From b065faab82450e748c777cd0f9226bf284429718 Mon Sep 17 00:00:00 2001 From: Roland Kapl Date: Sat, 31 Jul 2021 12:29:57 +0200 Subject: [PATCH 1/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 79c2b7d..32a9cff 100644 --- a/README.md +++ b/README.md @@ -9,4 +9,4 @@ Tools for easier implementation of Opensource Risk Engine (ORE, http://www.opens * A background service (OreService, using OreMgr) * A .NET library (OreMgr) including a SWIG wrapper to ORE and a XML Building Utility (TreeizeRelD/TreeizeRelDCsharp) -Currently in development, details see [https://rkapl123.github.io/OreControl](https://rkapl123.github.io/OreControl) +Currently in development (usable only [OreDB](https://github.com/rkapl123/OreControl/tree/master/OreDB) and [TreeizeRelD](https://github.com/rkapl123/OreControl/tree/master/OreMgr/TreeizeRelD), for details of the architecture see [https://rkapl123.github.io/OreControl](https://rkapl123.github.io/OreControl) From c72957a9eb8daee1a732af59b003281cb8de6fbd Mon Sep 17 00:00:00 2001 From: Roland Kapl Date: Sat, 31 Jul 2021 12:34:15 +0200 Subject: [PATCH 2/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 32a9cff..1d3f436 100644 --- a/README.md +++ b/README.md @@ -9,4 +9,4 @@ Tools for easier implementation of Opensource Risk Engine (ORE, http://www.opens * A background service (OreService, using OreMgr) * A .NET library (OreMgr) including a SWIG wrapper to ORE and a XML Building Utility (TreeizeRelD/TreeizeRelDCsharp) -Currently in development (usable only [OreDB](https://github.com/rkapl123/OreControl/tree/master/OreDB) and [TreeizeRelD](https://github.com/rkapl123/OreControl/tree/master/OreMgr/TreeizeRelD), for details of the architecture see [https://rkapl123.github.io/OreControl](https://rkapl123.github.io/OreControl) +OreControl is currently under development (already usable parts are DB setup scripts [OreDB](https://github.com/rkapl123/OreControl/tree/master/OreDB) and the library [TreeizeRelD](https://github.com/rkapl123/OreControl/tree/master/OreMgr/TreeizeRelD), for details of the architecture see [https://rkapl123.github.io/OreControl](https://rkapl123.github.io/OreControl) From 372be56114f05a44e100f4c7947a84a53441ffd9 Mon Sep 17 00:00:00 2001 From: rkapl123 Date: Fri, 26 Jan 2024 16:59:18 +0100 Subject: [PATCH 3/3] new repo, added PortfolioPartiesGroupingIds, remove PortfolioSwapData --- OreDB/Tables/PortfolioTables.sql | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/OreDB/Tables/PortfolioTables.sql b/OreDB/Tables/PortfolioTables.sql index c1fb139..622082a 100644 --- a/OreDB/Tables/PortfolioTables.sql +++ b/OreDB/Tables/PortfolioTables.sql @@ -1,5 +1,15 @@ use ORE; +CREATE TABLE dbo.PortfolioPartiesGroupingIds ( + PartiesId varchar(30) NOT NULL, + GroupingId varchar(70) NOT NULL, + CONSTRAINT PK_PortfolioPartiesGroupingIds PRIMARY KEY CLUSTERED ( + PartiesId ASC, + GroupingId ASC +)); +ALTER TABLE PortfolioPartiesGroupingIds ADD CONSTRAINT FK_PortfolioPartiesGroupingIds_PartiesId FOREIGN KEY(PartiesId) +REFERENCES TypesParties (value); + CREATE TABLE PortfolioTrades ( Id varchar(180) not null, TradeType varchar(30), @@ -16,7 +26,6 @@ REFERENCES TypesParties (value); ALTER TABLE PortfolioTrades ADD CONSTRAINT FK_PortfolioTrades_EnvelopeNettingSetId FOREIGN KEY(EnvelopeNettingSetId) REFERENCES NettingSet (NettingSetId); - CREATE TABLE PortfolioTradeGroupingIds ( TradeId varchar(180) not null, GroupingId varchar(70) not null, @@ -24,7 +33,8 @@ CONSTRAINT PK_PortfolioTradeGroupingIds PRIMARY KEY CLUSTERED ( TradeId ASC, GroupingId ASC )); - +ALTER TABLE PortfolioTradeGroupingIds ADD CONSTRAINT FK_PortfolioTradeGroupingIds_TradeId FOREIGN KEY(TradeId) +REFERENCES PortfolioTrades (Id); CREATE TABLE PortfolioTradeActions ( Id int not null, @@ -86,15 +96,6 @@ CONSTRAINT PK_PortfolioScheduleDataDates PRIMARY KEY CLUSTERED ( -- REFERENCES TypesCalendar (value); -CREATE TABLE PortfolioSwapData ( - TradeId varchar(180) not null, -CONSTRAINT PK_PortfolioSwapData PRIMARY KEY CLUSTERED ( - TradeId ASC -)); -ALTER TABLE PortfolioSwapData ADD CONSTRAINT FK_PortfolioSwapData_TradeId FOREIGN KEY(TradeId) -REFERENCES PortfolioTrades (Id); - - CREATE TABLE PortfolioCDOData ( TradeId varchar(180) not null, ProtectionStart date,