// using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using PCC.Data; namespace PCC.Data.Migrations { [DbContext(typeof(PCCDbContext))] partial class PCCDbContextModelSnapshot : ModelSnapshot { protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "3.1.10") .HasAnnotation("Relational:MaxIdentifierLength", 128) .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b => { b.Property("Id") .HasColumnType("nvarchar(450)"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasColumnType("nvarchar(max)"); b.Property("Name") .HasColumnType("nvarchar(256)") .HasMaxLength(256); b.Property("NormalizedName") .HasColumnType("nvarchar(256)") .HasMaxLength(256); b.HasKey("Id"); b.HasIndex("NormalizedName") .IsUnique() .HasName("RoleNameIndex") .HasFilter("[NormalizedName] IS NOT NULL"); b.ToTable("AspNetRoles"); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int") .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); b.Property("ClaimType") .HasColumnType("nvarchar(max)"); b.Property("ClaimValue") .HasColumnType("nvarchar(max)"); b.Property("RoleId") .IsRequired() .HasColumnType("nvarchar(450)"); b.HasKey("Id"); b.HasIndex("RoleId"); b.ToTable("AspNetRoleClaims"); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int") .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); b.Property("ClaimType") .HasColumnType("nvarchar(max)"); b.Property("ClaimValue") .HasColumnType("nvarchar(max)"); b.Property("UserId") .IsRequired() .HasColumnType("nvarchar(450)"); b.HasKey("Id"); b.HasIndex("UserId"); b.ToTable("AspNetUserClaims"); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => { b.Property("LoginProvider") .HasColumnType("nvarchar(128)") .HasMaxLength(128); b.Property("ProviderKey") .HasColumnType("nvarchar(128)") .HasMaxLength(128); b.Property("ProviderDisplayName") .HasColumnType("nvarchar(max)"); b.Property("UserId") .IsRequired() .HasColumnType("nvarchar(450)"); b.HasKey("LoginProvider", "ProviderKey"); b.HasIndex("UserId"); b.ToTable("AspNetUserLogins"); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b => { b.Property("UserId") .HasColumnType("nvarchar(450)"); b.Property("RoleId") .HasColumnType("nvarchar(450)"); b.HasKey("UserId", "RoleId"); b.HasIndex("RoleId"); b.ToTable("AspNetUserRoles"); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => { b.Property("UserId") .HasColumnType("nvarchar(450)"); b.Property("LoginProvider") .HasColumnType("nvarchar(128)") .HasMaxLength(128); b.Property("Name") .HasColumnType("nvarchar(128)") .HasMaxLength(128); b.Property("Value") .HasColumnType("nvarchar(max)"); b.HasKey("UserId", "LoginProvider", "Name"); b.ToTable("AspNetUserTokens"); }); modelBuilder.Entity("PCC.Data.Models.PCCUser", b => { b.Property("Id") .HasColumnType("nvarchar(450)"); b.Property("AccessFailedCount") .HasColumnType("int"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasColumnType("nvarchar(max)"); b.Property("Email") .HasColumnType("nvarchar(256)") .HasMaxLength(256); b.Property("EmailConfirmed") .HasColumnType("bit"); b.Property("LockoutEnabled") .HasColumnType("bit"); b.Property("LockoutEnd") .HasColumnType("datetimeoffset"); b.Property("NormalizedEmail") .HasColumnType("nvarchar(256)") .HasMaxLength(256); b.Property("NormalizedUserName") .HasColumnType("nvarchar(256)") .HasMaxLength(256); b.Property("PasswordHash") .HasColumnType("nvarchar(max)"); b.Property("PhoneNumber") .HasColumnType("nvarchar(max)"); b.Property("PhoneNumberConfirmed") .HasColumnType("bit"); b.Property("SecurityStamp") .HasColumnType("nvarchar(max)"); b.Property("TwoFactorEnabled") .HasColumnType("bit"); b.Property("UserName") .HasColumnType("nvarchar(256)") .HasMaxLength(256); b.HasKey("Id"); b.HasIndex("NormalizedEmail") .HasName("EmailIndex"); b.HasIndex("NormalizedUserName") .IsUnique() .HasName("UserNameIndex") .HasFilter("[NormalizedUserName] IS NOT NULL"); b.ToTable("AspNetUsers"); }); modelBuilder.Entity("PCC.Data.Models.ParameterSettings", b => { b.Property("Id") .HasColumnType("nvarchar(450)"); b.Property("RecommendedProcessorClockspeed") .HasColumnType("bigint"); b.Property("RecommendedProcessorCores") .HasColumnType("bigint"); b.Property("RecommendedProcessorGeneration") .HasColumnType("nvarchar(max)"); b.Property("RecommendedRAM") .HasColumnType("bigint"); b.Property("RecommendedRAMSpeed") .HasColumnType("bigint"); b.Property("RecommendedRAMType") .HasColumnType("nvarchar(max)"); b.Property("RecommendedStorageSpace") .HasColumnType("bigint"); b.Property("RecommendedVideoClockspeed") .HasColumnType("bigint"); b.Property("RecommendedVideoGeneration") .HasColumnType("nvarchar(max)"); b.Property("RecommendedVideoMemory") .HasColumnType("bigint"); b.Property("SettingId") .HasColumnType("nvarchar(450)"); b.Property("SoftwareId") .HasColumnType("nvarchar(450)"); b.HasKey("Id"); b.HasIndex("SettingId"); b.HasIndex("SoftwareId"); b.ToTable("ParameterSettings"); }); modelBuilder.Entity("PCC.Data.Models.Parts.GPU", b => { b.Property("Id") .HasColumnType("nvarchar(450)"); b.Property("Brand") .HasColumnType("nvarchar(max)"); b.Property("Clockspeed") .HasColumnType("bigint"); b.Property("ElectricalPowerConsumption") .HasColumnType("int"); b.Property("Generation") .HasColumnType("nvarchar(max)"); b.Property("ImageUrl") .HasColumnType("nvarchar(max)"); b.Property("Memory") .HasColumnType("bigint"); b.Property("Model") .HasColumnType("nvarchar(max)"); b.Property("Price") .HasColumnType("decimal(18,2)"); b.HasKey("Id"); b.ToTable("GPUs"); }); modelBuilder.Entity("PCC.Data.Models.Parts.HardDisk", b => { b.Property("Id") .HasColumnType("nvarchar(450)"); b.Property("Brand") .HasColumnType("nvarchar(max)"); b.Property("Capacity") .HasColumnType("bigint"); b.Property("ElectricalPowerConsumption") .HasColumnType("int"); b.Property("ImageUrl") .HasColumnType("nvarchar(max)"); b.Property("IsSSD") .HasColumnType("bit"); b.Property("Model") .HasColumnType("nvarchar(max)"); b.Property("Price") .HasColumnType("decimal(18,2)"); b.Property("Speed") .HasColumnType("bigint"); b.HasKey("Id"); b.ToTable("HardDisks"); }); modelBuilder.Entity("PCC.Data.Models.Parts.Motherboard", b => { b.Property("Id") .HasColumnType("nvarchar(450)"); b.Property("Brand") .HasColumnType("nvarchar(max)"); b.Property("CPUSupport") .HasColumnType("nvarchar(max)"); b.Property("ElectricalPowerConsumption") .HasColumnType("int"); b.Property("ImageUrl") .HasColumnType("nvarchar(max)"); b.Property("MemorySupport") .HasColumnType("nvarchar(max)"); b.Property("Model") .HasColumnType("nvarchar(max)"); b.Property("Price") .HasColumnType("decimal(18,2)"); b.HasKey("Id"); b.ToTable("Motherboards"); }); modelBuilder.Entity("PCC.Data.Models.Parts.PowerSupply", b => { b.Property("Id") .HasColumnType("nvarchar(450)"); b.Property("Brand") .HasColumnType("nvarchar(max)"); b.Property("ElectricalPowerConsumption") .HasColumnType("int"); b.Property("ImageUrl") .HasColumnType("nvarchar(max)"); b.Property("Model") .HasColumnType("nvarchar(max)"); b.Property("Price") .HasColumnType("decimal(18,2)"); b.Property("SupportedElectricalPowerConsumption") .HasColumnType("int"); b.HasKey("Id"); b.ToTable("PowerSupplies"); }); modelBuilder.Entity("PCC.Data.Models.Parts.RAM", b => { b.Property("Id") .HasColumnType("nvarchar(450)"); b.Property("Brand") .HasColumnType("nvarchar(max)"); b.Property("Capacity") .HasColumnType("bigint"); b.Property("ElectricalPowerConsumption") .HasColumnType("int"); b.Property("ImageUrl") .HasColumnType("nvarchar(max)"); b.Property("Model") .HasColumnType("nvarchar(max)"); b.Property("Price") .HasColumnType("decimal(18,2)"); b.Property("Speed") .HasColumnType("bigint"); b.Property("Type") .HasColumnType("nvarchar(max)"); b.HasKey("Id"); b.ToTable("RAMs"); }); modelBuilder.Entity("PCC.Data.Models.Processor", b => { b.Property("Id") .HasColumnType("nvarchar(450)"); b.Property("Brand") .HasColumnType("nvarchar(max)"); b.Property("Clockspeed") .HasColumnType("bigint"); b.Property("Cores") .HasColumnType("int"); b.Property("ElectricalPowerConsumption") .HasColumnType("int"); b.Property("ImageUrl") .HasColumnType("nvarchar(max)"); b.Property("Model") .HasColumnType("nvarchar(max)"); b.Property("Price") .HasColumnType("decimal(18,2)"); b.Property("Socket") .HasColumnType("nvarchar(max)"); b.HasKey("Id"); b.ToTable("Processors"); }); modelBuilder.Entity("PCC.Data.Models.Setting", b => { b.Property("Id") .HasColumnType("nvarchar(450)"); b.Property("IsGame") .HasColumnType("bit"); b.Property("Name") .HasColumnType("nvarchar(max)"); b.HasKey("Id"); b.ToTable("Settings"); }); modelBuilder.Entity("PCC.Data.Models.Software", b => { b.Property("Id") .HasColumnType("nvarchar(450)"); b.Property("Description") .HasColumnType("nvarchar(max)"); b.Property("IsGame") .HasColumnType("bit"); b.Property("ParamatersId") .HasColumnType("nvarchar(max)"); b.Property("Title") .HasColumnType("nvarchar(max)"); b.Property("Year") .HasColumnType("int"); b.HasKey("Id"); b.ToTable("Softwares"); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => { b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null) .WithMany() .HasForeignKey("RoleId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => { b.HasOne("PCC.Data.Models.PCCUser", null) .WithMany() .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => { b.HasOne("PCC.Data.Models.PCCUser", null) .WithMany() .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b => { b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null) .WithMany() .HasForeignKey("RoleId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("PCC.Data.Models.PCCUser", null) .WithMany() .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => { b.HasOne("PCC.Data.Models.PCCUser", null) .WithMany() .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); modelBuilder.Entity("PCC.Data.Models.ParameterSettings", b => { b.HasOne("PCC.Data.Models.Setting", "Setting") .WithMany() .HasForeignKey("SettingId"); b.HasOne("PCC.Data.Models.Software", "Software") .WithMany("ParametersPerSetting") .HasForeignKey("SoftwareId"); }); #pragma warning restore 612, 618 } } }