결혼식

테이블 (12)

Customer (고객)

  • unique_id (고유 번호) — text — 기본 키 — NOT NULL
  • contract_at (계약일) — date
  • estimate_type (고객 유형) — ESTIMATE_TYPE
  • guarantees_number (보증 인원) — number
  • total_price (총 가격) — number
  • original_price (원금액) — number
  • deposit_price (선계약금) — number
  • balance_price (잔금) — number
  • service_price (봉사료) — number
  • vat (부가가치세) — number
  • desired_event_at (희망 행사 일자) — date
  • desired_event_start_hour (희망 행사 시작 시간) — number
  • desired_event_end_hour (희망 행사 종료 시간) — number
  • significant (특이 사항) — text
  • contract_pdf (계약서 pdf 파일) — File
  • contractor_name (계약자 성함) — text
  • reservation_agent_name (예약 담당자 성함) — text
  • wedding_info (웨딩 정보) — WeddingInfo — 외래 키 → WeddingInfo.unique_id — NOT NULL
  • first_birth_info (돌잔치 정보) — FirstBirthInfo — 외래 키 → FirstBirthInfo.unique_id — NOT NULL
  • store (지점) — Store — 외래 키 → Store.unique_id — NOT NULL

CustomerItem (고객 견적 상품)

  • unique_id (고유 번호) — text — 기본 키 — NOT NULL
  • estimate_type (견적서 타입) — ESTIMATE_TYPE
  • item_info_type (상품 설명 타입) — ITEM_INFO_TYPE
  • rent_type (렌트 상품 타입) — RENT_TYPE
  • food_type (식사 음주류 유형) — FOOD_TYPE
  • name (상품명) — text
  • choice_type (선택 사항) — CHOICE_TYPE
  • price_type (가격 유형) — PRICE_TYPE
  • image (소개 이미지) — image
  • price (비용) — number
  • contents (상품 설명) — text
  • storeItem (지점 상품 정보) — StoreItem — 외래 키 → StoreItem.unique_id — NOT NULL
  • customer (고객) — Customer — 외래 키 → Customer.unique_id — NOT NULL

CustomerItemOption (고객 견적 상품 옵션)

  • unique_id (고유 번호) — text — 기본 키 — NOT NULL
  • choice_type (선택 사항) — CHOICE_TYPE
  • estimate_type (견적서 타입) — ESTIMATE_TYPE
  • price_type (가격 유형) — PRICE_TYPE
  • name (상품명) — text
  • price (비용) — number
  • contents (상품 설명) — text
  • store_item_option (지점 상품 옵션) — StroeItemOption — 외래 키 → StoreItemOption.unique_id — NOT NULL
  • customer (고객) — Customer — 외래 키 → Customer.unique_id — NOT NULL

FirstBirthInfo (고객 돌잔치 정보)

  • unique_id (고유 번호) — text — 기본 키 — NOT NULL
  • child_name (주인공 이름) — text
  • birth_at (주인공 탄생일) — date
  • parent_name (부모 이름) — text
  • phone (부모님 연락처) — phone

InitItemTemplate (초기 상품 정보)

  • unique_id (고유 번호) — text — 기본 키 — NOT NULL
  • estimate_type (견적서 타입) — ESTIMATE_TYPE
  • item_info_type (상품 설명 타입) — ITEM_INFO_TYPE
  • rent_type (렌트 상품 타입) — RENT_TYPE
  • food_type (식사 음주류 유형) — FOOD_TYPE
  • price_type (가격 유형) — PRICE_TYPE
  • name (상품명) — text
  • choice_type (선택 사항) — CHOICE_TYPE
  • image (소개 이미지) — image
  • price (비용) — number
  • contents (설명) — text

Log (로그)

  • unique_id (고유 번호) — text — 기본 키 — NOT NULL
  • log_type (로그 유형) — LOG_TYPE
  • created_at (생성일) — date
  • contetns (내용) — text
  • user (유저) — User — 외래 키 → User.unique_id — NOT NULL

Store (지점)

  • unique_id (고유 번호) — text — 기본 키 — NOT NULL
  • name (지점명) — text
  • wedding_contract_contents (웨딩 계약서) — text
  • first_birthday_contract_contents (돌잔치 계약서) — text
  • wedding_note (유의사항) — text
  • first_birth_note (돌잔치 유의사항) — text

StoreContents (지점 컨텐츠)

  • unique_id (고유 번호) — text — 기본 키 — NOT NULL
  • estimate_type (견적서 타입) — ESTIMATE_TYPE
  • contents_type (컨텐츠 타입) — CONTENTS_TYPE
  • sort (순서) — number
  • image (이미지) — image
  • video_id (비디오 아이디) — text
  • introduce (이미지/비디오 설명) — text
  • store (지점) — Store — 외래 키 → Store.unique_id — NOT NULL

StoreItem (지점 상품 정보)

  • unique_id (고유 번호) — text — 기본 키 — NOT NULL
  • estimate_type (견적서 타입) — ESTIMATE_TYPE
  • item_info_type (상품 설명 타입) — ITEM_INFO_TYPE
  • rent_type (렌트 상품 타입) — RENT_TYPE
  • food_type (식사 음주류 유형) — FOOD_TYPE
  • price_type (가격 유형) — PRICE_TYPE
  • name (상품명) — text
  • choice_type (선택 사항) — CHOICE_TYPE
  • image (소개 이미지) — image
  • price (비용) — number
  • contents (상품 설명) — text
  • store (지점) — Store — 외래 키 → Store.unique_id — NOT NULL

StoreItemOption (지점 상품 옵션)

  • unique_id (고유 번호) — text — 기본 키 — NOT NULL
  • estimate_type (견적서 타입) — ESTIMATE_TYPE
  • name (상품명) — text
  • choice_type (선택 사항) — CHOICE_TYPE
  • price_type (가격 유형) — PRICE_TYPE
  • price (비용) — number
  • contents (상품 설명) — text
  • store (지점) — Store — 외래 키 → Store.unique_id — NOT NULL

User (유저)

  • unique_id (고유 번호) — text — 기본 키 — NOT NULL
  • user_type (유저 유형) — USER_TYPE
  • user_state (유저 상태) — USER_STATE
  • email (이메일) — text
  • password (비밀번호) — text
  • init_password (초기 비밀번호) — text
  • control_password (제어 비밀번호) — text
  • manager_name (매니저명) — text
  • phone (휴대폰 번호) — text
  • created_at (생성일) — date
  • store (지점) — Store — 외래 키 → Store.unique_id — NOT NULL

WeddingInfo (고객 웨딩 정보)

  • unique_id (고유 번호) — text — 기본 키 — NOT NULL
  • groom_name (신랑 성함) — text
  • bride_name (신부 성함) — text
  • phone (전화번호) — text