RolePermissions table
The RolePermissions table in the FitStack - V2 schema has 3 columns, keyed by Id, with 2 foreign keys to Roles and Permissions.
Join: a role confers a permission. No audit columns.
Columns (3)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key, not null | |
| RoleId | text | not null, references Roles.Id | |
| PermissionId | uuid | not null, references Permissions.Id |
Indexes (2)
(RoleId)(IX_RolePermissions_RoleId)(PermissionId)(IX_RolePermissions_PermissionId)
Relationships
RolePermissions.RoleIdreferencesRoles.IdRolePermissions.PermissionIdreferencesPermissions.Id