20#ifndef ORES_SCHEDULER_DOMAIN_JOB_DEFINITION_HPP
21#define ORES_SCHEDULER_DOMAIN_JOB_DEFINITION_HPP
26#include <boost/uuid/uuid.hpp>
27#include "ores.scheduler.api/domain/cron_expression.hpp"
29namespace ores::scheduler::domain {
42 boost::uuids::uuid
id;
Strongly-typed, validated cron expression.
Definition cron_expression.hpp:44
Persistent plan for an in-process scheduled job.
Definition job_definition.hpp:38
std::string modified_by
Username of the person who last modified this job definition.
Definition job_definition.hpp:98
std::string action_type
Type of action to execute on each firing.
Definition job_definition.hpp:77
std::string change_commentary
Free-text commentary explaining the change.
Definition job_definition.hpp:115
std::string description
Human-readable label for UI.
Definition job_definition.hpp:62
bool is_active
False = paused (not scheduled).
Definition job_definition.hpp:88
std::chrono::system_clock::time_point recorded_at
Timestamp when this version of the record was recorded.
Definition job_definition.hpp:120
boost::uuids::uuid id
UUID primary key for the job definition.
Definition job_definition.hpp:42
int version
Version number for optimistic locking and change tracking.
Definition job_definition.hpp:93
cron_expression schedule_expression
Validated cron expression.
Definition job_definition.hpp:72
std::string action_payload
JSON payload for the action. For send_mq_message: {"queue_id":"<uuid>","message_type":"<str>",...
Definition job_definition.hpp:83
std::optional< boost::uuids::uuid > tenant_id
Tenant identifier for multi-tenancy isolation. Null for system jobs.
Definition job_definition.hpp:47
std::string job_name
Unique name for this job.
Definition job_definition.hpp:57
std::string performed_by
Username of the account that performed this action.
Definition job_definition.hpp:103
std::string command
SQL command to execute.
Definition job_definition.hpp:67
std::optional< boost::uuids::uuid > party_id
Party that owns this job definition. Null for system jobs.
Definition job_definition.hpp:52
std::string change_reason_code
Code identifying the reason for the change.
Definition job_definition.hpp:110