Files
magman/MagMan.Data/Migrations/MagManContextModelSnapshot.cs
T
2023-12-22 19:06:38 +01:00

220 lines
7.2 KiB
C#

// <auto-generated />
using System;
using MagMan.Data;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
#nullable disable
namespace MagMan.Data.Migrations
{
[DbContext(typeof(MagManContext))]
partial class MagManContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "6.0.25")
.HasAnnotation("Relational:MaxIdentifierLength", 64);
modelBuilder.Entity("MagMan.Data.DbModels.ConfigModel", b =>
{
b.Property<string>("KeyName")
.HasMaxLength(50)
.HasColumnType("varchar(50)")
.HasColumnOrder(0);
b.Property<string>("Note")
.IsRequired()
.HasMaxLength(250)
.HasColumnType("varchar(250)")
.HasColumnOrder(3);
b.Property<string>("Val")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("varchar(50)")
.HasColumnOrder(1);
b.Property<string>("ValStd")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("varchar(50)")
.HasColumnOrder(2)
.HasComment("Valore di default/riferimento per la variabile");
b.HasKey("KeyName");
b.ToTable("Config");
});
modelBuilder.Entity("MagMan.Data.DbModels.ItemModel", b =>
{
b.Property<int>("ItemID")
.ValueGeneratedOnAdd()
.HasColumnType("int");
b.Property<DateTime>("DtMod")
.HasColumnType("datetime(6)");
b.Property<bool>("IsRemn")
.HasColumnType("tinyint(1)");
b.Property<decimal>("LMm")
.HasColumnType("decimal(65,30)");
b.Property<string>("Location")
.IsRequired()
.HasColumnType("longtext");
b.Property<int>("MatID")
.HasColumnType("int");
b.Property<string>("Note")
.IsRequired()
.HasColumnType("longtext");
b.Property<int>("QtyAvail")
.HasColumnType("int");
b.Property<decimal>("TMm")
.HasColumnType("decimal(65,30)");
b.Property<decimal>("WMm")
.HasColumnType("decimal(65,30)");
b.HasKey("ItemID");
b.HasIndex("MatID");
b.ToTable("ItemsList");
});
modelBuilder.Entity("MagMan.Data.DbModels.MaterialModel", b =>
{
b.Property<int>("MatID")
.ValueGeneratedOnAdd()
.HasColumnType("int");
b.Property<DateTime>("ApprovDate")
.HasColumnType("datetime(6)");
b.Property<string>("ApprovUser")
.IsRequired()
.HasColumnType("longtext");
b.Property<decimal>("LMm")
.HasColumnType("decimal(65,30)");
b.Property<string>("MatDesc")
.IsRequired()
.HasColumnType("longtext");
b.Property<int>("MatExtCode")
.HasColumnType("int");
b.Property<decimal>("TMm")
.HasColumnType("decimal(65,30)");
b.Property<decimal>("WMm")
.HasColumnType("decimal(65,30)");
b.HasKey("MatID");
b.ToTable("Materials");
});
modelBuilder.Entity("MagMan.Data.DbModels.MovMagModel", b =>
{
b.Property<int>("MovID")
.ValueGeneratedOnAdd()
.HasColumnType("int");
b.Property<DateTime>("DtRec")
.HasColumnType("datetime(6)");
b.Property<int>("ItemID")
.HasColumnType("int");
b.Property<int>("QtyRec")
.HasColumnType("int");
b.Property<string>("UserId")
.IsRequired()
.HasColumnType("longtext");
b.HasKey("MovID");
b.HasIndex("ItemID");
b.ToTable("MovMag");
});
modelBuilder.Entity("MagMan.Data.DbModels.PrintJobQueueModel", b =>
{
b.Property<int>("IdxPrintJob")
.ValueGeneratedOnAdd()
.HasColumnType("int");
b.Property<DateTime?>("DtEnd")
.HasColumnType("datetime(6)");
b.Property<DateTime?>("DtLastTry")
.HasColumnType("datetime(6)");
b.Property<DateTime>("DtStart")
.HasColumnType("datetime(6)");
b.Property<string>("KeyParam")
.IsRequired()
.HasColumnType("longtext");
b.Property<string>("PrtName")
.IsRequired()
.HasColumnType("longtext");
b.Property<int>("Stato")
.HasColumnType("int");
b.Property<string>("TipoReport")
.IsRequired()
.HasColumnType("longtext");
b.HasKey("IdxPrintJob");
b.ToTable("PrintJobQueue");
});
modelBuilder.Entity("MagMan.Data.DbModels.ItemModel", b =>
{
b.HasOne("MagMan.Data.DbModels.MaterialModel", "MaterialNav")
.WithMany("ItemNav")
.HasForeignKey("MatID")
.OnDelete(DeleteBehavior.Restrict)
.IsRequired();
b.Navigation("MaterialNav");
});
modelBuilder.Entity("MagMan.Data.DbModels.MovMagModel", b =>
{
b.HasOne("MagMan.Data.DbModels.ItemModel", "ITemNav")
.WithMany()
.HasForeignKey("ItemID")
.OnDelete(DeleteBehavior.Restrict)
.IsRequired();
b.Navigation("ITemNav");
});
modelBuilder.Entity("MagMan.Data.DbModels.MaterialModel", b =>
{
b.Navigation("ItemNav");
});
#pragma warning restore 612, 618
}
}
}