myStore

Tables (8)

Address (임베디드 타입)

  • 지역 (city) — VARCHAR(255)
  • 구/동 (street) — VARCHAR(255)
  • 상세주소 (home) — VARCHAR(255)

BUYER (소비자)

  • 소비자번호 (BUYER_ID) — BIGINT — Primary key — NOT NULL
  • 아이디 (buyer_user_id) — VARCHAR(20)
  • 비밀번호 (buyer_password) — VARCHAR(30)
  • 이름 (buyer_username) — VARCHAR(10)
  • 전화번호 (buyer_tel) — VARCHAR(11)
  • 이메일 (buyer_email) — VARCHAR(50)
  • 성별 (gender) — enum
  • 등급 (role) — enum

Delivery (배송)

  • 배송번호 (DELIVERY_ID) — BIGINT — Primary key — NOT NULL
  • 배송상태 (delivery_status) — enum

Order (주문)

  • 주문번호 (ORDER_ID) — BIGINT — Primary key — NOT NULL
  • 소비자번호 (BUYER_ID) — BIGINT — Foreign key → BUYER.소비자번호 — NOT NULL
  • 상점번호 (STORE_ID) — BIGINT — Foreign key → Store.상점번호 — NOT NULL
  • 판매자번호 (SELLER_ID) — BIGINT — Foreign key → Store.판매자번호 — NOT NULL
  • 배송번호 (DELIVERY_ID) — BIGINT — Foreign key → Delivery.배송번호 — NOT NULL
  • 주문가격 (order_price) — int

Product (상품)

  • 상품번호 (PRODUCT_ID) — BIGINT — Primary key — NOT NULL
  • 상점번호 (STORE_ID) — BIGINT — Foreign key → Store.상점번호 — NOT NULL
  • 판매자번호 (SELLER_ID) — BIGINT — Foreign key → Store.판매자번호 — NOT NULL
  • 상품이름 (product_name) — VARCHAR(100)
  • 상품가격 (product_price) — INT
  • 재고수량 (product_stockQuantity) — int

Review (리뷰)

  • 리뷰번호 (REVIEW_ID) — BIGINT — Primary key — NOT NULL
  • 상점번호 (STORE_ID) — BIGINT — Foreign key → Store.상점번호 — NOT NULL
  • 판매자번호 (SELLER_ID) — BIGINT — Foreign key → Store.판매자번호 — NOT NULL
  • 제목 (review_title) — VARCHAR(100)
  • 내용 (review_content) — VARCHAR(2000)
  • 선호도 (review_star) — int

SELLER (판매자)

  • 판매자번호 (SELLER_ID) — BIGINT — Primary key — NOT NULL
  • 아이디 (seller_user_id) — VARCHAR(20)
  • 비밀번호 (seller_password) — VARCHAR(30)
  • 이름 (seller_username) — VARCHAR(10)
  • 전화번호 (seller_tel) — VARCHAR(13)
  • 이메일 (seller_email) — VARCHAR(50)
  • 등급 (role) — enum

Store (상점)

  • 상점번호 (STORE_ID) — BIGINT — Primary key — NOT NULL
  • 판매자번호 (SELLER_ID) — BIGINT — Foreign key → SELLER.판매자번호 — NOT NULL
  • 상점이름 (store_name) — VARCHAR(300)
  • 상점소개 (store_introduce) — VARCHAR(2000)