< Summary

Information
Class: Elsa.Persistence.EFCore.PostgreSql.Migrations.Alterations.AlterationsElsaDbContextModelSnapshot
Assembly: Elsa.Persistence.EFCore.PostgreSql
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Persistence.EFCore.PostgreSql/Migrations/Alterations/AlterationsElsaDbContextModelSnapshot.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 109
Coverable lines: 109
Total lines: 133
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/Alterations/AlterationsElsaDbContextModelSnapshot.cs

#LineLine coverage
 1// <auto-generated />
 2using System;
 3using Elsa.Persistence.EFCore.Modules.Alterations;
 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.Alterations
 12{
 13    [DbContext(typeof(AlterationsElsaDbContext))]
 14    partial class AlterationsElsaDbContextModelSnapshot : ModelSnapshot
 15    {
 16        protected override void BuildModel(ModelBuilder modelBuilder)
 17        {
 18#pragma warning disable 612, 618
 019            modelBuilder
 020                .HasDefaultSchema("Elsa")
 021                .HasAnnotation("ProductVersion", "8.0.12")
 022                .HasAnnotation("Relational:MaxIdentifierLength", 63);
 23
 024            NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
 25
 026            modelBuilder.Entity("Elsa.Alterations.Core.Entities.AlterationJob", b =>
 027                {
 028                    b.Property<string>("Id")
 029                        .HasColumnType("text");
 030
 031                    b.Property<DateTimeOffset?>("CompletedAt")
 032                        .HasColumnType("timestamp with time zone");
 033
 034                    b.Property<DateTimeOffset>("CreatedAt")
 035                        .HasColumnType("timestamp with time zone");
 036
 037                    b.Property<string>("PlanId")
 038                        .IsRequired()
 039                        .HasColumnType("text");
 040
 041                    b.Property<string>("SerializedLog")
 042                        .HasColumnType("text");
 043
 044                    b.Property<DateTimeOffset?>("StartedAt")
 045                        .HasColumnType("timestamp with time zone");
 046
 047                    b.Property<string>("Status")
 048                        .IsRequired()
 049                        .HasColumnType("text");
 050
 051                    b.Property<string>("TenantId")
 052                        .HasColumnType("text");
 053
 054                    b.Property<string>("WorkflowInstanceId")
 055                        .IsRequired()
 056                        .HasColumnType("text");
 057
 058                    b.HasKey("Id");
 059
 060                    b.HasIndex("CompletedAt")
 061                        .HasDatabaseName("IX_AlterationJob_CompletedAt");
 062
 063                    b.HasIndex("CreatedAt")
 064                        .HasDatabaseName("IX_AlterationJob_CreatedAt");
 065
 066                    b.HasIndex("PlanId")
 067                        .HasDatabaseName("IX_AlterationJob_PlanId");
 068
 069                    b.HasIndex("StartedAt")
 070                        .HasDatabaseName("IX_AlterationJob_StartedAt");
 071
 072                    b.HasIndex("Status")
 073                        .HasDatabaseName("IX_AlterationJob_Status");
 074
 075                    b.HasIndex("TenantId")
 076                        .HasDatabaseName("IX_AlterationJob_TenantId");
 077
 078                    b.HasIndex("WorkflowInstanceId")
 079                        .HasDatabaseName("IX_AlterationJob_WorkflowInstanceId");
 080
 081                    b.ToTable("AlterationJobs", "Elsa");
 082                });
 83
 084            modelBuilder.Entity("Elsa.Alterations.Core.Entities.AlterationPlan", b =>
 085                {
 086                    b.Property<string>("Id")
 087                        .HasColumnType("text");
 088
 089                    b.Property<DateTimeOffset?>("CompletedAt")
 090                        .HasColumnType("timestamp with time zone");
 091
 092                    b.Property<DateTimeOffset>("CreatedAt")
 093                        .HasColumnType("timestamp with time zone");
 094
 095                    b.Property<string>("SerializedAlterations")
 096                        .HasColumnType("text");
 097
 098                    b.Property<string>("SerializedWorkflowInstanceFilter")
 099                        .HasColumnType("text");
 0100
 0101                    b.Property<DateTimeOffset?>("StartedAt")
 0102                        .HasColumnType("timestamp with time zone");
 0103
 0104                    b.Property<string>("Status")
 0105                        .IsRequired()
 0106                        .HasColumnType("text");
 0107
 0108                    b.Property<string>("TenantId")
 0109                        .HasColumnType("text");
 0110
 0111                    b.HasKey("Id");
 0112
 0113                    b.HasIndex("CompletedAt")
 0114                        .HasDatabaseName("IX_AlterationPlan_CompletedAt");
 0115
 0116                    b.HasIndex("CreatedAt")
 0117                        .HasDatabaseName("IX_AlterationPlan_CreatedAt");
 0118
 0119                    b.HasIndex("StartedAt")
 0120                        .HasDatabaseName("IX_AlterationPlan_StartedAt");
 0121
 0122                    b.HasIndex("Status")
 0123                        .HasDatabaseName("IX_AlterationPlan_Status");
 0124
 0125                    b.HasIndex("TenantId")
 0126                        .HasDatabaseName("IX_AlterationPlan_TenantId");
 0127
 0128                    b.ToTable("AlterationPlans", "Elsa");
 0129                });
 130#pragma warning restore 612, 618
 0131        }
 132    }
 133}