fare_rules table
The fare_rules table in the Airline Reservation Database Schema schema has 10 columns, keyed by id, with 1 foreign key to fares.
The conditions attached to a fare. This is what a passenger is really buying when a cheaper ticket is non-refundable.
Columns (10)
| Column | Type | Constraints | Description |
|---|---|---|---|
| id | uuid | primary key | |
| fare_id | uuid | not null, references fares.id | |
| is_refundable | boolean | not null | |
| is_changeable | boolean | not null | |
| change_fee_minor | bigint | ||
| cancellation_fee_minor | bigint | ||
| min_stay_nights | smallint | ||
| max_stay_days | smallint | ||
| advance_purchase_days | smallint | ||
| checked_bags_included | smallint | not null |
Relationships
fare_rules.fare_idreferencesfares.id