20#ifndef ORES_REPORTING_DOMAIN_REPORT_INSTANCE_HPP
21#define ORES_REPORTING_DOMAIN_REPORT_INSTANCE_HPP
27#include <boost/uuid/uuid.hpp>
28#include "ores.utility/uuid/tenant_id.hpp"
30namespace ores::reporting::domain {
58 boost::uuids::uuid
id;
98 std::optional<std::chrono::system_clock::time_point>
started_at;
A single execution of a report definition.
Definition report_instance.hpp:44
std::string modified_by
Username of the person who last modified this report instance.
Definition report_instance.hpp:108
std::string change_commentary
Free-text commentary explaining the change.
Definition report_instance.hpp:125
std::string description
Description copied from the report definition at creation time.
Definition report_instance.hpp:68
std::string output_message
Execution log or error message.
Definition report_instance.hpp:93
std::int64_t trigger_run_id
Scheduler trigger run ID that caused this instance to be created.
Definition report_instance.hpp:88
std::optional< std::chrono::system_clock::time_point > completed_at
When execution completed. NULL while running or before start.
Definition report_instance.hpp:103
std::optional< std::chrono::system_clock::time_point > started_at
When execution began. NULL if cancelled before starting.
Definition report_instance.hpp:98
boost::uuids::uuid party_id
Party that owns this report instance (inherited from the definition).
Definition report_instance.hpp:73
std::chrono::system_clock::time_point recorded_at
Timestamp when this version of the record was recorded.
Definition report_instance.hpp:130
std::string name
Human-readable name copied from the report definition at creation time.
Definition report_instance.hpp:63
boost::uuids::uuid definition_id
The report definition that produced this instance.
Definition report_instance.hpp:78
boost::uuids::uuid id
UUID uniquely identifying this report instance.
Definition report_instance.hpp:58
std::optional< boost::uuids::uuid > fsm_state_id
Current FSM state (FK to ores_dq_fsm_states_tbl).
Definition report_instance.hpp:83
int version
Version number for optimistic locking and change tracking.
Definition report_instance.hpp:48
std::string performed_by
Username of the account that performed this action.
Definition report_instance.hpp:113
utility::uuid::tenant_id tenant_id
Tenant identifier for multi-tenancy isolation.
Definition report_instance.hpp:53
std::string change_reason_code
Code identifying the reason for the change.
Definition report_instance.hpp:120
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