eecommerce

테이블 (9)

배송 (임시) 서비스 분리 (delivery)

  • 배송 아이디 (delivery_id) — not null — 기본 키 — NOT NULL
  • 유저 아이디 (member_id) — not null — 외래 키 → 유저.유저 아이디 — NOT NULL
  • 배송 상태 (delivery_state) — not null
  • 배송지 (address) — not null

상품 (product)

  • 상품 아이디 (product_id) — not null — 기본 키 — NOT NULL
  • 상품 이름 (name) — not null
  • 상품 수량 (amount) — not null
  • 상품 타입 (product_type) — not null
  • 상품 가격 (price) — not null
  • 상품 판매 수 (sales_count) — not null
  • 상품 평점 (score) — not null
  • 생성 시간 (created_at) — not null
  • 수정 시간 (updated_at) — not null

상품 리뷰 (review)

  • 상품 리뷰 아이디 (review_id) — not null — 기본 키 — NOT NULL
  • 유저 아이디 (member_id) — not null — 외래 키 → 유저.유저 아이디 — NOT NULL
  • 상품 아이디 (product_id) — not null — 외래 키 → 상품.상품 아이디 — NOT NULL
  • 내용 (content) — null
  • 평점 (score) — not null
  • 상태 (status) — not null

상품 주문 (order_product)

  • 상품 주문 아이디 (product_order_id) — not null — 기본 키 — NOT NULL
  • 주문_아이디 (order_id) — not null — 외래 키 → 주문.주문_아이디 — NOT NULL
  • 상품 아이디 (product_id) — not null — 외래 키 → 상품.상품 아이디 — NOT NULL
  • 주문 상품 개수 (count) — not null
  • 주문 상품 가격 (price) — not null

유저 (member)

  • 유저 아이디 (member_id) — not null — 기본 키 — NOT NULL
  • 유저 이름 (name) — not null
  • 프로필 이미지 (profile) — not null
  • 역할 (role) — not null

장바구니 (cart)

  • 장바구니 아이디 (cart_id) — not null — 기본 키 — NOT NULL
  • 유저 아이디 (member_id) — not null — 외래 키 → 유저.유저 아이디 — NOT NULL

장바구니_상품 (Untitled)

  • 장바구니 상품 아이디 (cart_product_id) — not null — 기본 키 — NOT NULL
  • 장바구니 아이디 (cart_id) — not null — 외래 키 → 장바구니.장바구니 아이디 — NOT NULL
  • 상품 아이디 (product_id2) — not null — 외래 키 → 상품.상품 아이디 — NOT NULL

주문 (order)

  • 주문_아이디 (order_id) — not null — 기본 키 — NOT NULL
  • 유저 아이디 (member_id) — not null — 외래 키 → 유저.유저 아이디 — NOT NULL
  • 배송 아이디 (delivery_id) — not null — 외래 키 → 배송 (임시) 서비스 분리.배송 아이디 — NOT NULL
  • 총 가격 (total_price) — not null
  • 주문 상태 (order_state) — not null

찜 (wishlist)

  • 찜_아이디 (wishlist_id) — not null — 기본 키 — NOT NULL
  • 유저 아이디 (member_id) — not null — 외래 키 → 유저.유저 아이디 — NOT NULL
  • 상품 아이디 (product_id) — not null — 외래 키 → 상품.상품 아이디 — NOT NULL
  • 생성 시간 (created_at) — not null
  • 수정 시간 (updated_at) — not null