Skip to main content

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

  1. Users create or join an organization through Clerk
  2. On first dashboard access, ensureOrgSynced() syncs the org and its members to the database
  3. All queries are automatically filtered by the active organization ID

Organization data

FieldSource
NameClerk
SlugClerk
MembersSynced from Clerk to memberships table
StoresCreated within PoolPuma