Reimbursements

This commit is contained in:
Sebastien Castiel
2023-12-06 20:21:26 -05:00
parent 6ce2329f5c
commit 57899b0160
9 changed files with 62 additions and 14 deletions

View File

@@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "Expense" ADD COLUMN "isReimbursement" BOOLEAN NOT NULL DEFAULT false;

View File

@@ -29,14 +29,15 @@ model Participant {
}
model Expense {
id String @id
group Group @relation(fields: [groupId], references: [id])
title String
amount Int
paidBy Participant @relation(fields: [paidById], references: [id])
paidById String
paidFor ExpensePaidFor[]
groupId String
id String @id
group Group @relation(fields: [groupId], references: [id])
title String
amount Int
paidBy Participant @relation(fields: [paidById], references: [id])
paidById String
paidFor ExpensePaidFor[]
groupId String
isReimbursement Boolean @default(false)
}
model ExpensePaidFor {