Context
Set up the database schema from the proposal. Three tables: storylines, plots, donations. The schema includes deduplication constraints (UNIQUE(tx_hash, log_index)), foreign keys, and an indexer-set writer_type column. Also add a hidden boolean column (default false) to storylines and plots for MVP content moderation (§8 Risks table).
Sub-tickets
Proposal Reference
§4.1 (Supabase Schema)
Context
Set up the database schema from the proposal. Three tables:
storylines,plots,donations. The schema includes deduplication constraints (UNIQUE(tx_hash, log_index)), foreign keys, and an indexer-setwriter_typecolumn. Also add ahiddenboolean column (default false) tostorylinesandplotsfor MVP content moderation (§8 Risks table).Sub-tickets
hiddencolumn onstorylinesandplots.lib/supabase.ts) — server-side client using service role key, and a browser-side client using anon key. Follow the pattern used in other project repos (dropcast, reviewme-fun).Proposal Reference
§4.1 (Supabase Schema)