修改完善这个专利部分

This commit is contained in:
super
2026-05-15 16:06:12 +08:00
parent e4e01c1686
commit 14db1e0cb1
45 changed files with 2842 additions and 2554 deletions

View File

@@ -0,0 +1,29 @@
CREATE TABLE IF NOT EXISTS biz_coze_credential (
id BIGINT NOT NULL AUTO_INCREMENT,
module_type VARCHAR(64) NOT NULL,
credential_name VARCHAR(128) NOT NULL,
workflow_id VARCHAR(128) NOT NULL,
token VARCHAR(512) NOT NULL,
enabled TINYINT NOT NULL DEFAULT 1,
max_concurrent INT NOT NULL DEFAULT 0,
sort_order INT NOT NULL DEFAULT 0,
created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
updated_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (id),
UNIQUE KEY uk_coze_credential_module_name (module_type, credential_name),
KEY idx_coze_credential_module_enabled (module_type, enabled, sort_order, id)
);
INSERT INTO biz_coze_credential (module_type, credential_name, workflow_id, token, enabled, max_concurrent, sort_order)
VALUES
('APPEARANCE_PATENT', 'appearance-1', '7639685157562089513', 'Bearer sat_CztofPRhIKFKeaPZBIRxocfckqhsdCZZ45NPhkf7WOZjbX36vnVSfVV30T6u2rSX', 1, 0, 10),
('APPEARANCE_PATENT', 'appearance-2', '7639688221823778850', 'Bearer sat_2VsTpfWXYG3EkCo8OQfLwJEWqhduCL4NEw7sSCsABppkW61kkSRPIac9coNlEnHE', 1, 0, 20),
('SIMILAR_ASIN', 'similar-1', '7639708860686024756', 'Bearer sat_vqmb97BiXbMW3XVyG9htWQKjZ2F55CaW2FRrT9bDdPha7a3hxmXnMNCE1XNHdCVU', 1, 0, 10),
('SIMILAR_ASIN', 'similar-2', '7635328462404583478', 'Bearer sat_gsInckdsN0qqhnZSK7K4Zevw6neJCHmYHyIbm85oGgJIGEmSdkH5OFctSKLsAHvT', 1, 0, 20)
ON DUPLICATE KEY UPDATE
workflow_id = VALUES(workflow_id),
token = VALUES(token),
enabled = VALUES(enabled),
max_concurrent = VALUES(max_concurrent),
sort_order = VALUES(sort_order),
updated_at = CURRENT_TIMESTAMP;

View File

@@ -4,7 +4,7 @@
Source Server : AI-线
Source Server Type : MySQL
Source Server Version : 80045 (8.0.45)
Source Host : 8.136.19.173:3306
Source Host : 47.111.163.154:3306
Source Schema : aiimage
Target Server Type : MySQL