predikt/oracle/backend/scripts/add-cash-stat-columns.sql
caelum0x 2b68bde5d5 Predikt: full Polymarket-style prediction market — web + mobile + on-chain + bots
Working tree is now the canonical repo. Off-chain play-money + trustless on-chain
(FPMM AMM + CLOB via UMA settlement), AI market factory, creator/social/distribution,
mobile shell + push, one-command demo + deploy-kit. Secrets excluded (see ENV-AND-KEYS.md).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-06 23:29:50 +03:00

15 lines
634 B
SQL

-- Add cash_bet_amount column to daily_stats table
alter table daily_stats
add column if not exists cash_bet_amount numeric;
-- Add new columns to mana_supply_stats table
alter table mana_supply_stats
add column if not exists total_cash_value numeric not null default 0,
add column if not exists cash_balance numeric not null default 0,
add column if not exists cash_investment_value numeric not null default 0,
add column if not exists amm_cash_liquidity numeric not null default 0;
-- Add cash_amount column to txn_summary_stats table
alter table txn_summary_stats
add column if not exists cash_amount numeric not null default 0;