34 lines
1.9 KiB
JSON
34 lines
1.9 KiB
JSON
{
|
|
"summary": [
|
|
{
|
|
"name": "sd_test_plans",
|
|
"title": "测试方案表",
|
|
"primary": ["id"],
|
|
"catelog": "entity"
|
|
}
|
|
],
|
|
"fields": [
|
|
{"name": "id", "title": "主键ID", "type": "str", "length": 32, "nullable": "no"},
|
|
{"name": "iteration_id", "title": "迭代ID", "type": "str", "length": 32, "nullable": "no"},
|
|
{"name": "plan_name", "title": "方案名称", "type": "str", "length": 200, "nullable": "no"},
|
|
{"name": "plan_type", "title": "方案类型", "type": "str", "length": 20, "nullable": "no"},
|
|
{"name": "scope", "title": "测试范围", "type": "text"},
|
|
{"name": "environment", "title": "测试环境要求(JSON)", "type": "text"},
|
|
{"name": "entry_criteria", "title": "准入条件", "type": "text"},
|
|
{"name": "exit_criteria", "title": "准出条件", "type": "text"},
|
|
{"name": "status", "title": "方案状态", "type": "str", "length": 20, "nullable": "no", "default": "'draft'"},
|
|
{"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_test_plans_iteration", "idxtype": "index", "idxfields": ["iteration_id"]},
|
|
{"name": "idx_sd_test_plans_status", "idxtype": "index", "idxfields": ["status"]}
|
|
],
|
|
"codes": [
|
|
{"field": "iteration_id", "table": "sd_iterations", "valuefield": "id", "textfield": "iteration_name"},
|
|
{"field": "plan_type", "table": "appcodes_kv", "valuefield": "k", "textfield": "v", "cond": "parentid='sd_test_plan_type'"},
|
|
{"field": "status", "table": "appcodes_kv", "valuefield": "k", "textfield": "v", "cond": "parentid='sd_test_plan_status'"}
|
|
]
|
|
}
|