3118 lines
113 KiB
C#
3118 lines
113 KiB
C#
// <auto-generated />
|
||
using System;
|
||
using HHWMS.Web;
|
||
using Microsoft.EntityFrameworkCore;
|
||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||
|
||
#nullable disable
|
||
|
||
namespace HHWMS.Web.Migrations
|
||
{
|
||
[DbContext(typeof(DataContext))]
|
||
partial class DataContextModelSnapshot : ModelSnapshot
|
||
{
|
||
protected override void BuildModel(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.DeviceAlarmRecord", b =>
|
||
{
|
||
b.Property<int>("ID")
|
||
.ValueGeneratedOnAdd()
|
||
.HasColumnType("int");
|
||
|
||
b.Property<string>("AlarmCode")
|
||
.HasMaxLength(100)
|
||
.HasColumnType("varchar(100)")
|
||
.HasComment("告警代码");
|
||
|
||
b.Property<string>("AlarmMessage")
|
||
.HasMaxLength(500)
|
||
.HasColumnType("varchar(500)")
|
||
.HasComment("告警内容");
|
||
|
||
b.Property<string>("CreateBy")
|
||
.HasMaxLength(50)
|
||
.HasColumnType("varchar(50)")
|
||
.HasComment("");
|
||
|
||
b.Property<DateTime?>("CreateTime")
|
||
.HasColumnType("datetime(6)")
|
||
.HasComment("");
|
||
|
||
b.Property<string>("DeviceId")
|
||
.IsRequired()
|
||
.HasMaxLength(100)
|
||
.HasColumnType("varchar(100)")
|
||
.HasComment("设备唯一标识");
|
||
|
||
b.Property<DateTime?>("EndTime")
|
||
.HasColumnType("datetime(6)")
|
||
.HasComment("告警恢复时间");
|
||
|
||
b.Property<bool>("IsActive")
|
||
.HasColumnType("tinyint(1)")
|
||
.HasComment("是否仍在告警");
|
||
|
||
b.Property<DateTime?>("LastSeenTime")
|
||
.HasColumnType("datetime(6)")
|
||
.HasComment("最后出现时间");
|
||
|
||
b.Property<int>("RepeatCount")
|
||
.HasColumnType("int")
|
||
.HasComment("重复出现次数");
|
||
|
||
b.Property<DateTime>("StartTime")
|
||
.HasColumnType("datetime(6)")
|
||
.HasComment("告警开始时间");
|
||
|
||
b.Property<string>("UpdateBy")
|
||
.HasMaxLength(50)
|
||
.HasColumnType("varchar(50)")
|
||
.HasComment("");
|
||
|
||
b.Property<DateTime?>("UpdateTime")
|
||
.HasColumnType("datetime(6)")
|
||
.HasComment("");
|
||
|
||
b.HasKey("ID");
|
||
|
||
b.ToTable("DeviceAlarmRecord");
|
||
|
||
b.HasComment("设备告警记录");
|
||
});
|
||
|
||
modelBuilder.Entity("HHWMS.Web.Models.DeviceCurrentState", b =>
|
||
{
|
||
b.Property<int>("ID")
|
||
.ValueGeneratedOnAdd()
|
||
.HasColumnType("int");
|
||
|
||
b.Property<string>("AlarmSummary")
|
||
.HasMaxLength(500)
|
||
.HasColumnType("varchar(500)")
|
||
.HasComment("当前告警摘要");
|
||
|
||
b.Property<string>("CreateBy")
|
||
.HasMaxLength(50)
|
||
.HasColumnType("varchar(50)")
|
||
.HasComment("");
|
||
|
||
b.Property<DateTime?>("CreateTime")
|
||
.HasColumnType("datetime(6)")
|
||
.HasComment("");
|
||
|
||
b.Property<string>("DeviceId")
|
||
.IsRequired()
|
||
.HasMaxLength(100)
|
||
.HasColumnType("varchar(100)")
|
||
.HasComment("设备唯一标识");
|
||
|
||
b.Property<string>("DeviceName")
|
||
.HasMaxLength(100)
|
||
.HasColumnType("varchar(100)")
|
||
.HasComment("设备显示名称");
|
||
|
||
b.Property<string>("DeviceType")
|
||
.HasMaxLength(30)
|
||
.HasColumnType("varchar(30)")
|
||
.HasComment("设备类型");
|
||
|
||
b.Property<DateTime?>("LastPayloadTime")
|
||
.HasColumnType("datetime(6)")
|
||
.HasComment("最后设备数据时间");
|
||
|
||
b.Property<DateTime?>("LastUpdateTime")
|
||
.HasColumnType("datetime(6)")
|
||
.HasComment("最后状态更新时间");
|
||
|
||
b.Property<string>("RealtimeJson")
|
||
.HasColumnType("longtext")
|
||
.HasComment("清洗后的实时数据");
|
||
|
||
b.Property<string>("Status")
|
||
.HasMaxLength(30)
|
||
.HasColumnType("varchar(30)")
|
||
.HasComment("当前状态");
|
||
|
||
b.Property<string>("UpdateBy")
|
||
.HasMaxLength(50)
|
||
.HasColumnType("varchar(50)")
|
||
.HasComment("");
|
||
|
||
b.Property<DateTime?>("UpdateTime")
|
||
.HasColumnType("datetime(6)")
|
||
.HasComment("");
|
||
|
||
b.HasKey("ID");
|
||
|
||
b.ToTable("DeviceCurrentState");
|
||
|
||
b.HasComment("设备当前状态");
|
||
});
|
||
|
||
modelBuilder.Entity("HHWMS.Web.Models.DeviceMetricTrendPoint", b =>
|
||
{
|
||
b.Property<int>("ID")
|
||
.ValueGeneratedOnAdd()
|
||
.HasColumnType("int");
|
||
|
||
b.Property<decimal>("AvgValue")
|
||
.HasColumnType("decimal(18,4)")
|
||
.HasComment("平均值");
|
||
|
||
b.Property<DateTime>("BucketTime")
|
||
.HasColumnType("datetime(6)")
|
||
.HasComment("聚合时间桶");
|
||
|
||
b.Property<string>("CreateBy")
|
||
.HasMaxLength(50)
|
||
.HasColumnType("varchar(50)")
|
||
.HasComment("");
|
||
|
||
b.Property<DateTime?>("CreateTime")
|
||
.HasColumnType("datetime(6)")
|
||
.HasComment("");
|
||
|
||
b.Property<string>("DeviceId")
|
||
.IsRequired()
|
||
.HasMaxLength(100)
|
||
.HasColumnType("varchar(100)")
|
||
.HasComment("设备唯一标识");
|
||
|
||
b.Property<decimal>("MaxValue")
|
||
.HasColumnType("decimal(18,4)")
|
||
.HasComment("最大值");
|
||
|
||
b.Property<string>("MetricName")
|
||
.IsRequired()
|
||
.HasMaxLength(60)
|
||
.HasColumnType("varchar(60)")
|
||
.HasComment("指标名称");
|
||
|
||
b.Property<decimal>("MinValue")
|
||
.HasColumnType("decimal(18,4)")
|
||
.HasComment("最小值");
|
||
|
||
b.Property<int>("SampleCount")
|
||
.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.ToTable("DeviceMetricTrendPoint");
|
||
|
||
b.HasComment("设备指标趋势聚合点");
|
||
});
|
||
|
||
modelBuilder.Entity("HHWMS.Web.Models.DeviceProductionDaily", b =>
|
||
{
|
||
b.Property<int>("ID")
|
||
.ValueGeneratedOnAdd()
|
||
.HasColumnType("int");
|
||
|
||
b.Property<int>("AlarmMinutes")
|
||
.HasColumnType("int")
|
||
.HasComment("报警分钟数");
|
||
|
||
b.Property<string>("CreateBy")
|
||
.HasMaxLength(50)
|
||
.HasColumnType("varchar(50)")
|
||
.HasComment("");
|
||
|
||
b.Property<DateTime?>("CreateTime")
|
||
.HasColumnType("datetime(6)")
|
||
.HasComment("");
|
||
|
||
b.Property<int>("CuttimeMinutes")
|
||
.HasColumnType("int")
|
||
.HasComment("加工分钟数");
|
||
|
||
b.Property<string>("DeviceId")
|
||
.IsRequired()
|
||
.HasMaxLength(100)
|
||
.HasColumnType("varchar(100)")
|
||
.HasComment("设备唯一标识");
|
||
|
||
b.Property<int>("EndCounter")
|
||
.HasColumnType("int")
|
||
.HasComment("当日结束累计值");
|
||
|
||
b.Property<int>("OfflineMinutes")
|
||
.HasColumnType("int")
|
||
.HasComment("离线分钟数");
|
||
|
||
b.Property<int>("ProduceCount")
|
||
.HasColumnType("int")
|
||
.HasComment("当日产量");
|
||
|
||
b.Property<DateTime>("ProductionDate")
|
||
.HasColumnType("datetime(6)")
|
||
.HasComment("生产日期");
|
||
|
||
b.Property<int>("RuntimeMinutes")
|
||
.HasColumnType("int")
|
||
.HasComment("运行分钟数");
|
||
|
||
b.Property<int>("StartCounter")
|
||
.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.ToTable("DeviceProductionDaily");
|
||
|
||
b.HasComment("设备日产能汇总");
|
||
});
|
||
|
||
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<decimal?>("Qty")
|
||
.HasColumnType("decimal(12,4)")
|
||
.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.HasKey("ID");
|
||
|
||
b.ToTable("Material");
|
||
});
|
||
|
||
modelBuilder.Entity("HHWMS.Web.Models.MqttMessageRecord", 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<bool>("IsProcessed")
|
||
.HasColumnType("tinyint(1)")
|
||
.HasComment("是否已处理");
|
||
|
||
b.Property<string>("ParsedData")
|
||
.HasColumnType("longtext")
|
||
.HasComment("解析后数据");
|
||
|
||
b.Property<string>("Payload")
|
||
.HasColumnType("longtext")
|
||
.HasComment("消息内容");
|
||
|
||
b.Property<string>("ProcessResult")
|
||
.HasColumnType("longtext")
|
||
.HasComment("处理结果");
|
||
|
||
b.Property<DateTime?>("ProcessTime")
|
||
.HasColumnType("datetime(6)")
|
||
.HasComment("处理时间");
|
||
|
||
b.Property<DateTime>("ReceiveTime")
|
||
.HasColumnType("datetime(6)")
|
||
.HasComment("接收时间");
|
||
|
||
b.Property<string>("Topic")
|
||
.HasMaxLength(200)
|
||
.HasColumnType("varchar(200)")
|
||
.HasComment("主题");
|
||
|
||
b.Property<string>("UpdateBy")
|
||
.HasMaxLength(50)
|
||
.HasColumnType("varchar(50)")
|
||
.HasComment("");
|
||
|
||
b.Property<DateTime?>("UpdateTime")
|
||
.HasColumnType("datetime(6)")
|
||
.HasComment("");
|
||
|
||
b.HasKey("ID");
|
||
|
||
b.ToTable("MqttMessageRecord");
|
||
});
|
||
|
||
modelBuilder.Entity("HHWMS.Web.Models.MqttSubscription", 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<bool>("IsEnabled")
|
||
.HasColumnType("tinyint(1)")
|
||
.HasComment("是否启用");
|
||
|
||
b.Property<int>("Qos")
|
||
.HasColumnType("int")
|
||
.HasComment("服务质量(0,1,2)");
|
||
|
||
b.Property<string>("Remark")
|
||
.HasMaxLength(500)
|
||
.HasColumnType("varchar(500)")
|
||
.HasComment("备注");
|
||
|
||
b.Property<string>("Topic")
|
||
.IsRequired()
|
||
.HasMaxLength(200)
|
||
.HasColumnType("varchar(200)")
|
||
.HasComment("订阅主题");
|
||
|
||
b.Property<string>("UpdateBy")
|
||
.HasMaxLength(50)
|
||
.HasColumnType("varchar(50)")
|
||
.HasComment("");
|
||
|
||
b.Property<DateTime?>("UpdateTime")
|
||
.HasColumnType("datetime(6)")
|
||
.HasComment("");
|
||
|
||
b.HasKey("ID");
|
||
|
||
b.ToTable("MqttSubscription");
|
||
});
|
||
|
||
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<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("HeaderId");
|
||
|
||
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<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("HeaderId");
|
||
|
||
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")
|
||
.HasColumnType("longtext")
|
||
.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.HasIndex("HeaderId");
|
||
|
||
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")
|
||
.HasColumnType("longtext")
|
||
.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.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("HeaderId")
|
||
.OnDelete(DeleteBehavior.Cascade)
|
||
.IsRequired();
|
||
|
||
b.Navigation("ReceiptHeader");
|
||
});
|
||
|
||
modelBuilder.Entity("HHWMS.Web.Models.ShipmentDetail", b =>
|
||
{
|
||
b.HasOne("HHWMS.Web.Models.ShipmentHeader", "ShipmentHeader")
|
||
.WithMany("ShipmentDetails")
|
||
.HasForeignKey("HeaderId")
|
||
.OnDelete(DeleteBehavior.Cascade)
|
||
.IsRequired();
|
||
|
||
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("HHWMS.Web.Models.TaskDetail", b =>
|
||
{
|
||
b.HasOne("HHWMS.Web.Models.TaskHeader", "TaskHeader")
|
||
.WithMany("TaskDetails")
|
||
.HasForeignKey("HeaderId")
|
||
.OnDelete(DeleteBehavior.Cascade)
|
||
.IsRequired();
|
||
|
||
b.Navigation("TaskHeader");
|
||
});
|
||
|
||
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("HHWMS.Web.Models.TaskHeader", b =>
|
||
{
|
||
b.Navigation("TaskDetails");
|
||
});
|
||
|
||
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
|
||
}
|
||
}
|
||
}
|