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)
| Column | Type | Constraints | Description |
|---|---|---|---|
| id | uuid | primary key | |
| flight_id | uuid | not null, references flights.id | |
| status | flight_status | not null | |
| reason_code | varchar(20) | ||
| note | varchar(500) | ||
| occurred_at | timestamptz | not null |
Indexes (1)
(flight_id, occurred_at)
Relationships
flight_status_events.flight_idreferencesflights.id