File size: 709 Bytes
77024d4
 
 
9529a79
77024d4
 
 
 
 
 
 
9529a79
 
 
 
77024d4
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
-- 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.';