feat: add purchase reflections

This commit is contained in:
2024-11-24 21:31:59 +01:00
parent a73f5b883c
commit 8e7bfd2048
15 changed files with 372 additions and 63 deletions

View File

@@ -20,16 +20,17 @@ model User {
}
model Item {
id Int @id @default(autoincrement())
name String
amount Float
datetime DateTime
location String
notes String?
user User @relation(fields: [userId], references: [id])
userId Int
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
id Int @id @default(autoincrement())
name String
amount Float
datetime DateTime
location String
notes String?
reflections Json? @default(dbgenerated("null"))
user User @relation(fields: [userId], references: [id])
userId Int
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
@@map("items")
}