refactor(inventory): remove unused fields from InventoryItem and update related DTOs
This commit is contained in:
@@ -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`;
|
||||
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user