From af10e4a8107fdda56078d0ed0ccba41eeaff8d3f Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 27 May 2026 13:23:22 +0800 Subject: [PATCH] refactor(models): convert to json format per database-table-definition-spec --- models/acc_balance.json | 3 ++- models/acc_detail.json | 6 ++++-- models/account.json | 3 ++- models/accounting_log.json | 3 ++- models/bill.json | 3 ++- models/bill_detail.json | 3 ++- models/ledger.json | 6 ++++-- 7 files changed, 18 insertions(+), 9 deletions(-) diff --git a/models/acc_balance.json b/models/acc_balance.json index 0e75eeb..14d8d0a 100644 --- a/models/acc_balance.json +++ b/models/acc_balance.json @@ -30,7 +30,8 @@ "name": "balance", "title": "账户余额", "type": "float", - "length": 20 + "length": 20, + "dec": 2 } ] } \ No newline at end of file diff --git a/models/acc_detail.json b/models/acc_detail.json index 80a6a23..b0d687b 100644 --- a/models/acc_detail.json +++ b/models/acc_detail.json @@ -52,13 +52,15 @@ "name": "amount", "title": "记账金额", "type": "float", - "length": 18 + "length": 18, + "dec": 2 }, { "name": "balance", "title": "账户余额", "type": "float", - "length": 18 + "length": 18, + "dec": 2 }, { "name": "acclogid", diff --git a/models/account.json b/models/account.json index 3558c4d..859b82a 100644 --- a/models/account.json +++ b/models/account.json @@ -54,7 +54,8 @@ "name": "balance", "title": "余额", "type": "float", - "length": 20 + "length": 20, + "dec": 2 } ], "indexes": [ diff --git a/models/accounting_log.json b/models/accounting_log.json index 9a5a4ff..a7c5fea 100644 --- a/models/accounting_log.json +++ b/models/accounting_log.json @@ -47,7 +47,8 @@ "name": "amount", "title": "记账金额", "type": "float", - "length": 18 + "length": 18, + "dec": 2 }, { "name": "billid", diff --git a/models/bill.json b/models/bill.json index 548cc50..30f57fd 100644 --- a/models/bill.json +++ b/models/bill.json @@ -55,7 +55,8 @@ "name": "amount", "title": "金额", "type": "float", - "length": 18 + "length": 18, + "dec": 2 }, { "name": "bill_date", diff --git a/models/bill_detail.json b/models/bill_detail.json index 019dcda..ea799c0 100644 --- a/models/bill_detail.json +++ b/models/bill_detail.json @@ -61,7 +61,8 @@ "name": "amount", "title": "账单金额", "type": "float", - "length": 18 + "length": 18, + "dec": 2 } ] } \ No newline at end of file diff --git a/models/ledger.json b/models/ledger.json index 801f74a..f3d3b16 100644 --- a/models/ledger.json +++ b/models/ledger.json @@ -36,13 +36,15 @@ "name": "d_balance", "title": "借方余额", "type": "float", - "length": 18 + "length": 18, + "dec": 2 }, { "name": "c_balance", "title": "贷方余额", "type": "float", - "length": 18 + "length": 18, + "dec": 2 } ] } \ No newline at end of file