fix: rename index field key from fields to idxfields

This commit is contained in:
yumoqing 2026-04-29 14:50:54 +08:00
parent 65a4b5cee5
commit a065172c46
4 changed files with 38 additions and 26 deletions

View File

@ -59,33 +59,37 @@
"indexes": [ "indexes": [
{ {
"name": "idx_instance_workflow", "name": "idx_instance_workflow",
"fields": [ "type": "normal",
"idxfields": [
"workflow_id" "workflow_id"
], ],
"type": "normal" "idxtype": "index"
}, },
{ {
"name": "idx_instance_business", "name": "idx_instance_business",
"fields": [ "type": "normal",
"comment": "复合索引:按业务类型和记录查询",
"idxfields": [
"business_type", "business_type",
"business_id" "business_id"
], ],
"type": "normal", "idxtype": "index"
"comment": "复合索引:按业务类型和记录查询"
}, },
{ {
"name": "idx_instance_status", "name": "idx_instance_status",
"fields": [ "type": "normal",
"idxfields": [
"status" "status"
], ],
"type": "normal" "idxtype": "index"
}, },
{ {
"name": "idx_instance_initiator", "name": "idx_instance_initiator",
"fields": [ "type": "normal",
"idxfields": [
"initiator_id" "initiator_id"
], ],
"type": "normal" "idxtype": "index"
} }
], ],
"codes": [ "codes": [

View File

@ -49,19 +49,21 @@
"indexes": [ "indexes": [
{ {
"name": "idx_step_workflow", "name": "idx_step_workflow",
"fields": [ "type": "normal",
"idxfields": [
"workflow_id" "workflow_id"
], ],
"type": "normal" "idxtype": "index"
}, },
{ {
"name": "idx_step_order", "name": "idx_step_order",
"fields": [ "type": "normal",
"comment": "复合索引:按工作流和顺序查询",
"idxfields": [
"workflow_id", "workflow_id",
"step_number" "step_number"
], ],
"type": "normal", "idxtype": "index"
"comment": "复合索引:按工作流和顺序查询"
} }
], ],
"codes": [ "codes": [

View File

@ -53,24 +53,27 @@
"indexes": [ "indexes": [
{ {
"name": "idx_task_instance", "name": "idx_task_instance",
"fields": [ "type": "normal",
"idxfields": [
"instance_id" "instance_id"
], ],
"type": "normal" "idxtype": "index"
}, },
{ {
"name": "idx_task_assignee", "name": "idx_task_assignee",
"fields": [ "type": "normal",
"idxfields": [
"assignee_id" "assignee_id"
], ],
"type": "normal" "idxtype": "index"
}, },
{ {
"name": "idx_task_status", "name": "idx_task_status",
"fields": [ "type": "normal",
"idxfields": [
"status" "status"
], ],
"type": "normal" "idxtype": "index"
} }
], ],
"codes": [ "codes": [

View File

@ -54,24 +54,27 @@
"indexes": [ "indexes": [
{ {
"name": "idx_workflow_module", "name": "idx_workflow_module",
"fields": [ "type": "normal",
"idxfields": [
"module" "module"
], ],
"type": "normal" "idxtype": "index"
}, },
{ {
"name": "idx_workflow_org", "name": "idx_workflow_org",
"fields": [ "type": "normal",
"idxfields": [
"org_id" "org_id"
], ],
"type": "normal" "idxtype": "index"
}, },
{ {
"name": "idx_workflow_status", "name": "idx_workflow_status",
"fields": [ "type": "normal",
"idxfields": [
"status" "status"
], ],
"type": "normal" "idxtype": "index"
} }
], ],
"codes": [ "codes": [