{ "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": "商机审批" } ], "summary": { "tablename": "approval_workflow", "label": "审批工作流定义", "comment": "审批流程模板定义" } }