Skip to content

Specs M0 Accounts Permission

Claude edited this page Aug 28, 2026 · 1 revision

Permission

accounts.models.permission.Permission

Represents an elementary permission on a feature of a module. Permissions are generated by the system and are not created manually.

Field Type Constraints Description
id UUID PK, auto-generated Unique identifier
codename string required, unique, max 255 Technical code (e.g. context.scope.create)
name string required, max 255 Human-readable label (e.g. "Create a scope")
module string required, max 100 Owning module (e.g. context, assets)
feature string required, max 100 Feature concerned (e.g. scope, essential_asset)
action enum required create, read, update, delete
description text optional Detailed description of the permission
is_system boolean required, default true System permission (not deletable)

Note: The codename format follows the {module}.{feature}.{action} convention. Permissions are auto-generated from the module registry.

Clone this wiki locally