Files
lux/EgwCoreLib.Lux.Data/Migrations/DataLayerContextModelSnapshot.cs
T

2093 lines
79 KiB
C#

// <auto-generated />
using System;
using EgwCoreLib.Lux.Data;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
#nullable disable
namespace EgwCoreLib.Lux.Data.Migrations
{
[DbContext(typeof(DataLayerContext))]
partial class DataLayerContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "8.0.17")
.HasAnnotation("Relational:MaxIdentifierLength", 64);
MySqlModelBuilderExtensions.AutoIncrementColumns(modelBuilder);
modelBuilder.Entity("EgwCoreLib.Lux.Data.DbModel.CounterModel", b =>
{
b.Property<int>("RefYear")
.HasColumnType("int");
b.Property<string>("CountName")
.HasColumnType("varchar(255)");
b.Property<int>("Counter")
.HasColumnType("int");
b.HasKey("RefYear", "CountName");
b.ToTable("Counter");
});
modelBuilder.Entity("EgwCoreLib.Lux.Data.DbModel.CustomerModel", b =>
{
b.Property<int>("CustomerID")
.ValueGeneratedOnAdd()
.HasColumnType("int");
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("CustomerID"));
b.Property<string>("CompanyName")
.IsRequired()
.HasColumnType("longtext");
b.Property<string>("FirstName")
.IsRequired()
.HasColumnType("longtext");
b.Property<string>("LastName")
.IsRequired()
.HasColumnType("longtext");
b.Property<string>("VAT")
.IsRequired()
.HasColumnType("longtext");
b.HasKey("CustomerID");
b.ToTable("RegCustomer");
b.HasData(
new
{
CustomerID = 1,
CompanyName = "",
FirstName = "Customer A",
LastName = "Egalware",
VAT = "1234567890123456"
},
new
{
CustomerID = 2,
CompanyName = "",
FirstName = "Customer B",
LastName = "User",
VAT = "1234567890123456"
},
new
{
CustomerID = 3,
CompanyName = "",
FirstName = "Customer C",
LastName = "User Test",
VAT = "1234567890123456"
});
});
modelBuilder.Entity("EgwCoreLib.Lux.Data.DbModel.DealerModel", b =>
{
b.Property<int>("DealerID")
.ValueGeneratedOnAdd()
.HasColumnType("int");
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("DealerID"));
b.Property<string>("CompanyName")
.IsRequired()
.HasColumnType("longtext");
b.Property<string>("FirstName")
.IsRequired()
.HasColumnType("longtext");
b.Property<string>("LastName")
.IsRequired()
.HasColumnType("longtext");
b.Property<string>("VAT")
.IsRequired()
.HasColumnType("longtext");
b.HasKey("DealerID");
b.ToTable("RegDealer");
b.HasData(
new
{
DealerID = 1,
CompanyName = "Company First",
FirstName = "Dealer A",
LastName = "Egalware",
VAT = "9587362514671527"
},
new
{
DealerID = 2,
CompanyName = "Company First",
FirstName = "Dealer B",
LastName = "User",
VAT = "9587362514671527"
},
new
{
DealerID = 3,
CompanyName = "Company Second",
FirstName = "Dealer C",
LastName = "User Test",
VAT = "9587362514671527"
});
});
modelBuilder.Entity("EgwCoreLib.Lux.Data.DbModel.GenClassModel", b =>
{
b.Property<string>("ClassCod")
.HasColumnType("varchar(255)");
b.Property<string>("Description")
.IsRequired()
.HasColumnType("longtext");
b.HasKey("ClassCod");
b.ToTable("GenClass");
b.HasData(
new
{
ClassCod = "WoodMat",
Description = "Elenco Materiali Legno"
},
new
{
ClassCod = "WoodCol",
Description = "Elenco Colori Legno"
});
});
modelBuilder.Entity("EgwCoreLib.Lux.Data.DbModel.GenValueModel", b =>
{
b.Property<int>("GenValID")
.ValueGeneratedOnAdd()
.HasColumnType("int");
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("GenValID"));
b.Property<string>("ClassCod")
.IsRequired()
.HasColumnType("varchar(255)");
b.Property<int>("Ordinal")
.HasColumnType("int");
b.Property<string>("ValString")
.IsRequired()
.HasColumnType("longtext");
b.HasKey("GenValID");
b.HasIndex("ClassCod");
b.ToTable("GenValue");
b.HasData(
new
{
GenValID = 1,
ClassCod = "WoodMat",
Ordinal = 1,
ValString = "Pine"
},
new
{
GenValID = 2,
ClassCod = "WoodMat",
Ordinal = 2,
ValString = "Maple"
},
new
{
GenValID = 3,
ClassCod = "WoodCol",
Ordinal = 1,
ValString = "Lergno"
},
new
{
GenValID = 4,
ClassCod = "WoodCol",
Ordinal = 2,
ValString = "Bianco"
},
new
{
GenValID = 5,
ClassCod = "WoodCol",
Ordinal = 3,
ValString = "Rosso"
},
new
{
GenValID = 6,
ClassCod = "WoodCol",
Ordinal = 4,
ValString = "Nero"
});
});
modelBuilder.Entity("EgwCoreLib.Lux.Data.DbModel.ItemGroupModel", b =>
{
b.Property<string>("CodGroup")
.HasColumnType("varchar(255)");
b.Property<string>("Description")
.IsRequired()
.HasColumnType("longtext");
b.HasKey("CodGroup");
b.ToTable("RegItemGroup");
b.HasData(
new
{
CodGroup = "WindowTrunk",
Description = "Barre legno per lavorazione"
},
new
{
CodGroup = "WindowGlass",
Description = "Vetri serramento"
},
new
{
CodGroup = "WindowVarnish",
Description = "Vernici per legno"
},
new
{
CodGroup = "WindowHardware",
Description = "Ferramenta serramento"
});
});
modelBuilder.Entity("EgwCoreLib.Lux.Data.DbModel.ItemModel", b =>
{
b.Property<int>("ItemID")
.ValueGeneratedOnAdd()
.HasColumnType("int");
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("ItemID"));
b.Property<string>("CodGroup")
.IsRequired()
.HasColumnType("varchar(255)");
b.Property<double>("Cost")
.HasColumnType("double");
b.Property<string>("Description")
.IsRequired()
.HasColumnType("longtext");
b.Property<string>("ExtItemCode")
.IsRequired()
.HasColumnType("longtext");
b.Property<bool>("IsService")
.HasColumnType("tinyint(1)");
b.Property<int>("ItemCode")
.HasColumnType("int");
b.Property<int>("ItemIDParent")
.HasColumnType("int");
b.Property<int>("ItemType")
.HasColumnType("int");
b.Property<double>("Margin")
.HasColumnType("double");
b.Property<double>("QtyMax")
.HasColumnType("double");
b.Property<double>("QtyMin")
.HasColumnType("double");
b.Property<string>("SupplCode")
.IsRequired()
.HasColumnType("longtext");
b.Property<string>("UM")
.IsRequired()
.HasColumnType("longtext");
b.HasKey("ItemID");
b.HasIndex("CodGroup");
b.ToTable("RegItem");
b.HasData(
new
{
ItemID = 1,
CodGroup = "WindowTrunk",
Cost = 20.0,
Description = "BARRA-60x80 generica",
ExtItemCode = "",
IsService = false,
ItemCode = 1001,
ItemIDParent = 0,
ItemType = 1,
Margin = 0.29999999999999999,
QtyMax = 0.0,
QtyMin = 0.0,
SupplCode = "BARR.001",
UM = "#"
},
new
{
ItemID = 2,
CodGroup = "WindowTrunk",
Cost = 16.5,
Description = "Barra 60x80, lunghezza 12m",
ExtItemCode = "BARRA-60x80x12000",
IsService = false,
ItemCode = 1002,
ItemIDParent = 0,
ItemType = 1,
Margin = 0.20999999999999999,
QtyMax = 0.0,
QtyMin = 0.0,
SupplCode = "ABC.00123.12000",
UM = "#"
},
new
{
ItemID = 3,
CodGroup = "WindowTrunk",
Cost = 17.5,
Description = "Barra 60x80, lunghezza 8m",
ExtItemCode = "BARRA-60x80x8000",
IsService = false,
ItemCode = 1003,
ItemIDParent = 0,
ItemType = 1,
Margin = 0.22,
QtyMax = 0.0,
QtyMin = 0.0,
SupplCode = "ABC.00123.8000",
UM = "#"
},
new
{
ItemID = 4,
CodGroup = "WindowTrunk",
Cost = 15.5,
Description = "Barra 60x80, lunghezza 16m",
ExtItemCode = "BARRA-60x80x16000",
IsService = false,
ItemCode = 1004,
ItemIDParent = 0,
ItemType = 1,
Margin = 0.20000000000000001,
QtyMax = 0.0,
QtyMin = 0.0,
SupplCode = "ABC.00123.16000",
UM = "#"
},
new
{
ItemID = 5,
CodGroup = "WindowGlass",
Cost = 300.0,
Description = "Vetro triplo, basso indice termico, 800x1000",
ExtItemCode = "VETRO-3L-THERMO-800x1000",
IsService = false,
ItemCode = 2001,
ItemIDParent = 0,
ItemType = 1,
Margin = 0.20000000000000001,
QtyMax = 0.0,
QtyMin = 0.0,
SupplCode = "V3T.800.1000",
UM = "m2"
},
new
{
ItemID = 6,
CodGroup = "WindowGlass",
Cost = 200.0,
Description = "Vetro doppio, 800x1000",
ExtItemCode = "VETRO-2L-800x1000",
IsService = false,
ItemCode = 2002,
ItemIDParent = 0,
ItemType = 1,
Margin = 0.14999999999999999,
QtyMax = 0.0,
QtyMin = 0.0,
SupplCode = "V2.800.1000",
UM = "m2"
},
new
{
ItemID = 7,
CodGroup = "WindowGlass",
Cost = 250.0,
Description = "Vetro triplo, 800x1000",
ExtItemCode = "VETRO-3L-800x1000",
IsService = false,
ItemCode = 2003,
ItemIDParent = 0,
ItemType = 1,
Margin = 0.17999999999999999,
QtyMax = 0.0,
QtyMin = 0.0,
SupplCode = "V3.800.1000",
UM = "m2"
},
new
{
ItemID = 8,
CodGroup = "WindowVarnish",
Cost = 20.0,
Description = "Vernice trasparente",
ExtItemCode = "VERN-TRASP",
IsService = false,
ItemCode = 3001,
ItemIDParent = 0,
ItemType = 1,
Margin = 0.20000000000000001,
QtyMax = 0.0,
QtyMin = 0.0,
SupplCode = "VT.STD",
UM = "l"
},
new
{
ItemID = 9,
CodGroup = "WindowHardware",
Cost = 65.0,
Description = "Kit standard completo AGB tipo 001",
ExtItemCode = "KIT-001",
IsService = false,
ItemCode = 5001,
ItemIDParent = 0,
ItemType = 1,
Margin = 0.20000000000000001,
QtyMax = 0.0,
QtyMin = 0.0,
SupplCode = "AGB-KIT-001",
UM = "#"
},
new
{
ItemID = 10,
CodGroup = "WindowHardware",
Cost = 10.0,
Description = "Cerniera AGB tipo 001",
ExtItemCode = "CERN-001",
IsService = false,
ItemCode = 5002,
ItemIDParent = 0,
ItemType = 1,
Margin = 0.20000000000000001,
QtyMax = 0.0,
QtyMin = 0.0,
SupplCode = "AGB-CERN-001",
UM = "#"
},
new
{
ItemID = 11,
CodGroup = "WindowHardware",
Cost = 15.0,
Description = "Serratura AGB tipo 001",
ExtItemCode = "SERR-001",
IsService = false,
ItemCode = 5003,
ItemIDParent = 0,
ItemType = 1,
Margin = 0.20000000000000001,
QtyMax = 0.0,
QtyMin = 0.0,
SupplCode = "AGB-SERR-001",
UM = "#"
},
new
{
ItemID = 12,
CodGroup = "WindowHardware",
Cost = 25.0,
Description = "Maniglia AGB tipo 001",
ExtItemCode = "MAN-001",
IsService = false,
ItemCode = 5004,
ItemIDParent = 0,
ItemType = 1,
Margin = 0.20000000000000001,
QtyMax = 0.0,
QtyMin = 0.0,
SupplCode = "AGB-MAN-001",
UM = "#"
});
});
modelBuilder.Entity("EgwCoreLib.Lux.Data.DbModel.JobModel", b =>
{
b.Property<int>("JobID")
.ValueGeneratedOnAdd()
.HasColumnType("int");
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("JobID"));
b.Property<string>("Description")
.IsRequired()
.HasColumnType("longtext");
b.HasKey("JobID");
b.ToTable("JobList");
b.HasData(
new
{
JobID = 1,
Description = "Rivendita / servizi"
},
new
{
JobID = 2,
Description = "Serramento Completo Legno su linea Saomad e installatore interno"
});
});
modelBuilder.Entity("EgwCoreLib.Lux.Data.DbModel.JobRowItemModel", b =>
{
b.Property<int>("JobRowItemID")
.ValueGeneratedOnAdd()
.HasColumnType("int");
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("JobRowItemID"));
b.Property<string>("Description")
.IsRequired()
.HasColumnType("longtext");
b.Property<int>("Index")
.HasColumnType("int");
b.Property<int>("ItemID")
.HasColumnType("int");
b.Property<int>("JobRowID")
.HasColumnType("int");
b.Property<double>("Qty")
.HasColumnType("double");
b.HasKey("JobRowItemID");
b.HasIndex("ItemID");
b.HasIndex("JobRowID");
b.ToTable("JobRowItemList");
b.HasData(
new
{
JobRowItemID = 1,
Description = "Grezzo legno abete",
Index = 1,
ItemID = 1,
JobRowID = 1,
Qty = 1.0
},
new
{
JobRowItemID = 2,
Description = "Vernice trasparente standard 1L",
Index = 2,
ItemID = 8,
JobRowID = 3,
Qty = 0.10000000000000001
},
new
{
JobRowItemID = 3,
Description = "Ferramenta AGB - rif. AGFD.00000.00000",
Index = 3,
ItemID = 9,
JobRowID = 4,
Qty = 1.0
});
});
modelBuilder.Entity("EgwCoreLib.Lux.Data.DbModel.JobRowModel", b =>
{
b.Property<int>("JobRowID")
.ValueGeneratedOnAdd()
.HasColumnType("int");
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("JobRowID"));
b.Property<string>("Description")
.IsRequired()
.HasColumnType("longtext");
b.Property<int>("Index")
.HasColumnType("int");
b.Property<int>("JobID")
.HasColumnType("int");
b.Property<int>("PhaseID")
.HasColumnType("int");
b.Property<double>("Qty")
.HasColumnType("double");
b.Property<int>("ResourceID")
.HasColumnType("int");
b.HasKey("JobRowID");
b.HasIndex("JobID");
b.HasIndex("PhaseID");
b.HasIndex("ResourceID");
b.ToTable("JobRowList");
b.HasData(
new
{
JobRowID = 1,
Description = "",
Index = 1,
JobID = 2,
PhaseID = 1,
Qty = 1.0,
ResourceID = 1
},
new
{
JobRowID = 2,
Description = "",
Index = 2,
JobID = 2,
PhaseID = 2,
Qty = 1.0,
ResourceID = 2
},
new
{
JobRowID = 3,
Description = "",
Index = 3,
JobID = 2,
PhaseID = 3,
Qty = 1.0,
ResourceID = 4
},
new
{
JobRowID = 4,
Description = "",
Index = 4,
JobID = 2,
PhaseID = 4,
Qty = 1.0,
ResourceID = 6
},
new
{
JobRowID = 5,
Description = "",
Index = 5,
JobID = 2,
PhaseID = 6,
Qty = 1.0,
ResourceID = 7
});
});
modelBuilder.Entity("EgwCoreLib.Lux.Data.DbModel.MovTypeModel", b =>
{
b.Property<string>("MovCod")
.HasColumnType("varchar(255)");
b.Property<string>("Description")
.IsRequired()
.HasColumnType("longtext");
b.HasKey("MovCod");
b.ToTable("RegMovType");
b.HasData(
new
{
MovCod = "CAR",
Description = "Carico a magazzino"
},
new
{
MovCod = "MOV",
Description = "Movimento interno (spostamento)"
},
new
{
MovCod = "ND",
Description = "Non Definito"
},
new
{
MovCod = "OFOR",
Description = "Ordine Fornitore"
},
new
{
MovCod = "RETT",
Description = "Rettifica magazzino"
},
new
{
MovCod = "SCAR",
Description = "Scarico da magazzino"
});
});
modelBuilder.Entity("EgwCoreLib.Lux.Data.DbModel.OfferModel", b =>
{
b.Property<int>("OfferID")
.ValueGeneratedOnAdd()
.HasColumnType("int");
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("OfferID"));
b.Property<int>("CustomerID")
.HasColumnType("int");
b.Property<int>("DealerID")
.HasColumnType("int");
b.Property<string>("Description")
.IsRequired()
.HasColumnType("longtext");
b.Property<DateTime>("Inserted")
.HasColumnType("datetime(6)");
b.Property<DateTime>("Modified")
.HasColumnType("datetime(6)");
b.Property<int>("OffertState")
.HasColumnType("int");
b.Property<int>("RefNum")
.HasColumnType("int");
b.Property<int>("RefRev")
.HasColumnType("int");
b.Property<int>("RefYear")
.HasColumnType("int");
b.Property<DateTime>("ValidUntil")
.HasColumnType("datetime(6)");
b.HasKey("OfferID");
b.HasIndex("CustomerID");
b.HasIndex("DealerID");
b.ToTable("Offer");
b.HasData(
new
{
OfferID = 1,
CustomerID = 2,
DealerID = 2,
Description = "Offerta per tre serramenti",
Inserted = new DateTime(2025, 9, 18, 12, 9, 36, 279, DateTimeKind.Local).AddTicks(9083),
Modified = new DateTime(2025, 9, 18, 12, 9, 36, 279, DateTimeKind.Local).AddTicks(9084),
OffertState = 0,
RefNum = 1,
RefRev = 1,
RefYear = 2024,
ValidUntil = new DateTime(2025, 10, 18, 12, 9, 36, 279, DateTimeKind.Local).AddTicks(9080)
});
});
modelBuilder.Entity("EgwCoreLib.Lux.Data.DbModel.OfferRowModel", b =>
{
b.Property<int>("OfferRowID")
.ValueGeneratedOnAdd()
.HasColumnType("int");
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("OfferRowID"));
b.Property<bool>("BomOk")
.HasColumnType("tinyint(1)");
b.Property<double>("Cost")
.HasColumnType("double");
b.Property<string>("Environment")
.IsRequired()
.HasColumnType("longtext");
b.Property<DateTime>("Inserted")
.HasColumnType("datetime(6)");
b.Property<string>("ItemBOM")
.IsRequired()
.HasColumnType("longtext");
b.Property<bool>("ItemOk")
.HasColumnType("tinyint(1)");
b.Property<string>("ItemSPP")
.IsRequired()
.HasColumnType("longtext");
b.Property<DateTime>("Modified")
.HasColumnType("datetime(6)");
b.Property<string>("Note")
.IsRequired()
.HasColumnType("longtext");
b.Property<int>("OfferID")
.HasColumnType("int");
b.Property<string>("OfferRowUID")
.IsRequired()
.HasColumnType("longtext");
b.Property<double>("Qty")
.HasColumnType("double");
b.Property<int>("RowNum")
.HasColumnType("int");
b.Property<int>("SellingItemID")
.HasColumnType("int");
b.Property<string>("SerStruct")
.IsRequired()
.HasColumnType("longtext");
b.HasKey("OfferRowID");
b.HasIndex("OfferID");
b.HasIndex("SellingItemID");
b.ToTable("OfferRowList");
b.HasData(
new
{
OfferRowID = 1,
BomOk = true,
Cost = 950.0,
Environment = "WINDOW",
Inserted = new DateTime(2025, 9, 18, 12, 9, 36, 279, DateTimeKind.Local).AddTicks(9186),
ItemBOM = "",
ItemOk = true,
ItemSPP = "{}",
Modified = new DateTime(2025, 9, 18, 12, 9, 36, 279, DateTimeKind.Local).AddTicks(9188),
Note = "Finestra anta singola 2025",
OfferID = 1,
OfferRowUID = "OFF250000000001",
Qty = 3.0,
RowNum = 1,
SellingItemID = 1,
SerStruct = "{}"
},
new
{
OfferRowID = 2,
BomOk = true,
Cost = 160.0,
Environment = "WINDOW",
Inserted = new DateTime(2025, 9, 18, 12, 9, 36, 279, DateTimeKind.Local).AddTicks(9200),
ItemBOM = "",
ItemOk = true,
ItemSPP = "{}",
Modified = new DateTime(2025, 9, 18, 12, 9, 36, 279, DateTimeKind.Local).AddTicks(9202),
Note = "Persiana per Finestra anta singola 2025",
OfferID = 1,
OfferRowUID = "OFF250000000002",
Qty = 3.0,
RowNum = 2,
SellingItemID = 2,
SerStruct = "{}"
},
new
{
OfferRowID = 3,
BomOk = true,
Cost = 200.0,
Environment = "WINDOW",
Inserted = new DateTime(2025, 9, 18, 12, 9, 36, 279, DateTimeKind.Local).AddTicks(9211),
ItemBOM = "",
ItemOk = true,
ItemSPP = "{}",
Modified = new DateTime(2025, 9, 18, 12, 9, 36, 279, DateTimeKind.Local).AddTicks(9213),
Note = "Installazione serramento",
OfferID = 1,
OfferRowUID = "OFF250000000003",
Qty = 3.0,
RowNum = 3,
SellingItemID = 3,
SerStruct = "{}"
});
});
modelBuilder.Entity("EgwCoreLib.Lux.Data.DbModel.OrderModel", b =>
{
b.Property<int>("OrderID")
.ValueGeneratedOnAdd()
.HasColumnType("int");
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("OrderID"));
b.Property<int>("CustomerID")
.HasColumnType("int");
b.Property<int>("DealerID")
.HasColumnType("int");
b.Property<string>("Description")
.IsRequired()
.HasColumnType("longtext");
b.Property<DateTime>("Inserted")
.HasColumnType("datetime(6)");
b.Property<DateTime>("Modified")
.HasColumnType("datetime(6)");
b.Property<int>("OfferID")
.HasColumnType("int");
b.Property<int>("OffertState")
.HasColumnType("int");
b.Property<int>("RefNum")
.HasColumnType("int");
b.Property<int>("RefRev")
.HasColumnType("int");
b.Property<int>("RefYear")
.HasColumnType("int");
b.Property<DateTime>("ValidUntil")
.HasColumnType("datetime(6)");
b.HasKey("OrderID");
b.HasIndex("CustomerID");
b.HasIndex("DealerID");
b.HasIndex("OfferID");
b.ToTable("Order");
});
modelBuilder.Entity("EgwCoreLib.Lux.Data.DbModel.OrderRowModel", b =>
{
b.Property<int>("OrderRowID")
.ValueGeneratedOnAdd()
.HasColumnType("int");
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("OrderRowID"));
b.Property<double>("Cost")
.HasColumnType("double");
b.Property<DateTime>("Inserted")
.HasColumnType("datetime(6)");
b.Property<string>("ItemSPP")
.IsRequired()
.HasColumnType("longtext");
b.Property<DateTime>("Modified")
.HasColumnType("datetime(6)");
b.Property<string>("Note")
.IsRequired()
.HasColumnType("longtext");
b.Property<int>("OrderID")
.HasColumnType("int");
b.Property<double>("Qty")
.HasColumnType("double");
b.Property<int>("RowNum")
.HasColumnType("int");
b.Property<int>("SellingItemID")
.HasColumnType("int");
b.Property<string>("SerStruct")
.IsRequired()
.HasColumnType("longtext");
b.HasKey("OrderRowID");
b.HasIndex("OrderID");
b.HasIndex("SellingItemID");
b.ToTable("OrderRowList");
});
modelBuilder.Entity("EgwCoreLib.Lux.Data.DbModel.PhaseModel", b =>
{
b.Property<int>("PhaseID")
.ValueGeneratedOnAdd()
.HasColumnType("int");
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("PhaseID"));
b.Property<string>("Description")
.IsRequired()
.HasColumnType("longtext");
b.HasKey("PhaseID");
b.ToTable("RegPhase");
b.HasData(
new
{
PhaseID = 1,
Description = "Taglio tronchetti"
},
new
{
PhaseID = 2,
Description = "Lavorazione pezzi serramento"
},
new
{
PhaseID = 3,
Description = "Verniciatura"
},
new
{
PhaseID = 4,
Description = "Assemblaggio completo"
},
new
{
PhaseID = 5,
Description = "Assemblaggio Ferramenta"
},
new
{
PhaseID = 6,
Description = "Installazione e posa in opera"
});
});
modelBuilder.Entity("EgwCoreLib.Lux.Data.DbModel.ProductionBatchModel", b =>
{
b.Property<int>("ProductionBatchID")
.ValueGeneratedOnAdd()
.HasColumnType("int");
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("ProductionBatchID"));
b.Property<DateTime?>("DateEnd")
.HasColumnType("datetime(6)");
b.Property<DateTime?>("DateStart")
.HasColumnType("datetime(6)");
b.Property<string>("Description")
.IsRequired()
.HasColumnType("longtext");
b.Property<DateTime>("DueDate")
.HasColumnType("datetime(6)");
b.HasKey("ProductionBatchID");
b.ToTable("ProductionBatch");
});
modelBuilder.Entity("EgwCoreLib.Lux.Data.DbModel.ProductionItemModel", b =>
{
b.Property<int>("ProdItemID")
.ValueGeneratedOnAdd()
.HasColumnType("int");
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("ProdItemID"));
b.Property<string>("ExtItemCode")
.IsRequired()
.HasColumnType("longtext");
b.Property<int>("ItemCode")
.HasColumnType("int");
b.Property<int>("OrderRowID")
.HasColumnType("int");
b.Property<int>("ProductionBatchID")
.HasColumnType("int");
b.HasKey("ProdItemID");
b.HasIndex("OrderRowID");
b.HasIndex("ProductionBatchID");
b.ToTable("ProductionItem");
});
modelBuilder.Entity("EgwCoreLib.Lux.Data.DbModel.ProductionItemRowModel", b =>
{
b.Property<int>("ProdItemRowID")
.ValueGeneratedOnAdd()
.HasColumnType("int");
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("ProdItemRowID"));
b.Property<DateTime?>("DateEnd")
.HasColumnType("datetime(6)");
b.Property<DateTime?>("DateStart")
.HasColumnType("datetime(6)");
b.Property<string>("Description")
.IsRequired()
.HasColumnType("longtext");
b.Property<int>("Index")
.HasColumnType("int");
b.Property<int>("PhaseID")
.HasColumnType("int");
b.Property<int>("ProdItemID")
.HasColumnType("int");
b.Property<double>("Qty")
.HasColumnType("double");
b.Property<int>("ResourceID")
.HasColumnType("int");
b.Property<double>("WorkTime")
.HasColumnType("double");
b.HasKey("ProdItemRowID");
b.HasIndex("PhaseID");
b.HasIndex("ProdItemID");
b.HasIndex("ResourceID");
b.ToTable("ProductionItemRowList");
});
modelBuilder.Entity("EgwCoreLib.Lux.Data.DbModel.ResourceModel", b =>
{
b.Property<int>("ResourceID")
.ValueGeneratedOnAdd()
.HasColumnType("int");
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("ResourceID"));
b.Property<string>("Description")
.IsRequired()
.HasColumnType("longtext");
b.Property<bool>("IsAsset")
.HasColumnType("tinyint(1)");
b.Property<bool>("IsHuman")
.HasColumnType("tinyint(1)");
b.Property<string>("UmFix")
.IsRequired()
.HasColumnType("longtext");
b.Property<string>("UmProp")
.IsRequired()
.HasColumnType("longtext");
b.Property<double>("UnitCostFix")
.HasColumnType("double");
b.Property<double>("UnitCostProp")
.HasColumnType("double");
b.HasKey("ResourceID");
b.ToTable("RegResource");
b.HasData(
new
{
ResourceID = 1,
Description = "Sezionatrice",
IsAsset = true,
IsHuman = false,
UmFix = "€/h",
UmProp = "",
UnitCostFix = 15.0,
UnitCostProp = 0.0
},
new
{
ResourceID = 2,
Description = "Linea SAOMAD WoodPecker Just 3500",
IsAsset = true,
IsHuman = false,
UmFix = "€/h",
UmProp = "€/m",
UnitCostFix = 240.0,
UnitCostProp = 1.8999999999999999
},
new
{
ResourceID = 3,
Description = "Linea Pantografo",
IsAsset = true,
IsHuman = false,
UmFix = "€/h",
UmProp = "€/m",
UnitCostFix = 90.0,
UnitCostProp = 5.9000000000000004
},
new
{
ResourceID = 4,
Description = "Stazione Verniciatura",
IsAsset = true,
IsHuman = false,
UmFix = "€/h",
UmProp = "€/m",
UnitCostFix = 40.0,
UnitCostProp = 1.8999999999999999
},
new
{
ResourceID = 5,
Description = "Verniciatura Manuale",
IsAsset = false,
IsHuman = true,
UmFix = "€/h",
UmProp = "€/m",
UnitCostFix = 10.0,
UnitCostProp = 1.8999999999999999
},
new
{
ResourceID = 6,
Description = "Montaggio Manuale",
IsAsset = false,
IsHuman = true,
UmFix = "",
UmProp = "€/h",
UnitCostFix = 0.0,
UnitCostProp = 40.0
},
new
{
ResourceID = 7,
Description = "Installatore",
IsAsset = false,
IsHuman = true,
UmFix = "",
UmProp = "€/h",
UnitCostFix = 0.0,
UnitCostProp = 40.0
});
});
modelBuilder.Entity("EgwCoreLib.Lux.Data.DbModel.SellingItemModel", b =>
{
b.Property<int>("SellingItemID")
.ValueGeneratedOnAdd()
.HasColumnType("int");
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("SellingItemID"));
b.Property<double>("Cost")
.HasColumnType("double");
b.Property<string>("Description")
.IsRequired()
.HasColumnType("longtext");
b.Property<string>("ExtItemCode")
.IsRequired()
.HasColumnType("longtext");
b.Property<bool>("IsService")
.HasColumnType("tinyint(1)");
b.Property<int>("ItemCode")
.HasColumnType("int");
b.Property<string>("ItemSPP")
.IsRequired()
.HasColumnType("longtext");
b.Property<int>("JobID")
.HasColumnType("int");
b.Property<double>("Margin")
.HasColumnType("double");
b.Property<string>("SerStruct")
.IsRequired()
.HasColumnType("longtext");
b.Property<string>("SupplCode")
.IsRequired()
.HasColumnType("longtext");
b.Property<string>("UM")
.IsRequired()
.HasColumnType("longtext");
b.HasKey("SellingItemID");
b.HasIndex("JobID");
b.ToTable("SellingItem");
b.HasData(
new
{
SellingItemID = 1,
Cost = 820.0,
Description = "Finestra anta Singola",
ExtItemCode = "",
IsService = false,
ItemCode = 0,
ItemSPP = "",
JobID = 2,
Margin = 0.20000000000000001,
SerStruct = "",
SupplCode = "",
UM = "#"
},
new
{
SellingItemID = 2,
Cost = 150.0,
Description = "Persiana anta singola",
ExtItemCode = "",
IsService = false,
ItemCode = 0,
ItemSPP = "",
JobID = 1,
Margin = 0.10000000000000001,
SerStruct = "",
SupplCode = "",
UM = "#"
},
new
{
SellingItemID = 3,
Cost = 200.0,
Description = "Installazione",
ExtItemCode = "",
IsService = true,
ItemCode = 0,
ItemSPP = "",
JobID = 1,
Margin = 0.29999999999999999,
SerStruct = "",
SupplCode = "",
UM = "#"
});
});
modelBuilder.Entity("EgwCoreLib.Lux.Data.DbModel.StockMovModel", b =>
{
b.Property<int>("StockMovID")
.ValueGeneratedOnAdd()
.HasColumnType("int");
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("StockMovID"));
b.Property<string>("CodDoc")
.IsRequired()
.HasColumnType("longtext");
b.Property<DateTime>("DtCreate")
.ValueGeneratedOnAdd()
.HasColumnType("timestamp")
.HasDefaultValueSql("CURRENT_TIMESTAMP");
b.Property<DateTime>("DtMod")
.ValueGeneratedOnAddOrUpdate()
.HasColumnType("timestamp")
.HasDefaultValueSql("CURRENT_TIMESTAMP");
MySqlPropertyBuilderExtensions.UseMySqlComputedColumn(b.Property<DateTime>("DtMod"));
b.Property<string>("MovCod")
.IsRequired()
.HasColumnType("varchar(255)");
b.Property<string>("Note")
.IsRequired()
.HasColumnType("longtext");
b.Property<double>("QtyRec")
.HasColumnType("double");
b.Property<int>("StockStatusId")
.HasColumnType("int");
b.Property<double>("UnitVal")
.HasColumnType("double");
b.Property<string>("UserId")
.IsRequired()
.HasColumnType("longtext");
b.HasKey("StockMovID");
b.HasIndex("MovCod");
b.HasIndex("StockStatusId");
b.ToTable("StockMov");
b.HasData(
new
{
StockMovID = 1,
CodDoc = "",
DtCreate = new DateTime(2025, 9, 18, 12, 9, 36, 279, DateTimeKind.Local).AddTicks(8832),
DtMod = new DateTime(2025, 9, 18, 12, 9, 36, 279, DateTimeKind.Local).AddTicks(8880),
MovCod = "CAR",
Note = "DEMO",
QtyRec = 5.0,
StockStatusId = 1,
UnitVal = 0.0,
UserId = "samuele.locatelli@egalware.com"
},
new
{
StockMovID = 2,
CodDoc = "",
DtCreate = new DateTime(2025, 9, 18, 12, 9, 36, 279, DateTimeKind.Local).AddTicks(8883),
DtMod = new DateTime(2025, 9, 18, 12, 9, 36, 279, DateTimeKind.Local).AddTicks(8884),
MovCod = "CAR",
Note = "DEMO",
QtyRec = 8.0,
StockStatusId = 2,
UnitVal = 0.0,
UserId = "samuele.locatelli@egalware.com"
},
new
{
StockMovID = 3,
CodDoc = "",
DtCreate = new DateTime(2025, 9, 18, 12, 9, 36, 279, DateTimeKind.Local).AddTicks(8886),
DtMod = new DateTime(2025, 9, 18, 12, 9, 36, 279, DateTimeKind.Local).AddTicks(8888),
MovCod = "CAR",
Note = "DEMO",
QtyRec = 5.0,
StockStatusId = 3,
UnitVal = 0.0,
UserId = "samuele.locatelli@egalware.com"
},
new
{
StockMovID = 4,
CodDoc = "",
DtCreate = new DateTime(2025, 9, 18, 12, 9, 36, 279, DateTimeKind.Local).AddTicks(8890),
DtMod = new DateTime(2025, 9, 18, 12, 9, 36, 279, DateTimeKind.Local).AddTicks(8891),
MovCod = "CAR",
Note = "DEMO",
QtyRec = 1.0,
StockStatusId = 4,
UnitVal = 0.0,
UserId = "samuele.locatelli@egalware.com"
},
new
{
StockMovID = 5,
CodDoc = "",
DtCreate = new DateTime(2025, 9, 18, 12, 9, 36, 279, DateTimeKind.Local).AddTicks(8893),
DtMod = new DateTime(2025, 9, 18, 12, 9, 36, 279, DateTimeKind.Local).AddTicks(8894),
MovCod = "CAR",
Note = "DEMO",
QtyRec = 10.0,
StockStatusId = 5,
UnitVal = 0.0,
UserId = "samuele.locatelli@egalware.com"
},
new
{
StockMovID = 6,
CodDoc = "",
DtCreate = new DateTime(2025, 9, 18, 12, 9, 36, 279, DateTimeKind.Local).AddTicks(8897),
DtMod = new DateTime(2025, 9, 18, 12, 9, 36, 279, DateTimeKind.Local).AddTicks(8898),
MovCod = "CAR",
Note = "DEMO",
QtyRec = 1.0,
StockStatusId = 6,
UnitVal = 0.0,
UserId = "samuele.locatelli@egalware.com"
},
new
{
StockMovID = 7,
CodDoc = "",
DtCreate = new DateTime(2025, 9, 18, 12, 9, 36, 279, DateTimeKind.Local).AddTicks(8900),
DtMod = new DateTime(2025, 9, 18, 12, 9, 36, 279, DateTimeKind.Local).AddTicks(8901),
MovCod = "CAR",
Note = "DEMO",
QtyRec = 50.0,
StockStatusId = 7,
UnitVal = 0.0,
UserId = "samuele.locatelli@egalware.com"
},
new
{
StockMovID = 8,
CodDoc = "",
DtCreate = new DateTime(2025, 9, 18, 12, 9, 36, 279, DateTimeKind.Local).AddTicks(8903),
DtMod = new DateTime(2025, 9, 18, 12, 9, 36, 279, DateTimeKind.Local).AddTicks(8905),
MovCod = "CAR",
Note = "DEMO",
QtyRec = 1.0,
StockStatusId = 8,
UnitVal = 0.0,
UserId = "samuele.locatelli@egalware.com"
},
new
{
StockMovID = 9,
CodDoc = "",
DtCreate = new DateTime(2025, 9, 18, 12, 9, 36, 279, DateTimeKind.Local).AddTicks(8907),
DtMod = new DateTime(2025, 9, 18, 12, 9, 36, 279, DateTimeKind.Local).AddTicks(8908),
MovCod = "CAR",
Note = "DEMO",
QtyRec = 1.0,
StockStatusId = 9,
UnitVal = 0.0,
UserId = "samuele.locatelli@egalware.com"
},
new
{
StockMovID = 10,
CodDoc = "",
DtCreate = new DateTime(2025, 9, 18, 12, 9, 36, 279, DateTimeKind.Local).AddTicks(8910),
DtMod = new DateTime(2025, 9, 18, 12, 9, 36, 279, DateTimeKind.Local).AddTicks(8912),
MovCod = "CAR",
Note = "DEMO",
QtyRec = 1.0,
StockStatusId = 10,
UnitVal = 0.0,
UserId = "samuele.locatelli@egalware.com"
});
});
modelBuilder.Entity("EgwCoreLib.Lux.Data.DbModel.StockStatusModel", b =>
{
b.Property<int>("StockStatusId")
.ValueGeneratedOnAdd()
.HasColumnType("int");
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("StockStatusId"));
b.Property<bool>("IsDeleted")
.HasColumnType("tinyint(1)");
b.Property<bool>("IsRemn")
.HasColumnType("tinyint(1)");
b.Property<int>("ItemID")
.HasColumnType("int");
b.Property<string>("Location")
.IsRequired()
.HasColumnType("longtext");
b.Property<double>("QtyAvail")
.HasColumnType("double");
b.HasKey("StockStatusId");
b.HasIndex("ItemID");
b.ToTable("StockStatus");
b.HasData(
new
{
StockStatusId = 1,
IsDeleted = false,
IsRemn = false,
ItemID = 1,
Location = "B001-001-003",
QtyAvail = 5.0
},
new
{
StockStatusId = 2,
IsDeleted = false,
IsRemn = false,
ItemID = 2,
Location = "B001-001-002",
QtyAvail = 8.0
},
new
{
StockStatusId = 3,
IsDeleted = false,
IsRemn = false,
ItemID = 3,
Location = "B001-001-001",
QtyAvail = 5.0
},
new
{
StockStatusId = 4,
IsDeleted = false,
IsRemn = false,
ItemID = 4,
Location = "V002-001-001",
QtyAvail = 1.0
},
new
{
StockStatusId = 5,
IsDeleted = false,
IsRemn = false,
ItemID = 5,
Location = "V001-001-002",
QtyAvail = 10.0
},
new
{
StockStatusId = 6,
IsDeleted = false,
IsRemn = false,
ItemID = 6,
Location = "V001-001-003",
QtyAvail = 1.0
},
new
{
StockStatusId = 7,
IsDeleted = false,
IsRemn = false,
ItemID = 8,
Location = "V001-001-003",
QtyAvail = 50.0
},
new
{
StockStatusId = 8,
IsDeleted = false,
IsRemn = false,
ItemID = 11,
Location = "S001-002-001",
QtyAvail = 1.0
},
new
{
StockStatusId = 9,
IsDeleted = false,
IsRemn = false,
ItemID = 9,
Location = "S001-002-001",
QtyAvail = 1.0
},
new
{
StockStatusId = 10,
IsDeleted = false,
IsRemn = false,
ItemID = 10,
Location = "S001-001-001",
QtyAvail = 1.0
});
});
modelBuilder.Entity("EgwCoreLib.Lux.Data.DbModel.SupplierModel", b =>
{
b.Property<int>("SupplierID")
.ValueGeneratedOnAdd()
.HasColumnType("int");
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("SupplierID"));
b.Property<string>("CompanyName")
.IsRequired()
.HasColumnType("longtext");
b.Property<string>("FirstName")
.IsRequired()
.HasColumnType("longtext");
b.Property<string>("LastName")
.IsRequired()
.HasColumnType("longtext");
b.Property<string>("VAT")
.IsRequired()
.HasColumnType("longtext");
b.HasKey("SupplierID");
b.ToTable("RegSupplier");
b.HasData(
new
{
SupplierID = 1,
CompanyName = "Company One",
FirstName = "Supplier A",
LastName = "Egalware",
VAT = "7294857103879254"
},
new
{
SupplierID = 2,
CompanyName = "Company Two",
FirstName = "Supplier B",
LastName = "User",
VAT = "7294857103879254"
},
new
{
SupplierID = 3,
CompanyName = "Company Two",
FirstName = "Supplier C",
LastName = "User Test",
VAT = "7294857103879254"
});
});
modelBuilder.Entity("EgwCoreLib.Lux.Data.DbModel.TagsModel", b =>
{
b.Property<int>("TagID")
.ValueGeneratedOnAdd()
.HasColumnType("int");
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("TagID"));
b.Property<string>("Description")
.IsRequired()
.HasColumnType("longtext");
b.HasKey("TagID");
b.ToTable("RegTags");
b.HasData(
new
{
TagID = 1,
Description = "Tag 01"
},
new
{
TagID = 2,
Description = "Tag 02"
},
new
{
TagID = 3,
Description = "Tag 03"
},
new
{
TagID = 4,
Description = "Tag 04"
},
new
{
TagID = 5,
Description = "Tag 05"
});
});
modelBuilder.Entity("EgwCoreLib.Lux.Data.DbModel.GenValueModel", b =>
{
b.HasOne("EgwCoreLib.Lux.Data.DbModel.GenClassModel", "GenClassNav")
.WithMany()
.HasForeignKey("ClassCod")
.OnDelete(DeleteBehavior.Restrict)
.IsRequired();
b.Navigation("GenClassNav");
});
modelBuilder.Entity("EgwCoreLib.Lux.Data.DbModel.ItemModel", b =>
{
b.HasOne("EgwCoreLib.Lux.Data.DbModel.ItemGroupModel", "ItemGroupNav")
.WithMany()
.HasForeignKey("CodGroup")
.OnDelete(DeleteBehavior.Restrict)
.IsRequired();
b.Navigation("ItemGroupNav");
});
modelBuilder.Entity("EgwCoreLib.Lux.Data.DbModel.JobRowItemModel", b =>
{
b.HasOne("EgwCoreLib.Lux.Data.DbModel.ItemModel", "ItemNav")
.WithMany()
.HasForeignKey("ItemID")
.OnDelete(DeleteBehavior.Restrict)
.IsRequired();
b.HasOne("EgwCoreLib.Lux.Data.DbModel.JobRowModel", "JobRowNav")
.WithMany()
.HasForeignKey("JobRowID")
.OnDelete(DeleteBehavior.Restrict)
.IsRequired();
b.Navigation("ItemNav");
b.Navigation("JobRowNav");
});
modelBuilder.Entity("EgwCoreLib.Lux.Data.DbModel.JobRowModel", b =>
{
b.HasOne("EgwCoreLib.Lux.Data.DbModel.JobModel", "JobNav")
.WithMany()
.HasForeignKey("JobID")
.OnDelete(DeleteBehavior.Restrict)
.IsRequired();
b.HasOne("EgwCoreLib.Lux.Data.DbModel.PhaseModel", "PhaseNav")
.WithMany()
.HasForeignKey("PhaseID")
.OnDelete(DeleteBehavior.Restrict)
.IsRequired();
b.HasOne("EgwCoreLib.Lux.Data.DbModel.ResourceModel", "ResourceNav")
.WithMany()
.HasForeignKey("ResourceID")
.OnDelete(DeleteBehavior.Restrict)
.IsRequired();
b.Navigation("JobNav");
b.Navigation("PhaseNav");
b.Navigation("ResourceNav");
});
modelBuilder.Entity("EgwCoreLib.Lux.Data.DbModel.OfferModel", b =>
{
b.HasOne("EgwCoreLib.Lux.Data.DbModel.CustomerModel", "CustomerNav")
.WithMany()
.HasForeignKey("CustomerID")
.OnDelete(DeleteBehavior.Restrict)
.IsRequired();
b.HasOne("EgwCoreLib.Lux.Data.DbModel.DealerModel", "DealerNav")
.WithMany()
.HasForeignKey("DealerID")
.OnDelete(DeleteBehavior.Restrict)
.IsRequired();
b.Navigation("CustomerNav");
b.Navigation("DealerNav");
});
modelBuilder.Entity("EgwCoreLib.Lux.Data.DbModel.OfferRowModel", b =>
{
b.HasOne("EgwCoreLib.Lux.Data.DbModel.OfferModel", "OfferNav")
.WithMany("OfferRowNav")
.HasForeignKey("OfferID")
.OnDelete(DeleteBehavior.Restrict)
.IsRequired();
b.HasOne("EgwCoreLib.Lux.Data.DbModel.SellingItemModel", "SellingItemNav")
.WithMany()
.HasForeignKey("SellingItemID")
.OnDelete(DeleteBehavior.Restrict)
.IsRequired();
b.Navigation("OfferNav");
b.Navigation("SellingItemNav");
});
modelBuilder.Entity("EgwCoreLib.Lux.Data.DbModel.OrderModel", b =>
{
b.HasOne("EgwCoreLib.Lux.Data.DbModel.CustomerModel", "CustomerNav")
.WithMany()
.HasForeignKey("CustomerID")
.OnDelete(DeleteBehavior.Restrict)
.IsRequired();
b.HasOne("EgwCoreLib.Lux.Data.DbModel.DealerModel", "DealerNav")
.WithMany()
.HasForeignKey("DealerID")
.OnDelete(DeleteBehavior.Restrict)
.IsRequired();
b.HasOne("EgwCoreLib.Lux.Data.DbModel.OfferModel", "OfferNav")
.WithMany()
.HasForeignKey("OfferID")
.OnDelete(DeleteBehavior.Restrict)
.IsRequired();
b.Navigation("CustomerNav");
b.Navigation("DealerNav");
b.Navigation("OfferNav");
});
modelBuilder.Entity("EgwCoreLib.Lux.Data.DbModel.OrderRowModel", b =>
{
b.HasOne("EgwCoreLib.Lux.Data.DbModel.OrderModel", "OrderNav")
.WithMany()
.HasForeignKey("OrderID")
.OnDelete(DeleteBehavior.Restrict)
.IsRequired();
b.HasOne("EgwCoreLib.Lux.Data.DbModel.SellingItemModel", "SellingItemNav")
.WithMany()
.HasForeignKey("SellingItemID")
.OnDelete(DeleteBehavior.Restrict)
.IsRequired();
b.Navigation("OrderNav");
b.Navigation("SellingItemNav");
});
modelBuilder.Entity("EgwCoreLib.Lux.Data.DbModel.ProductionItemModel", b =>
{
b.HasOne("EgwCoreLib.Lux.Data.DbModel.OrderRowModel", "OrderRowNav")
.WithMany()
.HasForeignKey("OrderRowID")
.OnDelete(DeleteBehavior.Restrict)
.IsRequired();
b.HasOne("EgwCoreLib.Lux.Data.DbModel.ProductionBatchModel", "ProductionBatchNav")
.WithMany()
.HasForeignKey("ProductionBatchID")
.OnDelete(DeleteBehavior.Restrict)
.IsRequired();
b.Navigation("OrderRowNav");
b.Navigation("ProductionBatchNav");
});
modelBuilder.Entity("EgwCoreLib.Lux.Data.DbModel.ProductionItemRowModel", b =>
{
b.HasOne("EgwCoreLib.Lux.Data.DbModel.PhaseModel", "PhaseNav")
.WithMany()
.HasForeignKey("PhaseID")
.OnDelete(DeleteBehavior.Restrict)
.IsRequired();
b.HasOne("EgwCoreLib.Lux.Data.DbModel.ProductionItemModel", "ProdItemNav")
.WithMany()
.HasForeignKey("ProdItemID")
.OnDelete(DeleteBehavior.Restrict)
.IsRequired();
b.HasOne("EgwCoreLib.Lux.Data.DbModel.ResourceModel", "ResourceNav")
.WithMany()
.HasForeignKey("ResourceID")
.OnDelete(DeleteBehavior.Restrict)
.IsRequired();
b.Navigation("PhaseNav");
b.Navigation("ProdItemNav");
b.Navigation("ResourceNav");
});
modelBuilder.Entity("EgwCoreLib.Lux.Data.DbModel.SellingItemModel", b =>
{
b.HasOne("EgwCoreLib.Lux.Data.DbModel.JobModel", "JobNav")
.WithMany()
.HasForeignKey("JobID")
.OnDelete(DeleteBehavior.Restrict)
.IsRequired();
b.Navigation("JobNav");
});
modelBuilder.Entity("EgwCoreLib.Lux.Data.DbModel.StockMovModel", b =>
{
b.HasOne("EgwCoreLib.Lux.Data.DbModel.MovTypeModel", "MovTypeNav")
.WithMany()
.HasForeignKey("MovCod")
.OnDelete(DeleteBehavior.Restrict)
.IsRequired();
b.HasOne("EgwCoreLib.Lux.Data.DbModel.StockStatusModel", "StockStatusNav")
.WithMany()
.HasForeignKey("StockStatusId")
.OnDelete(DeleteBehavior.Restrict)
.IsRequired();
b.Navigation("MovTypeNav");
b.Navigation("StockStatusNav");
});
modelBuilder.Entity("EgwCoreLib.Lux.Data.DbModel.StockStatusModel", b =>
{
b.HasOne("EgwCoreLib.Lux.Data.DbModel.ItemModel", "ItemNav")
.WithMany()
.HasForeignKey("ItemID")
.OnDelete(DeleteBehavior.Restrict)
.IsRequired();
b.Navigation("ItemNav");
});
modelBuilder.Entity("EgwCoreLib.Lux.Data.DbModel.OfferModel", b =>
{
b.Navigation("OfferRowNav");
});
#pragma warning restore 612, 618
}
}
}