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>
31 lines
856 B
SQL
31 lines
856 B
SQL
-- This file is autogenerated from regen-schema.ts
|
|
create table if not exists
|
|
league_chats (
|
|
channel_id text not null,
|
|
cohort text not null,
|
|
created_time timestamp with time zone default now() not null,
|
|
division integer not null,
|
|
id serial not null,
|
|
owner_id text,
|
|
season integer not null
|
|
);
|
|
|
|
-- Row Level Security
|
|
alter table league_chats enable row level security;
|
|
|
|
-- Policies
|
|
drop policy if exists "public read" on league_chats;
|
|
|
|
create policy "public read" on league_chats for
|
|
select
|
|
using (true);
|
|
|
|
-- Indexes
|
|
drop index if exists league_chats_pkey;
|
|
|
|
create unique index league_chats_pkey on public.league_chats using btree (id);
|
|
|
|
drop index if exists league_chats_season_division_cohort_key;
|
|
|
|
create unique index league_chats_season_division_cohort_key on public.league_chats using btree (season, division, cohort);
|