112 lines
2.5 KiB
JSON
112 lines
2.5 KiB
JSON
{
|
||
"summary": [
|
||
{
|
||
"name": "pbl_ui_page_registry",
|
||
"title": "PBL 覆盖层页面注册表(12 页面 + 渲染时延预算)",
|
||
"primary": ["id"],
|
||
"catelog": "dimession"
|
||
}
|
||
],
|
||
"fields": [
|
||
{
|
||
"name": "tenant_id",
|
||
"title": "租户ID(多租户强制打头,由应用层 tenant_scope 写入)",
|
||
"type": "str",
|
||
"length": 32,
|
||
"nullable": "no",
|
||
"default": "0"
|
||
},
|
||
{
|
||
"name": "id",
|
||
"title": "主键ID(应用层 getID/uniqueID 生成的32位字符串)",
|
||
"type": "str",
|
||
"length": 32,
|
||
"nullable": "no"
|
||
},
|
||
{
|
||
"name": "page_key",
|
||
"title": "页面键(与 core.js PAGES 注册表同源)",
|
||
"type": "str",
|
||
"length": 64,
|
||
"nullable": "no"
|
||
},
|
||
{
|
||
"name": "title",
|
||
"title": "页面标题",
|
||
"type": "str",
|
||
"length": 128,
|
||
"nullable": "no"
|
||
},
|
||
{
|
||
"name": "route",
|
||
"title": "页面壳路由(/pbl_overlay/<key>.ui)",
|
||
"type": "str",
|
||
"length": 256,
|
||
"nullable": "no"
|
||
},
|
||
{
|
||
"name": "widget_type",
|
||
"title": "覆盖层渲染组件类型",
|
||
"type": "str",
|
||
"length": 64,
|
||
"nullable": "no"
|
||
},
|
||
{
|
||
"name": "requires_role",
|
||
"title": "访问所需角色(logined/teacher)",
|
||
"type": "str",
|
||
"length": 64,
|
||
"nullable": "no",
|
||
"default": "logined"
|
||
},
|
||
{
|
||
"name": "budget_ms",
|
||
"title": "渲染时延预算(毫秒: 世界内500/首屏1500)",
|
||
"type": "int",
|
||
"nullable": "no",
|
||
"default": "1500"
|
||
},
|
||
{
|
||
"name": "enabled",
|
||
"title": "是否启用(1=启用,0=停用)",
|
||
"type": "str",
|
||
"length": 1,
|
||
"nullable": "no",
|
||
"default": "1"
|
||
},
|
||
{
|
||
"name": "meta_json",
|
||
"title": "扩展元数据(JSON 文本,应用层序列化)",
|
||
"type": "text",
|
||
"nullable": "yes"
|
||
},
|
||
{
|
||
"name": "created_at",
|
||
"title": "创建时间(应用层 curDateString 写入)",
|
||
"type": "datetime",
|
||
"nullable": "no",
|
||
"default": "1970-01-01 00:00:00"
|
||
},
|
||
{
|
||
"name": "updated_at",
|
||
"title": "更新时间(应用层 curDateString 写入)",
|
||
"type": "datetime",
|
||
"nullable": "no",
|
||
"default": "1970-01-01 00:00:00"
|
||
}
|
||
],
|
||
"indexes": [
|
||
{
|
||
"name": "uk_upr_key",
|
||
"idxtype": "unique",
|
||
"idxfields": ["tenant_id", "page_key"]
|
||
},
|
||
{
|
||
"name": "idx_upr_tenant_enabled",
|
||
"idxtype": "index",
|
||
"idxfields": ["tenant_id", "enabled", "page_key"]
|
||
}
|
||
],
|
||
"codes": []
|
||
}
|