Added property for where item originated from to ProductListingInfo.

This commit is contained in:
Harrison Deng 2021-07-24 02:35:44 -05:00
parent 21cd712667
commit 3a079206b0
4 changed files with 10 additions and 1 deletions

View File

@ -9,7 +9,7 @@ using Props.Data;
namespace Props.Data.Migrations namespace Props.Data.Migrations
{ {
[DbContext(typeof(ApplicationDbContext))] [DbContext(typeof(ApplicationDbContext))]
[Migration("20210722180024_InitialCreate")] [Migration("20210724073427_InitialCreate")]
partial class InitialCreate partial class InitialCreate
{ {
protected override void BuildTargetModel(ModelBuilder modelBuilder) protected override void BuildTargetModel(ModelBuilder modelBuilder)
@ -188,6 +188,9 @@ namespace Props.Data.Migrations
b.Property<DateTime>("LastUpdated") b.Property<DateTime>("LastUpdated")
.HasColumnType("TEXT"); .HasColumnType("TEXT");
b.Property<string>("OriginName")
.HasColumnType("TEXT");
b.Property<string>("ProductName") b.Property<string>("ProductName")
.HasColumnType("TEXT"); .HasColumnType("TEXT");

View File

@ -52,6 +52,7 @@ namespace Props.Data.Migrations
{ {
Id = table.Column<int>(type: "INTEGER", nullable: false) Id = table.Column<int>(type: "INTEGER", nullable: false)
.Annotation("Sqlite:Autoincrement", true), .Annotation("Sqlite:Autoincrement", true),
OriginName = table.Column<string>(type: "TEXT", nullable: true),
Hits = table.Column<uint>(type: "INTEGER", nullable: false), Hits = table.Column<uint>(type: "INTEGER", nullable: false),
LastUpdated = table.Column<DateTime>(type: "TEXT", nullable: false), LastUpdated = table.Column<DateTime>(type: "TEXT", nullable: false),
ProductUrl = table.Column<string>(type: "TEXT", nullable: true), ProductUrl = table.Column<string>(type: "TEXT", nullable: true),

View File

@ -186,6 +186,9 @@ namespace Props.Data.Migrations
b.Property<DateTime>("LastUpdated") b.Property<DateTime>("LastUpdated")
.HasColumnType("TEXT"); .HasColumnType("TEXT");
b.Property<string>("OriginName")
.HasColumnType("TEXT");
b.Property<string>("ProductName") b.Property<string>("ProductName")
.HasColumnType("TEXT"); .HasColumnType("TEXT");

View File

@ -7,6 +7,8 @@ namespace Props.Models.Search
{ {
public int Id { get; set; } public int Id { get; set; }
public string OriginName { get; set; }
public uint Hits { get; set; } public uint Hits { get; set; }
public DateTime LastUpdated { get; set; } public DateTime LastUpdated { get; set; }