< 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: 74
Coverable lines: 74
Total lines: 97
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", "9.0.17")
 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                        .HasMaxLength(255)
 039                        .HasColumnType("text");
 040
 041                    b.Property<string>("NormalizedName")
 042                        .IsRequired()
 043                        .HasMaxLength(255)
 044                        .HasColumnType("text");
 045
 046                    b.Property<string>("TenantId")
 047                        .HasColumnType("text");
 048
 049                    b.HasKey("Id");
 050
 051                    b.HasIndex("TenantId", "NormalizedName")
 052                        .IsUnique()
 053                        .HasDatabaseName("IX_Label_TenantId_NormalizedName");
 054
 055                    b.ToTable("Labels", "Elsa");
 056                });
 57
 058            modelBuilder.Entity("Elsa.Labels.Entities.WorkflowDefinitionLabel", b =>
 059                {
 060                    b.Property<string>("Id")
 061                        .HasColumnType("text");
 062
 063                    b.Property<string>("LabelId")
 064                        .IsRequired()
 065                        .HasColumnType("text");
 066
 067                    b.Property<string>("TenantId")
 068                        .HasColumnType("text");
 069
 070                    b.Property<string>("WorkflowDefinitionId")
 071                        .IsRequired()
 072                        .HasColumnType("text");
 073
 074                    b.Property<string>("WorkflowDefinitionVersionId")
 075                        .IsRequired()
 076                        .HasColumnType("text");
 077
 078                    b.HasKey("Id");
 079
 080                    b.HasIndex("LabelId")
 081                        .HasDatabaseName("WorkflowDefinitionLabel_LabelId");
 082
 083                    b.HasIndex("TenantId")
 084                        .HasDatabaseName("WorkflowDefinitionLabel_TenantId");
 085
 086                    b.HasIndex("WorkflowDefinitionId")
 087                        .HasDatabaseName("WorkflowDefinitionLabel_WorkflowDefinitionId");
 088
 089                    b.HasIndex("WorkflowDefinitionVersionId")
 090                        .HasDatabaseName("WorkflowDefinitionLabel_WorkflowDefinitionVersionId");
 091
 092                    b.ToTable("WorkflowDefinitionLabels", "Elsa");
 093                });
 94#pragma warning restore 612, 618
 095        }
 96    }
 97}