workflow_approval/models/approval_step.json

95 lines
2.2 KiB
JSON

{
"table_name": "approval_step",
"fields": [
{
"name": "id",
"type": "str",
"not_null": true,
"comment": "主键ID",
"length": 32
},
{
"name": "workflow_id",
"type": "str",
"not_null": true,
"comment": "所属工作流ID",
"length": 32
},
{
"name": "step_name",
"type": "str",
"not_null": true,
"comment": "步骤名称",
"length": 100
},
{
"name": "step_number",
"type": "int",
"not_null": true,
"comment": "步骤顺序号"
},
{
"name": "approver_role",
"type": "str",
"comment": "审批角色: role/user",
"length": 20
},
{
"name": "approver_id",
"type": "str",
"comment": "审批人ID",
"length": 32
},
{
"name": "description",
"type": "str",
"comment": "步骤描述",
"length": 500
},
{
"name": "timeout_hours",
"type": "int",
"comment": "超时小时数"
}
],
"indexes": [
{
"name": "idx_step_workflow",
"type": "normal",
"idxfields": [
"workflow_id"
],
"idxtype": "index"
},
{
"name": "idx_step_order",
"type": "normal",
"comment": "复合索引:按工作流和顺序查询",
"idxfields": [
"workflow_id",
"step_number"
],
"idxtype": "index"
}
],
"codes": [
{
"key": "role",
"name": "角色审批"
},
{
"key": "user",
"name": "指定人审批"
}
],
"summary": [
{
"name": "approval_step",
"title": "审批步骤",
"primary": [
"id"
],
"catelog": "entity"
}
]
}