// 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("purcher") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("采购员"); b.Property("purchgroup") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("采购组"); b.Property("supplier_id") .HasColumnType("bigint") .HasComment("供应商id"); b.Property("supplier_name") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("供应商名称"); b.Property("supplier_number") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("供应商编码"); b.Property("taxrate") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .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_pur", (string)null); b.HasComment("物料采购报价单"); }); modelBuilder.Entity("Bussiness.Model.MES.IC.ic_item_stock", 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("factory_fode") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("工厂编码"); b.Property("factory_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("org_id") .HasColumnType("bigint") .HasComment("组织ID"); b.Property("quantity_in_transit") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("调拨在途数量"); b.Property("sqty") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .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_stock", (string)null); b.HasComment("物料库存表"); }); modelBuilder.Entity("Bussiness.Model.MES.IC.ic_metering_unit", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("tinyint(1)") .HasDefaultValue(false) .HasColumnName("IsDeleted") .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("icitem_name") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("物料名称"); b.Property("order_unit") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("采购计量单位"); b.Property("org_id") .HasColumnType("bigint") .HasComment("组织ID"); b.Property("product_unit") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("生产计量单位"); b.Property("qty_decimal") .HasColumnType("int") .HasComment("数量精度"); b.Property("sale_unit") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("销售计量单位"); b.Property("store_unit") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("库存计量单位"); b.Property("tenant_id") .HasColumnType("bigint") .HasComment("企业ID"); b.Property("unit") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("基本计量单位"); b.Property("unit_group") .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_metering_unit", (string)null); b.HasComment("物料计量表"); }); modelBuilder.Entity("Bussiness.Model.MES.IC.ic_plan", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("tinyint(1)") .HasDefaultValue(false) .HasColumnName("IsDeleted") .HasComment("删除标识"); b.Property("aux_prop_plan") .HasColumnType("int") .HasComment("辅助属性参与计划运算"); b.Property("bang_id") .HasColumnType("bigint") .HasComment("计算id"); b.Property("bat_change_economy") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("变动提前期批量"); b.Property("book_plan") .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("factory_code") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("工厂编码"); b.Property("factory_id") .HasColumnType("bigint") .HasComment("工厂ID"); b.Property("fix_leadtime") .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("isfixedreorder") .HasColumnType("int") .HasComment("设置为固定再订货点"); b.Property("lead_time") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("变动提前期"); b.Property("order_inter_val") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("订货间隔期_天"); b.Property("order_point") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("再订货点"); b.Property("order_trategy") .HasColumnType("int") .HasComment("订货策略"); b.Property("org_id") .HasColumnType("bigint") .HasComment("组织ID"); b.Property("plan_trategy") .HasColumnType("int") .HasComment("计划策略"); b.Property("planner_name") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("计划员"); b.Property("planner_num") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("计划员_工号"); b.Property("plannote") .HasMaxLength(1000) .HasColumnType("varchar(1000)") .HasComment("计划备注"); b.Property("secinv") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("安全库存数量"); b.Property("secinv_ratio") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("安全库存触发采购比例"); b.Property("tenant_id") .HasColumnType("bigint") .HasComment("企业ID"); b.Property("total_tqq") .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.HasKey("Id"); b.ToTable("ic_plan", (string)null); b.HasComment("物料采购计划表"); }); modelBuilder.Entity("Bussiness.Model.MES.IC.ic_substitute", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("tinyint(1)") .HasDefaultValue(false) .HasColumnName("IsDeleted") .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("org_id") .HasColumnType("bigint") .HasComment("组织ID"); b.Property("substitute_code") .HasMaxLength(20) .HasColumnType("varchar(20)") .HasComment("群组代码"); b.Property("substitute_mode") .HasColumnType("int") .HasComment("替代方式"); b.Property("substitute_strategy") .HasColumnType("int") .HasComment("替代策略"); b.Property("substitute_type") .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_substitute", (string)null); b.HasComment("替代群组"); }); modelBuilder.Entity("Bussiness.Model.MES.IC.ic_substitute_all", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("tinyint(1)") .HasDefaultValue(false) .HasColumnName("IsDeleted") .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("order_num") .HasColumnType("int") .HasComment("排序"); b.Property("org_id") .HasColumnType("bigint") .HasComment("组织ID"); b.Property("product_line") .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("产品线"); b.Property("replace_name") .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("替代名称"); b.Property("replace_relation") .HasMaxLength(2000) .HasColumnType("varchar(2000)") .HasComment("替代关系"); b.Property("replace_way") .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("替代方式"); b.Property("substitute_code") .HasMaxLength(20) .HasColumnType("varchar(20)") .HasComment("群组代码"); b.Property("substitute_id") .HasColumnType("bigint") .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.Property("use_model") .HasMaxLength(5000) .HasColumnType("varchar(5000)") .HasComment("使用机型"); b.HasKey("Id"); b.ToTable("ic_substitute_all", (string)null); b.HasComment("物料替代多群组"); }); modelBuilder.Entity("Bussiness.Model.MES.IC.ic_substitute_all_dtl", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("tinyint(1)") .HasDefaultValue(false) .HasColumnName("IsDeleted") .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("物料主键"); b.Property("ismain") .HasColumnType("int") .HasComment("主/替"); b.Property("num") .HasColumnType("int") .HasComment("序号"); b.Property("org_id") .HasColumnType("bigint") .HasComment("组织ID"); b.Property("replace_amount") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("替代数量"); b.Property("substitute_allid") .HasColumnType("bigint") .HasComment("替代多群组主键"); b.Property("substitute_code") .HasMaxLength(20) .HasColumnType("varchar(20)") .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_substitute_all_dtl", (string)null); b.HasComment("物料替代多群组明细"); }); modelBuilder.Entity("Bussiness.Model.Production.mes_moentry", 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("factory_id") .HasColumnType("bigint") .HasComment("工厂ID"); b.Property("fbill_no") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("订单编号"); b.Property("fentry_id") .HasColumnType("bigint") .HasComment("订单行号"); b.Property("moentry_moid") .HasColumnType("bigint") .HasComment("工单主表id"); b.Property("moentry_mono") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("工单编号"); b.Property("morder_production_number") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("工单生产数量(计划数量)"); b.Property("need_number") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("需求数量"); b.Property("org_id") .HasColumnType("bigint") .HasComment("组织ID"); b.Property("remaining_number") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("剩余可用数量"); b.Property("soentry_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("mes_moentry", (string)null); b.HasComment("生成工单子表"); }); modelBuilder.Entity("Bussiness.Model.Production.mes_mooccupy", 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("factory_id") .HasColumnType("bigint") .HasComment("工厂ID"); b.Property("fbill_no") .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("订单号"); b.Property("fentry_id") .HasColumnType("bigint") .HasComment("行号"); b.Property("fitem_name") .IsRequired() .HasMaxLength(500) .HasColumnType("varchar(500)") .HasComment("物料名称"); b.Property("fitem_number") .IsRequired() .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("物料编码"); b.Property("fmodel") .HasMaxLength(500) .HasColumnType("varchar(500)") .HasComment("规格型号"); b.Property("moo_cbr") .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("变更人"); b.Property("moo_creason") .HasMaxLength(500) .HasColumnType("varchar(500)") .HasComment("变更原因"); b.Property("moo_ctime") .HasColumnType("datetime(6)") .HasComment("变更时间"); b.Property("moo_etime") .HasColumnType("datetime(6)") .HasComment("结束时间"); b.Property("moo_id_billid") .HasColumnType("bigint") .HasComment("订单id"); b.Property("moo_id_type") .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("类型--原始,分配"); b.Property("moo_mo") .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("工单号"); b.Property("moo_moid") .HasColumnType("bigint") .HasComment("工单id"); b.Property("moo_qty") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("占用量"); b.Property("moo_state") .HasColumnType("int") .HasComment("占用状态-1占用 默认0"); b.Property("moo_stime") .HasColumnType("datetime(6)") .HasComment("开始时间"); b.Property("org_id") .HasColumnType("bigint") .HasComment("组织ID"); 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("mes_mooccupy", (string)null); b.HasComment("在制工单占用记录表"); }); modelBuilder.Entity("Bussiness.Model.Production.mes_morder", 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("bom_number") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("bom编码"); b.Property("convey_date") .HasColumnType("datetime(6)") .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("fmodel") .HasMaxLength(500) .HasColumnType("varchar(500)") .HasComment("规格型号"); b.Property("fms_number") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("fms旧料号"); b.Property("inspection_number") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("报检数量"); b.Property("inventory_number") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("入库数量"); b.Property("mat_end_date") .HasColumnType("datetime(6)") .HasComment("基于物料结束时间"); b.Property("mat_start_date") .HasColumnType("datetime(6)") .HasComment("基于物料开始时间"); b.Property("moentry_etime") .HasColumnType("datetime(6)") .HasComment("生产工单结束日期"); b.Property("moentry_prd") .HasColumnType("bigint") .HasComment("生产组织id"); b.Property("moentry_prdname") .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("生产组织名称"); b.Property("moentry_startup_status") .HasColumnType("int") .HasComment("启动状态"); b.Property("moentry_stime") .HasColumnType("datetime(6)") .HasComment("生产工单开始日期"); b.Property("moentry_sys_etime") .HasColumnType("datetime(6)") .HasComment("系统建议完工时间"); b.Property("moentry_sys_stime") .HasColumnType("datetime(6)") .HasComment("系统建议开工时间"); b.Property("moentry_wrkc") .HasColumnType("bigint") .HasComment("工作中心id"); b.Property("moentry_wrkcname") .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("工作中心名称"); b.Property("morder_batchno") .HasMaxLength(100) .HasColumnType("varchar(100)") .HasComment("工单批号--(批号管理的物料出入库要使用)"); b.Property("morder_date") .HasColumnType("datetime(6)") .HasComment("生产工单日期"); b.Property("morder_fstate") .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("前状态--计划、下达、完成、关闭"); b.Property("morder_icitem_type") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("工单所属物料类型"); b.Property("morder_need_time") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("工单所需工时"); b.Property("morder_no") .IsRequired() .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("生产工单编号"); b.Property("morder_production_number") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("工单生产数量(计划数量)"); b.Property("morder_progress") .HasMaxLength(1000) .HasColumnType("varchar(1000)") .HasComment("工单进度"); b.Property("morder_state") .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("生产工单状态(订单状态:初始,下达,暂停、完成)"); b.Property("morder_type") .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("生产工单类型(类型:计划工单、销售工单、委外工单、预测工单)"); b.Property("need_number") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("需求数量"); b.Property("notice_qty") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("已开入库通知单数量"); b.Property("org_id") .HasColumnType("bigint") .HasComment("组织ID"); b.Property("overdue_Remark") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("逾期原因备注"); b.Property("parent_id") .HasColumnType("bigint") .HasComment("上级工单id"); b.Property("pause_time") .HasColumnType("datetime(6)") .HasComment("最近暂停时间"); b.Property("picking_qty") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("已领料数量"); b.Property("planner_end_date") .HasColumnType("datetime(6)") .HasComment("计划员设定结束时间"); b.Property("planner_name") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("计划员名称"); b.Property("planner_num") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("计划员工号"); b.Property("planner_start_date") .HasColumnType("datetime(6)") .HasComment("计划员设定开始时间"); b.Property("product_code") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("产品代码"); b.Property("product_name") .HasMaxLength(500) .HasColumnType("varchar(500)") .HasComment("产品名称"); b.Property("project_name") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("项目名称"); b.Property("qualified_number") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("合格数量"); b.Property("reality_end_time") .HasColumnType("datetime(6)") .HasComment("实际结束时间"); b.Property("reality_start_time") .HasColumnType("datetime(6)") .HasComment("实际开始时间"); b.Property("relation_moid") .HasColumnType("bigint") .HasComment("关联工单id"); b.Property("relation_mono") .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("关联编号"); b.Property("remaining_number") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("剩余可用数量"); b.Property("restart_time") .HasColumnType("datetime(6)") .HasComment("最近重启时间"); b.Property("start_time") .HasColumnType("datetime(6)") .HasComment("开始时间"); 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.Property("work_number") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("报工数量"); b.Property("work_order_type") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("工单类型(类型:发货工单、试产工单、备库工单、常规工单、返工工单)"); b.HasKey("Id"); b.ToTable("mes_morder", (string)null); b.HasComment("工单主表"); }); modelBuilder.Entity("Bussiness.Model.Production.mes_morder_loss_time", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("tinyint(1)") .HasDefaultValue(false) .HasColumnName("IsDeleted") .HasComment("删除标识"); b.Property("card_no") .HasMaxLength(50) .HasColumnType("varchar(50)") .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("dept_id") .HasColumnType("bigint") .HasComment("责任单位id"); b.Property("dept_name") .IsRequired() .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("责任单位名称"); b.Property("description") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("描述"); b.Property("end_time") .HasColumnType("datetime(6)") .HasComment("损失结束时间"); b.Property("factory_id") .HasColumnType("bigint") .HasComment("工厂ID"); b.Property("is_stop_production") .HasColumnType("int") .HasComment("是否停产(0未停产,1停产)"); b.Property("loss_work_hours") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("损失时间(用户输入)"); b.Property("morder_id") .HasColumnType("bigint") .HasComment("生产工单id"); b.Property("morder_no") .IsRequired() .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("生产工单编号"); b.Property("morder_no_row") .HasColumnType("int") .HasComment("生产工单编号"); b.Property("org_id") .HasColumnType("bigint") .HasComment("组织ID"); b.Property("reason") .IsRequired() .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("损失时间原因"); b.Property("recorder_id") .HasColumnType("bigint") .HasComment("记录人id"); b.Property("recorder_name") .IsRequired() .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("记录人名称"); b.Property("staff_qty") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("人员数量"); b.Property("start_time") .HasColumnType("datetime(6)") .HasComment("损失开始时间"); b.Property("sys_loss_time") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .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.Property("workc_id") .HasColumnType("bigint") .HasComment("工作中心id"); b.Property("workc_name") .IsRequired() .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("工作中心名称"); b.HasKey("Id"); b.ToTable("mes_morder_loss_time", (string)null); b.HasComment("工单损失时间表"); }); modelBuilder.Entity("Bussiness.Model.Production.mes_oorder", 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("bom_number") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("bom编码"); 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("ffms_number") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("fms旧料号"); b.Property("inspection_number") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("报检数量"); b.Property("inventory_number") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("入库数量"); b.Property("moentry_on") .HasColumnType("int") .HasComment("启动状态"); b.Property("morder_production_number") .HasPrecision(20, 10) .HasColumnType("decimal(20,10)") .HasComment("工单生产数量(计划数量)"); b.Property("morder_progress") .HasMaxLength(500) .HasColumnType("varchar(500)") .HasComment("工单进度"); b.Property("need_icitem_status") .HasColumnType("int") .HasComment("所需物料是否充足 1-充足 0-缺料"); b.Property("need_number") .HasPrecision(20, 10) .HasColumnType("decimal(20,10)") .HasComment("需求数量"); b.Property("notice_qty") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("已开通知单数量"); b.Property("ooentry_etime") .HasColumnType("datetime(6)") .HasComment("计划完工日期"); b.Property("ooentry_prd") .HasColumnType("bigint") .HasComment("生产组织"); b.Property("ooentry_prdname") .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("生产组织名称"); b.Property("ooentry_stime") .HasColumnType("datetime(6)") .HasComment("计划开工日期"); b.Property("ooentry_wrkc") .HasColumnType("bigint") .HasComment("工作中心id"); b.Property("ooentry_wrkcname") .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("工作中心名称"); b.Property("oorder_date") .HasColumnType("datetime(6)") .HasComment("委外订单日期"); b.Property("oorder_no") .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("生产工单编号"); b.Property("oorder_state") .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("订单状态"); b.Property("oorder_type") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("生产工单类型"); b.Property("org_id") .HasColumnType("bigint") .HasComment("组织ID"); b.Property("pause_time") .HasColumnType("datetime(6)") .HasComment("最近暂停时间"); b.Property("planner_name") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("计划员名称"); b.Property("planner_num") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("计划员工号"); b.Property("product_code") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("产品代码"); b.Property("product_name") .HasMaxLength(500) .HasColumnType("varchar(500)") .HasComment("产品名称"); b.Property("production_unit") .HasMaxLength(100) .HasColumnType("varchar(100)") .HasComment("加工单位"); b.Property("production_unit_code") .HasMaxLength(20) .HasColumnType("varchar(20)") .HasComment("加工单位编码"); b.Property("project_name") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("项目名称"); b.Property("qualified_number") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("合格数量"); b.Property("remaining_number") .HasPrecision(20, 10) .HasColumnType("decimal(20,10)") .HasComment("剩余可用数量"); b.Property("restart_time") .HasColumnType("datetime(6)") .HasComment("最近重启时间"); b.Property("sent_status") .HasColumnType("int") .HasComment("发料状态 1-待发料 2-已发料"); b.Property("specification_model") .HasMaxLength(500) .HasColumnType("varchar(500)") .HasComment("规格型号"); b.Property("start_time") .HasColumnType("datetime(6)") .HasComment("开始时间"); 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.Property("work_number") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("报工数量"); b.HasKey("Id"); b.ToTable("mes_oorder", (string)null); b.HasComment("委外订单表"); }); modelBuilder.Entity("Bussiness.Model.Production.mes_schedule_occupy", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("tinyint(1)") .HasDefaultValue(false) .HasColumnName("IsDeleted") .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_time") .HasColumnType("datetime(6)") .HasComment("结束时间"); b.Property("factory_id") .HasColumnType("bigint") .HasComment("工厂ID"); b.Property("is_Locked") .HasColumnType("int") .HasComment("是否锁定 0-正常,1-锁定"); b.Property("org_id") .HasColumnType("bigint") .HasComment("组织ID"); b.Property("prd_org_id") .HasColumnType("bigint") .HasComment("生产组织id"); b.Property("start_time") .HasColumnType("datetime(6)") .HasComment("开始时间"); b.Property("status") .HasColumnType("int") .HasComment("状态 0-待使用,1-已使用"); 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.Property("work_calendar_id") .HasColumnType("bigint") .HasComment("工作日历id"); b.Property("work_center_id") .HasColumnType("bigint") .HasComment("工作中心id"); b.Property("working_minute") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("工作时长(h)"); b.HasKey("Id"); b.ToTable("mes_schedule_occupy", (string)null); b.HasComment("排程时间占用记录表"); }); modelBuilder.Entity("Bussiness.Model.Production.mes_stockoccupy", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("tinyint(1)") .HasDefaultValue(false) .HasColumnName("IsDeleted") .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("fbill_no") .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("订单编号"); b.Property("fentry_id") .HasColumnType("bigint") .HasComment("订单行号"); b.Property("fitem_name") .HasMaxLength(200) .HasColumnType("varchar(200)") .HasComment("物料名称"); b.Property("fitem_number") .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("物料编码"); b.Property("fmodel") .HasMaxLength(200) .HasColumnType("varchar(200)") .HasComment("规格型号"); b.Property("occupyqty") .HasPrecision(20, 2) .HasColumnType("decimal(20,2)") .HasComment("占用量"); b.Property("org_id") .HasColumnType("bigint") .HasComment("组织ID"); b.Property("soccupy_cby") .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("变更人"); b.Property("soccupy_creason") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("变更原因"); b.Property("soccupy_ctime") .HasColumnType("datetime(6)") .HasComment("变更时间"); b.Property("soccupy_etime") .HasColumnType("datetime(6)") .HasComment("结束时间"); b.Property("soccupy_state") .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("占用状态"); b.Property("soccupy_stime") .HasColumnType("datetime(6)") .HasComment("开始时间"); b.Property("soccupy_type") .IsRequired() .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("类型"); b.Property("soentry_id") .HasColumnType("bigint") .HasComment("订单行id"); 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.Property("warehouse_id") .HasColumnType("bigint") .HasComment("仓库id"); b.Property("warehouse_name") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("仓库名称"); b.Property("warehouse_type") .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("仓库类型"); b.HasKey("Id"); b.ToTable("mes_stockoccupy", (string)null); b.HasComment("成品库存占用表"); }); modelBuilder.Entity("Bussiness.Model.ProductionProcess.mes_loss_time_record", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("tinyint(1)") .HasDefaultValue(false) .HasColumnName("IsDeleted") .HasComment("删除标识"); b.Property("cause") .HasMaxLength(500) .HasColumnType("varchar(500)") .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("desc") .HasMaxLength(500) .HasColumnType("varchar(500)") .HasComment("问题描述"); b.Property("end_time") .HasColumnType("datetime(6)") .HasComment("损失结束时间"); b.Property("factory_id") .HasColumnType("bigint") .HasComment("工厂ID"); b.Property("isstop") .HasColumnType("int") .HasComment("是否停线"); b.Property("morder_id") .HasColumnType("bigint") .HasComment("工单id"); b.Property("morder_no") .IsRequired() .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("工单编号"); b.Property("org_id") .HasColumnType("bigint") .HasComment("组织ID"); b.Property("product_line") .HasColumnType("bigint") .HasComment("生产产线"); b.Property("product_org") .HasColumnType("bigint") .HasComment("生产车间"); b.Property("record_id") .HasColumnType("bigint") .HasComment("记录人id"); b.Property("record_no") .HasColumnType("longtext") .HasComment("记录人工号"); b.Property("record_time") .HasColumnType("datetime(6)") .HasComment("记录时间"); b.Property("start_time") .HasColumnType("datetime(6)") .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("mes_loss_time_record", (string)null); b.HasComment("损失时间记录表"); }); modelBuilder.Entity("Bussiness.Model.ProductionProcess.mes_meaction", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("tinyint(1)") .HasDefaultValue(false) .HasColumnName("IsDeleted") .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("morder_id") .HasColumnType("bigint") .HasComment("生产工单id"); b.Property("morder_no") .IsRequired() .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("生产工单号"); b.Property("oprby") .HasColumnType("bigint") .HasComment("操作人id"); b.Property("oprbyname") .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("操作人名称"); b.Property("oprbyno") .HasMaxLength(100) .HasColumnType("varchar(100)") .HasComment("操作人工号"); b.Property("oprtime") .HasColumnType("datetime(6)") .HasComment("操作时间"); b.Property("oprtype") .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("操作类型"); b.Property("org_id") .HasColumnType("bigint") .HasComment("组织ID"); 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("mes_meaction", (string)null); b.HasComment("生产动作表"); }); modelBuilder.Entity("Bussiness.Model.ProductionProcess.mes_mebycard", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("tinyint(1)") .HasDefaultValue(false) .HasColumnName("IsDeleted") .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("mebycard_byno") .IsRequired() .HasMaxLength(100) .HasColumnType("varchar(100)") .HasComment("刷卡人员卡号"); b.Property("mebycard_moid") .HasColumnType("bigint") .HasComment("生产工单号id"); b.Property("mebycard_mono") .IsRequired() .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("生产工单号"); b.Property("mebycard_pid") .HasColumnType("bigint") .HasComment("工序id"); b.Property("mebycard_pname") .IsRequired() .HasMaxLength(100) .HasColumnType("varchar(100)") .HasComment("工序名称"); b.Property("mebycard_pno") .IsRequired() .HasMaxLength(100) .HasColumnType("varchar(100)") .HasComment("工序编码"); b.Property("mebycard_time") .HasColumnType("datetime(6)") .HasComment("刷卡时间"); b.Property("org_id") .HasColumnType("bigint") .HasComment("组织ID"); 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("mes_mebycard", (string)null); b.HasComment("产线刷卡记录"); }); modelBuilder.Entity("Bussiness.Model.ProductionProcess.mes_merecheck", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("tinyint(1)") .HasDefaultValue(false) .HasColumnName("IsDeleted") .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("morder_id") .HasColumnType("bigint") .HasComment("生产工单id"); b.Property("morder_no") .IsRequired() .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("生产工单号"); b.Property("oprby") .HasColumnType("bigint") .HasComment("报检人id"); b.Property("oprtime") .HasColumnType("datetime(6)") .HasComment("报检时间"); b.Property("org_id") .HasColumnType("bigint") .HasComment("组织ID"); b.Property("qty") .HasPrecision(20, 10) .HasColumnType("decimal(20,10)") .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("mes_merecheck", (string)null); b.HasComment("生产报检记录"); }); modelBuilder.Entity("Bussiness.Model.ProductionProcess.mes_mereport", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("tinyint(1)") .HasDefaultValue(false) .HasColumnName("IsDeleted") .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("instock_qty") .HasPrecision(20, 10) .HasColumnType("decimal(20,10)") .HasComment("报工数量"); b.Property("morder_id") .HasColumnType("bigint") .HasComment("生产工单id"); b.Property("morder_no") .IsRequired() .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("生产工单号"); b.Property("org_id") .HasColumnType("bigint") .HasComment("组织ID"); b.Property("qty") .HasPrecision(20, 10) .HasColumnType("decimal(20,10)") .HasComment("报工数量"); b.Property("report_by") .HasColumnType("bigint") .HasComment("报工人id"); b.Property("report_byno") .IsRequired() .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("报工人工号"); b.Property("report_time") .HasColumnType("datetime(6)") .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("mes_mereport", (string)null); b.HasComment("生产报工记录"); }); modelBuilder.Entity("Bussiness.Model.ProductionProcess.mes_prd_sendmat", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("tinyint(1)") .HasDefaultValue(false) .HasColumnName("IsDeleted") .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("org_id") .HasColumnType("bigint") .HasComment("组织ID"); b.Property("prdsm_by") .IsRequired() .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("制单人"); b.Property("prdsm_date") .HasColumnType("datetime(6)") .HasComment("单据日期"); b.Property("prdsm_ddate") .HasColumnType("datetime(6)") .HasComment("配送日期"); b.Property("prdsm_moid") .HasColumnType("bigint") .HasComment("生产工单id"); b.Property("prdsm_mono") .IsRequired() .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("生产工单号"); b.Property("prdsm_no") .IsRequired() .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("单据编号"); b.Property("prdsm_note") .HasMaxLength(500) .HasColumnType("varchar(500)") .HasComment("备注"); b.Property("prdsm_po_no") .HasMaxLength(100) .HasColumnType("varchar(100)") .HasComment("关联委外po单号"); b.Property("prdsm_po_row") .HasColumnType("int") .HasComment("关联委外po行号"); b.Property("prdsm_prdid") .HasColumnType("bigint") .HasComment("生产组织id"); b.Property("prdsm_qty") .HasPrecision(20, 10) .HasColumnType("decimal(20,10)") .HasComment("叫料数量"); b.Property("prdsm_reason") .HasMaxLength(500) .HasColumnType("varchar(500)") .HasComment("补料理由"); b.Property("prdsm_state") .HasColumnType("int") .HasComment("状态"); b.Property("prdsm_type") .IsRequired() .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("单据类型 (发料、叫料、补料、退料)"); b.Property("prdsm_workcid") .HasColumnType("bigint") .HasComment("工作中心id"); b.Property("srcbill_state") .HasColumnType("int") .HasComment("源单状态"); b.Property("srcbill_type") .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("mes_prd_sendmat", (string)null); b.HasComment("发料单"); }); modelBuilder.Entity("Bussiness.Model.ProductionProcess.mes_prd_sendmat_list", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("tinyint(1)") .HasDefaultValue(false) .HasColumnName("IsDeleted") .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("fbackflush") .HasColumnType("int") .HasComment("是否倒冲"); b.Property("fdiscard_aux_qty") .HasPrecision(20, 10) .HasColumnType("decimal(20,10)") .HasComment("报废数量"); b.Property("fisKey_item") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("子项属性"); b.Property("fitem_name") .HasMaxLength(100) .HasColumnType("varchar(100)") .HasComment("物料编码"); b.Property("fitem_number") .HasMaxLength(100) .HasColumnType("varchar(100)") .HasComment("物料编码"); b.Property("fmateriel_type") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("子项属性"); b.Property("fmodel") .HasMaxLength(100) .HasColumnType("varchar(100)") .HasComment("物料编码"); b.Property("fqty_send_back") .HasPrecision(20, 10) .HasColumnType("decimal(20,10)") .HasComment("退料数量"); b.Property("fqty_supply") .HasPrecision(20, 10) .HasColumnType("decimal(20,10)") .HasComment("补料数量"); b.Property("org_id") .HasColumnType("bigint") .HasComment("组织ID"); b.Property("prdsm_breason") .HasMaxLength(500) .HasColumnType("varchar(500)") .HasComment("退料原因"); b.Property("prdsm_id") .HasColumnType("bigint") .HasComment("发料单id"); b.Property("prdsml_cqtyper") .HasPrecision(20, 10) .HasColumnType("decimal(20,10)") .HasComment("确认单位数量"); b.Property("prdsml_procname") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("工序名称"); b.Property("prdsml_procno") .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("工序编码"); b.Property("prdsml_qtyissued") .HasPrecision(20, 10) .HasColumnType("decimal(20,10)") .HasComment("已发数量"); b.Property("prdsml_qtyper") .HasPrecision(20, 10) .HasColumnType("decimal(20,10)") .HasComment("单位数量"); b.Property("prdsml_qtyplan") .HasPrecision(20, 10) .HasColumnType("decimal(20,10)") .HasComment("计划数量"); b.Property("prdsml_qtyto") .HasPrecision(20, 10) .HasColumnType("decimal(20,10)") .HasComment("应发数量"); b.Property("prdsml_unit") .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("计量单位"); b.Property("prdsml_whid") .HasColumnType("bigint") .HasComment("发料仓库id"); b.Property("prdsml_whname") .HasMaxLength(500) .HasColumnType("varchar(500)") .HasComment("发料仓库名称"); b.Property("prdsml_whno") .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("发料仓库编码"); b.Property("prsml_row") .HasColumnType("int") .HasComment("行号"); b.Property("send_date") .HasColumnType("datetime(6)") .HasComment("计划发料日期"); b.Property("station") .IsRequired() .HasMaxLength(255) .HasColumnType("varchar(255)") .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("mes_prd_sendmat_list", (string)null); b.HasComment("发料单详情"); }); modelBuilder.Entity("Bussiness.Model.ProductionProcess.mes_prdlog", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("tinyint(1)") .HasDefaultValue(false) .HasColumnName("IsDeleted") .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("org_id") .HasColumnType("bigint") .HasComment("组织ID"); b.Property("prdlog_by_id") .HasColumnType("bigint") .HasComment("执行人id"); b.Property("prdlog_by_name") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("执行人姓名"); b.Property("prdlog_entryid") .HasColumnType("int") .HasComment("行号"); b.Property("prdlog_no") .IsRequired() .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("业务类型"); b.Property("prdlog_note") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("内容"); b.Property("prdlog_time") .HasColumnType("datetime(6)") .HasComment("执行时间"); b.Property("prdlog_type") .IsRequired() .HasMaxLength(50) .HasColumnType("varchar(50)") .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("mes_prdlog", (string)null); b.HasComment("生产操作日志"); }); modelBuilder.Entity("Bussiness.Model.ProductionProcess.mes_product_work_time", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("tinyint(1)") .HasDefaultValue(false) .HasColumnName("IsDeleted") .HasComment("删除标识"); b.Property("card_no") .HasMaxLength(255) .HasColumnType("varchar(255)") .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("org_id") .HasColumnType("bigint") .HasComment("组织ID"); b.Property("product_line") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("产线"); b.Property("start") .HasColumnType("datetime(6)") .HasComment("开始时间"); b.Property("stop") .HasColumnType("datetime(6)") .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.Property("work_date") .HasColumnType("datetime(6)") .HasComment("生产时间记录id"); b.HasKey("Id"); b.ToTable("mes_product_work_time", (string)null); b.HasComment("mo的生产时间记录"); }); modelBuilder.Entity("Bussiness.Model.ProductionProcess.mes_stock_enter", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("tinyint(1)") .HasDefaultValue(false) .HasColumnName("IsDeleted") .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("eby") .HasColumnType("bigint") .HasComment("入库人id"); b.Property("ebyname") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("入库人姓名"); b.Property("edate") .HasColumnType("datetime(6)") .HasComment("入库日期"); b.Property("eqty") .HasColumnType("int") .HasComment("入库数量"); b.Property("factory_id") .HasColumnType("bigint") .HasComment("工厂ID"); b.Property("ffull_name") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("全名"); b.Property("fitem_name") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("物料名称"); b.Property("fitem_number") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("物料编码"); b.Property("fmodel") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("规格型号"); b.Property("order_no") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("工单号"); b.Property("org_id") .HasColumnType("bigint") .HasComment("组织ID"); 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("mes_stock_enter", (string)null); b.HasComment("入库单"); }); modelBuilder.Entity("Bussiness.Model.ProductionProcess.mes_stock_out", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("tinyint(1)") .HasDefaultValue(false) .HasColumnName("IsDeleted") .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("eby") .HasColumnType("bigint") .HasComment("出库人id"); b.Property("eby_name") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("出库人姓名"); b.Property("edate") .HasColumnType("datetime(6)") .HasComment("出库日期"); b.Property("eqty") .HasColumnType("int") .HasComment("出库数量"); b.Property("factory_id") .HasColumnType("bigint") .HasComment("工厂ID"); b.Property("ffull_name") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("全名"); b.Property("fitem_name") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("物料名称"); b.Property("fitem_number") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("物料编码"); b.Property("fmodel") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("规格型号"); b.Property("order_no") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("销售订单号"); b.Property("order_number") .HasColumnType("int") .HasComment("订单行号"); b.Property("org_id") .HasColumnType("bigint") .HasComment("组织ID"); b.Property("out_no") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("出库单号"); b.Property("shipn_no") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("发运通知单号"); b.Property("stock_name") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("仓库名称"); b.Property("stock_no") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("仓库编码"); 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("mes_stock_out", (string)null); b.HasComment("出库单"); }); modelBuilder.Entity("Bussiness.Model.ProductionProcess.mes_swipe_card", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("tinyint(1)") .HasDefaultValue(false) .HasColumnName("IsDeleted") .HasComment("删除标识"); b.Property("card_no") .IsRequired() .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("off_line_time") .HasColumnType("datetime(6)") .HasComment("下线时间"); b.Property("order_no") .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("工单编号"); b.Property("org_id") .HasColumnType("bigint") .HasComment("组织ID"); b.Property("product_line") .IsRequired() .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("生产产线"); b.Property("product_org") .IsRequired() .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("生产车间"); b.Property("swipe_date") .HasColumnType("datetime(6)") .HasComment("刷卡日期"); b.Property("tenant_id") .HasColumnType("bigint") .HasComment("企业ID"); b.Property("type") .HasColumnType("int") .HasComment("刷卡类型"); b.Property("up_line_time") .HasColumnType("datetime(6)") .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("mes_swipe_card", (string)null); b.HasComment("mes打卡记录表"); }); modelBuilder.Entity("Bussiness.Model.Sale.crm_seorder", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("tinyint(1)") .HasDefaultValue(false) .HasColumnName("IsDeleted") .HasComment("删除标识"); b.Property("audit_date") .HasColumnType("datetime(6)") .HasComment("审核日期"); b.Property("auditor") .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("审核人"); b.Property("bang_id") .HasColumnType("bigint") .HasComment("计算id"); b.Property("bill_from") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("订单来源"); b.Property("bill_no") .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("订单编号"); b.Property("biller") .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("制单人"); b.Property("closed") .HasColumnType("tinyint(1)") .HasComment("是否关闭1关闭0未关闭"); b.Property("create_by") .HasColumnType("bigint") .HasComment("创建人id"); b.Property("create_by_name") .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("创建人名称"); b.Property("create_dept") .HasColumnType("bigint") .HasComment("创建部门id"); b.Property("create_time") .HasColumnType("datetime(6)") .HasComment("创建时间"); b.Property("currency") .HasMaxLength(50) .HasColumnType("int") .HasComment("币种"); b.Property("custom_id") .HasColumnType("int") .HasComment("客户id"); b.Property("custom_level") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("客户级别"); b.Property("custom_name") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("客户名称"); b.Property("custom_no") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("客户编码"); b.Property("date") .HasColumnType("datetime(6)") .HasComment("签订日期"); b.Property("emp_name") .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("业务员名称"); b.Property("emp_no") .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("业务员工号"); b.Property("exchange_rate") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("汇率"); b.Property("factory_id") .HasColumnType("bigint") .HasComment("工厂ID"); b.Property("op_time") .HasColumnType("datetime(6)") .HasComment("操作时间"); b.Property("order_type") .HasColumnType("int") .HasComment("订单类别(销售、计划)"); b.Property("org_id") .HasColumnType("bigint") .HasComment("组织ID"); b.Property("out_stock_type") .HasColumnType("int") .HasComment("销售出库类型"); b.Property("project_code") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("项目编号"); b.Property("project_name") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("项目名称"); b.Property("rdate") .HasColumnType("datetime(6)") .HasComment("采购下单日期"); b.Property("sale_dept_code") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("销售部门编号"); b.Property("sale_dept_id") .HasColumnType("bigint") .HasComment("销售部门id"); b.Property("sale_dept_name") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("销售部门名称"); b.Property("sale_style") .HasColumnType("int") .HasComment("销售订单类型"); b.Property("sale_style_no") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("销售订单类型编码"); b.Property("status") .HasColumnType("int") .HasComment("订单状态"); b.Property("tenant_id") .HasColumnType("bigint") .HasComment("企业ID"); b.Property("trade_type") .HasColumnType("int") .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("urgent") .HasColumnType("int") .HasComment("加急级别"); b.HasKey("Id"); b.ToTable("crm_seorder", (string)null); b.HasComment("销售订单"); }); modelBuilder.Entity("Bussiness.Model.Sale.crm_seorderentry", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("tinyint(1)") .HasDefaultValue(false) .HasColumnName("IsDeleted") .HasComment("删除标识"); b.Property("adjust_date") .HasColumnType("datetime(6)") .HasComment("调整建议交期"); b.Property("amount") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("金额"); b.Property("aux_price_discount") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("实际含税单价"); b.Property("bang_id") .HasColumnType("bigint") .HasComment("计算id"); b.Property("bill_no") .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("销售订单编号"); b.Property("bom_number") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("BOM编号"); b.Property("contract_no") .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("合同编号"); b.Property("create_by") .HasColumnType("bigint") .HasComment("创建人id"); b.Property("create_by_name") .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("创建人名称"); b.Property("create_dept") .HasColumnType("bigint") .HasComment("创建部门id"); b.Property("create_time") .HasColumnType("datetime(6)") .HasComment("创建时间"); b.Property("custom_order_bill_no") .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("客户订单号"); b.Property("custom_order_entryid") .HasColumnType("int") .HasComment("客户订单行号"); b.Property("custom_order_itemno") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("客户料号"); b.Property("date") .HasColumnType("datetime(6)") .HasComment("最终交货日期"); b.Property("deliver_count") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("发货数量(已出库数量)"); b.Property("deliver_notice_count") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("发货通知单数量"); b.Property("discount_amount") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("折扣额"); b.Property("discount_rate") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("折扣率"); b.Property("entry_seq") .HasColumnType("int") .HasComment("行号"); b.Property("factory_id") .HasColumnType("bigint") .HasComment("工厂ID"); b.Property("fms_number") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("FMS旧料号"); b.Property("is_checked") .HasColumnType("tinyint(1)") .HasComment("是否完成检测,0未完成,1完成"); b.Property("item_name") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("产品名称"); b.Property("item_number") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("产品代码"); b.Property("map_name") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("代码名称"); b.Property("map_number") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("对应代码"); b.Property("mrp_closed") .HasColumnType("tinyint(1)") .HasComment("mrp关闭"); b.Property("op_time") .HasColumnType("datetime(6)") .HasComment("操作时间"); b.Property("org_id") .HasColumnType("bigint") .HasComment("组织ID"); b.Property("out_stock_type") .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("出库类型"); b.Property("plan_date") .HasColumnType("datetime(6)") .HasComment("客户要求交期"); b.Property("planner_name") .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("计划员"); b.Property("planner_no") .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("计划员_工号"); b.Property("price") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("单价"); b.Property("progress") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("订单进度"); b.Property("qty") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("订单数量"); b.Property("remark") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("备注"); b.Property("rnumber") .HasColumnType("int") .HasComment("评审次数"); b.Property("rstate") .HasColumnType("int") .HasComment("评审状态"); b.Property("se_reject_reason") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("业务员工号"); b.Property("seorder_id") .HasColumnType("bigint") .HasComment("销售订单id"); b.Property("soure_bill_no") .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("源单编号"); b.Property("specification") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("规格型号"); b.Property("state") .HasColumnType("tinyint(1)") .HasComment("数据状态标识 0停用 1启用"); b.Property("sys_capacity_date") .HasColumnType("datetime(6)") .HasComment("系统建议交期(产能)"); b.Property("sys_material_date") .HasColumnType("datetime(6)") .HasComment("系统建议交期(物料)"); b.Property("tax_amtount") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("销项税额"); b.Property("tax_price") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("含税单价"); b.Property("tax_rate") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("税率"); b.Property("tenant_id") .HasColumnType("bigint") .HasComment("企业ID"); b.Property("total_amount") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("价税合计"); b.Property("unit") .HasMaxLength(50) .HasColumnType("varchar(50)") .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("urgent") .HasColumnType("int") .HasComment("加急级别"); b.HasKey("Id"); b.ToTable("crm_seorderentry", (string)null); b.HasComment("销售订单明细表"); }); modelBuilder.Entity("Bussiness.Model.Sale.crm_seorderprog", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("tinyint(1)") .HasDefaultValue(false) .HasColumnName("IsDeleted") .HasComment("删除标识"); b.Property("bill_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_dept") .HasColumnType("bigint") .HasComment("创建部门id"); b.Property("create_time") .HasColumnType("datetime(6)") .HasComment("创建时间"); b.Property("entry_seq") .HasColumnType("int") .HasComment("销售订单行号"); b.Property("factory_id") .HasColumnType("bigint") .HasComment("工厂ID"); b.Property("org_id") .HasColumnType("bigint") .HasComment("组织ID"); b.Property("seorder_id") .IsRequired() .HasColumnType("bigint") .HasComment("销售订单id"); b.Property("seprog_by_id") .HasColumnType("bigint") .HasComment("提交人id"); b.Property("seprog_by_name") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("提交人姓名"); b.Property("seprog_etime") .HasColumnType("datetime(6)") .HasComment("完成时间"); b.Property("seprog_stage") .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("进度阶段"); b.Property("seprog_stage_id") .HasColumnType("bigint") .HasComment("进度阶段id"); b.Property("seprog_stime") .HasColumnType("datetime(6)") .HasComment("开始时间"); b.Property("seprog_type") .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("crm_seorderprog", (string)null); b.HasComment("销售订单进度表"); }); modelBuilder.Entity("Bussiness.Model.Sale.crm_seorderreview", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("tinyint(1)") .HasDefaultValue(false) .HasColumnName("IsDeleted") .HasComment("删除标识"); b.Property("audit_procedure_id") .HasColumnType("bigint") .HasComment("当前审批步骤id"); b.Property("audit_procedure_name") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("当前审批步骤名称"); b.Property("bill_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("entry_seq") .HasColumnType("int") .HasComment("销售订单行号"); b.Property("factory_id") .HasColumnType("bigint") .HasComment("工厂ID"); b.Property("org_id") .HasColumnType("bigint") .HasComment("组织ID"); b.Property("reject_reason") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("拒绝原因"); b.Property("review_adjust_time") .HasMaxLength(255) .HasColumnType("datetime(6)") .HasComment("可接受交期"); b.Property("review_by_id") .HasColumnType("bigint") .HasComment("提交人id"); b.Property("review_by_name") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("提交人姓名"); b.Property("review_reject_level") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("拒绝等级"); b.Property("review_reject_remark") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("拒绝备注"); b.Property("review_result") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("评审结果"); b.Property("review_stime") .HasColumnType("datetime(6)") .HasComment("提交时间"); b.Property("review_time") .HasColumnType("datetime(6)") .HasComment("评审时间"); b.Property("review_title") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("标题"); b.Property("review_type") .IsRequired() .HasColumnType("longtext") .HasComment("业务类型"); b.Property("reviewer_id") .HasColumnType("bigint") .HasComment("评审人id"); b.Property("reviewer_name") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("评审人姓名"); b.Property("seorder_id") .IsRequired() .HasColumnType("bigint") .HasComment("销售订单id"); 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("crm_seorderreview", (string)null); b.HasComment("销售订单评审表"); }); modelBuilder.Entity("Bussiness.Model.Sale.wms_prdprogress", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("tinyint(1)") .HasDefaultValue(false) .HasColumnName("IsDeleted") .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("org_id") .HasColumnType("bigint") .HasComment("组织ID"); b.Property("prdprog_name") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("进度名称"); b.Property("prdprog_seq") .IsRequired() .HasColumnType("int") .HasComment("进度顺序"); b.Property("prdprog_type") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("进度类型"); b.Property("state") .HasColumnType("tinyint(1)") .HasComment("进度状态1启用0停用"); 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("wms_prdprogress", (string)null); b.HasComment("进度字典"); }); modelBuilder.Entity("Bussiness.Model.Sale.wms_shipnotice", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("tinyint(1)") .HasDefaultValue(false) .HasColumnName("IsDeleted") .HasComment("删除标识"); b.Property("address") .HasMaxLength(255) .HasColumnType("varchar(255)") .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("org_id") .HasColumnType("bigint") .HasComment("组织ID"); b.Property("shipnotice_date") .HasColumnType("datetime(6)") .HasComment("发运时间"); b.Property("shipnotice_no") .IsRequired() .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("发运通知单号"); b.Property("shipplan_id") .IsRequired() .HasColumnType("bigint") .HasComment("发货计划id"); b.Property("shipplan_no") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("发货计划号"); b.Property("state") .IsRequired() .HasMaxLength(80) .HasColumnType("varchar(80)") .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("wms_shipnotice", (string)null); b.HasComment("发货通知单"); }); modelBuilder.Entity("Bussiness.Model.Sale.wms_shipnoticelist", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("tinyint(1)") .HasDefaultValue(false) .HasColumnName("IsDeleted") .HasComment("删除标识"); b.Property("address") .HasMaxLength(255) .HasColumnType("varchar(255)") .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("org_id") .HasColumnType("bigint") .HasComment("组织ID"); b.Property("shipnotice_custid") .HasColumnType("bigint") .HasComment("客户id"); b.Property("shipnotice_custname") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("客户名称"); b.Property("shipnotice_custno") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("客户编号"); b.Property("shipnotice_id") .HasMaxLength(80) .HasColumnType("bigint") .HasComment("发货计划号"); b.Property("shipplanl_fqty") .HasPrecision(20, 10) .HasColumnType("decimal(20,10)") .HasComment("实际发货数量"); b.Property("shipplanl_iqty") .HasPrecision(20, 10) .HasColumnType("decimal(20,10)") .HasComment("计划发货数量"); b.Property("shipplanl_soeid") .HasColumnType("int") .HasComment("销售单行号"); b.Property("shipplanl_soid") .HasColumnType("bigint") .HasComment("销售单id"); b.Property("shipplanl_sono") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("销售单号"); b.Property("shipplanlist_id") .HasColumnType("bigint") .HasComment("发货详情id"); b.Property("state") .IsRequired() .HasMaxLength(80) .HasColumnType("varchar(80)") .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("wms_shipnoticelist", (string)null); b.HasComment("发货通知单明细表"); }); modelBuilder.Entity("Bussiness.Model.Sale.wms_shipplan", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("tinyint(1)") .HasDefaultValue(false) .HasColumnName("IsDeleted") .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("org_id") .HasColumnType("bigint") .HasComment("组织ID"); b.Property("shipplan_date") .HasColumnType("datetime(6)") .HasComment("发货计划时间"); b.Property("shipplan_no") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("发货计划编号"); b.Property("state") .HasMaxLength(80) .HasColumnType("varchar(80)") .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("wms_shipplan", (string)null); b.HasComment("发货计划表"); }); modelBuilder.Entity("Bussiness.Model.SIM.sim_base", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("tinyint(1)") .HasDefaultValue(false) .HasColumnName("IsDeleted") .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("interval_days") .HasPrecision(10) .HasColumnType("decimal(10,0)") .HasComment("间隔天数"); b.Property("org_id") .HasColumnType("bigint") .HasComment("组织ID"); b.Property("rise_cycle") .HasPrecision(10) .HasColumnType("decimal(10,0)") .HasComment("上升周期"); b.Property("rise_time") .HasColumnType("datetime(6)") .HasComment("上升时间"); b.Property("sim_grade") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("sim等级"); b.Property("sim_level") .HasColumnType("int") .HasComment("sim层级顺序"); 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("sim_base", (string)null); b.HasComment("sim基本表"); }); modelBuilder.Entity("Bussiness.Model.SIM.sim_issue_type", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("tinyint(1)") .HasDefaultValue(false) .HasColumnName("IsDeleted") .HasComment("删除标识"); b.Property("app_scenario") .HasMaxLength(255) .HasColumnType("varchar(255)") .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("duty_dept") .HasColumnType("bigint") .HasComment("责任部门id"); b.Property("duty_person") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("责任人"); b.Property("factory_id") .HasColumnType("bigint") .HasComment("工厂ID"); b.Property("issue_grade") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("问题等级"); b.Property("org_id") .HasColumnType("bigint") .HasComment("组织ID"); b.Property("tenant_id") .HasColumnType("bigint") .HasComment("企业ID"); b.Property("type_code") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("类别代码"); b.Property("type_name") .HasMaxLength(255) .HasColumnType("varchar(255)") .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("sim_issue_type", (string)null); b.HasComment("sim事项类别表"); }); modelBuilder.Entity("Bussiness.Model.SIM.sim_plant", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("tinyint(1)") .HasDefaultValue(false) .HasColumnName("IsDeleted") .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("org_id") .HasColumnType("bigint") .HasComment("组织ID"); b.Property("plant_name") .HasMaxLength(255) .HasColumnType("varchar(255)") .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("sim_plant", (string)null); b.HasComment("sim事项表"); }); modelBuilder.Entity("Bussiness.Model.SIM.sim_user_relation", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("tinyint(1)") .HasDefaultValue(false) .HasColumnName("IsDeleted") .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("org_id") .HasColumnType("bigint") .HasComment("组织ID"); b.Property("sim_id") .HasColumnType("bigint") .HasComment("base_sim表ID"); 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.Property("user_id") .HasColumnType("bigint") .HasComment("用户id"); b.HasKey("Id"); b.ToTable("sim_user_relation", (string)null); b.HasComment("sim用户关联表"); }); modelBuilder.Entity("Bussiness.Model.SRM.srm_po_list", 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("currencytype") .IsRequired() .HasColumnType("bigint") .HasComment("币别"); b.Property("esqty") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("已入库数量"); b.Property("factory_id") .HasColumnType("bigint") .HasComment("工厂ID"); b.Property("icitem_id") .IsRequired() .HasColumnType("bigint") .HasComment("物料id"); b.Property("icitem_name") .HasMaxLength(100) .HasColumnType("varchar(100)") .HasComment("物料名称"); b.Property("netprice") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("净价"); b.Property("org_id") .HasColumnType("bigint") .HasComment("组织ID"); b.Property("plan_qty") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("计划数量"); b.Property("po_billno") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("po单号"); b.Property("po_id") .IsRequired() .HasColumnType("bigint") .HasComment("po单id"); b.Property("po_mono") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("关联工单号"); b.Property("polist_row") .HasColumnType("int") .HasComment("行号"); b.Property("pr_billno") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("pr申请单号"); b.Property("pr_id") .IsRequired() .HasColumnType("bigint") .HasComment("pr申请单id"); b.Property("pr_purchase_id") .IsRequired() .HasColumnType("bigint") .HasComment("供应商id"); b.Property("pr_purchase_name") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("供应商名称"); b.Property("price") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("含税单价"); b.Property("procurement_rarr_date") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("采购到货日期"); b.Property("pur_affirmdate") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("采购确认到货日期"); b.Property("purchase_date") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("供应商交期"); b.Property("qty") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("订单数量"); b.Property("rarrdate") .HasColumnType("datetime(6)") .HasComment("需求到货日期"); b.Property("rate") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("税率"); b.Property("rnumber") .HasColumnType("int") .HasComment("评审次数"); b.Property("rparrive_date") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("再计划到货日期"); b.Property("rqty") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("已收货数量"); b.Property("rstate") .HasColumnType("int") .HasComment("评审状态"); b.Property("state") .HasColumnType("int") .HasComment("数据状态标识"); b.Property("stock_id") .IsRequired() .HasColumnType("bigint") .HasComment("收货仓库id"); b.Property("stock_name") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("收货仓库名称"); b.Property("tenant_id") .HasColumnType("bigint") .HasComment("企业ID"); b.Property("total_price") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("总价"); b.Property("unit") .IsRequired() .HasColumnType("bigint") .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("srm_po_list", (string)null); b.HasComment("采购订单明细详情"); }); modelBuilder.Entity("Bussiness.Model.SRM.srm_po_main", 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("bill_type") .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("currency") .IsRequired() .HasColumnType("bigint") .HasComment("币别"); b.Property("factory_id") .HasColumnType("bigint") .HasComment("工厂ID"); b.Property("org_id") .HasColumnType("bigint") .HasComment("组织ID"); b.Property("po_billno") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("PO单号"); b.Property("po_delivery") .IsRequired() .HasColumnType("bigint") .HasComment("交货方式"); b.Property("po_express") .HasColumnType("int") .HasComment("是否加急"); b.Property("po_note") .HasMaxLength(1000) .HasColumnType("varchar(1000)") .HasComment("备注"); b.Property("po_order_type") .HasColumnType("int") .HasComment("单据类型"); b.Property("po_purchase_id") .IsRequired() .HasColumnType("bigint") .HasComment("供应商id"); b.Property("po_purchase_name") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("供应商名称"); b.Property("po_purchaser") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("采购员"); b.Property("po_purchaser_no") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("采购员工号"); b.Property("po_ssend_date") .HasColumnType("datetime(6)") .HasComment("下单日期"); b.Property("po_tax_rate") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("税率"); b.Property("po_total") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("订单总价"); b.Property("review_rtime") .HasColumnType("datetime(6)") .HasComment("评审通过时间"); b.Property("rnumber") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("评审次数"); b.Property("rstate") .HasColumnType("int") .HasComment("评审状态"); b.Property("state") .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("srm_po_main", (string)null); b.HasComment("采购订单"); }); modelBuilder.Entity("Bussiness.Model.SRM.srm_po_occupy", 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("bill_no") .IsRequired() .HasColumnType("bigint") .HasComment("客户订单id"); b.Property("cby") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("变更人"); b.Property("creason") .HasMaxLength(1000) .HasColumnType("varchar(1000)") .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("ctime") .HasColumnType("datetime(6)") .HasComment("变更时间"); b.Property("eid") .IsRequired() .HasColumnType("bigint") .HasComment("客户订单行id"); b.Property("entry_id") .HasColumnType("int") .HasComment("行号"); b.Property("etime") .HasColumnType("datetime(6)") .HasComment("结束时间"); b.Property("factory_id") .HasColumnType("bigint") .HasComment("工厂ID"); b.Property("org_id") .HasColumnType("bigint") .HasComment("组织ID"); b.Property("polist_id") .IsRequired() .HasColumnType("bigint") .HasComment("采购订单id"); b.Property("polist_row") .HasColumnType("int") .HasComment("采购订单行号"); b.Property("qty") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("占用量"); b.Property("state") .HasColumnType("int") .HasComment("占用状态"); b.Property("stime") .HasColumnType("datetime(6)") .HasComment("开始时间"); b.Property("tenant_id") .HasColumnType("bigint") .HasComment("企业ID"); b.Property("type") .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("srm_po_occupy", (string)null); b.HasComment("采购订单占用详情"); }); modelBuilder.Entity("Bussiness.Model.SRM.srm_pr_main", 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("currencytype") .IsRequired() .HasColumnType("bigint") .HasComment("币种"); b.Property("entity_id") .HasColumnType("int") .HasComment("工单行号"); b.Property("factory_id") .HasColumnType("bigint") .HasComment("工厂ID"); b.Property("icitem_id") .IsRequired() .HasColumnType("bigint") .HasComment("物料id"); b.Property("icitem_name") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("物料名称"); b.Property("old_apply_aqty") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("已申请数量"); b.Property("org_id") .HasColumnType("bigint") .HasComment("组织ID"); b.Property("pr_aqty") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("申请数量"); b.Property("pr_billno") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("pr单号"); b.Property("pr_bsarrive_date") .HasColumnType("datetime(6)") .HasComment("采购员建议到货日期"); b.Property("pr_mono") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("关联工单号"); b.Property("pr_oarrive_date") .HasColumnType("datetime(6)") .HasComment("订单到货日期"); b.Property("pr_order_type") .HasColumnType("int") .HasComment("单据类型"); b.Property("pr_orderprice") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("订单价格(含税)"); b.Property("pr_parrive_date") .HasColumnType("datetime(6)") .HasComment("计划到达日期"); b.Property("pr_price") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("采购净价(不含税)"); b.Property("pr_psend_date") .HasColumnType("datetime(6)") .HasComment("计划下单日期"); b.Property("pr_pur_affirm_date") .HasColumnType("datetime(6)") .HasComment("采购确认到货日期"); b.Property("pr_purchaseid") .IsRequired() .HasColumnType("bigint") .HasComment("供应商id"); b.Property("pr_purchasename") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("供应商名称"); b.Property("pr_purchasenumber") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("供应商编码"); b.Property("pr_purchaser") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("采购员"); b.Property("pr_purchaser_num") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("采购员工号"); b.Property("pr_rarrive_date") .HasColumnType("datetime(6)") .HasComment("需求到货日期"); b.Property("pr_rate") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("税率"); b.Property("pr_rparrive_date") .HasColumnType("datetime(6)") .HasComment("再计划到货日期"); b.Property("pr_rqty") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("需求数量"); b.Property("pr_rreason") .HasMaxLength(1000) .HasColumnType("varchar(1000)") .HasComment("拒绝原因"); b.Property("pr_sarrive_date") .HasColumnType("datetime(6)") .HasComment("系统建议到达日期"); b.Property("pr_sqty") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("建议数量"); b.Property("pr_ssend_date") .HasColumnType("datetime(6)") .HasComment("系统建议下单日期"); b.Property("pr_sysprice") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("系统价格(含税)"); b.Property("pr_type") .HasColumnType("int") .HasComment("申请类型"); b.Property("pr_unit") .HasMaxLength(20) .HasColumnType("varchar(20)") .HasComment("单位"); b.Property("remark") .HasMaxLength(1000) .HasColumnType("varchar(1000)") .HasComment("备注"); b.Property("secInv_ratio") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("安全库存触发采购比例"); b.Property("state") .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("srm_pr_main", (string)null); b.HasComment("采购申请单"); }); modelBuilder.Entity("Bussiness.Model.SRM.srm_purchase", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("tinyint(1)") .HasDefaultValue(false) .HasColumnName("IsDeleted") .HasComment("删除标识"); b.Property("batch_append_qty") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .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_code") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("工厂编码"); b.Property("factory_id") .HasColumnType("bigint") .HasComment("工厂ID"); b.Property("ic_plan_id") .IsRequired() .HasColumnType("bigint") .HasComment("计划id"); b.Property("icitem_id") .HasColumnType("bigint") .HasComment("物料id"); b.Property("icitem_name") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("物料名称"); b.Property("order_dept") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("采购部门"); b.Property("order_price") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("采购单价"); b.Property("order_rector_name") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("采购负责人"); b.Property("order_rector_num") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("采购负责人_工号"); b.Property("org_id") .HasColumnType("bigint") .HasComment("组织ID"); b.Property("piv_acct") .IsRequired() .HasColumnType("bigint") .HasComment("采购发票差异科目代码"); b.Property("pov_acct") .IsRequired() .HasColumnType("bigint") .HasComment("采购订单差异科目代码"); b.Property("qty_min") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("最小订货量"); b.Property("sale_price") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .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("srm_purchase", (string)null); b.HasComment("物料采购信息表"); }); modelBuilder.Entity("Bussiness.Model.SystemData.crm_customer", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("tinyint(1)") .HasDefaultValue(false) .HasColumnName("IsDeleted") .HasComment("删除标识"); b.Property("address") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("地址"); b.Property("carrying_aos") .IsRequired() .HasColumnType("int") .HasComment("默认运输提前期_天"); b.Property("city") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("城市"); b.Property("contact") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("联系人"); b.Property("corperate") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("法人代表"); b.Property("country") .HasMaxLength(255) .HasColumnType("varchar(255)") .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("currency") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("结算币种"); b.Property("cust_group_name") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("客户分组名称"); b.Property("cust_group_number") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("客户分组编号"); b.Property("cust_type") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("客户类别"); b.Property("cust_type_number") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("客户类别编码"); b.Property("customer_level") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("客户级别"); b.Property("customer_name") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("客户名称"); b.Property("customer_no") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("客户编号"); b.Property("email") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("邮件地址"); b.Property("employee_name") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("专营业务员"); b.Property("employee_no") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("专营业务员_工号"); b.Property("factory_id") .HasColumnType("bigint") .HasComment("工厂ID"); b.Property("mobile") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("手机号码"); b.Property("op_time") .HasColumnType("datetime(6)") .HasComment("操作时间"); b.Property("org_id") .HasColumnType("bigint") .HasComment("组织ID"); b.Property("post_code") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("邮政编码"); b.Property("province") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("省份"); b.Property("region") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("区"); b.Property("sale_mode") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("销售模式"); b.Property("short_name") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("客户简称"); b.Property("short_number") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("客户简码"); b.Property("state") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("状态"); b.Property("telephone") .HasMaxLength(80) .HasColumnType("varchar(80)") .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.Property("value_add_rate") .HasPrecision(18, 10) .HasColumnType("decimal(18,10)") .HasComment("增值税率"); b.HasKey("Id"); b.ToTable("crm_customer", (string)null); b.HasComment("客户表"); }); modelBuilder.Entity("Bussiness.Model.SystemData.srm_supplier", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("tinyint(1)") .HasDefaultValue(false) .HasColumnName("IsDeleted") .HasComment("删除标识"); b.Property("addr_en") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("英文地址"); b.Property("approve_date") .HasColumnType("datetime(6)") .HasComment("批准日期"); b.Property("auto_create_mr") .HasColumnType("tinyint(1)") .HasComment("交货自动生成收货单据"); b.Property("auto_validate_order") .HasColumnType("tinyint(1)") .HasComment("自动确认订单"); b.Property("bank") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("开户银行"); b.Property("bank_account") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("银行账号"); b.Property("begin_day") .HasColumnType("datetime(6)") .HasComment("生效日期"); b.Property("branch_info") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("分支机构信息"); b.Property("checker") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("审核人"); b.Property("company_type") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("公司类别"); b.Property("contact") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("联系人"); b.Property("country") .HasMaxLength(255) .HasColumnType("varchar(255)") .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("currency") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("结算币种"); b.Property("department") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("分管部门"); b.Property("email") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("邮件地址"); b.Property("employee_name") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("专营业务员"); b.Property("employee_no") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("专营业务员_工号"); b.Property("end_day") .HasColumnType("datetime(6)") .HasComment("失效日期"); b.Property("factory_id") .HasColumnType("bigint") .HasComment("工厂ID"); b.Property("fax") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("传真号码"); b.Property("isuse_supplier_portal") .HasColumnType("tinyint(1)") .HasComment("启用供应商门户"); b.Property("licence") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("营业执照"); b.Property("mobile") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("移动电话"); b.Property("name_en") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("英文名称"); b.Property("op_time") .HasColumnType("datetime(6)") .HasComment("操作时间"); b.Property("org_id") .HasColumnType("bigint") .HasComment("组织ID"); b.Property("po_mode") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("采购模式"); b.Property("post_code") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("邮政编码"); b.Property("region") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("区域"); b.Property("regmark") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("注册商标"); b.Property("regster_date") .HasColumnType("datetime(6)") .HasComment("注册日期"); b.Property("settlement") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("结算方式"); b.Property("state") .HasColumnType("longtext") .HasComment("状态"); b.Property("stockid_assignee") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("受托代销虚仓"); b.Property("supplier_address") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("供应商地址"); b.Property("supplier_full_name") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("供应商全称"); b.Property("supplier_help_code") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("供应商助记码"); b.Property("supplier_name") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("供应商名称"); b.Property("supplier_no") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("供应商编号"); b.Property("supplier_short_name") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("供应商简称"); b.Property("supply_grade") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("供应商等级"); b.Property("supply_type") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("供应类别"); b.Property("taxid") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("税务登记号"); b.Property("telephone") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("联系电话"); b.Property("tenant_id") .HasColumnType("bigint") .HasComment("企业ID"); b.Property("trade") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("行业"); b.Property("type") .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.Property("value_add_rate") .HasPrecision(18, 10) .HasColumnType("decimal(18,10)") .HasComment("增值税率"); b.Property("vmi_stock") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("VMI仓"); b.HasKey("Id"); b.ToTable("srm_supplier", (string)null); b.HasComment("供应商表"); }); modelBuilder.Entity("Bussiness.Model.SystemData.sys_code", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("chinese_name") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("中文注释"); b.Property("code_date") .IsRequired() .HasColumnType("datetime(6)") .HasComment("编码生成时间"); b.Property("code_name") .IsRequired() .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("编码生成名称"); b.Property("code_rule") .IsRequired() .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("编码生成规则"); b.Property("code_value") .IsRequired() .HasColumnType("bigint") .HasComment("编码生成当前值"); b.HasKey("Id"); b.ToTable("sys_code", (string)null); b.HasComment("系统编码表"); }); modelBuilder.Entity("Bussiness.Model.SystemData.sys_code_pre", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("code_date") .HasColumnType("datetime(6)") .HasComment("编码生成时间"); b.Property("code_name") .IsRequired() .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("编码生成名称"); b.Property("code_value") .IsRequired() .HasColumnType("bigint") .HasComment("编码生成当前值"); b.Property("pre_name") .IsRequired() .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("编码生成前置名称"); b.HasKey("Id"); b.ToTable("sys_code_pre", (string)null); b.HasComment("系统编码前置表"); }); modelBuilder.Entity("Bussiness.Model.SystemData.sys_config", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("financeis_close") .HasColumnType("tinyint(1)") .HasComment("账务状态(0-关帐,1-开帐)"); b.Property("is_show") .HasColumnType("tinyint(1)") .HasComment("是否显示(0不显示、1显示)"); b.Property("next_open_date") .HasColumnType("datetime(6)") .HasComment("下一个开帐日期"); b.Property("type") .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("配置类型"); b.HasKey("Id"); b.ToTable("sys_config", (string)null); b.HasComment("系统配置表"); }); modelBuilder.Entity("Bussiness.Model.SystemData.sys_measure_unit", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("is_standard") .HasColumnType("tinyint(1)") .HasComment("是否是标准单位0-否,1是"); b.Property("status") .HasColumnType("tinyint(1)") .HasComment("状态:0-无效,1-有效"); b.Property("unit_code") .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("单位编码"); b.Property("unit_name") .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("单位名称"); b.HasKey("Id"); b.ToTable("sys_measure_unit", (string)null); b.HasComment("计量单位表"); }); modelBuilder.Entity("Bussiness.Model.SystemData.sys_post", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("tinyint(1)") .HasDefaultValue(false) .HasColumnName("IsDeleted") .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("dept_id") .HasColumnType("bigint") .HasComment("部门id"); b.Property("factory_id") .HasColumnType("bigint") .HasComment("工厂ID"); b.Property("org_id") .HasColumnType("bigint") .HasComment("组织ID"); b.Property("parent_id") .HasColumnType("bigint") .HasComment("上级岗位"); b.Property("post_code") .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("岗位编码"); b.Property("post_level") .HasColumnType("int") .HasComment("岗位级别"); b.Property("post_name") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("岗位名称"); b.Property("post_path") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("岗位路径"); b.Property("post_remark") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("岗位备注"); b.Property("post_sort") .HasColumnType("int") .HasComment("岗位排序"); b.Property("state") .HasMaxLength(255) .HasColumnType("tinyint(255)") .HasComment("数据状态标识 1启用 -1停用"); 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("sys_post", (string)null); b.HasComment("岗位表"); }); modelBuilder.Entity("Bussiness.Model.SystemData.sys_post_staff", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("tinyint(1)") .HasDefaultValue(false) .HasColumnName("IsDeleted") .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("org_id") .HasColumnType("bigint") .HasComment("组织ID"); b.Property("post_id") .HasColumnType("bigint") .HasComment("岗位id"); b.Property("staff_id") .HasColumnType("bigint") .HasComment("员工id"); 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("sys_post_staff", (string)null); b.HasComment("员工岗位关联表"); }); modelBuilder.Entity("Bussiness.Model.SystemData.sys_schedule", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("tinyint(1)") .HasDefaultValue(false) .HasColumnName("IsDeleted") .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("is_across") .HasColumnType("tinyint(1)") .HasComment("是否跨天 1是 0否"); b.Property("org_id") .HasColumnType("bigint") .HasComment("组织ID"); b.Property("remark") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("备注"); b.Property("schedule_end_time") .HasColumnType("datetime(6)") .HasComment("结束工作时间"); b.Property("schedule_name") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("班次名称"); b.Property("schedule_no") .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("班次编码"); b.Property("schedule_start_time") .HasColumnType("datetime(6)") .HasComment("起始工作时间"); b.Property("state") .HasColumnType("tinyint(1)") .HasComment("数据状态标识 1启用 0停用"); 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.Property("validate_hours") .HasColumnType("int") .HasComment("有效时长"); b.Property("work_hours") .HasColumnType("int") .HasComment("工作时长"); b.HasKey("Id"); b.ToTable("sys_schedule", (string)null); b.HasComment("班次表"); }); modelBuilder.Entity("Bussiness.Model.SystemData.sys_shift", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("tinyint(1)") .HasDefaultValue(false) .HasColumnName("IsDeleted") .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("is_across") .HasColumnType("tinyint(1)") .HasComment("岗位id"); b.Property("org_id") .HasColumnType("bigint") .HasComment("组织ID"); b.Property("remark") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("备注"); b.Property("shift_name") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("班制名称"); b.Property("shift_no") .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("班制编码"); b.Property("state") .HasColumnType("tinyint(1)") .HasComment("数据状态标识 1启用 0停用"); 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.Property("validate_hours") .HasColumnType("int") .HasComment("有效时长"); b.HasKey("Id"); b.ToTable("sys_shift", (string)null); b.HasComment("班制表"); }); modelBuilder.Entity("Bussiness.Model.SystemData.sys_shift_invalid_time", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("tinyint(1)") .HasDefaultValue(false) .HasColumnName("IsDeleted") .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_time") .HasColumnType("datetime(6)") .HasComment("结束时间"); b.Property("factory_id") .HasColumnType("bigint") .HasComment("工厂ID"); b.Property("org_id") .HasColumnType("bigint") .HasComment("组织ID"); b.Property("schedule_id") .HasColumnType("bigint") .HasComment("班次id"); b.Property("start_time") .HasColumnType("datetime(6)") .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("sys_shift_invalid_time", (string)null); b.HasComment("班次无效时间表"); }); modelBuilder.Entity("Bussiness.Model.SystemData.sys_shift_schedule", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("tinyint(1)") .HasDefaultValue(false) .HasColumnName("IsDeleted") .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("org_id") .HasColumnType("bigint") .HasComment("组织ID"); b.Property("schedule_id") .HasMaxLength(255) .HasColumnType("bigint") .HasComment("班次id"); b.Property("shift_id") .HasMaxLength(50) .HasColumnType("bigint") .HasComment("班制id"); 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("sys_shift_schedule", (string)null); b.HasComment("班制班次关联表"); }); modelBuilder.Entity("Bussiness.Model.SystemData.sys_staff", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("tinyint(1)") .HasDefaultValue(false) .HasColumnName("IsDeleted") .HasComment("删除标识"); b.Property("birthday") .HasColumnType("date") .HasComment("生日"); b.Property("card_no") .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("卡号"); b.Property("chinese_name") .HasMaxLength(255) .HasColumnType("varchar(255)") .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("dept_id") .HasColumnType("bigint") .HasComment("部门id"); b.Property("dept_name") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("部门名称"); b.Property("dept_no") .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("部门编号"); b.Property("email") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("邮箱"); b.Property("emp_no") .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("工号"); b.Property("factory_id") .HasColumnType("bigint") .HasComment("工厂ID"); b.Property("id_no") .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("身份证号"); b.Property("mobile") .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("移动电话"); b.Property("org_id") .HasColumnType("bigint") .HasComment("组织ID"); b.Property("org_name") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("组织名称"); b.Property("phone") .HasMaxLength(80) .HasColumnType("varchar(80)") .HasComment("电话"); b.Property("photo") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("照片"); b.Property("politics") .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("政治面貌"); b.Property("sex") .HasMaxLength(1) .HasColumnType("varchar(1)") .HasComment("性别 1 男 2 女"); b.Property("staff_no") .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("员工编码"); b.Property("staff_remark") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("备注"); b.Property("state") .HasMaxLength(255) .HasColumnType("tinyint(255)") .HasComment("数据状态标识 1启用 0停用"); 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.Property("user_id") .HasColumnType("bigint") .HasComment("用户id"); b.Property("user_name") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("用户名称"); b.HasKey("Id"); b.ToTable("sys_staff", (string)null); b.HasComment("员工表"); }); modelBuilder.Entity("Bussiness.Model.SystemData.sys_upload", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("data_type") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("文件数据类型"); b.Property("file_type") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("文件后缀"); b.Property("file_url") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("文件存储路径"); b.Property("original_file_name") .HasMaxLength(255) .HasColumnType("varchar(255)") .HasComment("源文件名称"); b.HasKey("Id"); b.ToTable("sys_upload", (string)null); b.HasComment("文件上传表"); }); modelBuilder.Entity("Bussiness.Model.Tech.mes_process", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("tinyint(1)") .HasDefaultValue(false) .HasColumnName("IsDeleted") .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("long_desc") .HasMaxLength(2000) .HasColumnType("varchar(2000)") .HasComment("详细描述"); b.Property("org_id") .HasColumnType("bigint") .HasComment("组织ID"); b.Property("proc_name") .IsRequired() .HasMaxLength(100) .HasColumnType("varchar(100)") .HasComment("工序名称"); b.Property("short_desc") .HasMaxLength(500) .HasColumnType("varchar(500)") .HasComment("简述"); b.Property("subids") .HasMaxLength(2000) .HasColumnType("varchar(2000)") .HasComment("组合工序id"); 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("mes_process", (string)null); b.HasComment("工序表"); }); modelBuilder.Entity("Bussiness.Model.Tech.mes_tech_proc_accessory", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("tinyint(1)") .HasDefaultValue(false) .HasColumnName("IsDeleted") .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("equip_id") .IsRequired() .HasColumnType("bigint") .HasComment("工装id"); b.Property("equip_no") .IsRequired() .HasMaxLength(100) .HasColumnType("varchar(100)") .HasComment("工装编号"); b.Property("factory_id") .HasColumnType("bigint") .HasComment("工厂ID"); b.Property("org_id") .HasColumnType("bigint") .HasComment("组织ID"); b.Property("qty") .IsRequired() .HasColumnType("int") .HasComment("数量"); b.Property("tech_proc_id") .IsRequired() .HasColumnType("bigint") .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("mes_tech_proc_accessory", (string)null); b.HasComment("治具表(工装表)"); }); modelBuilder.Entity("Bussiness.Model.Tech.mes_tech_proc_document", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("tinyint(1)") .HasDefaultValue(false) .HasColumnName("IsDeleted") .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("name") .HasMaxLength(100) .HasColumnType("varchar(100)") .HasComment("作业指导书名称"); b.Property("org_id") .HasColumnType("bigint") .HasComment("组织ID"); b.Property("tech_proc_id") .IsRequired() .HasColumnType("bigint") .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.Property("upload_id") .IsRequired() .HasColumnType("bigint") .HasComment("作业指导书主键"); b.HasKey("Id"); b.ToTable("mes_tech_proc_document", (string)null); b.HasComment("工序作业指导书表"); }); modelBuilder.Entity("Bussiness.Model.Tech.mes_tech_proc_equipment", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("tinyint(1)") .HasDefaultValue(false) .HasColumnName("IsDeleted") .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("equip_id") .IsRequired() .HasColumnType("bigint") .HasComment("设备id"); b.Property("equip_name") .HasMaxLength(100) .HasColumnType("varchar(100)") .HasComment("设备名称"); b.Property("factory_id") .HasColumnType("bigint") .HasComment("工厂ID"); b.Property("org_id") .HasColumnType("bigint") .HasComment("组织ID"); b.Property("tech_proc_id") .IsRequired() .HasColumnType("bigint") .HasComment("工艺工序id"); 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.Property("work_calendar_id") .HasColumnType("bigint") .HasComment("工作日历id"); b.HasKey("Id"); b.ToTable("mes_tech_proc_workshop_equipment", (string)null); b.HasComment("工艺路径关联设备表"); }); modelBuilder.Entity("Bussiness.Model.Tech.mes_tech_proc_icitem", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("tinyint(1)") .HasDefaultValue(false) .HasColumnName("IsDeleted") .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") .IsRequired() .HasColumnType("bigint") .HasComment("物料id"); b.Property("org_id") .HasColumnType("bigint") .HasComment("组织ID"); b.Property("qty") .IsRequired() .HasColumnType("int") .HasComment("数量"); b.Property("tech_proc_id") .IsRequired() .HasColumnType("bigint") .HasComment("工艺工序id"); 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("mes_tech_proc_workshop_icitem", (string)null); b.HasComment("发料到工位表"); }); modelBuilder.Entity("Bussiness.Model.Tech.mes_tech_proc_workshop", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("tinyint(1)") .HasDefaultValue(false) .HasColumnName("IsDeleted") .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("org_id") .HasColumnType("bigint") .HasComment("组织ID"); b.Property("serialno") .HasColumnType("int") .HasComment("序列号"); b.Property("tech_proc_id") .IsRequired() .HasColumnType("bigint") .HasComment("工艺工序id"); 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.Property("workshop_id") .IsRequired() .HasColumnType("bigint") .HasComment("工位id"); b.HasKey("Id"); b.ToTable("mes_tech_proc_workshop", (string)null); b.HasComment("工艺路径关联工位表"); }); modelBuilder.Entity("Bussiness.Model.Tech.mes_tech_proc_workshop_staff", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("tinyint(1)") .HasDefaultValue(false) .HasColumnName("IsDeleted") .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("org_id") .HasColumnType("bigint") .HasComment("组织ID"); b.Property("staff_id") .IsRequired() .HasColumnType("bigint") .HasComment("员工id"); b.Property("staff_name") .HasMaxLength(100) .HasColumnType("varchar(100)") .HasComment("员工姓名"); b.Property("tech_proc_workshop_id") .IsRequired() .HasColumnType("bigint") .HasComment("工艺工位id"); 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("mes_tech_proc_workshop_staff", (string)null); b.HasComment("工序工位员工信息表"); }); modelBuilder.Entity("Bussiness.Model.Tech.mes_tech_process", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("tinyint(1)") .HasDefaultValue(false) .HasColumnName("IsDeleted") .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("ct") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("节拍时间"); b.Property("effect_ratio") .HasPrecision(10, 4) .HasColumnType("decimal(10,4)") .HasComment("效率系数"); b.Property("factory_id") .HasColumnType("bigint") .HasComment("工厂ID"); b.Property("is_schedule") .IsRequired() .HasColumnType("int") .HasComment("是否需要排产:1-是;0-否"); b.Property("level") .IsRequired() .HasColumnType("int") .HasComment("组合层级"); b.Property("lq") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("前置最小数量"); b.Property("maxworkshop") .HasColumnType("int") .HasComment("最大并行工位数"); b.Property("mototrack") .HasColumnType("int") .HasComment("是否需要跟踪工序"); b.Property("needqc") .HasColumnType("int") .HasComment("是否需要质检"); b.Property("nextprocid") .HasColumnType("bigint") .HasComment("下一工序id"); b.Property("org_id") .HasColumnType("bigint") .HasComment("组织ID"); b.Property("parentprocid") .HasColumnType("bigint") .HasComment("父级工序id"); b.Property("proc_id") .IsRequired() .HasColumnType("bigint") .HasComment("工序主键"); b.Property("readytime") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("前置准备时间"); b.Property("tech_id") .IsRequired() .HasColumnType("bigint") .HasComment("工艺主键"); b.Property("tenant_id") .HasColumnType("bigint") .HasComment("企业ID"); b.Property("type") .IsRequired() .HasColumnType("int") .HasComment("效率计算类型 1-节拍时间;2-UPH"); 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("upe") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("一次可加工数量"); b.Property("uph") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("UPH"); b.Property("upp") .HasPrecision(20, 8) .HasColumnType("decimal(20,8)") .HasComment("子工序加工数量"); b.Property("wctype") .HasColumnType("int") .HasComment("工作中心类型"); b.Property("wsinuse") .HasColumnType("int") .HasComment("实际运行工位数"); b.HasKey("Id"); b.ToTable("mes_tech_process", (string)null); b.HasComment("工艺关联工序表"); }); modelBuilder.Entity("Bussiness.Model.Tech.mes_technique", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("tinyint(1)") .HasDefaultValue(false) .HasColumnName("IsDeleted") .HasComment("删除标识"); b.Property("bom") .HasMaxLength(100) .HasColumnType("varchar(100)") .HasComment("产品"); b.Property("bomver") .HasMaxLength(100) .HasColumnType("varchar(100)") .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("desc") .HasMaxLength(100) .HasColumnType("varchar(100)") .HasComment("描述"); b.Property("factory_id") .HasColumnType("bigint") .HasComment("工厂ID"); b.Property("level") .IsRequired() .HasColumnType("int") .HasComment("效率计算层级"); b.Property("org_id") .HasColumnType("bigint") .HasComment("组织ID"); b.Property("tech_name") .IsRequired() .HasMaxLength(100) .HasColumnType("varchar(100)") .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("mes_technique", (string)null); b.HasComment("工艺路径表"); }); modelBuilder.Entity("Bussiness.Model.Tech.mes_work_calendar", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("tinyint(1)") .HasDefaultValue(false) .HasColumnName("IsDeleted") .HasComment("删除标识"); b.Property("calendar1") .HasColumnType("int") .HasComment("周1"); b.Property("calendar2") .HasColumnType("int") .HasComment("周2"); b.Property("calendar3") .HasColumnType("int") .HasComment("周3"); b.Property("calendar4") .HasColumnType("int") .HasComment("周4"); b.Property("calendar5") .HasColumnType("int") .HasComment("周5"); b.Property("calendar6") .HasColumnType("int") .HasComment("周6"); b.Property("calendar7") .HasColumnType("int") .HasComment("周7"); 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_time") .HasColumnType("datetime(6)") .HasComment("结束时间"); b.Property("factory_id") .HasColumnType("bigint") .HasComment("工厂ID"); b.Property("org_id") .HasColumnType("bigint") .HasComment("组织ID"); b.Property("rest_period") .HasColumnType("int") .HasComment("休息周期"); b.Property("shift_id") .HasColumnType("bigint") .HasComment("班制id"); b.Property("standard_period") .HasColumnType("int") .HasComment("标准周期"); b.Property("start_time") .HasColumnType("datetime(6)") .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.Property("work_calendar_name") .HasMaxLength(100) .HasColumnType("varchar(100)") .HasComment("工作日历名称"); b.Property("work_calendar_no") .HasMaxLength(100) .HasColumnType("varchar(100)") .HasComment("工作日历编码"); b.Property("work_period") .HasColumnType("int") .HasComment("工作周期"); b.HasKey("Id"); b.ToTable("mes_work_calendar", (string)null); b.HasComment("工作日历表"); }); modelBuilder.Entity("Bussiness.Model.Tech.mes_work_calendar_list", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("tinyint(1)") .HasDefaultValue(false) .HasColumnName("IsDeleted") .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("org_id") .HasColumnType("bigint") .HasComment("组织ID"); 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.Property("work_cal_list_date") .HasColumnType("datetime(6)") .HasComment("日期"); b.Property("work_cal_list_num") .HasColumnType("int") .HasComment("班次数"); b.Property("work_cal_list_times") .HasColumnType("int") .HasComment("工作时长(分钟)"); b.Property("work_cal_list_type") .HasColumnType("int") .HasComment("类型:1-工作日;0-休息日"); b.Property("work_calendar_id") .IsRequired() .HasColumnType("bigint") .HasComment("工作日历id"); b.HasKey("Id"); b.ToTable("mes_work_calendar_list", (string)null); b.HasComment("工作日历明细表"); }); modelBuilder.Entity("Bussiness.Model.Tech.mes_workshop", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("tinyint(1)") .HasDefaultValue(false) .HasColumnName("IsDeleted") .HasComment("删除标识"); b.Property("building") .HasMaxLength(100) .HasColumnType("varchar(100)") .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("floor") .HasMaxLength(100) .HasColumnType("varchar(100)") .HasComment("楼层"); b.Property("geoinfo") .HasMaxLength(100) .HasColumnType("varchar(100)") .HasComment("坐标"); b.Property("name") .HasMaxLength(100) .HasColumnType("varchar(100)") .HasComment("工位名称"); b.Property("org_id") .HasColumnType("bigint") .HasComment("组织ID"); b.Property("subids") .HasMaxLength(2000) .HasColumnType("varchar(2000)") .HasComment("组合工位ids"); 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.Property("work_calendar_id") .HasColumnType("bigint") .HasComment("工作日历id"); b.Property("zone") .HasMaxLength(100) .HasColumnType("varchar(100)") .HasComment("区域"); b.HasKey("Id"); b.ToTable("mes_workshop", (string)null); b.HasComment("工位表"); }); modelBuilder.Entity("Bussiness.Model.Tech.mes_workshop_shelf", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("tinyint(1)") .HasDefaultValue(false) .HasColumnName("IsDeleted") .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("geoinfo") .HasMaxLength(100) .HasColumnType("varchar(100)") .HasComment("坐标"); b.Property("org_id") .HasColumnType("bigint") .HasComment("组织ID"); b.Property("serialno") .HasColumnType("int") .HasComment("线边仓序列号"); b.Property("sheifno") .HasMaxLength(100) .HasColumnType("varchar(100)") .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.Property("workshop_id") .IsRequired() .HasColumnType("bigint") .HasComment("工位id"); b.HasKey("Id"); b.ToTable("mes_workshop_shelf", (string)null); b.HasComment("工位关联线边仓表"); }); modelBuilder.Entity("XCZ.FlowManagement.BaseFlow", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("char(36)"); b.Property("Code") .IsRequired() .HasMaxLength(50) .HasColumnType("varchar(50)"); 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("ExtraProperties") .HasColumnType("longtext") .HasColumnName("ExtraProperties"); b.Property("FormId") .HasColumnType("char(36)"); 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("Level") .HasColumnType("int"); b.Property("Remark") .HasMaxLength(200) .HasColumnType("varchar(200)"); b.Property("Status") .ValueGeneratedOnAdd() .HasColumnType("int") .HasDefaultValue(0); b.Property("TenantId") .HasColumnType("char(36)") .HasColumnName("TenantId"); b.Property("Title") .IsRequired() .HasMaxLength(100) .HasColumnType("varchar(100)"); b.Property("UseDate") .IsRequired() .HasMaxLength(50) .HasColumnType("varchar(50)"); b.HasKey("Id"); b.HasIndex("FormId"); b.ToTable("base_flow", (string)null); }); modelBuilder.Entity("XCZ.FlowManagement.FlowLine", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("char(36)"); b.Property("BaseFlowId") .HasColumnType("char(36)"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("varchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("ExtraProperties") .HasColumnType("longtext") .HasColumnName("ExtraProperties"); b.Property("From") .IsRequired() .HasMaxLength(50) .HasColumnType("varchar(50)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("tinyint(1)") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("Label") .HasMaxLength(100) .HasColumnType("varchar(100)"); b.Property("Remark") .HasMaxLength(200) .HasColumnType("varchar(200)"); b.Property("TenantId") .HasColumnType("char(36)") .HasColumnName("TenantId"); b.Property("To") .IsRequired() .HasMaxLength(50) .HasColumnType("varchar(50)"); b.HasKey("Id"); b.ToTable("base_flow_line", (string)null); }); modelBuilder.Entity("XCZ.FlowManagement.FlowNode", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("char(36)"); b.Property("BaseFlowId") .HasColumnType("char(36)"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("varchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("Executor") .HasMaxLength(50) .HasColumnType("varchar(50)"); b.Property("ExtraProperties") .HasColumnType("longtext") .HasColumnName("ExtraProperties"); b.Property("Ico") .HasMaxLength(50) .HasColumnType("varchar(50)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("tinyint(1)") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("Left") .IsRequired() .HasMaxLength(50) .HasColumnType("varchar(50)"); b.Property("Name") .IsRequired() .HasMaxLength(100) .HasColumnType("varchar(100)"); b.Property("NodeId") .IsRequired() .HasMaxLength(100) .HasColumnType("varchar(100)"); b.Property("Remark") .HasMaxLength(200) .HasColumnType("varchar(200)"); b.Property("Roles") .HasMaxLength(1000) .HasColumnType("varchar(1000)"); b.Property("State") .HasMaxLength(50) .HasColumnType("varchar(50)"); b.Property("TenantId") .HasColumnType("char(36)") .HasColumnName("TenantId"); b.Property("Top") .IsRequired() .HasMaxLength(50) .HasColumnType("varchar(50)"); b.Property("Type") .IsRequired() .HasMaxLength(50) .HasColumnType("varchar(50)"); b.Property("Users") .HasMaxLength(1000) .HasColumnType("varchar(1000)"); b.HasKey("Id"); b.ToTable("base_flow_node", (string)null); }); modelBuilder.Entity("XCZ.FlowManagement.LineForm", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("char(36)"); b.Property("BaseFlowId") .HasColumnType("char(36)"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("varchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("Condition") .HasMaxLength(100) .HasColumnType("varchar(100)"); b.Property("Content") .HasMaxLength(1000) .HasColumnType("varchar(1000)"); b.Property("ExtraProperties") .HasColumnType("longtext") .HasColumnName("ExtraProperties"); b.Property("FieldId") .HasColumnType("char(36)"); b.Property("FieldName") .HasMaxLength(20) .HasColumnType("varchar(20)"); b.Property("FieldType") .HasMaxLength(20) .HasColumnType("varchar(20)"); b.Property("FlowLineId") .HasColumnType("char(36)"); b.Property("IntContent") .HasColumnType("int"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("tinyint(1)") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("Remark") .HasMaxLength(200) .HasColumnType("varchar(200)"); b.Property("TenantId") .HasColumnType("char(36)") .HasColumnName("TenantId"); b.HasKey("Id"); b.ToTable("base_flow_line_form", (string)null); }); modelBuilder.Entity("XCZ.FormManagement.Form", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("char(36)"); b.Property("Api") .IsRequired() .HasMaxLength(200) .HasColumnType("varchar(200)"); 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") .IsRequired() .HasMaxLength(200) .HasColumnType("varchar(200)"); b.Property("Disabled") .HasColumnType("tinyint(1)"); b.Property("DisplayName") .IsRequired() .HasMaxLength(100) .HasColumnType("varchar(100)"); b.Property("EntityName") .HasMaxLength(50) .HasColumnType("varchar(50)"); b.Property("ExtraProperties") .HasColumnType("longtext") .HasColumnName("ExtraProperties"); b.Property("FormName") .IsRequired() .HasMaxLength(50) .HasColumnType("varchar(50)"); 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("Namespace") .HasMaxLength(50) .HasColumnType("varchar(50)"); b.Property("Remark") .HasMaxLength(200) .HasColumnType("varchar(200)"); b.Property("TableName") .HasMaxLength(50) .HasColumnType("varchar(50)"); b.Property("TenantId") .HasColumnType("char(36)") .HasColumnName("TenantId"); b.HasKey("Id"); b.ToTable("base_form", (string)null); }); modelBuilder.Entity("XCZ.FormManagement.FormData", 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("Data") .HasColumnType("longtext"); b.Property("ExtraProperties") .HasColumnType("longtext") .HasColumnName("ExtraProperties"); b.Property("FormId") .HasColumnType("char(36)"); 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("TenantId") .HasColumnType("char(36)") .HasColumnName("TenantId"); b.HasKey("Id"); b.ToTable("base_form_datas", (string)null); }); modelBuilder.Entity("XCZ.FormManagement.FormField", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("char(36)"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("varchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("DataType") .IsRequired() .HasMaxLength(50) .HasColumnType("varchar(50)"); b.Property("DefaultValue") .HasMaxLength(256) .HasColumnType("varchar(256)"); b.Property("Disabled") .HasColumnType("tinyint(1)"); b.Property("ExtraProperties") .HasColumnType("longtext") .HasColumnName("ExtraProperties"); b.Property("FieldName") .IsRequired() .HasMaxLength(50) .HasColumnType("varchar(50)"); b.Property("FieldOrder") .HasColumnType("int"); b.Property("FieldType") .IsRequired() .HasMaxLength(50) .HasColumnType("varchar(50)"); b.Property("FormId") .HasColumnType("char(36)"); b.Property("Icon") .HasMaxLength(50) .HasColumnType("varchar(50)"); b.Property("IsIndex") .ValueGeneratedOnAdd() .HasColumnType("tinyint(1)") .HasDefaultValue(false); b.Property("IsReadonly") .HasColumnType("tinyint(1)"); b.Property("IsRequired") .HasColumnType("tinyint(1)"); b.Property("IsSort") .HasColumnType("tinyint(1)"); b.Property("Label") .IsRequired() .HasMaxLength(128) .HasColumnType("varchar(128)"); b.Property("Maxlength") .HasColumnType("int"); b.Property("Placeholder") .HasMaxLength(50) .HasColumnType("varchar(50)"); b.Property("Regx") .HasColumnType("longtext"); b.Property("Span") .ValueGeneratedOnAdd() .HasColumnType("int") .HasDefaultValue(24); b.Property("TenantId") .HasColumnType("char(36)"); b.HasKey("Id"); b.ToTable("base_form_fields", (string)null); }); modelBuilder.Entity("XCZ.FormManagement.FormFieldOption", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("char(36)"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("varchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("ExtraProperties") .HasColumnType("longtext") .HasColumnName("ExtraProperties"); b.Property("FormFieldId") .HasColumnType("char(36)"); b.Property("FormId") .HasColumnType("char(36)"); b.Property("Label") .IsRequired() .HasMaxLength(200) .HasColumnType("varchar(200)"); b.Property("TenantId") .HasColumnType("char(36)"); b.Property("Value") .IsRequired() .HasMaxLength(200) .HasColumnType("varchar(200)"); b.HasKey("Id"); b.ToTable("base_form_fields_opts", (string)null); }); modelBuilder.Entity("XCZ.WorkFlow.FormWorkFlow", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("char(36)"); b.Property("BaseFlowId") .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("EntityId") .HasColumnType("char(36)"); b.Property("ExtraProperties") .HasColumnType("longtext") .HasColumnName("ExtraProperties"); b.Property("FormId") .HasColumnType("char(36)"); 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("NodeId") .IsRequired() .HasMaxLength(50) .HasColumnType("varchar(50)"); b.Property("Status") .ValueGeneratedOnAdd() .HasColumnType("int") .HasDefaultValue(0); b.Property("TenantId") .HasColumnType("char(36)") .HasColumnName("TenantId"); b.HasKey("Id"); b.HasIndex("EntityId"); b.HasIndex("NodeId"); b.ToTable("base_form_workflow", (string)null); }); #pragma warning restore 612, 618 } } }