bangbang

테이블 (4)

숙소 (accommodations)

  • 숙소ID (id) — NOTNULL — 기본 키 — NOT NULL
  • 이름 (name) — NOTNULL
  • 위치 (location) — NOTNULL
  • 주소 (address) — NOTNULL
  • 1박 가격 (price_per_night) — NOTNULL
  • 대표이미지URL (thumbnail_url) — NOTNULL
  • 등록일 (created_at) — NOTNULL
  • 유저ID (user_id) — NOTNULL — 외래 키 → 유저.유저ID — NOT NULL

예약 (reservations)

  • 예약ID (id) — NOTNULL — 기본 키 — NOT NULL
  • 체크인날짜 (check_in) — NOTNULL
  • 체크아웃날짜 (check_out) — NOTNULL
  • 성인인원 (adults) — NOTNULL
  • 어린이인원 (children)
  • 유아 (infants)
  • 최종금액 (total_price) — NOTNULL
  • 상태 (status) — NOTNULL
  • 예약일 (created_at) — NOTNULL
  • 유저ID (user_id) — NOTNULL — 외래 키 → 유저.유저ID — NOT NULL
  • 숙소ID (accommodation_id) — NOTNULL — 외래 키 → 숙소.숙소ID — NOT NULL

위시리스트 (wishlists)

  • 유저ID (user_id) — NOTNULL — 외래 키 → 유저.유저ID — NOT NULL
  • 숙소ID (accommodation_id) — NOTNULL — 외래 키 → 숙소.숙소ID — NOT NULL

유저 (users)

  • 유저ID (id) — NOTNULL — 기본 키 — NOT NULL
  • 로그인ID (account) — NOTNULL
  • 비밀번호 (password) — NOTNULL
  • 닉네임 (nickname) — NOTNULL
  • 유저타입 (type) — NOTNULL