< Summary

Information
Class: OzonRepositories.Migrations.OzonIdentityOrder.OzonIdentityOrderContextModelSnapshot
Assembly: OzonRepositories
File(s): /home/runner/work/Studio2Prod/Studio2Prod/OzonRepositories/Migrations/OzonIdentityOrder/OzonIdentityOrderContextModelSnapshot.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 396
Coverable lines: 396
Total lines: 438
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/Studio2Prod/Studio2Prod/OzonRepositories/Migrations/OzonIdentityOrder/OzonIdentityOrderContextModelSnapshot.cs

#LineLine coverage
 1// <auto-generated />
 2using System;
 3using Microsoft.EntityFrameworkCore;
 4using Microsoft.EntityFrameworkCore.Infrastructure;
 5using Microsoft.EntityFrameworkCore.Metadata;
 6using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
 7using OzonRepositories.Context.Identity;
 8
 9#nullable disable
 10
 11namespace OzonRepositories.Migrations.OzonIdentityOrder
 12{
 13    [DbContext(typeof(OzonIdentityOrderContext))]
 14    partial class OzonIdentityOrderContextModelSnapshot : ModelSnapshot
 15    {
 16        protected override void BuildModel(ModelBuilder modelBuilder)
 17        {
 18#pragma warning disable 612, 618
 019            modelBuilder
 020                .HasAnnotation("ProductVersion", "8.0.10")
 021                .HasAnnotation("Relational:MaxIdentifierLength", 64);
 22
 023            MySqlModelBuilderExtensions.AutoIncrementColumns(modelBuilder);
 24
 025            modelBuilder.Entity("AccessProfileDataScopeSet", b =>
 026                {
 027                    b.Property<int>("AccessProfilesId")
 028                        .HasColumnType("int");
 029
 030                    b.Property<int>("DataScopeSetsId")
 031                        .HasColumnType("int");
 032
 033                    b.HasKey("AccessProfilesId", "DataScopeSetsId");
 034
 035                    b.HasIndex("DataScopeSetsId");
 036
 037                    b.ToTable("AccessProfileDataScopeSets", null, t =>
 038                        {
 039                            t.ExcludeFromMigrations();
 040                        });
 041                });
 42
 043            modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b =>
 044                {
 045                    b.Property<string>("Id")
 046                        .HasColumnType("varchar(255)");
 047
 048                    b.Property<string>("ConcurrencyStamp")
 049                        .IsConcurrencyToken()
 050                        .HasColumnType("longtext");
 051
 052                    b.Property<string>("Name")
 053                        .HasMaxLength(256)
 054                        .HasColumnType("varchar(256)");
 055
 056                    b.Property<string>("NormalizedName")
 057                        .HasMaxLength(256)
 058                        .HasColumnType("varchar(256)");
 059
 060                    b.HasKey("Id");
 061
 062                    b.HasIndex("NormalizedName")
 063                        .IsUnique()
 064                        .HasDatabaseName("RoleNameIndex");
 065
 066                    b.ToTable("AspNetRoles", (string)null);
 067                });
 68
 069            modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
 070                {
 071                    b.Property<int>("Id")
 072                        .ValueGeneratedOnAdd()
 073                        .HasColumnType("int");
 074
 075                    MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("Id"));
 076
 077                    b.Property<string>("ClaimType")
 078                        .HasColumnType("longtext");
 079
 080                    b.Property<string>("ClaimValue")
 081                        .HasColumnType("longtext");
 082
 083                    b.Property<string>("RoleId")
 084                        .IsRequired()
 085                        .HasColumnType("varchar(255)");
 086
 087                    b.HasKey("Id");
 088
 089                    b.HasIndex("RoleId");
 090
 091                    b.ToTable("AspNetRoleClaims", (string)null);
 092                });
 93
 094            modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
 095                {
 096                    b.Property<int>("Id")
 097                        .ValueGeneratedOnAdd()
 098                        .HasColumnType("int");
 099
 0100                    MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("Id"));
 0101
 0102                    b.Property<string>("ClaimType")
 0103                        .HasColumnType("longtext");
 0104
 0105                    b.Property<string>("ClaimValue")
 0106                        .HasColumnType("longtext");
 0107
 0108                    b.Property<string>("UserId")
 0109                        .IsRequired()
 0110                        .HasColumnType("varchar(255)");
 0111
 0112                    b.HasKey("Id");
 0113
 0114                    b.HasIndex("UserId");
 0115
 0116                    b.ToTable("AspNetUserClaims", (string)null);
 0117                });
 118
 0119            modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
 0120                {
 0121                    b.Property<string>("LoginProvider")
 0122                        .HasColumnType("varchar(255)");
 0123
 0124                    b.Property<string>("ProviderKey")
 0125                        .HasColumnType("varchar(255)");
 0126
 0127                    b.Property<string>("ProviderDisplayName")
 0128                        .HasColumnType("longtext");
 0129
 0130                    b.Property<string>("UserId")
 0131                        .IsRequired()
 0132                        .HasColumnType("varchar(255)");
 0133
 0134                    b.HasKey("LoginProvider", "ProviderKey");
 0135
 0136                    b.HasIndex("UserId");
 0137
 0138                    b.ToTable("AspNetUserLogins", (string)null);
 0139                });
 140
 0141            modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
 0142                {
 0143                    b.Property<string>("UserId")
 0144                        .HasColumnType("varchar(255)");
 0145
 0146                    b.Property<string>("RoleId")
 0147                        .HasColumnType("varchar(255)");
 0148
 0149                    b.HasKey("UserId", "RoleId");
 0150
 0151                    b.HasIndex("RoleId");
 0152
 0153                    b.ToTable("AspNetUserRoles", (string)null);
 0154                });
 155
 0156            modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
 0157                {
 0158                    b.Property<string>("UserId")
 0159                        .HasColumnType("varchar(255)");
 0160
 0161                    b.Property<string>("LoginProvider")
 0162                        .HasColumnType("varchar(255)");
 0163
 0164                    b.Property<string>("Name")
 0165                        .HasColumnType("varchar(255)");
 0166
 0167                    b.Property<string>("Value")
 0168                        .HasColumnType("longtext");
 0169
 0170                    b.HasKey("UserId", "LoginProvider", "Name");
 0171
 0172                    b.ToTable("AspNetUserTokens", (string)null);
 0173                });
 174
 0175            modelBuilder.Entity("OzonDomains.Models.AccessControl.AccessProfile", b =>
 0176                {
 0177                    b.Property<int>("Id")
 0178                        .ValueGeneratedOnAdd()
 0179                        .HasColumnType("int");
 0180
 0181                    MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("Id"));
 0182
 0183                    b.Property<string>("AvailableOrderColumns")
 0184                        .HasColumnType("longtext");
 0185
 0186                    b.Property<string>("Name")
 0187                        .HasColumnType("longtext");
 0188
 0189                    b.HasKey("Id");
 0190
 0191                    b.ToTable("AccessProfiles", null, t =>
 0192                        {
 0193                            t.ExcludeFromMigrations();
 0194                        });
 0195                });
 196
 0197            modelBuilder.Entity("OzonDomains.Models.AccessControl.DataScopeSet", b =>
 0198                {
 0199                    b.Property<int>("Id")
 0200                        .ValueGeneratedOnAdd()
 0201                        .HasColumnType("int");
 0202
 0203                    MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("Id"));
 0204
 0205                    b.Property<DateTime>("CreatedAt")
 0206                        .HasColumnType("datetime(6)");
 0207
 0208                    b.Property<string>("Description")
 0209                        .HasMaxLength(500)
 0210                        .HasColumnType("varchar(500)");
 0211
 0212                    b.Property<string>("Name")
 0213                        .IsRequired()
 0214                        .HasMaxLength(200)
 0215                        .HasColumnType("varchar(200)");
 0216
 0217                    b.HasKey("Id");
 0218
 0219                    b.ToTable("DataScopeSets", null, t =>
 0220                        {
 0221                            t.ExcludeFromMigrations();
 0222                        });
 0223                });
 224
 0225            modelBuilder.Entity("OzonDomains.Models.AccessControl.DataScopeSetItem", b =>
 0226                {
 0227                    b.Property<int>("Id")
 0228                        .ValueGeneratedOnAdd()
 0229                        .HasColumnType("int");
 0230
 0231                    MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("Id"));
 0232
 0233                    b.Property<int>("DataScopeSetId")
 0234                        .HasColumnType("int");
 0235
 0236                    b.Property<int>("ReferenceId")
 0237                        .HasColumnType("int");
 0238
 0239                    b.Property<int>("ScopeType")
 0240                        .HasColumnType("int");
 0241
 0242                    b.HasKey("Id");
 0243
 0244                    b.HasIndex("DataScopeSetId");
 0245
 0246                    b.ToTable("DataScopeSetItems", null, t =>
 0247                        {
 0248                            t.ExcludeFromMigrations();
 0249                        });
 0250                });
 251
 0252            modelBuilder.Entity("OzonRepositories.Context.Identity.CustomIdentityUser", b =>
 0253                {
 0254                    b.Property<string>("Id")
 0255                        .HasColumnType("varchar(255)");
 0256
 0257                    b.Property<int>("AccessFailedCount")
 0258                        .HasColumnType("int");
 0259
 0260                    b.Property<int?>("AccessProfileId")
 0261                        .HasColumnType("int");
 0262
 0263                    b.Property<DateTime?>("AdminApprovedAtUtc")
 0264                        .HasColumnType("datetime(6)");
 0265
 0266                    b.Property<string>("AdminApprovedBy")
 0267                        .HasColumnType("longtext");
 0268
 0269                    b.Property<string>("ConcurrencyStamp")
 0270                        .IsConcurrencyToken()
 0271                        .HasColumnType("longtext");
 0272
 0273                    b.Property<string>("Discriminator")
 0274                        .IsRequired()
 0275                        .HasMaxLength(21)
 0276                        .HasColumnType("varchar(21)");
 0277
 0278                    b.Property<string>("Email")
 0279                        .HasMaxLength(256)
 0280                        .HasColumnType("varchar(256)");
 0281
 0282                    b.Property<bool>("EmailConfirmed")
 0283                        .HasColumnType("tinyint(1)");
 0284
 0285                    b.Property<string>("GoogleAvatarUrl")
 0286                        .HasColumnType("longtext");
 0287
 0288                    b.Property<string>("GoogleDisplayName")
 0289                        .HasColumnType("longtext");
 0290
 0291                    b.Property<bool>("IsAdminApproved")
 0292                        .HasColumnType("tinyint(1)");
 0293
 0294                    b.Property<bool>("LockoutEnabled")
 0295                        .HasColumnType("tinyint(1)");
 0296
 0297                    b.Property<DateTimeOffset?>("LockoutEnd")
 0298                        .HasColumnType("datetime(6)");
 0299
 0300                    b.Property<string>("NormalizedEmail")
 0301                        .HasMaxLength(256)
 0302                        .HasColumnType("varchar(256)");
 0303
 0304                    b.Property<string>("NormalizedUserName")
 0305                        .HasMaxLength(256)
 0306                        .HasColumnType("varchar(256)");
 0307
 0308                    b.Property<string>("PasswordHash")
 0309                        .HasColumnType("longtext");
 0310
 0311                    b.Property<string>("PhoneNumber")
 0312                        .HasColumnType("longtext");
 0313
 0314                    b.Property<bool>("PhoneNumberConfirmed")
 0315                        .HasColumnType("tinyint(1)");
 0316
 0317                    b.Property<string>("SecurityStamp")
 0318                        .HasColumnType("longtext");
 0319
 0320                    b.Property<bool>("TwoFactorEnabled")
 0321                        .HasColumnType("tinyint(1)");
 0322
 0323                    b.Property<string>("UserName")
 0324                        .HasMaxLength(256)
 0325                        .HasColumnType("varchar(256)");
 0326
 0327                    b.HasKey("Id");
 0328
 0329                    b.HasIndex("AccessProfileId");
 0330
 0331                    b.HasIndex("NormalizedEmail")
 0332                        .HasDatabaseName("EmailIndex");
 0333
 0334                    b.HasIndex("NormalizedUserName")
 0335                        .IsUnique()
 0336                        .HasDatabaseName("UserNameIndex");
 0337
 0338                    b.ToTable("AspNetUsers", (string)null);
 0339
 0340                    b.HasDiscriminator<string>("Discriminator").IsComplete(false).HasValue("CustomIdentityUser");
 0341                });
 342
 0343            modelBuilder.Entity("AccessProfileDataScopeSet", b =>
 0344                {
 0345                    b.HasOne("OzonDomains.Models.AccessControl.AccessProfile", null)
 0346                        .WithMany()
 0347                        .HasForeignKey("AccessProfilesId")
 0348                        .OnDelete(DeleteBehavior.Cascade)
 0349                        .IsRequired();
 0350
 0351                    b.HasOne("OzonDomains.Models.AccessControl.DataScopeSet", null)
 0352                        .WithMany()
 0353                        .HasForeignKey("DataScopeSetsId")
 0354                        .OnDelete(DeleteBehavior.Cascade)
 0355                        .IsRequired();
 0356                });
 357
 0358            modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
 0359                {
 0360                    b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null)
 0361                        .WithMany()
 0362                        .HasForeignKey("RoleId")
 0363                        .OnDelete(DeleteBehavior.Cascade)
 0364                        .IsRequired();
 0365                });
 366
 0367            modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
 0368                {
 0369                    b.HasOne("OzonRepositories.Context.Identity.CustomIdentityUser", null)
 0370                        .WithMany()
 0371                        .HasForeignKey("UserId")
 0372                        .OnDelete(DeleteBehavior.Cascade)
 0373                        .IsRequired();
 0374                });
 375
 0376            modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
 0377                {
 0378                    b.HasOne("OzonRepositories.Context.Identity.CustomIdentityUser", null)
 0379                        .WithMany()
 0380                        .HasForeignKey("UserId")
 0381                        .OnDelete(DeleteBehavior.Cascade)
 0382                        .IsRequired();
 0383                });
 384
 0385            modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
 0386                {
 0387                    b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null)
 0388                        .WithMany()
 0389                        .HasForeignKey("RoleId")
 0390                        .OnDelete(DeleteBehavior.Cascade)
 0391                        .IsRequired();
 0392
 0393                    b.HasOne("OzonRepositories.Context.Identity.CustomIdentityUser", null)
 0394                        .WithMany()
 0395                        .HasForeignKey("UserId")
 0396                        .OnDelete(DeleteBehavior.Cascade)
 0397                        .IsRequired();
 0398                });
 399
 0400            modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
 0401                {
 0402                    b.HasOne("OzonRepositories.Context.Identity.CustomIdentityUser", null)
 0403                        .WithMany()
 0404                        .HasForeignKey("UserId")
 0405                        .OnDelete(DeleteBehavior.Cascade)
 0406                        .IsRequired();
 0407                });
 408
 0409            modelBuilder.Entity("OzonDomains.Models.AccessControl.DataScopeSetItem", b =>
 0410                {
 0411                    b.HasOne("OzonDomains.Models.AccessControl.DataScopeSet", "DataScopeSet")
 0412                        .WithMany("Items")
 0413                        .HasForeignKey("DataScopeSetId")
 0414                        .OnDelete(DeleteBehavior.Cascade)
 0415                        .IsRequired()
 0416                        .HasConstraintName("FK_DataScopeSetItems_DataScopeSets");
 0417
 0418                    b.Navigation("DataScopeSet");
 0419                });
 420
 0421            modelBuilder.Entity("OzonRepositories.Context.Identity.CustomIdentityUser", b =>
 0422                {
 0423                    b.HasOne("OzonDomains.Models.AccessControl.AccessProfile", "AccessProfile")
 0424                        .WithMany()
 0425                        .HasForeignKey("AccessProfileId")
 0426                        .OnDelete(DeleteBehavior.SetNull);
 0427
 0428                    b.Navigation("AccessProfile");
 0429                });
 430
 0431            modelBuilder.Entity("OzonDomains.Models.AccessControl.DataScopeSet", b =>
 0432                {
 0433                    b.Navigation("Items");
 0434                });
 435#pragma warning restore 612, 618
 0436        }
 437    }
 438}