crew_assignments table

The crew_assignments table in the Airline Reservation Database Schema schema has 4 columns, with 2 foreign keys to flights and crew_members.

The role is repeated here rather than read from crew_members, because a first officer can be rostered as captain on a given flight.

Columns (4)

Columns of the crew_assignments table
ColumnTypeConstraintsDescription
flight_iduuidnot null, references flights.id
crew_member_iduuidnot null, references crew_members.id
rolecrew_rolenot null
assigned_attimestamptznot null

Indexes (1)

  • (crew_member_id, assigned_at)

Relationships