-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathsecnewsdb.sql
30 lines (27 loc) · 983 Bytes
/
secnewsdb.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
--
-- Table structure for table `t_security_news_article`
--
DROP TABLE IF EXISTS `t_security_news_article`;
CREATE TABLE `t_security_news_article` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`title` varchar(100) DEFAULT NULL,
`content` text,
`uri` varchar(200) DEFAULT NULL,
`last_update_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `idx_sna_t` (`title`)
) ENGINE=InnoDB AUTO_INCREMENT=361 DEFAULT CHARSET=utf8;
--
-- Table structure for table `t_security_news_words`
--
DROP TABLE IF EXISTS `t_security_news_words`;
CREATE TABLE `t_security_news_words` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`title` varchar(100) DEFAULT NULL,
`key` varchar(200) DEFAULT NULL,
`val` int(11) DEFAULT NULL,
`last_update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `idx_snw_tk` (`title`,`key`),
KEY `idx_snw_ts` (`last_update_time`)
) ENGINE=InnoDB AUTO_INCREMENT=97011 DEFAULT CHARSET=utf8;