ORE Studio 0.0.4
Loading...
Searching...
No Matches
Public Attributes | List of all members
business_unit_type Struct Referencefinal

Classification of organisational unit roles within a hierarchy. More...

#include <business_unit_type.hpp>

Collaboration diagram for business_unit_type:
Collaboration graph

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.
 

Detailed Description

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.

Member Data Documentation

◆ id

boost::uuids::uuid id

UUID uniquely identifying this business unit type.

Surrogate key for the record.

◆ coding_scheme_code

std::string coding_scheme_code

Coding scheme this type belongs to.

Soft FK to ores_dq_coding_schemes_tbl (e.g. "ORES-ORG").

◆ code

std::string code

Short code identifying this type within the coding scheme.

e.g. "DIVISION", "DESK".

◆ name

std::string name

Human-readable name for this type.

e.g. "Division", "Trading Desk".

◆ level

int level = 0

Hierarchy level: 0 = top, higher = lower in hierarchy.

Used to enforce parent-child level constraints on business units.

◆ change_reason_code

std::string change_reason_code

Code identifying the reason for the change.

References change_reasons table (soft FK).