world_sync/models/pbl_runtime_event.json
2026-09-20 17:16:46 +08:00

25 lines
1.9 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.

{
"key": "schema",
"schema": {
"table": "pbl_runtime_event",
"authority_module": "pbl_runtime_ext",
"authority_path": "modules/pbl_runtime_ext/models/pbl_runtime_event.json",
"owner": "pbls",
"milestone": "M11b-2b",
"decision_ref": "PM 裁决(任务 u0EO4x3ajntR41acaHj5H 问答):选 B —— 以 pbl_runtime_ext 为唯一真源",
"decision_basis": [
"任务书原文:在 M11b-1 产出的 pbl_runtime_event 表基础上(依赖 key=schema引用语义自任务定义起即为 B",
"设计文档 docs/01-design/modules/entity.md 明确该表为 pbl_runtime_ext 侧、pbls 所有",
"pbl_runtime_ext 侧 pbl_runtime_event 的 DDL + 3 个迁移文件 + dev-notes 均已 approved为既定权威结构",
"本任务不得反向修改 M11b-1 已批准产物"
],
"structure_note": "本文件不再自带 summary/fields/indexes/codes 结构体列集、主键、索引、分区、append-only 约束一律以 authority_path 指向的 pbl_runtime_ext 定义为准25 列 / id long 自增 + (id, created_at) 复合主键 / 按月 RANGE COLUMNS 分区 / append-only 触发器。world_sync 侧消费方代码pbl_runtime_sql.py / pbl_runtime_tx.py::write_event_with_state / pbl_runtime_schema.py以该 25 列权威结构为准,不再依赖旧的 12 列本地结构。",
"consumers": [
"modules/world_sync/world_sync/pbl_runtime_sql.py",
"modules/world_sync/world_sync/pbl_runtime_tx.py::write_event_with_state",
"modules/world_sync/world_sync/pbl_runtime_schema.py"
],
"mirror_note": "apps/scense/pkgs/world_sync/models/pbl_runtime_event.json 是本文件的打包镜像,只由 modules/world_sync/scripts/sync_models_mirror.py 生成,禁止手工双写;一致性由 modules/world_sync/scripts/m11b2b_selftest.py 的 sha256 断言守护。"
}
}