Permissions table
The Permissions table in the FitStack - V2 schema has 4 columns, keyed by Id. 2 columns in RolePermissions and UserPermissions reference it.
Catalogue of named capabilities. Emitted into the JWT as `permission` claims by Infrastructure/Security/Tokens/JwtTokenGenerator.cs, from two sources: role claims of type `permission`, and direct user grants below. No audit columns — not `Auditable`, so no soft-delete filter.
Columns (4)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key, not null | |
| Name | text | not null | Dotted verb, e.g. `tokens.manage`, `users.delete`. |
| Description | text | not null | |
| Category | text | not null |
Relationships
RolePermissions.PermissionIdreferencesPermissionsUserPermissions.PermissionIdreferencesPermissions