2021-07-21 06:58:49 +00:00
|
|
|
|
// <auto-generated />
|
2021-07-21 00:08:57 +00:00
|
|
|
|
using System;
|
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
2021-07-21 06:58:49 +00:00
|
|
|
|
using Props.Data;
|
2021-07-21 00:08:57 +00:00
|
|
|
|
|
|
|
|
|
namespace Props.Data.Migrations
|
|
|
|
|
{
|
|
|
|
|
[DbContext(typeof(ApplicationDbContext))]
|
2021-07-24 07:35:44 +00:00
|
|
|
|
[Migration("20210724073427_InitialCreate")]
|
2021-07-21 06:58:49 +00:00
|
|
|
|
partial class InitialCreate
|
2021-07-21 00:08:57 +00:00
|
|
|
|
{
|
|
|
|
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|
|
|
|
{
|
|
|
|
|
#pragma warning disable 612, 618
|
|
|
|
|
modelBuilder
|
2021-07-21 06:58:49 +00:00
|
|
|
|
.HasAnnotation("ProductVersion", "5.0.8");
|
2021-07-21 00:08:57 +00:00
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<string>("Id")
|
|
|
|
|
.HasColumnType("TEXT");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
|
|
|
.IsConcurrencyToken()
|
|
|
|
|
.HasColumnType("TEXT");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Name")
|
2021-07-21 06:58:49 +00:00
|
|
|
|
.HasMaxLength(256)
|
|
|
|
|
.HasColumnType("TEXT");
|
2021-07-21 00:08:57 +00:00
|
|
|
|
|
|
|
|
|
b.Property<string>("NormalizedName")
|
2021-07-21 06:58:49 +00:00
|
|
|
|
.HasMaxLength(256)
|
|
|
|
|
.HasColumnType("TEXT");
|
2021-07-21 00:08:57 +00:00
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("NormalizedName")
|
|
|
|
|
.IsUnique()
|
2021-07-21 06:58:49 +00:00
|
|
|
|
.HasDatabaseName("RoleNameIndex");
|
2021-07-21 00:08:57 +00:00
|
|
|
|
|
|
|
|
|
b.ToTable("AspNetRoles");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ClaimType")
|
|
|
|
|
.HasColumnType("TEXT");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ClaimValue")
|
|
|
|
|
.HasColumnType("TEXT");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("RoleId")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("TEXT");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("RoleId");
|
|
|
|
|
|
|
|
|
|
b.ToTable("AspNetRoleClaims");
|
|
|
|
|
});
|
|
|
|
|
|
2021-07-21 06:58:49 +00:00
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ClaimType")
|
|
|
|
|
.HasColumnType("TEXT");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ClaimValue")
|
|
|
|
|
.HasColumnType("TEXT");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("UserId")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("TEXT");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
|
|
|
|
|
|
b.ToTable("AspNetUserClaims");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<string>("LoginProvider")
|
|
|
|
|
.HasMaxLength(128)
|
|
|
|
|
.HasColumnType("TEXT");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ProviderKey")
|
|
|
|
|
.HasMaxLength(128)
|
|
|
|
|
.HasColumnType("TEXT");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ProviderDisplayName")
|
|
|
|
|
.HasColumnType("TEXT");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("UserId")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("TEXT");
|
|
|
|
|
|
|
|
|
|
b.HasKey("LoginProvider", "ProviderKey");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
|
|
|
|
|
|
b.ToTable("AspNetUserLogins");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<string>("UserId")
|
|
|
|
|
.HasColumnType("TEXT");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("RoleId")
|
|
|
|
|
.HasColumnType("TEXT");
|
|
|
|
|
|
|
|
|
|
b.HasKey("UserId", "RoleId");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("RoleId");
|
|
|
|
|
|
|
|
|
|
b.ToTable("AspNetUserRoles");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<string>("UserId")
|
|
|
|
|
.HasColumnType("TEXT");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("LoginProvider")
|
|
|
|
|
.HasMaxLength(128)
|
|
|
|
|
.HasColumnType("TEXT");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Name")
|
|
|
|
|
.HasMaxLength(128)
|
|
|
|
|
.HasColumnType("TEXT");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Value")
|
|
|
|
|
.HasColumnType("TEXT");
|
|
|
|
|
|
|
|
|
|
b.HasKey("UserId", "LoginProvider", "Name");
|
|
|
|
|
|
|
|
|
|
b.ToTable("AspNetUserTokens");
|
|
|
|
|
});
|
|
|
|
|
|
2021-07-22 21:12:27 +00:00
|
|
|
|
modelBuilder.Entity("Props.Models.ResultsPreferences", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ApplicationUserId")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("TEXT");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Order")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("TEXT");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ProfileName")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("TEXT");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("ApplicationUserId")
|
|
|
|
|
.IsUnique();
|
|
|
|
|
|
|
|
|
|
b.ToTable("ResultsPreferences");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Props.Models.Search.ProductListingInfo", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<uint>("Hits")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime>("LastUpdated")
|
|
|
|
|
.HasColumnType("TEXT");
|
|
|
|
|
|
2021-07-24 07:35:44 +00:00
|
|
|
|
b.Property<string>("OriginName")
|
|
|
|
|
.HasColumnType("TEXT");
|
|
|
|
|
|
2021-07-22 21:12:27 +00:00
|
|
|
|
b.Property<string>("ProductName")
|
|
|
|
|
.HasColumnType("TEXT");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ProductUrl")
|
|
|
|
|
.HasColumnType("TEXT");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.ToTable("TrackedListings");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Props.Models.Search.SearchOutline", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ApplicationUserId")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("TEXT");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Disabled")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("TEXT");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Filters")
|
|
|
|
|
.HasColumnType("TEXT");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("ApplicationUserId");
|
|
|
|
|
|
|
|
|
|
b.ToTable("SearchOutlines");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Props.Models.User.ApplicationUser", b =>
|
2021-07-21 00:08:57 +00:00
|
|
|
|
{
|
|
|
|
|
b.Property<string>("Id")
|
|
|
|
|
.HasColumnType("TEXT");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("AccessFailedCount")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
|
|
|
.IsConcurrencyToken()
|
|
|
|
|
.HasColumnType("TEXT");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Email")
|
2021-07-21 06:58:49 +00:00
|
|
|
|
.HasMaxLength(256)
|
|
|
|
|
.HasColumnType("TEXT");
|
2021-07-21 00:08:57 +00:00
|
|
|
|
|
|
|
|
|
b.Property<bool>("EmailConfirmed")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("LockoutEnabled")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset?>("LockoutEnd")
|
|
|
|
|
.HasColumnType("TEXT");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("NormalizedEmail")
|
2021-07-21 06:58:49 +00:00
|
|
|
|
.HasMaxLength(256)
|
|
|
|
|
.HasColumnType("TEXT");
|
2021-07-21 00:08:57 +00:00
|
|
|
|
|
|
|
|
|
b.Property<string>("NormalizedUserName")
|
2021-07-21 06:58:49 +00:00
|
|
|
|
.HasMaxLength(256)
|
|
|
|
|
.HasColumnType("TEXT");
|
2021-07-21 00:08:57 +00:00
|
|
|
|
|
|
|
|
|
b.Property<string>("PasswordHash")
|
|
|
|
|
.HasColumnType("TEXT");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("PhoneNumber")
|
|
|
|
|
.HasColumnType("TEXT");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("PhoneNumberConfirmed")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("SecurityStamp")
|
|
|
|
|
.HasColumnType("TEXT");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("TwoFactorEnabled")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("UserName")
|
2021-07-21 06:58:49 +00:00
|
|
|
|
.HasMaxLength(256)
|
|
|
|
|
.HasColumnType("TEXT");
|
2021-07-21 00:08:57 +00:00
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("NormalizedEmail")
|
2021-07-21 06:58:49 +00:00
|
|
|
|
.HasDatabaseName("EmailIndex");
|
2021-07-21 00:08:57 +00:00
|
|
|
|
|
|
|
|
|
b.HasIndex("NormalizedUserName")
|
|
|
|
|
.IsUnique()
|
2021-07-21 06:58:49 +00:00
|
|
|
|
.HasDatabaseName("UserNameIndex");
|
2021-07-21 00:08:57 +00:00
|
|
|
|
|
|
|
|
|
b.ToTable("AspNetUsers");
|
|
|
|
|
});
|
|
|
|
|
|
2021-07-21 06:58:49 +00:00
|
|
|
|
modelBuilder.Entity("Props.Shared.Models.User.ApplicationPreferences", b =>
|
2021-07-21 00:08:57 +00:00
|
|
|
|
{
|
2021-07-21 06:58:49 +00:00
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ApplicationUserId")
|
|
|
|
|
.IsRequired()
|
2021-07-21 00:08:57 +00:00
|
|
|
|
.HasColumnType("TEXT");
|
|
|
|
|
|
2021-07-21 06:58:49 +00:00
|
|
|
|
b.Property<bool>("DarkMode")
|
|
|
|
|
.HasColumnType("INTEGER");
|
2021-07-21 00:08:57 +00:00
|
|
|
|
|
2021-07-21 06:58:49 +00:00
|
|
|
|
b.Property<bool>("EnableSearchHistory")
|
|
|
|
|
.HasColumnType("INTEGER");
|
2021-07-21 00:08:57 +00:00
|
|
|
|
|
2021-07-21 06:58:49 +00:00
|
|
|
|
b.HasKey("Id");
|
2021-07-21 00:08:57 +00:00
|
|
|
|
|
2021-07-21 06:58:49 +00:00
|
|
|
|
b.HasIndex("ApplicationUserId")
|
|
|
|
|
.IsUnique();
|
2021-07-21 00:08:57 +00:00
|
|
|
|
|
2021-07-21 06:58:49 +00:00
|
|
|
|
b.ToTable("ApplicationPreferences");
|
2021-07-21 00:08:57 +00:00
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
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 =>
|
|
|
|
|
{
|
2021-07-22 21:12:27 +00:00
|
|
|
|
b.HasOne("Props.Models.User.ApplicationUser", null)
|
2021-07-21 00:08:57 +00:00
|
|
|
|
.WithMany()
|
|
|
|
|
.HasForeignKey("UserId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
|
|
|
|
|
{
|
2021-07-22 21:12:27 +00:00
|
|
|
|
b.HasOne("Props.Models.User.ApplicationUser", null)
|
2021-07-21 00:08:57 +00:00
|
|
|
|
.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();
|
|
|
|
|
|
2021-07-22 21:12:27 +00:00
|
|
|
|
b.HasOne("Props.Models.User.ApplicationUser", null)
|
2021-07-21 00:08:57 +00:00
|
|
|
|
.WithMany()
|
|
|
|
|
.HasForeignKey("UserId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
|
|
|
|
|
{
|
2021-07-22 21:12:27 +00:00
|
|
|
|
b.HasOne("Props.Models.User.ApplicationUser", null)
|
2021-07-21 00:08:57 +00:00
|
|
|
|
.WithMany()
|
|
|
|
|
.HasForeignKey("UserId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
});
|
2021-07-21 06:58:49 +00:00
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Props.Models.ResultsPreferences", b =>
|
|
|
|
|
{
|
2021-07-22 21:12:27 +00:00
|
|
|
|
b.HasOne("Props.Models.User.ApplicationUser", "ApplicationUser")
|
2021-07-21 06:58:49 +00:00
|
|
|
|
.WithOne("ResultsPreferences")
|
|
|
|
|
.HasForeignKey("Props.Models.ResultsPreferences", "ApplicationUserId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
2021-07-22 21:12:27 +00:00
|
|
|
|
|
|
|
|
|
b.Navigation("ApplicationUser");
|
2021-07-21 06:58:49 +00:00
|
|
|
|
});
|
|
|
|
|
|
2021-07-22 21:12:27 +00:00
|
|
|
|
modelBuilder.Entity("Props.Models.Search.SearchOutline", b =>
|
2021-07-21 06:58:49 +00:00
|
|
|
|
{
|
2021-07-22 21:12:27 +00:00
|
|
|
|
b.HasOne("Props.Models.User.ApplicationUser", "ApplicationUser")
|
|
|
|
|
.WithMany("SearchOutlines")
|
|
|
|
|
.HasForeignKey("ApplicationUserId")
|
2021-07-21 06:58:49 +00:00
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
2021-07-22 21:12:27 +00:00
|
|
|
|
|
|
|
|
|
b.Navigation("ApplicationUser");
|
2021-07-21 06:58:49 +00:00
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Props.Shared.Models.User.ApplicationPreferences", b =>
|
|
|
|
|
{
|
2021-07-22 21:12:27 +00:00
|
|
|
|
b.HasOne("Props.Models.User.ApplicationUser", "ApplicationUser")
|
2021-07-21 06:58:49 +00:00
|
|
|
|
.WithOne("ApplicationPreferences")
|
|
|
|
|
.HasForeignKey("Props.Shared.Models.User.ApplicationPreferences", "ApplicationUserId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
2021-07-22 21:12:27 +00:00
|
|
|
|
|
|
|
|
|
b.Navigation("ApplicationUser");
|
2021-07-21 06:58:49 +00:00
|
|
|
|
});
|
|
|
|
|
|
2021-07-22 21:12:27 +00:00
|
|
|
|
modelBuilder.Entity("Props.Models.User.ApplicationUser", b =>
|
2021-07-21 06:58:49 +00:00
|
|
|
|
{
|
|
|
|
|
b.Navigation("ApplicationPreferences")
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
b.Navigation("ResultsPreferences")
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
2021-07-22 21:12:27 +00:00
|
|
|
|
b.Navigation("SearchOutlines");
|
2021-07-21 06:58:49 +00:00
|
|
|
|
});
|
2021-07-21 00:08:57 +00:00
|
|
|
|
#pragma warning restore 612, 618
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|