hotel
Tables (9)
hotels (호텔)
- hotel_id (Key) — Primary key — NOT NULL
- name (Field)
observations (객실 예약)
- observation_id (예약 번호) — Primary key — NOT NULL
- check_in_at (체크인 날짜)
- check_out_at (체크아웃 날짜)
- number_of_people (숙박 인원)
- observation_at (예약 날짜)
- observation_status (예약 상태)
- user_id (고객 번호) — Foreign key → users.user_id — NOT NULL
- room_id (객실 번호) — Foreign key → rooms.room_id — NOT NULL
- hotel_id (호텔 번호) — Foreign key → hotels.hotel_id — NOT NULL
points (포인트)
- point_id (포인트 번호) — Primary key — NOT NULL
- user_id (고객 번호) — Foreign key → users.user_id — NOT NULL
- point_value (포인트 값)
- point_reason (적립/차감 사유)
- point_created_at (생성 일시)
prices (가격표)
- price_id (가격표 아이디) — Primary key — NOT NULL
- price_season (시즌)
- price_value (가격)
- room_id (객실 번호) — Foreign key → rooms.room_id — NOT NULL
review_imgs (리뷰 이미지)
- review_img_id (리뷰 이미지 번호) — Primary key — NOT NULL
- review_id (리뷰 번호) — Foreign key → reviews.review_id — NOT NULL
- review_img_url (리뷰 이미지 url)
reviews (리뷰)
- review_id (리뷰 번호) — Primary key — NOT NULL
- user_id (고객 번호) — Foreign key → users.user_id — NOT NULL
- room_id (객실 번호) — Foreign key → rooms.room_id — NOT NULL
- review_description (리뷰 내용)
- review_view_yn (리뷰 노출 여부)
room_imgs (객실 이미지)
- room_img_id (객실 이미지 번호) — Primary key — NOT NULL
- room_id (객실 번호) — Foreign key → rooms.room_id — NOT NULL
- room_img_url (객실 이미지 url)
rooms (객실)
- room_id (Key) — Primary key — NOT NULL
- hotel_id (Key2) — Foreign key → hotels.hotel_id — NOT NULL
- name (객실명)
- capacity (숙박 인원)
- floor (층)
- bathtub_flag (욕조 여부)
- view_type (전망)
- created_at (생성 일시)
users (고객)
- user_id (고객 번호) — Primary key — NOT NULL
- user_name (고객 이름)
- user_password (고객 비밀번호)
- user_phone (고객 전화번호)