You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Missed two migrations in the prior schema pass (claude[bot] review):
- PR-era 2026-02-25: internal_bank_account renamed to internal_account,
internal_bank_account_status_history to internal_account_status_history,
correspondent_bank_* to counterparty_*
- PR-era 2026-03-06: internal-account lien.currency renamed to
instrument_code
Also fix cross-service flowchart edge labels that referred to columns
that do not exist (balance_ref, counterparty_party_id) or used renamed
names (account_type_code, asset_code, dataset). Replace balance_ref
with account_id and drop the IBA to party edge since internal_account
holds a varchar counterparty identifier, not a direct party FK.
-`internal_bank_account_status_history` — ACTIVE / SUSPENDED / CLOSED transitions
170
+
-`internal_account` — CLEARING / NOSTRO / VOSTRO / HOLDING / SUSPENSE / REVENUE / EXPENSE / INVENTORY. Multi-asset dimension support. No balance columns — delegates to `position-keeping`. Counterparty fields are `counterparty_id` / `counterparty_name` / `counterparty_external_ref` (renamed from `correspondent_bank_*` in 2026-02).
171
+
-`internal_account_status_history` — ACTIVE / SUSPENDED / CLOSED transitions
172
172
-`lien` — fund reservations with bucket-aware multi-asset valuation
173
173
-`valuation_features`
174
174
@@ -482,11 +482,13 @@ erDiagram
482
482
483
483
### Internal Account
484
484
485
+
The service is still packaged as `internal-account` but the underlying tables were renamed in PR-era 2026-02-25: `internal_bank_account` → `internal_account`, `correspondent_bank_*` → `counterparty_*`. The `lien.currency` column was subsequently renamed to `instrument_code`.
0 commit comments