Skip to main content
The cloud uses Supabase PostgreSQL with Row Level Security (RLS) policies to enforce data isolation between teams.

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-Id header
  • Policies use auth.uid() for web sessions and the verified token’s team for API access

Migrations

Database migrations are in supabase/migrations/ (files 001 through 018). Run them with the Supabase CLI: