pipeline-sdlc/models/sd_features.json

38 lines
2.3 KiB
JSON

{
"summary": [
{
"name": "sd_features",
"title": "功能/需求表",
"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_id", "title": "迭代ID", "type": "str", "length": 32},
{"name": "feature_name", "title": "功能名称", "type": "str", "length": 200, "nullable": "no"},
{"name": "description", "title": "功能描述", "type": "text"},
{"name": "feature_type", "title": "功能类型", "type": "str", "length": 20, "nullable": "no", "default": "'new_feature'"},
{"name": "priority", "title": "优先级", "type": "str", "length": 10, "nullable": "no", "default": "'P2'"},
{"name": "status", "title": "功能状态", "type": "str", "length": 20, "nullable": "no", "default": "'proposed'"},
{"name": "acceptance_criteria", "title": "验收标准", "type": "text"},
{"name": "task_id", "title": "关联Pipeline任务ID", "type": "str", "length": 32},
{"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_features_project", "idxtype": "index", "idxfields": ["project_id"]},
{"name": "idx_sd_features_iteration", "idxtype": "index", "idxfields": ["iteration_id"]},
{"name": "idx_sd_features_status", "idxtype": "index", "idxfields": ["status"]}
],
"codes": [
{"field": "project_id", "table": "sd_projects", "valuefield": "id", "textfield": "name"},
{"field": "iteration_id", "table": "sd_iterations", "valuefield": "id", "textfield": "iteration_name"},
{"field": "feature_type", "table": "appcodes_kv", "valuefield": "k", "textfield": "v", "cond": "parentid='sd_feature_type'"},
{"field": "priority", "table": "appcodes_kv", "valuefield": "k", "textfield": "v", "cond": "parentid='sd_priority'"},
{"field": "status", "table": "appcodes_kv", "valuefield": "k", "textfield": "v", "cond": "parentid='sd_feature_status'"}
]
}