Loyalty · 08 / 26

Data Model and Classification

The logical data model of the loyalty platform: entities, classification matrix, retention, data flows and deletion.

Purpose and scope

This is the logical data model for the loyalty platform: the entities it creates, what each holds, who may see it and how long it is kept. It makes the privacy decisions in ADR-006 concrete. The points ledger and member master stay the systems of record; the platform keeps decisions, evidence, features and copies it needs to explain a credit or a hold.

Core entities

Core entities of the loyalty platform A member has an account with a points balance and a tier status. Ledger entries record earning, redemption and adjustments, each with a basis. Flight segments and partner transactions are the sources of earning. Claims, redemptions, offers and fraud cases tie to members. Consent and audit records tie to everything. Member, flight activity and consent records carry sensitive data. Member profile · identity Account balance · tier Ledger entry miles · basis · rule Tier status qualifying miles · window Flight segment flown · class · distance Partner transaction batch · amount · member id Claim evidence · decision Redemption award · miles · step-up Offer rules · budget · template Consent channel · purpose · date Fraud case score · factors · hold Audit record who · what · when owns earns earns credits debits checks holds sensitive data knowledge operational record
Sensitive entities are shaded. Every entity carries the trace identifier, so any record can be tied to one decision.
EntityKey fieldsOwnerNotes
Membermember_id, name, contacts, identity document referenceMember masterPlatform holds a reference and masked copies
Accountbalance, tier, status, holdsPoints ledgerBalance is changed only through ledger entries
Ledger entrytype, miles, qualifying, source, basis, rule version, approverPoints ledgerAppend-only; reversals are new entries
Flight segmentsegment id, date, route, class, flown flagFlight operationsReveals movements, so restricted
Partner transactionbatch id, partner, amount, member identifierPartner intakeMatched on identifiers, then masked
Claimmember, evidence pointers, extracted fields, decision, basisClaimsEvidence is pointers, not copies
Redemptionaward, miles, price rule, step-up resultRedemption servicePrice from rules only
Offerrules, budget, template, send logMarketingSend log includes the consent result
Consentchannel, purpose, timestamp, source, withdrawalConsent serviceSystem of record for permission
Fraud casescores, factors, hold, reviewer, outcomeFraud teamHolds expire and are reviewed
Audit recordevent, actor, tool, args hash, outcome, trace_idPlatformAppend-only

Classification matrix

Four classes drive every control. Restricted data is limited to what a step needs, masked by role and kept for the shortest time.

DataClassIn promptsIn logs and tracesIn analyticsRetention
Flight and travel historyRestrictedOnly the segment under reviewNeverMasked by role7 years for finance, then anonymised
Identity documents, dates of birthRestrictedNeverNeverMasked by roleLife of the account plus legal period
Contacts: email, phone, addressRestrictedOnly when a draft needs themNeverMasked by roleLife of the account
Payment tokensRestrictedNeverNeverNot heldPer payment provider
Raw claim images and emailsRestrictedExtracted text for the item onlyNeverPointer only90 days, then deleted
Consent recordsConfidentialNoOutcome onlyYes, masked idsLife of the account plus legal period
Balances, ledger entries, tiersConfidentialSummary for the stepAggregates onlyYes, masked ids7 years
Program terms and rulesInternalYes, as cited clausesYesYesVersioned, kept
Trace and security eventsInternalNoYes, no contentYes13 months

A table, as built

The ledger table in the silver layer shows how the model becomes columns, with identity masked and the basis, rule version and approver recorded for every change.

loyalty_prod.silver.ledger_entries
-- Silver layer: ledger entries, with identity masked and the basis recorded for every change
CREATE TABLE loyalty_prod.silver.ledger_entries (
  entry_id        STRING NOT NULL,
  member_id       STRING NOT NULL,           -- SENSITIVE: masked except for approved roles
  entry_type      STRING NOT NULL,           -- earn | burn | adjust | expire | reverse
  miles           BIGINT NOT NULL,
  qualifying      BIGINT,                    -- tier-qualifying miles, if any
  source          STRING NOT NULL,           -- flight | partner | claim | goodwill | redemption
  source_ref      STRING,                    -- segment id or partner batch, not personal data
  basis           STRING NOT NULL,           -- rule | approved_by_person | goodwill_approved
  rule_version    STRING,
  approver_id     STRING,
  idempotency_key STRING NOT NULL,
  created_at      TIMESTAMP NOT NULL
) USING DELTA
TBLPROPERTIES ('delta.enableChangeDataFeed' = 'true');

Where data moves

FromToWhatControl
App, web and contact centrePlatformClaims, images, questionsAuthentication, scan, tokenise identifiers
PlatformAI (artificial intelligence) gateway and modelsOnly the fields a step needsMinimise, scan, no provider retention
PlatformTool gateway and ledgerStructured argumentsScopes, basis and approval check, audit
PlatformCollectorSpans, metrics and events with identifiersSensitive attributes dropped or hashed
CollectorLakehouseTelemetry and masked copiesUnity Catalog masks, row filters
LakehouseModels and evaluationMasked features and casesRole-based access, no raw documents

Deletion, correction and access

  1. Find

    Every record carries the member identifier or its hash, so all copies can be found, including masked and derived ones.

  2. Delete or anonymise

    Raw documents, contacts and identity data are deleted. Ledger and finance records are kept for the legal period and anonymised after it.

  3. Propagate

    Deletion events reach the lakehouse tables, feature tables, the terms index sources, evaluation sets and training data.

  4. Prove

    The audit record shows what was deleted, when and by whom, without the deleted content.

Retention periods are illustrative. Set them with legal counsel for each jurisdiction.

Handling a deletion request A member asks for their personal data to be deleted. The privacy officer verifies the request, the platform deletes raw documents, contacts and identity data and publishes a deletion event, downstream copies and features are removed or masked, and an audit record shows what was done without the content. Member Privacy officer Platform Lakehouse Features and cases Audit log deletion request verify identity and scope delete event, member hash delete raw documents, contacts, identity propagate deletion event mask or remove copies remove from features and evaluation sets done done audit: what, when, by whom complete confirmation; ledger records kept
Handling a deletion request

Build this for your business

This example is a loyalty platform for an airline, but the same pattern, deterministic financial rules, a governed gateway, runtime security, consent-aware personalisation and measured quality, fits any program that holds a customer balance and makes offers. We can scope a pilot on your own systems.

Book a discovery call