35 lines
2.0 KiB
JSON
35 lines
2.0 KiB
JSON
{
|
|
"summary": [
|
|
{
|
|
"name": "sd_iterations",
|
|
"title": "SDLC迭代表",
|
|
"primary": ["id"],
|
|
"catelog": "entity"
|
|
}
|
|
],
|
|
"fields": [
|
|
{"name": "id", "title": "主键ID", "type": "str", "length": 32, "nullable": "no"},
|
|
{"name": "project_id", "title": "项目ID", "type": "str", "length": 32, "nullable": "no"},
|
|
{"name": "iteration_name", "title": "迭代名称", "type": "str", "length": 200, "nullable": "no"},
|
|
{"name": "iteration_type", "title": "迭代类型", "type": "str", "length": 20, "nullable": "no", "default": "'new_feature'"},
|
|
{"name": "scope", "title": "迭代范围(JSON)", "type": "text"},
|
|
{"name": "task_id", "title": "关联Pipeline任务ID", "type": "str", "length": 32},
|
|
{"name": "status", "title": "迭代状态", "type": "str", "length": 20, "nullable": "no", "default": "'planning'"},
|
|
{"name": "priority", "title": "优先级", "type": "int", "nullable": "no", "default": "5"},
|
|
{"name": "started_at", "title": "开始时间", "type": "timestamp"},
|
|
{"name": "completed_at", "title": "完成时间", "type": "timestamp"},
|
|
{"name": "created_by", "title": "创建人", "type": "str", "length": 32},
|
|
{"name": "created_at", "title": "创建时间", "type": "timestamp", "nullable": "no"},
|
|
{"name": "updated_at", "title": "更新时间", "type": "timestamp"}
|
|
],
|
|
"indexes": [
|
|
{"name": "idx_sd_iterations_project", "idxtype": "index", "idxfields": ["project_id"]},
|
|
{"name": "idx_sd_iterations_status", "idxtype": "index", "idxfields": ["status"]}
|
|
],
|
|
"codes": [
|
|
{"field": "project_id", "table": "sd_projects", "valuefield": "id", "textfield": "name"},
|
|
{"field": "iteration_type", "table": "appcodes_kv", "valuefield": "k", "textfield": "v", "cond": "parentid='sd_iteration_type'"},
|
|
{"field": "status", "table": "appcodes_kv", "valuefield": "k", "textfield": "v", "cond": "parentid='sd_iteration_status'"}
|
|
]
|
|
}
|