Skip to main content

Database architecture

Use the controls to enlarge the diagram. Pan horizontally and vertically when zoomed.

Principal data domains

DomainPurpose
Tenancy and accessTenant membership, roles, hierarchy, visibility, and menu permissions
Customer and leadCustomer identity, vehicles, source leads, relationships, and activity
WorkflowTasks, queue transitions, dispositions, attempts, and operational audit evidence
Documents and quotesDocument metadata, ownership links, integrity evidence, and quote calculations
Policy operationsPolicy identity, verification, accounting periods, and lifecycle events
FinanceCommission versions, reconciliation, statements, receipts, allocations, adjustments, and reversals
CommunicationsMessage and call requests, provider status, and workflow attribution
ConfigurationProduct, insurer, vehicle, geography, workflow, and question catalogues

Access paths and enforcement

  • The browser uses a publishable client credential plus the authenticated user's session.
  • Database grants and row-level security determine which records an ordinary request can access; route and menu controls are not the authoritative security boundary.
  • Sensitive finance and administrative actions use approved database operations rather than unrestricted table access.
  • Privilege-defining routines and trusted server operations are elevated boundaries. Selected operations validate actor, tenant, role, hierarchy, input, and object ownership; complete operation coverage is not available.
  • The storage service evaluates object policies while application metadata records purpose, owner, size, type, and integrity information where required.

Change and recovery model

  • Database changes are versioned and reviewed before an authorised deployment.
  • A reviewed change artifact is not effective until separately deployed.
  • Destructive rollback is avoided for audit and financial records; correction normally uses a forward change and versioned evidence.
  • Provider recovery capability and application-level restore testing are documented separately under the backup and disaster-recovery checklist items.

Transaction and consistency model

Operation classConsistency requirementEnforcement location
Single-record maintenanceRequired fields, enumerated state, referential ownership, and modification attribution commit togetherDatabase constraints, policies, and application validation
Workflow transitionPrevious state, requested transition, actor authority, resulting state, and audit event form one logical operationApproved database operation or trusted server transaction
Policy verificationRequired evidence, policy fields, vehicle context, actor scope, and financial prerequisites are evaluated before the verified state is storedTrusted operation with database invariants
Financial postingSource statement, matched policy, version, allocation, amount, and adjustment reason remain reconcilableTransactional database operation with append-oriented evidence
Provider callbackProvider authenticity, replay protection, correlation reference, current business state, and idempotency are checked before mutationTrusted serverless operation and transaction
Bulk importFile-level provenance and row-level validation are separated; accepted and rejected rows remain distinguishableStaged parsing plus bounded database writes

Authorization evaluation order

  1. The managed gateway validates the request shape and routes it to the intended service.
  2. The signed session establishes the authenticated subject; a request-supplied user identifier is not accepted as proof of identity.
  3. Database grants determine whether the caller role can access the object or execute the operation.
  4. Row-level policies restrict the visible or mutable rows using tenant, hierarchy, ownership, or mapped scope.
  5. Privileged operations perform explicit actor, target, and workflow-state checks before using elevated execution rights.
  6. Constraints and transactions reject invalid relationships or partial multi-record state.
  7. Audit attribution records the actor or trusted workload, business object, transition, and time.

Data lifecycle characteristics

Record classMutation modelIntegrity expectation
Reference configurationControlled update with effective-state validationConsumers resolve a consistent insurer, product, geography, vehicle, or workflow classification
Customer and vehicleCorrectable operational record with relationship historyNormalization and duplicate controls prevent accidental cross-customer association
Lead and taskStateful workflow plus append-oriented event historyCurrent state is explainable from source, assignments, transitions, and dispositions
Quote and documentPoint-in-time artefact with provenanceA generated or uploaded object remains associated with the exact task, policy, purpose, and actor
PolicyVersioned business record with controlled verificationVerification cannot be inferred solely from UI state; required evidence and authoritative operation decide it
FinanceAppend, version, allocation, adjustment, and reversalHistorical settled evidence is not silently overwritten; corrections remain reconcilable

Security characteristics

CharacteristicImplication
Row-level security on reviewed application tablesOrdinary API access is policy-mediated or denied; individual policy correctness still requires review
Privilege-defining database operationsCentral operations can enforce stable business rules but require restricted execution grants and explicit actor checks
Referential and transactional constraintsRelationships and multi-record invariants are enforced close to the system of record
Append-oriented audit and finance evidenceThe design requires historical events to be added, adjusted, or versioned rather than silently overwritten
Shared managed database servicesAuthentication, storage, realtime, and application data integrate through controlled service boundaries

Authoritative platform references