predikt/oracle/backend/supabase/private_users.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
797 B
SQL

-- This file is autogenerated from regen-schema.ts
create table if not exists
private_users (
data jsonb not null,
id text primary key not null,
weekly_portfolio_email_sent boolean default false,
weekly_trending_email_sent boolean default false
);
-- Row Level Security
alter table private_users enable row level security;
-- Policies
drop policy if exists "private read" on private_users;
create policy "private read" on private_users for
select
using ((firebase_uid () = id));
-- Indexes
drop index if exists private_users_data_api_key;
create index private_users_data_api_key on public.private_users using btree (((data ->> 'apiKey'::text)));
drop index if exists private_users_pkey;
create unique index private_users_pkey on public.private_users using btree (id);