Mobile Betting · 08 / 26

Data Model and Classification

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

Purpose and scope

This is the logical data model for the 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 player account platform, wallet and bet engine stay the systems of record; the platform keeps decisions, evidence, features and copies it needs to explain an action to a regulator.

Core entities

Core entities of the mobile betting platform A player has an account with a wallet, limits and exclusions, and a KYC case with documents. Bets are settled and move money through deposits and withdrawals. Risk signals, interventions, fraud cases and integrity alerts tie to players and bets. Offers and consent are checked against exclusions, and audit records tie to everything. Player, KYC, behaviour and consent records carry sensitive data. Player profile · contacts Account wallet · limits · exclusions KYC case documents · checks · decision Consent channel · purpose · date Bet market · stake · odds Settlement result source · rule Deposit or withdrawal amount · token · status Limit or exclusion type · period · request Risk signal score · factors · band Intervention template · channel · outcome Fraud or integrity case flags · evidence · decision Audit record who · what · when owns settled by debits triggers restricts 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
Playerplayer_id, name, contacts, date of birthAccount platformPlatform holds a reference and masked copies
Accountwallet, limits, exclusions, statusAccount platformExclusion state is checked in the bet path
KYC casedocument pointers, extracted fields, checks, decision, basisKYCDocuments are pointers, not copies
Betbet id, market, stake, odds, time, resultBet engineBehaviour data, so restricted
Settlementresult source, rule, outcomeSettlement serviceDeterministic from official results
Deposit or withdrawalamount, payment token, statusPaymentsToken only; no card numbers
Limit or exclusiontype, period, who requested, effective timeAccount platformRaising a limit waits for the cooling-off period
Risk signalscore, factors, band, model versionSafer gamblingA flag, never a finding
Interventiontemplate, channel, outcome, basisSafer gamblingApproved templates only
Fraud or integrity caseflags, evidence pointers, decision, reviewerFraud and integrityRestrictions expire and are reviewed
Consentchannel, purpose, timestamp, withdrawalConsent serviceChecked at send time
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 permitted time.

DataClassIn promptsIn logs and tracesIn analyticsRetention
Identity documents, selfies, dates of birthRestrictedExtracted fields for the case onlyNeverMasked by roleRegulated period after account closure, then deleted
Location and device dataRestrictedNeverHashedMasked by role13 months
Betting and gambling behaviourRestrictedSummary for the stepAggregates onlyMasked idsRegulated period
Contacts: email, phone, addressRestrictedOnly when a draft needs themNeverMasked by roleLife of the account
Payment tokensRestrictedNeverNeverNot heldPer payment provider
Raw documents and chat transcriptsRestrictedExtracted text for the item onlyNeverPointer only90 days, then deleted
Risk scores and interventionsConfidentialSummary for the stepAggregates onlyMasked idsRegulated period
Balances, deposits, settlementsConfidentialSummary for the stepAggregates onlyYes, masked idsRegulated period
Terms, house rules and policiesInternalYes, as cited clausesYesYesVersioned, kept
Trace and security eventsInternalNoYes, no contentYes13 months

A table, as built

The harm-scores table in the silver layer shows how the model becomes columns, with identity masked and the action, basis and rule version recorded for every score.

betting_prod.silver.harm_scores
-- Silver layer: harm-marker scores, with identity masked and the action taken recorded
CREATE TABLE betting_prod.silver.harm_scores (
  score_id         STRING NOT NULL,
  player_id        STRING NOT NULL,          -- SENSITIVE: masked except for approved roles
  scored_at        TIMESTAMP NOT NULL,
  model_version    STRING NOT NULL,
  score            DOUBLE NOT NULL,          -- a flag, never a finding
  factors          ARRAY<STRING>,            -- reasons: deposit_after_loss, stake_escalation, late_night_long_session
  band             STRING NOT NULL,          -- low | medium | high
  action           STRING,                   -- none | reality_check | limit_prompt | suppress_marketing | specialist_task
  action_basis     STRING,                   -- rule_threshold | specialist_approved | player_request
  rule_version     STRING,
  specialist_id    STRING,
  created_at       TIMESTAMP NOT NULL
) USING DELTA
TBLPROPERTIES ('delta.enableChangeDataFeed' = 'true');

Where data moves

FromToWhatControl
App, web and support deskPlatformDocuments, messages, questionsAuthentication, scan, tokenise identifiers
Bet engineStreaming featuresBet and session eventsPseudonymised player id, no content
PlatformAI (artificial intelligence) gateway and modelsOnly the fields a step needsMinimise, scan, no provider retention
PlatformTool gateway and enterprise systemsStructured argumentsScopes, basis and approval check, audit
PlatformCollectorSpans, metrics and events with identifiersSensitive attributes dropped or hashed
LakehouseModels and evaluationMasked features and casesRole-based access, no raw documents

Deletion, correction and access

  1. Find

    Every record carries the player 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 once the regulated period ends. Records that must be kept are restricted and anonymised after the period.

  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. Gambling and anti-money-laundering rules set minimum periods that differ by jurisdiction. Set them with legal counsel.

Handling a deletion request after account closure A former player asks for their data to be deleted. The privacy officer checks which records must still be kept for the regulated period, the platform deletes everything else and publishes a deletion event, downstream copies are removed or masked, and an audit record shows what was done without the content. Former player Privacy officer Platform Lakehouse Features and cases Audit log deletion request verify identity, find retention duties delete event, player hash delete documents, contacts, transcripts propagate deletion event mask or remove copies remove from features and evaluation sets done done audit: what, when, by whom complete confirmation; regulated records kept
Handling a deletion request after account closure

Build this for your business

This example is a player protection and operations platform for a licensed betting operator, but the same pattern, deterministic rules for every hard duty, a governed gateway, runtime security, protect-first automation and measured quality, fits any regulated, customer-facing service. We can scope a pilot on your own systems.

Book a discovery call