diff --git a/Passingwind.WorkflowApp.sln b/Passingwind.WorkflowApp.sln
index d972fdb3..6093dde0 100644
--- a/Passingwind.WorkflowApp.sln
+++ b/Passingwind.WorkflowApp.sln
@@ -37,8 +37,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Passingwind.WorkflowApp.App
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Passingwind.WorkflowApp.HttpApi", "app\src\Passingwind.WorkflowApp.HttpApi\Passingwind.WorkflowApp.HttpApi.csproj", "{937FD205-032F-44CE-A669-0A64956B08DC}"
EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Passingwind.WorkflowApp.HttpApi.Host", "app\src\Passingwind.WorkflowApp.HttpApi.Host\Passingwind.WorkflowApp.HttpApi.Host.csproj", "{0BB7F750-4CF9-47D4-8192-8A53C1EE6C6E}"
-EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Passingwind.WorkflowApp.Web", "app\src\Passingwind.WorkflowApp.Web\Passingwind.WorkflowApp.Web.csproj", "{B00128BF-E5BA-4FF6-953E-9788C10B1277}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Passingwind.WorkflowApp.DbMigrator", "app\src\Passingwind.WorkflowApp.DbMigrator\Passingwind.WorkflowApp.DbMigrator.csproj", "{18944C79-D798-40C4-9397-47F41B18D2C9}"
@@ -131,10 +129,6 @@ Global
{937FD205-032F-44CE-A669-0A64956B08DC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{937FD205-032F-44CE-A669-0A64956B08DC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{937FD205-032F-44CE-A669-0A64956B08DC}.Release|Any CPU.Build.0 = Release|Any CPU
- {0BB7F750-4CF9-47D4-8192-8A53C1EE6C6E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {0BB7F750-4CF9-47D4-8192-8A53C1EE6C6E}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {0BB7F750-4CF9-47D4-8192-8A53C1EE6C6E}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {0BB7F750-4CF9-47D4-8192-8A53C1EE6C6E}.Release|Any CPU.Build.0 = Release|Any CPU
{B00128BF-E5BA-4FF6-953E-9788C10B1277}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B00128BF-E5BA-4FF6-953E-9788C10B1277}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B00128BF-E5BA-4FF6-953E-9788C10B1277}.Release|Any CPU.ActiveCfg = Release|Any CPU
@@ -203,7 +197,6 @@ Global
{D52AE6C4-96EC-4A02-A6A4-336136061000} = {CA9AC87F-097E-4F15-8393-4BC07735A5B0}
{65B43D4A-4C50-40C7-ACB3-AD9AF67D9649} = {CA9AC87F-097E-4F15-8393-4BC07735A5B0}
{937FD205-032F-44CE-A669-0A64956B08DC} = {CA9AC87F-097E-4F15-8393-4BC07735A5B0}
- {0BB7F750-4CF9-47D4-8192-8A53C1EE6C6E} = {CA9AC87F-097E-4F15-8393-4BC07735A5B0}
{B00128BF-E5BA-4FF6-953E-9788C10B1277} = {CA9AC87F-097E-4F15-8393-4BC07735A5B0}
{18944C79-D798-40C4-9397-47F41B18D2C9} = {CA9AC87F-097E-4F15-8393-4BC07735A5B0}
{781EE124-0BFE-49CA-8953-BD110FB1A88B} = {93A146E1-E830-4943-A5C3-BC464376C979}
diff --git a/app/common.props b/app/common.props
index 103bc8d8..471b828e 100644
--- a/app/common.props
+++ b/app/common.props
@@ -4,7 +4,7 @@
1.0.0
$(NoWarn);CS1591
app
- 8.0.2
+ 8.2.2
2.14.1
diff --git a/app/src/Passingwind.WorkflowApp.DbMigrator/DbMigratorHostedService.cs b/app/src/Passingwind.WorkflowApp.DbMigrator/DbMigratorHostedService.cs
index 6e0d0cd8..e881d95f 100644
--- a/app/src/Passingwind.WorkflowApp.DbMigrator/DbMigratorHostedService.cs
+++ b/app/src/Passingwind.WorkflowApp.DbMigrator/DbMigratorHostedService.cs
@@ -4,7 +4,6 @@
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Passingwind.WorkflowApp.Data;
-using Serilog;
using Volo.Abp;
namespace Passingwind.WorkflowApp.DbMigrator;
@@ -26,7 +25,6 @@ public async Task StartAsync(CancellationToken cancellationToken)
{
options.Services.ReplaceConfiguration(_configuration);
options.UseAutofac();
- options.Services.AddLogging(c => c.AddSerilog());
}))
{
await application.InitializeAsync();
diff --git a/app/src/Passingwind.WorkflowApp.DbMigrator/Passingwind.WorkflowApp.DbMigrator.csproj b/app/src/Passingwind.WorkflowApp.DbMigrator/Passingwind.WorkflowApp.DbMigrator.csproj
index 476b06ac..f0c15024 100644
--- a/app/src/Passingwind.WorkflowApp.DbMigrator/Passingwind.WorkflowApp.DbMigrator.csproj
+++ b/app/src/Passingwind.WorkflowApp.DbMigrator/Passingwind.WorkflowApp.DbMigrator.csproj
@@ -1,31 +1,27 @@
-
+
-
- Exe
- net8.0
-
+
+ Exe
+ net8.0
+
-
-
-
-
-
-
-
+
+
+
-
-
-
-
-
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
diff --git a/app/src/Passingwind.WorkflowApp.DbMigrator/Program.cs b/app/src/Passingwind.WorkflowApp.DbMigrator/Program.cs
index ae21df4a..cd6b964e 100644
--- a/app/src/Passingwind.WorkflowApp.DbMigrator/Program.cs
+++ b/app/src/Passingwind.WorkflowApp.DbMigrator/Program.cs
@@ -1,41 +1,19 @@
-using System.IO;
-using System.Threading.Tasks;
+using System.Threading.Tasks;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
-using Microsoft.Extensions.Logging;
-using Serilog;
-using Serilog.Events;
namespace Passingwind.WorkflowApp.DbMigrator;
-class Program
+internal static class Program
{
- static async Task Main(string[] args)
+ private static async Task Main(string[] args)
{
- Log.Logger = new LoggerConfiguration()
- .MinimumLevel.Information()
- .MinimumLevel.Override("Microsoft", LogEventLevel.Warning)
- .MinimumLevel.Override("Volo.Abp", LogEventLevel.Warning)
-#if DEBUG
- .MinimumLevel.Override("Passingwind.WorkflowApp", LogEventLevel.Debug)
-#else
- .MinimumLevel.Override("Passingwind.WorkflowApp", LogEventLevel.Information)
-#endif
- .Enrich.FromLogContext()
- .WriteTo.Async(c => c.File("Logs/logs.txt"))
- .WriteTo.Async(c => c.Console())
- .CreateLogger();
-
await CreateHostBuilder(args).RunConsoleAsync();
}
public static IHostBuilder CreateHostBuilder(string[] args) =>
Host.CreateDefaultBuilder(args)
.AddAppSettingsSecretsJson()
- .ConfigureLogging((context, logging) => logging.ClearProviders())
- .ConfigureServices((hostContext, services) =>
- {
- services.AddHostedService();
- });
+ .ConfigureServices((_, services) => services.AddHostedService());
}
diff --git a/app/src/Passingwind.WorkflowApp.EntityFrameworkCore/EntityFrameworkCore/WorkflowAppDbContext.cs b/app/src/Passingwind.WorkflowApp.EntityFrameworkCore/EntityFrameworkCore/WorkflowAppDbContext.cs
index 6cb07b03..eb0fa7cf 100644
--- a/app/src/Passingwind.WorkflowApp.EntityFrameworkCore/EntityFrameworkCore/WorkflowAppDbContext.cs
+++ b/app/src/Passingwind.WorkflowApp.EntityFrameworkCore/EntityFrameworkCore/WorkflowAppDbContext.cs
@@ -50,6 +50,7 @@ public class WorkflowAppDbContext :
public DbSet SecurityLogs { get; set; }
public DbSet LinkUsers { get; set; }
public DbSet UserDelegations { get; set; }
+ public DbSet Sessions { get; }
///
/// Tenant Management
@@ -61,6 +62,7 @@ public class WorkflowAppDbContext :
public DbSet ApiKeys { get; set; }
+
public WorkflowAppDbContext(DbContextOptions options)
: base(options)
{
diff --git a/app/src/Passingwind.WorkflowApp.EntityFrameworkCore/Migrations/20240901102645_Update_Abp_822.Designer.cs b/app/src/Passingwind.WorkflowApp.EntityFrameworkCore/Migrations/20240901102645_Update_Abp_822.Designer.cs
new file mode 100644
index 00000000..a53fce2f
--- /dev/null
+++ b/app/src/Passingwind.WorkflowApp.EntityFrameworkCore/Migrations/20240901102645_Update_Abp_822.Designer.cs
@@ -0,0 +1,2938 @@
+//
+using System;
+using Microsoft.EntityFrameworkCore;
+using Microsoft.EntityFrameworkCore.Infrastructure;
+using Microsoft.EntityFrameworkCore.Metadata;
+using Microsoft.EntityFrameworkCore.Migrations;
+using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
+using Passingwind.WorkflowApp.EntityFrameworkCore;
+using Volo.Abp.EntityFrameworkCore;
+
+#nullable disable
+
+namespace Demo.Migrations
+{
+ [DbContext(typeof(WorkflowAppDbContext))]
+ [Migration("20240901102645_Update_Abp_822")]
+ partial class UpdateAbp822
+ {
+ ///
+ protected override void BuildTargetModel(ModelBuilder modelBuilder)
+ {
+#pragma warning disable 612, 618
+ modelBuilder
+ .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer)
+ .HasAnnotation("ProductVersion", "8.0.8")
+ .HasAnnotation("Relational:MaxIdentifierLength", 128);
+
+ SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
+
+ modelBuilder.Entity("Passingwind.Abp.ElsaModule.Common.Activity", b =>
+ {
+ b.Property("WorkflowDefinitionVersionId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("ActivityId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("Attributes")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Description")
+ .HasMaxLength(256)
+ .HasColumnType("nvarchar(256)");
+
+ b.Property("DisplayName")
+ .HasMaxLength(128)
+ .HasColumnType("nvarchar(128)");
+
+ b.Property("LoadWorkflowContext")
+ .HasColumnType("bit");
+
+ b.Property("Name")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("nvarchar(64)");
+
+ b.Property("PersistWorkflow")
+ .HasColumnType("bit");
+
+ b.Property("Properties")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("PropertyStorageProviders")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("SaveWorkflowContext")
+ .HasColumnType("bit");
+
+ b.Property("Type")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("nvarchar(32)");
+
+ b.HasKey("WorkflowDefinitionVersionId", "ActivityId");
+
+ b.ToTable("ElsaActivities", (string)null);
+ });
+
+ modelBuilder.Entity("Passingwind.Abp.ElsaModule.Common.ActivityConnection", b =>
+ {
+ b.Property("WorkflowDefinitionVersionId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("SourceId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("TargetId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("Outcome")
+ .HasMaxLength(64)
+ .HasColumnType("nvarchar(64)");
+
+ b.Property("Attributes")
+ .HasColumnType("nvarchar(max)");
+
+ b.HasKey("WorkflowDefinitionVersionId", "SourceId", "TargetId", "Outcome");
+
+ b.ToTable("ElsaActivityConnections", (string)null);
+ });
+
+ modelBuilder.Entity("Passingwind.Abp.ElsaModule.Common.Bookmark", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("ActivityId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("ActivityType")
+ .HasMaxLength(256)
+ .HasColumnType("nvarchar(256)");
+
+ b.Property("ConcurrencyStamp")
+ .IsConcurrencyToken()
+ .IsRequired()
+ .HasMaxLength(40)
+ .HasColumnType("nvarchar(40)")
+ .HasColumnName("ConcurrencyStamp");
+
+ b.Property("CorrelationId")
+ .HasMaxLength(128)
+ .HasColumnType("nvarchar(128)");
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("CreationTime");
+
+ b.Property("CreatorId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("CreatorId");
+
+ b.Property("ExtraProperties")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)")
+ .HasColumnName("ExtraProperties");
+
+ b.Property("Hash")
+ .HasMaxLength(128)
+ .HasColumnType("nvarchar(128)");
+
+ b.Property("LastModificationTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("LastModificationTime");
+
+ b.Property("LastModifierId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("LastModifierId");
+
+ b.Property("Model")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("ModelType")
+ .HasMaxLength(256)
+ .HasColumnType("nvarchar(256)");
+
+ b.Property("TenantId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("TenantId");
+
+ b.Property("WorkflowInstanceId")
+ .HasColumnType("uniqueidentifier");
+
+ b.HasKey("Id");
+
+ b.ToTable("ElsaBookmarks", (string)null);
+ });
+
+ modelBuilder.Entity("Passingwind.Abp.ElsaModule.Common.GlobalVariable", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("ConcurrencyStamp")
+ .IsConcurrencyToken()
+ .IsRequired()
+ .HasMaxLength(40)
+ .HasColumnType("nvarchar(40)")
+ .HasColumnName("ConcurrencyStamp");
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("CreationTime");
+
+ b.Property("CreatorId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("CreatorId");
+
+ b.Property("DeleterId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("DeleterId");
+
+ b.Property("DeletionTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("DeletionTime");
+
+ b.Property("ExtraProperties")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)")
+ .HasColumnName("ExtraProperties");
+
+ b.Property("IsDeleted")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bit")
+ .HasDefaultValue(false)
+ .HasColumnName("IsDeleted");
+
+ b.Property("IsSecret")
+ .HasColumnType("bit");
+
+ b.Property("Key")
+ .IsRequired()
+ .HasMaxLength(256)
+ .HasColumnType("nvarchar(256)");
+
+ b.Property("LastModificationTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("LastModificationTime");
+
+ b.Property("LastModifierId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("LastModifierId");
+
+ b.Property("TenantId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("TenantId");
+
+ b.Property("Type")
+ .HasColumnType("int");
+
+ b.Property("Value")
+ .HasColumnType("nvarchar(max)");
+
+ b.HasKey("Id");
+
+ b.HasIndex("Key");
+
+ b.ToTable("ElsaGlobalVariables", (string)null);
+ });
+
+ modelBuilder.Entity("Passingwind.Abp.ElsaModule.Common.Trigger", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("ActivityId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("ActivityType")
+ .HasMaxLength(256)
+ .HasColumnType("nvarchar(256)");
+
+ b.Property("ConcurrencyStamp")
+ .IsConcurrencyToken()
+ .IsRequired()
+ .HasMaxLength(40)
+ .HasColumnType("nvarchar(40)")
+ .HasColumnName("ConcurrencyStamp");
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("CreationTime");
+
+ b.Property("CreatorId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("CreatorId");
+
+ b.Property("ExtraProperties")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)")
+ .HasColumnName("ExtraProperties");
+
+ b.Property("Hash")
+ .HasMaxLength(128)
+ .HasColumnType("nvarchar(128)");
+
+ b.Property("LastModificationTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("LastModificationTime");
+
+ b.Property("LastModifierId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("LastModifierId");
+
+ b.Property("Model")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("ModelType")
+ .HasMaxLength(256)
+ .HasColumnType("nvarchar(256)");
+
+ b.Property("TenantId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("TenantId");
+
+ b.Property("WorkflowDefinitionId")
+ .HasColumnType("uniqueidentifier");
+
+ b.HasKey("Id");
+
+ b.ToTable("ElsaTriggers", (string)null);
+ });
+
+ modelBuilder.Entity("Passingwind.Abp.ElsaModule.Common.WorkflowDefinition", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("Channel")
+ .HasMaxLength(64)
+ .HasColumnType("nvarchar(64)");
+
+ b.Property("ConcurrencyStamp")
+ .IsConcurrencyToken()
+ .IsRequired()
+ .HasMaxLength(40)
+ .HasColumnType("nvarchar(40)")
+ .HasColumnName("ConcurrencyStamp");
+
+ b.Property("ContextOptions")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("CreationTime");
+
+ b.Property("CreatorId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("CreatorId");
+
+ b.Property("CustomAttributes")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("DeleteCompletedInstances")
+ .HasColumnType("bit");
+
+ b.Property("DeleterId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("DeleterId");
+
+ b.Property("DeletionTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("DeletionTime");
+
+ b.Property("Description")
+ .HasMaxLength(256)
+ .HasColumnType("nvarchar(256)");
+
+ b.Property("DisplayName")
+ .HasMaxLength(128)
+ .HasColumnType("nvarchar(128)");
+
+ b.Property("ExtraProperties")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)")
+ .HasColumnName("ExtraProperties");
+
+ b.Property("GroupId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("GroupName")
+ .HasMaxLength(64)
+ .HasColumnType("nvarchar(64)");
+
+ b.Property("IsDeleted")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bit")
+ .HasDefaultValue(false)
+ .HasColumnName("IsDeleted");
+
+ b.Property("IsSingleton")
+ .HasColumnType("bit");
+
+ b.Property("LastModificationTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("LastModificationTime");
+
+ b.Property("LastModifierId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("LastModifierId");
+
+ b.Property("LatestVersion")
+ .HasColumnType("int");
+
+ b.Property("Name")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("nvarchar(64)");
+
+ b.Property("PersistenceBehavior")
+ .HasColumnType("int");
+
+ b.Property("PublishedVersion")
+ .HasColumnType("int");
+
+ b.Property("Tag")
+ .HasMaxLength(64)
+ .HasColumnType("nvarchar(64)");
+
+ b.Property("TenantId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("TenantId");
+
+ b.Property("Variables")
+ .HasColumnType("nvarchar(max)");
+
+ b.HasKey("Id");
+
+ b.HasIndex("Name");
+
+ b.ToTable("ElsaWorkflowDefinitions", (string)null);
+ });
+
+ modelBuilder.Entity("Passingwind.Abp.ElsaModule.Common.WorkflowDefinitionVersion", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("ConcurrencyStamp")
+ .IsConcurrencyToken()
+ .IsRequired()
+ .HasMaxLength(40)
+ .HasColumnType("nvarchar(40)")
+ .HasColumnName("ConcurrencyStamp");
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("CreationTime");
+
+ b.Property("CreatorId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("CreatorId");
+
+ b.Property("DefinitionId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("DeleterId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("DeleterId");
+
+ b.Property("DeletionTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("DeletionTime");
+
+ b.Property("ExtraProperties")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)")
+ .HasColumnName("ExtraProperties");
+
+ b.Property("IsDeleted")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bit")
+ .HasDefaultValue(false)
+ .HasColumnName("IsDeleted");
+
+ b.Property("IsLatest")
+ .HasColumnType("bit");
+
+ b.Property("IsPublished")
+ .HasColumnType("bit");
+
+ b.Property("LastModificationTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("LastModificationTime");
+
+ b.Property("LastModifierId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("LastModifierId");
+
+ b.Property("TenantId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("TenantId");
+
+ b.Property("Version")
+ .HasColumnType("int");
+
+ b.HasKey("Id");
+
+ b.HasIndex("DefinitionId", "Version");
+
+ b.ToTable("ElsaWorkflowDefinitionVersions", (string)null);
+ });
+
+ modelBuilder.Entity("Passingwind.Abp.ElsaModule.Common.WorkflowExecutionLog", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("ActivityId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("ActivityType")
+ .HasMaxLength(256)
+ .HasColumnType("nvarchar(256)");
+
+ b.Property("ConcurrencyStamp")
+ .IsConcurrencyToken()
+ .IsRequired()
+ .HasMaxLength(40)
+ .HasColumnType("nvarchar(40)")
+ .HasColumnName("ConcurrencyStamp");
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("CreationTime");
+
+ b.Property("CreatorId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("CreatorId");
+
+ b.Property("Data")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("EventName")
+ .HasMaxLength(128)
+ .HasColumnType("nvarchar(128)");
+
+ b.Property("ExtraProperties")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)")
+ .HasColumnName("ExtraProperties");
+
+ b.Property("Message")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Source")
+ .HasMaxLength(128)
+ .HasColumnType("nvarchar(128)");
+
+ b.Property("TenantId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("TenantId");
+
+ b.Property("Timestamp")
+ .HasColumnType("datetime2");
+
+ b.Property("WorkflowInstanceId")
+ .HasColumnType("uniqueidentifier");
+
+ b.HasKey("Id");
+
+ b.HasIndex("WorkflowInstanceId");
+
+ b.ToTable("ElsaWorkflowExecutionLogs", (string)null);
+ });
+
+ modelBuilder.Entity("Passingwind.Abp.ElsaModule.Common.WorkflowInstance", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("CancelledTime")
+ .HasColumnType("datetime2");
+
+ b.Property("ConcurrencyStamp")
+ .IsConcurrencyToken()
+ .IsRequired()
+ .HasMaxLength(40)
+ .HasColumnType("nvarchar(40)")
+ .HasColumnName("ConcurrencyStamp");
+
+ b.Property("ContextId")
+ .HasMaxLength(128)
+ .HasColumnType("nvarchar(128)");
+
+ b.Property("ContextType")
+ .HasMaxLength(128)
+ .HasColumnType("nvarchar(128)");
+
+ b.Property("CorrelationId")
+ .HasMaxLength(128)
+ .HasColumnType("nvarchar(128)");
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("CreationTime");
+
+ b.Property("CreatorId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("CreatorId");
+
+ b.Property("CurrentActivity")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("DeleterId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("DeleterId");
+
+ b.Property("DeletionTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("DeletionTime");
+
+ b.Property("ExtraProperties")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)")
+ .HasColumnName("ExtraProperties");
+
+ b.Property("Fault")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("FaultedTime")
+ .HasColumnType("datetime2");
+
+ b.Property("FinishedDuration")
+ .HasColumnType("time");
+
+ b.Property("FinishedTime")
+ .HasColumnType("datetime2");
+
+ b.Property("GroupId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("Input")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("IsDeleted")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bit")
+ .HasDefaultValue(false)
+ .HasColumnName("IsDeleted");
+
+ b.Property("LastExecutedActivityId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("LastExecutedTime")
+ .HasColumnType("datetime2");
+
+ b.Property("LastModificationTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("LastModificationTime");
+
+ b.Property("LastModifierId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("LastModifierId");
+
+ b.Property("Name")
+ .IsRequired()
+ .HasMaxLength(128)
+ .HasColumnType("nvarchar(128)");
+
+ b.Property("Output")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("TenantId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("TenantId");
+
+ b.Property("Version")
+ .HasColumnType("int");
+
+ b.Property("WorkflowDefinitionId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("WorkflowDefinitionVersionId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("WorkflowStatus")
+ .HasColumnType("int");
+
+ b.HasKey("Id");
+
+ b.HasIndex("Name");
+
+ b.HasIndex("WorkflowDefinitionId");
+
+ b.HasIndex("WorkflowStatus");
+
+ b.HasIndex("WorkflowDefinitionId", "WorkflowDefinitionVersionId");
+
+ b.ToTable("ElsaWorkflowInstances", (string)null);
+ });
+
+ modelBuilder.Entity("Passingwind.Abp.ElsaModule.Common.WorkflowInstanceActivityData", b =>
+ {
+ b.Property("WorkflowInstanceId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("ActivityId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("Data")
+ .HasColumnType("nvarchar(max)");
+
+ b.HasKey("WorkflowInstanceId", "ActivityId");
+
+ b.ToTable("ElsaWorkflowInstanceActivityData", (string)null);
+ });
+
+ modelBuilder.Entity("Passingwind.Abp.ElsaModule.Common.WorkflowInstanceActivityScope", b =>
+ {
+ b.Property("WorkflowInstanceId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("ActivityId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("Variables")
+ .HasColumnType("nvarchar(max)");
+
+ b.HasKey("WorkflowInstanceId", "ActivityId");
+
+ b.ToTable("ElsaWorkflowInstanceScopes", (string)null);
+ });
+
+ modelBuilder.Entity("Passingwind.Abp.ElsaModule.Common.WorkflowInstanceBlockingActivity", b =>
+ {
+ b.Property("WorkflowInstanceId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("ActivityId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("ActivityType")
+ .IsRequired()
+ .HasMaxLength(256)
+ .HasColumnType("nvarchar(256)");
+
+ b.Property("Tag")
+ .HasColumnType("nvarchar(max)");
+
+ b.HasKey("WorkflowInstanceId", "ActivityId");
+
+ b.ToTable("ElsaWorkflowInstanceBlockingActivities", (string)null);
+ });
+
+ modelBuilder.Entity("Passingwind.Abp.ElsaModule.Common.WorkflowInstanceFault", b =>
+ {
+ b.Property("Id")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("WorkflowInstanceId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("ActivityInput")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("CreationTime");
+
+ b.Property("CreatorId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("CreatorId");
+
+ b.Property("Exception")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("FaultedActivityId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("Message")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Resuming")
+ .HasColumnType("bit");
+
+ b.HasKey("Id", "WorkflowInstanceId");
+
+ b.HasIndex("WorkflowInstanceId");
+
+ b.ToTable("ElsaWorkflowInstanceFaults", (string)null);
+ });
+
+ modelBuilder.Entity("Passingwind.Abp.ElsaModule.Common.WorkflowInstanceMetadata", b =>
+ {
+ b.Property("WorkflowInstanceId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("Key")
+ .HasMaxLength(256)
+ .HasColumnType("nvarchar(256)");
+
+ b.Property("Value")
+ .HasColumnType("nvarchar(max)");
+
+ b.HasKey("WorkflowInstanceId", "Key");
+
+ b.ToTable("ElsaWorkflowInstanceMetadata", (string)null);
+ });
+
+ modelBuilder.Entity("Passingwind.Abp.ElsaModule.Common.WorkflowInstanceScheduledActivity", b =>
+ {
+ b.Property("WorkflowInstanceId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("ActivityId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("Input")
+ .HasColumnType("nvarchar(max)");
+
+ b.HasKey("WorkflowInstanceId", "ActivityId");
+
+ b.ToTable("ElsaWorkflowInstanceScheduledActivities", (string)null);
+ });
+
+ modelBuilder.Entity("Passingwind.Abp.ElsaModule.Common.WorkflowInstanceVariable", b =>
+ {
+ b.Property("WorkflowInstanceId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("Key")
+ .HasMaxLength(256)
+ .HasColumnType("nvarchar(256)");
+
+ b.Property("Value")
+ .HasColumnType("nvarchar(max)");
+
+ b.HasKey("WorkflowInstanceId", "Key");
+
+ b.HasIndex("Key");
+
+ b.ToTable("ElsaWorkflowInstanceVariables", (string)null);
+ });
+
+ modelBuilder.Entity("Passingwind.Abp.ElsaModule.GlobalCodes.GlobalCode", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("ConcurrencyStamp")
+ .IsConcurrencyToken()
+ .IsRequired()
+ .HasMaxLength(40)
+ .HasColumnType("nvarchar(40)")
+ .HasColumnName("ConcurrencyStamp");
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("CreationTime");
+
+ b.Property("CreatorId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("CreatorId");
+
+ b.Property("DeleterId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("DeleterId");
+
+ b.Property("DeletionTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("DeletionTime");
+
+ b.Property("Description")
+ .HasMaxLength(256)
+ .HasColumnType("nvarchar(256)");
+
+ b.Property("ExtraProperties")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)")
+ .HasColumnName("ExtraProperties");
+
+ b.Property("IsDeleted")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bit")
+ .HasDefaultValue(false)
+ .HasColumnName("IsDeleted");
+
+ b.Property("Language")
+ .HasColumnType("int");
+
+ b.Property("LastModificationTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("LastModificationTime");
+
+ b.Property("LastModifierId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("LastModifierId");
+
+ b.Property("LatestVersion")
+ .HasColumnType("int");
+
+ b.Property("Name")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("nvarchar(64)");
+
+ b.Property("PublishedVersion")
+ .HasColumnType("int");
+
+ b.Property("TenantId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("TenantId");
+
+ b.Property("Type")
+ .HasColumnType("int");
+
+ b.HasKey("Id");
+
+ b.ToTable("ElsaGlobalCodes", (string)null);
+ });
+
+ modelBuilder.Entity("Passingwind.Abp.ElsaModule.GlobalCodes.GlobalCodeContent", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("Content")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("GlobalCodeId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("TenantId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("TenantId");
+
+ b.Property("Version")
+ .HasColumnType("int");
+
+ b.HasKey("Id");
+
+ b.ToTable("ElsaGlobalCodeContents", (string)null);
+ });
+
+ modelBuilder.Entity("Passingwind.Abp.ElsaModule.GlobalCodes.GlobalCodeVersion", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("ConcurrencyStamp")
+ .IsConcurrencyToken()
+ .IsRequired()
+ .HasMaxLength(40)
+ .HasColumnType("nvarchar(40)")
+ .HasColumnName("ConcurrencyStamp");
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("CreationTime");
+
+ b.Property("CreatorId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("CreatorId");
+
+ b.Property("ExtraProperties")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)")
+ .HasColumnName("ExtraProperties");
+
+ b.Property("GlobalCodeId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("LastModificationTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("LastModificationTime");
+
+ b.Property("LastModifierId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("LastModifierId");
+
+ b.Property("TenantId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("TenantId");
+
+ b.Property("Version")
+ .HasColumnType("int");
+
+ b.HasKey("Id");
+
+ b.ToTable("ElsaGlobalCodeVersions", (string)null);
+ });
+
+ modelBuilder.Entity("Passingwind.Abp.ElsaModule.Groups.WorkflowGroup", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("ConcurrencyStamp")
+ .IsConcurrencyToken()
+ .IsRequired()
+ .HasMaxLength(40)
+ .HasColumnType("nvarchar(40)")
+ .HasColumnName("ConcurrencyStamp");
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("CreationTime");
+
+ b.Property("CreatorId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("CreatorId");
+
+ b.Property("DeleterId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("DeleterId");
+
+ b.Property("DeletionTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("DeletionTime");
+
+ b.Property("Description")
+ .HasMaxLength(256)
+ .HasColumnType("nvarchar(256)");
+
+ b.Property("ExtraProperties")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)")
+ .HasColumnName("ExtraProperties");
+
+ b.Property("IsDeleted")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bit")
+ .HasDefaultValue(false)
+ .HasColumnName("IsDeleted");
+
+ b.Property("LastModificationTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("LastModificationTime");
+
+ b.Property("LastModifierId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("LastModifierId");
+
+ b.Property("Name")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("nvarchar(64)");
+
+ b.Property("TenantId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("TenantId");
+
+ b.HasKey("Id");
+
+ b.ToTable("ElsaWorkflowGroups", (string)null);
+ });
+
+ modelBuilder.Entity("Passingwind.Abp.ElsaModule.Teams.WorkflowTeam", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("ConcurrencyStamp")
+ .IsConcurrencyToken()
+ .IsRequired()
+ .HasMaxLength(40)
+ .HasColumnType("nvarchar(40)")
+ .HasColumnName("ConcurrencyStamp");
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("CreationTime");
+
+ b.Property("CreatorId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("CreatorId");
+
+ b.Property("DeleterId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("DeleterId");
+
+ b.Property("DeletionTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("DeletionTime");
+
+ b.Property("Description")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("ExtraProperties")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)")
+ .HasColumnName("ExtraProperties");
+
+ b.Property("IsDeleted")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bit")
+ .HasDefaultValue(false)
+ .HasColumnName("IsDeleted");
+
+ b.Property("LastModificationTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("LastModificationTime");
+
+ b.Property("LastModifierId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("LastModifierId");
+
+ b.Property("Name")
+ .IsRequired()
+ .HasMaxLength(128)
+ .HasColumnType("nvarchar(128)");
+
+ b.Property("TenantId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("TenantId");
+
+ b.HasKey("Id");
+
+ b.HasIndex("Name");
+
+ b.ToTable("ElsaWorkflowTeams", (string)null);
+ });
+
+ modelBuilder.Entity("Passingwind.Abp.ElsaModule.Teams.WorkflowTeamRoleScope", b =>
+ {
+ b.Property("WorkflowTeamId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("RoleName")
+ .HasMaxLength(256)
+ .HasColumnType("nvarchar(256)");
+
+ b.Property("Values")
+ .HasColumnType("nvarchar(max)");
+
+ b.HasKey("WorkflowTeamId", "RoleName");
+
+ b.ToTable("ElsaWorkflowTeamRoleScopes", (string)null);
+ });
+
+ modelBuilder.Entity("Passingwind.Abp.ElsaModule.Teams.WorkflowTeamUser", b =>
+ {
+ b.Property("WorkflowTeamId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("UserId")
+ .HasColumnType("uniqueidentifier");
+
+ b.HasKey("WorkflowTeamId", "UserId");
+
+ b.ToTable("ElsaWorkflowTeamUsers", (string)null);
+ });
+
+ modelBuilder.Entity("Passingwind.WorkflowApp.ApiKeys.ApiKey", b =>
+ {
+ b.Property("Id")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("ConcurrencyStamp")
+ .IsConcurrencyToken()
+ .IsRequired()
+ .HasMaxLength(40)
+ .HasColumnType("nvarchar(40)")
+ .HasColumnName("ConcurrencyStamp");
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("CreationTime");
+
+ b.Property("CreatorId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("CreatorId");
+
+ b.Property("DeleterId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("DeleterId");
+
+ b.Property("DeletionTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("DeletionTime");
+
+ b.Property("ExpirationTime")
+ .HasColumnType("datetime2");
+
+ b.Property("ExtraProperties")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)")
+ .HasColumnName("ExtraProperties");
+
+ b.Property