CoffeeBeanery

Tables (4)

Delivery (배송)

  • 배송 ID (deliveryId) — PK — Primary key — NOT NULL
  • 운송장 번호 (deliveryNumber) — PK
  • 택배사 (deliveryCompany)

Order (주문)

  • 주문 ID (orderId) — PK — Primary key — NOT NULL
  • 고객 이메일 (customerEmail)
  • 기본 주소 (baseAddress)
  • 상세 주소 (detailAddress)
  • 우편 주소 (zipCode)
  • 주문 날짜/시간 (orderCreatedAt)
  • 총 주문 금액 (totalPrice) — PK
  • 주문 상태 (orderStatus)
  • 배송 ID (deliveryId) — PK — Foreign key → Delivery.배송 ID — NOT NULL

OrderDetail (주문 상세 (품목 당))

  • 주문 상세 ID (orderDetailId) — PK — Primary key — NOT NULL
  • 주문 상품 수량 (productQuantity)
  • 주문 시점 가격 (orderPrice) — PK
  • 주문 상품 (productId) — FK — Foreign key → Product.상품 ID — NOT NULL
  • 소속 주문 (orderId) — FK — Foreign key → Order.주문 ID — NOT NULL

Product (커피콩)

  • 상품 ID (productId) — PK — Primary key — NOT NULL
  • 상품 이름 (productName)
  • 상품 설명 (productDescription)
  • 상품 가격 (productPrice) — PK
  • 상품 사진 링크 (productImageURL)
  • 재고 수량 (productStock)
  • 등록일 (productCreatedAt)