feat: add support for alternative ingredients; implement JSON storage and parsing logic
Test Suite / test (24.15.0) (push) Has been cancelled

This commit is contained in:
Nils-Johan Gynther
2026-05-04 22:06:57 +02:00
parent 64f63b3392
commit 2c8d6b69ae
9 changed files with 180 additions and 9 deletions
@@ -0,0 +1 @@
ALTER TABLE `RecipeIngredient` ADD COLUMN `alternativeProductIds` JSON NULL;
+1
View File
@@ -156,6 +156,7 @@ model RecipeIngredient {
quantity Decimal @db.Decimal(10, 2)
unit String
note String?
alternativeProductIds Json? // [id, id, ...] — alternativa produkter (t.ex. "ris eller couscous")
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt