diff options
| author | Sebastien Castiel <sebastien@castiel.me> | 2023-12-06 20:21:26 -0500 |
|---|---|---|
| committer | Sebastien Castiel <sebastien@castiel.me> | 2023-12-06 20:21:26 -0500 |
| commit | 57899b0160385c53df4e43ef2fd12492e0dffb77 (patch) | |
| tree | 83f616c406c2d37aec2250bb0c44fcb8d701c177 /prisma | |
| parent | 6ce2329f5ce20f8352e3ea15594f2532ab8a392c (diff) | |
Reimbursements
Diffstat (limited to 'prisma')
| -rw-r--r-- | prisma/migrations/20231207005126_reimbursement/migration.sql | 2 | ||||
| -rw-r--r-- | prisma/schema.prisma | 17 |
2 files changed, 11 insertions, 8 deletions
diff --git a/prisma/migrations/20231207005126_reimbursement/migration.sql b/prisma/migrations/20231207005126_reimbursement/migration.sql new file mode 100644 index 0000000..2c6b1c6 --- /dev/null +++ b/prisma/migrations/20231207005126_reimbursement/migration.sql @@ -0,0 +1,2 @@ +-- AlterTable +ALTER TABLE "Expense" ADD COLUMN "isReimbursement" BOOLEAN NOT NULL DEFAULT false; diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 5ee1575..cc88c4e 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -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 { |
