caelum0x eca10fa900 feat: SCR-DIR AGENTS.md for coding agents, claim flow and approver gate in README
AGENTS.md gives any coding agent the four steps: npm install,
npx scribase init --temp --yes --json, confirm first_request, create the
notes table from supabase/setup.sql, hand the human the claim link.
README gains the claim flow and the production approver gate.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-30 21:07:07 +03:00

15 lines
634 B
SQL

-- Run with: npx scribase sql --file supabase/setup.sql
-- One row per user. Row level security is on, so a signed-in user only ever
-- reads and writes their own notes. Scribase refuses a public table without it.
create table notes (
id bigint generated always as identity primary key,
user_id uuid not null references auth.users(id),
body text not null,
inserted_at timestamptz not null default now()
);
alter table notes enable row level security;
create policy notes_owner on notes for all
using (auth.uid() = user_id)
with check (auth.uid() = user_id);
grant select, insert, update, delete on notes to authenticated;