One clinic cannot see another
Tenant isolation is enforced where the queries are made, not by a filter each developer has to remember.
- Every tenant-owned table is reached through a scoped client that physically cannot return another clinic’s rows.
- The two places that client cannot reach — raw SQL and the bare client — are checked by a test that reads the source and fails the build.
- Praclyn’s own console runs on a separate identity with its own token audience, not an elevated role on a clinic user.