/*M!999999\- enable the sandbox mode */ 
-- MariaDB dump 10.19  Distrib 10.6.24-MariaDB, for debian-linux-gnu (x86_64)
--
-- Host: localhost    Database: packliste
-- ------------------------------------------------------
-- Server version	10.6.24-MariaDB-ubu2204

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;

--
-- Table structure for table `articles`
--

DROP TABLE IF EXISTS `articles`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `articles` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `household_id` int(11) DEFAULT NULL,
  `parent_article_id` int(11) DEFAULT NULL,
  `storage_location_id` int(11) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `weight_grams` int(11) NOT NULL,
  `quantity_owned` int(11) NOT NULL DEFAULT 1,
  `category_id` int(11) DEFAULT NULL,
  `consumable` tinyint(1) DEFAULT 0,
  `image_url` varchar(255) DEFAULT NULL,
  `product_url` varchar(255) DEFAULT NULL,
  `manufacturer_id` int(11) DEFAULT NULL,
  `product_designation` varchar(255) DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`),
  KEY `category_id` (`category_id`),
  KEY `idx_household_id` (`household_id`),
  KEY `idx_storage_location_id` (`storage_location_id`),
  KEY `idx_parent_article_id` (`parent_article_id`),
  CONSTRAINT `articles_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  CONSTRAINT `articles_ibfk_2` FOREIGN KEY (`category_id`) REFERENCES `categories` (`id`) ON DELETE SET NULL,
  CONSTRAINT `fk_article_household` FOREIGN KEY (`household_id`) REFERENCES `households` (`id`) ON DELETE CASCADE,
  CONSTRAINT `fk_article_parent` FOREIGN KEY (`parent_article_id`) REFERENCES `articles` (`id`) ON DELETE SET NULL,
  CONSTRAINT `fk_article_storage_location` FOREIGN KEY (`storage_location_id`) REFERENCES `storage_locations` (`id`) ON DELETE SET NULL
) ENGINE=InnoDB AUTO_INCREMENT=179 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `articles`
--

LOCK TABLES `articles` WRITE;
/*!40000 ALTER TABLE `articles` DISABLE KEYS */;
INSERT INTO `articles` VALUES (15,4,NULL,NULL,NULL,'Rucksack3',3500,1,4,0,'uploads/images/img_6852aae52a8590.99789219.png','https://www.amazon.de/Outplea-Wanderrucksack-Trekkingrucksack-Wasserdichter-Reiserucksack/dp/B0D31CMCTT/ref=sr_1_26_sspa?__mk_de_DE=%C3%85M%C3%85%C5%BD%C3%95%C3%91&s=sports&sr=1-26-spons&xpid=_h8KK0lc1xd_X&sp_csd=d2lkZ2V0TmFtZT1zcF9tdGY',NULL,NULL,'2025-06-18 07:35:29'),(16,4,NULL,NULL,NULL,'Furz',7,1,9,0,'','',NULL,NULL,'2025-06-18 07:48:01'),(17,4,NULL,NULL,NULL,'Testartikel',1234,1,NULL,0,NULL,NULL,NULL,NULL,'2025-06-18 11:59:21'),(19,4,NULL,NULL,NULL,'Blubb',100,1,9,1,NULL,NULL,NULL,NULL,'2025-06-18 14:47:12'),(20,4,NULL,NULL,NULL,'Noch ein Artikel',444,1,1,0,'0','',2,'0','2025-06-18 17:49:05'),(21,4,NULL,NULL,NULL,'Wieder ein Artikel',999,1,NULL,0,NULL,'',NULL,NULL,'2025-06-18 17:49:23'),(22,4,NULL,NULL,NULL,'Dudelssack',932,1,2,0,NULL,NULL,NULL,NULL,'2025-06-18 17:51:05'),(23,4,NULL,NULL,NULL,'Furzknoten',456,1,10,0,NULL,'',2,'4711','2025-06-18 18:23:21'),(25,4,NULL,NULL,NULL,'Testeinszwo',333,1,NULL,0,'0',NULL,2,NULL,'2025-06-18 18:54:17'),(26,4,NULL,NULL,4,'BlaFurz',333,1,10,0,'uploads/images/img_68692cad8256a4.61815158.png',NULL,2,'333','2025-06-18 19:35:02'),(27,4,NULL,NULL,NULL,'Pisskopp',444,1,1,0,'uploads/6853157b136ce.png','',1,'444','2025-06-18 19:37:31'),(28,4,NULL,NULL,NULL,'Dödel',3334,1,6,0,'uploads/images/img_paste_68692d8ae02cf4.92621791.png',NULL,1,'3334','2025-06-18 19:39:47'),(29,6,NULL,NULL,6,'Rucksack UL',1202,1,13,0,'uploads/images/img_686eade3358e94.97676456.jpg','https://www.amazon.de/Outplea-Wanderrucksack-Trekkingrucksack-Wasserdichter-Reiserucksack/dp/B0D31D82SJ/ref=sr_1_26_sspa?__mk_de_DE=%C3%85M%C3%85%C5%BD%C3%95%C3%91&s=sports&sr=1-26-spons&xpid=_h8KK0lc1xd_X&sp_csd=d2lkZ2V0TmFtZT1zcF9tdGY',3,'60L','2025-07-09 17:58:59'),(30,6,NULL,NULL,NULL,'PET-Flasche',30,1,13,0,'uploads/images/img_686eb198525ec7.50536364.jpg',NULL,4,'1L','2025-07-09 18:14:34'),(31,6,NULL,NULL,NULL,'Flaschentasche Rucksack',69,1,13,0,'uploads/images/img_686eb1ef18f034.45725063.png','https://de.aliexpress.com/item/1005006280950981.html?spm=a2g0o.order_list.order_list_main.116.4df35c5fOqfDDK&gatewayAdapt=glo2deu',4,NULL,'2025-07-09 18:16:15'),(33,6,NULL,NULL,NULL,'PET-Flasche',25,1,13,0,'uploads/images/img_686eb271e0c6a9.39415484.jpg',NULL,4,'0,5L','2025-07-09 18:18:25'),(34,6,NULL,NULL,NULL,'Wasserfilter',63,1,14,0,'uploads/images/img_686eb3086df945.36369833.png','https://www.amazon.de/dp/B0794CJQ53?ref_=ppx_hzod_title_dt_b_fed_asin_title_0_0',5,'BeeFree 1L','2025-07-09 18:20:56'),(35,6,NULL,NULL,NULL,'Sitzkissen',33,1,15,0,'uploads/images/img_686eb33807fd63.00035931.png',NULL,4,'grün','2025-07-09 18:21:44'),(36,6,NULL,NULL,NULL,'Powerbank',181,1,16,0,'uploads/images/img_686eb5bc838ae5.80233818.png','https://www.amazon.de/dp/B0CRD7SZTD',6,'10000mAh','2025-07-09 18:32:28'),(37,6,NULL,NULL,NULL,'Taschenlampe',40,1,16,0,'uploads/images/img_686ebd1e6af955.32076521.png','https://de.aliexpress.com/item/1005006842216398.html?spm=a2g0o.order_list.order_list_main.498.4df35c5fOqfDDK&gatewayAdapt=glo2deu',4,'UL schwarz','2025-07-09 19:03:58'),(38,6,NULL,NULL,NULL,'Lippenschutzstift',10,1,17,1,'uploads/images/img_686ebdb32de4d3.21230679.jpg',NULL,7,NULL,'2025-07-09 19:06:27'),(39,6,5,NULL,NULL,'Taschenmesser',93,1,18,0,'uploads/images/img_686ebe5846ea42.68414437.jpg',NULL,8,NULL,'2025-07-09 19:09:12'),(40,6,5,NULL,NULL,'Buchungsbestätigung',5,1,18,0,'uploads/images/img_686ebeb3473cf8.68015324.jpg',NULL,NULL,NULL,'2025-07-09 19:10:43'),(41,6,5,NULL,NULL,'Taschentücher',23,1,17,1,'uploads/images/img_686ebeec251778.89470573.jpg',NULL,NULL,'10er Packung','2025-07-09 19:11:40'),(42,6,NULL,NULL,NULL,'Packsack',33,1,13,0,'uploads/images/img_686ebfa1bee290.81344086.png','https://de.aliexpress.com/item/1005006691774894.html?spm=a2g0o.order_list.order_list_main.458.4df35c5fOqfDDK&gatewayAdapt=glo2deu',4,'Erste Hilfe rot','2025-07-09 19:14:41'),(43,6,NULL,NULL,NULL,'Erste-Hilfe-Set',77,1,17,0,'uploads/images/img_686ec0042d3ad8.71473135.jpg',NULL,4,NULL,'2025-07-09 19:16:20'),(44,6,NULL,NULL,NULL,'Zeckenzangen',4,1,17,0,'uploads/images/img_686ec04d316485.12649368.png','https://de.aliexpress.com/item/1005006831573603.html?spm=a2g0o.order_list.order_list_main.463.4df35c5fOqfDDK&gatewayAdapt=glo2deu',4,NULL,'2025-07-09 19:17:33'),(45,6,5,NULL,NULL,'Rettungsdecke',60,1,17,0,'uploads/images/img_686ec070bc29e1.89910936.jpg',NULL,9,NULL,'2025-07-09 19:18:08'),(46,6,NULL,NULL,NULL,'Wattepads',19,1,17,1,'uploads/images/img_686f30ac792db4.81124214.jpg',NULL,NULL,NULL,'2025-07-10 03:17:00'),(47,6,NULL,NULL,NULL,'Leukoplast',17,1,17,1,'uploads/images/img_686f30d181b9d3.27666927.jpg',NULL,NULL,'Rolle','2025-07-10 03:17:37'),(48,6,NULL,NULL,NULL,'Desinfektionsspray',12,1,17,1,'uploads/images/img_686f30fc1384a1.47381841.jpg',NULL,NULL,'kleine Pumpflasche','2025-07-10 03:18:20'),(49,6,5,NULL,NULL,'Geldbörse mit Kleingeld',29,1,18,1,'uploads/images/img_686f31607f1ef4.88047468.jpg',NULL,NULL,NULL,'2025-07-10 03:20:00'),(50,6,NULL,NULL,NULL,'Schlüssel Daniel',61,1,18,0,'uploads/images/img_686f317edd6d15.06826823.jpg',NULL,NULL,NULL,'2025-07-10 03:20:30'),(51,6,NULL,NULL,NULL,'Packsack',12,1,13,0,'uploads/images/img_686f31c24a1eb8.68836662.png','https://de.aliexpress.com/item/1005006119924537.html?spm=a2g0o.order_list.order_list_main.1465.4df35c5f3HcdW1&gatewayAdapt=glo2deu',4,'1L, schwarz','2025-07-10 03:21:38'),(52,6,5,NULL,NULL,'Bonbons',42,1,14,1,'uploads/images/img_686f31e47abfd0.63425175.jpg',NULL,NULL,'ca. 10 Stück','2025-07-10 03:22:12'),(53,6,5,NULL,NULL,'Handtuch',26,1,17,0,'uploads/images/img_686f3279b68214.98565257.jpg',NULL,10,'klein in Hülle','2025-07-10 03:24:41'),(54,6,NULL,55,NULL,'Transportbeutel',11,1,13,0,'uploads/images/img_686f3303e805a2.81536340.png','https://www.amazon.de/Therm-Rest-Daunendecke-Rucksackreisen-Camping/dp/B0CCGDDPZC',11,NULL,'2025-07-10 03:26:59'),(55,6,NULL,NULL,NULL,'Schlafsack',574,1,15,0,'uploads/images/img_686f333fee46c9.36367057.jpg','https://www.amazon.de/Therm-Rest-Daunendecke-Rucksackreisen-Camping/dp/B0CCGDDPZC',11,'Corus 32F','2025-07-10 03:27:59'),(56,6,NULL,NULL,NULL,'Pumpsack ISO-Matte',87,1,13,0,'uploads/images/img_686f338c360455.17276035.png','https://www.amazon.de/dp/B0CRV252YF',12,NULL,'2025-07-10 03:29:16'),(57,6,NULL,NULL,NULL,'ISO-Matte',607,1,15,0,'uploads/images/img_686f33cdb1c4e2.11987545.png','https://www.amazon.de/dp/B0CRV252YF',12,'6,2R 8cm','2025-07-10 03:30:21'),(58,6,NULL,NULL,NULL,'Flickset',3,1,18,1,'uploads/images/img_686f33f86534c1.78395780.jpg',NULL,12,NULL,'2025-07-10 03:31:04'),(59,6,5,NULL,NULL,'ISO-Matte',154,1,15,0,'uploads/images/img_686f34baadbfe5.18832378.png','https://www.amazon.de/dp/B08TWYH88N?ref_=ppx_hzsearch_conn_dt_b_fed_asin_title_3',4,'Icheb, grün','2025-07-10 03:34:18'),(60,6,5,NULL,NULL,'ISO-Matte',250,1,15,0,'uploads/images/img_686f34e7636910.40820361.png','https://de.aliexpress.com/item/1005006894770323.html?spm=a2g0o.order_list.order_list_main.137.26b35c5fLhgoje&gatewayAdapt=glo2deu',4,'Icheb, schwarz, Yoga','2025-07-10 03:35:03'),(61,6,NULL,62,NULL,'Transportbeutel',5,1,13,0,'uploads/images/img_686f356cb64139.39735084.jpg','https://www.exped.com/de/produkte/kissen/ultra-pillow',13,NULL,'2025-07-10 03:37:16'),(62,6,NULL,NULL,NULL,'Kopfkissen',50,1,15,0,'uploads/images/img_686f35958b7936.67005045.png','https://www.exped.com/de/produkte/kissen/ultra-pillow',13,'Ultra Pillow','2025-07-10 03:37:57'),(63,6,NULL,NULL,NULL,'Kulturbeutel UL',43,1,13,0,'uploads/images/img_686f35ae363884.64628771.png','https://www.amazon.de/dp/B0CM9LRRSF',20,NULL,'2025-07-10 03:38:22'),(64,6,NULL,NULL,NULL,'Wundersalbe 3000',24,1,17,1,'uploads/images/img_686f370f1976e2.93287285.jpg',NULL,14,'Schutzbalsam','2025-07-10 03:44:15'),(65,6,NULL,NULL,NULL,'Zahnbürste',14,1,17,0,'uploads/images/img_686f3730560947.83615495.jpg',NULL,4,NULL,'2025-07-10 03:44:48'),(66,6,NULL,NULL,NULL,'Zahnputztabletten',4,1,17,1,'uploads/images/img_686f3749a170b4.13348961.jpg',NULL,NULL,NULL,'2025-07-10 03:45:13'),(67,6,NULL,NULL,NULL,'Reinigungsmittel',10,1,17,1,'uploads/images/img_686f37a6ba9275.53457633.jpg','https://www.bergfreunde.de/vaude-4-wash-eco-reiseseife/',9,'4 Wash Eco 5ml','2025-07-10 03:46:46'),(68,6,NULL,NULL,NULL,'Spiegel',1,1,17,0,'uploads/images/img_686f37caede896.58256974.jpg',NULL,NULL,'6-eckig, Fliese','2025-07-10 03:47:22'),(69,6,NULL,NULL,NULL,'Ersatzliquid',43,1,19,1,'uploads/images/img_686f37ed51ac20.50338733.jpg',NULL,NULL,'30ml','2025-07-10 03:47:57'),(70,6,NULL,NULL,NULL,'Wattestäbchen',1,1,17,1,'uploads/images/img_686f380db80c43.30914740.jpg',NULL,NULL,NULL,'2025-07-10 03:48:29'),(71,6,NULL,NULL,NULL,'Zeckenschutz',11,1,17,1,'uploads/images/img_686f38899806b0.95257065.jpg','https://www.amazon.de/Autan-Protection-Zeckenschutz-Insektenschutz-heimischen/dp/B09NQGDWC8/ref=sr_1_3_sspa?__mk_de_DE=%C3%85M%C3%85%C5%BD%C3%95%C3%91&sr=8-3-spons&sp_csd=d2lkZ2V0TmFtZT1zcF9hdGY&psc=1',15,'Protection Plus','2025-07-10 03:50:33'),(72,6,5,NULL,NULL,'Faltbecher',24,1,14,0,'uploads/images/img_686f394288dcd3.19768162.jpg','https://www.amazon.de/Faltbecher-Falttasse-Campingtasse-Campingbecher-Oliv-gr%C3%BCn/dp/B07CKWK6FB/ref=sr_1_5?__mk_de_DE=%C3%85M%C3%85%C5%BD%C3%95%C3%91&sr=8-5',16,'200ml','2025-07-10 03:53:38'),(73,6,5,NULL,NULL,'Faltschüssel',83,1,14,0,'uploads/images/img_686f39aa04eae3.04553530.jpg','https://www.amazon.de/Sea-Summit-xlbowl-Farbe-Blue/dp/B007JWXGOE/ref=sr_1_7?sr=8-7',17,'XL-Bowl','2025-07-10 03:55:22'),(74,6,NULL,NULL,NULL,'Instantkaffee',4,1,14,1,'uploads/images/img_686f39cf707ac1.84361658.jpg',NULL,NULL,'Portion in Tüte','2025-07-10 03:55:59'),(75,6,5,NULL,NULL,'Unterwegssnack',50,1,14,1,'uploads/images/img_686f39f4215f93.08395251.jpg',NULL,NULL,'Hörnchen','2025-07-10 03:56:36'),(76,6,5,NULL,NULL,'Fertiggericht',164,1,14,1,'uploads/images/img_686f3a1a2a0037.73633683.jpg',NULL,NULL,'2 Portionen','2025-07-10 03:57:14'),(77,6,5,NULL,NULL,'Getränkepulver',3,1,14,1,'uploads/images/img_686f3a3ed01497.37713003.jpg',NULL,18,'div. Geschmack 2g','2025-07-10 03:57:50'),(78,6,NULL,NULL,NULL,'T-Shirt',145,1,20,0,'uploads/images/img_686f3a6c250bc7.48101159.png',NULL,NULL,'Daniel','2025-07-10 03:58:36'),(79,6,5,NULL,NULL,'Packsack WC',51,1,13,0,'uploads/images/img_686f3ae3139633.97704617.jpg','https://www.bergfreunde.de/sea-to-summit-the-outhouse/?aid=0fd5b0bdfe76601a1768674feaaeb203&pid=10004&wt_mc=de.pla.google_de.1595625054.60348417796.302374332685&wt_cc1=&gad_campaignid=1595625054',17,'The Outhouse','2025-07-10 04:00:35'),(80,6,5,NULL,NULL,'Desinfektionsgel',40,1,17,1,'uploads/images/img_686f3b1524cca5.24631513.jpg',NULL,NULL,NULL,'2025-07-10 04:01:25'),(81,6,NULL,NULL,NULL,'Topf mit Deckel',100,1,14,0,'uploads/images/img_686f3b7f1f9584.32874426.png','https://www.amazon.de/dp/B07C1ZKTB2',19,'Titan 750ml','2025-07-10 04:03:11'),(82,6,NULL,81,NULL,'Deckelhalter',6,1,14,0,'uploads/images/img_686f3bd6938593.78159430.jpg',NULL,NULL,NULL,'2025-07-10 04:04:38'),(83,6,NULL,81,NULL,'Inlay',33,1,13,0,'uploads/images/img_686f3bf8e10f33.28531721.jpg',NULL,NULL,NULL,'2025-07-10 04:05:12'),(84,6,NULL,NULL,NULL,'Gasbrenner',26,1,14,0,'uploads/images/img_686f3c3348eca6.43106907.png','https://www.amazon.de/dp/B09TSP95TG',21,'Stove 3000T','2025-07-10 04:06:11'),(85,6,NULL,NULL,NULL,'Feuerzeug',11,1,18,0,'uploads/images/img_686f3f91377274.81536093.png',NULL,22,'Mini','2025-07-10 04:20:33'),(86,6,NULL,NULL,NULL,'Gaskartusche',206,1,14,1,'uploads/images/img_686f3fcc3451e3.78098415.png','https://www.amazon.de/dp/B00AYYWSNO',NULL,'100g','2025-07-10 04:21:32'),(87,6,5,NULL,NULL,'Teelicht',14,1,18,1,'uploads/images/img_686f3fe298ed30.69854145.jpg',NULL,NULL,NULL,'2025-07-10 04:21:54'),(88,6,5,NULL,NULL,'Schwamm',1,1,14,0,'uploads/images/img_686f4002627178.11334024.jpg',NULL,NULL,NULL,'2025-07-10 04:22:26'),(89,6,NULL,NULL,NULL,'Löffel UL',18,1,14,0,'uploads/images/img_686f402c97cfe8.90268871.png','https://www.amazon.de/dp/B00GLFVZVG',19,NULL,'2025-07-10 04:23:08'),(90,6,NULL,NULL,NULL,'Ständer für Gaskartusche',17,1,14,0,'uploads/images/img_686f405d63dbb8.12860271.jpg',NULL,NULL,'3D-Druck','2025-07-10 04:23:57'),(91,6,NULL,NULL,NULL,'Zelt',970,1,15,0,'uploads/images/img_686f409b3c88d2.06994506.jpg','https://www.amazon.de/dp/B07KPVL85V?ref_=ppx_hzsearch_conn_dt_b_fed_asin_title_4',23,'Cloud up 2','2025-07-10 04:24:59'),(92,6,NULL,91,NULL,'Zeltgestänge',460,1,15,0,'uploads/images/img_686f40cc12b408.77224909.png',NULL,23,NULL,'2025-07-10 04:25:48'),(93,6,NULL,NULL,NULL,'Abspannseile',3,1,15,1,'uploads/images/img_686f40f1e8cbb2.29751856.jpg',NULL,NULL,'Maurerschnur ca. 3m','2025-07-10 04:26:25'),(94,6,NULL,NULL,NULL,'Karabiner',21,1,18,0,'uploads/images/img_686f4111d6ed06.84644823.jpg',NULL,NULL,'schwarz für Hundeleine','2025-07-10 04:26:57'),(95,6,NULL,NULL,NULL,'Karabiner',48,1,18,0,'uploads/images/img_686f412c5a2956.93448132.jpg',NULL,NULL,'mit Paracord','2025-07-10 04:27:24'),(96,6,5,NULL,NULL,'Karabiner',5,1,13,0,'uploads/images/img_686f4146060367.49904903.jpg',NULL,NULL,'klein','2025-07-10 04:27:50'),(97,6,5,NULL,NULL,'Thermometer Bluetooth',21,1,18,0,'uploads/images/img_686f417d2dbc09.25939228.png','https://de.aliexpress.com/item/1005001626596814.html?spm=a2g0o.order_list.order_list_main.634.26b35c5fLhgoje&gatewayAdapt=glo2deu',4,NULL,'2025-07-10 04:28:45'),(98,6,5,99,NULL,'Transporthülle',6,1,19,0,'uploads/images/img_686f41b265bbd0.31608008.jpg',NULL,NULL,NULL,'2025-07-10 04:29:38'),(99,6,5,NULL,NULL,'Kräuterstäbchen',1,1,19,1,'uploads/images/img_686f41cfea6790.97454515.jpg',NULL,NULL,'klein','2025-07-10 04:30:07'),(100,6,5,NULL,NULL,'Ladekabel GPS-Sensor',12,1,16,0,'uploads/images/img_686f422f9e5c79.40048338.jpg','https://www.mictrack.com/product/cat-m1-nb-iot-pet-gps-tracker/',24,'für CAT M1','2025-07-10 04:31:43'),(101,6,NULL,NULL,NULL,'Transportkarte Panzertape',4,1,13,0,'uploads/images/img_686f425206f4f7.13457068.jpg',NULL,NULL,'3D-Druck','2025-07-10 04:32:18'),(102,6,NULL,101,NULL,'Panzertape',4,1,18,1,'uploads/images/img_686f426b0e7ae4.55634973.jpg',NULL,NULL,'ca 0,5m','2025-07-10 04:32:43'),(103,6,NULL,NULL,NULL,'Halterung Smartphone Zeltdecke',14,1,19,0,'uploads/images/img_686f42c706e886.11815798.png',NULL,NULL,'3D-Druck','2025-07-10 04:34:15'),(104,6,5,NULL,NULL,'Topf mit Deckel',291,1,14,0,'uploads/images/img_6873b410d0e190.70763660.png','https://www.amazon.de/Reactor-Windproof-Camping-Backpacking-System/dp/B0DD8MJL1W',25,'Reactor','2025-07-13 13:26:40'),(105,6,5,104,NULL,'Gasbrenner',177,1,14,0,'uploads/images/img_6873b8bd938336.03772389.jpg','https://www.amazon.de/Reactor-Windproof-Camping-Backpacking-System/dp/B0DD8MJL1W',25,NULL,'2025-07-13 13:27:40'),(106,6,5,NULL,NULL,'Gaskartusche',340,1,14,1,'uploads/images/img_6873b91e0b0263.24840975.jpg',NULL,NULL,'230g','2025-07-13 13:48:14'),(107,6,5,104,NULL,'Lappen',4,1,14,0,'uploads/images/img_6873b945b1ba27.21790853.jpg',NULL,NULL,NULL,'2025-07-13 13:48:53'),(108,6,5,NULL,NULL,'Feuerzeug',34,1,18,0,'uploads/images/img_6873b96e694b37.93563817.jpg',NULL,22,'Normalgröße','2025-07-13 13:49:34'),(109,6,5,104,NULL,'Transportbeutel',34,1,13,0,'uploads/images/img_6873b98a89afb2.71421223.jpg',NULL,NULL,NULL,'2025-07-13 13:50:02'),(110,6,5,NULL,NULL,'Wasserkocher',561,1,14,0,'uploads/images/img_6873b9c491a469.36216723.jpg','https://www.sanpura.de/reise-wasserkocher-91162.html',26,'RWK 4086','2025-07-13 13:51:00'),(111,6,5,NULL,NULL,'Sitzkissen',29,1,15,0,'uploads/images/img_6873b9ec466f38.53632322.jpg',NULL,NULL,'Gräfensteige','2025-07-13 13:51:40'),(112,6,5,111,NULL,'Transportbeutel',7,1,13,0,'uploads/images/img_6873ba0e5ab3a0.49345850.jpg',NULL,NULL,NULL,'2025-07-13 13:52:14'),(113,6,5,NULL,NULL,'Sitzkissen',22,1,15,0,'uploads/images/img_6873ba2deeac42.04951342.jpg',NULL,NULL,'silber','2025-07-13 13:52:45'),(114,6,5,NULL,NULL,'Zurrgurt',33,1,13,0,'uploads/images/img_6873ba9c868ea7.34060573.jpg',NULL,10,NULL,'2025-07-13 13:54:36'),(115,6,5,NULL,NULL,'Klappschaufel',196,1,18,0,'uploads/images/img_6873babb355b43.65572551.jpg',NULL,NULL,NULL,'2025-07-13 13:55:07'),(116,6,5,115,NULL,'Transporthülle',29,1,13,0,'uploads/images/img_6873bace9b2965.08368704.jpg',NULL,NULL,NULL,'2025-07-13 13:55:26'),(117,6,5,NULL,NULL,'Desinfektionsspray',50,1,17,1,'uploads/images/img_6873bb3fa98129.49270048.jpg','https://www.amazon.de/OCTENISEPT-L%C3%B6sung-Doppelpack-Wunddesinfektion-Desinfektion/dp/B07JHYN211',NULL,'Octenisept 50ml','2025-07-13 13:57:19'),(118,6,5,NULL,NULL,'Reinigungsmittel',93,1,17,1,'uploads/images/img_6873bba15c7182.77829017.jpg','https://www.bergfreunde.de/vaude-4-wash-eco-reiseseife/',9,'4 Wash Eco groß','2025-07-13 13:58:57'),(119,6,5,NULL,NULL,'Kulturbeutel',120,1,13,0,'uploads/images/img_6873bc17e68ff5.86485666.png','https://www.unterwegs.biz/deuter-wash-bag-i-536440.html?farbe=black',27,'Wash Bag I','2025-07-13 14:00:55'),(120,6,5,NULL,NULL,'Stirnband Winter',27,1,20,0,'uploads/images/img_6873bd94881b06.21895503.jpg','https://www.globetrotter.de/barts-stirnband-unisex-storm-headband-black-1232667/?sku=5637763416&gad_campaignid=20827669585',28,'Storm Headband','2025-07-13 14:07:16'),(121,6,5,NULL,NULL,'Reinigungsmittel',93,1,17,1,'uploads/images/img_6873bdc7a7bd46.75059159.jpg','https://www.bergfreunde.de/vaude-4-wash-eco-reiseseife/',9,'4 Wash Eco groß','2025-07-13 14:08:07'),(122,6,5,NULL,NULL,'Mütze Winter',71,1,20,0,'uploads/images/img_6873be00a05e82.75679206.png','https://www.naturzeit.com/mammut-ws-beanie/5194',29,'WS Beanie','2025-07-13 14:09:04'),(123,6,5,NULL,NULL,'Handwärmer USB',131,1,18,0,'uploads/images/img_6873be2b34b1b2.79150303.jpg','https://www.amazon.de/dp/B0CBX3KGZ4?ref_=ppx_hzsearch_conn_dt_b_fed_asin_title_1',30,'UT3053','2025-07-13 14:09:47'),(124,6,5,NULL,NULL,'Wassersack',124,1,13,0,'uploads/images/img_6873be68654222.43815825.jpg','https://nanobike.de/ortlieb-water-bag-10-liter-wasserbeutel-black',31,'Water-Bag 10L','2025-07-13 14:10:48'),(125,6,5,NULL,NULL,'ISO-Matte',678,1,15,0,'uploads/images/img_6873bfbdd860f1.17553831.jpg','https://www.bergfreunde.de/therm-a-rest-prolite-isomatte/',11,'ProLite Regular','2025-07-13 14:16:29'),(126,6,5,125,NULL,'Transporthülle',22,1,13,0,'uploads/images/img_6873bfe7aa3eb3.84414915.jpg','https://www.bergfreunde.de/therm-a-rest-prolite-isomatte/',11,NULL,'2025-07-13 14:17:11'),(127,6,5,NULL,NULL,'ISO-Matte',1046,1,15,0,'uploads/images/img_6873c07a83da25.07480567.png','https://www.amazon.de/JEMULICE-Selbstaufblasend-Aufblasbare-Ultraleicht-Luftmatratze/dp/B0CS39CJMV/ref=sr_1_1_sspa?sr=8-1-spons&sp_csd=d2lkZ2V0TmFtZT1zcF9hdGY',32,'türkis','2025-07-13 14:19:38'),(128,6,5,127,NULL,'Transporthülle',20,1,13,0,'uploads/images/img_6873c09b4d6ed6.07697329.png','https://www.amazon.de/JEMULICE-Selbstaufblasend-Aufblasbare-Ultraleicht-Luftmatratze/dp/B0CS39CJMV/ref=sr_1_1_sspa?sr=8-1-spons&sp_csd=d2lkZ2V0TmFtZT1zcF9hdGY',32,NULL,'2025-07-13 14:20:11'),(129,6,5,NULL,NULL,'ISO-Matte',1090,1,15,0,'uploads/images/img_6873c0b984f254.28085995.png','https://www.amazon.de/JEMULICE-Selbstaufblasend-Aufblasbare-Ultraleicht-Luftmatratze/dp/B0BQJKDNW8/ref=sr_1_1_sspa?sr=8-1-spons&sp_csd=d2lkZ2V0TmFtZT1zcF9hdGY',32,'oliv','2025-07-13 14:20:41'),(130,6,5,129,NULL,'Transporthülle',25,1,13,0,'uploads/images/img_6873c0d3605c28.29852415.png','https://www.amazon.de/JEMULICE-Selbstaufblasend-Aufblasbare-Ultraleicht-Luftmatratze/dp/B0BQJKDNW8/ref=sr_1_1_sspa?sr=8-1-spons&sp_csd=d2lkZ2V0TmFtZT1zcF9hdGY',32,NULL,'2025-07-13 14:21:07'),(131,6,5,NULL,NULL,'Faltnapf',76,1,14,0,'uploads/images/img_6873c19457dcf3.78644240.jpg','https://www.amazon.de/dp/B074XPQVMY?ref_=ppx_hzsearch_conn_dt_b_fed_asin_title_1',33,'LIST beige','2025-07-13 14:24:20'),(132,6,5,NULL,NULL,'Wasserfilter',444,1,14,0,'uploads/images/img_6873c1f1d7b799.62140749.jpg','https://www.amazon.de/MSR-040818564257-MiniWorks-EX-Mikrofilter/dp/B000BBF2RY/ref=sr_1_7?__mk_de_DE=%C3%85M%C3%85%C5%BD%C3%95%C3%91&sr=8-7',25,'MiniWorks EX Mikrofilter','2025-07-13 14:25:53'),(133,6,NULL,132,NULL,'Transportbeutel',21,1,13,0,'uploads/images/img_6873c223b84d99.45142413.jpg','https://www.amazon.de/MSR-040818564257-MiniWorks-EX-Mikrofilter/dp/B000BBF2RY/ref=sr_1_7?__mk_de_DE=%C3%85M%C3%85%C5%BD%C3%95%C3%91&sr=8-7',25,NULL,'2025-07-13 14:26:43'),(134,6,5,NULL,NULL,'Handtuch',127,1,17,0,'uploads/images/img_6873c28714b535.33163245.jpg','https://www.bergfreunde.de/vaude-sports-towel-mikrofaserhandtuch/',9,'Mikrofaser groß inkl. Hülle','2025-07-13 14:28:23'),(135,6,5,NULL,NULL,'Handschuhe',52,1,20,0,'uploads/images/img_6873c2dca705b4.21033807.png','https://www.horseonline.com/de/weldon-polartec-handschuhe.html',34,'Polartec Daniel','2025-07-13 14:29:48'),(136,6,5,NULL,NULL,'Handschuhe',45,1,20,0,'uploads/images/img_6873c2f43fead9.02978111.png','https://www.horseonline.com/de/weldon-polartec-handschuhe.html',34,'Polartec Tina','2025-07-13 14:30:12'),(137,6,5,NULL,NULL,'Gamaschen',146,1,20,0,'uploads/images/img_6873c330c78632.00215359.jpg','https://www.denk-outdoor.de/tsl-trek-short-gamaschen',35,'Trek short','2025-07-13 14:31:12'),(138,6,5,NULL,NULL,'Handschuhe',76,1,20,0,'uploads/images/img_6873c398f0bf15.08946989.jpg','https://www.amazon.de/Winterhandschuhe-wasserabweisender-Beschichtung-Touchscreen-Funktion-Outdoor-Arbeiten/dp/B0CPTTZSYQ/',NULL,NULL,'2025-07-13 14:32:56'),(139,6,5,NULL,NULL,'Videoleuchte',127,1,16,0,'uploads/images/img_6873c471f0bb46.02642451.png','https://www.amazon.de/dp/B0C33BBRV6?ref_=ppx_hzsearch_conn_dt_b_fed_asin_title_4',NULL,'Axfee 5\" LED W140RGB','2025-07-13 14:36:33'),(140,6,5,NULL,NULL,'GPS-Tracker',35,1,16,0,'uploads/images/img_6873c7272527f1.79250951.png','https://www.mictrack.com/product/cat-m1-nb-iot-pet-gps-tracker/',24,'MT710','2025-07-13 14:48:07'),(141,6,5,NULL,NULL,'Dampfgerät',51,1,19,0,'uploads/images/img_6873c8d07c88e7.53514986.png','https://www.amazon.de/dp/B0CHJ7DCCB?amp=',38,'Wenax S3','2025-07-13 14:55:12'),(142,6,5,NULL,NULL,'Rucksack Hund',535,2,13,0,'uploads/images/img_6873c9bb265099.98985276.png','https://www.amazon.de/dp/B09MSL1H21?ref_=ppx_hzsearch_conn_dt_b_fed_asin_title_2',39,'Approach','2025-07-13 14:59:07'),(143,6,5,142,NULL,'Brustschutz',57,1,13,0,'uploads/images/img_6873cab3e36435.36992325.png','https://www.amazon.de/dp/B0BLPX9CDM?ref_=ppx_hzsearch_conn_dt_b_fed_asin_title_1',39,NULL,'2025-07-13 15:03:15'),(144,6,5,NULL,NULL,'Stirnlampe',84,1,16,0,'uploads/images/img_6873cadea2eb20.24231592.png','https://www.amazon.de/dp/B0CBPHGWJ2',40,'LED, inkl. Band','2025-07-13 15:03:58'),(145,6,5,NULL,NULL,'Taschenlampe',56,1,16,0,'uploads/images/img_6873cb07b661d1.33616769.png','https://www.amazon.de/dp/B0CQ54KKB6',4,'Amazon, mini, blau','2025-07-13 15:04:39'),(146,6,NULL,NULL,NULL,'Rucksack',730,1,13,0,'uploads/images/img_6873cbf36b9123.03417581.png','https://www.amazon.de/dp/B0BXGV49C9?ref_=ppx_hzsearch_conn_dt_b_fed_asin_title_1',41,'Rettungseinsätze, 40L','2025-07-13 15:08:35'),(147,6,NULL,NULL,NULL,'Rucksack',2280,1,13,0,'uploads/images/img_6873cc2ec0b635.94772493.png','https://www.amazon.de/dp/B06Y6LRWZQ?ref_=ppx_hzsearch_conn_dt_b_fed_asin_title_6',42,'75L, grün','2025-07-13 15:09:34'),(148,6,NULL,147,NULL,'Regenschutzhülle',74,1,18,0,NULL,NULL,42,NULL,'2025-07-13 15:10:28'),(149,6,5,NULL,NULL,'Taschenmesser',101,1,18,0,'uploads/images/img_6873fc8dba6b61.51783154.jpg',NULL,NULL,'Firefighter','2025-07-13 18:35:57'),(150,6,5,NULL,NULL,'Monokular',74,1,18,0,'uploads/images/img_6873fca5d74c69.87509606.jpg',NULL,NULL,NULL,'2025-07-13 18:36:21'),(151,6,5,150,NULL,'Transporthülle',18,1,13,0,'uploads/images/img_6873fcbc592a81.71907231.jpg',NULL,NULL,NULL,'2025-07-13 18:36:44'),(152,6,NULL,NULL,NULL,'Panzertape Rolle',63,1,18,0,'uploads/images/img_6873fcda30d246.96270936.jpg',NULL,NULL,NULL,'2025-07-13 18:37:14'),(153,6,5,NULL,NULL,'Streichholzdose',11,1,18,0,'uploads/images/img_6873fcff027a31.27424643.jpg',NULL,NULL,'inkl. Streichhölzer','2025-07-13 18:37:51'),(154,6,5,NULL,NULL,'Radio',200,1,16,0,'uploads/images/img_6873fd1dcdb330.70889760.jpg',NULL,NULL,'Solar, Kurbel','2025-07-13 18:38:21'),(155,6,5,NULL,NULL,'Ständer für Gaskartusche',32,1,14,0,'uploads/images/img_6873fd47ba9b38.58891857.png',NULL,NULL,'China orange','2025-07-13 18:39:03'),(156,6,5,NULL,NULL,'Streichhölzer',8,1,18,1,'uploads/images/img_6873fd608e9e98.26192169.jpg',NULL,NULL,'Packung','2025-07-13 18:39:28'),(157,6,5,NULL,NULL,'Pflasterset',14,1,17,1,'uploads/images/img_6873fd919d2231.57835779.jpg',NULL,NULL,'BFD','2025-07-13 18:40:17'),(158,6,5,NULL,NULL,'Deodorant',51,1,17,1,'uploads/images/img_6873fdb0a94ea6.69909445.jpg',NULL,NULL,'Tina','2025-07-13 18:40:48'),(159,6,5,NULL,NULL,'Deodorant',52,1,17,1,'uploads/images/img_6873fdc3daf237.38891265.jpg',NULL,NULL,'Daniel','2025-07-13 18:41:07'),(160,6,5,NULL,NULL,'Schaumfestiger',66,1,17,1,'uploads/images/img_6873fdf6dba980.47825518.jpg',NULL,NULL,NULL,'2025-07-13 18:41:58'),(161,6,5,NULL,NULL,'Rasierer',23,1,17,0,'uploads/images/img_6873fe0e730e81.53394437.jpg',NULL,NULL,'Daniel','2025-07-13 18:42:22'),(162,6,5,NULL,NULL,'Rasierer',19,1,17,0,'uploads/images/img_6873fe1ff36020.44091511.jpg',NULL,NULL,'Tina','2025-07-13 18:42:39'),(163,6,5,NULL,NULL,'Zahnpasta',30,1,17,1,'uploads/images/img_6873fe3900e621.75546414.png',NULL,NULL,'20ml','2025-07-13 18:43:05'),(164,6,5,NULL,NULL,'Mütze',63,1,20,0,'uploads/images/img_6873fe65db7d23.31893984.jpg',NULL,43,'Tina','2025-07-13 18:43:49'),(165,6,NULL,NULL,NULL,'Mütze',119,1,20,0,'uploads/images/img_6873fe7d6f7db6.03372700.jpg',NULL,NULL,'Daniel neu','2025-07-13 18:44:13'),(166,6,NULL,NULL,NULL,'Mütze',82,1,20,0,'uploads/images/img_6873fe8d33b227.86495307.jpg',NULL,NULL,'Daniel alt','2025-07-13 18:44:29'),(167,6,5,NULL,NULL,'Rucksack',945,1,13,0,'uploads/images/img_6873fee5abf3f2.20579342.jpg','https://www.bergfreunde.de/osprey-womens-skimmer-32-wanderrucksack-bewertung/',44,'Skimmer 32','2025-07-13 18:45:57'),(168,6,5,167,NULL,'Regenschutzhülle',47,1,18,0,NULL,NULL,44,NULL,'2025-07-13 18:47:02'),(169,6,5,NULL,NULL,'Rucksack',2190,1,13,0,'uploads/images/img_6873ff810199c5.98467484.jpg','https://www.osprey.com/de/osprey-ariel-55-2021-ws?size=WXS%2FS&farbe=Claret+Red',44,'Ariel 55','2025-07-13 18:48:33'),(170,6,5,169,NULL,'Regenschutzhülle',115,1,18,0,NULL,NULL,44,NULL,'2025-07-13 18:48:50'),(171,6,5,NULL,NULL,'Rucksack',975,1,13,0,'uploads/images/img_6873ffd9552582.08292227.jpg','https://www.tatonka.com/de/produkt/hike-pack-27/',45,'Hike Pack 27','2025-07-13 18:50:01'),(172,6,5,171,NULL,'Regenschutzhülle',79,1,18,0,NULL,NULL,45,NULL,'2025-07-13 18:50:19'),(173,6,5,NULL,NULL,'Rucksack',850,1,13,0,'uploads/images/img_687400a1157fa5.34296195.jpg','https://www.deuter.com/de-de/shop/rucksacke/p1402332-wanderrucksack-ac-lite-22-sl',27,'AC lite 22 SL','2025-07-13 18:53:21'),(174,6,5,173,NULL,'Regenschutzhülle',59,1,18,0,NULL,NULL,27,NULL,'2025-07-13 18:53:45'),(175,6,5,NULL,NULL,'Rucksack',1030,1,13,0,'uploads/images/img_687400e51b6b68.76009900.png','https://www.bergfreunde.de/deuter-zugspitze-25-wanderrucksack/',27,'Zugspitze 25','2025-07-13 18:54:29'),(176,6,5,175,NULL,'Regenschutzhülle',61,1,18,0,NULL,NULL,27,NULL,'2025-07-13 18:54:43'),(177,6,5,NULL,NULL,'ISO-Matte',653,1,15,0,'uploads/images/img_68749b63c95922.22044870.png','https://www.bergfreunde.de/exped-sim-lite-ul-5-isomatte/',13,'SIM Lite UL 5','2025-07-14 05:53:39'),(178,6,5,177,NULL,'Transporthülle',23,1,13,0,NULL,NULL,13,NULL,'2025-07-14 05:54:24');
/*!40000 ALTER TABLE `articles` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `backpack_compartments`
--

DROP TABLE IF EXISTS `backpack_compartments`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `backpack_compartments` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `backpack_id` int(11) NOT NULL,
  `name` varchar(255) NOT NULL,
  `sort_order` int(11) DEFAULT 0,
  `linked_article_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `backpack_id` (`backpack_id`),
  KEY `fk_bc_article` (`linked_article_id`),
  CONSTRAINT `backpack_compartments_ibfk_1` FOREIGN KEY (`backpack_id`) REFERENCES `backpacks` (`id`) ON DELETE CASCADE,
  CONSTRAINT `fk_bc_article` FOREIGN KEY (`linked_article_id`) REFERENCES `articles` (`id`) ON DELETE SET NULL
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `backpack_compartments`
--

LOCK TABLES `backpack_compartments` WRITE;
/*!40000 ALTER TABLE `backpack_compartments` DISABLE KEYS */;
INSERT INTO `backpack_compartments` VALUES (1,1,'Hauptfach',0),(2,1,'Deckelfach',1),(3,1,'Hodenfach',2);
/*!40000 ALTER TABLE `backpack_compartments` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `backpacks`
--

DROP TABLE IF EXISTS `backpacks`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `backpacks` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `household_id` int(11) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `manufacturer` varchar(255) DEFAULT NULL,
  `model` varchar(255) DEFAULT NULL,
  `weight_grams` int(11) DEFAULT 0,
  `volume_liters` int(11) DEFAULT 0,
  `image_url` varchar(255) DEFAULT NULL,
  `product_url` varchar(255) DEFAULT NULL,
  `category_id` int(11) DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`),
  KEY `fk_bp_category` (`category_id`),
  CONSTRAINT `backpacks_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  CONSTRAINT `fk_bp_category` FOREIGN KEY (`category_id`) REFERENCES `categories` (`id`) ON DELETE SET NULL
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `backpacks`
--

LOCK TABLES `backpacks` WRITE;
/*!40000 ALTER TABLE `backpacks` DISABLE KEYS */;
INSERT INTO `backpacks` VALUES (1,6,5,'UL-Dingen','Outblabla','Krassig 10L',1234,120,'uploads/images/bp_img_69324148109174.55311184.jpg','2025-12-04 17:23:01');
/*!40000 ALTER TABLE `backpacks` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `categories`
--

DROP TABLE IF EXISTS `categories`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `categories` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(100) NOT NULL,
  `user_id` int(11) DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
  PRIMARY KEY (`id`),
  UNIQUE KEY `unique_user_category` (`user_id`,`name`),
  KEY `idx_user_id` (`user_id`),
  CONSTRAINT `fk_category_user` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `categories`
--

LOCK TABLES `categories` WRITE;
/*!40000 ALTER TABLE `categories` DISABLE KEYS */;
INSERT INTO `categories` VALUES (1,'Kleidung',4,'2025-06-17 10:25:42'),(2,'Schlafen',4,'2025-06-17 10:25:42'),(3,'Kochen & Essen',4,'2025-06-17 10:25:42'),(4,'Navigation',4,'2025-06-17 10:25:42'),(5,'Erste Hilfe',4,'2025-06-17 10:25:42'),(6,'Werkzeug',4,'2025-06-17 10:25:42'),(7,'Elektronik2',4,'2025-06-17 10:25:42'),(8,'Testkategorie2',4,'2025-06-17 10:36:51'),(9,'Bla bla3',4,'2025-06-17 13:31:24'),(10,'Dritte Kategorie',4,'2025-06-18 18:23:21'),(11,'Rülps',4,'2025-06-22 00:10:42'),(12,'NochEineKategorie',4,'2025-07-05 13:28:03'),(13,'Transport',6,'2025-07-09 17:58:59'),(14,'Verpflegung',6,'2025-07-09 18:20:56'),(15,'Unterkunft',6,'2025-07-09 18:21:44'),(16,'Elektro',6,'2025-07-09 18:32:28'),(17,'Hygiene',6,'2025-07-09 19:06:27'),(18,'Sonstiges',6,'2025-07-09 19:09:12'),(19,'Luxus',6,'2025-07-10 03:47:57'),(20,'Bekleidung',6,'2025-07-10 03:58:36');
/*!40000 ALTER TABLE `categories` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `household_invitations`
--

DROP TABLE IF EXISTS `household_invitations`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `household_invitations` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `household_id` int(11) NOT NULL,
  `inviter_user_id` int(11) NOT NULL COMMENT 'Wer hat eingeladen',
  `invited_user_id` int(11) NOT NULL COMMENT 'Wer wurde eingeladen',
  `status` enum('pending','accepted','declined') NOT NULL DEFAULT 'pending',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
  `responded_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `unique_invitation` (`household_id`,`invited_user_id`),
  KEY `invited_user_id` (`invited_user_id`),
  KEY `inviter_user_id` (`inviter_user_id`),
  CONSTRAINT `fk_invitation_household` FOREIGN KEY (`household_id`) REFERENCES `households` (`id`) ON DELETE CASCADE,
  CONSTRAINT `fk_invitation_invited` FOREIGN KEY (`invited_user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  CONSTRAINT `fk_invitation_inviter` FOREIGN KEY (`inviter_user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `household_invitations`
--

LOCK TABLES `household_invitations` WRITE;
/*!40000 ALTER TABLE `household_invitations` DISABLE KEYS */;
INSERT INTO `household_invitations` VALUES (4,5,6,5,'accepted','2025-07-09 09:45:48','2025-07-13 19:06:59'),(5,5,6,7,'accepted','2025-07-13 18:56:01','2025-07-13 18:56:12'),(6,5,6,8,'accepted','2025-07-13 19:07:24','2025-07-13 19:07:32');
/*!40000 ALTER TABLE `household_invitations` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `household_logs`
--

DROP TABLE IF EXISTS `household_logs`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `household_logs` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `household_id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL COMMENT 'Wer hat die Aktion ausgeführt',
  `message` text NOT NULL COMMENT 'Die Log-Nachricht, z.B. "Max hat den Artikel Zelt hinzugefügt"',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
  PRIMARY KEY (`id`),
  KEY `household_id` (`household_id`),
  CONSTRAINT `fk_log_household` FOREIGN KEY (`household_id`) REFERENCES `households` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=234 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `household_logs`
--

LOCK TABLES `household_logs` WRITE;
/*!40000 ALTER TABLE `household_logs` DISABLE KEYS */;
INSERT INTO `household_logs` VALUES (4,5,6,'daniel hat den Haushalt \'Klenzel\' erstellt.','2025-07-09 09:45:22'),(5,5,6,'daniel hat Icheb in den Haushalt eingeladen.','2025-07-09 09:45:48'),(6,5,6,'Daniel hat den Artikel \'Rucksack UL\' hinzugefügt.','2025-07-09 17:58:59'),(7,5,6,'Daniel hat den Artikel \'Rucksack UL\' bearbeitet.','2025-07-09 17:59:26'),(8,5,6,'Daniel hat den Artikel \'PET-Flasche 1l\' hinzugefügt.','2025-07-09 18:14:34'),(9,5,6,'Daniel hat den Artikel \'PET-Flasche 1l\' bearbeitet.','2025-07-09 18:14:48'),(10,5,6,'Daniel hat den Artikel \'Flaschentasche Rucksack\' hinzugefügt.','2025-07-09 18:16:15'),(11,5,6,'Daniel hat den Artikel \'Flaschentasche Rucksack\' hinzugefügt.','2025-07-09 18:16:50'),(12,5,6,'Daniel hat den Artikel \'Flaschentasche Rucksack\' gelöscht.','2025-07-09 18:17:01'),(13,5,6,'Daniel hat den Artikel \'PET-Flasche 0,5l\' hinzugefügt.','2025-07-09 18:18:25'),(14,5,6,'Daniel hat den Artikel \'Wasserfilter\' hinzugefügt.','2025-07-09 18:20:56'),(15,5,6,'Daniel hat den Artikel \'Sitzkissen\' hinzugefügt.','2025-07-09 18:21:44'),(16,5,6,'Daniel hat den Artikel \'Rucksack UL\' bearbeitet.','2025-07-09 18:22:11'),(17,5,6,'Daniel hat den Artikel \'Wasserfilter\' bearbeitet.','2025-07-09 18:22:25'),(18,5,6,'Daniel hat den Artikel \'Wasserfilter\' bearbeitet.','2025-07-09 18:22:46'),(19,5,6,'Daniel hat den Artikel \'Wasserfilter\' bearbeitet.','2025-07-09 18:22:52'),(20,5,6,'Daniel hat den Artikel \'Wasserfilter\' bearbeitet.','2025-07-09 18:22:56'),(21,5,6,'Daniel hat den Artikel \'Sitzkissen\' bearbeitet.','2025-07-09 18:24:38'),(22,5,6,'Daniel hat den Artikel \'Rucksack UL\' bearbeitet.','2025-07-09 18:25:47'),(23,5,6,'Daniel hat den Artikel \'Rucksack UL\' bearbeitet.','2025-07-09 18:30:54'),(24,5,6,'Daniel hat den Artikel \'Rucksack UL\' bearbeitet.','2025-07-09 18:31:12'),(25,5,6,'Daniel hat den Artikel \'Powerbank\' hinzugefügt.','2025-07-09 18:32:28'),(26,5,6,'Daniel hat den Artikel \'Powerbank\' bearbeitet.','2025-07-09 18:35:52'),(27,5,6,'Daniel hat den Artikel \'Powerbank\' bearbeitet.','2025-07-09 18:36:00'),(28,5,6,'Daniel hat den Artikel \'Rucksack UL\' bearbeitet.','2025-07-09 18:38:38'),(29,5,6,'Daniel hat den Artikel \'Rucksack UL\' bearbeitet.','2025-07-09 18:39:09'),(30,5,6,'Daniel hat den Artikel \'Rucksack UL\' bearbeitet.','2025-07-09 18:42:42'),(31,5,6,'Daniel hat den Artikel \'Rucksack UL\' bearbeitet.','2025-07-09 18:46:16'),(32,5,6,'Daniel hat den Artikel \'Rucksack UL\' bearbeitet.','2025-07-09 18:50:41'),(33,5,6,'Daniel hat den Artikel \'Rucksack UL\' bearbeitet.','2025-07-09 18:55:37'),(34,5,6,'Daniel hat den Artikel \'Rucksack UL\' bearbeitet.','2025-07-09 18:55:54'),(35,5,6,'Daniel hat den Artikel \'Powerbank\' bearbeitet.','2025-07-09 19:01:01'),(36,5,6,'Daniel hat den Artikel \'Sitzkissen\' bearbeitet.','2025-07-09 19:01:19'),(37,5,6,'Daniel hat den Artikel \'Taschenlampe\' hinzugefügt.','2025-07-09 19:03:58'),(38,5,6,'Daniel hat den Artikel \'Lippenschutzstift\' hinzugefügt.','2025-07-09 19:06:27'),(39,5,6,'Daniel hat den Artikel \'Taschenmesser\' hinzugefügt.','2025-07-09 19:09:12'),(40,5,6,'Daniel hat den Artikel \'Taschenmesser\' bearbeitet.','2025-07-09 19:09:20'),(41,5,6,'Daniel hat den Artikel \'Buchungsbestätigung\' hinzugefügt.','2025-07-09 19:10:43'),(42,5,6,'Daniel hat den Artikel \'Taschentücher\' hinzugefügt.','2025-07-09 19:11:40'),(43,5,6,'Daniel hat den Artikel \'Packsack\' hinzugefügt.','2025-07-09 19:14:41'),(44,5,6,'Daniel hat den Artikel \'Erste-Hilfe-Set\' hinzugefügt.','2025-07-09 19:16:20'),(45,5,6,'Daniel hat den Artikel \'Zeckenzangen\' hinzugefügt.','2025-07-09 19:17:33'),(46,5,6,'Daniel hat den Artikel \'Rettungsdecke\' hinzugefügt.','2025-07-09 19:18:08'),(47,5,6,'Daniel hat den Artikel \'Wattepads\' hinzugefügt.','2025-07-10 03:17:00'),(48,5,6,'Daniel hat den Artikel \'Leukoplast, Rolle\' hinzugefügt.','2025-07-10 03:17:37'),(49,5,6,'Daniel hat den Artikel \'Desinfektionsspray\' hinzugefügt.','2025-07-10 03:18:20'),(50,5,6,'Daniel hat den Artikel \'Leukoplast\' bearbeitet.','2025-07-10 03:18:37'),(51,5,6,'Daniel hat den Artikel \'PET-Flasche\' bearbeitet.','2025-07-10 03:19:03'),(52,5,6,'Daniel hat den Artikel \'PET-Flasche\' bearbeitet.','2025-07-10 03:19:13'),(53,5,6,'Daniel hat den Artikel \'Geldbörse mit Kleingeld\' hinzugefügt.','2025-07-10 03:20:00'),(54,5,6,'Daniel hat den Artikel \'Schlüssel Daniel\' hinzugefügt.','2025-07-10 03:20:30'),(55,5,6,'Daniel hat den Artikel \'Packsack\' hinzugefügt.','2025-07-10 03:21:38'),(56,5,6,'Daniel hat den Artikel \'Bonbons\' hinzugefügt.','2025-07-10 03:22:12'),(57,5,6,'Daniel hat den Artikel \'Handtuch\' hinzugefügt.','2025-07-10 03:24:41'),(58,5,6,'Daniel hat den Artikel \'Kompressionssack\' hinzugefügt.','2025-07-10 03:26:59'),(59,5,6,'Daniel hat den Artikel \'Schlafsack\' hinzugefügt.','2025-07-10 03:27:59'),(60,5,6,'Daniel hat den Artikel \'Pumpsack ISO-Matte\' hinzugefügt.','2025-07-10 03:29:16'),(61,5,6,'Daniel hat den Artikel \'ISO-Matte\' hinzugefügt.','2025-07-10 03:30:21'),(62,5,6,'Daniel hat den Artikel \'Flickset\' hinzugefügt.','2025-07-10 03:31:04'),(63,5,6,'Daniel hat den Artikel \'ISO-Matte\' hinzugefügt.','2025-07-10 03:34:18'),(64,5,6,'Daniel hat den Artikel \'ISO-Matte\' hinzugefügt.','2025-07-10 03:35:03'),(65,5,6,'Daniel hat den Artikel \'Transportbeutel\' bearbeitet.','2025-07-10 03:35:51'),(66,5,6,'Daniel hat den Artikel \'Transportbeutel\' hinzugefügt.','2025-07-10 03:37:16'),(67,5,6,'Daniel hat den Artikel \'Kopfkissen\' hinzugefügt.','2025-07-10 03:37:57'),(68,5,6,'Daniel hat den Artikel \'Kulturbeutel UL\' hinzugefügt.','2025-07-10 03:38:22'),(69,5,6,'Daniel hat den Artikel \'Wundersalbe 3000\' hinzugefügt.','2025-07-10 03:44:15'),(70,5,6,'Daniel hat den Artikel \'Zahnbürste\' hinzugefügt.','2025-07-10 03:44:48'),(71,5,6,'Daniel hat den Artikel \'Zahnputztabletten\' hinzugefügt.','2025-07-10 03:45:13'),(72,5,6,'Daniel hat den Artikel \'Reinigungsmittel\' hinzugefügt.','2025-07-10 03:46:46'),(73,5,6,'Daniel hat den Artikel \'Spiegel\' hinzugefügt.','2025-07-10 03:47:22'),(74,5,6,'Daniel hat den Artikel \'Ersatzliquid\' hinzugefügt.','2025-07-10 03:47:57'),(75,5,6,'Daniel hat den Artikel \'Wattestäbchen\' hinzugefügt.','2025-07-10 03:48:29'),(76,5,6,'Daniel hat den Artikel \'Zeckenschutz\' hinzugefügt.','2025-07-10 03:50:33'),(77,5,6,'Daniel hat den Artikel \'Faltbecher\' hinzugefügt.','2025-07-10 03:53:38'),(78,5,6,'Daniel hat den Artikel \'Faltschüssel\' hinzugefügt.','2025-07-10 03:55:22'),(79,5,6,'Daniel hat den Artikel \'Instantkaffee\' hinzugefügt.','2025-07-10 03:55:59'),(80,5,6,'Daniel hat den Artikel \'Unterwegssnack\' hinzugefügt.','2025-07-10 03:56:36'),(81,5,6,'Daniel hat den Artikel \'Fertiggericht\' hinzugefügt.','2025-07-10 03:57:14'),(82,5,6,'Daniel hat den Artikel \'Getränkepulver\' hinzugefügt.','2025-07-10 03:57:50'),(83,5,6,'Daniel hat den Artikel \'T-Shirt\' hinzugefügt.','2025-07-10 03:58:36'),(84,5,6,'Daniel hat den Artikel \'Packsack WC\' hinzugefügt.','2025-07-10 04:00:35'),(85,5,6,'Daniel hat den Artikel \'Desinfektionsgel\' hinzugefügt.','2025-07-10 04:01:25'),(86,5,6,'Daniel hat den Artikel \'Topf mit Deckel\' hinzugefügt.','2025-07-10 04:03:11'),(87,5,6,'Daniel hat den Artikel \'Kulturbeutel UL\' bearbeitet.','2025-07-10 04:03:37'),(88,5,6,'Daniel hat den Artikel \'Deckelhalter\' hinzugefügt.','2025-07-10 04:04:38'),(89,5,6,'Daniel hat den Artikel \'Inlay\' hinzugefügt.','2025-07-10 04:05:12'),(90,5,6,'Daniel hat den Artikel \'Gasbrenner\' hinzugefügt.','2025-07-10 04:06:11'),(91,5,6,'Daniel hat den Artikel \'Feuerzeug\' hinzugefügt.','2025-07-10 04:20:33'),(92,5,6,'Daniel hat den Artikel \'Gaskartusche\' hinzugefügt.','2025-07-10 04:21:32'),(93,5,6,'Daniel hat den Artikel \'Teelicht\' hinzugefügt.','2025-07-10 04:21:54'),(94,5,6,'Daniel hat den Artikel \'Schwamm\' hinzugefügt.','2025-07-10 04:22:26'),(95,5,6,'Daniel hat den Artikel \'Löffel UL\' hinzugefügt.','2025-07-10 04:23:08'),(96,5,6,'Daniel hat den Artikel \'Ständer für Gaskartusche\' hinzugefügt.','2025-07-10 04:23:57'),(97,5,6,'Daniel hat den Artikel \'Zelt\' hinzugefügt.','2025-07-10 04:24:59'),(98,5,6,'Daniel hat den Artikel \'Zeltgestänge\' hinzugefügt.','2025-07-10 04:25:48'),(99,5,6,'Daniel hat den Artikel \'Abspannseile\' hinzugefügt.','2025-07-10 04:26:25'),(100,5,6,'Daniel hat den Artikel \'Karabiner\' hinzugefügt.','2025-07-10 04:26:57'),(101,5,6,'Daniel hat den Artikel \'Karabiner\' hinzugefügt.','2025-07-10 04:27:24'),(102,5,6,'Daniel hat den Artikel \'Karabiner\' hinzugefügt.','2025-07-10 04:27:50'),(103,5,6,'Daniel hat den Artikel \'Thermomter Bluetooth\' hinzugefügt.','2025-07-10 04:28:45'),(104,5,6,'Daniel hat den Artikel \'Transporthülle\' hinzugefügt.','2025-07-10 04:29:38'),(105,5,6,'Daniel hat den Artikel \'Kräuterstäbchen\' hinzugefügt.','2025-07-10 04:30:07'),(106,5,6,'Daniel hat den Artikel \'Ladekabel GPS-Sensor\' hinzugefügt.','2025-07-10 04:31:43'),(107,5,6,'Daniel hat den Artikel \'Transportkarte Panzertape\' hinzugefügt.','2025-07-10 04:32:18'),(108,5,6,'Daniel hat den Artikel \'Panzertape\' hinzugefügt.','2025-07-10 04:32:43'),(109,5,6,'Daniel hat den Artikel \'Halterung Smartphone Zeltdecke\' hinzugefügt.','2025-07-10 04:34:15'),(110,5,6,'Daniel hat den Artikel \'Topf mit Deckel\' hinzugefügt.','2025-07-13 13:26:40'),(111,5,6,'Daniel hat den Artikel \'Gasbrenner\' hinzugefügt.','2025-07-13 13:27:40'),(112,5,6,'Daniel hat den Artikel \'Gasbrenner\' bearbeitet.','2025-07-13 13:46:37'),(113,5,6,'Daniel hat den Artikel \'Gaskartusche\' hinzugefügt.','2025-07-13 13:48:14'),(114,5,6,'Daniel hat den Artikel \'Lappen\' hinzugefügt.','2025-07-13 13:48:53'),(115,5,6,'Daniel hat den Artikel \'Feuerzeug\' hinzugefügt.','2025-07-13 13:49:34'),(116,5,6,'Daniel hat den Artikel \'Transportbeutel\' hinzugefügt.','2025-07-13 13:50:02'),(117,5,6,'Daniel hat den Artikel \'Wasserkocher\' hinzugefügt.','2025-07-13 13:51:00'),(118,5,6,'Daniel hat den Artikel \'Sitzkissen\' hinzugefügt.','2025-07-13 13:51:40'),(119,5,6,'Daniel hat den Artikel \'Transportbeutel\' hinzugefügt.','2025-07-13 13:52:14'),(120,5,6,'Daniel hat den Artikel \'Sitzkissen\' hinzugefügt.','2025-07-13 13:52:45'),(121,5,6,'Daniel hat den Artikel \'Zurrgurt\' hinzugefügt.','2025-07-13 13:54:36'),(122,5,6,'Daniel hat den Artikel \'Klappschaufel\' hinzugefügt.','2025-07-13 13:55:07'),(123,5,6,'Daniel hat den Artikel \'Transporthülle\' hinzugefügt.','2025-07-13 13:55:26'),(124,5,6,'Daniel hat den Artikel \'Desinfektionsspray\' hinzugefügt.','2025-07-13 13:57:19'),(125,5,6,'Daniel hat den Artikel \'Reinigungsmittel\' hinzugefügt.','2025-07-13 13:58:57'),(126,5,6,'Daniel hat den Artikel \'Kulturbeutel\' hinzugefügt.','2025-07-13 14:00:55'),(127,5,6,'Daniel hat den Artikel \'Stirnband Winter\' hinzugefügt.','2025-07-13 14:07:16'),(128,5,6,'Daniel hat den Artikel \'Reinigungsmittel\' hinzugefügt.','2025-07-13 14:08:07'),(129,5,6,'Daniel hat den Artikel \'Mütze Winter\' hinzugefügt.','2025-07-13 14:09:04'),(130,5,6,'Daniel hat den Artikel \'Handwärmer USB\' hinzugefügt.','2025-07-13 14:09:47'),(131,5,6,'Daniel hat den Artikel \'Wassersack\' hinzugefügt.','2025-07-13 14:10:48'),(132,5,6,'Daniel hat den Artikel \'ISO-Matte\' hinzugefügt.','2025-07-13 14:16:29'),(133,5,6,'Daniel hat den Artikel \'Transporthülle\' hinzugefügt.','2025-07-13 14:17:11'),(134,5,6,'Daniel hat den Artikel \'ISO-Matte\' hinzugefügt.','2025-07-13 14:19:38'),(135,5,6,'Daniel hat den Artikel \'Tran\' hinzugefügt.','2025-07-13 14:20:11'),(136,5,6,'Daniel hat den Artikel \'ISO-Matte\' hinzugefügt.','2025-07-13 14:20:41'),(137,5,6,'Daniel hat den Artikel \'Transporthülle\' hinzugefügt.','2025-07-13 14:21:07'),(138,5,6,'Daniel hat den Artikel \'Transporthülle\' bearbeitet.','2025-07-13 14:21:20'),(139,5,6,'Daniel hat den Artikel \'Faltnapf\' hinzugefügt.','2025-07-13 14:24:20'),(140,5,6,'Daniel hat den Artikel \'Wasserfilter\' hinzugefügt.','2025-07-13 14:25:53'),(141,5,6,'Daniel hat den Artikel \'Transportbeutel\' hinzugefügt.','2025-07-13 14:26:43'),(142,5,6,'Daniel hat den Artikel \'Handtuch\' hinzugefügt.','2025-07-13 14:28:23'),(143,5,6,'Daniel hat den Artikel \'Handschuhe\' hinzugefügt.','2025-07-13 14:29:48'),(144,5,6,'Daniel hat den Artikel \'Handschuhe\' hinzugefügt.','2025-07-13 14:30:12'),(145,5,6,'Daniel hat den Artikel \'Gamaschen\' hinzugefügt.','2025-07-13 14:31:12'),(146,5,6,'Daniel hat den Artikel \'Handschuhe\' hinzugefügt.','2025-07-13 14:32:56'),(147,5,6,'Daniel hat den Artikel \'Videoleuchte\' hinzugefügt.','2025-07-13 14:36:33'),(148,5,6,'Daniel hat den Artikel \'GPS-Tracker\' hinzugefügt.','2025-07-13 14:48:07'),(149,5,6,'Daniel hat den Artikel \'Dampfgerät\' hinzugefügt.','2025-07-13 14:55:12'),(150,5,6,'Daniel hat den Artikel \'Rucksack Hund\' hinzugefügt.','2025-07-13 14:59:07'),(151,5,6,'Daniel hat den Artikel \'Brustschutz\' hinzugefügt.','2025-07-13 15:03:15'),(152,5,6,'Daniel hat den Artikel \'Stirnlampe\' hinzugefügt.','2025-07-13 15:03:58'),(153,5,6,'Daniel hat den Artikel \'Taschenlampe\' hinzugefügt.','2025-07-13 15:04:39'),(154,5,6,'Daniel hat den Artikel \'Rucksack\' hinzugefügt.','2025-07-13 15:08:35'),(155,5,6,'Daniel hat den Artikel \'Rucksack\' hinzugefügt.','2025-07-13 15:09:34'),(156,5,6,'Daniel hat den Artikel \'Regenschutzhülle\' hinzugefügt.','2025-07-13 15:10:28'),(157,5,6,'Daniel hat den Artikel \'Taschenmesser\' hinzugefügt.','2025-07-13 18:35:57'),(158,5,6,'Daniel hat den Artikel \'Monokular\' hinzugefügt.','2025-07-13 18:36:21'),(159,5,6,'Daniel hat den Artikel \'Transporthülle\' hinzugefügt.','2025-07-13 18:36:44'),(160,5,6,'Daniel hat den Artikel \'Panzertape Rolle\' hinzugefügt.','2025-07-13 18:37:14'),(161,5,6,'Daniel hat den Artikel \'Streichholzdose\' hinzugefügt.','2025-07-13 18:37:51'),(162,5,6,'Daniel hat den Artikel \'Radio\' hinzugefügt.','2025-07-13 18:38:21'),(163,5,6,'Daniel hat den Artikel \'Ständer für Gaskartusche\' hinzugefügt.','2025-07-13 18:39:03'),(164,5,6,'Daniel hat den Artikel \'Streichhölzer\' hinzugefügt.','2025-07-13 18:39:28'),(165,5,6,'Daniel hat den Artikel \'Pflasterset\' hinzugefügt.','2025-07-13 18:40:17'),(166,5,6,'Daniel hat den Artikel \'Deodorant\' hinzugefügt.','2025-07-13 18:40:48'),(167,5,6,'Daniel hat den Artikel \'Deodorant\' hinzugefügt.','2025-07-13 18:41:07'),(168,5,6,'Daniel hat den Artikel \'Schaumfestiger\' hinzugefügt.','2025-07-13 18:41:58'),(169,5,6,'Daniel hat den Artikel \'Rasierer\' hinzugefügt.','2025-07-13 18:42:22'),(170,5,6,'Daniel hat den Artikel \'Rasierer\' hinzugefügt.','2025-07-13 18:42:40'),(171,5,6,'Daniel hat den Artikel \'Zahnpasta\' hinzugefügt.','2025-07-13 18:43:05'),(172,5,6,'Daniel hat den Artikel \'Mütze\' hinzugefügt.','2025-07-13 18:43:49'),(173,5,6,'Daniel hat den Artikel \'Mütze\' hinzugefügt.','2025-07-13 18:44:13'),(174,5,6,'Daniel hat den Artikel \'Mütze\' hinzugefügt.','2025-07-13 18:44:29'),(175,5,6,'Daniel hat den Artikel \'Rucksack\' hinzugefügt.','2025-07-13 18:45:57'),(176,5,6,'Daniel hat den Artikel \'Regenschutzhülle\' hinzugefügt.','2025-07-13 18:47:02'),(177,5,6,'Daniel hat den Artikel \'Rucksack\' bearbeitet.','2025-07-13 18:47:28'),(178,5,6,'Daniel hat den Artikel \'Rucksack\' hinzugefügt.','2025-07-13 18:48:33'),(179,5,6,'Daniel hat den Artikel \'Regen\' hinzugefügt.','2025-07-13 18:48:50'),(180,5,6,'Daniel hat den Artikel \'Rucksack\' hinzugefügt.','2025-07-13 18:50:01'),(181,5,6,'Daniel hat den Artikel \'Regenschutzhülle\' hinzugefügt.','2025-07-13 18:50:19'),(182,5,6,'Daniel hat den Artikel \'Rucksack\' hinzugefügt.','2025-07-13 18:53:21'),(183,5,6,'Daniel hat den Artikel \'Regenschutzhülle\' hinzugefügt.','2025-07-13 18:53:45'),(184,5,6,'Daniel hat den Artikel \'Rucksack\' hinzugefügt.','2025-07-13 18:54:29'),(185,5,6,'Daniel hat den Artikel \'Regenschutzhülle\' hinzugefügt.','2025-07-13 18:54:43'),(186,5,6,'Daniel hat Tina in den Haushalt eingeladen.','2025-07-13 18:56:01'),(187,5,7,'Tina ist dem Haushalt beigetreten.','2025-07-13 18:56:12'),(188,5,6,'Daniel hat den Artikel \'Bonbons\' bearbeitet.','2025-07-13 18:57:13'),(189,5,7,'Tina hat den Artikel \'Geldbörse mit Kleingeld\' bearbeitet.','2025-07-13 18:57:50'),(190,5,6,'Daniel hat den Artikel \'Zahnputztabletten\' bearbeitet.','2025-07-13 18:58:10'),(191,5,7,'Tina hat den Artikel \'Zurrgurt\' bearbeitet.','2025-07-13 18:58:18'),(192,5,7,'Tina hat den Artikel \'Teelicht\' bearbeitet.','2025-07-13 18:58:29'),(193,5,6,'Daniel hat die Packliste \'Testliste\' erstellt.','2025-07-13 19:05:45'),(194,5,5,'Icheb ist dem Haushalt beigetreten.','2025-07-13 19:06:59'),(195,5,6,'Daniel hat Seska in den Haushalt eingeladen.','2025-07-13 19:07:24'),(196,5,8,'Seska ist dem Haushalt beigetreten.','2025-07-13 19:07:32'),(197,5,7,'Tina hat die Packliste \'Ich packe meinen Rucksack\' erstellt.','2025-07-13 19:08:02'),(198,5,6,'Daniel hat die Packliste \'Noch ein Test\' erstellt.','2025-07-14 01:17:56'),(199,5,6,'Daniel hat den Artikel \'Rucksack Hund\' bearbeitet.','2025-07-14 02:36:26'),(200,5,6,'Daniel hat den Artikel \'ISO-Matte\' hinzugefügt.','2025-07-14 05:53:39'),(201,5,6,'Daniel hat den Artikel \'Transporthülle\' hinzugefügt.','2025-07-14 05:54:24'),(202,5,6,'Daniel hat den Artikel \'Transporthülle\' bearbeitet.','2025-07-14 05:55:29'),(203,5,6,'Daniel hat den Artikel \'Transportbeutel\' bearbeitet.','2025-07-14 06:34:46'),(204,5,6,'Daniel hat den Artikel \'Transporthülle\' bearbeitet.','2025-07-14 06:35:08'),(205,5,6,'Daniel hat den Artikel \'Transporthülle\' bearbeitet.','2025-07-14 06:35:29'),(206,5,6,'Daniel hat den Artikel \'Transporthülle\' bearbeitet.','2025-07-14 06:35:49'),(207,5,6,'Daniel hat den Artikel \'Transporthülle\' bearbeitet.','2025-07-14 06:36:05'),(208,5,6,'Daniel hat den Artikel \'Transporthülle\' bearbeitet.','2025-07-14 06:39:09'),(209,5,6,'Daniel hat den Artikel \'Regenschutzhülle\' bearbeitet.','2025-07-14 06:39:32'),(210,5,6,'Daniel hat den Artikel \'Transporthülle\' bearbeitet.','2025-07-14 06:39:47'),(211,5,6,'Daniel hat den Artikel \'Regenschutzhülle\' bearbeitet.','2025-07-14 06:40:03'),(212,5,6,'Daniel hat den Artikel \'Regenschutzhülle\' bearbeitet.','2025-07-14 06:40:19'),(213,5,6,'Daniel hat den Artikel \'Regenschutzhülle\' bearbeitet.','2025-07-14 06:40:33'),(214,5,6,'Daniel hat den Artikel \'Regenschutzhülle\' bearbeitet.','2025-07-14 06:40:51'),(215,5,6,'Daniel hat den Artikel \'Transportbeutel\' bearbeitet.','2025-07-14 06:41:22'),(216,5,6,'Daniel hat den Artikel \'Deckelhalter\' bearbeitet.','2025-07-14 06:41:42'),(217,5,6,'Daniel hat den Artikel \'Inlay\' bearbeitet.','2025-07-14 06:41:56'),(218,5,6,'Daniel hat den Artikel \'Zeltgestänge\' bearbeitet.','2025-07-14 06:42:26'),(219,5,6,'Daniel hat den Artikel \'Zelt\' bearbeitet.','2025-07-14 06:42:45'),(220,5,6,'Daniel hat den Artikel \'Lappen\' bearbeitet.','2025-07-14 06:43:10'),(221,5,6,'Daniel hat den Artikel \'Transportbeutel\' bearbeitet.','2025-07-14 06:44:38'),(222,5,6,'Daniel hat den Artikel \'Transportbeutel\' bearbeitet.','2025-07-14 06:44:53'),(223,5,6,'Daniel hat den Artikel \'Transportbeutel\' bearbeitet.','2025-07-14 06:45:09'),(224,5,6,'Daniel hat den Artikel \'Brustschutz\' bearbeitet.','2025-07-14 06:45:27'),(225,5,6,'Daniel hat den Artikel \'Regenschutzhülle\' bearbeitet.','2025-07-14 06:45:59'),(226,5,6,'Daniel hat den Artikel \'Panzertape\' bearbeitet.','2025-07-14 06:47:07'),(227,5,6,'Daniel hat den Artikel \'Thermometer Bluetooth\' bearbeitet.','2025-07-14 06:47:43'),(228,5,6,'Daniel hat den Artikel \'Gasbrenner\' bearbeitet.','2025-07-14 07:20:46'),(229,5,6,'Daniel hat die Packliste \'Test wegen Rucksack\' erstellt.','2025-12-04 17:24:16'),(230,5,6,'Daniel hat die Packliste \'Test wegen Rucksack\' gelöscht.','2025-12-04 18:19:26'),(231,5,6,'Daniel hat die Packliste \'Bla bla\' erstellt.','2025-12-04 18:20:13'),(232,5,6,'Daniel hat die Packliste \'Bla bla\' gelöscht.','2025-12-04 18:55:40'),(233,5,6,'Daniel hat die Packliste \'Hubold\' erstellt.','2025-12-04 18:56:12');
/*!40000 ALTER TABLE `household_logs` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `households`
--

DROP TABLE IF EXISTS `households`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `households` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(100) NOT NULL,
  `admin_user_id` int(11) NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
  PRIMARY KEY (`id`),
  KEY `admin_user_id` (`admin_user_id`),
  CONSTRAINT `fk_household_admin` FOREIGN KEY (`admin_user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `households`
--

LOCK TABLES `households` WRITE;
/*!40000 ALTER TABLE `households` DISABLE KEYS */;
INSERT INTO `households` VALUES (5,'Klenzel',6,'2025-07-09 09:45:22');
/*!40000 ALTER TABLE `households` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `manufacturers`
--

DROP TABLE IF EXISTS `manufacturers`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `manufacturers` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(100) NOT NULL,
  `user_id` int(11) DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
  PRIMARY KEY (`id`),
  UNIQUE KEY `unique_user_manufacturer` (`user_id`,`name`),
  KEY `idx_user_id` (`user_id`),
  CONSTRAINT `fk_manufacturer_user` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=46 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `manufacturers`
--

LOCK TABLES `manufacturers` WRITE;
/*!40000 ALTER TABLE `manufacturers` DISABLE KEYS */;
INSERT INTO `manufacturers` VALUES (1,'Yokalinski2',4,'2025-06-18 18:04:43'),(2,'Xiandong',4,'2025-06-18 18:23:21'),(3,'Outplea',6,'2025-07-09 17:58:59'),(4,'No-Name',6,'2025-07-09 18:14:34'),(5,'Katadyn',6,'2025-07-09 18:20:56'),(6,'Vrurc',6,'2025-07-09 18:32:28'),(7,'Blistex',6,'2025-07-09 19:06:27'),(8,'Victorinox',6,'2025-07-09 19:09:12'),(9,'Vaude',6,'2025-07-09 19:18:08'),(10,'Meru',6,'2025-07-10 03:24:41'),(11,'Therm-a-Rest',6,'2025-07-10 03:26:59'),(12,'Hikenture',6,'2025-07-10 03:29:16'),(13,'Exped',6,'2025-07-10 03:37:16'),(14,'Linola',6,'2025-07-10 03:44:15'),(15,'Autan',6,'2025-07-10 03:50:33'),(16,'Fold-A-Cup',6,'2025-07-10 03:53:38'),(17,'Sea to Summit',6,'2025-07-10 03:55:21'),(18,'Instick',6,'2025-07-10 03:57:50'),(19,'Toaks',6,'2025-07-10 04:03:11'),(20,'Yumqua',6,'2025-07-10 04:03:37'),(21,'BRS',6,'2025-07-10 04:06:11'),(22,'BIC',6,'2025-07-10 04:20:33'),(23,'Naturehike',6,'2025-07-10 04:24:59'),(24,'Mictrack',6,'2025-07-10 04:31:43'),(25,'MSR',6,'2025-07-13 13:26:40'),(26,'mia',6,'2025-07-13 13:51:00'),(27,'Deuter',6,'2025-07-13 14:00:55'),(28,'Barts',6,'2025-07-13 14:07:16'),(29,'Mammut',6,'2025-07-13 14:09:04'),(30,'Ocoopa',6,'2025-07-13 14:09:47'),(31,'Ortlieb',6,'2025-07-13 14:10:48'),(32,'Jemulice',6,'2025-07-13 14:19:38'),(33,'Hunter',6,'2025-07-13 14:24:20'),(34,'Roeckl',6,'2025-07-13 14:29:48'),(35,'TSL',6,'2025-07-13 14:31:12'),(36,'B-Forest',6,'2025-07-13 14:32:05'),(38,'Geekvape',6,'2025-07-13 14:55:12'),(39,'Ruffwear',6,'2025-07-13 14:59:07'),(40,'Blukar',6,'2025-07-13 15:03:58'),(41,'Besrina',6,'2025-07-13 15:08:35'),(42,'Amazon Basics',6,'2025-07-13 15:09:34'),(43,'The North Face',6,'2025-07-13 18:43:49'),(44,'Osprey',6,'2025-07-13 18:45:57'),(45,'Tatonka',6,'2025-07-13 18:50:01');
/*!40000 ALTER TABLE `manufacturers` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `packing_list_carriers`
--

DROP TABLE IF EXISTS `packing_list_carriers`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `packing_list_carriers` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `packing_list_id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `backpack_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `packing_list_id` (`packing_list_id`),
  KEY `user_id` (`user_id`),
  KEY `backpack_id` (`backpack_id`),
  CONSTRAINT `packing_list_carriers_ibfk_1` FOREIGN KEY (`packing_list_id`) REFERENCES `packing_lists` (`id`) ON DELETE CASCADE,
  CONSTRAINT `packing_list_carriers_ibfk_2` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  CONSTRAINT `packing_list_carriers_ibfk_3` FOREIGN KEY (`backpack_id`) REFERENCES `backpacks` (`id`) ON DELETE SET NULL
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `packing_list_carriers`
--

LOCK TABLES `packing_list_carriers` WRITE;
/*!40000 ALTER TABLE `packing_list_carriers` DISABLE KEYS */;
INSERT INTO `packing_list_carriers` VALUES (5,14,6,1),(6,14,5,NULL),(7,14,7,NULL),(8,14,8,NULL);
/*!40000 ALTER TABLE `packing_list_carriers` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `packing_list_items`
--

DROP TABLE IF EXISTS `packing_list_items`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `packing_list_items` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `packing_list_id` int(11) NOT NULL,
  `article_id` int(11) DEFAULT NULL,
  `quantity` int(11) NOT NULL DEFAULT 1,
  `parent_packing_list_item_id` int(11) DEFAULT NULL,
  `carrier_user_id` int(11) DEFAULT NULL,
  `added_at` timestamp NOT NULL DEFAULT current_timestamp(),
  `order_index` int(11) NOT NULL DEFAULT 0,
  `backpack_compartment_id` int(11) DEFAULT NULL,
  `backpack_id` int(11) DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `article_id` (`article_id`),
  KEY `fk_parent_packing_list_item` (`parent_packing_list_item_id`),
  KEY `idx_packing_list_id` (`packing_list_id`),
  KEY `fk_pli_compartment` (`backpack_compartment_id`),
  KEY `fk_pli_backpack` (`backpack_id`),
  CONSTRAINT `fk_parent_packing_list_item` FOREIGN KEY (`parent_packing_list_item_id`) REFERENCES `packing_list_items` (`id`) ON DELETE CASCADE,
  CONSTRAINT `fk_pli_backpack` FOREIGN KEY (`backpack_id`) REFERENCES `backpacks` (`id`) ON DELETE SET NULL,
  CONSTRAINT `fk_pli_compartment` FOREIGN KEY (`backpack_compartment_id`) REFERENCES `backpack_compartments` (`id`) ON DELETE SET NULL,
  CONSTRAINT `packing_list_items_ibfk_1` FOREIGN KEY (`packing_list_id`) REFERENCES `packing_lists` (`id`) ON DELETE CASCADE,
  CONSTRAINT `packing_list_items_ibfk_2` FOREIGN KEY (`article_id`) REFERENCES `articles` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=1719 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `packing_list_items`
--

LOCK TABLES `packing_list_items` WRITE;
/*!40000 ALTER TABLE `packing_list_items` DISABLE KEYS */;
INSERT INTO `packing_list_items` VALUES (74,4,15,1,NULL,NULL,'2025-06-18 07:36:11',0,NULL,NULL,NULL),(84,4,23,1,NULL,5,'2025-06-20 14:59:51',0,NULL,NULL,NULL),(89,4,28,1,NULL,4,'2025-06-20 17:20:53',0,NULL,NULL,NULL),(90,4,22,1,89,4,'2025-06-20 17:21:02',0,NULL,NULL,NULL),(91,4,25,1,NULL,4,'2025-06-20 17:21:09',0,NULL,NULL,NULL),(94,4,19,5,NULL,4,'2025-06-21 01:50:56',0,NULL,NULL,NULL),(109,4,16,1,84,5,'2025-06-21 18:29:40',0,NULL,NULL,NULL),(110,4,26,1,84,5,'2025-06-21 18:29:56',0,NULL,NULL,NULL),(111,4,27,1,74,NULL,'2025-06-21 18:30:14',0,NULL,NULL,NULL),(113,4,20,1,NULL,4,'2025-07-04 18:59:08',0,NULL,NULL,NULL),(115,7,19,1,NULL,NULL,'2025-07-04 19:21:00',0,NULL,NULL,NULL),(117,7,28,1,NULL,NULL,'2025-07-05 02:40:24',0,NULL,NULL,NULL),(120,8,19,1,NULL,4,'2025-07-05 15:16:46',0,NULL,NULL,NULL),(121,8,16,1,NULL,NULL,'2025-07-05 15:16:48',0,NULL,NULL,NULL),(122,8,26,1,121,NULL,'2025-07-05 15:16:51',0,NULL,NULL,NULL),(123,8,22,1,NULL,5,'2025-07-05 17:25:46',0,NULL,NULL,NULL),(126,10,167,1,NULL,7,'2025-07-13 19:08:23',0,NULL,NULL,NULL),(127,10,29,1,NULL,6,'2025-07-13 19:08:28',0,NULL,NULL,NULL),(128,10,142,1,NULL,8,'2025-07-13 19:08:34',0,NULL,NULL,NULL),(129,10,52,1,126,7,'2025-07-13 19:09:11',0,NULL,NULL,NULL),(130,10,75,1,126,7,'2025-07-13 19:09:28',0,NULL,NULL,NULL),(141,9,93,1,NULL,6,'2025-07-14 03:45:21',0,NULL,NULL,NULL),(142,10,142,1,NULL,5,'2025-07-14 03:46:26',0,NULL,NULL,NULL),(143,10,55,1,127,6,'2025-07-14 03:47:25',0,NULL,NULL,NULL),(1594,11,108,1,NULL,6,'2025-12-04 15:42:32',0,NULL,NULL,NULL),(1595,11,33,1,1594,6,'2025-12-04 15:42:32',1,NULL,NULL,NULL),(1596,11,38,1,1595,6,'2025-12-04 15:42:32',2,NULL,NULL,NULL),(1597,11,36,1,1596,6,'2025-12-04 15:42:32',3,NULL,NULL,NULL),(1598,11,41,1,1595,6,'2025-12-04 15:42:32',4,NULL,NULL,NULL),(1599,11,41,1,1595,6,'2025-12-04 15:42:32',5,NULL,NULL,NULL),(1600,11,93,1,1594,6,'2025-12-04 15:42:32',6,NULL,NULL,NULL),(1601,11,40,1,1600,6,'2025-12-04 15:42:32',7,NULL,NULL,NULL),(1602,11,35,1,1601,6,'2025-12-04 15:42:32',8,NULL,NULL,NULL),(1603,11,37,1,1602,6,'2025-12-04 15:42:32',9,NULL,NULL,NULL),(1604,11,31,1,1594,6,'2025-12-04 15:42:32',10,NULL,NULL,NULL),(1605,11,95,1,1594,6,'2025-12-04 15:42:32',11,NULL,NULL,NULL),(1606,11,100,1,1594,6,'2025-12-04 15:42:32',12,NULL,NULL,NULL),(1607,11,40,1,NULL,6,'2025-12-04 15:42:32',13,NULL,NULL,NULL),(1608,11,140,1,1607,6,'2025-12-04 15:42:32',14,NULL,NULL,NULL),(1609,11,39,1,1607,6,'2025-12-04 15:42:32',15,NULL,NULL,NULL),(1610,11,137,1,NULL,6,'2025-12-04 15:42:32',16,NULL,NULL,NULL),(1611,11,143,1,NULL,6,'2025-12-04 15:42:32',17,NULL,NULL,NULL),(1612,11,141,1,NULL,6,'2025-12-04 15:42:32',18,NULL,NULL,NULL),(1613,11,82,1,NULL,6,'2025-12-04 15:42:32',19,NULL,NULL,NULL),(1614,11,115,1,NULL,6,'2025-12-04 15:42:32',20,NULL,NULL,NULL),(1615,11,30,1,1614,6,'2025-12-04 15:42:32',21,NULL,NULL,NULL),(1616,11,104,1,NULL,6,'2025-12-04 15:42:32',22,NULL,NULL,NULL),(1617,11,94,1,1616,6,'2025-12-04 15:42:32',23,NULL,NULL,NULL),(1618,11,75,1,NULL,6,'2025-12-04 15:42:32',24,NULL,NULL,NULL),(1619,11,142,1,NULL,5,'2025-12-04 15:42:32',25,NULL,NULL,NULL),(1620,11,52,1,NULL,5,'2025-12-04 15:42:32',26,NULL,NULL,NULL),(1621,11,93,1,NULL,5,'2025-12-04 15:42:32',27,NULL,NULL,NULL),(1622,11,93,1,NULL,5,'2025-12-04 15:42:32',28,NULL,NULL,NULL),(1623,11,158,1,NULL,5,'2025-12-04 15:42:32',29,NULL,NULL,NULL),(1624,11,69,1,NULL,5,'2025-12-04 15:42:32',30,NULL,NULL,NULL),(1625,11,142,1,NULL,8,'2025-12-04 15:42:32',31,NULL,NULL,NULL),(1626,11,76,1,NULL,7,'2025-12-04 15:42:32',32,NULL,NULL,NULL),(1627,11,159,1,NULL,NULL,'2025-12-04 15:42:32',33,NULL,NULL,NULL),(1628,11,177,1,NULL,NULL,'2025-12-04 15:42:32',34,NULL,NULL,NULL),(1629,11,178,1,1628,NULL,'2025-12-04 15:42:32',35,NULL,NULL,NULL),(1708,14,35,1,NULL,6,'2025-12-05 14:55:49',0,NULL,NULL,NULL),(1709,14,30,1,1708,6,'2025-12-05 14:55:49',1,NULL,NULL,NULL),(1710,14,37,1,1708,6,'2025-12-05 14:55:49',2,NULL,NULL,NULL),(1711,14,NULL,1,NULL,6,'2025-12-05 14:55:49',3,NULL,1,'Rucksack: UL-Dingen'),(1712,14,NULL,1,1711,6,'2025-12-05 14:55:49',4,1,NULL,'Hauptfach'),(1713,14,41,1,1712,6,'2025-12-05 14:55:49',5,NULL,NULL,NULL),(1714,14,31,1,1712,6,'2025-12-05 14:55:49',6,NULL,NULL,NULL),(1715,14,39,1,1714,6,'2025-12-05 14:55:49',7,NULL,NULL,NULL),(1716,14,33,1,1714,6,'2025-12-05 14:55:49',8,NULL,NULL,NULL),(1717,14,NULL,1,1711,6,'2025-12-05 14:55:49',9,2,NULL,'Deckelfach'),(1718,14,NULL,1,1711,6,'2025-12-05 14:55:49',10,3,NULL,'Hodenfach');
/*!40000 ALTER TABLE `packing_list_items` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `packing_list_shares`
--

DROP TABLE IF EXISTS `packing_list_shares`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `packing_list_shares` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `packing_list_id` int(11) NOT NULL,
  `shared_with_user_id` int(11) NOT NULL,
  `permission_level` enum('read','edit') NOT NULL DEFAULT 'read',
  `shared_at` timestamp NOT NULL DEFAULT current_timestamp(),
  PRIMARY KEY (`id`),
  UNIQUE KEY `packing_list_id` (`packing_list_id`,`shared_with_user_id`),
  KEY `shared_with_user_id` (`shared_with_user_id`),
  CONSTRAINT `packing_list_shares_ibfk_1` FOREIGN KEY (`packing_list_id`) REFERENCES `packing_lists` (`id`) ON DELETE CASCADE,
  CONSTRAINT `packing_list_shares_ibfk_2` FOREIGN KEY (`shared_with_user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `packing_list_shares`
--

LOCK TABLES `packing_list_shares` WRITE;
/*!40000 ALTER TABLE `packing_list_shares` DISABLE KEYS */;
INSERT INTO `packing_list_shares` VALUES (3,4,5,'edit','2025-06-18 09:44:59');
/*!40000 ALTER TABLE `packing_list_shares` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `packing_lists`
--

DROP TABLE IF EXISTS `packing_lists`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `packing_lists` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `household_id` int(11) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `description` text DEFAULT NULL,
  `share_token` varchar(255) DEFAULT NULL,
  `is_template` tinyint(1) NOT NULL DEFAULT 0,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
  PRIMARY KEY (`id`),
  UNIQUE KEY `share_token` (`share_token`),
  KEY `user_id` (`user_id`),
  KEY `idx_household_id` (`household_id`),
  CONSTRAINT `fk_packing_list_household` FOREIGN KEY (`household_id`) REFERENCES `households` (`id`) ON DELETE CASCADE,
  CONSTRAINT `packing_lists_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `packing_lists`
--

LOCK TABLES `packing_lists` WRITE;
/*!40000 ALTER TABLE `packing_lists` DISABLE KEYS */;
INSERT INTO `packing_lists` VALUES (4,4,NULL,'Testpackliste','','92542a1933f2e85eaaf35bac1f835fa6','2025-06-18 07:36:03'),(7,4,NULL,'Liste 3','drei drei',NULL,'2025-06-22 01:11:19'),(8,5,NULL,'Ichebs Packliste','',NULL,'2025-07-05 15:04:43'),(9,6,5,'Testliste','',NULL,'2025-07-13 19:05:45'),(10,7,5,'Ich packe meinen Rucksack','und nehme mit:',NULL,'2025-07-13 19:08:02'),(11,6,NULL,'Noch ein Test','',NULL,'2025-07-14 01:17:56'),(14,6,5,'Hubold','',NULL,'2025-12-04 18:56:12');
/*!40000 ALTER TABLE `packing_lists` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `storage_locations`
--

DROP TABLE IF EXISTS `storage_locations`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `storage_locations` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL COMMENT 'Der Nutzer, der den Ort erstellt hat',
  `parent_id` int(11) DEFAULT NULL COMMENT 'NULL für Ebene 1, verweist auf ID für Ebene 2',
  `name` varchar(100) NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`),
  KEY `parent_id` (`parent_id`),
  CONSTRAINT `fk_location_parent` FOREIGN KEY (`parent_id`) REFERENCES `storage_locations` (`id`) ON DELETE CASCADE,
  CONSTRAINT `fk_location_user` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=34 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `storage_locations`
--

LOCK TABLES `storage_locations` WRITE;
/*!40000 ALTER TABLE `storage_locations` DISABLE KEYS */;
INSERT INTO `storage_locations` VALUES (1,4,NULL,'Garderobe','2025-07-05 17:12:02'),(2,4,1,'Fach #01','2025-07-05 17:12:16'),(3,4,NULL,'Lager','2025-07-05 17:22:49'),(4,4,3,'Regal 5 Fach 2','2025-07-05 17:22:59'),(5,6,NULL,'Garderobe','2025-07-09 17:59:12'),(6,6,5,'Boden','2025-07-09 17:59:18'),(7,6,5,'Regalfach A1','2025-07-13 13:28:04'),(8,6,5,'Regalfach A2','2025-07-13 13:28:08'),(10,6,5,'Regalfach A4','2025-07-13 13:28:20'),(11,6,5,'Regalfach A3','2025-07-13 13:28:31'),(12,6,5,'Regalfach A5','2025-07-13 13:28:35'),(13,6,5,'Regalfach A6','2025-07-13 13:28:38'),(14,6,5,'Regalfach B1','2025-07-13 13:28:44'),(15,6,5,'Regalfach B2','2025-07-13 13:28:48'),(16,6,5,'Regalfach B3','2025-07-13 13:28:51'),(17,6,5,'Regalfach B4','2025-07-13 13:28:55'),(18,6,5,'Regalfach B5','2025-07-13 13:28:59'),(19,6,5,'Regalfach B6','2025-07-13 13:29:02'),(20,6,5,'Regalfach C1','2025-07-13 13:29:09'),(21,6,5,'Regalfach C2','2025-07-13 13:29:15'),(22,6,5,'Regalfach C3','2025-07-13 13:29:18'),(23,6,5,'Regalfach C4','2025-07-13 13:29:22'),(24,6,5,'Regalfach C5','2025-07-13 13:29:25'),(25,6,5,'Regalfach C6','2025-07-13 13:29:29'),(26,6,5,'Regalfach D1','2025-07-13 13:29:34'),(27,6,5,'Regalfach D2','2025-07-13 13:29:37'),(28,6,5,'Regalfach D3','2025-07-13 13:29:40'),(29,6,5,'Regalfach D4','2025-07-13 13:29:43'),(30,6,5,'Regalfach D0','2025-07-13 13:29:48'),(31,6,5,'Regalfach C0','2025-07-13 13:29:53'),(32,6,NULL,'Lagerraum','2025-07-13 13:29:57'),(33,6,5,'Ablage','2025-07-13 13:30:10');
/*!40000 ALTER TABLE `storage_locations` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `user_settings`
--

DROP TABLE IF EXISTS `user_settings`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `user_settings` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `setting_key` varchar(50) NOT NULL,
  `setting_value` varchar(255) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `user_setting_unique` (`user_id`,`setting_key`),
  KEY `user_id` (`user_id`),
  CONSTRAINT `user_settings_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `user_settings`
--

LOCK TABLES `user_settings` WRITE;
/*!40000 ALTER TABLE `user_settings` DISABLE KEYS */;
INSERT INTO `user_settings` VALUES (1,4,'items_per_page','50'),(3,5,'items_per_page','50'),(4,6,'items_per_page','50'),(5,7,'items_per_page','100'),(6,6,'articles_collapse_default','1');
/*!40000 ALTER TABLE `user_settings` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `users`
--

DROP TABLE IF EXISTS `users`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `users` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `username` varchar(50) NOT NULL,
  `password` varchar(255) NOT NULL,
  `household_id` int(11) DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
  PRIMARY KEY (`id`),
  UNIQUE KEY `username` (`username`),
  KEY `household_id` (`household_id`),
  CONSTRAINT `fk_user_household` FOREIGN KEY (`household_id`) REFERENCES `households` (`id`) ON DELETE SET NULL
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `users`
--

LOCK TABLES `users` WRITE;
/*!40000 ALTER TABLE `users` DISABLE KEYS */;
INSERT INTO `users` VALUES (4,'testnutzer','$2y$10$cGJtQL0BJXew/BfoX8GHJObK8.jydTjB7/YAqCe1kJqPZl7VCAHpy',NULL,'2025-06-18 07:26:48'),(5,'Icheb','$2y$10$STYB0XJA5WuO2ywW3lA.quOSq5ZpzsIN/QEHosJP1yEwSp4DhJ/Cq',5,'2025-06-18 09:23:09'),(6,'Daniel','$2y$10$QRE9DymVZGmRIVpq6L1v3e7Vl2PZslk79nIQjQVjDtmX4xb8bcIcS',5,'2025-07-09 09:44:20'),(7,'Tina','$2y$10$WiouureO04mVNHQP565r9./RDrLwF8FZ8PNBsgj4SMuct6v6Egaia',5,'2025-07-13 18:55:50'),(8,'Seska','$2y$10$SBuFDc3L5t9/N10KkWTqz.wVvdNQjSTDlAOTYWLxEqwzxEHyZTgZ2',5,'2025-07-13 19:07:12');
/*!40000 ALTER TABLE `users` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2025-12-05 18:10:10
