project_01

Tables (12)

cart (장바구니)

  • 장바구니아이디 (cartId) — Primary key — NOT NULL
  • 메뉴 아이디 (menuId) — Foreign key → cartitem.메뉴 아이디 — NOT NULL
  • 메뉴 아이디 (menuId2) — Foreign key → cartitem.메뉴 아이디 — NOT NULL
  • Key — Foreign key → cartitem.Key — NOT NULL
  • 메뉴 아이디 (menuId3) — Foreign key → cartitem.메뉴 아이디 — NOT NULL
  • Key2 — Foreign key → cartitem.Key2 — NOT NULL
  • Key (Key22) — Foreign key → cartitem.Key — NOT NULL
  • Key (Key3) — Foreign key → cartitem.Key — NOT NULL
  • Key4 — Foreign key → cartitem.카트아이템 — NOT NULL
  • Key4 (Key42) — Foreign key → cartitem.Key4 — NOT NULL
  • 메뉴취소 (delete) — varchar(10)

cartitem (아이템)

  • 카트아이템 (cartitemId) — Primary key — NOT NULL
  • 메뉴 아이디 (menuId) — Foreign key → price.메뉴 아이디 — NOT NULL
  • 메뉴 아이디 (menuId2) — Foreign key → price.메뉴 아이디 — NOT NULL
  • Key — Foreign key → price.Key — NOT NULL
  • 메뉴 아이디 (menuId3) — Foreign key → price.메뉴 아이디 — NOT NULL
  • Key2 — Foreign key → price.Key2 — NOT NULL
  • Key (Key22) — Foreign key → price.Key — NOT NULL
  • Key (Key3) — Foreign key → price.Key — NOT NULL
  • Key4 — Foreign key → price.가격표아이디 — NOT NULL
  • 구매수량 (itemQuantity) — int
  • 구매 메뉴 가격 (itemPrice) — int

coffee (커피)

  • 커피아이디 (coffeeId) — Primary key — NOT NULL
  • 메뉴 아이디 (menuId) — Foreign key → menu.메뉴 아이디 — NOT NULL
  • 아메리카노 (americano) — varchar(10)
  • 카페라떼 (cafelatte) — varchar(10)
  • 카페모카 (cafemocha) — varchar(10)
  • 프라푸치노 (frappuccino) — varchar(10)

coupon (쿠폰)

  • 쿠폰아이디 (couponId) — Primary key — NOT NULL
  • 메뉴 아이디 (menuId) — Foreign key → selectPlace.메뉴 아이디 — NOT NULL
  • 메뉴 아이디 (menuId2) — Foreign key → selectPlace.메뉴 아이디 — NOT NULL
  • Key — Foreign key → selectPlace.Key — NOT NULL
  • 메뉴 아이디 (menuId3) — Foreign key → selectPlace.메뉴 아이디 — NOT NULL
  • Key2 — Foreign key → selectPlace.Key2 — NOT NULL
  • Key (Key22) — Foreign key → selectPlace.Key — NOT NULL
  • Key (Key3) — Foreign key → selectPlace.Key — NOT NULL
  • Key4 — Foreign key → selectPlace.Key4 — NOT NULL
  • Key5 — Foreign key → selectPlace.Key5 — NOT NULL
  • Key4 (Key42) — Foreign key → selectPlace.Key4 — NOT NULL
  • 쿠폰 (coupon) — varchar(10)

dessert (디저트)

  • 디저트아이디 (dessertId) — Primary key — NOT NULL
  • 메뉴 아이디 (menuId) — Foreign key → menu.메뉴 아이디 — NOT NULL
  • 마카롱 (macaron) — varchar(10)
  • 쿠키 (cookie) — varchar(10)
  • 케이크 (cake) — varchar(10)

menu (메뉴)

  • 메뉴 아이디 (menuId) — Primary key — NOT NULL
  • 메뉴 이름 (menuName) — varchar(100)
  • 메뉴 가격 (menuPrice) — int
  • 메뉴 순서 (menuOrder) — int

nonCoffee (논커피)

  • 논커피아이디 (noncoffeeId) — Primary key — NOT NULL
  • 메뉴 아이디 (menuId) — Foreign key → menu.메뉴 아이디 — NOT NULL
  • 딸기라떼 (strawberry) — varchar(10)
  • 고구마라떼 (sweetphotato) — varchar(10)
  • 녹차라떼 (greentea) — varchar(10)
  • 초코라떼 (choco) — varchar(10)
  • 요거트스무디 (yogurtSmoothies) — varchar(10)
  • 블루베리스무디 (blueberrySmoothies) — varchar(10)
  • 망고스무디 (mangoSmoothies) — varchar(10)
  • 딸기스무디 (strawberrySmoothies) — varchar(10)
  • 흑당버블티 (blacksugarBubbletea) — varchar(10)
  • 타로버블티 (taroBubbletea) — varchar(10)
  • 초코버블티 (chocoBubbletea) — varchar(10)

option (옵션선택)

  • 옵션아이디 (optionId) — Primary key — NOT NULL
  • 메뉴 아이디 (menuId) — Foreign key → coffee.메뉴 아이디 — NOT NULL
  • 메뉴 아이디 (menuId2) — Foreign key → nonCoffee.메뉴 아이디 — NOT NULL
  • Key — Foreign key → coffee.커피아이디 — NOT NULL
  • Key (Key2) — Foreign key → nonCoffee.논커피아이디 — NOT NULL
  • 옵션 이름 (optionName) — varchar(100)
  • 옵션 가격 (optionPrice) — int

paymentMethod (결제방법)

  • 유저 아이디 (userId) — INT — Foreign key → user.유저 아이디 — NOT NULL
  • 메뉴 아이디 (menuId4) — Foreign key — NOT NULL
  • 메뉴 아이디 (menuId22) — Foreign key — NOT NULL
  • 메뉴 아이디 (menuId32) — Foreign key — NOT NULL
  • 메뉴 아이디 (menuId) — Foreign key → selectPlace.메뉴 아이디 — NOT NULL
  • 메뉴 아이디 (menuId2) — Foreign key → selectPlace.메뉴 아이디 — NOT NULL
  • Key — Foreign key → selectPlace.Key — NOT NULL
  • 메뉴 아이디 (menuId3) — Foreign key → selectPlace.메뉴 아이디 — NOT NULL
  • 메뉴 아이디 (menuId5) — Foreign key → user.메뉴 아이디 — NOT NULL
  • 메뉴 아이디 (menuId23) — Foreign key → user.메뉴 아이디 — NOT NULL
  • Key (Key2) — Foreign key → user.Key — NOT NULL
  • 메뉴 아이디 (menuId33) — Foreign key → user.메뉴 아이디 — NOT NULL
  • Key2 (Key22) — Foreign key → selectPlace.Key2 — NOT NULL
  • Key (Key222) — Foreign key → selectPlace.Key — NOT NULL
  • Key (Key3) — Foreign key → selectPlace.Key — NOT NULL
  • Key4 — Foreign key → selectPlace.Key4 — NOT NULL
  • Key5 — Foreign key → selectPlace.Key5 — NOT NULL
  • Key4 (Key42) — Foreign key → selectPlace.Key4 — NOT NULL
  • Key6 — Foreign key → user.Key6 — NOT NULL
  • 카드결제 (card) — varchar(10)
  • 현금결제 (cash) — varchar(10)
  • 쿠폰사용 (couponUse) — varchar(10)

price (가격표)

  • 가격표아이디 (priceId) — Primary key — NOT NULL
  • 메뉴 아이디 (menuId) — Foreign key → option.메뉴 아이디 — NOT NULL
  • 메뉴 아이디 (menuId2) — Foreign key → option.메뉴 아이디 — NOT NULL
  • Key — Foreign key → option.Key — NOT NULL
  • 메뉴 아이디 (menuId3) — Foreign key → dessert.메뉴 아이디 — NOT NULL
  • Key2 — Foreign key → option.옵션아이디 — NOT NULL
  • Key (Key22) — Foreign key → option.Key — NOT NULL
  • Key (Key3) — Foreign key → dessert.디저트아이디 — NOT NULL
  • 메뉴 가격 (menuPrice) — int

selectPlace (장소 선택)

  • 메뉴 아이디 (menuId) — Foreign key → cart.메뉴 아이디 — NOT NULL
  • 메뉴 아이디 (menuId2) — Foreign key → cart.메뉴 아이디 — NOT NULL
  • Key — Foreign key → cart.Key — NOT NULL
  • 메뉴 아이디 (menuId3) — Foreign key → cart.메뉴 아이디 — NOT NULL
  • Key2 — Foreign key → cart.Key2 — NOT NULL
  • Key (Key22) — Foreign key → cart.Key — NOT NULL
  • Key (Key3) — Foreign key → cart.Key — NOT NULL
  • Key4 — Foreign key → cart.Key4 — NOT NULL
  • Key5 — Foreign key → cart.장바구니아이디 — NOT NULL
  • Key4 (Key42) — Foreign key → cart.Key4 — NOT NULL
  • 매장 (shop) — varchar(10)
  • 포장 (takeout) — varchar(10)
  • Field

user (회원정보)

  • 유저 아이디 (userId) — INT — Primary key — NOT NULL
  • 메뉴 아이디 (menuId) — Foreign key → coupon.메뉴 아이디 — NOT NULL
  • 메뉴 아이디 (menuId2) — Foreign key → coupon.메뉴 아이디 — NOT NULL
  • Key — Foreign key → coupon.Key — NOT NULL
  • 메뉴 아이디 (menuId3) — Foreign key → coupon.메뉴 아이디 — NOT NULL
  • Key2 — Foreign key → coupon.Key2 — NOT NULL
  • Key (Key22) — Foreign key → coupon.Key — NOT NULL
  • Key (Key3) — Foreign key → coupon.Key — NOT NULL
  • Key4 — Foreign key → coupon.Key4 — NOT NULL
  • Key5 — Foreign key → coupon.Key5 — NOT NULL
  • Key4 (Key42) — Foreign key → coupon.Key4 — NOT NULL
  • Key6 — Foreign key → coupon.쿠폰아이디 — NOT NULL
  • 휴대폰번호 (number) — int
  • ID생성일 (createDate) — datetime