GGMM/GrossesMitaines/GrossesMitainesAPI/Migrations/InventoryContextModelSnapshot.cs

1323 lines
55 KiB
C#
Raw Permalink Normal View History

2022-10-08 14:02:05 -04:00
// <auto-generated />
2022-10-27 12:37:13 -04:00
using System;
2022-10-08 14:02:05 -04:00
using GrossesMitainesAPI.Data;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
#nullable disable
namespace GrossesMitainesAPI.Migrations
{
[DbContext(typeof(InventoryContext))]
partial class InventoryContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
2022-12-09 20:29:43 -05:00
.HasAnnotation("ProductVersion", "7.0.0")
2022-10-08 14:02:05 -04:00
.HasAnnotation("Relational:MaxIdentifierLength", 128);
2022-12-09 20:29:43 -05:00
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
2022-10-08 14:02:05 -04:00
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");
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
{
Id = "ecf7503a-591c-454e-a824-048e10bd0474",
2022-10-30 16:58:47 -04:00
AccessFailedCount = 0,
2022-12-12 15:28:21 -05:00
ConcurrencyStamp = "88a1532a-3749-409e-8463-7f68f04c2225",
2022-10-30 16:58:47 -04:00
Email = "admin@admin.com",
EmailConfirmed = false,
FirstName = "Roger",
LastName = "Admin",
2022-10-30 16:58:47 -04:00
LockoutEnabled = false,
NormalizedEmail = "ADMIN@ADMIN.COM",
NormalizedUserName = "ADMIN",
2022-12-12 15:28:21 -05:00
PasswordHash = "AQAAAAIAAYagAAAAEOixAy1U6YTbU41EkE4Yb3isi7ZhI/6YVpmzsfcy2aC2e7olVRw52N7h+ivBX6nSVg==",
2022-12-04 12:10:10 -05:00
PhoneNumber = "111-111-1111",
2022-10-30 16:58:47 -04:00
PhoneNumberConfirmed = false,
2022-12-12 15:28:21 -05:00
SecurityStamp = "f1e4d7cd-ff9b-428c-9bbf-a560e4607775",
2022-10-30 16:58:47 -04:00
TwoFactorEnabled = false,
UserName = "Admin"
},
new
{
Id = "af9178c8-1a02-4ff8-bc0a-c8248dad6e09",
AccessFailedCount = 0,
2022-12-12 15:28:21 -05:00
ConcurrencyStamp = "12929beb-3cd0-4f28-a965-ecb9d0299c86",
Email = "paul@exemple.com",
EmailConfirmed = false,
FirstName = "Paul",
LastName = "A.",
LockoutEnabled = false,
NormalizedEmail = "PAUL@EXEMPLE.COM",
NormalizedUserName = "PASLA",
2022-12-12 15:28:21 -05:00
PasswordHash = "AQAAAAIAAYagAAAAEN5YIl6BfmRcgns81BzscQa5/UmHzZxkoBraDPod7EFwjxYL0KJCneEimbytwK91lQ==",
2022-12-04 12:10:10 -05:00
PhoneNumber = "222-222-2222",
PhoneNumberConfirmed = false,
2022-12-12 15:28:21 -05:00
SecurityStamp = "5a5c5690-7ac8-4cb6-8820-b840f5a0e4f6",
TwoFactorEnabled = false,
UserName = "PasLa"
2022-10-30 16:58:47 -04:00
});
});
modelBuilder.Entity("GrossesMitainesAPI.Models.AddressModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
2022-12-09 20:29:43 -05:00
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
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");
2022-11-07 22:13:11 -05:00
b.HasData(
new
{
Id = 1,
Appartment = "B",
City = "Saint-Chrysostome",
CivicNumber = 1234,
Country = "Canada",
InventoryUserId = "ecf7503a-591c-454e-a824-048e10bd0474",
PostalCode = "H0H0H0",
Province = "QC",
Street = "Rue Pierre-Falardeau"
},
new
{
Id = 2,
City = "Saint-Jérôme",
CivicNumber = 420,
Country = "Canada",
PostalCode = "H0H0H0",
Province = "QC",
Street = "Rue MikeWard"
},
new
{
Id = 3,
Appartment = "A",
City = "Saint-Québec",
CivicNumber = 69,
Country = "Canada",
InventoryUserId = "af9178c8-1a02-4ff8-bc0a-c8248dad6e09",
PostalCode = "H0H0H0",
Province = "QC",
Street = "Rue PSPP"
2022-11-07 22:13:11 -05:00
});
});
2022-12-04 12:10:10 -05:00
modelBuilder.Entity("GrossesMitainesAPI.Models.ChargesModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
2022-12-09 20:29:43 -05:00
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
2022-12-04 12:10:10 -05:00
b.Property<long>("AmountInCents")
.HasColumnType("bigint");
2022-12-12 15:28:21 -05:00
b.Property<int>("BillingAddressId")
.HasColumnType("int");
2022-12-04 12:10:10 -05:00
b.Property<string>("CurrencyCode")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.Property<string>("Description")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.Property<string>("Email")
.IsRequired()
.HasColumnType("nvarchar(max)");
2022-12-12 13:48:23 -05:00
b.Property<string>("LastFourDigits")
.IsRequired()
.HasColumnType("nvarchar(max)");
2022-12-04 12:10:10 -05:00
b.Property<string>("Name")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.Property<string>("Phone")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.Property<string>("Token")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.HasKey("Id");
2022-12-12 15:28:21 -05:00
b.HasIndex("BillingAddressId");
2022-12-04 12:10:10 -05:00
b.ToTable("ChargesModel");
});
modelBuilder.Entity("GrossesMitainesAPI.Models.InvoiceModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
2022-12-09 20:29:43 -05:00
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
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)");
2022-12-04 12:10:10 -05:00
b.Property<int?>("PaymentId")
.HasColumnType("int");
b.Property<string>("PhoneNumber")
.IsRequired()
.HasColumnType("nvarchar(max)");
2022-11-04 18:22:24 -04:00
b.Property<DateTime>("PurchaseDate")
.HasColumnType("datetime2");
b.Property<int>("ShippingAddressId")
.HasColumnType("int");
2022-11-04 18:22:24 -04:00
b.Property<int>("Status")
.HasColumnType("int");
b.HasKey("Id");
b.HasIndex("LinkedAccountId");
2022-12-04 12:10:10 -05:00
b.HasIndex("PaymentId");
b.HasIndex("ShippingAddressId");
b.ToTable("Invoices");
2022-11-07 22:13:11 -05:00
b.HasData(
new
{
Id = 1,
EmailAddress = "admin@admin.com",
FirstName = "Roger",
LastName = "Admin",
LinkedAccountId = "ecf7503a-591c-454e-a824-048e10bd0474",
PhoneNumber = "111-111-1111",
2022-12-12 15:28:21 -05:00
PurchaseDate = new DateTime(2022, 12, 12, 12, 26, 42, 867, DateTimeKind.Local).AddTicks(7175),
2022-11-07 22:13:11 -05:00
ShippingAddressId = 1,
Status = 0
},
new
{
Id = 2,
EmailAddress = "admin@admin.com",
FirstName = "Roger",
LastName = "Admin",
LinkedAccountId = "ecf7503a-591c-454e-a824-048e10bd0474",
PhoneNumber = "111-111-1111",
2022-12-12 15:28:21 -05:00
PurchaseDate = new DateTime(2022, 12, 12, 12, 26, 42, 867, DateTimeKind.Local).AddTicks(7234),
2022-11-07 22:13:11 -05:00
ShippingAddressId = 1,
Status = 1
},
new
{
Id = 3,
EmailAddress = "admin@admin.com",
FirstName = "Roger",
LastName = "Admin",
LinkedAccountId = "ecf7503a-591c-454e-a824-048e10bd0474",
PhoneNumber = "111-111-1111",
2022-12-12 15:28:21 -05:00
PurchaseDate = new DateTime(2022, 12, 12, 12, 26, 42, 867, DateTimeKind.Local).AddTicks(7236),
2022-11-07 22:13:11 -05:00
ShippingAddressId = 1,
Status = 3
},
new
{
Id = 4,
EmailAddress = "admin@admin.com",
FirstName = "Roger",
LastName = "Admin",
LinkedAccountId = "ecf7503a-591c-454e-a824-048e10bd0474",
PhoneNumber = "111-111-1111",
2022-12-12 15:28:21 -05:00
PurchaseDate = new DateTime(2022, 12, 12, 12, 26, 42, 867, DateTimeKind.Local).AddTicks(7238),
2022-11-07 22:13:11 -05:00
ShippingAddressId = 1,
Status = 4
},
new
{
Id = 5,
EmailAddress = "admin@admin.com",
FirstName = "Roger",
LastName = "Admin",
LinkedAccountId = "ecf7503a-591c-454e-a824-048e10bd0474",
PhoneNumber = "111-111-1111",
2022-12-12 15:28:21 -05:00
PurchaseDate = new DateTime(2022, 12, 12, 12, 26, 42, 867, DateTimeKind.Local).AddTicks(7240),
2022-11-07 22:13:11 -05:00
ShippingAddressId = 1,
Status = 5
},
new
{
Id = 6,
EmailAddress = "test@admin.com",
FirstName = "Jérémy",
LastName = "Le Petit",
PhoneNumber = "111-111-1111",
2022-12-12 15:28:21 -05:00
PurchaseDate = new DateTime(2022, 12, 12, 12, 26, 42, 867, DateTimeKind.Local).AddTicks(7242),
ShippingAddressId = 2,
Status = 0
},
new
{
Id = 7,
EmailAddress = "paul@exemple.com",
FirstName = "Paul",
LastName = "A.",
LinkedAccountId = "af9178c8-1a02-4ff8-bc0a-c8248dad6e09",
PhoneNumber = "111-111-1111",
2022-12-12 15:28:21 -05:00
PurchaseDate = new DateTime(2022, 12, 12, 12, 26, 42, 867, DateTimeKind.Local).AddTicks(7259),
ShippingAddressId = 3,
Status = 3
2022-11-07 22:13:11 -05:00
});
});
modelBuilder.Entity("GrossesMitainesAPI.Models.InvoiceModel+ProductInvoice", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
2022-12-09 20:29:43 -05:00
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
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");
b.HasKey("Id");
b.HasIndex("InvoiceModelId");
b.HasIndex("ProductId");
b.ToTable("ProductInvoice");
2022-11-07 22:13:11 -05:00
b.HasData(
new
{
Id = 1,
InvoiceModelId = 1,
ProductId = 1,
Quantity = 2L
},
new
{
Id = 2,
InvoiceModelId = 1,
ProductId = 4,
Quantity = 5L
},
new
{
Id = 3,
InvoiceModelId = 2,
ProductId = 3,
Quantity = 1L
},
new
{
Id = 4,
InvoiceModelId = 2,
ProductId = 5,
Quantity = 2L
},
new
{
Id = 5,
InvoiceModelId = 2,
ProductId = 7,
Quantity = 1L
},
new
{
Id = 6,
InvoiceModelId = 3,
ProductId = 9,
Quantity = 1L
},
new
{
Id = 7,
InvoiceModelId = 3,
ProductId = 11,
Quantity = 1L
},
new
{
Id = 8,
InvoiceModelId = 4,
ProductId = 14,
Quantity = 1L
},
new
{
Id = 9,
InvoiceModelId = 4,
ProductId = 13,
Quantity = 1L
},
new
{
Id = 10,
InvoiceModelId = 4,
ProductId = 16,
Quantity = 1L
},
new
{
Id = 11,
InvoiceModelId = 4,
ProductId = 24,
Quantity = 25L
},
new
{
Id = 12,
InvoiceModelId = 5,
ProductId = 25,
Quantity = 1L
},
new
{
Id = 13,
InvoiceModelId = 5,
ProductId = 29,
Quantity = 1L
},
new
{
Id = 14,
InvoiceModelId = 5,
ProductId = 30,
Quantity = 1L
},
new
{
Id = 15,
InvoiceModelId = 5,
ProductId = 15,
Quantity = 2L
},
new
{
Id = 16,
InvoiceModelId = 6,
ProductId = 20,
Quantity = 4L
},
new
{
Id = 17,
InvoiceModelId = 7,
ProductId = 1,
Quantity = 1L
},
new
{
Id = 18,
InvoiceModelId = 7,
ProductId = 15,
Quantity = 2L
2022-11-07 22:13:11 -05:00
});
});
modelBuilder.Entity("GrossesMitainesAPI.Models.ProductModel", b =>
2022-10-08 14:02:05 -04:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
2022-12-09 20:29:43 -05:00
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
2022-10-08 14:02:05 -04:00
2022-10-09 15:07:35 -04:00
b.Property<string>("Category")
.IsRequired()
.HasColumnType("nvarchar(max)");
2022-10-08 14:02:05 -04:00
b.Property<string>("Description")
.IsRequired()
.HasColumnType("nvarchar(max)");
2022-10-27 12:37:13 -04:00
b.Property<long>("Hits")
.HasColumnType("bigint");
2022-10-09 13:18:39 -04:00
b.Property<string>("ImageName")
2022-10-08 14:02:05 -04:00
.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-08 14:02:05 -04:00
b.Property<decimal>("Price")
.HasColumnType("decimal(18,2)");
2022-10-16 20:33:58 -04:00
b.Property<decimal>("PromoPrice")
.HasColumnType("decimal(18,2)");
2022-10-09 15:07:35 -04:00
b.Property<long>("Quantity")
.HasColumnType("bigint");
2022-10-27 12:37:13 -04:00
b.Property<long>("Sales")
.HasColumnType("bigint");
2022-10-16 11:25:21 -04:00
b.Property<int>("Status")
.HasColumnType("int");
2022-10-08 14:02:05 -04:00
b.Property<string>("Title")
.IsRequired()
.HasMaxLength(255)
.HasColumnType("nvarchar(255)");
b.HasKey("Id");
b.ToTable("Products");
b.HasData(
new
{
Id = 1,
2022-10-09 15:07:35 -04:00
Category = "Linge",
2022-10-08 14:02:05 -04:00
Description = "Pour faire votre propre bonhomme de 1837, comme dans le bon vieux temps.",
2022-10-27 12:37:13 -04:00
Hits = 0L,
ImageName = "$ceintureflechee.jpg",
2022-10-08 14:02:05 -04:00
Price = 85.86m,
2022-10-25 13:01:31 -04:00
PromoPrice = 29.99m,
2022-10-09 15:07:35 -04:00
Quantity = 1L,
2022-10-27 12:37:13 -04:00
Sales = 0L,
2022-10-16 11:25:21 -04:00
Status = 4,
Title = "Ceinture flèchée"
2022-10-08 14:02:05 -04:00
},
new
{
Id = 2,
2022-10-09 15:07:35 -04:00
Category = "Linge",
2022-10-08 14:02:05 -04:00
Description = "Parce que ça sent la coupe!",
2022-10-27 12:37:13 -04:00
Hits = 0L,
ImageName = "$pantouflesCH.jpg",
2022-10-08 14:02:05 -04:00
Price = 15.64m,
2022-10-25 13:01:31 -04:00
PromoPrice = 9.99m,
2022-10-09 15:07:35 -04:00
Quantity = 54L,
2022-10-27 12:37:13 -04:00
Sales = 0L,
2022-10-16 11:25:21 -04:00
Status = 0,
Title = "Pantoufles du Canadien en Phentex"
2022-10-08 14:02:05 -04:00
},
new
{
Id = 3,
2022-10-09 15:07:35 -04:00
Category = "Homme",
2022-10-08 14:02:05 -04:00
Description = "On ne lui ferait pas mal, en tout cas!!",
2022-10-27 12:37:13 -04:00
Hits = 0L,
ImageName = "$jeanlucmongrain.jpg",
2022-10-08 14:02:05 -04:00
Price = 1453.12m,
2022-10-25 13:01:31 -04:00
PromoPrice = 999.99m,
2022-10-09 15:07:35 -04:00
Quantity = 1L,
2022-10-27 12:37:13 -04:00
Sales = 0L,
2022-10-16 11:25:21 -04:00
Status = 3,
Title = "Jean-Luc Mongrain"
2022-10-25 13:01:31 -04:00
},
new
{
Id = 4,
Category = "Linge",
Description = "Tellement simple et comfortable.",
2022-10-27 12:37:13 -04:00
Hits = 0L,
ImageName = "$tshirt.jpg",
2022-10-25 13:01:31 -04:00
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,
ImageName = "$mitaines.jpg",
2022-10-25 13:01:31 -04:00
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,
ImageName = "$foulard.jpg",
2022-10-25 13:01:31 -04:00
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,
ImageName = "$kokin.jpg",
2022-10-25 13:01:31 -04:00
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,
ImageName = "$kokinfemme.jpg",
2022-10-25 13:01:31 -04:00
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,
ImageName = "$bibi.jpg",
2022-10-25 13:01:31 -04:00
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,
ImageName = "$tuque.jpg",
2022-10-25 13:01:31 -04:00
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,
ImageName = "$bonhomme.jpg",
2022-10-25 13:01:31 -04:00
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,
ImageName = "$gauze.jpg",
2022-10-25 13:01:31 -04:00
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,
ImageName = "$jesus.jpg",
2022-10-25 13:01:31 -04:00
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,
ImageName = "$vhs.jpg",
2022-10-25 13:01:31 -04:00
Price = 3.45m,
PromoPrice = 1.99m,
Quantity = 99L,
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,
ImageName = "$chandailquetaine.jpg",
2022-10-25 13:01:31 -04:00
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,
ImageName = "$doudou.jpg",
2022-10-25 13:01:31 -04:00
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,
ImageName = "$mitaines2.jpg",
2022-10-25 13:01:31 -04:00
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"
},
new
{
Id = 18,
Category = "Vêtements d'extérieur",
Description = "Pour avoir plus l'air thug en hiver.",
Hits = 0L,
ImageName = "$longmitaines.jpg",
Price = 10.45m,
PromoPrice = 9.99m,
Quantity = 10L,
Sales = 0L,
Status = 5,
Title = "Longues mitaines pas de doigts"
},
new
{
Id = 19,
Category = "Linge",
Description = "Pour les journées bs",
Hits = 0L,
ImageName = "$pantalon.jpg",
Price = 69.99m,
PromoPrice = 49.99m,
Quantity = 0L,
Sales = 0L,
Status = 1,
Title = "Pantalons slacks"
},
new
{
Id = 20,
Category = "Linge",
Description = "Pour commencer à apprendre rust et utiliser linux",
Hits = 0L,
ImageName = "$thighs.jpg",
Price = 23.50m,
PromoPrice = 19.99m,
Quantity = 3L,
Sales = 0L,
Status = 4,
Title = "Programmer Socks"
},
new
{
Id = 21,
Category = "Linge",
Description = "Show off que t'habites su'l plateau",
Hits = 0L,
ImageName = "$plateau.png",
Price = 149.99m,
PromoPrice = 99.99m,
Quantity = 14L,
Sales = 0L,
Status = 0,
Title = "Col-roulé"
},
new
{
Id = 22,
Category = "Linge",
Description = "Ben oui je vais à l'UQAM comment t'as d'viné",
Hits = 0L,
ImageName = "$uqam.jpg",
Price = 149.99m,
PromoPrice = 99.99m,
Quantity = 4L,
Sales = 0L,
Status = 3,
Title = "Gros col-roulé"
},
new
{
Id = 23,
Category = "Établissement",
Description = "Oui oui, une SAQ au complete",
Hits = 0L,
ImageName = "$saq.jpg",
Price = 1000000.99m,
PromoPrice = 999999.99m,
Quantity = 1L,
Sales = 0L,
Status = 0,
Title = "SAQ"
},
new
{
Id = 24,
Category = "Texte",
Description = "Lorem ipsum dolor sit amet, \r\nconsectetur adipiscing elit. Vivamus sapien ipsum, \r\nconvallis quis justo ac, congue sollicitudin metus. \r\nVestibulum nec libero nulla. Integer a pretium dolor. \r\nPhasellus vulputate iaculis ligula, sit amet suscipit \r\ndiam condimentum eu. Suspendisse blandit ipsum sed porttitor volutpat.\r\nDuis iaculis mauris a dapibus bibendum. Integer sollicitudin nunc et neque\r\negestas sagittis. Etiam vitae ornare ex.",
Hits = 0L,
ImageName = "$lorem.jpg",
Price = 0.99m,
PromoPrice = 0.69m,
Quantity = 99L,
Sales = 0L,
Status = 4,
Title = "Lorem"
},
new
{
Id = 25,
Category = "Homme",
Description = "Quand un vrai coûte trop cher",
Hits = 0L,
ImageName = "$bebe.jpg",
Price = 10.99m,
PromoPrice = 5.99m,
Quantity = 15L,
Sales = 0L,
Status = 0,
Title = "Bébé de laine"
},
new
{
Id = 26,
Category = "Linge",
Description = "Un beau petit kit pas cher quand vous avez oublié le cadeau pour le shower qui s'en vient",
Hits = 0L,
ImageName = "$kitbebe.jpg",
Price = 39.99m,
PromoPrice = 29.99m,
Quantity = 10L,
Sales = 0L,
Status = 3,
Title = "Kit pour bébé"
},
new
{
Id = 27,
Category = "Linge",
Description = "Chris Pratt aime ben sauter dessus",
Hits = 0L,
ImageName = "$koopa.jpg",
Price = 29.99m,
PromoPrice = 9.99m,
Quantity = 0L,
Sales = 0L,
Status = 5,
Title = "TORTUE"
},
new
{
Id = 28,
Category = "Nourriture",
Description = "*ne pa manger",
Hits = 0L,
ImageName = "$potato.jpg",
Price = 1.99m,
PromoPrice = 0.99m,
Quantity = 58L,
Sales = 0L,
Status = 0,
Title = "Patate de laine"
},
new
{
Id = 29,
Category = "Animal",
Description = "Les singes sont des mammifères de l'ordre des primates, généralement arboricoles, à la face souvent glabre et caractérisés par un encéphale développé et de longs membres terminés par des doigts. Bien que leur ressemblance avec l'Homme ait toujours frappé les esprits, la science a mis de nombreux siècles à prouver le lien étroit qui existe entre ceux-ci et l'espèce humaine.\r\n\r\nAu sein des primates, les singes forment un infra-ordre monophylétique, si l'on y inclut le genre Homo, nommé Simiiformes et qui se divise entre les Platyrhiniens (singes du Nouveau Monde : Amérique centrale et méridionale) et les Catarhiniens (singes de l'Ancien Monde : Afrique et Asie tropicales). Ces derniers comprennent les hominoïdes, également appelés « grands singes », dont fait partie Homo sapiens et ses ancêtres les plus proches.\r\n\r\nMême s'il ne fait plus de doute aujourd'hui que « l'Homme est un singe comme les autres », l'expression est majoritairement utilisée pour parler des animaux sauvages, et évoque un référentiel culturel, littéraire et artistique qui exclut l'espèce humaine.",
Hits = 0L,
ImageName = "$monke.png",
Price = 299.99m,
PromoPrice = 99.99m,
Quantity = 58L,
Sales = 0L,
Status = 0,
Title = "Monke :)"
},
new
{
Id = 30,
Category = "Pokemon",
Description = "It evolves from Pichu when leveled up with high friendship and evolves into Raichu when exposed to a Thunder Stone.\r\n\r\nIn Alola, Pikachu will evolve into Alolan Raichu when exposed to a Thunder Stone.\r\n\r\nPikachu has a Gigantamax form. Pikachu with the Gigantamax Factor cannot evolve.\r\n\r\nIn Pokémon Yellow, the starter Pikachu will refuse to evolve into Raichu unless it is traded and evolved on another save file. In Pokémon: Let's Go, Pikachu!, the player's starter Pikachu also will not evolve, but cannot be traded to become a Raichu.\r\n\r\nPikachu is popularly known as the mascot of the Pokémon franchise and one of Nintendo's major mascots.\r\n\r\nIt is also the game mascot and starter Pokémon of Pokémon Yellow and Let's Go, Pikachu!. It has made numerous appearances on the boxes of spin-off titles.\r\n\r\nPikachu is also the starter Pokémon of Pokémon Rumble Blast and Pokémon Rumble World.",
Hits = 0L,
ImageName = "$pika.png",
Price = 3.99m,
PromoPrice = 2.99m,
Quantity = 69L,
Sales = 0L,
Status = 5,
Title = "Phat Pikachu"
2022-10-08 14:02:05 -04:00
});
});
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);
b.HasData(
new
{
Id = "c9e08b20-d8a5-473f-9f52-572eb23c12af",
Name = "Administrateur",
NormalizedName = "ADMINISTRATEUR"
},
new
{
Id = "1b7b9c55-c746-493a-a24f-3d5ca937298e",
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");
2022-12-09 20:29:43 -05:00
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
2022-10-30 16:58:47 -04:00
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");
2022-12-09 20:29:43 -05:00
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
2022-10-30 16:58:47 -04:00
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);
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"
},
new
{
UserId = "af9178c8-1a02-4ff8-bc0a-c8248dad6e09",
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);
});
modelBuilder.Entity("GrossesMitainesAPI.Models.AddressModel", b =>
{
b.HasOne("GrossesMitainesAPI.Data.InventoryUser", null)
.WithMany("Adresses")
.HasForeignKey("InventoryUserId");
});
2022-12-12 15:28:21 -05:00
modelBuilder.Entity("GrossesMitainesAPI.Models.ChargesModel", b =>
{
b.HasOne("GrossesMitainesAPI.Models.AddressModel", "BillingAddress")
.WithMany()
.HasForeignKey("BillingAddressId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("BillingAddress");
});
modelBuilder.Entity("GrossesMitainesAPI.Models.InvoiceModel", b =>
{
b.HasOne("GrossesMitainesAPI.Data.InventoryUser", "LinkedAccount")
.WithMany()
.HasForeignKey("LinkedAccountId");
2022-12-04 12:10:10 -05:00
b.HasOne("GrossesMitainesAPI.Models.ChargesModel", "Payment")
.WithMany()
.HasForeignKey("PaymentId");
b.HasOne("GrossesMitainesAPI.Models.AddressModel", "ShippingAddress")
.WithMany()
.HasForeignKey("ShippingAddressId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("LinkedAccount");
2022-12-04 12:10:10 -05:00
b.Navigation("Payment");
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();
});
modelBuilder.Entity("GrossesMitainesAPI.Data.InventoryUser", b =>
{
b.Navigation("Adresses");
});
modelBuilder.Entity("GrossesMitainesAPI.Models.InvoiceModel", b =>
{
b.Navigation("Products");
});
2022-10-08 14:02:05 -04:00
#pragma warning restore 612, 618
}
}
}