Add bank balances to DB (#3860)

This commit is contained in:
Jai Agrawal
2025-06-29 07:46:54 -07:00
committed by GitHub
parent 1c1631f131
commit 8971d39683
5 changed files with 103 additions and 22 deletions

View File

@@ -0,0 +1,8 @@
-- Add migration script here
CREATE TABLE payout_sources_balance (
account_type TEXT NOT NULL,
amount numeric(40, 20) NOT NULL,
pending BOOLEAN NOT NULL,
recorded timestamptz NOT NULL DEFAULT now(),
PRIMARY KEY (recorded, account_type, pending)
);