20#ifndef ORES_DQ_DOMAIN_BADGE_DEFINITION_HPP
21#define ORES_DQ_DOMAIN_BADGE_DEFINITION_HPP
26#include "ores.utility/uuid/tenant_id.hpp"
28namespace ores::dq::domain {
Visual definition for a badge, including colours, label, and severity.
Definition badge_definition.hpp:41
int display_order
Order for UI display purposes.
Definition badge_definition.hpp:100
std::string modified_by
Username of the person who last modified this badge definition.
Definition badge_definition.hpp:105
std::string text_colour
Badge text colour as a hex string.
Definition badge_definition.hpp:81
std::string change_commentary
Free-text commentary explaining the change.
Definition badge_definition.hpp:122
std::string description
Tooltip text explaining what this badge represents.
Definition badge_definition.hpp:67
std::string code
Unique badge definition code.
Definition badge_definition.hpp:57
std::string background_colour
Badge background colour as a hex string.
Definition badge_definition.hpp:74
std::string css_class
Optional Bootstrap CSS class hint for Wt rendering.
Definition badge_definition.hpp:95
std::chrono::system_clock::time_point recorded_at
Timestamp when this version of the record was recorded.
Definition badge_definition.hpp:127
std::string name
Display label shown inside the badge.
Definition badge_definition.hpp:62
int version
Version number for optimistic locking and change tracking.
Definition badge_definition.hpp:45
std::string performed_by
Username of the account that performed this action.
Definition badge_definition.hpp:110
utility::uuid::tenant_id tenant_id
Tenant identifier for multi-tenancy isolation.
Definition badge_definition.hpp:50
std::string change_reason_code
Code identifying the reason for the change.
Definition badge_definition.hpp:117
std::string severity_code
Severity classification for this badge.
Definition badge_definition.hpp:88
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