20#ifndef ORES_REFDATA_CORE_REPOSITORY_BUSINESS_UNIT_ENTITY_HPP
21#define ORES_REFDATA_CORE_REPOSITORY_BUSINESS_UNIT_ENTITY_HPP
25#include "ores.database/repository/db_types.hpp"
26#include "sqlgen/PrimaryKey.hpp"
36 constexpr static const char* schema =
"public";
37 constexpr static const char* tablename =
"ores_refdata_business_units_tbl";
39 sqlgen::PrimaryKey<std::string> id;
40 std::string tenant_id;
43 std::string unit_name;
44 std::optional<std::string> parent_business_unit_id;
45 std::optional<std::string> unit_type_id;
46 std::string unit_code;
47 std::string business_centre_code;
49 std::string modified_by;
50 std::string performed_by;
51 std::string change_reason_code;
52 std::string change_commentary;
ores::database::repository::db_timestamp db_timestamp
Canonical database timestamp type.
Definition database_info_entity.hpp:31
Database persistence layer for risk domain types.
Definition asset_class_repository.hpp:29
Represents a business unit in the database.
Definition business_unit_entity.hpp:35