TableOrder

Tables (17)

Adjustment (정산)

  • unique_id (고유 번호) — text — Primary key — NOT NULL
  • adjustment_amount (정산금액) — number
  • error_amount (오차금액) — number
  • cash_box_log_list (입출금 내역목록) — List<CashBoxLog> — Foreign key → CashBoxLog.unique_id — NOT NULL
  • create_at (생성일자) — DateTime
  • user (유저) — User — Foreign key → User.unique_id — NOT NULL

CashBoxLog (입출금 내역)

  • unique_id (고유 번호) — text — Primary key — NOT NULL
  • amount (금액) — number
  • created_at (생성 일자) — DateTime
  • is_adjustment (정산 여부) — boolean
  • user (유저) — User — Foreign key → User.unique_id — NOT NULL

Certify (인증)

  • unique_id (고유 번호) — text — Primary key — NOT NULL
  • certify_type (인증 유형) — CERTIFY_TYPE
  • phone (휴대폰 번호) — text
  • code (인증 코드) — text
  • expired_at (만료 시간) — DateTime

Hall (홀)

  • unique_id (고유 번호) — text — Primary key — NOT NULL
  • name (이름) — text
  • user (유저) — User — Foreign key → User.unique_id — NOT NULL

Order (주문)

  • order_id (주문 번호) — text — Primary key — NOT NULL
  • order_status (주문 상태) — ORDER_STATUS
  • total_price (최종 가격) — number
  • table (테이블) — Table — Foreign key → Table.unique_id — NOT NULL
  • currency_type (화폐 유형) — CURRENCY_TYPE
  • pay_method_type (결제 수단 유형) — PAY_METHOD_TYPE
  • order_detail_list (주문 상세 리스트) — List<OrderDetail> — Foreign key → OrderDetail.unique_id — NOT NULL
  • order_at (주문 시간) — DateTime
  • pay_at (결제 시간) — DateTime
  • cancel_at (취소 시간) — DateTime
  • user (유저) — User — Foreign key → User.unique_id — NOT NULL

OrderDetail (주문 상세)

  • unique_id (고유 번호) — text — Primary key — NOT NULL
  • total_price (총 가격) — number
  • each_price (개당 가격) — number
  • count (상품 수) — number
  • ======= (=========) — =========
  • product_name (상품명) — text
  • option_name (옵션명) — text
  • product (상품) — Product — Foreign key → Product.unique_id — NOT NULL
  • product_option_list (상품 옵션 리스트) — List<ProductOption> — Foreign key → ProductOption.unique_id — NOT NULL

Product (상품)

  • unique_id (고유 번호) — text — Primary key — NOT NULL
  • image (이미지) — image
  • name (상품명) — text
  • contents (상품 설명) — text
  • price (가격) — number
  • produdct_option_group_list (상품 옵션 그룹 리스트) — List<ProductOptionGroup> — Foreign key → ProductOptionGroup.unique_id — NOT NULL
  • product_category_list (상품 카테고리 리스트) — List<ProductCategory> — Foreign key → ProductCategory.unique_id — NOT NULL
  • user (유저) — User — Foreign key → User.unique_id — NOT NULL
  • is_new (새로 나온 메뉴 여부) — boolean
  • is_hot (인기 상품 여부) — boolean
  • is_sold_out (품절 여부) — boolean

ProductCategory (상품 카테고리)

  • unique_id (고유 번호) — text — Primary key — NOT NULL
  • name (카테고리 명) — text
  • user (유저) — User — Foreign key → User.unique_id — NOT NULL

ProductOption (상품 옵션)

  • unique_id (고유 번호) — text — Primary key — NOT NULL
  • name (옵션명) — text
  • price (가격) — number

ProductOptionGroup (상품 옵션 그룹)

  • unique_id (고유 번호) — text — Primary key — NOT NULL
  • name (옵션 그룹명) — text
  • product_option_list (상품 옵션 리스트) — List<ProductOption> — Foreign key → ProductOption.unique_id — NOT NULL
  • user (유저) — User — Foreign key → User.unique_id — NOT NULL

Table (테이블)

  • unique_id (고유 번호) — text — Primary key — NOT NULL
  • name (테이블 명) — text
  • sort_num (정렬 순서) — number
  • hall (홀) — Hall — Foreign key → Hall.unique_id — NOT NULL
  • current_order (현재 주문) — Order — Foreign key → Order.order_id — NOT NULL

TableCart (테이블 장바구니)

  • unique_id (고유 번호) — text — Primary key — NOT NULL
  • total_price (총 가격) — number
  • each_price (개당 가격) — number
  • count (상품 수) — number
  • ======= (=========) — =========
  • product (상품) — Product — Foreign key → Product.unique_id — NOT NULL
  • product_option_list (상품 옵션 리스트) — List<ProductOption> — Foreign key → ProductOption.unique_id — NOT NULL
  • table (테이블) — Table — Foreign key → Table.unique_id — NOT NULL

TableCartOptionInfo (테이블 장바구니 옵션)

  • unique_id (고유 번호) — text — Primary key — NOT NULL
  • group_name (그룹명) — text
  • option_name (옵션명) — text
  • price (가격) — number
  • table_cart (테이블 장바구니) — TableCart — Foreign key → TableCart.unique_id — NOT NULL

TableOrderLive (테이블 주문 체크)

  • unique_id (고유 번호) — text — Primary key — NOT NULL
  • table (테이블) — Table — Foreign key → Table.unique_id — NOT NULL
  • order_detail_list (주문 상세 리스트) — List<OrderDetail> — Foreign key → OrderDetail.unique_id — NOT NULL
  • user (유저) — User — Foreign key → User.unique_id — NOT NULL
  • is_check_alarm (알림 여부) — boolean
  • is_confirm (확인 여부) — boolean

TableRequest (테이블 요청)

  • unique_id (고유 번호) — text — Primary key — NOT NULL
  • table_request_state (요청 상태) — TABLE_REQUEST_STATE
  • table_request_type (테이블 요청 유형) — TABLE_REQUEST_TYPE
  • table (테이블) — Table — Foreign key → Table.unique_id — NOT NULL

Term (약관)

  • unique_id (고유 번호) — text — Primary key — NOT NULL
  • term_type (약관 유형) — TERM_TYPE
  • contents (약관 내용) — text
  • version_at (버전 일자) — DateTime

User (유저)

  • unique_id (고유 번호) — text — Primary key — NOT NULL
  • email (이메일) — text
  • password (비밀번호) — text
  • init_password (초기화 비밀번호) — text
  • control_password (조작 비밀번호) — text
  • user_type (유저 유형) — USER_TYPE
  • user_state (유저 상태) — USER_STATE
  • language_type (언어 유형) — LANGUAGE_TYPE
  • name (매장명) — text
  • phone (휴대폰 번호) — text
  • is_setting (세팅 여부) — boolean
  • business_type (업종 유형) — BUSINESS_TYPE
  • payment_type (결제 방식 유형) — PAYMENT_TYPE
  • currency_type (화폐 유형) — CURRENCY_TYPE
  • user_code (유저 식별 코드) — text
  • cash (보유 현금) — number