forked from SPuerBRead/Bridge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bridge.sql
74 lines (64 loc) · 1.92 KB
/
bridge.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
drop database if exists bridge;
create database bridge;
use bridge;
SET FOREIGN_KEY_CHECKS=0;
DROP TABLE IF EXISTS `dnslog`;
CREATE TABLE `dnslog` (
`id` varchar(36) DEFAULT NULL,
`host` text DEFAULT NULL,
`type` varchar(32) DEFAULT NULL,
`ip` text DEFAULT NULL,
`time` TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
`logid` int DEFAULT NULL
) CHARSET=utf8;
DROP TABLE IF EXISTS `user`;
CREATE TABLE `user` (
`userid` varchar(36) DEFAULT NULL,
`username` varchar(32) DEFAULT NULL,
`password` text DEFAULT NULL,
`logid` int DEFAULT NULL,
`apikey` text DEFAULT NULL
) CHARSET=utf8;
DROP TABLE IF EXISTS `weblog`;
CREATE TABLE `weblog` (
`id` varchar(36) DEFAULT NULL,
`host` text DEFAULT NULL,
`ip` varchar(32) DEFAULT NULL,
`method` varchar(32) DEFAULT NULL,
`version` varchar(32) DEFAULT NULL,
`path` text DEFAULT NULL,
`header` text DEFAULT NULL,
`params` text DEFAULT NULL,
`data` text DEFAULT NULL,
`time` TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
`logid` int DEFAULT NULL
) CHARSET=utf8;
DROP TABLE IF EXISTS `dns_record_a`;
CREATE TABLE `dns_record_a` (
`id` varchar(36) DEFAULT NULL,
`subdomain` text DEFAULT NULL,
`ip` varchar(32) DEFAULT NULL,
`time` TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
`logid` int DEFAULT NULL
) CHARSET=utf8;
DROP TABLE IF EXISTS `dns_record_rebind`;
CREATE TABLE `dns_record_rebind` (
`id` varchar(36) DEFAULT NULL,
`subdomain` text DEFAULT NULL,
`ip1` varchar(32) DEFAULT NULL,
`ip2` varchar(32) DEFAULT NULL,
`time` TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
`logid` int DEFAULT NULL
) CHARSET=utf8;
DROP TABLE IF EXISTS `response`;
CREATE TABLE `response` (
`id` varchar(36) DEFAULT NULL,
`subdomain` text DEFAULT NULL,
`responseType` text DEFAULT NULL,
`statusCode` int DEFAULT NULL,
`responsebody` text DEFAULT NULL,
`headers` text DEFAULT NULL,
`redirectURL` text DEFAULT NULL,
`time` TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
`logid` int DEFAULT NULL
) CHARSET=utf8;