pbl_domain_ext/json/pbl_domain_ref.json
2026-09-18 12:12:52 +08:00

30 lines
1.7 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.

{
"tblname": "pbl_domain_ref",
"params": {
"browserfields": {
"id": {"label": "ID", "width": 70},
"tenant_id": {"label": "租户", "width": 110},
"ref_type": {"label": "关联类型", "width": 90, "code": "pbl_domain_ref_type"},
"ref_id": {"label": "基表记录ID", "width": 110},
"blueprint_id": {"label": "蓝图ID", "width": 130},
"class_id": {"label": "教学班", "width": 110},
"team_id": {"label": "团队", "width": 110},
"is_deleted": {"label": "已解绑", "width": 80},
"created_at": {"label": "创建时间", "width": 150},
"updated_at": {"label": "更新时间", "width": 150}
},
"editable": {
"tenant_id": {"label": "租户ID", "type": "text", "required": true, "comment": "PBL 多租户隔离维度,基表无此列"},
"ref_type": {"label": "关联类型", "type": "select", "required": true, "code": "pbl_domain_ref_type", "options": ["world", "scene", "entity"]},
"ref_id": {"label": "基表记录ID", "type": "number", "required": true, "comment": "world.id / scene.id / entity.id"},
"blueprint_id": {"label": "蓝图ID", "type": "text", "required": false},
"class_id": {"label": "教学班ID", "type": "text", "required": false},
"team_id": {"label": "团队ID", "type": "text", "required": false},
"ext": {"label": "扩展属性(JSON)", "type": "textarea", "required": false},
"is_deleted": {"label": "软删标记", "type": "number", "required": false, "default": 0}
},
"orderby": "id DESC",
"readonly_note": "运维浏览用;业务写入一律走契约接口 bind_ref/update_ref/unbind_ref含存在性校验与租户隔离禁止直接 CRUD 绕过校验。基表 world/scene/entity 零修改、只读。"
}
}