mirror of
https://gitee.com/raoxy/kongx.git
synced 2025-07-10 00:00:02 +08:00
1、增加2.1.0版本sql脚本
2、更新版本号为2.1.0
This commit is contained in:
parent
6212311f68
commit
a7cebff190
@ -2,7 +2,7 @@ FROM openjdk:8-jre-alpine
|
||||
|
||||
|
||||
ENV KONGX_RUN_MODE "Docker"
|
||||
ENV VERSION 2.0.2
|
||||
ENV VERSION 2.1.0
|
||||
ENV SERVER_PORT 8095
|
||||
|
||||
RUN \
|
||||
|
@ -41,9 +41,21 @@ CREATE TABLE `kongx_operation_log` (
|
||||
KEY `idx_target_hash` (`target`) USING BTREE
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=335 DEFAULT CHARSET=utf8;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of kongx_operation_log
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `kongx_service_pipeline`;
|
||||
CREATE TABLE `kongx_service_pipeline` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`name` varchar(1024) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '用户组名称',
|
||||
`create_at` timestamp NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`creator` varchar(255) DEFAULT NULL COMMENT '创建人',
|
||||
`modifier` varchar(255) DEFAULT NULL COMMENT '修改人',
|
||||
`modify_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
|
||||
`remark` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '备注',
|
||||
`link_list` json DEFAULT NULL,
|
||||
`node_list` json DEFAULT NULL,
|
||||
`origin` json DEFAULT NULL,
|
||||
`profile` varchar(255) DEFAULT NULL COMMENT '所属环境',
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for kongx_server_config
|
||||
@ -205,6 +217,16 @@ INSERT INTO `kongx_system_function` VALUES ('64', '60', 'certificate_view', '查
|
||||
INSERT INTO `kongx_system_function` VALUES ('65', '60', 'certificate_add', '新增certificate', '', '', '', 'y', 'point', 'kongx', '999');
|
||||
INSERT INTO `kongx_system_function` VALUES ('66', '60', 'certificate_update', '修改certificate', '', '', '', 'y', 'point', 'kongx', '999');
|
||||
INSERT INTO `kongx_system_function` VALUES ('67', '60', 'certificate_delete', '删除certificate', '', '', '', 'y', 'point', 'kongx', '999');
|
||||
INSERT INTO `kongx_system_function` VALUES ('68', '-1', 'gateway-pipeline', '网关流水线', 'icon-pipeline', '', '', 'y', 'menu', 'kongx', '2');
|
||||
INSERT INTO `kongx_system_function` VALUES ('69', '68', 'pipeline', 'Pipeline', 'icon-pipeline', 'views/gateway/flow/index', 'pipeline', 'y', 'menu', 'kongx', '1');
|
||||
INSERT INTO `kongx_system_function` VALUES ('70', '69', 'add_pipeline', '新增流水线', '', '', '', 'y', 'point', 'kongx', '999');
|
||||
INSERT INTO `kongx_system_function` VALUES ('71', '69', 'update_pipeline', '更新流水线', '', '', '', 'y', 'point', 'kongx', '999');
|
||||
INSERT INTO `kongx_system_function` VALUES ('72', '69', 'remove_pipeline', '删除流水线', '', '', '', 'y', 'point', 'kongx', '999');
|
||||
INSERT INTO `kongx_system_function` VALUES ('73', '69', 'config_pipeline', '配置流水线', '', '', '', 'y', 'point', 'kongx', '999');
|
||||
INSERT INTO `kongx_system_function` VALUES ('74', '69', 'view_pipeline', '查看流水线', '', '', '', 'y', 'point', 'kongx', '999');
|
||||
INSERT INTO `kongx_system_function` VALUES ('75', '69', 'view_config_pipeline', '查看流水线配置', '', '', '', 'y', 'point', 'kongx', '999');
|
||||
|
||||
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for kongx_system_profile
|
||||
|
@ -1,8 +1,28 @@
|
||||
## 升级向导
|
||||
# 2.1.0 发布(2020/12/01)
|
||||
### 1. 升级要点
|
||||
> 1. 增加网关流水线功能
|
||||
> 2. 修复网关插件表格显示错误问题
|
||||
### 2. 直接升级到2.1.0
|
||||
参考Kongx [Quick Start](https://www.kancloud.cn/raoxiaoyan/kongx/1984323)
|
||||
|
||||
### 3. 2.0.0升级到2.1.0
|
||||
3.1、 下载2.0.0的kongx安装包,具体安装步骤参考 [Quick Start](https://www.kancloud.cn/raoxiaoyan/kongx/1984323)
|
||||
|
||||
3.2、 下载数据库升级脚本,[2.0.1 to 2.1.0.sql](upgrade/2.0.1to2.1.0log.md),在原2.0.1版本数据库基础上执行即可。
|
||||
### 4. 1.2.x 升级到2.1.0
|
||||
4.1 先由1.2.x升级到2.0.0
|
||||
|
||||
4.2 再由2.0.0升级到2.1.0,参照 [3. 2.0.0升级到2.1.0]的升级步骤
|
||||
# 2.0.2 发布(2020/11/26)
|
||||
> 1. 修复issue#I26XHN:Kong 1.3.1 下添加路由失败
|
||||
> 2. 修复插件下拉列表无法回显问题
|
||||
|
||||
直接升级即可
|
||||
# 2.0.1 发布(2020/11/18)
|
||||
### 1. 升级要点
|
||||
>
|
||||
>
|
||||
> 1. 增加kong shell支持
|
||||
> 2. 优化日志功能
|
||||
### 2. 直接升级2.0.1
|
||||
参考Kongx [Quick Start](https://www.kancloud.cn/raoxiaoyan/kongx/1984323)
|
||||
### 3. 2.0.0升级到2.0.1
|
||||
|
@ -20,14 +20,14 @@ where not EXISTS (select * from kongx_system_role_function b where a.function_id
|
||||
|
||||
|
||||
insert into kongx_system_role_function(role_id,half_checked,function_id)
|
||||
select * from (
|
||||
select '2' role_id,'y' half_checked,'-1' as function_id
|
||||
union
|
||||
select '2' role_id,'y' half_checked,id as function_id from kongx_system_function where name in ('Gateway','Upstreams','Services','Routes','Plugins','Kong Shell','Consumers','Certificates','日志管理')
|
||||
union
|
||||
select '2' role_id,'n' half_checked,id as function_id from kongx_system_function where code in ('service_view','upstream_view','route_view','plugin_view','consumer_view','certificate_view')
|
||||
union
|
||||
select '2' role_id,'n' half_checked,id as function_id from kongx_system_function where name='操作日志'
|
||||
) a
|
||||
where not EXISTS (select * from kongx_system_role_function b where a.function_id=b.function_id and b.role_id=a.role_id);
|
||||
select * from (
|
||||
select '2' role_id,'y' half_checked,'-1' as function_id
|
||||
union
|
||||
select '2' role_id,'y' half_checked,id as function_id from kongx_system_function where name in ('Gateway','Upstreams','Services','Routes','Plugins','Kong Shell','Consumers','Certificates','日志管理')
|
||||
union
|
||||
select '2' role_id,'n' half_checked,id as function_id from kongx_system_function where code in ('service_view','upstream_view','route_view','plugin_view','consumer_view','certificate_view')
|
||||
union
|
||||
select '2' role_id,'n' half_checked,id as function_id from kongx_system_function where name='操作日志'
|
||||
) a
|
||||
where not EXISTS (select * from kongx_system_role_function b where a.function_id=b.function_id and b.role_id=a.role_id);
|
||||
```
|
51
docs/upgrade/2.0.1to2.1.0log.md
Normal file
51
docs/upgrade/2.0.1to2.1.0log.md
Normal file
@ -0,0 +1,51 @@
|
||||
# 2.0.1 升级2.1.0 sql脚本
|
||||
```sql
|
||||
ALTER TABLE kongx_operation_log ADD ip VARCHAR (64);
|
||||
CREATE TABLE `kongx_service_pipeline` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`name` varchar(1024) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '用户组名称',
|
||||
`create_at` timestamp NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`creator` varchar(255) DEFAULT NULL COMMENT '创建人',
|
||||
`modifier` varchar(255) DEFAULT NULL COMMENT '修改人',
|
||||
`modify_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
|
||||
`remark` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '备注',
|
||||
`link_list` json DEFAULT NULL,
|
||||
`node_list` json DEFAULT NULL,
|
||||
`origin` json DEFAULT NULL,
|
||||
`profile` varchar(255) DEFAULT NULL COMMENT '所属环境',
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
|
||||
INSERT INTO `kongx_system_function` ( `parent_id`, `code`, `name`, `menu_icon`, `visit_view`, `visit_path`, `use_yn`, `menu_type`, `application_code`, `sort_order`) VALUES ( '-1', 'gateway-pipeline', '网关流水线', 'icon-pipeline', '', '', 'y', 'menu', 'kongx', '2');
|
||||
|
||||
INSERT INTO `kongx_system_function` (`parent_id`, `code`, `name`, `menu_icon`, `visit_view`, `menu_type`, `application_code`)
|
||||
select (select id from kongx_system_function where code='gateway-pipeline' and parent_id=-1) as parent_id ,'pipeline' as code,'Pipeline' as name,'icon-pipeline' as menu_icon ,'views/gateway/flow/index' as visit_view ,
|
||||
'menu' as menu_type ,'kongx' as application_code;
|
||||
|
||||
INSERT INTO `kongx_system_function` (`parent_id`, `code`, `name`, `menu_type`, `application_code`)
|
||||
select (select id from kongx_system_function where code='pipeline') as parent_id ,'add_pipeline' as code,'新增流水线' as name,'point' as menu_type ,'kongx' as application_code
|
||||
union
|
||||
select (select id from kongx_system_function where code='pipeline') as parent_id ,'update_pipeline' as code,'更新流水线' as name,'point' as menu_type ,'kongx' as application_code
|
||||
union
|
||||
select (select id from kongx_system_function where code='pipeline') as parent_id ,'remove_pipeline' as code,'删除流水线' as name,'point' as menu_type ,'kongx' as application_code
|
||||
union
|
||||
select (select id from kongx_system_function where code='pipeline') as parent_id ,'config_pipeline' as code,'配置流水线' as name,'point' as menu_type ,'kongx' as application_code
|
||||
union
|
||||
select (select id from kongx_system_function where code='pipeline') as parent_id ,'view_pipeline' as code,'查看流水线' as name,'point' as menu_type ,'kongx' as application_code
|
||||
union
|
||||
select (select id from kongx_system_function where code='pipeline') as parent_id ,'view_config_pipeline' as code,'查看流水线配置' as name,'point' as menu_type ,'kongx' as application_code;
|
||||
|
||||
|
||||
insert into kongx_system_role_function(role_id,half_checked,function_id)
|
||||
select * from (
|
||||
select '1' role_id,'n' half_checked,'-1' as function_id
|
||||
union all
|
||||
select '1' role_id,'n' half_checked,id as function_id from kongx_system_function
|
||||
) a
|
||||
where not EXISTS (select * from kongx_system_role_function b where a.function_id=b.function_id and b.role_id=a.role_id);
|
||||
|
||||
insert into kongx_system_role_function(role_id,half_checked,function_id)
|
||||
select * from (
|
||||
select '2' role_id,'n' half_checked,id as function_id from kongx_system_function where code like '%pipeline'
|
||||
) a
|
||||
where not EXISTS (select * from kongx_system_role_function b where a.function_id=b.function_id and b.role_id=a.role_id);
|
||||
```
|
@ -23,7 +23,7 @@ public class KongxBanner implements Banner {
|
||||
|
||||
@Override
|
||||
public void printBanner(Environment environment, Class<?> sourceClass, PrintStream printStream) {
|
||||
this.print(" :: Support kong :: ", "(v2.0.0)", printStream);
|
||||
this.print(" :: Support kong :: ", "(v2.1.0)", printStream);
|
||||
printStream.println(BANNER);
|
||||
String copyright = " :: Copyright@2020 :: ";
|
||||
String version = SpringBootVersion.getVersion();
|
||||
|
File diff suppressed because one or more lines are too long
@ -51,4 +51,4 @@
|
||||
.avue-home__sub-title {
|
||||
color: #ABABAB;
|
||||
font-size: 12px;
|
||||
}</style><link href=css/chunk-05d1190a.889d7b72.css rel=prefetch><link href=css/chunk-5ffe123b.541b2dcd.css rel=prefetch><link href=css/page.5cf41a71.css rel=prefetch><link href=js/chunk-05d1190a.b42234c2.js rel=prefetch><link href=js/chunk-2d0e4caf.fea686c4.js rel=prefetch><link href=js/chunk-5ffe123b.ebbf3c2a.js rel=prefetch><link href=js/page.114cf767.js rel=prefetch><link href=js/views.4d62ea9b.js rel=prefetch><link href=css/app.21cbf1c9.css rel=preload as=style><link href=css/chunk-vendors.425c1559.css rel=preload as=style><link href=js/app.4b7f7c81.js rel=preload as=script><link href=js/chunk-vendors.a94c5304.js rel=preload as=script><link href=css/chunk-vendors.425c1559.css rel=stylesheet><link href=css/app.21cbf1c9.css rel=stylesheet></head><body><noscript><strong>很抱歉,如果没有 JavaScript 支持,Avue-cli 将不能正常工作。请启用浏览器的 JavaScript 然后继续。</strong></noscript><div id=app><div class=avue-home><div class=avue-home__main><img class=avue-home__loading src=./svg/loading-spin.svg alt=loading><div class=avue-home__title>正在加载资源</div><div class=avue-home__sub-title>初次加载资源可能需要较多时间 请耐心等待</div></div><div class=avue-home__footer><a href=https://gitee.com/raoxy/kongx target=_blank>https://gitee.com/raoxy/kongx</a></div></div></div><script src=util/aes.js charset=utf-8></script><script src=cdn/vue/2.6.10/vue.min.js charset=utf-8></script><script src=cdn/vuex/3.0.1/vuex.min.js charset=utf-8></script><script src=cdn/vue-router/3.0.1/vue-router.min.js charset=utf-8></script><script src=cdn/axios/1.0.0/axios.min.js charset=utf-8></script><script src=cdn/element-ui/2.13.0/index.js charset=utf-8></script><script src=cdn/xlsx/0.14.1/xlsx.full.min.js charset=utf-8></script><script src=cdn/fileSaver/1.3.8/FileSaver.min.js charset=utf-8></script><script src=cdn/lodash/4.13.1/lodash.min.js charset=utf-8></script><script src=js/chunk-vendors.a94c5304.js></script><script src=js/app.4b7f7c81.js></script></body></html>
|
||||
}</style><link href=css/chunk-05d1190a.889d7b72.css rel=prefetch><link href=css/chunk-705d6594.0b32e874.css rel=prefetch><link href=css/page.e7e8c934.css rel=prefetch><link href=js/chunk-05d1190a.b42234c2.js rel=prefetch><link href=js/chunk-2d0e4caf.fea686c4.js rel=prefetch><link href=js/chunk-705d6594.ef883edb.js rel=prefetch><link href=js/page.114cf767.js rel=prefetch><link href=js/views.4d62ea9b.js rel=prefetch><link href=css/app.770e7075.css rel=preload as=style><link href=css/chunk-vendors.425c1559.css rel=preload as=style><link href=js/app.615bdc01.js rel=preload as=script><link href=js/chunk-vendors.a94c5304.js rel=preload as=script><link href=css/chunk-vendors.425c1559.css rel=stylesheet><link href=css/app.770e7075.css rel=stylesheet></head><body><noscript><strong>很抱歉,如果没有 JavaScript 支持,Avue-cli 将不能正常工作。请启用浏览器的 JavaScript 然后继续。</strong></noscript><div id=app><div class=avue-home><div class=avue-home__main><img class=avue-home__loading src=./svg/loading-spin.svg alt=loading><div class=avue-home__title>正在加载资源</div><div class=avue-home__sub-title>初次加载资源可能需要较多时间 请耐心等待</div></div><div class=avue-home__footer><a href=https://gitee.com/raoxy/kongx target=_blank>https://gitee.com/raoxy/kongx</a></div></div></div><script src=util/aes.js charset=utf-8></script><script src=cdn/vue/2.6.10/vue.min.js charset=utf-8></script><script src=cdn/vuex/3.0.1/vuex.min.js charset=utf-8></script><script src=cdn/vue-router/3.0.1/vue-router.min.js charset=utf-8></script><script src=cdn/axios/1.0.0/axios.min.js charset=utf-8></script><script src=cdn/element-ui/2.13.0/index.js charset=utf-8></script><script src=cdn/xlsx/0.14.1/xlsx.full.min.js charset=utf-8></script><script src=cdn/fileSaver/1.3.8/FileSaver.min.js charset=utf-8></script><script src=cdn/lodash/4.13.1/lodash.min.js charset=utf-8></script><script src=js/chunk-vendors.a94c5304.js></script><script src=js/app.615bdc01.js></script></body></html>
|
File diff suppressed because one or more lines are too long
1
kongx-serve/src/main/resources/static/js/app.615bdc01.js
Normal file
1
kongx-serve/src/main/resources/static/js/app.615bdc01.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
395
scripts/db/mysql/kongx-2.1.0.sql
Normal file
395
scripts/db/mysql/kongx-2.1.0.sql
Normal file
@ -0,0 +1,395 @@
|
||||
/*
|
||||
Navicat MySQL Data Transfer
|
||||
|
||||
Source Server : 192.168.66.1
|
||||
Source Server Version : 50725
|
||||
Source Host : 192.168.66.1:3306
|
||||
Source Database : kongx_serve
|
||||
|
||||
Target Server Type : MYSQL
|
||||
Target Server Version : 50725
|
||||
File Encoding : 65001
|
||||
|
||||
Date: 2020-11-02 14:12:14
|
||||
*/
|
||||
|
||||
SET FOREIGN_KEY_CHECKS=0;
|
||||
|
||||
# Create Database
|
||||
# ------------------------------------------------------------
|
||||
|
||||
CREATE DATABASE IF NOT EXISTS kongx_serve DEFAULT CHARACTER SET = utf8mb4;
|
||||
|
||||
Use kongx_serve;
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for kongx_operation_log
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `kongx_operation_log`;
|
||||
CREATE TABLE `kongx_operation_log` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`userId` varchar(64) DEFAULT NULL,
|
||||
`profile` varchar(32) DEFAULT NULL,
|
||||
`creator` varchar(255) DEFAULT NULL,
|
||||
`operation_type` varchar(255) DEFAULT NULL,
|
||||
`content` json DEFAULT NULL,
|
||||
`target` varchar(255) DEFAULT NULL,
|
||||
`ip` varchar(64) DEFAULT NULL,
|
||||
`create_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
|
||||
`remark` varchar(2048) DEFAULT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `idx_target_hash` (`target`) USING BTREE
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=335 DEFAULT CHARSET=utf8;
|
||||
|
||||
DROP TABLE IF EXISTS `kongx_service_pipeline`;
|
||||
CREATE TABLE `kongx_service_pipeline` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`name` varchar(1024) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '用户组名称',
|
||||
`create_at` timestamp NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`creator` varchar(255) DEFAULT NULL COMMENT '创建人',
|
||||
`modifier` varchar(255) DEFAULT NULL COMMENT '修改人',
|
||||
`modify_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
|
||||
`remark` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '备注',
|
||||
`link_list` json DEFAULT NULL,
|
||||
`node_list` json DEFAULT NULL,
|
||||
`origin` json DEFAULT NULL,
|
||||
`profile` varchar(255) DEFAULT NULL COMMENT '所属环境',
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for kongx_server_config
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `kongx_server_config`;
|
||||
CREATE TABLE `kongx_server_config` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`config_key` varchar(255) DEFAULT NULL,
|
||||
`config_value` text,
|
||||
`config_type` varchar(255) DEFAULT NULL COMMENT '参数类型',
|
||||
`comment` varchar(2048) DEFAULT NULL,
|
||||
`create_at` timestamp NULL DEFAULT NULL,
|
||||
`creator` varchar(255) DEFAULT NULL,
|
||||
`modifier` varchar(255) DEFAULT NULL,
|
||||
`modify_at` varchar(255) DEFAULT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `unique_config_key` (`config_key`) USING BTREE
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=utf8;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of kongx_server_config
|
||||
-- ----------------------------
|
||||
INSERT INTO `kongx_server_config` VALUES ('1', 'super_admin', 'admin,zhangshan', 'system', '超级管理员', '2019-12-12 16:34:07', 'admin', null, '2019-12-12 16:33:58.156');
|
||||
INSERT INTO `kongx_server_config` VALUES ('6', 'envs', '[\n {\n \"name\": \"开发环境\",\n \"code\": \"dev\",\n \"deployType\": \"beta\",\n \"profiles\": [\n {\n \"profile\":\"f\",\n \"code\":\"betaf\"\n }\n ]\n },\n {\n \"name\": \"测试环境\",\n \"code\": \"beta\",\n \"deployType\": \"beta\",\n \"profiles\": [\n {\n \"profile\":\"a\",\n \"code\":\"betaa\"\n }]\n }]\n', 'system', '环境列表,默认支持', '2019-12-16 17:06:27', null, null, '2019-12-16 16:37:53.122');
|
||||
INSERT INTO `kongx_server_config` VALUES ('7', 'envs_extension', '[]', 'extension', '环境列表的扩展配置', '2019-12-16 16:09:21', null, null, '2019-12-16 16:08:59.814');
|
||||
INSERT INTO `kongx_server_config` VALUES ('13', 'default_domains', '[\"examples.com\",\"a.examples.com\"]', null, '默认的网关域名列表', '2020-01-19 11:43:34', null, null, '2020-01-19 11:43:45.75');
|
||||
INSERT INTO `kongx_server_config` VALUES ('20', 'config_type', '[{\"label\":\"内置参数\",\"value\":\"system\"},{\"label\":\"扩展参数\",\"value\":\"extension\"}]', 'system', '系统内置参数', '2020-04-09 16:36:52', null, null, '2020-04-09 19:19:56.202');
|
||||
INSERT INTO `kongx_server_config` VALUES ('21', 'config_type_extension', '[]', 'extension', '扩展参数类型', '2020-04-09 19:31:05', null, null, '2020-04-09 19:31:05.433');
|
||||
-- ----------------------------
|
||||
-- Table structure for kongx_sync_config
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `kongx_sync_config`;
|
||||
CREATE TABLE `kongx_sync_config` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`sync_no` varchar(255) DEFAULT NULL,
|
||||
`services` json DEFAULT NULL,
|
||||
`dest_clients` json DEFAULT NULL,
|
||||
`comment` varchar(4000) DEFAULT NULL,
|
||||
`status` varchar(255) DEFAULT NULL,
|
||||
`creator` varchar(255) DEFAULT NULL,
|
||||
`create_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
|
||||
`data_type` varchar(255) DEFAULT NULL,
|
||||
`policy` varchar(255) DEFAULT NULL,
|
||||
`src_client` json DEFAULT NULL,
|
||||
`log_type` int(11) DEFAULT '0',
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of kongx_sync_config
|
||||
-- ----------------------------
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for kongx_sync_log
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `kongx_sync_log`;
|
||||
CREATE TABLE `kongx_sync_log` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`sync_no` varchar(255) DEFAULT NULL,
|
||||
`service` varchar(255) DEFAULT NULL,
|
||||
`src_client` varchar(255) DEFAULT NULL,
|
||||
`dest_client` varchar(255) DEFAULT NULL,
|
||||
`creator` varchar(255) DEFAULT NULL,
|
||||
`create_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
|
||||
`status` varchar(255) DEFAULT NULL,
|
||||
`content` json DEFAULT NULL,
|
||||
`comment` varchar(2048) DEFAULT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of kongx_sync_log
|
||||
-- ----------------------------
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for kongx_system_function
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `kongx_system_function`;
|
||||
CREATE TABLE `kongx_system_function` (
|
||||
`id` int(64) NOT NULL AUTO_INCREMENT,
|
||||
`parent_id` bigint(20) DEFAULT NULL COMMENT '父ID',
|
||||
`code` varchar(64) DEFAULT NULL COMMENT '编码',
|
||||
`name` varchar(64) NOT NULL COMMENT '菜单名称',
|
||||
`menu_icon` varchar(512) DEFAULT NULL COMMENT '图标icon',
|
||||
`visit_view` varchar(2048) DEFAULT NULL COMMENT '访问视图',
|
||||
`visit_path` varchar(1024) DEFAULT NULL COMMENT '访问路径',
|
||||
`use_yn` varchar(6) NOT NULL DEFAULT 'y' COMMENT '是否可用n-不可用,y-可用',
|
||||
`menu_type` varchar(20) NOT NULL DEFAULT 'menu' COMMENT '菜单类型(menu=菜单,point=功能点)',
|
||||
`application_code` varchar(64) NOT NULL DEFAULT 'kongx' COMMENT '所属系统code',
|
||||
`sort_order` int(11) DEFAULT '0' COMMENT '排序,小的在前面',
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `nh_parentid` (`parent_id`) USING BTREE
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=68 DEFAULT CHARSET=utf8mb4 COMMENT='系统菜单表';
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of kongx_system_function
|
||||
-- ----------------------------
|
||||
INSERT INTO `kongx_system_function` VALUES ('1', '-1', '', '首页', 'icon-shouye', 'page/wel', '/home', 'y', 'menu', 'kongx', '1');
|
||||
INSERT INTO `kongx_system_function` VALUES ('4', '5', '', 'Kong Shell', 'icon-shell', 'views/gateway/shell/index', 'shell', 'y', 'menu', 'kongx', '9');
|
||||
INSERT INTO `kongx_system_function` VALUES ('5', '-1', null, 'Gateway', 'icon-gateway', '', '/gateway', 'y', 'menu', 'kongx', '4');
|
||||
INSERT INTO `kongx_system_function` VALUES ('6', '5', '', 'Upstreams', 'icon-gateway', 'views/gateway/upstream/index', 'upstream', 'y', 'menu', 'kongx', '2');
|
||||
INSERT INTO `kongx_system_function` VALUES ('7', '5', null, 'Services', 'icon-services', 'views/gateway/service/index', 'service', 'y', 'menu', 'kongx', '3');
|
||||
INSERT INTO `kongx_system_function` VALUES ('8', '5', '', 'Routes', 'icon-route', 'views/gateway/routing/index', 'routing', 'y', 'menu', 'kongx', '4');
|
||||
INSERT INTO `kongx_system_function` VALUES ('9', '5', '', 'Plugins', 'icon-plugin', 'views/gateway/plugin/index', 'plugin', 'y', 'menu', 'kongx', '5');
|
||||
INSERT INTO `kongx_system_function` VALUES ('10', '-1', '', '系统管理', 'icon-system', '', '/system', 'y', 'menu', 'kongx', '6');
|
||||
INSERT INTO `kongx_system_function` VALUES ('11', '10', null, '用户管理', 'icon-yonghuguanli', 'views/admin/user/index', 'user', 'y', 'menu', 'kongx', '1');
|
||||
INSERT INTO `kongx_system_function` VALUES ('12', '10', null, '角色管理', 'icon-quanxianguanli', 'views/admin/role/index', 'role', 'y', 'menu', 'kongx', '2');
|
||||
INSERT INTO `kongx_system_function` VALUES ('13', '10', null, '菜单管理', 'icon-caidanguanli', 'views/admin/menu/index', 'menu', 'y', 'menu', 'kongx', '4');
|
||||
INSERT INTO `kongx_system_function` VALUES ('14', '-1', null, '参数管理', 'icon-canshuguanli', '', '/operating', 'y', 'menu', 'kongx', '7');
|
||||
INSERT INTO `kongx_system_function` VALUES ('15', '14', null, '环境管理', 'icon-huanjingguanli', 'views/operating/env/index', 'envs', 'y', 'menu', 'kongx', '1');
|
||||
INSERT INTO `kongx_system_function` VALUES ('16', '14', null, '系统参数', 'icon-xitongcanshu', 'views/operating/params/index', 'params', 'y', 'menu', 'kongx', '2');
|
||||
INSERT INTO `kongx_system_function` VALUES ('17', '-1', null, '日志管理', 'icon-rizhiguanli1', '', '/audit', 'y', 'menu', 'kongx', '8');
|
||||
INSERT INTO `kongx_system_function` VALUES ('18', '17', '', '同步日志', 'icon-sync', 'views/operating/synclog/index', 'synclog', 'y', 'menu', 'kongx', '3');
|
||||
INSERT INTO `kongx_system_function` VALUES ('19', '17', null, '操作日志', 'icon-log', 'views/operating/log/index', 'operationlog', 'y', 'menu', 'kongx', '1');
|
||||
INSERT INTO `kongx_system_function` VALUES ('20', '6', 'upstream_add', '新增上游代理', '', '', '', 'y', 'point', 'kongx', '1');
|
||||
INSERT INTO `kongx_system_function` VALUES ('21', '6', 'upstream_update', '修改上游代理', '', '', '', 'y', 'point', 'kongx', '2');
|
||||
INSERT INTO `kongx_system_function` VALUES ('22', '6', 'upstream_delete', '删除上游代理', '', '', '', 'y', 'point', 'kongx', '999');
|
||||
INSERT INTO `kongx_system_function` VALUES ('23', '7', 'service_add', '新增服务', '', '', '', 'y', 'point', 'kongx', '1');
|
||||
INSERT INTO `kongx_system_function` VALUES ('24', '7', 'service_update', '修改服务', '', '', '', 'y', 'point', 'kongx', '2');
|
||||
INSERT INTO `kongx_system_function` VALUES ('25', '7', 'service_delete', '删除服务', '', '', '', 'y', 'point', 'kongx', '999');
|
||||
INSERT INTO `kongx_system_function` VALUES ('26', '7', 'service_sync', '同步服务', '', '', '', 'y', 'point', 'kongx', '4');
|
||||
INSERT INTO `kongx_system_function` VALUES ('27', '8', 'route_update', '更新路由', '', '', '', 'y', 'point', 'kongx', '999');
|
||||
INSERT INTO `kongx_system_function` VALUES ('28', '8', 'route_delete', '删除路由', '', '', '', 'y', 'point', 'kongx', '999');
|
||||
INSERT INTO `kongx_system_function` VALUES ('29', '9', 'plugin_update', '更新插件', '', '', '', 'y', 'point', 'kongx', '999');
|
||||
INSERT INTO `kongx_system_function` VALUES ('30', '9', 'plugin_delete', '删除插件', '', '', '', 'y', 'point', 'kongx', '999');
|
||||
INSERT INTO `kongx_system_function` VALUES ('31', '9', 'plugin_add', '新增插件', '', '', '', 'y', 'point', 'kongx', '1');
|
||||
INSERT INTO `kongx_system_function` VALUES ('32', '11', 'user_authority', '用户授权', '', '', '', 'y', 'point', 'kongx', '999');
|
||||
INSERT INTO `kongx_system_function` VALUES ('33', '13', 'menu_add', '新建菜单', '', '', '', 'y', 'point', 'kongx', '999');
|
||||
INSERT INTO `kongx_system_function` VALUES ('34', '13', 'menu_delete', '删除菜单', '', '', '', 'y', 'point', 'kongx', '999');
|
||||
INSERT INTO `kongx_system_function` VALUES ('35', '13', 'menu_update', '修改菜单', '', '', '', 'y', 'point', 'kongx', '999');
|
||||
INSERT INTO `kongx_system_function` VALUES ('36', '12', 'role_add', '新建角色', '', '', '', 'y', 'point', 'kongx', '999');
|
||||
INSERT INTO `kongx_system_function` VALUES ('37', '12', 'role_update', '修改角色', '', '', '', 'y', 'point', 'kongx', '999');
|
||||
INSERT INTO `kongx_system_function` VALUES ('38', '12', 'role_config', '配置权限', '', '', '', 'y', 'point', 'kongx', '999');
|
||||
INSERT INTO `kongx_system_function` VALUES ('39', '7', 'service_view', '查看服务', '', '', '', 'y', 'point', 'kongx', '999');
|
||||
INSERT INTO `kongx_system_function` VALUES ('40', '6', 'upstream_view', '查看上游代理', '', '', '', 'y', 'point', 'kongx', '999');
|
||||
INSERT INTO `kongx_system_function` VALUES ('41', '8', 'route_view', '查看路由', '', '', '', 'y', 'point', 'kongx', '999');
|
||||
INSERT INTO `kongx_system_function` VALUES ('42', '9', 'plugin_view', '查看插件', '', '', '', 'y', 'point', 'kongx', '1');
|
||||
INSERT INTO `kongx_system_function` VALUES ('43', '11', 'user_view', '查看用户列表', '', '', '', 'y', 'point', 'kongx', '999');
|
||||
INSERT INTO `kongx_system_function` VALUES ('44', '13', 'menu_view', '查看菜单', '', '', '', 'y', 'point', 'kongx', '999');
|
||||
INSERT INTO `kongx_system_function` VALUES ('45', '12', 'role_view', '查看角色', '', '', '', 'y', 'point', 'kongx', '999');
|
||||
INSERT INTO `kongx_system_function` VALUES ('46', '16', 'params_view', '查看系统参数', '', '', '', 'y', 'point', 'kongx', '999');
|
||||
INSERT INTO `kongx_system_function` VALUES ('47', '10', null, '用户组管理', 'icon-yonghuzuguanli', 'views/admin/usergroup/index', 'group', 'y', 'menu', 'kongx', '3');
|
||||
INSERT INTO `kongx_system_function` VALUES ('48', '47', 'usergroup_add', '新增用户组', '', '', '', 'y', 'point', 'kongx', '2');
|
||||
INSERT INTO `kongx_system_function` VALUES ('49', '47', 'usergroup_update', '修改用户组', '', '', '', 'y', 'point', 'kongx', '2');
|
||||
INSERT INTO `kongx_system_function` VALUES ('50', '47', 'usergroup_delete', '删除用户组', '', '', '', 'y', 'point', 'kongx', '3');
|
||||
INSERT INTO `kongx_system_function` VALUES ('51', '47', 'usergroup_view', '查看用户组', '', '', '', 'y', 'point', 'kongx', '1');
|
||||
INSERT INTO `kongx_system_function` VALUES ('52', '47', 'usergroup_config', '用户组配置', '', '', '', 'y', 'point', 'kongx', '4');
|
||||
INSERT INTO `kongx_system_function` VALUES ('53', '5', '', 'Consumers', 'icon-consumer', 'views/gateway/consumer/index', '', 'y', 'menu', 'kongx', '6');
|
||||
INSERT INTO `kongx_system_function` VALUES ('54', '53', 'consumer_view', '查看consumer', '', '', '', 'y', 'point', 'kongx', '999');
|
||||
INSERT INTO `kongx_system_function` VALUES ('55', '16', 'params_add', '新增参数', '', '', '', 'y', 'point', 'kongx', '999');
|
||||
INSERT INTO `kongx_system_function` VALUES ('56', '16', 'params_update', '修改参数', '', '', '', 'y', 'point', 'kongx', '999');
|
||||
INSERT INTO `kongx_system_function` VALUES ('58', '15', 'manage_env', '环境维护', '', '', '', 'y', 'point', 'kongx', '999');
|
||||
INSERT INTO `kongx_system_function` VALUES ('59', '5', '', 'Snis', 'icon-sni', 'views/gateway/sni/index', 'snis', 'y', 'menu', 'kongx', '7');
|
||||
INSERT INTO `kongx_system_function` VALUES ('60', '5', '', 'Certificates', 'icon-certificate', 'views/gateway/certificate/index', 'certificate', 'y', 'menu', 'kongx', '8');
|
||||
INSERT INTO `kongx_system_function` VALUES ('61', '53', 'consumer_add', '新增consumer', '', '', '', 'y', 'point', 'kongx', '999');
|
||||
INSERT INTO `kongx_system_function` VALUES ('62', '53', 'consumer_update', '更新consumer', '', '', '', 'y', 'point', 'kongx', '999');
|
||||
INSERT INTO `kongx_system_function` VALUES ('63', '53', 'consumer_delete', '删除consumer', '', '', '', 'y', 'point', 'kongx', '999');
|
||||
INSERT INTO `kongx_system_function` VALUES ('64', '60', 'certificate_view', '查看certificate', '', '', '', 'y', 'point', 'kongx', '999');
|
||||
INSERT INTO `kongx_system_function` VALUES ('65', '60', 'certificate_add', '新增certificate', '', '', '', 'y', 'point', 'kongx', '999');
|
||||
INSERT INTO `kongx_system_function` VALUES ('66', '60', 'certificate_update', '修改certificate', '', '', '', 'y', 'point', 'kongx', '999');
|
||||
INSERT INTO `kongx_system_function` VALUES ('67', '60', 'certificate_delete', '删除certificate', '', '', '', 'y', 'point', 'kongx', '999');
|
||||
INSERT INTO `kongx_system_function` VALUES ('68', '-1', 'gateway-pipeline', '网关流水线', 'icon-pipeline', '', '', 'y', 'menu', 'kongx', '2');
|
||||
INSERT INTO `kongx_system_function` VALUES ('69', '68', 'pipeline', 'Pipeline', 'icon-pipeline', 'views/gateway/flow/index', 'pipeline', 'y', 'menu', 'kongx', '1');
|
||||
INSERT INTO `kongx_system_function` VALUES ('70', '69', 'add_pipeline', '新增流水线', '', '', '', 'y', 'point', 'kongx', '999');
|
||||
INSERT INTO `kongx_system_function` VALUES ('71', '69', 'update_pipeline', '更新流水线', '', '', '', 'y', 'point', 'kongx', '999');
|
||||
INSERT INTO `kongx_system_function` VALUES ('72', '69', 'remove_pipeline', '删除流水线', '', '', '', 'y', 'point', 'kongx', '999');
|
||||
INSERT INTO `kongx_system_function` VALUES ('73', '69', 'config_pipeline', '配置流水线', '', '', '', 'y', 'point', 'kongx', '999');
|
||||
INSERT INTO `kongx_system_function` VALUES ('74', '69', 'view_pipeline', '查看流水线', '', '', '', 'y', 'point', 'kongx', '999');
|
||||
INSERT INTO `kongx_system_function` VALUES ('75', '69', 'view_config_pipeline', '查看流水线配置', '', '', '', 'y', 'point', 'kongx', '999');
|
||||
|
||||
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for kongx_system_profile
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `kongx_system_profile`;
|
||||
CREATE TABLE `kongx_system_profile` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`profile_code` varchar(255) DEFAULT NULL COMMENT '环境编码',
|
||||
`name` varchar(255) DEFAULT NULL,
|
||||
`env` varchar(255) DEFAULT NULL COMMENT '所属环境',
|
||||
`deploy_type` varchar(255) DEFAULT NULL COMMENT '部署类型',
|
||||
`ab` varchar(255) DEFAULT NULL COMMENT '简称',
|
||||
`version` varchar(255) DEFAULT '' COMMENT 'kong版本号',
|
||||
`url` varchar(255) DEFAULT NULL,
|
||||
`extensions` varchar(4000) DEFAULT NULL,
|
||||
`create_at` timestamp NULL DEFAULT NULL,
|
||||
`profile` varchar(255) DEFAULT NULL,
|
||||
`creator` varchar(255) DEFAULT NULL,
|
||||
`remark` varchar(255) DEFAULT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `uh_profile_code` (`profile_code`) USING BTREE
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for kongx_system_role
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `kongx_system_role`;
|
||||
CREATE TABLE `kongx_system_role` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`code` varchar(64) DEFAULT NULL COMMENT '角色编码',
|
||||
`name` varchar(64) DEFAULT NULL COMMENT '角色名称',
|
||||
`role_type` varchar(32) DEFAULT NULL COMMENT '角色类型: roleType 菜单角色,数据权限角色',
|
||||
`sort_order` bigint(20) DEFAULT NULL COMMENT '排序',
|
||||
`use_yn` varchar(6) DEFAULT NULL COMMENT '是否可用n-不可用,y-可用',
|
||||
`remark` varchar(1024) DEFAULT NULL COMMENT '备注',
|
||||
`create_at` timestamp NULL DEFAULT NULL,
|
||||
`creator` varchar(255) CHARACTER SET utf8 DEFAULT NULL,
|
||||
`modifier` varchar(255) CHARACTER SET utf8 DEFAULT NULL COMMENT '修改人',
|
||||
`modify_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COMMENT='系统角色表';
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of kongx_system_role
|
||||
-- ----------------------------
|
||||
INSERT INTO `kongx_system_role` VALUES ('1', 'super_admin', '超级管理员', 'menu', null, 'y', null, '2020-05-11 16:00:00', 'admin', 'admin', '2020-09-28 15:05:49');
|
||||
INSERT INTO `kongx_system_role` VALUES ('2', 'domestic_consumer', '普通用户', 'menu', null, 'y', null, '2020-05-09 16:42:53', 'admin', 'admin', '2020-09-28 15:05:51');
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for kongx_system_role_function
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `kongx_system_role_function`;
|
||||
CREATE TABLE `kongx_system_role_function` (
|
||||
`id` int(64) NOT NULL AUTO_INCREMENT,
|
||||
`role_id` bigint(20) DEFAULT NULL COMMENT '角色Id',
|
||||
`half_checked` varchar(11) DEFAULT 'y' COMMENT '是否半选中',
|
||||
`function_id` bigint(20) DEFAULT NULL COMMENT '菜单id',
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=854 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='系统角色与菜单关系表';
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for kongx_system_user_role
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `kongx_system_user_role`;
|
||||
CREATE TABLE `kongx_system_user_role` (
|
||||
`id` int(64) NOT NULL AUTO_INCREMENT,
|
||||
`user_id` varchar(64) DEFAULT NULL COMMENT '用户Id',
|
||||
`role_id` bigint(20) DEFAULT NULL COMMENT '角色id',
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户与角色关系表';
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of kongx_system_user_role
|
||||
-- ----------------------------
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for kongx_user_group
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `kongx_user_group`;
|
||||
CREATE TABLE `kongx_user_group` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`name` varchar(1024) DEFAULT NULL COMMENT '用户组名称',
|
||||
`use_yn` varchar(255) DEFAULT NULL COMMENT '是否可用',
|
||||
`create_at` timestamp NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`creator` varchar(255) CHARACTER SET utf8 DEFAULT NULL COMMENT '创建人',
|
||||
`modifier` varchar(255) CHARACTER SET utf8 DEFAULT NULL COMMENT '修改人',
|
||||
`modify_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
|
||||
`remark` varchar(255) DEFAULT NULL COMMENT '备注',
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COMMENT='用户组';
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of kongx_user_group
|
||||
-- ----------------------------
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for kongx_user_group_role
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `kongx_user_group_role`;
|
||||
CREATE TABLE `kongx_user_group_role` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`group_id` int(11) NOT NULL COMMENT '用户组ID',
|
||||
`role_id` int(11) NOT NULL COMMENT '角色ID',
|
||||
`profile` varchar(255) NOT NULL COMMENT '所属环境',
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户组与角色关系表';
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of kongx_user_group_role
|
||||
-- ----------------------------
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for kongx_user_group_user
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `kongx_user_group_user`;
|
||||
CREATE TABLE `kongx_user_group_user` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`group_id` int(11) NOT NULL COMMENT '用户组ID',
|
||||
`user_id` varchar(255) NOT NULL COMMENT '用户ID',
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户组与用户的关系表';
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of kongx_user_group_user
|
||||
-- ----------------------------
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for kongx_user_info
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `kongx_user_info`;
|
||||
CREATE TABLE `kongx_user_info` (
|
||||
`user_id` varchar(50) NOT NULL COMMENT '用户Id',
|
||||
`name` varchar(50) NOT NULL COMMENT '用户名',
|
||||
`email` varchar(50) DEFAULT '' COMMENT '邮箱',
|
||||
`mobile` varchar(50) DEFAULT NULL COMMENT '手机号',
|
||||
`password` varchar(255) NOT NULL,
|
||||
`status` varchar(255) CHARACTER SET utf8 DEFAULT NULL COMMENT '状态',
|
||||
`creator` varchar(255) CHARACTER SET utf8 DEFAULT NULL COMMENT '创建人',
|
||||
`create_at` timestamp NULL DEFAULT NULL COMMENT '创建时间',
|
||||
PRIMARY KEY (`user_id`),
|
||||
KEY `mobile` (`mobile`) USING BTREE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户表';
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of kongx_user_info
|
||||
-- ----------------------------
|
||||
INSERT INTO `kongx_user_info` VALUES ('admin', 'admin', '', '', '60029c3f5fdb5f1291362f52f7251702507ebc5b', 'activate', 'admin', '2020-09-10 18:21:38');
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of kongx_system_role_function super_admin的权限信息
|
||||
-- ----------------------------
|
||||
insert into kongx_system_role_function(role_id,half_checked,function_id)
|
||||
select '1' role_id,'n' half_checked,'-1' as function_id
|
||||
union all
|
||||
select '1' role_id,'n' half_checked,id as function_id from kongx_system_function;
|
||||
-- ----------------------------
|
||||
-- Records of kongx_system_role_function 初始化domestic_consumer权限信息
|
||||
-- ----------------------------
|
||||
insert into kongx_system_role_function(role_id,half_checked,function_id)
|
||||
select '2' role_id,'y' half_checked,'-1' as function_id
|
||||
union
|
||||
select '2' role_id,'y' half_checked,id as function_id from kongx_system_function where name in ('Gateway','Upstreams','Services','Routes','Plugins','Kong Shell','Consumers','Certificates','日志管理')
|
||||
union
|
||||
select '2' role_id,'n' half_checked,id as function_id from kongx_system_function where code in ('service_view','upstream_view','route_view','plugin_view','consumer_view','certificate_view')
|
||||
union
|
||||
select '2' role_id,'n' half_checked,id as function_id from kongx_system_function where name='操作日志'
|
Loading…
x
Reference in New Issue
Block a user