{ "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", "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" } ] }