boarding_passes table

The boarding_passes table in the Airline Reservation Database Schema schema has 9 columns, keyed by id, with 2 foreign keys to check_ins and seats.

sequence_number is the order of acceptance and is what denied-boarding rules work from when a flight is oversold.

Columns (9)

Columns of the boarding_passes table
ColumnTypeConstraintsDescription
iduuidprimary key
check_in_iduuidunique, not null, references check_ins.id
seat_iduuidreferences seats.id
sequence_numbersmallintnot null
boarding_groupvarchar(10)
barcode_datavarchar(500)not null
gatevarchar(10)
boarding_timetimestamptz
boarded_attimestamptz

Indexes (1)

  • (check_in_id)

Relationships