kiosk

Tables (5)

Categories (카테고리)

  • category_id (카테고리번호) — Primary key — NOT NULL
  • name (이름)
  • created_at (생성일자)
  • modified_at (수정일자)

Options (옵션)

  • opt_id (옵션번호) — Primary key — NOT NULL
  • name (이름)
  • change_price (추가금)
  • option_type (옵션타입) — 0일 시 단일 1일 시 멀티
  • created_at (생성일자)
  • modified_at (수정일자)
  • pdt_id (상품번호) — Foreign key → Products.pdt_id — NOT NULL

OrderItems (주문상세)

  • order_item_id (주문상세번호) — Primary key — NOT NULL
  • quantity (수량)
  • order_id (주문번호) — Foreign key → Orders.order_id — NOT NULL
  • pdt_id (상품번호) — Foreign key → Products.pdt_id — NOT NULL

Orders (주문)

  • order_id (주문번호) — Primary key — NOT NULL
  • order_date (주문일자) — datetime
  • total_amount (총 주문 금액)
  • status (상태) — 0일 시 취소 1일 시 완료

Products (상품)

  • pdt_id (상품번호) — Primary key — NOT NULL
  • name (이름)
  • price (가격)
  • description (설명)
  • created_at (생성일자)
  • modified_at (수정일자)
  • category_id (카테고리번호) — Foreign key → Categories.category_id — NOT NULL