Schema definitions for Role and Permission in the system.
RoleAlias
.
description: An optional field providing more details about the role. Only used for display purposes.
permissions: An array of ObjectId
references to the Permission
model, denoting the permissions assigned to this role.
system: System-related fields of the role, such as timestamps for creation and modification.
PermissionType
.
system: System-related fields of the permission, including timestamps for creation and modification.