exam-hotel
Tables (6)
hotels
- hotel_id — BIGINT — Primary key — NOT NULL
- name — VARCHAR(100) — NOT NULL
point_histories
- point_history_id — BIGINT — Primary key — NOT NULL
- user_id — BIGINT — NOT NULL
- amount — INT — NOT NULL
- type — VARCHAR(20) — NOT NULL
- reference_id — BIGINT
- description — VARCHAR(255)
- expire_at — DATETIME
- created_at — DATETIME — NOT NULL
- INDEX — `idx_PointHistories_user`
reservations
- reservation_id — BIGINT — Primary key — NOT NULL
- room_id — BIGINT — Foreign key → rooms.room_id — NOT NULL
- user_id — BIGINT — NOT NULL
- check_in_date — DATE — NOT NULL
- check_out_date — DATE — NOT NULL
- guest_count — TINYINT — NOT NULL
- reservation_code — VARCHAR(50) — NOT NULL
- status — VARCHAR(20) — NOT NULL
- created_at — DATETIME — NOT NULL
review_images
- review_image_id — BIGINT — Primary key — NOT NULL
- url — VARCHAR(255) — NOT NULL
- review_id — BIGINT — Foreign key → reviews.review_id — 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
- is_visible — TINYINT(1) — NOT NULL
- created_at — DATETIME — 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
- off_peak_price — DECIMAL(10, 0) — NOT NULL
- peak_price — DECIMAL(10, 0) — NOT NULL