|
ORE Studio 0.0.4
|
Classification of organisational unit roles within a hierarchy. More...
#include <business_unit_type.hpp>

Public Attributes | |
| int | version = 0 |
| Version number for optimistic locking and change tracking. | |
| std::string | tenant_id |
| Tenant identifier for multi-tenancy isolation. | |
| boost::uuids::uuid | id |
| UUID uniquely identifying this business unit type. | |
| std::string | coding_scheme_code |
| Coding scheme this type belongs to. | |
| std::string | code |
| Short code identifying this type within the coding scheme. | |
| std::string | name |
| Human-readable name for this type. | |
| int | level = 0 |
| Hierarchy level: 0 = top, higher = lower in hierarchy. | |
| std::string | description |
| Optional description of this business unit type. | |
| std::string | modified_by |
| Username of the person who last modified this record. | |
| std::string | performed_by |
| Username of the account that performed this action. | |
| std::string | change_reason_code |
| Code identifying the reason for the change. | |
| std::string | change_commentary |
| Free-text commentary explaining the change. | |
| std::chrono::system_clock::time_point | recorded_at |
| Timestamp when this version of the record was recorded. | |
Classification of organisational unit roles within a hierarchy.
Defines the type and level of a business unit (e.g. Division, Desk). The level field enforces hierarchy ordering: 0 = top-level (e.g. Division or Branch), higher values = lower in the hierarchy. Business units referencing a type must satisfy: child.level > parent.level.
| boost::uuids::uuid id |
UUID uniquely identifying this business unit type.
Surrogate key for the record.
| std::string coding_scheme_code |
Coding scheme this type belongs to.
Soft FK to ores_dq_coding_schemes_tbl (e.g. "ORES-ORG").
| std::string code |
Short code identifying this type within the coding scheme.
e.g. "DIVISION", "DESK".
| std::string name |
Human-readable name for this type.
e.g. "Division", "Trading Desk".
| int level = 0 |
Hierarchy level: 0 = top, higher = lower in hierarchy.
Used to enforce parent-child level constraints on business units.
| std::string change_reason_code |
Code identifying the reason for the change.
References change_reasons table (soft FK).