| | |
| | | |
| | | |
| | | -- ---------------------------- |
| | | -- 07、告警表 |
| | | -- 07、控制表 |
| | | -- ---------------------------- |
| | | drop table if exists sys_warn; |
| | | create table sys_warn ( |
| | | warn_id bigint(20) not null auto_increment comment '告警ID', |
| | | drop table if exists sys_ctrl; |
| | | create table sys_ctrl ( |
| | | ctrl_id bigint(20) not null auto_increment comment '控制ID', |
| | | name varchar(200) not null comment '名称', |
| | | type char(1) default '0' comment '类型', |
| | | descr varchar(500) comment '描述', |
| | |
| | | update_by varchar(64) default '' comment '更新者', |
| | | update_time datetime comment '更新时间', |
| | | remark varchar(500) default '' comment '备注', |
| | | primary key (warn_id) |
| | | ) engine=innodb auto_increment=1 comment = '告警表'; |
| | | select * from sys_warn order by warn_id; |
| | | primary key (ctrl_id) |
| | | ) engine=innodb auto_increment=1 comment = '控制表'; |
| | | select * from sys_ctrl order by ctrl_id; |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | -- ---------------------------- |
| | | -- 08、控制日志表 |
| | | -- ---------------------------- |
| | | drop table if exists sys_ctrl_log; |
| | | create table sys_ctrl_log ( |
| | | log_id bigint(20) not null auto_increment comment '日志ID', |
| | | title varchar(100) not null comment '标题', |
| | | type char(1) default '0' comment '类型', |
| | | ip varchar(50) comment 'IP', |
| | | url varchar(4000) comment 'URL', |
| | | method varchar(20) comment '方法', |
| | | args varchar(4000) comment '参数', |
| | | msg varchar(2000) comment '消息', |
| | | oper varchar(50) comment '操作员', |
| | | time datetime default now() comment '操作时间', |
| | | remark varchar(500) default '' comment '备注', |
| | | primary key (log_id) |
| | | ) engine=innodb auto_increment=1 comment = '控制日志表'; |
| | | select * from sys_ctrl_log order by log_id; |
| | | |