Overview
Each pool service company is represented as a Clerk organization. Organizations are the top-level tenant boundary. All data is scoped to the active organization.How it works
- Users create or join an organization through Clerk
- On first dashboard access,
ensureOrgSynced()syncs the org and its members to the database - All queries are automatically filtered by the active organization ID
Organization data
| Field | Source |
|---|---|
| Name | Clerk |
| Slug | Clerk |
| Members | Synced from Clerk to memberships table |
| Stores | Created within PoolPuma |