binbin888's picture
Deploy v0.5.129 Supabase KV security docs
9529a79 verified
Raw History Blame Contribute Delete
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.';