- Updated all model JSON files: approval_instance, approval_step, approval_task, approval_workflow - Updated init.py, mysql.ddl.sql, mobile_base.ui - Added __init__.py - Added API files: instance CRUD, step CRUD, task approve/reject/list, workflow CRUD - Added UI files: base.ui, approval_instance.ui, approval_task.ui, approval_workflow.ui
24 lines
1.3 KiB
JSON
24 lines
1.3 KiB
JSON
{
|
|
"table_name": "approval_workflow",
|
|
"fields": [
|
|
{"name": "id", "type": "varchar(32)", "not_null": true, "comment": "主键ID"},
|
|
{"name": "name", "type": "varchar(100)", "not_null": true, "comment": "工作流名称"},
|
|
{"name": "module", "type": "varchar(50)", "not_null": true, "comment": "所属模块"},
|
|
{"name": "trigger_event", "type": "varchar(100)", "comment": "触发事件"},
|
|
{"name": "description", "type": "text", "comment": "描述"},
|
|
{"name": "org_id", "type": "varchar(32)", "comment": "组织ID"},
|
|
{"name": "status", "type": "varchar(20)", "default": "Y", "comment": "状态 Y-启用 N-禁用"},
|
|
{"name": "created_at", "type": "timestamp", "comment": "创建时间"},
|
|
{"name": "updated_at", "type": "timestamp", "comment": "更新时间"}
|
|
],
|
|
"indexes": [
|
|
{"name": "idx_workflow_module", "fields": ["module"], "type": "normal"},
|
|
{"name": "idx_workflow_org", "fields": ["org_id"], "type": "normal"},
|
|
{"name": "idx_workflow_status", "fields": ["status"], "type": "normal"}
|
|
],
|
|
"codes": [
|
|
{"key": "contract_approval", "name": "合同审批"},
|
|
{"key": "customer_approval", "name": "客户审批"},
|
|
{"key": "opportunity_approval", "name": "商机审批"}
|
|
]
|
|
} |