SPAY4 · CURRENT AUTHORITY

Target ER 審核

CURRENT

51 relations 的 identity、owner/snapshot、nullable、index intent 與 service guard 集中於此入口。

所有關係都是 logical relation;圖表不補畫候選 DDL 沒有的欄位。

Target ER 四區總覽與關聯子圖;Withdrawal 僅含 Payment Account path,沒有 HOUSE path。
總覽後依序呈現四個區域子圖;所有連線均由 service guard 維護,非 database foreign key。

分區總覽+四張子圖

先讀跨區主鏈,再依序讀 Core、Supply、Cardholder/Payment Account/order routing、immutable fact/projection/reporting。每張 card 都是候選 DDL 已存在的 relation;連線的 cardinality 與類型只描述 service guard 維護的 logical relation。

51-relation catalog

下列 catalog 保留作 identity、nullable、owner/snapshot、index intent 與 service guard 的查閱入口;視覺圖不取代 current contract。

Core · 14

currencybankagentnotification_provider_sourcecredential_referencecredential_secretagent_banksystem_groupsystem_methodrolerole_methodusersystem_configagent_system_config

Domain · 37

external_api_replay_noncesuppliersupply_gatewaysupply_accountdomain_audit_logsupply_pt_policysupply_pt_revisionsupply_pt_revision_linesupply_gateway_direction_configsupply_gateway_agent_allocationsupply_eligible_factsupply_eligible_fact_correctionsupply_eligible_fact_projection_queuesupply_eligible_fact_projection_failure_attemptsupply_aggregate_projection_watermarksupply_financial_hourly_aggregatesupply_cardholdersupply_cardholder_sessionsupply_cardholder_device_tokensupply_cardholder_notificationpayment_account_applicationpayment_accountpayment_account_balance_loghouse_cardpayment_account_daily_countersupply_cardholder_daily_assignment_counteragent_api_order_claimsupply_deposit_ordersupply_withdrawal_ordersupply_order_assignment_attemptagent_callback_outboxpayment_account_reservationsupply_order_proofhouse_card_transactionsupply_withdrawal_recovery_casehouse_card_daily_counterhouse_card_deposit_reservation

固定邊界

完整性 evidence

表格完整性審核逐列記錄 identity/unique grain、owner/snapshot、必要欄位群、index intent、流程使用點與 finding boundary。

來源:concepts/target-er-model-review.md(SQL 初始化頁除外)。

圖片預覽