test2
Tables (8)
hotels
- hotel_id — BIGINT — Primary key — NOT NULL
- name — VARCHAR(100) — NOT NULL
point_details
- point_detail_id — BIGINT — Primary key — NOT NULL
- point_id — BIGINT — Foreign key → points.point_id — NOT NULL
- point_history — VARCHAR(255)
- created_at — DATE — NOT NULL
- earn_point — BIGINT
- deductive_point — BIGINT
points
- point_id — BIGINT — Primary key — NOT NULL
- user_id — BIGINT — Foreign key → users.user_id — NOT NULL
- points — BIGINT — NOT NULL
reservations
- reservation_id — BIGINT — Primary key — NOT NULL
- room_id — BIGINT — Foreign key → rooms.room_id — NOT NULL
- user_id — BIGINT — Foreign key → users.user_id — NOT NULL
- check_in_date — DATE — NOT NULL
- check_out_date — DATE — NOT NULL
- people_count — INT — NOT NULL
reviews
- review_id — INT — Primary key — NOT NULL
- room_id — BIGINT — Foreign key → rooms.room_id — NOT NULL
- user_id — BIGINT — Foreign key → users.user_id — NOT NULL
- content — VARCHAR(255)
- image — VARCHAR(255)
roles
- role_id — INT — Primary key — NOT NULL
- role_name — VARCHAR(100) — 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
users
- user_id — BIGINT — Primary key — NOT NULL
- user_name — VARCHAR(100) — NOT NULL
- password — VARCHAR(255) — NOT NULL
- role_id — INT — Foreign key → roles.role_id — NOT NULL