//
using System;
using Business.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Volo.Abp.EntityFrameworkCore;
#nullable disable
namespace Business.Migrations
{
[DbContext(typeof(BusinessMigrationDbContext))]
partial class BusinessMigrationDbContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.MySql)
.HasAnnotation("ProductVersion", "6.0.5")
.HasAnnotation("Relational:MaxIdentifierLength", 64);
modelBuilder.Entity("Business.Models.Book", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)");
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("varchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property("CreationTime")
.HasColumnType("datetime(6)")
.HasColumnName("CreationTime");
b.Property("CreatorId")
.HasColumnType("char(36)")
.HasColumnName("CreatorId");
b.Property("Description")
.HasColumnType("longtext");
b.Property("ExtraProperties")
.HasColumnType("longtext")
.HasColumnName("ExtraProperties");
b.Property("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("tinyint(1)")
.HasDefaultValue(false)
.HasColumnName("IsDeleted");
b.Property("LastModificationTime")
.HasColumnType("datetime(6)")
.HasColumnName("LastModificationTime");
b.Property("LastModifierId")
.HasColumnType("char(36)")
.HasColumnName("LastModifierId");
b.Property("Name")
.IsRequired()
.HasColumnType("longtext");
b.Property("Price")
.HasColumnType("int");
b.Property("TenantId")
.HasColumnType("char(36)")
.HasColumnName("TenantId");
b.HasKey("Id");
b.ToTable("Book", (string)null);
});
modelBuilder.Entity("Business.Models.PrintTemplate", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)");
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("varchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property("Content")
.HasColumnType("longtext");
b.Property("CreationTime")
.HasColumnType("datetime(6)")
.HasColumnName("CreationTime");
b.Property("CreatorId")
.HasColumnType("char(36)")
.HasColumnName("CreatorId");
b.Property("ExtraProperties")
.HasColumnType("longtext")
.HasColumnName("ExtraProperties");
b.Property("IsDefault")
.HasColumnType("tinyint(1)");
b.Property("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("tinyint(1)")
.HasDefaultValue(false)
.HasColumnName("IsDeleted");
b.Property("LastModificationTime")
.HasColumnType("datetime(6)")
.HasColumnName("LastModificationTime");
b.Property("LastModifierId")
.HasColumnType("char(36)")
.HasColumnName("LastModifierId");
b.Property("Name")
.IsRequired()
.HasColumnType("longtext");
b.Property("Orientation")
.HasColumnType("int");
b.Property("PaperHeight")
.HasColumnType("double");
b.Property("PaperKind")
.HasColumnType("int");
b.Property("PaperWidth")
.HasColumnType("double");
b.Property("Remark")
.HasColumnType("longtext");
b.Property("Sort")
.HasColumnType("int");
b.Property("Status")
.HasColumnType("int");
b.Property("TempType")
.HasColumnType("int");
b.Property("TenantId")
.HasColumnType("char(36)")
.HasColumnName("TenantId");
b.HasKey("Id");
b.ToTable("base_print_template", (string)null);
});
modelBuilder.Entity("Bussiness.Model.MES.IC.ic_bom", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
b.Property("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("tinyint(1)")
.HasDefaultValue(false)
.HasColumnName("IsDeleted")
.HasComment("删除标识");
b.Property("begin_day")
.HasColumnType("datetime(6)")
.HasComment("生效日期");
b.Property("biller")
.HasMaxLength(80)
.HasColumnType("varchar(80)")
.HasComment("图片");
b.Property("bom_num")
.HasColumnType("int")
.HasComment("序号");
b.Property("bom_number")
.HasMaxLength(20)
.HasColumnType("varchar(20)")
.HasComment("bom单编号");
b.Property("chartnumber")
.HasMaxLength(80)
.HasColumnType("varchar(80)")
.HasComment("图表编号");
b.Property("check_date")
.HasColumnType("datetime(6)")
.HasComment("检验时间");
b.Property("checker")
.HasMaxLength(80)
.HasColumnType("varchar(80)")
.HasComment("检验人");
b.Property("create_by")
.HasColumnType("bigint")
.HasComment("创建人id");
b.Property("create_by_name")
.HasMaxLength(50)
.HasColumnType("varchar(50)")
.HasComment("创建人名称");
b.Property("create_time")
.HasColumnType("datetime(6)")
.HasComment("创建时间");
b.Property("end_day")
.HasColumnType("datetime(6)")
.HasComment("失效日期");
b.Property("factory_id")
.HasColumnType("bigint")
.HasComment("工厂ID");
b.Property("fse_status")
.HasColumnType("int")
.HasComment("使用状态");
b.Property("icitem_id")
.HasColumnType("bigint")
.HasComment("物料id");
b.Property("item_name")
.HasMaxLength(200)
.HasColumnType("varchar(200)")
.HasComment("物料名称");
b.Property("item_number")
.HasMaxLength(80)
.HasColumnType("varchar(80)")
.HasComment("物料代码");
b.Property("org_id")
.HasColumnType("bigint")
.HasComment("组织ID");
b.Property("product_designer")
.HasMaxLength(80)
.HasColumnType("varchar(80)")
.HasComment("产品设计员");
b.Property("product_principal")
.HasMaxLength(80)
.HasColumnType("varchar(80)")
.HasComment("生产负责人");
b.Property("tech_id")
.HasColumnType("bigint")
.HasComment("工艺主键");
b.Property("tech_name")
.HasMaxLength(20)
.HasColumnType("varchar(20)")
.HasComment("工艺名称");
b.Property("tenant_id")
.HasColumnType("bigint")
.HasComment("企业ID");
b.Property("unit")
.HasMaxLength(20)
.HasColumnType("varchar(20)")
.HasComment("单位");
b.Property("update_by")
.HasColumnType("bigint")
.HasComment("修改人");
b.Property("update_by_name")
.HasMaxLength(50)
.HasColumnType("varchar(50)")
.HasComment("修改人名称");
b.Property("update_time")
.HasColumnType("datetime(6)")
.HasComment("修改时间");
b.Property("use_date")
.HasColumnType("datetime(6)")
.HasComment("bom创建时间");
b.Property("user")
.HasMaxLength(20)
.HasColumnType("varchar(20)")
.HasComment("bom创建人");
b.Property("version")
.HasMaxLength(80)
.HasColumnType("varchar(80)")
.HasComment("版本");
b.HasKey("Id");
b.ToTable("ic_bom", (string)null);
b.HasComment("物料BOM");
});
modelBuilder.Entity("Bussiness.Model.MES.IC.ic_bom_child", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
b.Property("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("tinyint(1)")
.HasDefaultValue(false)
.HasColumnName("IsDeleted")
.HasComment("删除标识");
b.Property("backflush")
.HasColumnType("int")
.HasComment("是否倒冲");
b.Property("begin_day")
.HasColumnType("datetime(6)")
.HasComment("生效日期");
b.Property("bom_id")
.HasColumnType("bigint")
.HasComment("bom主键");
b.Property("bom_number")
.HasMaxLength(20)
.HasColumnType("varchar(20)")
.HasComment("bom单编号");
b.Property("child_num")
.HasColumnType("int")
.HasComment("序号");
b.Property("create_by")
.HasColumnType("bigint")
.HasComment("创建人id");
b.Property("create_by_name")
.HasMaxLength(50)
.HasColumnType("varchar(50)")
.HasComment("创建人名称");
b.Property("create_time")
.HasColumnType("datetime(6)")
.HasComment("创建时间");
b.Property("end_day")
.HasColumnType("datetime(6)")
.HasComment("失效日期");
b.Property("entryid")
.HasColumnType("int")
.HasComment("顺序号");
b.Property("erp_cls")
.HasColumnType("int")
.HasComment("物料属性");
b.Property("factory_id")
.HasColumnType("bigint")
.HasComment("工厂ID");
b.Property("haveicsubs")
.HasColumnType("int")
.HasComment("存在替代关系");
b.Property("icitem_id")
.HasColumnType("bigint")
.HasComment("物料id");
b.Property("icitem_ids")
.HasMaxLength(2000)
.HasColumnType("varchar(2000)")
.HasComment("组合模式");
b.Property("is_bom")
.HasColumnType("int")
.HasComment("是否是BOM");
b.Property("is_replace")
.HasColumnType("int")
.HasComment("是否群组替代");
b.Property("iskeyitem")
.HasColumnType("int")
.HasComment("是否关键件");
b.Property("item_name")
.HasMaxLength(200)
.HasColumnType("varchar(200)")
.HasComment("物料名称");
b.Property("item_number")
.HasMaxLength(80)
.HasColumnType("varchar(80)")
.HasComment("物料代码");
b.Property("note")
.HasMaxLength(1000)
.HasColumnType("varchar(1000)")
.HasComment("备注");
b.Property("op_time")
.HasColumnType("datetime(6)")
.HasComment("操作时间");
b.Property("org_id")
.HasColumnType("bigint")
.HasComment("组织ID");
b.Property("qty")
.HasPrecision(20, 8)
.HasColumnType("decimal(20,8)")
.HasComment("用量");
b.Property("scrap")
.HasPrecision(20, 8)
.HasColumnType("decimal(20,8)")
.HasComment("损耗率");
b.Property("substitute_code")
.HasMaxLength(20)
.HasColumnType("varchar(20)")
.HasComment("群组代码");
b.Property("tenant_id")
.HasColumnType("bigint")
.HasComment("企业ID");
b.Property("type")
.HasColumnType("int")
.HasComment("物料类型");
b.Property("unit")
.HasMaxLength(20)
.HasColumnType("varchar(20)")
.HasComment("单位");
b.Property("update_by")
.HasColumnType("bigint")
.HasComment("修改人");
b.Property("update_by_name")
.HasMaxLength(50)
.HasColumnType("varchar(50)")
.HasComment("修改人名称");
b.Property("update_time")
.HasColumnType("datetime(6)")
.HasComment("修改时间");
b.Property("use_status")
.HasColumnType("int")
.HasComment("使用状态");
b.HasKey("Id");
b.ToTable("ic_bom_child", (string)null);
b.HasComment("物料BOM明细");
});
modelBuilder.Entity("Bussiness.Model.MES.IC.ic_factory_details", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
b.Property("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("tinyint(1)")
.HasDefaultValue(false)
.HasColumnName("IsDeleted")
.HasComment("删除标识");
b.Property("bang_id")
.HasColumnType("bigint")
.HasComment("计算id");
b.Property("batch_manager")
.HasColumnType("int")
.HasComment("是否采用业务批次管理");
b.Property("cav_acct")
.HasColumnType("bigint")
.HasComment("标准成本调整差异科目代码");
b.Property("check_cycle")
.HasPrecision(20, 8)
.HasColumnType("decimal(20,8)")
.HasComment("盘点周期");
b.Property("check_cycunit")
.HasMaxLength(80)
.HasColumnType("varchar(80)")
.HasComment("盘点周期单位");
b.Property("create_by")
.HasColumnType("bigint")
.HasComment("创建人id");
b.Property("create_by_name")
.HasMaxLength(50)
.HasColumnType("varchar(50)")
.HasComment("创建人名称");
b.Property("create_time")
.HasColumnType("datetime(6)")
.HasComment("创建时间");
b.Property("daily_consume")
.HasPrecision(20, 8)
.HasColumnType("decimal(20,8)")
.HasComment("日消耗量");
b.Property("days_per")
.HasColumnType("int")
.HasComment("每周_月第天");
b.Property("default_chkloc")
.HasColumnType("bigint")
.HasComment("默认待检仓库");
b.Property("default_chksp")
.HasColumnType("bigint")
.HasComment("默认待检仓位");
b.Property("default_loc")
.HasColumnType("bigint")
.HasComment("默认仓库");
b.Property("default_manager")
.HasMaxLength(80)
.HasColumnType("varchar(80)")
.HasComment("默认仓管员");
b.Property("default_sp")
.HasColumnType("bigint")
.HasComment("默认仓位");
b.Property("factory_fode")
.HasMaxLength(80)
.HasColumnType("varchar(80)")
.HasComment("工厂编码");
b.Property("factory_id")
.HasColumnType("bigint")
.HasComment("工厂ID");
b.Property("high_limit")
.HasPrecision(20, 8)
.HasColumnType("decimal(20,8)")
.HasComment("最高存量");
b.Property("icitem_id")
.HasColumnType("bigint")
.HasComment("物料id");
b.Property("icitem_name")
.HasMaxLength(80)
.HasColumnType("varchar(80)")
.HasComment("物料名称");
b.Property("item_shelve")
.HasMaxLength(80)
.HasColumnType("varchar(80)")
.HasComment("货架信息");
b.Property("last_checkdate")
.HasColumnType("datetime(6)")
.HasComment("上次盘点日期");
b.Property("low_limit")
.HasPrecision(20, 8)
.HasColumnType("decimal(20,8)")
.HasComment("最低存量");
b.Property("mat_enter_days")
.HasPrecision(20, 8)
.HasColumnType("decimal(20,8)")
.HasComment("原材料入库时间/天");
b.Property("mcv_acct")
.HasColumnType("bigint")
.HasComment("材料成本差异科目代码");
b.Property("note")
.HasMaxLength(1000)
.HasColumnType("varchar(1000)")
.HasComment("特殊备注");
b.Property("order_leadtime")
.IsRequired()
.HasPrecision(20, 8)
.HasColumnType("decimal(20,8)")
.HasComment("下单前置期_天");
b.Property("ordissu_days")
.HasPrecision(20, 8)
.HasColumnType("decimal(20,8)")
.HasComment("工单发料时间/天");
b.Property("org_id")
.HasColumnType("bigint")
.HasComment("组织ID");
b.Property("pcv_acct")
.HasColumnType("bigint")
.HasComment("加工费差异科目代码");
b.Property("pick_type")
.HasColumnType("bigint")
.HasComment("领料类型");
b.Property("prd_out_days")
.HasPrecision(20, 8)
.HasColumnType("decimal(20,8)")
.HasComment("成品发货时间/天");
b.Property("prdenter_days")
.HasPrecision(20, 8)
.HasColumnType("decimal(20,8)")
.HasComment("成品入库时间/天");
b.Property("product_line")
.HasMaxLength(80)
.HasColumnType("varchar(80)")
.HasComment("产品线");
b.Property("production_leadtime")
.IsRequired()
.HasPrecision(20, 8)
.HasColumnType("decimal(20,8)")
.HasComment("生产中提前期_天");
b.Property("qty_max")
.HasPrecision(20, 8)
.HasColumnType("decimal(20,8)")
.HasComment("最大订货量");
b.Property("raw_matreceiv_days")
.HasPrecision(20, 8)
.HasColumnType("decimal(20,8)")
.HasComment("原材料收货处理时间/天");
b.Property("sl_acct")
.HasColumnType("bigint")
.HasComment("废品损失科目代码");
b.Property("stock_leadtime")
.IsRequired()
.HasPrecision(20, 8)
.HasColumnType("decimal(20,8)")
.HasComment("仓库中提前期_天");
b.Property("stock_time")
.HasColumnType("int")
.HasComment("是否需要库龄管理");
b.Property("tenant_id")
.HasColumnType("bigint")
.HasComment("企业ID");
b.Property("transportation_leadtime")
.IsRequired()
.HasPrecision(20, 8)
.HasColumnType("decimal(20,8)")
.HasComment("运输中提前期_天");
b.Property("update_by")
.HasColumnType("bigint")
.HasComment("修改人");
b.Property("update_by_name")
.HasMaxLength(50)
.HasColumnType("varchar(50)")
.HasComment("修改人名称");
b.Property("update_time")
.HasColumnType("datetime(6)")
.HasComment("修改时间");
b.Property("warehouse_note")
.HasMaxLength(1000)
.HasColumnType("varchar(1000)")
.HasComment("库存备注");
b.HasKey("Id");
b.ToTable("ic_factory_details", (string)null);
b.HasComment("工厂物料明细表");
});
modelBuilder.Entity("Bussiness.Model.MES.IC.ic_item", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
b.Property("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("tinyint(1)")
.HasDefaultValue(false)
.HasColumnName("IsDeleted")
.HasComment("删除标识");
b.Property("allowbatch")
.HasColumnType("int")
.HasComment("批号管理");
b.Property("allowmanu")
.HasColumnType("int")
.HasComment("允许生产");
b.Property("allowout")
.HasColumnType("int")
.HasComment("允许委外");
b.Property("allowpur")
.HasColumnType("int")
.HasComment("允许采购");
b.Property("allowsale")
.HasColumnType("int")
.HasComment("允许销售");
b.Property("allowserial")
.HasColumnType("int")
.HasComment("序列号管理");
b.Property("box_model")
.HasMaxLength(200)
.HasColumnType("varchar(200)")
.HasComment("盒贴规格");
b.Property("chart_number")
.HasMaxLength(80)
.HasColumnType("varchar(80)")
.HasComment("图号");
b.Property("check_bybarcode")
.HasMaxLength(80)
.HasColumnType("varchar(80)")
.HasComment("严格进行二维码数量校验");
b.Property("create_by")
.HasColumnType("bigint")
.HasComment("创建人id");
b.Property("create_by_name")
.HasMaxLength(50)
.HasColumnType("varchar(50)")
.HasComment("创建人名称");
b.Property("create_time")
.HasColumnType("datetime(6)")
.HasComment("创建时间");
b.Property("cubic_measure")
.HasMaxLength(80)
.HasColumnType("varchar(80)")
.HasComment("长度单位");
b.Property("enable_warning")
.HasColumnType("int")
.HasComment("启用预警");
b.Property("erp_cls")
.HasColumnType("int")
.HasComment("物料属性");
b.Property("erp_cls_name")
.HasColumnType("longtext")
.HasComment("物料属性");
b.Property("erp_oldnumber")
.HasMaxLength(80)
.HasColumnType("varchar(80)")
.HasComment("erp旧料号");
b.Property("factory_id")
.HasColumnType("bigint")
.HasComment("工厂ID");
b.Property("fms_number")
.HasMaxLength(80)
.HasColumnType("varchar(80)")
.HasComment("fms旧料号");
b.Property("full_name")
.HasMaxLength(255)
.HasColumnType("varchar(255)")
.HasComment("全名");
b.Property("fversion")
.HasMaxLength(80)
.HasColumnType("varchar(80)")
.HasComment("版本号");
b.Property("gross_weight")
.HasPrecision(20, 8)
.HasColumnType("decimal(20,8)")
.HasComment("毛重");
b.Property("hb_level")
.HasColumnType("bigint")
.HasComment("环保等级");
b.Property("height")
.HasPrecision(20, 8)
.HasColumnType("decimal(20,8)")
.HasComment("高度");
b.Property("is_equipment")
.HasColumnType("int")
.HasComment("是否为设备");
b.Property("iskeyitem")
.HasColumnType("int")
.HasComment("是否关键件");
b.Property("item_level")
.HasColumnType("bigint")
.HasComment("物料等级");
b.Property("length")
.HasPrecision(20, 8)
.HasColumnType("decimal(20,8)")
.HasComment("长度");
b.Property("matatt")
.HasColumnType("bigint")
.HasComment("物料类别");
b.Property("maund")
.HasMaxLength(80)
.HasColumnType("varchar(80)")
.HasComment("重量单位");
b.Property("model")
.HasMaxLength(200)
.HasColumnType("varchar(200)")
.HasComment("规格型号");
b.Property("name")
.HasMaxLength(80)
.HasColumnType("varchar(80)")
.HasComment("物料名称");
b.Property("net_weight")
.HasPrecision(20, 8)
.HasColumnType("decimal(20,8)")
.HasComment("净重");
b.Property("number")
.HasMaxLength(80)
.HasColumnType("varchar(80)")
.HasComment("物料编码");
b.Property("org_id")
.HasColumnType("bigint")
.HasComment("组织ID");
b.Property("output_type_id")
.HasColumnType("bigint")
.HasComment("出库类型");
b.Property("photo")
.HasMaxLength(80)
.HasColumnType("varchar(80)")
.HasComment("图片");
b.Property("picktype")
.HasColumnType("bigint")
.HasComment("领料类型");
b.Property("size")
.HasPrecision(20, 8)
.HasColumnType("decimal(20,8)")
.HasComment("体积");
b.Property("source")
.HasMaxLength(200)
.HasColumnType("varchar(200)")
.HasComment("来源");
b.Property("standard_manhour")
.HasPrecision(20, 8)
.HasColumnType("decimal(20,8)")
.HasComment("单位标准工时_小时");
b.Property("tenant_id")
.HasColumnType("bigint")
.HasComment("企业ID");
b.Property("unit")
.HasMaxLength(80)
.HasColumnType("varchar(80)")
.HasComment("单位");
b.Property("unit_qty")
.HasPrecision(20, 8)
.HasColumnType("decimal(20,8)")
.HasComment("单位包装数量");
b.Property("unititem_amount")
.HasPrecision(20, 8)
.HasColumnType("decimal(20,8)")
.HasComment("单位材料定额_元");
b.Property("update_by")
.HasColumnType("bigint")
.HasComment("修改人");
b.Property("update_by_name")
.HasMaxLength(50)
.HasColumnType("varchar(50)")
.HasComment("修改人名称");
b.Property("update_time")
.HasColumnType("datetime(6)")
.HasComment("修改时间");
b.Property("width")
.HasPrecision(20, 8)
.HasColumnType("decimal(20,8)")
.HasComment("宽度");
b.HasKey("Id");
b.ToTable("ic_item", (string)null);
b.HasComment("物料详情");
});
modelBuilder.Entity("Bussiness.Model.MES.IC.ic_item_ie", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
b.Property("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("tinyint(1)")
.HasDefaultValue(false)
.HasColumnName("IsDeleted")
.HasComment("删除标识");
b.Property("back_flush_sp")
.HasMaxLength(80)
.HasColumnType("varchar(80)")
.HasComment("倒冲仓位");
b.Property("back_flush_stock")
.HasMaxLength(80)
.HasColumnType("varchar(80)")
.HasComment("倒冲仓库");
b.Property("create_by")
.HasColumnType("bigint")
.HasComment("创建人id");
b.Property("create_by_name")
.HasMaxLength(50)
.HasColumnType("varchar(50)")
.HasComment("创建人名称");
b.Property("create_time")
.HasColumnType("datetime(6)")
.HasComment("创建时间");
b.Property("factory_id")
.HasColumnType("bigint")
.HasComment("工厂ID");
b.Property("icitem_id")
.HasColumnType("bigint")
.HasComment("物料id");
b.Property("ir_note")
.HasMaxLength(1000)
.HasColumnType("varchar(1000)")
.HasComment("ie备注");
b.Property("isbackflush")
.HasColumnType("int")
.HasComment("是否倒冲");
b.Property("org_id")
.HasColumnType("bigint")
.HasComment("组织ID");
b.Property("product_principal")
.HasMaxLength(80)
.HasColumnType("varchar(80)")
.HasComment("生产负责人");
b.Property("put_integer")
.HasColumnType("int")
.HasComment("投料自动取整");
b.Property("tenant_id")
.HasColumnType("bigint")
.HasComment("企业ID");
b.Property("update_by")
.HasColumnType("bigint")
.HasComment("修改人");
b.Property("update_by_name")
.HasMaxLength(50)
.HasColumnType("varchar(50)")
.HasComment("修改人名称");
b.Property("update_time")
.HasColumnType("datetime(6)")
.HasComment("修改时间");
b.HasKey("Id");
b.ToTable("ic_item_ie", (string)null);
b.HasComment("物料ie信息表");
});
modelBuilder.Entity("Bussiness.Model.MES.IC.ic_item_inventory", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
b.Property("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("tinyint(1)")
.HasDefaultValue(false)
.HasColumnName("IsDeleted")
.HasComment("删除标识");
b.Property("bal")
.HasPrecision(20, 8)
.HasColumnType("decimal(20,8)")
.HasComment("金额");
b.Property("batch_no")
.HasMaxLength(80)
.HasColumnType("varchar(80)")
.HasComment("批次号");
b.Property("create_by")
.HasColumnType("bigint")
.HasComment("创建人id");
b.Property("create_by_name")
.HasMaxLength(50)
.HasColumnType("varchar(50)")
.HasComment("创建人名称");
b.Property("create_time")
.HasColumnType("datetime(6)")
.HasComment("创建时间");
b.Property("factory_id")
.HasColumnType("bigint")
.HasComment("工厂ID");
b.Property("icitem_stock_id")
.HasColumnType("bigint")
.HasComment("物料库存主键");
b.Property("kf_date")
.HasColumnType("datetime(6)")
.HasComment("保质期时间");
b.Property("kf_period")
.HasPrecision(20, 8)
.HasColumnType("decimal(20,8)")
.HasComment("保质期时长");
b.Property("org_id")
.HasColumnType("bigint")
.HasComment("组织ID");
b.Property("qty")
.HasPrecision(20, 8)
.HasColumnType("decimal(20,8)")
.HasComment("数量");
b.Property("qty_lock")
.HasPrecision(20, 8)
.HasColumnType("decimal(20,8)")
.HasComment("锁定库存");
b.Property("rq")
.HasColumnType("datetime(6)")
.HasComment("日期");
b.Property("sec_qty")
.HasPrecision(20, 8)
.HasColumnType("decimal(20,8)")
.HasComment("安全库存");
b.Property("stock_id")
.HasColumnType("bigint")
.HasComment("仓库id");
b.Property("stock_name")
.HasMaxLength(80)
.HasColumnType("varchar(80)")
.HasComment("仓库名称");
b.Property("stock_place_code")
.HasMaxLength(80)
.HasColumnType("varchar(80)")
.HasComment("库位编码");
b.Property("stock_place_id")
.HasColumnType("bigint")
.HasComment("库位id");
b.Property("tenant_id")
.HasColumnType("bigint")
.HasComment("企业ID");
b.Property("unit")
.HasMaxLength(80)
.HasColumnType("varchar(80)")
.HasComment("单位");
b.Property("update_by")
.HasColumnType("bigint")
.HasComment("修改人");
b.Property("update_by_name")
.HasMaxLength(50)
.HasColumnType("varchar(50)")
.HasComment("修改人名称");
b.Property("update_time")
.HasColumnType("datetime(6)")
.HasComment("修改时间");
b.HasKey("Id");
b.ToTable("ic_item_inventory", (string)null);
b.HasComment("物料库存信息表");
});
modelBuilder.Entity("Bussiness.Model.MES.IC.ic_item_pur", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
b.Property("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("tinyint(1)")
.HasDefaultValue(false)
.HasColumnName("IsDeleted")
.HasComment("删除标识");
b.Property("bang_id")
.HasColumnType("bigint")
.HasComment("计算id");
b.Property("create_by")
.HasColumnType("bigint")
.HasComment("创建人id");
b.Property("create_by_name")
.HasMaxLength(50)
.HasColumnType("varchar(50)")
.HasComment("创建人名称");
b.Property("create_time")
.HasColumnType("datetime(6)")
.HasComment("创建时间");
b.Property("currency_type")
.IsRequired()
.HasColumnType("bigint")
.HasComment("币种");
b.Property("factory_id")
.HasColumnType("bigint")
.HasComment("工厂ID");
b.Property("ic_plan_id")
.HasColumnType("bigint")
.HasComment("采购计划id");
b.Property("icitem_id")
.HasColumnType("bigint")
.HasComment("物料id");
b.Property("icitem_name")
.HasMaxLength(80)
.HasColumnType("varchar(80)")
.HasComment("物料名称");
b.Property("netpurchase_price")
.HasPrecision(20, 8)
.HasColumnType("decimal(20,8)")
.HasComment("采购净价(不含税)");
b.Property("org_id")
.HasColumnType("bigint")
.HasComment("组织ID");
b.Property("purchase_unit")
.HasMaxLength(80)
.HasColumnType("varchar(80)")
.HasComment("采购计量单位");
b.Property