The VIRTUAL_ACCOUNT arm of bankAccountView — per-entity virtual
accounts at Victor and RouteFusion, with balances implied from the
bank_transaction feed.
The hierarchy edge is virtual_account.bank_account_id: the register row
of the pool the virtual account sits in. It becomes parent_key only when
that row has numbers — a Victor FBO does; a RouteFusion wallet is numberless
and yields no parent.
Both providers feed it: the Victor sync writes Victor-provider rows, and the
RouteFusion sync and webhook write each wallet's transfers under its virtual
account's numbers.
dbmate owns the DDL: the body below is mirrored by
20261017164913_bank_account_view_search_text.sql.
securityInvoker is required — see bankAccountView.
The
VIRTUAL_ACCOUNTarm of bankAccountView — per-entity virtual accounts at Victor and RouteFusion, with balances implied from thebank_transactionfeed.The hierarchy edge is
virtual_account.bank_account_id: the register row of the pool the virtual account sits in. It becomesparent_keyonly when that row has numbers — a Victor FBO does; a RouteFusion wallet is numberless and yields no parent.Both providers feed it: the Victor sync writes Victor-provider rows, and the RouteFusion sync and webhook write each wallet's transfers under its virtual account's numbers.
dbmate owns the DDL: the body below is mirrored by
20261017164913_bank_account_view_search_text.sql.securityInvokeris required — see bankAccountView.