%% CANDIDATE ONLY, 0.1.0, 2026-10-16. Parent integrates; no deployed backend. %% Reference-model records are illustrative evidence, not orders, cash or demand. %% No custody, provider calls, signing, transfers, dispatch or native record creation. %% existing_* denotes existing.* logical bindings in conversion-contract.json. %% External entities are owned elsewhere; no replacement native models are created. %% All PK/FK tuples include tenant_id. Fields shown are relational/commercial subset. %% External PK markers denote required unique binding keys, not verified physical PKs. %% Full definitions, checks and indexes: conversion-schema.sql (not applied). %% LC-R002/003/006/007/008/009/012/013/014/015; LC-T002..016. %% Production-only LC-PG001..007 remain unsatisfied; diagram is not security proof. erDiagram existing_tenant { string tenant_id PK } existing_identity { string tenant_id PK string identity_id PK } existing_external_offer_version { string tenant_id PK string offer_id PK bigint offer_version PK } existing_campaign_revision { string tenant_id PK string campaign_id PK bigint offer_version PK string offer_id PK } existing_expression_of_interest { string tenant_id PK string interest_id PK string campaign_id PK bigint offer_version PK string buyer_id PK } existing_discussion { string tenant_id PK string discussion_id PK string offer_id PK string buyer_id PK string seller_id PK } existing_quote_version { string tenant_id PK string quote_id PK bigint quote_version PK } existing_external_order { string tenant_id PK string order_id PK } existing_evidence_version { string tenant_id PK string evidence_id PK bigint evidence_version PK } existing_external_agreement { string tenant_id PK string agreement_id PK } existing_external_instruction { string tenant_id PK string instruction_id PK } existing_external_delivery { string tenant_id PK string delivery_id PK } existing_external_reconciliation { string tenant_id PK string reconciliation_id PK } conversion_cohort { string tenant_id PK,FK string cohort_id PK string campaign_id FK string offer_id FK bigint offer_version FK string buyer_id FK bigint buyer_revision string seller_id FK string policy_version string snapshot_evidence_id FK bigint snapshot_evidence_version FK timestamptz cohort_at string channel } conversion_case { string tenant_id PK,FK string case_id PK string cohort_id FK string interest_id FK string campaign_id FK bigint offer_version FK string buyer_id FK numeric ticket string currency bigint version string stage } conversion_proposal { string tenant_id PK,FK string case_id PK,FK bigint proposal_version PK string quote_id FK bigint quote_version FK string proposer_id FK string proposer_party numeric quantity numeric unit_price numeric principal string fee_payer string additional_agent_payer string agent_contract_evidence_id FK bigint agent_contract_evidence_version FK string evidence_id FK bigint evidence_version FK } conversion_confirmation { string tenant_id PK,FK string case_id PK,FK bigint proposal_version PK,FK string confirmer_id FK string confirmer_party string evidence_id FK bigint evidence_version FK } conversion_agreement { string tenant_id PK,FK string case_id PK,FK bigint proposal_version FK string agreement_id FK string reviewer_id FK string evidence_id FK bigint evidence_version FK } conversion_instruction { string tenant_id PK,FK string case_id PK,FK string instruction_id FK string order_id FK string operator_id FK string network string destination_ref string evidence_id FK bigint evidence_version FK } conversion_delivery { string tenant_id PK,FK string case_id PK,FK string delivery_id PK,FK string prior_delivery_id FK string reporter_id FK numeric received_principal numeric received_quantity string network string destination_ref boolean matches string payment_evidence_id FK bigint payment_evidence_version FK string asset_evidence_id FK bigint asset_evidence_version FK string reason } conversion_reconciliation { string tenant_id PK,FK string case_id PK,FK string reconciliation_id FK string delivery_id FK boolean delivery_matches FK bigint proposal_version FK string auditor_id FK boolean payment_checked boolean asset_checked boolean native_exception_clear numeric principal string fee_payer string additional_agent_payer numeric glemo_fee numeric gateway_estimate numeric additional_agent_fee numeric buyer_pays numeric seller_receives numeric actual_cash_received numeric profit string evidence_id FK bigint evidence_version FK } conversion_native_link { string tenant_id PK,FK string link_id PK string case_id FK string platform_offer_id FK string platform_buyer_id FK string platform_seller_id FK string discussion_id FK string mapping_evidence_id FK bigint mapping_evidence_version FK boolean attribution_only } conversion_cost { string tenant_id PK,FK string cost_id PK string case_id FK string cohort_id FK string cost_ref UK numeric observed_cost string currency string evidence_id FK bigint evidence_version FK } conversion_request { string tenant_id PK,FK string idempotency_key PK string actor_id FK string operation string target_id string fingerprint_sha256 int response_status jsonb response_body string response_etag } conversion_event { string tenant_id PK,FK string event_id PK string cohort_id FK string case_id FK string idempotency_key FK string actor_id FK string actor_role string action string outcome string rejection_code bigint before_version bigint after_version string resulting_stage string source_service string source_event_id bigint source_version string source_evidence_id FK bigint source_evidence_version FK timestamptz occurred_at timestamptz recorded_at } existing_tenant ||--o{ conversion_cohort : scopes existing_identity ||--o{ conversion_cohort : buyer_and_seller existing_external_offer_version ||--o{ conversion_cohort : immutable_offer existing_campaign_revision ||--o{ conversion_cohort : campaign_offer_binding existing_evidence_version ||--o{ conversion_cohort : immutable_snapshot conversion_cohort ||--o| conversion_case : one_case_per_cohort existing_expression_of_interest ||--o| conversion_case : existing_interest_only conversion_case ||--o{ conversion_proposal : immutable_revisions existing_quote_version ||--o{ conversion_proposal : native_quote_snapshot existing_identity ||--o{ conversion_proposal : proposer existing_evidence_version ||--o{ conversion_proposal : terms_and_optional_agent_contract conversion_proposal ||--o| conversion_confirmation : opposite_party_confirmation existing_identity ||--o{ conversion_confirmation : confirmer existing_evidence_version ||--o{ conversion_confirmation : confirmation_evidence conversion_confirmation ||--o| conversion_agreement : distinct_external_agreement existing_external_agreement ||--o| conversion_agreement : authoritative_agreement existing_identity ||--o{ conversion_agreement : reviewer existing_evidence_version ||--o{ conversion_agreement : reviewed_evidence conversion_agreement ||--o| conversion_instruction : prerequisite existing_external_instruction ||--o| conversion_instruction : recorded_instruction_only existing_external_order ||--o| conversion_instruction : existing_order_only existing_identity ||--o{ conversion_instruction : operator existing_evidence_version ||--o{ conversion_instruction : instruction_evidence conversion_instruction ||--o{ conversion_delivery : append_attempts existing_external_delivery ||--o| conversion_delivery : authoritative_receipt conversion_delivery o|--o{ conversion_delivery : correction_preserves_prior existing_identity ||--o{ conversion_delivery : reporter existing_evidence_version ||--o{ conversion_delivery : payment_and_asset_legs conversion_delivery ||--o| conversion_reconciliation : matching_delivery_only conversion_agreement ||--o| conversion_reconciliation : confirmed_agreement_proposal existing_external_reconciliation ||--o| conversion_reconciliation : independent_native_decision existing_identity ||--o{ conversion_reconciliation : independent_auditor existing_evidence_version ||--o{ conversion_reconciliation : reconciliation_evidence conversion_case ||--o{ conversion_native_link : attribution_only existing_discussion ||--o{ conversion_native_link : validated_offer_buyer_seller existing_evidence_version ||--o{ conversion_native_link : reviewed_mapping conversion_case ||--o{ conversion_cost : same_immutable_cohort existing_evidence_version ||--o{ conversion_cost : observed_cost_only existing_tenant ||--o{ conversion_request : tenant_request_uniqueness existing_identity ||--o{ conversion_request : authenticated_actor_candidate conversion_request ||--o| conversion_event : original_response_and_decision conversion_cohort ||--o{ conversion_event : cumulative_cohort_history conversion_case o|--o{ conversion_event : case_history_or_observation existing_identity ||--o{ conversion_event : actor existing_evidence_version ||--o{ conversion_event : native_source_evidence