contract_management/models/order_payments.json
yumoqing 3772f0f6fb feat(contract): 增强合同管理模块功能
- 添加增强的合同核心功能
- 实现合同里程碑管理
- 实现合同版本控制
- 添加订单和支付管理功能
- 完整的数据库模型和API接口
- 包含测试用例
2026-04-16 14:34:37 +08:00

115 lines
3.0 KiB
JSON
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"summary": [
{
"name": "order_payments",
"title": "订单付款记录表",
"primary": "id",
"catelog": "relation"
}
],
"fields": [
{
"name": "id",
"title": "付款记录ID",
"type": "str",
"length": 32,
"nullable": "no",
"comments": "主键 - UUID格式"
},
{
"name": "order_id",
"title": "订单ID",
"type": "str",
"length": 32,
"nullable": "no",
"comments": "关联的订单ID"
},
{
"name": "payment_amount",
"title": "付款金额",
"type": "decimal",
"length": 15,
"dec": 2,
"nullable": "no",
"comments": "本次付款金额"
},
{
"name": "payment_date",
"title": "付款日期",
"type": "date",
"nullable": "no",
"comments": "付款日期"
},
{
"name": "payment_method",
"title": "付款方式",
"type": "str",
"length": 50,
"nullable": "yes",
"comments": "付款方式"
},
{
"name": "payment_reference",
"title": "付款凭证",
"type": "str",
"length": 100,
"nullable": "yes",
"comments": "付款凭证号或参考号"
},
{
"name": "status",
"title": "付款状态",
"type": "str",
"length": 20,
"nullable": "no",
"default": "pending",
"comments": "状态pending=待确认, confirmed=已确认, rejected=已拒绝"
},
{
"name": "notes",
"title": "备注",
"type": "text",
"nullable": "yes",
"comments": "付款备注"
},
{
"name": "created_at",
"title": "创建时间",
"type": "timestamp",
"nullable": "no",
"comments": "创建时间"
},
{
"name": "confirmed_at",
"title": "确认时间",
"type": "timestamp",
"nullable": "yes",
"comments": "付款确认时间"
},
{
"name": "confirmed_by",
"title": "确认人ID",
"type": "str",
"length": 32,
"nullable": "yes",
"comments": "付款确认人ID"
}
],
"indexes": [
{
"name": "idx_payments_order",
"idxtype": "index",
"idxfields": ["order_id"]
},
{
"name": "idx_payments_status",
"idxtype": "index",
"idxfields": ["status"]
},
{
"name": "idx_payments_date",
"idxtype": "index",
"idxfields": ["payment_date"]
}
]
}