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
| Entity | Key fields | Owner | Notes |
|---|---|---|---|
| Player | player_id, name, contacts, date of birth | Account platform | Platform holds a reference and masked copies |
| Account | wallet, limits, exclusions, status | Account platform | Exclusion state is checked in the bet path |
| KYC case | document pointers, extracted fields, checks, decision, basis | KYC | Documents are pointers, not copies |
| Bet | bet id, market, stake, odds, time, result | Bet engine | Behaviour data, so restricted |
| Settlement | result source, rule, outcome | Settlement service | Deterministic from official results |
| Deposit or withdrawal | amount, payment token, status | Payments | Token only; no card numbers |
| Limit or exclusion | type, period, who requested, effective time | Account platform | Raising a limit waits for the cooling-off period |
| Risk signal | score, factors, band, model version | Safer gambling | A flag, never a finding |
| Intervention | template, channel, outcome, basis | Safer gambling | Approved templates only |
| Fraud or integrity case | flags, evidence pointers, decision, reviewer | Fraud and integrity | Restrictions expire and are reviewed |
| Consent | channel, purpose, timestamp, withdrawal | Consent service | Checked at send time |
| Audit record | event, actor, tool, args hash, outcome, trace_id | Platform | Append-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.
| Data | Class | In prompts | In logs and traces | In analytics | Retention |
|---|---|---|---|---|---|
| Identity documents, selfies, dates of birth | Restricted | Extracted fields for the case only | Never | Masked by role | Regulated period after account closure, then deleted |
| Location and device data | Restricted | Never | Hashed | Masked by role | 13 months |
| Betting and gambling behaviour | Restricted | Summary for the step | Aggregates only | Masked ids | Regulated period |
| Contacts: email, phone, address | Restricted | Only when a draft needs them | Never | Masked by role | Life of the account |
| Payment tokens | Restricted | Never | Never | Not held | Per payment provider |
| Raw documents and chat transcripts | Restricted | Extracted text for the item only | Never | Pointer only | 90 days, then deleted |
| Risk scores and interventions | Confidential | Summary for the step | Aggregates only | Masked ids | Regulated period |
| Balances, deposits, settlements | Confidential | Summary for the step | Aggregates only | Yes, masked ids | Regulated period |
| Terms, house rules and policies | Internal | Yes, as cited clauses | Yes | Yes | Versioned, kept |
| Trace and security events | Internal | No | Yes, no content | Yes | 13 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.
-- 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
| From | To | What | Control |
|---|---|---|---|
| App, web and support desk | Platform | Documents, messages, questions | Authentication, scan, tokenise identifiers |
| Bet engine | Streaming features | Bet and session events | Pseudonymised player id, no content |
| Platform | AI (artificial intelligence) gateway and models | Only the fields a step needs | Minimise, scan, no provider retention |
| Platform | Tool gateway and enterprise systems | Structured arguments | Scopes, basis and approval check, audit |
| Platform | Collector | Spans, metrics and events with identifiers | Sensitive attributes dropped or hashed |
| Lakehouse | Models and evaluation | Masked features and cases | Role-based access, no raw documents |
Deletion, correction and access
Find
Every record carries the player identifier or its hash, so all copies can be found, including masked and derived ones.
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.
Propagate
Deletion events reach the lakehouse tables, feature tables, the terms index sources, evaluation sets and training data.
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.
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