Granular RBAC Database Schema Design
ER Diagrams · made in Skemio

What it shows
- Decouple permissions from roles to prevent explosive role sprawl.
- Add scope type and scope ID to assignments for instant multi-tenancy.
- Evaluate permissions at runtime via cached role sets to limit joins.
The takeaway
Scope role assignments by resource ID to support multi-tenant RBAC without schema rewrites.
- #DatabaseDesign
- #SystemDesign
- #SoftwareArchitecture
- #PostgreSQL
- #BackendDev
- #DataModeling




