Tenant Isolation & RBAC
Application-level tenant scoping, relational tenant boundaries, and role-based access controls.
- ✓Tenant-Aware Query Scoping: Tenant context is established through authenticated requests and applied to supported Prisma-scoped models and tenant-aware repository queries. Top-level tenant-scoped entities use indexed
tenantIdfields, while several child entities inherit isolation throughInventoryrelationships. - ✓Granular Role Boundaries: Access gates distinguish
SUPER_ADMINand tenant-level operational roles throughrequireSuperAdminandrequireRoleauthorization middleware. - ✓Token Versioning: JWTs include a token-version mechanism that supports session invalidation and credential revocation; logout/session behavior should not be described as instantaneous universal revocation.