guests table
The guests table in the Hotel Booking Database Schema schema has 9 columns, keyed by id. 3 columns in booking_guests, bookings and reviews reference it.
The person who books is not always the person who sleeps there. See booking_guests.
Columns (9)
| Column | Type | Constraints | Description |
|---|---|---|---|
| id | uuid | primary key | |
| varchar(255) | unique | ||
| first_name | varchar(80) | not null | |
| last_name | varchar(80) | not null | |
| phone | varchar(32) | ||
| date_of_birth | date | ||
| nationality | char(2) | ||
| loyalty_number | varchar(40) | unique | |
| created_at | timestamptz | not null |
Indexes (1)
(last_name, first_name)
Relationships
booking_guests.guest_idreferencesguestsbookings.primary_guest_idreferencesguestsreviews.guest_idreferencesguests