You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

727 lines
27 KiB

3 years ago
// <auto-generated />
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
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))]
partial class WebApiHttpApiHostMigrationsDbContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(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<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property<string>("Company")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("nvarchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property<string>("ContactName")
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<string>("ContactPhone")
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime2")
.HasColumnName("CreationTime");
b.Property<Guid?>("CreatorId")
.HasColumnType("uniqueidentifier")
.HasColumnName("CreatorId");
b.Property<DateTime>("DueDate")
.HasColumnType("datetime2");
b.Property<string>("ExtraProperties")
.HasColumnType("nvarchar(max)")
.HasColumnName("ExtraProperties");
b.Property<bool>("IsConsignment")
.HasColumnType("bit");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime2")
.HasColumnName("LastModificationTime");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uniqueidentifier")
.HasColumnName("LastModifierId");
b.Property<DateTime>("OrderDate")
.HasColumnType("datetime2");
b.Property<string>("PoNumber")
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<string>("PoType")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<string>("Remark")
.HasMaxLength(4096)
.HasColumnType("nvarchar(max)");
b.Property<string>("SequenceNumber")
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<string>("Site")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<int>("Status")
.HasColumnType("int");
b.Property<string>("SupplierCode")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<decimal>("TaxRate")
.HasColumnType("decimal(18,2)");
b.Property<string>("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<Guid>("Id")
.HasColumnType("uniqueidentifier");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("nvarchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime2")
.HasColumnName("CreationTime");
b.Property<Guid?>("CreatorId")
.HasColumnType("uniqueidentifier")
.HasColumnName("CreatorId");
b.Property<string>("ExtraProperties")
.HasColumnType("nvarchar(max)")
.HasColumnName("ExtraProperties");
b.Property<bool>("IsConsignment")
.HasColumnType("bit");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime2")
.HasColumnName("LastModificationTime");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uniqueidentifier")
.HasColumnName("LastModifierId");
b.Property<int>("LineStatus")
.HasColumnType("int");
b.Property<decimal?>("OrderQty")
.IsRequired()
.HasColumnType("decimal(18,2)");
b.Property<string>("PartCode")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<string>("PoLine")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<string>("PoNumber")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<string>("Remark")
.HasMaxLength(4096)
.HasColumnType("nvarchar(max)");
b.Property<decimal?>("StdPackQty")
.IsRequired()
.HasColumnType("decimal(18,2)");
b.Property<string>("StdPackUom")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<decimal?>("SupplierPackConvertRate")
.HasColumnType("decimal(18,2)");
b.Property<decimal?>("SupplierPackQty")
.HasColumnType("decimal(18,2)");
b.Property<string>("SupplierPackUom")
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<string>("Uom")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<string>("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<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property<string>("Code")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<string>("Color")
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<string>("Company")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("nvarchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property<string>("Configuration")
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime2")
.HasColumnName("CreationTime");
b.Property<Guid?>("CreatorId")
.HasColumnType("uniqueidentifier")
.HasColumnName("CreatorId");
b.Property<string>("Desc1")
.HasMaxLength(1024)
.HasColumnType("nvarchar(1024)");
b.Property<string>("Desc2")
.HasMaxLength(1024)
.HasColumnType("nvarchar(1024)");
b.Property<string>("Eco")
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<decimal>("ExtPackQty")
.HasColumnType("decimal(18,2)");
b.Property<string>("ExtPackUom")
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<string>("ExtraProperties")
.HasColumnType("nvarchar(max)")
.HasColumnName("ExtraProperties");
b.Property<string>("Group")
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<bool>("IsBuyPart")
.HasColumnType("bit");
b.Property<bool>("IsMakePart")
.HasColumnType("bit");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime2")
.HasColumnName("LastModificationTime");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uniqueidentifier")
.HasColumnName("LastModifierId");
b.Property<string>("Name")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<string>("Project")
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<string>("SequenceNumber")
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<string>("Site")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<string>("Status")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<decimal>("StdPackQty")
.HasColumnType("decimal(18,2)");
b.Property<string>("StdPackUom")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<string>("Type")
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<string>("Uom")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<string>("Version")
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<string>("abcClass")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<string>("catalog")
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<string>("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<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property<string>("AsnNumber")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
3 years ago
b.Property<string>("Lot")
3 years ago
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<string>("Company")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("nvarchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime2")
.HasColumnName("CreationTime");
b.Property<Guid?>("CreatorId")
.HasColumnType("uniqueidentifier")
.HasColumnName("CreatorId");
b.Property<decimal>("DeliverQty")
.HasColumnType("decimal(18,2)");
b.Property<string>("ExtraProperties")
.HasColumnType("nvarchar(max)")
.HasColumnName("ExtraProperties");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime2")
.HasColumnName("LastModificationTime");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uniqueidentifier")
.HasColumnName("LastModifierId");
b.Property<string>("PartCode")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<string>("PoLine")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<string>("PoNumber")
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
3 years ago
b.Property<DateTime>("ProductionDate")
3 years ago
.HasColumnType("datetime2");
b.Property<string>("RcNumber")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<string>("RcType")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<decimal>("ReceiveQty")
.HasColumnType("decimal(18,2)");
b.Property<DateTime>("ReceiveTime")
.HasColumnType("datetime2");
b.Property<string>("Remark")
.HasMaxLength(4096)
.HasColumnType("nvarchar(max)");
b.Property<string>("RpNumber")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<string>("SequenceNumber")
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<string>("Site")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<decimal>("StdPackQty")
.HasColumnType("decimal(18,2)");
b.Property<string>("StdPackUom")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
3 years ago
b.Property<string>("SupplierLot")
3 years ago
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<string>("SupplierCode")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<decimal>("SupplierPackConvertRate")
.HasColumnType("decimal(18,2)");
b.Property<decimal>("SupplierPackQty")
.HasColumnType("decimal(18,2)");
b.Property<string>("SupplierPackUom")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
3 years ago
b.Property<DateTime>("TimeWindowEnd")
3 years ago
.HasColumnType("datetime2");
b.Property<DateTime>("TimeWindowBegin")
.HasColumnType("datetime2");
b.Property<string>("Uom")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<string>("Version")
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<string>("Warehouse")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
3 years ago
b.Property<string>("WarehouseDock")
3 years ago
.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<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property<string>("Address")
.HasMaxLength(1024)
.HasColumnType("nvarchar(1024)");
b.Property<string>("City")
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<string>("Code")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<string>("Company")
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("nvarchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property<string>("ContactName")
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<string>("Country")
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime2")
.HasColumnName("CreationTime");
b.Property<Guid?>("CreatorId")
.HasColumnType("uniqueidentifier")
.HasColumnName("CreatorId");
b.Property<string>("Currency")
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<string>("Desc")
.HasMaxLength(1024)
.HasColumnType("nvarchar(1024)");
b.Property<string>("ExtraProperties")
.HasColumnType("nvarchar(max)")
.HasColumnName("ExtraProperties");
b.Property<string>("Fax")
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<bool>("IsActive")
.HasColumnType("bit");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime2")
.HasColumnName("LastModificationTime");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uniqueidentifier")
.HasColumnName("LastModifierId");
b.Property<string>("Name")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<string>("Phone")
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<string>("PostId")
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<string>("Rank")
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<string>("Remark")
.HasMaxLength(4096)
.HasColumnType("nvarchar(max)");
b.Property<string>("SequenceNumber")
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<string>("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<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("nvarchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime2")
.HasColumnName("CreationTime");
b.Property<Guid?>("CreatorId")
.HasColumnType("uniqueidentifier")
.HasColumnName("CreatorId");
b.Property<string>("ExtraProperties")
.HasColumnType("nvarchar(max)")
.HasColumnName("ExtraProperties");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime2")
.HasColumnName("LastModificationTime");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uniqueidentifier")
.HasColumnName("LastModifierId");
b.Property<string>("PartCode")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<string>("Remark")
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<string>("SequenceNumber")
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<string>("SupplierCode")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<string>("SupplierPartCode")
.HasMaxLength(1024)
.HasColumnType("nvarchar(1024)");
b.Property<decimal>("SupplierStdPackQty")
.HasColumnType("decimal(18,2)");
b.Property<string>("SupplierStdPackUom")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<string>("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
}
}
}