106 lines
		
	
	
		
			3.9 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			106 lines
		
	
	
		
			3.9 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
// <auto-generated />
 | 
						|
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
 | 
						|
                .HasAnnotation("ProductVersion", "6.0.9")
 | 
						|
                .HasAnnotation("Relational:MaxIdentifierLength", 128);
 | 
						|
 | 
						|
            SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1);
 | 
						|
 | 
						|
            modelBuilder.Entity("GrossesMitainesAPI.Models.Product", b =>
 | 
						|
                {
 | 
						|
                    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)");
 | 
						|
 | 
						|
                    b.Property<string>("ImageName")
 | 
						|
                        .HasColumnType("nvarchar(max)");
 | 
						|
 | 
						|
                    b.Property<decimal>("Price")
 | 
						|
                        .HasColumnType("decimal(18,2)");
 | 
						|
 | 
						|
                    b.Property<decimal>("PromoPrice")
 | 
						|
                        .HasColumnType("decimal(18,2)");
 | 
						|
 | 
						|
                    b.Property<long>("Quantity")
 | 
						|
                        .HasColumnType("bigint");
 | 
						|
 | 
						|
                    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.",
 | 
						|
                            ImageName = "ceintureflechee",
 | 
						|
                            Price = 85.86m,
 | 
						|
                            PromoPrice = 0m,
 | 
						|
                            Quantity = 1L,
 | 
						|
                            Status = 4,
 | 
						|
                            Title = "Ceinture flèchée"
 | 
						|
                        },
 | 
						|
                        new
 | 
						|
                        {
 | 
						|
                            Id = 2,
 | 
						|
                            Category = "Linge",
 | 
						|
                            Description = "Parce que ça sent la coupe!",
 | 
						|
                            ImageName = "pantouflesCH",
 | 
						|
                            Price = 15.64m,
 | 
						|
                            PromoPrice = 0m,
 | 
						|
                            Quantity = 54L,
 | 
						|
                            Status = 0,
 | 
						|
                            Title = "Pantoufles du Canadien en Phentex"
 | 
						|
                        },
 | 
						|
                        new
 | 
						|
                        {
 | 
						|
                            Id = 3,
 | 
						|
                            Category = "Homme",
 | 
						|
                            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"
 | 
						|
                        });
 | 
						|
                });
 | 
						|
#pragma warning restore 612, 618
 | 
						|
        }
 | 
						|
    }
 | 
						|
}
 |