rebookings table
The rebookings table in the Airline Reservation Database Schema schema has 8 columns, keyed by id, with 3 foreign keys to disruptions and booking_segments.
Links the old segment to the new one, so a passenger journey stays traceable across an involuntary reroute.
Columns (8)
| Column | Type | Constraints | Description |
|---|---|---|---|
| id | uuid | primary key | |
| disruption_id | uuid | references disruptions.id | |
| original_segment_id | uuid | not null, references booking_segments.id | |
| new_segment_id | uuid | references booking_segments.id | |
| reason | rebooking_reason | not null | |
| fare_difference_minor | bigint | ||
| waived | boolean | not null | |
| created_at | timestamptz | not null |
Indexes (2)
(original_segment_id)(disruption_id)
Relationships
rebookings.disruption_idreferencesdisruptions.idrebookings.original_segment_idreferencesbooking_segments.idrebookings.new_segment_idreferencesbooking_segments.id