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)

Columns of the seats table
ColumnTypeConstraintsDescription
iduuidprimary key
seat_map_iduuidnot null, references seat_maps.id
seat_numbervarchar(5)not null
cabincabin_classnot null
row_numbersmallintnot null
positionseat_positionnot null
is_exit_rowbooleannot null
is_bulkheadbooleannot null
extra_legroombooleannot null

Indexes (2)

  • (seat_map_id, seat_number) unique
  • (seat_map_id, cabin)

Relationships