airports table
The airports table in the Airline Reservation Database Schema schema has 8 columns, keyed by iata_code. 3 columns in routes and crew_members reference it.
The IATA code is the natural key every other system quotes. timezone is not optional: every departure time in this schema is a LOCAL time at its airport.
Columns (8)
| Column | Type | Constraints | Description |
|---|---|---|---|
| iata_code | char(3) | primary key | |
| icao_code | char(4) | unique | |
| name | varchar(160) | not null | |
| city | varchar(120) | not null | |
| country_code | char(2) | not null | |
| timezone | varchar(60) | not null | |
| latitude | decimal(9,6) | ||
| longitude | decimal(9,6) |
Indexes (1)
(country_code, city)
Relationships
routes.origin_codereferencesairportsroutes.destination_codereferencesairportscrew_members.base_airportreferencesairports