Compare commits

...

2 Commits

Author SHA1 Message Date
yumoqing
70636c19b3 Merge branch 'main' of git.kaiyuancloud.cn:yumoqing/msp 2024-11-01 11:42:48 +08:00
yumoqing
254a4e38c0 bugfix 2024-11-01 11:35:45 +08:00
5 changed files with 113 additions and 0 deletions

BIN
models/hostdev.xlsx Normal file

Binary file not shown.

BIN
models/jumper.xlsx Normal file

Binary file not shown.

BIN
models/jumperhost.xlsx Normal file

Binary file not shown.

113
models/mysql.ddl.sql Normal file
View File

@ -0,0 +1,113 @@
-- ./xterm.xlsx
drop table if exists xterm;
CREATE TABLE xterm
(
`id` VARCHAR(32) comment 'id',
`name` VARCHAR(400) comment '终端名称',
`description` VARCHAR(500) comment '描述',
`ownerid` VARCHAR(32) comment '属主id',
`host` VARCHAR(400) comment '主机',
`port` int comment '端口',
`user` VARCHAR(400) comment '用户',
`passwd` VARCHAR(400) comment '用户密码',
`cmd` VARCHAR(2000) comment '命令'
,primary key(id)
)
engine=innodb
default charset=utf8
comment '终端'
;
-- ./jumperhost.xlsx
drop table if exists jumperhost;
CREATE TABLE jumperhost
(
`id` VARCHAR(32) comment 'id',
`stepno` int comment '跳步顺序',
`jumperid` VARCHAR(400) comment '跳板id',
`hostid` VARCHAR(500) 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(400) comment '主机名称',
`description` VARCHAR(500) comment '描述',
`ownerid` VARCHAR(32) comment '属主id',
`host` VARCHAR(400) comment '主机',
`port` int comment '端口',
`user` VARCHAR(400) comment '用户',
`passwd` VARCHAR(400) comment '用户密码',
`jumperid` VARCHAR(32) comment '跳板id'
,primary key(id)
)
engine=innodb
default charset=utf8
comment '主机设备'
;
-- ./jumper.xlsx
drop table if exists jumper;
CREATE TABLE jumper
(
`id` VARCHAR(32) comment 'id',
`name` VARCHAR(400) comment '跳板名称'
,primary key(id)
)
engine=innodb
default charset=utf8
comment '跳板'
;

BIN
models/xterm.xlsx Normal file

Binary file not shown.