script_engine/models/script_engine.json
2026-08-29 12:44:23 +08:00

29 lines
1.3 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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