Browse Source

ext数据库物料清单提交

Murphy 3 years ago
parent
commit
1745c8c9c6

+ 3 - 0
.gitignore

@@ -1996,3 +1996,6 @@ MicroServices/Business/Bussiness.EntityFrameworkCore.Test/bin/Debug/net6.0/SQLit
 MicroServices/Business/Bussiness.EntityFrameworkCore.Test/bin/Debug/net6.0/ThoughtWorks.QRCode.dll
 MicroServices/Business/Bussiness.EntityFrameworkCore.Test/bin/Debug/net6.0/runtimes/linux-s390x/native/libe_sqlite3.so
 MicroServices/Business/Bussiness.EntityFrameworkCore.Test/bin/Debug/net6.0/runtimes/osx-arm64/native/libe_sqlite3.dylib
+/MicroServices/Business/Bussiness.ApplicationTest/bin/Debug/net6.0
+/MicroServices/Business/Bussiness.Domain.Test/bin/Debug/net6.0
+/MicroServices/Business/Bussiness.EntityFrameworkCore.Test/bin/Debug/net6.0

+ 2 - 2
MicroServices/Business/Business.Application/WMS/SyncKingdeeAppService.cs

@@ -19,9 +19,9 @@ namespace Business.ResourceExamineManagement
         private readonly IRepository<sys_code, long> _sys_serial_number;
 
         private readonly ICurrentTenant _currentTenant;
-        private readonly IRepository<material,long> _mysql_ic_item;
+        private readonly IRepository<in_kd_material,long> _mysql_ic_item;
 
-        public SyncKingdeeAppService(IRepository<sys_code, long> sys_serial_number, IRepository<material, long> mysql_ic_item, ICurrentTenant currentTenant) {
+        public SyncKingdeeAppService(IRepository<sys_code, long> sys_serial_number, IRepository<in_kd_material, long> mysql_ic_item, ICurrentTenant currentTenant) {
             _sys_serial_number = sys_serial_number;
             _mysql_ic_item = mysql_ic_item;
             _currentTenant = currentTenant;

+ 8 - 2
MicroServices/Business/Business.EntityFrameworkCore/EntityFrameworkCore/BusinessDbContextModelCreatingExtensions.cs

@@ -579,9 +579,15 @@ namespace Business.EntityFrameworkCore
         {
             //TODO:这样太麻烦了,有时间研究一下批量
             Check.NotNull(builder, nameof(builder));
-            builder.Entity<material>(b =>
+            builder.Entity<in_kd_material>(b =>
             {
-                b.ToTable("material");
+                b.ToTable("in_kd_material");
+                b.ConfigureByConvention();
+            });
+
+            builder.Entity<in_kd_bom>(b =>
+            {
+                b.ToTable("in_kd_bom");
                 b.ConfigureByConvention();
             });
         }

+ 2 - 4
MicroServices/Business/Business.EntityFrameworkCore/EntityFrameworkCore/Ext/BusinessExtDbContext.cs

@@ -12,10 +12,8 @@ namespace Business.EntityFrameworkCore
     [ConnectionStringName("DOPExt")]
     public class BusinessExtDbContext : AbpDbContext<BusinessExtDbContext>
     {
-        #region MES/IC
-        public DbSet<material> ic_item { get; set; }
-        #endregion
-        //Code generation...
+        public DbSet<in_kd_material> material { get; set; }
+        public DbSet<in_kd_bom> bom { get; set; }      
         public BusinessExtDbContext(DbContextOptions<BusinessExtDbContext> options)
             : base(options)
         {

+ 1545 - 0
MicroServices/Business/Business.Host/Migrations/BusinessExtMigrationDb/20230323023755_AddBom.Designer.cs

@@ -0,0 +1,1545 @@
+// <auto-generated />
+using System;
+using Business.EntityFrameworkCore;
+using Microsoft.EntityFrameworkCore;
+using Microsoft.EntityFrameworkCore.Infrastructure;
+using Microsoft.EntityFrameworkCore.Migrations;
+using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
+using Volo.Abp.EntityFrameworkCore;
+
+#nullable disable
+
+namespace Business.Migrations.BusinessExtMigrationDb
+{
+    [DbContext(typeof(BusinessExtMigrationDbContext))]
+    [Migration("20230323023755_AddBom")]
+    partial class AddBom
+    {
+        protected override void BuildTargetModel(ModelBuilder modelBuilder)
+        {
+#pragma warning disable 612, 618
+            modelBuilder
+                .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.MySql)
+                .HasAnnotation("ProductVersion", "6.0.5")
+                .HasAnnotation("Relational:MaxIdentifierLength", 64);
+
+            modelBuilder.Entity("Bussiness.Model.Ext.bom", b =>
+                {
+                    b.Property<long>("Id")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("bigint");
+
+                    b.Property<string>("FBOMCATEGORY")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("BOM分类");
+
+                    b.Property<DateTime?>("FCHILDITEMMODEL")
+                        .HasMaxLength(80)
+                        .HasColumnType("datetime(6)")
+                        .HasComment("子项规格型号");
+
+                    b.Property<string>("FCHILDITEMNAME")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("子项物料名称");
+
+                    b.Property<string>("FCHILDUNITID_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("子项单位");
+
+                    b.Property<string>("FChildSupplyOrgId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("供应组织");
+
+                    b.Property<decimal?>("FDENOMINATOR")
+                        .HasPrecision(23, 10)
+                        .HasColumnType("decimal(23,10)")
+                        .HasComment("用量:分母");
+
+                    b.Property<string>("FITEMMODEL")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("规格型号");
+
+                    b.Property<string>("FITEMNAME")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("物料名称");
+
+                    b.Property<string>("FITEMPPROPERTY")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("数据状态");
+
+                    b.Property<string>("FIskeyItem")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("替代主料");
+
+                    b.Property<string>("FMATERIALIDCHILD_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("子项物料编码");
+
+                    b.Property<string>("FMATERIALID_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("父项物料编码");
+
+                    b.Property<decimal?>("FNUMERATOR")
+                        .HasPrecision(23, 10)
+                        .HasColumnType("decimal(23,10)")
+                        .HasComment("用量:分子");
+
+                    b.Property<string>("FName_2052")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("BOM简称");
+
+                    b.Property<string>("FNumber")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("BOM版本");
+
+                    b.Property<string>("FPROCESSID_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("作业");
+
+                    b.Property<int?>("FReplaceGroup")
+                        .HasColumnType("int")
+                        .HasComment("项次");
+
+                    b.Property<string>("FReplacePolicy")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("替代策略");
+
+                    b.Property<int?>("FReplacePriority")
+                        .HasColumnType("int")
+                        .HasComment("替代优先级");
+
+                    b.Property<string>("FReplaceType")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("替代方式");
+
+                    b.Property<string>("FSubstitutionId_Name")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("80");
+
+                    b.Property<string>("FSubstitutionName")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("替代方案名称");
+
+                    b.Property<string>("FSupplyType")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("供应类型");
+
+                    b.Property<string>("FUseOrgId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("使用组织");
+
+                    b.Property<string>("F_ZXWLMS")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("子项物料描述");
+
+                    b.Property<string>("F_ZXWLPP")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("子项物料品牌");
+
+                    b.HasKey("Id");
+
+                    b.ToTable("bom", (string)null);
+
+                    b.HasComment("物料清单");
+                });
+
+            modelBuilder.Entity("Bussiness.Model.Ext.material", b =>
+                {
+                    b.Property<long>("Id")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("bigint");
+
+                    b.Property<decimal?>("FATOSchemeId_Name")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("ATO预测冲销方案");
+
+                    b.Property<decimal?>("FAccuLeadTime")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("累计提前期");
+
+                    b.Property<decimal?>("FAgentSalReduceRate")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("代理销售减价比例(%)");
+
+                    b.Property<string>("FAllowPartAhead")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("预计入库允许部分提前");
+
+                    b.Property<string>("FAllowPartDelay")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("预计入库允许部分延后");
+
+                    b.Property<string>("FAllowPublish")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("允许发布到订货平台");
+
+                    b.Property<DateTime?>("FApproveDate")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("审核日期");
+
+                    b.Property<string>("FApproverId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("审核人");
+
+                    b.Property<string>("FAuxPropertyId_Name")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("辅助属性");
+
+                    b.Property<string>("FAuxUnitID_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("辅助单位");
+
+                    b.Property<string>("FBARCODE")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("条码");
+
+                    b.Property<string>("FBKFLTime")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("倒冲时机");
+
+                    b.Property<string>("FBOMUnitId_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("子项单位");
+
+                    b.Property<string>("FBackFlushType")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("倒冲数量");
+
+                    b.Property<string>("FBaseUnitId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("基本单位");
+
+                    b.Property<string>("FBatchRuleID_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("批号编码规则");
+
+                    b.Property<decimal?>("FBoxStandardQty")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("单箱标准数量");
+
+                    b.Property<string>("FCONFIGTYPE")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("配置生产");
+
+                    b.Property<decimal?>("FCanDelayDays")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("允许延后天数");
+
+                    b.Property<decimal?>("FCanLeadDays")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("允许提前天数");
+
+                    b.Property<string>("FCategoryID_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("存货类别");
+
+                    b.Property<string>("FChargeID_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("费用项目");
+
+                    b.Property<string>("FCheckDelivery")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("发货检验");
+
+                    b.Property<string>("FCheckEntrusted")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("受托材料检验");
+
+                    b.Property<string>("FCheckIncoming")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("来料检验");
+
+                    b.Property<decimal?>("FCheckLeadTime")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("检验提前期");
+
+                    b.Property<string>("FCheckLeadTimeType")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("检验提前期单位");
+
+                    b.Property<string>("FCheckOther")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("其他检验");
+
+                    b.Property<string>("FCheckProduct")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("产品检验");
+
+                    b.Property<string>("FCheckReturn")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("退货检验");
+
+                    b.Property<string>("FCheckReturnMtrl")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("生产退料检验");
+
+                    b.Property<string>("FCheckStock")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("库存检验");
+
+                    b.Property<decimal?>("FConsumVolatility")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("消耗波动(%)");
+
+                    b.Property<decimal?>("FCostPriceRate")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("结算成本价加减价比例(%)");
+
+                    b.Property<string>("FCountCycle")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("盘点周期单位");
+
+                    b.Property<decimal?>("FCountDay")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("盘点周期");
+
+                    b.Property<DateTime?>("FCreateDate")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("创建日期");
+
+                    b.Property<string>("FCreateOrgId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("创建组织");
+
+                    b.Property<string>("FCreatorId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("创建人");
+
+                    b.Property<string>("FCurrencyId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("币别");
+
+                    b.Property<string>("FDSMatchByLot")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("按批号匹配供需");
+
+                    b.Property<decimal?>("FDailyOutQty")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("日产量");
+
+                    b.Property<string>("FDataSource")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("物料来源");
+
+                    b.Property<string>("FDefBarCodeRuleId_Name")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("默认条码规则");
+
+                    b.Property<string>("FDefaultLineId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("默认产线");
+
+                    b.Property<string>("FDefaultRouting_Name")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("默认工艺路线");
+
+                    b.Property<string>("FDefaultVendor_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("默认供应商");
+
+                    b.Property<decimal?>("FDelayExtendDay")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("延后宽限期");
+
+                    b.Property<string>("FDescription_2052")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("描述");
+
+                    b.Property<decimal?>("FEOQ")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("固定/经济批量");
+
+                    b.Property<decimal?>("FEWLeadDay")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("提醒提前期");
+
+                    b.Property<decimal?>("FEconReOrderQty")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("经济订货批量");
+
+                    b.Property<string>("FEnableCyclistQCSTK")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("启用库存周期复检");
+
+                    b.Property<string>("FEnableCyclistQCSTKEW")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("启用库存周期复检提醒");
+
+                    b.Property<string>("FErpClsID")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("物料属性");
+
+                    b.Property<decimal?>("FExpPeriod")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("保质期");
+
+                    b.Property<string>("FExpUnit")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("保质期单位");
+
+                    b.Property<decimal?>("FFIXLOSS")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("固定损耗");
+
+                    b.Property<string>("FFeatureItem")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("特征件子项");
+
+                    b.Property<decimal?>("FFinishReceiptOverRate")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("入库超收比例(%)");
+
+                    b.Property<string>("FFinishReceiptShortRate")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("入库欠收比例(%)");
+
+                    b.Property<decimal?>("FFixLeadTime")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("固定提前期");
+
+                    b.Property<decimal?>("FFixLeadTimeType")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("固定提前期单位");
+
+                    b.Property<DateTime?>("FForbidDate")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("禁用日期");
+
+                    b.Property<string>("FForbidResonIsUsed")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("已使用");
+
+                    b.Property<string>("FForbidReson_2052")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("禁用原因");
+
+                    b.Property<string>("FForbidStatus")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("禁用状态");
+
+                    b.Property<string>("FForbidderId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("禁用人");
+
+                    b.Property<decimal?>("FGROSSWEIGHT")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("毛重");
+
+                    b.Property<decimal?>("FHEIGHT")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("高");
+
+                    b.Property<decimal?>("FIFAgentPurPlusRatesPR")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("代理采购加成比例");
+
+                    b.Property<string>("FISAFTERSALE")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("启用售后服务");
+
+                    b.Property<string>("FISMinIssueQty")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("领料考虑最小发料批量");
+
+                    b.Property<string>("FISPRODUCTFILES")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("生成产品档案");
+
+                    b.Property<string>("FISWARRANTED")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("是否保修");
+
+                    b.Property<string>("FIncQcSchemeId_Name")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("质检方案");
+
+                    b.Property<string>("FIncSampSchemeId_Name")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("抽样方案");
+
+                    b.Property<decimal?>("FIncreaseQty")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("最小包装量");
+
+                    b.Property<string>("FInspectGroupId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("质检组");
+
+                    b.Property<string>("FInspectorId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("质检员");
+
+                    b.Property<string>("FIsATPCheck")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("ATP检查");
+
+                    b.Property<string>("FIsAffectCost1")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("影响出库成本");
+
+                    b.Property<string>("FIsAffectPlan1")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("影响计划");
+
+                    b.Property<string>("FIsAffectPrice1")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("影响价格");
+
+                    b.Property<string>("FIsBatchManage")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("启用批号管理");
+
+                    b.Property<string>("FIsCoby")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("可为联副产品");
+
+                    b.Property<string>("FIsComControl")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("组合控制");
+
+                    b.Property<string>("FIsCompleteSet")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("是否齐套件");
+
+                    b.Property<string>("FIsCycleCounting")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("启用盘点周期");
+
+                    b.Property<string>("FIsECN")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("启用ECN");
+
+                    b.Property<string>("FIsEnable1")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("启用");
+
+                    b.Property<string>("FIsEnableMaxStock")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("启用最大库存");
+
+                    b.Property<string>("FIsEnableMinStock")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("启用最小库存");
+
+                    b.Property<string>("FIsEnableReOrder")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("启用再订货点");
+
+                    b.Property<string>("FIsEnableSafeStock")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("启用安全库存");
+
+                    b.Property<string>("FIsEnableSchedule")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("启用日排产");
+
+                    b.Property<string>("FIsExpParToFlot")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("批号附属信息");
+
+                    b.Property<string>("FIsFirstInspect")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("产品首检");
+
+                    b.Property<string>("FIsInventory")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("允许库存");
+
+                    b.Property<string>("FIsKFPeriod")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("启用保质期管理");
+
+                    b.Property<string>("FIsKitting")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("是否关键件");
+
+                    b.Property<string>("FIsLockStock")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("可锁库");
+
+                    b.Property<string>("FIsMainPrd")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("可为主产品");
+
+                    b.Property<string>("FIsMrpComBill")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("MRP计算是否按单合并");
+
+                    b.Property<string>("FIsMrpComReq")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("MRP计算是否合并需求");
+
+                    b.Property<string>("FIsMustCounting")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("必盘");
+
+                    b.Property<string>("FIsPR")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("需要请购");
+
+                    b.Property<string>("FIsProductLine")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("生产线生产");
+
+                    b.Property<string>("FIsPurchase")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("允许采购");
+
+                    b.Property<string>("FIsQuota")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("配额管理");
+
+                    b.Property<string>("FIsReturn")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("允许退货");
+
+                    b.Property<string>("FIsReturnMaterial")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("允许退料");
+
+                    b.Property<string>("FIsReturnPart")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("部件可退");
+
+                    b.Property<string>("FIsSNCarryToParent")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("序列号携带到父项");
+
+                    b.Property<string>("FIsSNManage")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("库存管理");
+
+                    b.Property<string>("FIsSNPRDTracy")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("生产追溯");
+
+                    b.Property<string>("FIsSale")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("允许销售");
+
+                    b.Property<string>("FIsSourceControl")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("货源控制");
+
+                    b.Property<string>("FIsSubContract")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("允许委外");
+
+                    b.Property<string>("FIsTaxEnjoy")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("享受税收优惠政策");
+
+                    b.Property<string>("FIsVmiBusiness")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("VMI业务");
+
+                    b.Property<string>("FIssueType")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("发料方式");
+
+                    b.Property<decimal?>("FLENGTH")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("长");
+
+                    b.Property<decimal?>("FLOSSPERCENT")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("变动损耗率(%)");
+
+                    b.Property<decimal?>("FLeadExtendDay")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("提前宽限期");
+
+                    b.Property<string>("FMaterialGroup")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("物料分组编码");
+
+                    b.Property<string>("FMaterialGroup_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("物料分组");
+
+                    b.Property<decimal?>("FMaxPOQty")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("最大订货量");
+
+                    b.Property<decimal?>("FMaxStock")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("最大库存");
+
+                    b.Property<string>("FMdlId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("产品模型");
+
+                    b.Property<string>("FMdlMaterialId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("模型物料");
+
+                    b.Property<string>("FMfgPolicyId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("制造策略");
+
+                    b.Property<decimal?>("FMinIssueQty")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("最小发料批量");
+
+                    b.Property<string>("FMinIssueUnitId_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("最小发料批量单位");
+
+                    b.Property<decimal?>("FMinPOQty")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("最小订货量");
+
+                    b.Property<decimal?>("FMinPackCount")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("最小包装数");
+
+                    b.Property<decimal?>("FMinSplitQty")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("最小拆分数量");
+
+                    b.Property<decimal?>("FMinStock")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("最小库存");
+
+                    b.Property<string>("FMnemonicCode")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("助记码");
+
+                    b.Property<string>("FModifierId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("修改人");
+
+                    b.Property<DateTime?>("FModifyDate")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("修改日期");
+
+                    b.Property<decimal?>("FNETWEIGHT")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("净重");
+
+                    b.Property<string>("FName_2052")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("名称");
+
+                    b.Property<string>("FNumber")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("编码");
+
+                    b.Property<string>("FOldNumber")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("旧物料编码");
+
+                    b.Property<decimal?>("FOnlineLife")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("在架寿命期");
+
+                    b.Property<decimal?>("FOrderIntervalTime")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("订货间隔期");
+
+                    b.Property<string>("FOrderIntervalTimeType")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("订货间隔期单位");
+
+                    b.Property<string>("FOrderPolicy")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("订货策略");
+
+                    b.Property<decimal?>("FOrderQty")
+                        .HasPrecision(20, 10)
+                        .HasColumnType("decimal(20,10)")
+                        .HasComment("起订量");
+
+                    b.Property<string>("FOrgTrustBillType_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("组织间受托类型");
+
+                    b.Property<string>("FOutLmtUnit")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("超发控制单位");
+
+                    b.Property<decimal?>("FOutStockLmtH")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("超发上限(%)");
+
+                    b.Property<decimal?>("FOutStockLmtL")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("超发下限(%)");
+
+                    b.Property<string>("FOverControlMode")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("超发控制方式");
+
+                    b.Property<string>("FPOBillTypeId_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("采购类型");
+
+                    b.Property<decimal?>("FPerUnitStandHour")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("标准工时");
+
+                    b.Property<string>("FPickBinId_FF100002")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("发料仓位.客户.编码");
+
+                    b.Property<string>("FPickBinId_FF100002_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("发料仓位.客户.名称");
+
+                    b.Property<string>("FPickBinId_FF100003")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("发料仓位.供应商.编码");
+
+                    b.Property<string>("FPickBinId_FF100003_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("发料仓位.供应商.名称");
+
+                    b.Property<string>("FPickBinId_FF100004")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("发料仓位.服务机客户.编码");
+
+                    b.Property<string>("FPickBinId_FF100004_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("发料仓位.服务机客户.名称");
+
+                    b.Property<string>("FPickStockId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("发料仓库");
+
+                    b.Property<string>("FPickStockLoc")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("发料仓位");
+
+                    b.Property<decimal?>("FPlanBatchSplitQty")
+                        .HasPrecision(20, 10)
+                        .HasColumnType("decimal(20,10)")
+                        .HasComment("拆分批量");
+
+                    b.Property<string>("FPlanGroupId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("计划组");
+
+                    b.Property<string>("FPlanIdent_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("计划标识");
+
+                    b.Property<decimal?>("FPlanIntervalsDays")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("批量拆分间隔天数");
+
+                    b.Property<decimal?>("FPlanOffsetTime")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("偏置时间");
+
+                    b.Property<string>("FPlanOffsetTimeType")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("时间单位");
+
+                    b.Property<decimal?>("FPlanSafeStockQty")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("安全库存");
+
+                    b.Property<decimal?>("FPlanTimeZone")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("计划时界");
+
+                    b.Property<string>("FPlanWorkshop_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("计划区");
+
+                    b.Property<string>("FPlanerID_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("计划员");
+
+                    b.Property<string>("FPlanningStrategy")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("计划策略");
+
+                    b.Property<decimal?>("FPrintCount")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("重复打印数");
+
+                    b.Property<string>("FProScheTrackId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("订单进度分组");
+
+                    b.Property<string>("FProduceBillType_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("生产类型");
+
+                    b.Property<string>("FProduceUnitId_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("生产单位");
+
+                    b.Property<string>("FProductLine_Name")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("产品系列");
+
+                    b.Property<string>("FPurchaseGroupId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("采购组");
+
+                    b.Property<string>("FPurchaseOrgId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("采购组织");
+
+                    b.Property<string>("FPurchasePriceUnitId_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("采购计价单位");
+
+                    b.Property<string>("FPurchaseUnitId_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("采购单位");
+
+                    b.Property<string>("FPurchaserId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("采购员");
+
+                    b.Property<string>("FQtyFactorId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("数量负荷系数");
+
+                    b.Property<string>("FQuotaType")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("配额方式");
+
+                    b.Property<decimal?>("FReOrderGood")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("再订货点");
+
+                    b.Property<decimal?>("FReceiveAdvanceDays")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("收货提前天数");
+
+                    b.Property<decimal?>("FReceiveDelayDays")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("收货延迟天数");
+
+                    b.Property<decimal?>("FReceiveMaxScale")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("收货上限比例(%)");
+
+                    b.Property<decimal?>("FReceiveMinScale")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("收货下限比例(%)");
+
+                    b.Property<decimal?>("FRefCost")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("参考成本");
+
+                    b.Property<decimal?>("FRequestTimeZone")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("需求时界");
+
+                    b.Property<string>("FReserveType")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("预留类型");
+
+                    b.Property<string>("FSNCodeRule_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("序列号编码规则");
+
+                    b.Property<string>("FSNUnit_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("序列号单位");
+
+                    b.Property<decimal?>("FSafeStock")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("安全库存");
+
+                    b.Property<string>("FSalGroup_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("销售分组");
+
+                    b.Property<string>("FSalePriceUnitId_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("销售计价单位");
+
+                    b.Property<string>("FSaleUnitId_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("销售单位");
+
+                    b.Property<string>("FSpecification_2052")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("规格型号");
+
+                    b.Property<string>("FStandHourUnitId")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("工时单位");
+
+                    b.Property<decimal?>("FStdLaborPrePareTime")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("标准人员准备工时");
+
+                    b.Property<decimal?>("FStdLaborProcessTime")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("标准人员实作工时");
+
+                    b.Property<decimal?>("FStdMachinePrepareTime")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("标准机器准备工时");
+
+                    b.Property<decimal?>("FStdMachineProcessTime")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("标准机器实作工时");
+
+                    b.Property<decimal?>("FStockCycle")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("复检周期");
+
+                    b.Property<string>("FStockId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("仓库");
+
+                    b.Property<string>("FStockLoc")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("仓位");
+
+                    b.Property<string>("FStockPlaceId_FF100002")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("仓位.客户.编码");
+
+                    b.Property<string>("FStockPlaceId_FF100002_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("仓位.客户.名称");
+
+                    b.Property<string>("FStockPlaceId_FF100003")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("仓位.供应商.编码");
+
+                    b.Property<string>("FStockPlaceId_FF100003_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("仓位.供应商.名称");
+
+                    b.Property<string>("FStockPlaceId_FF100004")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("仓位.服务机客户.编码");
+
+                    b.Property<string>("FStockPlaceId_FF100004_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("仓位.服务机客户.名称");
+
+                    b.Property<string>("FStoreUnitID_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("库存单位");
+
+                    b.Property<string>("FSubBillType_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("委外类型");
+
+                    b.Property<string>("FSubconPriceUnitId_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("委外计价单位");
+
+                    b.Property<string>("FSubconUnitId_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("委外单位");
+
+                    b.Property<string>("FSuite")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("套件");
+
+                    b.Property<string>("FSupplySourceId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("供应来源");
+
+                    b.Property<string>("FTaxCategoryCodeId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("税收分类编码");
+
+                    b.Property<string>("FTaxDiscountsType")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("税收优惠政策类型");
+
+                    b.Property<string>("FTaxRateId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("默认税率");
+
+                    b.Property<string>("FTaxType_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("税分类");
+
+                    b.Property<string>("FTimeFactorId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("时间紧迫系数");
+
+                    b.Property<string>("FUnValidateExpQty")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("不参与可发量统计");
+
+                    b.Property<string>("FUseOrgId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("使用组织");
+
+                    b.Property<string>("FUseStatus")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("数据状态");
+
+                    b.Property<decimal?>("FVOLUME")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("体积");
+
+                    b.Property<string>("FVOLUMEUNITID_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("尺寸单位");
+
+                    b.Property<decimal?>("FVarLeadTime")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("变动提前期");
+
+                    b.Property<decimal?>("FVarLeadTimeLotSize")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("变动提前期批量");
+
+                    b.Property<string>("FVarLeadTimeType")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("变动提前期单位");
+
+                    b.Property<decimal?>("FWARRANTY")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("保修期");
+
+                    b.Property<string>("FWARRANTYUNITID")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("保修期单位");
+
+                    b.Property<string>("FWEIGHTUNITID_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("重量单位");
+
+                    b.Property<decimal?>("FWIDTH")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("宽");
+
+                    b.Property<string>("FWorkShopId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("生产车间");
+
+                    b.Property<decimal?>("FWriteOffQty")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("冲销数量");
+
+                    b.Property<string>("F_BZGG")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("包装规格");
+
+                    b.Property<string>("F_CPFL_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("产品分类");
+
+                    b.Property<string>("F_CPPLLB")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("产品披露类别");
+
+                    b.Property<string>("F_CPX_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("产品线");
+
+                    b.Property<string>("F_DYDWLX")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("电压/电网类型");
+
+                    b.Property<string>("F_DZLSX")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("电子料属性");
+
+                    b.Property<string>("F_GLD_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("功率段");
+
+                    b.Property<DateTime?>("F_GSZHGGRQ")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("工时最后更改日期");
+
+                    b.Property<string>("F_GSZHGGR_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("工时最后更改人");
+
+                    b.Property<string>("F_GWLH_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("根物料号");
+
+                    b.Property<string>("F_GYS")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("供应商");
+
+                    b.Property<decimal?>("F_HLBZL")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("回料包装量");
+
+                    b.Property<string>("F_JCYY")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("禁采原因");
+
+                    b.Property<string>("F_JWLBMU8")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("旧物料编码U8");
+
+                    b.Property<string>("F_PP_Name")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("品牌");
+
+                    b.Property<string>("F_SFJLPCH")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("是否记录批次号");
+
+                    b.Property<string>("F_SMZQ")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("料号生命周期");
+
+                    b.Property<DateTime?>("F_SMZQZHGGRQ")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("生命周期最后更改日期");
+
+                    b.Property<string>("F_SMZQZHGGR_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("生命周期最后更改人");
+
+                    b.Property<DateTime?>("F_TJZLZHGGRQ")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("体积重量最后更改日期");
+
+                    b.Property<string>("F_TJZLZHGGR_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("体积重量最后更改人");
+
+                    b.Property<string>("F_WLLX")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("物料类型");
+
+                    b.Property<string>("F_WLSQR_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("物料申请人");
+
+                    b.Property<string>("F_XSXH_2052")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("SAJ型号");
+
+                    b.Property<string>("F_YWLX")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("业务类型");
+
+                    b.Property<string>("F_YXQG")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("允许请购");
+
+                    b.Property<string>("F_YXSL")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("允许收料");
+
+                    b.Property<string>("F_YZSG")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("已终审过");
+
+                    b.Property<decimal?>("F_ZJCSGS")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("整机测试工时");
+
+                    b.Property<string>("F_ZJGLWLH_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("直接关联物料号");
+
+                    b.Property<decimal?>("F_ZJZB_Name")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("整机质保(月)");
+
+                    b.Property<decimal?>("F_ZYGS")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("作业工时");
+
+                    b.HasKey("Id");
+
+                    b.ToTable("material", (string)null);
+
+                    b.HasComment("物料");
+                });
+#pragma warning restore 612, 618
+        }
+    }
+}

+ 81 - 0
MicroServices/Business/Business.Host/Migrations/BusinessExtMigrationDb/20230323023755_AddBom.cs

@@ -0,0 +1,81 @@
+using System;
+using Microsoft.EntityFrameworkCore.Metadata;
+using Microsoft.EntityFrameworkCore.Migrations;
+
+#nullable disable
+
+namespace Business.Migrations.BusinessExtMigrationDb
+{
+    public partial class AddBom : Migration
+    {
+        protected override void Up(MigrationBuilder migrationBuilder)
+        {
+            migrationBuilder.CreateTable(
+                name: "bom",
+                columns: table => new
+                {
+                    Id = table.Column<long>(type: "bigint", nullable: false)
+                        .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
+                    FUseOrgId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "使用组织")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FNumber = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "BOM版本")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FName_2052 = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "BOM简称")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FBOMCATEGORY = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "BOM分类")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FMATERIALID_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "父项物料编码")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FITEMNAME = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "物料名称")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FITEMMODEL = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "规格型号")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FITEMPPROPERTY = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "数据状态")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FReplaceGroup = table.Column<int>(type: "int", nullable: true, comment: "项次"),
+                    FReplacePriority = table.Column<int>(type: "int", nullable: true, comment: "替代优先级"),
+                    FSubstitutionId_Name = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "80")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FMATERIALIDCHILD_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "子项物料编码")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FCHILDITEMNAME = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "子项物料名称")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FCHILDITEMMODEL = table.Column<DateTime>(type: "datetime(6)", maxLength: 80, nullable: true, comment: "子项规格型号"),
+                    FSupplyType = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "供应类型")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FCHILDUNITID_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "子项单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FChildSupplyOrgId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "供应组织")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FNUMERATOR = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "用量:分子"),
+                    FDENOMINATOR = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "用量:分母"),
+                    FPROCESSID_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "作业")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FReplacePolicy = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "替代策略")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FReplaceType = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "替代方式")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIskeyItem = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "替代主料")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FSubstitutionName = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "替代方案名称")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_ZXWLMS = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "子项物料描述")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_ZXWLPP = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "子项物料品牌")
+                        .Annotation("MySql:CharSet", "utf8mb4")
+                },
+                constraints: table =>
+                {
+                    table.PrimaryKey("PK_bom", x => x.Id);
+                },
+                comment: "物料清单")
+                .Annotation("MySql:CharSet", "utf8mb4");
+        }
+
+        protected override void Down(MigrationBuilder migrationBuilder)
+        {
+            migrationBuilder.DropTable(
+                name: "bom");
+        }
+    }
+}

+ 1545 - 0
MicroServices/Business/Business.Host/Migrations/BusinessExtMigrationDb/20230323030012_RenameTable.Designer.cs

@@ -0,0 +1,1545 @@
+// <auto-generated />
+using System;
+using Business.EntityFrameworkCore;
+using Microsoft.EntityFrameworkCore;
+using Microsoft.EntityFrameworkCore.Infrastructure;
+using Microsoft.EntityFrameworkCore.Migrations;
+using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
+using Volo.Abp.EntityFrameworkCore;
+
+#nullable disable
+
+namespace Business.Migrations.BusinessExtMigrationDb
+{
+    [DbContext(typeof(BusinessExtMigrationDbContext))]
+    [Migration("20230323030012_RenameTable")]
+    partial class RenameTable
+    {
+        protected override void BuildTargetModel(ModelBuilder modelBuilder)
+        {
+#pragma warning disable 612, 618
+            modelBuilder
+                .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.MySql)
+                .HasAnnotation("ProductVersion", "6.0.5")
+                .HasAnnotation("Relational:MaxIdentifierLength", 64);
+
+            modelBuilder.Entity("Bussiness.Model.Ext.in_kd_bom", b =>
+                {
+                    b.Property<long>("Id")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("bigint");
+
+                    b.Property<string>("FBOMCATEGORY")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("BOM分类");
+
+                    b.Property<DateTime?>("FCHILDITEMMODEL")
+                        .HasMaxLength(80)
+                        .HasColumnType("datetime(6)")
+                        .HasComment("子项规格型号");
+
+                    b.Property<string>("FCHILDITEMNAME")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("子项物料名称");
+
+                    b.Property<string>("FCHILDUNITID_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("子项单位");
+
+                    b.Property<string>("FChildSupplyOrgId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("供应组织");
+
+                    b.Property<decimal?>("FDENOMINATOR")
+                        .HasPrecision(23, 10)
+                        .HasColumnType("decimal(23,10)")
+                        .HasComment("用量:分母");
+
+                    b.Property<string>("FITEMMODEL")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("规格型号");
+
+                    b.Property<string>("FITEMNAME")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("物料名称");
+
+                    b.Property<string>("FITEMPPROPERTY")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("数据状态");
+
+                    b.Property<string>("FIskeyItem")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("替代主料");
+
+                    b.Property<string>("FMATERIALIDCHILD_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("子项物料编码");
+
+                    b.Property<string>("FMATERIALID_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("父项物料编码");
+
+                    b.Property<decimal?>("FNUMERATOR")
+                        .HasPrecision(23, 10)
+                        .HasColumnType("decimal(23,10)")
+                        .HasComment("用量:分子");
+
+                    b.Property<string>("FName_2052")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("BOM简称");
+
+                    b.Property<string>("FNumber")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("BOM版本");
+
+                    b.Property<string>("FPROCESSID_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("作业");
+
+                    b.Property<int?>("FReplaceGroup")
+                        .HasColumnType("int")
+                        .HasComment("项次");
+
+                    b.Property<string>("FReplacePolicy")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("替代策略");
+
+                    b.Property<int?>("FReplacePriority")
+                        .HasColumnType("int")
+                        .HasComment("替代优先级");
+
+                    b.Property<string>("FReplaceType")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("替代方式");
+
+                    b.Property<string>("FSubstitutionId_Name")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("80");
+
+                    b.Property<string>("FSubstitutionName")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("替代方案名称");
+
+                    b.Property<string>("FSupplyType")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("供应类型");
+
+                    b.Property<string>("FUseOrgId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("使用组织");
+
+                    b.Property<string>("F_ZXWLMS")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("子项物料描述");
+
+                    b.Property<string>("F_ZXWLPP")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("子项物料品牌");
+
+                    b.HasKey("Id");
+
+                    b.ToTable("bom", (string)null);
+
+                    b.HasComment("物料清单");
+                });
+
+            modelBuilder.Entity("Bussiness.Model.Ext.in_kd_material", b =>
+                {
+                    b.Property<long>("Id")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("bigint");
+
+                    b.Property<decimal?>("FATOSchemeId_Name")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("ATO预测冲销方案");
+
+                    b.Property<decimal?>("FAccuLeadTime")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("累计提前期");
+
+                    b.Property<decimal?>("FAgentSalReduceRate")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("代理销售减价比例(%)");
+
+                    b.Property<string>("FAllowPartAhead")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("预计入库允许部分提前");
+
+                    b.Property<string>("FAllowPartDelay")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("预计入库允许部分延后");
+
+                    b.Property<string>("FAllowPublish")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("允许发布到订货平台");
+
+                    b.Property<DateTime?>("FApproveDate")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("审核日期");
+
+                    b.Property<string>("FApproverId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("审核人");
+
+                    b.Property<string>("FAuxPropertyId_Name")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("辅助属性");
+
+                    b.Property<string>("FAuxUnitID_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("辅助单位");
+
+                    b.Property<string>("FBARCODE")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("条码");
+
+                    b.Property<string>("FBKFLTime")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("倒冲时机");
+
+                    b.Property<string>("FBOMUnitId_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("子项单位");
+
+                    b.Property<string>("FBackFlushType")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("倒冲数量");
+
+                    b.Property<string>("FBaseUnitId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("基本单位");
+
+                    b.Property<string>("FBatchRuleID_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("批号编码规则");
+
+                    b.Property<decimal?>("FBoxStandardQty")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("单箱标准数量");
+
+                    b.Property<string>("FCONFIGTYPE")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("配置生产");
+
+                    b.Property<decimal?>("FCanDelayDays")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("允许延后天数");
+
+                    b.Property<decimal?>("FCanLeadDays")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("允许提前天数");
+
+                    b.Property<string>("FCategoryID_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("存货类别");
+
+                    b.Property<string>("FChargeID_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("费用项目");
+
+                    b.Property<string>("FCheckDelivery")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("发货检验");
+
+                    b.Property<string>("FCheckEntrusted")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("受托材料检验");
+
+                    b.Property<string>("FCheckIncoming")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("来料检验");
+
+                    b.Property<decimal?>("FCheckLeadTime")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("检验提前期");
+
+                    b.Property<string>("FCheckLeadTimeType")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("检验提前期单位");
+
+                    b.Property<string>("FCheckOther")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("其他检验");
+
+                    b.Property<string>("FCheckProduct")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("产品检验");
+
+                    b.Property<string>("FCheckReturn")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("退货检验");
+
+                    b.Property<string>("FCheckReturnMtrl")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("生产退料检验");
+
+                    b.Property<string>("FCheckStock")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("库存检验");
+
+                    b.Property<decimal?>("FConsumVolatility")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("消耗波动(%)");
+
+                    b.Property<decimal?>("FCostPriceRate")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("结算成本价加减价比例(%)");
+
+                    b.Property<string>("FCountCycle")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("盘点周期单位");
+
+                    b.Property<decimal?>("FCountDay")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("盘点周期");
+
+                    b.Property<DateTime?>("FCreateDate")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("创建日期");
+
+                    b.Property<string>("FCreateOrgId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("创建组织");
+
+                    b.Property<string>("FCreatorId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("创建人");
+
+                    b.Property<string>("FCurrencyId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("币别");
+
+                    b.Property<string>("FDSMatchByLot")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("按批号匹配供需");
+
+                    b.Property<decimal?>("FDailyOutQty")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("日产量");
+
+                    b.Property<string>("FDataSource")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("物料来源");
+
+                    b.Property<string>("FDefBarCodeRuleId_Name")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("默认条码规则");
+
+                    b.Property<string>("FDefaultLineId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("默认产线");
+
+                    b.Property<string>("FDefaultRouting_Name")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("默认工艺路线");
+
+                    b.Property<string>("FDefaultVendor_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("默认供应商");
+
+                    b.Property<decimal?>("FDelayExtendDay")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("延后宽限期");
+
+                    b.Property<string>("FDescription_2052")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("描述");
+
+                    b.Property<decimal?>("FEOQ")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("固定/经济批量");
+
+                    b.Property<decimal?>("FEWLeadDay")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("提醒提前期");
+
+                    b.Property<decimal?>("FEconReOrderQty")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("经济订货批量");
+
+                    b.Property<string>("FEnableCyclistQCSTK")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("启用库存周期复检");
+
+                    b.Property<string>("FEnableCyclistQCSTKEW")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("启用库存周期复检提醒");
+
+                    b.Property<string>("FErpClsID")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("物料属性");
+
+                    b.Property<decimal?>("FExpPeriod")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("保质期");
+
+                    b.Property<string>("FExpUnit")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("保质期单位");
+
+                    b.Property<decimal?>("FFIXLOSS")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("固定损耗");
+
+                    b.Property<string>("FFeatureItem")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("特征件子项");
+
+                    b.Property<decimal?>("FFinishReceiptOverRate")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("入库超收比例(%)");
+
+                    b.Property<string>("FFinishReceiptShortRate")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("入库欠收比例(%)");
+
+                    b.Property<decimal?>("FFixLeadTime")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("固定提前期");
+
+                    b.Property<decimal?>("FFixLeadTimeType")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("固定提前期单位");
+
+                    b.Property<DateTime?>("FForbidDate")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("禁用日期");
+
+                    b.Property<string>("FForbidResonIsUsed")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("已使用");
+
+                    b.Property<string>("FForbidReson_2052")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("禁用原因");
+
+                    b.Property<string>("FForbidStatus")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("禁用状态");
+
+                    b.Property<string>("FForbidderId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("禁用人");
+
+                    b.Property<decimal?>("FGROSSWEIGHT")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("毛重");
+
+                    b.Property<decimal?>("FHEIGHT")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("高");
+
+                    b.Property<decimal?>("FIFAgentPurPlusRatesPR")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("代理采购加成比例");
+
+                    b.Property<string>("FISAFTERSALE")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("启用售后服务");
+
+                    b.Property<string>("FISMinIssueQty")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("领料考虑最小发料批量");
+
+                    b.Property<string>("FISPRODUCTFILES")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("生成产品档案");
+
+                    b.Property<string>("FISWARRANTED")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("是否保修");
+
+                    b.Property<string>("FIncQcSchemeId_Name")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("质检方案");
+
+                    b.Property<string>("FIncSampSchemeId_Name")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("抽样方案");
+
+                    b.Property<decimal?>("FIncreaseQty")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("最小包装量");
+
+                    b.Property<string>("FInspectGroupId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("质检组");
+
+                    b.Property<string>("FInspectorId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("质检员");
+
+                    b.Property<string>("FIsATPCheck")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("ATP检查");
+
+                    b.Property<string>("FIsAffectCost1")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("影响出库成本");
+
+                    b.Property<string>("FIsAffectPlan1")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("影响计划");
+
+                    b.Property<string>("FIsAffectPrice1")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("影响价格");
+
+                    b.Property<string>("FIsBatchManage")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("启用批号管理");
+
+                    b.Property<string>("FIsCoby")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("可为联副产品");
+
+                    b.Property<string>("FIsComControl")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("组合控制");
+
+                    b.Property<string>("FIsCompleteSet")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("是否齐套件");
+
+                    b.Property<string>("FIsCycleCounting")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("启用盘点周期");
+
+                    b.Property<string>("FIsECN")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("启用ECN");
+
+                    b.Property<string>("FIsEnable1")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("启用");
+
+                    b.Property<string>("FIsEnableMaxStock")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("启用最大库存");
+
+                    b.Property<string>("FIsEnableMinStock")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("启用最小库存");
+
+                    b.Property<string>("FIsEnableReOrder")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("启用再订货点");
+
+                    b.Property<string>("FIsEnableSafeStock")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("启用安全库存");
+
+                    b.Property<string>("FIsEnableSchedule")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("启用日排产");
+
+                    b.Property<string>("FIsExpParToFlot")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("批号附属信息");
+
+                    b.Property<string>("FIsFirstInspect")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("产品首检");
+
+                    b.Property<string>("FIsInventory")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("允许库存");
+
+                    b.Property<string>("FIsKFPeriod")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("启用保质期管理");
+
+                    b.Property<string>("FIsKitting")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("是否关键件");
+
+                    b.Property<string>("FIsLockStock")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("可锁库");
+
+                    b.Property<string>("FIsMainPrd")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("可为主产品");
+
+                    b.Property<string>("FIsMrpComBill")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("MRP计算是否按单合并");
+
+                    b.Property<string>("FIsMrpComReq")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("MRP计算是否合并需求");
+
+                    b.Property<string>("FIsMustCounting")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("必盘");
+
+                    b.Property<string>("FIsPR")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("需要请购");
+
+                    b.Property<string>("FIsProductLine")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("生产线生产");
+
+                    b.Property<string>("FIsPurchase")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("允许采购");
+
+                    b.Property<string>("FIsQuota")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("配额管理");
+
+                    b.Property<string>("FIsReturn")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("允许退货");
+
+                    b.Property<string>("FIsReturnMaterial")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("允许退料");
+
+                    b.Property<string>("FIsReturnPart")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("部件可退");
+
+                    b.Property<string>("FIsSNCarryToParent")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("序列号携带到父项");
+
+                    b.Property<string>("FIsSNManage")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("库存管理");
+
+                    b.Property<string>("FIsSNPRDTracy")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("生产追溯");
+
+                    b.Property<string>("FIsSale")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("允许销售");
+
+                    b.Property<string>("FIsSourceControl")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("货源控制");
+
+                    b.Property<string>("FIsSubContract")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("允许委外");
+
+                    b.Property<string>("FIsTaxEnjoy")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("享受税收优惠政策");
+
+                    b.Property<string>("FIsVmiBusiness")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("VMI业务");
+
+                    b.Property<string>("FIssueType")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("发料方式");
+
+                    b.Property<decimal?>("FLENGTH")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("长");
+
+                    b.Property<decimal?>("FLOSSPERCENT")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("变动损耗率(%)");
+
+                    b.Property<decimal?>("FLeadExtendDay")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("提前宽限期");
+
+                    b.Property<string>("FMaterialGroup")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("物料分组编码");
+
+                    b.Property<string>("FMaterialGroup_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("物料分组");
+
+                    b.Property<decimal?>("FMaxPOQty")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("最大订货量");
+
+                    b.Property<decimal?>("FMaxStock")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("最大库存");
+
+                    b.Property<string>("FMdlId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("产品模型");
+
+                    b.Property<string>("FMdlMaterialId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("模型物料");
+
+                    b.Property<string>("FMfgPolicyId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("制造策略");
+
+                    b.Property<decimal?>("FMinIssueQty")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("最小发料批量");
+
+                    b.Property<string>("FMinIssueUnitId_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("最小发料批量单位");
+
+                    b.Property<decimal?>("FMinPOQty")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("最小订货量");
+
+                    b.Property<decimal?>("FMinPackCount")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("最小包装数");
+
+                    b.Property<decimal?>("FMinSplitQty")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("最小拆分数量");
+
+                    b.Property<decimal?>("FMinStock")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("最小库存");
+
+                    b.Property<string>("FMnemonicCode")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("助记码");
+
+                    b.Property<string>("FModifierId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("修改人");
+
+                    b.Property<DateTime?>("FModifyDate")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("修改日期");
+
+                    b.Property<decimal?>("FNETWEIGHT")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("净重");
+
+                    b.Property<string>("FName_2052")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("名称");
+
+                    b.Property<string>("FNumber")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("编码");
+
+                    b.Property<string>("FOldNumber")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("旧物料编码");
+
+                    b.Property<decimal?>("FOnlineLife")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("在架寿命期");
+
+                    b.Property<decimal?>("FOrderIntervalTime")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("订货间隔期");
+
+                    b.Property<string>("FOrderIntervalTimeType")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("订货间隔期单位");
+
+                    b.Property<string>("FOrderPolicy")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("订货策略");
+
+                    b.Property<decimal?>("FOrderQty")
+                        .HasPrecision(20, 10)
+                        .HasColumnType("decimal(20,10)")
+                        .HasComment("起订量");
+
+                    b.Property<string>("FOrgTrustBillType_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("组织间受托类型");
+
+                    b.Property<string>("FOutLmtUnit")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("超发控制单位");
+
+                    b.Property<decimal?>("FOutStockLmtH")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("超发上限(%)");
+
+                    b.Property<decimal?>("FOutStockLmtL")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("超发下限(%)");
+
+                    b.Property<string>("FOverControlMode")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("超发控制方式");
+
+                    b.Property<string>("FPOBillTypeId_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("采购类型");
+
+                    b.Property<decimal?>("FPerUnitStandHour")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("标准工时");
+
+                    b.Property<string>("FPickBinId_FF100002")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("发料仓位.客户.编码");
+
+                    b.Property<string>("FPickBinId_FF100002_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("发料仓位.客户.名称");
+
+                    b.Property<string>("FPickBinId_FF100003")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("发料仓位.供应商.编码");
+
+                    b.Property<string>("FPickBinId_FF100003_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("发料仓位.供应商.名称");
+
+                    b.Property<string>("FPickBinId_FF100004")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("发料仓位.服务机客户.编码");
+
+                    b.Property<string>("FPickBinId_FF100004_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("发料仓位.服务机客户.名称");
+
+                    b.Property<string>("FPickStockId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("发料仓库");
+
+                    b.Property<string>("FPickStockLoc")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("发料仓位");
+
+                    b.Property<decimal?>("FPlanBatchSplitQty")
+                        .HasPrecision(20, 10)
+                        .HasColumnType("decimal(20,10)")
+                        .HasComment("拆分批量");
+
+                    b.Property<string>("FPlanGroupId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("计划组");
+
+                    b.Property<string>("FPlanIdent_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("计划标识");
+
+                    b.Property<decimal?>("FPlanIntervalsDays")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("批量拆分间隔天数");
+
+                    b.Property<decimal?>("FPlanOffsetTime")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("偏置时间");
+
+                    b.Property<string>("FPlanOffsetTimeType")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("时间单位");
+
+                    b.Property<decimal?>("FPlanSafeStockQty")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("安全库存");
+
+                    b.Property<decimal?>("FPlanTimeZone")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("计划时界");
+
+                    b.Property<string>("FPlanWorkshop_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("计划区");
+
+                    b.Property<string>("FPlanerID_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("计划员");
+
+                    b.Property<string>("FPlanningStrategy")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("计划策略");
+
+                    b.Property<decimal?>("FPrintCount")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("重复打印数");
+
+                    b.Property<string>("FProScheTrackId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("订单进度分组");
+
+                    b.Property<string>("FProduceBillType_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("生产类型");
+
+                    b.Property<string>("FProduceUnitId_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("生产单位");
+
+                    b.Property<string>("FProductLine_Name")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("产品系列");
+
+                    b.Property<string>("FPurchaseGroupId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("采购组");
+
+                    b.Property<string>("FPurchaseOrgId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("采购组织");
+
+                    b.Property<string>("FPurchasePriceUnitId_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("采购计价单位");
+
+                    b.Property<string>("FPurchaseUnitId_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("采购单位");
+
+                    b.Property<string>("FPurchaserId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("采购员");
+
+                    b.Property<string>("FQtyFactorId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("数量负荷系数");
+
+                    b.Property<string>("FQuotaType")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("配额方式");
+
+                    b.Property<decimal?>("FReOrderGood")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("再订货点");
+
+                    b.Property<decimal?>("FReceiveAdvanceDays")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("收货提前天数");
+
+                    b.Property<decimal?>("FReceiveDelayDays")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("收货延迟天数");
+
+                    b.Property<decimal?>("FReceiveMaxScale")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("收货上限比例(%)");
+
+                    b.Property<decimal?>("FReceiveMinScale")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("收货下限比例(%)");
+
+                    b.Property<decimal?>("FRefCost")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("参考成本");
+
+                    b.Property<decimal?>("FRequestTimeZone")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("需求时界");
+
+                    b.Property<string>("FReserveType")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("预留类型");
+
+                    b.Property<string>("FSNCodeRule_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("序列号编码规则");
+
+                    b.Property<string>("FSNUnit_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("序列号单位");
+
+                    b.Property<decimal?>("FSafeStock")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("安全库存");
+
+                    b.Property<string>("FSalGroup_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("销售分组");
+
+                    b.Property<string>("FSalePriceUnitId_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("销售计价单位");
+
+                    b.Property<string>("FSaleUnitId_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("销售单位");
+
+                    b.Property<string>("FSpecification_2052")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("规格型号");
+
+                    b.Property<string>("FStandHourUnitId")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("工时单位");
+
+                    b.Property<decimal?>("FStdLaborPrePareTime")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("标准人员准备工时");
+
+                    b.Property<decimal?>("FStdLaborProcessTime")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("标准人员实作工时");
+
+                    b.Property<decimal?>("FStdMachinePrepareTime")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("标准机器准备工时");
+
+                    b.Property<decimal?>("FStdMachineProcessTime")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("标准机器实作工时");
+
+                    b.Property<decimal?>("FStockCycle")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("复检周期");
+
+                    b.Property<string>("FStockId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("仓库");
+
+                    b.Property<string>("FStockLoc")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("仓位");
+
+                    b.Property<string>("FStockPlaceId_FF100002")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("仓位.客户.编码");
+
+                    b.Property<string>("FStockPlaceId_FF100002_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("仓位.客户.名称");
+
+                    b.Property<string>("FStockPlaceId_FF100003")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("仓位.供应商.编码");
+
+                    b.Property<string>("FStockPlaceId_FF100003_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("仓位.供应商.名称");
+
+                    b.Property<string>("FStockPlaceId_FF100004")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("仓位.服务机客户.编码");
+
+                    b.Property<string>("FStockPlaceId_FF100004_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("仓位.服务机客户.名称");
+
+                    b.Property<string>("FStoreUnitID_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("库存单位");
+
+                    b.Property<string>("FSubBillType_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("委外类型");
+
+                    b.Property<string>("FSubconPriceUnitId_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("委外计价单位");
+
+                    b.Property<string>("FSubconUnitId_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("委外单位");
+
+                    b.Property<string>("FSuite")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("套件");
+
+                    b.Property<string>("FSupplySourceId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("供应来源");
+
+                    b.Property<string>("FTaxCategoryCodeId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("税收分类编码");
+
+                    b.Property<string>("FTaxDiscountsType")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("税收优惠政策类型");
+
+                    b.Property<string>("FTaxRateId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("默认税率");
+
+                    b.Property<string>("FTaxType_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("税分类");
+
+                    b.Property<string>("FTimeFactorId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("时间紧迫系数");
+
+                    b.Property<string>("FUnValidateExpQty")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("不参与可发量统计");
+
+                    b.Property<string>("FUseOrgId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("使用组织");
+
+                    b.Property<string>("FUseStatus")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("数据状态");
+
+                    b.Property<decimal?>("FVOLUME")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("体积");
+
+                    b.Property<string>("FVOLUMEUNITID_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("尺寸单位");
+
+                    b.Property<decimal?>("FVarLeadTime")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("变动提前期");
+
+                    b.Property<decimal?>("FVarLeadTimeLotSize")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("变动提前期批量");
+
+                    b.Property<string>("FVarLeadTimeType")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("变动提前期单位");
+
+                    b.Property<decimal?>("FWARRANTY")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("保修期");
+
+                    b.Property<string>("FWARRANTYUNITID")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("保修期单位");
+
+                    b.Property<string>("FWEIGHTUNITID_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("重量单位");
+
+                    b.Property<decimal?>("FWIDTH")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("宽");
+
+                    b.Property<string>("FWorkShopId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("生产车间");
+
+                    b.Property<decimal?>("FWriteOffQty")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("冲销数量");
+
+                    b.Property<string>("F_BZGG")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("包装规格");
+
+                    b.Property<string>("F_CPFL_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("产品分类");
+
+                    b.Property<string>("F_CPPLLB")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("产品披露类别");
+
+                    b.Property<string>("F_CPX_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("产品线");
+
+                    b.Property<string>("F_DYDWLX")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("电压/电网类型");
+
+                    b.Property<string>("F_DZLSX")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("电子料属性");
+
+                    b.Property<string>("F_GLD_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("功率段");
+
+                    b.Property<DateTime?>("F_GSZHGGRQ")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("工时最后更改日期");
+
+                    b.Property<string>("F_GSZHGGR_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("工时最后更改人");
+
+                    b.Property<string>("F_GWLH_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("根物料号");
+
+                    b.Property<string>("F_GYS")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("供应商");
+
+                    b.Property<decimal?>("F_HLBZL")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("回料包装量");
+
+                    b.Property<string>("F_JCYY")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("禁采原因");
+
+                    b.Property<string>("F_JWLBMU8")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("旧物料编码U8");
+
+                    b.Property<string>("F_PP_Name")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("品牌");
+
+                    b.Property<string>("F_SFJLPCH")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("是否记录批次号");
+
+                    b.Property<string>("F_SMZQ")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("料号生命周期");
+
+                    b.Property<DateTime?>("F_SMZQZHGGRQ")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("生命周期最后更改日期");
+
+                    b.Property<string>("F_SMZQZHGGR_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("生命周期最后更改人");
+
+                    b.Property<DateTime?>("F_TJZLZHGGRQ")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("体积重量最后更改日期");
+
+                    b.Property<string>("F_TJZLZHGGR_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("体积重量最后更改人");
+
+                    b.Property<string>("F_WLLX")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("物料类型");
+
+                    b.Property<string>("F_WLSQR_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("物料申请人");
+
+                    b.Property<string>("F_XSXH_2052")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("SAJ型号");
+
+                    b.Property<string>("F_YWLX")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("业务类型");
+
+                    b.Property<string>("F_YXQG")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("允许请购");
+
+                    b.Property<string>("F_YXSL")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("允许收料");
+
+                    b.Property<string>("F_YZSG")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("已终审过");
+
+                    b.Property<decimal?>("F_ZJCSGS")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("整机测试工时");
+
+                    b.Property<string>("F_ZJGLWLH_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("直接关联物料号");
+
+                    b.Property<decimal?>("F_ZJZB_Name")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("整机质保(月)");
+
+                    b.Property<decimal?>("F_ZYGS")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("作业工时");
+
+                    b.HasKey("Id");
+
+                    b.ToTable("in_kd_material", (string)null);
+
+                    b.HasComment("物料");
+                });
+#pragma warning restore 612, 618
+        }
+    }
+}

+ 993 - 0
MicroServices/Business/Business.Host/Migrations/BusinessExtMigrationDb/20230323030012_RenameTable.cs

@@ -0,0 +1,993 @@
+using System;
+using Microsoft.EntityFrameworkCore.Metadata;
+using Microsoft.EntityFrameworkCore.Migrations;
+
+#nullable disable
+
+namespace Business.Migrations.BusinessExtMigrationDb
+{
+    public partial class RenameTable : Migration
+    {
+        protected override void Up(MigrationBuilder migrationBuilder)
+        {
+            migrationBuilder.DropTable(
+                name: "material");
+
+            migrationBuilder.CreateTable(
+                name: "in_kd_material",
+                columns: table => new
+                {
+                    Id = table.Column<long>(type: "bigint", nullable: false)
+                        .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
+                    FCreateOrgId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "创建组织")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FUseOrgId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "使用组织")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FNumber = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "编码")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FDataSource = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "物料来源")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FName_2052 = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "名称")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FSpecification_2052 = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "规格型号")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FMnemonicCode = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "助记码")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FOldNumber = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "旧物料编码")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FDescription_2052 = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "描述")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FMaterialGroup_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "物料分组")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FMaterialGroup = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "物料分组编码")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FUseStatus = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "数据状态")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FForbidStatus = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "禁用状态")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FCreatorId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "创建人")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FCreateDate = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "创建日期"),
+                    FModifierId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "修改人")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FModifyDate = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "修改日期"),
+                    FApproverId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "审核人")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FApproveDate = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "审核日期"),
+                    FForbidderId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "禁用人")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FForbidDate = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "禁用日期"),
+                    FErpClsID = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "物料属性")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FCategoryID_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "存货类别")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FTaxType_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "税分类")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FTaxRateId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "默认税率")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FBaseUnitId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "基本单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsPurchase = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "允许采购")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsInventory = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "允许库存")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsSubContract = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "允许委外")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsSale = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "允许销售")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FBARCODE = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "条码")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FGROSSWEIGHT = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "毛重"),
+                    FNETWEIGHT = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "净重"),
+                    FVOLUMEUNITID_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "尺寸单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FLENGTH = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "长"),
+                    FWIDTH = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "宽"),
+                    FHEIGHT = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "高"),
+                    FWEIGHTUNITID_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "重量单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FVOLUME = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "体积"),
+                    FStoreUnitID_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "库存单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FAuxUnitID_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "辅助单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FStockId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "仓库")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FStockLoc = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "仓位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FStockPlaceId_FF100002 = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "仓位.客户.编码")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FStockPlaceId_FF100002_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "仓位.客户.名称")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FStockPlaceId_FF100003 = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "仓位.供应商.编码")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FStockPlaceId_FF100003_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "仓位.供应商.名称")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FStockPlaceId_FF100004 = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "仓位.服务机客户.编码")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FStockPlaceId_FF100004_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "仓位.服务机客户.名称")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsLockStock = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "可锁库")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsCycleCounting = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "启用盘点周期")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FCountCycle = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "盘点周期单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FCountDay = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "盘点周期"),
+                    FIsMustCounting = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "必盘")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsBatchManage = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "启用批号管理")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FBatchRuleID_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "批号编码规则")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsKFPeriod = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "启用保质期管理")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsExpParToFlot = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "批号附属信息")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FExpUnit = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "保质期单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FExpPeriod = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "保质期"),
+                    FOnlineLife = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "在架寿命期"),
+                    FRefCost = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "参考成本"),
+                    FCurrencyId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "币别")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsSNManage = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "库存管理")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsEnableMinStock = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "启用最小库存")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsEnableSafeStock = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "启用安全库存")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FSNCodeRule_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "序列号编码规则")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsEnableReOrder = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "启用再订货点")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsEnableMaxStock = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "启用最大库存")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FSNUnit_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "序列号单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FMinStock = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "最小库存"),
+                    FSafeStock = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "安全库存"),
+                    FReOrderGood = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "再订货点"),
+                    FEconReOrderQty = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "经济订货批量"),
+                    FMaxStock = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "最大库存"),
+                    FSaleUnitId_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "销售单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FSalePriceUnitId_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "销售计价单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FOrderQty = table.Column<decimal>(type: "decimal(20,10)", precision: 20, scale: 10, nullable: true, comment: "起订量"),
+                    FOutStockLmtH = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "超发上限(%)"),
+                    FOutStockLmtL = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "超发下限(%)"),
+                    FAgentSalReduceRate = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "代理销售减价比例(%)"),
+                    FIsATPCheck = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "ATP检查")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsReturn = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "允许退货")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsReturnPart = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "部件可退")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FAllowPublish = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "允许发布到订货平台")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FISAFTERSALE = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "启用售后服务")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FISPRODUCTFILES = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "生成产品档案")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FISWARRANTED = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "是否保修")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FWARRANTYUNITID = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "保修期单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FPurchaseUnitId_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "采购单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FPurchasePriceUnitId_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "采购计价单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FPurchaseGroupId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "采购组")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FPurchaserId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "采购员")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsQuota = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "配额管理")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FQuotaType = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "配额方式")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FMinSplitQty = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "最小拆分数量"),
+                    FIsVmiBusiness = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "VMI业务")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FDefaultVendor_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "默认供应商")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FChargeID_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "费用项目")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsSourceControl = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "货源控制")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsPR = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "需要请购")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FReceiveMaxScale = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "收货上限比例(%)"),
+                    FReceiveMinScale = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "收货下限比例(%)"),
+                    FIFAgentPurPlusRatesPR = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "代理采购加成比例"),
+                    FReceiveAdvanceDays = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "收货提前天数"),
+                    FReceiveDelayDays = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "收货延迟天数"),
+                    FIsReturnMaterial = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "允许退料")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FPurchaseOrgId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "采购组织")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FSubconUnitId_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "委外单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FSubconPriceUnitId_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "委外计价单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FPOBillTypeId_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "采购类型")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FSubBillType_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "委外类型")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FPlanningStrategy = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "计划策略")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FMfgPolicyId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "制造策略")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FCheckLeadTimeType = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "检验提前期单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FOrderPolicy = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "订货策略")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FMinPOQty = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "最小订货量"),
+                    FPlanWorkshop_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "计划区")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FOrderIntervalTimeType = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "订货间隔期单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FFixLeadTime = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "固定提前期"),
+                    FIncreaseQty = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "最小包装量"),
+                    FFixLeadTimeType = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "固定提前期单位"),
+                    FOrderIntervalTime = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "订货间隔期"),
+                    FVarLeadTime = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "变动提前期"),
+                    FVarLeadTimeLotSize = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "变动提前期批量"),
+                    FVarLeadTimeType = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "变动提前期单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FMaxPOQty = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "最大订货量"),
+                    FCheckLeadTime = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "检验提前期"),
+                    FEOQ = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "固定/经济批量"),
+                    FPlanIntervalsDays = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "批量拆分间隔天数"),
+                    FPlanBatchSplitQty = table.Column<decimal>(type: "decimal(20,10)", precision: 20, scale: 10, nullable: true, comment: "拆分批量"),
+                    FIsMrpComReq = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "MRP计算是否合并需求")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FRequestTimeZone = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "需求时界"),
+                    FIsMrpComBill = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "MRP计算是否按单合并")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FCanLeadDays = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "允许提前天数"),
+                    FPlanTimeZone = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "计划时界"),
+                    FReserveType = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "预留类型")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FPlanGroupId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "计划组")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FLeadExtendDay = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "提前宽限期"),
+                    FPlanerID_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "计划员")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FATOSchemeId_Name = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "ATO预测冲销方案"),
+                    FCanDelayDays = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "允许延后天数"),
+                    FPlanOffsetTime = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "偏置时间"),
+                    FPlanSafeStockQty = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "安全库存"),
+                    FDSMatchByLot = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "按批号匹配供需")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FAllowPartAhead = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "预计入库允许部分提前")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FTimeFactorId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "时间紧迫系数")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FAllowPartDelay = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "预计入库允许部分延后")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FQtyFactorId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "数量负荷系数")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FSupplySourceId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "供应来源")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FDelayExtendDay = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "延后宽限期"),
+                    FPlanOffsetTimeType = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "时间单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIssueType = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "发料方式")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FWorkShopId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "生产车间")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsCoby = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "可为联副产品")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FProduceUnitId_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "生产单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsMainPrd = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "可为主产品")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FBKFLTime = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "倒冲时机")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FFinishReceiptOverRate = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "入库超收比例(%)"),
+                    FPickStockId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "发料仓库")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FFinishReceiptShortRate = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "入库欠收比例(%)")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FPickStockLoc = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "发料仓位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FPickBinId_FF100002 = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "发料仓位.客户.编码")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FPickBinId_FF100002_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "发料仓位.客户.名称")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FPickBinId_FF100003 = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "发料仓位.供应商.编码")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FPickBinId_FF100003_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "发料仓位.供应商.名称")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FPickBinId_FF100004 = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "发料仓位.服务机客户.编码")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FPickBinId_FF100004_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "发料仓位.服务机客户.名称")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FOverControlMode = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "超发控制方式")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FBOMUnitId_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "子项单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FMinIssueQty = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "最小发料批量"),
+                    FIsKitting = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "是否关键件")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsCompleteSet = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "是否齐套件")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FStdLaborPrePareTime = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "标准人员准备工时"),
+                    FStdLaborProcessTime = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "标准人员实作工时"),
+                    FDefaultRouting_Name = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "默认工艺路线")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FPerUnitStandHour = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "标准工时"),
+                    FStdMachinePrepareTime = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "标准机器准备工时"),
+                    FConsumVolatility = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "消耗波动(%)"),
+                    FLOSSPERCENT = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "变动损耗率(%)"),
+                    FIsSNCarryToParent = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "序列号携带到父项")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FStdMachineProcessTime = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "标准机器实作工时"),
+                    FIsProductLine = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "生产线生产")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FProduceBillType_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "生产类型")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FOrgTrustBillType_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "组织间受托类型")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FISMinIssueQty = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "领料考虑最小发料批量")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsECN = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "启用ECN")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsEnable1 = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "启用")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsAffectPrice1 = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "影响价格")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsAffectPlan1 = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "影响计划")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsAffectCost1 = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "影响出库成本")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FAuxPropertyId_Name = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "辅助属性")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsComControl = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "组合控制")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FCheckIncoming = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "来料检验")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FCheckStock = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "库存检验")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FCheckProduct = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "产品检验")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIncSampSchemeId_Name = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "抽样方案")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIncQcSchemeId_Name = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "质检方案")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FEnableCyclistQCSTK = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "启用库存周期复检")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FStockCycle = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "复检周期"),
+                    FEnableCyclistQCSTKEW = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "启用库存周期复检提醒")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsSNPRDTracy = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "生产追溯")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FEWLeadDay = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "提醒提前期"),
+                    FWARRANTY = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "保修期"),
+                    FOutLmtUnit = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "超发控制单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FInspectGroupId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "质检组")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FCheckDelivery = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "发货检验")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FDefBarCodeRuleId_Name = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "默认条码规则")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FCheckReturn = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "退货检验")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FInspectorId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "质检员")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FCONFIGTYPE = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "配置生产")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FFeatureItem = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "特征件子项")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FPrintCount = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "重复打印数"),
+                    FMinIssueUnitId_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "最小发料批量单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FMdlId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "产品模型")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FMdlMaterialId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "模型物料")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FTaxCategoryCodeId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "税收分类编码")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FCheckEntrusted = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "受托材料检验")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FSuite = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "套件")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FBoxStandardQty = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "单箱标准数量"),
+                    FSalGroup_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "销售分组")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FCheckOther = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "其他检验")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsTaxEnjoy = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "享受税收优惠政策")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FTaxDiscountsType = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "税收优惠政策类型")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FStandHourUnitId = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "工时单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FCostPriceRate = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "结算成本价加减价比例(%)"),
+                    FBackFlushType = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "倒冲数量")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FAccuLeadTime = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "累计提前期"),
+                    FProductLine_Name = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "产品系列")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FWriteOffQty = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "冲销数量"),
+                    FFIXLOSS = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "固定损耗"),
+                    FPlanIdent_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "计划标识")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FProScheTrackId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "订单进度分组")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FMinPackCount = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "最小包装数"),
+                    FDailyOutQty = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "日产量"),
+                    FIsFirstInspect = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "产品首检")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FCheckReturnMtrl = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "生产退料检验")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FForbidReson_2052 = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "禁用原因")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FForbidResonIsUsed = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "已使用")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FUnValidateExpQty = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "不参与可发量统计")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_WLLX = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "物料类型")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsEnableSchedule = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "启用日排产")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_ZJGLWLH_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "直接关联物料号")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FDefaultLineId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "默认产线")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_DYDWLX = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "电压/电网类型")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_GWLH_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "根物料号")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_GLD_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "功率段")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_DZLSX = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "电子料属性")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_JWLBMU8 = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "旧物料编码U8")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_PP_Name = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "品牌")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_ZJCSGS = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "整机测试工时"),
+                    F_ZYGS = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "作业工时"),
+                    F_GSZHGGRQ = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "工时最后更改日期"),
+                    F_TJZLZHGGRQ = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "体积重量最后更改日期"),
+                    F_SMZQZHGGRQ = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "生命周期最后更改日期"),
+                    F_TJZLZHGGR_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "体积重量最后更改人")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_SMZQZHGGR_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "生命周期最后更改人")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_GSZHGGR_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "工时最后更改人")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_ZJZB_Name = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "整机质保(月)"),
+                    F_SFJLPCH = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "是否记录批次号")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_YWLX = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "业务类型")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_CPPLLB = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "产品披露类别")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_YZSG = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "已终审过")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_WLSQR_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "物料申请人")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_CPX_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "产品线")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_CPFL_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "产品分类")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_SMZQ = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "料号生命周期")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_YXSL = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "允许收料")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_XSXH_2052 = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "SAJ型号")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_HLBZL = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "回料包装量"),
+                    F_BZGG = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "包装规格")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_GYS = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "供应商")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_JCYY = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "禁采原因")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_YXQG = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "允许请购")
+                        .Annotation("MySql:CharSet", "utf8mb4")
+                },
+                constraints: table =>
+                {
+                    table.PrimaryKey("PK_in_kd_material", x => x.Id);
+                },
+                comment: "物料")
+                .Annotation("MySql:CharSet", "utf8mb4");
+        }
+
+        protected override void Down(MigrationBuilder migrationBuilder)
+        {
+            migrationBuilder.DropTable(
+                name: "in_kd_material");
+
+            migrationBuilder.CreateTable(
+                name: "material",
+                columns: table => new
+                {
+                    Id = table.Column<long>(type: "bigint", nullable: false)
+                        .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
+                    FATOSchemeId_Name = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "ATO预测冲销方案"),
+                    FAccuLeadTime = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "累计提前期"),
+                    FAgentSalReduceRate = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "代理销售减价比例(%)"),
+                    FAllowPartAhead = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "预计入库允许部分提前")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FAllowPartDelay = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "预计入库允许部分延后")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FAllowPublish = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "允许发布到订货平台")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FApproveDate = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "审核日期"),
+                    FApproverId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "审核人")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FAuxPropertyId_Name = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "辅助属性")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FAuxUnitID_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "辅助单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FBARCODE = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "条码")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FBKFLTime = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "倒冲时机")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FBOMUnitId_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "子项单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FBackFlushType = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "倒冲数量")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FBaseUnitId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "基本单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FBatchRuleID_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "批号编码规则")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FBoxStandardQty = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "单箱标准数量"),
+                    FCONFIGTYPE = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "配置生产")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FCanDelayDays = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "允许延后天数"),
+                    FCanLeadDays = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "允许提前天数"),
+                    FCategoryID_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "存货类别")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FChargeID_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "费用项目")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FCheckDelivery = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "发货检验")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FCheckEntrusted = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "受托材料检验")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FCheckIncoming = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "来料检验")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FCheckLeadTime = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "检验提前期"),
+                    FCheckLeadTimeType = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "检验提前期单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FCheckOther = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "其他检验")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FCheckProduct = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "产品检验")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FCheckReturn = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "退货检验")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FCheckReturnMtrl = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "生产退料检验")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FCheckStock = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "库存检验")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FConsumVolatility = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "消耗波动(%)"),
+                    FCostPriceRate = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "结算成本价加减价比例(%)"),
+                    FCountCycle = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "盘点周期单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FCountDay = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "盘点周期"),
+                    FCreateDate = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "创建日期"),
+                    FCreateOrgId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "创建组织")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FCreatorId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "创建人")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FCurrencyId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "币别")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FDSMatchByLot = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "按批号匹配供需")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FDailyOutQty = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "日产量"),
+                    FDataSource = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "物料来源")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FDefBarCodeRuleId_Name = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "默认条码规则")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FDefaultLineId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "默认产线")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FDefaultRouting_Name = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "默认工艺路线")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FDefaultVendor_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "默认供应商")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FDelayExtendDay = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "延后宽限期"),
+                    FDescription_2052 = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "描述")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FEOQ = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "固定/经济批量"),
+                    FEWLeadDay = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "提醒提前期"),
+                    FEconReOrderQty = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "经济订货批量"),
+                    FEnableCyclistQCSTK = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "启用库存周期复检")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FEnableCyclistQCSTKEW = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "启用库存周期复检提醒")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FErpClsID = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "物料属性")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FExpPeriod = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "保质期"),
+                    FExpUnit = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "保质期单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FFIXLOSS = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "固定损耗"),
+                    FFeatureItem = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "特征件子项")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FFinishReceiptOverRate = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "入库超收比例(%)"),
+                    FFinishReceiptShortRate = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "入库欠收比例(%)")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FFixLeadTime = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "固定提前期"),
+                    FFixLeadTimeType = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "固定提前期单位"),
+                    FForbidDate = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "禁用日期"),
+                    FForbidResonIsUsed = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "已使用")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FForbidReson_2052 = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "禁用原因")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FForbidStatus = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "禁用状态")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FForbidderId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "禁用人")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FGROSSWEIGHT = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "毛重"),
+                    FHEIGHT = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "高"),
+                    FIFAgentPurPlusRatesPR = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "代理采购加成比例"),
+                    FISAFTERSALE = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "启用售后服务")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FISMinIssueQty = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "领料考虑最小发料批量")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FISPRODUCTFILES = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "生成产品档案")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FISWARRANTED = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "是否保修")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIncQcSchemeId_Name = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "质检方案")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIncSampSchemeId_Name = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "抽样方案")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIncreaseQty = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "最小包装量"),
+                    FInspectGroupId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "质检组")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FInspectorId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "质检员")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsATPCheck = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "ATP检查")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsAffectCost1 = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "影响出库成本")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsAffectPlan1 = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "影响计划")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsAffectPrice1 = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "影响价格")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsBatchManage = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "启用批号管理")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsCoby = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "可为联副产品")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsComControl = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "组合控制")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsCompleteSet = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "是否齐套件")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsCycleCounting = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "启用盘点周期")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsECN = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "启用ECN")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsEnable1 = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "启用")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsEnableMaxStock = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "启用最大库存")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsEnableMinStock = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "启用最小库存")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsEnableReOrder = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "启用再订货点")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsEnableSafeStock = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "启用安全库存")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsEnableSchedule = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "启用日排产")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsExpParToFlot = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "批号附属信息")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsFirstInspect = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "产品首检")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsInventory = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "允许库存")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsKFPeriod = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "启用保质期管理")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsKitting = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "是否关键件")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsLockStock = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "可锁库")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsMainPrd = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "可为主产品")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsMrpComBill = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "MRP计算是否按单合并")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsMrpComReq = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "MRP计算是否合并需求")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsMustCounting = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "必盘")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsPR = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "需要请购")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsProductLine = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "生产线生产")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsPurchase = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "允许采购")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsQuota = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "配额管理")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsReturn = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "允许退货")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsReturnMaterial = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "允许退料")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsReturnPart = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "部件可退")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsSNCarryToParent = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "序列号携带到父项")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsSNManage = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "库存管理")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsSNPRDTracy = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "生产追溯")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsSale = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "允许销售")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsSourceControl = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "货源控制")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsSubContract = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "允许委外")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsTaxEnjoy = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "享受税收优惠政策")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsVmiBusiness = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "VMI业务")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIssueType = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "发料方式")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FLENGTH = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "长"),
+                    FLOSSPERCENT = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "变动损耗率(%)"),
+                    FLeadExtendDay = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "提前宽限期"),
+                    FMaterialGroup = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "物料分组编码")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FMaterialGroup_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "物料分组")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FMaxPOQty = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "最大订货量"),
+                    FMaxStock = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "最大库存"),
+                    FMdlId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "产品模型")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FMdlMaterialId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "模型物料")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FMfgPolicyId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "制造策略")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FMinIssueQty = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "最小发料批量"),
+                    FMinIssueUnitId_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "最小发料批量单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FMinPOQty = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "最小订货量"),
+                    FMinPackCount = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "最小包装数"),
+                    FMinSplitQty = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "最小拆分数量"),
+                    FMinStock = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "最小库存"),
+                    FMnemonicCode = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "助记码")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FModifierId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "修改人")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FModifyDate = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "修改日期"),
+                    FNETWEIGHT = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "净重"),
+                    FName_2052 = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "名称")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FNumber = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "编码")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FOldNumber = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "旧物料编码")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FOnlineLife = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "在架寿命期"),
+                    FOrderIntervalTime = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "订货间隔期"),
+                    FOrderIntervalTimeType = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "订货间隔期单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FOrderPolicy = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "订货策略")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FOrderQty = table.Column<decimal>(type: "decimal(20,10)", precision: 20, scale: 10, nullable: true, comment: "起订量"),
+                    FOrgTrustBillType_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "组织间受托类型")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FOutLmtUnit = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "超发控制单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FOutStockLmtH = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "超发上限(%)"),
+                    FOutStockLmtL = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "超发下限(%)"),
+                    FOverControlMode = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "超发控制方式")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FPOBillTypeId_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "采购类型")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FPerUnitStandHour = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "标准工时"),
+                    FPickBinId_FF100002 = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "发料仓位.客户.编码")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FPickBinId_FF100002_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "发料仓位.客户.名称")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FPickBinId_FF100003 = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "发料仓位.供应商.编码")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FPickBinId_FF100003_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "发料仓位.供应商.名称")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FPickBinId_FF100004 = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "发料仓位.服务机客户.编码")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FPickBinId_FF100004_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "发料仓位.服务机客户.名称")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FPickStockId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "发料仓库")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FPickStockLoc = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "发料仓位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FPlanBatchSplitQty = table.Column<decimal>(type: "decimal(20,10)", precision: 20, scale: 10, nullable: true, comment: "拆分批量"),
+                    FPlanGroupId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "计划组")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FPlanIdent_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "计划标识")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FPlanIntervalsDays = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "批量拆分间隔天数"),
+                    FPlanOffsetTime = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "偏置时间"),
+                    FPlanOffsetTimeType = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "时间单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FPlanSafeStockQty = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "安全库存"),
+                    FPlanTimeZone = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "计划时界"),
+                    FPlanWorkshop_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "计划区")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FPlanerID_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "计划员")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FPlanningStrategy = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "计划策略")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FPrintCount = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "重复打印数"),
+                    FProScheTrackId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "订单进度分组")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FProduceBillType_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "生产类型")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FProduceUnitId_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "生产单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FProductLine_Name = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "产品系列")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FPurchaseGroupId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "采购组")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FPurchaseOrgId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "采购组织")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FPurchasePriceUnitId_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "采购计价单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FPurchaseUnitId_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "采购单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FPurchaserId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "采购员")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FQtyFactorId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "数量负荷系数")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FQuotaType = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "配额方式")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FReOrderGood = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "再订货点"),
+                    FReceiveAdvanceDays = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "收货提前天数"),
+                    FReceiveDelayDays = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "收货延迟天数"),
+                    FReceiveMaxScale = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "收货上限比例(%)"),
+                    FReceiveMinScale = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "收货下限比例(%)"),
+                    FRefCost = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "参考成本"),
+                    FRequestTimeZone = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "需求时界"),
+                    FReserveType = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "预留类型")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FSNCodeRule_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "序列号编码规则")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FSNUnit_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "序列号单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FSafeStock = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "安全库存"),
+                    FSalGroup_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "销售分组")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FSalePriceUnitId_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "销售计价单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FSaleUnitId_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "销售单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FSpecification_2052 = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "规格型号")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FStandHourUnitId = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "工时单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FStdLaborPrePareTime = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "标准人员准备工时"),
+                    FStdLaborProcessTime = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "标准人员实作工时"),
+                    FStdMachinePrepareTime = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "标准机器准备工时"),
+                    FStdMachineProcessTime = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "标准机器实作工时"),
+                    FStockCycle = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "复检周期"),
+                    FStockId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "仓库")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FStockLoc = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "仓位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FStockPlaceId_FF100002 = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "仓位.客户.编码")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FStockPlaceId_FF100002_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "仓位.客户.名称")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FStockPlaceId_FF100003 = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "仓位.供应商.编码")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FStockPlaceId_FF100003_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "仓位.供应商.名称")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FStockPlaceId_FF100004 = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "仓位.服务机客户.编码")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FStockPlaceId_FF100004_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "仓位.服务机客户.名称")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FStoreUnitID_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "库存单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FSubBillType_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "委外类型")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FSubconPriceUnitId_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "委外计价单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FSubconUnitId_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "委外单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FSuite = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "套件")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FSupplySourceId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "供应来源")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FTaxCategoryCodeId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "税收分类编码")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FTaxDiscountsType = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "税收优惠政策类型")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FTaxRateId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "默认税率")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FTaxType_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "税分类")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FTimeFactorId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "时间紧迫系数")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FUnValidateExpQty = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "不参与可发量统计")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FUseOrgId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "使用组织")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FUseStatus = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "数据状态")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FVOLUME = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "体积"),
+                    FVOLUMEUNITID_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "尺寸单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FVarLeadTime = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "变动提前期"),
+                    FVarLeadTimeLotSize = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "变动提前期批量"),
+                    FVarLeadTimeType = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "变动提前期单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FWARRANTY = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "保修期"),
+                    FWARRANTYUNITID = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "保修期单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FWEIGHTUNITID_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "重量单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FWIDTH = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "宽"),
+                    FWorkShopId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "生产车间")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FWriteOffQty = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "冲销数量"),
+                    F_BZGG = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "包装规格")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_CPFL_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "产品分类")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_CPPLLB = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "产品披露类别")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_CPX_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "产品线")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_DYDWLX = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "电压/电网类型")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_DZLSX = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "电子料属性")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_GLD_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "功率段")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_GSZHGGRQ = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "工时最后更改日期"),
+                    F_GSZHGGR_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "工时最后更改人")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_GWLH_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "根物料号")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_GYS = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "供应商")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_HLBZL = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "回料包装量"),
+                    F_JCYY = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "禁采原因")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_JWLBMU8 = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "旧物料编码U8")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_PP_Name = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "品牌")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_SFJLPCH = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "是否记录批次号")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_SMZQ = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "料号生命周期")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_SMZQZHGGRQ = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "生命周期最后更改日期"),
+                    F_SMZQZHGGR_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "生命周期最后更改人")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_TJZLZHGGRQ = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "体积重量最后更改日期"),
+                    F_TJZLZHGGR_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "体积重量最后更改人")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_WLLX = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "物料类型")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_WLSQR_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "物料申请人")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_XSXH_2052 = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "SAJ型号")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_YWLX = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "业务类型")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_YXQG = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "允许请购")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_YXSL = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "允许收料")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_YZSG = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "已终审过")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_ZJCSGS = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "整机测试工时"),
+                    F_ZJGLWLH_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "直接关联物料号")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_ZJZB_Name = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "整机质保(月)"),
+                    F_ZYGS = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "作业工时")
+                },
+                constraints: table =>
+                {
+                    table.PrimaryKey("PK_material", x => x.Id);
+                },
+                comment: "物料")
+                .Annotation("MySql:CharSet", "utf8mb4");
+        }
+    }
+}

+ 143 - 2
MicroServices/Business/Business.Host/Migrations/BusinessExtMigrationDb/BusinessExtMigrationDbContextModelSnapshot.cs

@@ -21,7 +21,148 @@ namespace Business.Migrations.BusinessExtMigrationDb
                 .HasAnnotation("ProductVersion", "6.0.5")
                 .HasAnnotation("Relational:MaxIdentifierLength", 64);
 
-            modelBuilder.Entity("Bussiness.Model.Ext.material", b =>
+            modelBuilder.Entity("Bussiness.Model.Ext.in_kd_bom", b =>
+                {
+                    b.Property<long>("Id")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("bigint");
+
+                    b.Property<string>("FBOMCATEGORY")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("BOM分类");
+
+                    b.Property<DateTime?>("FCHILDITEMMODEL")
+                        .HasMaxLength(80)
+                        .HasColumnType("datetime(6)")
+                        .HasComment("子项规格型号");
+
+                    b.Property<string>("FCHILDITEMNAME")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("子项物料名称");
+
+                    b.Property<string>("FCHILDUNITID_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("子项单位");
+
+                    b.Property<string>("FChildSupplyOrgId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("供应组织");
+
+                    b.Property<decimal?>("FDENOMINATOR")
+                        .HasPrecision(23, 10)
+                        .HasColumnType("decimal(23,10)")
+                        .HasComment("用量:分母");
+
+                    b.Property<string>("FITEMMODEL")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("规格型号");
+
+                    b.Property<string>("FITEMNAME")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("物料名称");
+
+                    b.Property<string>("FITEMPPROPERTY")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("数据状态");
+
+                    b.Property<string>("FIskeyItem")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("替代主料");
+
+                    b.Property<string>("FMATERIALIDCHILD_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("子项物料编码");
+
+                    b.Property<string>("FMATERIALID_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("父项物料编码");
+
+                    b.Property<decimal?>("FNUMERATOR")
+                        .HasPrecision(23, 10)
+                        .HasColumnType("decimal(23,10)")
+                        .HasComment("用量:分子");
+
+                    b.Property<string>("FName_2052")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("BOM简称");
+
+                    b.Property<string>("FNumber")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("BOM版本");
+
+                    b.Property<string>("FPROCESSID_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("作业");
+
+                    b.Property<int?>("FReplaceGroup")
+                        .HasColumnType("int")
+                        .HasComment("项次");
+
+                    b.Property<string>("FReplacePolicy")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("替代策略");
+
+                    b.Property<int?>("FReplacePriority")
+                        .HasColumnType("int")
+                        .HasComment("替代优先级");
+
+                    b.Property<string>("FReplaceType")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("替代方式");
+
+                    b.Property<string>("FSubstitutionId_Name")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("80");
+
+                    b.Property<string>("FSubstitutionName")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("替代方案名称");
+
+                    b.Property<string>("FSupplyType")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("供应类型");
+
+                    b.Property<string>("FUseOrgId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("使用组织");
+
+                    b.Property<string>("F_ZXWLMS")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("子项物料描述");
+
+                    b.Property<string>("F_ZXWLPP")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("子项物料品牌");
+
+                    b.HasKey("Id");
+
+                    b.ToTable("bom", (string)null);
+
+                    b.HasComment("物料清单");
+                });
+
+            modelBuilder.Entity("Bussiness.Model.Ext.in_kd_material", b =>
                 {
                     b.Property<long>("Id")
                         .ValueGeneratedOnAdd()
@@ -1392,7 +1533,7 @@ namespace Business.Migrations.BusinessExtMigrationDb
 
                     b.HasKey("Id");
 
-                    b.ToTable("material", (string)null);
+                    b.ToTable("in_kd_material", (string)null);
 
                     b.HasComment("物料");
                 });

+ 197 - 0
MicroServices/Business/Bussiness.Model/Ext/in_kd_bom.cs

@@ -0,0 +1,197 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+using Volo.Abp.Domain.Entities;
+
+namespace Bussiness.Model.Ext
+{
+    /// <summary>
+    /// 物料清单
+    /// </summary>
+    [CollectionName("dopbase", "in_kd_bom")]
+    [Comment("物料清单")]
+    public class in_kd_bom : Entity<long>
+    {
+        /// <summary>
+        /// 使用组织
+        /// </summary>
+        [StringLength(80)]
+        [Comment("使用组织")]
+        public string? FUseOrgId_Name { get; set; }
+
+        /// <summary>
+        /// BOM版本
+        /// </summary>
+        [StringLength(80)]
+        [Comment("BOM版本")]
+        public string? FNumber { get; set; }
+        /// <summary>
+        /// BOM简称
+        /// </summary>
+        [StringLength(10)]
+        [Comment("BOM简称")]
+        public string? FName_2052 { get; set; }
+
+        /// <summary>
+        /// BOM分类
+        /// </summary>
+        [StringLength(80)]
+        [Comment("BOM分类")]
+        public string? FBOMCATEGORY { get; set; }
+
+        /// <summary>
+        /// 父项物料编码
+        /// </summary>
+        [StringLength(80)]
+        [Comment("父项物料编码")]
+        public string? FMATERIALID_Name { get; set; }
+
+        /// <summary>
+        /// 物料名称
+        /// </summary>
+        [StringLength(80)]
+        [Comment("物料名称")]
+        public string? FITEMNAME { get; set; }
+
+        /// <summary>
+        /// 规格型号
+        /// </summary>
+        [StringLength(80)]
+        [Comment("规格型号")]
+        public string? FITEMMODEL { get; set; }
+
+        /// <summary>
+        /// 数据状态
+        /// </summary>
+        [StringLength(10)]
+        [Comment("数据状态")]
+        public string? FITEMPPROPERTY { get; set; }
+
+        /// <summary>
+        /// 项次
+        /// </summary>
+        [Comment("项次")]
+        public int? FReplaceGroup { get; set; }
+
+        /// <summary>
+        /// 替代优先级
+        /// </summary>
+        [Comment("替代优先级")]
+        public int? FReplacePriority { get; set; }
+
+
+        /// <summary>
+        /// 替代方案编码
+        /// </summary>
+        [Comment("80")]
+        [StringLength(255)]
+        public string? FSubstitutionId_Name { get; set; }
+
+        /// <summary>
+        /// 子项物料编码
+        /// </summary>
+        [Comment("子项物料编码")]
+        [StringLength(80)]
+        public string? FMATERIALIDCHILD_Name { get; set; }
+
+        /// <summary>
+        /// 子项物料名称
+        /// </summary>
+        [StringLength(80)]
+        [Comment("子项物料名称")]
+        public string? FCHILDITEMNAME { get; set; }
+
+        /// <summary>
+        /// 子项规格型号
+        /// </summary>
+        [Comment("子项规格型号")]
+        [StringLength(80)]
+        public DateTime? FCHILDITEMMODEL { get; set; }
+
+        /// <summary>
+        /// 供应类型
+        /// </summary>
+        [Comment("供应类型")]
+        [StringLength(1)]
+        public string? FSupplyType { get; set; }
+
+        /// <summary>
+        /// 子项单位
+        /// </summary>
+        [Comment("子项单位")]
+        [StringLength(10)]
+        public string? FCHILDUNITID_Name { get; set; }
+
+
+        /// <summary>
+        /// 供应组织
+        /// </summary>
+        [StringLength(80)]
+        [Comment("供应组织")]
+        public string? FChildSupplyOrgId_Name { get; set; }
+
+        /// <summary>
+        /// 用量:分子
+        [Comment("用量:分子")]
+        [Precision(23, 10)]
+        public decimal? FNUMERATOR { get; set; }
+        /// <summary>
+        /// 用量:分母
+        /// </summary>
+        [Comment("用量:分母")]
+        [Precision(23, 10)]
+        public decimal? FDENOMINATOR { get; set; }
+
+
+        /// <summary>
+        /// 作业
+        /// </summary>
+        [Comment("作业")]
+        [StringLength(80)]
+        public string? FPROCESSID_Name { get; set; }
+
+        /// <summary>
+        /// 替代策略
+        /// </summary>
+        [StringLength(80)]
+        [Comment("替代策略")]
+        public string? FReplacePolicy { get; set; }
+
+
+        /// <summary>
+        /// 替代方式
+        /// </summary>
+        [Comment("替代方式")]
+        [StringLength(80)]
+        public string? FReplaceType { get; set; }
+
+        /// <summary>
+        /// 替代主料
+        /// </summary>
+        [Comment("替代主料")]
+        [StringLength(1)]
+        public string? FIskeyItem { get; set; }
+
+        /// <summary>
+        /// 替代方案名称
+        /// </summary>
+        [Comment("替代方案名称")]
+        [StringLength(80)]
+        public string? FSubstitutionName { get; set; }
+
+        /// <summary>
+        /// 子项物料描述
+        /// </summary>
+         [StringLength(255)]
+        [Comment("子项物料描述")]
+        public string? F_ZXWLMS { get; set; }
+        /// <summary>
+        /// 子项物料品牌
+        /// </summary>
+        [Comment("子项物料品牌")]
+         [StringLength(255)]
+        public string? F_ZXWLPP { get; set; }
+    }
+}

+ 2 - 2
MicroServices/Business/Bussiness.Model/Ext/material.cs → MicroServices/Business/Bussiness.Model/Ext/in_kd_material.cs

@@ -10,9 +10,9 @@ namespace Bussiness.Model.Ext
     /// <summary>
     /// 物料
     /// </summary>
-    [CollectionName("dopbase", "material")]
+    [CollectionName("dopbase", "in_kd_material")]
     [Comment("物料")]
-    public class material : Entity<long>
+    public class in_kd_material : Entity<long>
     {
         /// <summary>
         /// 创建组织