fix: rename index field key from fields/columns to idxfields

This commit is contained in:
yumoqing 2026-04-29 14:48:00 +08:00
parent a0eac5f516
commit 1a35ac4254
5 changed files with 29 additions and 25 deletions

View File

@ -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"
]
}

View File

@ -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"
]
}

View File

@ -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"
]
}

View File

@ -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"
]
}

View File

@ -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": [