feat: implement save receipt functionality with transaction handling and DTOs
Test Suite / test (24.15.0) (push) Has been cancelled
Test Suite / test (24.15.0) (push) Has been cancelled
This commit is contained in:
+5
@@ -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`);
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user