
🛫 Aviation · Database ERD
Tables for an airline frequent flyer programme: members, tiers, flights flown, miles earned and redemptions.
Drawing diagram…
Frequent flyer programme database: members belong to a tier; flight segments flown by a member earn miles (with fare class and expiry date); partner transactions also earn miles; redemptions (award tickets, upgrades) spend miles; tier reviews record status changes.
erDiagram
TIER ||--o{ MEMBER : has
MEMBER ||--o{ FLIGHT_SEGMENT : flies
FLIGHT_SEGMENT ||--|| MILES_TXN : earns
MEMBER ||--o{ MILES_TXN : "balance of"
PARTNER ||--o{ MILES_TXN : "partner earn"
MEMBER ||--o{ REDEMPTION : makes
MEMBER ||--o{ TIER_REVIEW : "reviewed in"
TIER {
int id PK
string name
int qualifying_miles
}
MEMBER {
int id PK
int tier_id FK
string ff_number
string name
}
FLIGHT_SEGMENT {
int id PK
int member_id FK
string flight_no
date flown_on
string fare_class
}
MILES_TXN {
int id PK
int member_id FK
int partner_id FK
int miles
date expires_on
}
PARTNER {
int id PK
string name
string category
}
REDEMPTION {
int id PK
int member_id FK
string type
int miles_used
}
TIER_REVIEW {
int id PK
int member_id FK
date reviewed_on
string result
}The journey of a checked bag through an airport: check-in, security screening, sorting to the right flight and loading, with exceptions.
How a maintenance work order moves in an airline MRO: from a pilot's defect report to inspection, parts, repair and certificate of release to service.
The systems that run an airport day to day: operational database, resource management for gates and stands, flight information displays and collaborative decision-making.
How flight data moves around an airline's operations: flight planning, the aircraft's ACARS messages, flight data monitoring and crew reports.
A monthly crew planning cycle for an airline: pairing construction, bidding, roster publishing and day-of-operations changes.
The IT network of an airport: separate zones for passenger Wi-Fi, common-use terminal equipment, operations systems and airline links.