diff --git a/README.md b/README.md index 85f6ba67b..8880ba6a6 100644 --- a/README.md +++ b/README.md @@ -6,16 +6,16 @@

Spring Authorization Server 1.3.1 - Spring Boot 3.3.1 + Spring Boot 3.3.2 Spring Cloud 2023.0.3 - Spring Cloud Alibaba 2023.0.1.0 + Spring Cloud Alibaba 2023.0.1.2 Spring Cloud Tencent 1.14.0--2023.0.0-SNAPSHOT - Nacos 2.3.3 + Nacos 2.4.0

- Version 3.3.1.3 - Dante Engine 3.3.1.3 - Dante OSS 3.3.1.3 + Version 3.3.2.0 + Dante Engine 3.3.2.0 + Dante OSS 3.3.2.0 Java 17 License AGPL 3.0 Total Visits @@ -55,7 +55,7 @@ ## Dante Cloud 响应式版本特性 -- `Spring Boot` 已升级至 3.3.1 +- `Spring Boot` 已升级至 3.3.2 - `Spring Authorization Server` 已升级至 1.3.1 - 全面采用 Java 21,默认开启虚拟线程,以改善阻塞操作的处理降低系统资源的消耗 - 支持传统的 `阻塞式` 微服务与基于 `Reactor` 和 `WebFlux` 的 `响应式` 微服务同时运行在一套系统之中 @@ -156,13 +156,13 @@ | 组件 | 版本 | |-----------------------------|-----------------| -| Spring Boot | 3.3.1 | +| Spring Boot | 3.3.2 | | Spring Cloud | 2023.0.3 | -| Spring Cloud Alibaba | 2023.0.1.0 | +| Spring Cloud Alibaba | 2023.0.1.2 | | Spring Cloud Tencent | 1.14.0-2023.0.0 | | Spring Authorization Server | 1.3.1 | -| Spring Boot Admin | 3.2.2 | -| Nacos | 2.3.3 | +| Spring Boot Admin | 3.3.2 | +| Nacos | 2.4.0 | | Sentinel | 1.8.7 | | Seata | 1.7.0 | @@ -323,11 +323,14 @@ Dante Cloud 已通过由第三方进行的软件出厂安全测试以及等保 ### 个人 -| 序号 | 昵称 | 合规 | 序号 | 昵称 | 合规 | 序号 | 昵称 | 合规 | 序号 | 昵称 | 合规 | -|:--:|:----------------------------------------:|:------------------:|:--:|:------------------------------------------:|:------------------:|:--:|:----------------------------------------:|:------------------:|:--:|:------------------------------------------------:|:------------------:| -| 1 | [Kaiser_Li](https://gitee.com/Kaiser_Li) | :white_check_mark: | 2 | [宁哥](https://gitee.com/seabuckthorn-syrup) | :white_check_mark: | 3 | [Nicolas](https://gitee.com/ailifeshow) | :white_check_mark: | 4 | [龍飝龘龘](https://gitee.com/autumnchendq) | :white_check_mark: | -| 5 | [RSJB](https://gitee.com/jinjiaxing1) | :white_check_mark: | 6 | [ipi](https://gitee.com/ipi) | :white_check_mark: | 7 | [zhouhailong](https://gitee.com/l-cloud) | :white_check_mark: | 8 | [Ge](https://gitee.com/gtkwww) | :white_check_mark: | -| 9 | [KohRong](https://gitee.com/loong024) | :white_check_mark: | 10 | [梦行](https://gitee.com/mx2913) | :white_check_mark: | 11 | [骆铘](https://gitee.com/clxhhsy) | :white_check_mark: | 12 | [OnPeaceOfMind](https://gitee.com/onpeaceofmind) | :white_check_mark: | +| 序号 | 昵称 | 合规 | 序号 | 昵称 | 合规 | 序号 | 昵称 | 合规 | 序号 | 昵称 | 合规 | +|:--:|:---------------------------------------------:|:------------------:|:--:|:----------------------------------------------:|:------------------:|:--:|:----------------------------------------:|:------------------:|:--:|:------------------------------------------------:|:------------------:| +| 1 | [Kaiser_Li](https://gitee.com/Kaiser_Li) | :white_check_mark: | 2 | [宁哥](https://gitee.com/seabuckthorn-syrup) | :white_check_mark: | 3 | [Nicolas](https://gitee.com/ailifeshow) | :white_check_mark: | 4 | [龍飝龘龘](https://gitee.com/autumnchendq) | :white_check_mark: | +| 5 | [RSJB](https://gitee.com/jinjiaxing1) | :white_check_mark: | 6 | [ipi](https://gitee.com/ipi) | :white_check_mark: | 7 | [zhouhailong](https://gitee.com/l-cloud) | :white_check_mark: | 8 | [Ge](https://gitee.com/gtkwww) | :white_check_mark: | +| 9 | [KohRong](https://gitee.com/loong024) | :white_check_mark: | 10 | [梦行](https://gitee.com/mx2913) | :white_check_mark: | 11 | [骆铘](https://gitee.com/clxhhsy) | :white_check_mark: | 12 | [OnPeaceOfMind](https://gitee.com/onpeaceofmind) | :white_check_mark: | +| 13 | [SaltedFish](https://gitee.com/null_183_5304) | :white_check_mark: | 14 | [cryptoneedle](https://gitee.com/cryptoneedle) | :white_check_mark: | 15 | [微笑的小虎](https://gitee.com/jfh1214) | :white_check_mark: | 16 | [wui](https://gitee.com/qazwuzhuhe) | :white_check_mark: | +| 17 | [wiysy](https://gitee.com/wiysy) | :white_check_mark: | 18 | [p911gt3rs](https://gitee.com/p911gt3rs) | :white_check_mark: | 19 | [郝召豪](https://gitee.com/menghan1997) | :white_check_mark: | 20 | [zjoye](https://gitee.com/zjoye) | :white_check_mark: | +| 21 | [尹建](https://gitee.com/westcars) | :white_check_mark: | 22 | [常相守](https://gitee.com/canzii) | :white_check_mark: | 23 | [yunnet](https://gitee.com/yunnet) | :white_check_mark: | 24 | [拔土豆的程序员](https://gitee.com/lizhifu) | :white_check_mark: | ## [14]、鸣谢 diff --git a/configurations/backup/alibaba/3.3.1.1/nacos_config_export_20240531173140.zip b/configurations/backup/alibaba/3.3.1.1/nacos_config_export_20240531173140.zip deleted file mode 100644 index c35692121..000000000 Binary files a/configurations/backup/alibaba/3.3.1.1/nacos_config_export_20240531173140.zip and /dev/null differ diff --git a/configurations/backup/alibaba/3.3.1.2/nacos_config_export_20240531173140.zip b/configurations/backup/alibaba/3.3.1.2/nacos_config_export_20240531173140.zip deleted file mode 100644 index c35692121..000000000 Binary files a/configurations/backup/alibaba/3.3.1.2/nacos_config_export_20240531173140.zip and /dev/null differ diff --git a/configurations/backup/alibaba/3.3.1.0/nacos_config_export_20240531173140.zip b/configurations/backup/alibaba/3.3.2.0/nacos_config_export_20240531173140.zip similarity index 100% rename from configurations/backup/alibaba/3.3.1.0/nacos_config_export_20240531173140.zip rename to configurations/backup/alibaba/3.3.2.0/nacos_config_export_20240531173140.zip diff --git a/configurations/backup/tencent/3.3.1.1/polaris_config_202405311904.zip b/configurations/backup/tencent/3.3.1.1/polaris_config_202405311904.zip deleted file mode 100644 index fc5e846f7..000000000 Binary files a/configurations/backup/tencent/3.3.1.1/polaris_config_202405311904.zip and /dev/null differ diff --git a/configurations/backup/tencent/3.3.1.2/polaris_config_202405311904.zip b/configurations/backup/tencent/3.3.1.2/polaris_config_202405311904.zip deleted file mode 100644 index fc5e846f7..000000000 Binary files a/configurations/backup/tencent/3.3.1.2/polaris_config_202405311904.zip and /dev/null differ diff --git a/configurations/backup/tencent/3.3.1.0/polaris_config_202405311904.zip b/configurations/backup/tencent/3.3.2.0/polaris_config_202405311904.zip similarity index 100% rename from configurations/backup/tencent/3.3.1.0/polaris_config_202405311904.zip rename to configurations/backup/tencent/3.3.2.0/polaris_config_202405311904.zip diff --git a/configurations/docker/context/development/Dockerfile b/configurations/docker/context/development/Dockerfile index f3f34001b..6d13ce560 100644 --- a/configurations/docker/context/development/Dockerfile +++ b/configurations/docker/context/development/Dockerfile @@ -9,7 +9,7 @@ ### 在 debian 下则没有这问题。以目前了解的情况看,猜测 alpine 下,为了缩小体系,缺失的内容应该不只是字体库,还有其它内容。 ### 当然也可能是个人能力有限,一直没有找到正确解决的办法。如果你有更好的解决办法,欢迎提 ISSUE 和 PR。 -FROM quay.io/herodotus-cloud/liberica-openjdk-debian:17.0.11-10 +FROM quay.io/herodotus-cloud/liberica-openjdk-debian:17.0.12-10 # 作者 MAINTAINER herodotus diff --git a/configurations/docker/context/development/Dockerfile-Monitor b/configurations/docker/context/development/Dockerfile-Monitor index 26a7572ed..f3403fd60 100644 --- a/configurations/docker/context/development/Dockerfile-Monitor +++ b/configurations/docker/context/development/Dockerfile-Monitor @@ -9,7 +9,7 @@ ### 在 debian 下则没有这问题。以目前了解的情况看,猜测 alpine 下,为了缩小体系,缺失的内容应该不只是字体库,还有其它内容。 ### 当然也可能是个人能力有限,一直没有找到正确解决的办法。如果你有更好的解决办法,欢迎提 ISSUE 和 PR。 -FROM quay.io/herodotus-cloud/liberica-openjdk-debian:17.0.11-10 +FROM quay.io/herodotus-cloud/liberica-openjdk-debian:17.0.12-10 #FROM openjdk:17-jdk # 作者 MAINTAINER herodotus diff --git a/configurations/docker/context/production/Dockerfile b/configurations/docker/context/production/Dockerfile index a19f01a2b..bc17de82b 100644 --- a/configurations/docker/context/production/Dockerfile +++ b/configurations/docker/context/production/Dockerfile @@ -9,7 +9,7 @@ ### 在 debian 下则没有这问题。以目前了解的情况看,猜测 alpine 下,为了缩小体系,缺失的内容应该不只是字体库,还有其它内容。 ### 当然也可能是个人能力有限,一直没有找到正确解决的办法。如果你有更好的解决办法,欢迎提 ISSUE 和 PR。 -FROM quay.io/herodotus-cloud/liberica-openjdk-debian:17.0.11-10 +FROM quay.io/herodotus-cloud/liberica-openjdk-debian:17.0.12-10 # 作者 MAINTAINER herodotus diff --git a/configurations/docker/context/production/Dockerfile-Monitor b/configurations/docker/context/production/Dockerfile-Monitor index 26a7572ed..f3403fd60 100644 --- a/configurations/docker/context/production/Dockerfile-Monitor +++ b/configurations/docker/context/production/Dockerfile-Monitor @@ -9,7 +9,7 @@ ### 在 debian 下则没有这问题。以目前了解的情况看,猜测 alpine 下,为了缩小体系,缺失的内容应该不只是字体库,还有其它内容。 ### 当然也可能是个人能力有限,一直没有找到正确解决的办法。如果你有更好的解决办法,欢迎提 ISSUE 和 PR。 -FROM quay.io/herodotus-cloud/liberica-openjdk-debian:17.0.11-10 +FROM quay.io/herodotus-cloud/liberica-openjdk-debian:17.0.12-10 #FROM openjdk:17-jdk # 作者 MAINTAINER herodotus diff --git a/configurations/docker/docker-compose/linux/herodotus/.env b/configurations/docker/docker-compose/linux/herodotus/.env index ebb9862b8..e2ebdf001 100644 --- a/configurations/docker/docker-compose/linux/herodotus/.env +++ b/configurations/docker/docker-compose/linux/herodotus/.env @@ -1,4 +1,4 @@ -VERSION=3.3.1.3 +VERSION=3.3.2.0 SPRING_PROFILES_ACTIVE=alibaba PROFILE=development DATABASE=postgresql diff --git a/configurations/docker/docker-compose/linux/herodotus/env.base.yml b/configurations/docker/docker-compose/linux/herodotus/env.base.yml index d3441921a..277da55fd 100644 --- a/configurations/docker/docker-compose/linux/herodotus/env.base.yml +++ b/configurations/docker/docker-compose/linux/herodotus/env.base.yml @@ -1,6 +1,6 @@ services: nacos: - image: quay.io/herodotus-cloud/nacos-server:v2.3.2 + image: quay.io/herodotus-cloud/nacos-server:v2.4.0 container_name: nacos hostname: nacos environment: diff --git a/configurations/docker/docker-compose/linux/herodotus/env.full.debezium.yml b/configurations/docker/docker-compose/linux/herodotus/env.full.debezium.yml index dc554a076..0fe69cc29 100644 --- a/configurations/docker/docker-compose/linux/herodotus/env.full.debezium.yml +++ b/configurations/docker/docker-compose/linux/herodotus/env.full.debezium.yml @@ -1,6 +1,6 @@ services: nacos: - image: quay.io/herodotus-cloud/nacos-server:v2.3.2 + image: quay.io/herodotus-cloud/nacos-server:v2.4.0 container_name: nacos hostname: nacos restart: always @@ -31,7 +31,7 @@ services: - "9849:9849" zookeeper: - image: debezium/zookeeper:2.6 + image: debezium/zookeeper:2.7 container_name: zookeeper hostname: zookeeper restart: always @@ -43,7 +43,7 @@ services: - "3888:3888" kafka: - image: debezium/kafka:2.6 + image: debezium/kafka:2.7 container_name: kafka hostname: kafka restart: always @@ -62,7 +62,7 @@ services: - zookeeper connect: - image: debezium/connect:2.6 + image: debezium/connect:2.7 container_name: connect hostname: connect restart: always diff --git a/configurations/docker/docker-compose/linux/herodotus/env.full.tencent.yml b/configurations/docker/docker-compose/linux/herodotus/env.full.tencent.yml index b38a930f8..e046002ab 100644 --- a/configurations/docker/docker-compose/linux/herodotus/env.full.tencent.yml +++ b/configurations/docker/docker-compose/linux/herodotus/env.full.tencent.yml @@ -15,7 +15,7 @@ services: - "9091:9091" zookeeper: - image: debezium/zookeeper:2.6 + image: debezium/zookeeper:2.7 container_name: zookeeper hostname: zookeeper environment: @@ -26,7 +26,7 @@ services: - "3888:3888" kafka: - image: debezium/kafka:2.6 + image: debezium/kafka:2.7 container_name: kafka hostname: kafka ports: diff --git a/configurations/docker/docker-compose/linux/herodotus/env.oss.yml b/configurations/docker/docker-compose/linux/herodotus/env.oss.yml index 40b834589..a86460160 100644 --- a/configurations/docker/docker-compose/linux/herodotus/env.oss.yml +++ b/configurations/docker/docker-compose/linux/herodotus/env.oss.yml @@ -1,6 +1,6 @@ services: minio: - image: quay.io/minio/minio:RELEASE.2024-07-10T18-41-49Z + image: quay.io/minio/minio:RELEASE.2024-07-16T23-46-41Z container_name: minio hostname: minio ports: diff --git a/configurations/docker/docker-compose/linux/herodotus/env.quick-start.yaml b/configurations/docker/docker-compose/linux/herodotus/env.quick-start.yaml index dcb4a48ae..1c56151ad 100644 --- a/configurations/docker/docker-compose/linux/herodotus/env.quick-start.yaml +++ b/configurations/docker/docker-compose/linux/herodotus/env.quick-start.yaml @@ -2,7 +2,7 @@ version: '3.8' services: nacos: - image: quay.io/herodotus-cloud/nacos-server:v2.3.2 + image: quay.io/herodotus-cloud/nacos-server:v2.4.0 container_name: dante-nacos hostname: dante-nacos environment: diff --git a/configurations/docker/docker-compose/windows/herodotus/.env b/configurations/docker/docker-compose/windows/herodotus/.env index 74d2362a2..d35658d46 100644 --- a/configurations/docker/docker-compose/windows/herodotus/.env +++ b/configurations/docker/docker-compose/windows/herodotus/.env @@ -1,4 +1,4 @@ -VERSION=3.3.1.3 +VERSION=3.3.2.0 SPRING_PROFILES_ACTIVE=alibaba PROFILE=development DATABASE=postgresql diff --git a/configurations/docker/docker-compose/windows/herodotus/env.base.yml b/configurations/docker/docker-compose/windows/herodotus/env.base.yml index 892719a3f..6283626eb 100644 --- a/configurations/docker/docker-compose/windows/herodotus/env.base.yml +++ b/configurations/docker/docker-compose/windows/herodotus/env.base.yml @@ -1,6 +1,6 @@ services: nacos: - image: quay.io/herodotus-cloud/nacos-server:v2.3.2 + image: quay.io/herodotus-cloud/nacos-server:v2.4.0 container_name: nacos environment: MODE: standalone diff --git a/configurations/docker/docker-compose/windows/herodotus/env.full.base.yml b/configurations/docker/docker-compose/windows/herodotus/env.full.base.yml index 141035160..7e9492fe2 100644 --- a/configurations/docker/docker-compose/windows/herodotus/env.full.base.yml +++ b/configurations/docker/docker-compose/windows/herodotus/env.full.base.yml @@ -1,6 +1,6 @@ services: nacos: - image: quay.io/herodotus-cloud/nacos-server:v2.3.3 + image: quay.io/herodotus-cloud/nacos-server:v2.4.0 container_name: nacos environment: MODE: standalone diff --git a/configurations/docker/docker-compose/windows/herodotus/env.full.debezium.yml b/configurations/docker/docker-compose/windows/herodotus/env.full.debezium.yml index c2b95737b..090a54987 100644 --- a/configurations/docker/docker-compose/windows/herodotus/env.full.debezium.yml +++ b/configurations/docker/docker-compose/windows/herodotus/env.full.debezium.yml @@ -1,6 +1,6 @@ services: nacos: - image: quay.io/herodotus-cloud/nacos-server:v2.3.2 + image: quay.io/herodotus-cloud/nacos-server:v2.4.0 container_name: nacos hostname: nacos restart: always @@ -31,7 +31,7 @@ services: - "9849:9849" zookeeper: - image: debezium/zookeeper:2.6 + image: debezium/zookeeper:2.7 container_name: zookeeper hostname: zookeeper restart: always @@ -43,7 +43,7 @@ services: - "3888:3888" kafka: - image: debezium/kafka:2.6 + image: debezium/kafka:2.7 container_name: kafka hostname: kafka restart: always @@ -62,7 +62,7 @@ services: - zookeeper connect: - image: debezium/connect:2.6 + image: debezium/connect:2.7 container_name: connect hostname: connect restart: always diff --git a/configurations/docker/docker-compose/windows/herodotus/env.full.tencent.yml b/configurations/docker/docker-compose/windows/herodotus/env.full.tencent.yml index 00dbea3b8..501948f32 100644 --- a/configurations/docker/docker-compose/windows/herodotus/env.full.tencent.yml +++ b/configurations/docker/docker-compose/windows/herodotus/env.full.tencent.yml @@ -15,7 +15,7 @@ services: - "9091:9091" zookeeper: - image: debezium/zookeeper:2.6 + image: debezium/zookeeper:2.7 container_name: zookeeper environment: ZOOKEEPER_SERVER_ID: 1 @@ -25,7 +25,7 @@ services: - "3888:3888" kafka: - image: debezium/kafka:2.6 + image: debezium/kafka:2.7 container_name: kafka ports: - "9092:9092" diff --git a/configurations/docker/docker-compose/windows/herodotus/env.oss.yml b/configurations/docker/docker-compose/windows/herodotus/env.oss.yml index a05b16f5d..27d14f076 100644 --- a/configurations/docker/docker-compose/windows/herodotus/env.oss.yml +++ b/configurations/docker/docker-compose/windows/herodotus/env.oss.yml @@ -1,6 +1,6 @@ services: minio: - image: quay.io/minio/minio:RELEASE.2024-07-10T18-41-49Z + image: quay.io/minio/minio:RELEASE.2024-07-16T23-46-41Z container_name: minio hostname: minio ports: diff --git a/configurations/scripts/nacos/sqls/nacos-mysql_2.2.3.sql b/configurations/scripts/nacos/sqls/nacos-mysql_2.2.3.sql new file mode 100644 index 000000000..146626488 --- /dev/null +++ b/configurations/scripts/nacos/sqls/nacos-mysql_2.2.3.sql @@ -0,0 +1,221 @@ +/* + * Copyright 1999-2018 Alibaba Group Holding Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/******************************************/ +/* 数据库全名 = nacos_config */ +/* 表名称 = config_info */ +/******************************************/ +CREATE TABLE `config_info` ( + `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id', + `data_id` varchar(255) NOT NULL COMMENT 'data_id', + `group_id` varchar(128) DEFAULT NULL, + `content` longtext NOT NULL COMMENT 'content', + `md5` varchar(32) DEFAULT NULL COMMENT 'md5', + `gmt_create` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `gmt_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间', + `src_user` text COMMENT 'source user', + `src_ip` varchar(50) DEFAULT NULL COMMENT 'source ip', + `app_name` varchar(128) DEFAULT NULL, + `tenant_id` varchar(128) DEFAULT '' COMMENT '租户字段', + `c_desc` varchar(256) DEFAULT NULL, + `c_use` varchar(64) DEFAULT NULL, + `effect` varchar(64) DEFAULT NULL, + `type` varchar(64) DEFAULT NULL, + `c_schema` text, + `encrypted_data_key` text NOT NULL COMMENT '秘钥', + PRIMARY KEY (`id`), + UNIQUE KEY `uk_configinfo_datagrouptenant` (`data_id`,`group_id`,`tenant_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='config_info'; + +/******************************************/ +/* 数据库全名 = nacos_config */ +/* 表名称 = config_info_aggr */ +/******************************************/ +CREATE TABLE `config_info_aggr` ( + `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id', + `data_id` varchar(255) NOT NULL COMMENT 'data_id', + `group_id` varchar(128) NOT NULL COMMENT 'group_id', + `datum_id` varchar(255) NOT NULL COMMENT 'datum_id', + `content` longtext NOT NULL COMMENT '内容', + `gmt_modified` datetime NOT NULL COMMENT '修改时间', + `app_name` varchar(128) DEFAULT NULL, + `tenant_id` varchar(128) DEFAULT '' COMMENT '租户字段', + PRIMARY KEY (`id`), + UNIQUE KEY `uk_configinfoaggr_datagrouptenantdatum` (`data_id`,`group_id`,`tenant_id`,`datum_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='增加租户字段'; + + +/******************************************/ +/* 数据库全名 = nacos_config */ +/* 表名称 = config_info_beta */ +/******************************************/ +CREATE TABLE `config_info_beta` ( + `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id', + `data_id` varchar(255) NOT NULL COMMENT 'data_id', + `group_id` varchar(128) NOT NULL COMMENT 'group_id', + `app_name` varchar(128) DEFAULT NULL COMMENT 'app_name', + `content` longtext NOT NULL COMMENT 'content', + `beta_ips` varchar(1024) DEFAULT NULL COMMENT 'betaIps', + `md5` varchar(32) DEFAULT NULL COMMENT 'md5', + `gmt_create` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `gmt_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间', + `src_user` text COMMENT 'source user', + `src_ip` varchar(50) DEFAULT NULL COMMENT 'source ip', + `tenant_id` varchar(128) DEFAULT '' COMMENT '租户字段', + `encrypted_data_key` text NOT NULL COMMENT '秘钥', + PRIMARY KEY (`id`), + UNIQUE KEY `uk_configinfobeta_datagrouptenant` (`data_id`,`group_id`,`tenant_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='config_info_beta'; + +/******************************************/ +/* 数据库全名 = nacos_config */ +/* 表名称 = config_info_tag */ +/******************************************/ +CREATE TABLE `config_info_tag` ( + `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id', + `data_id` varchar(255) NOT NULL COMMENT 'data_id', + `group_id` varchar(128) NOT NULL COMMENT 'group_id', + `tenant_id` varchar(128) DEFAULT '' COMMENT 'tenant_id', + `tag_id` varchar(128) NOT NULL COMMENT 'tag_id', + `app_name` varchar(128) DEFAULT NULL COMMENT 'app_name', + `content` longtext NOT NULL COMMENT 'content', + `md5` varchar(32) DEFAULT NULL COMMENT 'md5', + `gmt_create` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `gmt_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间', + `src_user` text COMMENT 'source user', + `src_ip` varchar(50) DEFAULT NULL COMMENT 'source ip', + PRIMARY KEY (`id`), + UNIQUE KEY `uk_configinfotag_datagrouptenanttag` (`data_id`,`group_id`,`tenant_id`,`tag_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='config_info_tag'; + +/******************************************/ +/* 数据库全名 = nacos_config */ +/* 表名称 = config_tags_relation */ +/******************************************/ +CREATE TABLE `config_tags_relation` ( + `id` bigint(20) NOT NULL COMMENT 'id', + `tag_name` varchar(128) NOT NULL COMMENT 'tag_name', + `tag_type` varchar(64) DEFAULT NULL COMMENT 'tag_type', + `data_id` varchar(255) NOT NULL COMMENT 'data_id', + `group_id` varchar(128) NOT NULL COMMENT 'group_id', + `tenant_id` varchar(128) DEFAULT '' COMMENT 'tenant_id', + `nid` bigint(20) NOT NULL AUTO_INCREMENT, + PRIMARY KEY (`nid`), + UNIQUE KEY `uk_configtagrelation_configidtag` (`id`,`tag_name`,`tag_type`), + KEY `idx_tenant_id` (`tenant_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='config_tag_relation'; + +/******************************************/ +/* 数据库全名 = nacos_config */ +/* 表名称 = group_capacity */ +/******************************************/ +CREATE TABLE `group_capacity` ( + `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键ID', + `group_id` varchar(128) NOT NULL DEFAULT '' COMMENT 'Group ID,空字符表示整个集群', + `quota` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '配额,0表示使用默认值', + `usage` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '使用量', + `max_size` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '单个配置大小上限,单位为字节,0表示使用默认值', + `max_aggr_count` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '聚合子配置最大个数,,0表示使用默认值', + `max_aggr_size` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '单个聚合数据的子配置大小上限,单位为字节,0表示使用默认值', + `max_history_count` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '最大变更历史数量', + `gmt_create` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `gmt_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间', + PRIMARY KEY (`id`), + UNIQUE KEY `uk_group_id` (`group_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='集群、各Group容量信息表'; + +/******************************************/ +/* 数据库全名 = nacos_config */ +/* 表名称 = his_config_info */ +/******************************************/ +CREATE TABLE `his_config_info` ( + `id` bigint(20) unsigned NOT NULL, + `nid` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `data_id` varchar(255) NOT NULL, + `group_id` varchar(128) NOT NULL, + `app_name` varchar(128) DEFAULT NULL COMMENT 'app_name', + `content` longtext NOT NULL, + `md5` varchar(32) DEFAULT NULL, + `gmt_create` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, + `gmt_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, + `src_user` text, + `src_ip` varchar(50) DEFAULT NULL, + `op_type` char(10) DEFAULT NULL, + `tenant_id` varchar(128) DEFAULT '' COMMENT '租户字段', + `encrypted_data_key` text NOT NULL COMMENT '秘钥', + PRIMARY KEY (`nid`), + KEY `idx_gmt_create` (`gmt_create`), + KEY `idx_gmt_modified` (`gmt_modified`), + KEY `idx_did` (`data_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='多租户改造'; + + +/******************************************/ +/* 数据库全名 = nacos_config */ +/* 表名称 = tenant_capacity */ +/******************************************/ +CREATE TABLE `tenant_capacity` ( + `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键ID', + `tenant_id` varchar(128) NOT NULL DEFAULT '' COMMENT 'Tenant ID', + `quota` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '配额,0表示使用默认值', + `usage` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '使用量', + `max_size` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '单个配置大小上限,单位为字节,0表示使用默认值', + `max_aggr_count` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '聚合子配置最大个数', + `max_aggr_size` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '单个聚合数据的子配置大小上限,单位为字节,0表示使用默认值', + `max_history_count` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '最大变更历史数量', + `gmt_create` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `gmt_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间', + PRIMARY KEY (`id`), + UNIQUE KEY `uk_tenant_id` (`tenant_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='租户容量信息表'; + + +CREATE TABLE `tenant_info` ( + `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id', + `kp` varchar(128) NOT NULL COMMENT 'kp', + `tenant_id` varchar(128) default '' COMMENT 'tenant_id', + `tenant_name` varchar(128) default '' COMMENT 'tenant_name', + `tenant_desc` varchar(256) DEFAULT NULL COMMENT 'tenant_desc', + `create_source` varchar(32) DEFAULT NULL COMMENT 'create_source', + `gmt_create` bigint(20) NOT NULL COMMENT '创建时间', + `gmt_modified` bigint(20) NOT NULL COMMENT '修改时间', + PRIMARY KEY (`id`), + UNIQUE KEY `uk_tenant_info_kptenantid` (`kp`,`tenant_id`), + KEY `idx_tenant_id` (`tenant_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='tenant_info'; + +CREATE TABLE `users` ( + `username` varchar(50) NOT NULL PRIMARY KEY, + `password` varchar(500) NOT NULL, + `enabled` boolean NOT NULL +); + +CREATE TABLE `roles` ( + `username` varchar(50) NOT NULL, + `role` varchar(50) NOT NULL, + UNIQUE INDEX `idx_user_role` (`username` ASC, `role` ASC) USING BTREE +); + +CREATE TABLE `permissions` ( + `role` varchar(50) NOT NULL, + `resource` varchar(255) NOT NULL, + `action` varchar(8) NOT NULL, + UNIQUE INDEX `uk_role_permission` (`role`,`resource`,`action`) USING BTREE +); + +INSERT INTO users (username, password, enabled) VALUES ('nacos', '$2a$10$EuWPZHzz32dJN7jexM34MOeYirDdFAZm2kuWj7VEOJhhZkDrxfvUu', TRUE); + +INSERT INTO roles (username, role) VALUES ('nacos', 'ROLE_ADMIN'); diff --git a/configurations/scripts/nacos/sqls/nacos-mysql_2.4.0.sql b/configurations/scripts/nacos/sqls/nacos-mysql_2.4.0.sql new file mode 100644 index 000000000..1fd982534 --- /dev/null +++ b/configurations/scripts/nacos/sqls/nacos-mysql_2.4.0.sql @@ -0,0 +1,216 @@ +/* + * Copyright 1999-2018 Alibaba Group Holding Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/******************************************/ +/* 表名称 = config_info */ +/******************************************/ +CREATE TABLE `config_info` ( + `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id', + `data_id` varchar(255) NOT NULL COMMENT 'data_id', + `group_id` varchar(128) DEFAULT NULL COMMENT 'group_id', + `content` longtext NOT NULL COMMENT 'content', + `md5` varchar(32) DEFAULT NULL COMMENT 'md5', + `gmt_create` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `gmt_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间', + `src_user` text COMMENT 'source user', + `src_ip` varchar(50) DEFAULT NULL COMMENT 'source ip', + `app_name` varchar(128) DEFAULT NULL COMMENT 'app_name', + `tenant_id` varchar(128) DEFAULT '' COMMENT '租户字段', + `c_desc` varchar(256) DEFAULT NULL COMMENT 'configuration description', + `c_use` varchar(64) DEFAULT NULL COMMENT 'configuration usage', + `effect` varchar(64) DEFAULT NULL COMMENT '配置生效的描述', + `type` varchar(64) DEFAULT NULL COMMENT '配置的类型', + `c_schema` text COMMENT '配置的模式', + `encrypted_data_key` varchar(1024) NOT NULL DEFAULT '' COMMENT '密钥', + PRIMARY KEY (`id`), + UNIQUE KEY `uk_configinfo_datagrouptenant` (`data_id`,`group_id`,`tenant_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='config_info'; + +/******************************************/ +/* 表名称 = config_info_aggr */ +/******************************************/ +CREATE TABLE `config_info_aggr` ( + `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id', + `data_id` varchar(255) NOT NULL COMMENT 'data_id', + `group_id` varchar(128) NOT NULL COMMENT 'group_id', + `datum_id` varchar(255) NOT NULL COMMENT 'datum_id', + `content` longtext NOT NULL COMMENT '内容', + `gmt_modified` datetime NOT NULL COMMENT '修改时间', + `app_name` varchar(128) DEFAULT NULL COMMENT 'app_name', + `tenant_id` varchar(128) DEFAULT '' COMMENT '租户字段', + PRIMARY KEY (`id`), + UNIQUE KEY `uk_configinfoaggr_datagrouptenantdatum` (`data_id`,`group_id`,`tenant_id`,`datum_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='增加租户字段'; + + +/******************************************/ +/* 表名称 = config_info_beta */ +/******************************************/ +CREATE TABLE `config_info_beta` ( + `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id', + `data_id` varchar(255) NOT NULL COMMENT 'data_id', + `group_id` varchar(128) NOT NULL COMMENT 'group_id', + `app_name` varchar(128) DEFAULT NULL COMMENT 'app_name', + `content` longtext NOT NULL COMMENT 'content', + `beta_ips` varchar(1024) DEFAULT NULL COMMENT 'betaIps', + `md5` varchar(32) DEFAULT NULL COMMENT 'md5', + `gmt_create` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `gmt_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间', + `src_user` text COMMENT 'source user', + `src_ip` varchar(50) DEFAULT NULL COMMENT 'source ip', + `tenant_id` varchar(128) DEFAULT '' COMMENT '租户字段', + `encrypted_data_key` varchar(1024) NOT NULL DEFAULT '' COMMENT '密钥', + PRIMARY KEY (`id`), + UNIQUE KEY `uk_configinfobeta_datagrouptenant` (`data_id`,`group_id`,`tenant_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='config_info_beta'; + +/******************************************/ +/* 表名称 = config_info_tag */ +/******************************************/ +CREATE TABLE `config_info_tag` ( + `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id', + `data_id` varchar(255) NOT NULL COMMENT 'data_id', + `group_id` varchar(128) NOT NULL COMMENT 'group_id', + `tenant_id` varchar(128) DEFAULT '' COMMENT 'tenant_id', + `tag_id` varchar(128) NOT NULL COMMENT 'tag_id', + `app_name` varchar(128) DEFAULT NULL COMMENT 'app_name', + `content` longtext NOT NULL COMMENT 'content', + `md5` varchar(32) DEFAULT NULL COMMENT 'md5', + `gmt_create` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `gmt_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间', + `src_user` text COMMENT 'source user', + `src_ip` varchar(50) DEFAULT NULL COMMENT 'source ip', + PRIMARY KEY (`id`), + UNIQUE KEY `uk_configinfotag_datagrouptenanttag` (`data_id`,`group_id`,`tenant_id`,`tag_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='config_info_tag'; + +/******************************************/ +/* 表名称 = config_tags_relation */ +/******************************************/ +CREATE TABLE `config_tags_relation` ( + `id` bigint(20) NOT NULL COMMENT 'id', + `tag_name` varchar(128) NOT NULL COMMENT 'tag_name', + `tag_type` varchar(64) DEFAULT NULL COMMENT 'tag_type', + `data_id` varchar(255) NOT NULL COMMENT 'data_id', + `group_id` varchar(128) NOT NULL COMMENT 'group_id', + `tenant_id` varchar(128) DEFAULT '' COMMENT 'tenant_id', + `nid` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'nid, 自增长标识', + PRIMARY KEY (`nid`), + UNIQUE KEY `uk_configtagrelation_configidtag` (`id`,`tag_name`,`tag_type`), + KEY `idx_tenant_id` (`tenant_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='config_tag_relation'; + +/******************************************/ +/* 表名称 = group_capacity */ +/******************************************/ +CREATE TABLE `group_capacity` ( + `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键ID', + `group_id` varchar(128) NOT NULL DEFAULT '' COMMENT 'Group ID,空字符表示整个集群', + `quota` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '配额,0表示使用默认值', + `usage` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '使用量', + `max_size` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '单个配置大小上限,单位为字节,0表示使用默认值', + `max_aggr_count` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '聚合子配置最大个数,,0表示使用默认值', + `max_aggr_size` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '单个聚合数据的子配置大小上限,单位为字节,0表示使用默认值', + `max_history_count` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '最大变更历史数量', + `gmt_create` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `gmt_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间', + PRIMARY KEY (`id`), + UNIQUE KEY `uk_group_id` (`group_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='集群、各Group容量信息表'; + +/******************************************/ +/* 表名称 = his_config_info */ +/******************************************/ +CREATE TABLE `his_config_info` ( + `id` bigint(20) unsigned NOT NULL COMMENT 'id', + `nid` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'nid, 自增标识', + `data_id` varchar(255) NOT NULL COMMENT 'data_id', + `group_id` varchar(128) NOT NULL COMMENT 'group_id', + `app_name` varchar(128) DEFAULT NULL COMMENT 'app_name', + `content` longtext NOT NULL COMMENT 'content', + `md5` varchar(32) DEFAULT NULL COMMENT 'md5', + `gmt_create` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `gmt_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间', + `src_user` text COMMENT 'source user', + `src_ip` varchar(50) DEFAULT NULL COMMENT 'source ip', + `op_type` char(10) DEFAULT NULL COMMENT 'operation type', + `tenant_id` varchar(128) DEFAULT '' COMMENT '租户字段', + `encrypted_data_key` varchar(1024) NOT NULL DEFAULT '' COMMENT '密钥', + PRIMARY KEY (`nid`), + KEY `idx_gmt_create` (`gmt_create`), + KEY `idx_gmt_modified` (`gmt_modified`), + KEY `idx_did` (`data_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='多租户改造'; + + +/******************************************/ +/* 表名称 = tenant_capacity */ +/******************************************/ +CREATE TABLE `tenant_capacity` ( + `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键ID', + `tenant_id` varchar(128) NOT NULL DEFAULT '' COMMENT 'Tenant ID', + `quota` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '配额,0表示使用默认值', + `usage` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '使用量', + `max_size` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '单个配置大小上限,单位为字节,0表示使用默认值', + `max_aggr_count` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '聚合子配置最大个数', + `max_aggr_size` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '单个聚合数据的子配置大小上限,单位为字节,0表示使用默认值', + `max_history_count` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '最大变更历史数量', + `gmt_create` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `gmt_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间', + PRIMARY KEY (`id`), + UNIQUE KEY `uk_tenant_id` (`tenant_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='租户容量信息表'; + + +CREATE TABLE `tenant_info` ( + `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id', + `kp` varchar(128) NOT NULL COMMENT 'kp', + `tenant_id` varchar(128) default '' COMMENT 'tenant_id', + `tenant_name` varchar(128) default '' COMMENT 'tenant_name', + `tenant_desc` varchar(256) DEFAULT NULL COMMENT 'tenant_desc', + `create_source` varchar(32) DEFAULT NULL COMMENT 'create_source', + `gmt_create` bigint(20) NOT NULL COMMENT '创建时间', + `gmt_modified` bigint(20) NOT NULL COMMENT '修改时间', + PRIMARY KEY (`id`), + UNIQUE KEY `uk_tenant_info_kptenantid` (`kp`,`tenant_id`), + KEY `idx_tenant_id` (`tenant_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='tenant_info'; + +CREATE TABLE `users` ( + `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id', + `username` varchar(50) NOT NULL COMMENT 'username', + `password` varchar(500) NOT NULL COMMENT 'password', + `enabled` boolean NOT NULL COMMENT 'enabled', + PRIMARY KEY (`id`) +); + +CREATE TABLE `roles` ( + `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id', + `username` varchar(50) NOT NULL COMMENT 'username', + `role` varchar(50) NOT NULL COMMENT 'role', + PRIMARY KEY (`id`), + UNIQUE INDEX `idx_user_role` (`username` ASC, `role` ASC) USING BTREE +); + +CREATE TABLE `permissions` ( + `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id', + `role` varchar(50) NOT NULL COMMENT 'role', + `resource` varchar(128) NOT NULL COMMENT 'resource', + `action` varchar(8) NOT NULL COMMENT 'action', + PRIMARY KEY (`id`), + UNIQUE INDEX `uk_role_permission` (`role`,`resource`,`action`) USING BTREE +); + diff --git a/configurations/scripts/nacos/sqls/nacos-postgresql_2.4.0.sql b/configurations/scripts/nacos/sqls/nacos-postgresql_2.4.0.sql new file mode 100644 index 000000000..2f3f093da --- /dev/null +++ b/configurations/scripts/nacos/sqls/nacos-postgresql_2.4.0.sql @@ -0,0 +1,636 @@ +/* + Navicat Premium Data Transfer + + Target Server Type : PostgreSQL + Target Server Version : 160002 (160002) + File Encoding : 65001 + + Date: 20/07/2024 10:37:17 +*/ + +-- ---------------------------- +-- Sequence structure for config_info_aggr_id_seq +-- ---------------------------- +DROP SEQUENCE IF EXISTS "public"."config_info_aggr_id_seq"; +CREATE SEQUENCE "public"."config_info_aggr_id_seq" + INCREMENT 1 +MINVALUE 1 +MAXVALUE 9223372036854775807 +START 1 +CACHE 1; + +-- ---------------------------- +-- Sequence structure for config_info_beta_id_seq +-- ---------------------------- +DROP SEQUENCE IF EXISTS "public"."config_info_beta_id_seq"; +CREATE SEQUENCE "public"."config_info_beta_id_seq" + INCREMENT 1 +MINVALUE 1 +MAXVALUE 9223372036854775807 +START 1 +CACHE 1; + +-- ---------------------------- +-- Sequence structure for config_info_id_seq +-- ---------------------------- +DROP SEQUENCE IF EXISTS "public"."config_info_id_seq"; +CREATE SEQUENCE "public"."config_info_id_seq" + INCREMENT 1 +MINVALUE 1 +MAXVALUE 9223372036854775807 +START 1 +CACHE 1; + +-- ---------------------------- +-- Sequence structure for config_info_tag_id_seq +-- ---------------------------- +DROP SEQUENCE IF EXISTS "public"."config_info_tag_id_seq"; +CREATE SEQUENCE "public"."config_info_tag_id_seq" + INCREMENT 1 +MINVALUE 1 +MAXVALUE 9223372036854775807 +START 1 +CACHE 1; + +-- ---------------------------- +-- Sequence structure for config_tags_relation_id_seq +-- ---------------------------- +DROP SEQUENCE IF EXISTS "public"."config_tags_relation_id_seq"; +CREATE SEQUENCE "public"."config_tags_relation_id_seq" + INCREMENT 1 +MINVALUE 1 +MAXVALUE 9223372036854775807 +START 1 +CACHE 1; + +-- ---------------------------- +-- Sequence structure for config_tags_relation_nid_seq +-- ---------------------------- +DROP SEQUENCE IF EXISTS "public"."config_tags_relation_nid_seq"; +CREATE SEQUENCE "public"."config_tags_relation_nid_seq" + INCREMENT 1 +MINVALUE 1 +MAXVALUE 9223372036854775807 +START 1 +CACHE 1; + +-- ---------------------------- +-- Sequence structure for group_capacity_id_seq +-- ---------------------------- +DROP SEQUENCE IF EXISTS "public"."group_capacity_id_seq"; +CREATE SEQUENCE "public"."group_capacity_id_seq" + INCREMENT 1 +MINVALUE 1 +MAXVALUE 9223372036854775807 +START 1 +CACHE 1; + +-- ---------------------------- +-- Sequence structure for his_config_info_nid_seq +-- ---------------------------- +DROP SEQUENCE IF EXISTS "public"."his_config_info_nid_seq"; +CREATE SEQUENCE "public"."his_config_info_nid_seq" + INCREMENT 1 +MINVALUE 1 +MAXVALUE 9223372036854775807 +START 1 +CACHE 1; + +-- ---------------------------- +-- Sequence structure for tenant_capacity_id_seq +-- ---------------------------- +DROP SEQUENCE IF EXISTS "public"."tenant_capacity_id_seq"; +CREATE SEQUENCE "public"."tenant_capacity_id_seq" + INCREMENT 1 +MINVALUE 1 +MAXVALUE 9223372036854775807 +START 1 +CACHE 1; + +-- ---------------------------- +-- Sequence structure for tenant_info_id_seq +-- ---------------------------- +DROP SEQUENCE IF EXISTS "public"."tenant_info_id_seq"; +CREATE SEQUENCE "public"."tenant_info_id_seq" + INCREMENT 1 +MINVALUE 1 +MAXVALUE 9223372036854775807 +START 1 +CACHE 1; + +-- ---------------------------- +-- Table structure for config_info +-- ---------------------------- +DROP TABLE IF EXISTS "public"."config_info"; +CREATE TABLE "public"."config_info" ( + "id" int8 NOT NULL DEFAULT nextval('config_info_id_seq'::regclass), + "data_id" varchar(255) COLLATE "pg_catalog"."default" NOT NULL, + "group_id" varchar(255) COLLATE "pg_catalog"."default", + "content" text COLLATE "pg_catalog"."default" NOT NULL, + "md5" varchar(32) COLLATE "pg_catalog"."default", + "gmt_create" timestamp(6) NOT NULL, + "gmt_modified" timestamp(6) NOT NULL, + "src_user" text COLLATE "pg_catalog"."default", + "src_ip" varchar(20) COLLATE "pg_catalog"."default", + "app_name" varchar(128) COLLATE "pg_catalog"."default", + "tenant_id" varchar(128) COLLATE "pg_catalog"."default", + "c_desc" varchar(256) COLLATE "pg_catalog"."default", + "c_use" varchar(64) COLLATE "pg_catalog"."default", + "effect" varchar(64) COLLATE "pg_catalog"."default", + "type" varchar(64) COLLATE "pg_catalog"."default", + "c_schema" text COLLATE "pg_catalog"."default", + "encrypted_data_key" varchar(1024) COLLATE "pg_catalog"."default" NOT NULL +) +; +COMMENT ON COLUMN "public"."config_info"."id" IS 'id'; +COMMENT ON COLUMN "public"."config_info"."data_id" IS 'data_id'; +COMMENT ON COLUMN "public"."config_info"."content" IS 'content'; +COMMENT ON COLUMN "public"."config_info"."md5" IS 'md5'; +COMMENT ON COLUMN "public"."config_info"."gmt_create" IS '创建时间'; +COMMENT ON COLUMN "public"."config_info"."gmt_modified" IS '修改时间'; +COMMENT ON COLUMN "public"."config_info"."src_user" IS 'source user'; +COMMENT ON COLUMN "public"."config_info"."src_ip" IS 'source ip'; +COMMENT ON COLUMN "public"."config_info"."tenant_id" IS '租户字段'; +COMMENT ON COLUMN "public"."config_info"."encrypted_data_key" IS '秘钥'; +COMMENT ON TABLE "public"."config_info" IS 'config_info'; + +-- ---------------------------- +-- Table structure for config_info_aggr +-- ---------------------------- +DROP TABLE IF EXISTS "public"."config_info_aggr"; +CREATE TABLE "public"."config_info_aggr" ( + "id" int8 NOT NULL DEFAULT nextval('config_info_aggr_id_seq'::regclass), + "data_id" varchar(255) COLLATE "pg_catalog"."default" NOT NULL, + "group_id" varchar(255) COLLATE "pg_catalog"."default" NOT NULL, + "datum_id" varchar(255) COLLATE "pg_catalog"."default" NOT NULL, + "content" text COLLATE "pg_catalog"."default" NOT NULL, + "gmt_modified" timestamp(6) NOT NULL, + "app_name" varchar(128) COLLATE "pg_catalog"."default", + "tenant_id" varchar(128) COLLATE "pg_catalog"."default" +) +; +COMMENT ON COLUMN "public"."config_info_aggr"."id" IS 'id'; +COMMENT ON COLUMN "public"."config_info_aggr"."data_id" IS 'data_id'; +COMMENT ON COLUMN "public"."config_info_aggr"."group_id" IS 'group_id'; +COMMENT ON COLUMN "public"."config_info_aggr"."datum_id" IS 'datum_id'; +COMMENT ON COLUMN "public"."config_info_aggr"."content" IS '内容'; +COMMENT ON COLUMN "public"."config_info_aggr"."gmt_modified" IS '修改时间'; +COMMENT ON COLUMN "public"."config_info_aggr"."tenant_id" IS '租户字段'; +COMMENT ON TABLE "public"."config_info_aggr" IS '增加租户字段'; + +-- ---------------------------- +-- Table structure for config_info_beta +-- ---------------------------- +DROP TABLE IF EXISTS "public"."config_info_beta"; +CREATE TABLE "public"."config_info_beta" ( + "id" int8 NOT NULL DEFAULT nextval('config_info_beta_id_seq'::regclass), + "data_id" varchar(255) COLLATE "pg_catalog"."default" NOT NULL, + "group_id" varchar(128) COLLATE "pg_catalog"."default" NOT NULL, + "app_name" varchar(128) COLLATE "pg_catalog"."default", + "content" text COLLATE "pg_catalog"."default" NOT NULL, + "beta_ips" varchar(1024) COLLATE "pg_catalog"."default", + "md5" varchar(32) COLLATE "pg_catalog"."default", + "gmt_create" timestamp(6) NOT NULL, + "gmt_modified" timestamp(6) NOT NULL, + "src_user" text COLLATE "pg_catalog"."default", + "src_ip" varchar(20) COLLATE "pg_catalog"."default", + "tenant_id" varchar(128) COLLATE "pg_catalog"."default", + "encrypted_data_key" varchar(1024) COLLATE "pg_catalog"."default" NOT NULL +) +; +COMMENT ON COLUMN "public"."config_info_beta"."id" IS 'id'; +COMMENT ON COLUMN "public"."config_info_beta"."data_id" IS 'data_id'; +COMMENT ON COLUMN "public"."config_info_beta"."group_id" IS 'group_id'; +COMMENT ON COLUMN "public"."config_info_beta"."app_name" IS 'app_name'; +COMMENT ON COLUMN "public"."config_info_beta"."content" IS 'content'; +COMMENT ON COLUMN "public"."config_info_beta"."beta_ips" IS 'betaIps'; +COMMENT ON COLUMN "public"."config_info_beta"."md5" IS 'md5'; +COMMENT ON COLUMN "public"."config_info_beta"."gmt_create" IS '创建时间'; +COMMENT ON COLUMN "public"."config_info_beta"."gmt_modified" IS '修改时间'; +COMMENT ON COLUMN "public"."config_info_beta"."src_user" IS 'source user'; +COMMENT ON COLUMN "public"."config_info_beta"."src_ip" IS 'source ip'; +COMMENT ON COLUMN "public"."config_info_beta"."tenant_id" IS '租户字段'; +COMMENT ON COLUMN "public"."config_info_beta"."encrypted_data_key" IS '秘钥'; +COMMENT ON TABLE "public"."config_info_beta" IS 'config_info_beta'; + +-- ---------------------------- +-- Table structure for config_info_tag +-- ---------------------------- +DROP TABLE IF EXISTS "public"."config_info_tag"; +CREATE TABLE "public"."config_info_tag" ( + "id" int8 NOT NULL DEFAULT nextval('config_info_tag_id_seq'::regclass), + "data_id" varchar(255) COLLATE "pg_catalog"."default" NOT NULL, + "group_id" varchar(128) COLLATE "pg_catalog"."default" NOT NULL, + "tenant_id" varchar(128) COLLATE "pg_catalog"."default", + "tag_id" varchar(128) COLLATE "pg_catalog"."default" NOT NULL, + "app_name" varchar(128) COLLATE "pg_catalog"."default", + "content" text COLLATE "pg_catalog"."default" NOT NULL, + "md5" varchar(32) COLLATE "pg_catalog"."default", + "gmt_create" timestamp(6) NOT NULL, + "gmt_modified" timestamp(6) NOT NULL, + "src_user" text COLLATE "pg_catalog"."default", + "src_ip" varchar(20) COLLATE "pg_catalog"."default" +) +; +COMMENT ON COLUMN "public"."config_info_tag"."id" IS 'id'; +COMMENT ON COLUMN "public"."config_info_tag"."data_id" IS 'data_id'; +COMMENT ON COLUMN "public"."config_info_tag"."group_id" IS 'group_id'; +COMMENT ON COLUMN "public"."config_info_tag"."tenant_id" IS 'tenant_id'; +COMMENT ON COLUMN "public"."config_info_tag"."tag_id" IS 'tag_id'; +COMMENT ON COLUMN "public"."config_info_tag"."app_name" IS 'app_name'; +COMMENT ON COLUMN "public"."config_info_tag"."content" IS 'content'; +COMMENT ON COLUMN "public"."config_info_tag"."md5" IS 'md5'; +COMMENT ON COLUMN "public"."config_info_tag"."gmt_create" IS '创建时间'; +COMMENT ON COLUMN "public"."config_info_tag"."gmt_modified" IS '修改时间'; +COMMENT ON COLUMN "public"."config_info_tag"."src_user" IS 'source user'; +COMMENT ON COLUMN "public"."config_info_tag"."src_ip" IS 'source ip'; +COMMENT ON TABLE "public"."config_info_tag" IS 'config_info_tag'; + +-- ---------------------------- +-- Table structure for config_tags_relation +-- ---------------------------- +DROP TABLE IF EXISTS "public"."config_tags_relation"; +CREATE TABLE "public"."config_tags_relation" ( + "id" int8 NOT NULL DEFAULT nextval('config_tags_relation_id_seq'::regclass), + "tag_name" varchar(128) COLLATE "pg_catalog"."default" NOT NULL, + "tag_type" varchar(64) COLLATE "pg_catalog"."default", + "data_id" varchar(255) COLLATE "pg_catalog"."default" NOT NULL, + "group_id" varchar(128) COLLATE "pg_catalog"."default" NOT NULL, + "tenant_id" varchar(128) COLLATE "pg_catalog"."default", + "nid" int8 NOT NULL DEFAULT nextval('config_tags_relation_nid_seq'::regclass) +) +; +COMMENT ON COLUMN "public"."config_tags_relation"."id" IS 'id'; +COMMENT ON COLUMN "public"."config_tags_relation"."tag_name" IS 'tag_name'; +COMMENT ON COLUMN "public"."config_tags_relation"."tag_type" IS 'tag_type'; +COMMENT ON COLUMN "public"."config_tags_relation"."data_id" IS 'data_id'; +COMMENT ON COLUMN "public"."config_tags_relation"."group_id" IS 'group_id'; +COMMENT ON COLUMN "public"."config_tags_relation"."tenant_id" IS 'tenant_id'; +COMMENT ON TABLE "public"."config_tags_relation" IS 'config_tag_relation'; + +-- ---------------------------- +-- Table structure for group_capacity +-- ---------------------------- +DROP TABLE IF EXISTS "public"."group_capacity"; +CREATE TABLE "public"."group_capacity" ( + "id" int8 NOT NULL DEFAULT nextval('group_capacity_id_seq'::regclass), + "group_id" varchar(128) COLLATE "pg_catalog"."default" NOT NULL, + "quota" int4 NOT NULL, + "usage" int4 NOT NULL, + "max_size" int4 NOT NULL, + "max_aggr_count" int4 NOT NULL, + "max_aggr_size" int4 NOT NULL, + "max_history_count" int4 NOT NULL, + "gmt_create" timestamp(6) NOT NULL, + "gmt_modified" timestamp(6) NOT NULL +) +; +COMMENT ON COLUMN "public"."group_capacity"."id" IS '主键ID'; +COMMENT ON COLUMN "public"."group_capacity"."group_id" IS 'Group ID,空字符表示整个集群'; +COMMENT ON COLUMN "public"."group_capacity"."quota" IS '配额,0表示使用默认值'; +COMMENT ON COLUMN "public"."group_capacity"."usage" IS '使用量'; +COMMENT ON COLUMN "public"."group_capacity"."max_size" IS '单个配置大小上限,单位为字节,0表示使用默认值'; +COMMENT ON COLUMN "public"."group_capacity"."max_aggr_count" IS '聚合子配置最大个数,,0表示使用默认值'; +COMMENT ON COLUMN "public"."group_capacity"."max_aggr_size" IS '单个聚合数据的子配置大小上限,单位为字节,0表示使用默认值'; +COMMENT ON COLUMN "public"."group_capacity"."max_history_count" IS '最大变更历史数量'; +COMMENT ON COLUMN "public"."group_capacity"."gmt_create" IS '创建时间'; +COMMENT ON COLUMN "public"."group_capacity"."gmt_modified" IS '修改时间'; +COMMENT ON TABLE "public"."group_capacity" IS '集群、各Group容量信息表'; + +-- ---------------------------- +-- Table structure for his_config_info +-- ---------------------------- +DROP TABLE IF EXISTS "public"."his_config_info"; +CREATE TABLE "public"."his_config_info" ( + "id" int8 NOT NULL, + "nid" int8 NOT NULL DEFAULT nextval('his_config_info_nid_seq'::regclass), + "data_id" varchar(255) COLLATE "pg_catalog"."default" NOT NULL, + "group_id" varchar(128) COLLATE "pg_catalog"."default" NOT NULL, + "app_name" varchar(128) COLLATE "pg_catalog"."default", + "content" text COLLATE "pg_catalog"."default" NOT NULL, + "md5" varchar(32) COLLATE "pg_catalog"."default", + "gmt_create" timestamp(6) NOT NULL DEFAULT '2010-05-05 00:00:00'::timestamp without time zone, + "gmt_modified" timestamp(6) NOT NULL, + "src_user" text COLLATE "pg_catalog"."default", + "src_ip" varchar(20) COLLATE "pg_catalog"."default", + "op_type" char(10) COLLATE "pg_catalog"."default", + "tenant_id" varchar(128) COLLATE "pg_catalog"."default", + "encrypted_data_key" varchar(1024) COLLATE "pg_catalog"."default" NOT NULL +) +; +COMMENT ON COLUMN "public"."his_config_info"."app_name" IS 'app_name'; +COMMENT ON COLUMN "public"."his_config_info"."tenant_id" IS '租户字段'; +COMMENT ON COLUMN "public"."his_config_info"."encrypted_data_key" IS '秘钥'; +COMMENT ON TABLE "public"."his_config_info" IS '多租户改造'; + +-- ---------------------------- +-- Table structure for permissions +-- ---------------------------- +DROP TABLE IF EXISTS "public"."permissions"; +CREATE TABLE "public"."permissions" ( + "role" varchar(50) COLLATE "pg_catalog"."default" NOT NULL, + "resource" varchar(512) COLLATE "pg_catalog"."default" NOT NULL, + "action" varchar(8) COLLATE "pg_catalog"."default" NOT NULL +) +; + +-- ---------------------------- +-- Table structure for roles +-- ---------------------------- +DROP TABLE IF EXISTS "public"."roles"; +CREATE TABLE "public"."roles" ( + "username" varchar(50) COLLATE "pg_catalog"."default" NOT NULL, + "role" varchar(50) COLLATE "pg_catalog"."default" NOT NULL +) +; +COMMENT ON COLUMN "public"."roles"."username" IS 'username'; +COMMENT ON COLUMN "public"."roles"."role" IS 'role'; + +-- ---------------------------- +-- Table structure for tenant_capacity +-- ---------------------------- +DROP TABLE IF EXISTS "public"."tenant_capacity"; +CREATE TABLE "public"."tenant_capacity" ( + "id" int8 NOT NULL DEFAULT nextval('tenant_capacity_id_seq'::regclass), + "tenant_id" varchar(128) COLLATE "pg_catalog"."default" NOT NULL, + "quota" int4 NOT NULL, + "usage" int4 NOT NULL, + "max_size" int4 NOT NULL, + "max_aggr_count" int4 NOT NULL, + "max_aggr_size" int4 NOT NULL, + "max_history_count" int4 NOT NULL, + "gmt_create" timestamp(6) NOT NULL, + "gmt_modified" timestamp(6) NOT NULL +) +; +COMMENT ON COLUMN "public"."tenant_capacity"."id" IS '主键ID'; +COMMENT ON COLUMN "public"."tenant_capacity"."tenant_id" IS 'Tenant ID'; +COMMENT ON COLUMN "public"."tenant_capacity"."quota" IS '配额,0表示使用默认值'; +COMMENT ON COLUMN "public"."tenant_capacity"."usage" IS '使用量'; +COMMENT ON COLUMN "public"."tenant_capacity"."max_size" IS '单个配置大小上限,单位为字节,0表示使用默认值'; +COMMENT ON COLUMN "public"."tenant_capacity"."max_aggr_count" IS '聚合子配置最大个数'; +COMMENT ON COLUMN "public"."tenant_capacity"."max_aggr_size" IS '单个聚合数据的子配置大小上限,单位为字节,0表示使用默认值'; +COMMENT ON COLUMN "public"."tenant_capacity"."max_history_count" IS '最大变更历史数量'; +COMMENT ON COLUMN "public"."tenant_capacity"."gmt_create" IS '创建时间'; +COMMENT ON COLUMN "public"."tenant_capacity"."gmt_modified" IS '修改时间'; +COMMENT ON TABLE "public"."tenant_capacity" IS '租户容量信息表'; + +-- ---------------------------- +-- Table structure for tenant_info +-- ---------------------------- +DROP TABLE IF EXISTS "public"."tenant_info"; +CREATE TABLE "public"."tenant_info" ( + "id" int8 NOT NULL DEFAULT nextval('tenant_info_id_seq'::regclass), + "kp" varchar(128) COLLATE "pg_catalog"."default" NOT NULL, + "tenant_id" varchar(128) COLLATE "pg_catalog"."default", + "tenant_name" varchar(128) COLLATE "pg_catalog"."default", + "tenant_desc" varchar(256) COLLATE "pg_catalog"."default", + "create_source" varchar(32) COLLATE "pg_catalog"."default", + "gmt_create" int8 NOT NULL, + "gmt_modified" int8 NOT NULL +) +; +COMMENT ON COLUMN "public"."tenant_info"."id" IS 'id'; +COMMENT ON COLUMN "public"."tenant_info"."kp" IS 'kp'; +COMMENT ON COLUMN "public"."tenant_info"."tenant_id" IS 'tenant_id'; +COMMENT ON COLUMN "public"."tenant_info"."tenant_name" IS 'tenant_name'; +COMMENT ON COLUMN "public"."tenant_info"."tenant_desc" IS 'tenant_desc'; +COMMENT ON COLUMN "public"."tenant_info"."create_source" IS 'create_source'; +COMMENT ON COLUMN "public"."tenant_info"."gmt_create" IS '创建时间'; +COMMENT ON COLUMN "public"."tenant_info"."gmt_modified" IS '修改时间'; +COMMENT ON TABLE "public"."tenant_info" IS 'tenant_info'; + +-- ---------------------------- +-- Table structure for users +-- ---------------------------- +DROP TABLE IF EXISTS "public"."users"; +CREATE TABLE "public"."users" ( + "username" varchar(50) COLLATE "pg_catalog"."default" NOT NULL, + "password" varchar(500) COLLATE "pg_catalog"."default" NOT NULL, + "enabled" bool NOT NULL +) +; +COMMENT ON COLUMN "public"."users"."username" IS 'username'; +COMMENT ON COLUMN "public"."users"."password" IS 'password'; +COMMENT ON COLUMN "public"."users"."enabled" IS 'enabled'; + +-- ---------------------------- +-- Alter sequences owned by +-- ---------------------------- +ALTER SEQUENCE "public"."config_info_aggr_id_seq" + OWNED BY "public"."config_info_aggr"."id"; +SELECT setval('"public"."config_info_aggr_id_seq"', 1, false); + +-- ---------------------------- +-- Alter sequences owned by +-- ---------------------------- +ALTER SEQUENCE "public"."config_info_beta_id_seq" + OWNED BY "public"."config_info_beta"."id"; +SELECT setval('"public"."config_info_beta_id_seq"', 1, false); + +-- ---------------------------- +-- Alter sequences owned by +-- ---------------------------- +ALTER SEQUENCE "public"."config_info_id_seq" + OWNED BY "public"."config_info"."id"; +SELECT setval('"public"."config_info_id_seq"', 85, true); + +-- ---------------------------- +-- Alter sequences owned by +-- ---------------------------- +ALTER SEQUENCE "public"."config_info_tag_id_seq" + OWNED BY "public"."config_info_tag"."id"; +SELECT setval('"public"."config_info_tag_id_seq"', 1, false); + +-- ---------------------------- +-- Alter sequences owned by +-- ---------------------------- +ALTER SEQUENCE "public"."config_tags_relation_id_seq" + OWNED BY "public"."config_tags_relation"."id"; +SELECT setval('"public"."config_tags_relation_id_seq"', 1, false); + +-- ---------------------------- +-- Alter sequences owned by +-- ---------------------------- +ALTER SEQUENCE "public"."config_tags_relation_nid_seq" + OWNED BY "public"."config_tags_relation"."nid"; +SELECT setval('"public"."config_tags_relation_nid_seq"', 1, false); + +-- ---------------------------- +-- Alter sequences owned by +-- ---------------------------- +ALTER SEQUENCE "public"."group_capacity_id_seq" + OWNED BY "public"."group_capacity"."id"; +SELECT setval('"public"."group_capacity_id_seq"', 1, false); + +-- ---------------------------- +-- Alter sequences owned by +-- ---------------------------- +ALTER SEQUENCE "public"."his_config_info_nid_seq" + OWNED BY "public"."his_config_info"."nid"; +SELECT setval('"public"."his_config_info_nid_seq"', 123, true); + +-- ---------------------------- +-- Alter sequences owned by +-- ---------------------------- +ALTER SEQUENCE "public"."tenant_capacity_id_seq" + OWNED BY "public"."tenant_capacity"."id"; +SELECT setval('"public"."tenant_capacity_id_seq"', 1, false); + +-- ---------------------------- +-- Alter sequences owned by +-- ---------------------------- +ALTER SEQUENCE "public"."tenant_info_id_seq" + OWNED BY "public"."tenant_info"."id"; +SELECT setval('"public"."tenant_info_id_seq"', 2, true); + +-- ---------------------------- +-- Indexes structure for table config_info +-- ---------------------------- +CREATE UNIQUE INDEX "uk_configinfo_datagrouptenant" ON "public"."config_info" USING btree ( + "data_id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST, + "group_id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST, + "tenant_id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST + ); + +-- ---------------------------- +-- Primary Key structure for table config_info +-- ---------------------------- +ALTER TABLE "public"."config_info" ADD CONSTRAINT "config_info_pkey" PRIMARY KEY ("id"); + +-- ---------------------------- +-- Indexes structure for table config_info_aggr +-- ---------------------------- +CREATE UNIQUE INDEX "uk_configinfoaggr_datagrouptenantdatum" ON "public"."config_info_aggr" USING btree ( + "data_id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST, + "group_id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST, + "tenant_id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST, + "datum_id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST + ); + +-- ---------------------------- +-- Primary Key structure for table config_info_aggr +-- ---------------------------- +ALTER TABLE "public"."config_info_aggr" ADD CONSTRAINT "config_info_aggr_pkey" PRIMARY KEY ("id"); + +-- ---------------------------- +-- Indexes structure for table config_info_beta +-- ---------------------------- +CREATE UNIQUE INDEX "uk_configinfobeta_datagrouptenant" ON "public"."config_info_beta" USING btree ( + "data_id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST, + "group_id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST, + "tenant_id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST + ); + +-- ---------------------------- +-- Primary Key structure for table config_info_beta +-- ---------------------------- +ALTER TABLE "public"."config_info_beta" ADD CONSTRAINT "config_info_beta_pkey" PRIMARY KEY ("id"); + +-- ---------------------------- +-- Indexes structure for table config_info_tag +-- ---------------------------- +CREATE UNIQUE INDEX "uk_configinfotag_datagrouptenanttag" ON "public"."config_info_tag" USING btree ( + "data_id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST, + "group_id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST, + "tenant_id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST, + "tag_id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST + ); + +-- ---------------------------- +-- Primary Key structure for table config_info_tag +-- ---------------------------- +ALTER TABLE "public"."config_info_tag" ADD CONSTRAINT "config_info_tag_pkey" PRIMARY KEY ("id"); + +-- ---------------------------- +-- Indexes structure for table config_tags_relation +-- ---------------------------- +CREATE INDEX "idx_tenant_id" ON "public"."config_tags_relation" USING btree ( + "tenant_id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST + ); +CREATE UNIQUE INDEX "uk_configtagrelation_configidtag" ON "public"."config_tags_relation" USING btree ( + "id" "pg_catalog"."int8_ops" ASC NULLS LAST, + "tag_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST, + "tag_type" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST + ); + +-- ---------------------------- +-- Primary Key structure for table config_tags_relation +-- ---------------------------- +ALTER TABLE "public"."config_tags_relation" ADD CONSTRAINT "config_tags_relation_pkey" PRIMARY KEY ("nid"); + +-- ---------------------------- +-- Indexes structure for table group_capacity +-- ---------------------------- +CREATE UNIQUE INDEX "uk_group_id" ON "public"."group_capacity" USING btree ( + "group_id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST + ); + +-- ---------------------------- +-- Primary Key structure for table group_capacity +-- ---------------------------- +ALTER TABLE "public"."group_capacity" ADD CONSTRAINT "group_capacity_pkey" PRIMARY KEY ("id"); + +-- ---------------------------- +-- Indexes structure for table his_config_info +-- ---------------------------- +CREATE INDEX "idx_did" ON "public"."his_config_info" USING btree ( + "data_id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST + ); +CREATE INDEX "idx_gmt_create" ON "public"."his_config_info" USING btree ( + "gmt_create" "pg_catalog"."timestamp_ops" ASC NULLS LAST + ); +CREATE INDEX "idx_gmt_modified" ON "public"."his_config_info" USING btree ( + "gmt_modified" "pg_catalog"."timestamp_ops" ASC NULLS LAST + ); + +-- ---------------------------- +-- Primary Key structure for table his_config_info +-- ---------------------------- +ALTER TABLE "public"."his_config_info" ADD CONSTRAINT "his_config_info_pkey" PRIMARY KEY ("nid"); + +-- ---------------------------- +-- Indexes structure for table permissions +-- ---------------------------- +CREATE UNIQUE INDEX "uk_role_permission" ON "public"."permissions" USING btree ( + "role" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST, + "resource" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST, + "action" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST + ); + +-- ---------------------------- +-- Indexes structure for table roles +-- ---------------------------- +CREATE UNIQUE INDEX "uk_username_role" ON "public"."roles" USING btree ( + "username" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST, + "role" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST + ); + +-- ---------------------------- +-- Indexes structure for table tenant_capacity +-- ---------------------------- +CREATE UNIQUE INDEX "uk_tenant_id" ON "public"."tenant_capacity" USING btree ( + "tenant_id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST + ); + +-- ---------------------------- +-- Primary Key structure for table tenant_capacity +-- ---------------------------- +ALTER TABLE "public"."tenant_capacity" ADD CONSTRAINT "tenant_capacity_pkey" PRIMARY KEY ("id"); + +-- ---------------------------- +-- Indexes structure for table tenant_info +-- ---------------------------- +CREATE UNIQUE INDEX "uk_tenant_info_kptenantid" ON "public"."tenant_info" USING btree ( + "kp" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST, + "tenant_id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST + ); + +-- ---------------------------- +-- Primary Key structure for table users +-- ---------------------------- +ALTER TABLE "public"."users" ADD CONSTRAINT "users_pkey" PRIMARY KEY ("username"); + +INSERT INTO users (username, password, enabled) VALUES ('nacos', '$2a$10$EuWPZHzz32dJN7jexM34MOeYirDdFAZm2kuWj7VEOJhhZkDrxfvUu', TRUE); + +INSERT INTO roles (username, role) VALUES ('nacos', 'ROLE_ADMIN'); diff --git a/dependencies/pom.xml b/dependencies/pom.xml index 42c70e263..4b56d5899 100644 --- a/dependencies/pom.xml +++ b/dependencies/pom.xml @@ -28,7 +28,7 @@ cn.herodotus.engine dependencies - 3.3.1.3 + 3.3.2.0 diff --git a/modules/dante-module-common/pom.xml b/modules/dante-module-common/pom.xml index 4d37648bd..d8ccc2ec8 100644 --- a/modules/dante-module-common/pom.xml +++ b/modules/dante-module-common/pom.xml @@ -28,7 +28,7 @@ modules cn.herodotus.dante - 3.3.1.3 + 3.3.2.0 dante-module-common diff --git a/modules/dante-module-metadata/pom.xml b/modules/dante-module-metadata/pom.xml index 8aab65fde..410629d5a 100644 --- a/modules/dante-module-metadata/pom.xml +++ b/modules/dante-module-metadata/pom.xml @@ -28,7 +28,7 @@ modules cn.herodotus.dante - 3.3.1.3 + 3.3.2.0 dante-module-metadata diff --git a/modules/dante-module-social/pom.xml b/modules/dante-module-social/pom.xml index 485ad2b3f..43e8c2fb1 100644 --- a/modules/dante-module-social/pom.xml +++ b/modules/dante-module-social/pom.xml @@ -28,7 +28,7 @@ modules cn.herodotus.dante - 3.3.1.3 + 3.3.2.0 dante-module-social diff --git a/modules/dante-module-strategy/pom.xml b/modules/dante-module-strategy/pom.xml index 176fc174b..6568e0768 100644 --- a/modules/dante-module-strategy/pom.xml +++ b/modules/dante-module-strategy/pom.xml @@ -28,7 +28,7 @@ modules cn.herodotus.dante - 3.3.1.3 + 3.3.2.0 dante-module-strategy diff --git a/modules/pom.xml b/modules/pom.xml index 73f951404..67445c747 100644 --- a/modules/pom.xml +++ b/modules/pom.xml @@ -28,7 +28,7 @@ dante-cloud cn.herodotus.dante - 3.3.1.3 + 3.3.2.0 modules diff --git a/packages/authentication-spring-boot-starter/pom.xml b/packages/authentication-spring-boot-starter/pom.xml index 8c52da7eb..56d01e8ca 100644 --- a/packages/authentication-spring-boot-starter/pom.xml +++ b/packages/authentication-spring-boot-starter/pom.xml @@ -28,7 +28,7 @@ packages cn.herodotus.dante - 3.3.1.3 + 3.3.2.0 authentication-spring-boot-starter diff --git a/packages/facility-spring-boot-starter/pom.xml b/packages/facility-spring-boot-starter/pom.xml index ab7889bae..2add0e08e 100644 --- a/packages/facility-spring-boot-starter/pom.xml +++ b/packages/facility-spring-boot-starter/pom.xml @@ -26,7 +26,7 @@ packages cn.herodotus.dante - 3.3.1.3 + 3.3.2.0 4.0.0 diff --git a/packages/pom.xml b/packages/pom.xml index 24f8a1ab5..a6a178cde 100644 --- a/packages/pom.xml +++ b/packages/pom.xml @@ -28,7 +28,7 @@ dante-cloud cn.herodotus.dante - 3.3.1.3 + 3.3.2.0 packages diff --git a/packages/service-spring-boot-starter/pom.xml b/packages/service-spring-boot-starter/pom.xml index 5b0531b3c..a3ec22087 100644 --- a/packages/service-spring-boot-starter/pom.xml +++ b/packages/service-spring-boot-starter/pom.xml @@ -28,7 +28,7 @@ packages cn.herodotus.dante - 3.3.1.3 + 3.3.2.0 service-spring-boot-starter diff --git a/platform/dante-cloud-gateway/pom.xml b/platform/dante-cloud-gateway/pom.xml index d1e22d07a..0f1195151 100644 --- a/platform/dante-cloud-gateway/pom.xml +++ b/platform/dante-cloud-gateway/pom.xml @@ -28,7 +28,7 @@ platform cn.herodotus.dante - 3.3.1.3 + 3.3.2.0 dante-cloud-gateway diff --git a/platform/dante-cloud-gateway/src/main/resources/bootstrap.yml b/platform/dante-cloud-gateway/src/main/resources/bootstrap.yml index d383a6501..0b79a9a05 100644 --- a/platform/dante-cloud-gateway/src/main/resources/bootstrap.yml +++ b/platform/dante-cloud-gateway/src/main/resources/bootstrap.yml @@ -73,7 +73,6 @@ spring: transport: port: 8719 dashboard: ${ALIBABA_SENTINEL_SERVER_ADDR:@alibaba.sentinel.server-addr@} - eager: true #服务注启动,直接注册到dashboard # datasource: # flow: # nacos: diff --git a/platform/dante-cloud-message/pom.xml b/platform/dante-cloud-message/pom.xml index 54188fe5d..9a60ae992 100644 --- a/platform/dante-cloud-message/pom.xml +++ b/platform/dante-cloud-message/pom.xml @@ -27,7 +27,7 @@ cn.herodotus.dante platform - 3.3.1.3 + 3.3.2.0 dante-cloud-message diff --git a/platform/dante-cloud-message/src/main/resources/bootstrap.yml b/platform/dante-cloud-message/src/main/resources/bootstrap.yml index e383c3401..c31d3ac56 100644 --- a/platform/dante-cloud-message/src/main/resources/bootstrap.yml +++ b/platform/dante-cloud-message/src/main/resources/bootstrap.yml @@ -50,7 +50,6 @@ spring: transport: port: 8719 dashboard: ${ALIBABA_SENTINEL_SERVER_ADDR:@alibaba.sentinel.server-addr@} - eager: true #服务注启动,直接注册到dashboard # datasource: # flow: # nacos: diff --git a/platform/dante-cloud-monitor/pom.xml b/platform/dante-cloud-monitor/pom.xml index 5b871bcf0..647819732 100644 --- a/platform/dante-cloud-monitor/pom.xml +++ b/platform/dante-cloud-monitor/pom.xml @@ -26,11 +26,11 @@ platform cn.herodotus.dante - 3.3.1.3 + 3.3.2.0 dante-cloud-monitor - 3.3.1.3 + 3.3.2.0 dante-cloud-monitor dante-cloud-monitor diff --git a/platform/dante-cloud-uaa/pom.xml b/platform/dante-cloud-uaa/pom.xml index f18707ff9..d567b811c 100644 --- a/platform/dante-cloud-uaa/pom.xml +++ b/platform/dante-cloud-uaa/pom.xml @@ -28,7 +28,7 @@ platform cn.herodotus.dante - 3.3.1.3 + 3.3.2.0 dante-cloud-uaa diff --git a/platform/dante-cloud-uaa/src/main/resources/bootstrap.yml b/platform/dante-cloud-uaa/src/main/resources/bootstrap.yml index 5ef5f4bf1..cb5ea40fa 100644 --- a/platform/dante-cloud-uaa/src/main/resources/bootstrap.yml +++ b/platform/dante-cloud-uaa/src/main/resources/bootstrap.yml @@ -53,7 +53,6 @@ spring: transport: port: 8719 dashboard: ${ALIBABA_SENTINEL_SERVER_ADDR:@alibaba.sentinel.server-addr@} - eager: true #服务注启动,直接注册到dashboard # datasource: # flow: # nacos: diff --git a/platform/dante-cloud-upms/pom.xml b/platform/dante-cloud-upms/pom.xml index 609f47fff..f78ca0fcd 100644 --- a/platform/dante-cloud-upms/pom.xml +++ b/platform/dante-cloud-upms/pom.xml @@ -26,12 +26,12 @@ platform cn.herodotus.dante - 3.3.1.3 + 3.3.2.0 4.0.0 dante-cloud-upms - 3.3.1.3 + 3.3.2.0 diff --git a/platform/dante-cloud-upms/src/main/resources/bootstrap.yml b/platform/dante-cloud-upms/src/main/resources/bootstrap.yml index 39ec5a79e..a69c38023 100644 --- a/platform/dante-cloud-upms/src/main/resources/bootstrap.yml +++ b/platform/dante-cloud-upms/src/main/resources/bootstrap.yml @@ -51,7 +51,6 @@ spring: transport: port: 8719 dashboard: ${ALIBABA_SENTINEL_SERVER_ADDR:@alibaba.sentinel.server-addr@} - eager: true #服务注启动,直接注册到dashboard # datasource: # flow: # nacos: diff --git a/platform/pom.xml b/platform/pom.xml index eb4e7f498..96cb8ff30 100644 --- a/platform/pom.xml +++ b/platform/pom.xml @@ -28,7 +28,7 @@ dante-cloud cn.herodotus.dante - 3.3.1.3 + 3.3.2.0 platform diff --git a/pom.xml b/pom.xml index 99ab7d72d..0cec099fe 100644 --- a/pom.xml +++ b/pom.xml @@ -28,7 +28,7 @@ cn.herodotus.dante dependencies - 3.3.1.3 + 3.3.2.0 dependencies/pom.xml diff --git a/services/dante-cloud-bpmn-ability/pom.xml b/services/dante-cloud-bpmn-ability/pom.xml index f4e44021c..c995e8436 100644 --- a/services/dante-cloud-bpmn-ability/pom.xml +++ b/services/dante-cloud-bpmn-ability/pom.xml @@ -27,11 +27,11 @@ services cn.herodotus.dante - 3.3.1.3 + 3.3.2.0 dante-cloud-bpmn-ability - 3.3.1.3 + 3.3.2.0 dante-cloud-bpmn-ability 基于Camunda工作流的服务 diff --git a/services/dante-cloud-bpmn-ability/src/main/resources/bootstrap.yml b/services/dante-cloud-bpmn-ability/src/main/resources/bootstrap.yml index 721de6ece..4faa8cda9 100644 --- a/services/dante-cloud-bpmn-ability/src/main/resources/bootstrap.yml +++ b/services/dante-cloud-bpmn-ability/src/main/resources/bootstrap.yml @@ -48,7 +48,6 @@ spring: transport: port: 8719 dashboard: ${ALIBABA_SENTINEL_SERVER_ADDR:@alibaba.sentinel.server-addr@} - eager: true #服务注启动,直接注册到dashboard # datasource: # flow: # nacos: diff --git a/services/dante-cloud-bpmn-logic/pom.xml b/services/dante-cloud-bpmn-logic/pom.xml index 9c14a4c7f..6b2214ddb 100644 --- a/services/dante-cloud-bpmn-logic/pom.xml +++ b/services/dante-cloud-bpmn-logic/pom.xml @@ -28,7 +28,7 @@ services cn.herodotus.dante - 3.3.1.3 + 3.3.2.0 dante-cloud-bpmn-logic diff --git a/services/dante-cloud-oss-ability/pom.xml b/services/dante-cloud-oss-ability/pom.xml index 93e330c0f..d4d750ec7 100644 --- a/services/dante-cloud-oss-ability/pom.xml +++ b/services/dante-cloud-oss-ability/pom.xml @@ -27,7 +27,7 @@ cn.herodotus.dante services - 3.3.1.3 + 3.3.2.0 dante-cloud-oss-ability diff --git a/services/dante-cloud-oss-ability/src/main/resources/bootstrap.yml b/services/dante-cloud-oss-ability/src/main/resources/bootstrap.yml index 94feb696a..46bd5c8ce 100644 --- a/services/dante-cloud-oss-ability/src/main/resources/bootstrap.yml +++ b/services/dante-cloud-oss-ability/src/main/resources/bootstrap.yml @@ -57,7 +57,6 @@ spring: transport: port: 8719 dashboard: ${ALIBABA_SENTINEL_SERVER_ADDR:@alibaba.sentinel.server-addr@} - eager: true #服务注启动,直接注册到dashboard # datasource: # flow: # nacos: diff --git a/services/pom.xml b/services/pom.xml index ac49ea48e..5d778c324 100644 --- a/services/pom.xml +++ b/services/pom.xml @@ -28,7 +28,7 @@ dante-cloud cn.herodotus.dante - 3.3.1.3 + 3.3.2.0 services