-- Rensar applikationsdata men behaller kategorier och anvandare.
-- Uppdatera denna fil när nya tabeller läggs till i schema.prisma.

SET FOREIGN_KEY_CHECKS = 0;

-- Flyer-related tables (tabeller för flyer-import)
DELETE FROM `FlyerSelection`;
DELETE FROM `FlyerItem`;
DELETE FROM `FlyerSession`;

-- Shopping list (om tabellen existerar)
DELETE FROM `ShoppingListItem`;

-- Inventory (lagerhålling)
DELETE FROM `InventoryConsumption`;
DELETE FROM `InventoryItem`;

-- Recipes (recept)
DELETE FROM `RecipeShare`;
DELETE FROM `RecipeIngredient`;
DELETE FROM `Recipe`;

-- Meal planning (måltidsplanering)
DELETE FROM `MealPlanEntry`;

-- Pantry (skafferi)
DELETE FROM `PantryItem`;

-- Products (produkter) - BEHAL KATEGORIER OCH ANVANDARE
DELETE FROM `Nutrition`;
DELETE FROM `ProductTag`;
DELETE FROM `ReceiptAlias`;
DELETE FROM `UnitMapping`;
DELETE FROM `UserProduct`;
DELETE FROM `Product`;

-- Help texts (hjälptexter)
DELETE FROM `HelpText`;

SET FOREIGN_KEY_CHECKS = 1;
