mirror of
https://github.com/spliit-app/spliit.git
synced 2026-02-21 15:06:13 +01:00
Reimbursements
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
-- AlterTable
|
||||
ALTER TABLE "Expense" ADD COLUMN "isReimbursement" BOOLEAN NOT NULL DEFAULT false;
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user