From a065172c46c61fab86f0ff890c68f6179afcf3c1 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 29 Apr 2026 14:50:54 +0800 Subject: [PATCH] fix: rename index field key from fields to idxfields --- models/approval_instance.json | 22 +++++++++++++--------- models/approval_step.json | 12 +++++++----- models/approval_task.json | 15 +++++++++------ models/approval_workflow.json | 15 +++++++++------ 4 files changed, 38 insertions(+), 26 deletions(-) diff --git a/models/approval_instance.json b/models/approval_instance.json index 1987c3b..2eee323 100644 --- a/models/approval_instance.json +++ b/models/approval_instance.json @@ -59,33 +59,37 @@ "indexes": [ { "name": "idx_instance_workflow", - "fields": [ + "type": "normal", + "idxfields": [ "workflow_id" ], - "type": "normal" + "idxtype": "index" }, { "name": "idx_instance_business", - "fields": [ + "type": "normal", + "comment": "复合索引:按业务类型和记录查询", + "idxfields": [ "business_type", "business_id" ], - "type": "normal", - "comment": "复合索引:按业务类型和记录查询" + "idxtype": "index" }, { "name": "idx_instance_status", - "fields": [ + "type": "normal", + "idxfields": [ "status" ], - "type": "normal" + "idxtype": "index" }, { "name": "idx_instance_initiator", - "fields": [ + "type": "normal", + "idxfields": [ "initiator_id" ], - "type": "normal" + "idxtype": "index" } ], "codes": [ diff --git a/models/approval_step.json b/models/approval_step.json index c02de36..cb89af7 100644 --- a/models/approval_step.json +++ b/models/approval_step.json @@ -49,19 +49,21 @@ "indexes": [ { "name": "idx_step_workflow", - "fields": [ + "type": "normal", + "idxfields": [ "workflow_id" ], - "type": "normal" + "idxtype": "index" }, { "name": "idx_step_order", - "fields": [ + "type": "normal", + "comment": "复合索引:按工作流和顺序查询", + "idxfields": [ "workflow_id", "step_number" ], - "type": "normal", - "comment": "复合索引:按工作流和顺序查询" + "idxtype": "index" } ], "codes": [ diff --git a/models/approval_task.json b/models/approval_task.json index 68cdcd6..aea02ca 100644 --- a/models/approval_task.json +++ b/models/approval_task.json @@ -53,24 +53,27 @@ "indexes": [ { "name": "idx_task_instance", - "fields": [ + "type": "normal", + "idxfields": [ "instance_id" ], - "type": "normal" + "idxtype": "index" }, { "name": "idx_task_assignee", - "fields": [ + "type": "normal", + "idxfields": [ "assignee_id" ], - "type": "normal" + "idxtype": "index" }, { "name": "idx_task_status", - "fields": [ + "type": "normal", + "idxfields": [ "status" ], - "type": "normal" + "idxtype": "index" } ], "codes": [ diff --git a/models/approval_workflow.json b/models/approval_workflow.json index 7c58272..c8cbd0c 100644 --- a/models/approval_workflow.json +++ b/models/approval_workflow.json @@ -54,24 +54,27 @@ "indexes": [ { "name": "idx_workflow_module", - "fields": [ + "type": "normal", + "idxfields": [ "module" ], - "type": "normal" + "idxtype": "index" }, { "name": "idx_workflow_org", - "fields": [ + "type": "normal", + "idxfields": [ "org_id" ], - "type": "normal" + "idxtype": "index" }, { "name": "idx_workflow_status", - "fields": [ + "type": "normal", + "idxfields": [ "status" ], - "type": "normal" + "idxtype": "index" } ], "codes": [