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

43 lines
1.1 KiB
SQL

-- This file is autogenerated from regen-schema.ts
create table if not exists
groups (
about jsonb,
banner_url text,
created_time timestamp with time zone default now() not null,
creator_id text,
id text primary key default uuid_generate_v4 () not null,
importance_score numeric default 0,
name text not null,
name_fts tsvector generated always as (to_tsvector('english'::regconfig, name)) stored,
privacy_status text,
slug text not null,
total_members numeric default 0
);
-- Row Level Security
alter table groups enable row level security;
-- Policies
drop policy if exists "public read" on groups;
create policy "public read" on groups for
select
using (true);
-- Indexes
drop index if exists group_slug;
create index group_slug on public.groups using btree (slug);
drop index if exists groups_pkey;
create unique index groups_pkey on public.groups using btree (id);
drop index if exists privacy_status_idx;
create index privacy_status_idx on public.groups using btree (privacy_status);
drop index if exists total_members;
create index total_members on public.groups using btree (total_members desc);