20#ifndef ORES_REFDATA_API_DOMAIN_PORTFOLIO_HPP
21#define ORES_REFDATA_API_DOMAIN_PORTFOLIO_HPP
26#include <boost/uuid/uuid.hpp>
53 boost::uuids::uuid
id;
Domain types for risk management.
Definition EntityDetailOperations.hpp:192
Logical aggregation node for risk and reporting.
Definition portfolio.hpp:37
std::string modified_by
Username of the person who last modified this portfolio.
Definition portfolio.hpp:117
std::string change_commentary
Free-text commentary explaining the change.
Definition portfolio.hpp:134
std::string description
Optional free-text description of the portfolio.
Definition portfolio.hpp:72
std::string status
Current lifecycle status (Active, Inactive, Closed).
Definition portfolio.hpp:112
std::optional< boost::uuids::uuid > owner_unit_id
Business unit responsible for management.
Definition portfolio.hpp:86
boost::uuids::uuid party_id
Party that owns this portfolio.
Definition portfolio.hpp:60
std::chrono::system_clock::time_point recorded_at
Timestamp when this version of the record was recorded.
Definition portfolio.hpp:139
std::string name
Human-readable name for the portfolio.
Definition portfolio.hpp:67
std::string aggregation_ccy
Currency for P&L/risk aggregation at this node.
Definition portfolio.hpp:100
int is_virtual
If 1, node is purely for on-demand reporting.
Definition portfolio.hpp:107
boost::uuids::uuid id
UUID uniquely identifying this portfolio.
Definition portfolio.hpp:53
int version
Version number for optimistic locking and change tracking.
Definition portfolio.hpp:41
std::optional< boost::uuids::uuid > parent_portfolio_id
Self-referencing FK. NULL indicates a root node.
Definition portfolio.hpp:79
std::string purpose_type
Portfolio purpose classification.
Definition portfolio.hpp:93
std::string performed_by
Username of the account that performed this action.
Definition portfolio.hpp:122
std::string tenant_id
Tenant identifier for multi-tenancy isolation.
Definition portfolio.hpp:46
std::string change_reason_code
Code identifying the reason for the change.
Definition portfolio.hpp:129