// <auto-generated /> using Casestudy.DAL; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; #nullable disable namespace Casestudy.Migrations { [DbContext(typeof(AppDbContext))] [Migration("20230726155430_appuser")] partial class appuser { /// <inheritdoc /> protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "7.0.8") .HasAnnotation("Relational:MaxIdentifierLength", 128); SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); modelBuilder.Entity("Casestudy.DAL.DomainClasses.Brand", b => { b.Property<int>("Id") .ValueGeneratedOnAdd() .HasColumnType("int"); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id")); b.Property<string>("Name") .IsRequired() .HasColumnType("nvarchar(max)"); b.HasKey("Id"); b.ToTable("Brands"); }); modelBuilder.Entity("Casestudy.DAL.DomainClasses.Customer", b => { b.Property<int>("Id") .ValueGeneratedOnAdd() .HasColumnType("int"); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id")); b.Property<string>("Email") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property<string>("Firstname") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property<string>("Hash") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property<string>("Lastname") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property<string>("Salt") .IsRequired() .HasColumnType("nvarchar(max)"); b.HasKey("Id"); b.ToTable("Customers"); }); modelBuilder.Entity("Casestudy.DAL.DomainClasses.Product", b => { b.Property<string>("Id") .HasColumnType("nvarchar(450)"); b.Property<int>("BrandId") .HasColumnType("int"); b.Property<decimal>("CostPrice") .HasColumnType("money"); b.Property<string>("Description") .HasMaxLength(2000) .HasColumnType("nvarchar(2000)"); b.Property<string>("GraphicName") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property<decimal>("MSRP") .HasColumnType("money"); b.Property<string>("ProductName") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property<int>("QtyOnBackOrder") .HasColumnType("int"); b.Property<int>("QtyOnHand") .HasColumnType("int"); b.HasKey("Id"); b.HasIndex("BrandId"); b.ToTable("Products"); }); modelBuilder.Entity("Casestudy.DAL.DomainClasses.Product", b => { b.HasOne("Casestudy.DAL.DomainClasses.Brand", "Brand") .WithMany() .HasForeignKey("BrandId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Brand"); }); #pragma warning restore 612, 618 } } }