pbl_compiler/models/pbl_game_definition.json
2026-09-18 23:51:30 +08:00

184 lines
3.8 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": [
{
"name": "pbl_game_definition",
"title": "Game Definition第9章 schema + 指纹)",
"comment": "Game Definition第9章 schema + 指纹)",
"primary": ["id"],
"catelog": "entity",
"module": "pbl_compiler",
"engine": "mariadb",
"charset": "utf8mb4",
"tenant_scoped": true
}
],
"fields": [
{
"name": "tenant_id",
"title": "租户ID(强制打头)",
"type": "str",
"length": 32,
"nullable": "no"
},
{
"name": "id",
"title": "主键ID",
"type": "str",
"length": 32,
"nullable": "no"
},
{
"name": "blueprint_id",
"title": "来源蓝图",
"type": "str",
"length": 32,
"nullable": "no",
"default": ""
},
{
"name": "blueprint_version_no",
"title": "蓝图版本",
"type": "int",
"nullable": "no",
"default": "1"
},
{
"name": "compiler_version_id",
"title": "编译版本",
"type": "str",
"length": 32,
"nullable": "no",
"default": ""
},
{
"name": "content_fingerprint",
"title": "SHA-256 指纹(64 位 hexdigest唯一约束 uk_gd_fp 成员)",
"type": "str",
"length": 64,
"nullable": "no",
"default": ""
},
{
"name": "definition_json",
"title": "Game Definition 正文",
"type": "text",
"nullable": "yes"
},
{
"name": "world_id",
"title": "落库 world",
"type": "str",
"length": 32,
"nullable": "no",
"default": ""
},
{
"name": "scene_id",
"title": "落库 scene",
"type": "str",
"length": 32,
"nullable": "no",
"default": ""
},
{
"name": "entity_count",
"title": "实体数",
"type": "int",
"nullable": "yes",
"default": "0"
},
{
"name": "event_count",
"title": "事件数",
"type": "int",
"nullable": "yes",
"default": "0"
},
{
"name": "rules_json",
"title": "规则产物JSON(script_type=1规则数组,确定性序列化)",
"type": "text",
"nullable": "yes"
},
{
"name": "rules_hash",
"title": "规则产物指纹(sha256,确定性)",
"type": "str",
"length": 64,
"nullable": "yes",
"default": ""
},
{
"name": "rule_count",
"title": "规则条数",
"type": "int",
"nullable": "yes",
"default": "0"
},
{
"name": "rules_manifest",
"title": "规则清单JSON(rule_id/event_type/content_hash)",
"type": "text",
"nullable": "yes"
},
{
"name": "quality_state",
"title": "编译时质量状态",
"type": "str",
"length": 64,
"nullable": "yes",
"default": ""
},
{
"name": "duration_ms",
"title": "耗时",
"type": "int",
"nullable": "yes",
"default": "0"
},
{
"name": "created_by",
"title": "创建人",
"type": "str",
"length": 32,
"nullable": "yes",
"default": ""
},
{
"name": "created_at",
"title": "创建时间",
"type": "datetime",
"nullable": "yes"
},
{
"name": "updated_at",
"title": "更新时间",
"type": "datetime",
"nullable": "yes"
}
],
"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"]
},
{
"name": "idx_gd_rules_hash",
"idxtype": "index",
"idxfields": ["tenant_id", "rules_hash"]
}
],
"codes": []
}