Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
JAVA小学生-王铁柱
eladmin
提交
0cbc6e55
E
eladmin
项目概览
JAVA小学生-王铁柱
/
eladmin
与 Fork 源项目一致
从无法访问的项目Fork
通知
4
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
E
eladmin
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
0cbc6e55
编写于
11月 25, 2019
作者:
D
dqjdda
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
更新sql脚本,添加脚本选择说明.txt
上级
6b4411a5
变更
4
展开全部
隐藏空白更改
内联
并排
Showing
4 changed file
with
335 addition
and
125 deletion
+335
-125
sql/eladmin-gen.sql
sql/eladmin-gen.sql
+45
-0
sql/eladmin-mnt.sql
sql/eladmin-mnt.sql
+65
-38
sql/eladmin.sql
sql/eladmin.sql
+221
-87
sql/脚本如何选择.txt
sql/脚本如何选择.txt
+4
-0
未找到文件。
sql/eladmin-gen.sql
0 → 100644
浏览文件 @
0cbc6e55
-- ----------------------------
-- Records of menu
-- ----------------------------
INSERT
INTO
`menu`
VALUES
(
82
,
b
'0'
,
'生成配置'
,
'generator/config'
,
36
,
33
,
'dev'
,
'generator/config/:tableName'
,
b
'1'
,
b
'1'
,
'GeneratorConfig'
,
'2019-11-17 20:08:56'
,
''
,
1
);
-- ----------------------------
-- Table structure for column_config
-- ----------------------------
DROP
TABLE
IF
EXISTS
`column_config`
;
CREATE
TABLE
`column_config`
(
`id`
bigint
(
20
)
NOT
NULL
AUTO_INCREMENT
,
`table_name`
varchar
(
255
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NULL
DEFAULT
NULL
,
`column_name`
varchar
(
255
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NULL
DEFAULT
NULL
,
`column_type`
varchar
(
255
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NULL
DEFAULT
NULL
,
`dict_name`
varchar
(
255
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NULL
DEFAULT
NULL
,
`extra`
varchar
(
255
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NULL
DEFAULT
NULL
,
`form_show`
bit
(
1
)
NULL
DEFAULT
NULL
,
`form_type`
varchar
(
255
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NULL
DEFAULT
NULL
,
`key_type`
varchar
(
255
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NULL
DEFAULT
NULL
,
`list_show`
bit
(
1
)
NULL
DEFAULT
NULL
,
`not_null`
bit
(
1
)
NULL
DEFAULT
NULL
,
`query_type`
varchar
(
255
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NULL
DEFAULT
NULL
,
`remark`
varchar
(
255
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NULL
DEFAULT
NULL
,
`date_annotation`
varchar
(
255
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NULL
DEFAULT
NULL
,
PRIMARY
KEY
(
`id`
)
USING
BTREE
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
86
CHARACTER
SET
=
utf8
COLLATE
=
utf8_general_ci
ROW_FORMAT
=
Compact
;
-- ----------------------------
-- Table structure for gen_config
-- ----------------------------
DROP
TABLE
IF
EXISTS
`gen_config`
;
CREATE
TABLE
`gen_config`
(
`id`
bigint
(
20
)
NOT
NULL
AUTO_INCREMENT
COMMENT
'ID'
,
`table_name`
varchar
(
255
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NULL
DEFAULT
NULL
COMMENT
'表名'
,
`author`
varchar
(
255
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NULL
DEFAULT
NULL
COMMENT
'作者'
,
`cover`
bit
(
1
)
NULL
DEFAULT
NULL
COMMENT
'是否覆盖'
,
`module_name`
varchar
(
255
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NULL
DEFAULT
NULL
COMMENT
'模块名称'
,
`pack`
varchar
(
255
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NULL
DEFAULT
NULL
COMMENT
'至于哪个包下'
,
`path`
varchar
(
255
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NULL
DEFAULT
NULL
COMMENT
'前端代码生成的路径'
,
`api_path`
varchar
(
255
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NULL
DEFAULT
NULL
COMMENT
'前端Api文件路径'
,
`prefix`
varchar
(
255
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NULL
DEFAULT
NULL
COMMENT
'表前缀'
,
`api_alias`
varchar
(
255
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NULL
DEFAULT
NULL
COMMENT
'接口名称'
,
PRIMARY
KEY
(
`id`
)
USING
BTREE
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
4
CHARACTER
SET
=
utf8
COLLATE
=
utf8_general_ci
ROW_FORMAT
=
Compact
;
sql/eladmin-mnt.sql
浏览文件 @
0cbc6e55
...
@@ -3,16 +3,14 @@
...
@@ -3,16 +3,14 @@
-- Records of menu
-- Records of menu
-- ----------------------------
-- ----------------------------
INSERT
INTO
`menu`
VALUES
(
90
,
b
'0'
,
'运维管理'
,
''
,
0
,
920
,
'sys-tools'
,
'mnt'
,
b
'0'
,
b
'0'
,
'Mnt'
,
'2019-11-09 10:31:08'
,
NULL
,
1
);
INSERT
INTO
`menu`
VALUES
(
80
,
b
'0'
,
'服务监控'
,
'monitor/server/index'
,
6
,
14
,
'codeConsole'
,
'server'
,
b
'0'
,
b
'0'
,
'ServerMonitor'
,
'2019-11-07 13:06:39'
,
'server:list'
,
1
);
INSERT
INTO
`menu`
VALUES
(
91
,
b
'0'
,
'账号管理'
,
'mnt/account/index'
,
90
,
100
,
'user'
,
'mnt/account'
,
b
'0'
,
b
'0'
,
'Account'
,
'2019-11-09 10:32:05'
,
'serverAccount:list'
,
1
);
INSERT
INTO
`menu`
VALUES
(
83
,
b
'0'
,
'图表库'
,
'components/Echarts'
,
10
,
50
,
'chart'
,
'echarts'
,
b
'1'
,
b
'0'
,
'Echarts'
,
'2019-11-21 09:04:32'
,
''
,
1
);
INSERT
INTO
`menu`
VALUES
(
92
,
b
'0'
,
'服务器管理'
,
'mnt/serverDeploy/index'
,
90
,
200
,
'codeConsole'
,
'mnt/serverDeploy'
,
b
'0'
,
b
'0'
,
'ServerDeploy'
,
'2019-11-10 10:29:25'
,
'serverDeploy:list'
,
1
);
INSERT
INTO
`menu`
VALUES
(
90
,
b
'0'
,
'运维管理'
,
''
,
0
,
20
,
'mnt'
,
'mnt'
,
b
'0'
,
b
'0'
,
'Mnt'
,
'2019-11-09 10:31:08'
,
NULL
,
1
);
INSERT
INTO
`menu`
VALUES
(
93
,
b
'0'
,
'应用管理'
,
'mnt/app/index'
,
90
,
300
,
'java'
,
'mnt/app'
,
b
'0'
,
b
'0'
,
'App'
,
'2019-11-10 11:05:16'
,
'app:list'
,
1
);
INSERT
INTO
`menu`
VALUES
(
92
,
b
'0'
,
'服务器'
,
'mnt/server/index'
,
90
,
22
,
'server'
,
'mnt/serverDeploy'
,
b
'0'
,
b
'0'
,
'ServerDeploy'
,
'2019-11-10 10:29:25'
,
'serverDeploy:list'
,
1
);
INSERT
INTO
`menu`
VALUES
(
94
,
b
'0'
,
'部署管理'
,
'mnt/deploy/index'
,
90
,
400
,
'ipvisits'
,
'mnt/deploy'
,
b
'0'
,
b
'0'
,
'Deploy'
,
'2019-11-10 15:56:55'
,
'deploy:list'
,
1
);
INSERT
INTO
`menu`
VALUES
(
93
,
b
'0'
,
'应用管理'
,
'mnt/app/index'
,
90
,
23
,
'app'
,
'mnt/app'
,
b
'0'
,
b
'0'
,
'App'
,
'2019-11-10 11:05:16'
,
'app:list'
,
1
);
INSERT
INTO
`menu`
VALUES
(
97
,
b
'0'
,
'部署备份管理'
,
'mnt/deployHistory/index'
,
90
,
500
,
'ipvisits'
,
'mnt/deployHistory'
,
b
'0'
,
b
'0'
,
'DeployHistory'
,
'2019-11-10 16:49:44'
,
'deployHistory:list'
,
1
);
INSERT
INTO
`menu`
VALUES
(
94
,
b
'0'
,
'部署管理'
,
'mnt/deploy/index'
,
90
,
24
,
'deploy'
,
'mnt/deploy'
,
b
'0'
,
b
'0'
,
'Deploy'
,
'2019-11-10 15:56:55'
,
'deploy:list'
,
1
);
INSERT
INTO
`menu`
VALUES
(
98
,
b
'0'
,
'数据库管理'
,
'mnt/database/index'
,
90
,
600
,
'zujian'
,
'mnt/database'
,
b
'0'
,
b
'0'
,
'Database'
,
'2019-11-10 20:40:04'
,
'database:list'
,
1
);
INSERT
INTO
`menu`
VALUES
(
97
,
b
'0'
,
'部署备份'
,
'mnt/deployHistory/index'
,
90
,
25
,
'backup'
,
'mnt/deployHistory'
,
b
'0'
,
b
'0'
,
'DeployHistory'
,
'2019-11-10 16:49:44'
,
'deployHistory:list'
,
1
);
INSERT
INTO
`menu`
VALUES
(
99
,
b
'0'
,
'账户新增'
,
''
,
91
,
1
,
''
,
''
,
b
'0'
,
b
'0'
,
''
,
'2019-11-16 14:03:05'
,
'serverAccount:add'
,
2
);
INSERT
INTO
`menu`
VALUES
(
98
,
b
'0'
,
'数据库管理'
,
'mnt/database/index'
,
90
,
26
,
'database'
,
'mnt/database'
,
b
'0'
,
b
'0'
,
'Database'
,
'2019-11-10 20:40:04'
,
'database:list'
,
1
);
INSERT
INTO
`menu`
VALUES
(
100
,
b
'0'
,
'账户编辑'
,
''
,
91
,
2
,
''
,
''
,
b
'0'
,
b
'0'
,
''
,
'2019-11-16 14:06:26'
,
'serverAccount:edit'
,
2
);
INSERT
INTO
`menu`
VALUES
(
101
,
b
'0'
,
'账户删除'
,
''
,
91
,
3
,
''
,
''
,
b
'0'
,
b
'0'
,
''
,
'2019-11-16 14:06:45'
,
'serverAccount:del'
,
2
);
INSERT
INTO
`menu`
VALUES
(
102
,
b
'0'
,
'删除'
,
''
,
97
,
999
,
''
,
''
,
b
'0'
,
b
'0'
,
''
,
'2019-11-17 09:32:48'
,
'deployHistory:del'
,
2
);
INSERT
INTO
`menu`
VALUES
(
102
,
b
'0'
,
'删除'
,
''
,
97
,
999
,
''
,
''
,
b
'0'
,
b
'0'
,
''
,
'2019-11-17 09:32:48'
,
'deployHistory:del'
,
2
);
INSERT
INTO
`menu`
VALUES
(
103
,
b
'0'
,
'服务器新增'
,
''
,
92
,
999
,
''
,
''
,
b
'0'
,
b
'0'
,
''
,
'2019-11-17 11:08:33'
,
'serverDeploy:add'
,
2
);
INSERT
INTO
`menu`
VALUES
(
103
,
b
'0'
,
'服务器新增'
,
''
,
92
,
999
,
''
,
''
,
b
'0'
,
b
'0'
,
''
,
'2019-11-17 11:08:33'
,
'serverDeploy:add'
,
2
);
INSERT
INTO
`menu`
VALUES
(
104
,
b
'0'
,
'服务器编辑'
,
''
,
92
,
999
,
''
,
''
,
b
'0'
,
b
'0'
,
''
,
'2019-11-17 11:08:57'
,
'serverDeploy:edit'
,
2
);
INSERT
INTO
`menu`
VALUES
(
104
,
b
'0'
,
'服务器编辑'
,
''
,
92
,
999
,
''
,
''
,
b
'0'
,
b
'0'
,
''
,
'2019-11-17 11:08:57'
,
'serverDeploy:edit'
,
2
);
...
@@ -26,13 +24,14 @@ INSERT INTO `menu` VALUES (111, b'0', '部署删除', '', 94, 999, '', '', b'0',
...
@@ -26,13 +24,14 @@ INSERT INTO `menu` VALUES (111, b'0', '部署删除', '', 94, 999, '', '', b'0',
INSERT
INTO
`menu`
VALUES
(
112
,
b
'0'
,
'数据库新增'
,
''
,
98
,
999
,
''
,
''
,
b
'0'
,
b
'0'
,
''
,
'2019-11-17 11:12:43'
,
'database:add'
,
2
);
INSERT
INTO
`menu`
VALUES
(
112
,
b
'0'
,
'数据库新增'
,
''
,
98
,
999
,
''
,
''
,
b
'0'
,
b
'0'
,
''
,
'2019-11-17 11:12:43'
,
'database:add'
,
2
);
INSERT
INTO
`menu`
VALUES
(
113
,
b
'0'
,
'数据库编辑'
,
''
,
98
,
999
,
''
,
''
,
b
'0'
,
b
'0'
,
''
,
'2019-11-17 11:12:58'
,
'database:edit'
,
2
);
INSERT
INTO
`menu`
VALUES
(
113
,
b
'0'
,
'数据库编辑'
,
''
,
98
,
999
,
''
,
''
,
b
'0'
,
b
'0'
,
''
,
'2019-11-17 11:12:58'
,
'database:edit'
,
2
);
INSERT
INTO
`menu`
VALUES
(
114
,
b
'0'
,
'数据库删除'
,
''
,
98
,
999
,
''
,
''
,
b
'0'
,
b
'0'
,
''
,
'2019-11-17 11:13:14'
,
'database:del'
,
2
);
INSERT
INTO
`menu`
VALUES
(
114
,
b
'0'
,
'数据库删除'
,
''
,
98
,
999
,
''
,
''
,
b
'0'
,
b
'0'
,
''
,
'2019-11-17 11:13:14'
,
'database:del'
,
2
);
INSERT
INTO
`menu`
VALUES
(
115
,
b
'0'
,
'测试生成'
,
'gen/index'
,
1
,
999
,
'Steve-Jobs'
,
'genTest'
,
b
'0'
,
b
'0'
,
NULL
,
'2019-11-25 18:10:29'
,
'gen:list'
,
1
);
-- ----------------------------
-- ----------------------------
-- Table structure for mnt_app
-- Table structure for mnt_app
-- ----------------------------
-- ----------------------------
DROP
TABLE
IF
EXISTS
`mnt_app`
;
DROP
TABLE
IF
EXISTS
`mnt_app`
;
CREATE
TABLE
`mnt_app`
(
CREATE
TABLE
`mnt_app`
(
`id`
varchar
(
255
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NOT
NULL
COMMENT
'应用编号
'
,
`id`
bigint
(
20
)
NOT
NULL
COMMENT
'应用ID
'
,
`name`
varchar
(
255
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NULL
DEFAULT
NULL
COMMENT
'应用名称'
,
`name`
varchar
(
255
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NULL
DEFAULT
NULL
COMMENT
'应用名称'
,
`upload_path`
varchar
(
255
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NULL
DEFAULT
NULL
COMMENT
'上传目录'
,
`upload_path`
varchar
(
255
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NULL
DEFAULT
NULL
COMMENT
'上传目录'
,
`deploy_path`
varchar
(
255
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NULL
DEFAULT
NULL
COMMENT
'部署路径'
,
`deploy_path`
varchar
(
255
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NULL
DEFAULT
NULL
COMMENT
'部署路径'
,
...
@@ -40,13 +39,14 @@ CREATE TABLE `mnt_app` (
...
@@ -40,13 +39,14 @@ CREATE TABLE `mnt_app` (
`port`
int
(
255
)
NULL
DEFAULT
NULL
COMMENT
'应用端口'
,
`port`
int
(
255
)
NULL
DEFAULT
NULL
COMMENT
'应用端口'
,
`start_script`
varchar
(
4000
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NULL
DEFAULT
NULL
COMMENT
'启动脚本'
,
`start_script`
varchar
(
4000
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NULL
DEFAULT
NULL
COMMENT
'启动脚本'
,
`deploy_script`
varchar
(
4000
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NULL
DEFAULT
NULL
COMMENT
'部署脚本'
,
`deploy_script`
varchar
(
4000
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NULL
DEFAULT
NULL
COMMENT
'部署脚本'
,
`create_time`
datetime
NULL
DEFAULT
NULL
COMMENT
'创建日期'
,
PRIMARY
KEY
(
`id`
)
USING
BTREE
PRIMARY
KEY
(
`id`
)
USING
BTREE
)
ENGINE
=
InnoDB
CHARACTER
SET
=
utf8
COLLATE
=
utf8_general_ci
ROW_FORMAT
=
Dynamic
;
)
ENGINE
=
InnoDB
CHARACTER
SET
=
utf8
COLLATE
=
utf8_general_ci
ROW_FORMAT
=
Compact
;
-- ----------------------------
-- ----------------------------
-- Records of mnt_app
-- Records of mnt_app
-- ----------------------------
-- ----------------------------
INSERT
INTO
`mnt_app`
VALUES
(
'04a27b0a-6570-4fac-88be-abad072028ac'
,
'eladmin-monitor-2.2.jar'
,
'/opt/upload'
,
'/opt/monitor'
,
'/opt/backup'
,
8777
,
'cd /opt/monitor/
\n
nohup java -jar eladmin-monitor-2.2.jar >nohup.out 2>&1 &
\n
'
,
'mv /opt/upload/eladmin-monitor-2.2.jar /opt/monitor/
\n
cd /opt/monitor
\n
nohup java -jar eladmin-monitor-2.2.jar >nohup.out 2>&1 &
\n
'
);
INSERT
INTO
`mnt_app`
VALUES
(
1
,
'eladmin-monitor-2.3.jar'
,
'/opt/upload'
,
'/opt/monitor'
,
'/opt/backup'
,
8777
,
'cd /opt/monitor/
\n
nohup java -jar eladmin-monitor-2.2.jar >nohup.out 2>&1 &
\n
'
,
'mv /opt/upload/eladmin-monitor-2.2.jar /opt/monitor/
\n
cd /opt/monitor
\n
nohup java -jar eladmin-monitor-2.2.jar >nohup.out 2>&1 &
\n
'
,
'2019-11-24 20:52:59
'
);
-- ----------------------------
-- ----------------------------
-- Table structure for mnt_database
-- Table structure for mnt_database
...
@@ -59,19 +59,21 @@ CREATE TABLE `mnt_database` (
...
@@ -59,19 +59,21 @@ CREATE TABLE `mnt_database` (
`user_name`
varchar
(
255
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NOT
NULL
COMMENT
'账号'
,
`user_name`
varchar
(
255
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NOT
NULL
COMMENT
'账号'
,
`pwd`
varchar
(
255
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NOT
NULL
COMMENT
'密码'
,
`pwd`
varchar
(
255
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NOT
NULL
COMMENT
'密码'
,
PRIMARY
KEY
(
`id`
)
USING
BTREE
PRIMARY
KEY
(
`id`
)
USING
BTREE
)
ENGINE
=
InnoDB
CHARACTER
SET
=
utf8
COLLATE
=
utf8_general_ci
ROW_FORMAT
=
Dynamic
;
)
ENGINE
=
InnoDB
CHARACTER
SET
=
utf8
COLLATE
=
utf8_general_ci
ROW_FORMAT
=
Compact
;
-- ----------------------------
-- ----------------------------
-- Table structure for mnt_deploy
-- Table structure for mnt_deploy
-- ----------------------------
-- ----------------------------
DROP
TABLE
IF
EXISTS
`mnt_deploy`
;
DROP
TABLE
IF
EXISTS
`mnt_deploy`
;
CREATE
TABLE
`mnt_deploy`
(
CREATE
TABLE
`mnt_deploy`
(
`id`
varchar
(
255
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NOT
NULL
COMMENT
'编号'
,
`id`
bigint
(
20
)
NOT
NULL
AUTO_INCREMENT
COMMENT
'编号'
,
`app_id`
varchar
(
255
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NULL
DEFAULT
NULL
COMMENT
'应用编号'
,
`app_id`
bigint
(
20
)
NULL
DEFAULT
NULL
COMMENT
'应用编号'
,
`ip`
varchar
(
255
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NULL
DEFAULT
NULL
COMMENT
'IP地址'
,
`create_time`
datetime
NULL
DEFAULT
NULL
,
PRIMARY
KEY
(
`id`
)
USING
BTREE
PRIMARY
KEY
(
`id`
)
USING
BTREE
,
)
ENGINE
=
InnoDB
CHARACTER
SET
=
utf8
COLLATE
=
utf8_general_ci
ROW_FORMAT
=
Dynamic
;
INDEX
`FK6sy157pseoxx4fmcqr1vnvvhy`
(
`app_id`
)
USING
BTREE
,
CONSTRAINT
`FK6sy157pseoxx4fmcqr1vnvvhy`
FOREIGN
KEY
(
`app_id`
)
REFERENCES
`mnt_app`
(
`id`
)
ON
DELETE
RESTRICT
ON
UPDATE
RESTRICT
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
2
CHARACTER
SET
=
utf8
COLLATE
=
utf8_general_ci
ROW_FORMAT
=
Compact
;
-- ----------------------------
-- ----------------------------
-- Table structure for mnt_deploy_history
-- Table structure for mnt_deploy_history
-- ----------------------------
-- ----------------------------
...
@@ -79,34 +81,59 @@ DROP TABLE IF EXISTS `mnt_deploy_history`;
...
@@ -79,34 +81,59 @@ DROP TABLE IF EXISTS `mnt_deploy_history`;
CREATE
TABLE
`mnt_deploy_history`
(
CREATE
TABLE
`mnt_deploy_history`
(
`id`
varchar
(
50
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NOT
NULL
COMMENT
'编号'
,
`id`
varchar
(
50
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NOT
NULL
COMMENT
'编号'
,
`app_name`
varchar
(
255
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NOT
NULL
COMMENT
'应用名称'
,
`app_name`
varchar
(
255
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NOT
NULL
COMMENT
'应用名称'
,
`deploy_date`
varchar
(
20
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NOT
NULL
COMMENT
'部署日期'
,
`deploy_date`
datetime
NOT
NULL
COMMENT
'部署日期'
,
`deploy_user`
varchar
(
50
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NOT
NULL
COMMENT
'部署用户'
,
`deploy_user`
varchar
(
50
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NOT
NULL
COMMENT
'部署用户'
,
`ip`
varchar
(
20
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NOT
NULL
COMMENT
'服务器IP'
,
`ip`
varchar
(
20
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NOT
NULL
COMMENT
'服务器IP'
,
`deploy_id`
varchar
(
50
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NULL
DEFAULT
NULL
COMMENT
'部署编号'
,
`deploy_id`
bigint
(
20
)
NULL
DEFAULT
NULL
COMMENT
'部署编号'
,
PRIMARY
KEY
(
`id`
)
USING
BTREE
PRIMARY
KEY
(
`id`
)
USING
BTREE
)
ENGINE
=
InnoDB
CHARACTER
SET
=
utf8
COLLATE
=
utf8_general_ci
ROW_FORMAT
=
Dynamic
;
)
ENGINE
=
InnoDB
CHARACTER
SET
=
utf8
COLLATE
=
utf8_general_ci
ROW_FORMAT
=
Compact
;
-- ----------------------------
-- Table structure for mnt_deploy_server
-- ----------------------------
DROP
TABLE
IF
EXISTS
`mnt_deploy_server`
;
CREATE
TABLE
`mnt_deploy_server`
(
`deploy_id`
bigint
(
20
)
NOT
NULL
,
`server_id`
bigint
(
20
)
NOT
NULL
,
PRIMARY
KEY
(
`deploy_id`
,
`server_id`
)
USING
BTREE
,
INDEX
`FKeaaha7jew9a02b3bk9ghols53`
(
`server_id`
)
USING
BTREE
,
CONSTRAINT
`FK3cehr56tedph6nk3gxsmeq0pb`
FOREIGN
KEY
(
`deploy_id`
)
REFERENCES
`mnt_deploy`
(
`id`
)
ON
DELETE
RESTRICT
ON
UPDATE
RESTRICT
,
CONSTRAINT
`FKeaaha7jew9a02b3bk9ghols53`
FOREIGN
KEY
(
`server_id`
)
REFERENCES
`mnt_server`
(
`id`
)
ON
DELETE
RESTRICT
ON
UPDATE
RESTRICT
)
ENGINE
=
InnoDB
CHARACTER
SET
=
utf8
COLLATE
=
utf8_general_ci
ROW_FORMAT
=
Compact
;
-- ----------------------------
-- ----------------------------
-- Table structure for mnt_server
-- Table structure for mnt_server
-- ----------------------------
-- ----------------------------
DROP
TABLE
IF
EXISTS
`mnt_server`
;
DROP
TABLE
IF
EXISTS
`mnt_server`
;
CREATE
TABLE
`mnt_server`
(
CREATE
TABLE
`mnt_server`
(
`id`
varchar
(
255
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NOT
NULL
COMMENT
'IP地址'
,
`id`
bigint
(
20
)
NOT
NULL
AUTO_INCREMENT
COMMENT
'IP地址'
,
`account_id`
varchar
(
255
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NULL
DEFAULT
NULL
COMMENT
'账号编号'
,
`account`
varchar
(
255
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NULL
DEFAULT
NULL
COMMENT
'账号'
,
`ip`
varchar
(
255
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NULL
DEFAULT
NULL
COMMENT
'IP地址'
,
`name`
varchar
(
255
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NULL
DEFAULT
NULL
COMMENT
'名称'
,
`password`
varchar
(
255
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NULL
DEFAULT
NULL
COMMENT
'密码'
,
`port`
int
(
11
)
NULL
DEFAULT
NULL
COMMENT
'端口'
,
`create_time`
datetime
NULL
DEFAULT
NULL
,
PRIMARY
KEY
(
`id`
)
USING
BTREE
PRIMARY
KEY
(
`id`
)
USING
BTREE
)
ENGINE
=
InnoDB
CHARACTER
SET
=
utf8
COLLATE
=
utf8_general_ci
ROW_FORMAT
=
Dynamic
;
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
2
CHARACTER
SET
=
utf8
COLLATE
=
utf8_general_ci
ROW_FORMAT
=
Compact
;
-- ----------------------------
-- Table structure for mnt_server_account
-- ----------------------------
-- ----------------------------
DROP
TABLE
IF
EXISTS
`mnt_server_account`
;
-- Table structure for monitor_server
CREATE
TABLE
`mnt_server_account`
(
-- ----------------------------
`id`
varchar
(
255
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NOT
NULL
COMMENT
'编号'
,
DROP
TABLE
IF
EXISTS
`monitor_server`
;
`account`
varchar
(
255
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NULL
DEFAULT
NULL
COMMENT
'账户'
,
CREATE
TABLE
`monitor_server`
(
`id`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`cpu_core`
int
(
11
)
NULL
DEFAULT
NULL
COMMENT
'CPU内核数'
,
`cpu_rate`
double
NULL
DEFAULT
NULL
COMMENT
'CPU使用率'
,
`disk_total`
double
NULL
DEFAULT
NULL
COMMENT
'磁盘总量'
,
`disk_used`
double
NULL
DEFAULT
NULL
COMMENT
'磁盘使用量'
,
`mem_total`
double
NULL
DEFAULT
NULL
COMMENT
'内存总数'
,
`mem_used`
double
NULL
DEFAULT
NULL
COMMENT
'内存使用量'
,
`name`
varchar
(
255
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NULL
DEFAULT
NULL
COMMENT
'名称'
,
`name`
varchar
(
255
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NULL
DEFAULT
NULL
COMMENT
'名称'
,
`password`
varchar
(
255
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NULL
DEFAULT
NULL
COMMENT
'密码'
,
`port`
int
(
11
)
NULL
DEFAULT
NULL
COMMENT
'访问端口'
,
`sort`
int
(
11
)
NULL
DEFAULT
NULL
COMMENT
'排序'
,
`state`
varchar
(
255
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NULL
DEFAULT
NULL
COMMENT
'状态'
,
`swap_total`
double
NULL
DEFAULT
NULL
COMMENT
'交换区总量'
,
`swap_used`
double
NULL
DEFAULT
NULL
COMMENT
'交换区使用量'
,
`address`
varchar
(
255
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NOT
NULL
COMMENT
'服务地址'
,
PRIMARY
KEY
(
`id`
)
USING
BTREE
PRIMARY
KEY
(
`id`
)
USING
BTREE
)
ENGINE
=
InnoDB
CHARACTER
SET
=
utf8
COLLATE
=
utf8_general_ci
ROW_FORMAT
=
Dynamic
;
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
2
CHARACTER
SET
=
utf8
COLLATE
=
utf8_general_ci
ROW_FORMAT
=
Compact
;
\ No newline at end of file
sql/eladmin.sql
浏览文件 @
0cbc6e55
此差异已折叠。
点击以展开。
sql/脚本如何选择.txt
0 → 100644
浏览文件 @
0cbc6e55
1、eladmin.sql 为 eladmin 完整的sql脚本,适合于第一次导入脚本的用户
2、eladmin-gen.sql 为 eladmin 代码生成模块更新的sql脚本
3、eladmin-mnt.sql 为 eladmin 运维管理模块更新的sql脚本
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录