Skip to content

Commit 0732b8f

Browse files
committed
Update db-structure.sql
1 parent b964c6b commit 0732b8f

File tree

1 file changed

+26
-25
lines changed

1 file changed

+26
-25
lines changed

db-structure.sql

Lines changed: 26 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
-- MySQL dump 10.13 Distrib 8.0.21, for Win64 (x86_64)
1+
-- MySQL dump 10.13 Distrib 8.0.24, for Win64 (x86_64)
22
--
3-
-- Host: 192.168.1.30 Database: HomeServerPortal
3+
-- Host: 192.168.1.30 Database: homeserverportal
44
-- ------------------------------------------------------
5-
-- Server version 5.7.31-0ubuntu0.18.04.1
5+
-- Server version 8.0.23-0ubuntu0.20.04.1
66

77
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
88
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
@@ -23,14 +23,14 @@ DROP TABLE IF EXISTS `devices`;
2323
/*!40101 SET @saved_cs_client = @@character_set_client */;
2424
/*!50503 SET character_set_client = utf8mb4 */;
2525
CREATE TABLE `devices` (
26-
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
26+
`id` int unsigned NOT NULL AUTO_INCREMENT,
2727
`name` varchar(255) NOT NULL,
2828
`ip` varchar(15) NOT NULL,
2929
`mac` varchar(18) DEFAULT NULL,
3030
`shutdown_method` enum('none','rpc') DEFAULT 'none',
3131
`shutdown_user` varchar(255) DEFAULT NULL,
3232
`shutdown_password` varchar(255) DEFAULT NULL,
33-
`show_on_dashboard` tinyint(3) unsigned DEFAULT '1',
33+
`show_on_dashboard` tinyint unsigned DEFAULT '1',
3434
PRIMARY KEY (`id`)
3535
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
3636
/*!40101 SET character_set_client = @saved_cs_client */;
@@ -43,17 +43,17 @@ DROP TABLE IF EXISTS `menu_items`;
4343
/*!40101 SET @saved_cs_client = @@character_set_client */;
4444
/*!50503 SET character_set_client = utf8mb4 */;
4545
CREATE TABLE `menu_items` (
46-
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
47-
`menu_id` int(10) unsigned NOT NULL,
48-
`parent_id` int(10) unsigned NOT NULL DEFAULT '0',
46+
`id` int unsigned NOT NULL AUTO_INCREMENT,
47+
`menu_id` int unsigned NOT NULL,
48+
`parent_id` int unsigned NOT NULL DEFAULT '0',
4949
`name` varchar(255) NOT NULL,
5050
`url` varchar(255) NOT NULL,
51-
`icon` varchar(255) DEFAULT NULL,
52-
`device_id` int(10) unsigned DEFAULT NULL,
51+
`device_id` int unsigned DEFAULT NULL,
52+
`extension` varchar(20) DEFAULT NULL,
5353
PRIMARY KEY (`id`),
5454
KEY `Device` (`device_id`),
5555
KEY `Menu` (`menu_id`,`parent_id`)
56-
) ENGINE=InnoDB AUTO_INCREMENT=48 DEFAULT CHARSET=utf8;
56+
) ENGINE=InnoDB AUTO_INCREMENT=62 DEFAULT CHARSET=utf8;
5757
/*!40101 SET character_set_client = @saved_cs_client */;
5858

5959
--
@@ -64,7 +64,7 @@ DROP TABLE IF EXISTS `menus`;
6464
/*!40101 SET @saved_cs_client = @@character_set_client */;
6565
/*!50503 SET character_set_client = utf8mb4 */;
6666
CREATE TABLE `menus` (
67-
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
67+
`id` int unsigned NOT NULL AUTO_INCREMENT,
6868
`name` varchar(255) DEFAULT NULL,
6969
PRIMARY KEY (`id`),
7070
UNIQUE KEY `id_UNIQUE` (`id`)
@@ -79,7 +79,7 @@ DROP TABLE IF EXISTS `snmp_hosts`;
7979
/*!40101 SET @saved_cs_client = @@character_set_client */;
8080
/*!50503 SET character_set_client = utf8mb4 */;
8181
CREATE TABLE `snmp_hosts` (
82-
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
82+
`id` int unsigned NOT NULL AUTO_INCREMENT,
8383
`ip` varchar(15) NOT NULL,
8484
`name` varchar(255) NOT NULL,
8585
`version` varchar(5) NOT NULL,
@@ -99,16 +99,16 @@ DROP TABLE IF EXISTS `snmp_records`;
9999
/*!40101 SET @saved_cs_client = @@character_set_client */;
100100
/*!50503 SET character_set_client = utf8mb4 */;
101101
CREATE TABLE `snmp_records` (
102-
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
103-
`snmp_host_id` int(11) NOT NULL,
102+
`id` int unsigned NOT NULL AUTO_INCREMENT,
103+
`snmp_host_id` int NOT NULL,
104104
`label` varchar(255) DEFAULT NULL,
105105
`label_oid` varchar(255) DEFAULT NULL,
106106
`value_oid` varchar(255) DEFAULT NULL,
107-
`show_dashboard` tinyint(3) unsigned DEFAULT '1',
108-
`group_value` int(10) unsigned DEFAULT NULL,
109-
`position` int(10) unsigned DEFAULT NULL,
110-
`divisor` int(10) unsigned DEFAULT NULL,
111-
`divisor_decimals` tinyint(3) unsigned DEFAULT NULL,
107+
`show_dashboard` tinyint unsigned DEFAULT '1',
108+
`group_value` int unsigned DEFAULT NULL,
109+
`position` int unsigned DEFAULT NULL,
110+
`divisor` int unsigned DEFAULT NULL,
111+
`divisor_decimals` tinyint unsigned DEFAULT NULL,
112112
`value_unit` varchar(255) DEFAULT NULL,
113113
PRIMARY KEY (`id`),
114114
UNIQUE KEY `id_UNIQUE` (`id`)
@@ -123,7 +123,7 @@ DROP TABLE IF EXISTS `speedtest`;
123123
/*!40101 SET @saved_cs_client = @@character_set_client */;
124124
/*!50503 SET character_set_client = utf8mb4 */;
125125
CREATE TABLE `speedtest` (
126-
`id` int(11) NOT NULL AUTO_INCREMENT,
126+
`id` int NOT NULL AUTO_INCREMENT,
127127
`timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
128128
`ip` text NOT NULL,
129129
`ispinfo` text,
@@ -136,7 +136,7 @@ CREATE TABLE `speedtest` (
136136
`jitter` text,
137137
`log` longtext,
138138
PRIMARY KEY (`id`)
139-
) ENGINE=InnoDB AUTO_INCREMENT=216 DEFAULT CHARSET=utf8;
139+
) ENGINE=InnoDB AUTO_INCREMENT=223 DEFAULT CHARSET=utf8;
140140
/*!40101 SET character_set_client = @saved_cs_client */;
141141

142142
--
@@ -147,15 +147,16 @@ DROP TABLE IF EXISTS `users`;
147147
/*!40101 SET @saved_cs_client = @@character_set_client */;
148148
/*!50503 SET character_set_client = utf8mb4 */;
149149
CREATE TABLE `users` (
150-
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
150+
`id` int unsigned NOT NULL AUTO_INCREMENT,
151151
`username` varchar(255) NOT NULL,
152152
`password` varchar(255) NOT NULL,
153153
`last_login` datetime DEFAULT NULL,
154154
`email` varchar(255) DEFAULT NULL,
155+
`webauthn` text,
155156
PRIMARY KEY (`id`),
156157
UNIQUE KEY `id_UNIQUE` (`id`),
157158
UNIQUE KEY `username_UNIQUE` (`username`)
158-
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8;
159+
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8;
159160
/*!40101 SET character_set_client = @saved_cs_client */;
160161
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
161162

@@ -167,4 +168,4 @@ CREATE TABLE `users` (
167168
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
168169
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
169170

170-
-- Dump completed on 2020-09-18 16:01:44
171+
-- Dump completed on 2021-04-29 9:29:27

0 commit comments

Comments
 (0)