react-version #1
@ -12,17 +12,18 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
namespace GrossesMitainesAPI.Migrations
|
||||
{
|
||||
[DbContext(typeof(InventoryContext))]
|
||||
[Migration("20221204170850_Initial-Db")]
|
||||
[Migration("20221210012741_Initial-Db")]
|
||||
partial class InitialDb
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "6.0.10")
|
||||
.HasAnnotation("ProductVersion", "7.0.0")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 128);
|
||||
|
||||
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1);
|
||||
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
|
||||
|
||||
modelBuilder.Entity("GrossesMitainesAPI.Data.InventoryUser", b =>
|
||||
{
|
||||
@ -103,7 +104,7 @@ namespace GrossesMitainesAPI.Migrations
|
||||
{
|
||||
Id = "ecf7503a-591c-454e-a824-048e10bd0474",
|
||||
AccessFailedCount = 0,
|
||||
ConcurrencyStamp = "61f3249f-495f-48c8-ac7e-7d21b3da82c7",
|
||||
ConcurrencyStamp = "1455b4bd-76ae-4671-b104-b1c7d7ef337b",
|
||||
Email = "admin@admin.com",
|
||||
EmailConfirmed = false,
|
||||
FirstName = "Roger",
|
||||
@ -111,10 +112,10 @@ namespace GrossesMitainesAPI.Migrations
|
||||
LockoutEnabled = false,
|
||||
NormalizedEmail = "ADMIN@ADMIN.COM",
|
||||
NormalizedUserName = "ADMIN",
|
||||
PasswordHash = "AQAAAAEAACcQAAAAELswgBNsSfJwmigdKX2rpHseOEi20F+ZUhxapu80HTnxZamC3lu1hyAGMXj4kQumMw==",
|
||||
PasswordHash = "AQAAAAIAAYagAAAAECehU51Dt6aJVc1X4LdCVNRBwLDpBMwRgvRpEIDCY8leqg3Bs5kSeIdwQxX3iCbOLw==",
|
||||
PhoneNumber = "111-111-1111",
|
||||
PhoneNumberConfirmed = false,
|
||||
SecurityStamp = "3098997b-a081-41ec-aa08-6cdea0028db7",
|
||||
SecurityStamp = "fc707be9-eb95-4b89-abad-aab8e91d8a09",
|
||||
TwoFactorEnabled = false,
|
||||
UserName = "Admin"
|
||||
},
|
||||
@ -122,7 +123,7 @@ namespace GrossesMitainesAPI.Migrations
|
||||
{
|
||||
Id = "af9178c8-1a02-4ff8-bc0a-c8248dad6e09",
|
||||
AccessFailedCount = 0,
|
||||
ConcurrencyStamp = "b7103a3b-8f05-462d-9fc0-5d4faa4669dc",
|
||||
ConcurrencyStamp = "8e920e1b-b10c-4069-bb37-20a0799c7716",
|
||||
Email = "paul@exemple.com",
|
||||
EmailConfirmed = false,
|
||||
FirstName = "Paul",
|
||||
@ -130,10 +131,10 @@ namespace GrossesMitainesAPI.Migrations
|
||||
LockoutEnabled = false,
|
||||
NormalizedEmail = "PAUL@EXEMPLE.COM",
|
||||
NormalizedUserName = "PASLA",
|
||||
PasswordHash = "AQAAAAEAACcQAAAAEN68b+gEQV5Vx2grBL94+BzugXFrgXko6KtdY3p/NJN17mk8QCpGlQfJ3BMe040+dg==",
|
||||
PasswordHash = "AQAAAAIAAYagAAAAECtR2/p0LFLK3EklD3totdaYcQ4+uPCaCk1D1L+WnBM2QayALdSssfY3VHrBlAL1qQ==",
|
||||
PhoneNumber = "222-222-2222",
|
||||
PhoneNumberConfirmed = false,
|
||||
SecurityStamp = "99183d90-1f1c-4a8e-9891-ea8ab3b714d0",
|
||||
SecurityStamp = "a3a83c5e-184b-4c2b-8dcd-c9a73e8eaef3",
|
||||
TwoFactorEnabled = false,
|
||||
UserName = "PasLa"
|
||||
});
|
||||
@ -145,7 +146,7 @@ namespace GrossesMitainesAPI.Migrations
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<string>("Appartment")
|
||||
.HasColumnType("nvarchar(max)");
|
||||
@ -229,7 +230,7 @@ namespace GrossesMitainesAPI.Migrations
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<long>("AmountInCents")
|
||||
.HasColumnType("bigint");
|
||||
@ -269,7 +270,7 @@ namespace GrossesMitainesAPI.Migrations
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<string>("EmailAddress")
|
||||
.IsRequired()
|
||||
@ -323,7 +324,7 @@ namespace GrossesMitainesAPI.Migrations
|
||||
LastName = "Admin",
|
||||
LinkedAccountId = "ecf7503a-591c-454e-a824-048e10bd0474",
|
||||
PhoneNumber = "111-111-1111",
|
||||
PurchaseDate = new DateTime(2022, 12, 4, 9, 8, 50, 6, DateTimeKind.Local).AddTicks(9261),
|
||||
PurchaseDate = new DateTime(2022, 12, 9, 17, 27, 39, 722, DateTimeKind.Local).AddTicks(5677),
|
||||
ShippingAddressId = 1,
|
||||
Status = 0
|
||||
},
|
||||
@ -335,7 +336,7 @@ namespace GrossesMitainesAPI.Migrations
|
||||
LastName = "Admin",
|
||||
LinkedAccountId = "ecf7503a-591c-454e-a824-048e10bd0474",
|
||||
PhoneNumber = "111-111-1111",
|
||||
PurchaseDate = new DateTime(2022, 12, 4, 9, 8, 50, 6, DateTimeKind.Local).AddTicks(9300),
|
||||
PurchaseDate = new DateTime(2022, 12, 9, 17, 27, 39, 722, DateTimeKind.Local).AddTicks(5852),
|
||||
ShippingAddressId = 1,
|
||||
Status = 1
|
||||
},
|
||||
@ -347,7 +348,7 @@ namespace GrossesMitainesAPI.Migrations
|
||||
LastName = "Admin",
|
||||
LinkedAccountId = "ecf7503a-591c-454e-a824-048e10bd0474",
|
||||
PhoneNumber = "111-111-1111",
|
||||
PurchaseDate = new DateTime(2022, 12, 4, 9, 8, 50, 6, DateTimeKind.Local).AddTicks(9327),
|
||||
PurchaseDate = new DateTime(2022, 12, 9, 17, 27, 39, 722, DateTimeKind.Local).AddTicks(5885),
|
||||
ShippingAddressId = 1,
|
||||
Status = 3
|
||||
},
|
||||
@ -359,7 +360,7 @@ namespace GrossesMitainesAPI.Migrations
|
||||
LastName = "Admin",
|
||||
LinkedAccountId = "ecf7503a-591c-454e-a824-048e10bd0474",
|
||||
PhoneNumber = "111-111-1111",
|
||||
PurchaseDate = new DateTime(2022, 12, 4, 9, 8, 50, 6, DateTimeKind.Local).AddTicks(9333),
|
||||
PurchaseDate = new DateTime(2022, 12, 9, 17, 27, 39, 722, DateTimeKind.Local).AddTicks(5916),
|
||||
ShippingAddressId = 1,
|
||||
Status = 4
|
||||
},
|
||||
@ -371,7 +372,7 @@ namespace GrossesMitainesAPI.Migrations
|
||||
LastName = "Admin",
|
||||
LinkedAccountId = "ecf7503a-591c-454e-a824-048e10bd0474",
|
||||
PhoneNumber = "111-111-1111",
|
||||
PurchaseDate = new DateTime(2022, 12, 4, 9, 8, 50, 6, DateTimeKind.Local).AddTicks(9338),
|
||||
PurchaseDate = new DateTime(2022, 12, 9, 17, 27, 39, 722, DateTimeKind.Local).AddTicks(5927),
|
||||
ShippingAddressId = 1,
|
||||
Status = 5
|
||||
},
|
||||
@ -382,7 +383,7 @@ namespace GrossesMitainesAPI.Migrations
|
||||
FirstName = "Jérémy",
|
||||
LastName = "Le Petit",
|
||||
PhoneNumber = "111-111-1111",
|
||||
PurchaseDate = new DateTime(2022, 12, 4, 9, 8, 50, 6, DateTimeKind.Local).AddTicks(9344),
|
||||
PurchaseDate = new DateTime(2022, 12, 9, 17, 27, 39, 722, DateTimeKind.Local).AddTicks(5954),
|
||||
ShippingAddressId = 2,
|
||||
Status = 0
|
||||
},
|
||||
@ -394,7 +395,7 @@ namespace GrossesMitainesAPI.Migrations
|
||||
LastName = "A.",
|
||||
LinkedAccountId = "af9178c8-1a02-4ff8-bc0a-c8248dad6e09",
|
||||
PhoneNumber = "111-111-1111",
|
||||
PurchaseDate = new DateTime(2022, 12, 4, 9, 8, 50, 6, DateTimeKind.Local).AddTicks(9357),
|
||||
PurchaseDate = new DateTime(2022, 12, 9, 17, 27, 39, 722, DateTimeKind.Local).AddTicks(6000),
|
||||
ShippingAddressId = 3,
|
||||
Status = 3
|
||||
});
|
||||
@ -406,7 +407,7 @@ namespace GrossesMitainesAPI.Migrations
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<int?>("InvoiceModelId")
|
||||
.HasColumnType("int");
|
||||
@ -560,7 +561,7 @@ namespace GrossesMitainesAPI.Migrations
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<string>("Category")
|
||||
.IsRequired()
|
||||
@ -1059,14 +1060,12 @@ namespace GrossesMitainesAPI.Migrations
|
||||
new
|
||||
{
|
||||
Id = "c9e08b20-d8a5-473f-9f52-572eb23c12af",
|
||||
ConcurrencyStamp = "eac9c483-2e9f-4f9e-9b97-dc1c761f76c2",
|
||||
Name = "Administrateur",
|
||||
NormalizedName = "ADMINISTRATEUR"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = "1b7b9c55-c746-493a-a24f-3d5ca937298e",
|
||||
ConcurrencyStamp = "fb8da1f2-a9df-4faa-9786-259cbc8c6f1c",
|
||||
Name = "Client",
|
||||
NormalizedName = "CLIENT"
|
||||
});
|
||||
@ -1078,7 +1077,7 @@ namespace GrossesMitainesAPI.Migrations
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<string>("ClaimType")
|
||||
.HasColumnType("nvarchar(max)");
|
||||
@ -1103,7 +1102,7 @@ namespace GrossesMitainesAPI.Migrations
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<string>("ClaimType")
|
||||
.HasColumnType("nvarchar(max)");
|
@ -3,10 +3,14 @@ using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
#pragma warning disable CA1814 // Prefer jagged arrays over multidimensional
|
||||
|
||||
namespace GrossesMitainesAPI.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class InitialDb : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
@ -297,8 +301,8 @@ namespace GrossesMitainesAPI.Migrations
|
||||
columns: new[] { "Id", "ConcurrencyStamp", "Name", "NormalizedName" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ "1b7b9c55-c746-493a-a24f-3d5ca937298e", "fb8da1f2-a9df-4faa-9786-259cbc8c6f1c", "Client", "CLIENT" },
|
||||
{ "c9e08b20-d8a5-473f-9f52-572eb23c12af", "eac9c483-2e9f-4f9e-9b97-dc1c761f76c2", "Administrateur", "ADMINISTRATEUR" }
|
||||
{ "1b7b9c55-c746-493a-a24f-3d5ca937298e", null, "Client", "CLIENT" },
|
||||
{ "c9e08b20-d8a5-473f-9f52-572eb23c12af", null, "Administrateur", "ADMINISTRATEUR" }
|
||||
});
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
@ -306,8 +310,8 @@ namespace GrossesMitainesAPI.Migrations
|
||||
columns: new[] { "Id", "AccessFailedCount", "ConcurrencyStamp", "Email", "EmailConfirmed", "FirstName", "LastName", "LockoutEnabled", "LockoutEnd", "NormalizedEmail", "NormalizedUserName", "PasswordHash", "PhoneNumber", "PhoneNumberConfirmed", "SecurityStamp", "TwoFactorEnabled", "UserName" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ "af9178c8-1a02-4ff8-bc0a-c8248dad6e09", 0, "b7103a3b-8f05-462d-9fc0-5d4faa4669dc", "paul@exemple.com", false, "Paul", "A.", false, null, "PAUL@EXEMPLE.COM", "PASLA", "AQAAAAEAACcQAAAAEN68b+gEQV5Vx2grBL94+BzugXFrgXko6KtdY3p/NJN17mk8QCpGlQfJ3BMe040+dg==", "222-222-2222", false, "99183d90-1f1c-4a8e-9891-ea8ab3b714d0", false, "PasLa" },
|
||||
{ "ecf7503a-591c-454e-a824-048e10bd0474", 0, "61f3249f-495f-48c8-ac7e-7d21b3da82c7", "admin@admin.com", false, "Roger", "Admin", false, null, "ADMIN@ADMIN.COM", "ADMIN", "AQAAAAEAACcQAAAAELswgBNsSfJwmigdKX2rpHseOEi20F+ZUhxapu80HTnxZamC3lu1hyAGMXj4kQumMw==", "111-111-1111", false, "3098997b-a081-41ec-aa08-6cdea0028db7", false, "Admin" }
|
||||
{ "af9178c8-1a02-4ff8-bc0a-c8248dad6e09", 0, "8e920e1b-b10c-4069-bb37-20a0799c7716", "paul@exemple.com", false, "Paul", "A.", false, null, "PAUL@EXEMPLE.COM", "PASLA", "AQAAAAIAAYagAAAAECtR2/p0LFLK3EklD3totdaYcQ4+uPCaCk1D1L+WnBM2QayALdSssfY3VHrBlAL1qQ==", "222-222-2222", false, "a3a83c5e-184b-4c2b-8dcd-c9a73e8eaef3", false, "PasLa" },
|
||||
{ "ecf7503a-591c-454e-a824-048e10bd0474", 0, "1455b4bd-76ae-4671-b104-b1c7d7ef337b", "admin@admin.com", false, "Roger", "Admin", false, null, "ADMIN@ADMIN.COM", "ADMIN", "AQAAAAIAAYagAAAAECehU51Dt6aJVc1X4LdCVNRBwLDpBMwRgvRpEIDCY8leqg3Bs5kSeIdwQxX3iCbOLw==", "111-111-1111", false, "fc707be9-eb95-4b89-abad-aab8e91d8a09", false, "Admin" }
|
||||
});
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
@ -366,34 +370,26 @@ namespace GrossesMitainesAPI.Migrations
|
||||
{ "c9e08b20-d8a5-473f-9f52-572eb23c12af", "ecf7503a-591c-454e-a824-048e10bd0474" }
|
||||
});
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "Invoices",
|
||||
columns: new[] { "Id", "EmailAddress", "FirstName", "LastName", "LinkedAccountId", "PaymentId", "PhoneNumber", "PurchaseDate", "ShippingAddressId", "Status" },
|
||||
values: new object[] { 6, "test@admin.com", "Jérémy", "Le Petit", null, null, "111-111-1111", new DateTime(2022, 12, 4, 9, 8, 50, 6, DateTimeKind.Local).AddTicks(9344), 2, 0 });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "Invoices",
|
||||
columns: new[] { "Id", "EmailAddress", "FirstName", "LastName", "LinkedAccountId", "PaymentId", "PhoneNumber", "PurchaseDate", "ShippingAddressId", "Status" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 1, "admin@admin.com", "Roger", "Admin", "ecf7503a-591c-454e-a824-048e10bd0474", null, "111-111-1111", new DateTime(2022, 12, 4, 9, 8, 50, 6, DateTimeKind.Local).AddTicks(9261), 1, 0 },
|
||||
{ 2, "admin@admin.com", "Roger", "Admin", "ecf7503a-591c-454e-a824-048e10bd0474", null, "111-111-1111", new DateTime(2022, 12, 4, 9, 8, 50, 6, DateTimeKind.Local).AddTicks(9300), 1, 1 },
|
||||
{ 3, "admin@admin.com", "Roger", "Admin", "ecf7503a-591c-454e-a824-048e10bd0474", null, "111-111-1111", new DateTime(2022, 12, 4, 9, 8, 50, 6, DateTimeKind.Local).AddTicks(9327), 1, 3 },
|
||||
{ 4, "admin@admin.com", "Roger", "Admin", "ecf7503a-591c-454e-a824-048e10bd0474", null, "111-111-1111", new DateTime(2022, 12, 4, 9, 8, 50, 6, DateTimeKind.Local).AddTicks(9333), 1, 4 },
|
||||
{ 5, "admin@admin.com", "Roger", "Admin", "ecf7503a-591c-454e-a824-048e10bd0474", null, "111-111-1111", new DateTime(2022, 12, 4, 9, 8, 50, 6, DateTimeKind.Local).AddTicks(9338), 1, 5 },
|
||||
{ 7, "paul@exemple.com", "Paul", "A.", "af9178c8-1a02-4ff8-bc0a-c8248dad6e09", null, "111-111-1111", new DateTime(2022, 12, 4, 9, 8, 50, 6, DateTimeKind.Local).AddTicks(9357), 3, 3 }
|
||||
{ 6, "test@admin.com", "Jérémy", "Le Petit", null, null, "111-111-1111", new DateTime(2022, 12, 9, 17, 27, 39, 722, DateTimeKind.Local).AddTicks(5954), 2, 0 },
|
||||
{ 1, "admin@admin.com", "Roger", "Admin", "ecf7503a-591c-454e-a824-048e10bd0474", null, "111-111-1111", new DateTime(2022, 12, 9, 17, 27, 39, 722, DateTimeKind.Local).AddTicks(5677), 1, 0 },
|
||||
{ 2, "admin@admin.com", "Roger", "Admin", "ecf7503a-591c-454e-a824-048e10bd0474", null, "111-111-1111", new DateTime(2022, 12, 9, 17, 27, 39, 722, DateTimeKind.Local).AddTicks(5852), 1, 1 },
|
||||
{ 3, "admin@admin.com", "Roger", "Admin", "ecf7503a-591c-454e-a824-048e10bd0474", null, "111-111-1111", new DateTime(2022, 12, 9, 17, 27, 39, 722, DateTimeKind.Local).AddTicks(5885), 1, 3 },
|
||||
{ 4, "admin@admin.com", "Roger", "Admin", "ecf7503a-591c-454e-a824-048e10bd0474", null, "111-111-1111", new DateTime(2022, 12, 9, 17, 27, 39, 722, DateTimeKind.Local).AddTicks(5916), 1, 4 },
|
||||
{ 5, "admin@admin.com", "Roger", "Admin", "ecf7503a-591c-454e-a824-048e10bd0474", null, "111-111-1111", new DateTime(2022, 12, 9, 17, 27, 39, 722, DateTimeKind.Local).AddTicks(5927), 1, 5 },
|
||||
{ 7, "paul@exemple.com", "Paul", "A.", "af9178c8-1a02-4ff8-bc0a-c8248dad6e09", null, "111-111-1111", new DateTime(2022, 12, 9, 17, 27, 39, 722, DateTimeKind.Local).AddTicks(6000), 3, 3 }
|
||||
});
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "ProductInvoice",
|
||||
columns: new[] { "Id", "InvoiceModelId", "ProductId", "Quantity" },
|
||||
values: new object[] { 16, 6, 20, 4L });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "ProductInvoice",
|
||||
columns: new[] { "Id", "InvoiceModelId", "ProductId", "Quantity" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 16, 6, 20, 4L },
|
||||
{ 1, 1, 1, 2L },
|
||||
{ 2, 1, 4, 5L },
|
||||
{ 3, 2, 3, 1L },
|
||||
@ -483,6 +479,7 @@ namespace GrossesMitainesAPI.Migrations
|
||||
column: "ProductId");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
@ -17,10 +17,10 @@ namespace GrossesMitainesAPI.Migrations
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "6.0.10")
|
||||
.HasAnnotation("ProductVersion", "7.0.0")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 128);
|
||||
|
||||
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1);
|
||||
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
|
||||
|
||||
modelBuilder.Entity("GrossesMitainesAPI.Data.InventoryUser", b =>
|
||||
{
|
||||
@ -101,7 +101,7 @@ namespace GrossesMitainesAPI.Migrations
|
||||
{
|
||||
Id = "ecf7503a-591c-454e-a824-048e10bd0474",
|
||||
AccessFailedCount = 0,
|
||||
ConcurrencyStamp = "61f3249f-495f-48c8-ac7e-7d21b3da82c7",
|
||||
ConcurrencyStamp = "1455b4bd-76ae-4671-b104-b1c7d7ef337b",
|
||||
Email = "admin@admin.com",
|
||||
EmailConfirmed = false,
|
||||
FirstName = "Roger",
|
||||
@ -109,10 +109,10 @@ namespace GrossesMitainesAPI.Migrations
|
||||
LockoutEnabled = false,
|
||||
NormalizedEmail = "ADMIN@ADMIN.COM",
|
||||
NormalizedUserName = "ADMIN",
|
||||
PasswordHash = "AQAAAAEAACcQAAAAELswgBNsSfJwmigdKX2rpHseOEi20F+ZUhxapu80HTnxZamC3lu1hyAGMXj4kQumMw==",
|
||||
PasswordHash = "AQAAAAIAAYagAAAAECehU51Dt6aJVc1X4LdCVNRBwLDpBMwRgvRpEIDCY8leqg3Bs5kSeIdwQxX3iCbOLw==",
|
||||
PhoneNumber = "111-111-1111",
|
||||
PhoneNumberConfirmed = false,
|
||||
SecurityStamp = "3098997b-a081-41ec-aa08-6cdea0028db7",
|
||||
SecurityStamp = "fc707be9-eb95-4b89-abad-aab8e91d8a09",
|
||||
TwoFactorEnabled = false,
|
||||
UserName = "Admin"
|
||||
},
|
||||
@ -120,7 +120,7 @@ namespace GrossesMitainesAPI.Migrations
|
||||
{
|
||||
Id = "af9178c8-1a02-4ff8-bc0a-c8248dad6e09",
|
||||
AccessFailedCount = 0,
|
||||
ConcurrencyStamp = "b7103a3b-8f05-462d-9fc0-5d4faa4669dc",
|
||||
ConcurrencyStamp = "8e920e1b-b10c-4069-bb37-20a0799c7716",
|
||||
Email = "paul@exemple.com",
|
||||
EmailConfirmed = false,
|
||||
FirstName = "Paul",
|
||||
@ -128,10 +128,10 @@ namespace GrossesMitainesAPI.Migrations
|
||||
LockoutEnabled = false,
|
||||
NormalizedEmail = "PAUL@EXEMPLE.COM",
|
||||
NormalizedUserName = "PASLA",
|
||||
PasswordHash = "AQAAAAEAACcQAAAAEN68b+gEQV5Vx2grBL94+BzugXFrgXko6KtdY3p/NJN17mk8QCpGlQfJ3BMe040+dg==",
|
||||
PasswordHash = "AQAAAAIAAYagAAAAECtR2/p0LFLK3EklD3totdaYcQ4+uPCaCk1D1L+WnBM2QayALdSssfY3VHrBlAL1qQ==",
|
||||
PhoneNumber = "222-222-2222",
|
||||
PhoneNumberConfirmed = false,
|
||||
SecurityStamp = "99183d90-1f1c-4a8e-9891-ea8ab3b714d0",
|
||||
SecurityStamp = "a3a83c5e-184b-4c2b-8dcd-c9a73e8eaef3",
|
||||
TwoFactorEnabled = false,
|
||||
UserName = "PasLa"
|
||||
});
|
||||
@ -143,7 +143,7 @@ namespace GrossesMitainesAPI.Migrations
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<string>("Appartment")
|
||||
.HasColumnType("nvarchar(max)");
|
||||
@ -227,7 +227,7 @@ namespace GrossesMitainesAPI.Migrations
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<long>("AmountInCents")
|
||||
.HasColumnType("bigint");
|
||||
@ -267,7 +267,7 @@ namespace GrossesMitainesAPI.Migrations
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<string>("EmailAddress")
|
||||
.IsRequired()
|
||||
@ -321,7 +321,7 @@ namespace GrossesMitainesAPI.Migrations
|
||||
LastName = "Admin",
|
||||
LinkedAccountId = "ecf7503a-591c-454e-a824-048e10bd0474",
|
||||
PhoneNumber = "111-111-1111",
|
||||
PurchaseDate = new DateTime(2022, 12, 4, 9, 8, 50, 6, DateTimeKind.Local).AddTicks(9261),
|
||||
PurchaseDate = new DateTime(2022, 12, 9, 17, 27, 39, 722, DateTimeKind.Local).AddTicks(5677),
|
||||
ShippingAddressId = 1,
|
||||
Status = 0
|
||||
},
|
||||
@ -333,7 +333,7 @@ namespace GrossesMitainesAPI.Migrations
|
||||
LastName = "Admin",
|
||||
LinkedAccountId = "ecf7503a-591c-454e-a824-048e10bd0474",
|
||||
PhoneNumber = "111-111-1111",
|
||||
PurchaseDate = new DateTime(2022, 12, 4, 9, 8, 50, 6, DateTimeKind.Local).AddTicks(9300),
|
||||
PurchaseDate = new DateTime(2022, 12, 9, 17, 27, 39, 722, DateTimeKind.Local).AddTicks(5852),
|
||||
ShippingAddressId = 1,
|
||||
Status = 1
|
||||
},
|
||||
@ -345,7 +345,7 @@ namespace GrossesMitainesAPI.Migrations
|
||||
LastName = "Admin",
|
||||
LinkedAccountId = "ecf7503a-591c-454e-a824-048e10bd0474",
|
||||
PhoneNumber = "111-111-1111",
|
||||
PurchaseDate = new DateTime(2022, 12, 4, 9, 8, 50, 6, DateTimeKind.Local).AddTicks(9327),
|
||||
PurchaseDate = new DateTime(2022, 12, 9, 17, 27, 39, 722, DateTimeKind.Local).AddTicks(5885),
|
||||
ShippingAddressId = 1,
|
||||
Status = 3
|
||||
},
|
||||
@ -357,7 +357,7 @@ namespace GrossesMitainesAPI.Migrations
|
||||
LastName = "Admin",
|
||||
LinkedAccountId = "ecf7503a-591c-454e-a824-048e10bd0474",
|
||||
PhoneNumber = "111-111-1111",
|
||||
PurchaseDate = new DateTime(2022, 12, 4, 9, 8, 50, 6, DateTimeKind.Local).AddTicks(9333),
|
||||
PurchaseDate = new DateTime(2022, 12, 9, 17, 27, 39, 722, DateTimeKind.Local).AddTicks(5916),
|
||||
ShippingAddressId = 1,
|
||||
Status = 4
|
||||
},
|
||||
@ -369,7 +369,7 @@ namespace GrossesMitainesAPI.Migrations
|
||||
LastName = "Admin",
|
||||
LinkedAccountId = "ecf7503a-591c-454e-a824-048e10bd0474",
|
||||
PhoneNumber = "111-111-1111",
|
||||
PurchaseDate = new DateTime(2022, 12, 4, 9, 8, 50, 6, DateTimeKind.Local).AddTicks(9338),
|
||||
PurchaseDate = new DateTime(2022, 12, 9, 17, 27, 39, 722, DateTimeKind.Local).AddTicks(5927),
|
||||
ShippingAddressId = 1,
|
||||
Status = 5
|
||||
},
|
||||
@ -380,7 +380,7 @@ namespace GrossesMitainesAPI.Migrations
|
||||
FirstName = "Jérémy",
|
||||
LastName = "Le Petit",
|
||||
PhoneNumber = "111-111-1111",
|
||||
PurchaseDate = new DateTime(2022, 12, 4, 9, 8, 50, 6, DateTimeKind.Local).AddTicks(9344),
|
||||
PurchaseDate = new DateTime(2022, 12, 9, 17, 27, 39, 722, DateTimeKind.Local).AddTicks(5954),
|
||||
ShippingAddressId = 2,
|
||||
Status = 0
|
||||
},
|
||||
@ -392,7 +392,7 @@ namespace GrossesMitainesAPI.Migrations
|
||||
LastName = "A.",
|
||||
LinkedAccountId = "af9178c8-1a02-4ff8-bc0a-c8248dad6e09",
|
||||
PhoneNumber = "111-111-1111",
|
||||
PurchaseDate = new DateTime(2022, 12, 4, 9, 8, 50, 6, DateTimeKind.Local).AddTicks(9357),
|
||||
PurchaseDate = new DateTime(2022, 12, 9, 17, 27, 39, 722, DateTimeKind.Local).AddTicks(6000),
|
||||
ShippingAddressId = 3,
|
||||
Status = 3
|
||||
});
|
||||
@ -404,7 +404,7 @@ namespace GrossesMitainesAPI.Migrations
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<int?>("InvoiceModelId")
|
||||
.HasColumnType("int");
|
||||
@ -558,7 +558,7 @@ namespace GrossesMitainesAPI.Migrations
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<string>("Category")
|
||||
.IsRequired()
|
||||
@ -1057,14 +1057,12 @@ namespace GrossesMitainesAPI.Migrations
|
||||
new
|
||||
{
|
||||
Id = "c9e08b20-d8a5-473f-9f52-572eb23c12af",
|
||||
ConcurrencyStamp = "eac9c483-2e9f-4f9e-9b97-dc1c761f76c2",
|
||||
Name = "Administrateur",
|
||||
NormalizedName = "ADMINISTRATEUR"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = "1b7b9c55-c746-493a-a24f-3d5ca937298e",
|
||||
ConcurrencyStamp = "fb8da1f2-a9df-4faa-9786-259cbc8c6f1c",
|
||||
Name = "Client",
|
||||
NormalizedName = "CLIENT"
|
||||
});
|
||||
@ -1076,7 +1074,7 @@ namespace GrossesMitainesAPI.Migrations
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<string>("ClaimType")
|
||||
.HasColumnType("nvarchar(max)");
|
||||
@ -1101,7 +1099,7 @@ namespace GrossesMitainesAPI.Migrations
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<string>("ClaimType")
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
Loading…
Reference in New Issue
Block a user