forked from tko22/flask-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
seek.sql
130 lines (100 loc) · 3.77 KB
/
seek.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
# ************************************************************
# Sequel Pro SQL dump
# Version
#
# https://www.sequelpro.com/
# https://github.com/sequelpro/sequelpro
#
# Host: 106.13.140.135 (MySQL 5.5.5-10.1.38-MariaDB-0+deb9u1)
# Database: neuq_robot
# Generation Time: 2019-05-04 06:33:03 +0000
# ************************************************************
/*!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 utf8 */;
SET NAMES utf8mb4;
/*!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 */;
# Dump of table robot_data
# ------------------------------------------------------------
DROP TABLE IF EXISTS `robot_data`;
CREATE TABLE `robot_data` (
`create_time` datetime NOT NULL,
`update_time` datetime DEFAULT NULL,
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`robot_id` varchar(255) NOT NULL,
`position_x` varchar(255) DEFAULT NULL,
`position_y` varchar(255) DEFAULT NULL,
`position_z` varchar(255) DEFAULT NULL,
`velocity_x` varchar(255) DEFAULT NULL,
`velocity_y` varchar(255) DEFAULT NULL,
`velocity_z` varchar(255) DEFAULT NULL,
`direction_x` varchar(255) DEFAULT NULL,
`direction_y` varchar(255) DEFAULT NULL,
`direction_z` varchar(255) DEFAULT NULL,
`battery` int(11) DEFAULT NULL,
`temperature` int(11) DEFAULT NULL,
`ip` varchar(16) DEFAULT NULL,
`data` text,
PRIMARY KEY (`id`),
UNIQUE KEY `id` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
# Dump of table robot_email
# ------------------------------------------------------------
DROP TABLE IF EXISTS `robot_email`;
CREATE TABLE `robot_email` (
`create_time` datetime NOT NULL,
`update_time` datetime DEFAULT NULL,
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`email` varchar(255) NOT NULL,
`user_id` bigint(20) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `id` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
# Dump of table robot_robot
# ------------------------------------------------------------
DROP TABLE IF EXISTS `robot_robot`;
CREATE TABLE `robot_robot` (
`create_time` datetime NOT NULL,
`update_time` datetime DEFAULT NULL,
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`description` text,
`name` varchar(100) DEFAULT NULL,
`owner_id` bigint(20) NOT NULL,
`type` varchar(4) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `id` (`id`),
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
# Dump of table robot_user
# ------------------------------------------------------------
DROP TABLE IF EXISTS `robot_user`;
CREATE TABLE `robot_user` (
`create_time` datetime NOT NULL,
`update_time` datetime DEFAULT NULL,
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`email` varchar(100) NOT NULL,
`grade` smallint(6) NOT NULL,
`admin` tinyint(1) NOT NULL,
`status` tinyint(1) NOT NULL,
`password` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `id` (`id`),
UNIQUE KEY `email` (`email`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
# Dump of table test
# ------------------------------------------------------------
DROP TABLE IF EXISTS `test`;
CREATE TABLE `test` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_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 */;