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.
991 lines
37 KiB
991 lines
37 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.Label.EntityFrameworkCore;
|
|
|
|
namespace Win_in.Sfs.Label.Migrations
|
|
{
|
|
[DbContext(typeof(LabelHttpApiHostMigrationsDbContext))]
|
|
[Migration("20220624030502_CountLabel")]
|
|
partial class CountLabel
|
|
{
|
|
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.Label.Domain.CountLabel", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("Company")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)")
|
|
.HasColumnName("Company");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<int>("PalletlNumber")
|
|
.HasMaxLength(4096)
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasMaxLength(4096)
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("Remark");
|
|
|
|
b.Property<string>("RuleCode")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<Guid?>("TenantId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("TenantId");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("Company", "RuleCode", "PalletlNumber")
|
|
.IsUnique();
|
|
|
|
b.ToTable("LabelCountLabel");
|
|
});
|
|
|
|
modelBuilder.Entity("Win_in.Sfs.Label.Domain.PalletCode", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("Company")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)")
|
|
.HasColumnName("Company");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<int>("PalletlNumber")
|
|
.HasMaxLength(4096)
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasMaxLength(4096)
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("Remark");
|
|
|
|
b.Property<string>("RuleCode")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<Guid?>("TenantId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("TenantId");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("Company", "RuleCode", "PalletlNumber")
|
|
.IsUnique();
|
|
|
|
b.ToTable("LabelPalletCode");
|
|
});
|
|
|
|
modelBuilder.Entity("Win_in.Sfs.Label.Domain.PalletLabel", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("Code")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("Company")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)")
|
|
.HasColumnName("Company");
|
|
|
|
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>("HasItem")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<int>("LabelStatus")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<Guid>("ParentId")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasMaxLength(4096)
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("Remark");
|
|
|
|
b.Property<Guid?>("TenantId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("TenantId");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("Code", "Company")
|
|
.IsUnique();
|
|
|
|
b.ToTable("LabelPalletLabel");
|
|
});
|
|
|
|
modelBuilder.Entity("Win_in.Sfs.Label.Domain.ProductionLabel", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("Code")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("Company")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)")
|
|
.HasColumnName("Company");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<string>("ContainerCode")
|
|
.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>("DocumentCode")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<string>("FullBarcodeString")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("ItemCode")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<int>("LabelStatus")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("LabelType")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("Lot")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("RecommendLocationCode")
|
|
.IsRequired()
|
|
.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.HasKey("Id");
|
|
|
|
b.HasIndex("Code", "Company")
|
|
.IsUnique();
|
|
|
|
b.ToTable("LabelProductionLabel");
|
|
});
|
|
|
|
modelBuilder.Entity("Win_in.Sfs.Label.Domain.PurchaseLabel", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("Code")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("Company")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)")
|
|
.HasColumnName("Company");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<string>("ContainerCode")
|
|
.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>("DocumentCode")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<string>("FullBarcodeString")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("ItemCode")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<int>("LabelStatus")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("LabelType")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("Lot")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("RecommendLocationCode")
|
|
.IsRequired()
|
|
.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.HasKey("Id");
|
|
|
|
b.HasIndex("Code", "Company")
|
|
.IsUnique();
|
|
|
|
b.ToTable("LabelPurchaseLabel");
|
|
});
|
|
|
|
modelBuilder.Entity("Win_in.Sfs.Label.Domain.SaleLabel", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("Code")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("Company")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)")
|
|
.HasColumnName("Company");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<string>("ContainerCode")
|
|
.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>("DocumentCode")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<string>("FullBarcodeString")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("ItemCode")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<int>("LabelStatus")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("LabelType")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("Lot")
|
|
.IsRequired()
|
|
.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.HasKey("Id");
|
|
|
|
b.HasIndex("Code", "Company")
|
|
.IsUnique();
|
|
|
|
b.ToTable("LabelSaleLabel");
|
|
});
|
|
|
|
modelBuilder.Entity("Win_in.Sfs.Label.Domain.SerialCode", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("Company")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)")
|
|
.HasColumnName("Company");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasMaxLength(4096)
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("Remark");
|
|
|
|
b.Property<string>("RuleCode")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<int>("SerialNumber")
|
|
.HasMaxLength(4096)
|
|
.HasColumnType("int");
|
|
|
|
b.Property<Guid?>("TenantId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("TenantId");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("Company", "RuleCode", "SerialNumber")
|
|
.IsUnique();
|
|
|
|
b.ToTable("LabelSerialCode");
|
|
});
|
|
|
|
modelBuilder.Entity("Win_in.Sfs.Label.Domain.PalletLabel", b =>
|
|
{
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 =>
|
|
{
|
|
b1.Property<Guid>("PalletLabelId")
|
|
.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("PalletLabelId");
|
|
|
|
b1.ToTable("LabelPalletLabel");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("PalletLabelId");
|
|
});
|
|
|
|
b.Navigation("Item");
|
|
});
|
|
|
|
modelBuilder.Entity("Win_in.Sfs.Label.Domain.ProductionLabel", b =>
|
|
{
|
|
b.OwnsOne("Win_in.Sfs.Label.Domain.Shared.ProductionInfo", "ProductionInfo", b1 =>
|
|
{
|
|
b1.Property<Guid>("ProductionLabelId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<string>("ProductionInfoName")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("ProductionLabelId");
|
|
|
|
b1.ToTable("LabelProductionLabel");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("ProductionLabelId");
|
|
});
|
|
|
|
b.OwnsOne("Win_in.Sfs.Label.Domain.Shared.QualityInfo", "QualityInfo", b1 =>
|
|
{
|
|
b1.Property<Guid>("ProductionLabelId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<string>("QualityInfoName")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("ProductionLabelId");
|
|
|
|
b1.ToTable("LabelProductionLabel");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("ProductionLabelId");
|
|
});
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 =>
|
|
{
|
|
b1.Property<Guid>("ProductionLabelId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<DateTime>("ProduceDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b1.Property<string>("SupplierBatch")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("ProductionLabelId");
|
|
|
|
b1.ToTable("LabelProductionLabel");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("ProductionLabelId");
|
|
});
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 =>
|
|
{
|
|
b1.Property<Guid>("ProductionLabelId")
|
|
.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("ProductionLabelId");
|
|
|
|
b1.ToTable("LabelProductionLabel");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("ProductionLabelId");
|
|
});
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 =>
|
|
{
|
|
b1.Property<Guid>("ProductionLabelId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<decimal>("PackQty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b1.Property<string>("PackUom")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("ProductionLabelId");
|
|
|
|
b1.ToTable("LabelProductionLabel");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("ProductionLabelId");
|
|
});
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 =>
|
|
{
|
|
b1.Property<Guid>("ProductionLabelId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<decimal>("Qty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b1.Property<string>("Uom")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("ProductionLabelId");
|
|
|
|
b1.ToTable("LabelProductionLabel");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("ProductionLabelId");
|
|
});
|
|
|
|
b.Navigation("Batch");
|
|
|
|
b.Navigation("Item");
|
|
|
|
b.Navigation("ProductionInfo");
|
|
|
|
b.Navigation("Qty");
|
|
|
|
b.Navigation("QualityInfo");
|
|
|
|
b.Navigation("StdPack");
|
|
});
|
|
|
|
modelBuilder.Entity("Win_in.Sfs.Label.Domain.PurchaseLabel", b =>
|
|
{
|
|
b.OwnsOne("Win_in.Sfs.Label.Domain.Shared.PurchaseInfo", "PurchaseInfo", b1 =>
|
|
{
|
|
b1.Property<Guid>("PurchaseLabelId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<string>("PurchaseInfoName")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("PurchaseLabelId");
|
|
|
|
b1.ToTable("LabelPurchaseLabel");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("PurchaseLabelId");
|
|
});
|
|
|
|
b.OwnsOne("Win_in.Sfs.Label.Domain.Shared.QualityInfo", "QualityInfo", b1 =>
|
|
{
|
|
b1.Property<Guid>("PurchaseLabelId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<string>("QualityInfoName")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("PurchaseLabelId");
|
|
|
|
b1.ToTable("LabelPurchaseLabel");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("PurchaseLabelId");
|
|
});
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 =>
|
|
{
|
|
b1.Property<Guid>("PurchaseLabelId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<DateTime>("ProduceDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b1.Property<string>("SupplierBatch")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("PurchaseLabelId");
|
|
|
|
b1.ToTable("LabelPurchaseLabel");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("PurchaseLabelId");
|
|
});
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 =>
|
|
{
|
|
b1.Property<Guid>("PurchaseLabelId")
|
|
.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("PurchaseLabelId");
|
|
|
|
b1.ToTable("LabelPurchaseLabel");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("PurchaseLabelId");
|
|
});
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 =>
|
|
{
|
|
b1.Property<Guid>("PurchaseLabelId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<decimal>("PackQty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b1.Property<string>("PackUom")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("PurchaseLabelId");
|
|
|
|
b1.ToTable("LabelPurchaseLabel");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("PurchaseLabelId");
|
|
});
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 =>
|
|
{
|
|
b1.Property<Guid>("PurchaseLabelId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<decimal>("Qty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b1.Property<string>("Uom")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("PurchaseLabelId");
|
|
|
|
b1.ToTable("LabelPurchaseLabel");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("PurchaseLabelId");
|
|
});
|
|
|
|
b.Navigation("Batch");
|
|
|
|
b.Navigation("Item");
|
|
|
|
b.Navigation("PurchaseInfo");
|
|
|
|
b.Navigation("Qty");
|
|
|
|
b.Navigation("QualityInfo");
|
|
|
|
b.Navigation("StdPack");
|
|
});
|
|
|
|
modelBuilder.Entity("Win_in.Sfs.Label.Domain.SaleLabel", b =>
|
|
{
|
|
b.OwnsOne("Win_in.Sfs.Label.Domain.Shared.QualityInfo", "QualityInfo", b1 =>
|
|
{
|
|
b1.Property<Guid>("SaleLabelId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<string>("QualityInfoName")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("SaleLabelId");
|
|
|
|
b1.ToTable("LabelSaleLabel");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("SaleLabelId");
|
|
});
|
|
|
|
b.OwnsOne("Win_in.Sfs.Label.Domain.Shared.SaleInfo", "SaleInfo", b1 =>
|
|
{
|
|
b1.Property<Guid>("SaleLabelId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<string>("SaleInfoName")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("SaleLabelId");
|
|
|
|
b1.ToTable("LabelSaleLabel");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("SaleLabelId");
|
|
});
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 =>
|
|
{
|
|
b1.Property<Guid>("SaleLabelId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<DateTime>("ProduceDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b1.Property<string>("SupplierBatch")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("SaleLabelId");
|
|
|
|
b1.ToTable("LabelSaleLabel");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("SaleLabelId");
|
|
});
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 =>
|
|
{
|
|
b1.Property<Guid>("SaleLabelId")
|
|
.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("SaleLabelId");
|
|
|
|
b1.ToTable("LabelSaleLabel");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("SaleLabelId");
|
|
});
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 =>
|
|
{
|
|
b1.Property<Guid>("SaleLabelId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<decimal>("PackQty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b1.Property<string>("PackUom")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("SaleLabelId");
|
|
|
|
b1.ToTable("LabelSaleLabel");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("SaleLabelId");
|
|
});
|
|
|
|
b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 =>
|
|
{
|
|
b1.Property<Guid>("SaleLabelId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<decimal>("Qty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b1.Property<string>("Uom")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b1.HasKey("SaleLabelId");
|
|
|
|
b1.ToTable("LabelSaleLabel");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("SaleLabelId");
|
|
});
|
|
|
|
b.Navigation("Batch");
|
|
|
|
b.Navigation("Item");
|
|
|
|
b.Navigation("Qty");
|
|
|
|
b.Navigation("QualityInfo");
|
|
|
|
b.Navigation("SaleInfo");
|
|
|
|
b.Navigation("StdPack");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|
|
|