LOTTE EATZ - LOTTERIA
Tables (18)
allegy_info (알러지 정보)
- 알러지 정보 id (allegy_info_id) — NOT NULL — Primary key — NOT NULL
- 메뉴 id (menu_id) — NOT NULL — Foreign key → menu_mst.메뉴 id — NOT NULL
- 알러지 유발 성분 (allegy_item) — NOT NULL
dessert_option_mst (디저트 옵션)
- 메뉴 id (menu_id) — NOT NULL — Foreign key → menu_mst.메뉴 id — NOT NULL
- 추가 금액 (extra_price) — NOT NULL
- 생성일 (created_at) — NOT NULL
- 수정일 (updated_at) — NOT NULL
drink_option_mst (드링크 옵션)
- 메뉴 id (menu_id) — NOT NULL — Foreign key → menu_mst.메뉴 id — NOT NULL
- 추가 금액 (extra_price) — NOT NULL
- 생성일 (created_at) — NOT NULL
- 수정일 (updated_at) — NOT NULL
ingredient_mst (원재료)
- 원재료 id (ingredient_id) — NOT NULL — Primary key — NOT NULL
- 원재료명 (ingredient_name) — NOT NULL
- 생성일 (created_at) — NOT NULL
- 수정일 (updated_at) — NOT NULL
menu_ingredient_origin (메뉴-원산지 매핑 테이블)
- 메뉴 id (menu_id) — NOT NULL — Foreign key → menu_mst.메뉴 id — NOT NULL
- 원산지 id (origin_id) — NOT NULL — Foreign key → origin_mst.원산지 id — NOT NULL
- 원재료 id (ingredient_id) — NOT NULL — Foreign key → ingredient_mst.원재료 id — NOT NULL
- 생성일 (created_at) — NOT NULL
- 수정일 (updated_at) — NOT NULL
menu_mst (메뉴)
- 메뉴 id (menu_id) — NOT NULL — Primary key — NOT NULL
- 메뉴명 (menu_name) — NOT NULL
- 메뉴 설명 (menu_description) — NOT NULL
- 메뉴 가격 (menu_price) — NOT NULL
- 카테고리 (category) — NOT NULL(햄버거 단품, 햄버거 세트, 디저트, 드링크, 아이스샷, 토핑, 소스)
- 중량 (weight) — NOT NULL
- 열량 (kcal) — NOT NULL
- 단백질 (protein) — NOT NULL
- 나트륨 (sodium) — NOT NULL
- 당류 (sugar) — NOT NULL
- 포화지방 (fat) — NOT NULL
- 카페인 (caffeine) — NULL
- 이미지 경로 (img_path) — NOT NULL
- 주문 가능 여부 (is_active) — NOT NULL, DEFAULT 1(0 불가능, 1 가능)
- 생성일 (created_at) — NOT NULL
- 수정일 (updated_at) — NOT NULL
menu_sauce_option (메뉴-소스 매핑 테이블)
- 디저트 id (dessert_menu_id) — NOT NULL
- 소스 id (sauce_menu_id) — NOT NULL
- 생성일 (created_at) — NOT NULL
- 수정일 (updated_at) — NOT NULL
my_store (나의 매장(회원-매장 매핑 테이블))
- 회원 id (user_id) — NOT NULL — Foreign key → user_mst.회원 id — NOT NULL
- 매장 id (store_id) — NOT NULL — Foreign key → store_mst.매장 id — NOT NULL
order_item (주문-메뉴 매핑 테이블)
- 주문 항목 id (order_item_id) — NOT NULL — Primary key — NOT NULL
- 주문 id (order_id) — NOT NULL — Foreign key → order_mst.주문 id — NOT NULL
- 메뉴 id (menu_id) — NOT NULL — Foreign key → menu_mst.메뉴 id — NOT NULL
- 수량 (quantity) — NOT NULL
- 생성일 (created_at) — NOT NULL
- 수정일 (updated_at) — NOT NULL
order_item_option (세트 메뉴, 디저트 소스 옵션 테이블)
- 선택 옵션 id (order_item_option_id) — NOT NULL (디저트, 음료, 소스) — Primary key — NOT NULL
- 주문 항목 id (order_item_id) — NOT NULL — Foreign key → order_item.주문 항목 id — NOT NULL
- 옵션 종류 (option_category) — NOT NULL, DEFAULT 0(0 디저트, 1 드링크, 2 토핑)
- 선택 메뉴 id (menu_id) — NOT NULL
- 추가 금액 (extra_price) — NOT NULL
- 생성일 (created_at) — NOT NULL
- 수정일 (updated_at) — NOT NULL
order_item_sub_option (세트 메뉴 디저트 변경 시 소스 옵션 테이블)
- 디저트 소스 선택 id (order_item_sub_option_id) — NOT NULL — Primary key — NOT NULL
- 선택 옵션 id (order_item_option_id) — NOT NULL (디저트, 음료, 소스) — Foreign key → order_item_option.선택 옵션 id — NOT NULL
- 주문 항목 id (order_item_id) — NOT NULL — Foreign key → order_item_option.주문 항목 id — NOT NULL
- 선택 소스 id (menu_id) — NOT NULL
- 생성일 (created_at) — NOT NULL
- 수정일 (updated_at) — NOT NULL
order_mst (주문)
- 주문 id (order_id) — NOT NULL — Primary key — NOT NULL
- 회원 id (user_id) — NOT NULL — Foreign key → user_mst.회원 id — NOT NULL
- 총 주문 금액 (pay_amount) — NOT NULL
- 결제 수단 (payment_method) — NOT NULL
- 생성일 (created_at) — NOT NULL
- 수정일 (updated_at) — NOT NULL
origin_mst (원산지)
- 원산지 id (orgin_id) — NOT NULL — Primary key — NOT NULL
- 국가 (country) — NOT NULL
- 생성일 (created_at) — NOT NULL
- 수정일 (updated_at) — NOT NULL
service_mst (서비스)
- 서비스 id (service_id) — NOT NULL — Primary key — NOT NULL
- 서비스명 (service_name) — NOT NULL
- 생성일 (created_at) — NOT NULL
- 수정일 (updated_at) — NOT NULL
store_mst (매장)
- 매장 id (store_id) — NOT NULL — Primary key — NOT NULL
- 매장명 (store_name) — NOT NULL
- 매장 전화번호 (phone_num) — NOT NULL
- 매장 주소 (address) — NOT NULL
- 위도 (latitude) — NOT NULL
- 경도 (longitude) — NOT NULL
- 주문 가능 상태 (status) — NOT NULL, DEFAULT 1(0 불가, 1 원활)
- 생성일 (created_at) — NOT NULL
- 수정일 (updated_at) — NOT NULL
store_service (매장-서비스 매핑 테이블)
- 매장 id (store_id) — NOT NULL — Foreign key → store_mst.매장 id — NOT NULL
- 서비스 id (service_id) — NOT NULL — Foreign key → service_mst.서비스 id — NOT NULL
- 해당 서비스 가능 여부 (is_tab_visible) — NOT NULL, DEFAULT 1(0 불가능, 1 가능)
- 해당 서비스 운영 여부 (is_orderable) — NOT NULL, DEFAULT 1(0 불가능, 1 가능)
- 배달비 (delivery_fee) — NULL
- 배달 최소 주문 금액 (delivery_min_order_amount) — NULL
- 생성일 (created_at) — NOT NULL
- 수정일 (updated_at) — NOT NULL
store_service_hour_mst (매장-서비스 별 운영 시간)
- 매장 id (store_id) — NOT NULL — Foreign key → store_mst.매장 id — NOT NULL
- 서비스 id (service_id) — NOT NULL — Foreign key → service_mst.서비스 id — NOT NULL
- 오픈 시간 (open) — NOT NULL
- 마감 시간 (close) — NOT NULL
- 생성일 (created_at) — NOT NULL
- 수정일 (updated_at) — NOT NULL
user_mst (회원)
- 회원 id (user_id) — NOT NULL — Primary key — NOT NULL
- 비밀번호 (passwd) — NOT NULL
- 회원 이름 (user_name) — NOT NULL
- 전화번호 (phone_num) — NOT NULL
- 생일 (birth_date) — NOT NULL
- 주소 (user_address) — NOT NULL
- 적립금 (reward_points) — NOT NULL
- 생성일 (created_at) — NOT NULL
- 수정일 (updated_at) — NOT NULL