CloudSketch AI Logo
FeaturesTemplatesPricingEnterpriseAboutContactLog in
🌙☀️
Log inStart free
Home/Templates/Aviation

🛫 Aviation · Database ERD

Airline Frequent Flyer Schema

Tables for an airline frequent flyer programme: members, tiers, flights flown, miles earned and redemptions.

More Aviation templates

Drawing diagram…

What this diagram shows

  • Miles are earned per flight segment and expire
  • Tier status depends on qualifying miles in a year
  • Redemptions reduce the member's balance

Prompt used

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.

Mermaid code
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
  }

Related templates

FlowchartAviation

Airport Baggage Handling Flow

The journey of a checked bag through an airport: check-in, security screening, sorting to the right flight and loading, with exceptions.

State MachineAviation

Aircraft Maintenance Work Order Lifecycle

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.

C4 ArchitectureProAviation

Airport Operations Platform

The systems that run an airport day to day: operational database, resource management for gates and stands, flight information displays and collaborative decision-making.

Data FlowAviation

Flight Operations Data Flow

How flight data moves around an airline's operations: flight planning, the aircraft's ACARS messages, flight data monitoring and crew reports.

GanttAviation

Airline Crew Scheduling Timeline

A monthly crew planning cycle for an airline: pairing construction, bidding, roster publishing and day-of-operations changes.

NetworkAviation

Airport IT Network Topology

The IT network of an airport: separate zones for passenger Wi-Fi, common-use terminal equipment, operations systems and airline links.