Skip to content

Commit

Permalink
chore: added cashbalance change and unitprice and removed interestTra…
Browse files Browse the repository at this point in the history
…nsaction
  • Loading branch information
froid1911 committed May 3, 2024
1 parent 5df23b4 commit d58ccd1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions api/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,6 @@ model RWABaseTransaction {
portfolio RWAPortfolio @relation(fields: [portfolioId], references: [id], onDelete: Cascade)
cashTransactions RWAGroupTransaction[] @relation(name: "cashTransaction")
fixedIncomeTransactions RWAGroupTransaction[] @relation(name: "fixedIncomeTransaction")
RWAGroupTransaction RWAGroupTransaction[] @relation(name: "interestTransaction")
feeTransactions RWABaseTransactionOnGroupTransaction[]
@@id([id, portfolioId])
Expand All @@ -286,13 +285,13 @@ model RWAGroupTransaction {
portfolioId String
type String
entryTime DateTime?
cashBalanceChange String?
unitPrice String?
cashTransactionId String?
fixedIncomeTransactionId String?
interestTransactionId String?
portfolio RWAPortfolio @relation(fields: [portfolioId], references: [id], onDelete: Cascade)
fixedIncomeTransaction RWABaseTransaction? @relation(name: "fixedIncomeTransaction", fields: [fixedIncomeTransactionId, portfolioId], references: [id, portfolioId])
cashTransaction RWABaseTransaction? @relation(name: "cashTransaction", fields: [cashTransactionId, portfolioId], references: [id, portfolioId])
interestTransaction RWABaseTransaction? @relation(name: "interestTransaction", fields: [interestTransactionId, portfolioId], references: [id, portfolioId])
feeTransactions RWABaseTransactionOnGroupTransaction[]
fees RWAGroupTransactionFee[]
Expand Down

0 comments on commit d58ccd1

Please sign in to comment.