1
0
Fork 0
management/back/dkha-sz-main/综合应用项目用到的数据库/nacos.sql

288 lines
29 KiB
MySQL
Raw Normal View History

2023-12-18 13:12:25 +08:00
/*
Navicat Premium Data Transfer
Source Server :
Source Server Type : MySQL
Source Server Version : 50733
Source Host : localhost:3306
Source Schema : nacos
Target Server Type : MySQL
Target Server Version : 50733
File Encoding : 65001
Date: 02/06/2021 23:41:34
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for config_info
-- ----------------------------
DROP TABLE IF EXISTS `config_info`;
CREATE TABLE `config_info` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id',
`data_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'data_id',
`group_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
`content` longtext CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'content',
`md5` varchar(32) CHARACTER SET utf8 COLLATE utf8_bin NULL 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 CHARACTER SET utf8 COLLATE utf8_bin NULL COMMENT 'source user',
`src_ip` varchar(20) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'source ip',
`app_name` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
`tenant_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '' COMMENT '租户字段',
`c_desc` varchar(256) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
`c_use` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
`effect` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
`type` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
`c_schema` text CHARACTER SET utf8 COLLATE utf8_bin NULL,
PRIMARY KEY (`id`) USING BTREE,
UNIQUE INDEX `uk_configinfo_datagrouptenant`(`data_id`, `group_id`, `tenant_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = 'config_info' ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of config_info
-- ----------------------------
INSERT INTO `config_info` VALUES (1, 'common.yaml', 'DKHA_CLOUD_GROUP', 'spring:\r\n jackson:\r\n time-zone: GMT+8\r\n date-format: yyyy-MM-dd HH:mm:ss \r\n cloud:\r\n sentinel:\r\n enabled: true\r\n transport:\r\n # sentinel dashboard 地址\r\n dashboard: localhost:8180\r\n\r\nmanagement:\r\n endpoints:\r\n web:\r\n exposure:\r\n include: \"*\"\r\n endpoint:\r\n health:\r\n show-details: ALWAYS\r\n\r\nfeign:\r\n sentinel:\r\n enabled: true\r\n client:\r\n config:\r\n default:\r\n loggerLevel: FULL\r\n httpclient:\r\n enabled: true\r\n\r\n\r\nribbon:\r\n ReadTimeout: 300000\r\n ConnectTimeout: 300000 ', '1f55f98c36c84dad59b5796affac3b9a', '2020-08-06 01:40:23', '2021-04-13 04:25:49', NULL, '127.0.0.1', '', '', '', '', '', 'yaml', '');
INSERT INTO `config_info` VALUES (2, 'datasource.yaml', 'DKHA_CLOUD_GROUP', 'spring:\r\n #上传限制文件大小\r\n servlet:\r\n multipart:\r\n max-file-size: 200MB\r\n max-request-size: 200MB\r\n enabled: true\r\n redis:\r\n # host: 192.168.0.90\r\n host: 127.0.0.1\r\n # host: 10.51.70.182\r\n port: 6379\r\n database: 0\r\n password: \r\n timeout: 30s\r\n datasource:\r\n druid:\r\n #MySQL\r\n driver-class-name: com.mysql.cj.jdbc.Driver\r\n url: jdbc:mysql://127.0.0.1:3306/dkhl?useUnicode=true&characterEncoding=UTF-8&useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai\r\n username: zr\r\n password: woshizr\r\n # username: root\r\n # password: Dkha123\r\n# #Oracle\r\n# driver-class-name: oracle.jdbc.OracleDriver\r\n# url: jdbc:oracle:thin:@localhost:1521:xe\r\n# username: renren_security\r\n# password: 123456\r\n# #SQLServer\r\n# driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver\r\n# url: jdbc:sqlserver://localhost:1433;DatabaseName=security_enterprise\r\n# username: sa\r\n# password: 123456\r\n# #postgresql\r\n# driver-class-name: org.postgresql.Driver\r\n# url: jdbc:postgresql://localhost:5432/security_enterprise\r\n# username: postgres\r\n# password: 123456\r\n initial-size: 2\r\n max-active: 5\r\n min-idle: 2\r\n max-wait: 6000\r\n pool-prepared-statements: true\r\n max-pool-prepared-statement-per-connection-size: 5\r\n time-between-eviction-runs-millis: 60000\r\n min-evictable-idle-time-millis: 300000\r\n #Oracle需要打开注释\r\n #validation-query: SELECT 1 FROM DUAL\r\n test-while-idle: true\r\n test-on-borrow: false\r\n test-on-return: false\r\n filter:\r\n stat:\r\n log-slow-sql: true\r\n slow-sql-millis: 1000\r\n merge-sql: false\r\n wall:\r\n config:\r\n multi-statement-allow: true\r\n\r\n #消息队列\r\n rabbitmq:\r\n # host: 192.168.0.90\r\n # host: 10.51.70.182\r\n host: 127.0.0.1\r\n port: 5672\r\n username: admin\r\n password: admin\r\n\r\n # host: 127.0.0.1\r\n # port: 5672\r\n # username: root\r\n # password: admin\r\n\r\n\r\n # host: 172.16.102.161\r\n # port: 5672\r\n # username: root\r\n # password: admin\r\n\r\n publisher-returns: true #开启接收确认\r\n listener:\r\n simple:\r\n acknowledge-mode: manual # 手工进行ACK确认\r\n prefetch: 5 \r\n\r\nmybatis-plus:\r\n mapper-locations: classpath:/mapper/**/*.xml\r\n #实体扫描多个package用逗号或者分号分隔\r\n typeAliasesPackage: com.dkha.entity\r\n global-config:\r\n #数据库相关配置\r\n db-config:\r\n #主键类型 AUTO:\"数据库ID自增\", INPUT:\"用户输入ID\", ID_WORKER:\"全局唯一ID (数字类型唯一ID)\", UUID:\"全局唯一ID UUID\";\r\n id-type: ID_WORKER\r\n banner: false\r\n #原生配置\r\n configuration:\r\n map-underscore-to-camel-case: true\r\n cache-enabled: false\r\n call-setters-on-nulls: true\r\n jdbc-type-for-null: \'null\' \r\n\r\n# es 配置\r\nes:\r\n endpoints: 192.168.8.3:9200 \r\n\r\n# minio 配置\r\nminio:\r\n url: http://192.168.8.3:9000\r\n accessKey: admin\r\n secretKey: Dkha123.\r\n bucketName: school\r\n\r\n# UWB识别\r\nuwb:\r\n # 第三方访问URL用户权限服务\r\n url: http://192.168.8.8:8088\r\n # 第三方访问URL网关\r\n url2: http://192.168.8.8:8080 \r\n\r\n# 8英寸门禁的后端管理IP和端口\r\neightdoor:\r\n mangerip: 192.168.8.4\r\n port: 9187 \r\n\r\n# 5英寸门禁的后端管理IP和端口\r\nfivedoor:\r\n url: http://192.168.8.55:80\r\n \r\n# 多数据源的配置 slave1、slave2 5寸门禁配置\r\ndynamic:\r\n datasource:\r\n slave1:\r\n driver-class-name: com.mysql.cj.jdbc.Driver\r\n url: jdbc:mysql://127.0.0.1:3306/scmqtt?useUnicode=true&characterEncoding=UTF-8&useSSL=fals
INSERT INTO `config_info` VALUES (3, 'gateway.json', 'DKHA_CLOUD_GROUP', '[\r\n {\r\n \"remark\": \"认证服务\",\r\n \"id\": \"dkha-auth-server\",\r\n \"uri\": \"lb://dkha-auth-server\",\r\n \"order\": \"1\",\r\n \"predicates\": [\r\n {\r\n \"name\": \"Path\",\r\n \"args\": {\r\n \"pattern\": \"/auth/**\"\r\n }\r\n }\r\n ],\r\n \"filters\": [\r\n {\r\n \"name\": \"StripPrefix\",\r\n \"args\": {\r\n \"StripPrefix\": 0\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"remark\": \"Admin服务\",\r\n \"id\": \"dkha-admin-server\",\r\n \"uri\": \"lb://dkha-admin-server\",\r\n \"order\": \"2\",\r\n \"predicates\": [\r\n {\r\n \"name\": \"Path\",\r\n \"args\": {\r\n \"pattern\": \"/sys/**\"\r\n }\r\n }\r\n ],\r\n \"filters\": [\r\n {\r\n \"name\": \"StripPrefix\",\r\n \"args\": {\r\n \"StripPrefix\": 0\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"remark\": \"电流采集服务\",\r\n \"id\": \"dkha-current-collection-server\",\r\n \"uri\": \"lb://dkha-current-collection-server\",\r\n \"order\": \"3\",\r\n \"predicates\": [\r\n {\r\n \"name\": \"Path\",\r\n \"args\": {\r\n \"pattern\": \"/current-collection/**\"\r\n }\r\n }\r\n ],\r\n \"filters\": [\r\n {\r\n \"name\": \"StripPrefix\",\r\n \"args\": {\r\n \"StripPrefix\": 0\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"remark\": \"网关数据采集服务\",\r\n \"id\": \"dkha-gateway-collection-server\",\r\n \"uri\": \"lb://dkha-gateway-collection-server\",\r\n \"order\": \"4\",\r\n \"predicates\": [\r\n {\r\n \"name\": \"Path\",\r\n \"args\": {\r\n \"pattern\": \"/gateway-collection/**\"\r\n }\r\n }\r\n ],\r\n \"filters\": [\r\n {\r\n \"name\": \"StripPrefix\",\r\n \"args\": {\r\n \"StripPrefix\": 0\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"remark\": \"应用服务\",\r\n \"id\": \"dkha-system-server\",\r\n \"uri\": \"lb://dkha-system-server\",\r\n \"order\": \"5\",\r\n \"predicates\": [\r\n {\r\n \"name\": \"Path\",\r\n \"args\": {\r\n \"pattern\": \"/system/**\"\r\n }\r\n }\r\n ],\r\n \"filters\": [\r\n {\r\n \"name\": \"StripPrefix\",\r\n \"args\": {\r\n \"StripPrefix\": 0\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"remark\": \"监控服务\",\r\n \"id\": \"dkha-monitor-server\",\r\n \"uri\": \"lb://dkha-monitor-server\",\r\n \"order\": \"6\",\r\n \"predicates\": [\r\n {\r\n \"name\": \"Path\",\r\n \"args\": {\r\n \"pattern\": \"/monitor/**\"\r\n }\r\n }\r\n ],\r\n \"filters\": [\r\n {\r\n \"name\": \"StripPrefix\",\r\n \"args\": {\r\n \"StripPrefix\": 0\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"remark\": \"API服务\",\r\n \"id\": \"dkha-api-server\",\r\n \"uri\": \"lb://dkha-api-server\",\r\n \"order\": \"7\",\r\n \"predicates\": [\r\n {\r\n \"name\": \"Path\",\r\n \"args\": {\r\n \"pattern\": \"/api/**\"\r\n }\r\n }\r\n ],\r\n \"filters\": [\r\n {\r\n \"name\": \"StripPrefix\",\r\n \"args\": {\r\n \"StripPrefix\": 0\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"remark\": \"定时任务服务\",\r\n \"id\": \"dkha-job-server\",\r\n \"uri\": \"lb://dkha-job-server\",\r\n \"order\": \"8\",\r\n \"predicates\": [\r\n {\r\n \"name\": \"Path\",\r\n \"args\": {\r\n \"pattern\": \"/job/**\"\r\n }\r\n }\r\n ],\r\n \"filters\": [\r\n {\r\n \"name\": \"StripPrefix\",\r\n \"args\": {\r\n \"StripPrefix\": 0\r\n }\r\n }\r\n ]\r\n }\r\n]\r\n', 'efaababcf89f4e6f7df12330821bf12c', '2020-08-06 01:40:23', '202
-- ----------------------------
-- Table structure for config_info_aggr
-- ----------------------------
DROP TABLE IF EXISTS `config_info_aggr`;
CREATE TABLE `config_info_aggr` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id',
`data_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'data_id',
`group_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'group_id',
`datum_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'datum_id',
`content` longtext CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '内容',
`gmt_modified` datetime NOT NULL COMMENT '修改时间',
`app_name` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
`tenant_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '' COMMENT '租户字段',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE INDEX `uk_configinfoaggr_datagrouptenantdatum`(`data_id`, `group_id`, `tenant_id`, `datum_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = '增加租户字段' ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of config_info_aggr
-- ----------------------------
-- ----------------------------
-- Table structure for config_info_beta
-- ----------------------------
DROP TABLE IF EXISTS `config_info_beta`;
CREATE TABLE `config_info_beta` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id',
`data_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'data_id',
`group_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'group_id',
`app_name` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'app_name',
`content` longtext CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'content',
`beta_ips` varchar(1024) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'betaIps',
`md5` varchar(32) CHARACTER SET utf8 COLLATE utf8_bin NULL 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 CHARACTER SET utf8 COLLATE utf8_bin NULL COMMENT 'source user',
`src_ip` varchar(20) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'source ip',
`tenant_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '' COMMENT '租户字段',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE INDEX `uk_configinfobeta_datagrouptenant`(`data_id`, `group_id`, `tenant_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = 'config_info_beta' ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of config_info_beta
-- ----------------------------
-- ----------------------------
-- Table structure for config_info_tag
-- ----------------------------
DROP TABLE IF EXISTS `config_info_tag`;
CREATE TABLE `config_info_tag` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id',
`data_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'data_id',
`group_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'group_id',
`tenant_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '' COMMENT 'tenant_id',
`tag_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'tag_id',
`app_name` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'app_name',
`content` longtext CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'content',
`md5` varchar(32) CHARACTER SET utf8 COLLATE utf8_bin NULL 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 CHARACTER SET utf8 COLLATE utf8_bin NULL COMMENT 'source user',
`src_ip` varchar(20) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'source ip',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE INDEX `uk_configinfotag_datagrouptenanttag`(`data_id`, `group_id`, `tenant_id`, `tag_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = 'config_info_tag' ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of config_info_tag
-- ----------------------------
-- ----------------------------
-- Table structure for config_tags_relation
-- ----------------------------
DROP TABLE IF EXISTS `config_tags_relation`;
CREATE TABLE `config_tags_relation` (
`id` bigint(20) NOT NULL COMMENT 'id',
`tag_name` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'tag_name',
`tag_type` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'tag_type',
`data_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'data_id',
`group_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'group_id',
`tenant_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '' COMMENT 'tenant_id',
`nid` bigint(20) NOT NULL AUTO_INCREMENT,
PRIMARY KEY (`nid`) USING BTREE,
UNIQUE INDEX `uk_configtagrelation_configidtag`(`id`, `tag_name`, `tag_type`) USING BTREE,
INDEX `idx_tenant_id`(`tenant_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = 'config_tag_relation' ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of config_tags_relation
-- ----------------------------
-- ----------------------------
-- Table structure for group_capacity
-- ----------------------------
DROP TABLE IF EXISTS `group_capacity`;
CREATE TABLE `group_capacity` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '主键ID',
`group_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin 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`) USING BTREE,
UNIQUE INDEX `uk_group_id`(`group_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = '集群、各Group容量信息表' ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of group_capacity
-- ----------------------------
-- ----------------------------
-- Table structure for his_config_info
-- ----------------------------
DROP TABLE IF EXISTS `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) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`group_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`app_name` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'app_name',
`content` longtext CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`md5` varchar(32) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
`gmt_create` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`gmt_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`src_user` text CHARACTER SET utf8 COLLATE utf8_bin NULL,
`src_ip` varchar(20) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
`op_type` char(10) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
`tenant_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '' COMMENT '租户字段',
PRIMARY KEY (`nid`) USING BTREE,
INDEX `idx_gmt_create`(`gmt_create`) USING BTREE,
INDEX `idx_gmt_modified`(`gmt_modified`) USING BTREE,
INDEX `idx_did`(`data_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 120 CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = '多租户改造' ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of his_config_info
-- ----------------------------
INSERT INTO `his_config_info` VALUES (2, 119, 'datasource.yaml', 'DKHA_CLOUD_GROUP', '', 'spring:\r\n #上传限制文件大小\r\n servlet:\r\n multipart:\r\n max-file-size: 200MB\r\n max-request-size: 200MB\r\n enabled: true\r\n redis:\r\n host: 192.168.0.90\r\n # host: 10.51.70.182\r\n port: 6379\r\n database: 0\r\n password: \r\n timeout: 30s\r\n datasource:\r\n druid:\r\n #MySQL\r\n driver-class-name: com.mysql.cj.jdbc.Driver\r\n url: jdbc:mysql://192.168.0.90:3306/dkhl?useUnicode=true&characterEncoding=UTF-8&useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai\r\n username: zr\r\n password: woshizr\r\n # username: root\r\n # password: Dkha123\r\n# #Oracle\r\n# driver-class-name: oracle.jdbc.OracleDriver\r\n# url: jdbc:oracle:thin:@localhost:1521:xe\r\n# username: renren_security\r\n# password: 123456\r\n# #SQLServer\r\n# driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver\r\n# url: jdbc:sqlserver://localhost:1433;DatabaseName=security_enterprise\r\n# username: sa\r\n# password: 123456\r\n# #postgresql\r\n# driver-class-name: org.postgresql.Driver\r\n# url: jdbc:postgresql://localhost:5432/security_enterprise\r\n# username: postgres\r\n# password: 123456\r\n initial-size: 2\r\n max-active: 5\r\n min-idle: 2\r\n max-wait: 6000\r\n pool-prepared-statements: true\r\n max-pool-prepared-statement-per-connection-size: 5\r\n time-between-eviction-runs-millis: 60000\r\n min-evictable-idle-time-millis: 300000\r\n #Oracle需要打开注释\r\n #validation-query: SELECT 1 FROM DUAL\r\n test-while-idle: true\r\n test-on-borrow: false\r\n test-on-return: false\r\n filter:\r\n stat:\r\n log-slow-sql: true\r\n slow-sql-millis: 1000\r\n merge-sql: false\r\n wall:\r\n config:\r\n multi-statement-allow: true\r\n\r\n #消息队列\r\n rabbitmq:\r\n host: 192.168.0.90\r\n # host: 10.51.70.182\r\n port: 5672\r\n username: admin\r\n password: admin\r\n\r\n # host: 127.0.0.1\r\n # port: 5672\r\n # username: root\r\n # password: admin\r\n\r\n\r\n # host: 172.16.102.161\r\n # port: 5672\r\n # username: root\r\n # password: admin\r\n\r\n publisher-returns: true #开启接收确认\r\n listener:\r\n simple:\r\n acknowledge-mode: manual # 手工进行ACK确认\r\n prefetch: 5 \r\n\r\nmybatis-plus:\r\n mapper-locations: classpath:/mapper/**/*.xml\r\n #实体扫描多个package用逗号或者分号分隔\r\n typeAliasesPackage: com.dkha.entity\r\n global-config:\r\n #数据库相关配置\r\n db-config:\r\n #主键类型 AUTO:\"数据库ID自增\", INPUT:\"用户输入ID\", ID_WORKER:\"全局唯一ID (数字类型唯一ID)\", UUID:\"全局唯一ID UUID\";\r\n id-type: ID_WORKER\r\n banner: false\r\n #原生配置\r\n configuration:\r\n map-underscore-to-camel-case: true\r\n cache-enabled: false\r\n call-setters-on-nulls: true\r\n jdbc-type-for-null: \'null\' \r\n\r\n# es 配置\r\nes:\r\n endpoints: 192.168.8.3:9200 \r\n\r\n# minio 配置\r\nminio:\r\n url: http://192.168.8.3:9000\r\n accessKey: admin\r\n secretKey: Dkha123.\r\n bucketName: school\r\n\r\n# UWB识别\r\nuwb:\r\n # 第三方访问URL用户权限服务\r\n url: http://192.168.8.8:8088\r\n # 第三方访问URL网关\r\n url2: http://192.168.8.8:8080 \r\n\r\n# 8英寸门禁的后端管理IP和端口\r\neightdoor:\r\n mangerip: 192.168.8.4\r\n port: 9187 \r\n\r\n# 5英寸门禁的后端管理IP和端口\r\nfivedoor:\r\n url: http://192.168.8.55:80\r\n \r\n# 多数据源的配置 slave1、slave2 5寸门禁配置\r\ndynamic:\r\n datasource:\r\n slave1:\r\n driver-class-name: com.mysql.cj.jdbc.Driver\r\n url: jdbc:mysql://192.168.0.90:3306/scmqtt?useUnicode=true&characterEncoding=UTF-8&useSSL=false&allowPublicKeyRetrieval=true&
-- ----------------------------
-- Table structure for permissions
-- ----------------------------
DROP TABLE IF EXISTS `permissions`;
CREATE TABLE `permissions` (
`role` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`resource` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`action` varchar(8) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
UNIQUE INDEX `uk_role_permission`(`role`, `resource`, `action`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of permissions
-- ----------------------------
-- ----------------------------
-- Table structure for roles
-- ----------------------------
DROP TABLE IF EXISTS `roles`;
CREATE TABLE `roles` (
`username` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`role` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
UNIQUE INDEX `idx_user_role`(`username`, `role`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of roles
-- ----------------------------
INSERT INTO `roles` VALUES ('nacos', 'ROLE_ADMIN');
-- ----------------------------
-- Table structure for tenant_capacity
-- ----------------------------
DROP TABLE IF EXISTS `tenant_capacity`;
CREATE TABLE `tenant_capacity` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '主键ID',
`tenant_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin 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`) USING BTREE,
UNIQUE INDEX `uk_tenant_id`(`tenant_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = '租户容量信息表' ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of tenant_capacity
-- ----------------------------
-- ----------------------------
-- Table structure for tenant_info
-- ----------------------------
DROP TABLE IF EXISTS `tenant_info`;
CREATE TABLE `tenant_info` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id',
`kp` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'kp',
`tenant_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '' COMMENT 'tenant_id',
`tenant_name` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '' COMMENT 'tenant_name',
`tenant_desc` varchar(256) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'tenant_desc',
`create_source` varchar(32) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'create_source',
`gmt_create` bigint(20) NOT NULL COMMENT '创建时间',
`gmt_modified` bigint(20) NOT NULL COMMENT '修改时间',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE INDEX `uk_tenant_info_kptenantid`(`kp`, `tenant_id`) USING BTREE,
INDEX `idx_tenant_id`(`tenant_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = 'tenant_info' ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of tenant_info
-- ----------------------------
-- ----------------------------
-- Table structure for users
-- ----------------------------
DROP TABLE IF EXISTS `users`;
CREATE TABLE `users` (
`username` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`password` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`enabled` tinyint(1) NOT NULL,
PRIMARY KEY (`username`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of users
-- ----------------------------
INSERT INTO `users` VALUES ('nacos', '$2a$10$x7Ya93ue7hs4EXp67RxGc.DobIEuqsqy.90UsgvrAUI/IXhumd2QC', 1);
SET FOREIGN_KEY_CHECKS = 1;