Skip to content

Commit

Permalink
feat: added cash and fixedincome tx to grouptx entity
Browse files Browse the repository at this point in the history
  • Loading branch information
froid1911 committed Mar 15, 2024
1 parent 09739f1 commit 28405fd
Showing 1 changed file with 23 additions and 19 deletions.
42 changes: 23 additions & 19 deletions api/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -248,30 +248,34 @@ model RWAPortfolioFixedIncomeTypeOnPortfolio {
}

model RWABaseTransaction {
driveId String
id String
assetId String
amount Float
entryTime DateTime
tradeTime DateTime
settlementTime DateTime
txRef String
accountId String
counterPartyAccountId String
cashTransactions RWAGroupTransaction[]
feeTransactions RWABaseTransactionOnGroupTransaction[]
driveId String
id String
assetId String
amount Float
entryTime DateTime?
tradeTime DateTime?
settlementTime DateTime?
txRef String
accountId String?
counterPartyAccountId String?
cashTransactions RWAGroupTransaction[] @relation(name: "cashTransaction")
fixedIncomeTransactions RWAGroupTransaction[] @relation(name: "fixedIncomeTransaction")
feeTransactions RWABaseTransactionOnGroupTransaction[]
@@id([id, driveId])
}

model RWAGroupTransaction {
driveId String
id String
portfolioId String
type String
baseTransaction RWABaseTransaction? @relation(fields: [baseTransactionId, driveId], references: [id, driveId])
baseTransactionId String?
feeTransactions RWABaseTransactionOnGroupTransaction[]
driveId String
id String
portfolioId String
type String
cashTransaction RWABaseTransaction? @relation(name: "cashTransaction", fields: [cashTransactionId, driveId], references: [id, driveId])
cashTransactionId String?
fixedIncomeTransaction RWABaseTransaction? @relation(name: "fixedIncomeTransaction", fields: [fixedTransactionId, driveId], references: [id, driveId])
fixedTransactionId String?
feeTransactions RWABaseTransactionOnGroupTransaction[]
@@id([id, driveId])
}
Expand Down

0 comments on commit 28405fd

Please sign in to comment.