diff --git a/models/hostdev.xlsx b/models/hostdev.xlsx new file mode 100644 index 0000000..92ba64c Binary files /dev/null and b/models/hostdev.xlsx differ diff --git a/models/jumper.xlsx b/models/jumper.xlsx new file mode 100644 index 0000000..3a96353 Binary files /dev/null and b/models/jumper.xlsx differ diff --git a/models/jumperhost.xlsx b/models/jumperhost.xlsx new file mode 100644 index 0000000..c06730d Binary files /dev/null and b/models/jumperhost.xlsx differ diff --git a/models/mysql.ddl.sql b/models/mysql.ddl.sql new file mode 100644 index 0000000..7ce659f --- /dev/null +++ b/models/mysql.ddl.sql @@ -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 '跳板' +; + + diff --git a/models/xterm.xlsx b/models/xterm.xlsx new file mode 100644 index 0000000..6a7b4b7 Binary files /dev/null and b/models/xterm.xlsx differ