waitlists table

The waitlists table in the Airline Reservation Database Schema schema has 7 columns, keyed by id, with 3 foreign keys to bookings, flights and fare_classes.

Ordered queue per flight and class. Clearing a waitlist is what happens when a cancellation frees inventory.

Columns (7)

Columns of the waitlists table
ColumnTypeConstraintsDescription
iduuidprimary key
booking_iduuidnot null, references bookings.id
flight_iduuidnot null, references flights.id
fare_class_iduuidnot null, references fare_classes.id
positionsmallintnot null
statuswaitlist_statusnot null
created_attimestamptznot null

Indexes (1)

  • (flight_id, fare_class_id, position)

Relationships