< Summary

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

#LineLine coverage
 1// <auto-generated />
 2using Elsa.Persistence.EFCore.Modules.Identity;
 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.Identity
 11{
 12    [DbContext(typeof(IdentityElsaDbContext))]
 13    partial class IdentityElsaDbContextModelSnapshot : 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.Identity.Entities.Application", b =>
 026                {
 027                    b.Property<string>("Id")
 028                        .HasColumnType("text");
 029
 030                    b.Property<string>("ClientId")
 031                        .IsRequired()
 032                        .HasColumnType("text");
 033
 034                    b.Property<string>("HashedApiKey")
 035                        .IsRequired()
 036                        .HasColumnType("text");
 037
 038                    b.Property<string>("HashedApiKeySalt")
 039                        .IsRequired()
 040                        .HasColumnType("text");
 041
 042                    b.Property<string>("HashedClientSecret")
 043                        .IsRequired()
 044                        .HasColumnType("text");
 045
 046                    b.Property<string>("HashedClientSecretSalt")
 047                        .IsRequired()
 048                        .HasColumnType("text");
 049
 050                    b.Property<string>("Name")
 051                        .IsRequired()
 052                        .HasColumnType("text");
 053
 054                    b.Property<string>("Roles")
 055                        .IsRequired()
 056                        .HasColumnType("text")
 057                        .HasColumnName("Roles");
 058
 059                    b.Property<string>("TenantId")
 060                        .HasColumnType("text");
 061
 062                    b.HasKey("Id");
 063
 064                    b.HasIndex("ClientId")
 065                        .IsUnique()
 066                        .HasDatabaseName("IX_Application_ClientId");
 067
 068                    b.HasIndex("Name")
 069                        .IsUnique()
 070                        .HasDatabaseName("IX_Application_Name");
 071
 072                    b.HasIndex("TenantId")
 073                        .HasDatabaseName("IX_Application_TenantId");
 074
 075                    b.ToTable("Applications", "Elsa");
 076                });
 77
 078            modelBuilder.Entity("Elsa.Identity.Entities.Role", b =>
 079                {
 080                    b.Property<string>("Id")
 081                        .HasColumnType("text");
 082
 083                    b.Property<string>("Name")
 084                        .IsRequired()
 085                        .HasColumnType("text");
 086
 087                    b.Property<string>("Permissions")
 088                        .IsRequired()
 089                        .HasColumnType("text")
 090                        .HasColumnName("Permissions");
 091
 092                    b.Property<string>("TenantId")
 093                        .HasColumnType("text");
 094
 095                    b.HasKey("Id");
 096
 097                    b.HasIndex("Name")
 098                        .IsUnique()
 099                        .HasDatabaseName("IX_Role_Name");
 0100
 0101                    b.HasIndex("TenantId")
 0102                        .HasDatabaseName("IX_Role_TenantId");
 0103
 0104                    b.ToTable("Roles", "Elsa");
 0105                });
 106
 0107            modelBuilder.Entity("Elsa.Identity.Entities.User", b =>
 0108                {
 0109                    b.Property<string>("Id")
 0110                        .HasColumnType("text");
 0111
 0112                    b.Property<string>("HashedPassword")
 0113                        .IsRequired()
 0114                        .HasColumnType("text");
 0115
 0116                    b.Property<string>("HashedPasswordSalt")
 0117                        .IsRequired()
 0118                        .HasColumnType("text");
 0119
 0120                    b.Property<string>("Name")
 0121                        .IsRequired()
 0122                        .HasColumnType("text");
 0123
 0124                    b.Property<string>("Roles")
 0125                        .IsRequired()
 0126                        .HasColumnType("text")
 0127                        .HasColumnName("Roles");
 0128
 0129                    b.Property<string>("TenantId")
 0130                        .HasColumnType("text");
 0131
 0132                    b.HasKey("Id");
 0133
 0134                    b.HasIndex("Name")
 0135                        .IsUnique()
 0136                        .HasDatabaseName("IX_User_Name");
 0137
 0138                    b.HasIndex("TenantId")
 0139                        .HasDatabaseName("IX_User_TenantId");
 0140
 0141                    b.ToTable("Users", "Elsa");
 0142                });
 143#pragma warning restore 612, 618
 0144        }
 145    }
 146}