update search and products
This commit is contained in:
@@ -11,7 +11,7 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
namespace GrossesMitainesAPI.Migrations
|
||||
{
|
||||
[DbContext(typeof(InventoryContext))]
|
||||
[Migration("20221016150710_Initial-Db")]
|
||||
[Migration("20221017003248_Initial-Db")]
|
||||
partial class InitialDb
|
||||
{
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
@@ -45,6 +45,9 @@ namespace GrossesMitainesAPI.Migrations
|
||||
b.Property<decimal>("Price")
|
||||
.HasColumnType("decimal(18,2)");
|
||||
|
||||
b.Property<decimal>("PromoPrice")
|
||||
.HasColumnType("decimal(18,2)");
|
||||
|
||||
b.Property<long>("Quantity")
|
||||
.HasColumnType("bigint");
|
||||
|
||||
@@ -68,6 +71,7 @@ namespace GrossesMitainesAPI.Migrations
|
||||
Description = "Pour faire votre propre bonhomme de 1837, comme dans le bon vieux temps.",
|
||||
ImageName = "ceintureflechee",
|
||||
Price = 85.86m,
|
||||
PromoPrice = 0m,
|
||||
Quantity = 1L,
|
||||
Status = 4,
|
||||
Title = "Ceinture flèchée"
|
||||
@@ -79,6 +83,7 @@ namespace GrossesMitainesAPI.Migrations
|
||||
Description = "Parce que ça sent la coupe!",
|
||||
ImageName = "pantouflesCH",
|
||||
Price = 15.64m,
|
||||
PromoPrice = 0m,
|
||||
Quantity = 54L,
|
||||
Status = 0,
|
||||
Title = "Pantoufles du Canadien en Phentex"
|
||||
@@ -90,6 +95,7 @@ namespace GrossesMitainesAPI.Migrations
|
||||
Description = "On ne lui ferait pas mal, en tout cas!!",
|
||||
ImageName = "jeanlucmongrain",
|
||||
Price = 1453.12m,
|
||||
PromoPrice = 0m,
|
||||
Quantity = 1L,
|
||||
Status = 3,
|
||||
Title = "Jean-Luc Mongrain"
|
@@ -18,6 +18,7 @@ namespace GrossesMitainesAPI.Migrations
|
||||
Category = table.Column<string>(type: "nvarchar(max)", nullable: false),
|
||||
Description = table.Column<string>(type: "nvarchar(max)", nullable: false),
|
||||
Price = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
|
||||
PromoPrice = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
|
||||
Quantity = table.Column<long>(type: "bigint", nullable: false),
|
||||
Status = table.Column<int>(type: "int", nullable: false),
|
||||
ImageName = table.Column<string>(type: "nvarchar(max)", nullable: true)
|
||||
@@ -29,18 +30,18 @@ namespace GrossesMitainesAPI.Migrations
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "Products",
|
||||
columns: new[] { "Id", "Category", "Description", "ImageName", "Price", "Quantity", "Status", "Title" },
|
||||
values: new object[] { 1, "Linge", "Pour faire votre propre bonhomme de 1837, comme dans le bon vieux temps.", "ceintureflechee", 85.86m, 1L, 4, "Ceinture flèchée" });
|
||||
columns: new[] { "Id", "Category", "Description", "ImageName", "Price", "PromoPrice", "Quantity", "Status", "Title" },
|
||||
values: new object[] { 1, "Linge", "Pour faire votre propre bonhomme de 1837, comme dans le bon vieux temps.", "ceintureflechee", 85.86m, 0m, 1L, 4, "Ceinture flèchée" });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "Products",
|
||||
columns: new[] { "Id", "Category", "Description", "ImageName", "Price", "Quantity", "Status", "Title" },
|
||||
values: new object[] { 2, "Linge", "Parce que ça sent la coupe!", "pantouflesCH", 15.64m, 54L, 0, "Pantoufles du Canadien en Phentex" });
|
||||
columns: new[] { "Id", "Category", "Description", "ImageName", "Price", "PromoPrice", "Quantity", "Status", "Title" },
|
||||
values: new object[] { 2, "Linge", "Parce que ça sent la coupe!", "pantouflesCH", 15.64m, 0m, 54L, 0, "Pantoufles du Canadien en Phentex" });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "Products",
|
||||
columns: new[] { "Id", "Category", "Description", "ImageName", "Price", "Quantity", "Status", "Title" },
|
||||
values: new object[] { 3, "Homme", "On ne lui ferait pas mal, en tout cas!!", "jeanlucmongrain", 1453.12m, 1L, 3, "Jean-Luc Mongrain" });
|
||||
columns: new[] { "Id", "Category", "Description", "ImageName", "Price", "PromoPrice", "Quantity", "Status", "Title" },
|
||||
values: new object[] { 3, "Homme", "On ne lui ferait pas mal, en tout cas!!", "jeanlucmongrain", 1453.12m, 0m, 1L, 3, "Jean-Luc Mongrain" });
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
@@ -43,6 +43,9 @@ namespace GrossesMitainesAPI.Migrations
|
||||
b.Property<decimal>("Price")
|
||||
.HasColumnType("decimal(18,2)");
|
||||
|
||||
b.Property<decimal>("PromoPrice")
|
||||
.HasColumnType("decimal(18,2)");
|
||||
|
||||
b.Property<long>("Quantity")
|
||||
.HasColumnType("bigint");
|
||||
|
||||
@@ -66,6 +69,7 @@ namespace GrossesMitainesAPI.Migrations
|
||||
Description = "Pour faire votre propre bonhomme de 1837, comme dans le bon vieux temps.",
|
||||
ImageName = "ceintureflechee",
|
||||
Price = 85.86m,
|
||||
PromoPrice = 0m,
|
||||
Quantity = 1L,
|
||||
Status = 4,
|
||||
Title = "Ceinture flèchée"
|
||||
@@ -77,6 +81,7 @@ namespace GrossesMitainesAPI.Migrations
|
||||
Description = "Parce que ça sent la coupe!",
|
||||
ImageName = "pantouflesCH",
|
||||
Price = 15.64m,
|
||||
PromoPrice = 0m,
|
||||
Quantity = 54L,
|
||||
Status = 0,
|
||||
Title = "Pantoufles du Canadien en Phentex"
|
||||
@@ -88,6 +93,7 @@ namespace GrossesMitainesAPI.Migrations
|
||||
Description = "On ne lui ferait pas mal, en tout cas!!",
|
||||
ImageName = "jeanlucmongrain",
|
||||
Price = 1453.12m,
|
||||
PromoPrice = 0m,
|
||||
Quantity = 1L,
|
||||
Status = 3,
|
||||
Title = "Jean-Luc Mongrain"
|
||||
|
Reference in New Issue
Block a user