Skip to main content

Permission

The Permission entity, mapped to the permission table.

Tablepermission
Tenant-scopedNo — global table
Columns4
Relationships0
Sourcebackend/src/main/java/com/motorph/payroll/model/Permission.java
Not tenant-scoped

This entity does not extend TenantOwned, so its rows are shared across every tenant. TenantCoverageTest allows that only for tables deliberately declared global.

Columns​

FieldTypeColumnNullNotes
permissionIdIntegerpermission_id—primary key, generated
permissionNameStringpermission_name—unique
descriptionStringdescriptionYes—
categoryStringcategoryYes—

Referenced by​

EntityFieldKind
Rolepermissions@ManyToMany

Neighbourhood​

Repository​

PermissionRepository​

Declared over Permission with id type Integer. Source: backend/src/main/java/com/motorph/payroll/repository/PermissionRepository.java

MethodReturnsNotes
existsByPermissionNameIgnoreCase(String permissionName)booleanderived
existsByPermissionNameIgnoreCaseAndPermissionIdNot(String permissionName, Integer permissionId)booleanderived

Reached by​

These controllers hold — directly or through a service they depend on — a repository over Permission.

ControllerBase pathEndpointsModule
PermissionController/api/permissions5Auth & Identity
PublicSignupController/api/public/signup2Billing & Platform
RoleController/api/roles6Auth & Identity
TenantAdminController/api/admin/tenants7Billing & Platform

Generated page

This page is rebuilt from the source on every docs build by docs-site/scripts/gen-code-wiki.mjs. Editing it has no effect — change the code, or, if what you want to say is prose, write it in docs/.