gangcheonsan

테이블 (26)

가격 (price)

  • Key (id) — int — 기본 키 — NOT NULL
  • Key (ticket_type_id) — int — 외래 키 → 티켓타입.Key — NOT NULL
  • Key (cabana_type_id) — int — 외래 키 → 카바나타입.Key — NOT NULL
  • Key (glamping_type_id) — int — 외래 키 → 글램핑타입.Key — NOT NULL
  • Key (time_type_id) — int — 외래 키 → 시간.Key — NOT NULL
  • Key (date_type_id) — int — 외래 키 → 일.Key — NOT NULL
  • Key (season_type_id) — int — 외래 키 → 시즌.Key — NOT NULL
  • Field (price) — int

게시물 (content)

  • id — int — 기본 키 — NOT NULL
  • 메뉴id (menu_id) — int — 외래 키 → 메뉴.id — NOT NULL
  • 유저id (user_id) — int — 외래 키 → 관리자.id — NOT NULL
  • (id2) — 외래 키 → 메뉴.템플릿 id — NOT NULL
  • 제목 (title) — text
  • 내용 (content) — text
  • 장소 타입 (content_type)

게시물-이미지 연결 (content_image)

  • 이미지id (image_id) — int — 외래 키 → 이미지파일.id — NOT NULL
  • 게시물id (content_id) — int — 외래 키 → 게시물.id — NOT NULL
  • (id2) — 외래 키 → 게시물.id2 — NOT NULL
  • 순서 (orderby) — int

관리자 (admin)

  • id — int — 기본 키 — NOT NULL
  • 이름 (name) — text
  • 전화번호 (phone_num) — text
  • 권한 (rank) — int

글램핑-옵션 (glamping_type_option_type_relationship)

  • Key (glamping_type_id) — int — 외래 키 → 글램핑타입.Key — NOT NULL
  • Key (option_type_id) — int — 외래 키 → 옵션타입.Key — NOT NULL

글램핑디테일 (glamping_detail)

  • Key (id) — int — 기본 키 — NOT NULL
  • Key (glamping_type_id) — int — 외래 키 → 글램핑타입.Key — NOT NULL
  • Key (zone) — int — 외래 키 → 글램핑존타입.Key — NOT NULL
  • Field (number) — int
  • Field (usable) — tinyint

글램핑존타입 (glamping_zone_type)

  • Key (id) — int — 기본 키 — NOT NULL
  • Field (type) — text

글램핑타입 (glamping_type)

  • Key (id) — int — 기본 키 — NOT NULL
  • Field (type) — text

메뉴 (menu)

  • id — int — 기본 키 — NOT NULL
  • 템플릿 id (id2) — 외래 키 → 템플릿 종류.id — NOT NULL
  • 상위메뉴 id (master_id) — int — 외래 키 → 메뉴.id — NOT NULL
  • 이름 (title) — text
  • 서브이름 (sub_title) — text
  • 이동링크 (link) — text
  • 정렬순서 (orderby) — text

메뉴-이미지 연결 (menu-image)

  • 메뉴id (menu_id) — int — 외래 키 → 메뉴.id — NOT NULL
  • 이미지id (image_id) — int — 외래 키 → 이미지파일.id — NOT NULL
  • (id2) — 외래 키 → 메뉴.템플릿 id — NOT NULL
  • 순서? (orderby) — int

시간 (time_type)

  • Key (id) — int — 기본 키 — NOT NULL
  • Field (type) — text
  • Field (start_time) — time
  • Field2 (end_time) — time

시즌 (season_type)

  • Key (id) — int — 기본 키 — NOT NULL
  • Field (type) — text

시즌상세 (season_detail)

  • Key (id) — int — 기본 키 — NOT NULL
  • Key (season_type_id) — int — 외래 키 → 시즌.Key — NOT NULL
  • Field (start_date) — date
  • Field (end_date) — date

예약-글램핑상세 (reservation_item_glamping_detail_relationship)

  • Key (reservation_item_id) — 외래 키 → 예약아이템.Key — NOT NULL
  • Key (glamping_detail_id) — int — 외래 키 → 글램핑디테일.Key — NOT NULL
  • Field (start_date)
  • Field2 (end_date)

예약기록 (reservation_log)

  • Key (id) — int — 기본 키 — NOT NULL
  • 회원 ID (user_id) — int — 외래 키 → 회원.회원 ID — NOT NULL
  • Field (product_type) — text
  • Field (used) — text
  • Field (total_price) — int
  • Field (pg) — text
  • Field (pay_method) — text
  • Field (merchant_uid) — text
  • Field (paid_at) — datetime
  • Field (created_at) — datetime
  • Field (updated_at) — datetime

예약아이템 (reservation_item)

  • Key (id) — 기본 키 — NOT NULL
  • Key (reservation_log_id) — int — 외래 키 → 예약기록.Key — NOT NULL
  • Key (ticket_detail_id) — int — 외래 키 → 티켓디테일.Key — NOT NULL
  • Key (cabana_detail_id) — int — 외래 키 → 카바나디테일.Key — NOT NULL
  • Key (glamping_type_id) — int — 외래 키 → 글램핑타입.Key — NOT NULL
  • Key (option_type_id) — int — 외래 키 → 옵션타입.Key — NOT NULL
  • Field (product_name) — text
  • Field (price) — int
  • Field4 (quantity) — int
  • Field (detail) — text
  • Field5 (is_refund) — int
  • Field6 (refund_quantity) — int
  • Field (name) — text
  • Field2 (phone_num) — text
  • Field (start_date) — date
  • Field2 (end_date) — date

옵션타입 (option_type)

  • Key (id) — int — 기본 키 — NOT NULL
  • Field (name) — text
  • Field2 (price) — int

이미지파일 (image)

  • id — int — 기본 키 — NOT NULL
  • name — text
  • 경로 (path) — text
  • 생성 (created_at) — datetime
  • 수정 (updated_at) — datetime

일 (date_type)

  • Key (id) — int — 기본 키 — NOT NULL
  • Field (type) — text

카바나디테일 (cabana_detail)

  • Key (id) — int — 기본 키 — NOT NULL
  • Key (cabana_type_id) — int — 외래 키 → 카바나타입.Key — NOT NULL
  • Key (zone) — int — 외래 키 → 카바나존타입.Key — NOT NULL
  • Field (number) — int
  • Field (usable) — tinyint

카바나존타입 (cabana_zone_type)

  • Key (id) — int — 기본 키 — NOT NULL
  • Field (type) — text

카바나타입 (cabana_type)

  • Key (id) — int — 기본 키 — NOT NULL
  • Field (type) — text

템플릿 종류 (Untitled)

  • (id) — 기본 키 — NOT NULL

티켓디테일 (ticekt_detail)

  • Key (id) — int — 기본 키 — NOT NULL
  • Key (ticket_type_id) — int — 외래 키 → 티켓타입.Key — NOT NULL
  • Key (time_type_id) — int — 외래 키 → 시간.Key — NOT NULL
  • Field (usable) — tinyint

티켓타입 (ticket_type)

  • Key (id) — int — 기본 키 — NOT NULL
  • Field (type) — text

회원 (user)

  • 회원 ID (id) — int — 기본 키 — NOT NULL
  • 이름 (name) — text
  • 전화번호 (phone_num) — text