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
-5
View File
@@ -1,5 +0,0 @@
import { redirect } from 'next/navigation';
export default function KvittoPage() {
redirect('/import?tab=kvitto');
}
-5
View File
@@ -1,5 +0,0 @@
import { redirect } from 'next/navigation';
export default function Page() {
redirect('/import?tab=recept');
}
-6
View File
@@ -52,17 +52,11 @@ export type InventoryItem = {
quantity: string;
unit: string;
location: string | null;
priority: number | null;
purchaseDate: string | null;
opened: boolean | null;
shelfNote: string | null;
suitableFor: string | null;
isOnSale: boolean | null;
priceLevel: number | null;
bestBeforeDate: string | null;
brand: string | null;
proteinType: string | null;
isLeftover: boolean | null;
comment: string | null;
createdAt: string;
updatedAt: string;