// using System; using Business.EntityFrameworkCore; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Volo.Abp.EntityFrameworkCore; #nullable disable namespace Business.Migrations.BusinessBangMigrationDb { [DbContext(typeof(BusinessBangMigrationDbContext))] partial class BusinessBangMigrationDbContextModelSnapshot : ModelSnapshot { protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) .HasAnnotation("ProductVersion", "6.0.5") .HasAnnotation("Relational:MaxIdentifierLength", 128); SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1); modelBuilder.Entity("Business.Model.Bang.b_bom_child_examine", b => { b.Property("Id") .HasColumnType("bigint"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted") .HasComment("删除标识"); b.Property("backflush") .HasColumnType("int") .HasComment("是否倒冲"); b.Property("bom_child_id") .HasColumnType("bigint") .HasComment("bom明细主键"); b.Property("bom_id") .HasColumnType("bigint") .HasComment("BOMid"); b.Property("bom_number") .HasMaxLength(20) .HasColumnType("nvarchar(20)") .HasComment("bom编号"); b.Property("create_by") .HasColumnType("bigint") .HasComment("创建人id"); b.Property("create_by_name") .HasMaxLength(50) .HasColumnType("nvarchar(50)") .HasComment("创建人名称"); b.Property("create_time") .HasColumnType("datetime2") .HasComment("创建时间"); b.Property("erp_cls") .HasColumnType("int") .HasComment("物料属性"); b.Property("erp_cls_name") .HasMaxLength(80) .HasColumnType("nvarchar(80)") .HasComment("物料属性名称"); b.Property("examine_id") .HasColumnType("bigint") .HasComment("资源检查ID"); b.Property("factory_id") .HasColumnType("bigint") .HasComment("工厂ID"); b.Property("fid") .HasColumnType("bigint") .HasComment("本级id"); b.Property("haveicsubs") .HasColumnType("int") .HasComment("存在替代关系"); b.Property("is_use") .HasColumnType("bit") .HasComment("是否使用此物料"); b.Property("isbom") .HasColumnType("int") .HasComment("是否BOM"); b.Property("item_id") .HasColumnType("bigint") .HasComment("物料id"); b.Property("item_name") .HasMaxLength(200) .HasColumnType("nvarchar(200)") .HasComment("物料名称"); b.Property("item_number") .HasMaxLength(80) .HasColumnType("nvarchar(80)") .HasComment("物料编号"); b.Property("kitting_time") .HasColumnType("datetime2") .HasComment("齐套时间"); b.Property("lack_qty") .HasPrecision(23, 10) .HasColumnType("decimal(23,10)") .HasComment("缺料数量"); b.Property("level") .HasColumnType("int") .HasComment("level"); b.Property("make_qty") .HasPrecision(23, 10) .HasColumnType("decimal(23,10)") .HasComment("自制数量"); b.Property("mo_qty") .HasPrecision(23, 10) .HasColumnType("decimal(23,10)") .HasComment("在制占用数量"); b.Property("model") .HasMaxLength(200) .HasColumnType("nvarchar(200)") .HasComment("规格型号"); b.Property("needCount") .HasPrecision(23, 10) .HasColumnType("decimal(23,10)") .HasComment("单个产品总需要用量"); b.Property("num") .HasMaxLength(50) .HasColumnType("nvarchar(50)") .HasComment("项次号"); b.Property("num_order") .HasColumnType("bigint") .HasComment("排序使用"); b.Property("org_id") .HasColumnType("bigint") .HasComment("组织ID"); b.Property("parent_id") .HasColumnType("bigint") .HasComment("父级id"); b.Property("purchase_occupy_qty") .HasPrecision(23, 10) .HasColumnType("decimal(23,10)") .HasComment("采购明细占用数量"); b.Property("purchase_qty") .HasPrecision(23, 10) .HasColumnType("decimal(23,10)") .HasComment("采购数量"); b.Property("qty") .HasPrecision(23, 10) .HasColumnType("decimal(23,10)") .HasComment("单位用量"); b.Property("satisfy_time") .HasColumnType("datetime2") .HasComment("满足时间"); b.Property("self_lack_qty") .HasPrecision(23, 10) .HasColumnType("decimal(23,10)") .HasComment("本级缺料数量"); b.Property("sentry_id") .HasColumnType("bigint") .HasComment("订单行ID"); b.Property("sqty") .HasPrecision(23, 10) .HasColumnType("decimal(23,10)") .HasComment("库存数量"); b.Property("stock_state") .HasColumnType("int") .HasComment("物料状态"); b.Property("subcontracting_qty") .HasPrecision(23, 10) .HasColumnType("decimal(23,10)") .HasComment("委外数量"); b.Property("substitute_all_num") .HasColumnType("int") .HasComment("群组优先级"); b.Property("substitute_code") .HasMaxLength(20) .HasColumnType("nvarchar(20)") .HasComment("群组代码"); b.Property("substitute_mode") .HasColumnType("int") .HasComment("替代方式"); b.Property("substitute_strategy") .HasColumnType("int") .HasComment("替代策略"); b.Property("tenant_id") .HasColumnType("bigint") .HasComment("企业ID"); b.Property("type") .HasColumnType("int") .HasComment("类型"); b.Property("unit") .HasMaxLength(80) .HasColumnType("nvarchar(80)") .HasComment("单位"); b.Property("update_by") .HasColumnType("bigint") .HasComment("修改人"); b.Property("update_by_name") .HasMaxLength(50) .HasColumnType("nvarchar(50)") .HasComment("修改人名称"); b.Property("update_time") .HasColumnType("datetime2") .HasComment("修改时间"); b.Property("use_qty") .HasPrecision(23, 10) .HasColumnType("decimal(23,10)") .HasComment("库存占用数量"); b.Property("version") .HasMaxLength(80) .HasColumnType("nvarchar(80)") .HasComment("版本"); b.HasKey("Id"); b.HasIndex("examine_id", "bom_number", "item_number", "tenant_id", "factory_id"); b.ToTable("b_bom_child_examine", (string)null); b.HasComment("Bom明细检查结果"); }); modelBuilder.Entity("Business.Model.Bang.b_day_bulletin_board", b => { b.Property("Id") .HasColumnType("bigint"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted") .HasComment("删除标识"); b.Property("create_by") .HasColumnType("bigint") .HasComment("创建人id"); b.Property("create_by_name") .HasMaxLength(50) .HasColumnType("nvarchar(50)") .HasComment("创建人名称"); b.Property("create_time") .HasColumnType("datetime2") .HasComment("创建时间"); b.Property("day") .HasColumnType("nvarchar(max)") .HasComment("日期"); b.Property("factory_id") .HasColumnType("bigint") .HasComment("工厂ID"); b.Property("item_name") .HasColumnType("nvarchar(max)") .HasComment("物料名称"); b.Property("item_number") .HasColumnType("nvarchar(450)") .HasComment("物料编码"); b.Property("make_qty") .HasPrecision(23, 10) .HasColumnType("decimal(23,10)") .HasComment("自制数量"); b.Property("mo_qty") .HasPrecision(23, 10) .HasColumnType("decimal(23,10)") .HasComment("在制占用数量"); b.Property("org_id") .HasColumnType("bigint") .HasComment("组织ID"); b.Property("purchase_occupy_qty") .HasPrecision(23, 10) .HasColumnType("decimal(23,10)") .HasComment("采购占用数量"); b.Property("self_lack_qty") .HasPrecision(23, 10) .HasColumnType("decimal(23,10)") .HasComment("缺料数量"); b.Property("tenant_id") .HasColumnType("bigint") .HasComment("企业ID"); b.Property("type") .HasColumnType("int") .HasComment("类别"); b.Property("update_by") .HasColumnType("bigint") .HasComment("修改人"); b.Property("update_by_name") .HasMaxLength(50) .HasColumnType("nvarchar(50)") .HasComment("修改人名称"); b.Property("update_time") .HasColumnType("datetime2") .HasComment("修改时间"); b.Property("use_qty") .HasPrecision(23, 10) .HasColumnType("decimal(23,10)") .HasComment("库存占用数量"); b.HasKey("Id"); b.HasIndex("item_number", "tenant_id", "factory_id"); b.ToTable("b_day_bulletin_board", (string)null); b.HasComment("物料齐套明细"); }); modelBuilder.Entity("Business.Model.Bang.b_examine_result", b => { b.Property("Id") .HasColumnType("bigint"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted") .HasComment("删除标识"); b.Property("bangid") .HasColumnType("bigint") .HasComment("计算id"); b.Property("bill_no") .HasMaxLength(50) .HasColumnType("nvarchar(50)") .HasComment("订单编号"); b.Property("bom_number") .HasMaxLength(20) .HasColumnType("nvarchar(20)") .HasComment("BOM编码"); b.Property("create_by") .HasColumnType("bigint") .HasComment("创建人id"); b.Property("create_by_name") .HasMaxLength(50) .HasColumnType("nvarchar(50)") .HasComment("创建人名称"); b.Property("create_time") .HasColumnType("datetime2") .HasComment("创建时间"); b.Property("earliest_times") .HasColumnType("datetime2") .HasComment("最早开工时间"); b.Property("entry_seq") .HasColumnType("int") .HasComment("行号"); b.Property("factory_id") .HasColumnType("bigint") .HasComment("工厂ID"); b.Property("kitting_times") .HasColumnType("datetime2") .HasComment("物料齐套时间"); b.Property("latest_times") .HasColumnType("datetime2") .HasComment("最晚开工时间"); b.Property("morder_id") .HasColumnType("bigint") .HasComment("工单id"); b.Property("morder_no") .HasMaxLength(50) .HasColumnType("nvarchar(50)") .HasComment("工单号"); b.Property("need_qty") .HasPrecision(23, 10) .HasColumnType("decimal(23,10)") .HasComment("需要数量"); b.Property("need_time") .HasColumnType("datetime2") .HasComment("需求日期"); b.Property("order_statr_time") .HasColumnType("datetime2") .HasComment("工单开工时间"); b.Property("org_id") .HasColumnType("bigint") .HasComment("组织ID"); b.Property("sentry_id") .HasColumnType("bigint") .HasComment("订单行id"); b.Property("sorderid") .HasColumnType("bigint") .HasComment("订单id"); b.Property("sys_capacity_date") .HasColumnType("datetime2") .HasComment("建议交期(产能)"); b.Property("sys_material_date") .HasColumnType("datetime2") .HasComment("建议交期(物料)"); b.Property("tenant_id") .HasColumnType("bigint") .HasComment("企业ID"); b.Property("update_by") .HasColumnType("bigint") .HasComment("修改人"); b.Property("update_by_name") .HasMaxLength(50) .HasColumnType("nvarchar(50)") .HasComment("修改人名称"); b.Property("update_time") .HasColumnType("datetime2") .HasComment("修改时间"); b.HasKey("Id"); b.HasIndex("bill_no", "bom_number", "tenant_id", "factory_id"); b.ToTable("b_examine_result", (string)null); b.HasComment("资源检查"); }); modelBuilder.Entity("Business.Model.Bang.b_mo_occupy", b => { b.Property("Id") .HasColumnType("bigint"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted") .HasComment("删除标识"); b.Property("bom_child_examine_id") .HasColumnType("bigint") .HasComment("物料检查明细ID"); b.Property("create_by") .HasColumnType("bigint") .HasComment("创建人id"); b.Property("create_by_name") .HasMaxLength(50) .HasColumnType("nvarchar(50)") .HasComment("创建人名称"); b.Property("create_time") .HasColumnType("datetime2") .HasComment("创建时间"); b.Property("factory_id") .HasColumnType("bigint") .HasComment("工厂ID"); b.Property("moo_etime") .HasColumnType("datetime2") .HasComment("结束时间"); b.Property("moo_mo") .HasMaxLength(50) .HasColumnType("nvarchar(50)") .HasComment("工单号"); b.Property("moo_qty") .HasPrecision(23, 10) .HasColumnType("decimal(23,10)") .HasComment("占用量"); b.Property("moo_stime") .HasColumnType("datetime2") .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("nvarchar(50)") .HasComment("修改人名称"); b.Property("update_time") .HasColumnType("datetime2") .HasComment("修改时间"); b.HasKey("Id"); b.HasIndex("bom_child_examine_id", "tenant_id", "factory_id"); b.ToTable("b_mo_occupy", (string)null); b.HasComment("在制占用明细"); }); modelBuilder.Entity("Business.Model.Bang.b_mo_order", b => { b.Property("Id") .HasColumnType("bigint"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted") .HasComment("删除标识"); b.Property("bom_child_examine_id") .HasColumnType("bigint") .HasComment("物料检查明细ID"); b.Property("create_by") .HasColumnType("bigint") .HasComment("创建人id"); b.Property("create_by_name") .HasMaxLength(50) .HasColumnType("nvarchar(50)") .HasComment("创建人名称"); b.Property("create_time") .HasColumnType("datetime2") .HasComment("创建时间"); b.Property("factory_id") .HasColumnType("bigint") .HasComment("工厂ID"); b.Property("moentry_etime") .HasColumnType("datetime2") .HasComment("生产工单结束日期"); b.Property("moentry_prdname") .HasMaxLength(50) .HasColumnType("nvarchar(50)") .HasComment("生产组织名称"); b.Property("moentry_stime") .HasColumnType("datetime2") .HasComment("生产工单开始日期"); b.Property("moentry_sys_etime") .HasColumnType("datetime2") .HasComment("系统建议完工时间"); b.Property("moentry_sys_stime") .HasColumnType("datetime2") .HasComment("系统建议开工时间"); b.Property("moentry_wrkcname") .HasMaxLength(50) .HasColumnType("nvarchar(50)") .HasComment("工作中心名称"); b.Property("morder_need_time") .HasPrecision(23, 10) .HasColumnType("decimal(23,10)") .HasComment("工单所需工时"); b.Property("morder_no") .HasMaxLength(50) .HasColumnType("nvarchar(50)") .HasComment("生产工单编号"); b.Property("morder_production_number") .HasPrecision(23, 10) .HasColumnType("decimal(23,10)") .HasComment("工单生产数量"); b.Property("need_number") .HasPrecision(23, 10) .HasColumnType("decimal(23,10)") .HasComment("需求数量"); b.Property("org_id") .HasColumnType("bigint") .HasComment("组织ID"); b.Property("reality_end_time") .HasColumnType("datetime2") .HasComment("实际结束时间"); b.Property("reality_start_time") .HasColumnType("datetime2") .HasComment("实际开始时间"); b.Property("tenant_id") .HasColumnType("bigint") .HasComment("企业ID"); b.Property("update_by") .HasColumnType("bigint") .HasComment("修改人"); b.Property("update_by_name") .HasMaxLength(50) .HasColumnType("nvarchar(50)") .HasComment("修改人名称"); b.Property("update_time") .HasColumnType("datetime2") .HasComment("修改时间"); b.HasKey("Id"); b.HasIndex("bom_child_examine_id", "tenant_id", "factory_id"); b.ToTable("b_mo_order", (string)null); b.HasComment("生产工单明细"); }); modelBuilder.Entity("Business.Model.Bang.b_ooder", b => { b.Property("Id") .HasColumnType("bigint"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted") .HasComment("删除标识"); b.Property("bom_child_examine_id") .HasColumnType("bigint") .HasComment("物料检查明细ID"); b.Property("create_by") .HasColumnType("bigint") .HasComment("创建人id"); b.Property("create_by_name") .HasMaxLength(50) .HasColumnType("nvarchar(50)") .HasComment("创建人名称"); b.Property("create_time") .HasColumnType("datetime2") .HasComment("创建时间"); b.Property("factory_id") .HasColumnType("bigint") .HasComment("工厂ID"); b.Property("morder_production_number") .HasPrecision(23, 10) .HasColumnType("decimal(23,10)") .HasComment("工单生产数量"); b.Property("ooentry_etime") .HasColumnType("datetime2") .HasComment("计划完工日期"); b.Property("ooentry_prdname") .HasMaxLength(50) .HasColumnType("nvarchar(50)") .HasComment("生产组织名称"); b.Property("ooentry_stime") .HasColumnType("datetime2") .HasComment("计划开工日期"); b.Property("oorder_date") .HasColumnType("datetime2") .HasComment("委外订单日期"); b.Property("oorder_no") .HasMaxLength(50) .HasColumnType("nvarchar(50)") .HasComment("工单编号"); b.Property("org_id") .HasColumnType("bigint") .HasComment("组织ID"); b.Property("production_unit") .HasMaxLength(100) .HasColumnType("nvarchar(100)") .HasComment("加工单位"); b.Property("production_unit_code") .HasMaxLength(20) .HasColumnType("nvarchar(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("nvarchar(50)") .HasComment("修改人名称"); b.Property("update_time") .HasColumnType("datetime2") .HasComment("修改时间"); b.HasKey("Id"); b.HasIndex("bom_child_examine_id", "tenant_id", "factory_id"); b.ToTable("b_ooder", (string)null); b.HasComment("采购占用明细"); }); modelBuilder.Entity("Business.Model.Bang.b_order_detail", b => { b.Property("Id") .HasColumnType("bigint"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted") .HasComment("删除标识"); b.Property("bom_number") .HasColumnType("nvarchar(450)") .HasComment("bom编号"); b.Property("create_by") .HasColumnType("bigint") .HasComment("创建人id"); b.Property("create_by_name") .HasMaxLength(50) .HasColumnType("nvarchar(50)") .HasComment("创建人名称"); b.Property("create_time") .HasColumnType("datetime2") .HasComment("创建时间"); b.Property("factory_id") .HasColumnType("bigint") .HasComment("工厂ID"); b.Property("fid") .HasColumnType("bigint") .HasComment("本级id"); b.Property("is_use") .HasColumnType("bit") .HasComment("是否使用此物料"); b.Property("item_id") .HasColumnType("bigint") .HasComment("物料id"); b.Property("item_name") .HasColumnType("nvarchar(max)") .HasComment("物料名称"); b.Property("item_number") .HasColumnType("nvarchar(450)") .HasComment("物料编号"); b.Property("kitting_time") .HasColumnType("datetime2") .HasComment("齐套时间"); b.Property("make_qty") .HasPrecision(23, 10) .HasColumnType("decimal(23,10)") .HasComment("自制数量"); b.Property("mo_qty") .HasPrecision(23, 10) .HasColumnType("decimal(23,10)") .HasComment("在制占用数量"); b.Property("num") .HasMaxLength(50) .HasColumnType("nvarchar(50)") .HasComment("项次号"); b.Property("num_order") .HasColumnType("bigint") .HasComment("排序使用"); b.Property("order_examine_id") .HasColumnType("bigint") .HasComment("工单齐套检查id"); b.Property("org_id") .HasColumnType("bigint") .HasComment("组织ID"); b.Property("parent_id") .HasColumnType("bigint") .HasComment("父级"); b.Property("purchase_occupy_qty") .HasPrecision(23, 10) .HasColumnType("decimal(23,10)") .HasComment("采购明细占用数量"); b.Property("purchase_qty") .HasPrecision(23, 10) .HasColumnType("decimal(23,10)") .HasComment("采购数量"); b.Property("qty") .HasPrecision(23, 10) .HasColumnType("decimal(23,10)") .HasComment("用量"); b.Property("self_lack_qty") .HasPrecision(23, 10) .HasColumnType("decimal(23,10)") .HasComment("本级缺料数量"); b.Property("sqty") .HasPrecision(23, 10) .HasColumnType("decimal(23,10)") .HasComment("库存数量"); b.Property("subcontracting_qty") .HasPrecision(23, 10) .HasColumnType("decimal(23,10)") .HasComment("委外数量"); b.Property("substitute_code") .HasColumnType("nvarchar(max)") .HasComment("群组代码"); b.Property("substitute_mode") .HasColumnType("int") .HasComment("替代方式"); b.Property("substitute_strategy") .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("nvarchar(50)") .HasComment("修改人名称"); b.Property("update_time") .HasColumnType("datetime2") .HasComment("修改时间"); b.Property("use_qty") .HasPrecision(23, 10) .HasColumnType("decimal(23,10)") .HasComment("库存占用数量"); b.HasKey("Id"); b.HasIndex("order_examine_id", "bom_number", "item_number", "tenant_id", "factory_id"); b.ToTable("b_order_detail", (string)null); b.HasComment("物料齐套明细"); }); modelBuilder.Entity("Business.Model.Bang.b_order_examine_result", b => { b.Property("Id") .HasColumnType("bigint"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted") .HasComment("删除标识"); b.Property("bom_number") .HasColumnType("nvarchar(450)") .HasComment("BOM编码"); b.Property("create_by") .HasColumnType("bigint") .HasComment("创建人id"); b.Property("create_by_name") .HasMaxLength(50) .HasColumnType("nvarchar(50)") .HasComment("创建人名称"); b.Property("create_time") .HasColumnType("datetime2") .HasComment("创建时间"); b.Property("factory_id") .HasColumnType("bigint") .HasComment("工厂ID"); b.Property("ketting_time") .HasColumnType("datetime2") .HasComment("齐套日期"); b.Property("need_qty") .HasPrecision(23, 10) .HasColumnType("decimal(23,10)") .HasComment("需要数量"); b.Property("order_no") .HasMaxLength(50) .HasColumnType("nvarchar(50)") .HasComment("生产工单编号"); b.Property("orderid") .HasColumnType("bigint") .HasComment("工单id"); b.Property("org_id") .HasColumnType("bigint") .HasComment("组织ID"); b.Property("tenant_id") .HasColumnType("bigint") .HasComment("企业ID"); b.Property("time") .HasColumnType("datetime2") .HasComment("开工日期"); b.Property("type") .HasColumnType("int") .HasComment("类别"); b.Property("update_by") .HasColumnType("bigint") .HasComment("修改人"); b.Property("update_by_name") .HasMaxLength(50) .HasColumnType("nvarchar(50)") .HasComment("修改人名称"); b.Property("update_time") .HasColumnType("datetime2") .HasComment("修改时间"); b.HasKey("Id"); b.HasIndex("bom_number", "order_no", "tenant_id", "factory_id"); b.ToTable("b_order_examine_result", (string)null); b.HasComment("工单齐套检查"); }); modelBuilder.Entity("Business.Model.Bang.b_purchase", b => { b.Property("Id") .HasColumnType("bigint"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted") .HasComment("删除标识"); b.Property("bom_child_examine_id") .HasColumnType("bigint") .HasComment("物料检查明细ID"); b.Property("create_by") .HasColumnType("bigint") .HasComment("创建人id"); b.Property("create_by_name") .HasMaxLength(50) .HasColumnType("nvarchar(50)") .HasComment("创建人名称"); b.Property("create_time") .HasColumnType("datetime2") .HasComment("创建时间"); b.Property("factory_id") .HasColumnType("bigint") .HasComment("工厂ID"); b.Property("isbestoptions") .HasColumnType("bit") .HasComment("最优解"); b.Property("org_id") .HasColumnType("bigint") .HasComment("组织ID"); b.Property("pr_aqty") .HasPrecision(23, 10) .HasColumnType("decimal(23,10)") .HasComment("申请数量"); b.Property("pr_billno") .HasMaxLength(50) .HasColumnType("nvarchar(50)") .HasComment("pr单号"); b.Property("pr_orderprice") .HasPrecision(23, 10) .HasColumnType("decimal(23,10)") .HasComment("订单价格(含税)"); b.Property("pr_parrive_date") .HasColumnType("datetime2") .HasComment("计划到达日期"); b.Property("pr_price") .HasPrecision(23, 10) .HasColumnType("decimal(23,10)") .HasComment("采购净价(不含税)"); b.Property("pr_pur_affirm_date") .HasColumnType("datetime2") .HasComment("采购确认到货日期"); b.Property("pr_purchasename") .HasMaxLength(80) .HasColumnType("nvarchar(80)") .HasComment("供应商名称"); b.Property("pr_purchasenumber") .HasMaxLength(80) .HasColumnType("nvarchar(80)") .HasComment("供应商编码"); b.Property("pr_rarrive_date") .HasColumnType("datetime2") .HasComment("需求到货日期"); b.Property("pr_rate") .HasPrecision(23, 10) .HasColumnType("decimal(23,10)") .HasComment("税率"); b.Property("pr_rqty") .HasPrecision(23, 10) .HasColumnType("decimal(23,10)") .HasComment("需求数量"); b.Property("pr_sqty") .HasPrecision(23, 10) .HasColumnType("decimal(23,10)") .HasComment("建议数量"); b.Property("pr_sysprice") .HasPrecision(23, 10) .HasColumnType("decimal(23,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("nvarchar(50)") .HasComment("修改人名称"); b.Property("update_time") .HasColumnType("datetime2") .HasComment("修改时间"); b.HasKey("Id"); b.HasIndex("bom_child_examine_id", "tenant_id", "factory_id"); b.ToTable("b_purchase", (string)null); b.HasComment("采购明细信息"); }); modelBuilder.Entity("Business.Model.Bang.b_purchase_occupy", b => { b.Property("Id") .HasColumnType("bigint"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted") .HasComment("删除标识"); b.Property("bom_child_examine_id") .HasColumnType("bigint") .HasComment("物料检查明细ID"); b.Property("create_by") .HasColumnType("bigint") .HasComment("创建人id"); b.Property("create_by_name") .HasMaxLength(50) .HasColumnType("nvarchar(50)") .HasComment("创建人名称"); b.Property("create_time") .HasColumnType("datetime2") .HasComment("创建时间"); b.Property("etime") .HasColumnType("datetime2") .HasComment("结束时间"); b.Property("factory_id") .HasColumnType("bigint") .HasComment("工厂ID"); b.Property("org_id") .HasColumnType("bigint") .HasComment("组织ID"); b.Property("po_billno") .HasMaxLength(80) .HasColumnType("nvarchar(80)") .HasComment("采购订单单号"); b.Property("qty") .HasPrecision(23, 10) .HasColumnType("decimal(23,10)") .HasComment("占用量"); b.Property("stime") .HasColumnType("datetime2") .HasComment("开始时间"); b.Property("tenant_id") .HasColumnType("bigint") .HasComment("企业ID"); b.Property("type") .HasMaxLength(80) .HasColumnType("nvarchar(80)") .HasComment("类型"); b.Property("update_by") .HasColumnType("bigint") .HasComment("修改人"); b.Property("update_by_name") .HasMaxLength(50) .HasColumnType("nvarchar(50)") .HasComment("修改人名称"); b.Property("update_time") .HasColumnType("datetime2") .HasComment("修改时间"); b.HasKey("Id"); b.HasIndex("bom_child_examine_id", "tenant_id", "factory_id"); b.ToTable("b_purchase_occupy", (string)null); b.HasComment("采购占用明细"); }); #pragma warning restore 612, 618 } } }