Supabase (@foundry/supabase)
This package contains the Supabase configuration, migrations, and email templates.Local Development
Migrations
Migrations live inmigrations/. To add a new migration:
- Create a SQL file:
migrations/NNN_description.sql - Always enable RLS on new tables
- Run:
supabase migration up - Regenerate types:
../../scripts/generate-types.sh
Initial Schema
The default migration creates aprofiles table that:
- References
auth.users(CASCADE delete) - Has RLS policies for user self-access
- Auto-creates a profile on signup via trigger

