GGMM/GrossesMitaines/GrossesMitainesAPI/Migrations/20221108030828_invoices.cs

193 lines
7.3 KiB
C#
Raw Normal View History

2022-11-07 22:13:11 -05:00
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace GrossesMitainesAPI.Migrations
{
public partial class invoices : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.UpdateData(
table: "AspNetRoles",
keyColumn: "Id",
keyValue: "1b7b9c55-c746-493a-a24f-3d5ca937298e",
column: "ConcurrencyStamp",
value: "664e61a9-f77d-46ee-805c-98084e8b2fcb");
migrationBuilder.UpdateData(
table: "AspNetRoles",
keyColumn: "Id",
keyValue: "c9e08b20-d8a5-473f-9f52-572eb23c12af",
column: "ConcurrencyStamp",
value: "3b41186e-cc4b-49c0-b172-4c2b9be614d2");
migrationBuilder.UpdateData(
table: "AspNetUsers",
keyColumn: "Id",
keyValue: "ecf7503a-591c-454e-a824-048e10bd0474",
columns: new[] { "ConcurrencyStamp", "PasswordHash", "SecurityStamp" },
values: new object[] { "55f4780c-49dd-44ea-b566-30d058c0005b", "AQAAAAEAACcQAAAAEK/n6j8ui+ZivXKUi2Lv6Jr7wXBJQdOdXawkvVDBlr4Rnxc7DxsuWwaaX5vN3YSjmQ==", "e3f2e569-fb52-49af-b9bc-10bf8df2b778" });
migrationBuilder.InsertData(
table: "Invoices",
columns: new[] { "Id", "EmailAddress", "FirstName", "LastName", "LinkedAccountId", "PhoneNumber", "PurchaseDate", "ShippingAddressId", "Status" },
values: new object[,]
{
{ 1, "admin@admin.com", "Roger", "Admin", "ecf7503a-591c-454e-a824-048e10bd0474", "111-111-1111", new DateTime(2022, 11, 7, 22, 8, 27, 792, DateTimeKind.Local).AddTicks(1206), 1, 0 },
{ 2, "admin@admin.com", "Roger", "Admin", "ecf7503a-591c-454e-a824-048e10bd0474", "111-111-1111", new DateTime(2022, 11, 7, 22, 8, 27, 792, DateTimeKind.Local).AddTicks(1244), 1, 1 },
{ 3, "admin@admin.com", "Roger", "Admin", "ecf7503a-591c-454e-a824-048e10bd0474", "111-111-1111", new DateTime(2022, 11, 7, 22, 8, 27, 792, DateTimeKind.Local).AddTicks(1247), 1, 3 },
{ 4, "admin@admin.com", "Roger", "Admin", "ecf7503a-591c-454e-a824-048e10bd0474", "111-111-1111", new DateTime(2022, 11, 7, 22, 8, 27, 792, DateTimeKind.Local).AddTicks(1249), 1, 4 },
{ 5, "admin@admin.com", "Roger", "Admin", "ecf7503a-591c-454e-a824-048e10bd0474", "111-111-1111", new DateTime(2022, 11, 7, 22, 8, 27, 792, DateTimeKind.Local).AddTicks(1251), 1, 5 }
});
migrationBuilder.InsertData(
table: "ProductInvoice",
columns: new[] { "Id", "InvoiceModelId", "ProductId", "Quantity" },
values: new object[,]
{
{ 1, 1, 1, 2L },
{ 2, 1, 4, 5L },
{ 3, 2, 3, 1L },
{ 4, 2, 5, 2L },
{ 5, 2, 7, 1L },
{ 6, 3, 9, 1L },
{ 7, 3, 11, 1L },
{ 8, 4, 14, 1L },
{ 9, 4, 13, 1L },
{ 10, 4, 16, 1L },
{ 11, 4, 24, 25L },
{ 12, 5, 25, 1L },
{ 13, 5, 29, 1L },
{ 14, 5, 30, 1L },
{ 15, 5, 15, 2L }
});
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DeleteData(
table: "ProductInvoice",
keyColumn: "Id",
keyValue: 1);
migrationBuilder.DeleteData(
table: "ProductInvoice",
keyColumn: "Id",
keyValue: 2);
migrationBuilder.DeleteData(
table: "ProductInvoice",
keyColumn: "Id",
keyValue: 3);
migrationBuilder.DeleteData(
table: "ProductInvoice",
keyColumn: "Id",
keyValue: 4);
migrationBuilder.DeleteData(
table: "ProductInvoice",
keyColumn: "Id",
keyValue: 5);
migrationBuilder.DeleteData(
table: "ProductInvoice",
keyColumn: "Id",
keyValue: 6);
migrationBuilder.DeleteData(
table: "ProductInvoice",
keyColumn: "Id",
keyValue: 7);
migrationBuilder.DeleteData(
table: "ProductInvoice",
keyColumn: "Id",
keyValue: 8);
migrationBuilder.DeleteData(
table: "ProductInvoice",
keyColumn: "Id",
keyValue: 9);
migrationBuilder.DeleteData(
table: "ProductInvoice",
keyColumn: "Id",
keyValue: 10);
migrationBuilder.DeleteData(
table: "ProductInvoice",
keyColumn: "Id",
keyValue: 11);
migrationBuilder.DeleteData(
table: "ProductInvoice",
keyColumn: "Id",
keyValue: 12);
migrationBuilder.DeleteData(
table: "ProductInvoice",
keyColumn: "Id",
keyValue: 13);
migrationBuilder.DeleteData(
table: "ProductInvoice",
keyColumn: "Id",
keyValue: 14);
migrationBuilder.DeleteData(
table: "ProductInvoice",
keyColumn: "Id",
keyValue: 15);
migrationBuilder.DeleteData(
table: "Invoices",
keyColumn: "Id",
keyValue: 1);
migrationBuilder.DeleteData(
table: "Invoices",
keyColumn: "Id",
keyValue: 2);
migrationBuilder.DeleteData(
table: "Invoices",
keyColumn: "Id",
keyValue: 3);
migrationBuilder.DeleteData(
table: "Invoices",
keyColumn: "Id",
keyValue: 4);
migrationBuilder.DeleteData(
table: "Invoices",
keyColumn: "Id",
keyValue: 5);
migrationBuilder.UpdateData(
table: "AspNetRoles",
keyColumn: "Id",
keyValue: "1b7b9c55-c746-493a-a24f-3d5ca937298e",
column: "ConcurrencyStamp",
value: "7ee11485-e950-4e5f-bcc3-93d087323121");
migrationBuilder.UpdateData(
table: "AspNetRoles",
keyColumn: "Id",
keyValue: "c9e08b20-d8a5-473f-9f52-572eb23c12af",
column: "ConcurrencyStamp",
value: "0c71a591-3978-4682-b1d9-50f1940c0c18");
migrationBuilder.UpdateData(
table: "AspNetUsers",
keyColumn: "Id",
keyValue: "ecf7503a-591c-454e-a824-048e10bd0474",
columns: new[] { "ConcurrencyStamp", "PasswordHash", "SecurityStamp" },
values: new object[] { "037567cb-829a-4e64-aeff-77f9c18425b5", "AQAAAAEAACcQAAAAEE/NtmY1fEUixw6DTC/uv+7yv+2Na/85xzU7pJgB5Ll7UZUmcUZxuVLcgYkb9sKPOA==", "a39900db-f0c6-4a7c-9cee-d8f454dd2516" });
}
}
}