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)
| Column | Type | Constraints | Description |
|---|---|---|---|
| id | uuid | primary key | |
| booking_passenger_id | uuid | not null, references booking_passengers.id | |
| booking_segment_id | uuid | not null, references booking_segments.id | |
| tag_number | varchar(10) | unique, not null | |
| weight_kg | decimal(5,2) | ||
| status | baggage_status | not null | |
| is_excess | boolean | not null | |
| checked_at | timestamptz |
Indexes (2)
(booking_passenger_id)(status)
Relationships
baggage.booking_passenger_idreferencesbooking_passengers.idbaggage.booking_segment_idreferencesbooking_segments.id