Skip to content

Namespace reeflogic::commons::role_wire C++ API Reference

Headers at a Glance

Header Classes Functions Macros
reeflogic/commons/role_wire_values.h 0 0 0

Header reeflogic/commons/role_wire_values.h

Canonical wire/text constants for t_roles enum-like columns.

The proto messages in common/role.proto carry role, origin, and domain as plain string fields, so the constants here (kRoleTypeAdmin, kRoleTypeTenant, kRoleOriginTemplate, kRoleOriginCustom, kRoleDomainAuthz) mirror exactly the PostgreSQL enum labels in V1.0_0000__creation.sql (role_type, role_origin, permission_domain). kRoleUuidPrefix (rol-) and kRoleUuidMaxLength (40) match the schema DEFAULT concat('rol-', gen_random_uuid()) and the varchar(40) column width for operator-supplied t_roles.uuid overrides on role create/copy paths.

See also: common/role.proto