Website Summary Files Commits Branches @commit @diff @stats
path: root / src / Data / PCC.Data / Migrations / PCCDbContextModelSnapshot.cs
diff options
context:
space:
mode:
Commit77b7ff6ca840866605204e5d501fe23dd184bd5c (patch)
Author
 ivaylo.zhelev <ivaylo.zhelev@solarwinds.com>
2021-01-24 09:25:15 +0200
Committer
 ivaylo.zhelev <ivaylo.zhelev@solarwinds.com>
2021-01-24 09:25:15 +0200
Filesb2c8fac505ad91fa829256cd70c5c63e61739de8 /src/Data/PCC.Data/Migrations/PCCDbContextModelSnapshot.cs
pc-craft-77b7ff6ca840866605204e5d501fe23dd184bd5c.tar
pc-craft-77b7ff6ca840866605204e5d501fe23dd184bd5c.tar.gz
pc-craft-77b7ff6ca840866605204e5d501fe23dd184bd5c.zip
Parenta7270c59ccc3a9bdfd0101c00e763ad910057a6f (diff)
Initial Commit - Add all project files
1 files changed, 572 insertions, 0 deletions
-rw-r--r--src/Data/PCC.Data/Migrations/PCCDbContextModelSnapshot.cs572
diff --git a/src/Data/PCC.Data/Migrations/PCCDbContextModelSnapshot.cs b/src/Data/PCC.Data/Migrations/PCCDbContextModelSnapshot.cs
new file mode 100644
index 0000000..313b08e
--- /dev/null
+++ b/src/Data/PCC.Data/Migrations/PCCDbContextModelSnapshot.cs
@@ -0,0 +1,572 @@
+// <auto-generated />
+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<string>("Id")
+ .HasColumnType("nvarchar(450)");
+
+ b.Property<string>("ConcurrencyStamp")
+ .IsConcurrencyToken()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property<string>("Name")
+ .HasColumnType("nvarchar(256)")
+ .HasMaxLength(256);
+
+ b.Property<string>("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<string>", b =>
+ {
+ b.Property<int>("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int")
+ .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
+
+ b.Property<string>("ClaimType")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property<string>("ClaimValue")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property<string>("RoleId")
+ .IsRequired()
+ .HasColumnType("nvarchar(450)");
+
+ b.HasKey("Id");
+
+ b.HasIndex("RoleId");
+
+ b.ToTable("AspNetRoleClaims");
+ });
+
+ modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
+ {
+ b.Property<int>("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int")
+ .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
+
+ b.Property<string>("ClaimType")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property<string>("ClaimValue")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property<string>("UserId")
+ .IsRequired()
+ .HasColumnType("nvarchar(450)");
+
+ b.HasKey("Id");
+
+ b.HasIndex("UserId");
+
+ b.ToTable("AspNetUserClaims");
+ });
+
+ modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
+ {
+ b.Property<string>("LoginProvider")
+ .HasColumnType("nvarchar(128)")
+ .HasMaxLength(128);
+
+ b.Property<string>("ProviderKey")
+ .HasColumnType("nvarchar(128)")
+ .HasMaxLength(128);
+
+ b.Property<string>("ProviderDisplayName")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property<string>("UserId")
+ .IsRequired()
+ .HasColumnType("nvarchar(450)");
+
+ b.HasKey("LoginProvider", "ProviderKey");
+
+ b.HasIndex("UserId");
+
+ b.ToTable("AspNetUserLogins");
+ });
+
+ modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
+ {
+ b.Property<string>("UserId")
+ .HasColumnType("nvarchar(450)");
+
+ b.Property<string>("RoleId")
+ .HasColumnType("nvarchar(450)");
+
+ b.HasKey("UserId", "RoleId");
+
+ b.HasIndex("RoleId");
+
+ b.ToTable("AspNetUserRoles");
+ });
+
+ modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
+ {
+ b.Property<string>("UserId")
+ .HasColumnType("nvarchar(450)");
+
+ b.Property<string>("LoginProvider")
+ .HasColumnType("nvarchar(128)")
+ .HasMaxLength(128);
+
+ b.Property<string>("Name")
+ .HasColumnType("nvarchar(128)")
+ .HasMaxLength(128);
+
+ b.Property<string>("Value")
+ .HasColumnType("nvarchar(max)");
+
+ b.HasKey("UserId", "LoginProvider", "Name");
+
+ b.ToTable("AspNetUserTokens");
+ });
+
+ modelBuilder.Entity("PCC.Data.Models.PCCUser", b =>
+ {
+ b.Property<string>("Id")
+ .HasColumnType("nvarchar(450)");
+
+ b.Property<int>("AccessFailedCount")
+ .HasColumnType("int");
+
+ b.Property<string>("ConcurrencyStamp")
+ .IsConcurrencyToken()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property<string>("Email")
+ .HasColumnType("nvarchar(256)")
+ .HasMaxLength(256);
+
+ b.Property<bool>("EmailConfirmed")
+ .HasColumnType("bit");
+
+ b.Property<bool>("LockoutEnabled")
+ .HasColumnType("bit");
+
+ b.Property<DateTimeOffset?>("LockoutEnd")
+ .HasColumnType("datetimeoffset");
+
+ b.Property<string>("NormalizedEmail")
+ .HasColumnType("nvarchar(256)")
+ .HasMaxLength(256);
+
+ b.Property<string>("NormalizedUserName")
+ .HasColumnType("nvarchar(256)")
+ .HasMaxLength(256);
+
+ b.Property<string>("PasswordHash")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property<string>("PhoneNumber")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property<bool>("PhoneNumberConfirmed")
+ .HasColumnType("bit");
+
+ b.Property<string>("SecurityStamp")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property<bool>("TwoFactorEnabled")
+ .HasColumnType("bit");
+
+ b.Property<string>("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<string>("Id")
+ .HasColumnType("nvarchar(450)");
+
+ b.Property<long>("RecommendedProcessorClockspeed")
+ .HasColumnType("bigint");
+
+ b.Property<long>("RecommendedProcessorCores")
+ .HasColumnType("bigint");
+
+ b.Property<string>("RecommendedProcessorGeneration")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property<long>("RecommendedRAM")
+ .HasColumnType("bigint");
+
+ b.Property<long>("RecommendedRAMSpeed")
+ .HasColumnType("bigint");
+
+ b.Property<string>("RecommendedRAMType")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property<long>("RecommendedStorageSpace")
+ .HasColumnType("bigint");
+
+ b.Property<long>("RecommendedVideoClockspeed")
+ .HasColumnType("bigint");
+
+ b.Property<string>("RecommendedVideoGeneration")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property<long>("RecommendedVideoMemory")
+ .HasColumnType("bigint");
+
+ b.Property<string>("SettingId")
+ .HasColumnType("nvarchar(450)");
+
+ b.Property<string>("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<string>("Id")
+ .HasColumnType("nvarchar(450)");
+
+ b.Property<string>("Brand")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property<long>("Clockspeed")
+ .HasColumnType("bigint");
+
+ b.Property<int>("ElectricalPowerConsumption")
+ .HasColumnType("int");
+
+ b.Property<string>("Generation")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property<string>("ImageUrl")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property<long>("Memory")
+ .HasColumnType("bigint");
+
+ b.Property<string>("Model")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property<decimal>("Price")
+ .HasColumnType("decimal(18,2)");
+
+ b.HasKey("Id");
+
+ b.ToTable("GPUs");
+ });
+
+ modelBuilder.Entity("PCC.Data.Models.Parts.HardDisk", b =>
+ {
+ b.Property<string>("Id")
+ .HasColumnType("nvarchar(450)");
+
+ b.Property<string>("Brand")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property<long>("Capacity")
+ .HasColumnType("bigint");
+
+ b.Property<int>("ElectricalPowerConsumption")
+ .HasColumnType("int");
+
+ b.Property<string>("ImageUrl")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property<bool>("IsSSD")
+ .HasColumnType("bit");
+
+ b.Property<string>("Model")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property<decimal>("Price")
+ .HasColumnType("decimal(18,2)");
+
+ b.Property<long>("Speed")
+ .HasColumnType("bigint");
+
+ b.HasKey("Id");
+
+ b.ToTable("HardDisks");
+ });
+
+ modelBuilder.Entity("PCC.Data.Models.Parts.Motherboard", b =>
+ {
+ b.Property<string>("Id")
+ .HasColumnType("nvarchar(450)");
+
+ b.Property<string>("Brand")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property<string>("CPUSupport")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property<int>("ElectricalPowerConsumption")
+ .HasColumnType("int");
+
+ b.Property<string>("ImageUrl")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property<string>("MemorySupport")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property<string>("Model")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property<decimal>("Price")
+ .HasColumnType("decimal(18,2)");
+
+ b.HasKey("Id");
+
+ b.ToTable("Motherboards");
+ });
+
+ modelBuilder.Entity("PCC.Data.Models.Parts.PowerSupply", b =>
+ {
+ b.Property<string>("Id")
+ .HasColumnType("nvarchar(450)");
+
+ b.Property<string>("Brand")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property<int>("ElectricalPowerConsumption")
+ .HasColumnType("int");
+
+ b.Property<string>("ImageUrl")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property<string>("Model")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property<decimal>("Price")
+ .HasColumnType("decimal(18,2)");
+
+ b.Property<int>("SupportedElectricalPowerConsumption")
+ .HasColumnType("int");
+
+ b.HasKey("Id");
+
+ b.ToTable("PowerSupplies");
+ });
+
+ modelBuilder.Entity("PCC.Data.Models.Parts.RAM", b =>
+ {
+ b.Property<string>("Id")
+ .HasColumnType("nvarchar(450)");
+
+ b.Property<string>("Brand")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property<long>("Capacity")
+ .HasColumnType("bigint");
+
+ b.Property<int>("ElectricalPowerConsumption")
+ .HasColumnType("int");
+
+ b.Property<string>("ImageUrl")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property<string>("Model")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property<decimal>("Price")
+ .HasColumnType("decimal(18,2)");
+
+ b.Property<long>("Speed")
+ .HasColumnType("bigint");
+
+ b.Property<string>("Type")
+ .HasColumnType("nvarchar(max)");
+
+ b.HasKey("Id");
+
+ b.ToTable("RAMs");
+ });
+
+ modelBuilder.Entity("PCC.Data.Models.Processor", b =>
+ {
+ b.Property<string>("Id")
+ .HasColumnType("nvarchar(450)");
+
+ b.Property<string>("Brand")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property<long>("Clockspeed")
+ .HasColumnType("bigint");
+
+ b.Property<int>("Cores")
+ .HasColumnType("int");
+
+ b.Property<int>("ElectricalPowerConsumption")
+ .HasColumnType("int");
+
+ b.Property<string>("ImageUrl")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property<string>("Model")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property<decimal>("Price")
+ .HasColumnType("decimal(18,2)");
+
+ b.Property<string>("Socket")
+ .HasColumnType("nvarchar(max)");
+
+ b.HasKey("Id");
+
+ b.ToTable("Processors");
+ });
+
+ modelBuilder.Entity("PCC.Data.Models.Setting", b =>
+ {
+ b.Property<string>("Id")
+ .HasColumnType("nvarchar(450)");
+
+ b.Property<bool>("IsGame")
+ .HasColumnType("bit");
+
+ b.Property<string>("Name")
+ .HasColumnType("nvarchar(max)");
+
+ b.HasKey("Id");
+
+ b.ToTable("Settings");
+ });
+
+ modelBuilder.Entity("PCC.Data.Models.Software", b =>
+ {
+ b.Property<string>("Id")
+ .HasColumnType("nvarchar(450)");
+
+ b.Property<string>("Description")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property<bool>("IsGame")
+ .HasColumnType("bit");
+
+ b.Property<string>("ParamatersId")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property<string>("Title")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property<int>("Year")
+ .HasColumnType("int");
+
+ b.HasKey("Id");
+
+ b.ToTable("Softwares");
+ });
+
+ modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
+ {
+ b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null)
+ .WithMany()
+ .HasForeignKey("RoleId")
+ .OnDelete(DeleteBehavior.Cascade)
+ .IsRequired();
+ });
+
+ modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
+ {
+ b.HasOne("PCC.Data.Models.PCCUser", null)
+ .WithMany()
+ .HasForeignKey("UserId")
+ .OnDelete(DeleteBehavior.Cascade)
+ .IsRequired();
+ });
+
+ modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
+ {
+ b.HasOne("PCC.Data.Models.PCCUser", null)
+ .WithMany()
+ .HasForeignKey("UserId")
+ .OnDelete(DeleteBehavior.Cascade)
+ .IsRequired();
+ });
+
+ modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", 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<string>", 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
+ }
+ }
+}