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>
39 lines
1.2 KiB
SQL
39 lines
1.2 KiB
SQL
-- This file is autogenerated from regen-schema.ts
|
|
create table if not exists
|
|
mana_supply_stats (
|
|
amm_cash_liquidity numeric default 0 not null,
|
|
amm_liquidity numeric not null,
|
|
balance numeric not null,
|
|
cash_balance numeric default 0 not null,
|
|
cash_investment_value numeric default 0 not null,
|
|
created_time timestamp with time zone default now() not null,
|
|
end_time timestamp with time zone not null,
|
|
full_investment_value numeric,
|
|
full_loan_total numeric,
|
|
full_mana_balance numeric,
|
|
full_spice_balance numeric,
|
|
full_total_mana_value numeric,
|
|
id bigint primary key generated always as identity not null,
|
|
investment_value numeric not null,
|
|
loan_total numeric not null,
|
|
spice_balance numeric not null,
|
|
start_time timestamp with time zone not null,
|
|
total_cash_value numeric default 0 not null,
|
|
total_value numeric not null
|
|
);
|
|
|
|
-- Row Level Security
|
|
alter table mana_supply_stats enable row level security;
|
|
|
|
-- Policies
|
|
drop policy if exists "public read" on mana_supply_stats;
|
|
|
|
create policy "public read" on mana_supply_stats for
|
|
select
|
|
using (true);
|
|
|
|
-- Indexes
|
|
drop index if exists mana_supply_stats_pkey;
|
|
|
|
create unique index mana_supply_stats_pkey on public.mana_supply_stats using btree (id);
|