20#ifndef ORES_ACCOUNTS_DOMAIN_ROLE_HPP
21#define ORES_ACCOUNTS_DOMAIN_ROLE_HPP
25#include <boost/uuid/uuid.hpp>
27namespace ores::accounts::domain {
47 boost::uuids::uuid
id;
82 constexpr auto admin =
"Admin";
83 constexpr auto trading =
"Trading";
84 constexpr auto sales =
"Sales";
85 constexpr auto operations =
"Operations";
86 constexpr auto support =
"Support";
Represents a named collection of permissions that can be assigned to accounts.
Definition role.hpp:38
std::string description
Human-readable description of the role's purpose and scope.
Definition role.hpp:57
std::string name
Unique name for the role (e.g., "Trading", "Sales", "Admin").
Definition role.hpp:52
std::string recorded_by
Username of the person who last modified this role.
Definition role.hpp:62
boost::uuids::uuid id
Unique identifier for the role.
Definition role.hpp:47
int version
Version number for optimistic locking and change tracking.
Definition role.hpp:42
std::vector< std::string > permission_codes
Permission codes granted to this role.
Definition role.hpp:75
std::string recorded_at
Timestamp when this version of the record was recorded.
Definition role.hpp:67