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

123 lines
3.4 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": "contract_milestones",
"title": "合同里程碑管理表",
"primary": "id",
"catelog": "relation"
}
],
"fields": [
{
"name": "id",
"title": "里程碑ID",
"type": "str",
"length": 32,
"nullable": "no",
"comments": "主键 - UUID格式"
},
{
"name": "contract_id",
"title": "合同ID",
"type": "str",
"length": 32,
"nullable": "no",
"comments": "关联的合同ID"
},
{
"name": "milestone_name",
"title": "里程碑名称",
"type": "str",
"length": 100,
"nullable": "no",
"comments": "里程碑名称,如'预付款到账'、'产品交付'、'验收完成'"
},
{
"name": "milestone_type",
"title": "里程碑类型",
"type": "str",
"length": 20,
"nullable": "no",
"comments": "里程碑类型payment=付款, delivery=交付, acceptance=验收"
},
{
"name": "planned_date",
"title": "计划日期",
"type": "date",
"nullable": "no",
"comments": "计划完成日期"
},
{
"name": "actual_date",
"title": "实际日期",
"type": "date",
"nullable": "yes",
"comments": "实际完成日期"
},
{
"name": "amount",
"title": "关联金额",
"type": "decimal",
"length": 15,
"dec": 2,
"nullable": "yes",
"comments": "该里程碑关联的金额"
},
{
"name": "status",
"title": "状态",
"type": "str",
"length": 20,
"nullable": "no",
"default": "pending",
"comments": "状态pending=待处理, completed=已完成, overdue=已逾期"
},
{
"name": "description",
"title": "描述",
"type": "text",
"nullable": "yes",
"comments": "里程碑详细描述"
},
{
"name": "created_at",
"title": "创建时间",
"type": "timestamp",
"nullable": "no",
"comments": "创建时间"
},
{
"name": "updated_at",
"title": "更新时间",
"type": "timestamp",
"nullable": "no",
"comments": "最后更新时间"
},
{
"name": "reminder_sent",
"title": "提醒已发送",
"type": "str",
"length": 1,
"nullable": "no",
"default": "0",
"comments": "逾期提醒是否已发送1=是, 0=否"
}
],
"indexes": [
{
"name": "idx_milestones_contract",
"idxtype": "index",
"idxfields": ["contract_id"]
},
{
"name": "idx_milestones_status",
"idxtype": "index",
"idxfields": ["status"]
},
{
"name": "idx_milestones_planned",
"idxtype": "index",
"idxfields": ["planned_date"]
}
]
}