feat: add location field to PantryItem model and update related functionality
Test Suite / test (24.15.0) (push) Has been cancelled

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
Nils-Johan Gynther
2026-05-06 11:54:56 +02:00
parent 63d249b0a8
commit e7251fd94c
8 changed files with 114 additions and 37 deletions
@@ -0,0 +1,2 @@
ALTER TABLE `PantryItem`
ADD COLUMN `location` VARCHAR(191) NULL;
+1
View File
@@ -172,6 +172,7 @@ model PantryItem {
id Int @id @default(autoincrement())
userId Int
productId Int
location String?
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
product Product @relation(fields: [productId], references: [id], onDelete: Cascade)
createdAt DateTime @default(now())