nhn-final

Tables (11)

Holiday_Calendar (Untitled11)

  • 성수기 요일 (holiday_date) — DATE — Primary key — NOT NULL
  • 이름 (name) — VARCHAR(50)

Hotels (Untitled)

  • 호텔 아이디 (hotel_id) — BIGINT — Primary key — NOT NULL
  • 호탤 이름 (name) — VARCHAR(100)

Point_Ledger (Untitled8)

  • 포인트아이디 (point_id) — BIGINT — Primary key — NOT NULL
  • 사용자 아이디 (user_id) — BIGINT — Foreign key → Users.사용자 아이디 — NOT NULL
  • 예약 아이디 (reservation_id) — BIGINT — Foreign key → Reservations.예약 아이디 — NOT NULL
  • 금액 (amount) — INT
  • 이유 (reason) — ENUM('RESERVATION_EARN','RESERVATION_CANCEL','REVIEW_EARN')
  • 생성시각 (created_at) — DATETIME
  • 만료시각 (expired_at) — DATETIME
  • 리뷰 아이디 (review_id) — BIGINT — Foreign key → Reviews.리뷰 아이디 — NOT NULL

Reservation_Rooms (Untitled7)

  • 예약 아이디 (reservation_id) — BIGINT — Foreign key → Reservations.예약 아이디 — NOT NULL
  • 객실 아이디 (room_id) — BIGINT — Foreign key → Rooms.객실 아이디 — NOT NULL

Reservations (Untitled6)

  • 예약 아이디 (reservation_id) — Primary key — NOT NULL
  • 예약번호 (reservation_code) — BARCHAR(20)
  • 사용자 아이디 (user_id) — BIGINT — Foreign key → Users.사용자 아이디 — NOT NULL
  • 체크인 (check_in) — DATE
  • 체크아웃 (check_out) — DATE
  • 게스트 인원 (guest_count) — INT
  • 상태 (status) — ENUM('BOOKED','CANCELED')
  • 생성시각 (created_at) — DATETIME
  • 취소시각 (canceled_at) — DATETIME

Reviews (Untitled9)

  • 리뷰 아이디 (review_id) — BIGINT — Primary key — NOT NULL
  • 사용자 아이디 (user_id) — BIGINT — Foreign key → Users.사용자 아이디 — NOT NULL
  • 예약 아이디 (reservation_id) — Foreign key → Reservations.예약 아이디 — NOT NULL

Reviews_Images (Untitled10)

  • 리뷰이미지 아이디 (review_image_id) — BIGINT — Primary key — NOT NULL
  • 이미지 링크 (image_url) — VARCHAT(50)
  • 리뷰 아이디 (review_id) — BIGINT — Foreign key → Reviews.리뷰 아이디 — NOT NULL

Room_Images (Untitled4)

  • 객실 사진 (room_image_id) — BIGINT — Primary key — NOT NULL
  • 이미지 url (image_url) — VARCHAR(500)
  • 정렬 (sort_order) — INT

Room_Prices (Untitled3)

  • 객실 가격 아이디 (room_price_id) — BIGINT — Primary key — NOT NULL
  • 시즌 타입 (season_type) — ENUM('PEAK','OFF_PEAK')
  • 가격 (price) — INT

Rooms (Untitled2)

  • 객실 아이디 (room_id) — BIGINT — Primary key — NOT NULL
  • 호텔 아이디 (hotel_id) — BIGINT — Foreign key → Hotels.호텔 아이디 — NOT NULL
  • 객실 이름 (name) — VARCHAR(100)
  • 객실 크기 (capacity) — TINYINT
  • 객실 층 (floor) — TINYINT
  • 욕조여부 (bathhub_flag) — TINYINT
  • 뷰 타입 (view_type) — TINYINT
  • 생성 시각 (created_at) — DATETIME

Users (Untitled5)

  • 사용자 아이디 (user_id) — BIGINT — Primary key — NOT NULL
  • 로그인 아이디 (login_id) — VARCHAR(50)
  • 비밀번호 (password) — VARCHAR(255)
  • 생성시각 (created_at) — DATETIME