< Summary

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

#LineLine coverage
 1// <auto-generated />
 2using Elsa.Persistence.EFCore.Modules.Labels;
 3using Microsoft.EntityFrameworkCore;
 4using Microsoft.EntityFrameworkCore.Infrastructure;
 5using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
 6using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
 7
 8#nullable disable
 9
 10namespace Elsa.Persistence.EFCore.PostgreSql.Migrations.Labels
 11{
 12    [DbContext(typeof(LabelsElsaDbContext))]
 13    partial class LabelsElsaDbContextModelSnapshot : ModelSnapshot
 14    {
 15        protected override void BuildModel(ModelBuilder modelBuilder)
 16        {
 17#pragma warning disable 612, 618
 018            modelBuilder
 019                .HasDefaultSchema("Elsa")
 020                .HasAnnotation("ProductVersion", "8.0.12")
 021                .HasAnnotation("Relational:MaxIdentifierLength", 63);
 22
 023            NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
 24
 025            modelBuilder.Entity("Elsa.Labels.Entities.Label", b =>
 026                {
 027                    b.Property<string>("Id")
 028                        .HasColumnType("text");
 029
 030                    b.Property<string>("Color")
 031                        .HasColumnType("text");
 032
 033                    b.Property<string>("Description")
 034                        .HasColumnType("text");
 035
 036                    b.Property<string>("Name")
 037                        .IsRequired()
 038                        .HasColumnType("text");
 039
 040                    b.Property<string>("NormalizedName")
 041                        .IsRequired()
 042                        .HasColumnType("text");
 043
 044                    b.Property<string>("TenantId")
 045                        .HasColumnType("text");
 046
 047                    b.HasKey("Id");
 048
 049                    b.ToTable("Labels", "Elsa");
 050                });
 51
 052            modelBuilder.Entity("Elsa.Labels.Entities.WorkflowDefinitionLabel", b =>
 053                {
 054                    b.Property<string>("Id")
 055                        .HasColumnType("text");
 056
 057                    b.Property<string>("LabelId")
 058                        .IsRequired()
 059                        .HasColumnType("text");
 060
 061                    b.Property<string>("TenantId")
 062                        .HasColumnType("text");
 063
 064                    b.Property<string>("WorkflowDefinitionId")
 065                        .IsRequired()
 066                        .HasColumnType("text");
 067
 068                    b.Property<string>("WorkflowDefinitionVersionId")
 069                        .IsRequired()
 070                        .HasColumnType("text");
 071
 072                    b.HasKey("Id");
 073
 074                    b.HasIndex("LabelId")
 075                        .HasDatabaseName("WorkflowDefinitionLabel_LabelId");
 076
 077                    b.HasIndex("TenantId")
 078                        .HasDatabaseName("WorkflowDefinitionLabel_TenantId");
 079
 080                    b.HasIndex("WorkflowDefinitionId")
 081                        .HasDatabaseName("WorkflowDefinitionLabel_WorkflowDefinitionId");
 082
 083                    b.HasIndex("WorkflowDefinitionVersionId")
 084                        .HasDatabaseName("WorkflowDefinitionLabel_WorkflowDefinitionVersionId");
 085
 086                    b.ToTable("WorkflowDefinitionLabels", "Elsa");
 087                });
 88#pragma warning restore 612, 618
 089        }
 90    }
 91}