exam_hotel
Tables (8)
holidays
- holiday_date — DATE — Primary key — NOT NULL
- name — VARCHAR(50) — NOT NULL
hotels
- hotel_id — BIGINT — Primary key — NOT NULL
- name — VARCHAR(100) — NOT NULL
points
- points_id — BIGINT — Primary key — NOT NULL
- user_id — BIGINT — NOT NULL
- amount — INT — NOT NULL
- reason — VARCHAR(100) — NOT NULL
- expired_at — DATE
- created_at — DATETIME — NOT NULL
reservations
- reservation_id — BIGINT — Primary key — NOT NULL
- hotel_id — BIGINT — Foreign key → hotels.hotel_id — NOT NULL
- room_id — BIGINT — Foreign key → rooms.room_id — NOT NULL
- reservation_code — VARCHAR(20) — NOT NULL
- user_id — BIGINT — NOT NULL
- check_in — DATE — NOT NULL
- check_out — DATE — NOT NULL
- people — INT — NOT NULL
- created_at — DATETIME — NOT NULL
- canceled — BOOLEAN — NOT NULL
review_images
- review_image_id — BIGINT — Primary key — NOT NULL
- review_id — BIGINT — Foreign key → reviews.review_id — NOT NULL
- image_url — VARCHAR(300) — NOT NULL
reviews
- review_id — BIGINT — Primary key — NOT NULL
- room_id — BIGINT — Foreign key → rooms.room_id — NOT NULL
- user_id — BIGINT — NOT NULL
- content — TEXT — NOT NULL
- created_at — DATETIME — NOT NULL
- visible — BOOLEAN — NOT NULL
room_images
- image_id — BIGINT — Primary key — NOT NULL
- room_id — BIGINT — Foreign key → rooms.room_id — NOT NULL
- image_url — VARCHAR(300) — NOT NULL
rooms
- room_id — BIGINT — Primary key — NOT NULL
- hotel_id — BIGINT — Foreign key → hotels.hotel_id — 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