Team
RLS-backed access control. Team members are stored in marketing.team_members.
Seeded users
From migration 005
- super_adminDerrick McMichael II
Role guide
- super_admin
Full read + write across all marketing tables; can manage team_members.
- admin
Full read; can manage campaigns but not team_members.
- editor
Read + create posts/campaigns; cannot delete or manage team.
- viewer
Read-only access to aggregated rollups.
Adding a teammate
SQL migration + supabase auth invite
- Invite via Auth → Users.
INSERT INTO marketing.team_members (user_id, role) VALUES ('<auth.users.id>', 'editor') ON CONFLICT (user_id) DO NOTHING;- RLS picks up the new role on next request.
Configuration
Runtime state
- Supabase URL
- https://hupiguhcsmeucownlbre.supabase.co
- Anon key
- configured
- Service role key
- missing