Spaces:
Sleeping
Sleeping
Download docs/database/supabase-kv.sql from binbin888/contract-decision-ai-beta: direct link, hf CLI and curl.
- Browser
- Download file 709 Bytes
-
https://huggingface.co/spaces/binbin888/contract-decision-ai-beta/resolve/main/docs/database/supabase-kv.sql
- Command line
-
hf download hf://spaces/binbin888/contract-decision-ai-beta/docs/database/supabase-kv.sql
-
curl -L -o supabase-kv.sql https://huggingface.co/spaces/binbin888/contract-decision-ai-beta/resolve/main/docs/database/supabase-kv.sql
709 Bytes
| -- Contract Decision AI - Supabase MVP persistent storage | |
| -- Run this once in Supabase SQL Editor. | |
| -- Keep SUPABASE_SERVICE_ROLE_KEY only in server-side secrets. Never expose it in frontend code. | |
| -- Do not use anon/public/publishable keys for this table. | |
| create table if not exists public.app_kv ( | |
| key text primary key, | |
| value jsonb not null, | |
| updated_at timestamptz not null default now() | |
| ); | |
| alter table public.app_kv enable row level security; | |
| revoke all on table public.app_kv from anon; | |
| revoke all on table public.app_kv from authenticated; | |
| comment on table public.app_kv is | |
| 'Server-side KV persistence for Contract Decision AI MVP: users, sessions, usage, analytics, and project memory JSON.'; | |