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>
28 lines
964 B
SQL
28 lines
964 B
SQL
-- This file is autogenerated from regen-schema.ts
|
|
create table if not exists
|
|
predictle_results (
|
|
attempts integer not null,
|
|
created_time timestamp with time zone default now(),
|
|
id serial not null,
|
|
puzzle_number integer not null,
|
|
user_id text not null,
|
|
won boolean not null
|
|
);
|
|
|
|
-- Indexes
|
|
drop index if exists idx_predictle_results_puzzle_number;
|
|
|
|
create index idx_predictle_results_puzzle_number on public.predictle_results using btree (puzzle_number);
|
|
|
|
drop index if exists idx_predictle_results_user_id;
|
|
|
|
create index idx_predictle_results_user_id on public.predictle_results using btree (user_id);
|
|
|
|
drop index if exists predictle_results_pkey;
|
|
|
|
create unique index predictle_results_pkey on public.predictle_results using btree (id);
|
|
|
|
drop index if exists predictle_results_user_id_puzzle_number_key;
|
|
|
|
create unique index predictle_results_user_id_puzzle_number_key on public.predictle_results using btree (user_id, puzzle_number);
|