woowahan-mope

Tables (11)

address (회원주소)

  • address_id (주소 아이디) — NOT NULL — Primary key — NOT NULL
  • user_id (회원 아이디) — NOT NULL — Foreign key → user.user_id — NOT NULL
  • address (회원주소) — NOT NULL
  • created_date (생성일) — NOT NULL
  • modified_date (수정일) — NOT NULL

basket (장바구니)

  • menu_id (메뉴 아이디) — NOT NULL — Foreign key → menu.menu_id — NOT NULL
  • menu_option_id (메뉴 옵션 아이디) — NOT NULL — Foreign key → menu_option.menu_option_id — NOT NULL
  • user_id (회원 아이디) — NOT NULL — Foreign key → user.user_id — NOT NULL
  • created_date (생성일) — NOT NULL
  • modified_date (수정일) — NOT NULL

coupon (쿠폰)

  • coupon_id (쿠폰 아이디) — NOT NULL — Primary key — NOT NULL
  • user_id (회원 아이디) — NOT NULL — Foreign key → user.user_id — NOT NULL
  • name (이름) — NOT NULL
  • content (내용) — NULL
  • deducted_price (차감금액) — NOT NULL
  • min_delivery_price (최소주문금액) — NOT NULL
  • created_date (생성일) — NOT NULL
  • expired_date (만료일) — NOT NULL
  • modified_date (수정일) — NOT NULL

dibs (찜)

  • address_id (주소 아이디) — NOT NULL — Primary key — NOT NULL
  • user_id (회원 아이디) — NOT NULL — Foreign key → user.user_id — NOT NULL
  • store_id (가게 아이디) — NOT NULL — Foreign key → store.store_id — NOT NULL
  • created_date (생성일) — NOT NULL
  • modified_date (수정일) — NOT NULL

menu (메뉴)

  • menu_id (메뉴 아이디) — NOT NULL — Primary key — NOT NULL
  • store_id (가게 아이디) — NOT NULL — Foreign key → store.store_id — NOT NULL
  • category (카테고리) — NOT NULL
  • name (메뉴 이름) — NOT NULL
  • price (가격) — NOT NULL
  • menu_url (메뉴 사진) — NULL
  • popularity (인기 여부) — NOT NULL
  • created_date (생성일) — NOT NULL
  • modified_date (수정일) — NOT NULL

menu_option (메뉴옵션)

  • menu_option_id (메뉴 옵션 아이디) — NOT NULL — Primary key — NOT NULL
  • menu_id (메뉴 아이디) — NOT NULL — Foreign key → menu.menu_id — NOT NULL
  • option (옵션) — NOT NULL
  • content (내용) — NOT NULL
  • price (가격) — NOT NULL
  • created_date (생성일) — NOT NULL
  • modified_date (수정일) — NOT NULL

order (주문)

  • order_id (주문 아이디) — NOT NULL — Primary key — NOT NULL
  • user_id (회원 아이디) — NOT NULL — Foreign key → user.user_id — NOT NULL
  • store_id (가게 아이디) — NOT NULL — Foreign key → store.store_id — NOT NULL
  • payment_method (결제 수단) — NOT NULL
  • total_price (통합 가격) — NOT NULL
  • requests (요청사항) — NULL
  • created_date (생성일) — NOT NULL
  • modified_date (수정일) — NOT NULL

order_menu (주문메뉴)

  • order_id (주문 아이디) — NOT NULL — Foreign key → order.order_id — NOT NULL
  • menu_id (메뉴 아이디) — NOT NULL — Foreign key → menu.menu_id — NOT NULL
  • menu_option_id (메뉴 옵션 아이디) — NOT NULL — Foreign key → menu_option.menu_option_id — NOT NULL
  • price (주문 메뉴 가격) — NOT NULL

review (리뷰)

  • review_id (리뷰 아이디) — NOT NULL — Primary key — NOT NULL
  • store_id (가게 아이디) — NOT NULL — Foreign key → store.store_id — NOT NULL
  • menu_id (메뉴 아이디) — NOT NULL — Foreign key → menu.menu_id — NOT NULL
  • user_id (회원 아이디) — NOT NULL — Foreign key → user.user_id — NOT NULL
  • rating (별점) — NOT NULL
  • content (내용) — NULL
  • pricture_url (리뷰 사진) — NULL
  • created_date (생성일) — NOT NULL
  • modified_date (수정일) — NOT NULL

store (가게)

  • store_id (가게 아이디) — NOT NULL — Primary key — NOT NULL
  • name (가게 이름) — NOT NULL
  • category (음식 카테고리) — NOT NULL
  • address (가게 주소) — NOT NULL
  • picture_url (가게 사진) — NULL
  • phone (전화번호) — NOT NULL
  • content (소개글) — NULL
  • min_delivery_price (최소주문금액) — NOT NULL
  • delivery_tip (배달팁) — NOT NULL
  • deliver_time (배달예정시간) — NULL
  • rating (평점) — NOT NULL
  • dibs_count (찜수) — NOT NULL
  • reviews_count (리뷰수) — NOT NULL
  • operation_time (운영시간) — NULL
  • closed_day (휴무일) — NULL
  • delivery_area (배달지역) — NULL
  • created_date (생성일) — NOT NULL
  • modified_date (수정일) — NOT NULL

user (회원)

  • user_id (회원 아이디) — NOT NULL — Primary key — NOT NULL
  • login_id (로그인 아이디) — NOT NULL
  • password (비밀번호) — NOT NULL
  • phone (전화번호) — NOT NULL
  • email (이메일) — NOT NULL
  • grade (등급) — NOT NULL
  • current_address (현재 주소) — NULL
  • status (상태) — NOT NULL
  • created_date (생성일) — NOT NULL
  • modified_date (수정일) — NOT NULL