financial_management/models/receivables.json
yumoqing e3c19bc359 sync: local modifications to financial_management
- Updated financial_core.py
- Updated models/receivables.json
- Added mysql.ddl.sql
- Added API files: debug_receivables, receivables CRUD, test_env
- Added UI files: financial_vouchers, index, payments, receipts, receivable_edit, receivables
2026-04-28 18:53:13 +08:00

23 lines
1.3 KiB
JSON

{
"table_name": "receivables",
"fields": [
{"name": "id", "type": "varchar(64)", "not_null": true, "comment": "主键ID"},
{"name": "order_id", "type": "varchar(64)", "comment": "订单ID"},
{"name": "contract_id", "type": "varchar(64)", "comment": "合同ID"},
{"name": "customer_id", "type": "varchar(64)", "comment": "客户ID"},
{"name": "receivable_amount", "type": "decimal(15,2)", "comment": "应收金额"},
{"name": "received_amount", "type": "decimal(15,2)", "comment": "已收金额"},
{"name": "due_date", "type": "date", "comment": "到期日期"},
{"name": "status", "type": "varchar(32)", "comment": "状态"},
{"name": "description", "type": "varchar(500)", "comment": "描述"},
{"name": "org_id", "type": "varchar(64)", "comment": "组织ID"},
{"name": "created_at", "type": "timestamp", "comment": "创建时间"},
{"name": "updated_at", "type": "timestamp", "comment": "更新时间"}
],
"indexes": [
{"name": "idx_receivables_customer", "fields": ["customer_id"]},
{"name": "idx_receivables_contract", "fields": ["contract_id"]},
{"name": "idx_receivables_status", "fields": ["status"]},
{"name": "idx_receivables_due_date", "fields": ["due_date"]}
]
}