//
using System;
using MBDEVproAPI.DataModel;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
#nullable disable
namespace MBDEVproAPI.DataModel.Migrations
{
[DbContext(typeof(MBDEVproAPIDbContext))]
partial class MBDEVproAPIDbContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "10.0.3")
.HasAnnotation("Relational:MaxIdentifierLength", 128);
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
modelBuilder.Entity("MBDEVproAPI.DataModel.Entities.Customer", b =>
{
b.Property("CustomerID")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("CustomerID"));
b.Property("Address")
.IsRequired()
.HasMaxLength(75)
.HasColumnType("nvarchar(75)");
b.Property("BPhone")
.HasMaxLength(25)
.HasColumnType("nvarchar(25)");
b.Property("BusinessID")
.HasColumnType("int");
b.Property("City")
.IsRequired()
.HasMaxLength(75)
.HasColumnType("nvarchar(75)");
b.Property("Company")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property("Country")
.IsRequired()
.HasMaxLength(30)
.HasColumnType("nvarchar(30)");
b.Property("CreatedBy")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property("CreatedDate")
.HasColumnType("datetime2");
b.Property("Email")
.IsRequired()
.HasMaxLength(75)
.HasColumnType("nvarchar(75)");
b.Property("Fax")
.HasMaxLength(25)
.HasColumnType("nvarchar(25)");
b.Property("FirstName")
.IsRequired()
.HasMaxLength(25)
.HasColumnType("nvarchar(25)");
b.Property("HPhone")
.HasMaxLength(25)
.HasColumnType("nvarchar(25)");
b.Property("LastName")
.IsRequired()
.HasMaxLength(25)
.HasColumnType("nvarchar(25)");
b.Property("MPhone")
.HasMaxLength(25)
.HasColumnType("nvarchar(25)");
b.Property("Map")
.HasMaxLength(300)
.HasColumnType("nvarchar(300)");
b.Property("ModifiedBy")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property("ModifiedDate")
.HasColumnType("datetime2");
b.Property("Notes")
.HasMaxLength(4010)
.HasColumnType("nvarchar(max)");
b.Property("Photo")
.HasMaxLength(75)
.HasColumnType("nvarchar(75)");
b.Property("State")
.IsRequired()
.HasMaxLength(75)
.HasColumnType("nvarchar(75)");
b.Property("Title")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property("WebPage")
.HasMaxLength(75)
.HasColumnType("nvarchar(75)");
b.Property("ZIPCode")
.IsRequired()
.HasMaxLength(15)
.HasColumnType("nvarchar(15)");
b.HasKey("CustomerID");
b.ToTable("Customers");
});
#pragma warning restore 612, 618
}
}
}