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.
4087 lines
155 KiB
4087 lines
155 KiB
// <auto-generated />
|
|
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.Wms.Job.EntityFrameworkCore;
|
|
|
|
namespace Win_in.Sfs.Wms.Job.Migrations
|
|
{
|
|
[DbContext(typeof(JobHttpApiHostMigrationsDbContext))]
|
|
[Migration("20220729073337_MesDeliverJob20220729")]
|
|
partial class MesDeliverJob20220729
|
|
{
|
|
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.17")
|
|
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
|
|
|
|
modelBuilder.Entity("Win_in.Sfs.Wms.Job.Domain.CheckJob", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<DateTime?>("AcceptTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<Guid?>("AcceptUserId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("AcceptUserName")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("Company")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)")
|
|
.HasColumnName("Company");
|
|
|
|
b.Property<DateTime?>("CompleteTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<Guid?>("CompleteUserId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("CompleteUserName")
|
|
.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<string>("DeliverNoteNumber")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<bool>("IsAutoComplete")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false);
|
|
|
|
b.Property<string>("JobDescription")
|
|
.HasMaxLength(1024)
|
|
.HasColumnType("nvarchar(1024)");
|
|
|
|
b.Property<int>("JobStatus")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("JobType")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("Number")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<int>("Priority")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int")
|
|
.HasDefaultValue(0);
|
|
|
|
b.Property<int>("PriorityIncrement")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int")
|
|
.HasDefaultValue(0);
|
|
|
|
b.Property<string>("Remark")
|
|
.HasMaxLength(4096)
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("Remark");
|
|
|
|
b.Property<Guid?>("TenantId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("TenantId");
|
|
|
|
b.Property<string>("UpStreamJobNumber")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("WarehouseCode")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("WorkGroupCode")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("Worker")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("Company", "Number")
|
|
.IsUnique();
|
|
|
|
b.ToTable("JobCheckJob");
|
|
});
|
|
|
|
modelBuilder.Entity("Win_in.Sfs.Wms.Job.Domain.CheckJobDetail", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ContainerCode")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("CustomerItemCode")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("ItemCode")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("LocationCode")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("Lot")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<Guid>("MasterID")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("Number")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("Order")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("PackingCode")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasMaxLength(4096)
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("Remark");
|
|
|
|
b.Property<int>("Status")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<Guid?>("TenantId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("TenantId");
|
|
|
|
b.Property<string>("WarehouseCode")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("MasterID");
|
|
|
|
b.ToTable("JobCheckJobDetail");
|
|
});
|
|
|
|
modelBuilder.Entity("Win_in.Sfs.Wms.Job.Domain.CountJob", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<DateTime?>("AcceptTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<Guid?>("AcceptUserId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("AcceptUserName")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("Company")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)")
|
|
.HasColumnName("Company");
|
|
|
|
b.Property<DateTime?>("CompleteTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<Guid?>("CompleteUserId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("CompleteUserName")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<int>("CountMethod")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("CountPlanNumber")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<int>("CountStage")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("Description")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<bool>("IsAutoComplete")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false);
|
|
|
|
b.Property<string>("JobDescription")
|
|
.HasMaxLength(1024)
|
|
.HasColumnType("nvarchar(1024)");
|
|
|
|
b.Property<int>("JobStatus")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("JobType")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("Number")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<int>("Priority")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int")
|
|
.HasDefaultValue(0);
|
|
|
|
b.Property<int>("PriorityIncrement")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int")
|
|
.HasDefaultValue(0);
|
|
|
|
b.Property<string>("Remark")
|
|
.HasMaxLength(4096)
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("Remark");
|
|
|
|
b.Property<Guid?>("TenantId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("TenantId");
|
|
|
|
b.Property<int>("Type")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("UpStreamJobNumber")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("WarehouseCode")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("WorkGroupCode")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("Worker")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("Company", "Number")
|
|
.IsUnique();
|
|
|
|
b.ToTable("JobCountJob");
|
|
});
|
|
|
|
modelBuilder.Entity("Win_in.Sfs.Wms.Job.Domain.CountJobDetail", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ContainerCode")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("CountLabel")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("ItemCode")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("LocationCode")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("Lot")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<Guid>("MasterID")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("Number")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("PackingCode")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasMaxLength(4096)
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("Remark");
|
|
|
|
b.Property<int>("Status")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<Guid?>("TenantId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("TenantId");
|
|
|
|
b.Property<string>("WarehouseCode")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("MasterID");
|
|
|
|
b.ToTable("JobCountJobDetail");
|
|
});
|
|
|
|
modelBuilder.Entity("Win_in.Sfs.Wms.Job.Domain.DeliverJob", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<DateTime?>("AcceptTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<Guid?>("AcceptUserId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("AcceptUserName")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("Company")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)")
|
|
.HasColumnName("Company");
|
|
|
|
b.Property<DateTime?>("CompleteTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<Guid?>("CompleteUserId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("CompleteUserName")
|
|
.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<string>("Customer")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("CustomerAddressCode")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("DeliverRequestNumber")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<bool>("IsAutoComplete")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false);
|
|
|
|
b.Property<string>("JobDescription")
|
|
.HasMaxLength(1024)
|
|
.HasColumnType("nvarchar(1024)");
|
|
|
|
b.Property<int>("JobStatus")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("JobType")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("Number")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<int>("Priority")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int")
|
|
.HasDefaultValue(0);
|
|
|
|
b.Property<int>("PriorityIncrement")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int")
|
|
.HasDefaultValue(0);
|
|
|
|
b.Property<string>("Remark")
|
|
.HasMaxLength(4096)
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("Remark");
|
|
|
|
b.Property<Guid?>("TenantId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("TenantId");
|
|
|
|
b.Property<string>("UpStreamJobNumber")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("WarehouseCode")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("WorkGroupCode")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("Worker")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("Number", "Company")
|
|
.IsUnique();
|
|
|
|
b.ToTable("JobDeliverJob");
|
|
});
|
|
|
|
modelBuilder.Entity("Win_in.Sfs.Wms.Job.Domain.DeliverJobDetail", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<DateTime>("ExpiredTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("FromContainerCode")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("FromLocationCode")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("FromLot")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("FromPackingCode")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<int>("FromStatus")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("FromWarehouseCode")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("HandledContainerCode")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("HandledLocationCode")
|
|
.HasMaxLength(4096)
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("HandledLot")
|
|
.HasMaxLength(4096)
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("HandledPackingCode")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("ItemCode")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<Guid>("MasterID")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("Number")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("RecommendContainerCode")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("RecommendLocationCode")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("RecommendLot")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("RecommendPackingCode")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasMaxLength(4096)
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("Remark");
|
|
|
|
b.Property<int>("Status")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<Guid?>("TenantId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("TenantId");
|
|
|
|
b.Property<string>("ToContainerCode")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("ToLocationCode")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("ToLot")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("ToPackingCode")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<int>("ToStatus")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("ToWarehouseCode")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("WarehouseCode")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("MasterID");
|
|
|
|
b.ToTable("JobDeliverJobDetail");
|
|
});
|
|
|
|
modelBuilder.Entity("Win_in.Sfs.Wms.Job.Domain.InspectJob", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<DateTime?>("AcceptTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<Guid?>("AcceptUserId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("AcceptUserName")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("ArriveNoticeNumber")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("AsnNumber")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("Company")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)")
|
|
.HasColumnName("Company");
|
|
|
|
b.Property<DateTime?>("CompleteTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<Guid?>("CompleteUserId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("CompleteUserName")
|
|
.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<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<string>("InspectNumber")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<bool>("IsAutoComplete")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false);
|
|
|
|
b.Property<string>("JobDescription")
|
|
.HasMaxLength(1024)
|
|
.HasColumnType("nvarchar(1024)");
|
|
|
|
b.Property<int>("JobStatus")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("JobType")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<int>("NextAction")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Number")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("PoNumber")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<int>("Priority")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int")
|
|
.HasDefaultValue(0);
|
|
|
|
b.Property<int>("PriorityIncrement")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int")
|
|
.HasDefaultValue(0);
|
|
|
|
b.Property<string>("ReceiptNumber")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasMaxLength(4096)
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("Remark");
|
|
|
|
b.Property<string>("RpNumber")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("SupplierCode")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<Guid?>("TenantId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("TenantId");
|
|
|
|
b.Property<string>("UpStreamJobNumber")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("WarehouseCode")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("WorkGroupCode")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("Worker")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("Company", "Number")
|
|
.IsUnique();
|
|
|
|
b.ToTable("JobInspectJob");
|
|
});
|
|
|
|
modelBuilder.Entity("Win_in.Sfs.Wms.Job.Domain.InspectJobDetail", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<decimal>("CrackQty")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("decimal(18,2)")
|
|
.HasDefaultValue(0m);
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<decimal>("FailedQty")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("decimal(18,2)")
|
|
.HasDefaultValue(0m);
|
|
|
|
b.Property<string>("FailedReason")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<decimal>("GoodQty")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("decimal(18,2)")
|
|
.HasDefaultValue(0m);
|
|
|
|
b.Property<string>("HandledContainerCode")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("HandledLocationCode")
|
|
.HasMaxLength(4096)
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("HandledLot")
|
|
.HasMaxLength(4096)
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("HandledPackingCode")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<decimal>("InspectQty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<int>("InspectType")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("ItemCode")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<Guid>("MasterID")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<decimal>("NotPassedQty")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("decimal(18,2)")
|
|
.HasDefaultValue(0m);
|
|
|
|
b.Property<string>("Number")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("PoLine")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("PoNumber")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("RecommendContainerCode")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("RecommendLocationCode")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("RecommendLot")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("RecommendPackingCode")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasMaxLength(4096)
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("Remark");
|
|
|
|
b.Property<decimal>("SamplePercent")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<int>("Status")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<Guid?>("TenantId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("TenantId");
|
|
|
|
b.Property<string>("WarehouseCode")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("MasterID");
|
|
|
|
b.ToTable("JobInspectJobDetail");
|
|
});
|
|
|
|
modelBuilder.Entity("Win_in.Sfs.Wms.Job.Domain.InspectJobSummaryDetail", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<decimal>("CrackQty")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("decimal(18,2)")
|
|
.HasDefaultValue(0m);
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<decimal>("FailedQty")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("decimal(18,2)")
|
|
.HasDefaultValue(0m);
|
|
|
|
b.Property<string>("FailedReason")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<decimal>("GoodQty")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("decimal(18,2)")
|
|
.HasDefaultValue(0m);
|
|
|
|
b.Property<string>("HandledContainerCode")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("HandledLocationCode")
|
|
.HasMaxLength(4096)
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("HandledLot")
|
|
.HasMaxLength(4096)
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("HandledPackingCode")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<decimal>("InspectQty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<int>("InspectType")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("ItemCode")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<Guid>("MasterID")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<decimal>("NotPassedQty")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("decimal(18,2)")
|
|
.HasDefaultValue(0m);
|
|
|
|
b.Property<string>("Number")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("PoLine")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("PoNumber")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("RecommendContainerCode")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("RecommendLocationCode")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("RecommendLot")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("RecommendPackingCode")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasMaxLength(4096)
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("Remark");
|
|
|
|
b.Property<decimal>("SamplePercent")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<int>("Status")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<Guid?>("TenantId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("TenantId");
|
|
|
|
b.Property<string>("WarehouseCode")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("MasterID");
|
|
|
|
b.ToTable("JobInspectJobSummaryDetail");
|
|
});
|
|
|
|
modelBuilder.Entity("Win_in.Sfs.Wms.Job.Domain.IssueJob", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<DateTime?>("AcceptTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<Guid?>("AcceptUserId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("AcceptUserName")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("Company")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)")
|
|
.HasColumnName("Company");
|
|
|
|
b.Property<DateTime?>("CompleteTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<Guid?>("CompleteUserId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("CompleteUserName")
|
|
.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<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<bool>("IsAutoComplete")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false);
|
|
|
|
b.Property<string>("JobDescription")
|
|
.HasMaxLength(1024)
|
|
.HasColumnType("nvarchar(1024)");
|
|
|
|
b.Property<int>("JobStatus")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("JobType")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("MaterialRequestNumber")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("Number")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<int>("Priority")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int")
|
|
.HasDefaultValue(0);
|
|
|
|
b.Property<int>("PriorityIncrement")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int")
|
|
.HasDefaultValue(0);
|
|
|
|
b.Property<string>("ProdLine")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasMaxLength(4096)
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("Remark");
|
|
|
|
b.Property<Guid?>("TenantId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("TenantId");
|
|
|
|
b.Property<string>("UpStreamJobNumber")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("WarehouseCode")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("WorkGroupCode")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("Worker")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Workshop")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("Company", "Number")
|
|
.IsUnique();
|
|
|
|
b.ToTable("JobIssueJob");
|
|
});
|
|
|
|
modelBuilder.Entity("Win_in.Sfs.Wms.Job.Domain.IssueJobDetail", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<decimal>("DeliveryQty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<int>("DistributionType")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<DateTime>("ExpiredTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("HandledContainerCode")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("HandledLocationCode")
|
|
.HasMaxLength(4096)
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("HandledLot")
|
|
.HasMaxLength(4096)
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("HandledPackingCode")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("ItemCode")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<Guid>("MasterID")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("Number")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("Operation")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<DateTime>("PlanBeginTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<int>("PlannedSplitRule")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("ProdLine")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("RecommendContainerCode")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("RecommendLocationCode")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("RecommendLot")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("RecommendPackingCode")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasMaxLength(4096)
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("Remark");
|
|
|
|
b.Property<string>("RequestLocationCode")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<decimal>("RoundedQty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<int>("Status")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<Guid?>("TenantId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("TenantId");
|
|
|
|
b.Property<string>("ToLocationCode")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<int>("TruncType")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("WarehouseCode")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("WorkStation")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("MasterID");
|
|
|
|
b.ToTable("JobIssueJobDetail");
|
|
});
|
|
|
|
modelBuilder.Entity("Win_in.Sfs.Wms.Job.Domain.MesDeliverJob", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<DateTime?>("AcceptTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<Guid?>("AcceptUserId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("AcceptUserName")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("Company")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)")
|
|
.HasColumnName("Company");
|
|
|
|
b.Property<DateTime?>("CompleteTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<Guid?>("CompleteUserId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("CompleteUserName")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<decimal>("ContainerQty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("Customer")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("CustomerAddressCode")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("CustomerLocationCode")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("CustomerWarehouseCode")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<bool>("IsAutoComplete")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false);
|
|
|
|
b.Property<decimal>("ItemQty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<string>("JobDescription")
|
|
.HasMaxLength(1024)
|
|
.HasColumnType("nvarchar(1024)");
|
|
|
|
b.Property<int>("JobStatus")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("JobType")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("Number")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<DateTime>("PlanTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<int>("Priority")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int")
|
|
.HasDefaultValue(0);
|
|
|
|
b.Property<int>("PriorityIncrement")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int")
|
|
.HasDefaultValue(0);
|
|
|
|
b.Property<string>("ProjectCode")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasMaxLength(4096)
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("Remark");
|
|
|
|
b.Property<Guid?>("TenantId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("TenantId");
|
|
|
|
b.Property<string>("UpStreamJobNumber")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("WarehouseCode")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("WorkGroupCode")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("Worker")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("Company", "Number")
|
|
.IsUnique();
|
|
|
|
b.ToTable("JobMesDeliverJob");
|
|
});
|
|
|
|
modelBuilder.Entity("Win_in.Sfs.Wms.Job.Domain.MesDeliverJobDetail", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ContainerCode")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("ContainerDesc")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("ContainerName")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("FromLocationCode")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<decimal>("InventoryCount")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<Guid>("MasterID")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("Number")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasMaxLength(4096)
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("Remark");
|
|
|
|
b.Property<int>("Status")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<Guid?>("TenantId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("TenantId");
|
|
|
|
b.Property<string>("ToLocationCode")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("MasterID");
|
|
|
|
b.ToTable("JobMesDeliverJobDetail");
|
|
});
|
|
|
|
modelBuilder.Entity("Win_in.Sfs.Wms.Job.Domain.ProductReceiveJob", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<DateTime?>("AcceptTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<Guid?>("AcceptUserId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("AcceptUserName")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("Company")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)")
|
|
.HasColumnName("Company");
|
|
|
|
b.Property<DateTime?>("CompleteTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<Guid?>("CompleteUserId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("CompleteUserName")
|
|
.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<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<bool>("IsAutoComplete")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false);
|
|
|
|
b.Property<string>("JobDescription")
|
|
.HasMaxLength(1024)
|
|
.HasColumnType("nvarchar(1024)");
|
|
|
|
b.Property<int>("JobStatus")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("JobType")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("Number")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<int>("Priority")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int")
|
|
.HasDefaultValue(0);
|
|
|
|
b.Property<int>("PriorityIncrement")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int")
|
|
.HasDefaultValue(0);
|
|
|
|
b.Property<string>("ProductionPlanNumber")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasMaxLength(4096)
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("Remark");
|
|
|
|
b.Property<string>("Shift")
|
|
.HasMaxLength(4096)
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<Guid?>("TenantId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("TenantId");
|
|
|
|
b.Property<string>("UpStreamJobNumber")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("WarehouseCode")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("WorkGroupCode")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("Worker")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Workshop")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("Company", "Number")
|
|
.IsUnique();
|
|
|
|
b.ToTable("JobProductReceiveJob");
|
|
});
|
|
|
|
modelBuilder.Entity("Win_in.Sfs.Wms.Job.Domain.ProductReceiveJobDetail", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("HandledContainerCode")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("HandledLocationCode")
|
|
.HasMaxLength(4096)
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("HandledLot")
|
|
.HasMaxLength(4096)
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("HandledPackingCode")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("ItemCode")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<Guid>("MasterID")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("Number")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("ProdLine")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("RawLocation")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("RecommendContainerCode")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("RecommendLocationCode")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("RecommendLot")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("RecommendPackingCode")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasMaxLength(4096)
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("Remark");
|
|
|
|
b.Property<int>("Status")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<Guid?>("TenantId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("TenantId");
|
|
|
|
b.Property<string>("WarehouseCode")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("MasterID");
|
|
|
|
b.ToTable("JobProductReceiveJobDetail");
|
|
});
|
|
|
|
modelBuilder.Entity("Win_in.Sfs.Wms.Job.Domain.PurchaseReceiptJob", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<DateTime?>("AcceptTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<Guid?>("AcceptUserId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("AcceptUserName")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("ArriveNoticeNumber")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<DateTime>("ArriveTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("AsnNumber")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("Company")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)")
|
|
.HasColumnName("Company");
|
|
|
|
b.Property<DateTime?>("CompleteTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<Guid?>("CompleteUserId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("CompleteUserName")
|
|
.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<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<bool>("IsAutoComplete")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false);
|
|
|
|
b.Property<string>("JobDescription")
|
|
.HasMaxLength(1024)
|
|
.HasColumnType("nvarchar(1024)");
|
|
|
|
b.Property<int>("JobStatus")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("JobType")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("Number")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("PoNumber")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<int>("Priority")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int")
|
|
.HasDefaultValue(0);
|
|
|
|
b.Property<int>("PriorityIncrement")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int")
|
|
.HasDefaultValue(0);
|
|
|
|
b.Property<string>("Remark")
|
|
.HasMaxLength(4096)
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("Remark");
|
|
|
|
b.Property<string>("RpNumber")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("SupplierCode")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("SupplierName")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<Guid?>("TenantId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("TenantId");
|
|
|
|
b.Property<string>("TimeWindow")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<int>("Type")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("UpStreamJobNumber")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("WarehouseCode")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("WorkGroupCode")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("Worker")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("Company", "Number")
|
|
.IsUnique();
|
|
|
|
b.ToTable("JobPurchaseReceiptJob");
|
|
});
|
|
|
|
modelBuilder.Entity("Win_in.Sfs.Wms.Job.Domain.PurchaseReceiptJobDetail", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("HandledContainerCode")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("HandledLocationCode")
|
|
.HasMaxLength(4096)
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("HandledLot")
|
|
.HasMaxLength(4096)
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("HandledPackingCode")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("ItemCode")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<Guid>("MasterID")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("Number")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("PoLine")
|
|
.HasMaxLength(4096)
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("PoNumber")
|
|
.HasMaxLength(4096)
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("RecommendContainerCode")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("RecommendLocationCode")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("RecommendLot")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("RecommendPackingCode")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasMaxLength(4096)
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("Remark");
|
|
|
|
b.Property<int>("Status")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<Guid?>("TenantId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("TenantId");
|
|
|
|
b.Property<string>("WarehouseCode")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("MasterID");
|
|
|
|
b.ToTable("JobPurchaseReceiptJobDetail");
|
|
});
|
|
|
|
modelBuilder.Entity("Win_in.Sfs.Wms.Job.Domain.PurchaseReturnJob", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<DateTime?>("AcceptTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<Guid?>("AcceptUserId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("AcceptUserName")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("ArriveNoticeNumber")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("AsnNumber")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("Company")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)")
|
|
.HasColumnName("Company");
|
|
|
|
b.Property<DateTime?>("CompleteTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<Guid?>("CompleteUserId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("CompleteUserName")
|
|
.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<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<bool>("IsAutoComplete")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false);
|
|
|
|
b.Property<string>("JobDescription")
|
|
.HasMaxLength(1024)
|
|
.HasColumnType("nvarchar(1024)");
|
|
|
|
b.Property<int>("JobStatus")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("JobType")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("Number")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("PoNumber")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<int>("Priority")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int")
|
|
.HasDefaultValue(0);
|
|
|
|
b.Property<int>("PriorityIncrement")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int")
|
|
.HasDefaultValue(0);
|
|
|
|
b.Property<string>("PurchaseReceiptNumber")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasMaxLength(4096)
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("Remark");
|
|
|
|
b.Property<string>("SupplierCode")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<Guid?>("TenantId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("TenantId");
|
|
|
|
b.Property<string>("UpStreamJobNumber")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("WarehouseCode")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("WorkGroupCode")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("Worker")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("Company", "Number")
|
|
.IsUnique();
|
|
|
|
b.ToTable("JobPurchaseReturnJob");
|
|
});
|
|
|
|
modelBuilder.Entity("Win_in.Sfs.Wms.Job.Domain.PurchaseReturnJobDetail", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("HandledContainerCode")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("HandledLocationCode")
|
|
.HasMaxLength(4096)
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("HandledLot")
|
|
.HasMaxLength(4096)
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("HandledPackingCode")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("ItemCode")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<Guid>("MasterID")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("Number")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("PoLine")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("PoNumber")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("RecommendContainerCode")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("RecommendLocationCode")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("RecommendLot")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("RecommendPackingCode")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasMaxLength(4096)
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("Remark");
|
|
|
|
b.Property<int>("Status")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<Guid?>("TenantId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("TenantId");
|
|
|
|
b.Property<string>("WarehouseCode")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("MasterID");
|
|
|
|
b.ToTable("JobPurchaseReturnJobDetail");
|
|
});
|
|
|
|
modelBuilder.Entity("Win_in.Sfs.Wms.Job.Domain.PutawayJob", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<DateTime?>("AcceptTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<Guid?>("AcceptUserId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("AcceptUserName")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("ArriveNoticeNumber")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("AsnNumber")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("Company")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)")
|
|
.HasColumnName("Company");
|
|
|
|
b.Property<DateTime?>("CompleteTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<Guid?>("CompleteUserId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("CompleteUserName")
|
|
.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<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<string>("InspectNumber")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<bool>("IsAutoComplete")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false);
|
|
|
|
b.Property<string>("JobDescription")
|
|
.HasMaxLength(1024)
|
|
.HasColumnType("nvarchar(1024)");
|
|
|
|
b.Property<int>("JobStatus")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("JobType")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("Number")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("PoNumber")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<int>("Priority")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int")
|
|
.HasDefaultValue(0);
|
|
|
|
b.Property<int>("PriorityIncrement")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int")
|
|
.HasDefaultValue(0);
|
|
|
|
b.Property<string>("ProductReceiptNumber")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<int>("PutawayJobSource")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("ReceiptNumber")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasMaxLength(4096)
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("Remark");
|
|
|
|
b.Property<string>("RpNumber")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("SupplierCode")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<Guid?>("TenantId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("TenantId");
|
|
|
|
b.Property<string>("UpStreamJobNumber")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("WarehouseCode")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("WorkGroupCode")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("Worker")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("Company", "Number")
|
|
.IsUnique();
|
|
|
|
b.ToTable("JobPutawayJob");
|
|
});
|
|
|
|
modelBuilder.Entity("Win_in.Sfs.Wms.Job.Domain.PutawayJobDetail", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("FromLocationCode")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("HandledContainerCode")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("HandledLocationCode")
|
|
.HasMaxLength(4096)
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("HandledLot")
|
|
.HasMaxLength(4096)
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("HandledPackingCode")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("ItemCode")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<Guid>("MasterID")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("Number")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("PoLine")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("PoNumber")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("RecommendContainerCode")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("RecommendLocationCode")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("RecommendLot")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("RecommendPackingCode")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasMaxLength(4096)
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("Remark");
|
|
|
|
b.Property<int>("Status")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<Guid?>("TenantId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("TenantId");
|
|
|
|
b.Property<string>("WarehouseCode")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("MasterID");
|
|
|
|
b.ToTable("JobPutawayJobDetail");
|
|
});
|
|
|
|
modelBuilder.Entity("Win_in.Sfs.Wms.Job.Domain.CheckJobDetail", b =>
|
|
{
|
|
b.HasOne("Win_in.Sfs.Wms.Job.Domain.CheckJob", null)
|
|
.WithMany("Details")
|
|
.HasForeignKey("MasterID")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 =>
|
|
{
|
|
b1.Property<Guid>("CheckJobDetailId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<DateTime>("ProduceDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b1.Property<string>("SupplierBatch")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("CheckJobDetailId");
|
|
|
|
b1.ToTable("JobCheckJobDetail");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("CheckJobDetailId");
|
|
});
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 =>
|
|
{
|
|
b1.Property<Guid>("CheckJobDetailId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<string>("Desc1")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.Property<string>("Desc2")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.Property<Guid>("Id")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<string>("Name")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("CheckJobDetailId");
|
|
|
|
b1.ToTable("JobCheckJobDetail");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("CheckJobDetailId");
|
|
});
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 =>
|
|
{
|
|
b1.Property<Guid>("CheckJobDetailId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<decimal>("PackQty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b1.Property<string>("PackUom")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("CheckJobDetailId");
|
|
|
|
b1.ToTable("JobCheckJobDetail");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("CheckJobDetailId");
|
|
});
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 =>
|
|
{
|
|
b1.Property<Guid>("CheckJobDetailId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<decimal>("Qty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b1.Property<string>("Uom")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("CheckJobDetailId");
|
|
|
|
b1.ToTable("JobCheckJobDetail");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("CheckJobDetailId");
|
|
});
|
|
|
|
b.Navigation("Batch");
|
|
|
|
b.Navigation("Item");
|
|
|
|
b.Navigation("Qty");
|
|
|
|
b.Navigation("StdPack");
|
|
});
|
|
|
|
modelBuilder.Entity("Win_in.Sfs.Wms.Job.Domain.CountJobDetail", b =>
|
|
{
|
|
b.HasOne("Win_in.Sfs.Wms.Job.Domain.CountJob", null)
|
|
.WithMany("Details")
|
|
.HasForeignKey("MasterID")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 =>
|
|
{
|
|
b1.Property<Guid>("CountJobDetailId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<DateTime>("ProduceDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b1.Property<string>("SupplierBatch")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("CountJobDetailId");
|
|
|
|
b1.ToTable("JobCountJobDetail");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("CountJobDetailId");
|
|
});
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.CountResult", "CountQty", b1 =>
|
|
{
|
|
b1.Property<Guid>("CountJobDetailId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<string>("Description")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.Property<string>("Operator")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.Property<decimal>("Qty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b1.Property<DateTime>("Time")
|
|
.HasColumnType("datetime2");
|
|
|
|
b1.HasKey("CountJobDetailId");
|
|
|
|
b1.ToTable("JobCountJobDetail");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("CountJobDetailId");
|
|
});
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 =>
|
|
{
|
|
b1.Property<Guid>("CountJobDetailId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<string>("Desc1")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.Property<string>("Desc2")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.Property<Guid>("Id")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<string>("Name")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("CountJobDetailId");
|
|
|
|
b1.ToTable("JobCountJobDetail");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("CountJobDetailId");
|
|
});
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 =>
|
|
{
|
|
b1.Property<Guid>("CountJobDetailId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<decimal>("PackQty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b1.Property<string>("PackUom")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("CountJobDetailId");
|
|
|
|
b1.ToTable("JobCountJobDetail");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("CountJobDetailId");
|
|
});
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "InventoryQty", b1 =>
|
|
{
|
|
b1.Property<Guid>("CountJobDetailId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<decimal>("Qty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b1.Property<string>("Uom")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("CountJobDetailId");
|
|
|
|
b1.ToTable("JobCountJobDetail");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("CountJobDetailId");
|
|
});
|
|
|
|
b.Navigation("Batch");
|
|
|
|
b.Navigation("CountQty");
|
|
|
|
b.Navigation("InventoryQty");
|
|
|
|
b.Navigation("Item");
|
|
|
|
b.Navigation("StdPack");
|
|
});
|
|
|
|
modelBuilder.Entity("Win_in.Sfs.Wms.Job.Domain.DeliverJobDetail", b =>
|
|
{
|
|
b.HasOne("Win_in.Sfs.Wms.Job.Domain.DeliverJob", null)
|
|
.WithMany("Details")
|
|
.HasForeignKey("MasterID")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "HandledBatch", b1 =>
|
|
{
|
|
b1.Property<Guid>("DeliverJobDetailId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<DateTime>("ProduceDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b1.Property<string>("SupplierBatch")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("DeliverJobDetailId");
|
|
|
|
b1.ToTable("JobDeliverJobDetail");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("DeliverJobDetailId");
|
|
});
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "RecommendBatch", b1 =>
|
|
{
|
|
b1.Property<Guid>("DeliverJobDetailId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<DateTime>("ProduceDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b1.Property<string>("SupplierBatch")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("DeliverJobDetailId");
|
|
|
|
b1.ToTable("JobDeliverJobDetail");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("DeliverJobDetailId");
|
|
});
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 =>
|
|
{
|
|
b1.Property<Guid>("DeliverJobDetailId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<string>("Desc1")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.Property<string>("Desc2")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.Property<Guid>("Id")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<string>("Name")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("DeliverJobDetailId");
|
|
|
|
b1.ToTable("JobDeliverJobDetail");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("DeliverJobDetailId");
|
|
});
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 =>
|
|
{
|
|
b1.Property<Guid>("DeliverJobDetailId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<decimal>("PackQty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b1.Property<string>("PackUom")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("DeliverJobDetailId");
|
|
|
|
b1.ToTable("JobDeliverJobDetail");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("DeliverJobDetailId");
|
|
});
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "HandledQty", b1 =>
|
|
{
|
|
b1.Property<Guid>("DeliverJobDetailId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<decimal>("Qty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b1.Property<string>("Uom")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("DeliverJobDetailId");
|
|
|
|
b1.ToTable("JobDeliverJobDetail");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("DeliverJobDetailId");
|
|
});
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "RecommendQty", b1 =>
|
|
{
|
|
b1.Property<Guid>("DeliverJobDetailId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<decimal>("Qty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b1.Property<string>("Uom")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("DeliverJobDetailId");
|
|
|
|
b1.ToTable("JobDeliverJobDetail");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("DeliverJobDetailId");
|
|
});
|
|
|
|
b.Navigation("HandledBatch");
|
|
|
|
b.Navigation("HandledQty");
|
|
|
|
b.Navigation("Item");
|
|
|
|
b.Navigation("RecommendBatch");
|
|
|
|
b.Navigation("RecommendQty");
|
|
|
|
b.Navigation("StdPack");
|
|
});
|
|
|
|
modelBuilder.Entity("Win_in.Sfs.Wms.Job.Domain.InspectJobDetail", b =>
|
|
{
|
|
b.HasOne("Win_in.Sfs.Wms.Job.Domain.InspectJob", null)
|
|
.WithMany("Details")
|
|
.HasForeignKey("MasterID")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "HandledBatch", b1 =>
|
|
{
|
|
b1.Property<Guid>("InspectJobDetailId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<DateTime>("ProduceDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b1.Property<string>("SupplierBatch")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("InspectJobDetailId");
|
|
|
|
b1.ToTable("JobInspectJobDetail");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("InspectJobDetailId");
|
|
});
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "RecommendBatch", b1 =>
|
|
{
|
|
b1.Property<Guid>("InspectJobDetailId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<DateTime>("ProduceDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b1.Property<string>("SupplierBatch")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("InspectJobDetailId");
|
|
|
|
b1.ToTable("JobInspectJobDetail");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("InspectJobDetailId");
|
|
});
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 =>
|
|
{
|
|
b1.Property<Guid>("InspectJobDetailId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<string>("Desc1")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.Property<string>("Desc2")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.Property<Guid>("Id")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<string>("Name")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("InspectJobDetailId");
|
|
|
|
b1.ToTable("JobInspectJobDetail");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("InspectJobDetailId");
|
|
});
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 =>
|
|
{
|
|
b1.Property<Guid>("InspectJobDetailId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<decimal>("PackQty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b1.Property<string>("PackUom")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("InspectJobDetailId");
|
|
|
|
b1.ToTable("JobInspectJobDetail");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("InspectJobDetailId");
|
|
});
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.Person", "InspectUser", b1 =>
|
|
{
|
|
b1.Property<Guid>("InspectJobDetailId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<string>("Email")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.Property<string>("Name")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.Property<string>("Phone")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("InspectJobDetailId");
|
|
|
|
b1.ToTable("JobInspectJobDetail");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("InspectJobDetailId");
|
|
});
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "HandledQty", b1 =>
|
|
{
|
|
b1.Property<Guid>("InspectJobDetailId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<decimal>("Qty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b1.Property<string>("Uom")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("InspectJobDetailId");
|
|
|
|
b1.ToTable("JobInspectJobDetail");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("InspectJobDetailId");
|
|
});
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "ReceiveQty", b1 =>
|
|
{
|
|
b1.Property<Guid>("InspectJobDetailId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<decimal>("Qty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b1.Property<string>("Uom")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("InspectJobDetailId");
|
|
|
|
b1.ToTable("JobInspectJobDetail");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("InspectJobDetailId");
|
|
});
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "RecommendQty", b1 =>
|
|
{
|
|
b1.Property<Guid>("InspectJobDetailId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<decimal>("Qty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b1.Property<string>("Uom")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("InspectJobDetailId");
|
|
|
|
b1.ToTable("JobInspectJobDetail");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("InspectJobDetailId");
|
|
});
|
|
|
|
b.Navigation("HandledBatch");
|
|
|
|
b.Navigation("HandledQty");
|
|
|
|
b.Navigation("InspectUser");
|
|
|
|
b.Navigation("Item");
|
|
|
|
b.Navigation("ReceiveQty");
|
|
|
|
b.Navigation("RecommendBatch");
|
|
|
|
b.Navigation("RecommendQty");
|
|
|
|
b.Navigation("StdPack");
|
|
});
|
|
|
|
modelBuilder.Entity("Win_in.Sfs.Wms.Job.Domain.InspectJobSummaryDetail", b =>
|
|
{
|
|
b.HasOne("Win_in.Sfs.Wms.Job.Domain.InspectJob", null)
|
|
.WithMany("SummaryDetails")
|
|
.HasForeignKey("MasterID")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "HandledBatch", b1 =>
|
|
{
|
|
b1.Property<Guid>("InspectJobSummaryDetailId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<DateTime>("ProduceDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b1.Property<string>("SupplierBatch")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("InspectJobSummaryDetailId");
|
|
|
|
b1.ToTable("JobInspectJobSummaryDetail");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("InspectJobSummaryDetailId");
|
|
});
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "RecommendBatch", b1 =>
|
|
{
|
|
b1.Property<Guid>("InspectJobSummaryDetailId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<DateTime>("ProduceDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b1.Property<string>("SupplierBatch")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("InspectJobSummaryDetailId");
|
|
|
|
b1.ToTable("JobInspectJobSummaryDetail");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("InspectJobSummaryDetailId");
|
|
});
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 =>
|
|
{
|
|
b1.Property<Guid>("InspectJobSummaryDetailId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<string>("Desc1")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.Property<string>("Desc2")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.Property<Guid>("Id")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<string>("Name")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("InspectJobSummaryDetailId");
|
|
|
|
b1.ToTable("JobInspectJobSummaryDetail");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("InspectJobSummaryDetailId");
|
|
});
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 =>
|
|
{
|
|
b1.Property<Guid>("InspectJobSummaryDetailId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<decimal>("PackQty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b1.Property<string>("PackUom")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("InspectJobSummaryDetailId");
|
|
|
|
b1.ToTable("JobInspectJobSummaryDetail");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("InspectJobSummaryDetailId");
|
|
});
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.Person", "InspectUser", b1 =>
|
|
{
|
|
b1.Property<Guid>("InspectJobSummaryDetailId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<string>("Email")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.Property<string>("Name")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.Property<string>("Phone")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("InspectJobSummaryDetailId");
|
|
|
|
b1.ToTable("JobInspectJobSummaryDetail");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("InspectJobSummaryDetailId");
|
|
});
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "HandledQty", b1 =>
|
|
{
|
|
b1.Property<Guid>("InspectJobSummaryDetailId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<decimal>("Qty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b1.Property<string>("Uom")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("InspectJobSummaryDetailId");
|
|
|
|
b1.ToTable("JobInspectJobSummaryDetail");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("InspectJobSummaryDetailId");
|
|
});
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "ReceiveQty", b1 =>
|
|
{
|
|
b1.Property<Guid>("InspectJobSummaryDetailId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<decimal>("Qty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b1.Property<string>("Uom")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("InspectJobSummaryDetailId");
|
|
|
|
b1.ToTable("JobInspectJobSummaryDetail");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("InspectJobSummaryDetailId");
|
|
});
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "RecommendQty", b1 =>
|
|
{
|
|
b1.Property<Guid>("InspectJobSummaryDetailId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<decimal>("Qty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b1.Property<string>("Uom")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("InspectJobSummaryDetailId");
|
|
|
|
b1.ToTable("JobInspectJobSummaryDetail");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("InspectJobSummaryDetailId");
|
|
});
|
|
|
|
b.Navigation("HandledBatch");
|
|
|
|
b.Navigation("HandledQty");
|
|
|
|
b.Navigation("InspectUser");
|
|
|
|
b.Navigation("Item");
|
|
|
|
b.Navigation("ReceiveQty");
|
|
|
|
b.Navigation("RecommendBatch");
|
|
|
|
b.Navigation("RecommendQty");
|
|
|
|
b.Navigation("StdPack");
|
|
});
|
|
|
|
modelBuilder.Entity("Win_in.Sfs.Wms.Job.Domain.IssueJobDetail", b =>
|
|
{
|
|
b.HasOne("Win_in.Sfs.Wms.Job.Domain.IssueJob", null)
|
|
.WithMany("Details")
|
|
.HasForeignKey("MasterID")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "HandledBatch", b1 =>
|
|
{
|
|
b1.Property<Guid>("IssueJobDetailId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<DateTime>("ProduceDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b1.Property<string>("SupplierBatch")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("IssueJobDetailId");
|
|
|
|
b1.ToTable("JobIssueJobDetail");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("IssueJobDetailId");
|
|
});
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "RecommendBatch", b1 =>
|
|
{
|
|
b1.Property<Guid>("IssueJobDetailId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<DateTime>("ProduceDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b1.Property<string>("SupplierBatch")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("IssueJobDetailId");
|
|
|
|
b1.ToTable("JobIssueJobDetail");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("IssueJobDetailId");
|
|
});
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 =>
|
|
{
|
|
b1.Property<Guid>("IssueJobDetailId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<string>("Desc1")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.Property<string>("Desc2")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.Property<Guid>("Id")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<string>("Name")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("IssueJobDetailId");
|
|
|
|
b1.ToTable("JobIssueJobDetail");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("IssueJobDetailId");
|
|
});
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 =>
|
|
{
|
|
b1.Property<Guid>("IssueJobDetailId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<decimal>("PackQty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b1.Property<string>("PackUom")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("IssueJobDetailId");
|
|
|
|
b1.ToTable("JobIssueJobDetail");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("IssueJobDetailId");
|
|
});
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "HandledQty", b1 =>
|
|
{
|
|
b1.Property<Guid>("IssueJobDetailId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<decimal>("Qty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b1.Property<string>("Uom")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("IssueJobDetailId");
|
|
|
|
b1.ToTable("JobIssueJobDetail");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("IssueJobDetailId");
|
|
});
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "RecommendQty", b1 =>
|
|
{
|
|
b1.Property<Guid>("IssueJobDetailId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<decimal>("Qty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b1.Property<string>("Uom")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("IssueJobDetailId");
|
|
|
|
b1.ToTable("JobIssueJobDetail");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("IssueJobDetailId");
|
|
});
|
|
|
|
b.Navigation("HandledBatch");
|
|
|
|
b.Navigation("HandledQty");
|
|
|
|
b.Navigation("Item");
|
|
|
|
b.Navigation("RecommendBatch");
|
|
|
|
b.Navigation("RecommendQty");
|
|
|
|
b.Navigation("StdPack");
|
|
});
|
|
|
|
modelBuilder.Entity("Win_in.Sfs.Wms.Job.Domain.MesDeliverJobDetail", b =>
|
|
{
|
|
b.HasOne("Win_in.Sfs.Wms.Job.Domain.MesDeliverJob", null)
|
|
.WithMany("Details")
|
|
.HasForeignKey("MasterID")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("Win_in.Sfs.Wms.Job.Domain.ProductReceiveJobDetail", b =>
|
|
{
|
|
b.HasOne("Win_in.Sfs.Wms.Job.Domain.ProductReceiveJob", null)
|
|
.WithMany("Details")
|
|
.HasForeignKey("MasterID")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "HandledBatch", b1 =>
|
|
{
|
|
b1.Property<Guid>("ProductReceiveJobDetailId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<DateTime>("ProduceDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b1.Property<string>("SupplierBatch")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("ProductReceiveJobDetailId");
|
|
|
|
b1.ToTable("JobProductReceiveJobDetail");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("ProductReceiveJobDetailId");
|
|
});
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "RecommendBatch", b1 =>
|
|
{
|
|
b1.Property<Guid>("ProductReceiveJobDetailId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<DateTime>("ProduceDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b1.Property<string>("SupplierBatch")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("ProductReceiveJobDetailId");
|
|
|
|
b1.ToTable("JobProductReceiveJobDetail");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("ProductReceiveJobDetailId");
|
|
});
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 =>
|
|
{
|
|
b1.Property<Guid>("ProductReceiveJobDetailId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<string>("Desc1")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.Property<string>("Desc2")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.Property<Guid>("Id")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<string>("Name")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("ProductReceiveJobDetailId");
|
|
|
|
b1.ToTable("JobProductReceiveJobDetail");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("ProductReceiveJobDetailId");
|
|
});
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 =>
|
|
{
|
|
b1.Property<Guid>("ProductReceiveJobDetailId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<decimal>("PackQty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b1.Property<string>("PackUom")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("ProductReceiveJobDetailId");
|
|
|
|
b1.ToTable("JobProductReceiveJobDetail");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("ProductReceiveJobDetailId");
|
|
});
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "HandledQty", b1 =>
|
|
{
|
|
b1.Property<Guid>("ProductReceiveJobDetailId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<decimal>("Qty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b1.Property<string>("Uom")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("ProductReceiveJobDetailId");
|
|
|
|
b1.ToTable("JobProductReceiveJobDetail");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("ProductReceiveJobDetailId");
|
|
});
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "RecommendQty", b1 =>
|
|
{
|
|
b1.Property<Guid>("ProductReceiveJobDetailId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<decimal>("Qty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b1.Property<string>("Uom")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("ProductReceiveJobDetailId");
|
|
|
|
b1.ToTable("JobProductReceiveJobDetail");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("ProductReceiveJobDetailId");
|
|
});
|
|
|
|
b.Navigation("HandledBatch");
|
|
|
|
b.Navigation("HandledQty");
|
|
|
|
b.Navigation("Item");
|
|
|
|
b.Navigation("RecommendBatch");
|
|
|
|
b.Navigation("RecommendQty");
|
|
|
|
b.Navigation("StdPack");
|
|
});
|
|
|
|
modelBuilder.Entity("Win_in.Sfs.Wms.Job.Domain.PurchaseReceiptJobDetail", b =>
|
|
{
|
|
b.HasOne("Win_in.Sfs.Wms.Job.Domain.PurchaseReceiptJob", null)
|
|
.WithMany("Details")
|
|
.HasForeignKey("MasterID")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "HandledBatch", b1 =>
|
|
{
|
|
b1.Property<Guid>("PurchaseReceiptJobDetailId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<DateTime>("ProduceDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b1.Property<string>("SupplierBatch")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("PurchaseReceiptJobDetailId");
|
|
|
|
b1.ToTable("JobPurchaseReceiptJobDetail");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("PurchaseReceiptJobDetailId");
|
|
});
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "RecommendBatch", b1 =>
|
|
{
|
|
b1.Property<Guid>("PurchaseReceiptJobDetailId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<DateTime>("ProduceDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b1.Property<string>("SupplierBatch")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("PurchaseReceiptJobDetailId");
|
|
|
|
b1.ToTable("JobPurchaseReceiptJobDetail");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("PurchaseReceiptJobDetailId");
|
|
});
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 =>
|
|
{
|
|
b1.Property<Guid>("PurchaseReceiptJobDetailId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<string>("Desc1")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.Property<string>("Desc2")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.Property<Guid>("Id")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<string>("Name")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("PurchaseReceiptJobDetailId");
|
|
|
|
b1.ToTable("JobPurchaseReceiptJobDetail");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("PurchaseReceiptJobDetailId");
|
|
});
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 =>
|
|
{
|
|
b1.Property<Guid>("PurchaseReceiptJobDetailId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<decimal>("PackQty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b1.Property<string>("PackUom")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("PurchaseReceiptJobDetailId");
|
|
|
|
b1.ToTable("JobPurchaseReceiptJobDetail");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("PurchaseReceiptJobDetailId");
|
|
});
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "HandledQty", b1 =>
|
|
{
|
|
b1.Property<Guid>("PurchaseReceiptJobDetailId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<decimal>("Qty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b1.Property<string>("Uom")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("PurchaseReceiptJobDetailId");
|
|
|
|
b1.ToTable("JobPurchaseReceiptJobDetail");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("PurchaseReceiptJobDetailId");
|
|
});
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "RecommendQty", b1 =>
|
|
{
|
|
b1.Property<Guid>("PurchaseReceiptJobDetailId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<decimal>("Qty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b1.Property<string>("Uom")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("PurchaseReceiptJobDetailId");
|
|
|
|
b1.ToTable("JobPurchaseReceiptJobDetail");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("PurchaseReceiptJobDetailId");
|
|
});
|
|
|
|
b.Navigation("HandledBatch");
|
|
|
|
b.Navigation("HandledQty");
|
|
|
|
b.Navigation("Item");
|
|
|
|
b.Navigation("RecommendBatch");
|
|
|
|
b.Navigation("RecommendQty");
|
|
|
|
b.Navigation("StdPack");
|
|
});
|
|
|
|
modelBuilder.Entity("Win_in.Sfs.Wms.Job.Domain.PurchaseReturnJobDetail", b =>
|
|
{
|
|
b.HasOne("Win_in.Sfs.Wms.Job.Domain.PurchaseReturnJob", null)
|
|
.WithMany("Details")
|
|
.HasForeignKey("MasterID")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "HandledBatch", b1 =>
|
|
{
|
|
b1.Property<Guid>("PurchaseReturnJobDetailId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<DateTime>("ProduceDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b1.Property<string>("SupplierBatch")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("PurchaseReturnJobDetailId");
|
|
|
|
b1.ToTable("JobPurchaseReturnJobDetail");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("PurchaseReturnJobDetailId");
|
|
});
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "RecommendBatch", b1 =>
|
|
{
|
|
b1.Property<Guid>("PurchaseReturnJobDetailId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<DateTime>("ProduceDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b1.Property<string>("SupplierBatch")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("PurchaseReturnJobDetailId");
|
|
|
|
b1.ToTable("JobPurchaseReturnJobDetail");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("PurchaseReturnJobDetailId");
|
|
});
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 =>
|
|
{
|
|
b1.Property<Guid>("PurchaseReturnJobDetailId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<string>("Desc1")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.Property<string>("Desc2")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.Property<Guid>("Id")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<string>("Name")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("PurchaseReturnJobDetailId");
|
|
|
|
b1.ToTable("JobPurchaseReturnJobDetail");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("PurchaseReturnJobDetailId");
|
|
});
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 =>
|
|
{
|
|
b1.Property<Guid>("PurchaseReturnJobDetailId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<decimal>("PackQty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b1.Property<string>("PackUom")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("PurchaseReturnJobDetailId");
|
|
|
|
b1.ToTable("JobPurchaseReturnJobDetail");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("PurchaseReturnJobDetailId");
|
|
});
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "HandledQty", b1 =>
|
|
{
|
|
b1.Property<Guid>("PurchaseReturnJobDetailId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<decimal>("Qty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b1.Property<string>("Uom")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("PurchaseReturnJobDetailId");
|
|
|
|
b1.ToTable("JobPurchaseReturnJobDetail");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("PurchaseReturnJobDetailId");
|
|
});
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "RecommendQty", b1 =>
|
|
{
|
|
b1.Property<Guid>("PurchaseReturnJobDetailId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<decimal>("Qty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b1.Property<string>("Uom")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("PurchaseReturnJobDetailId");
|
|
|
|
b1.ToTable("JobPurchaseReturnJobDetail");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("PurchaseReturnJobDetailId");
|
|
});
|
|
|
|
b.Navigation("HandledBatch");
|
|
|
|
b.Navigation("HandledQty");
|
|
|
|
b.Navigation("Item");
|
|
|
|
b.Navigation("RecommendBatch");
|
|
|
|
b.Navigation("RecommendQty");
|
|
|
|
b.Navigation("StdPack");
|
|
});
|
|
|
|
modelBuilder.Entity("Win_in.Sfs.Wms.Job.Domain.PutawayJobDetail", b =>
|
|
{
|
|
b.HasOne("Win_in.Sfs.Wms.Job.Domain.PutawayJob", null)
|
|
.WithMany("Details")
|
|
.HasForeignKey("MasterID")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "HandledBatch", b1 =>
|
|
{
|
|
b1.Property<Guid>("PutawayJobDetailId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<DateTime>("ProduceDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b1.Property<string>("SupplierBatch")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("PutawayJobDetailId");
|
|
|
|
b1.ToTable("JobPutawayJobDetail");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("PutawayJobDetailId");
|
|
});
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "RecommendBatch", b1 =>
|
|
{
|
|
b1.Property<Guid>("PutawayJobDetailId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<DateTime>("ProduceDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b1.Property<string>("SupplierBatch")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("PutawayJobDetailId");
|
|
|
|
b1.ToTable("JobPutawayJobDetail");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("PutawayJobDetailId");
|
|
});
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 =>
|
|
{
|
|
b1.Property<Guid>("PutawayJobDetailId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<string>("Desc1")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.Property<string>("Desc2")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.Property<Guid>("Id")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<string>("Name")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("PutawayJobDetailId");
|
|
|
|
b1.ToTable("JobPutawayJobDetail");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("PutawayJobDetailId");
|
|
});
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 =>
|
|
{
|
|
b1.Property<Guid>("PutawayJobDetailId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<decimal>("PackQty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b1.Property<string>("PackUom")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("PutawayJobDetailId");
|
|
|
|
b1.ToTable("JobPutawayJobDetail");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("PutawayJobDetailId");
|
|
});
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "HandledQty", b1 =>
|
|
{
|
|
b1.Property<Guid>("PutawayJobDetailId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<decimal>("Qty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b1.Property<string>("Uom")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("PutawayJobDetailId");
|
|
|
|
b1.ToTable("JobPutawayJobDetail");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("PutawayJobDetailId");
|
|
});
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "RecommendQty", b1 =>
|
|
{
|
|
b1.Property<Guid>("PutawayJobDetailId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<decimal>("Qty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b1.Property<string>("Uom")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("PutawayJobDetailId");
|
|
|
|
b1.ToTable("JobPutawayJobDetail");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("PutawayJobDetailId");
|
|
});
|
|
|
|
b.Navigation("HandledBatch");
|
|
|
|
b.Navigation("HandledQty");
|
|
|
|
b.Navigation("Item");
|
|
|
|
b.Navigation("RecommendBatch");
|
|
|
|
b.Navigation("RecommendQty");
|
|
|
|
b.Navigation("StdPack");
|
|
});
|
|
|
|
modelBuilder.Entity("Win_in.Sfs.Wms.Job.Domain.CheckJob", b =>
|
|
{
|
|
b.Navigation("Details");
|
|
});
|
|
|
|
modelBuilder.Entity("Win_in.Sfs.Wms.Job.Domain.CountJob", b =>
|
|
{
|
|
b.Navigation("Details");
|
|
});
|
|
|
|
modelBuilder.Entity("Win_in.Sfs.Wms.Job.Domain.DeliverJob", b =>
|
|
{
|
|
b.Navigation("Details");
|
|
});
|
|
|
|
modelBuilder.Entity("Win_in.Sfs.Wms.Job.Domain.InspectJob", b =>
|
|
{
|
|
b.Navigation("Details");
|
|
|
|
b.Navigation("SummaryDetails");
|
|
});
|
|
|
|
modelBuilder.Entity("Win_in.Sfs.Wms.Job.Domain.IssueJob", b =>
|
|
{
|
|
b.Navigation("Details");
|
|
});
|
|
|
|
modelBuilder.Entity("Win_in.Sfs.Wms.Job.Domain.MesDeliverJob", b =>
|
|
{
|
|
b.Navigation("Details");
|
|
});
|
|
|
|
modelBuilder.Entity("Win_in.Sfs.Wms.Job.Domain.ProductReceiveJob", b =>
|
|
{
|
|
b.Navigation("Details");
|
|
});
|
|
|
|
modelBuilder.Entity("Win_in.Sfs.Wms.Job.Domain.PurchaseReceiptJob", b =>
|
|
{
|
|
b.Navigation("Details");
|
|
});
|
|
|
|
modelBuilder.Entity("Win_in.Sfs.Wms.Job.Domain.PurchaseReturnJob", b =>
|
|
{
|
|
b.Navigation("Details");
|
|
});
|
|
|
|
modelBuilder.Entity("Win_in.Sfs.Wms.Job.Domain.PutawayJob", b =>
|
|
{
|
|
b.Navigation("Details");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|
|
|