forked from m0sway/Yosakura
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtable.sql
executable file
·122 lines (103 loc) · 5.57 KB
/
table.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
CREATE TABLE `user` (
`id` tinyint(4) NOT NULL AUTO_INCREMENT,
`username` varchar(16) NOT NULL,
`password` varchar(64) NOT NULL,
`nikeName` varchar(32) NOT NULL,
`createTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
`updateTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `username` (`username`) USING BTREE,
UNIQUE KEY `nikename` (`nikename`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `task` (
`id` int NOT NULL AUTO_INCREMENT,
`taskName` varchar(32) NOT NULL,
`domain` varchar(32) NOT NULL,
`user` varchar(32) NOT NULL,
`note` text,
`createTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `domain` (`domain`) USING BTREE
)ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `domain` (
`id` int NOT NULL AUTO_INCREMENT,
`domain` varchar(32) NOT NULL,
`type` varchar(16) NOT NULL,
`icon_hash` varchar(32),
`createTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `domain` (`domain`) USING BTREE
)ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `whois` (
`id` int NOT NULL AUTO_INCREMENT,
`domain` varchar(32) NOT NULL,
`whois` text NOT NULL,
`createTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `domain` (`domain`) USING BTREE
)ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `subdomain` (
`id` int NOT NULL AUTO_INCREMENT,
`domain` varchar(32) NOT NULL,
`subdomain` varchar(64) NOT NULL,
`type` varchar(16) NOT NULL,
`cdn` bool DEFAULT true,
`ip` varchar(16) DEFAULT 'wait',
`createTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `domain` (`subdomain`) USING BTREE
)ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `domainrecord` (
`id` int NOT NULL AUTO_INCREMENT,
`domain` varchar(32) NOT NULL,
`whois` bool DEFAULT false,
`icon` bool DEFAULT false,
`subdomain` bool DEFAULT false,
`cdn` bool DEFAULT false,
`ipcheck` bool DEFAULT false,
`ipscan` bool DEFAULT false,
`finger` bool DEFAULT false,
`siteDirectory` bool DEFAULT false,
`workStatus` bool DEFAULT true,
`createTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `domain` (`domain`) USING BTREE
)ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `url` (
`id` int NOT NULL AUTO_INCREMENT,
`domain` varchar(32) NOT NULL,
`url` varchar(64) NOT NULL,
`type` varchar(16) NOT NULL,
`finger` varchar(256) DEFAULT 'wait',
`title` varchar(256) DEFAULT 'wait',
`createTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `domain` (`url`) USING BTREE
)ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `icon` (
`id` int NOT NULL AUTO_INCREMENT,
`domain` varchar(32) NOT NULL,
`icon` text NOT NULL,
`createTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `domain` (`domain`) USING BTREE
)ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `ip` (
`id` int NOT NULL AUTO_INCREMENT,
`ip` varchar(16) NOT NULL,
`domain` varchar(32) NOT NULL,
`port` varchar(256) DEFAULT 'wait',
`createTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `ip` (`ip`) USING BTREE
)ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `ipRe` (
`id` int NOT NULL AUTO_INCREMENT,
`domain` varchar(32) NOT NULL,
`ipRe` TEXT,
`ipSe` TEXT,
`createTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `ip` (`domain`) USING BTREE
)ENGINE=InnoDB DEFAULT CHARSET=utf8;
INSERT INTO user(username,password,nikeName) values("m0sway","31323334353637383966d207c908e2fc24c807734b54b81946","陌生");