/*!40000 ALTER TABLE `accounts` ENABLE KEYS */;
UNLOCK TABLES;
+--
+-- Table structure for table `addresses`
+--
+
+DROP TABLE IF EXISTS `addresses`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `addresses` (
+ `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
+ `created_at` timestamp NULL DEFAULT NULL,
+ `updated_at` timestamp NULL DEFAULT NULL,
+ `addresstype_scope` int(11) NOT NULL,
+ `name` varchar(255) NOT NULL,
+ `info` varchar(255) DEFAULT NULL,
+ `priority` int(11) NOT NULL,
+ `owner_id` bigint(20) unsigned DEFAULT NULL,
+ PRIMARY KEY (`id`),
+ KEY `addresses_owner_id_foreign` (`owner_id`),
+ CONSTRAINT `addresses_owner_id_foreign` FOREIGN KEY (`owner_id`) REFERENCES `users` (`id`)
+) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Dumping data for table `addresses`
+--
+
+LOCK TABLES `addresses` WRITE;
+/*!40000 ALTER TABLE `addresses` DISABLE KEYS */;
+/*!40000 ALTER TABLE `addresses` ENABLE KEYS */;
+UNLOCK TABLES;
+
--
-- Table structure for table `cache`
--
KEY `files_module_id_foreign` (`module_id`),
CONSTRAINT `files_module_id_foreign` FOREIGN KEY (`module_id`) REFERENCES `modules` (`id`),
CONSTRAINT `files_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
+) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
/*!40000 ALTER TABLE `jobs` ENABLE KEYS */;
UNLOCK TABLES;
+--
+-- Table structure for table `locations`
+--
+
+DROP TABLE IF EXISTS `locations`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `locations` (
+ `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
+ `created_at` timestamp NULL DEFAULT NULL,
+ `updated_at` timestamp NULL DEFAULT NULL,
+ `country` varchar(5) NOT NULL,
+ `zip` varchar(15) NOT NULL,
+ `city` varchar(128) NOT NULL,
+ `street` varchar(128) NOT NULL,
+ `additional` varchar(255) DEFAULT NULL,
+ `info` varchar(255) DEFAULT NULL,
+ `priority` int(11) NOT NULL,
+ `owner_id` bigint(20) unsigned DEFAULT NULL,
+ PRIMARY KEY (`id`),
+ KEY `locations_owner_id_foreign` (`owner_id`),
+ CONSTRAINT `locations_owner_id_foreign` FOREIGN KEY (`owner_id`) REFERENCES `users` (`id`)
+) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Dumping data for table `locations`
+--
+
+LOCK TABLES `locations` WRITE;
+/*!40000 ALTER TABLE `locations` DISABLE KEYS */;
+/*!40000 ALTER TABLE `locations` ENABLE KEYS */;
+UNLOCK TABLES;
+
--
-- Table structure for table `mandators`
--
`section` varchar(64) NOT NULL,
`link` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
+) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
(7,NULL,NULL,'notes','Notes','bi bi-card-checklist','main','/note-index'),
(8,NULL,NULL,'terms','Terms','bi bi-calendar-date','main','/term-index'),
(9,NULL,NULL,'pages','Pages','bi bi-journals','main','/page-index'),
-(10,NULL,NULL,'exports','Exports','bi bi-file-earmark-arrow-down','main','/export-index');
+(10,NULL,NULL,'exports','Exports','bi bi-file-earmark-arrow-down','main','/export-index'),
+(12,NULL,'2024-11-30 16:31:30','addresses','Addresses','bi bi-at','main','/address-index'),
+(13,NULL,NULL,'locations','Locations','bi bi-mailbox','main','/location-index');
/*!40000 ALTER TABLE `menuitems` ENABLE KEYS */;
UNLOCK TABLES;
KEY `menuitems_roles_role_id_foreign` (`role_id`),
CONSTRAINT `menuitems_roles_menuitem_id_foreign` FOREIGN KEY (`menuitem_id`) REFERENCES `menuitems` (`id`),
CONSTRAINT `menuitems_roles_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`)
-) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
+) ENGINE=InnoDB AUTO_INCREMENT=60 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
LOCK TABLES `menuitems_roles` WRITE;
/*!40000 ALTER TABLE `menuitems_roles` DISABLE KEYS */;
INSERT INTO `menuitems_roles` VALUES
-(6,NULL,NULL,10,7,1),
-(7,NULL,NULL,20,6,1),
-(8,NULL,NULL,30,8,1),
-(9,NULL,NULL,40,9,1),
-(10,NULL,NULL,50,10,1),
-(11,NULL,NULL,60,1,1),
-(12,NULL,NULL,70,2,1),
-(13,NULL,NULL,80,3,1),
-(14,NULL,NULL,90,4,1),
-(15,NULL,NULL,100,5,1);
+(48,NULL,NULL,10,13,1),
+(49,NULL,NULL,20,12,1),
+(50,NULL,NULL,30,7,1),
+(51,NULL,NULL,40,6,1),
+(52,NULL,NULL,50,8,1),
+(53,NULL,NULL,60,9,1),
+(54,NULL,NULL,70,10,1),
+(55,NULL,NULL,80,1,1),
+(56,NULL,NULL,90,2,1),
+(57,NULL,NULL,100,3,1),
+(58,NULL,NULL,110,4,1),
+(59,NULL,NULL,120,5,1);
/*!40000 ALTER TABLE `menuitems_roles` ENABLE KEYS */;
UNLOCK TABLES;
`migration` varchar(255) NOT NULL,
`batch` int(11) NOT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
+) ENGINE=InnoDB AUTO_INCREMENT=26 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
(14,'2024_04_21_092103_create_pages_table',2),
(15,'2024_05_28_174935_create_mandators_table',2),
(16,'2024_05_28_190658_create_accounts_table',2),
-(17,'2024_05_28_204959_create_transactions_table',2);
+(17,'2024_05_28_204959_create_transactions_table',2),
+(24,'2024_11_26_075255_create_addresses_table',3),
+(25,'2024_11_30_211027_create_locations_table',3);
/*!40000 ALTER TABLE `migrations` ENABLE KEYS */;
UNLOCK TABLES;
`name` varchar(64) NOT NULL,
`tablename` varchar(64) NOT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
+) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
(9,NULL,NULL,'Files','filess'),
(10,NULL,NULL,'Term','terms'),
(11,NULL,NULL,'Page','pages'),
-(12,NULL,NULL,'Exports','exportss');
+(12,NULL,NULL,'Exports','exportss'),
+(13,NULL,NULL,'Email','emails'),
+(14,NULL,NULL,'Address','addresss'),
+(15,NULL,NULL,'Location','locations');
/*!40000 ALTER TABLE `modules` ENABLE KEYS */;
UNLOCK TABLES;
CONSTRAINT `notes_group_id_foreign` FOREIGN KEY (`group_id`) REFERENCES `groups` (`id`),
CONSTRAINT `notes_module_id_foreign` FOREIGN KEY (`module_id`) REFERENCES `modules` (`id`),
CONSTRAINT `notes_owner_id_foreign` FOREIGN KEY (`owner_id`) REFERENCES `users` (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
+) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
LOCK TABLES `sessions` WRITE;
/*!40000 ALTER TABLE `sessions` DISABLE KEYS */;
INSERT INTO `sessions` VALUES
-('v8Mj6lA9k1QcVxohYaMp363KNWWjSPL4HGgcL3Wk',3,'127.0.0.1','Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0','YTo2OntzOjY6Il90b2tlbiI7czo0MDoidVZ0VVRCSm04VnVydU5JQ0NUQ1R2ek1xUU5aNmNVeDVrMEdJaHhLQSI7czo5OiJfcHJldmlvdXMiO2E6MTp7czozOiJ1cmwiO3M6MzU6Imh0dHA6Ly9vbzRmLnRlc3QvcGFnZS1zaG93bWVudS9tYWluIjt9czo2OiJfZmxhc2giO2E6Mjp7czozOiJvbGQiO2E6MDp7fXM6MzoibmV3IjthOjA6e319czozOiJ1cmwiO2E6MTp7czo4OiJpbnRlbmRlZCI7czozNToiaHR0cDovL29vNGYudGVzdC9tZW51aXRlbS1tZW51X21haW4iO31zOjg6InVzZXJOYW1lIjtzOjI6IndrIjtzOjUwOiJsb2dpbl93ZWJfNTliYTM2YWRkYzJiMmY5NDAxNTgwZjAxNGM3ZjU4ZWE0ZTMwOTg5ZCI7aTozO30=',1731855752);
+('IVlT4gHZgad1484HAH6LsGJf80aj4GvawbQvrbU9',3,'127.0.0.1','Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0','YTo2OntzOjY6Il90b2tlbiI7czo0MDoiMHoycmM3c0xUbFN6N0s3a05YOEtnbVVqVnNhMXJsczRNZkYxeUhBbCI7czozOiJ1cmwiO2E6MTp7czo4OiJpbnRlbmRlZCI7czozNToiaHR0cDovL29vNGYudGVzdC9tZW51aXRlbS1tZW51X21haW4iO31zOjk6Il9wcmV2aW91cyI7YToxOntzOjM6InVybCI7czozMToiaHR0cDovL29vNGYudGVzdC9tZW51aXRlbS1pbmRleCI7fXM6NjoiX2ZsYXNoIjthOjI6e3M6Mzoib2xkIjthOjA6e31zOjM6Im5ldyI7YTowOnt9fXM6NTA6ImxvZ2luX3dlYl81OWJhMzZhZGRjMmIyZjk0MDE1ODBmMDE0YzdmNThlYTRlMzA5ODlkIjtpOjM7czo4OiJ1c2VyTmFtZSI7czoyOiJ3ayI7fQ==',1733069094);
/*!40000 ALTER TABLE `sessions` ENABLE KEYS */;
UNLOCK TABLES;
(1204,NULL,NULL,'localization','Italian (Italy)',40,'it_IT',NULL,NULL),
(1301,NULL,NULL,'task','description',10,'D',NULL,NULL),
(1302,NULL,NULL,'task','snaketext',20,'S',NULL,NULL),
-(1303,NULL,NULL,'task','cloze',30,'C',NULL,NULL);
+(1303,NULL,NULL,'task','cloze',30,'C',NULL,NULL),
+(1321,NULL,NULL,'addresstype','Email',10,'E',NULL,NULL),
+(1322,NULL,NULL,'addresstype','Phone',20,'P',NULL,NULL);
/*!40000 ALTER TABLE `sproperties` ENABLE KEYS */;
UNLOCK TABLES;
PRIMARY KEY (`id`),
KEY `terms_owner_id_foreign` (`owner_id`),
CONSTRAINT `terms_owner_id_foreign` FOREIGN KEY (`owner_id`) REFERENCES `users` (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
+) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
INSERT INTO `users` VALUES
(1,'Administrator','administrator@example.com',NULL,'$2y$12$I.nWufXEZywFy0SGnHZZXefcl7/87ujg6OUNc.LMlrZA..ezt6gXy',NULL,NULL,NULL,1,'en_GB','','2024-11-17 01:52:00',NULL,NULL),
(2,'Guest','guest@example.com',NULL,'$2y$12$XyHpz0V2rLlUywErJohUReOTgbLI709eezVgM7173tJRa9I53YrZq',NULL,NULL,NULL,4,'en_GB',NULL,NULL,NULL,NULL),
-(3,'wk','wk@hamatoma.de',NULL,'$2y$12$4iYh2pgnWxxQDjVrwTw5M.yZLjNj6mBsR20MYsfZnhu.07c8RamH6',NULL,'2024-11-17 13:37:49','2024-11-17 13:37:57',1,'en_GB','=UQAHOH,on964uhy','2024-12-17 01:52:00',NULL,NULL);
+(3,'wk','wk@hamatoma.de',NULL,'$2y$12$4iYh2pgnWxxQDjVrwTw5M.yZLjNj6mBsR20MYsfZnhu.07c8RamH6',NULL,'2024-11-17 13:37:49','2024-11-17 13:37:57',1,'en_GB','IRU,QOHigubo,796','2024-12-31 06:00:00',NULL,NULL);
/*!40000 ALTER TABLE `users` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
--- Dump completed on 2024-11-17 17:55:13
+-- Dump completed on 2024-12-01 17:19:58