₩

Tables (5)

cafe (카페)

  • cafe_id (카페의 id) — int — Primary key — NOT NULL
  • cafe_name (카페의 이름) — text
  • location (카페의 주소) — text
  • phone (카페의 전화번호) — varchar(20)

customer (유저)

  • customer_id (커스터머의 id) — int — Primary key — NOT NULL
  • nickname (사용자의 닉네임) — test
  • name (사용자의 이름) — varchar(20)
  • phone (사용자의 전화번호) — varchar(20)

reservation (예약)

  • reservation_id (예약 id) — int — Primary key — NOT NULL
  • customer_id (커스터머의 id) — int — Foreign key → customer.customer_id — NOT NULL
  • theme_id (테마의 id) — int — Foreign key → theme.theme_id — NOT NULL
  • at (대상 일시) — timestamp
  • players_count (참가 인원수) — int
  • is_succes (성공 여부) — bool
  • escape_time (탈출하는데 걸린 시간) — int nullable
  • used_hints_count (사용한 힌트의 수?) — int

review (리부)

  • review_id (리뷰의 id) — int — Primary key — NOT NULL
  • reservation_id (예약 id) — int — Foreign key → reservation.reservation_id — NOT NULL
  • rating (점수) — int
  • content (리뷰의 내용) — text
  • created_at (리뷰가 작성된 일자) — timestamp

theme (테마)

  • theme_id (테마의 id) — int — Primary key — NOT NULL
  • cafe_id (카페의 id) — int — Foreign key → cafe.cafe_id — NOT NULL
  • theme_name (테마의 이름) — text
  • difficulty (테마의 난이도) — char(1)
  • genre (테마의 장르) — text
  • time_limit (제한시간) — int
  • max_players (최대 수용인원) — int