baggage table

The baggage table in the Airline Reservation Database Schema schema has 8 columns, keyed by id, with 2 foreign keys to booking_passengers and booking_segments.

The tag number is the ten-digit licence plate the whole industry tracks. Tied to a segment because a bag can be short-checked to a connection.

Columns (8)

Columns of the baggage table
ColumnTypeConstraintsDescription
iduuidprimary key
booking_passenger_iduuidnot null, references booking_passengers.id
booking_segment_iduuidnot null, references booking_segments.id
tag_numbervarchar(10)unique, not null
weight_kgdecimal(5,2)
statusbaggage_statusnot null
is_excessbooleannot null
checked_attimestamptz

Indexes (2)

  • (booking_passenger_id)
  • (status)

Relationships