987 lines
36 KiB
C#
987 lines
36 KiB
C#
// <auto-generated />
|
|
using System;
|
|
using Lux.Data;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Metadata;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
|
|
#nullable disable
|
|
|
|
namespace 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("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("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("Lux.Data.DbModel.ItemModel", b =>
|
|
{
|
|
b.Property<int>("ItemID")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("ItemID"));
|
|
|
|
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<double>("Margin")
|
|
.HasColumnType("double");
|
|
|
|
b.Property<string>("SupplCode")
|
|
.IsRequired()
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("UM")
|
|
.IsRequired()
|
|
.HasColumnType("longtext");
|
|
|
|
b.HasKey("ItemID");
|
|
|
|
b.ToTable("RegItem");
|
|
|
|
b.HasData(
|
|
new
|
|
{
|
|
ItemID = 1,
|
|
Cost = 50.0,
|
|
Description = "Barra di legno 80x120",
|
|
ExtItemCode = "",
|
|
IsService = false,
|
|
ItemCode = 0,
|
|
Margin = 0.29999999999999999,
|
|
SupplCode = "",
|
|
UM = "#"
|
|
},
|
|
new
|
|
{
|
|
ItemID = 2,
|
|
Cost = 35.0,
|
|
Description = "Vernice trasparente",
|
|
ExtItemCode = "",
|
|
IsService = false,
|
|
ItemCode = 0,
|
|
Margin = 0.29999999999999999,
|
|
SupplCode = "",
|
|
UM = "#"
|
|
},
|
|
new
|
|
{
|
|
ItemID = 3,
|
|
Cost = 1.0,
|
|
Description = "Ferramenta",
|
|
ExtItemCode = "",
|
|
IsService = false,
|
|
ItemCode = 0,
|
|
Margin = 0.29999999999999999,
|
|
SupplCode = "",
|
|
UM = "#"
|
|
});
|
|
});
|
|
|
|
modelBuilder.Entity("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("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 = 4.5
|
|
},
|
|
new
|
|
{
|
|
JobRowItemID = 2,
|
|
Description = "Vernice trasparente standard 1L",
|
|
Index = 2,
|
|
ItemID = 2,
|
|
JobRowID = 4,
|
|
Qty = 1.0
|
|
},
|
|
new
|
|
{
|
|
JobRowItemID = 3,
|
|
Description = "Ferramenta AGB - rif. AGFD.00000.00000",
|
|
Index = 3,
|
|
ItemID = 3,
|
|
JobRowID = 5,
|
|
Qty = 1.0
|
|
});
|
|
});
|
|
|
|
modelBuilder.Entity("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 = 4,
|
|
Qty = 1.0,
|
|
ResourceID = 6
|
|
},
|
|
new
|
|
{
|
|
JobRowID = 4,
|
|
Description = "",
|
|
Index = 4,
|
|
JobID = 2,
|
|
PhaseID = 3,
|
|
Qty = 1.0,
|
|
ResourceID = 4
|
|
},
|
|
new
|
|
{
|
|
JobRowID = 5,
|
|
Description = "",
|
|
Index = 5,
|
|
JobID = 2,
|
|
PhaseID = 5,
|
|
Qty = 1.0,
|
|
ResourceID = 6
|
|
},
|
|
new
|
|
{
|
|
JobRowID = 6,
|
|
Description = "",
|
|
Index = 6,
|
|
JobID = 2,
|
|
PhaseID = 6,
|
|
Qty = 1.0,
|
|
ResourceID = 7
|
|
});
|
|
});
|
|
|
|
modelBuilder.Entity("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>("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, 6, 20, 11, 6, 4, 160, DateTimeKind.Local).AddTicks(3672),
|
|
Modified = new DateTime(2025, 6, 20, 11, 6, 4, 160, DateTimeKind.Local).AddTicks(3673),
|
|
RefNum = 1,
|
|
RefRev = 1,
|
|
RefYear = 2024,
|
|
ValidUntil = new DateTime(2025, 7, 20, 11, 6, 4, 160, DateTimeKind.Local).AddTicks(3668)
|
|
});
|
|
});
|
|
|
|
modelBuilder.Entity("Lux.Data.DbModel.OfferRowModel", b =>
|
|
{
|
|
b.Property<int>("OfferRowID")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("OfferRowID"));
|
|
|
|
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>("OfferID")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<double>("Qty")
|
|
.HasColumnType("double");
|
|
|
|
b.Property<int>("RowNum")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("SellItemID")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("SerStruct")
|
|
.IsRequired()
|
|
.HasColumnType("longtext");
|
|
|
|
b.HasKey("OfferRowID");
|
|
|
|
b.HasIndex("OfferID");
|
|
|
|
b.HasIndex("SellItemID");
|
|
|
|
b.ToTable("OfferRowList");
|
|
|
|
b.HasData(
|
|
new
|
|
{
|
|
OfferRowID = 1,
|
|
Cost = 950.0,
|
|
Inserted = new DateTime(2025, 6, 20, 11, 6, 4, 160, DateTimeKind.Local).AddTicks(3701),
|
|
ItemSPP = "{}",
|
|
Modified = new DateTime(2025, 6, 20, 11, 6, 4, 160, DateTimeKind.Local).AddTicks(3703),
|
|
Note = "Finestra anta singola 2025",
|
|
OfferID = 1,
|
|
Qty = 3.0,
|
|
RowNum = 1,
|
|
SellItemID = 1,
|
|
SerStruct = "{}"
|
|
},
|
|
new
|
|
{
|
|
OfferRowID = 2,
|
|
Cost = 160.0,
|
|
Inserted = new DateTime(2025, 6, 20, 11, 6, 4, 160, DateTimeKind.Local).AddTicks(3709),
|
|
ItemSPP = "{}",
|
|
Modified = new DateTime(2025, 6, 20, 11, 6, 4, 160, DateTimeKind.Local).AddTicks(3711),
|
|
Note = "Persiana per Finestra anta singola 2025",
|
|
OfferID = 1,
|
|
Qty = 3.0,
|
|
RowNum = 1,
|
|
SellItemID = 2,
|
|
SerStruct = "{}"
|
|
},
|
|
new
|
|
{
|
|
OfferRowID = 3,
|
|
Cost = 200.0,
|
|
Inserted = new DateTime(2025, 6, 20, 11, 6, 4, 160, DateTimeKind.Local).AddTicks(3716),
|
|
ItemSPP = "{}",
|
|
Modified = new DateTime(2025, 6, 20, 11, 6, 4, 160, DateTimeKind.Local).AddTicks(3717),
|
|
Note = "Installazione serramento",
|
|
OfferID = 1,
|
|
Qty = 3.0,
|
|
RowNum = 1,
|
|
SellItemID = 3,
|
|
SerStruct = "{}"
|
|
});
|
|
});
|
|
|
|
modelBuilder.Entity("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("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>("UM")
|
|
.IsRequired()
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<double>("UnitCost")
|
|
.HasColumnType("double");
|
|
|
|
b.HasKey("ResourceID");
|
|
|
|
b.ToTable("RegResource");
|
|
|
|
b.HasData(
|
|
new
|
|
{
|
|
ResourceID = 1,
|
|
Description = "Sezionatrice",
|
|
IsAsset = true,
|
|
IsHuman = false,
|
|
UM = "€/h",
|
|
UnitCost = 15.0
|
|
},
|
|
new
|
|
{
|
|
ResourceID = 2,
|
|
Description = "Linea SAOMAD WoodPecker Just 3500",
|
|
IsAsset = true,
|
|
IsHuman = false,
|
|
UM = "€/h",
|
|
UnitCost = 540.0
|
|
},
|
|
new
|
|
{
|
|
ResourceID = 3,
|
|
Description = "Linea Pantografo",
|
|
IsAsset = true,
|
|
IsHuman = false,
|
|
UM = "€/h",
|
|
UnitCost = 250.0
|
|
},
|
|
new
|
|
{
|
|
ResourceID = 4,
|
|
Description = "Stazione Verniciatura",
|
|
IsAsset = true,
|
|
IsHuman = false,
|
|
UM = "€/h",
|
|
UnitCost = 10.0
|
|
},
|
|
new
|
|
{
|
|
ResourceID = 5,
|
|
Description = "Verniciatura Manuale",
|
|
IsAsset = false,
|
|
IsHuman = true,
|
|
UM = "€/h",
|
|
UnitCost = 40.0
|
|
},
|
|
new
|
|
{
|
|
ResourceID = 6,
|
|
Description = "Montaggio Manuale",
|
|
IsAsset = false,
|
|
IsHuman = true,
|
|
UM = "€/h",
|
|
UnitCost = 40.0
|
|
},
|
|
new
|
|
{
|
|
ResourceID = 7,
|
|
Description = "Installatore",
|
|
IsAsset = false,
|
|
IsHuman = true,
|
|
UM = "€/h",
|
|
UnitCost = 40.0
|
|
});
|
|
});
|
|
|
|
modelBuilder.Entity("Lux.Data.DbModel.SellItemModel", b =>
|
|
{
|
|
b.Property<int>("SellItemID")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("SellItemID"));
|
|
|
|
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>("JobID")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<double>("Margin")
|
|
.HasColumnType("double");
|
|
|
|
b.Property<string>("SupplCode")
|
|
.IsRequired()
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("UM")
|
|
.IsRequired()
|
|
.HasColumnType("longtext");
|
|
|
|
b.HasKey("SellItemID");
|
|
|
|
b.HasIndex("JobID");
|
|
|
|
b.ToTable("SellItem");
|
|
|
|
b.HasData(
|
|
new
|
|
{
|
|
SellItemID = 1,
|
|
Cost = 820.0,
|
|
Description = "Finestra anta Singola",
|
|
ExtItemCode = "",
|
|
IsService = false,
|
|
ItemCode = 0,
|
|
JobID = 2,
|
|
Margin = 0.20000000000000001,
|
|
SupplCode = "",
|
|
UM = "#"
|
|
},
|
|
new
|
|
{
|
|
SellItemID = 2,
|
|
Cost = 150.0,
|
|
Description = "Persiana anta singola",
|
|
ExtItemCode = "",
|
|
IsService = false,
|
|
ItemCode = 0,
|
|
JobID = 1,
|
|
Margin = 0.10000000000000001,
|
|
SupplCode = "",
|
|
UM = "#"
|
|
},
|
|
new
|
|
{
|
|
SellItemID = 3,
|
|
Cost = 200.0,
|
|
Description = "Installazione",
|
|
ExtItemCode = "",
|
|
IsService = true,
|
|
ItemCode = 0,
|
|
JobID = 1,
|
|
Margin = 0.29999999999999999,
|
|
SupplCode = "",
|
|
UM = "#"
|
|
});
|
|
});
|
|
|
|
modelBuilder.Entity("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("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("Lux.Data.DbModel.JobRowItemModel", b =>
|
|
{
|
|
b.HasOne("Lux.Data.DbModel.ItemModel", "ItemNav")
|
|
.WithMany()
|
|
.HasForeignKey("ItemID")
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
.IsRequired();
|
|
|
|
b.HasOne("Lux.Data.DbModel.JobRowModel", "JobRowNav")
|
|
.WithMany()
|
|
.HasForeignKey("JobRowID")
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
.IsRequired();
|
|
|
|
b.Navigation("ItemNav");
|
|
|
|
b.Navigation("JobRowNav");
|
|
});
|
|
|
|
modelBuilder.Entity("Lux.Data.DbModel.JobRowModel", b =>
|
|
{
|
|
b.HasOne("Lux.Data.DbModel.JobModel", "JobNav")
|
|
.WithMany()
|
|
.HasForeignKey("JobID")
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
.IsRequired();
|
|
|
|
b.HasOne("Lux.Data.DbModel.PhaseModel", "PhaseNav")
|
|
.WithMany()
|
|
.HasForeignKey("PhaseID")
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
.IsRequired();
|
|
|
|
b.HasOne("Lux.Data.DbModel.ResourceModel", "resourceNav")
|
|
.WithMany()
|
|
.HasForeignKey("ResourceID")
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
.IsRequired();
|
|
|
|
b.Navigation("JobNav");
|
|
|
|
b.Navigation("PhaseNav");
|
|
|
|
b.Navigation("resourceNav");
|
|
});
|
|
|
|
modelBuilder.Entity("Lux.Data.DbModel.OfferModel", b =>
|
|
{
|
|
b.HasOne("Lux.Data.DbModel.CustomerModel", "CustomerNav")
|
|
.WithMany()
|
|
.HasForeignKey("CustomerID")
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
.IsRequired();
|
|
|
|
b.HasOne("Lux.Data.DbModel.DealerModel", "DealerNav")
|
|
.WithMany()
|
|
.HasForeignKey("DealerID")
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
.IsRequired();
|
|
|
|
b.Navigation("CustomerNav");
|
|
|
|
b.Navigation("DealerNav");
|
|
});
|
|
|
|
modelBuilder.Entity("Lux.Data.DbModel.OfferRowModel", b =>
|
|
{
|
|
b.HasOne("Lux.Data.DbModel.OfferModel", "OfferNav")
|
|
.WithMany()
|
|
.HasForeignKey("OfferID")
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
.IsRequired();
|
|
|
|
b.HasOne("Lux.Data.DbModel.SellItemModel", "SellItemNav")
|
|
.WithMany()
|
|
.HasForeignKey("SellItemID")
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
.IsRequired();
|
|
|
|
b.Navigation("OfferNav");
|
|
|
|
b.Navigation("SellItemNav");
|
|
});
|
|
|
|
modelBuilder.Entity("Lux.Data.DbModel.SellItemModel", b =>
|
|
{
|
|
b.HasOne("Lux.Data.DbModel.JobModel", "JobNav")
|
|
.WithMany()
|
|
.HasForeignKey("JobID")
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
.IsRequired();
|
|
|
|
b.Navigation("JobNav");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|