seats table
The seats table in the Airline Reservation Database Schema schema has 9 columns, keyed by id, with 1 foreign key to seat_maps. 2 columns in seat_assignments and boarding_passes reference it.
The physical seat on a layout, not on a flight. Exit row and legroom flags drive both pricing and safety eligibility rules.
Columns (9)
| Column | Type | Constraints | Description |
|---|---|---|---|
| id | uuid | primary key | |
| seat_map_id | uuid | not null, references seat_maps.id | |
| seat_number | varchar(5) | not null | |
| cabin | cabin_class | not null | |
| row_number | smallint | not null | |
| position | seat_position | not null | |
| is_exit_row | boolean | not null | |
| is_bulkhead | boolean | not null | |
| extra_legroom | boolean | not null |
Indexes (2)
(seat_map_id, seat_number)unique(seat_map_id, cabin)
Relationships
seats.seat_map_idreferencesseat_maps.idseat_assignments.seat_idreferencesseatsboarding_passes.seat_idreferencesseats