pbl_blueprint/pbl_blueprint/models/pbl_driving_question.json
2026-09-16 12:49:06 +08:00

197 lines
4.4 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.

{
"summary": "驱动问题子对象(B7)。由真实问题(B6)提炼的可探究开放性问题:问题文本、类型、是否开放、关联问题与关联目标、难度。是 Compiler 生成任务链的起点。",
"primary": [
"id"
],
"fields": {
"id": {
"type": "str",
"size": 32,
"notnull": true,
"default": "",
"editable": true,
"query": false,
"summary": "主键ID(str32,UUID去横线)"
},
"tenant_id": {
"type": "str",
"size": 32,
"notnull": true,
"default": "",
"editable": true,
"query": true,
"summary": "租户ID(首业务字段,所有读写强制打头,缺失即 fail-closed 拒绝)"
},
"blueprint_id": {
"type": "str",
"size": 32,
"notnull": true,
"default": "",
"editable": true,
"query": true,
"summary": "所属蓝图ID(聚合根外键,逻辑关联无物理FK)"
},
"version_no": {
"type": "int",
"notnull": true,
"default": 1,
"editable": true,
"query": true,
"summary": "所属蓝图版本号(子对象随版本快照)"
},
"sort_no": {
"type": "int",
"notnull": true,
"default": 0,
"editable": true,
"query": false,
"summary": "排序号"
},
"question_text": {
"type": "str",
"size": 1000,
"notnull": true,
"default": "",
"editable": true,
"query": true,
"summary": "驱动问题文本"
},
"question_type": {
"type": "str",
"size": 32,
"notnull": true,
"default": "open",
"editable": true,
"query": true,
"summary": "问题类型",
"code": "pbl_question_type"
},
"is_open_ended": {
"type": "int",
"notnull": true,
"default": 1,
"editable": true,
"query": true,
"summary": "是否开放式问题 0否 1是"
},
"linked_problem_id": {
"type": "str",
"size": 32,
"notnull": false,
"default": "",
"editable": true,
"query": true,
"summary": "关联真实问题ID(B6)"
},
"linked_goal_ids": {
"type": "str",
"size": 512,
"notnull": true,
"default": "",
"editable": true,
"query": false,
"summary": "关联学习目标ID列表(逗号分隔,B5)"
},
"difficulty": {
"type": "str",
"size": 32,
"notnull": true,
"default": "medium",
"editable": true,
"query": true,
"summary": "难度",
"code": "pbl_difficulty"
},
"expected_outcome": {
"type": "str",
"size": 2000,
"notnull": true,
"default": "",
"editable": true,
"query": false,
"summary": "预期探究成果"
},
"sub_questions": {
"type": "text",
"notnull": false,
"editable": true,
"query": false,
"summary": "子问题列表JSON(分解探究路径)"
},
"create_user": {
"type": "str",
"size": 32,
"notnull": true,
"default": "",
"editable": false,
"query": false,
"summary": "创建人"
},
"create_time": {
"type": "datetime",
"notnull": false,
"default": null,
"editable": false,
"query": false,
"summary": "创建时间"
},
"update_user": {
"type": "str",
"size": 32,
"notnull": true,
"default": "",
"editable": false,
"query": false,
"summary": "更新人"
},
"update_time": {
"type": "datetime",
"notnull": false,
"default": null,
"editable": false,
"query": false,
"summary": "更新时间"
},
"deleted": {
"type": "int",
"notnull": true,
"default": 0,
"editable": false,
"query": false,
"summary": "逻辑删除标记 0正常 1删除"
}
},
"indexes": [
{
"name": "PRIMARY",
"type": "primary",
"fields": [
"id"
]
},
{
"name": "uk_tenant_bp_sort",
"type": "unique",
"fields": [
"tenant_id",
"blueprint_id",
"version_no",
"sort_no",
"deleted"
]
},
{
"name": "idx_tenant_problem",
"type": "normal",
"fields": [
"tenant_id",
"linked_problem_id"
]
}
],
"codes": [
"pbl_question_type",
"pbl_difficulty"
]
}