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)

Columns of the airports table
ColumnTypeConstraintsDescription
iata_codechar(3)primary key
icao_codechar(4)unique
namevarchar(160)not null
cityvarchar(120)not null
country_codechar(2)not null
timezonevarchar(60)not null
latitudedecimal(9,6)
longitudedecimal(9,6)

Indexes (1)

  • (country_code, city)

Relationships