20#ifndef ORES_REFDATA_CORE_REPOSITORY_BOOK_ENTITY_HPP
21#define ORES_REFDATA_CORE_REPOSITORY_BOOK_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_books_tbl";
39 sqlgen::PrimaryKey<std::string> id;
40 std::string tenant_id;
44 std::string description;
45 std::string parent_portfolio_id;
46 std::optional<std::string> owner_unit_id;
47 std::string ledger_ccy;
48 std::string gl_account_ref;
49 std::string cost_center;
50 std::string book_status;
52 std::string modified_by;
53 std::string performed_by;
54 std::string change_reason_code;
55 std::string change_commentary;
60std::ostream& operator<<(std::ostream& s,
const book_entity& v);
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 book in the database.
Definition book_entity.hpp:35