pbl_compiler/models/pbl_game_definition.json
2026-09-18 18:24:31 +08:00

137 lines
2.6 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",
"comment": "Game Definition第9章 schema + 指纹)",
"module": "pbl_compiler",
"engine": "mariadb",
"charset": "utf8mb4",
"tenant_scoped": true
}
],
"fields": [
{
"name": "tenant_id",
"comment": "租户ID(强制打头)",
"null": false,
"type": "str",
"length": 32
},
{
"name": "id",
"comment": "主键",
"null": false,
"type": "int",
"length": 20,
"unsigned": true,
"auto_increment": true
},
{
"name": "blueprint_id",
"comment": "来源蓝图",
"null": false,
"type": "bigint"
},
{
"name": "blueprint_version_no",
"comment": "蓝图版本",
"null": false,
"type": "int"
},
{
"name": "compiler_version_id",
"comment": "编译版本",
"null": false,
"type": "bigint"
},
{
"name": "content_fingerprint",
"comment": "SHA-256 指纹(64 位 hexdigest唯一约束 uk_gd_fp 成员)",
"null": false,
"type": "str",
"length": 64
},
{
"name": "definition_json",
"comment": "Game Definition 正文",
"null": true,
"type": "json"
},
{
"name": "world_id",
"comment": "落库 world",
"null": false,
"type": "bigint"
},
{
"name": "scene_id",
"comment": "落库 scene",
"null": false,
"type": "bigint"
},
{
"name": "entity_count",
"comment": "实体数",
"null": false,
"type": "int"
},
{
"name": "event_count",
"comment": "事件数",
"null": false,
"type": "int"
},
{
"name": "quality_state",
"comment": "编译时质量状态",
"null": false,
"type": "str",
"length": 64
},
{
"name": "duration_ms",
"comment": "耗时",
"null": false,
"type": "int"
},
{
"name": "created_at",
"comment": "创建时间",
"null": false,
"type": "datetime"
},
{
"name": "updated_at",
"comment": "更新时间",
"null": false,
"type": "datetime"
}
],
"indexes": [
{
"name": "uk_gd_fp",
"unique": true,
"fields": [
"tenant_id",
"content_fingerprint"
]
},
{
"name": "idx_gd_bp",
"unique": false,
"fields": [
"tenant_id",
"blueprint_id"
]
},
{
"name": "PRIMARY",
"unique": true,
"fields": [
"id"
]
}
],
"codes": []
}