Conversational AI (artificial intelligence) · 05 / 22

Data Model and Classification

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

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

Core entities of the booking platform A customer has conversations, which have turns and quotes. A quote reserves resources in a hold, a hold commits to a booking, and a booking creates service requests at an airport. Bookings write audit records. Policy clauses are keyed by airport and effective dates. Customer, aircraft, conversation and turn records carry sensitive data. Customer account · contacts Aircraft tail · type · dimensions Airport code · hours · rules Conversation channel · session · state Quote lines · total · rule ids Service request crew car · catering Turn masked text · slots Hold resources · expiry Booking reservation · status Trace event span ids · outcome Policy clause airport · effective dates Audit record who · what · when has has for reserves commits to at sensitive data knowledge operational record
Sensitive entities are shaded. Every entity carries the trace identifier, so any record can be tied to one turn.
EntityKey fieldsOwnerNotes
Customercustomer_id, organisation, verified contacts, preferencesFBO customer systemPlatform holds a reference and cached preferences only
Aircraftaircraft_id, tail_number, type, wingspan, height, weightFleet recordsDimensions drive hangar fit, so they come from records, never from the model
Conversationconversation_id, channel, session (hashed), state, started_atPlatformOne per guest thread, across channels
Turnturn_id, redacted text, extracted slots, scan verdicts, model aliasPlatformRaw text is held only in the restricted store, with a short retention
Quotequote_id, lines, total, rule_ids, valid_untilPricing serviceThe rule identifiers explain every price
Holdhold_id, resources, expires_at, statusBooking systemExpires on its own
Bookingreservation_no, status, confirmed_by, idempotency_keyBooking systemCreated only by the commit tool
Service requestrequest_id, type, details, statusAirport operationsCustom items route to the line desk
Policy clauseclause_id, airport, text, effective_from, effective_to, source_urlAirport managersVersioned, with effective dates
Audit recordevent, actor, tool, args hash, outcome, trace_idPlatformAppend-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.

DataClassIn promptsIn logs and tracesIn analyticsRetention
Tail number, aircraft ownerRestrictedOnly when the turn needs itHashedMasked by roleLife of the booking plus 13 months
Passenger names, crew namesRestrictedFirst name only when neededNeverMasked by role90 days in transcripts
Phone, emailRestrictedNeverNeverMasked by roleLife of the account
Raw guest message textRestrictedYes, the turn's own textNeverRedacted copy only30 days raw, 13 months redacted
Itinerary: airport, dates, servicesConfidentialYesYes, no identifiersYes7 years, for finance
Prices, fees, quantitiesConfidentialYesYesYes7 years
Airport rules and service catalogueInternalYes, as clausesYesYesVersioned, kept
Trace and security eventsInternalNoYes, no contentYes13 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.

aviation_prod.silver.bookings
-- 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

FromToWhatControl
ChannelConversation serviceMessage text and attachmentsAuthentication, rate limit, scan
Conversation serviceAI gateway and modelsOnly the fields a turn needsMinimise, scan, no provider retention
Conversation serviceTool gateway and FBO systemsStructured argumentsScopes, ownership check, audit
Conversation serviceCollectorSpans, metrics and events with identifiersSensitive attributes dropped or hashed
CollectorLakehouseTelemetry and masked conversation copiesUnity Catalog masks, row filters
LakehouseEvaluation and analyticsMasked conversations and outcomesRole-based access, no raw text

Deletion, correction and access

  1. Find

    Every record carries the customer identifier or its hash, so all copies can be found, including redacted ones.

  2. Delete or anonymise

    Raw text and contact details are deleted. Booking and finance records are kept for the legal period and anonymised after it.

  3. Propagate

    Deletion events reach the lakehouse tables, the knowledge index sources and the evaluation sets, where a copy is removed or masked.

  4. 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

Handling a deletion request A customer asks for their data to be deleted. The privacy officer verifies the request, the platform deletes raw text and contacts and publishes a deletion event, downstream copies are masked or removed, and an audit record shows what was done without recording the content. Customer Privacy officer Platform Lakehouse Knowledge and evals Audit log deletion request verify identity and scope delete event, customer hash delete raw text and contacts propagate deletion event mask or remove copies remove from evaluation sets done done audit: what, when, by whom complete confirmation; finance records kept
Handling 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