Schema
Core tables
Data tables
Email tables
Notification tables
System tables
Row Level Security
Every data table has RLS policies that check team membership:- Users can only read and write data for teams they belong to
- API tokens are scoped to a specific team via the
X-Team-Idheader - Policies use
auth.uid()for web sessions and the verified token’s team for API access
Migrations
Database migrations are insupabase/migrations/ (files 001 through 018). Run them with the Supabase CLI: