BusinessBangMigrationDbContextModelSnapshot.cs 49 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262
  1. // <auto-generated />
  2. using System;
  3. using Business.EntityFrameworkCore;
  4. using Microsoft.EntityFrameworkCore;
  5. using Microsoft.EntityFrameworkCore.Infrastructure;
  6. using Microsoft.EntityFrameworkCore.Metadata;
  7. using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
  8. using Volo.Abp.EntityFrameworkCore;
  9. #nullable disable
  10. namespace Business.Migrations.BusinessBangMigrationDb
  11. {
  12. [DbContext(typeof(BusinessBangMigrationDbContext))]
  13. partial class BusinessBangMigrationDbContextModelSnapshot : ModelSnapshot
  14. {
  15. protected override void BuildModel(ModelBuilder modelBuilder)
  16. {
  17. #pragma warning disable 612, 618
  18. modelBuilder
  19. .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer)
  20. .HasAnnotation("ProductVersion", "6.0.5")
  21. .HasAnnotation("Relational:MaxIdentifierLength", 128);
  22. SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1);
  23. modelBuilder.Entity("Business.Model.Bang.b_bom_child_examine", b =>
  24. {
  25. b.Property<long>("Id")
  26. .HasColumnType("bigint");
  27. b.Property<bool>("IsDeleted")
  28. .ValueGeneratedOnAdd()
  29. .HasColumnType("bit")
  30. .HasDefaultValue(false)
  31. .HasColumnName("IsDeleted")
  32. .HasComment("删除标识");
  33. b.Property<int?>("backflush")
  34. .HasColumnType("int")
  35. .HasComment("是否倒冲");
  36. b.Property<long?>("bom_child_id")
  37. .HasColumnType("bigint")
  38. .HasComment("bom明细主键");
  39. b.Property<long?>("bom_id")
  40. .HasColumnType("bigint")
  41. .HasComment("BOMid");
  42. b.Property<string>("bom_number")
  43. .HasMaxLength(20)
  44. .HasColumnType("nvarchar(20)")
  45. .HasComment("bom编号");
  46. b.Property<long?>("create_by")
  47. .HasColumnType("bigint")
  48. .HasComment("创建人id");
  49. b.Property<string>("create_by_name")
  50. .HasMaxLength(50)
  51. .HasColumnType("nvarchar(50)")
  52. .HasComment("创建人名称");
  53. b.Property<DateTime?>("create_time")
  54. .HasColumnType("datetime2")
  55. .HasComment("创建时间");
  56. b.Property<int?>("erp_cls")
  57. .HasColumnType("int")
  58. .HasComment("物料属性");
  59. b.Property<string>("erp_cls_name")
  60. .HasMaxLength(80)
  61. .HasColumnType("nvarchar(80)")
  62. .HasComment("物料属性名称");
  63. b.Property<long?>("examine_id")
  64. .HasColumnType("bigint")
  65. .HasComment("资源检查ID");
  66. b.Property<long?>("factory_id")
  67. .HasColumnType("bigint")
  68. .HasComment("工厂ID");
  69. b.Property<long>("fid")
  70. .HasColumnType("bigint")
  71. .HasComment("本级id");
  72. b.Property<int?>("haveicsubs")
  73. .HasColumnType("int")
  74. .HasComment("存在替代关系");
  75. b.Property<bool>("is_use")
  76. .HasColumnType("bit")
  77. .HasComment("是否使用此物料");
  78. b.Property<int?>("isbom")
  79. .HasColumnType("int")
  80. .HasComment("是否BOM");
  81. b.Property<long?>("item_id")
  82. .HasColumnType("bigint")
  83. .HasComment("物料id");
  84. b.Property<string>("item_name")
  85. .HasMaxLength(200)
  86. .HasColumnType("nvarchar(200)")
  87. .HasComment("物料名称");
  88. b.Property<string>("item_number")
  89. .HasMaxLength(80)
  90. .HasColumnType("nvarchar(80)")
  91. .HasComment("物料编号");
  92. b.Property<DateTime?>("kitting_time")
  93. .HasColumnType("datetime2")
  94. .HasComment("齐套时间");
  95. b.Property<decimal?>("lack_qty")
  96. .HasPrecision(23, 10)
  97. .HasColumnType("decimal(23,10)")
  98. .HasComment("缺料数量");
  99. b.Property<int?>("level")
  100. .HasColumnType("int")
  101. .HasComment("level");
  102. b.Property<decimal?>("make_qty")
  103. .HasPrecision(23, 10)
  104. .HasColumnType("decimal(23,10)")
  105. .HasComment("自制数量");
  106. b.Property<decimal?>("mo_qty")
  107. .HasPrecision(23, 10)
  108. .HasColumnType("decimal(23,10)")
  109. .HasComment("在制占用数量");
  110. b.Property<string>("model")
  111. .HasMaxLength(200)
  112. .HasColumnType("nvarchar(200)")
  113. .HasComment("规格型号");
  114. b.Property<decimal?>("needCount")
  115. .HasPrecision(23, 10)
  116. .HasColumnType("decimal(23,10)")
  117. .HasComment("单个产品总需要用量");
  118. b.Property<string>("num")
  119. .HasMaxLength(50)
  120. .HasColumnType("nvarchar(50)")
  121. .HasComment("项次号");
  122. b.Property<long?>("num_order")
  123. .HasColumnType("bigint")
  124. .HasComment("排序使用");
  125. b.Property<long?>("org_id")
  126. .HasColumnType("bigint")
  127. .HasComment("组织ID");
  128. b.Property<long?>("parent_id")
  129. .HasColumnType("bigint")
  130. .HasComment("父级id");
  131. b.Property<decimal?>("purchase_occupy_qty")
  132. .HasPrecision(23, 10)
  133. .HasColumnType("decimal(23,10)")
  134. .HasComment("采购明细占用数量");
  135. b.Property<decimal?>("purchase_qty")
  136. .HasPrecision(23, 10)
  137. .HasColumnType("decimal(23,10)")
  138. .HasComment("采购数量");
  139. b.Property<decimal?>("qty")
  140. .HasPrecision(23, 10)
  141. .HasColumnType("decimal(23,10)")
  142. .HasComment("单位用量");
  143. b.Property<DateTime?>("satisfy_time")
  144. .HasColumnType("datetime2")
  145. .HasComment("满足时间");
  146. b.Property<decimal?>("self_lack_qty")
  147. .HasPrecision(23, 10)
  148. .HasColumnType("decimal(23,10)")
  149. .HasComment("本级缺料数量");
  150. b.Property<long?>("sentry_id")
  151. .HasColumnType("bigint")
  152. .HasComment("订单行ID");
  153. b.Property<decimal?>("sqty")
  154. .HasPrecision(23, 10)
  155. .HasColumnType("decimal(23,10)")
  156. .HasComment("库存数量");
  157. b.Property<int?>("stock_state")
  158. .HasColumnType("int")
  159. .HasComment("物料状态");
  160. b.Property<decimal?>("subcontracting_qty")
  161. .HasPrecision(23, 10)
  162. .HasColumnType("decimal(23,10)")
  163. .HasComment("委外数量");
  164. b.Property<int?>("substitute_all_num")
  165. .HasColumnType("int")
  166. .HasComment("群组优先级");
  167. b.Property<string>("substitute_code")
  168. .HasMaxLength(20)
  169. .HasColumnType("nvarchar(20)")
  170. .HasComment("群组代码");
  171. b.Property<int?>("substitute_mode")
  172. .HasColumnType("int")
  173. .HasComment("替代方式");
  174. b.Property<int?>("substitute_strategy")
  175. .HasColumnType("int")
  176. .HasComment("替代策略");
  177. b.Property<long>("tenant_id")
  178. .HasColumnType("bigint")
  179. .HasComment("企业ID");
  180. b.Property<int?>("type")
  181. .HasColumnType("int")
  182. .HasComment("类型");
  183. b.Property<string>("unit")
  184. .HasMaxLength(80)
  185. .HasColumnType("nvarchar(80)")
  186. .HasComment("单位");
  187. b.Property<long?>("update_by")
  188. .HasColumnType("bigint")
  189. .HasComment("修改人");
  190. b.Property<string>("update_by_name")
  191. .HasMaxLength(50)
  192. .HasColumnType("nvarchar(50)")
  193. .HasComment("修改人名称");
  194. b.Property<DateTime?>("update_time")
  195. .HasColumnType("datetime2")
  196. .HasComment("修改时间");
  197. b.Property<decimal?>("use_qty")
  198. .HasPrecision(23, 10)
  199. .HasColumnType("decimal(23,10)")
  200. .HasComment("库存占用数量");
  201. b.Property<string>("version")
  202. .HasMaxLength(80)
  203. .HasColumnType("nvarchar(80)")
  204. .HasComment("版本");
  205. b.HasKey("Id");
  206. b.HasIndex("examine_id", "bom_number", "item_number", "tenant_id", "factory_id");
  207. b.ToTable("b_bom_child_examine", (string)null);
  208. b.HasComment("Bom明细检查结果");
  209. });
  210. modelBuilder.Entity("Business.Model.Bang.b_day_bulletin_board", b =>
  211. {
  212. b.Property<long>("Id")
  213. .HasColumnType("bigint");
  214. b.Property<bool>("IsDeleted")
  215. .ValueGeneratedOnAdd()
  216. .HasColumnType("bit")
  217. .HasDefaultValue(false)
  218. .HasColumnName("IsDeleted")
  219. .HasComment("删除标识");
  220. b.Property<long?>("create_by")
  221. .HasColumnType("bigint")
  222. .HasComment("创建人id");
  223. b.Property<string>("create_by_name")
  224. .HasMaxLength(50)
  225. .HasColumnType("nvarchar(50)")
  226. .HasComment("创建人名称");
  227. b.Property<DateTime?>("create_time")
  228. .HasColumnType("datetime2")
  229. .HasComment("创建时间");
  230. b.Property<string>("day")
  231. .HasColumnType("nvarchar(max)")
  232. .HasComment("日期");
  233. b.Property<long?>("factory_id")
  234. .HasColumnType("bigint")
  235. .HasComment("工厂ID");
  236. b.Property<string>("item_name")
  237. .HasColumnType("nvarchar(max)")
  238. .HasComment("物料名称");
  239. b.Property<string>("item_number")
  240. .HasColumnType("nvarchar(450)")
  241. .HasComment("物料编码");
  242. b.Property<decimal?>("make_qty")
  243. .HasPrecision(23, 10)
  244. .HasColumnType("decimal(23,10)")
  245. .HasComment("自制数量");
  246. b.Property<decimal?>("mo_qty")
  247. .HasPrecision(23, 10)
  248. .HasColumnType("decimal(23,10)")
  249. .HasComment("在制占用数量");
  250. b.Property<long?>("org_id")
  251. .HasColumnType("bigint")
  252. .HasComment("组织ID");
  253. b.Property<decimal?>("purchase_occupy_qty")
  254. .HasPrecision(23, 10)
  255. .HasColumnType("decimal(23,10)")
  256. .HasComment("采购占用数量");
  257. b.Property<decimal?>("self_lack_qty")
  258. .HasPrecision(23, 10)
  259. .HasColumnType("decimal(23,10)")
  260. .HasComment("缺料数量");
  261. b.Property<long>("tenant_id")
  262. .HasColumnType("bigint")
  263. .HasComment("企业ID");
  264. b.Property<int?>("type")
  265. .HasColumnType("int")
  266. .HasComment("类别");
  267. b.Property<long?>("update_by")
  268. .HasColumnType("bigint")
  269. .HasComment("修改人");
  270. b.Property<string>("update_by_name")
  271. .HasMaxLength(50)
  272. .HasColumnType("nvarchar(50)")
  273. .HasComment("修改人名称");
  274. b.Property<DateTime?>("update_time")
  275. .HasColumnType("datetime2")
  276. .HasComment("修改时间");
  277. b.Property<decimal?>("use_qty")
  278. .HasPrecision(23, 10)
  279. .HasColumnType("decimal(23,10)")
  280. .HasComment("库存占用数量");
  281. b.HasKey("Id");
  282. b.HasIndex("item_number", "tenant_id", "factory_id");
  283. b.ToTable("b_day_bulletin_board", (string)null);
  284. b.HasComment("物料齐套明细");
  285. });
  286. modelBuilder.Entity("Business.Model.Bang.b_examine_result", b =>
  287. {
  288. b.Property<long>("Id")
  289. .HasColumnType("bigint");
  290. b.Property<bool>("IsDeleted")
  291. .ValueGeneratedOnAdd()
  292. .HasColumnType("bit")
  293. .HasDefaultValue(false)
  294. .HasColumnName("IsDeleted")
  295. .HasComment("删除标识");
  296. b.Property<long?>("bangid")
  297. .HasColumnType("bigint")
  298. .HasComment("计算id");
  299. b.Property<string>("bill_no")
  300. .HasMaxLength(50)
  301. .HasColumnType("nvarchar(50)")
  302. .HasComment("订单编号");
  303. b.Property<string>("bom_number")
  304. .HasMaxLength(20)
  305. .HasColumnType("nvarchar(20)")
  306. .HasComment("BOM编码");
  307. b.Property<long?>("create_by")
  308. .HasColumnType("bigint")
  309. .HasComment("创建人id");
  310. b.Property<string>("create_by_name")
  311. .HasMaxLength(50)
  312. .HasColumnType("nvarchar(50)")
  313. .HasComment("创建人名称");
  314. b.Property<DateTime?>("create_time")
  315. .HasColumnType("datetime2")
  316. .HasComment("创建时间");
  317. b.Property<DateTime?>("earliest_times")
  318. .HasColumnType("datetime2")
  319. .HasComment("最早开工时间");
  320. b.Property<int?>("entry_seq")
  321. .HasColumnType("int")
  322. .HasComment("行号");
  323. b.Property<long?>("factory_id")
  324. .HasColumnType("bigint")
  325. .HasComment("工厂ID");
  326. b.Property<DateTime?>("kitting_times")
  327. .HasColumnType("datetime2")
  328. .HasComment("物料齐套时间");
  329. b.Property<DateTime?>("latest_times")
  330. .HasColumnType("datetime2")
  331. .HasComment("最晚开工时间");
  332. b.Property<long?>("morder_id")
  333. .HasColumnType("bigint")
  334. .HasComment("工单id");
  335. b.Property<string>("morder_no")
  336. .HasMaxLength(50)
  337. .HasColumnType("nvarchar(50)")
  338. .HasComment("工单号");
  339. b.Property<decimal?>("need_qty")
  340. .HasPrecision(23, 10)
  341. .HasColumnType("decimal(23,10)")
  342. .HasComment("需要数量");
  343. b.Property<DateTime?>("need_time")
  344. .HasColumnType("datetime2")
  345. .HasComment("需求日期");
  346. b.Property<DateTime?>("order_statr_time")
  347. .HasColumnType("datetime2")
  348. .HasComment("工单开工时间");
  349. b.Property<long?>("org_id")
  350. .HasColumnType("bigint")
  351. .HasComment("组织ID");
  352. b.Property<long?>("sentry_id")
  353. .HasColumnType("bigint")
  354. .HasComment("订单行id");
  355. b.Property<long?>("sorderid")
  356. .HasColumnType("bigint")
  357. .HasComment("订单id");
  358. b.Property<DateTime?>("sys_capacity_date")
  359. .HasColumnType("datetime2")
  360. .HasComment("建议交期(产能)");
  361. b.Property<DateTime?>("sys_material_date")
  362. .HasColumnType("datetime2")
  363. .HasComment("建议交期(物料)");
  364. b.Property<long>("tenant_id")
  365. .HasColumnType("bigint")
  366. .HasComment("企业ID");
  367. b.Property<long?>("update_by")
  368. .HasColumnType("bigint")
  369. .HasComment("修改人");
  370. b.Property<string>("update_by_name")
  371. .HasMaxLength(50)
  372. .HasColumnType("nvarchar(50)")
  373. .HasComment("修改人名称");
  374. b.Property<DateTime?>("update_time")
  375. .HasColumnType("datetime2")
  376. .HasComment("修改时间");
  377. b.HasKey("Id");
  378. b.HasIndex("bill_no", "bom_number", "tenant_id", "factory_id");
  379. b.ToTable("b_examine_result", (string)null);
  380. b.HasComment("资源检查");
  381. });
  382. modelBuilder.Entity("Business.Model.Bang.b_mo_occupy", b =>
  383. {
  384. b.Property<long>("Id")
  385. .HasColumnType("bigint");
  386. b.Property<bool>("IsDeleted")
  387. .ValueGeneratedOnAdd()
  388. .HasColumnType("bit")
  389. .HasDefaultValue(false)
  390. .HasColumnName("IsDeleted")
  391. .HasComment("删除标识");
  392. b.Property<long?>("bom_child_examine_id")
  393. .HasColumnType("bigint")
  394. .HasComment("物料检查明细ID");
  395. b.Property<long?>("create_by")
  396. .HasColumnType("bigint")
  397. .HasComment("创建人id");
  398. b.Property<string>("create_by_name")
  399. .HasMaxLength(50)
  400. .HasColumnType("nvarchar(50)")
  401. .HasComment("创建人名称");
  402. b.Property<DateTime?>("create_time")
  403. .HasColumnType("datetime2")
  404. .HasComment("创建时间");
  405. b.Property<long?>("factory_id")
  406. .HasColumnType("bigint")
  407. .HasComment("工厂ID");
  408. b.Property<DateTime?>("moo_etime")
  409. .HasColumnType("datetime2")
  410. .HasComment("结束时间");
  411. b.Property<string>("moo_mo")
  412. .HasMaxLength(50)
  413. .HasColumnType("nvarchar(50)")
  414. .HasComment("工单号");
  415. b.Property<decimal?>("moo_qty")
  416. .HasPrecision(23, 10)
  417. .HasColumnType("decimal(23,10)")
  418. .HasComment("占用量");
  419. b.Property<DateTime?>("moo_stime")
  420. .HasColumnType("datetime2")
  421. .HasComment("开始时间");
  422. b.Property<long?>("org_id")
  423. .HasColumnType("bigint")
  424. .HasComment("组织ID");
  425. b.Property<long>("tenant_id")
  426. .HasColumnType("bigint")
  427. .HasComment("企业ID");
  428. b.Property<long?>("update_by")
  429. .HasColumnType("bigint")
  430. .HasComment("修改人");
  431. b.Property<string>("update_by_name")
  432. .HasMaxLength(50)
  433. .HasColumnType("nvarchar(50)")
  434. .HasComment("修改人名称");
  435. b.Property<DateTime?>("update_time")
  436. .HasColumnType("datetime2")
  437. .HasComment("修改时间");
  438. b.HasKey("Id");
  439. b.HasIndex("bom_child_examine_id", "tenant_id", "factory_id");
  440. b.ToTable("b_mo_occupy", (string)null);
  441. b.HasComment("在制占用明细");
  442. });
  443. modelBuilder.Entity("Business.Model.Bang.b_mo_order", b =>
  444. {
  445. b.Property<long>("Id")
  446. .HasColumnType("bigint");
  447. b.Property<bool>("IsDeleted")
  448. .ValueGeneratedOnAdd()
  449. .HasColumnType("bit")
  450. .HasDefaultValue(false)
  451. .HasColumnName("IsDeleted")
  452. .HasComment("删除标识");
  453. b.Property<long?>("bom_child_examine_id")
  454. .HasColumnType("bigint")
  455. .HasComment("物料检查明细ID");
  456. b.Property<long?>("create_by")
  457. .HasColumnType("bigint")
  458. .HasComment("创建人id");
  459. b.Property<string>("create_by_name")
  460. .HasMaxLength(50)
  461. .HasColumnType("nvarchar(50)")
  462. .HasComment("创建人名称");
  463. b.Property<DateTime?>("create_time")
  464. .HasColumnType("datetime2")
  465. .HasComment("创建时间");
  466. b.Property<long?>("factory_id")
  467. .HasColumnType("bigint")
  468. .HasComment("工厂ID");
  469. b.Property<DateTime?>("moentry_etime")
  470. .HasColumnType("datetime2")
  471. .HasComment("生产工单结束日期");
  472. b.Property<string>("moentry_prdname")
  473. .HasMaxLength(50)
  474. .HasColumnType("nvarchar(50)")
  475. .HasComment("生产组织名称");
  476. b.Property<DateTime?>("moentry_stime")
  477. .HasColumnType("datetime2")
  478. .HasComment("生产工单开始日期");
  479. b.Property<DateTime?>("moentry_sys_etime")
  480. .HasColumnType("datetime2")
  481. .HasComment("系统建议完工时间");
  482. b.Property<DateTime?>("moentry_sys_stime")
  483. .HasColumnType("datetime2")
  484. .HasComment("系统建议开工时间");
  485. b.Property<string>("moentry_wrkcname")
  486. .HasMaxLength(50)
  487. .HasColumnType("nvarchar(50)")
  488. .HasComment("工作中心名称");
  489. b.Property<decimal?>("morder_need_time")
  490. .HasPrecision(23, 10)
  491. .HasColumnType("decimal(23,10)")
  492. .HasComment("工单所需工时");
  493. b.Property<string>("morder_no")
  494. .HasMaxLength(50)
  495. .HasColumnType("nvarchar(50)")
  496. .HasComment("生产工单编号");
  497. b.Property<decimal?>("morder_production_number")
  498. .HasPrecision(23, 10)
  499. .HasColumnType("decimal(23,10)")
  500. .HasComment("工单生产数量");
  501. b.Property<decimal?>("need_number")
  502. .HasPrecision(23, 10)
  503. .HasColumnType("decimal(23,10)")
  504. .HasComment("需求数量");
  505. b.Property<long?>("org_id")
  506. .HasColumnType("bigint")
  507. .HasComment("组织ID");
  508. b.Property<DateTime?>("reality_end_time")
  509. .HasColumnType("datetime2")
  510. .HasComment("实际结束时间");
  511. b.Property<DateTime?>("reality_start_time")
  512. .HasColumnType("datetime2")
  513. .HasComment("实际开始时间");
  514. b.Property<long>("tenant_id")
  515. .HasColumnType("bigint")
  516. .HasComment("企业ID");
  517. b.Property<long?>("update_by")
  518. .HasColumnType("bigint")
  519. .HasComment("修改人");
  520. b.Property<string>("update_by_name")
  521. .HasMaxLength(50)
  522. .HasColumnType("nvarchar(50)")
  523. .HasComment("修改人名称");
  524. b.Property<DateTime?>("update_time")
  525. .HasColumnType("datetime2")
  526. .HasComment("修改时间");
  527. b.HasKey("Id");
  528. b.HasIndex("bom_child_examine_id", "tenant_id", "factory_id");
  529. b.ToTable("b_mo_order", (string)null);
  530. b.HasComment("生产工单明细");
  531. });
  532. modelBuilder.Entity("Business.Model.Bang.b_ooder", b =>
  533. {
  534. b.Property<long>("Id")
  535. .HasColumnType("bigint");
  536. b.Property<bool>("IsDeleted")
  537. .ValueGeneratedOnAdd()
  538. .HasColumnType("bit")
  539. .HasDefaultValue(false)
  540. .HasColumnName("IsDeleted")
  541. .HasComment("删除标识");
  542. b.Property<long?>("bom_child_examine_id")
  543. .HasColumnType("bigint")
  544. .HasComment("物料检查明细ID");
  545. b.Property<long?>("create_by")
  546. .HasColumnType("bigint")
  547. .HasComment("创建人id");
  548. b.Property<string>("create_by_name")
  549. .HasMaxLength(50)
  550. .HasColumnType("nvarchar(50)")
  551. .HasComment("创建人名称");
  552. b.Property<DateTime?>("create_time")
  553. .HasColumnType("datetime2")
  554. .HasComment("创建时间");
  555. b.Property<long?>("factory_id")
  556. .HasColumnType("bigint")
  557. .HasComment("工厂ID");
  558. b.Property<decimal?>("morder_production_number")
  559. .HasPrecision(23, 10)
  560. .HasColumnType("decimal(23,10)")
  561. .HasComment("工单生产数量");
  562. b.Property<DateTime?>("ooentry_etime")
  563. .HasColumnType("datetime2")
  564. .HasComment("计划完工日期");
  565. b.Property<string>("ooentry_prdname")
  566. .HasMaxLength(50)
  567. .HasColumnType("nvarchar(50)")
  568. .HasComment("生产组织名称");
  569. b.Property<DateTime?>("ooentry_stime")
  570. .HasColumnType("datetime2")
  571. .HasComment("计划开工日期");
  572. b.Property<DateTime?>("oorder_date")
  573. .HasColumnType("datetime2")
  574. .HasComment("委外订单日期");
  575. b.Property<string>("oorder_no")
  576. .HasMaxLength(50)
  577. .HasColumnType("nvarchar(50)")
  578. .HasComment("工单编号");
  579. b.Property<long?>("org_id")
  580. .HasColumnType("bigint")
  581. .HasComment("组织ID");
  582. b.Property<string>("production_unit")
  583. .HasMaxLength(100)
  584. .HasColumnType("nvarchar(100)")
  585. .HasComment("加工单位");
  586. b.Property<string>("production_unit_code")
  587. .HasMaxLength(20)
  588. .HasColumnType("nvarchar(20)")
  589. .HasComment("加工单位编码");
  590. b.Property<long>("tenant_id")
  591. .HasColumnType("bigint")
  592. .HasComment("企业ID");
  593. b.Property<long?>("update_by")
  594. .HasColumnType("bigint")
  595. .HasComment("修改人");
  596. b.Property<string>("update_by_name")
  597. .HasMaxLength(50)
  598. .HasColumnType("nvarchar(50)")
  599. .HasComment("修改人名称");
  600. b.Property<DateTime?>("update_time")
  601. .HasColumnType("datetime2")
  602. .HasComment("修改时间");
  603. b.HasKey("Id");
  604. b.HasIndex("bom_child_examine_id", "tenant_id", "factory_id");
  605. b.ToTable("b_ooder", (string)null);
  606. b.HasComment("采购占用明细");
  607. });
  608. modelBuilder.Entity("Business.Model.Bang.b_order_detail", b =>
  609. {
  610. b.Property<long>("Id")
  611. .HasColumnType("bigint");
  612. b.Property<bool>("IsDeleted")
  613. .ValueGeneratedOnAdd()
  614. .HasColumnType("bit")
  615. .HasDefaultValue(false)
  616. .HasColumnName("IsDeleted")
  617. .HasComment("删除标识");
  618. b.Property<string>("bom_number")
  619. .HasColumnType("nvarchar(450)")
  620. .HasComment("bom编号");
  621. b.Property<long?>("create_by")
  622. .HasColumnType("bigint")
  623. .HasComment("创建人id");
  624. b.Property<string>("create_by_name")
  625. .HasMaxLength(50)
  626. .HasColumnType("nvarchar(50)")
  627. .HasComment("创建人名称");
  628. b.Property<DateTime?>("create_time")
  629. .HasColumnType("datetime2")
  630. .HasComment("创建时间");
  631. b.Property<long?>("factory_id")
  632. .HasColumnType("bigint")
  633. .HasComment("工厂ID");
  634. b.Property<long>("fid")
  635. .HasColumnType("bigint")
  636. .HasComment("本级id");
  637. b.Property<bool?>("is_use")
  638. .HasColumnType("bit")
  639. .HasComment("是否使用此物料");
  640. b.Property<long?>("item_id")
  641. .HasColumnType("bigint")
  642. .HasComment("物料id");
  643. b.Property<string>("item_name")
  644. .HasColumnType("nvarchar(max)")
  645. .HasComment("物料名称");
  646. b.Property<string>("item_number")
  647. .HasColumnType("nvarchar(450)")
  648. .HasComment("物料编号");
  649. b.Property<DateTime?>("kitting_time")
  650. .HasColumnType("datetime2")
  651. .HasComment("齐套时间");
  652. b.Property<decimal?>("make_qty")
  653. .HasPrecision(23, 10)
  654. .HasColumnType("decimal(23,10)")
  655. .HasComment("自制数量");
  656. b.Property<decimal?>("mo_qty")
  657. .HasPrecision(23, 10)
  658. .HasColumnType("decimal(23,10)")
  659. .HasComment("在制占用数量");
  660. b.Property<string>("num")
  661. .HasMaxLength(50)
  662. .HasColumnType("nvarchar(50)")
  663. .HasComment("项次号");
  664. b.Property<long?>("num_order")
  665. .HasColumnType("bigint")
  666. .HasComment("排序使用");
  667. b.Property<long?>("order_examine_id")
  668. .HasColumnType("bigint")
  669. .HasComment("工单齐套检查id");
  670. b.Property<long?>("org_id")
  671. .HasColumnType("bigint")
  672. .HasComment("组织ID");
  673. b.Property<long?>("parent_id")
  674. .HasColumnType("bigint")
  675. .HasComment("父级");
  676. b.Property<decimal?>("purchase_occupy_qty")
  677. .HasPrecision(23, 10)
  678. .HasColumnType("decimal(23,10)")
  679. .HasComment("采购明细占用数量");
  680. b.Property<decimal?>("purchase_qty")
  681. .HasPrecision(23, 10)
  682. .HasColumnType("decimal(23,10)")
  683. .HasComment("采购数量");
  684. b.Property<decimal?>("qty")
  685. .HasPrecision(23, 10)
  686. .HasColumnType("decimal(23,10)")
  687. .HasComment("用量");
  688. b.Property<decimal?>("self_lack_qty")
  689. .HasPrecision(23, 10)
  690. .HasColumnType("decimal(23,10)")
  691. .HasComment("本级缺料数量");
  692. b.Property<decimal?>("sqty")
  693. .HasPrecision(23, 10)
  694. .HasColumnType("decimal(23,10)")
  695. .HasComment("库存数量");
  696. b.Property<decimal?>("subcontracting_qty")
  697. .HasPrecision(23, 10)
  698. .HasColumnType("decimal(23,10)")
  699. .HasComment("委外数量");
  700. b.Property<string>("substitute_code")
  701. .HasColumnType("nvarchar(max)")
  702. .HasComment("群组代码");
  703. b.Property<int?>("substitute_mode")
  704. .HasColumnType("int")
  705. .HasComment("替代方式");
  706. b.Property<int?>("substitute_strategy")
  707. .HasColumnType("int")
  708. .HasComment("替代策略");
  709. b.Property<long>("tenant_id")
  710. .HasColumnType("bigint")
  711. .HasComment("企业ID");
  712. b.Property<long?>("update_by")
  713. .HasColumnType("bigint")
  714. .HasComment("修改人");
  715. b.Property<string>("update_by_name")
  716. .HasMaxLength(50)
  717. .HasColumnType("nvarchar(50)")
  718. .HasComment("修改人名称");
  719. b.Property<DateTime?>("update_time")
  720. .HasColumnType("datetime2")
  721. .HasComment("修改时间");
  722. b.Property<decimal?>("use_qty")
  723. .HasPrecision(23, 10)
  724. .HasColumnType("decimal(23,10)")
  725. .HasComment("库存占用数量");
  726. b.HasKey("Id");
  727. b.HasIndex("order_examine_id", "bom_number", "item_number", "tenant_id", "factory_id");
  728. b.ToTable("b_order_detail", (string)null);
  729. b.HasComment("物料齐套明细");
  730. });
  731. modelBuilder.Entity("Business.Model.Bang.b_order_examine_result", b =>
  732. {
  733. b.Property<long>("Id")
  734. .HasColumnType("bigint");
  735. b.Property<bool>("IsDeleted")
  736. .ValueGeneratedOnAdd()
  737. .HasColumnType("bit")
  738. .HasDefaultValue(false)
  739. .HasColumnName("IsDeleted")
  740. .HasComment("删除标识");
  741. b.Property<string>("bom_number")
  742. .HasColumnType("nvarchar(450)")
  743. .HasComment("BOM编码");
  744. b.Property<long?>("create_by")
  745. .HasColumnType("bigint")
  746. .HasComment("创建人id");
  747. b.Property<string>("create_by_name")
  748. .HasMaxLength(50)
  749. .HasColumnType("nvarchar(50)")
  750. .HasComment("创建人名称");
  751. b.Property<DateTime?>("create_time")
  752. .HasColumnType("datetime2")
  753. .HasComment("创建时间");
  754. b.Property<long?>("factory_id")
  755. .HasColumnType("bigint")
  756. .HasComment("工厂ID");
  757. b.Property<DateTime?>("ketting_time")
  758. .HasColumnType("datetime2")
  759. .HasComment("齐套日期");
  760. b.Property<decimal?>("need_qty")
  761. .HasPrecision(23, 10)
  762. .HasColumnType("decimal(23,10)")
  763. .HasComment("需要数量");
  764. b.Property<string>("order_no")
  765. .HasMaxLength(50)
  766. .HasColumnType("nvarchar(50)")
  767. .HasComment("生产工单编号");
  768. b.Property<long?>("orderid")
  769. .HasColumnType("bigint")
  770. .HasComment("工单id");
  771. b.Property<long?>("org_id")
  772. .HasColumnType("bigint")
  773. .HasComment("组织ID");
  774. b.Property<long>("tenant_id")
  775. .HasColumnType("bigint")
  776. .HasComment("企业ID");
  777. b.Property<DateTime?>("time")
  778. .HasColumnType("datetime2")
  779. .HasComment("开工日期");
  780. b.Property<int?>("type")
  781. .HasColumnType("int")
  782. .HasComment("类别");
  783. b.Property<long?>("update_by")
  784. .HasColumnType("bigint")
  785. .HasComment("修改人");
  786. b.Property<string>("update_by_name")
  787. .HasMaxLength(50)
  788. .HasColumnType("nvarchar(50)")
  789. .HasComment("修改人名称");
  790. b.Property<DateTime?>("update_time")
  791. .HasColumnType("datetime2")
  792. .HasComment("修改时间");
  793. b.HasKey("Id");
  794. b.HasIndex("bom_number", "order_no", "tenant_id", "factory_id");
  795. b.ToTable("b_order_examine_result", (string)null);
  796. b.HasComment("工单齐套检查");
  797. });
  798. modelBuilder.Entity("Business.Model.Bang.b_purchase", b =>
  799. {
  800. b.Property<long>("Id")
  801. .HasColumnType("bigint");
  802. b.Property<bool>("IsDeleted")
  803. .ValueGeneratedOnAdd()
  804. .HasColumnType("bit")
  805. .HasDefaultValue(false)
  806. .HasColumnName("IsDeleted")
  807. .HasComment("删除标识");
  808. b.Property<long?>("bom_child_examine_id")
  809. .HasColumnType("bigint")
  810. .HasComment("物料检查明细ID");
  811. b.Property<long?>("create_by")
  812. .HasColumnType("bigint")
  813. .HasComment("创建人id");
  814. b.Property<string>("create_by_name")
  815. .HasMaxLength(50)
  816. .HasColumnType("nvarchar(50)")
  817. .HasComment("创建人名称");
  818. b.Property<DateTime?>("create_time")
  819. .HasColumnType("datetime2")
  820. .HasComment("创建时间");
  821. b.Property<long?>("factory_id")
  822. .HasColumnType("bigint")
  823. .HasComment("工厂ID");
  824. b.Property<bool>("isbestoptions")
  825. .HasColumnType("bit")
  826. .HasComment("最优解");
  827. b.Property<long?>("org_id")
  828. .HasColumnType("bigint")
  829. .HasComment("组织ID");
  830. b.Property<decimal?>("pr_aqty")
  831. .HasPrecision(23, 10)
  832. .HasColumnType("decimal(23,10)")
  833. .HasComment("申请数量");
  834. b.Property<string>("pr_billno")
  835. .HasMaxLength(50)
  836. .HasColumnType("nvarchar(50)")
  837. .HasComment("pr单号");
  838. b.Property<decimal?>("pr_orderprice")
  839. .HasPrecision(23, 10)
  840. .HasColumnType("decimal(23,10)")
  841. .HasComment("订单价格(含税)");
  842. b.Property<DateTime?>("pr_parrive_date")
  843. .HasColumnType("datetime2")
  844. .HasComment("计划到达日期");
  845. b.Property<decimal?>("pr_price")
  846. .HasPrecision(23, 10)
  847. .HasColumnType("decimal(23,10)")
  848. .HasComment("采购净价(不含税)");
  849. b.Property<DateTime?>("pr_pur_affirm_date")
  850. .HasColumnType("datetime2")
  851. .HasComment("采购确认到货日期");
  852. b.Property<string>("pr_purchasename")
  853. .HasMaxLength(80)
  854. .HasColumnType("nvarchar(80)")
  855. .HasComment("供应商名称");
  856. b.Property<string>("pr_purchasenumber")
  857. .HasMaxLength(80)
  858. .HasColumnType("nvarchar(80)")
  859. .HasComment("供应商编码");
  860. b.Property<DateTime?>("pr_rarrive_date")
  861. .HasColumnType("datetime2")
  862. .HasComment("需求到货日期");
  863. b.Property<decimal?>("pr_rate")
  864. .HasPrecision(23, 10)
  865. .HasColumnType("decimal(23,10)")
  866. .HasComment("税率");
  867. b.Property<decimal?>("pr_rqty")
  868. .HasPrecision(23, 10)
  869. .HasColumnType("decimal(23,10)")
  870. .HasComment("需求数量");
  871. b.Property<decimal?>("pr_sqty")
  872. .HasPrecision(23, 10)
  873. .HasColumnType("decimal(23,10)")
  874. .HasComment("建议数量");
  875. b.Property<decimal?>("pr_sysprice")
  876. .HasPrecision(23, 10)
  877. .HasColumnType("decimal(23,10)")
  878. .HasComment("系统价格(含税)");
  879. b.Property<long>("tenant_id")
  880. .HasColumnType("bigint")
  881. .HasComment("企业ID");
  882. b.Property<long?>("update_by")
  883. .HasColumnType("bigint")
  884. .HasComment("修改人");
  885. b.Property<string>("update_by_name")
  886. .HasMaxLength(50)
  887. .HasColumnType("nvarchar(50)")
  888. .HasComment("修改人名称");
  889. b.Property<DateTime?>("update_time")
  890. .HasColumnType("datetime2")
  891. .HasComment("修改时间");
  892. b.HasKey("Id");
  893. b.HasIndex("bom_child_examine_id", "tenant_id", "factory_id");
  894. b.ToTable("b_purchase", (string)null);
  895. b.HasComment("采购明细信息");
  896. });
  897. modelBuilder.Entity("Business.Model.Bang.b_purchase_occupy", b =>
  898. {
  899. b.Property<long>("Id")
  900. .HasColumnType("bigint");
  901. b.Property<bool>("IsDeleted")
  902. .ValueGeneratedOnAdd()
  903. .HasColumnType("bit")
  904. .HasDefaultValue(false)
  905. .HasColumnName("IsDeleted")
  906. .HasComment("删除标识");
  907. b.Property<long?>("bom_child_examine_id")
  908. .HasColumnType("bigint")
  909. .HasComment("物料检查明细ID");
  910. b.Property<long?>("create_by")
  911. .HasColumnType("bigint")
  912. .HasComment("创建人id");
  913. b.Property<string>("create_by_name")
  914. .HasMaxLength(50)
  915. .HasColumnType("nvarchar(50)")
  916. .HasComment("创建人名称");
  917. b.Property<DateTime?>("create_time")
  918. .HasColumnType("datetime2")
  919. .HasComment("创建时间");
  920. b.Property<DateTime?>("etime")
  921. .HasColumnType("datetime2")
  922. .HasComment("结束时间");
  923. b.Property<long?>("factory_id")
  924. .HasColumnType("bigint")
  925. .HasComment("工厂ID");
  926. b.Property<long?>("org_id")
  927. .HasColumnType("bigint")
  928. .HasComment("组织ID");
  929. b.Property<string>("po_billno")
  930. .HasMaxLength(80)
  931. .HasColumnType("nvarchar(80)")
  932. .HasComment("采购订单单号");
  933. b.Property<decimal?>("qty")
  934. .HasPrecision(23, 10)
  935. .HasColumnType("decimal(23,10)")
  936. .HasComment("占用量");
  937. b.Property<DateTime?>("stime")
  938. .HasColumnType("datetime2")
  939. .HasComment("开始时间");
  940. b.Property<long>("tenant_id")
  941. .HasColumnType("bigint")
  942. .HasComment("企业ID");
  943. b.Property<string>("type")
  944. .HasMaxLength(80)
  945. .HasColumnType("nvarchar(80)")
  946. .HasComment("类型");
  947. b.Property<long?>("update_by")
  948. .HasColumnType("bigint")
  949. .HasComment("修改人");
  950. b.Property<string>("update_by_name")
  951. .HasMaxLength(50)
  952. .HasColumnType("nvarchar(50)")
  953. .HasComment("修改人名称");
  954. b.Property<DateTime?>("update_time")
  955. .HasColumnType("datetime2")
  956. .HasComment("修改时间");
  957. b.HasKey("Id");
  958. b.HasIndex("bom_child_examine_id", "tenant_id", "factory_id");
  959. b.ToTable("b_purchase_occupy", (string)null);
  960. b.HasComment("采购占用明细");
  961. });
  962. #pragma warning restore 612, 618
  963. }
  964. }
  965. }