From bec1dd270a1d3184ea13f0b849f192176354fc00 Mon Sep 17 00:00:00 2001 From: Chris Johnston Date: Mon, 8 Jan 2024 19:26:44 +0000 Subject: Add Expense Date (#26) * add expense date * Improve date formatting * Prettier * Change field description --------- Co-authored-by: Sebastien Castiel --- prisma/schema.prisma | 1 + 1 file changed, 1 insertion(+) (limited to 'prisma/schema.prisma') diff --git a/prisma/schema.prisma b/prisma/schema.prisma index fd65754..42d4cfc 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -32,6 +32,7 @@ model Participant { model Expense { id String @id group Group @relation(fields: [groupId], references: [id], onDelete: Cascade) + expenseDate DateTime @db.Date @default(dbgenerated("CURRENT_DATE")) title String amount Int paidBy Participant @relation(fields: [paidById], references: [id], onDelete: Cascade) -- cgit v1.3