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)
| Column | Type | Constraints | Description |
|---|---|---|---|
| id | uuid | primary key | |
| check_in_id | uuid | unique, not null, references check_ins.id | |
| seat_id | uuid | references seats.id | |
| sequence_number | smallint | not null | |
| boarding_group | varchar(10) | ||
| barcode_data | varchar(500) | not null | |
| gate | varchar(10) | ||
| boarding_time | timestamptz | ||
| boarded_at | timestamptz |
Indexes (1)
(check_in_id)
Relationships
boarding_passes.check_in_idreferencescheck_ins.idboarding_passes.seat_idreferencesseats.id