bookings table
The bookings table in the Airline Reservation Database Schema schema has 11 columns, keyed by id. 6 columns in booking_passengers, booking_segments, tickets, waitlists and 2 more reference it.
The PNR. record_locator is the six-character code a passenger quotes. A booking holds seats; it does not itself represent money paid.
Columns (11)
| Column | Type | Constraints | Description |
|---|---|---|---|
| id | uuid | primary key | |
| record_locator | char(6) | unique, not null | |
| status | booking_status | not null | |
| channel | booking_channel | not null | |
| contact_email | varchar(255) | ||
| contact_phone | varchar(32) | ||
| currency | char(3) | not null | |
| total_amount_minor | bigint | not null | |
| booked_at | timestamptz | not null | |
| ticketing_deadline | timestamptz | ||
| cancelled_at | timestamptz |
Indexes (2)
(status, booked_at)(contact_email)
Relationships
booking_passengers.booking_idreferencesbookingsbooking_segments.booking_idreferencesbookingstickets.booking_idreferencesbookingswaitlists.booking_idreferencesbookingsancillary_purchases.booking_idreferencesbookingspayments.booking_idreferencesbookings