< Summary

Information
Class: Elsa.Persistence.EFCore.Sqlite.Migrations.Identity.IdentityElsaDbContextModelSnapshot
Assembly: Elsa.Persistence.EFCore.Sqlite
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Persistence.EFCore.Sqlite/Migrations/Identity/IdentityElsaDbContextModelSnapshot.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 120
Coverable lines: 120
Total lines: 142
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.Sqlite/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;
 6
 7#nullable disable
 8
 9namespace Elsa.Persistence.EFCore.Sqlite.Migrations.Identity
 10{
 11    [DbContext(typeof(IdentityElsaDbContext))]
 12    partial class IdentityElsaDbContextModelSnapshot : ModelSnapshot
 13    {
 14        protected override void BuildModel(ModelBuilder modelBuilder)
 15        {
 16#pragma warning disable 612, 618
 017            modelBuilder
 018                .HasDefaultSchema("Elsa")
 019                .HasAnnotation("ProductVersion", "8.0.12");
 20
 021            modelBuilder.Entity("Elsa.Identity.Entities.Application", b =>
 022                {
 023                    b.Property<string>("Id")
 024                        .HasColumnType("TEXT");
 025
 026                    b.Property<string>("ClientId")
 027                        .IsRequired()
 028                        .HasColumnType("TEXT");
 029
 030                    b.Property<string>("HashedApiKey")
 031                        .IsRequired()
 032                        .HasColumnType("TEXT");
 033
 034                    b.Property<string>("HashedApiKeySalt")
 035                        .IsRequired()
 036                        .HasColumnType("TEXT");
 037
 038                    b.Property<string>("HashedClientSecret")
 039                        .IsRequired()
 040                        .HasColumnType("TEXT");
 041
 042                    b.Property<string>("HashedClientSecretSalt")
 043                        .IsRequired()
 044                        .HasColumnType("TEXT");
 045
 046                    b.Property<string>("Name")
 047                        .IsRequired()
 048                        .HasColumnType("TEXT");
 049
 050                    b.Property<string>("Roles")
 051                        .IsRequired()
 052                        .HasColumnType("TEXT")
 053                        .HasColumnName("Roles");
 054
 055                    b.Property<string>("TenantId")
 056                        .HasColumnType("TEXT");
 057
 058                    b.HasKey("Id");
 059
 060                    b.HasIndex("ClientId")
 061                        .IsUnique()
 062                        .HasDatabaseName("IX_Application_ClientId");
 063
 064                    b.HasIndex("Name")
 065                        .IsUnique()
 066                        .HasDatabaseName("IX_Application_Name");
 067
 068                    b.HasIndex("TenantId")
 069                        .HasDatabaseName("IX_Application_TenantId");
 070
 071                    b.ToTable("Applications", "Elsa");
 072                });
 73
 074            modelBuilder.Entity("Elsa.Identity.Entities.Role", b =>
 075                {
 076                    b.Property<string>("Id")
 077                        .HasColumnType("TEXT");
 078
 079                    b.Property<string>("Name")
 080                        .IsRequired()
 081                        .HasColumnType("TEXT");
 082
 083                    b.Property<string>("Permissions")
 084                        .IsRequired()
 085                        .HasColumnType("TEXT")
 086                        .HasColumnName("Permissions");
 087
 088                    b.Property<string>("TenantId")
 089                        .HasColumnType("TEXT");
 090
 091                    b.HasKey("Id");
 092
 093                    b.HasIndex("Name")
 094                        .IsUnique()
 095                        .HasDatabaseName("IX_Role_Name");
 096
 097                    b.HasIndex("TenantId")
 098                        .HasDatabaseName("IX_Role_TenantId");
 099
 0100                    b.ToTable("Roles", "Elsa");
 0101                });
 102
 0103            modelBuilder.Entity("Elsa.Identity.Entities.User", b =>
 0104                {
 0105                    b.Property<string>("Id")
 0106                        .HasColumnType("TEXT");
 0107
 0108                    b.Property<string>("HashedPassword")
 0109                        .IsRequired()
 0110                        .HasColumnType("TEXT");
 0111
 0112                    b.Property<string>("HashedPasswordSalt")
 0113                        .IsRequired()
 0114                        .HasColumnType("TEXT");
 0115
 0116                    b.Property<string>("Name")
 0117                        .IsRequired()
 0118                        .HasColumnType("TEXT");
 0119
 0120                    b.Property<string>("Roles")
 0121                        .IsRequired()
 0122                        .HasColumnType("TEXT")
 0123                        .HasColumnName("Roles");
 0124
 0125                    b.Property<string>("TenantId")
 0126                        .HasColumnType("TEXT");
 0127
 0128                    b.HasKey("Id");
 0129
 0130                    b.HasIndex("Name")
 0131                        .IsUnique()
 0132                        .HasDatabaseName("IX_User_Name");
 0133
 0134                    b.HasIndex("TenantId")
 0135                        .HasDatabaseName("IX_User_TenantId");
 0136
 0137                    b.ToTable("Users", "Elsa");
 0138                });
 139#pragma warning restore 612, 618
 0140        }
 141    }
 142}