predikt/oracle/backend/scripts/predictle-tables.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

23 lines
666 B
SQL

-- One-time script to initialize Predictle tables
create table if not exists
predictle_daily (
date_pt text primary key,
data JSONB not null,
created_time TIMESTAMPTZ default now()
);
create table if not exists
predictle_results (
id SERIAL primary key,
user_id text not null,
puzzle_number int not null,
attempts int not null,
won boolean not null,
created_time TIMESTAMPTZ default now(),
unique (user_id, puzzle_number)
);
create index if not exists idx_predictle_results_user_id on predictle_results (user_id);
create index if not exists idx_predictle_results_puzzle_number on predictle_results (puzzle_number);