20230529172130_demoinitext.cs 43 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348
  1. using System;
  2. using Microsoft.EntityFrameworkCore.Migrations;
  3. #nullable disable
  4. namespace Business.Migrations.BusinessExtMigrationDb
  5. {
  6. public partial class demoinitext : Migration
  7. {
  8. protected override void Up(MigrationBuilder migrationBuilder)
  9. {
  10. migrationBuilder.CreateTable(
  11. name: "in_kd_bom",
  12. columns: table => new
  13. {
  14. Id = table.Column<long>(type: "bigint", nullable: false),
  15. FUseOrgId_Name = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "使用组织"),
  16. FNumber = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "BOM版本"),
  17. FName_2052 = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: true, comment: "BOM简称"),
  18. FBOMCATEGORY = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "BOM分类"),
  19. FMATERIALID_Name = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "父项物料编码"),
  20. FITEMNAME = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "物料名称"),
  21. FITEMMODEL = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "规格型号"),
  22. FITEMPPROPERTY = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: true, comment: "数据状态"),
  23. FReplaceGroup = table.Column<int>(type: "int", nullable: true, comment: "项次"),
  24. FReplacePriority = table.Column<int>(type: "int", nullable: true, comment: "替代优先级"),
  25. FSubstitutionId_Name = table.Column<string>(type: "nvarchar(255)", maxLength: 255, nullable: true, comment: "80"),
  26. FMATERIALIDCHILD_Name = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "子项物料编码"),
  27. FCHILDITEMNAME = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "子项物料名称"),
  28. FCHILDITEMMODEL = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "子项规格型号"),
  29. FSupplyType = table.Column<string>(type: "nvarchar(1)", maxLength: 1, nullable: true, comment: "供应类型"),
  30. FCHILDUNITID_Name = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: true, comment: "子项单位"),
  31. FChildSupplyOrgId_Name = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "供应组织"),
  32. FNUMERATOR = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "用量:分子"),
  33. FDENOMINATOR = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "用量:分母"),
  34. FPROCESSID_Name = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "作业"),
  35. FReplacePolicy = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "替代策略"),
  36. FReplaceType = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "替代方式"),
  37. FIskeyItem = table.Column<string>(type: "nvarchar(1)", maxLength: 1, nullable: true, comment: "替代主料"),
  38. FSubstitutionName = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "替代方案名称"),
  39. F_ZXWLMS = table.Column<string>(type: "nvarchar(255)", maxLength: 255, nullable: true, comment: "子项物料描述"),
  40. F_ZXWLPP = table.Column<string>(type: "nvarchar(255)", maxLength: 255, nullable: true, comment: "子项物料品牌")
  41. },
  42. constraints: table =>
  43. {
  44. table.PrimaryKey("PK_in_kd_bom", x => x.Id);
  45. },
  46. comment: "物料清单");
  47. migrationBuilder.CreateTable(
  48. name: "in_kd_material",
  49. columns: table => new
  50. {
  51. Id = table.Column<long>(type: "bigint", nullable: false),
  52. FCreateOrgId_Name = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "创建组织"),
  53. FUseOrgId_Name = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "使用组织"),
  54. FNumber = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "编码"),
  55. FDataSource = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: true, comment: "物料来源"),
  56. FName_2052 = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "名称"),
  57. FSpecification_2052 = table.Column<string>(type: "nvarchar(255)", maxLength: 255, nullable: true, comment: "规格型号"),
  58. FMnemonicCode = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "助记码"),
  59. FOldNumber = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "旧物料编码"),
  60. FDescription_2052 = table.Column<string>(type: "nvarchar(255)", maxLength: 255, nullable: true, comment: "描述"),
  61. FMaterialGroup_Name = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "物料分组"),
  62. FMaterialGroup = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "物料分组编码"),
  63. FUseStatus = table.Column<string>(type: "nvarchar(255)", maxLength: 255, nullable: true, comment: "数据状态"),
  64. FForbidStatus = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: true, comment: "禁用状态"),
  65. FCreatorId_Name = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "创建人"),
  66. FCreateDate = table.Column<DateTime>(type: "datetime2", nullable: true, comment: "创建日期"),
  67. FModifierId_Name = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "修改人"),
  68. FModifyDate = table.Column<DateTime>(type: "datetime2", nullable: true, comment: "修改日期"),
  69. FApproverId_Name = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "审核人"),
  70. FApproveDate = table.Column<DateTime>(type: "datetime2", nullable: true, comment: "审核日期"),
  71. FForbidderId_Name = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "禁用人"),
  72. FForbidDate = table.Column<DateTime>(type: "datetime2", nullable: true, comment: "禁用日期"),
  73. FErpClsID = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "物料属性"),
  74. FCategoryID_Name = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "存货类别"),
  75. FTaxType_Name = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "税分类"),
  76. FTaxRateId_Name = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "默认税率"),
  77. FBaseUnitId_Name = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "基本单位"),
  78. FIsPurchase = table.Column<string>(type: "nvarchar(1)", maxLength: 1, nullable: true, comment: "允许采购"),
  79. FIsInventory = table.Column<string>(type: "nvarchar(1)", maxLength: 1, nullable: true, comment: "允许库存"),
  80. FIsSubContract = table.Column<string>(type: "nvarchar(1)", maxLength: 1, nullable: true, comment: "允许委外"),
  81. FIsSale = table.Column<string>(type: "nvarchar(1)", maxLength: 1, nullable: true, comment: "允许销售"),
  82. FIsProduce = table.Column<string>(type: "nvarchar(1)", maxLength: 1, nullable: true, comment: "FIsProduce"),
  83. FIsAsset = table.Column<string>(type: "nvarchar(1)", maxLength: 1, nullable: true, comment: "允许资产"),
  84. FBARCODE = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "条码"),
  85. FGROSSWEIGHT = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "毛重"),
  86. FNETWEIGHT = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "净重"),
  87. FVOLUMEUNITID_Name = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: true, comment: "尺寸单位"),
  88. FLENGTH = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "长"),
  89. FWIDTH = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "宽"),
  90. FHEIGHT = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "高"),
  91. FWEIGHTUNITID_Name = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: true, comment: "重量单位"),
  92. FVOLUME = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "体积"),
  93. FStoreUnitID_Name = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: true, comment: "库存单位"),
  94. FAuxUnitID_Name = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: true, comment: "辅助单位"),
  95. FStockId_Name = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "仓库"),
  96. FStockLoc = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "仓位"),
  97. FStockPlaceId_FF100002 = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "仓位.客户.编码"),
  98. FStockPlaceId_FF100002_Name = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "仓位.客户.名称"),
  99. FStockPlaceId_FF100003 = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "仓位.供应商.编码"),
  100. FStockPlaceId_FF100003_Name = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "仓位.供应商.名称"),
  101. FStockPlaceId_FF100004 = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "仓位.服务机客户.编码"),
  102. FStockPlaceId_FF100004_Name = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "仓位.服务机客户.名称"),
  103. FIsLockStock = table.Column<string>(type: "nvarchar(1)", maxLength: 1, nullable: true, comment: "可锁库"),
  104. FIsCycleCounting = table.Column<string>(type: "nvarchar(1)", maxLength: 1, nullable: true, comment: "启用盘点周期"),
  105. FCountCycle = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: true, comment: "盘点周期单位"),
  106. FCountDay = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "盘点周期"),
  107. FIsMustCounting = table.Column<string>(type: "nvarchar(1)", maxLength: 1, nullable: true, comment: "必盘"),
  108. FIsBatchManage = table.Column<string>(type: "nvarchar(1)", maxLength: 1, nullable: true, comment: "启用批号管理"),
  109. FBatchRuleID_Name = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "批号编码规则"),
  110. FIsKFPeriod = table.Column<string>(type: "nvarchar(1)", maxLength: 1, nullable: true, comment: "启用保质期管理"),
  111. FIsExpParToFlot = table.Column<string>(type: "nvarchar(1)", maxLength: 1, nullable: true, comment: "批号附属信息"),
  112. FExpUnit = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: true, comment: "保质期单位"),
  113. FExpPeriod = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "保质期"),
  114. FOnlineLife = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "在架寿命期"),
  115. FRefCost = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "参考成本"),
  116. FCurrencyId_Name = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "币别"),
  117. FIsSNManage = table.Column<string>(type: "nvarchar(1)", maxLength: 1, nullable: true, comment: "库存管理"),
  118. FIsEnableMinStock = table.Column<string>(type: "nvarchar(1)", maxLength: 1, nullable: true, comment: "启用最小库存"),
  119. FIsEnableSafeStock = table.Column<string>(type: "nvarchar(1)", maxLength: 1, nullable: true, comment: "启用安全库存"),
  120. FSNCodeRule_Name = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "序列号编码规则"),
  121. FIsEnableReOrder = table.Column<string>(type: "nvarchar(1)", maxLength: 1, nullable: true, comment: "启用再订货点"),
  122. FIsEnableMaxStock = table.Column<string>(type: "nvarchar(1)", maxLength: 1, nullable: true, comment: "启用最大库存"),
  123. FSNUnit_Name = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: true, comment: "序列号单位"),
  124. FMinStock = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "最小库存"),
  125. FSafeStock = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "安全库存"),
  126. FReOrderGood = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "再订货点"),
  127. FEconReOrderQty = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "经济订货批量"),
  128. FMaxStock = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "最大库存"),
  129. FSaleUnitId_Name = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: true, comment: "销售单位"),
  130. FSalePriceUnitId_Name = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: true, comment: "销售计价单位"),
  131. FOrderQty = table.Column<decimal>(type: "decimal(20,10)", precision: 20, scale: 10, nullable: true, comment: "起订量"),
  132. FOutStockLmtH = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "超发上限(%)"),
  133. FOutStockLmtL = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "超发下限(%)"),
  134. FAgentSalReduceRate = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "代理销售减价比例(%)"),
  135. FIsATPCheck = table.Column<string>(type: "nvarchar(1)", maxLength: 1, nullable: true, comment: "ATP检查"),
  136. FIsReturn = table.Column<string>(type: "nvarchar(1)", maxLength: 1, nullable: true, comment: "允许退货"),
  137. FIsReturnPart = table.Column<string>(type: "nvarchar(1)", maxLength: 1, nullable: true, comment: "部件可退"),
  138. FAllowPublish = table.Column<string>(type: "nvarchar(1)", maxLength: 1, nullable: true, comment: "允许发布到订货平台"),
  139. FISAFTERSALE = table.Column<string>(type: "nvarchar(1)", maxLength: 1, nullable: true, comment: "启用售后服务"),
  140. FISPRODUCTFILES = table.Column<string>(type: "nvarchar(1)", maxLength: 1, nullable: true, comment: "生成产品档案"),
  141. FISWARRANTED = table.Column<string>(type: "nvarchar(1)", maxLength: 1, nullable: true, comment: "是否保修"),
  142. FWARRANTYUNITID = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: true, comment: "保修期单位"),
  143. FPurchaseUnitId_Name = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: true, comment: "采购单位"),
  144. FPurchasePriceUnitId_Name = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: true, comment: "采购计价单位"),
  145. FPurchaseGroupId_Name = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "采购组"),
  146. FPurchaserId_Name = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "采购员"),
  147. FIsQuota = table.Column<string>(type: "nvarchar(1)", maxLength: 1, nullable: true, comment: "配额管理"),
  148. FQuotaType = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "配额方式"),
  149. FMinSplitQty = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "最小拆分数量"),
  150. FIsVmiBusiness = table.Column<string>(type: "nvarchar(1)", maxLength: 1, nullable: true, comment: "VMI业务"),
  151. FDefaultVendor_Name = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "默认供应商"),
  152. FChargeID_Name = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "费用项目"),
  153. FIsSourceControl = table.Column<string>(type: "nvarchar(1)", maxLength: 1, nullable: true, comment: "货源控制"),
  154. FIsPR = table.Column<string>(type: "nvarchar(1)", maxLength: 1, nullable: true, comment: "需要请购"),
  155. FReceiveMaxScale = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "收货上限比例(%)"),
  156. FReceiveMinScale = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "收货下限比例(%)"),
  157. FAgentPurPlusRate = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "代理采购加成比例"),
  158. FReceiveAdvanceDays = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "收货提前天数"),
  159. FReceiveDelayDays = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "收货延迟天数"),
  160. FIsReturnMaterial = table.Column<string>(type: "nvarchar(1)", maxLength: 1, nullable: true, comment: "允许退料"),
  161. FPurchaseOrgId_Name = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "采购组织"),
  162. FSubconUnitId_Name = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: true, comment: "委外单位"),
  163. FSubconPriceUnitId_Name = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: true, comment: "委外计价单位"),
  164. FPOBillTypeId_Name = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: true, comment: "采购类型"),
  165. FSubBillType_Name = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: true, comment: "委外类型"),
  166. FPlanningStrategy = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: true, comment: "计划策略"),
  167. FMfgPolicyId_Name = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "制造策略"),
  168. FCheckLeadTimeType = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: true, comment: "检验提前期单位"),
  169. FOrderPolicy = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "订货策略"),
  170. FMinPOQty = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "最小订货量"),
  171. FPlanWorkshop_Name = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "计划区"),
  172. FOrderIntervalTimeType = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: true, comment: "订货间隔期单位"),
  173. FFixLeadTime = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "固定提前期"),
  174. FIncreaseQty = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "最小包装量"),
  175. FFixLeadTimeType = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "固定提前期单位"),
  176. FOrderIntervalTime = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "订货间隔期"),
  177. FVarLeadTime = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "变动提前期"),
  178. FVarLeadTimeLotSize = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "变动提前期批量"),
  179. FVarLeadTimeType = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: true, comment: "变动提前期单位"),
  180. FMaxPOQty = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "最大订货量"),
  181. FCheckLeadTime = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "检验提前期"),
  182. FEOQ = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "固定/经济批量"),
  183. FPlanIntervalsDays = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "批量拆分间隔天数"),
  184. FPlanBatchSplitQty = table.Column<decimal>(type: "decimal(20,10)", precision: 20, scale: 10, nullable: true, comment: "拆分批量"),
  185. FIsMrpComReq = table.Column<string>(type: "nvarchar(1)", maxLength: 1, nullable: true, comment: "MRP计算是否合并需求"),
  186. FRequestTimeZone = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "需求时界"),
  187. FIsMrpComBill = table.Column<string>(type: "nvarchar(1)", maxLength: 1, nullable: true, comment: "MRP计算是否按单合并"),
  188. FCanLeadDays = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "允许提前天数"),
  189. FPlanTimeZone = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "计划时界"),
  190. FReserveType = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: true, comment: "预留类型"),
  191. FPlanGroupId_Name = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "计划组"),
  192. FLeadExtendDay = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "提前宽限期"),
  193. FPlanerID_Name = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "计划员"),
  194. FATOSchemeId_Name = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "ATO预测冲销方案"),
  195. FCanDelayDays = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "允许延后天数"),
  196. FPlanOffsetTime = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "偏置时间"),
  197. FPlanSafeStockQty = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "安全库存"),
  198. FDSMatchByLot = table.Column<string>(type: "nvarchar(1)", maxLength: 1, nullable: true, comment: "按批号匹配供需"),
  199. FAllowPartAhead = table.Column<string>(type: "nvarchar(1)", maxLength: 1, nullable: true, comment: "预计入库允许部分提前"),
  200. FTimeFactorId_Name = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "时间紧迫系数"),
  201. FAllowPartDelay = table.Column<string>(type: "nvarchar(1)", maxLength: 1, nullable: true, comment: "预计入库允许部分延后"),
  202. FQtyFactorId_Name = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "数量负荷系数"),
  203. FSupplySourceId_Name = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "供应来源"),
  204. FDelayExtendDay = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "延后宽限期"),
  205. FPlanOffsetTimeType = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: true, comment: "时间单位"),
  206. FIssueType = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: true, comment: "发料方式"),
  207. FWorkShopId_Name = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "生产车间"),
  208. FIsCoby = table.Column<string>(type: "nvarchar(1)", maxLength: 1, nullable: true, comment: "可为联副产品"),
  209. FProduceUnitId_Name = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: true, comment: "生产单位"),
  210. FIsMainPrd = table.Column<string>(type: "nvarchar(1)", maxLength: 1, nullable: true, comment: "可为主产品"),
  211. FBKFLTime = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "倒冲时机"),
  212. FFinishReceiptOverRate = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "入库超收比例(%)"),
  213. FPickStockId_Name = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "发料仓库"),
  214. FFinishReceiptShortRate = table.Column<string>(type: "nvarchar(255)", maxLength: 255, nullable: true, comment: "入库欠收比例(%)"),
  215. FPickStockLoc = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "发料仓位"),
  216. FPickBinId_FF100002 = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "发料仓位.客户.编码"),
  217. FPickBinId_FF100002_Name = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "发料仓位.客户.名称"),
  218. FPickBinId_FF100003 = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "发料仓位.供应商.编码"),
  219. FPickBinId_FF100003_Name = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "发料仓位.供应商.名称"),
  220. FPickBinId_FF100004 = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "发料仓位.服务机客户.编码"),
  221. FPickBinId_FF100004_Name = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "发料仓位.服务机客户.名称"),
  222. FOverControlMode = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: true, comment: "超发控制方式"),
  223. FBOMUnitId_Name = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: true, comment: "子项单位"),
  224. FMinIssueQty = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "最小发料批量"),
  225. FIsKitting = table.Column<string>(type: "nvarchar(1)", maxLength: 1, nullable: true, comment: "是否关键件"),
  226. FIsCompleteSet = table.Column<string>(type: "nvarchar(1)", maxLength: 1, nullable: true, comment: "是否齐套件"),
  227. FStdLaborPrePareTime = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "标准人员准备工时"),
  228. FStdLaborProcessTime = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "标准人员实作工时"),
  229. FDefaultRouting_Name = table.Column<string>(type: "nvarchar(255)", maxLength: 255, nullable: true, comment: "默认工艺路线"),
  230. FPerUnitStandHour = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "标准工时"),
  231. FStdMachinePrepareTime = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "标准机器准备工时"),
  232. FConsumVolatility = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "消耗波动(%)"),
  233. FLOSSPERCENT = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "变动损耗率(%)"),
  234. FIsSNCarryToParent = table.Column<string>(type: "nvarchar(1)", maxLength: 1, nullable: true, comment: "序列号携带到父项"),
  235. FStdMachineProcessTime = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "标准机器实作工时"),
  236. FIsProductLine = table.Column<string>(type: "nvarchar(1)", maxLength: 1, nullable: true, comment: "生产线生产"),
  237. FProduceBillType_Name = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: true, comment: "生产类型"),
  238. FOrgTrustBillType_Name = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: true, comment: "组织间受托类型"),
  239. FISMinIssueQty = table.Column<string>(type: "nvarchar(1)", maxLength: 1, nullable: true, comment: "领料考虑最小发料批量"),
  240. FIsECN = table.Column<string>(type: "nvarchar(1)", maxLength: 1, nullable: true, comment: "启用ECN"),
  241. FIsEnable1 = table.Column<string>(type: "nvarchar(1)", maxLength: 1, nullable: true, comment: "启用"),
  242. FIsAffectPrice1 = table.Column<string>(type: "nvarchar(1)", maxLength: 1, nullable: true, comment: "影响价格"),
  243. FIsAffectPlan1 = table.Column<string>(type: "nvarchar(1)", maxLength: 1, nullable: true, comment: "影响计划"),
  244. FIsAffectCost1 = table.Column<string>(type: "nvarchar(1)", maxLength: 1, nullable: true, comment: "影响出库成本"),
  245. FAuxPropertyId_Name = table.Column<string>(type: "nvarchar(255)", maxLength: 255, nullable: true, comment: "辅助属性"),
  246. FIsComControl = table.Column<string>(type: "nvarchar(1)", maxLength: 1, nullable: true, comment: "组合控制"),
  247. FCheckIncoming = table.Column<string>(type: "nvarchar(1)", maxLength: 1, nullable: true, comment: "来料检验"),
  248. FCheckStock = table.Column<string>(type: "nvarchar(1)", maxLength: 1, nullable: true, comment: "库存检验"),
  249. FCheckProduct = table.Column<string>(type: "nvarchar(1)", maxLength: 1, nullable: true, comment: "产品检验"),
  250. FIncSampSchemeId_Name = table.Column<string>(type: "nvarchar(255)", maxLength: 255, nullable: true, comment: "抽样方案"),
  251. FIncQcSchemeId_Name = table.Column<string>(type: "nvarchar(255)", maxLength: 255, nullable: true, comment: "质检方案"),
  252. FEnableCyclistQCSTK = table.Column<string>(type: "nvarchar(1)", maxLength: 1, nullable: true, comment: "启用库存周期复检"),
  253. FStockCycle = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "复检周期"),
  254. FEnableCyclistQCSTKEW = table.Column<string>(type: "nvarchar(1)", maxLength: 1, nullable: true, comment: "启用库存周期复检提醒"),
  255. FIsSNPRDTracy = table.Column<string>(type: "nvarchar(1)", maxLength: 1, nullable: true, comment: "生产追溯"),
  256. FEWLeadDay = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "提醒提前期"),
  257. FWARRANTY = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "保修期"),
  258. FOutLmtUnit = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: true, comment: "超发控制单位"),
  259. FInspectGroupId_Name = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "质检组"),
  260. FCheckDelivery = table.Column<string>(type: "nvarchar(1)", maxLength: 1, nullable: true, comment: "发货检验"),
  261. FDefBarCodeRuleId_Name = table.Column<string>(type: "nvarchar(255)", maxLength: 255, nullable: true, comment: "默认条码规则"),
  262. FCheckReturn = table.Column<string>(type: "nvarchar(1)", maxLength: 1, nullable: true, comment: "退货检验"),
  263. FInspectorId_Name = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "质检员"),
  264. FCONFIGTYPE = table.Column<string>(type: "nvarchar(255)", maxLength: 255, nullable: true, comment: "配置生产"),
  265. FFeatureItem = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "特征件子项"),
  266. FPrintCount = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "重复打印数"),
  267. FMinIssueUnitId_Name = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: true, comment: "最小发料批量单位"),
  268. FMdlId_Name = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "产品模型"),
  269. FMdlMaterialId_Name = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "模型物料"),
  270. FTaxCategoryCodeId_Name = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "税收分类编码"),
  271. FCheckEntrusted = table.Column<string>(type: "nvarchar(1)", maxLength: 1, nullable: true, comment: "受托材料检验"),
  272. FSuite = table.Column<string>(type: "nvarchar(1)", maxLength: 1, nullable: true, comment: "套件"),
  273. FBoxStandardQty = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "单箱标准数量"),
  274. FSalGroup_Name = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "销售分组"),
  275. FCheckOther = table.Column<string>(type: "nvarchar(1)", maxLength: 1, nullable: true, comment: "其他检验"),
  276. FIsTaxEnjoy = table.Column<string>(type: "nvarchar(1)", maxLength: 1, nullable: true, comment: "享受税收优惠政策"),
  277. FTaxDiscountsType = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "税收优惠政策类型"),
  278. FStandHourUnitId = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: true, comment: "工时单位"),
  279. FCostPriceRate = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "结算成本价加减价比例(%)"),
  280. FBackFlushType = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "倒冲数量"),
  281. FAccuLeadTime = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "累计提前期"),
  282. FProductLine_Name = table.Column<string>(type: "nvarchar(255)", maxLength: 255, nullable: true, comment: "产品系列"),
  283. FWriteOffQty = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "冲销数量"),
  284. FFIXLOSS = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "固定损耗"),
  285. FPlanIdent_Name = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "计划标识"),
  286. FProScheTrackId_Name = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "订单进度分组"),
  287. FMinPackCount = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "最小包装数"),
  288. FDailyOutQty = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "日产量"),
  289. FIsFirstInspect = table.Column<string>(type: "nvarchar(1)", maxLength: 1, nullable: true, comment: "产品首检"),
  290. FCheckReturnMtrl = table.Column<string>(type: "nvarchar(1)", maxLength: 1, nullable: true, comment: "生产退料检验"),
  291. FForbidReson_2052 = table.Column<string>(type: "nvarchar(255)", maxLength: 255, nullable: true, comment: "禁用原因"),
  292. FForbidResonIsUsed = table.Column<string>(type: "nvarchar(1)", maxLength: 1, nullable: true, comment: "已使用"),
  293. FUnValidateExpQty = table.Column<string>(type: "nvarchar(1)", maxLength: 1, nullable: true, comment: "不参与可发量统计"),
  294. F_WLLX = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: true, comment: "物料类型"),
  295. FIsEnableSchedule = table.Column<string>(type: "nvarchar(1)", maxLength: 1, nullable: true, comment: "启用日排产"),
  296. F_ZJGLWLH_Name = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "直接关联物料号"),
  297. FDefaultLineId_Name = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "默认产线"),
  298. F_DYDWLX = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "电压/电网类型"),
  299. F_GWLH_Name = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "根物料号"),
  300. F_GLD_Name = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "功率段"),
  301. F_DZLSX = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "电子料属性"),
  302. F_JWLBMU8 = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "旧物料编码U8"),
  303. F_PP_Name = table.Column<string>(type: "nvarchar(255)", maxLength: 255, nullable: true, comment: "品牌"),
  304. F_ZJCSGS = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "整机测试工时"),
  305. F_ZYGS = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "作业工时"),
  306. F_GSZHGGRQ = table.Column<DateTime>(type: "datetime2", nullable: true, comment: "工时最后更改日期"),
  307. F_TJZLZHGGRQ = table.Column<DateTime>(type: "datetime2", nullable: true, comment: "体积重量最后更改日期"),
  308. F_SMZQZHGGRQ = table.Column<DateTime>(type: "datetime2", nullable: true, comment: "生命周期最后更改日期"),
  309. F_TJZLZHGGR_Name = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "体积重量最后更改人"),
  310. F_SMZQZHGGR_Name = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "生命周期最后更改人"),
  311. F_GSZHGGR_Name = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "工时最后更改人"),
  312. F_ZJZB_Name = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "整机质保(月)"),
  313. F_SFJLPCH = table.Column<string>(type: "nvarchar(1)", maxLength: 1, nullable: true, comment: "是否记录批次号"),
  314. F_YWLX = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "业务类型"),
  315. F_CPPLLB = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "产品披露类别"),
  316. F_YZSG = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: true, comment: "已终审过"),
  317. F_WLSQR_Name = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "物料申请人"),
  318. F_CPX_Name = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "产品线"),
  319. F_CPFL_Name = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "产品分类"),
  320. F_SMZQ = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "料号生命周期"),
  321. F_YXSL = table.Column<string>(type: "nvarchar(1)", maxLength: 1, nullable: true, comment: "允许收料"),
  322. F_XSXH_2052 = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: true, comment: "SAJ型号"),
  323. F_HLBZL = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "回料包装量"),
  324. F_BZGG = table.Column<string>(type: "nvarchar(255)", maxLength: 255, nullable: true, comment: "包装规格"),
  325. F_GYS = table.Column<string>(type: "nvarchar(255)", maxLength: 255, nullable: true, comment: "供应商"),
  326. F_JCYY = table.Column<string>(type: "nvarchar(255)", maxLength: 255, nullable: true, comment: "禁采原因"),
  327. F_YXQG = table.Column<string>(type: "nvarchar(1)", maxLength: 1, nullable: true, comment: "允许请购")
  328. },
  329. constraints: table =>
  330. {
  331. table.PrimaryKey("PK_in_kd_material", x => x.Id);
  332. },
  333. comment: "物料");
  334. }
  335. protected override void Down(MigrationBuilder migrationBuilder)
  336. {
  337. migrationBuilder.DropTable(
  338. name: "in_kd_bom");
  339. migrationBuilder.DropTable(
  340. name: "in_kd_material");
  341. }
  342. }
  343. }