20230323032012_init.cs 57 KB

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