-
Notifications
You must be signed in to change notification settings - Fork 10
/
database.txt
37 lines (31 loc) · 937 Bytes
/
database.txt
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
CREATE DATABASE covid;
USE covid;
CREATE TABLE history (
ds datetime NOT NULL,
confirm int(11) DEFAULT NULL,
confirm_add int(11) DEFAULT NULL,
suspect int(11) DEFAULT NULL,
suspect_add int(11) DEFAULT NULL,
heal int(11) DEFAULT NULL,
heal_add int(11) DEFAULT NULL,
dead int(11) DEFAULT NULL,
dead_add int(11) DEFAULT NULL,
PRIMARY KEY(ds) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE details(
id int(11) NOT NULL AUTO_INCREMENT,
update_time datetime DEFAULT NULL,
province VARCHAR(50) DEFAULT NULL,
city VARCHAR(50) DEFAULT NULL,
confirm int(11) DEFAULT NULL,
confirm_add int(11) DEFAULT NULL,
heal int(11) DEFAULT NULL,
dead int(11) DEFAULT NULL,
PRIMARY KEY(id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE hotsearch(
id int(11) NOT NULL AUTO_INCREMENT,
dt datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
content varchar(255) DEFAULT NULL,
PRIMARY KEY(id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;