Commit 7d5cb5cf authored by AfirSraftGarrier's avatar AfirSraftGarrier

增加报警表

parent c43d4c1f
......@@ -50,10 +50,31 @@ CREATE TABLE `user_permission`
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8 COMMENT ='用户权限表';
--添加权限--
INSERT INTO `permission` (`id`, `desc`, `create_time`, `update_time`, `deleted`) VALUES (1, '邀请注册', NULL, NULL, 0);
INSERT INTO `permission` (`id`, `desc`, `create_time`, `update_time`, `deleted`) VALUES (2, '删除用户', NULL, NULL, 0);
INSERT INTO `permission` (`id`, `desc`, `create_time`, `update_time`, `deleted`) VALUES (3, '应用管理', NULL, NULL, 0);
INSERT INTO `permission` (`id`, `desc`, `create_time`, `update_time`, `deleted`) VALUES (4, '设备管理', NULL, NULL, 0);
INSERT INTO `permission` (`id`, `desc`, `create_time`, `update_time`, `deleted`) VALUES (5, '运维管理', NULL, NULL, 0);
INSERT INTO `permission` (`id`, `desc`, `create_time`, `update_time`, `deleted`) VALUES (6, '日志管理', NULL, NULL, 0);
INSERT INTO `permission` (`id`, `desc`, `create_time`, `update_time`, `deleted`) VALUES (7, '安全报警', NULL, NULL, 0);
INSERT INTO `permission` (`id`, `desc`, `create_time`, `update_time`, `deleted`)
VALUES (1, '邀请注册', NULL, NULL, 0);
INSERT INTO `permission` (`id`, `desc`, `create_time`, `update_time`, `deleted`)
VALUES (2, '删除用户', NULL, NULL, 0);
INSERT INTO `permission` (`id`, `desc`, `create_time`, `update_time`, `deleted`)
VALUES (3, '应用管理', NULL, NULL, 0);
INSERT INTO `permission` (`id`, `desc`, `create_time`, `update_time`, `deleted`)
VALUES (4, '设备管理', NULL, NULL, 0);
INSERT INTO `permission` (`id`, `desc`, `create_time`, `update_time`, `deleted`)
VALUES (5, '运维管理', NULL, NULL, 0);
INSERT INTO `permission` (`id`, `desc`, `create_time`, `update_time`, `deleted`)
VALUES (6, '日志管理', NULL, NULL, 0);
INSERT INTO `permission` (`id`, `desc`, `create_time`, `update_time`, `deleted`)
VALUES (7, '安全报警', NULL, NULL, 0);
--报警表--
CREATE TABLE `report`
(
`id` int(10) NOT NULL AUTO_INCREMENT,
`category` int(1) DEFAULT NULL COMMENT '报警大类 1:系统,0:设备',
`type` int(3) DEFAULT NULL COMMENT '报警小类',
`desc` varchar(100) DEFAULT NULL COMMENT '报警说明',
`done` int(1) DEFAULT '0' COMMENT '是否已经完成 1:已完成,0:未完成',
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
`deleted` int(1) DEFAULT '0' COMMENT '逻辑删除标识 1:删除,0:未删除',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8 COMMENT ='用户权限表';
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment