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)

Columns of the bookings table
ColumnTypeConstraintsDescription
iduuidprimary key
record_locatorchar(6)unique, not null
statusbooking_statusnot null
channelbooking_channelnot null
contact_emailvarchar(255)
contact_phonevarchar(32)
currencychar(3)not null
total_amount_minorbigintnot null
booked_attimestamptznot null
ticketing_deadlinetimestamptz
cancelled_attimestamptz

Indexes (2)

  • (status, booked_at)
  • (contact_email)

Relationships