From b13b060e107118352b529f4eda5a4ddcc557238e Mon Sep 17 00:00:00 2001 From: ymq Date: Wed, 9 Sep 2026 19:15:19 +0800 Subject: [PATCH] =?UTF-8?q?fix(models):=20sd=5Fprojects=E8=A1=A5directory?= =?UTF-8?q?=5Fname/default=5Fmodel=E5=88=97=E5=AE=9A=E4=B9=89=E2=80=94?= =?UTF-8?q?=E2=80=94=E4=B8=A4=E5=88=97=E5=8F=AA=E5=AD=98=E5=9C=A8=E4=BA=8E?= =?UTF-8?q?m0001=E6=89=8B=E5=B7=A5=E8=BF=81=E7=A7=BBmodels=E4=BB=8E?= =?UTF-8?q?=E6=9C=AA=E5=AE=9A=E4=B9=89,=E6=96=B0=E6=9C=BAcreate=5Ftables?= =?UTF-8?q?=E6=8C=89models=E5=BB=BA=E8=A1=A8=E7=BC=BA=E5=88=97,workspace.p?= =?UTF-8?q?y=E8=A3=B8=E6=9F=A5directory=5Fname=E5=BF=85=E5=B4=A9Unknown=20?= =?UTF-8?q?column(=E9=83=A8=E7=BD=B2=E7=82=B8=E5=BC=B9);project=5Ftype?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E5=80=BC=E5=8E=BBSDLC=E8=AF=AD=E4=B9=89web?= =?UTF-8?q?=5Fapp=E2=86=92general(sd=5Fprojects=E6=98=AF=E5=85=A8=E4=BA=A7?= =?UTF-8?q?=E7=BA=BF=E5=85=B1=E7=94=A8=E9=A1=B9=E7=9B=AE=E5=AE=B9=E5=99=A8?= =?UTF-8?q?,=E5=95=86=E6=9C=BA/=E6=8A=95=E6=A0=87=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E8=A2=AB=E9=94=99=E6=A0=87Web=E5=BA=94=E7=94=A8);=E7=A0=81?= =?UTF-8?q?=E8=A1=A8=E8=A1=A5general/bidding=E4=B8=A4=E9=A1=B9(bidding?= =?UTF-8?q?=E5=B7=B2=E5=9C=A8=E6=95=B0=E6=8D=AE=E4=B8=AD=E5=8D=B4=E7=BF=BB?= =?UTF-8?q?=E8=AF=91=E4=B8=8D=E5=87=BA)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- init/data.json | 2 ++ models/sd_projects.json | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/init/data.json b/init/data.json index 090c238..c72fca1 100644 --- a/init/data.json +++ b/init/data.json @@ -8,6 +8,8 @@ {"k": "archived", "v": "已归档"} ]}, {"parentid": "sd_project_type", "parentname": "项目类型", "items": [ + {"k": "general", "v": "通用项目"}, + {"k": "bidding", "v": "投标项目"}, {"k": "web_app", "v": "Web应用"}, {"k": "api_service", "v": "API服务"}, {"k": "module", "v": "Sage模块"}, diff --git a/models/sd_projects.json b/models/sd_projects.json index 431101e..41d0bb1 100644 --- a/models/sd_projects.json +++ b/models/sd_projects.json @@ -11,10 +11,12 @@ {"name": "id", "title": "主键ID", "type": "str", "length": 32, "nullable": "no"}, {"name": "name", "title": "项目名称", "type": "str", "length": 200, "nullable": "no"}, {"name": "description", "title": "项目描述", "type": "text"}, - {"name": "project_type", "title": "项目类型", "type": "str", "length": 50, "nullable": "no", "default": "'web_app'"}, + {"name": "project_type", "title": "项目类型", "type": "str", "length": 50, "nullable": "no", "default": "'general'"}, {"name": "tech_stack", "title": "技术栈配置(JSON)", "type": "text"}, {"name": "repo_url", "title": "主仓库地址", "type": "str", "length": 500}, + {"name": "directory_name", "title": "项目目录名(创建时定死,工作空间解析只读此字段)", "type": "str", "length": 200}, {"name": "workspace_dir", "title": "项目工作目录", "type": "str", "length": 500}, + {"name": "default_model", "title": "项目默认模型(llm_model.name,空=走治理链缺省)", "type": "str", "length": 128}, {"name": "pipeline_id", "title": "关联Pipeline定义ID", "type": "str", "length": 32, "default": "'sdlc_general'"}, {"name": "status", "title": "项目状态", "type": "str", "length": 20, "nullable": "no", "default": "'draft'"}, {"name": "org_id", "title": "组织ID", "type": "str", "length": 32, "nullable": "no", "default": "'0'"},