From f04863fb64c3827fa2fb27b238ff088bc764cec7 Mon Sep 17 00:00:00 2001 From: xiangning Date: Fri, 3 Jul 2026 13:32:18 +0800 Subject: [PATCH] =?UTF-8?q?feat(workflow):=20=E6=B7=BB=E5=8A=A0=E5=B7=A5?= =?UTF-8?q?=E4=BD=9C=E6=B5=81=E5=AE=9E=E4=BE=8B=E9=85=8D=E7=BD=AE=E7=9A=84?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E5=92=8C=E4=BB=A3=E7=A0=81=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加 DefinitionVersion 属性用于存储启动时绑定的流程定义版本号 - 添加 DefinitionCode 属性用于存储启动时快照的流程定义Code - 为新字段添加相应的数据库注释和长度限制 --- .../Persistence/Configurations/WorkflowInstanceConfiguration.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/workflow/Infrastructure/Persistence/Configurations/WorkflowInstanceConfiguration.cs b/src/modules/workflow/Infrastructure/Persistence/Configurations/WorkflowInstanceConfiguration.cs index c55c34f..2ee3de0 100644 --- a/src/modules/workflow/Infrastructure/Persistence/Configurations/WorkflowInstanceConfiguration.cs +++ b/src/modules/workflow/Infrastructure/Persistence/Configurations/WorkflowInstanceConfiguration.cs @@ -16,6 +16,8 @@ public class WorkflowInstanceConfiguration : IEntityTypeConfiguration e.Id); builder.Property(e => e.Id).ValueGeneratedNever().HasComment("主键ID"); builder.Property(e => e.DefinitionId).HasComment("关联的工作流定义ID"); + builder.Property(e => e.DefinitionVersion).HasComment("启动时绑定的流程定义版本号(版本隔离)"); + builder.Property(e => e.DefinitionCode).HasMaxLength(200).HasComment("启动时快照的流程定义Code(审计追溯)"); builder.Property(e => e.Title).HasMaxLength(500).HasComment("流程实例标题"); builder.Property(e => e.Status).HasComment("实例状态(Running/Suspended/Completed/Terminated)"); builder.Property(e => e.Variables).HasColumnType("jsonb").HasComment("流程变量JSON");