// using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Volo.Abp.EntityFrameworkCore; using Win_in.Sfs.Scp.WebApi.EntityFrameworkCore; namespace Win_in.Sfs.Scp.WebApi.Migrations { [DbContext(typeof(WebApiHttpApiHostMigrationsDbContext))] [Migration("20211021081413_20211021002")] partial class _20211021002 { protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) .HasAnnotation("Relational:MaxIdentifierLength", 128) .HasAnnotation("ProductVersion", "5.0.11") .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); modelBuilder.Entity("Win_in.Sfs.Scp.WebApi.PO", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("Company") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("ContactName") .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("ContactPhone") .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DueDate") .HasColumnType("datetime2"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("IsConsignment") .HasColumnType("bit"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("OrderDate") .HasColumnType("datetime2"); b.Property("PoNumber") .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("PoType") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("Remark") .HasMaxLength(4096) .HasColumnType("nvarchar(max)"); b.Property("SequenceNumber") .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("Site") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("Status") .HasColumnType("int"); b.Property("SupplierCode") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("TaxRate") .HasColumnType("decimal(18,2)"); b.Property("Version") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.HasKey("Id"); b.HasIndex("PoNumber") .IsUnique() .HasFilter("[PoNumber] IS NOT NULL"); b.ToTable("WebApi_PO"); }); modelBuilder.Entity("Win_in.Sfs.Scp.WebApi.PODetail", b => { b.Property("Id") .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("IsConsignment") .HasColumnType("bit"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("LineStatus") .HasColumnType("int"); b.Property("OrderQty") .IsRequired() .HasColumnType("decimal(18,2)"); b.Property("PartCode") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("PoLine") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("PoNumber") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("Remark") .HasMaxLength(4096) .HasColumnType("nvarchar(max)"); b.Property("StdPackQty") .IsRequired() .HasColumnType("decimal(18,2)"); b.Property("StdPackUom") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("SupplierPackConvertRate") .HasColumnType("decimal(18,2)"); b.Property("SupplierPackQty") .HasColumnType("decimal(18,2)"); b.Property("SupplierPackUom") .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("Uom") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("Version") .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.HasKey("Id"); b.HasIndex("PoNumber", "PoLine") .IsUnique(); b.ToTable("WebApi_PODetail"); }); modelBuilder.Entity("Win_in.Sfs.Scp.WebApi.Part", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("Code") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("Color") .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("Company") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("Configuration") .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("Desc1") .HasMaxLength(1024) .HasColumnType("nvarchar(1024)"); b.Property("Desc2") .HasMaxLength(1024) .HasColumnType("nvarchar(1024)"); b.Property("Eco") .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("ExtPackQty") .HasColumnType("decimal(18,2)"); b.Property("ExtPackUom") .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("Group") .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("IsBuyPart") .HasColumnType("bit"); b.Property("IsMakePart") .HasColumnType("bit"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Name") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("Project") .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("SequenceNumber") .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("Site") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("Status") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("StdPackQty") .HasColumnType("decimal(18,2)"); b.Property("StdPackUom") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("Type") .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("Uom") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("Version") .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("abcClass") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("catalog") .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("productline") .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.HasKey("Id"); b.HasIndex("Code") .IsUnique(); b.ToTable("WebApi_Part"); }); modelBuilder.Entity("Win_in.Sfs.Scp.WebApi.Receipt", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("AsnNumber") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("Batch") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("Company") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeliverQty") .HasColumnType("decimal(18,2)"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("PartCode") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("PoLine") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("PoNumber") .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("ProduceDate") .HasColumnType("datetime2"); b.Property("RcNumber") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("RcType") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("ReceiveQty") .HasColumnType("decimal(18,2)"); b.Property("ReceiveTime") .HasColumnType("datetime2"); b.Property("Remark") .HasMaxLength(4096) .HasColumnType("nvarchar(max)"); b.Property("RpNumber") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("SequenceNumber") .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("Site") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("StdPackQty") .HasColumnType("decimal(18,2)"); b.Property("StdPackUom") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("SupplierBatch") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("SupplierCode") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("SupplierPackConvertRate") .HasColumnType("decimal(18,2)"); b.Property("SupplierPackQty") .HasColumnType("decimal(18,2)"); b.Property("SupplierPackUom") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("TimeWIndowEnd") .HasColumnType("datetime2"); b.Property("TimeWindowBegin") .HasColumnType("datetime2"); b.Property("Uom") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("Version") .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("Warehouse") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("WarehouseDoor") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.HasKey("Id"); b.HasIndex("RcNumber", "PoLine", "PartCode") .IsUnique(); b.ToTable("WebApi_Receipt"); }); modelBuilder.Entity("Win_in.Sfs.Scp.WebApi.Supplier", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("Address") .HasMaxLength(1024) .HasColumnType("nvarchar(1024)"); b.Property("City") .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("Code") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("Company") .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("ContactName") .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("Country") .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("Currency") .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("Desc") .HasMaxLength(1024) .HasColumnType("nvarchar(1024)"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("Fax") .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("IsActive") .HasColumnType("bit"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Name") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("Phone") .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("PostId") .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("Rank") .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("Remark") .HasMaxLength(4096) .HasColumnType("nvarchar(max)"); b.Property("SequenceNumber") .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("Version") .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.HasKey("Id"); b.HasIndex("CreationTime"); b.ToTable("WebApi_Suppliers"); }); modelBuilder.Entity("Win_in.Sfs.Scp.WebApi.SupplierPart", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("PartCode") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("Remark") .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("SequenceNumber") .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("SupplierCode") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("SupplierPartCode") .HasMaxLength(1024) .HasColumnType("nvarchar(1024)"); b.Property("SupplierStdPackQty") .HasColumnType("decimal(18,2)"); b.Property("SupplierStdPackUom") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("Version") .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.HasKey("Id"); b.HasIndex("SupplierCode", "PartCode") .IsUnique(); b.ToTable("WebApi_SupplierPart"); }); modelBuilder.Entity("Win_in.Sfs.Scp.WebApi.PODetail", b => { b.HasOne("Win_in.Sfs.Scp.WebApi.PO", null) .WithMany("PODetails") .HasForeignKey("Id") .OnDelete(DeleteBehavior.NoAction) .IsRequired(); }); modelBuilder.Entity("Win_in.Sfs.Scp.WebApi.PO", b => { b.Navigation("PODetails"); }); #pragma warning restore 612, 618 } } }