e-commerce

Tables (4)

cart (장바구니)

  • cart_id (장바구니 식별자) — bigint — Primary key — NOT NULL
  • cart_status (장바구니 상태) — enum
  • creation_date (장바구니 만든 날짜) — datetime
  • last_modified_date (장바구니 업데이트 날짜) — datetime
  • expiration_date (장바구니 만료되는 날짜) — datetime
  • last_modified_user (카트를 마지막으로 수정한 사용자) — bigint

cart_line_item (장바구니 상품)

  • cart_line_item_id (장바구니 상품 식별자) — bigint — Primary key — NOT NULL
  • cart_id (장바구니 식별자) — bigint — Foreign key → cart.cart_id — NOT NULL
  • category_item_id (카테고리 상품 식별자) — bigint — Foreign key → category_item.category_item_id — NOT NULL
  • category_id (카테고리 식별자) — bigint — Foreign key → category_item.category_id — NOT NULL
  • item_name (상품 명) — varchar(200)
  • quantity (수량) — integer
  • price (가격) — bigdecimal(19,5)
  • creation_date (장바구니 상품 담은 날짜) — datetime
  • last_modified_date (장바구니 상품 수정 날짜) — datetime
  • last_modified_user (마지막으로 수정한 사용자) — bigint

category (카테고리)

  • category_id (카테고리 식별자) — bigint — Primary key — NOT NULL
  • category_up_id (카테고리 식별자2) — bigint — Foreign key → category.category_id — NOT NULL

category_item (카테고리 상품)

  • category_item_id (카테고리 상품 식별자) — bigint — Primary key — NOT NULL
  • category_id (카테고리 식별자) — bigint — Foreign key → category.category_id — NOT NULL
  • category_item_name (카테고리 상품 명) — varchar(50)
  • remain_quantity (재고 수량) — integer
  • Field