//
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.ArticoloModel", b =>
{
b.Property("ArtID")
.ValueGeneratedOnAdd()
.HasColumnType("int");
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property("ArtID"));
b.Property("CodArt")
.HasColumnType("int");
b.Property("CodArtExt")
.IsRequired()
.HasColumnType("longtext");
b.Property("CodFornitore")
.IsRequired()
.HasColumnType("longtext");
b.Property("CodParl")
.IsRequired()
.HasColumnType("longtext");
b.Property("Cost")
.HasColumnType("double");
b.Property("Description")
.IsRequired()
.HasColumnType("longtext");
b.Property("IsMake")
.HasColumnType("tinyint(1)");
b.Property("IsService")
.HasColumnType("tinyint(1)");
b.Property("Margin")
.HasColumnType("double");
b.HasKey("ArtID");
b.ToTable("AnagArticoli");
});
#pragma warning restore 612, 618
}
}
}