BusinessBangMigrationDbContextModelSnapshot.cs 48 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250
  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("Bussiness.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("Bussiness.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("Bussiness.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<string>("bill_no")
  297. .HasMaxLength(50)
  298. .HasColumnType("nvarchar(50)")
  299. .HasComment("订单编号");
  300. b.Property<string>("bom_number")
  301. .HasMaxLength(20)
  302. .HasColumnType("nvarchar(20)")
  303. .HasComment("BOM编码");
  304. b.Property<long?>("create_by")
  305. .HasColumnType("bigint")
  306. .HasComment("创建人id");
  307. b.Property<string>("create_by_name")
  308. .HasMaxLength(50)
  309. .HasColumnType("nvarchar(50)")
  310. .HasComment("创建人名称");
  311. b.Property<DateTime?>("create_time")
  312. .HasColumnType("datetime2")
  313. .HasComment("创建时间");
  314. b.Property<DateTime?>("earliest_times")
  315. .HasColumnType("datetime2")
  316. .HasComment("最早开工时间");
  317. b.Property<int?>("entry_seq")
  318. .HasColumnType("int")
  319. .HasComment("行号");
  320. b.Property<long?>("factory_id")
  321. .HasColumnType("bigint")
  322. .HasComment("工厂ID");
  323. b.Property<DateTime?>("kitting_times")
  324. .HasColumnType("datetime2")
  325. .HasComment("物料齐套时间");
  326. b.Property<DateTime?>("latest_times")
  327. .HasColumnType("datetime2")
  328. .HasComment("最晚开工时间");
  329. b.Property<long?>("morder_id")
  330. .HasColumnType("bigint")
  331. .HasComment("工单id");
  332. b.Property<string>("morder_no")
  333. .HasMaxLength(50)
  334. .HasColumnType("nvarchar(50)")
  335. .HasComment("工单号");
  336. b.Property<decimal?>("need_qty")
  337. .HasPrecision(23, 10)
  338. .HasColumnType("decimal(23,10)")
  339. .HasComment("需要数量");
  340. b.Property<DateTime?>("need_time")
  341. .HasColumnType("datetime2")
  342. .HasComment("需求日期");
  343. b.Property<DateTime?>("order_statr_time")
  344. .HasColumnType("datetime2")
  345. .HasComment("工单开工时间");
  346. b.Property<long?>("org_id")
  347. .HasColumnType("bigint")
  348. .HasComment("组织ID");
  349. b.Property<long?>("sentry_id")
  350. .HasColumnType("bigint")
  351. .HasComment("订单行id");
  352. b.Property<long?>("sorderid")
  353. .HasColumnType("bigint")
  354. .HasComment("订单id");
  355. b.Property<long>("tenant_id")
  356. .HasColumnType("bigint")
  357. .HasComment("企业ID");
  358. b.Property<long?>("update_by")
  359. .HasColumnType("bigint")
  360. .HasComment("修改人");
  361. b.Property<string>("update_by_name")
  362. .HasMaxLength(50)
  363. .HasColumnType("nvarchar(50)")
  364. .HasComment("修改人名称");
  365. b.Property<DateTime?>("update_time")
  366. .HasColumnType("datetime2")
  367. .HasComment("修改时间");
  368. b.HasKey("Id");
  369. b.HasIndex("bill_no", "bom_number", "tenant_id", "factory_id");
  370. b.ToTable("b_examine_result", (string)null);
  371. b.HasComment("资源检查");
  372. });
  373. modelBuilder.Entity("Bussiness.Model.Bang.b_mo_occupy", b =>
  374. {
  375. b.Property<long>("Id")
  376. .HasColumnType("bigint");
  377. b.Property<bool>("IsDeleted")
  378. .ValueGeneratedOnAdd()
  379. .HasColumnType("bit")
  380. .HasDefaultValue(false)
  381. .HasColumnName("IsDeleted")
  382. .HasComment("删除标识");
  383. b.Property<long?>("bom_child_examine_id")
  384. .HasColumnType("bigint")
  385. .HasComment("物料检查明细ID");
  386. b.Property<long?>("create_by")
  387. .HasColumnType("bigint")
  388. .HasComment("创建人id");
  389. b.Property<string>("create_by_name")
  390. .HasMaxLength(50)
  391. .HasColumnType("nvarchar(50)")
  392. .HasComment("创建人名称");
  393. b.Property<DateTime?>("create_time")
  394. .HasColumnType("datetime2")
  395. .HasComment("创建时间");
  396. b.Property<long?>("factory_id")
  397. .HasColumnType("bigint")
  398. .HasComment("工厂ID");
  399. b.Property<DateTime?>("moo_etime")
  400. .HasColumnType("datetime2")
  401. .HasComment("结束时间");
  402. b.Property<string>("moo_mo")
  403. .HasMaxLength(50)
  404. .HasColumnType("nvarchar(50)")
  405. .HasComment("工单号");
  406. b.Property<decimal?>("moo_qty")
  407. .HasPrecision(23, 10)
  408. .HasColumnType("decimal(23,10)")
  409. .HasComment("占用量");
  410. b.Property<DateTime?>("moo_stime")
  411. .HasColumnType("datetime2")
  412. .HasComment("开始时间");
  413. b.Property<long?>("org_id")
  414. .HasColumnType("bigint")
  415. .HasComment("组织ID");
  416. b.Property<long>("tenant_id")
  417. .HasColumnType("bigint")
  418. .HasComment("企业ID");
  419. b.Property<long?>("update_by")
  420. .HasColumnType("bigint")
  421. .HasComment("修改人");
  422. b.Property<string>("update_by_name")
  423. .HasMaxLength(50)
  424. .HasColumnType("nvarchar(50)")
  425. .HasComment("修改人名称");
  426. b.Property<DateTime?>("update_time")
  427. .HasColumnType("datetime2")
  428. .HasComment("修改时间");
  429. b.HasKey("Id");
  430. b.HasIndex("bom_child_examine_id", "tenant_id", "factory_id");
  431. b.ToTable("b_mo_occupy", (string)null);
  432. b.HasComment("在制占用明细");
  433. });
  434. modelBuilder.Entity("Bussiness.Model.Bang.b_mo_order", b =>
  435. {
  436. b.Property<long>("Id")
  437. .HasColumnType("bigint");
  438. b.Property<bool>("IsDeleted")
  439. .ValueGeneratedOnAdd()
  440. .HasColumnType("bit")
  441. .HasDefaultValue(false)
  442. .HasColumnName("IsDeleted")
  443. .HasComment("删除标识");
  444. b.Property<long?>("bom_child_examine_id")
  445. .HasColumnType("bigint")
  446. .HasComment("物料检查明细ID");
  447. b.Property<long?>("create_by")
  448. .HasColumnType("bigint")
  449. .HasComment("创建人id");
  450. b.Property<string>("create_by_name")
  451. .HasMaxLength(50)
  452. .HasColumnType("nvarchar(50)")
  453. .HasComment("创建人名称");
  454. b.Property<DateTime?>("create_time")
  455. .HasColumnType("datetime2")
  456. .HasComment("创建时间");
  457. b.Property<long?>("factory_id")
  458. .HasColumnType("bigint")
  459. .HasComment("工厂ID");
  460. b.Property<DateTime?>("moentry_etime")
  461. .HasColumnType("datetime2")
  462. .HasComment("生产工单结束日期");
  463. b.Property<string>("moentry_prdname")
  464. .HasMaxLength(50)
  465. .HasColumnType("nvarchar(50)")
  466. .HasComment("生产组织名称");
  467. b.Property<DateTime?>("moentry_stime")
  468. .HasColumnType("datetime2")
  469. .HasComment("生产工单开始日期");
  470. b.Property<DateTime?>("moentry_sys_etime")
  471. .HasColumnType("datetime2")
  472. .HasComment("系统建议完工时间");
  473. b.Property<DateTime?>("moentry_sys_stime")
  474. .HasColumnType("datetime2")
  475. .HasComment("系统建议开工时间");
  476. b.Property<string>("moentry_wrkcname")
  477. .HasMaxLength(50)
  478. .HasColumnType("nvarchar(50)")
  479. .HasComment("工作中心名称");
  480. b.Property<decimal?>("morder_need_time")
  481. .HasPrecision(23, 10)
  482. .HasColumnType("decimal(23,10)")
  483. .HasComment("工单所需工时");
  484. b.Property<string>("morder_no")
  485. .HasMaxLength(50)
  486. .HasColumnType("nvarchar(50)")
  487. .HasComment("生产工单编号");
  488. b.Property<decimal?>("morder_production_number")
  489. .HasPrecision(23, 10)
  490. .HasColumnType("decimal(23,10)")
  491. .HasComment("工单生产数量");
  492. b.Property<decimal?>("need_number")
  493. .HasPrecision(23, 10)
  494. .HasColumnType("decimal(23,10)")
  495. .HasComment("需求数量");
  496. b.Property<long?>("org_id")
  497. .HasColumnType("bigint")
  498. .HasComment("组织ID");
  499. b.Property<DateTime?>("reality_end_time")
  500. .HasColumnType("datetime2")
  501. .HasComment("实际结束时间");
  502. b.Property<DateTime?>("reality_start_time")
  503. .HasColumnType("datetime2")
  504. .HasComment("实际开始时间");
  505. b.Property<long>("tenant_id")
  506. .HasColumnType("bigint")
  507. .HasComment("企业ID");
  508. b.Property<long?>("update_by")
  509. .HasColumnType("bigint")
  510. .HasComment("修改人");
  511. b.Property<string>("update_by_name")
  512. .HasMaxLength(50)
  513. .HasColumnType("nvarchar(50)")
  514. .HasComment("修改人名称");
  515. b.Property<DateTime?>("update_time")
  516. .HasColumnType("datetime2")
  517. .HasComment("修改时间");
  518. b.HasKey("Id");
  519. b.HasIndex("bom_child_examine_id", "tenant_id", "factory_id");
  520. b.ToTable("b_mo_order", (string)null);
  521. b.HasComment("生产工单明细");
  522. });
  523. modelBuilder.Entity("Bussiness.Model.Bang.b_ooder", b =>
  524. {
  525. b.Property<long>("Id")
  526. .HasColumnType("bigint");
  527. b.Property<bool>("IsDeleted")
  528. .ValueGeneratedOnAdd()
  529. .HasColumnType("bit")
  530. .HasDefaultValue(false)
  531. .HasColumnName("IsDeleted")
  532. .HasComment("删除标识");
  533. b.Property<long?>("bom_child_examine_id")
  534. .HasColumnType("bigint")
  535. .HasComment("物料检查明细ID");
  536. b.Property<long?>("create_by")
  537. .HasColumnType("bigint")
  538. .HasComment("创建人id");
  539. b.Property<string>("create_by_name")
  540. .HasMaxLength(50)
  541. .HasColumnType("nvarchar(50)")
  542. .HasComment("创建人名称");
  543. b.Property<DateTime?>("create_time")
  544. .HasColumnType("datetime2")
  545. .HasComment("创建时间");
  546. b.Property<long?>("factory_id")
  547. .HasColumnType("bigint")
  548. .HasComment("工厂ID");
  549. b.Property<decimal?>("morder_production_number")
  550. .HasPrecision(23, 10)
  551. .HasColumnType("decimal(23,10)")
  552. .HasComment("工单生产数量");
  553. b.Property<DateTime?>("ooentry_etime")
  554. .HasColumnType("datetime2")
  555. .HasComment("计划完工日期");
  556. b.Property<string>("ooentry_prdname")
  557. .HasMaxLength(50)
  558. .HasColumnType("nvarchar(50)")
  559. .HasComment("生产组织名称");
  560. b.Property<DateTime?>("ooentry_stime")
  561. .HasColumnType("datetime2")
  562. .HasComment("计划开工日期");
  563. b.Property<DateTime?>("oorder_date")
  564. .HasColumnType("datetime2")
  565. .HasComment("委外订单日期");
  566. b.Property<string>("oorder_no")
  567. .HasMaxLength(50)
  568. .HasColumnType("nvarchar(50)")
  569. .HasComment("工单编号");
  570. b.Property<long?>("org_id")
  571. .HasColumnType("bigint")
  572. .HasComment("组织ID");
  573. b.Property<string>("production_unit")
  574. .HasMaxLength(100)
  575. .HasColumnType("nvarchar(100)")
  576. .HasComment("加工单位");
  577. b.Property<string>("production_unit_code")
  578. .HasMaxLength(20)
  579. .HasColumnType("nvarchar(20)")
  580. .HasComment("加工单位编码");
  581. b.Property<long>("tenant_id")
  582. .HasColumnType("bigint")
  583. .HasComment("企业ID");
  584. b.Property<long?>("update_by")
  585. .HasColumnType("bigint")
  586. .HasComment("修改人");
  587. b.Property<string>("update_by_name")
  588. .HasMaxLength(50)
  589. .HasColumnType("nvarchar(50)")
  590. .HasComment("修改人名称");
  591. b.Property<DateTime?>("update_time")
  592. .HasColumnType("datetime2")
  593. .HasComment("修改时间");
  594. b.HasKey("Id");
  595. b.HasIndex("bom_child_examine_id", "tenant_id", "factory_id");
  596. b.ToTable("b_ooder", (string)null);
  597. b.HasComment("采购占用明细");
  598. });
  599. modelBuilder.Entity("Bussiness.Model.Bang.b_order_detail", b =>
  600. {
  601. b.Property<long>("Id")
  602. .HasColumnType("bigint");
  603. b.Property<bool>("IsDeleted")
  604. .ValueGeneratedOnAdd()
  605. .HasColumnType("bit")
  606. .HasDefaultValue(false)
  607. .HasColumnName("IsDeleted")
  608. .HasComment("删除标识");
  609. b.Property<string>("bom_number")
  610. .HasColumnType("nvarchar(450)")
  611. .HasComment("bom编号");
  612. b.Property<long?>("create_by")
  613. .HasColumnType("bigint")
  614. .HasComment("创建人id");
  615. b.Property<string>("create_by_name")
  616. .HasMaxLength(50)
  617. .HasColumnType("nvarchar(50)")
  618. .HasComment("创建人名称");
  619. b.Property<DateTime?>("create_time")
  620. .HasColumnType("datetime2")
  621. .HasComment("创建时间");
  622. b.Property<long?>("factory_id")
  623. .HasColumnType("bigint")
  624. .HasComment("工厂ID");
  625. b.Property<long>("fid")
  626. .HasColumnType("bigint")
  627. .HasComment("本级id");
  628. b.Property<bool?>("is_use")
  629. .HasColumnType("bit")
  630. .HasComment("是否使用此物料");
  631. b.Property<long?>("item_id")
  632. .HasColumnType("bigint")
  633. .HasComment("物料id");
  634. b.Property<string>("item_name")
  635. .HasColumnType("nvarchar(max)")
  636. .HasComment("物料名称");
  637. b.Property<string>("item_number")
  638. .HasColumnType("nvarchar(450)")
  639. .HasComment("物料编号");
  640. b.Property<DateTime?>("kitting_time")
  641. .HasColumnType("datetime2")
  642. .HasComment("齐套时间");
  643. b.Property<decimal?>("make_qty")
  644. .HasPrecision(23, 10)
  645. .HasColumnType("decimal(23,10)")
  646. .HasComment("自制数量");
  647. b.Property<decimal?>("mo_qty")
  648. .HasPrecision(23, 10)
  649. .HasColumnType("decimal(23,10)")
  650. .HasComment("在制占用数量");
  651. b.Property<string>("num")
  652. .HasMaxLength(50)
  653. .HasColumnType("nvarchar(50)")
  654. .HasComment("项次号");
  655. b.Property<long?>("num_order")
  656. .HasColumnType("bigint")
  657. .HasComment("排序使用");
  658. b.Property<long?>("order_examine_id")
  659. .HasColumnType("bigint")
  660. .HasComment("工单齐套检查id");
  661. b.Property<long?>("org_id")
  662. .HasColumnType("bigint")
  663. .HasComment("组织ID");
  664. b.Property<long?>("parent_id")
  665. .HasColumnType("bigint")
  666. .HasComment("父级");
  667. b.Property<decimal?>("purchase_occupy_qty")
  668. .HasPrecision(23, 10)
  669. .HasColumnType("decimal(23,10)")
  670. .HasComment("采购明细占用数量");
  671. b.Property<decimal?>("purchase_qty")
  672. .HasPrecision(23, 10)
  673. .HasColumnType("decimal(23,10)")
  674. .HasComment("采购数量");
  675. b.Property<decimal?>("qty")
  676. .HasPrecision(23, 10)
  677. .HasColumnType("decimal(23,10)")
  678. .HasComment("用量");
  679. b.Property<decimal?>("self_lack_qty")
  680. .HasPrecision(23, 10)
  681. .HasColumnType("decimal(23,10)")
  682. .HasComment("本级缺料数量");
  683. b.Property<decimal?>("sqty")
  684. .HasPrecision(23, 10)
  685. .HasColumnType("decimal(23,10)")
  686. .HasComment("库存数量");
  687. b.Property<decimal?>("subcontracting_qty")
  688. .HasPrecision(23, 10)
  689. .HasColumnType("decimal(23,10)")
  690. .HasComment("委外数量");
  691. b.Property<string>("substitute_code")
  692. .HasColumnType("nvarchar(max)")
  693. .HasComment("群组代码");
  694. b.Property<int?>("substitute_mode")
  695. .HasColumnType("int")
  696. .HasComment("替代方式");
  697. b.Property<int?>("substitute_strategy")
  698. .HasColumnType("int")
  699. .HasComment("替代策略");
  700. b.Property<long>("tenant_id")
  701. .HasColumnType("bigint")
  702. .HasComment("企业ID");
  703. b.Property<long?>("update_by")
  704. .HasColumnType("bigint")
  705. .HasComment("修改人");
  706. b.Property<string>("update_by_name")
  707. .HasMaxLength(50)
  708. .HasColumnType("nvarchar(50)")
  709. .HasComment("修改人名称");
  710. b.Property<DateTime?>("update_time")
  711. .HasColumnType("datetime2")
  712. .HasComment("修改时间");
  713. b.Property<decimal?>("use_qty")
  714. .HasPrecision(23, 10)
  715. .HasColumnType("decimal(23,10)")
  716. .HasComment("库存占用数量");
  717. b.HasKey("Id");
  718. b.HasIndex("order_examine_id", "bom_number", "item_number", "tenant_id", "factory_id");
  719. b.ToTable("b_order_detail", (string)null);
  720. b.HasComment("物料齐套明细");
  721. });
  722. modelBuilder.Entity("Bussiness.Model.Bang.b_order_examine_result", b =>
  723. {
  724. b.Property<long>("Id")
  725. .HasColumnType("bigint");
  726. b.Property<bool>("IsDeleted")
  727. .ValueGeneratedOnAdd()
  728. .HasColumnType("bit")
  729. .HasDefaultValue(false)
  730. .HasColumnName("IsDeleted")
  731. .HasComment("删除标识");
  732. b.Property<string>("bom_number")
  733. .HasColumnType("nvarchar(450)")
  734. .HasComment("BOM编码");
  735. b.Property<long?>("create_by")
  736. .HasColumnType("bigint")
  737. .HasComment("创建人id");
  738. b.Property<string>("create_by_name")
  739. .HasMaxLength(50)
  740. .HasColumnType("nvarchar(50)")
  741. .HasComment("创建人名称");
  742. b.Property<DateTime?>("create_time")
  743. .HasColumnType("datetime2")
  744. .HasComment("创建时间");
  745. b.Property<long?>("factory_id")
  746. .HasColumnType("bigint")
  747. .HasComment("工厂ID");
  748. b.Property<DateTime?>("ketting_time")
  749. .HasColumnType("datetime2")
  750. .HasComment("齐套日期");
  751. b.Property<decimal?>("need_qty")
  752. .HasPrecision(23, 10)
  753. .HasColumnType("decimal(23,10)")
  754. .HasComment("需要数量");
  755. b.Property<string>("order_no")
  756. .HasMaxLength(50)
  757. .HasColumnType("nvarchar(50)")
  758. .HasComment("生产工单编号");
  759. b.Property<long?>("orderid")
  760. .HasColumnType("bigint")
  761. .HasComment("工单id");
  762. b.Property<long?>("org_id")
  763. .HasColumnType("bigint")
  764. .HasComment("组织ID");
  765. b.Property<long>("tenant_id")
  766. .HasColumnType("bigint")
  767. .HasComment("企业ID");
  768. b.Property<DateTime?>("time")
  769. .HasColumnType("datetime2")
  770. .HasComment("开工日期");
  771. b.Property<int?>("type")
  772. .HasColumnType("int")
  773. .HasComment("类别");
  774. b.Property<long?>("update_by")
  775. .HasColumnType("bigint")
  776. .HasComment("修改人");
  777. b.Property<string>("update_by_name")
  778. .HasMaxLength(50)
  779. .HasColumnType("nvarchar(50)")
  780. .HasComment("修改人名称");
  781. b.Property<DateTime?>("update_time")
  782. .HasColumnType("datetime2")
  783. .HasComment("修改时间");
  784. b.HasKey("Id");
  785. b.HasIndex("bom_number", "order_no", "tenant_id", "factory_id");
  786. b.ToTable("b_order_examine_result", (string)null);
  787. b.HasComment("工单齐套检查");
  788. });
  789. modelBuilder.Entity("Bussiness.Model.Bang.b_purchase", b =>
  790. {
  791. b.Property<long>("Id")
  792. .HasColumnType("bigint");
  793. b.Property<bool>("IsDeleted")
  794. .ValueGeneratedOnAdd()
  795. .HasColumnType("bit")
  796. .HasDefaultValue(false)
  797. .HasColumnName("IsDeleted")
  798. .HasComment("删除标识");
  799. b.Property<long?>("bom_child_examine_id")
  800. .HasColumnType("bigint")
  801. .HasComment("物料检查明细ID");
  802. b.Property<long?>("create_by")
  803. .HasColumnType("bigint")
  804. .HasComment("创建人id");
  805. b.Property<string>("create_by_name")
  806. .HasMaxLength(50)
  807. .HasColumnType("nvarchar(50)")
  808. .HasComment("创建人名称");
  809. b.Property<DateTime?>("create_time")
  810. .HasColumnType("datetime2")
  811. .HasComment("创建时间");
  812. b.Property<long?>("factory_id")
  813. .HasColumnType("bigint")
  814. .HasComment("工厂ID");
  815. b.Property<bool>("isbestoptions")
  816. .HasColumnType("bit")
  817. .HasComment("最优解");
  818. b.Property<long?>("org_id")
  819. .HasColumnType("bigint")
  820. .HasComment("组织ID");
  821. b.Property<decimal?>("pr_aqty")
  822. .HasPrecision(23, 10)
  823. .HasColumnType("decimal(23,10)")
  824. .HasComment("申请数量");
  825. b.Property<string>("pr_billno")
  826. .HasMaxLength(50)
  827. .HasColumnType("nvarchar(50)")
  828. .HasComment("pr单号");
  829. b.Property<decimal?>("pr_orderprice")
  830. .HasPrecision(23, 10)
  831. .HasColumnType("decimal(23,10)")
  832. .HasComment("订单价格(含税)");
  833. b.Property<DateTime?>("pr_parrive_date")
  834. .HasColumnType("datetime2")
  835. .HasComment("计划到达日期");
  836. b.Property<decimal?>("pr_price")
  837. .HasPrecision(23, 10)
  838. .HasColumnType("decimal(23,10)")
  839. .HasComment("采购净价(不含税)");
  840. b.Property<DateTime?>("pr_pur_affirm_date")
  841. .HasColumnType("datetime2")
  842. .HasComment("采购确认到货日期");
  843. b.Property<string>("pr_purchasename")
  844. .HasMaxLength(80)
  845. .HasColumnType("nvarchar(80)")
  846. .HasComment("供应商名称");
  847. b.Property<string>("pr_purchasenumber")
  848. .HasMaxLength(80)
  849. .HasColumnType("nvarchar(80)")
  850. .HasComment("供应商编码");
  851. b.Property<DateTime?>("pr_rarrive_date")
  852. .HasColumnType("datetime2")
  853. .HasComment("需求到货日期");
  854. b.Property<decimal?>("pr_rate")
  855. .HasPrecision(23, 10)
  856. .HasColumnType("decimal(23,10)")
  857. .HasComment("税率");
  858. b.Property<decimal?>("pr_rqty")
  859. .HasPrecision(23, 10)
  860. .HasColumnType("decimal(23,10)")
  861. .HasComment("需求数量");
  862. b.Property<decimal?>("pr_sqty")
  863. .HasPrecision(23, 10)
  864. .HasColumnType("decimal(23,10)")
  865. .HasComment("建议数量");
  866. b.Property<decimal?>("pr_sysprice")
  867. .HasPrecision(23, 10)
  868. .HasColumnType("decimal(23,10)")
  869. .HasComment("系统价格(含税)");
  870. b.Property<long>("tenant_id")
  871. .HasColumnType("bigint")
  872. .HasComment("企业ID");
  873. b.Property<long?>("update_by")
  874. .HasColumnType("bigint")
  875. .HasComment("修改人");
  876. b.Property<string>("update_by_name")
  877. .HasMaxLength(50)
  878. .HasColumnType("nvarchar(50)")
  879. .HasComment("修改人名称");
  880. b.Property<DateTime?>("update_time")
  881. .HasColumnType("datetime2")
  882. .HasComment("修改时间");
  883. b.HasKey("Id");
  884. b.HasIndex("bom_child_examine_id", "tenant_id", "factory_id");
  885. b.ToTable("b_purchase", (string)null);
  886. b.HasComment("采购明细信息");
  887. });
  888. modelBuilder.Entity("Bussiness.Model.Bang.b_purchase_occupy", b =>
  889. {
  890. b.Property<long>("Id")
  891. .HasColumnType("bigint");
  892. b.Property<bool>("IsDeleted")
  893. .ValueGeneratedOnAdd()
  894. .HasColumnType("bit")
  895. .HasDefaultValue(false)
  896. .HasColumnName("IsDeleted")
  897. .HasComment("删除标识");
  898. b.Property<long?>("bom_child_examine_id")
  899. .HasColumnType("bigint")
  900. .HasComment("物料检查明细ID");
  901. b.Property<long?>("create_by")
  902. .HasColumnType("bigint")
  903. .HasComment("创建人id");
  904. b.Property<string>("create_by_name")
  905. .HasMaxLength(50)
  906. .HasColumnType("nvarchar(50)")
  907. .HasComment("创建人名称");
  908. b.Property<DateTime?>("create_time")
  909. .HasColumnType("datetime2")
  910. .HasComment("创建时间");
  911. b.Property<DateTime?>("etime")
  912. .HasColumnType("datetime2")
  913. .HasComment("结束时间");
  914. b.Property<long?>("factory_id")
  915. .HasColumnType("bigint")
  916. .HasComment("工厂ID");
  917. b.Property<long?>("org_id")
  918. .HasColumnType("bigint")
  919. .HasComment("组织ID");
  920. b.Property<string>("po_billno")
  921. .HasMaxLength(80)
  922. .HasColumnType("nvarchar(80)")
  923. .HasComment("采购订单单号");
  924. b.Property<decimal?>("qty")
  925. .HasPrecision(23, 10)
  926. .HasColumnType("decimal(23,10)")
  927. .HasComment("占用量");
  928. b.Property<DateTime?>("stime")
  929. .HasColumnType("datetime2")
  930. .HasComment("开始时间");
  931. b.Property<long>("tenant_id")
  932. .HasColumnType("bigint")
  933. .HasComment("企业ID");
  934. b.Property<string>("type")
  935. .HasMaxLength(80)
  936. .HasColumnType("nvarchar(80)")
  937. .HasComment("类型");
  938. b.Property<long?>("update_by")
  939. .HasColumnType("bigint")
  940. .HasComment("修改人");
  941. b.Property<string>("update_by_name")
  942. .HasMaxLength(50)
  943. .HasColumnType("nvarchar(50)")
  944. .HasComment("修改人名称");
  945. b.Property<DateTime?>("update_time")
  946. .HasColumnType("datetime2")
  947. .HasComment("修改时间");
  948. b.HasKey("Id");
  949. b.HasIndex("bom_child_examine_id", "tenant_id", "factory_id");
  950. b.ToTable("b_purchase_occupy", (string)null);
  951. b.HasComment("采购占用明细");
  952. });
  953. #pragma warning restore 612, 618
  954. }
  955. }
  956. }