20#ifndef ORES_DQ_REPOSITORY_CHANGE_REASON_ENTITY_HPP
21#define ORES_DQ_REPOSITORY_CHANGE_REASON_ENTITY_HPP
24#include "sqlgen/Timestamp.hpp"
25#include "sqlgen/PrimaryKey.hpp"
27namespace ores::dq::repository {
33 constexpr static const char* schema =
"metadata";
34 constexpr static const char* tablename =
"dq_change_reasons_tbl";
36 sqlgen::PrimaryKey<std::string> code;
38 std::string description;
39 std::string category_code;
40 bool applies_to_amend =
true;
41 bool applies_to_delete =
true;
42 bool requires_commentary =
false;
43 int display_order = 0;
44 std::string modified_by;
45 std::string change_commentary;
46 sqlgen::Timestamp<
"%Y-%m-%d %H:%M:%S"> valid_from =
"9999-12-31 23:59:59";
47 sqlgen::Timestamp<
"%Y-%m-%d %H:%M:%S"> valid_to =
"9999-12-31 23:59:59";
Represents a change_reason in the database.
Definition change_reason_entity.hpp:32