Baedal

Tables (6)

menus (Untitled5)

  • 메뉴id (menu_id) — Primary key — NOT NULL
  • 가게id (shop_id) — Foreign key → shops.가게id — NOT NULL
  • 메뉴명 (name)
  • 메뉴설명 (description)
  • 메뉴금액 (price)
  • 삭제유무 (is_deleted) — default = false

order_menus (Untitled4)

  • 주문할 메뉴정보id (order_menu_id) — Primary key — NOT NULL
  • 메뉴id (menu_id) — Foreign key → menus.메뉴id — NOT NULL
  • 주문id (order_id) — Foreign key → orders.주문id — NOT NULL
  • 수량 (quantity)

orders (Untitled2)

  • 주문id (order_id) — Primary key — NOT NULL
  • 유저id (user_id) — Foreign key → users.유저id — NOT NULL
  • 주문시간 (created_at)
  • 주문상태 (status)
  • 주문상태변경시간 (updated_at)
  • 총 주문금액 (totalprice)
  • 리뷰가능유무 (cannotReview) — default = false

reviews (Untitled6)

  • 리뷰id (review_id) — Primary key — NOT NULL
  • 주문id (order_id) — Foreign key → orders.주문id — NOT NULL
  • 가게id (shop_id) — Foreign key → shops.가게id — NOT NULL
  • 유저id (user_id) — Foreign key → users.유저id — NOT NULL
  • 리뷰 (content)
  • 별점 (rating)
  • 생성일 (created_at)

shops (Untitled3)

  • 가게id (shop_id) — Primary key — NOT NULL
  • 유저id (user_id) — Foreign key → users.유저id — NOT NULL
  • 최소주문금액 (min_order_price)
  • 오픈시간 (open_time)
  • 마감시간 (close_time)
  • 폐업유무 (is_deleted) — default = false
  • 생성시간 (created_at)
  • 가게이름 (name)

users (Untitled)

  • 유저id (user_id) — Primary key — NOT NULL
  • 닉네임 (user_name)
  • 이메일 (email)
  • 비밀번호 (password)
  • 가입시간 (created_at)
  • 유저 타입 (role)