20#ifndef ORES_TRADING_DOMAIN_LIFECYCLE_EVENT_HPP
21#define ORES_TRADING_DOMAIN_LIFECYCLE_EVENT_HPP
25#include "ores.utility/uuid/tenant_id.hpp"
27namespace ores::trading::domain {
Trade lifecycle event type (e.g. New, Amendment, Novation, PartialTermination).
Definition lifecycle_event.hpp:35
std::string modified_by
Username of the person who last modified this lifecycle event.
Definition lifecycle_event.hpp:61
std::string change_commentary
Free-text commentary explaining the change.
Definition lifecycle_event.hpp:78
std::string description
Detailed description of the lifecycle event.
Definition lifecycle_event.hpp:56
std::string code
Unique lifecycle event code.
Definition lifecycle_event.hpp:51
std::chrono::system_clock::time_point recorded_at
Timestamp when this version of the record was recorded.
Definition lifecycle_event.hpp:83
int version
Version number for optimistic locking and change tracking.
Definition lifecycle_event.hpp:39
std::string performed_by
Username of the account that performed this action.
Definition lifecycle_event.hpp:66
utility::uuid::tenant_id tenant_id
Tenant identifier for multi-tenancy isolation.
Definition lifecycle_event.hpp:44
std::string change_reason_code
Code identifying the reason for the change.
Definition lifecycle_event.hpp:73
A strongly-typed wrapper around a UUID representing a tenant identifier.
Definition tenant_id.hpp:66
static tenant_id system()
Creates a tenant_id representing the system tenant.
Definition tenant_id.cpp:41