flight_status_events table

The flight_status_events table in the Airline Reservation Database Schema schema has 6 columns, keyed by id, with 1 foreign key to flights.

Append-only status history. flights.status is the latest value; this table is why an on-time performance report is possible.

Columns (6)

Columns of the flight_status_events table
ColumnTypeConstraintsDescription
iduuidprimary key
flight_iduuidnot null, references flights.id
statusflight_statusnot null
reason_codevarchar(20)
notevarchar(500)
occurred_attimestamptznot null

Indexes (1)

  • (flight_id, occurred_at)

Relationships

  • flight_status_events.flight_id references flights.id