184 lines
4.6 KiB
JSON
184 lines
4.6 KiB
JSON
{
|
|
"summary": [
|
|
{
|
|
"name": "pbl_domain_ref",
|
|
"title": "PBL基础域关联表(world/scene/entity)",
|
|
"primary": ["id"],
|
|
"catelog": "relation"
|
|
}
|
|
],
|
|
"fields": [
|
|
{
|
|
"name": "id",
|
|
"title": "主键ID",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "no"
|
|
},
|
|
{
|
|
"name": "tenant_id",
|
|
"title": "租户ID",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "no",
|
|
"default": "0"
|
|
},
|
|
{
|
|
"name": "ref_type",
|
|
"title": "关联类型(world/scene/entity)",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "no"
|
|
},
|
|
{
|
|
"name": "ref_id",
|
|
"title": "基础域对象ID",
|
|
"type": "str",
|
|
"length": 64,
|
|
"nullable": "no"
|
|
},
|
|
{
|
|
"name": "ref_code",
|
|
"title": "基础域对象编码",
|
|
"type": "str",
|
|
"length": 64,
|
|
"nullable": "no",
|
|
"default": ""
|
|
},
|
|
{
|
|
"name": "ref_name",
|
|
"title": "基础域对象名称",
|
|
"type": "str",
|
|
"length": 128,
|
|
"nullable": "no",
|
|
"default": ""
|
|
},
|
|
{
|
|
"name": "blueprint_id",
|
|
"title": "PBL蓝图ID",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "no",
|
|
"default": ""
|
|
},
|
|
{
|
|
"name": "team_id",
|
|
"title": "团队ID",
|
|
"type": "str",
|
|
"length": 64,
|
|
"nullable": "no",
|
|
"default": ""
|
|
},
|
|
{
|
|
"name": "class_id",
|
|
"title": "班级ID",
|
|
"type": "str",
|
|
"length": 64,
|
|
"nullable": "no",
|
|
"default": ""
|
|
},
|
|
{
|
|
"name": "bind_state",
|
|
"title": "绑定状态(bound/unbound)",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "no",
|
|
"default": "bound"
|
|
},
|
|
{
|
|
"name": "bind_at",
|
|
"title": "绑定时间",
|
|
"type": "timestamp",
|
|
"nullable": "no"
|
|
},
|
|
{
|
|
"name": "remark",
|
|
"title": "备注",
|
|
"type": "str",
|
|
"length": 255,
|
|
"nullable": "no",
|
|
"default": ""
|
|
},
|
|
{
|
|
"name": "ext_json",
|
|
"title": "扩展属性JSON(设计§J1权威列名)",
|
|
"type": "text",
|
|
"nullable": "yes"
|
|
},
|
|
{
|
|
"name": "creator_id",
|
|
"title": "创建人ID",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "no",
|
|
"default": ""
|
|
},
|
|
{
|
|
"name": "created_at",
|
|
"title": "创建时间",
|
|
"type": "timestamp",
|
|
"nullable": "no"
|
|
},
|
|
{
|
|
"name": "updater_id",
|
|
"title": "更新人ID",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "no",
|
|
"default": ""
|
|
},
|
|
{
|
|
"name": "updated_at",
|
|
"title": "更新时间",
|
|
"type": "timestamp",
|
|
"nullable": "no"
|
|
},
|
|
{
|
|
"name": "is_deleted",
|
|
"title": "逻辑删除标记(0正常/1已删)",
|
|
"type": "str",
|
|
"length": 1,
|
|
"nullable": "no",
|
|
"default": "0"
|
|
}
|
|
],
|
|
"indexes": [
|
|
{
|
|
"name": "uk_pbl_domain_ref_bind",
|
|
"idxtype": "unique",
|
|
"idxfields": ["tenant_id", "ref_type", "ref_id"]
|
|
},
|
|
{
|
|
"name": "idx_pbl_domain_ref_tenant_type",
|
|
"idxtype": "index",
|
|
"idxfields": ["tenant_id", "ref_type", "is_deleted"]
|
|
},
|
|
{
|
|
"name": "idx_pbl_domain_ref_blueprint",
|
|
"idxtype": "index",
|
|
"idxfields": ["tenant_id", "blueprint_id"]
|
|
},
|
|
{
|
|
"name": "idx_pbl_domain_ref_team",
|
|
"idxtype": "index",
|
|
"idxfields": ["tenant_id", "class_id", "team_id"]
|
|
}
|
|
],
|
|
"codes": [
|
|
{
|
|
"field": "ref_type",
|
|
"table": "appcodes_kv",
|
|
"valuefield": "k",
|
|
"textfield": "v",
|
|
"cond": "parentid='pbl_domain_ref_type'"
|
|
},
|
|
{
|
|
"field": "bind_state",
|
|
"table": "appcodes_kv",
|
|
"valuefield": "k",
|
|
"textfield": "v",
|
|
"cond": "parentid='pbl_bind_state'"
|
|
}
|
|
]
|
|
}
|