2022-10-25 13:01:31 -04:00
|
|
|
|
// <auto-generated />
|
2022-10-27 12:37:13 -04:00
|
|
|
|
using System;
|
2022-10-25 13:01:31 -04:00
|
|
|
|
using GrossesMitainesAPI.Data;
|
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Metadata;
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
|
|
|
|
|
|
|
|
#nullable disable
|
|
|
|
|
|
|
|
|
|
namespace GrossesMitainesAPI.Migrations
|
|
|
|
|
{
|
|
|
|
|
[DbContext(typeof(InventoryContext))]
|
2022-11-04 18:22:24 -04:00
|
|
|
|
[Migration("20221104221311_Initial-Db")]
|
2022-10-25 13:01:31 -04:00
|
|
|
|
partial class InitialDb
|
|
|
|
|
{
|
|
|
|
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|
|
|
|
{
|
|
|
|
|
#pragma warning disable 612, 618
|
|
|
|
|
modelBuilder
|
|
|
|
|
.HasAnnotation("ProductVersion", "6.0.10")
|
|
|
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 128);
|
|
|
|
|
|
|
|
|
|
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1);
|
|
|
|
|
|
2022-10-30 16:58:47 -04:00
|
|
|
|
modelBuilder.Entity("GrossesMitainesAPI.Data.InventoryUser", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<string>("Id")
|
|
|
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("AccessFailedCount")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
|
|
|
.IsConcurrencyToken()
|
|
|
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Email")
|
|
|
|
|
.HasMaxLength(256)
|
|
|
|
|
.HasColumnType("nvarchar(256)");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("EmailConfirmed")
|
|
|
|
|
.HasColumnType("bit");
|
|
|
|
|
|
2022-11-01 13:33:08 -04:00
|
|
|
|
b.Property<string>("FirstName")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasMaxLength(30)
|
|
|
|
|
.HasColumnType("nvarchar(30)");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("LastName")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasMaxLength(30)
|
|
|
|
|
.HasColumnType("nvarchar(30)");
|
|
|
|
|
|
2022-10-30 16:58:47 -04:00
|
|
|
|
b.Property<bool>("LockoutEnabled")
|
|
|
|
|
.HasColumnType("bit");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset?>("LockoutEnd")
|
|
|
|
|
.HasColumnType("datetimeoffset");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("NormalizedEmail")
|
|
|
|
|
.HasMaxLength(256)
|
|
|
|
|
.HasColumnType("nvarchar(256)");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("NormalizedUserName")
|
|
|
|
|
.HasMaxLength(256)
|
|
|
|
|
.HasColumnType("nvarchar(256)");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("PasswordHash")
|
|
|
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("PhoneNumber")
|
|
|
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("PhoneNumberConfirmed")
|
|
|
|
|
.HasColumnType("bit");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("SecurityStamp")
|
|
|
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("TwoFactorEnabled")
|
|
|
|
|
.HasColumnType("bit");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("UserName")
|
|
|
|
|
.HasMaxLength(256)
|
|
|
|
|
.HasColumnType("nvarchar(256)");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("NormalizedEmail")
|
|
|
|
|
.HasDatabaseName("EmailIndex");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("NormalizedUserName")
|
|
|
|
|
.IsUnique()
|
|
|
|
|
.HasDatabaseName("UserNameIndex")
|
|
|
|
|
.HasFilter("[NormalizedUserName] IS NOT NULL");
|
|
|
|
|
|
|
|
|
|
b.ToTable("AspNetUsers", (string)null);
|
|
|
|
|
|
|
|
|
|
b.HasData(
|
|
|
|
|
new
|
|
|
|
|
{
|
2022-11-01 13:33:08 -04:00
|
|
|
|
Id = "ecf7503a-591c-454e-a824-048e10bd0474",
|
2022-10-30 16:58:47 -04:00
|
|
|
|
AccessFailedCount = 0,
|
2022-11-04 18:22:24 -04:00
|
|
|
|
ConcurrencyStamp = "6ecf4a66-157e-4a5c-a6ba-84c0d8df9d8f",
|
2022-10-30 16:58:47 -04:00
|
|
|
|
Email = "admin@admin.com",
|
|
|
|
|
EmailConfirmed = false,
|
2022-11-01 13:33:08 -04:00
|
|
|
|
FirstName = "Roger",
|
|
|
|
|
LastName = "Admin",
|
2022-10-30 16:58:47 -04:00
|
|
|
|
LockoutEnabled = false,
|
2022-11-01 13:33:08 -04:00
|
|
|
|
NormalizedEmail = "ADMIN@ADMIN.COM",
|
|
|
|
|
NormalizedUserName = "ADMIN",
|
2022-11-04 18:22:24 -04:00
|
|
|
|
PasswordHash = "AQAAAAEAACcQAAAAELk80UgvLbSDu3xg805PHJkdcTaFrtU/wZOBkOdJFw9ji5gpPe6G3lTu2FF1ysj7eg==",
|
2022-10-30 16:58:47 -04:00
|
|
|
|
PhoneNumberConfirmed = false,
|
2022-11-04 18:22:24 -04:00
|
|
|
|
SecurityStamp = "eb2a7531-4487-4a67-9601-adfc03a601cf",
|
2022-10-30 16:58:47 -04:00
|
|
|
|
TwoFactorEnabled = false,
|
|
|
|
|
UserName = "Admin"
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
2022-11-01 13:33:08 -04:00
|
|
|
|
modelBuilder.Entity("GrossesMitainesAPI.Models.AddressModel", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Appartment")
|
|
|
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("City")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasMaxLength(50)
|
|
|
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("CivicNumber")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Country")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasMaxLength(30)
|
|
|
|
|
.HasColumnType("nvarchar(30)");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("InventoryUserId")
|
|
|
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("PostalCode")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Province")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasMaxLength(3)
|
|
|
|
|
.HasColumnType("nvarchar(3)");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Street")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasMaxLength(50)
|
|
|
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("InventoryUserId");
|
|
|
|
|
|
|
|
|
|
b.ToTable("Addresses");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("GrossesMitainesAPI.Models.InvoiceModel", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
|
|
|
|
|
|
|
|
|
|
b.Property<string>("EmailAddress")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("FirstName")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasMaxLength(30)
|
|
|
|
|
.HasColumnType("nvarchar(30)");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("LastName")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasMaxLength(30)
|
|
|
|
|
.HasColumnType("nvarchar(30)");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("LinkedAccountId")
|
|
|
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("PhoneNumber")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
|
|
2022-11-04 18:22:24 -04:00
|
|
|
|
b.Property<DateTime>("PurchaseDate")
|
|
|
|
|
.HasColumnType("datetime2");
|
|
|
|
|
|
2022-11-01 13:33:08 -04:00
|
|
|
|
b.Property<int>("ShippingAddressId")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
2022-11-04 18:22:24 -04:00
|
|
|
|
b.Property<int>("Status")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
2022-11-01 13:33:08 -04:00
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("LinkedAccountId");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("ShippingAddressId");
|
|
|
|
|
|
|
|
|
|
b.ToTable("Invoices");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("GrossesMitainesAPI.Models.InvoiceModel+ProductInvoice", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
|
|
|
|
|
|
|
|
|
|
b.Property<int?>("InvoiceModelId")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("ProductId")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
2022-11-04 18:22:24 -04:00
|
|
|
|
b.Property<long>("Quantity")
|
|
|
|
|
.HasColumnType("bigint");
|
2022-11-01 13:33:08 -04:00
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("InvoiceModelId");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("ProductId");
|
|
|
|
|
|
|
|
|
|
b.ToTable("ProductInvoice");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("GrossesMitainesAPI.Models.ProductModel", b =>
|
2022-10-25 13:01:31 -04:00
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Category")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Description")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
|
|
2022-10-27 12:37:13 -04:00
|
|
|
|
b.Property<long>("Hits")
|
|
|
|
|
.HasColumnType("bigint");
|
|
|
|
|
|
2022-10-25 13:01:31 -04:00
|
|
|
|
b.Property<string>("ImageName")
|
|
|
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
|
|
2022-10-27 12:37:13 -04:00
|
|
|
|
b.Property<DateTime?>("LastHit")
|
|
|
|
|
.HasColumnType("datetime2");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime?>("LastSale")
|
|
|
|
|
.HasColumnType("datetime2");
|
|
|
|
|
|
2022-10-25 13:01:31 -04:00
|
|
|
|
b.Property<decimal>("Price")
|
|
|
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
|
|
|
|
|
|
b.Property<decimal>("PromoPrice")
|
|
|
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
|
|
|
|
|
|
b.Property<long>("Quantity")
|
|
|
|
|
.HasColumnType("bigint");
|
|
|
|
|
|
2022-10-27 12:37:13 -04:00
|
|
|
|
b.Property<long>("Sales")
|
|
|
|
|
.HasColumnType("bigint");
|
|
|
|
|
|
2022-10-25 13:01:31 -04:00
|
|
|
|
b.Property<int>("Status")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Title")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasMaxLength(255)
|
|
|
|
|
.HasColumnType("nvarchar(255)");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.ToTable("Products");
|
|
|
|
|
|
|
|
|
|
b.HasData(
|
|
|
|
|
new
|
|
|
|
|
{
|
|
|
|
|
Id = 1,
|
|
|
|
|
Category = "Linge",
|
|
|
|
|
Description = "Pour faire votre propre bonhomme de 1837, comme dans le bon vieux temps.",
|
2022-10-27 12:37:13 -04:00
|
|
|
|
Hits = 0L,
|
2022-10-25 13:01:31 -04:00
|
|
|
|
ImageName = "ceintureflechee",
|
|
|
|
|
Price = 85.86m,
|
|
|
|
|
PromoPrice = 29.99m,
|
|
|
|
|
Quantity = 1L,
|
2022-10-27 12:37:13 -04:00
|
|
|
|
Sales = 0L,
|
2022-10-25 13:01:31 -04:00
|
|
|
|
Status = 4,
|
|
|
|
|
Title = "Ceinture flèchée"
|
|
|
|
|
},
|
|
|
|
|
new
|
|
|
|
|
{
|
|
|
|
|
Id = 2,
|
|
|
|
|
Category = "Linge",
|
|
|
|
|
Description = "Parce que ça sent la coupe!",
|
2022-10-27 12:37:13 -04:00
|
|
|
|
Hits = 0L,
|
2022-10-25 13:01:31 -04:00
|
|
|
|
ImageName = "pantouflesCH",
|
|
|
|
|
Price = 15.64m,
|
|
|
|
|
PromoPrice = 9.99m,
|
|
|
|
|
Quantity = 54L,
|
2022-10-27 12:37:13 -04:00
|
|
|
|
Sales = 0L,
|
2022-10-25 13:01:31 -04:00
|
|
|
|
Status = 0,
|
|
|
|
|
Title = "Pantoufles du Canadien en Phentex"
|
|
|
|
|
},
|
|
|
|
|
new
|
|
|
|
|
{
|
|
|
|
|
Id = 3,
|
|
|
|
|
Category = "Homme",
|
|
|
|
|
Description = "On ne lui ferait pas mal, en tout cas!!",
|
2022-10-27 12:37:13 -04:00
|
|
|
|
Hits = 0L,
|
2022-10-25 13:01:31 -04:00
|
|
|
|
ImageName = "jeanlucmongrain",
|
|
|
|
|
Price = 1453.12m,
|
|
|
|
|
PromoPrice = 999.99m,
|
|
|
|
|
Quantity = 1L,
|
2022-10-27 12:37:13 -04:00
|
|
|
|
Sales = 0L,
|
2022-10-25 13:01:31 -04:00
|
|
|
|
Status = 3,
|
|
|
|
|
Title = "Jean-Luc Mongrain"
|
|
|
|
|
},
|
|
|
|
|
new
|
|
|
|
|
{
|
|
|
|
|
Id = 4,
|
|
|
|
|
Category = "Linge",
|
|
|
|
|
Description = "Tellement simple et comfortable.",
|
2022-10-27 12:37:13 -04:00
|
|
|
|
Hits = 0L,
|
2022-10-25 13:01:31 -04:00
|
|
|
|
ImageName = "tshirt",
|
|
|
|
|
Price = 12.12m,
|
|
|
|
|
PromoPrice = 9.99m,
|
|
|
|
|
Quantity = 143L,
|
2022-10-27 12:37:13 -04:00
|
|
|
|
Sales = 0L,
|
2022-10-25 13:01:31 -04:00
|
|
|
|
Status = 0,
|
|
|
|
|
Title = "T-Shirt"
|
|
|
|
|
},
|
|
|
|
|
new
|
|
|
|
|
{
|
|
|
|
|
Id = 5,
|
|
|
|
|
Category = "Vêtement d'extérieur",
|
|
|
|
|
Description = "Deux pour un!",
|
2022-10-27 12:37:13 -04:00
|
|
|
|
Hits = 0L,
|
2022-10-25 13:01:31 -04:00
|
|
|
|
ImageName = "mitaines",
|
|
|
|
|
Price = 8.18m,
|
|
|
|
|
PromoPrice = 6.99m,
|
|
|
|
|
Quantity = 1423L,
|
2022-10-27 12:37:13 -04:00
|
|
|
|
Sales = 0L,
|
2022-10-25 13:01:31 -04:00
|
|
|
|
Status = 0,
|
|
|
|
|
Title = "Mitaines"
|
|
|
|
|
},
|
|
|
|
|
new
|
|
|
|
|
{
|
|
|
|
|
Id = 6,
|
|
|
|
|
Category = "Vêtement d'extérieur",
|
|
|
|
|
Description = "Deux pour un!",
|
2022-10-27 12:37:13 -04:00
|
|
|
|
Hits = 0L,
|
2022-10-25 13:01:31 -04:00
|
|
|
|
ImageName = "foulard",
|
|
|
|
|
Price = 10.56m,
|
|
|
|
|
PromoPrice = 8.99m,
|
|
|
|
|
Quantity = 14L,
|
2022-10-27 12:37:13 -04:00
|
|
|
|
Sales = 0L,
|
2022-10-25 13:01:31 -04:00
|
|
|
|
Status = 4,
|
|
|
|
|
Title = "Foulard"
|
|
|
|
|
},
|
|
|
|
|
new
|
|
|
|
|
{
|
|
|
|
|
Id = 7,
|
|
|
|
|
Category = "Sous-Vêtement",
|
|
|
|
|
Description = "Pour garder le p'tit bout au chaud.",
|
2022-10-27 12:37:13 -04:00
|
|
|
|
Hits = 0L,
|
2022-10-25 13:01:31 -04:00
|
|
|
|
ImageName = "kokin",
|
|
|
|
|
Price = 15.45m,
|
|
|
|
|
PromoPrice = 12.99m,
|
|
|
|
|
Quantity = 144L,
|
2022-10-27 12:37:13 -04:00
|
|
|
|
Sales = 0L,
|
2022-10-25 13:01:31 -04:00
|
|
|
|
Status = 4,
|
|
|
|
|
Title = "Jock-Strap en phentex"
|
|
|
|
|
},
|
|
|
|
|
new
|
|
|
|
|
{
|
|
|
|
|
Id = 8,
|
|
|
|
|
Category = "Sous-Vêtement",
|
|
|
|
|
Description = "Pour garder l'absence de p'tit bout au chaud.",
|
2022-10-27 12:37:13 -04:00
|
|
|
|
Hits = 0L,
|
2022-10-25 13:01:31 -04:00
|
|
|
|
ImageName = "kokin",
|
|
|
|
|
Price = 15.45m,
|
|
|
|
|
PromoPrice = 12.99m,
|
|
|
|
|
Quantity = 224L,
|
2022-10-27 12:37:13 -04:00
|
|
|
|
Sales = 0L,
|
2022-10-25 13:01:31 -04:00
|
|
|
|
Status = 4,
|
|
|
|
|
Title = "Jock-Strap féminin en phentex"
|
|
|
|
|
},
|
|
|
|
|
new
|
|
|
|
|
{
|
|
|
|
|
Id = 9,
|
|
|
|
|
Category = "Alien",
|
|
|
|
|
Description = "En chiffon.",
|
2022-10-27 12:37:13 -04:00
|
|
|
|
Hits = 0L,
|
2022-10-25 13:01:31 -04:00
|
|
|
|
ImageName = "bibi",
|
|
|
|
|
Price = 1045.45m,
|
|
|
|
|
PromoPrice = 1023.99m,
|
|
|
|
|
Quantity = 1L,
|
2022-10-27 12:37:13 -04:00
|
|
|
|
Sales = 0L,
|
2022-10-25 13:01:31 -04:00
|
|
|
|
Status = 3,
|
|
|
|
|
Title = "Bibi"
|
|
|
|
|
},
|
|
|
|
|
new
|
|
|
|
|
{
|
|
|
|
|
Id = 10,
|
|
|
|
|
Category = "Vêtement d'extérieur",
|
|
|
|
|
Description = "En chiffon.",
|
2022-10-27 12:37:13 -04:00
|
|
|
|
Hits = 0L,
|
2022-10-25 13:01:31 -04:00
|
|
|
|
ImageName = "tuque",
|
|
|
|
|
Price = 15.45m,
|
|
|
|
|
PromoPrice = 12.99m,
|
|
|
|
|
Quantity = 1L,
|
2022-10-27 12:37:13 -04:00
|
|
|
|
Sales = 0L,
|
2022-10-25 13:01:31 -04:00
|
|
|
|
Status = 0,
|
|
|
|
|
Title = "Tuque en laine"
|
|
|
|
|
},
|
|
|
|
|
new
|
|
|
|
|
{
|
|
|
|
|
Id = 11,
|
|
|
|
|
Category = "Vêtement d'extérieur",
|
|
|
|
|
Description = "Pour se faire taper dessus avec une poêle à frire tout en restant au chaud.",
|
2022-10-27 12:37:13 -04:00
|
|
|
|
Hits = 0L,
|
2022-10-25 13:01:31 -04:00
|
|
|
|
ImageName = "bonhomme",
|
|
|
|
|
Price = 145.45m,
|
|
|
|
|
PromoPrice = 123.99m,
|
|
|
|
|
Quantity = 1L,
|
2022-10-27 12:37:13 -04:00
|
|
|
|
Sales = 0L,
|
2022-10-25 13:01:31 -04:00
|
|
|
|
Status = 4,
|
|
|
|
|
Title = "Habit de Bonhomme Carnaval"
|
|
|
|
|
},
|
|
|
|
|
new
|
|
|
|
|
{
|
|
|
|
|
Id = 12,
|
|
|
|
|
Category = "Autre",
|
|
|
|
|
Description = "Pour se pêter la fiole avec style.",
|
2022-10-27 12:37:13 -04:00
|
|
|
|
Hits = 0L,
|
2022-10-25 13:01:31 -04:00
|
|
|
|
ImageName = "gauze",
|
|
|
|
|
Price = 145.45m,
|
|
|
|
|
PromoPrice = 123.99m,
|
|
|
|
|
Quantity = 0L,
|
2022-10-27 12:37:13 -04:00
|
|
|
|
Sales = 0L,
|
2022-10-25 13:01:31 -04:00
|
|
|
|
Status = 1,
|
|
|
|
|
Title = "Gauze en phentex"
|
|
|
|
|
},
|
|
|
|
|
new
|
|
|
|
|
{
|
|
|
|
|
Id = 13,
|
|
|
|
|
Category = "Homme",
|
|
|
|
|
Description = "En chiffon.",
|
2022-10-27 12:37:13 -04:00
|
|
|
|
Hits = 0L,
|
2022-10-25 13:01:31 -04:00
|
|
|
|
ImageName = "jesus",
|
|
|
|
|
Price = 145.45m,
|
|
|
|
|
PromoPrice = 123.99m,
|
|
|
|
|
Quantity = 1L,
|
2022-10-27 12:37:13 -04:00
|
|
|
|
Sales = 0L,
|
2022-10-25 13:01:31 -04:00
|
|
|
|
Status = 3,
|
|
|
|
|
Title = "Petit Jésus de plâtre"
|
|
|
|
|
},
|
|
|
|
|
new
|
|
|
|
|
{
|
|
|
|
|
Id = 14,
|
|
|
|
|
Category = "Autre",
|
|
|
|
|
Description = "À écouter dans l'habit de Bonhomme Carnaval tant que possible.",
|
2022-10-27 12:37:13 -04:00
|
|
|
|
Hits = 0L,
|
2022-10-25 13:01:31 -04:00
|
|
|
|
ImageName = "vhs",
|
|
|
|
|
Price = 3.45m,
|
|
|
|
|
PromoPrice = 1.99m,
|
|
|
|
|
Quantity = 164363L,
|
2022-10-27 12:37:13 -04:00
|
|
|
|
Sales = 0L,
|
2022-10-25 13:01:31 -04:00
|
|
|
|
Status = 3,
|
|
|
|
|
Title = "VHS de la Guerre des Tuques"
|
|
|
|
|
},
|
|
|
|
|
new
|
|
|
|
|
{
|
|
|
|
|
Id = 15,
|
|
|
|
|
Category = "Linge",
|
|
|
|
|
Description = "(N'est pas réellement pare-balle).",
|
2022-10-27 12:37:13 -04:00
|
|
|
|
Hits = 0L,
|
2022-10-25 13:01:31 -04:00
|
|
|
|
ImageName = "chandailquetaine",
|
|
|
|
|
Price = 1435.45m,
|
|
|
|
|
PromoPrice = 1223.99m,
|
|
|
|
|
Quantity = 18L,
|
2022-10-27 12:37:13 -04:00
|
|
|
|
Sales = 0L,
|
2022-10-25 13:01:31 -04:00
|
|
|
|
Status = 3,
|
|
|
|
|
Title = "Gilet pare-balle en laine"
|
|
|
|
|
},
|
|
|
|
|
new
|
|
|
|
|
{
|
|
|
|
|
Id = 16,
|
|
|
|
|
Category = "Autre",
|
|
|
|
|
Description = "Pour s'éffoirer le nez dedans.",
|
2022-10-27 12:37:13 -04:00
|
|
|
|
Hits = 0L,
|
2022-10-25 13:01:31 -04:00
|
|
|
|
ImageName = "doudou",
|
|
|
|
|
Price = 14.45m,
|
|
|
|
|
PromoPrice = 13.99m,
|
|
|
|
|
Quantity = 14L,
|
2022-10-27 12:37:13 -04:00
|
|
|
|
Sales = 0L,
|
2022-10-25 13:01:31 -04:00
|
|
|
|
Status = 0,
|
|
|
|
|
Title = "Doudou"
|
|
|
|
|
},
|
|
|
|
|
new
|
|
|
|
|
{
|
|
|
|
|
Id = 17,
|
|
|
|
|
Category = "Vêtements d'extérieur",
|
|
|
|
|
Description = "Pour avoir l'air thug en hiver.",
|
2022-10-27 12:37:13 -04:00
|
|
|
|
Hits = 0L,
|
2022-10-25 13:01:31 -04:00
|
|
|
|
ImageName = "mitaines2",
|
|
|
|
|
Price = 9.45m,
|
|
|
|
|
PromoPrice = 8.99m,
|
|
|
|
|
Quantity = 16L,
|
2022-10-27 12:37:13 -04:00
|
|
|
|
Sales = 0L,
|
2022-10-25 13:01:31 -04:00
|
|
|
|
Status = 0,
|
|
|
|
|
Title = "Mitaines pas de doigts"
|
|
|
|
|
});
|
|
|
|
|
});
|
2022-10-30 16:58:47 -04:00
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<string>("Id")
|
|
|
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
|
|
|
.IsConcurrencyToken()
|
|
|
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Name")
|
|
|
|
|
.HasMaxLength(256)
|
|
|
|
|
.HasColumnType("nvarchar(256)");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("NormalizedName")
|
|
|
|
|
.HasMaxLength(256)
|
|
|
|
|
.HasColumnType("nvarchar(256)");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("NormalizedName")
|
|
|
|
|
.IsUnique()
|
|
|
|
|
.HasDatabaseName("RoleNameIndex")
|
|
|
|
|
.HasFilter("[NormalizedName] IS NOT NULL");
|
|
|
|
|
|
|
|
|
|
b.ToTable("AspNetRoles", (string)null);
|
2022-11-01 13:33:08 -04:00
|
|
|
|
|
|
|
|
|
b.HasData(
|
|
|
|
|
new
|
|
|
|
|
{
|
|
|
|
|
Id = "c9e08b20-d8a5-473f-9f52-572eb23c12af",
|
2022-11-04 18:22:24 -04:00
|
|
|
|
ConcurrencyStamp = "9708e256-7f72-43a3-9981-3d46a496efef",
|
2022-11-01 13:33:08 -04:00
|
|
|
|
Name = "Administrateur",
|
|
|
|
|
NormalizedName = "ADMINISTRATEUR"
|
|
|
|
|
},
|
|
|
|
|
new
|
|
|
|
|
{
|
|
|
|
|
Id = "1b7b9c55-c746-493a-a24f-3d5ca937298e",
|
2022-11-04 18:22:24 -04:00
|
|
|
|
ConcurrencyStamp = "ea9b728b-01ce-41db-a0b8-267b641c38c8",
|
2022-11-01 13:33:08 -04:00
|
|
|
|
Name = "Client",
|
|
|
|
|
NormalizedName = "CLIENT"
|
|
|
|
|
});
|
2022-10-30 16:58:47 -04:00
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ClaimType")
|
|
|
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ClaimValue")
|
|
|
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("RoleId")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("RoleId");
|
|
|
|
|
|
|
|
|
|
b.ToTable("AspNetRoleClaims", (string)null);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ClaimType")
|
|
|
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ClaimValue")
|
|
|
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("UserId")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
|
|
|
|
|
|
b.ToTable("AspNetUserClaims", (string)null);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<string>("LoginProvider")
|
|
|
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ProviderKey")
|
|
|
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ProviderDisplayName")
|
|
|
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("UserId")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
|
|
|
|
|
|
b.HasKey("LoginProvider", "ProviderKey");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
|
|
|
|
|
|
b.ToTable("AspNetUserLogins", (string)null);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<string>("UserId")
|
|
|
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("RoleId")
|
|
|
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
|
|
|
|
|
|
b.HasKey("UserId", "RoleId");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("RoleId");
|
|
|
|
|
|
|
|
|
|
b.ToTable("AspNetUserRoles", (string)null);
|
2022-11-01 13:33:08 -04:00
|
|
|
|
|
|
|
|
|
b.HasData(
|
|
|
|
|
new
|
|
|
|
|
{
|
|
|
|
|
UserId = "ecf7503a-591c-454e-a824-048e10bd0474",
|
|
|
|
|
RoleId = "c9e08b20-d8a5-473f-9f52-572eb23c12af"
|
|
|
|
|
},
|
|
|
|
|
new
|
|
|
|
|
{
|
|
|
|
|
UserId = "ecf7503a-591c-454e-a824-048e10bd0474",
|
|
|
|
|
RoleId = "1b7b9c55-c746-493a-a24f-3d5ca937298e"
|
|
|
|
|
});
|
2022-10-30 16:58:47 -04:00
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<string>("UserId")
|
|
|
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("LoginProvider")
|
|
|
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Name")
|
|
|
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Value")
|
|
|
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
|
|
|
|
|
|
b.HasKey("UserId", "LoginProvider", "Name");
|
|
|
|
|
|
|
|
|
|
b.ToTable("AspNetUserTokens", (string)null);
|
|
|
|
|
});
|
|
|
|
|
|
2022-11-01 13:33:08 -04:00
|
|
|
|
modelBuilder.Entity("GrossesMitainesAPI.Models.AddressModel", b =>
|
|
|
|
|
{
|
|
|
|
|
b.HasOne("GrossesMitainesAPI.Data.InventoryUser", null)
|
|
|
|
|
.WithMany("Adresses")
|
|
|
|
|
.HasForeignKey("InventoryUserId");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("GrossesMitainesAPI.Models.InvoiceModel", b =>
|
|
|
|
|
{
|
|
|
|
|
b.HasOne("GrossesMitainesAPI.Data.InventoryUser", "LinkedAccount")
|
|
|
|
|
.WithMany()
|
|
|
|
|
.HasForeignKey("LinkedAccountId");
|
|
|
|
|
|
|
|
|
|
b.HasOne("GrossesMitainesAPI.Models.AddressModel", "ShippingAddress")
|
|
|
|
|
.WithMany()
|
|
|
|
|
.HasForeignKey("ShippingAddressId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
b.Navigation("LinkedAccount");
|
|
|
|
|
|
|
|
|
|
b.Navigation("ShippingAddress");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("GrossesMitainesAPI.Models.InvoiceModel+ProductInvoice", b =>
|
|
|
|
|
{
|
|
|
|
|
b.HasOne("GrossesMitainesAPI.Models.InvoiceModel", null)
|
|
|
|
|
.WithMany("Products")
|
|
|
|
|
.HasForeignKey("InvoiceModelId");
|
|
|
|
|
|
|
|
|
|
b.HasOne("GrossesMitainesAPI.Models.ProductModel", "Product")
|
|
|
|
|
.WithMany()
|
|
|
|
|
.HasForeignKey("ProductId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
b.Navigation("Product");
|
|
|
|
|
});
|
|
|
|
|
|
2022-10-30 16:58:47 -04: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 =>
|
|
|
|
|
{
|
|
|
|
|
b.HasOne("GrossesMitainesAPI.Data.InventoryUser", null)
|
|
|
|
|
.WithMany()
|
|
|
|
|
.HasForeignKey("UserId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
|
|
|
|
|
{
|
|
|
|
|
b.HasOne("GrossesMitainesAPI.Data.InventoryUser", null)
|
|
|
|
|
.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();
|
|
|
|
|
|
|
|
|
|
b.HasOne("GrossesMitainesAPI.Data.InventoryUser", null)
|
|
|
|
|
.WithMany()
|
|
|
|
|
.HasForeignKey("UserId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
|
|
|
|
|
{
|
|
|
|
|
b.HasOne("GrossesMitainesAPI.Data.InventoryUser", null)
|
|
|
|
|
.WithMany()
|
|
|
|
|
.HasForeignKey("UserId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
});
|
2022-11-01 13:33:08 -04:00
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("GrossesMitainesAPI.Data.InventoryUser", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Navigation("Adresses");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("GrossesMitainesAPI.Models.InvoiceModel", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Navigation("Products");
|
|
|
|
|
});
|
2022-10-25 13:01:31 -04:00
|
|
|
|
#pragma warning restore 612, 618
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|