From 4536d92baf977db2e58d2211923581e9c1dc0aeb Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 1 Nov 2024 15:52:46 +0800 Subject: [PATCH] bugfix --- models/mysql.ddl.sql | 120 +++++++++++++++++++++---------------------- 1 file changed, 60 insertions(+), 60 deletions(-) diff --git a/models/mysql.ddl.sql b/models/mysql.ddl.sql index 7ce659f..ae94860 100644 --- a/models/mysql.ddl.sql +++ b/models/mysql.ddl.sql @@ -1,4 +1,62 @@ +-- ./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', + `hostname` VARCHAR(400) comment '域名', + `local_ip` VARCHAR(100) comment '内网地址', + `external_ip` VARCHAR(100) 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 '跳板名称', + `ownerid` VARCHAR(32) comment '属主id' + + +,primary key(id) + + +) +engine=innodb +default charset=utf8 +comment '跳板' +; + + -- ./xterm.xlsx @@ -13,11 +71,8 @@ CREATE TABLE xterm `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 '命令' + `hostid` VARCHAR(400) comment '主机id', + `cmd` VARCHAR(4000) comment '命令' ,primary key(id) @@ -56,58 +111,3 @@ 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 '跳板' -; - -