Skip to main content

Portfolio

Data Dictionary - Entity Table: Portfolio#

Portfolio table that contains key characteristics of every portfolio including its type, investment strategy , etc.

Primary Key ('id').ENGINE = InnoDB..
Column NameData TypePK Primary Key, NN-Not Null, NullExampleComments
idBIGINT(12)PK, NN1PrimaryKey-ID, Not Null (auto creates) Contains the Unique Portfolio ID
business_partner_idBIGINT(12)NOT NULL1Related to Business Partner-Mandatory. The column can contain list of Business Partners
reference_currency_idBIGINT(12)NOT NULL1Reference currency id: portfolio performance (accounting of gains and losses) is measured in reference currency. If investment currency is different from reference one, then currency risk arises
type_idBIGINT(12)NOT NULL1Type of the portfolio
Investment_StrategyBIGINT(12)NULL1Portfolio investment strategy
virtualTINYINTNOT NULL0Real or virtual portfolio. See table portfolio type for more details
NameVARCHAR(45)NULLWAM.1655Portfolio name
is_groupTINYINTNULL0Is the portfolio a group of separate portfolios with separate strategy. Can be removed from model and instead the Portfolio_Structure can be used.
BookBIGINT(12)NULL1Book to which portfolio belongs
CONSTRAINTFOREIGN KEYREFERENCESON DELETEON UPDATE
reference_currency_id(reference_currency_id)Currency (id)NO ACTIONNO ACTION
type_id(type_id)Portfolio_Type (id)NO ACTIONNO ACTION
Strategy(Investment_Strategy)Investment_Strategy (id)NO ACTIONNO ACTION
Book(Book)Book (id)NO ACTIONNO ACTION
CREATE INDEXONASCVISIBLE.
reference_currency_id_idxPortfolio(reference_currency_id ASC)VISIBLE.
type_id_idxPortfolio(type_id ASC)VISIBLE.
Strategy_idxPortfolio(Investment_Strategy ASC)VISIBLE.
Book_idxPortfolio(Book ASC)VISIBLE.