workflow_approval/models/approval_task.json
2026-04-17 11:07:49 +08:00

115 lines
2.9 KiB
JSON

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