exam-hotel
Tables (9)
files
- 파일 아이디 (file_id) — BIGINT — Primary key — NOT NULL
- 파일 주소 (file_url) — VARCHAR(20) — NOT NULL
- 객실 아이디 (room_id) — BIGINT — Foreign key → rooms.객실 아이디 — NOT NULL
hotels
- 호텔 아이디 (hotel_id) — BIGINT — Primary key — NOT NULL
- 호텔 이름 (name) — VARCHAR(100) — NOT NULL
members
- member_id — BIGINT — Primary key — NOT NULL — auto_increment
- member_password — VARCHAR(100) — NOT NULL
- member_name — VARCHAR(20) — NOT NULL
- member_contact — VARCHAR(11) — NOT NULL — unique
- member_state — VARCHAR(10) — NOT NULL
- member_latest_login_at — DATE — NOT NULL
- member_role — VARCHAR(10) — NOT NULL
- member_point — INT — NOT NULL
price
- 아이디 (price_id) — Primary key — NOT NULL
- 성수기/비수기 (season) — VARCHAR(20) — NOT NULL
- 가격 (season_price) — INT — NOT NULL
- 객실 아이디 (room_id) — BIGINT — Foreign key → rooms.객실 아이디 — NOT NULL
reservation_date
- 예약날짜 아이디 (reservation_date_id) — BIGINT — Primary key — NOT NULL
- 예약 날짜 (reservation_date) — DATETIME — NOT NULL
- 예약 여부 (is_reservation) — Bool — NOT NULL
- 객실 아이디 (room_id) — BIGINT — Foreign key → rooms.객실 아이디 — NOT NULL
reservations
- 예약 아이디 (reservation_id) — BIGINT — Primary key — NOT NULL
- 체크인 날짜 (check_in_date) — DATETIEM — NOT NULL
- 체크아웃 날짜 (check_out_date) — DATETIME — NOT NULL
- 인원수 (capacity) — TINYINT — NOT NULL
- 예약자 이름 (user_name) — VARCHAR(20) — NOT NULL
- 연락처 (user_contact) — VARCHAR(11) — NOT NULL
- 예약 상태 (reservation_state) — VARCHAR(20) — NOT NULL
- 객실 아이디 (room_id) — BIGINT — Foreign key → rooms.객실 아이디 — NOT NULL
- 예약 번호 (reservation_number) — VARCHAR(50)
review
- review_id — BIGINT — Primary key — NOT NULL — auto_increment
- book_id — BIGINT — NOT NULL
- review_rate — INT — NOT NULL — 1~5점
- review_comment — VARCHAR(400) — NOT NULL
- created_at — DATETIME — NOT NULL
- member_id — BIGINT — Foreign key → members.member_id — NOT NULL — auto_increment
- 객실 아이디 (room_id) — BIGINT — Foreign key → rooms.객실 아이디 — NOT NULL
- 노출 여부 (isExposed) — Bool — NOT NULL
rooms
- 객실 아이디 (room_id) — BIGINT — Primary key — NOT NULL
- 객실 이름 (name) — VARCHAR(100) — NOT NULL
- 객실 수용량 (capacity) — TINYINT — NOT NULL
- 층수 (floor) — TINYINT — NOT NULL
- 침대 (bathtub_flag) — TINYINT(1) — NOT NULL
- 뷰타입 (view_type) — TINYINT — NOT NULL
- 생성일 (created_at) — DATETIME — NOT NULL
- 호텔 아이디 (hotel_id) — BIGINT — Foreign key → hotels.호텔 아이디 — NOT NULL