Teams
Teams are the top-level organizational unit. Every task, contact, and API token belongs to exactly one team.Roles
| Role | Permissions |
|---|---|
| Owner | Full access, can delete the team |
| Admin | Manage members, create tokens, full data access |
| Member | Read and write tasks and contacts |
Active team
Users can belong to multiple teams. The active team is tracked via theob_team_id cookie and can be switched in the navigation sidebar.
Data isolation
All data queries include ateam_id filter enforced at two levels:
- Application level — API routes resolve the active team from the session or PAK token and scope all queries
- Database level — RLS policies on every table ensure users can only access data for their teams