This commit is contained in:
yumoqing 2025-07-22 16:20:16 +08:00
parent 297b326719
commit 21776bb9d0
4 changed files with 29 additions and 155 deletions

29
json/mspcatelog.json Normal file
View File

@ -0,0 +1,29 @@
{
"tblname": "mspcatelog",
"uitype":"tree",
"title":"服务目录",
"params":{
"idField":"id",
"textField":"name",
"sortby":"name",
"editable":true,
"browserfields":{
"alters":{}
},
"edit_exclouded_fields":[],
"parentField":"parentid",
"toolbar":{
},
"binds":[
],
"subtables":[
{
"field":"catelogid",
"title":"服务",
"subtable":"tehcservice"
}
]
}
}

BIN
models/mspcatelog.xlsx Normal file

Binary file not shown.

View File

@ -1,155 +0,0 @@
-- ./service_log.xlsx
drop table if exists service_log;
CREATE TABLE service_log
(
`id` VARCHAR(32) comment 'id',
`serve_date` date comment '服务日期',
`timestamp` TIMESTAMP DEFAULT CURRENT_TIMESTAMP comment '服务时间',
`hostid` VARCHAR(32) comment '主机id',
`serviceid` VARCHAR(32) comment '服务id',
`params` longtext comment '参数',
`user_orgid` VARCHAR(32) comment '用户机构id',
`userid` VARCHAR(32) comment '用户id'
,primary key(id)
)
engine=innodb
default charset=utf8
comment '服务日志'
;
-- ./techservice.xlsx
drop table if exists techservice;
CREATE TABLE techservice
(
`id` VARCHAR(32) comment 'id',
`name` VARCHAR(100) comment '服务名称',
`description` longtext comment '描述',
`script` longtext comment '服务脚本',
`params` longtext comment '参数',
`ownerid` VARCHAR(32) comment '属主机构',
`osname` VARCHAR(100) comment '操作系统',
`osver` VARCHAR(100) comment '操作系统版本',
`serve_status` VARCHAR(1) comment '服务状态',
`enable_date` date comment '启用日期',
`disable_date` date comment '禁用日期'
,primary key(id)
)
engine=innodb
default charset=utf8
comment '技术服务'
;
-- ./devgroup.xlsx
drop table if exists devgroup;
CREATE TABLE devgroup
(
`id` VARCHAR(32) comment 'id',
`name` VARCHAR(99) comment '组名称',
`description` VARCHAR(500) comment '描述',
`ownerid` VARCHAR(32) comment '属主id'
,primary key(id)
)
engine=innodb
default charset=utf8
comment '设备组'
;
CREATE INDEX devgroup_idx1 ON devgroup(ownerid);
-- ./serve_status.xlsx
drop table if exists serve_status;
CREATE TABLE serve_status
(
`id` VARCHAR(32) comment 'id',
`change_date` date comment '操作日期',
`change_time` TIMESTAMP DEFAULT CURRENT_TIMESTAMP comment '操作时间',
`serveid` VARCHAR(32) comment '服务id',
`old_status` VARCHAR(1) comment '原状态',
`new_status` VARCHAR(1) comment '新状态',
`opererid` VARCHAR(32) comment '操作员id'
,primary key(id)
)
engine=innodb
default charset=utf8
comment '服务状态'
;
-- ./hostdev.xlsx
drop table if exists hostdev;
CREATE TABLE hostdev
(
`id` VARCHAR(32) comment 'id',
`name` VARCHAR(99) comment '主机名称',
`description` VARCHAR(500) comment '描述',
`ownerid` VARCHAR(32) comment '属主id',
`host` VARCHAR(400) comment '域名或ip',
`port` int comment '端口',
`user` VARCHAR(400) comment '用户',
`passwd` VARCHAR(400) comment '用户密码',
`client_key` longtext comment '私钥',
`passphrase` VARCHAR(100) comment '私钥密码',
`jumperid` VARCHAR(32) comment '跳板机id',
`osname` VARCHAR(100) comment '操作系统名称',
`osver` VARCHAR(100) comment '操作系统版本'
,primary key(id)
)
engine=innodb
default charset=utf8
comment '主机设备'
;

Binary file not shown.