disruptions table
The disruptions table in the Airline Reservation Database Schema schema has 8 columns, keyed by id, with 1 foreign key to flights. 1 column in rebookings references it.
is_carrier_fault is the column that decides compensation liability under EU261 and similar regimes. Not a detail worth omitting.
Columns (8)
| Column | Type | Constraints | Description |
|---|---|---|---|
| id | uuid | primary key | |
| flight_id | uuid | not null, references flights.id | |
| type | disruption_type | not null | |
| reason_code | varchar(20) | ||
| delay_minutes | integer | ||
| is_carrier_fault | boolean | not null | |
| description | varchar(1000) | ||
| occurred_at | timestamptz | not null |
Indexes (2)
(flight_id)(occurred_at)
Relationships
disruptions.flight_idreferencesflights.idrebookings.disruption_idreferencesdisruptions