| | |
| | | create table sys_soft ( |
| | | soft_id bigint(20) not null auto_increment comment '软件ID', |
| | | name varchar(200) not null comment '名称', |
| | | type char(1) default '0' comment '类型(0-应用软件,1-数据库,2-中间件,3-操作系统)', |
| | | type char(1) default '0' comment '类型(0-应用软件,1-数据库,2-中间件,3-操作系统,4-Docker容器)', |
| | | lic varchar(500) comment '许可', |
| | | descr varchar(500) comment '描述', |
| | | args varchar(8000) comment '参数', |
| | |
| | | ) engine=innodb auto_increment=1 comment = '软件表'; |
| | | select * from sys_soft order by soft_id; |
| | | |
| | | insert into sys_soft (name, type, args) values ('se-mysql', 4, 'se-mysql'); |
| | | insert into sys_soft (name, type, args) values ('se-redis', 4, 'se-redis'); |
| | | insert into sys_soft (name, type, args) values ('se-system', 4, 'se-system'); |
| | | insert into sys_soft (name, type, args) values ('se-wgcloud', 4, 'se-wgcloud'); |
| | | |
| | | -- ---------------------------- |
| | | -- 02、硬件表 |
| | |
| | | ) engine=innodb auto_increment=1 comment = '控制日志表'; |
| | | select * from sys_ctrl_log order by log_id; |
| | | |
| | | |
| | | -- ---------------------------- |
| | | -- 09、角色控制表 |
| | | -- ---------------------------- |
| | | drop table if exists sys_role_ctrl; |
| | | create table sys_role_ctrl ( |
| | | role_id bigint(20) not null comment '角色ID', |
| | | ctrl_id bigint(20) not null comment '控制ID', |
| | | primary key(role_id, ctrl_id) |
| | | ) engine=innodb comment = '角色控制表'; |
| | | select * from sys_role_ctrl; |
| | | |
| | | |
| | | -- ---------------------------- |
| | | -- 10、角色接口表 |
| | | -- ---------------------------- |
| | | drop table if exists sys_role_inte; |
| | | create table sys_role_inte ( |
| | | role_id bigint(20) not null comment '角色ID', |
| | | inte_id bigint(20) not null comment '接口ID', |
| | | primary key(role_id, inte_id) |
| | | ) engine=innodb comment = '角色接口表'; |
| | | select * from sys_role_inte; |
| | | |
| | | -- ---------------------------- |
| | | -- 11、角色资源表 |
| | | -- ---------------------------- |
| | | drop table if exists sys_role_res; |
| | | create table sys_role_res ( |
| | | role_id bigint(20) not null comment '角色ID', |
| | | res_id bigint(20) not null comment '资源ID', |
| | | primary key(role_id, res_id) |
| | | ) engine=innodb comment = '角色资源表'; |
| | | select * from sys_role_res; |
| | | |