134 lines
3.0 KiB
JSON
134 lines
3.0 KiB
JSON
{
|
||
"summary": [
|
||
{
|
||
"name": "pbl_playtest_feedback",
|
||
"title": "PBL Playtest 反馈/反思(reflection 走证据链外的轻量表)",
|
||
"primary": [
|
||
"id"
|
||
],
|
||
"catelog": "entity"
|
||
}
|
||
],
|
||
"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": "session_id",
|
||
"title": "会话ID(关联基座 world_session.id,以字符串存储避免跨库类型耦合)",
|
||
"type": "str",
|
||
"length": 64,
|
||
"nullable": "no"
|
||
},
|
||
{
|
||
"name": "user_id",
|
||
"title": "提交用户ID(rbac.user.id)",
|
||
"type": "str",
|
||
"length": 32,
|
||
"nullable": "no"
|
||
},
|
||
{
|
||
"name": "blueprint_id",
|
||
"title": "蓝图ID(pbl_blueprint.id,可空表示未关联蓝图)",
|
||
"type": "str",
|
||
"length": 64,
|
||
"nullable": "yes"
|
||
},
|
||
{
|
||
"name": "feedback_type",
|
||
"title": "反馈类型(feedback=反馈,reflection=反思)",
|
||
"type": "str",
|
||
"length": 64,
|
||
"nullable": "no",
|
||
"default": "feedback"
|
||
},
|
||
{
|
||
"name": "rating",
|
||
"title": "评分(1-5,0=未评分)",
|
||
"type": "int",
|
||
"nullable": "no",
|
||
"default": "0"
|
||
},
|
||
{
|
||
"name": "content_txt",
|
||
"title": "反馈/反思正文",
|
||
"type": "text",
|
||
"nullable": "yes"
|
||
},
|
||
{
|
||
"name": "context_json",
|
||
"title": "上下文快照(JSON 文本,应用层 json_dump 序列化)",
|
||
"type": "text",
|
||
"nullable": "yes"
|
||
},
|
||
{
|
||
"name": "handled",
|
||
"title": "是否已处理(1=已处理,0=待处理)",
|
||
"type": "str",
|
||
"length": 1,
|
||
"nullable": "no",
|
||
"default": "0"
|
||
},
|
||
{
|
||
"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": "idx_pf_session",
|
||
"idxtype": "index",
|
||
"idxfields": [
|
||
"tenant_id",
|
||
"session_id"
|
||
]
|
||
},
|
||
{
|
||
"name": "idx_pf_user_type",
|
||
"idxtype": "index",
|
||
"idxfields": [
|
||
"tenant_id",
|
||
"user_id",
|
||
"feedback_type"
|
||
]
|
||
}
|
||
],
|
||
"codes": [
|
||
{
|
||
"field": "feedback_type",
|
||
"table": "appcodes_kv",
|
||
"valuefield": "k",
|
||
"textfield": "v",
|
||
"cond": "parentid='pbl_feedback_type'"
|
||
},
|
||
{
|
||
"field": "blueprint_id",
|
||
"table": "pbl_blueprint",
|
||
"valuefield": "id",
|
||
"textfield": "title"
|
||
}
|
||
]
|
||
}
|