pre-side-shoppingMall

테이블 (6)

결제 (Payment)

  • 결제ID (payment_id) — Bigint — 기본 키 — NOT NULL
  • 결제수단 (payment_way) — String
  • 결제금액 (payment_price) — Integer
  • 결제상태 (payment_status) — String
  • 주문ID (order_id) — Bigint — 외래 키 → 주문.주문ID — NOT NULL

배송 (Delivery)

  • 배송ID (delivery_id) — Bigint — 기본 키 — NOT NULL
  • 송장번호 (parcel_number) — String
  • 배송지 (arrival) — String
  • 배송상태 (delivery_status) — String
  • 택배사 (parcel_corp) — String
  • 주문항목ID (order_item_id) — Bigint — 외래 키 → 주문항목.주문항목ID — NOT NULL

상품 (Product)

  • 상품ID (product_id) — Bigint — 기본 키 — NOT NULL
  • 상품명 (product_name) — varChar(255)
  • 가격 (product_price) — Integer
  • 재고 (product_stock) — Integer

유저 (User)

  • 유저ID (user_id) — Bigint — 기본 키 — NOT NULL
  • 이름 (user_name) — varChar(255)
  • 나이 (age) — Integer

주문 (Order)

  • 주문ID (order_id) — Bigint — 기본 키 — NOT NULL
  • 유저ID (user_id) — Long — 외래 키 → 유저.유저ID — NOT NULL
  • 주문 일시 (order_date) — Date
  • 전체금액 (total_price) — Integer

주문항목 (OrderItem)

  • 주문항목ID (order_item_id) — Bigint — 기본 키 — NOT NULL
  • 상품갯수 (quantity) — Integer
  • 주문당시상품가격 (order_price) — Integer
  • 상품ID (product_id) — Bigint — 외래 키 → 상품.상품ID — NOT NULL
  • 주문ID (order_id) — Bigint — 외래 키 → 주문.주문ID — NOT NULL