{ "summary": [ { "table": "script", "primary": ["id"], "name": "脚本表", "desc": "脚本/规则引擎脚本表(W-06 脚本引擎)" } ], "fields": [ {"name": "id", "type": "str32", "notnull": true, "comment": "脚本ID(主键)"}, {"name": "script_name", "type": "str100", "notnull": true, "comment": "脚本名称"}, {"name": "script_type", "type": "str32", "default": "0", "comment": "脚本类型: 0=Python/1=JavaScript/2=规则表达式"}, {"name": "content", "type": "text", "notnull": true, "comment": "脚本内容"}, {"name": "description", "type": "str255", "comment": "脚本描述"}, {"name": "status", "type": "str32", "default": "1", "comment": "状态: 0=停用/1=启用"}, {"name": "created_at", "type": "datetime", "comment": "创建时间"}, {"name": "updated_at", "type": "datetime", "comment": "更新时间"} ], "indexes": [ {"name": "idx_script_name", "fields": ["script_name"]}, {"name": "idx_script_type", "fields": ["script_type"]} ], "codes": [ {"field": "script_type", "table": "appcodes_kv", "valuefield": "k", "textfield": "v", "cond": "parentid='script_type'"}, {"field": "status", "table": "appcodes_kv", "valuefield": "k", "textfield": "v", "cond": "parentid='script_status'"} ] }