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

A named namespace for disambiguating enum codes across entity types. More...

#include <code_domain.hpp>

Collaboration diagram for code_domain:
Collaboration graph

Public Attributes

int version = 0
 Version number for optimistic locking and change tracking.
 
utility::uuid::tenant_id tenant_id = utility::uuid::tenant_id::system()
 Tenant identifier for multi-tenancy isolation.
 
std::string code
 Unique code domain identifier.
 
std::string name
 Human-readable name for the code domain.
 
std::string description
 Detailed description of what this code domain classifies.
 
int display_order
 Order for UI display purposes.
 
std::string modified_by
 Username of the person who last modified this code domain.
 
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

A named namespace for disambiguating enum codes across entity types.

A code domain is a classification registry that names the context in which a code value exists. It disambiguates identical codes used in different entity types — e.g. 'ACTIVE' in party_status vs 'ACTIVE' in book_status.

Code domains are reusable beyond badges: any future system needing to namespace code values (validation rules, audit customisation, etc.) can reference this table.

Member Data Documentation

◆ code

std::string code

Unique code domain identifier.

Examples: 'party_status', 'book_type', 'fsm_state', 'dq_nature'.

◆ change_reason_code

std::string change_reason_code

Code identifying the reason for the change.

References change_reasons table (soft FK).