REM:
1. 更新数据库创建脚本,避免MySQL命令行导入脚本报错
This commit is contained in:
HuangXin 2020-07-01 14:56:06 +08:00
parent a3f6128be2
commit 9fe7ae53a0
1 changed files with 3 additions and 3 deletions

View File

@ -50,8 +50,8 @@ CREATE TABLE `dispose_task`
`type` int(11) UNSIGNED NOT NULL COMMENT '处置能力类型0清洗 1高防 2黑洞 3检测',
`disposeIp` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '处置IP',
`createTime` timestamp(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '开始时间',
`planEndTime` timestamp(0) NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT '计划结束时间',
`endTime` timestamp(0) NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT '实际结束时间',
`planEndTime` timestamp(0) NOT NULL DEFAULT '1970-01-02 00:00:00' COMMENT '计划结束时间',
`endTime` timestamp(0) NOT NULL DEFAULT '1970-01-02 00:00:00' COMMENT '实际结束时间',
`flowDirection` int(11) NULL DEFAULT 2 COMMENT '流量方向, 0流入1流出2双向',
`attackType` varchar(1024) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0' COMMENT '攻击类型默认0 全部攻击',
`flowBandWidth` int(10) UNSIGNED NULL DEFAULT 1024 COMMENT '攻击流量占用带宽',
@ -100,7 +100,7 @@ CREATE TABLE `user_account`
`username` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '用户名',
`password` varchar(512) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '密码',
`lastLoginTime` timestamp(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0) ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '最后一次成功登录时间',
`lockTime` timestamp(0) NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT '账户锁定时间',
`lockTime` timestamp(0) NOT NULL DEFAULT '1970-01-02 00:00:00' COMMENT '账户锁定时间',
`status` int(11) NULL DEFAULT NULL COMMENT '账户状态',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE INDEX `USERNAME` (`username`) USING BTREE