seat_maps table
The seat_maps table in the Airline Reservation Database Schema schema has 4 columns, keyed by id, with 1 foreign key to aircraft_types. 2 columns in aircraft and seats reference it.
One aircraft type can fly several configurations. Separating this from the type is what makes a cabin refit possible without rewriting history.
Columns (4)
| Column | Type | Constraints | Description |
|---|---|---|---|
| id | uuid | primary key | |
| aircraft_type_id | uuid | not null, references aircraft_types.id | |
| name | varchar(80) | not null | |
| is_active | boolean | not null |
Relationships
seat_maps.aircraft_type_idreferencesaircraft_types.idaircraft.seat_map_idreferencesseat_mapsseats.seat_map_idreferencesseat_maps