feat: implement save receipt functionality with transaction handling and DTOs
Test Suite / test (24.15.0) (push) Has been cancelled

This commit is contained in:
Nils-Johan Gynther
2026-05-09 15:04:23 +02:00
parent 853e853e5e
commit 8354abbc8f
10 changed files with 461 additions and 99 deletions
@@ -0,0 +1,5 @@
-- AlterTable: Remove Product.category field (redundant with categoryId)
ALTER TABLE `Product` DROP COLUMN `category`;
-- AlterTable: Add index on ReceiptAlias.receiptName for faster lookups
CREATE INDEX `ReceiptAlias_receiptName_idx` ON `ReceiptAlias`(`receiptName`);
+1 -1
View File
@@ -36,7 +36,6 @@ model Product {
id Int @id @default(autoincrement())
name String
normalizedName String @unique
category String?
canonicalName String?
isActive Boolean @default(true)
status String @default("active")
@@ -201,6 +200,7 @@ model ReceiptAlias {
@@unique([receiptName, ownerId, isGlobal])
@@index([ownerId])
@@index([isGlobal])
@@index([receiptName])
}
model MealPlanEntry {