Purpose and scope
This is the logical data model for the booking assistant: the entities it creates, what each one holds, who may see it and how long it is kept. It exists to make the privacy decisions in ADR-006 concrete. The system of record for customers, aircraft, prices and reservations stays in the FBO (Fixed-Base Operator) systems; the platform keeps conversation and decision data and copies of what it needs to explain a booking.
Core entities
| Entity | Key fields | Owner | Notes |
|---|---|---|---|
| Customer | customer_id, organisation, verified contacts, preferences | FBO customer system | Platform holds a reference and cached preferences only |
| Aircraft | aircraft_id, tail_number, type, wingspan, height, weight | Fleet records | Dimensions drive hangar fit, so they come from records, never from the model |
| Conversation | conversation_id, channel, session (hashed), state, started_at | Platform | One per guest thread, across channels |
| Turn | turn_id, redacted text, extracted slots, scan verdicts, model alias | Platform | Raw text is held only in the restricted store, with a short retention |
| Quote | quote_id, lines, total, rule_ids, valid_until | Pricing service | The rule identifiers explain every price |
| Hold | hold_id, resources, expires_at, status | Booking system | Expires on its own |
| Booking | reservation_no, status, confirmed_by, idempotency_key | Booking system | Created only by the commit tool |
| Service request | request_id, type, details, status | Airport operations | Custom items route to the line desk |
| Policy clause | clause_id, airport, text, effective_from, effective_to, source_url | Airport managers | Versioned, with effective dates |
| 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 turn needs, masked by role and kept for the shortest time.
| Data | Class | In prompts | In logs and traces | In analytics | Retention |
|---|---|---|---|---|---|
| Tail number, aircraft owner | Restricted | Only when the turn needs it | Hashed | Masked by role | Life of the booking plus 13 months |
| Passenger names, crew names | Restricted | First name only when needed | Never | Masked by role | 90 days in transcripts |
| Phone, email | Restricted | Never | Never | Masked by role | Life of the account |
| Raw guest message text | Restricted | Yes, the turn's own text | Never | Redacted copy only | 30 days raw, 13 months redacted |
| Itinerary: airport, dates, services | Confidential | Yes | Yes, no identifiers | Yes | 7 years, for finance |
| Prices, fees, quantities | Confidential | Yes | Yes | Yes | 7 years |
| Airport rules and service catalogue | Internal | Yes, as clauses | Yes | Yes | Versioned, kept |
| Trace and security events | Internal | No | Yes, no content | Yes | 13 months |
A table, as built
The bookings table in the silver layer shows how the model becomes columns, with the sensitive column marked and the rule identifiers kept so a total can always be explained.
-- Silver layer: bookings, with sensitive columns marked for masking (see Unity Catalog masks)
CREATE TABLE aviation_prod.silver.bookings (
booking_id STRING NOT NULL,
reservation_no STRING NOT NULL, -- BK-20417
customer_id STRING NOT NULL,
airport_code STRING NOT NULL, -- ICAO, e.g. KTEB
region STRING NOT NULL,
tail_number STRING, -- SENSITIVE: masked except for approved roles
aircraft_type STRING,
arrival_from TIMESTAMP,
arrival_to TIMESTAMP,
status STRING NOT NULL, -- held | confirmed | changed | cancelled | completed
total_usd DECIMAL(12,2),
quote_rule_ids ARRAY<STRING>, -- which pricing rules produced the total
confirmed_by STRING, -- verified user who sent CONFIRM
idempotency_key STRING NOT NULL,
created_at TIMESTAMP NOT NULL,
updated_at TIMESTAMP NOT NULL
) USING DELTA
TBLPROPERTIES ('delta.enableChangeDataFeed' = 'true');Where data moves
| From | To | What | Control |
|---|---|---|---|
| Channel | Conversation service | Message text and attachments | Authentication, rate limit, scan |
| Conversation service | AI gateway and models | Only the fields a turn needs | Minimise, scan, no provider retention |
| Conversation service | Tool gateway and FBO systems | Structured arguments | Scopes, ownership check, audit |
| Conversation service | Collector | Spans, metrics and events with identifiers | Sensitive attributes dropped or hashed |
| Collector | Lakehouse | Telemetry and masked conversation copies | Unity Catalog masks, row filters |
| Lakehouse | Evaluation and analytics | Masked conversations and outcomes | Role-based access, no raw text |
Deletion, correction and access
Find
Every record carries the customer identifier or its hash, so all copies can be found, including redacted ones.
Delete or anonymise
Raw text and contact details are deleted. Booking and finance records are kept for the legal period and anonymised after it.
Propagate
Deletion events reach the lakehouse tables, the knowledge index sources and the evaluation sets, where a copy is removed or masked.
Prove
The audit record shows what was deleted, when and by whom, without recording the deleted content.
Retention periods are illustrative. Set them with legal counsel for each jurisdiction.
Sequence: a deletion request
Booking and finance records are kept for the legal period and anonymised after it. Everything else is deleted, and the audit record proves it without holding the deleted data.
Build this for your business
This example is a booking assistant for a ground-handling network, but the same pattern, a governed gateway, runtime security, grounded knowledge, deterministic commits and measured quality, fits any customer-facing assistant that takes actions. We can scope a pilot on your own systems.
Book a discovery call