From d58ccd17bd20fd2abad3cf9f1f31f76ed3da2f77 Mon Sep 17 00:00:00 2001 From: Frank Date: Thu, 2 May 2024 14:55:34 +0200 Subject: [PATCH] chore: added cashbalance change and unitprice and removed interestTransaction --- api/prisma/schema.prisma | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/api/prisma/schema.prisma b/api/prisma/schema.prisma index b0785ecd..448ae3f1 100644 --- a/api/prisma/schema.prisma +++ b/api/prisma/schema.prisma @@ -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]) @@ -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[]