refactor(models): convert to json format per database-table-definition-spec

This commit is contained in:
yumoqing 2026-05-27 13:23:26 +08:00
parent 63ab112fed
commit 8463bb62f4
5 changed files with 44 additions and 23 deletions

View File

@ -3,7 +3,9 @@
{
"name": "financial_vouchers",
"title": "财务凭证",
"primary": "id",
"primary": [
"id"
],
"catelog": "entity"
}
],

View File

@ -3,7 +3,9 @@
{
"name": "payments",
"title": "支出记录",
"primary": "id",
"primary": [
"id"
],
"catelog": "entity"
}
],

View File

@ -3,7 +3,9 @@
{
"name": "receipt_allocations",
"title": "收款分配",
"primary": "id",
"primary": [
"id"
],
"catelog": "entity"
}
],

View File

@ -3,7 +3,9 @@
{
"name": "receipts",
"title": "收款记录",
"primary": "id",
"primary": [
"id"
],
"catelog": "entity"
}
],

View File

@ -3,34 +3,42 @@
"fields": [
{
"name": "id",
"type": "varchar(64)",
"type": "str",
"not_null": true,
"comment": "主键ID"
"comment": "主键ID",
"length": 64
},
{
"name": "order_id",
"type": "varchar(64)",
"comment": "订单ID"
"type": "str",
"comment": "订单ID",
"length": 64
},
{
"name": "contract_id",
"type": "varchar(64)",
"comment": "合同ID"
"type": "str",
"comment": "合同ID",
"length": 64
},
{
"name": "customer_id",
"type": "varchar(64)",
"comment": "客户ID"
"type": "str",
"comment": "客户ID",
"length": 64
},
{
"name": "receivable_amount",
"type": "decimal(15,2)",
"comment": "应收金额"
"type": "double",
"comment": "应收金额",
"length": 15,
"dec": 2
},
{
"name": "received_amount",
"type": "decimal(15,2)",
"comment": "已收金额"
"type": "double",
"comment": "已收金额",
"length": 15,
"dec": 2
},
{
"name": "due_date",
@ -39,18 +47,21 @@
},
{
"name": "status",
"type": "varchar(32)",
"comment": "状态"
"type": "str",
"comment": "状态",
"length": 32
},
{
"name": "description",
"type": "varchar(500)",
"comment": "描述"
"type": "str",
"comment": "描述",
"length": 500
},
{
"name": "org_id",
"type": "varchar(64)",
"comment": "组织ID"
"type": "str",
"comment": "组织ID",
"length": 64
},
{
"name": "created_at",
@ -97,7 +108,9 @@
{
"name": "receivables",
"title": "应收款项",
"primary": "id",
"primary": [
"id"
],
"catelog": "entity"
}
]