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>
14 lines
595 B
SQL
14 lines
595 B
SQL
-- Run with: npx scribase sql --file supabase/setup.sql
|
|
-- A public notes table for the Worker. Row level security is on: the public
|
|
-- key can read and add public notes and nothing else. Scribase refuses a
|
|
-- public table without it.
|
|
create table notes (
|
|
id bigint generated always as identity primary key,
|
|
body text not null,
|
|
is_public boolean not null default true
|
|
);
|
|
alter table notes enable row level security;
|
|
create policy notes_read on notes for select using (is_public);
|
|
create policy notes_write on notes for insert with check (is_public);
|
|
grant select, insert on notes to anon;
|