2750 lines
100 KiB
C#
2750 lines
100 KiB
C#
// <auto-generated />
|
|
using System;
|
|
using HHWMS.Web;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
|
|
#nullable disable
|
|
|
|
namespace HHWMS.Web.Migrations
|
|
{
|
|
[DbContext(typeof(DataContext))]
|
|
[Migration("20241224094645_update task model")]
|
|
partial class updatetaskmodel
|
|
{
|
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder
|
|
.HasAnnotation("ProductVersion", "6.0.11")
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 64);
|
|
|
|
modelBuilder.Entity("HHWMS.Web.Models.Container", b =>
|
|
{
|
|
b.Property<int>("ID")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Code")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("容器编码");
|
|
|
|
b.Property<string>("CreateBy")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("");
|
|
|
|
b.Property<DateTime?>("CreateTime")
|
|
.HasColumnType("datetime(6)")
|
|
.HasComment("");
|
|
|
|
b.Property<decimal?>("Height")
|
|
.HasColumnType("decimal(8,3)")
|
|
.HasComment("高");
|
|
|
|
b.Property<short>("IsLock")
|
|
.HasColumnType("smallint")
|
|
.HasComment("锁类型");
|
|
|
|
b.Property<decimal?>("Length")
|
|
.HasColumnType("decimal(8,3)")
|
|
.HasComment("长");
|
|
|
|
b.Property<string>("LocationCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("库位编码");
|
|
|
|
b.Property<string>("Status")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("容器状态");
|
|
|
|
b.Property<string>("Type")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("容器类型");
|
|
|
|
b.Property<string>("UpdateBy")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("");
|
|
|
|
b.Property<DateTime?>("UpdateTime")
|
|
.HasColumnType("datetime(6)")
|
|
.HasComment("");
|
|
|
|
b.Property<decimal?>("Width")
|
|
.HasColumnType("decimal(8,3)")
|
|
.HasComment("宽");
|
|
|
|
b.HasKey("ID");
|
|
|
|
b.ToTable("Container");
|
|
});
|
|
|
|
modelBuilder.Entity("HHWMS.Web.Models.Inventory", b =>
|
|
{
|
|
b.Property<int>("ID")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Batch")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("批次");
|
|
|
|
b.Property<string>("CompanyCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("公司");
|
|
|
|
b.Property<string>("ContainerCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("容器编码");
|
|
|
|
b.Property<string>("CreateBy")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("");
|
|
|
|
b.Property<DateTime?>("CreateTime")
|
|
.HasColumnType("datetime(6)")
|
|
.HasComment("");
|
|
|
|
b.Property<DateTime?>("ExpirationDate")
|
|
.HasColumnType("datetime(6)")
|
|
.HasComment("失效日期");
|
|
|
|
b.Property<int>("Flag")
|
|
.HasColumnType("int")
|
|
.HasComment("格数");
|
|
|
|
b.Property<string>("LocationCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("库位编码");
|
|
|
|
b.Property<string>("Lot")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("料号");
|
|
|
|
b.Property<DateTime?>("ManufactureDate")
|
|
.HasColumnType("datetime(6)")
|
|
.HasComment("生产日期");
|
|
|
|
b.Property<string>("MaterialCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("物料编码");
|
|
|
|
b.Property<string>("MaterialName")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("物料名称");
|
|
|
|
b.Property<string>("MaterialSpec")
|
|
.HasColumnType("longtext")
|
|
.HasComment("物料规格");
|
|
|
|
b.Property<string>("MaterialType")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("物料类型");
|
|
|
|
b.Property<string>("MaterialUnit")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("单位");
|
|
|
|
b.Property<decimal?>("Qty")
|
|
.HasColumnType("decimal(12,4)")
|
|
.HasComment("数量");
|
|
|
|
b.Property<string>("ReceiptCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("入库单号");
|
|
|
|
b.Property<int?>("ReceiptDetailId")
|
|
.HasColumnType("int")
|
|
.HasComment("明细ID");
|
|
|
|
b.Property<string>("SourceCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("上游单号");
|
|
|
|
b.Property<string>("Status")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("物料状态");
|
|
|
|
b.Property<string>("SupplierCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("供应商");
|
|
|
|
b.Property<decimal?>("TaskQty")
|
|
.HasColumnType("decimal(12,4)")
|
|
.HasComment("任务数量");
|
|
|
|
b.Property<string>("TaskStatus")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("任务状态");
|
|
|
|
b.Property<string>("UpdateBy")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("");
|
|
|
|
b.Property<DateTime?>("UpdateTime")
|
|
.HasColumnType("datetime(6)")
|
|
.HasComment("");
|
|
|
|
b.Property<string>("ZoneCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("库区");
|
|
|
|
b.HasKey("ID");
|
|
|
|
b.ToTable("Inventory");
|
|
});
|
|
|
|
modelBuilder.Entity("HHWMS.Web.Models.InventoryTransaction", b =>
|
|
{
|
|
b.Property<int>("ID")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Batch")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("批次");
|
|
|
|
b.Property<string>("BillCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("单据编号");
|
|
|
|
b.Property<int?>("BillDetailId")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("int")
|
|
.HasComment("明细ID");
|
|
|
|
b.Property<string>("BillType")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("单据类型");
|
|
|
|
b.Property<string>("CompanyCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("公司");
|
|
|
|
b.Property<string>("ContainerCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("容器编码");
|
|
|
|
b.Property<string>("CreateBy")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("");
|
|
|
|
b.Property<DateTime?>("CreateTime")
|
|
.HasColumnType("datetime(6)")
|
|
.HasComment("");
|
|
|
|
b.Property<DateTime?>("ExpirationDate")
|
|
.HasColumnType("datetime(6)")
|
|
.HasComment("失效日期");
|
|
|
|
b.Property<string>("LocationCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("库位编码");
|
|
|
|
b.Property<string>("Lot")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("料号");
|
|
|
|
b.Property<DateTime?>("ManufactureDate")
|
|
.HasColumnType("datetime(6)")
|
|
.HasComment("生产日期");
|
|
|
|
b.Property<string>("MaterialCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("物料编码");
|
|
|
|
b.Property<string>("MaterialName")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("物料名称");
|
|
|
|
b.Property<string>("MaterialSpec")
|
|
.HasColumnType("longtext")
|
|
.HasComment("物料规格");
|
|
|
|
b.Property<string>("MaterialType")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("物料类型");
|
|
|
|
b.Property<string>("MaterialUnit")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("单位");
|
|
|
|
b.Property<decimal?>("Qty")
|
|
.HasColumnType("decimal(12,4)")
|
|
.HasComment("数量");
|
|
|
|
b.Property<string>("SourceCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("上游单号");
|
|
|
|
b.Property<string>("Status")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("物料状态");
|
|
|
|
b.Property<string>("SupplierCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("供应商");
|
|
|
|
b.Property<string>("Type")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("交易类型");
|
|
|
|
b.Property<string>("UpdateBy")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("");
|
|
|
|
b.Property<DateTime?>("UpdateTime")
|
|
.HasColumnType("datetime(6)")
|
|
.HasComment("");
|
|
|
|
b.Property<string>("ZoneCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("库区");
|
|
|
|
b.HasKey("ID");
|
|
|
|
b.ToTable("InventoryTransaction");
|
|
});
|
|
|
|
modelBuilder.Entity("HHWMS.Web.Models.Location", b =>
|
|
{
|
|
b.Property<int>("ID")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Code")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("库位编码");
|
|
|
|
b.Property<string>("ContainerCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("容器编码");
|
|
|
|
b.Property<string>("ContiguousCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("相邻库位");
|
|
|
|
b.Property<string>("CreateBy")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("");
|
|
|
|
b.Property<DateTime?>("CreateTime")
|
|
.HasColumnType("datetime(6)")
|
|
.HasComment("");
|
|
|
|
b.Property<decimal?>("Height")
|
|
.HasColumnType("decimal(8,3)")
|
|
.HasComment("高");
|
|
|
|
b.Property<bool>("IsStop")
|
|
.HasColumnType("tinyint(1)")
|
|
.HasComment("是否禁用");
|
|
|
|
b.Property<short>("Layer")
|
|
.HasColumnType("smallint")
|
|
.HasComment("层");
|
|
|
|
b.Property<decimal?>("Length")
|
|
.HasColumnType("decimal(8,3)")
|
|
.HasComment("长");
|
|
|
|
b.Property<short>("Line")
|
|
.HasColumnType("smallint")
|
|
.HasComment("列");
|
|
|
|
b.Property<short?>("RoadWay")
|
|
.IsRequired()
|
|
.HasColumnType("smallint")
|
|
.HasComment("巷道");
|
|
|
|
b.Property<short>("Row")
|
|
.HasColumnType("smallint")
|
|
.HasComment("行");
|
|
|
|
b.Property<short?>("RowFlag")
|
|
.HasColumnType("smallint")
|
|
.HasComment("内外标识,0:外仓位,1:里仓位");
|
|
|
|
b.Property<string>("Status")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("库位状态");
|
|
|
|
b.Property<string>("Type")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("库位类型");
|
|
|
|
b.Property<string>("UpdateBy")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("");
|
|
|
|
b.Property<DateTime?>("UpdateTime")
|
|
.HasColumnType("datetime(6)")
|
|
.HasComment("");
|
|
|
|
b.Property<Guid?>("Version")
|
|
.HasColumnType("char(36)");
|
|
|
|
b.Property<decimal?>("Width")
|
|
.HasColumnType("decimal(8,3)")
|
|
.HasComment("宽");
|
|
|
|
b.Property<string>("ZoneCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("库区");
|
|
|
|
b.HasKey("ID");
|
|
|
|
b.ToTable("Location");
|
|
});
|
|
|
|
modelBuilder.Entity("HHWMS.Web.Models.Material", b =>
|
|
{
|
|
b.Property<int>("ID")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Batch")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("批次");
|
|
|
|
b.Property<string>("CompanyCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("公司");
|
|
|
|
b.Property<string>("CreateBy")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("");
|
|
|
|
b.Property<DateTime?>("CreateTime")
|
|
.HasColumnType("datetime(6)")
|
|
.HasComment("");
|
|
|
|
b.Property<string>("Lot")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("料号");
|
|
|
|
b.Property<string>("MaterialCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("物料编码");
|
|
|
|
b.Property<string>("MaterialName")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("物料名称");
|
|
|
|
b.Property<string>("MaterialSpec")
|
|
.HasColumnType("longtext")
|
|
.HasComment("物料规格");
|
|
|
|
b.Property<string>("MaterialType")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("物料类型");
|
|
|
|
b.Property<string>("MaterialUnit")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("单位");
|
|
|
|
b.Property<string>("QRCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("二维码");
|
|
|
|
b.Property<decimal?>("Qty")
|
|
.HasColumnType("decimal(12,4)")
|
|
.HasComment("数量");
|
|
|
|
b.Property<string>("SourceCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("上游单号");
|
|
|
|
b.Property<string>("SupplierCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("供应商");
|
|
|
|
b.Property<string>("UniqueCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("唯一码");
|
|
|
|
b.Property<string>("UpdateBy")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("");
|
|
|
|
b.Property<DateTime?>("UpdateTime")
|
|
.HasColumnType("datetime(6)")
|
|
.HasComment("");
|
|
|
|
b.HasKey("ID");
|
|
|
|
b.ToTable("Material");
|
|
});
|
|
|
|
modelBuilder.Entity("HHWMS.Web.Models.PrintConfig", b =>
|
|
{
|
|
b.Property<int>("ID")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("CreateBy")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("");
|
|
|
|
b.Property<DateTime?>("CreateTime")
|
|
.HasColumnType("datetime(6)")
|
|
.HasComment("");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("名称");
|
|
|
|
b.Property<string>("Template")
|
|
.IsRequired()
|
|
.HasColumnType("longtext")
|
|
.HasComment("模板");
|
|
|
|
b.Property<string>("TestData")
|
|
.IsRequired()
|
|
.HasColumnType("longtext")
|
|
.HasComment("测试数据");
|
|
|
|
b.Property<string>("UpdateBy")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("");
|
|
|
|
b.Property<DateTime?>("UpdateTime")
|
|
.HasColumnType("datetime(6)")
|
|
.HasComment("");
|
|
|
|
b.HasKey("ID");
|
|
|
|
b.ToTable("PrintConfig");
|
|
});
|
|
|
|
modelBuilder.Entity("HHWMS.Web.Models.ReceiptDetail", b =>
|
|
{
|
|
b.Property<int>("ID")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Batch")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("批次");
|
|
|
|
b.Property<string>("CompanyCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("公司");
|
|
|
|
b.Property<decimal?>("CompletedQty")
|
|
.HasColumnType("decimal(12,4)")
|
|
.HasComment("完成数量");
|
|
|
|
b.Property<string>("CreateBy")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("");
|
|
|
|
b.Property<DateTime?>("CreateTime")
|
|
.HasColumnType("datetime(6)")
|
|
.HasComment("");
|
|
|
|
b.Property<DateTime?>("ExpirationDate")
|
|
.HasColumnType("datetime(6)")
|
|
.HasComment("失效日期");
|
|
|
|
b.Property<int>("HeaderId")
|
|
.HasColumnType("int")
|
|
.HasComment("");
|
|
|
|
b.Property<string>("InventoryStatus")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("物料状态");
|
|
|
|
b.Property<string>("Lot")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("料号");
|
|
|
|
b.Property<DateTime?>("ManufactureDate")
|
|
.HasColumnType("datetime(6)")
|
|
.HasComment("生产日期");
|
|
|
|
b.Property<string>("MaterialCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("物料编码");
|
|
|
|
b.Property<string>("MaterialName")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("物料名称");
|
|
|
|
b.Property<string>("MaterialSpec")
|
|
.HasColumnType("longtext")
|
|
.HasComment("物料规格");
|
|
|
|
b.Property<string>("MaterialType")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("物料类型");
|
|
|
|
b.Property<string>("MaterialUnit")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("单位");
|
|
|
|
b.Property<decimal?>("Qty")
|
|
.HasColumnType("decimal(12,4)")
|
|
.HasComment("数量");
|
|
|
|
b.Property<int?>("ReceiptHeaderID")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<short?>("Status")
|
|
.HasColumnType("smallint")
|
|
.HasComment("状态");
|
|
|
|
b.Property<string>("SupplierCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("供应商");
|
|
|
|
b.Property<string>("UpdateBy")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("");
|
|
|
|
b.Property<DateTime?>("UpdateTime")
|
|
.HasColumnType("datetime(6)")
|
|
.HasComment("");
|
|
|
|
b.Property<string>("ZoneCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("库区");
|
|
|
|
b.HasKey("ID");
|
|
|
|
b.HasIndex("ReceiptHeaderID");
|
|
|
|
b.ToTable("ReceiptDetail");
|
|
});
|
|
|
|
modelBuilder.Entity("HHWMS.Web.Models.ReceiptDetailHistory", b =>
|
|
{
|
|
b.Property<int>("ID")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Batch")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("批次");
|
|
|
|
b.Property<string>("CompanyCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("公司");
|
|
|
|
b.Property<decimal?>("CompletedQty")
|
|
.HasColumnType("decimal(12,4)")
|
|
.HasComment("完成数量");
|
|
|
|
b.Property<string>("CreateBy")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("");
|
|
|
|
b.Property<DateTime?>("CreateTime")
|
|
.HasColumnType("datetime(6)")
|
|
.HasComment("");
|
|
|
|
b.Property<DateTime?>("ExpirationDate")
|
|
.HasColumnType("datetime(6)")
|
|
.HasComment("失效日期");
|
|
|
|
b.Property<int>("HeaderId")
|
|
.HasColumnType("int")
|
|
.HasComment("");
|
|
|
|
b.Property<string>("InventoryStatus")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("物料状态");
|
|
|
|
b.Property<string>("Lot")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("料号");
|
|
|
|
b.Property<DateTime?>("ManufactureDate")
|
|
.HasColumnType("datetime(6)")
|
|
.HasComment("生产日期");
|
|
|
|
b.Property<string>("MaterialCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("物料编码");
|
|
|
|
b.Property<string>("MaterialName")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("物料名称");
|
|
|
|
b.Property<string>("MaterialSpec")
|
|
.HasColumnType("longtext")
|
|
.HasComment("物料规格");
|
|
|
|
b.Property<string>("MaterialType")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("物料类型");
|
|
|
|
b.Property<string>("MaterialUnit")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("单位");
|
|
|
|
b.Property<decimal?>("Qty")
|
|
.HasColumnType("decimal(12,4)")
|
|
.HasComment("数量");
|
|
|
|
b.Property<short?>("Status")
|
|
.HasColumnType("smallint")
|
|
.HasComment("状态");
|
|
|
|
b.Property<string>("SupplierCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("供应商");
|
|
|
|
b.Property<string>("UpdateBy")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("");
|
|
|
|
b.Property<DateTime?>("UpdateTime")
|
|
.HasColumnType("datetime(6)")
|
|
.HasComment("");
|
|
|
|
b.Property<string>("ZoneCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("库区");
|
|
|
|
b.HasKey("ID");
|
|
|
|
b.ToTable("ReceiptDetailHistory");
|
|
});
|
|
|
|
modelBuilder.Entity("HHWMS.Web.Models.ReceiptHeader", b =>
|
|
{
|
|
b.Property<int>("ID")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<DateTime?>("AppointmentTime")
|
|
.HasColumnType("datetime(6)")
|
|
.HasComment("预约时间");
|
|
|
|
b.Property<string>("BillType")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("单据类型");
|
|
|
|
b.Property<string>("Code")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("入库单号");
|
|
|
|
b.Property<string>("CompanyCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("公司");
|
|
|
|
b.Property<string>("CreateBy")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("");
|
|
|
|
b.Property<DateTime?>("CreateTime")
|
|
.HasColumnType("datetime(6)")
|
|
.HasComment("");
|
|
|
|
b.Property<short?>("FirstStatus")
|
|
.HasColumnType("smallint")
|
|
.HasComment("首状态");
|
|
|
|
b.Property<short?>("LastStatus")
|
|
.HasColumnType("smallint")
|
|
.HasComment("尾状态");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("longtext")
|
|
.HasComment("备注");
|
|
|
|
b.Property<string>("SourceCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("上游单号");
|
|
|
|
b.Property<string>("SupplierCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("供应商");
|
|
|
|
b.Property<decimal?>("TotalLines")
|
|
.HasColumnType("decimal(12,4)")
|
|
.HasComment("总行数");
|
|
|
|
b.Property<decimal?>("TotalQty")
|
|
.HasColumnType("decimal(12,4)")
|
|
.HasComment("总数量");
|
|
|
|
b.Property<string>("UpdateBy")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("");
|
|
|
|
b.Property<DateTime?>("UpdateTime")
|
|
.HasColumnType("datetime(6)")
|
|
.HasComment("");
|
|
|
|
b.HasKey("ID");
|
|
|
|
b.ToTable("ReceiptHeader");
|
|
});
|
|
|
|
modelBuilder.Entity("HHWMS.Web.Models.ReceiptHeaderHistory", b =>
|
|
{
|
|
b.Property<int>("ID")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<DateTime?>("AppointmentTime")
|
|
.HasColumnType("datetime(6)")
|
|
.HasComment("预约时间");
|
|
|
|
b.Property<string>("BillType")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("单据类型");
|
|
|
|
b.Property<string>("Code")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("入库单号");
|
|
|
|
b.Property<string>("CompanyCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("公司");
|
|
|
|
b.Property<string>("CreateBy")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("");
|
|
|
|
b.Property<DateTime?>("CreateTime")
|
|
.HasColumnType("datetime(6)")
|
|
.HasComment("");
|
|
|
|
b.Property<short?>("FirstStatus")
|
|
.HasColumnType("smallint")
|
|
.HasComment("首状态");
|
|
|
|
b.Property<short?>("LastStatus")
|
|
.HasColumnType("smallint")
|
|
.HasComment("尾状态");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("longtext")
|
|
.HasComment("备注");
|
|
|
|
b.Property<string>("SourceCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("上游单号");
|
|
|
|
b.Property<string>("SupplierCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("供应商");
|
|
|
|
b.Property<decimal?>("TotalLines")
|
|
.HasColumnType("decimal(12,4)")
|
|
.HasComment("总行数");
|
|
|
|
b.Property<decimal?>("TotalQty")
|
|
.HasColumnType("decimal(12,4)")
|
|
.HasComment("总数量");
|
|
|
|
b.Property<string>("UpdateBy")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("");
|
|
|
|
b.Property<DateTime?>("UpdateTime")
|
|
.HasColumnType("datetime(6)")
|
|
.HasComment("");
|
|
|
|
b.HasKey("ID");
|
|
|
|
b.ToTable("ReceiptHeaderHistory");
|
|
});
|
|
|
|
modelBuilder.Entity("HHWMS.Web.Models.ReportDesign", b =>
|
|
{
|
|
b.Property<int>("ID")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("CreateBy")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("");
|
|
|
|
b.Property<DateTime?>("CreateTime")
|
|
.HasColumnType("datetime(6)")
|
|
.HasComment("");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("名称");
|
|
|
|
b.Property<string>("Params")
|
|
.IsRequired()
|
|
.HasColumnType("longtext")
|
|
.HasComment("参数");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("longtext")
|
|
.HasComment("备注");
|
|
|
|
b.Property<string>("Sql")
|
|
.IsRequired()
|
|
.HasColumnType("longtext")
|
|
.HasComment("Sql");
|
|
|
|
b.Property<string>("UpdateBy")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("");
|
|
|
|
b.Property<DateTime?>("UpdateTime")
|
|
.HasColumnType("datetime(6)")
|
|
.HasComment("");
|
|
|
|
b.HasKey("ID");
|
|
|
|
b.ToTable("ReportDesign");
|
|
});
|
|
|
|
modelBuilder.Entity("HHWMS.Web.Models.ShipmentDetail", b =>
|
|
{
|
|
b.Property<int>("ID")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Batch")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("批次");
|
|
|
|
b.Property<string>("CompanyCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("公司");
|
|
|
|
b.Property<decimal?>("CompletedQty")
|
|
.HasColumnType("decimal(12,4)")
|
|
.HasComment("完成数量");
|
|
|
|
b.Property<string>("CreateBy")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("");
|
|
|
|
b.Property<DateTime?>("CreateTime")
|
|
.HasColumnType("datetime(6)")
|
|
.HasComment("");
|
|
|
|
b.Property<decimal?>("DividedQty")
|
|
.HasColumnType("decimal(12,4)")
|
|
.HasComment("已分配数量");
|
|
|
|
b.Property<DateTime?>("ExpirationDate")
|
|
.HasColumnType("datetime(6)")
|
|
.HasComment("失效日期");
|
|
|
|
b.Property<int>("HeaderId")
|
|
.HasColumnType("int")
|
|
.HasComment("");
|
|
|
|
b.Property<string>("InventoryStatus")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("物料状态");
|
|
|
|
b.Property<string>("Lot")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("料号");
|
|
|
|
b.Property<DateTime?>("ManufactureDate")
|
|
.HasColumnType("datetime(6)")
|
|
.HasComment("生产日期");
|
|
|
|
b.Property<string>("MaterialCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("物料编码");
|
|
|
|
b.Property<string>("MaterialName")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("物料名称");
|
|
|
|
b.Property<string>("MaterialSpec")
|
|
.HasColumnType("longtext")
|
|
.HasComment("物料规格");
|
|
|
|
b.Property<string>("MaterialType")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("物料类型");
|
|
|
|
b.Property<string>("MaterialUnit")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("单位");
|
|
|
|
b.Property<decimal?>("Qty")
|
|
.HasColumnType("decimal(12,4)")
|
|
.HasComment("数量");
|
|
|
|
b.Property<int?>("ShipmentHeaderID")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<short?>("Status")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("smallint")
|
|
.HasComment("状态");
|
|
|
|
b.Property<string>("SupplierCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("供应商");
|
|
|
|
b.Property<string>("UpdateBy")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("");
|
|
|
|
b.Property<DateTime?>("UpdateTime")
|
|
.HasColumnType("datetime(6)")
|
|
.HasComment("");
|
|
|
|
b.Property<string>("ZoneCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("库区");
|
|
|
|
b.HasKey("ID");
|
|
|
|
b.HasIndex("ShipmentHeaderID");
|
|
|
|
b.ToTable("ShipmentDetail");
|
|
});
|
|
|
|
modelBuilder.Entity("HHWMS.Web.Models.ShipmentDetailHistory", b =>
|
|
{
|
|
b.Property<int>("ID")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Batch")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("批次");
|
|
|
|
b.Property<string>("CompanyCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("公司");
|
|
|
|
b.Property<decimal?>("CompletedQty")
|
|
.HasColumnType("decimal(12,4)")
|
|
.HasComment("完成数量");
|
|
|
|
b.Property<string>("CreateBy")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("");
|
|
|
|
b.Property<DateTime?>("CreateTime")
|
|
.HasColumnType("datetime(6)")
|
|
.HasComment("");
|
|
|
|
b.Property<decimal?>("DividedQty")
|
|
.HasColumnType("decimal(12,4)")
|
|
.HasComment("已分配数量");
|
|
|
|
b.Property<DateTime?>("ExpirationDate")
|
|
.HasColumnType("datetime(6)")
|
|
.HasComment("失效日期");
|
|
|
|
b.Property<int>("HeaderId")
|
|
.HasColumnType("int")
|
|
.HasComment("");
|
|
|
|
b.Property<string>("InventoryStatus")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("物料状态");
|
|
|
|
b.Property<string>("Lot")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("料号");
|
|
|
|
b.Property<DateTime?>("ManufactureDate")
|
|
.HasColumnType("datetime(6)")
|
|
.HasComment("生产日期");
|
|
|
|
b.Property<string>("MaterialCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("物料编码");
|
|
|
|
b.Property<string>("MaterialName")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("物料名称");
|
|
|
|
b.Property<string>("MaterialSpec")
|
|
.HasColumnType("longtext")
|
|
.HasComment("物料规格");
|
|
|
|
b.Property<string>("MaterialType")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("物料类型");
|
|
|
|
b.Property<string>("MaterialUnit")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("单位");
|
|
|
|
b.Property<decimal?>("Qty")
|
|
.HasColumnType("decimal(12,4)")
|
|
.HasComment("数量");
|
|
|
|
b.Property<short?>("Status")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("smallint")
|
|
.HasComment("状态");
|
|
|
|
b.Property<string>("SupplierCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("供应商");
|
|
|
|
b.Property<string>("UpdateBy")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("");
|
|
|
|
b.Property<DateTime?>("UpdateTime")
|
|
.HasColumnType("datetime(6)")
|
|
.HasComment("");
|
|
|
|
b.Property<string>("ZoneCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("库区");
|
|
|
|
b.HasKey("ID");
|
|
|
|
b.ToTable("ShipmentDetailHistory");
|
|
});
|
|
|
|
modelBuilder.Entity("HHWMS.Web.Models.ShipmentHeader", b =>
|
|
{
|
|
b.Property<int>("ID")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("BillType")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("单据类型");
|
|
|
|
b.Property<string>("Code")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("出库单号");
|
|
|
|
b.Property<string>("CompanyCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("公司");
|
|
|
|
b.Property<string>("CreateBy")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("");
|
|
|
|
b.Property<DateTime?>("CreateTime")
|
|
.HasColumnType("datetime(6)")
|
|
.HasComment("");
|
|
|
|
b.Property<short?>("FirstStatus")
|
|
.HasColumnType("smallint")
|
|
.HasComment("首状态");
|
|
|
|
b.Property<short?>("LastStatus")
|
|
.HasColumnType("smallint")
|
|
.HasComment("尾状态");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("longtext")
|
|
.HasComment("备注");
|
|
|
|
b.Property<string>("SourceCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("上游单号");
|
|
|
|
b.Property<string>("SupplierCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("供应商");
|
|
|
|
b.Property<decimal?>("TotalLines")
|
|
.HasColumnType("decimal(12,4)")
|
|
.HasComment("总行数");
|
|
|
|
b.Property<decimal?>("TotalQty")
|
|
.HasColumnType("decimal(12,4)")
|
|
.HasComment("总数量");
|
|
|
|
b.Property<string>("UpdateBy")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("");
|
|
|
|
b.Property<DateTime?>("UpdateTime")
|
|
.HasColumnType("datetime(6)")
|
|
.HasComment("");
|
|
|
|
b.HasKey("ID");
|
|
|
|
b.ToTable("ShipmentHeader");
|
|
});
|
|
|
|
modelBuilder.Entity("HHWMS.Web.Models.ShipmentHeaderHistory", b =>
|
|
{
|
|
b.Property<int>("ID")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("BillType")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("单据类型");
|
|
|
|
b.Property<string>("Code")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("出库单号");
|
|
|
|
b.Property<string>("CompanyCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("公司");
|
|
|
|
b.Property<string>("CreateBy")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("");
|
|
|
|
b.Property<DateTime?>("CreateTime")
|
|
.HasColumnType("datetime(6)")
|
|
.HasComment("");
|
|
|
|
b.Property<short?>("FirstStatus")
|
|
.HasColumnType("smallint")
|
|
.HasComment("首状态");
|
|
|
|
b.Property<short?>("LastStatus")
|
|
.HasColumnType("smallint")
|
|
.HasComment("尾状态");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("longtext")
|
|
.HasComment("备注");
|
|
|
|
b.Property<string>("SourceCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("上游单号");
|
|
|
|
b.Property<string>("SupplierCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("供应商");
|
|
|
|
b.Property<decimal?>("TotalLines")
|
|
.HasColumnType("decimal(12,4)")
|
|
.HasComment("总行数");
|
|
|
|
b.Property<decimal?>("TotalQty")
|
|
.HasColumnType("decimal(12,4)")
|
|
.HasComment("总数量");
|
|
|
|
b.Property<string>("UpdateBy")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("");
|
|
|
|
b.Property<DateTime?>("UpdateTime")
|
|
.HasColumnType("datetime(6)")
|
|
.HasComment("");
|
|
|
|
b.HasKey("ID");
|
|
|
|
b.ToTable("ShipmentHeaderHistory");
|
|
});
|
|
|
|
modelBuilder.Entity("HHWMS.Web.Models.SysCount", b =>
|
|
{
|
|
b.Property<int>("ID")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("CreateBy")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("");
|
|
|
|
b.Property<DateTime?>("CreateTime")
|
|
.HasColumnType("datetime(6)")
|
|
.HasComment("");
|
|
|
|
b.Property<string>("Prefix")
|
|
.HasMaxLength(5)
|
|
.HasColumnType("varchar(5)")
|
|
.HasComment("前缀");
|
|
|
|
b.Property<string>("UpdateBy")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("");
|
|
|
|
b.Property<DateTime?>("UpdateTime")
|
|
.HasColumnType("datetime(6)")
|
|
.HasComment("");
|
|
|
|
b.Property<int>("Value")
|
|
.HasColumnType("int")
|
|
.HasComment("值");
|
|
|
|
b.HasKey("ID");
|
|
|
|
b.ToTable("SysCount");
|
|
});
|
|
|
|
modelBuilder.Entity("HHWMS.Web.Models.SysDictData", b =>
|
|
{
|
|
b.Property<int>("ID")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("CreateBy")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("");
|
|
|
|
b.Property<DateTime?>("CreateTime")
|
|
.HasColumnType("datetime(6)")
|
|
.HasComment("");
|
|
|
|
b.Property<string>("CssClass")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("样式属性");
|
|
|
|
b.Property<string>("DictLabel")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("字典标签");
|
|
|
|
b.Property<string>("DictLabelUs")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("英文标签");
|
|
|
|
b.Property<int?>("DictSort")
|
|
.HasColumnType("int")
|
|
.HasComment("字典排序");
|
|
|
|
b.Property<string>("DictType")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("字典类型");
|
|
|
|
b.Property<string>("DictValue")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("字典键值");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("longtext")
|
|
.HasComment("备注");
|
|
|
|
b.Property<int>("SysDictTypeId")
|
|
.HasColumnType("int")
|
|
.HasComment("");
|
|
|
|
b.Property<string>("UpdateBy")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("");
|
|
|
|
b.Property<DateTime?>("UpdateTime")
|
|
.HasColumnType("datetime(6)")
|
|
.HasComment("");
|
|
|
|
b.HasKey("ID");
|
|
|
|
b.HasIndex("SysDictTypeId");
|
|
|
|
b.ToTable("SysDictData");
|
|
});
|
|
|
|
modelBuilder.Entity("HHWMS.Web.Models.SysDictType", b =>
|
|
{
|
|
b.Property<int>("ID")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("CreateBy")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("");
|
|
|
|
b.Property<DateTime?>("CreateTime")
|
|
.HasColumnType("datetime(6)")
|
|
.HasComment("");
|
|
|
|
b.Property<string>("DictName")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("字典名称");
|
|
|
|
b.Property<string>("DictType")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("字典类型");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("longtext")
|
|
.HasComment("备注");
|
|
|
|
b.Property<string>("UpdateBy")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("");
|
|
|
|
b.Property<DateTime?>("UpdateTime")
|
|
.HasColumnType("datetime(6)")
|
|
.HasComment("");
|
|
|
|
b.HasKey("ID");
|
|
|
|
b.ToTable("SysDictType");
|
|
});
|
|
|
|
modelBuilder.Entity("HHWMS.Web.Models.SysJob", b =>
|
|
{
|
|
b.Property<int>("ID")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("CreateBy")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("");
|
|
|
|
b.Property<DateTime?>("CreateTime")
|
|
.HasColumnType("datetime(6)")
|
|
.HasComment("");
|
|
|
|
b.Property<string>("CronExpression")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("cron执行表达式");
|
|
|
|
b.Property<string>("JobGroup")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("任务组名");
|
|
|
|
b.Property<string>("JobName")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("任务名称");
|
|
|
|
b.Property<DateTime?>("LastFireTime")
|
|
.HasColumnType("datetime(6)")
|
|
.HasComment("上次执行时间");
|
|
|
|
b.Property<string>("MethodName")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("任务方法");
|
|
|
|
b.Property<string>("MethodParams")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("参数");
|
|
|
|
b.Property<string>("MisfirePolicy")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("错误策略");
|
|
|
|
b.Property<DateTime?>("NextFireTime")
|
|
.HasColumnType("datetime(6)")
|
|
.HasComment("下次执行时间");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("longtext")
|
|
.HasComment("备注");
|
|
|
|
b.Property<byte>("Status")
|
|
.HasColumnType("tinyint unsigned")
|
|
.HasComment("状态(1正常 0暂停)");
|
|
|
|
b.Property<string>("UpdateBy")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("");
|
|
|
|
b.Property<DateTime?>("UpdateTime")
|
|
.HasColumnType("datetime(6)")
|
|
.HasComment("");
|
|
|
|
b.HasKey("ID");
|
|
|
|
b.ToTable("SysJob");
|
|
});
|
|
|
|
modelBuilder.Entity("HHWMS.Web.Models.TaskDetail", b =>
|
|
{
|
|
b.Property<int>("ID")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Batch")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("批次");
|
|
|
|
b.Property<string>("ContainerCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("容器编码");
|
|
|
|
b.Property<string>("CreateBy")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("");
|
|
|
|
b.Property<DateTime?>("CreateTime")
|
|
.HasColumnType("datetime(6)")
|
|
.HasComment("");
|
|
|
|
b.Property<string>("FromLocation")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("起始仓位");
|
|
|
|
b.Property<int>("HeaderId")
|
|
.HasColumnType("int")
|
|
.HasComment("任务号");
|
|
|
|
b.Property<int?>("InventoryId")
|
|
.HasColumnType("int")
|
|
.HasComment("库存Id");
|
|
|
|
b.Property<string>("Lot")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("料号");
|
|
|
|
b.Property<string>("MaterialCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("物料编码");
|
|
|
|
b.Property<string>("MaterialName")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("物料名称");
|
|
|
|
b.Property<string>("MaterialSpec")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("物料规格");
|
|
|
|
b.Property<string>("MaterialUnit")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("单位");
|
|
|
|
b.Property<string>("OrderCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("单据编号");
|
|
|
|
b.Property<int?>("OrderDetailId")
|
|
.HasColumnType("int")
|
|
.HasComment("明细ID");
|
|
|
|
b.Property<decimal?>("Qty")
|
|
.HasColumnType("decimal(12,4)")
|
|
.HasComment("数量");
|
|
|
|
b.Property<short?>("Status")
|
|
.HasColumnType("smallint")
|
|
.HasComment("状态");
|
|
|
|
b.Property<string>("ToLocation")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("目标仓位");
|
|
|
|
b.Property<string>("UpdateBy")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("");
|
|
|
|
b.Property<DateTime?>("UpdateTime")
|
|
.HasColumnType("datetime(6)")
|
|
.HasComment("");
|
|
|
|
b.HasKey("ID");
|
|
|
|
b.ToTable("TaskDetail");
|
|
});
|
|
|
|
modelBuilder.Entity("HHWMS.Web.Models.TaskDetailHistory", b =>
|
|
{
|
|
b.Property<int>("ID")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Batch")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("批次");
|
|
|
|
b.Property<string>("ContainerCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("容器编码");
|
|
|
|
b.Property<string>("CreateBy")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("");
|
|
|
|
b.Property<DateTime?>("CreateTime")
|
|
.HasColumnType("datetime(6)")
|
|
.HasComment("");
|
|
|
|
b.Property<string>("FromLocation")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("起始仓位");
|
|
|
|
b.Property<int>("HeaderId")
|
|
.HasColumnType("int")
|
|
.HasComment("任务号");
|
|
|
|
b.Property<int?>("InventoryId")
|
|
.HasColumnType("int")
|
|
.HasComment("库存Id");
|
|
|
|
b.Property<string>("Lot")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("料号");
|
|
|
|
b.Property<string>("MaterialCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("物料编码");
|
|
|
|
b.Property<string>("MaterialName")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("物料名称");
|
|
|
|
b.Property<string>("MaterialSpec")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("物料规格");
|
|
|
|
b.Property<string>("MaterialUnit")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("单位");
|
|
|
|
b.Property<string>("OrderCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("单据编号");
|
|
|
|
b.Property<int?>("OrderDetailId")
|
|
.HasColumnType("int")
|
|
.HasComment("明细ID");
|
|
|
|
b.Property<decimal?>("Qty")
|
|
.HasColumnType("decimal(12,4)")
|
|
.HasComment("数量");
|
|
|
|
b.Property<short?>("Status")
|
|
.HasColumnType("smallint")
|
|
.HasComment("状态");
|
|
|
|
b.Property<string>("ToLocation")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("目标仓位");
|
|
|
|
b.Property<string>("UpdateBy")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("");
|
|
|
|
b.Property<DateTime?>("UpdateTime")
|
|
.HasColumnType("datetime(6)")
|
|
.HasComment("");
|
|
|
|
b.HasKey("ID");
|
|
|
|
b.ToTable("TaskDetailHistory");
|
|
});
|
|
|
|
modelBuilder.Entity("HHWMS.Web.Models.TaskHeader", b =>
|
|
{
|
|
b.Property<int>("ID")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("ContainerCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("容器编码");
|
|
|
|
b.Property<string>("CreateBy")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("");
|
|
|
|
b.Property<DateTime?>("CreateTime")
|
|
.HasColumnType("datetime(6)")
|
|
.HasComment("");
|
|
|
|
b.Property<string>("ErrorMsg")
|
|
.HasColumnType("longtext")
|
|
.HasComment("错误信息");
|
|
|
|
b.Property<string>("FromLocation")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("起始仓位");
|
|
|
|
b.Property<short?>("Priority")
|
|
.HasColumnType("smallint")
|
|
.HasComment("优先级");
|
|
|
|
b.Property<short?>("RoadWay")
|
|
.HasColumnType("smallint")
|
|
.HasComment("巷道");
|
|
|
|
b.Property<string>("Station")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("站台");
|
|
|
|
b.Property<short?>("Status")
|
|
.HasColumnType("smallint")
|
|
.HasComment("任务状态");
|
|
|
|
b.Property<string>("TaskNo")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("任务号");
|
|
|
|
b.Property<short?>("TaskType")
|
|
.HasColumnType("smallint")
|
|
.HasComment("任务类型");
|
|
|
|
b.Property<string>("ToLocation")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("目标仓位");
|
|
|
|
b.Property<string>("UpdateBy")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("");
|
|
|
|
b.Property<DateTime?>("UpdateTime")
|
|
.HasColumnType("datetime(6)")
|
|
.HasComment("");
|
|
|
|
b.Property<string>("ZoneCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("库区");
|
|
|
|
b.HasKey("ID");
|
|
|
|
b.HasIndex("TaskNo")
|
|
.IsUnique();
|
|
|
|
b.ToTable("TaskHeader");
|
|
});
|
|
|
|
modelBuilder.Entity("HHWMS.Web.Models.TaskHeaderHistory", b =>
|
|
{
|
|
b.Property<int>("ID")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("ContainerCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("容器编码");
|
|
|
|
b.Property<string>("CreateBy")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("");
|
|
|
|
b.Property<DateTime?>("CreateTime")
|
|
.HasColumnType("datetime(6)")
|
|
.HasComment("");
|
|
|
|
b.Property<string>("ErrorMsg")
|
|
.HasColumnType("longtext")
|
|
.HasComment("错误信息");
|
|
|
|
b.Property<string>("FromLocation")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("起始仓位");
|
|
|
|
b.Property<short?>("Priority")
|
|
.HasColumnType("smallint")
|
|
.HasComment("优先级");
|
|
|
|
b.Property<short?>("RoadWay")
|
|
.HasColumnType("smallint")
|
|
.HasComment("巷道");
|
|
|
|
b.Property<string>("Station")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("站台");
|
|
|
|
b.Property<short?>("Status")
|
|
.HasColumnType("smallint")
|
|
.HasComment("任务状态");
|
|
|
|
b.Property<string>("TaskNo")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("任务号");
|
|
|
|
b.Property<short?>("TaskType")
|
|
.HasColumnType("smallint")
|
|
.HasComment("任务类型");
|
|
|
|
b.Property<string>("ToLocation")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("目标仓位");
|
|
|
|
b.Property<string>("UpdateBy")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("");
|
|
|
|
b.Property<DateTime?>("UpdateTime")
|
|
.HasColumnType("datetime(6)")
|
|
.HasComment("");
|
|
|
|
b.Property<string>("ZoneCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasComment("库区");
|
|
|
|
b.HasKey("ID");
|
|
|
|
b.HasIndex("TaskNo")
|
|
.IsUnique();
|
|
|
|
b.ToTable("TaskHeaderHistory");
|
|
});
|
|
|
|
modelBuilder.Entity("WalkingTec.Mvvm.Core.ActionLog", b =>
|
|
{
|
|
b.Property<Guid>("ID")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("char(36)");
|
|
|
|
b.Property<string>("ActionName")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("varchar(255)");
|
|
|
|
b.Property<DateTime>("ActionTime")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<string>("ActionUrl")
|
|
.HasMaxLength(250)
|
|
.HasColumnType("varchar(250)");
|
|
|
|
b.Property<string>("CreateBy")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)");
|
|
|
|
b.Property<DateTime?>("CreateTime")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<double>("Duration")
|
|
.HasColumnType("double");
|
|
|
|
b.Property<string>("IP")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)");
|
|
|
|
b.Property<string>("ITCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)");
|
|
|
|
b.Property<int>("LogType")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("ModuleName")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("varchar(255)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("Request")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("Result")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("TenantCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)");
|
|
|
|
b.Property<string>("UpdateBy")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)");
|
|
|
|
b.Property<DateTime?>("UpdateTime")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.HasKey("ID");
|
|
|
|
b.ToTable("ActionLogs");
|
|
});
|
|
|
|
modelBuilder.Entity("WalkingTec.Mvvm.Core.DataPrivilege", b =>
|
|
{
|
|
b.Property<Guid>("ID")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("char(36)");
|
|
|
|
b.Property<string>("CreateBy")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)");
|
|
|
|
b.Property<DateTime?>("CreateTime")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<string>("Domain")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("GroupCode")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("RelateId")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("TableName")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)");
|
|
|
|
b.Property<string>("TenantCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)");
|
|
|
|
b.Property<string>("UpdateBy")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)");
|
|
|
|
b.Property<DateTime?>("UpdateTime")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<string>("UserCode")
|
|
.HasColumnType("longtext");
|
|
|
|
b.HasKey("ID");
|
|
|
|
b.ToTable("DataPrivileges");
|
|
});
|
|
|
|
modelBuilder.Entity("WalkingTec.Mvvm.Core.FileAttachment", b =>
|
|
{
|
|
b.Property<Guid>("ID")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("char(36)");
|
|
|
|
b.Property<string>("ExtraInfo")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<byte[]>("FileData")
|
|
.HasColumnType("longblob");
|
|
|
|
b.Property<string>("FileExt")
|
|
.IsRequired()
|
|
.HasMaxLength(10)
|
|
.HasColumnType("varchar(10)");
|
|
|
|
b.Property<string>("FileName")
|
|
.IsRequired()
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("HandlerInfo")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<long>("Length")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("Path")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("SaveMode")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("TenantCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)");
|
|
|
|
b.Property<DateTime>("UploadTime")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.HasKey("ID");
|
|
|
|
b.ToTable("FileAttachments");
|
|
});
|
|
|
|
modelBuilder.Entity("WalkingTec.Mvvm.Core.FrameworkGroup", b =>
|
|
{
|
|
b.Property<Guid>("ID")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("char(36)");
|
|
|
|
b.Property<string>("GroupCode")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)");
|
|
|
|
b.Property<string>("GroupName")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)");
|
|
|
|
b.Property<string>("GroupRemark")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("Manager")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<Guid?>("ParentId")
|
|
.HasColumnType("char(36)");
|
|
|
|
b.Property<string>("TenantCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)");
|
|
|
|
b.HasKey("ID");
|
|
|
|
b.HasIndex("ParentId");
|
|
|
|
b.ToTable("FrameworkGroups");
|
|
});
|
|
|
|
modelBuilder.Entity("WalkingTec.Mvvm.Core.FrameworkMenu", b =>
|
|
{
|
|
b.Property<Guid>("ID")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("char(36)");
|
|
|
|
b.Property<string>("ActionName")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("ClassName")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<int?>("DisplayOrder")
|
|
.IsRequired()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Domain")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<bool>("FolderOnly")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<string>("Icon")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)");
|
|
|
|
b.Property<bool>("IsInherit")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<bool?>("IsInside")
|
|
.IsRequired()
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<bool>("IsPublic")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<string>("MethodName")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("ModuleName")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("PageName")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("varchar(100)");
|
|
|
|
b.Property<Guid?>("ParentId")
|
|
.HasColumnType("char(36)");
|
|
|
|
b.Property<bool>("ShowOnMenu")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<bool?>("TenantAllowed")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<string>("Url")
|
|
.HasColumnType("longtext");
|
|
|
|
b.HasKey("ID");
|
|
|
|
b.HasIndex("ParentId");
|
|
|
|
b.ToTable("FrameworkMenus");
|
|
});
|
|
|
|
modelBuilder.Entity("WalkingTec.Mvvm.Core.FrameworkRole", b =>
|
|
{
|
|
b.Property<Guid>("ID")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("char(36)");
|
|
|
|
b.Property<string>("CreateBy")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)");
|
|
|
|
b.Property<DateTime?>("CreateTime")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<string>("RoleCode")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)");
|
|
|
|
b.Property<string>("RoleName")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)");
|
|
|
|
b.Property<string>("RoleRemark")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("TenantCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)");
|
|
|
|
b.Property<string>("UpdateBy")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)");
|
|
|
|
b.Property<DateTime?>("UpdateTime")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.HasKey("ID");
|
|
|
|
b.ToTable("FrameworkRoles");
|
|
});
|
|
|
|
modelBuilder.Entity("WalkingTec.Mvvm.Core.FrameworkTenant", b =>
|
|
{
|
|
b.Property<Guid>("ID")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("char(36)");
|
|
|
|
b.Property<string>("CreateBy")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)");
|
|
|
|
b.Property<DateTime?>("CreateTime")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<string>("DbContext")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<bool>("EnableSub")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<string>("TCode")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)");
|
|
|
|
b.Property<string>("TDb")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<int?>("TDbType")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("TDomain")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)");
|
|
|
|
b.Property<string>("TName")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)");
|
|
|
|
b.Property<string>("TenantCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)");
|
|
|
|
b.Property<string>("UpdateBy")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)");
|
|
|
|
b.Property<DateTime?>("UpdateTime")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.HasKey("ID");
|
|
|
|
b.ToTable("FrameworkTenants");
|
|
});
|
|
|
|
modelBuilder.Entity("WalkingTec.Mvvm.Core.FrameworkUser", b =>
|
|
{
|
|
b.Property<Guid>("ID")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("char(36)");
|
|
|
|
b.Property<string>("Address")
|
|
.HasMaxLength(200)
|
|
.HasColumnType("varchar(200)");
|
|
|
|
b.Property<string>("CellPhone")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("CreateBy")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)");
|
|
|
|
b.Property<DateTime?>("CreateTime")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<string>("Email")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)");
|
|
|
|
b.Property<int?>("Gender")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("HomePhone")
|
|
.HasMaxLength(30)
|
|
.HasColumnType("varchar(30)");
|
|
|
|
b.Property<string>("ITCode")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)");
|
|
|
|
b.Property<bool>("IsValid")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)");
|
|
|
|
b.Property<string>("Password")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("varchar(32)");
|
|
|
|
b.Property<Guid?>("PhotoId")
|
|
.HasColumnType("char(36)");
|
|
|
|
b.Property<string>("TenantCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)");
|
|
|
|
b.Property<string>("UpdateBy")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)");
|
|
|
|
b.Property<DateTime?>("UpdateTime")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<string>("ZipCode")
|
|
.HasColumnType("longtext");
|
|
|
|
b.HasKey("ID");
|
|
|
|
b.HasIndex("PhotoId");
|
|
|
|
b.ToTable("FrameworkUsers");
|
|
});
|
|
|
|
modelBuilder.Entity("WalkingTec.Mvvm.Core.FrameworkUserGroup", b =>
|
|
{
|
|
b.Property<Guid>("ID")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("char(36)");
|
|
|
|
b.Property<string>("CreateBy")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)");
|
|
|
|
b.Property<DateTime?>("CreateTime")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<string>("GroupCode")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)");
|
|
|
|
b.Property<string>("TenantCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)");
|
|
|
|
b.Property<string>("UpdateBy")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)");
|
|
|
|
b.Property<DateTime?>("UpdateTime")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<string>("UserCode")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)");
|
|
|
|
b.HasKey("ID");
|
|
|
|
b.ToTable("FrameworkUserGroups");
|
|
});
|
|
|
|
modelBuilder.Entity("WalkingTec.Mvvm.Core.FrameworkUserRole", b =>
|
|
{
|
|
b.Property<Guid>("ID")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("char(36)");
|
|
|
|
b.Property<string>("CreateBy")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)");
|
|
|
|
b.Property<DateTime?>("CreateTime")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<string>("RoleCode")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)");
|
|
|
|
b.Property<string>("TenantCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)");
|
|
|
|
b.Property<string>("UpdateBy")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)");
|
|
|
|
b.Property<DateTime?>("UpdateTime")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<string>("UserCode")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)");
|
|
|
|
b.HasKey("ID");
|
|
|
|
b.ToTable("FrameworkUserRoles");
|
|
});
|
|
|
|
modelBuilder.Entity("WalkingTec.Mvvm.Core.FunctionPrivilege", b =>
|
|
{
|
|
b.Property<Guid>("ID")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("char(36)");
|
|
|
|
b.Property<bool?>("Allowed")
|
|
.IsRequired()
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<string>("CreateBy")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)");
|
|
|
|
b.Property<DateTime?>("CreateTime")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<Guid>("MenuItemId")
|
|
.HasColumnType("char(36)");
|
|
|
|
b.Property<string>("RoleCode")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("TenantCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)");
|
|
|
|
b.Property<string>("UpdateBy")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)");
|
|
|
|
b.Property<DateTime?>("UpdateTime")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.HasKey("ID");
|
|
|
|
b.ToTable("FunctionPrivileges");
|
|
});
|
|
|
|
modelBuilder.Entity("WalkingTec.Mvvm.Core.InterfaceLog", b =>
|
|
{
|
|
b.Property<Guid>("ID")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("char(36)");
|
|
|
|
b.Property<string>("ActionName")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("varchar(255)");
|
|
|
|
b.Property<DateTime>("ActionTime")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<string>("ActionUrl")
|
|
.HasMaxLength(250)
|
|
.HasColumnType("varchar(250)");
|
|
|
|
b.Property<string>("CreateBy")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)");
|
|
|
|
b.Property<DateTime?>("CreateTime")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<double>("Duration")
|
|
.HasColumnType("double");
|
|
|
|
b.Property<string>("IP")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)");
|
|
|
|
b.Property<string>("ITCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)");
|
|
|
|
b.Property<int>("LogType")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("ModuleName")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("varchar(255)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("Request")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("Result")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("TenantCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)");
|
|
|
|
b.Property<string>("UpdateBy")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)");
|
|
|
|
b.Property<DateTime?>("UpdateTime")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.HasKey("ID");
|
|
|
|
b.ToTable("InterfaceLogs");
|
|
});
|
|
|
|
modelBuilder.Entity("WalkingTec.Mvvm.Core.JobLog", b =>
|
|
{
|
|
b.Property<Guid>("ID")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("char(36)");
|
|
|
|
b.Property<string>("ActionName")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("varchar(255)");
|
|
|
|
b.Property<DateTime>("ActionTime")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<string>("ActionUrl")
|
|
.HasMaxLength(250)
|
|
.HasColumnType("varchar(250)");
|
|
|
|
b.Property<string>("CreateBy")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)");
|
|
|
|
b.Property<DateTime?>("CreateTime")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<double>("Duration")
|
|
.HasColumnType("double");
|
|
|
|
b.Property<string>("IP")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)");
|
|
|
|
b.Property<string>("ITCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)");
|
|
|
|
b.Property<int>("LogType")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("ModuleName")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("varchar(255)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("Request")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("Result")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("TenantCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)");
|
|
|
|
b.Property<string>("UpdateBy")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)");
|
|
|
|
b.Property<DateTime?>("UpdateTime")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.HasKey("ID");
|
|
|
|
b.ToTable("JobLogs");
|
|
});
|
|
|
|
modelBuilder.Entity("HHWMS.Web.Models.ReceiptDetail", b =>
|
|
{
|
|
b.HasOne("HHWMS.Web.Models.ReceiptHeader", "ReceiptHeader")
|
|
.WithMany("ReceiptDetails")
|
|
.HasForeignKey("ReceiptHeaderID");
|
|
|
|
b.Navigation("ReceiptHeader");
|
|
});
|
|
|
|
modelBuilder.Entity("HHWMS.Web.Models.ShipmentDetail", b =>
|
|
{
|
|
b.HasOne("HHWMS.Web.Models.ShipmentHeader", "ShipmentHeader")
|
|
.WithMany("ShipmentDetails")
|
|
.HasForeignKey("ShipmentHeaderID");
|
|
|
|
b.Navigation("ShipmentHeader");
|
|
});
|
|
|
|
modelBuilder.Entity("HHWMS.Web.Models.SysDictData", b =>
|
|
{
|
|
b.HasOne("HHWMS.Web.Models.SysDictType", "SysDictType")
|
|
.WithMany("SysDictDatas")
|
|
.HasForeignKey("SysDictTypeId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("SysDictType");
|
|
});
|
|
|
|
modelBuilder.Entity("WalkingTec.Mvvm.Core.FrameworkGroup", b =>
|
|
{
|
|
b.HasOne("WalkingTec.Mvvm.Core.FrameworkGroup", "Parent")
|
|
.WithMany("Children")
|
|
.HasForeignKey("ParentId");
|
|
|
|
b.Navigation("Parent");
|
|
});
|
|
|
|
modelBuilder.Entity("WalkingTec.Mvvm.Core.FrameworkMenu", b =>
|
|
{
|
|
b.HasOne("WalkingTec.Mvvm.Core.FrameworkMenu", "Parent")
|
|
.WithMany("Children")
|
|
.HasForeignKey("ParentId");
|
|
|
|
b.Navigation("Parent");
|
|
});
|
|
|
|
modelBuilder.Entity("WalkingTec.Mvvm.Core.FrameworkUser", b =>
|
|
{
|
|
b.HasOne("WalkingTec.Mvvm.Core.FileAttachment", "Photo")
|
|
.WithMany()
|
|
.HasForeignKey("PhotoId")
|
|
.OnDelete(DeleteBehavior.Restrict);
|
|
|
|
b.Navigation("Photo");
|
|
});
|
|
|
|
modelBuilder.Entity("HHWMS.Web.Models.ReceiptHeader", b =>
|
|
{
|
|
b.Navigation("ReceiptDetails");
|
|
});
|
|
|
|
modelBuilder.Entity("HHWMS.Web.Models.ShipmentHeader", b =>
|
|
{
|
|
b.Navigation("ShipmentDetails");
|
|
});
|
|
|
|
modelBuilder.Entity("HHWMS.Web.Models.SysDictType", b =>
|
|
{
|
|
b.Navigation("SysDictDatas");
|
|
});
|
|
|
|
modelBuilder.Entity("WalkingTec.Mvvm.Core.FrameworkGroup", b =>
|
|
{
|
|
b.Navigation("Children");
|
|
});
|
|
|
|
modelBuilder.Entity("WalkingTec.Mvvm.Core.FrameworkMenu", b =>
|
|
{
|
|
b.Navigation("Children");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|