Modrinth/apps/labrinth/migrations/20250628213541_payout-sources-recording.sql
2025-06-29 14:46:54 +00:00

9 lines
268 B
SQL

-- 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)
);