쇼핑몰

테이블 (9)

Seller (seller)

  • sellerKey (Key) — 기본 키 — NOT NULL

User (user)

  • userKey (Key) — 기본 키 — NOT NULL

결제 (payment)

  • paymentKey (Key) — 기본 키 — NOT NULL
  • orderMainKey (Key2) — 외래 키 → 주문 메인.orderMainKey — NOT NULL
  • amount (금액)
  • status (결제 상태) — enum
  • payment_uid (결제고유번호)
  • userKey (Key3) — 외래 키 → User.userKey — NOT NULL

상품 (item)

  • productKey (Key) — 기본 키 — NOT NULL
  • name (상품 명) — String
  • price (가격) — BigDecimal
  • stock (재고) — int
  • uniqueImagePath (이미지이름) — String
  • LocalDateTime (생성일) — LocalDate
  • sellerKey (Key2) — 외래 키 → Seller.sellerKey — NOT NULL

장바구니 메인 (cart_main)

  • cartMainKey (Key) — 기본 키 — NOT NULL
  • userKey (Key2) — 외래 키 → User.userKey — NOT NULL

장바구니 상품들 (cart_items)

  • cartItemsKey (Key) — 기본 키 — NOT NULL
  • cartMainKey (Key2) — 외래 키 → 장바구니 메인.cartMainKey — NOT NULL
  • productKey (Key3) — 외래 키 → 상품.productKey — NOT NULL
  • quantity (수량) — String
  • insertedAt (담긴일시)
  • ordered (주문상태) — boolean

주문 메인 (order_main)

  • orderMainKey (Key) — 기본 키 — NOT NULL
  • cartMainKey (Key3) — 외래 키 → 장바구니 메인.cartMainKey — NOT NULL
  • status (주문상태) — enum
  • total_price (최종 가격) — BigDecimal
  • created_at (생성일)
  • userKey (Key2) — 외래 키 → User.userKey — NOT NULL

주문 상품들 (order_items)

  • orderItemKey (Key) — 기본 키 — NOT NULL
  • orderMainKey (Key3) — 외래 키 → 주문 메인.orderMainKey — NOT NULL
  • cartItemsKey (Key2) — 외래 키 → 장바구니 상품들.cartItemsKey — NOT NULL
  • quantity (수량)
  • price (단가)
  • createdAt (생성일)

주문배송정보 (Untitled)

  • Key — 기본 키 — NOT NULL
  • orderMainKey (Key2) — 외래 키 → 주문 메인.orderMainKey — NOT NULL
  • 받는이 이름 (Field)
  • 주소 (Field2)
  • 상세주소 (Field5)
  • 전화번호 (Field3)
  • 이메일 (Field4)