pbl_evidence/models/pbl_artifact.json

145 lines
2.6 KiB
JSON
Raw Permalink 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": [
{
"name": "pbl_artifact",
"comment": "学生产出物(版本内联 version_no",
"module": "pbl_evidence",
"engine": "mariadb",
"charset": "utf8mb4",
"tenant_scoped": true
}
],
"fields": [
{
"name": "tenant_id",
"comment": "租户ID(强制打头)",
"null": false,
"type": "str",
"length": 32
},
{
"name": "id",
"comment": "主键",
"null": false,
"type": "int",
"length": 20,
"unsigned": true,
"auto_increment": true
},
{
"name": "artifact_uid",
"comment": "产出UID",
"null": false,
"type": "str",
"length": 32
},
{
"name": "session_id",
"comment": "会话",
"null": false,
"type": "bigint"
},
{
"name": "blueprint_id",
"comment": "蓝图",
"null": false,
"type": "bigint"
},
{
"name": "team_id",
"comment": "团队",
"null": false,
"type": "bigint"
},
{
"name": "creator_id",
"comment": "作者",
"null": false,
"type": "str",
"length": 32
},
{
"name": "title",
"comment": "标题",
"null": false,
"type": "str",
"length": 128
},
{
"name": "artifact_type",
"comment": "类型",
"null": false,
"type": "str",
"length": 64
},
{
"name": "content_json",
"comment": "内容",
"null": true,
"type": "json"
},
{
"name": "version_no",
"comment": "版本",
"null": false,
"type": "int"
},
{
"name": "status",
"comment": "状态",
"null": false,
"type": "str",
"length": 64
},
{
"name": "submitted_at",
"comment": "提交时间",
"null": true,
"type": "datetime"
},
{
"name": "created_at",
"comment": "创建时间",
"null": false,
"type": "datetime"
},
{
"name": "updated_at",
"comment": "更新时间",
"null": false,
"type": "datetime"
}
],
"indexes": [
{
"name": "uk_art_uid",
"unique": true,
"fields": [
"tenant_id",
"artifact_uid"
]
},
{
"name": "idx_art_session",
"unique": false,
"fields": [
"tenant_id",
"session_id"
]
},
{
"name": "PRIMARY",
"unique": true,
"fields": [
"id"
]
}
],
"codes": [
{
"field": "artifact_type",
"appcode": "pbl_artifact_type"
}
]
}