剔除所有sql
This commit is contained in:
parent
c8bbb4fe7a
commit
7c1e493e85
@ -1,7 +0,0 @@
|
||||
-- 为 datai_integration_object 表添加 is_partitioned 字段
|
||||
-- 执行日期: 2026-01-06
|
||||
-- 说明: 添加是否分区字段,用于标识对象是否使用分区表
|
||||
|
||||
ALTER TABLE `datai_integration_object`
|
||||
ADD COLUMN `is_partitioned` tinyint NULL DEFAULT 0 COMMENT '是否分区'
|
||||
AFTER `batch_field`;
|
||||
@ -1,12 +0,0 @@
|
||||
-- 为 datai_config_audit_log 表添加 org_type 字段
|
||||
-- 执行日期: 2025-01-14
|
||||
-- 描述: 添加 ORG 类型字段以支持源 ORG 和目标 ORG 的区分
|
||||
|
||||
-- 添加 org_type 字段
|
||||
ALTER TABLE `datai_config_audit_log`
|
||||
ADD COLUMN `org_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT 'ORG类型'
|
||||
AFTER `error_message`;
|
||||
|
||||
-- 添加 org_type 字段索引
|
||||
ALTER TABLE `datai_config_audit_log`
|
||||
ADD INDEX `idx_org_type`(`org_type` ASC) COMMENT '普通索引';
|
||||
@ -1,12 +0,0 @@
|
||||
-- 为 datai_configuration 表添加 org_type 字段
|
||||
-- 执行日期: 2025-01-14
|
||||
-- 描述: 添加 ORG 类型字段以支持源 ORG 和目标 ORG 的区分
|
||||
|
||||
-- 添加 org_type 字段
|
||||
ALTER TABLE `datai_configuration`
|
||||
ADD COLUMN `org_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT 'ORG类型'
|
||||
AFTER `environment_id`;
|
||||
|
||||
-- 添加 org_type 字段索引
|
||||
ALTER TABLE `datai_configuration`
|
||||
ADD INDEX `idx_org_type`(`org_type` ASC) COMMENT '普通索引';
|
||||
@ -1,12 +0,0 @@
|
||||
-- 为 datai_config_environment 表添加 org_type 字段
|
||||
-- 执行日期: 2026-01-14
|
||||
-- 描述: 添加 ORG 类型字段以支持源 ORG 和目标 ORG 的区分
|
||||
|
||||
-- 添加 org_type 字段
|
||||
ALTER TABLE `datai_config_environment`
|
||||
ADD COLUMN `org_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT 'ORG类型'
|
||||
AFTER `environment_code`;
|
||||
|
||||
-- 添加 org_type 字段索引
|
||||
ALTER TABLE `datai_config_environment`
|
||||
ADD INDEX `idx_org_type`(`org_type` ASC) COMMENT '普通索引';
|
||||
@ -1,12 +0,0 @@
|
||||
-- 为 datai_config_snapshot 表添加 org_type 字段
|
||||
-- 执行日期: 2026-01-14
|
||||
-- 描述: 添加 ORG 类型字段以支持源 ORG 和目标 ORG 的区分
|
||||
|
||||
-- 添加 org_type 字段
|
||||
ALTER TABLE `datai_config_snapshot`
|
||||
ADD COLUMN `org_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT 'ORG类型'
|
||||
AFTER `status`;
|
||||
|
||||
-- 添加 org_type 字段索引
|
||||
ALTER TABLE `datai_config_snapshot`
|
||||
ADD INDEX `idx_org_type`(`org_type` ASC) COMMENT '普通索引';
|
||||
@ -1,23 +0,0 @@
|
||||
-- 创建实时同步日志表
|
||||
CREATE TABLE IF NOT EXISTS `datai_integration_realtime_sync_log` (
|
||||
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
|
||||
`object_name` varchar(255) NOT NULL COMMENT '对象名称',
|
||||
`record_id` varchar(255) NOT NULL COMMENT '记录ID',
|
||||
`operation_type` varchar(50) NOT NULL COMMENT '操作类型 (INSERT/UPDATE/DELETE)',
|
||||
`change_data` json NOT NULL COMMENT '变更数据',
|
||||
`sync_status` varchar(50) NOT NULL COMMENT '同步状态 (SUCCESS/FAILED/PENDING)',
|
||||
`error_message` text COMMENT '错误信息',
|
||||
`retry_count` int(11) DEFAULT '0' COMMENT '重试次数',
|
||||
`salesforce_timestamp` datetime COMMENT 'Salesforce时间戳',
|
||||
`sync_timestamp` datetime NOT NULL COMMENT '同步时间戳',
|
||||
`create_time` datetime NOT NULL COMMENT '创建时间',
|
||||
`update_time` datetime NOT NULL COMMENT '更新时间',
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `idx_object_name` (`object_name`),
|
||||
KEY `idx_record_id` (`record_id`),
|
||||
KEY `idx_sync_status` (`sync_status`),
|
||||
KEY `idx_sync_timestamp` (`sync_timestamp`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='实时同步日志表';
|
||||
|
||||
-- 添加注释
|
||||
ALTER TABLE `datai_integration_realtime_sync_log` COMMENT='实时同步日志表,记录Salesforce CDC同步操作的详细信息';
|
||||
@ -1,83 +0,0 @@
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (90, 'salesforce.api.version', '60.0', 1, 0, 0, NULL, 1, 1, 'Salesforce API版本,从apex.wsdl文件中获取', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-31 23:09:24');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (91, 'salesforce.api.endpoint.production', 'https://login.salesforce.com/services/Soap/u/61.0', 1, 0, 0, NULL, 1, NULL, 'Salesforce生产环境API服务端点', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 18:52:22');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (92, 'salesforce.api.endpoint.sandbox', 'https://test.salesforce.com/services/Soap/u/61.0', 1, 0, 0, NULL, 1, NULL, 'Salesforce沙盒环境API服务端点', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 18:52:26');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (93, 'salesforce.api.endpoint.custom', '', 1, 0, 0, NULL, 1, NULL, 'Salesforce自定义域名API服务端点,用于My Domain配置', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (94, 'salesforce.environment.type', 'production', 1, 0, 0, NULL, 1, NULL, 'Salesforce环境类型,支持production, sandbox, custom', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (95, 'salesforce.api.namespace', 'http://soap.sforce.com/2006/08/apex', 1, 0, 0, NULL, 1, NULL, 'Salesforce Apex API命名空间,从apex.wsdl文件中获取', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (96, 'salesforce.api.binding', 'ApexBinding', 1, 0, 0, NULL, 1, NULL, 'Salesforce Apex API绑定名称,从apex.wsdl文件中获取', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (97, 'salesforce.api.port_type', 'ApexPortType', 1, 0, 0, NULL, 1, NULL, 'Salesforce Apex API端口类型,从apex.wsdl文件中获取', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (98, 'salesforce.api.service_name', 'ApexService', 1, 0, 0, NULL, 1, NULL, 'Salesforce Apex API服务名称,从apex.wsdl文件中获取', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (99, 'salesforce.api.operations', 'compileAndTest,compileClasses,compileTriggers,executeAnonymous,runTests,wsdlToApex', 1, 0, 0, NULL, 1, NULL, 'Salesforce Apex API支持的操作列表', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (100, 'salesforce.api.compatibility.version', '50.0', 1, 0, 0, NULL, 1, NULL, 'Salesforce API最低兼容版本,确保兼容性', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (101, 'salesforce.api.call.limit', '15000', 1, 0, 0, NULL, 1, NULL, 'Salesforce API 24小时调用限制', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (102, 'salesforce.auth.type', 'password', 1, 0, 0, NULL, 1, NULL, 'Salesforce认证方式,支持password, oauth, saml', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (103, 'salesforce.auth.username', '', 1, 0, 0, NULL, 1, NULL, 'Salesforce API用户名,用于API访问', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (104, 'salesforce.auth.password', '', 1, 0, 0, NULL, 1, NULL, 'Salesforce API密码,用于API访问', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (105, 'salesforce.auth.security.token', '', 1, 0, 0, NULL, 1, NULL, 'Salesforce安全令牌,用于API访问', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (106, 'salesforce.oauth.client.id', '', 1, 0, 0, NULL, 1, NULL, 'Salesforce OAuth客户端ID,用于OAuth认证', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (107, 'salesforce.oauth.client.secret', '', 1, 0, 0, NULL, 1, NULL, 'Salesforce OAuth客户端密钥,用于OAuth认证', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (108, 'salesforce.oauth.redirect.uri', '', 1, 0, 0, NULL, 1, NULL, 'Salesforce OAuth重定向URI,用于OAuth认证', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (109, 'salesforce.session.timeout', '7200', 1, 0, 0, NULL, 1, NULL, 'Salesforce会话超时时间(秒),默认2小时', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (110, 'salesforce.session.refresh.threshold', '300', 1, 0, 0, NULL, 1, NULL, 'Salesforce会话刷新阈值(秒),会话过期前开始刷新', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (111, 'salesforce.encryption.enabled', 'true', 1, 0, 0, NULL, 1, NULL, '是否启用Salesforce数据加密,控制敏感数据加密存储', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (112, 'salesforce.certificate.path', '', 1, 0, 0, NULL, 1, NULL, 'Salesforce SSL证书路径,用于SSL连接', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (113, 'salesforce.certificate.password', '', 1, 0, 0, NULL, 1, NULL, 'Salesforce SSL证书密码,用于SSL连接', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (114, 'salesforce.security.ip.whitelist', '', 1, 0, 0, NULL, 1, NULL, 'Salesforce IP白名单,允许访问的IP地址列表,逗号分隔', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (115, 'salesforce.security.ip.restricted', 'false', 1, 0, 0, NULL, 1, NULL, '是否启用IP限制,只允许白名单IP访问', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (116, 'salesforce.pool.max.total', '20', 1, 0, 0, NULL, 1, NULL, 'Salesforce连接池最大连接数', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (117, 'salesforce.pool.max.idle', '10', 1, 0, 0, NULL, 1, NULL, 'Salesforce连接池最大空闲连接数', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (118, 'salesforce.pool.min.idle', '5', 1, 0, 0, NULL, 1, NULL, 'Salesforce连接池最小空闲连接数', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (119, 'salesforce.pool.initial.size', '5', 1, 0, 0, NULL, 1, NULL, 'Salesforce连接池初始化大小', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (120, 'salesforce.connection.timeout', '30000', 1, 0, 0, NULL, 1, NULL, 'Salesforce连接超时时间(毫秒)', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (121, 'salesforce.read.timeout', '60000', 1, 0, 0, NULL, 1, NULL, 'Salesforce读取超时时间(毫秒)', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (122, 'salesforce.connection.validation.query', 'SELECT Id FROM User LIMIT 1', 1, 0, 0, NULL, 1, NULL, 'Salesforce连接验证查询,用于验证连接是否有效', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (123, 'salesforce.connection.validation.interval', '30000', 1, 0, 0, NULL, 1, NULL, 'Salesforce连接验证间隔(毫秒)', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (124, 'salesforce.concurrent.requests.max', '10', 1, 0, 0, NULL, 1, NULL, 'Salesforce并发请求最大数', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (125, 'salesforce.batch.size', '200', 1, 0, 0, NULL, 1, NULL, 'Salesforce批处理大小,每次处理的数据记录数', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (126, 'salesforce.batch.timeout', '300000', 1, 0, 0, NULL, 1, NULL, 'Salesforce批处理超时时间(毫秒)', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (127, 'salesforce.cache.enabled', 'true', 1, 0, 0, NULL, 1, NULL, '是否启用Salesforce缓存,提高性能', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (128, 'salesforce.cache.expiry', '3600', 1, 0, 0, NULL, 1, NULL, 'Salesforce缓存过期时间(秒)', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (129, 'salesforce.cache.max.size', '1000', 1, 0, 0, NULL, 1, NULL, 'Salesforce缓存最大条目数', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (130, 'salesforce.rate.limit.enabled', 'true', 1, 0, 0, NULL, 1, NULL, '是否启用Salesforce限流', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (131, 'salesforce.rate.limit.threshold', '100', 1, 0, 0, NULL, 1, NULL, 'Salesforce限流阈值(请求/分钟)', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (132, 'salesforce.retry.count', '3', 1, 0, 0, NULL, 1, NULL, 'Salesforce操作失败重试次数', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (133, 'salesforce.retry.interval', '5000', 1, 0, 0, NULL, 1, NULL, 'Salesforce重试间隔时间(毫秒)', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (134, 'salesforce.retry.exponential.backoff', 'true', 1, 0, 0, NULL, 1, NULL, '是否启用指数退避重试,重试间隔按指数增长', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (135, 'salesforce.mapping.config', '', 1, 0, 0, NULL, 1, NULL, 'Salesforce数据映射配置,JSON格式的字段映射', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (136, 'salesforce.field.transformation', '', 1, 0, 0, NULL, 1, NULL, 'Salesforce字段转换配置,JSON格式的字段转换规则', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (137, 'salesforce.error.handling.strategy', 'retry', 1, 0, 0, NULL, 1, NULL, 'Salesforce错误处理策略,支持retry, skip, abort', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (138, 'salesforce.error.logging.enabled', 'true', 1, 0, 0, NULL, 1, NULL, '是否启用Salesforce错误记录', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (139, 'salesforce.monitoring.enabled', 'true', 1, 0, 0, NULL, 1, NULL, '是否启用Salesforce监控', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (140, 'salesforce.monitoring.report.interval', '86400', 1, 0, 0, NULL, 1, NULL, 'Salesforce监控报告间隔(秒)', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (141, 'salesforce.debug.enabled', 'false', 1, 0, 0, NULL, 1, NULL, '是否启用Salesforce调试模式', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (142, 'salesforce.debug.level', 'DEBUGONLY', 1, 0, 0, NULL, 1, NULL, 'Salesforce调试级别,支持DEBUGONLY, DB, PROFILING, NONE', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (143, 'salesforce.log.level', 'INFO', 1, 0, 0, NULL, 1, NULL, 'Salesforce日志级别,支持DEBUG,INFO,WARN,ERROR', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (144, 'salesforce.log.retention.days', '30', 1, 0, 0, NULL, 1, NULL, 'Salesforce日志保留天数', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (145, 'salesforce.proxy.enabled', 'false', 1, 0, 0, NULL, 1, NULL, '是否启用代理连接Salesforce', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (146, 'salesforce.proxy.host', '', 1, 0, 0, NULL, 1, NULL, 'Salesforce代理主机,代理服务器主机名或IP', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (147, 'salesforce.proxy.port', '8080', 1, 0, 0, NULL, 1, NULL, 'Salesforce代理端口,代理服务器端口号', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (148, 'salesforce.proxy.username', '', 1, 0, 0, NULL, 1, NULL, 'Salesforce代理用户名,代理服务器认证用户名', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (149, 'salesforce.proxy.password', '', 1, 0, 0, NULL, 1, NULL, 'Salesforce代理密码,代理服务器认证密码', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (150, 'salesforce.sync.enabled', 'true', 1, 0, 0, NULL, 1, NULL, '是否启用Salesforce数据同步', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (151, 'salesforce.sync.interval', '3600', 1, 0, 0, NULL, 1, NULL, 'Salesforce数据同步间隔(秒)', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (152, 'salesforce.sync.incremental.enabled', 'true', 1, 0, 0, NULL, 1, NULL, '是否启用Salesforce增量同步,只同步变更数据', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (153, 'salesforce.sync.incremental.window', '86400', 1, 0, 0, NULL, 1, NULL, 'Salesforce增量同步时间窗口(秒),默认24小时', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (154, 'salesforce.conflict.resolution', 'salesforce_wins', 1, 0, 0, NULL, 1, NULL, 'Salesforce冲突解决策略,支持salesforce_wins, local_wins, manual', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (155, 'salesforce.bulk.api.enabled', 'false', 1, 0, 0, NULL, 1, NULL, '是否启用Salesforce Bulk API,用于大批量操作', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (156, 'salesforce.bulk.threshold', '2000', 1, 0, 0, NULL, 1, NULL, 'Salesforce批量操作阈值,超过此记录数时使用Bulk API', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (157, 'salesforce.field.truncation', 'false', 1, 0, 0, NULL, 1, NULL, '是否允许字段截断,控制AllowFieldTruncationHeader', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (158, 'salesforce.disable.feed.tracking', 'false', 1, 0, 0, NULL, 1, NULL, '是否禁用Feed跟踪,控制DisableFeedTrackingHeader', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (159, 'salesforce.package.version', '65.0', 1, 0, 0, NULL, 1, NULL, 'Salesforce包版本,用于PackageVersionHeader', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (160, 'salesforce.multi.tenant.enabled', 'false', 1, 0, 0, NULL, 1, NULL, '是否启用多租户模式,支持多租户Salesforce实例', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (161, 'salesforce.tenant.isolation', 'strict', 1, 0, 0, NULL, 1, NULL, 'Salesforce租户隔离级别,支持strict, moderate, none', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (162, 'salesforce.archive.enabled', 'false', 1, 0, 0, NULL, 1, NULL, '是否启用Salesforce数据归档,对历史数据进行归档', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (163, 'salesforce.archive.strategy', 'date_based', 1, 0, 0, NULL, 1, NULL, 'Salesforce归档策略,支持date_based, size_based, custom', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (164, 'salesforce.archive.retention.days', '365', 1, 0, 0, NULL, 1, NULL, 'Salesforce归档数据保留天数', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (165, 'salesforce.notification.enabled', 'true', 1, 0, 0, NULL, 1, NULL, '是否启用Salesforce通知,操作完成时通知', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (166, 'salesforce.notification.types', 'email,webhook', 1, 0, 0, NULL, 1, NULL, 'Salesforce通知类型,支持email, webhook, sms, in_app', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (167, 'salesforce.notification.email', '', 1, 0, 0, NULL, 1, NULL, 'Salesforce邮件通知地址,多个用逗号分隔', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (168, 'salesforce.notification.webhook', '', 1, 0, 0, NULL, 1, NULL, 'Salesforce Webhook通知地址,接收通知的URL', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (169, 'salesforce.notification.events', 'sync_complete,error,batch_complete', 1, 0, 0, NULL, 1, NULL, 'Salesforce通知事件,触发通知的事件类型', NULL, 'admin', '2025-12-08 22:16:42', 'admin', '2025-12-26 11:58:20');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (170, 'salesforce.data.start.time', '2020-01-01', 1, 0, 0, '系统数据开始时间,用于分区表创建', 1, NULL, '系统数据开始时间配置', NULL, 'admin', '2026-01-01 00:00:00', 'admin', '2026-01-04 17:57:55');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (171, 'salesforce.pubsub.consumer.key', '', 1, 1, 1, NULL, 1, NULL, 'Salesforce Pub/Sub API Consumer Key,从Connected App获取', NULL, 'admin', '2026-01-12 00:00:00', 'admin', '2026-01-12 00:00:00');
|
||||
INSERT INTO `datai_configuration` (`id`, `config_key`, `config_value`, `environment_id`, `is_sensitive`, `is_encrypted`, `description`, `is_active`, `version`, `remark`, `dept_id`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (172, 'salesforce.pubsub.consumer.secret', '', 1, 1, 1, NULL, 1, NULL, 'Salesforce Pub/Sub API Consumer Secret,从Connected App获取', NULL, 'admin', '2026-01-12 00:00:00', 'admin', '2026-01-12 00:00:00');
|
||||
@ -1,530 +0,0 @@
|
||||
/*
|
||||
Navicat Premium Dump SQL
|
||||
|
||||
Source Server : 本地数据库
|
||||
Source Server Type : MySQL
|
||||
Source Server Version : 90400 (9.4.0)
|
||||
Source Host : localhost:3306
|
||||
Source Schema : ry
|
||||
|
||||
Target Server Type : MySQL
|
||||
Target Server Version : 90400 (9.4.0)
|
||||
File Encoding : 65001
|
||||
|
||||
Date: 30/12/2025 11:50:18
|
||||
*/
|
||||
|
||||
SET NAMES utf8mb4;
|
||||
SET FOREIGN_KEY_CHECKS = 0;
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for datai_config_audit_log
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `datai_config_audit_log`;
|
||||
CREATE TABLE `datai_config_audit_log` (
|
||||
`id` bigint NOT NULL AUTO_INCREMENT COMMENT '日志ID',
|
||||
`operation_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '操作类型',
|
||||
`object_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '对象类型',
|
||||
`object_id` bigint NULL DEFAULT NULL COMMENT '对象ID',
|
||||
`old_value` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '旧值',
|
||||
`new_value` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '新值',
|
||||
`operation_desc` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '操作描述',
|
||||
`operator` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '操作人',
|
||||
`operation_time` datetime NOT NULL COMMENT '操作时间',
|
||||
`ip_address` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT 'IP地址',
|
||||
`user_agent` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '用户代理',
|
||||
`request_id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '请求ID',
|
||||
`result` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT 'SUCCESS' COMMENT '操作结果',
|
||||
`error_message` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '错误信息',
|
||||
`org_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT 'ORG类型',
|
||||
`dept_id` bigint NULL DEFAULT NULL COMMENT '部门ID',
|
||||
`create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '创建人',
|
||||
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||
`update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '更新人',
|
||||
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
|
||||
PRIMARY KEY (`id`) USING BTREE COMMENT '主键索引',
|
||||
INDEX `idx_operation_type`(`operation_type` ASC) USING BTREE COMMENT '普通索引',
|
||||
INDEX `idx_object_type`(`object_type` ASC) USING BTREE COMMENT '普通索引',
|
||||
INDEX `idx_operator`(`operator` ASC) USING BTREE COMMENT '普通索引',
|
||||
INDEX `idx_operation_time`(`operation_time` ASC) USING BTREE COMMENT '普通索引',
|
||||
INDEX `idx_request_id`(`request_id` ASC) USING BTREE COMMENT '普通索引',
|
||||
INDEX `idx_object_id`(`object_id` ASC) USING BTREE COMMENT '普通索引',
|
||||
INDEX `idx_org_type`(`org_type` ASC) USING BTREE COMMENT '普通索引'
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '配置审计日志表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for datai_config_environment
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `datai_config_environment`;
|
||||
CREATE TABLE `datai_config_environment` (
|
||||
`id` bigint NOT NULL AUTO_INCREMENT COMMENT '环境ID',
|
||||
`environment_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '环境名称',
|
||||
`environment_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '环境编码',
|
||||
`description` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '环境描述',
|
||||
`is_active` tinyint NOT NULL DEFAULT 1 COMMENT '是否激活',
|
||||
`remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '备注',
|
||||
`dept_id` bigint NULL DEFAULT NULL COMMENT '部门ID',
|
||||
`create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '创建人',
|
||||
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||
`update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '更新人',
|
||||
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
|
||||
PRIMARY KEY (`id`) USING BTREE COMMENT '主键索引',
|
||||
UNIQUE INDEX `uk_environment_code`(`dept_id` ASC, `environment_code` ASC) USING BTREE COMMENT '唯一约束',
|
||||
INDEX `idx_environment_name`(`environment_name` ASC) USING BTREE COMMENT '普通索引'
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '配置环境表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for datai_config_snapshot
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `datai_config_snapshot`;
|
||||
CREATE TABLE `datai_config_snapshot` (
|
||||
`id` bigint NOT NULL AUTO_INCREMENT COMMENT '快照ID',
|
||||
`snapshot_number` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '快照号',
|
||||
`environment_id` bigint NOT NULL COMMENT '环境ID',
|
||||
`snapshot_desc` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '快照描述',
|
||||
`snapshot_content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '快照内容',
|
||||
`config_count` int NULL DEFAULT NULL COMMENT '配置数量',
|
||||
`status` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '快照状态',
|
||||
`org_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT 'ORG类型',
|
||||
`remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '备注',
|
||||
`dept_id` bigint NULL DEFAULT NULL COMMENT '部门ID',
|
||||
`create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '创建人',
|
||||
`create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||
`update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '更新人',
|
||||
`update_time` datetime NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
|
||||
PRIMARY KEY (`id`) USING BTREE COMMENT '主键索引',
|
||||
INDEX `idx_version_id`(`snapshot_number` ASC) USING BTREE COMMENT '普通索引',
|
||||
INDEX `idx_snapshot_time`(`snapshot_desc` ASC) USING BTREE COMMENT '普通索引',
|
||||
INDEX `idx_org_type`(`org_type` ASC) USING BTREE COMMENT '普通索引'
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '配置快照表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for datai_configuration
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `datai_configuration`;
|
||||
CREATE TABLE `datai_configuration` (
|
||||
`id` bigint NOT NULL AUTO_INCREMENT COMMENT '配置ID',
|
||||
`config_key` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '配置键',
|
||||
`config_value` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '配置值',
|
||||
`environment_id` bigint NULL DEFAULT NULL COMMENT '环境ID',
|
||||
`org_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT 'ORG类型',
|
||||
`is_sensitive` tinyint NOT NULL DEFAULT 0 COMMENT '是否敏感配置',
|
||||
`is_encrypted` tinyint NOT NULL DEFAULT 0 COMMENT '是否加密存储',
|
||||
`description` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '配置描述',
|
||||
`is_active` tinyint NOT NULL DEFAULT 1 COMMENT '是否激活',
|
||||
`version` int NULL DEFAULT NULL COMMENT '版本号',
|
||||
`remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '备注',
|
||||
`dept_id` bigint NULL DEFAULT NULL COMMENT '部门ID',
|
||||
`create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '创建人',
|
||||
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||
`update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '更新人',
|
||||
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
|
||||
PRIMARY KEY (`id`) USING BTREE COMMENT '主键索引',
|
||||
UNIQUE INDEX `uk_config_key_environment`(`dept_id` ASC, `config_key` ASC, `environment_id` ASC) USING BTREE COMMENT '唯一约束',
|
||||
INDEX `idx_environment_id`(`environment_id` ASC) USING BTREE COMMENT '普通索引',
|
||||
INDEX `idx_config_key`(`config_key` ASC) USING BTREE COMMENT '普通索引',
|
||||
INDEX `idx_org_type`(`org_type` ASC) USING BTREE COMMENT '普通索引'
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 170 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '配置表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for datai_integration_api_call_log
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `datai_integration_api_call_log`;
|
||||
CREATE TABLE `datai_integration_api_call_log` (
|
||||
`id` bigint NOT NULL AUTO_INCREMENT COMMENT '日志ID',
|
||||
`api_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'API类型',
|
||||
`connection_class` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '连接类',
|
||||
`method_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '方法名',
|
||||
`execution_time` bigint NULL DEFAULT NULL COMMENT '耗时(ms)',
|
||||
`status` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '状态',
|
||||
`error_message` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '异常信息',
|
||||
`call_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '调用时间',
|
||||
`create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建者',
|
||||
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||
`update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新者',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
`dept_id` bigint NULL DEFAULT NULL COMMENT '部门ID',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
INDEX `idx_api_call_log_api_type`(`api_type` ASC) USING BTREE,
|
||||
INDEX `idx_api_call_log_connection_class`(`connection_class` ASC) USING BTREE,
|
||||
INDEX `idx_api_call_log_method_name`(`method_name` ASC) USING BTREE,
|
||||
INDEX `idx_api_call_log_status`(`status` ASC) USING BTREE,
|
||||
INDEX `idx_api_call_log_call_time`(`call_time` ASC) USING BTREE,
|
||||
INDEX `idx_api_call_log_dept_id`(`dept_id` ASC) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = 'API调用日志' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for datai_integration_batch
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `datai_integration_batch`;
|
||||
CREATE TABLE `datai_integration_batch` (
|
||||
`id` int NOT NULL AUTO_INCREMENT COMMENT '批次ID',
|
||||
`api` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '对象API',
|
||||
`label` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '对象名称',
|
||||
`sf_num` int NULL DEFAULT NULL COMMENT 'SF数据量',
|
||||
`db_num` int NULL DEFAULT NULL COMMENT '本地数据量',
|
||||
`sync_type` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '同步类型',
|
||||
`batch_field` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '批次字段',
|
||||
`sync_status` tinyint NULL DEFAULT NULL COMMENT '同步状态',
|
||||
`sync_start_date` datetime NULL DEFAULT NULL COMMENT '开始同步时间',
|
||||
`sync_end_date` datetime NULL DEFAULT NULL COMMENT '结束同步时间',
|
||||
`first_sync_time` datetime NULL DEFAULT NULL COMMENT '首次同步时间',
|
||||
`last_sync_time` datetime NULL DEFAULT NULL COMMENT '最后同步时间',
|
||||
`remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
|
||||
`dept_id` bigint NULL DEFAULT NULL COMMENT '部门ID',
|
||||
`create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建者',
|
||||
`create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||
`update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新者',
|
||||
`update_time` datetime NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
INDEX `idx_datai_integration_batch_api_start_date`(`api` ASC, `sync_start_date` DESC) USING BTREE,
|
||||
INDEX `idx_datai_integration_batch_sync_status`(`sync_status` ASC) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '数据批次表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for datai_integration_batch_history
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `datai_integration_batch_history`;
|
||||
CREATE TABLE `datai_integration_batch_history` (
|
||||
`id` int NOT NULL AUTO_INCREMENT COMMENT '编号ID',
|
||||
`api` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '对象API',
|
||||
`label` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '对象名称',
|
||||
`batch_id` int NULL DEFAULT NULL COMMENT '批次ID',
|
||||
`batch_field` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '批次字段',
|
||||
`sync_num` int NULL DEFAULT NULL COMMENT '同步数据量',
|
||||
`sync_type` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '同步类型',
|
||||
`sync_status` tinyint NULL DEFAULT NULL COMMENT '同步状态',
|
||||
`start_time` datetime NULL DEFAULT NULL COMMENT '开始时间',
|
||||
`end_time` datetime NULL DEFAULT NULL COMMENT '结束时间',
|
||||
`cost` bigint NULL DEFAULT NULL COMMENT '耗费时间',
|
||||
`sync_start_time` datetime NULL DEFAULT NULL COMMENT '开始同步时间',
|
||||
`sync_end_time` datetime NULL DEFAULT NULL COMMENT '结束同步时间',
|
||||
`remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
|
||||
`dept_id` bigint NULL DEFAULT NULL COMMENT '部门ID',
|
||||
`create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建者',
|
||||
`create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||
`update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新者',
|
||||
`update_time` datetime NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
UNIQUE INDEX `uk_datai_integration_batch_history_api_label`(`dept_id` ASC, `api` ASC, `label` ASC) USING BTREE,
|
||||
INDEX `idx_datai_integration_batch_history_sync_start_time`(`sync_start_time` ASC) USING BTREE,
|
||||
INDEX `idx_datai_integration_batch_history_sync_end_time`(`sync_end_time` ASC) USING BTREE,
|
||||
INDEX `idx_datai_integration_batch_history_sync_status`(`sync_status` ASC) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '数据批次历史表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for datai_integration_field
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `datai_integration_field`;
|
||||
CREATE TABLE `datai_integration_field` (
|
||||
`id` int NOT NULL AUTO_INCREMENT COMMENT '主键ID',
|
||||
`api` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '所属对象API',
|
||||
`field` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '字段API',
|
||||
`label` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '字段标签',
|
||||
`is_createable` tinyint NULL DEFAULT 0 COMMENT '是否可创建',
|
||||
`is_nillable` tinyint NULL DEFAULT 0 COMMENT '是否为空',
|
||||
`is_updateable` tinyint NULL DEFAULT 0 COMMENT '是否可更新',
|
||||
`is_defaulted_on_create` tinyint NULL DEFAULT 0 COMMENT '是否默认值',
|
||||
`is_unique` tinyint NULL DEFAULT 0 COMMENT '是否唯一',
|
||||
`is_filterable` tinyint NULL DEFAULT 0 COMMENT '是否可过滤',
|
||||
`is_sortable` tinyint NULL DEFAULT 0 COMMENT '是否可排序',
|
||||
`is_aggregatable` tinyint NULL DEFAULT 0 COMMENT '是否可聚合',
|
||||
`is_groupable` tinyint NULL DEFAULT 0 COMMENT '是否可分组',
|
||||
`is_polymorphic_foreign_key` tinyint NULL DEFAULT 0 COMMENT '是否多态外键',
|
||||
`is_external_id` tinyint NULL DEFAULT 0 COMMENT '是否外部ID',
|
||||
`is_custom` tinyint NULL DEFAULT 0 COMMENT '是否自定义字段',
|
||||
`is_calculated` tinyint NULL DEFAULT 0 COMMENT '是否计算字段',
|
||||
`is_auto_number` tinyint NULL DEFAULT 0 COMMENT '是否自动编号字段',
|
||||
`is_case_sensitive` tinyint NULL DEFAULT 0 COMMENT '是否区分大小写',
|
||||
`is_encrypted` tinyint NULL DEFAULT 0 COMMENT '是否加密字段',
|
||||
`is_html_formatted` tinyint NULL DEFAULT 0 COMMENT '是否HTML格式字段',
|
||||
`is_id_lookup` tinyint NULL DEFAULT 0 COMMENT '是否可通过ID查找',
|
||||
`is_permissionable` tinyint NULL DEFAULT 0 COMMENT '是否可设置权限',
|
||||
`is_restricted_picklist` tinyint NULL DEFAULT 0 COMMENT '是否限制选择列表',
|
||||
`is_restricted_delete` tinyint NULL DEFAULT 0 COMMENT '是否限制删除',
|
||||
`is_write_requires_master_read` tinyint NULL DEFAULT 0 COMMENT '写入时是否需要主读',
|
||||
`query_by_distance` tinyint NULL DEFAULT 0 COMMENT '是否可以通过距离查询',
|
||||
`search_prefilterable` tinyint NULL DEFAULT 0 COMMENT '是否可以预过滤搜索',
|
||||
`field_data_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '字段数据类型',
|
||||
`field_length` int NULL DEFAULT NULL COMMENT '字段长度',
|
||||
`field_precision` int NULL DEFAULT NULL COMMENT '数字字段的精度',
|
||||
`field_scale` int NULL DEFAULT NULL COMMENT '数字字段的小数位数',
|
||||
`field_byte_length` int NULL DEFAULT NULL COMMENT '字段的字节长度',
|
||||
`soap_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'SOAP类型',
|
||||
`relationship_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '关系名称',
|
||||
`reference_target_field` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '引用目标字段',
|
||||
`reference_to` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '引用目标对象的API名称列表(逗号分隔)',
|
||||
`polymorphic_foreign_field` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '多态映射字段',
|
||||
`relationship_order` int NULL DEFAULT NULL COMMENT '关系顺序',
|
||||
`default_value` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '默认值',
|
||||
`calculated_formula` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '计算字段的公式',
|
||||
`inline_help_text` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '内联帮助文本',
|
||||
`mask` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '掩码',
|
||||
`mask_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '掩码类型',
|
||||
`picklist_values` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '选择列表值 (JSON或其他格式)',
|
||||
`remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
|
||||
`dept_id` bigint NULL DEFAULT NULL COMMENT '部门ID',
|
||||
`create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建者',
|
||||
`create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||
`update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新者',
|
||||
`update_time` datetime NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
UNIQUE INDEX `uk_datai_integration_field_api_field`(`dept_id` ASC, `api` ASC, `field` ASC) USING BTREE,
|
||||
INDEX `idx_datai_integration_field_api_updateable`(`api` ASC, `is_updateable` ASC) USING BTREE,
|
||||
INDEX `idx_datai_integration_field_is_createable`(`is_createable` ASC) USING BTREE,
|
||||
INDEX `idx_datai_integration_field_is_nillable`(`is_nillable` ASC) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 125 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '对象字段信息表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for datai_integration_filter_lookup
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `datai_integration_filter_lookup`;
|
||||
CREATE TABLE `datai_integration_filter_lookup` (
|
||||
`id` int NOT NULL AUTO_INCREMENT COMMENT '主键ID',
|
||||
`dept_id` bigint NULL DEFAULT NULL COMMENT '部门ID',
|
||||
`api` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '对象API',
|
||||
`field` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '字段API',
|
||||
`controlling_field` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '控制字段API',
|
||||
`dependent` tinyint NOT NULL DEFAULT 0 COMMENT '是否依赖字段',
|
||||
`lookup_filter` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '过滤条件',
|
||||
`remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
|
||||
`create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建者',
|
||||
`create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||
`update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新者',
|
||||
`update_time` datetime NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
INDEX `idx_datai_integration_filter_lookup_api_field`(`api` ASC, `field` ASC) USING BTREE,
|
||||
INDEX `idx_datai_integration_filter_lookup_controlling_field`(`controlling_field` ASC) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 53496 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '字段过滤查找信息表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for datai_integration_metadata_change
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `datai_integration_metadata_change`;
|
||||
CREATE TABLE `datai_integration_metadata_change` (
|
||||
`id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID',
|
||||
`change_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '变更类型',
|
||||
`operation_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '操作类型',
|
||||
`object_api` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '对象API',
|
||||
`field_api` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '字段API',
|
||||
`object_label` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '对象名',
|
||||
`field_label` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '字段名',
|
||||
`change_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '变更时间',
|
||||
`change_user` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '变更人',
|
||||
`change_reason` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '变更原因',
|
||||
`sync_status` tinyint(1) NOT NULL DEFAULT 0 COMMENT '同步状态',
|
||||
`sync_time` datetime NULL DEFAULT NULL COMMENT '同步时间',
|
||||
`sync_error_message` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '异常信息',
|
||||
`retry_count` int NOT NULL DEFAULT 0 COMMENT '重试次数',
|
||||
`last_retry_time` datetime NULL DEFAULT NULL COMMENT '重试时间',
|
||||
`is_custom` tinyint(1) NULL DEFAULT 0 COMMENT '是否自定义',
|
||||
`dept_id` bigint NULL DEFAULT NULL COMMENT '部门ID',
|
||||
`create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建者',
|
||||
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||
`update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新者',
|
||||
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
|
||||
`remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '对象元数据变更表' ROW_FORMAT = Dynamic;
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for datai_integration_object
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `datai_integration_object`;
|
||||
CREATE TABLE `datai_integration_object` (
|
||||
`id` int NOT NULL AUTO_INCREMENT COMMENT '主键ID',
|
||||
`dept_id` bigint NULL DEFAULT NULL COMMENT '部门ID',
|
||||
`api` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '对象API',
|
||||
`label` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '显示名称',
|
||||
`label_plural` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '复数名称',
|
||||
`key_prefix` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'ID前缀',
|
||||
`namespace` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '命名空间',
|
||||
`is_queryable` tinyint NULL DEFAULT 1 COMMENT '可查询',
|
||||
`is_createable` tinyint NULL DEFAULT 1 COMMENT '可创建',
|
||||
`is_updateable` tinyint NULL DEFAULT 1 COMMENT '可更新',
|
||||
`is_deletable` tinyint NULL DEFAULT 1 COMMENT '可删除',
|
||||
`is_replicateable` tinyint NULL DEFAULT 0 COMMENT '可同步复制',
|
||||
`is_retrieveable` tinyint NULL DEFAULT 1 COMMENT '可检索',
|
||||
`is_searchable` tinyint NULL DEFAULT 0 COMMENT '可搜索',
|
||||
`is_custom` tinyint NULL DEFAULT 0 COMMENT '是否自定义对象',
|
||||
`is_custom_setting` tinyint NULL DEFAULT 0 COMMENT '是否自定义设置',
|
||||
`is_work` tinyint NULL DEFAULT 0 COMMENT '启用同步',
|
||||
`is_incremental` tinyint NULL DEFAULT 1 COMMENT '增量更新',
|
||||
`object_index` int NULL DEFAULT 0 COMMENT '排序权重',
|
||||
`batch_field` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT 'LastModifiedDate' COMMENT '批次字段',
|
||||
`is_partitioned` tinyint NULL DEFAULT 0 COMMENT '是否分区',
|
||||
`total_rows` int NULL DEFAULT 0 COMMENT '本地记录数',
|
||||
`last_sync_date` datetime NULL DEFAULT NULL COMMENT '最近同步时间',
|
||||
`last_batch_date` datetime NULL DEFAULT NULL COMMENT '最后批次时间',
|
||||
`sync_status` tinyint NULL DEFAULT 0 COMMENT '状态',
|
||||
`error_message` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '失败原因',
|
||||
`remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
|
||||
`create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建者',
|
||||
`create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||
`update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新者',
|
||||
`update_time` datetime NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
UNIQUE INDEX `uk_dept_api`(`dept_id` ASC, `api` ASC) USING BTREE,
|
||||
INDEX `idx_is_work`(`dept_id` ASC, `is_work` ASC) USING BTREE,
|
||||
INDEX `idx_key_prefix`(`key_prefix` ASC) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '对象信息表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for datai_integration_picklist
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `datai_integration_picklist`;
|
||||
CREATE TABLE `datai_integration_picklist` (
|
||||
`id` int NOT NULL AUTO_INCREMENT COMMENT '主键ID',
|
||||
`api` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '对象API',
|
||||
`field` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '字段API',
|
||||
`picklist_value` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '选择列表值',
|
||||
`picklist_label` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '选择列表标签',
|
||||
`picklist_index` int NULL DEFAULT NULL COMMENT '排序',
|
||||
`is_active` tinyint NULL DEFAULT 1 COMMENT '是否激活',
|
||||
`is_default` tinyint NULL DEFAULT 0 COMMENT '是否默认值',
|
||||
`valid_for` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '有效性',
|
||||
`remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
|
||||
`dept_id` bigint NULL DEFAULT NULL COMMENT '部门ID',
|
||||
`create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建者',
|
||||
`create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||
`update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新者',
|
||||
`update_time` datetime NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
INDEX `idx_datai_integration_picklist_api_field`(`api` ASC, `field` ASC) USING BTREE,
|
||||
INDEX `idx_datai_integration_picklist_is_active`(`is_active` ASC) USING BTREE,
|
||||
INDEX `idx_datai_integration_picklist_is_default`(`is_default` ASC) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 53820 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '字段选择列表信息表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for datai_integration_rate_limit
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `datai_integration_rate_limit`;
|
||||
CREATE TABLE `datai_integration_rate_limit` (
|
||||
`id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID',
|
||||
`api_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '接口类型',
|
||||
`limit_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '限制维度',
|
||||
`current_usage` int NOT NULL DEFAULT 0 COMMENT '已用额度',
|
||||
`max_limit` int NOT NULL DEFAULT 0 COMMENT '总额度',
|
||||
`remaining_val` int NOT NULL DEFAULT 0 COMMENT '剩余额度',
|
||||
`reset_time` datetime NULL DEFAULT NULL COMMENT '重置时间',
|
||||
`is_blocked` tinyint NOT NULL DEFAULT 0 COMMENT '是否限流',
|
||||
`remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
|
||||
`dept_id` bigint NULL DEFAULT NULL COMMENT '部门ID',
|
||||
`create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建者',
|
||||
`create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||
`update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新者',
|
||||
`update_time` datetime NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
UNIQUE INDEX `uk_dept_api_limit`(`dept_id` ASC, `api_type` ASC, `limit_type` ASC) USING BTREE,
|
||||
INDEX `idx_reset_time`(`reset_time` ASC) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = 'API限流监控表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for datai_integration_sync_log
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `datai_integration_sync_log`;
|
||||
CREATE TABLE `datai_integration_sync_log` (
|
||||
`id` bigint NOT NULL AUTO_INCREMENT COMMENT '日志ID',
|
||||
`batch_id` int NOT NULL COMMENT '关联批次ID',
|
||||
`object_api` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '对象API',
|
||||
`record_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'SF记录ID',
|
||||
`operation_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '操作类型',
|
||||
`operation_status` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '操作状态',
|
||||
`error_message` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '错误信息',
|
||||
`execution_time` decimal(10, 3) NULL DEFAULT NULL COMMENT '执行时间(秒)',
|
||||
`dept_id` bigint NULL DEFAULT NULL COMMENT '部门ID',
|
||||
`create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建者',
|
||||
`create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||
`update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新者',
|
||||
`update_time` datetime NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
INDEX `idx_log_dept_batch`(`dept_id` ASC, `batch_id` ASC) USING BTREE,
|
||||
INDEX `idx_log_dept_object`(`dept_id` ASC, `object_api` ASC) USING BTREE,
|
||||
INDEX `idx_log_dept_status`(`dept_id` ASC, `operation_status` ASC) USING BTREE,
|
||||
INDEX `idx_log_create_time`(`create_time` ASC) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '数据同步日志表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for datai_sf_login_history
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `datai_sf_login_history`;
|
||||
CREATE TABLE `datai_sf_login_history` (
|
||||
`id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID',
|
||||
`login_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '登录类型',
|
||||
`username` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '用户名',
|
||||
`password_encrypted` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '加密密码',
|
||||
`security_token_encrypted` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '加密安全令牌',
|
||||
`client_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT 'OAuth客户端ID',
|
||||
`client_secret_encrypted` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '加密客户端密钥',
|
||||
`grant_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT 'OAuth授权类型',
|
||||
`org_alias` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '组织别名',
|
||||
`private_key_path` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '私有密钥路径',
|
||||
`code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT 'OAuth授权码',
|
||||
`state` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT 'OAuth state参数',
|
||||
`session_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '会话ID',
|
||||
`environment_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '环境编码',
|
||||
`environment_id` bigint NULL DEFAULT NULL COMMENT '环境ID',
|
||||
`instance_url` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '实例URL',
|
||||
`organization_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '组织ID',
|
||||
`request_ip` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '请求IP',
|
||||
`request_port` int NULL DEFAULT NULL COMMENT '请求端口',
|
||||
`user_agent` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '用户代理',
|
||||
`device_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '设备类型',
|
||||
`browser_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '浏览器类型',
|
||||
`os_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '操作系统',
|
||||
`login_status` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '登录状态',
|
||||
`error_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '错误代码',
|
||||
`error_message` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '错误信息',
|
||||
`session_id_result` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '结果会话ID',
|
||||
`refresh_token_encrypted` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '加密刷新令牌',
|
||||
`token_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '令牌类型',
|
||||
`expires_in` int NULL DEFAULT NULL COMMENT '过期时间(秒)',
|
||||
`request_time` datetime NULL DEFAULT NULL COMMENT '请求时间',
|
||||
`response_time` datetime NULL DEFAULT NULL COMMENT '响应时间',
|
||||
`duration_ms` bigint NULL DEFAULT NULL COMMENT '处理耗时(毫秒)',
|
||||
`operator` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '操作人',
|
||||
`dept_id` bigint NULL DEFAULT NULL COMMENT '部门ID',
|
||||
`create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '创建者',
|
||||
`create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||
`update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '更新者',
|
||||
`update_time` datetime NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
|
||||
`remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '备注',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
INDEX `idx_login_type`(`login_type` ASC) USING BTREE,
|
||||
INDEX `idx_username`(`username` ASC) USING BTREE,
|
||||
INDEX `idx_login_status`(`login_status` ASC) USING BTREE,
|
||||
INDEX `idx_request_time`(`request_time` ASC) USING BTREE,
|
||||
INDEX `idx_environment_code`(`environment_code` ASC) USING BTREE,
|
||||
INDEX `idx_request_ip`(`request_ip` ASC) USING BTREE,
|
||||
INDEX `idx_create_time`(`create_time` ASC) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 11 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '登录历史信息表' ROW_FORMAT = Dynamic;
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for datai_sf_login_session
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `datai_sf_login_session`;
|
||||
CREATE TABLE `datai_sf_login_session` (
|
||||
`id` bigint NOT NULL AUTO_INCREMENT COMMENT '会话ID',
|
||||
`username` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '用户名',
|
||||
`login_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '登录类型',
|
||||
`status` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '会话状态',
|
||||
`login_time` datetime NOT NULL COMMENT '登录时间',
|
||||
`expire_time` datetime NOT NULL COMMENT '过期时间',
|
||||
`last_activity_time` datetime NOT NULL COMMENT '最后活动时间',
|
||||
`login_ip` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '登录IP',
|
||||
`device_info` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '设备信息',
|
||||
`browser_info` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '浏览器信息',
|
||||
`session_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '会话ID',
|
||||
`dept_id` bigint NULL DEFAULT NULL COMMENT '部门ID',
|
||||
`create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '创建人',
|
||||
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||
`update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '更新人',
|
||||
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
INDEX `idx_username`(`username` ASC) USING BTREE,
|
||||
INDEX `idx_login_type`(`login_type` ASC) USING BTREE,
|
||||
INDEX `idx_status`(`status` ASC) USING BTREE,
|
||||
INDEX `idx_expire_time`(`expire_time` ASC) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 7 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '登录会话信息表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
SET FOREIGN_KEY_CHECKS = 1;
|
||||
Loading…
Reference in New Issue
Block a user