20#ifndef ORES_COMPUTE_DOMAIN_BATCH_HPP
21#define ORES_COMPUTE_DOMAIN_BATCH_HPP
24#include "ores.utility/uuid/tenant_id.hpp"
26namespace ores::compute::domain {
49 boost::uuids::uuid
id;
A logical grouping of workunits forming a financial computation batch.
Definition batch.hpp:35
std::string modified_by
Username of the person who last modified this compute batch.
Definition batch.hpp:64
std::string change_commentary
Free-text commentary explaining the change.
Definition batch.hpp:81
std::string status
Lifecycle status: open, processing, assimilating, or closed.
Definition batch.hpp:59
std::string external_ref
External reference linking this batch to the originating finance system or project.
Definition batch.hpp:54
std::chrono::system_clock::time_point recorded_at
Timestamp when this version of the record was recorded.
Definition batch.hpp:86
boost::uuids::uuid id
UUID primary key for the batch.
Definition batch.hpp:49
int version
Version number for optimistic locking and change tracking.
Definition batch.hpp:39
std::string performed_by
Username of the account that performed this action.
Definition batch.hpp:69
utility::uuid::tenant_id tenant_id
Tenant identifier for multi-tenancy isolation.
Definition batch.hpp:44
std::string change_reason_code
Code identifying the reason for the change.
Definition batch.hpp:76
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