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");