// using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using NKC.Data; #nullable disable namespace NKC.Data.Migrations { [DbContext(typeof(NKCContext))] partial class NKCContextModelSnapshot : ModelSnapshot { protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "6.0.0") .HasAnnotation("Relational:MaxIdentifierLength", 128); SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1); modelBuilder.Entity("NKC.Data.DbModels.MaterialModel", b => { b.Property("MatID") .ValueGeneratedOnAdd() .HasColumnType("int"); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("MatID"), 1L, 1); b.Property("ApprovDate") .ValueGeneratedOnAdd() .HasColumnType("datetime") .HasDefaultValueSql("(getdate())"); b.Property("ApprovUser") .IsRequired() .ValueGeneratedOnAdd() .HasMaxLength(50) .HasColumnType("nvarchar(50)") .HasDefaultValueSql("('')"); b.Property("LMm") .HasColumnType("decimal(18,3)") .HasColumnName("L_mm"); b.Property("MatDesc") .IsRequired() .ValueGeneratedOnAdd() .HasMaxLength(500) .HasColumnType("nvarchar(500)") .HasDefaultValueSql("('')") .HasComment("Description"); b.Property("MatExtCode") .HasColumnType("int"); b.Property("TMm") .HasColumnType("decimal(18,3)") .HasColumnName("T_mm"); b.Property("WMm") .HasColumnType("decimal(18,3)") .HasColumnName("W_mm"); b.HasKey("MatID"); b.HasIndex(new[] { "MatExtCode" }, "Idx_Materials_MatExtCode_Unique") .IsUnique(); b.ToTable("Materials"); }); modelBuilder.Entity("NKC.Data.DbModels.MovMagModel", b => { b.Property("MovID") .ValueGeneratedOnAdd() .HasColumnType("int"); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("MovID"), 1L, 1); b.Property("DtRec") .HasColumnType("datetime2"); b.Property("QtyRec") .HasColumnType("int"); b.Property("RemnID") .HasColumnType("int"); b.Property("UserId") .IsRequired() .HasColumnType("nvarchar(max)"); b.HasKey("MovID"); b.HasIndex("RemnID"); b.ToTable("MovMag"); }); modelBuilder.Entity("NKC.Data.DbModels.RemnantsModel", b => { b.Property("RemnID") .ValueGeneratedOnAdd() .HasColumnType("int"); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("RemnID"), 1L, 1); b.Property("DtMod") .HasColumnType("datetime2"); b.Property("LMm") .HasColumnType("decimal(18,3)"); b.Property("Location") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("MatID") .HasColumnType("int"); b.Property("Note") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("QtyAvail") .HasColumnType("int"); b.Property("TMm") .HasColumnType("decimal(18,3)"); b.Property("WMm") .HasColumnType("decimal(18,3)"); b.HasKey("RemnID"); b.HasIndex("MatID"); b.ToTable("RemnantsList"); }); modelBuilder.Entity("NKC.Data.DbModels.MovMagModel", b => { b.HasOne("NKC.Data.DbModels.RemnantsModel", "RemnantNav") .WithMany() .HasForeignKey("RemnID") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("RemnantNav"); }); modelBuilder.Entity("NKC.Data.DbModels.RemnantsModel", b => { b.HasOne("NKC.Data.DbModels.MaterialModel", "MaterialNav") .WithMany("RemnantNav") .HasForeignKey("MatID") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("MaterialNav"); }); modelBuilder.Entity("NKC.Data.DbModels.MaterialModel", b => { b.Navigation("RemnantNav"); }); #pragma warning restore 612, 618 } } }