Files
apskel-pos-backend/migrations/000114_index_wallet_transactions_org_created.up.sql
T

4 lines
275 B
SQL
Raw Normal View History

-- EnakGame economy analytics sum an organization's ledger over a date range
-- (docs/tasks-enakgame.md EG-903). One statement, for CONCURRENTLY.
CREATE INDEX CONCURRENTLY IF NOT EXISTS idx_wallet_transactions_org_created ON wallet_transactions(organization_id, created_at);