workflow_approval/models/approval_task.json
2026-04-16 14:40:37 +08:00

111 lines
2.2 KiB
JSON

{
"summary": {
"name": "approval_task",
"label": "审批任务",
"comment": "具体的审批任务分配"
},
"fields": [
{
"name": "id",
"title": "ID",
"type": "str",
"length": 32,
"nullable": false,
"comments": "主键UUID"
},
{
"name": "instance_id",
"title": "实例ID",
"type": "str",
"length": 32,
"nullable": false,
"comments": "关联的审批实例"
},
{
"name": "step_id",
"title": "步骤ID",
"type": "str",
"length": 32,
"nullable": false,
"comments": "关联的审批步骤"
},
{
"name": "approver_id",
"title": "审批人ID",
"type": "str",
"length": 32,
"nullable": false,
"comments": "具体审批人用户ID"
},
{
"name": "status",
"title": "状态",
"type": "str",
"length": 20,
"nullable": false,
"comments": "pending/approved/rejected"
},
{
"name": "decision",
"title": "决策",
"type": "str",
"length": 1000,
"nullable": true,
"comments": "审批意见"
},
{
"name": "org_id",
"title": "组织ID",
"type": "str",
"length": 32,
"nullable": false,
"comments": "多租户组织隔离"
},
{
"name": "assigned_at",
"title": "分配时间",
"type": "timestamp",
"nullable": false,
"comments": "任务分配时间"
},
{
"name": "completed_at",
"title": "完成时间",
"type": "timestamp",
"nullable": true,
"comments": "任务完成时间"
},
{
"name": "due_at",
"title": "截止时间",
"type": "timestamp",
"nullable": true,
"comments": "任务截止时间"
}
],
"indexes": [
{
"name": "idx_task_instance",
"idxtype": "index",
"fields": ["instance_id"]
},
{
"name": "idx_task_approver",
"idxtype": "index",
"fields": ["approver_id"]
},
{
"name": "idx_task_status",
"idxtype": "index",
"fields": ["status"]
}
],
"codes": [
{
"tblname": "appcodes",
"codevalue": "TASK_STATUS",
"valuefield": "k",
"textfield": "v"
}
]
}