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)

Columns of the rebookings table
ColumnTypeConstraintsDescription
iduuidprimary key
disruption_iduuidreferences disruptions.id
original_segment_iduuidnot null, references booking_segments.id
new_segment_iduuidreferences booking_segments.id
reasonrebooking_reasonnot null
fare_difference_minorbigint
waivedbooleannot null
created_attimestamptznot null

Indexes (2)

  • (original_segment_id)
  • (disruption_id)

Relationships