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

97 lines
2.0 KiB
JSON

{
"summary": {
"name": "approval_workflow",
"label": "审批工作流",
"comment": "跨模块审批工作流定义"
},
"fields": [
{
"name": "id",
"title": "ID",
"type": "str",
"length": 32,
"nullable": false,
"comments": "主键UUID"
},
{
"name": "workflow_name",
"title": "工作流名称",
"type": "str",
"length": 100,
"nullable": false,
"comments": "审批工作流名称"
},
{
"name": "module_type",
"title": "模块类型",
"type": "str",
"length": 50,
"nullable": false,
"comments": "关联的模块类型(customer/opportunity/contract/financial)"
},
{
"name": "trigger_condition",
"title": "触发条件",
"type": "str",
"length": 500,
"nullable": true,
"comments": "JSON格式的触发条件表达式"
},
{
"name": "description",
"title": "描述",
"type": "str",
"length": 500,
"nullable": true,
"comments": "工作流描述"
},
{
"name": "org_id",
"title": "组织ID",
"type": "str",
"length": 32,
"nullable": false,
"comments": "多租户组织隔离"
},
{
"name": "created_at",
"title": "创建时间",
"type": "timestamp",
"nullable": false,
"comments": "创建时间"
},
{
"name": "updated_at",
"title": "更新时间",
"type": "timestamp",
"nullable": false,
"comments": "更新时间"
},
{
"name": "is_active",
"title": "是否激活",
"type": "str",
"length": 1,
"nullable": false,
"comments": "Y/N"
}
],
"indexes": [
{
"name": "idx_workflow_org",
"idxtype": "index",
"fields": ["org_id"]
},
{
"name": "idx_workflow_module",
"idxtype": "index",
"fields": ["module_type"]
},
{
"name": "uk_workflow_name_org",
"idxtype": "unique",
"fields": ["workflow_name", "org_id"]
}
],
"codes": []
}