Skip to content

Commit

Permalink
feat: added more operations to rwa surgical update
Browse files Browse the repository at this point in the history
  • Loading branch information
froid1911 committed Mar 15, 2024
1 parent a243aa2 commit d657b68
Show file tree
Hide file tree
Showing 2 changed files with 431 additions and 14 deletions.
24 changes: 12 additions & 12 deletions api/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ model RWAPortfolioSpv {
id String @default(uuid())
portfolioId String
portfolio RWAPortfolio @relation(fields: [portfolioId], references: [id], onDelete: Cascade)
name String
name String?
RWAPortfolioSpvOnPortfolio RWAPortfolioSpvOnPortfolio[]
RWAPortfolioServiceProviderOnPortfolio RWAPortfolioServiceProviderOnPortfolio[]
Expand All @@ -228,13 +228,13 @@ model RWAAccountOnPortfolio {
}

model RWAPortfolioServiceProvider {
id String @default(uuid())
id String @default(uuid())
portfolioId String
portfolio RWAPortfolio @relation(fields: [portfolioId], references: [id], onDelete: Cascade)
name String
feeType String
accountId String
account RWAPortfolioAccount @relation(fields: [accountId, portfolioId], references: [id, portfolioId])
portfolio RWAPortfolio @relation(fields: [portfolioId], references: [id], onDelete: Cascade)
name String?
feeType String?
accountId String?
account RWAPortfolioAccount? @relation(fields: [accountId, portfolioId], references: [id, portfolioId])
@@id([id, portfolioId])
}
Expand All @@ -258,15 +258,15 @@ model RWAPortfolioFixedIncomeTypeOnPortfolio {
}

model RWABaseTransaction {
id String
id String @default(uuid())
portfolioId String
portfolio RWAPortfolio @relation(fields: [portfolioId], references: [id], onDelete: Cascade)
assetId String
amount Float
assetId String?
amount Float?
entryTime DateTime?
tradeTime DateTime?
settlementTime DateTime?
txRef String
txRef String?
accountId String?
counterPartyAccountId String?
cashTransactions RWAGroupTransaction[] @relation(name: "cashTransaction")
Expand All @@ -277,7 +277,7 @@ model RWABaseTransaction {
}

model RWAGroupTransaction {
id String
id String @default(uuid())
portfolioId String
portfolio RWAPortfolio @relation(fields: [portfolioId], references: [id], onDelete: Cascade)
type String
Expand Down
Loading

0 comments on commit d657b68

Please sign in to comment.