케이크를 부탁해!

테이블 (5)

t_comment (인기케이크리뷰)

  • id (Key) — Integer — 기본 키 — NOT NULL
  • user_id (ForeignKey1) — String — 외래 키 → t_user.id — NOT NULL — 주문자아이디(t_user)
  • product_id (ForeignKey2) — Integer — 외래 키 → t_product.id — NOT NULL — 상품아이디(t_product)
  • comment — String — 리뷰

t_order (주문)

  • o_id (Key) — Integer — 기본 키 — NOT NULL
  • user_id (ForeignKey) — String — 외래 키 → t_user.id — NOT NULL — 주문자아이디(t_user)
  • order_table — String — 주문테이블
  • order_time — 주문시간
  • completed — Char — 주문완료여부

t_order_detail (주문상세내역)

  • d_id (Key) — Integer — 기본 키 — NOT NULL
  • o_id (ForeignKey) — Integer — 외래 키 → t_order.o_id — NOT NULL — 주문아이디(t_order)
  • quantity — Integer — NOT NULL — 주문 양(보통 1로 고정)
  • taste — String — NOT NULL — 맛(바닐라/초코/딸기/녹차)
  • size — String — NOT NULL — 사이즈(S/M/L)
  • stationery — String — NOT NULL — 문구작성
  • clearcase — Char — NOT NULL — 투명케이스여부
  • img — String — NOT NULL — 이미지
  • name — String — NOT NULL — 케이크 이름
  • totalPrice — Integer — NOT NULL — 총가격( 사이즈 + 도안 가격 )
  • date — bigint — NOT NULL — 예약날짜
  • time — Integer — NOT NULL — 예약시
  • minute — Integer — NOT NULL — 예약 분

t_product (상품(인기케이크들))

  • id (Key) — Integer — 기본 키 — NOT NULL
  • name — String — NOT NULL — 케이크이름
  • price — Integer — NOT NULL — 케이크가격
  • img — String — NOT NULL — 케이크이미지

t_user (사용자)

  • id (Key) — String — 기본 키 — NOT NULL
  • name — String — NOT NULL — 닉네임
  • pass — String — NOT NULL — 비밀번호
  • stamps — Integer — 적립스탬프
  • tel — String — NOT NULL — 전화번호