ancillary_purchases table

The ancillary_purchases table in the Airline Reservation Database Schema schema has 9 columns, keyed by id, with 4 foreign keys to ancillary_products, bookings, booking_passengers and booking_segments.

Amount is copied from the product at purchase, so a later price change never rewrites what was paid.

Columns (9)

Columns of the ancillary_purchases table
ColumnTypeConstraintsDescription
iduuidprimary key
product_iduuidnot null, references ancillary_products.id
booking_iduuidnot null, references bookings.id
booking_passenger_iduuidreferences booking_passengers.id
booking_segment_iduuidreferences booking_segments.id
quantitysmallintnot null
amount_minorbigintnot null
currencychar(3)not null
purchased_attimestamptznot null

Indexes (1)

  • (booking_id)

Relationships