< Summary

Information
Class: Elsa.Persistence.EFCore.PostgreSql.Migrations.Management.ManagementElsaDbContextModelSnapshot
Assembly: Elsa.Persistence.EFCore.PostgreSql
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Persistence.EFCore.PostgreSql/Migrations/Management/ManagementElsaDbContextModelSnapshot.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 208
Coverable lines: 208
Total lines: 232
Line coverage: 0%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
BuildModel(...)100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Persistence.EFCore.PostgreSql/Migrations/Management/ManagementElsaDbContextModelSnapshot.cs

#LineLine coverage
 1// <auto-generated />
 2using System;
 3using Elsa.Persistence.EFCore.Modules.Management;
 4using Microsoft.EntityFrameworkCore;
 5using Microsoft.EntityFrameworkCore.Infrastructure;
 6using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
 7using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
 8
 9#nullable disable
 10
 11namespace Elsa.Persistence.EFCore.PostgreSql.Migrations.Management
 12{
 13    [DbContext(typeof(ManagementElsaDbContext))]
 14    partial class ManagementElsaDbContextModelSnapshot : ModelSnapshot
 15    {
 16        protected override void BuildModel(ModelBuilder modelBuilder)
 17        {
 18#pragma warning disable 612, 618
 019            modelBuilder
 020                .HasDefaultSchema("Elsa")
 021                .HasAnnotation("ProductVersion", "9.0.10")
 022                .HasAnnotation("Relational:MaxIdentifierLength", 63);
 23
 024            NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
 25
 026            modelBuilder.Entity("Elsa.Workflows.Management.Entities.WorkflowDefinition", b =>
 027                {
 028                    b.Property<string>("Id")
 029                        .HasColumnType("text");
 030
 031                    b.Property<byte[]>("BinaryData")
 032                        .HasColumnType("bytea");
 033
 034                    b.Property<DateTimeOffset>("CreatedAt")
 035                        .HasColumnType("timestamp with time zone");
 036
 037                    b.Property<string>("Data")
 038                        .HasColumnType("text");
 039
 040                    b.Property<string>("DefinitionId")
 041                        .IsRequired()
 042                        .HasColumnType("text");
 043
 044                    b.Property<string>("Description")
 045                        .HasColumnType("text");
 046
 047                    b.Property<bool>("IsLatest")
 048                        .HasColumnType("boolean");
 049
 050                    b.Property<bool>("IsPublished")
 051                        .HasColumnType("boolean");
 052
 053                    b.Property<bool>("IsReadonly")
 054                        .HasColumnType("boolean");
 055
 056                    b.Property<bool>("IsSystem")
 057                        .HasColumnType("boolean");
 058
 059                    b.Property<string>("MaterializerContext")
 060                        .HasColumnType("text");
 061
 062                    b.Property<string>("MaterializerName")
 063                        .IsRequired()
 064                        .HasColumnType("text");
 065
 066                    b.Property<string>("Name")
 067                        .HasColumnType("text");
 068
 069                    b.Property<string>("OriginalSource")
 070                        .HasColumnType("text");
 071
 072                    b.Property<string>("ProviderName")
 073                        .HasColumnType("text");
 074
 075                    b.Property<string>("StringData")
 076                        .HasColumnType("jsonb");
 077
 078                    b.Property<string>("TenantId")
 079                        .HasColumnType("text");
 080
 081                    b.Property<string>("ToolVersion")
 082                        .HasColumnType("text");
 083
 084                    b.Property<bool?>("UsableAsActivity")
 085                        .HasColumnType("boolean");
 086
 087                    b.Property<int>("Version")
 088                        .HasColumnType("integer");
 089
 090                    b.HasKey("Id");
 091
 092                    b.HasIndex("IsLatest")
 093                        .HasDatabaseName("IX_WorkflowDefinition_IsLatest");
 094
 095                    b.HasIndex("IsPublished")
 096                        .HasDatabaseName("IX_WorkflowDefinition_IsPublished");
 097
 098                    b.HasIndex("IsSystem")
 099                        .HasDatabaseName("IX_WorkflowDefinition_IsSystem");
 0100
 0101                    b.HasIndex("Name")
 0102                        .HasDatabaseName("IX_WorkflowDefinition_Name");
 0103
 0104                    b.HasIndex("TenantId")
 0105                        .HasDatabaseName("IX_WorkflowDefinition_TenantId");
 0106
 0107                    b.HasIndex("UsableAsActivity")
 0108                        .HasDatabaseName("IX_WorkflowDefinition_UsableAsActivity");
 0109
 0110                    b.HasIndex("Version")
 0111                        .HasDatabaseName("IX_WorkflowDefinition_Version");
 0112
 0113                    b.HasIndex("DefinitionId", "Version")
 0114                        .IsUnique()
 0115                        .HasDatabaseName("IX_WorkflowDefinition_DefinitionId_Version");
 0116
 0117                    b.ToTable("WorkflowDefinitions", "Elsa");
 0118                });
 119
 0120            modelBuilder.Entity("Elsa.Workflows.Management.Entities.WorkflowInstance", b =>
 0121                {
 0122                    b.Property<string>("Id")
 0123                        .HasColumnType("text");
 0124
 0125                    b.Property<string>("CorrelationId")
 0126                        .HasColumnType("text");
 0127
 0128                    b.Property<DateTimeOffset>("CreatedAt")
 0129                        .HasColumnType("timestamp with time zone");
 0130
 0131                    b.Property<string>("Data")
 0132                        .HasColumnType("text");
 0133
 0134                    b.Property<string>("DataCompressionAlgorithm")
 0135                        .HasColumnType("text");
 0136
 0137                    b.Property<string>("DefinitionId")
 0138                        .IsRequired()
 0139                        .HasColumnType("text");
 0140
 0141                    b.Property<string>("DefinitionVersionId")
 0142                        .IsRequired()
 0143                        .HasColumnType("text");
 0144
 0145                    b.Property<DateTimeOffset?>("FinishedAt")
 0146                        .HasColumnType("timestamp with time zone");
 0147
 0148                    b.Property<int>("IncidentCount")
 0149                        .HasColumnType("integer");
 0150
 0151                    b.Property<bool>("IsExecuting")
 0152                        .HasColumnType("boolean");
 0153
 0154                    b.Property<bool>("IsSystem")
 0155                        .HasColumnType("boolean");
 0156
 0157                    b.Property<string>("Name")
 0158                        .HasColumnType("text");
 0159
 0160                    b.Property<string>("ParentWorkflowInstanceId")
 0161                        .HasColumnType("text");
 0162
 0163                    b.Property<string>("Status")
 0164                        .IsRequired()
 0165                        .HasColumnType("text");
 0166
 0167                    b.Property<string>("SubStatus")
 0168                        .IsRequired()
 0169                        .HasColumnType("text");
 0170
 0171                    b.Property<string>("TenantId")
 0172                        .HasColumnType("text");
 0173
 0174                    b.Property<DateTimeOffset>("UpdatedAt")
 0175                        .HasColumnType("timestamp with time zone");
 0176
 0177                    b.Property<int>("Version")
 0178                        .HasColumnType("integer");
 0179
 0180                    b.HasKey("Id");
 0181
 0182                    b.HasIndex("CorrelationId")
 0183                        .HasDatabaseName("IX_WorkflowInstance_CorrelationId");
 0184
 0185                    b.HasIndex("CreatedAt")
 0186                        .HasDatabaseName("IX_WorkflowInstance_CreatedAt");
 0187
 0188                    b.HasIndex("DefinitionId")
 0189                        .HasDatabaseName("IX_WorkflowInstance_DefinitionId");
 0190
 0191                    b.HasIndex("FinishedAt")
 0192                        .HasDatabaseName("IX_WorkflowInstance_FinishedAt");
 0193
 0194                    b.HasIndex("IsExecuting")
 0195                        .HasDatabaseName("IX_WorkflowInstance_IsExecuting");
 0196
 0197                    b.HasIndex("IsSystem")
 0198                        .HasDatabaseName("IX_WorkflowInstance_IsSystem");
 0199
 0200                    b.HasIndex("Name")
 0201                        .HasDatabaseName("IX_WorkflowInstance_Name");
 0202
 0203                    b.HasIndex("Status")
 0204                        .HasDatabaseName("IX_WorkflowInstance_Status");
 0205
 0206                    b.HasIndex("SubStatus")
 0207                        .HasDatabaseName("IX_WorkflowInstance_SubStatus");
 0208
 0209                    b.HasIndex("TenantId")
 0210                        .HasDatabaseName("IX_WorkflowInstance_TenantId");
 0211
 0212                    b.HasIndex("UpdatedAt")
 0213                        .HasDatabaseName("IX_WorkflowInstance_UpdatedAt");
 0214
 0215                    b.HasIndex("Status", "DefinitionId")
 0216                        .HasDatabaseName("IX_WorkflowInstance_Status_DefinitionId");
 0217
 0218                    b.HasIndex("Status", "SubStatus")
 0219                        .HasDatabaseName("IX_WorkflowInstance_Status_SubStatus");
 0220
 0221                    b.HasIndex("SubStatus", "DefinitionId")
 0222                        .HasDatabaseName("IX_WorkflowInstance_SubStatus_DefinitionId");
 0223
 0224                    b.HasIndex("Status", "SubStatus", "DefinitionId", "Version")
 0225                        .HasDatabaseName("IX_WorkflowInstance_Status_SubStatus_DefinitionId_Version");
 0226
 0227                    b.ToTable("WorkflowInstances", "Elsa");
 0228                });
 229#pragma warning restore 612, 618
 0230        }
 231    }
 232}