1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
CREATE TABLE `forbidden_msg_from_aliyun` (
`id` bigint(11) NOT NULL AUTO_INCREMENT COMMENT '自增id',
`words` varchar(128) NOT NULL DEFAULT '' COMMENT '脏字',
`level` varchar(36) NOT NULL DEFAULT '' COMMENT '级别:block,review',
`label` varchar(36) NOT NULL DEFAULT '' COMMENT '类型',
`words_state` int(4) NOT NULL DEFAULT 0 COMMENT '1:use,0:del',
`vtype` int(4) NOT NULL DEFAULT 0 COMMENT 'TypeAliYunRealLexicon:4',
`create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
PRIMARY KEY (`id`),
UNIQUE KEY `vtype` (`words`,`vtype`),
KEY `forbidden_msg_vtype` (`vtype`),
KEY `level_index` (`level`),
KEY `label_index` (`label`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='阿里云词库';
|