// <auto-generated /> using System; using InventoryManager.Data; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; namespace InventoryManager.Migrations { [DbContext(typeof(InventoryContext))] partial class InventoryContextModelSnapshot : ModelSnapshot { protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("Relational:MaxIdentifierLength", 64) .HasAnnotation("ProductVersion", "5.0.17"); modelBuilder.Entity("InventoryManager.Models.Collections", b => { b.Property<int>("Id") .ValueGeneratedOnAdd() .HasColumnType("int"); b.Property<string>("Description") .IsRequired() .HasMaxLength(255) .HasColumnType("varchar(255)"); b.Property<string>("Name") .IsRequired() .HasMaxLength(255) .HasColumnType("varchar(255)"); b.HasKey("Id"); b.ToTable("Collections"); }); modelBuilder.Entity("InventoryManager.Models.Colors", b => { b.Property<int>("Id") .ValueGeneratedOnAdd() .HasColumnType("int"); b.Property<string>("Description") .IsRequired() .HasMaxLength(255) .HasColumnType("varchar(255)"); b.Property<string>("Name") .IsRequired() .HasMaxLength(255) .HasColumnType("varchar(255)"); b.HasKey("Id"); b.ToTable("Colors"); }); modelBuilder.Entity("InventoryManager.Models.Materials", b => { b.Property<int>("Id") .ValueGeneratedOnAdd() .HasColumnType("int"); b.Property<string>("Description") .IsRequired() .HasMaxLength(255) .HasColumnType("varchar(255)"); b.Property<string>("Name") .IsRequired() .HasMaxLength(255) .HasColumnType("varchar(255)"); b.Property<int>("Supplier") .HasColumnType("int"); b.Property<int>("Unit") .HasColumnType("int"); b.HasKey("Id"); b.HasIndex("Supplier"); b.HasIndex("Unit"); b.ToTable("Materials"); }); modelBuilder.Entity("InventoryManager.Models.Products", b => { b.Property<int>("Id") .ValueGeneratedOnAdd() .HasColumnType("int"); b.Property<int>("Collection") .HasColumnType("int"); b.Property<int?>("Color") .IsRequired() .HasColumnType("int"); b.Property<string>("Description") .IsRequired() .HasMaxLength(255) .HasColumnType("varchar(255)"); b.Property<int>("Material") .HasColumnType("int"); b.Property<string>("Name") .IsRequired() .HasMaxLength(255) .HasColumnType("varchar(255)"); b.Property<string>("Quantity") .IsRequired() .HasMaxLength(255) .HasColumnType("varchar(255)"); b.Property<int>("Unit") .HasColumnType("int"); b.HasKey("Id"); b.HasIndex("Collection"); b.HasIndex("Color"); b.HasIndex("Material"); b.HasIndex("Unit"); b.ToTable("Products"); }); modelBuilder.Entity("InventoryManager.Models.Suppliers", b => { b.Property<int>("Id") .ValueGeneratedOnAdd() .HasColumnType("int"); b.Property<string>("Address") .IsRequired() .HasMaxLength(255) .HasColumnType("varchar(255)"); b.Property<string>("Contact") .IsRequired() .HasMaxLength(255) .HasColumnType("varchar(255)"); b.Property<string>("Inforamtion") .IsRequired() .HasMaxLength(255) .HasColumnType("varchar(255)"); b.Property<string>("Name") .IsRequired() .HasMaxLength(255) .HasColumnType("varchar(255)"); b.HasKey("Id"); b.ToTable("Suppliers"); }); modelBuilder.Entity("InventoryManager.Models.Unit", b => { b.Property<int>("Id") .ValueGeneratedOnAdd() .HasColumnType("int"); b.Property<string>("Description") .IsRequired() .HasMaxLength(255) .HasColumnType("varchar(255)"); b.Property<string>("Name") .IsRequired() .HasMaxLength(255) .HasColumnType("varchar(255)"); b.HasKey("Id"); b.ToTable("Units"); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b => { b.Property<string>("Id") .HasMaxLength(255) .HasColumnType("varchar(255)"); b.Property<string>("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(255) .HasColumnType("varchar(255)"); b.Property<string>("Name") .HasMaxLength(255) .HasColumnType("varchar(255)"); b.Property<string>("NormalizedName") .HasMaxLength(255) .HasColumnType("varchar(255)"); b.HasKey("Id"); b.HasIndex("NormalizedName") .IsUnique() .HasDatabaseName("RoleNameIndex"); b.ToTable("AspNetRoles"); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b => { b.Property<int>("Id") .ValueGeneratedOnAdd() .HasColumnType("int"); b.Property<string>("ClaimType") .HasMaxLength(255) .HasColumnType("varchar(255)"); b.Property<string>("ClaimValue") .HasMaxLength(255) .HasColumnType("varchar(255)"); b.Property<string>("RoleId") .IsRequired() .HasMaxLength(255) .HasColumnType("varchar(255)"); b.HasKey("Id"); b.HasIndex("RoleId"); b.ToTable("AspNetRoleClaims"); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUser", b => { b.Property<string>("Id") .HasMaxLength(255) .HasColumnType("varchar(255)"); b.Property<int>("AccessFailedCount") .HasColumnType("int"); b.Property<string>("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(255) .HasColumnType("varchar(255)"); b.Property<string>("Email") .HasMaxLength(255) .HasColumnType("varchar(255)"); b.Property<bool>("EmailConfirmed") .HasColumnType("tinyint(1)"); b.Property<bool>("LockoutEnabled") .HasColumnType("tinyint(1)"); b.Property<DateTimeOffset?>("LockoutEnd") .HasColumnType("timestamp"); b.Property<string>("NormalizedEmail") .HasMaxLength(255) .HasColumnType("varchar(255)"); b.Property<string>("NormalizedUserName") .HasMaxLength(255) .HasColumnType("varchar(255)"); b.Property<string>("PasswordHash") .HasMaxLength(255) .HasColumnType("varchar(255)"); b.Property<string>("PhoneNumber") .HasMaxLength(255) .HasColumnType("varchar(255)"); b.Property<bool>("PhoneNumberConfirmed") .HasColumnType("tinyint(1)"); b.Property<string>("SecurityStamp") .HasMaxLength(255) .HasColumnType("varchar(255)"); b.Property<bool>("TwoFactorEnabled") .HasColumnType("tinyint(1)"); b.Property<string>("UserName") .HasMaxLength(255) .HasColumnType("varchar(255)"); b.HasKey("Id"); b.HasIndex("NormalizedEmail") .HasDatabaseName("EmailIndex"); b.HasIndex("NormalizedUserName") .IsUnique() .HasDatabaseName("UserNameIndex"); b.ToTable("AspNetUsers"); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b => { b.Property<int>("Id") .ValueGeneratedOnAdd() .HasColumnType("int"); b.Property<string>("ClaimType") .HasMaxLength(255) .HasColumnType("varchar(255)"); b.Property<string>("ClaimValue") .HasMaxLength(255) .HasColumnType("varchar(255)"); b.Property<string>("UserId") .IsRequired() .HasMaxLength(255) .HasColumnType("varchar(255)"); b.HasKey("Id"); b.HasIndex("UserId"); b.ToTable("AspNetUserClaims"); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b => { b.Property<string>("LoginProvider") .HasMaxLength(255) .HasColumnType("varchar(255)"); b.Property<string>("ProviderKey") .HasMaxLength(255) .HasColumnType("varchar(255)"); b.Property<string>("ProviderDisplayName") .HasMaxLength(255) .HasColumnType("varchar(255)"); b.Property<string>("UserId") .IsRequired() .HasMaxLength(255) .HasColumnType("varchar(255)"); b.HasKey("LoginProvider", "ProviderKey"); b.HasIndex("UserId"); b.ToTable("AspNetUserLogins"); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b => { b.Property<string>("UserId") .HasMaxLength(255) .HasColumnType("varchar(255)"); b.Property<string>("RoleId") .HasMaxLength(255) .HasColumnType("varchar(255)"); b.HasKey("UserId", "RoleId"); b.HasIndex("RoleId"); b.ToTable("AspNetUserRoles"); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b => { b.Property<string>("UserId") .HasMaxLength(255) .HasColumnType("varchar(255)"); b.Property<string>("LoginProvider") .HasMaxLength(255) .HasColumnType("varchar(255)"); b.Property<string>("Name") .HasMaxLength(255) .HasColumnType("varchar(255)"); b.Property<string>("Value") .HasMaxLength(255) .HasColumnType("varchar(255)"); b.HasKey("UserId", "LoginProvider", "Name"); b.ToTable("AspNetUserTokens"); }); modelBuilder.Entity("InventoryManager.Models.Materials", b => { b.HasOne("InventoryManager.Models.Suppliers", "Suppliers") .WithMany() .HasForeignKey("Supplier") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("InventoryManager.Models.Unit", "Units") .WithMany() .HasForeignKey("Unit") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Suppliers"); b.Navigation("Units"); }); modelBuilder.Entity("InventoryManager.Models.Products", b => { b.HasOne("InventoryManager.Models.Collections", "Collections") .WithMany() .HasForeignKey("Collection") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("InventoryManager.Models.Colors", "Colors") .WithMany() .HasForeignKey("Color") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("InventoryManager.Models.Materials", "Materials") .WithMany() .HasForeignKey("Material") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("InventoryManager.Models.Unit", "Units") .WithMany() .HasForeignKey("Unit") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Collections"); b.Navigation("Colors"); b.Navigation("Materials"); b.Navigation("Units"); }); 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("Microsoft.AspNetCore.Identity.IdentityUser", null) .WithMany() .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b => { b.HasOne("Microsoft.AspNetCore.Identity.IdentityUser", 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("Microsoft.AspNetCore.Identity.IdentityUser", null) .WithMany() .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b => { b.HasOne("Microsoft.AspNetCore.Identity.IdentityUser", null) .WithMany() .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); #pragma warning restore 612, 618 } } }