pbl_compiler/models/pbl_game_definition.json
2026-09-19 08:39:44 +08:00

219 lines
5.7 KiB
JSON
Raw Permalink 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": [
{
"name": "pbl_game_definition",
"title": "Game Definition第9章 schema + 指纹)",
"primary": ["id"],
"catelog": "entity"
}
],
"fields": [
{
"name": "id",
"title": "主键ID",
"type": "str",
"length": 32,
"nullable": "no"
},
{
"name": "tenant_id",
"title": "租户ID",
"type": "str",
"length": 32,
"nullable": "no",
"default": "0"
},
{
"name": "blueprint_id",
"title": "蓝图ID",
"type": "str",
"length": 32,
"nullable": "no"
},
{
"name": "blueprint_version_no",
"title": "蓝图版本号",
"type": "int",
"nullable": "no",
"default": "0"
},
{
"name": "compiler_version_id",
"title": "编译器版本ID",
"type": "str",
"length": 32,
"nullable": "no"
},
{
"name": "content_fingerprint",
"title": "内容指纹29.6 确定性:同输入必同值)",
"type": "str",
"length": 64,
"nullable": "no"
},
{
"name": "definition_json",
"title": "Game Definition 正文10 顶层键)",
"type": "text",
"nullable": "no"
},
{
"name": "rules_json",
"title": "script_engine 规则映射产物第12章 ECR→script_type=1canonical JSON",
"type": "text",
"nullable": "yes"
},
{
"name": "rules_hash",
"title": "规则集合指纹canonical_rules_json 的 sha256",
"type": "str",
"length": 64,
"nullable": "yes"
},
{
"name": "rule_count",
"title": "规则条数",
"type": "int",
"nullable": "yes",
"default": "0"
},
{
"name": "rules_manifest",
"title": "规则溯源清单ECR 来源→规则ID 映射JSON",
"type": "text",
"nullable": "yes"
},
{
"name": "world_id",
"title": "世界ID",
"type": "str",
"length": 32,
"nullable": "yes"
},
{
"name": "scene_id",
"title": "场景ID",
"type": "str",
"length": 32,
"nullable": "yes"
},
{
"name": "compile_status",
"title": "编译结果状态",
"type": "str",
"length": 32,
"nullable": "yes",
"default": "pending"
},
{
"name": "quality_state",
"title": "编译时质量状态",
"type": "str",
"length": 64,
"nullable": "yes"
},
{
"name": "duration_ms",
"title": "编译耗时(毫秒)",
"type": "long",
"nullable": "yes",
"default": "0"
},
{
"name": "error_message",
"title": "失败原因(编译/规则映射异常摘要)",
"type": "text",
"nullable": "yes"
},
{
"name": "created_by",
"title": "创建人",
"type": "str",
"length": 32,
"nullable": "yes"
},
{
"name": "created_at",
"title": "创建时间",
"type": "timestamp",
"nullable": "no"
},
{
"name": "updated_by",
"title": "更新人",
"type": "str",
"length": 32,
"nullable": "yes"
},
{
"name": "updated_at",
"title": "更新时间",
"type": "timestamp",
"nullable": "yes"
},
{
"name": "is_deleted",
"title": "删除标记",
"type": "char",
"length": 1,
"nullable": "no",
"default": "0"
}
],
"indexes": [
{
"name": "PRIMARY",
"idxtype": "unique",
"idxfields": ["id"]
},
{
"name": "uk_gd_fp",
"idxtype": "unique",
"idxfields": ["tenant_id", "content_fingerprint"]
},
{
"name": "idx_gd_bp",
"idxtype": "index",
"idxfields": ["tenant_id", "blueprint_id", "blueprint_version_no"]
},
{
"name": "idx_gd_rules_hash",
"idxtype": "index",
"idxfields": ["rules_hash"]
},
{
"name": "idx_gd_quality_state",
"idxtype": "index",
"idxfields": ["quality_state"]
}
],
"codes": [
{
"field": "quality_state",
"table": "appcodes_kv",
"valuefield": "k",
"textfield": "v",
"cond": "parentid='pbl_quality_state'"
},
{
"field": "compile_status",
"table": "appcodes_kv",
"valuefield": "k",
"textfield": "v",
"cond": "parentid='pbl_compile_status'"
},
{
"field": "blueprint_id",
"table": "pbl_blueprint",
"valuefield": "id",
"textfield": "blueprint_name"
},
{
"field": "compiler_version_id",
"table": "pbl_compiler_version",
"valuefield": "id",
"textfield": "version_name"
}
]
}