predikt/oracle/backend/supabase/user_monitor_status.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

28 lines
930 B
SQL

-- This file is autogenerated from regen-schema.ts
create table if not exists
user_monitor_status (
created_time timestamp with time zone default now(),
data jsonb not null,
fraud_confidence_score integer,
id bigint primary key generated always as identity not null,
identity_confidence_score integer,
reason_codes text[],
user_id text not null
);
-- Foreign Keys
alter table user_monitor_status
add constraint user_monitor_status_user_id_fkey foreign key (user_id) references users (id);
-- Row Level Security
alter table user_monitor_status enable row level security;
-- Indexes
drop index if exists idx_user_monitor_status_user_id;
create index idx_user_monitor_status_user_id on public.user_monitor_status using btree (user_id, created_time desc);
drop index if exists user_monitor_status_pkey;
create unique index user_monitor_status_pkey on public.user_monitor_status using btree (id);