From 1a35ac4254172c7446d84345d69212f6b46a7707 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 29 Apr 2026 14:48:00 +0800 Subject: [PATCH] fix: rename index field key from fields/columns to idxfields --- models/financial_vouchers.json | 10 +++++----- models/payments.json | 8 ++++---- models/receipt_allocations.json | 8 ++++---- models/receipts.json | 8 ++++---- models/receivables.json | 20 ++++++++++++-------- 5 files changed, 29 insertions(+), 25 deletions(-) diff --git a/models/financial_vouchers.json b/models/financial_vouchers.json index 6b924fb..bbd6f6f 100644 --- a/models/financial_vouchers.json +++ b/models/financial_vouchers.json @@ -99,21 +99,21 @@ { "name": "idx_vouchers_contract_id", "idxtype": "index", - "columns": [ + "idxfields": [ "contract_id" ] }, { "name": "idx_vouchers_order_id", "idxtype": "index", - "columns": [ + "idxfields": [ "order_id" ] }, { "name": "idx_vouchers_voucher_number", "idxtype": "unique", - "columns": [ + "idxfields": [ "voucher_number", "org_id" ] @@ -121,14 +121,14 @@ { "name": "idx_vouchers_org_id", "idxtype": "index", - "columns": [ + "idxfields": [ "org_id" ] }, { "name": "idx_vouchers_type", "idxtype": "index", - "columns": [ + "idxfields": [ "voucher_type" ] } diff --git a/models/payments.json b/models/payments.json index efebbb9..b8b1201 100644 --- a/models/payments.json +++ b/models/payments.json @@ -122,14 +122,14 @@ { "name": "idx_payments_contract_id", "idxtype": "index", - "columns": [ + "idxfields": [ "contract_id" ] }, { "name": "idx_payments_payment_number", "idxtype": "unique", - "columns": [ + "idxfields": [ "payment_number", "org_id" ] @@ -137,14 +137,14 @@ { "name": "idx_payments_org_id", "idxtype": "index", - "columns": [ + "idxfields": [ "org_id" ] }, { "name": "idx_payments_status", "idxtype": "index", - "columns": [ + "idxfields": [ "payment_status" ] } diff --git a/models/receipt_allocations.json b/models/receipt_allocations.json index 3d69533..82120f5 100644 --- a/models/receipt_allocations.json +++ b/models/receipt_allocations.json @@ -84,28 +84,28 @@ { "name": "idx_allocations_receipt_id", "idxtype": "index", - "columns": [ + "idxfields": [ "receipt_id" ] }, { "name": "idx_allocations_order_id", "idxtype": "index", - "columns": [ + "idxfields": [ "order_id" ] }, { "name": "idx_allocations_receivable_id", "idxtype": "index", - "columns": [ + "idxfields": [ "receivable_id" ] }, { "name": "idx_allocations_org_id", "idxtype": "index", - "columns": [ + "idxfields": [ "org_id" ] } diff --git a/models/receipts.json b/models/receipts.json index 84b15d3..5c4a7c0 100644 --- a/models/receipts.json +++ b/models/receipts.json @@ -106,14 +106,14 @@ { "name": "idx_receipts_customer_id", "idxtype": "index", - "columns": [ + "idxfields": [ "customer_id" ] }, { "name": "idx_receipts_receipt_number", "idxtype": "unique", - "columns": [ + "idxfields": [ "receipt_number", "org_id" ] @@ -121,14 +121,14 @@ { "name": "idx_receipts_org_id", "idxtype": "index", - "columns": [ + "idxfields": [ "org_id" ] }, { "name": "idx_receipts_status", "idxtype": "index", - "columns": [ + "idxfields": [ "receipt_status" ] } diff --git a/models/receivables.json b/models/receivables.json index 5535836..f1bf017 100644 --- a/models/receivables.json +++ b/models/receivables.json @@ -66,27 +66,31 @@ "indexes": [ { "name": "idx_receivables_customer", - "fields": [ + "idxfields": [ "customer_id" - ] + ], + "idxtype": "index" }, { "name": "idx_receivables_contract", - "fields": [ + "idxfields": [ "contract_id" - ] + ], + "idxtype": "index" }, { "name": "idx_receivables_status", - "fields": [ + "idxfields": [ "status" - ] + ], + "idxtype": "index" }, { "name": "idx_receivables_due_date", - "fields": [ + "idxfields": [ "due_date" - ] + ], + "idxtype": "index" } ], "summary": [