-- MariaDB dump 10.19 Distrib 10.11.4-MariaDB, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: hamnet -- ------------------------------------------------------ -- Server version 10.11.4-MariaDB-1~deb12u1 /*!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 `hamnet_site` -- DROP TABLE IF EXISTS `hamnet_site`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `hamnet_site` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(100) NOT NULL, `callsign` varchar(100) NOT NULL, `longitude` double NOT NULL, `latitude` double NOT NULL, `elevation` int(11) NOT NULL, `ground_asl` int(11) NOT NULL, `no_check` int(11) NOT NULL, `radioparam` varchar(200) NOT NULL, `inactive` int(11) NOT NULL, `newCover` tinyint(1) NOT NULL DEFAULT 0, `hasCover` int(1) NOT NULL DEFAULT 0, `comment` text NOT NULL, `maintainer` varchar(200) NOT NULL, `rw_maint` int(11) NOT NULL, `editor` varchar(100) NOT NULL, `edited` datetime NOT NULL, `version` int(11) NOT NULL, `deleted` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `callsign` (`callsign`), KEY `name` (`name`) ) ENGINE=MyISAM AUTO_INCREMENT=4714 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `hamnet_antennafiles` -- DROP TABLE IF EXISTS `hamnet_antennafiles`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `hamnet_antennafiles` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(50) NOT NULL, `file` text NOT NULL, `valid` int(11) NOT NULL, `maintainer` varchar(200) NOT NULL, `rw_maint` int(11) NOT NULL, `editor` varchar(100) NOT NULL, `edited` datetime NOT NULL, `version` int(11) NOT NULL, `deleted` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=126 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `hamnet_as` -- DROP TABLE IF EXISTS `hamnet_as`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `hamnet_as` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(100) NOT NULL, `as_num` int(10) unsigned NOT NULL, `as_root` int(11) NOT NULL DEFAULT 0, `country` varchar(10) NOT NULL, `comment` text NOT NULL, `maintainer` varchar(200) NOT NULL, `rw_maint` int(11) NOT NULL, `dns_add` text NOT NULL, `editor` varchar(100) NOT NULL, `edited` datetime NOT NULL, `version` int(11) NOT NULL, `deleted` int(11) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `as_num` (`as_num`) ) ENGINE=MyISAM AUTO_INCREMENT=1497 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `hamnet_coverage` -- DROP TABLE IF EXISTS `hamnet_coverage`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `hamnet_coverage` ( `id` int(10) NOT NULL AUTO_INCREMENT, `site_id` int(10) NOT NULL, `edited` datetime NOT NULL, `callsign` varchar(10) NOT NULL, `altitude` varchar(10) NOT NULL, `azimuth` varchar(10) NOT NULL, `antennatype` varchar(50) NOT NULL, `gain` varchar(10) NOT NULL, `power` varchar(10) NOT NULL, `cableloss` varchar(10) NOT NULL, `frequency` varchar(10) NOT NULL, `tag` varchar(30) NOT NULL, `north` double NOT NULL, `south` double NOT NULL, `west` double NOT NULL, `east` double NOT NULL, `status` varchar(20) NOT NULL, `predicted` datetime NOT NULL, `version` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=6628 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `hamnet_host` -- DROP TABLE IF EXISTS `hamnet_host`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `hamnet_host` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(100) NOT NULL, `ip` varchar(20) NOT NULL, `rawip` int(10) unsigned NOT NULL, `mac` varchar(20) NOT NULL, `aliases` varchar(400) NOT NULL, `typ` varchar(20) NOT NULL, `radioparam` varchar(200) NOT NULL, `site` varchar(20) NOT NULL, `no_ping` int(11) NOT NULL, `monitor` int(11) NOT NULL DEFAULT 0, `routing` int(11) NOT NULL DEFAULT 0, `comment` text NOT NULL, `maintainer` varchar(200) NOT NULL, `rw_maint` int(11) NOT NULL, `editor` varchar(20) NOT NULL, `edited` datetime NOT NULL, `version` int(11) NOT NULL, `deleted` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `site` (`site`), KEY `rawip` (`rawip`), KEY `ip` (`ip`), KEY `name` (`name`) ) ENGINE=MyISAM AUTO_INCREMENT=22824 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='IP-Adressen (Einzelhosts)'; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `hamnet_subnet` -- DROP TABLE IF EXISTS `hamnet_subnet`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `hamnet_subnet` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `ip` varchar(25) NOT NULL, `begin_ip` int(10) unsigned NOT NULL, `end_ip` int(10) unsigned NOT NULL, `typ` varchar(40) NOT NULL, `as_num` int(10) unsigned NOT NULL, `as_parent` int(10) unsigned NOT NULL, `dhcp_range` varchar(20) NOT NULL, `no_check` int(11) NOT NULL, `radioparam` varchar(200) NOT NULL, `comment` text NOT NULL, `maintainer` varchar(200) NOT NULL, `rw_maint` int(11) NOT NULL, `editor` varchar(100) NOT NULL, `edited` datetime NOT NULL, `version` int(11) NOT NULL, `deleted` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `begin_ip` (`begin_ip`), KEY `end_ip` (`end_ip`), KEY `as_num` (`as_num`), KEY `as_parent` (`as_parent`), KEY `ip` (`ip`) ) ENGINE=MyISAM AUTO_INCREMENT=9429 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `hamnet_edge` -- DROP TABLE IF EXISTS `hamnet_edge`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `hamnet_edge` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `left_site` varchar(80) NOT NULL, `left_host` varchar(80) NOT NULL, `right_site` varchar(80) NOT NULL, `right_host` varchar(80) NOT NULL, `typ` varchar(80) NOT NULL, `radioparam` varchar(200) NOT NULL, `comment` text NOT NULL, `editor` varchar(100) NOT NULL, `edited` datetime NOT NULL, `version` int(11) NOT NULL, `deleted` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `left_site` (`left_site`), KEY `right_site` (`right_site`) ) ENGINE=MyISAM AUTO_INCREMENT=1032 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `hamnet_site_hist` -- DROP TABLE IF EXISTS `hamnet_site_hist`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `hamnet_site_hist` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(100) NOT NULL, `callsign` varchar(100) NOT NULL, `longitude` double NOT NULL, `latitude` double NOT NULL, `elevation` int(11) NOT NULL, `ground_asl` int(11) NOT NULL, `no_check` int(11) NOT NULL, `radioparam` varchar(200) NOT NULL, `inactive` int(11) NOT NULL, `newCover` tinyint(1) NOT NULL DEFAULT 0, `hasCover` tinyint(1) NOT NULL DEFAULT 0, `comment` text NOT NULL, `maintainer` varchar(200) NOT NULL, `rw_maint` int(11) NOT NULL, `editor` varchar(100) NOT NULL, `edited` datetime NOT NULL, `version` int(11) NOT NULL, `deleted` int(11) NOT NULL, KEY `id` (`id`), KEY `callsign` (`callsign`), KEY `name` (`name`) ) ENGINE=MyISAM AUTO_INCREMENT=4714 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `hamnet_antennafiles_hist` -- DROP TABLE IF EXISTS `hamnet_antennafiles_hist`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `hamnet_antennafiles_hist` ( `id` int(11) NOT NULL, `name` varchar(50) NOT NULL, `file` text NOT NULL, `valid` tinyint(4) NOT NULL, `maintainer` varchar(200) NOT NULL, `rw_maint` int(11) NOT NULL, `editor` varchar(100) NOT NULL, `edited` datetime NOT NULL, `version` int(11) NOT NULL, `deleted` int(11) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `hamnet_as_hist` -- DROP TABLE IF EXISTS `hamnet_as_hist`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `hamnet_as_hist` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(100) NOT NULL, `as_num` int(10) unsigned NOT NULL, `as_root` int(11) NOT NULL DEFAULT 0, `country` varchar(10) NOT NULL, `comment` text NOT NULL, `maintainer` varchar(200) NOT NULL, `rw_maint` int(11) NOT NULL, `dns_add` text NOT NULL, `editor` varchar(100) NOT NULL, `edited` datetime NOT NULL, `version` int(11) NOT NULL, `deleted` int(11) NOT NULL, KEY `id` (`id`), KEY `as_num` (`as_num`) ) ENGINE=MyISAM AUTO_INCREMENT=1497 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `hamnet_coverage_hist` -- DROP TABLE IF EXISTS `hamnet_coverage_hist`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `hamnet_coverage_hist` ( `id` int(11) NOT NULL, `site_id` int(10) NOT NULL, `edited` datetime NOT NULL, `callsign` varchar(10) NOT NULL, `altitude` varchar(10) NOT NULL, `azimuth` varchar(10) NOT NULL, `antennatype` varchar(50) NOT NULL, `gain` varchar(10) NOT NULL, `power` varchar(10) NOT NULL, `cableloss` varchar(10) NOT NULL, `frequency` varchar(10) NOT NULL, `tag` varchar(30) NOT NULL, `north` double NOT NULL, `south` double NOT NULL, `west` double NOT NULL, `east` double NOT NULL, `status` varchar(20) NOT NULL, `predicted` datetime NOT NULL, `version` int(11) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `hamnet_host_hist` -- DROP TABLE IF EXISTS `hamnet_host_hist`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `hamnet_host_hist` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(100) NOT NULL, `ip` varchar(20) NOT NULL, `rawip` int(10) unsigned NOT NULL, `mac` varchar(20) NOT NULL, `aliases` varchar(400) NOT NULL, `typ` varchar(20) NOT NULL, `radioparam` varchar(200) NOT NULL, `site` varchar(20) NOT NULL, `no_ping` int(11) NOT NULL, `monitor` int(11) NOT NULL DEFAULT 0, `routing` int(11) NOT NULL DEFAULT 0, `comment` text NOT NULL, `maintainer` varchar(200) NOT NULL, `rw_maint` int(11) NOT NULL, `editor` varchar(20) NOT NULL, `edited` datetime NOT NULL, `version` int(11) NOT NULL, `deleted` int(11) NOT NULL, KEY `site` (`site`), KEY `rawip` (`rawip`), KEY `ip` (`ip`), KEY `name` (`name`), KEY `id` (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=22824 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='IP-Adressen (Einzelhosts)'; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `hamnet_subnet_hist` -- DROP TABLE IF EXISTS `hamnet_subnet_hist`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `hamnet_subnet_hist` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `ip` varchar(25) NOT NULL, `begin_ip` int(10) unsigned NOT NULL, `end_ip` int(10) unsigned NOT NULL, `typ` varchar(40) NOT NULL, `as_num` int(10) unsigned NOT NULL, `as_parent` int(10) unsigned NOT NULL, `dhcp_range` varchar(20) NOT NULL, `no_check` int(11) NOT NULL, `radioparam` varchar(200) NOT NULL, `comment` text NOT NULL, `maintainer` varchar(200) NOT NULL, `rw_maint` int(11) NOT NULL, `editor` varchar(100) NOT NULL, `edited` datetime NOT NULL, `version` int(11) NOT NULL, `deleted` int(11) NOT NULL, KEY `begin_ip` (`begin_ip`), KEY `end_ip` (`end_ip`), KEY `as_num` (`as_num`), KEY `as_parent` (`as_parent`), KEY `ip` (`ip`), KEY `id` (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=9429 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `hamnet_edge_hist` -- DROP TABLE IF EXISTS `hamnet_edge_hist`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `hamnet_edge_hist` ( `id` int(10) unsigned NOT NULL, `left_site` varchar(80) NOT NULL, `left_host` varchar(80) NOT NULL, `right_site` varchar(80) NOT NULL, `right_host` varchar(80) NOT NULL, `typ` varchar(80) NOT NULL, `radioparam` varchar(200) NOT NULL, `comment` text NOT NULL, `editor` varchar(100) NOT NULL, `edited` datetime NOT NULL, `version` int(11) NOT NULL, `deleted` int(11) NOT NULL, KEY `id` (`id`), KEY `right_site` (`right_site`), KEY `left_site` (`left_site`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `hamnet_check` -- DROP TABLE IF EXISTS `hamnet_check`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `hamnet_check` ( `ip` varchar(20) NOT NULL, `agent` varchar(20) NOT NULL, `service` varchar(20) NOT NULL, `ts` datetime NOT NULL, `since` datetime NOT NULL, `status` int(11) NOT NULL, `value` float NOT NULL, `message` varchar(200) NOT NULL, PRIMARY KEY (`ip`,`agent`,`service`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Status-Checks for live-network'; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `hamnet_maintainer` -- DROP TABLE IF EXISTS `hamnet_maintainer`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `hamnet_maintainer` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `callsign` varchar(100) NOT NULL, `fullname` varchar(100) NOT NULL, `email` varchar(100) NOT NULL, `passwd` varchar(100) NOT NULL, `permissions` varchar(200) NOT NULL, `comment` text NOT NULL, `call_public` int(11) NOT NULL DEFAULT 0, `dp_accept` int(11) NOT NULL DEFAULT 0, `last_login` datetime NOT NULL, `editor` varchar(100) NOT NULL, `edited` datetime NOT NULL, `version` int(11) NOT NULL, `deleted` int(11) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `callsign` (`callsign`) ) ENGINE=MyISAM AUTO_INCREMENT=567 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `hamnet_maintainer_hist` -- DROP TABLE IF EXISTS `hamnet_maintainer_hist`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `hamnet_maintainer_hist` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `callsign` varchar(100) NOT NULL, `fullname` varchar(100) NOT NULL, `email` varchar(100) NOT NULL, `passwd` varchar(100) NOT NULL, `permissions` varchar(200) NOT NULL, `comment` text NOT NULL, `call_public` int(11) NOT NULL DEFAULT 0, `dp_accept` int(11) NOT NULL DEFAULT 0, `last_login` datetime NOT NULL, `editor` varchar(100) NOT NULL, `edited` datetime NOT NULL, `version` int(11) NOT NULL, `deleted` int(11) NOT NULL, KEY `callsign` (`callsign`), KEY `id` (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=567 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `hamnet_session` -- DROP TABLE IF EXISTS `hamnet_session`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `hamnet_session` ( `callsign` varchar(20) NOT NULL, `token` varchar(100) NOT NULL, `begin` datetime NOT NULL, `expires` datetime NOT NULL, `last_act` datetime NOT NULL, `is_valid` int(11) NOT NULL, `ip` varchar(20) NOT NULL, `last_ip` varchar(20) NOT NULL, PRIMARY KEY (`token`), KEY `callsign` (`callsign`), KEY `last_act` (`last_act`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Running sessions on web interface'; /*!40101 SET character_set_client = @saved_cs_client */; /*!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 2024-04-25 13:34:40