workflow_approval/models/approval_workflow.json

110 lines
2.5 KiB
JSON

{
"table_name": "approval_workflow",
"fields": [
{
"name": "id",
"type": "str",
"not_null": true,
"comment": "主键ID",
"length": 32
},
{
"name": "name",
"type": "str",
"not_null": true,
"comment": "工作流名称",
"length": 100
},
{
"name": "module",
"type": "str",
"not_null": true,
"comment": "所属模块",
"length": 50
},
{
"name": "trigger_event",
"type": "str",
"comment": "触发事件",
"length": 100
},
{
"name": "description",
"type": "text",
"comment": "描述"
},
{
"name": "org_id",
"type": "str",
"comment": "组织ID",
"length": 32
},
{
"name": "status",
"type": "str",
"default": "Y",
"comment": "状态 Y-启用 N-禁用",
"length": 20
},
{
"name": "created_at",
"type": "timestamp",
"comment": "创建时间"
},
{
"name": "updated_at",
"type": "timestamp",
"comment": "更新时间"
}
],
"indexes": [
{
"name": "idx_workflow_module",
"type": "normal",
"idxfields": [
"module"
],
"idxtype": "index"
},
{
"name": "idx_workflow_org",
"type": "normal",
"idxfields": [
"org_id"
],
"idxtype": "index"
},
{
"name": "idx_workflow_status",
"type": "normal",
"idxfields": [
"status"
],
"idxtype": "index"
}
],
"codes": [
{
"key": "contract_approval",
"name": "合同审批"
},
{
"key": "customer_approval",
"name": "客户审批"
},
{
"key": "opportunity_approval",
"name": "商机审批"
}
],
"summary": [
{
"name": "approval_workflow",
"title": "审批工作流定义",
"primary": [
"id"
],
"catelog": "entity"
}
]
}