refactor(inventory): remove unused fields from InventoryItem and update related DTOs

This commit is contained in:
Nils-Johan Gynther
2026-04-18 09:01:14 +02:00
parent 6cec7ca6dd
commit fd188a3f95
9 changed files with 69 additions and 143 deletions
@@ -0,0 +1,8 @@
-- Remove unused fields from InventoryItem
ALTER TABLE `InventoryItem`
DROP COLUMN `priority`,
DROP COLUMN `shelfNote`,
DROP COLUMN `isOnSale`,
DROP COLUMN `priceLevel`,
DROP COLUMN `proteinType`,
DROP COLUMN `isLeftover`;
+1 -7
View File
@@ -88,16 +88,10 @@ model InventoryItem {
brand String?
receiptName String?
location String?
priority Int?
purchaseDate DateTime?
opened Boolean?
shelfNote String?
suitableFor String?
isOnSale Boolean?
priceLevel Int?
bestBeforeDate DateTime?
proteinType String?
isLeftover Boolean?
bestBeforeDate DateTime?
comment String?
createdAt DateTime @default(now())