Skip to main content

Transaction Relation

Data Dictionary - Entity Table: Transaction_Relation#

There could be relations between transactions which are captured in this table. For example, a single corporate action could result in more than one position change or a portfolio manager may decide to rebalance the portfolio to the approved investment strategy and may want to buy stock X and sell stock Y. These two transactions could be marked as related.

Primary Key ('id').ENGINE = InnoDB..
Column NameData TypePK Primary Key, NN-Not Null, NullExampleComments
idBIGINT(12)PK, NN1PrimaryKey-ID, Not Null (auto creates)
SourceBIGINT(12)NULL1Source transaction id
AssociatedBIGINT(12)NULL2Associated transaction id
CONSTRAINTFOREIGN KEYREFERENCESON DELETEON UPDATE
Source(Source)Transactions (id)NO ACTIONNO ACTION
Associated(Associated)Transactions (id)NO ACTIONNO ACTION
CREATE INDEXONASCVISIBLE.
Source_idxTransaction_Relation(Source ASC)VISIBLE.
Associated_idxTransaction_Relation(Associated ASC)VISIBLE.