BusinessBangMigrationDbContextModelSnapshot.cs 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854
  1. // <auto-generated />
  2. using System;
  3. using Business.EntityFrameworkCore;
  4. using Microsoft.EntityFrameworkCore;
  5. using Microsoft.EntityFrameworkCore.Infrastructure;
  6. using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
  7. using Volo.Abp.EntityFrameworkCore;
  8. #nullable disable
  9. namespace Business.Migrations.BusinessBangMigrationDb
  10. {
  11. [DbContext(typeof(BusinessBangMigrationDbContext))]
  12. partial class BusinessBangMigrationDbContextModelSnapshot : ModelSnapshot
  13. {
  14. protected override void BuildModel(ModelBuilder modelBuilder)
  15. {
  16. #pragma warning disable 612, 618
  17. modelBuilder
  18. .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.MySql)
  19. .HasAnnotation("ProductVersion", "6.0.5")
  20. .HasAnnotation("Relational:MaxIdentifierLength", 64);
  21. modelBuilder.Entity("Bussiness.Model.Bang.b_bom_child_examine", b =>
  22. {
  23. b.Property<long>("Id")
  24. .ValueGeneratedOnAdd()
  25. .HasColumnType("bigint");
  26. b.Property<bool>("IsDeleted")
  27. .ValueGeneratedOnAdd()
  28. .HasColumnType("tinyint(1)")
  29. .HasDefaultValue(false)
  30. .HasColumnName("IsDeleted")
  31. .HasComment("删除标识");
  32. b.Property<int?>("backflush")
  33. .HasColumnType("int")
  34. .HasComment("是否倒冲");
  35. b.Property<long?>("bom_child_id")
  36. .HasColumnType("bigint")
  37. .HasComment("bom明细主键");
  38. b.Property<long?>("bom_id")
  39. .HasColumnType("bigint")
  40. .HasComment("BOMid");
  41. b.Property<string>("bom_number")
  42. .HasMaxLength(20)
  43. .HasColumnType("varchar(20)")
  44. .HasComment("bom编号");
  45. b.Property<long?>("create_by")
  46. .HasColumnType("bigint")
  47. .HasComment("创建人id");
  48. b.Property<string>("create_by_name")
  49. .HasMaxLength(50)
  50. .HasColumnType("varchar(50)")
  51. .HasComment("创建人名称");
  52. b.Property<DateTime?>("create_time")
  53. .HasColumnType("datetime(6)")
  54. .HasComment("创建时间");
  55. b.Property<int?>("erp_cls")
  56. .HasColumnType("int")
  57. .HasComment("物料属性");
  58. b.Property<string>("erp_cls_name")
  59. .HasMaxLength(80)
  60. .HasColumnType("varchar(80)")
  61. .HasComment("物料属性名称");
  62. b.Property<long?>("examine_id")
  63. .HasColumnType("bigint")
  64. .HasComment("资源检查ID");
  65. b.Property<long?>("factory_id")
  66. .HasColumnType("bigint")
  67. .HasComment("工厂ID");
  68. b.Property<int?>("haveicsubs")
  69. .HasColumnType("int")
  70. .HasComment("存在替代关系");
  71. b.Property<bool>("is_use")
  72. .HasColumnType("tinyint(1)")
  73. .HasComment("是否使用此物料");
  74. b.Property<int?>("isbom")
  75. .HasColumnType("int")
  76. .HasComment("是否BOM");
  77. b.Property<long?>("item_id")
  78. .HasColumnType("bigint")
  79. .HasComment("物料id");
  80. b.Property<string>("item_name")
  81. .HasMaxLength(200)
  82. .HasColumnType("varchar(200)")
  83. .HasComment("物料名称");
  84. b.Property<string>("item_number")
  85. .HasMaxLength(80)
  86. .HasColumnType("varchar(80)")
  87. .HasComment("物料编号");
  88. b.Property<DateTime?>("kitting_time")
  89. .HasColumnType("datetime(6)")
  90. .HasComment("齐套时间");
  91. b.Property<decimal?>("lack_qty")
  92. .HasColumnType("decimal(65,30)")
  93. .HasComment("缺料数量");
  94. b.Property<int?>("level")
  95. .HasColumnType("int")
  96. .HasComment("level");
  97. b.Property<decimal?>("make_qty")
  98. .HasColumnType("decimal(65,30)")
  99. .HasComment("自制数量");
  100. b.Property<decimal?>("mo_qty")
  101. .HasColumnType("decimal(65,30)")
  102. .HasComment("在制占用数量");
  103. b.Property<string>("model")
  104. .HasMaxLength(200)
  105. .HasColumnType("varchar(200)")
  106. .HasComment("规格型号");
  107. b.Property<decimal?>("needCount")
  108. .HasColumnType("decimal(65,30)")
  109. .HasComment("单个产品总需要用量");
  110. b.Property<string>("num")
  111. .HasMaxLength(50)
  112. .HasColumnType("varchar(50)")
  113. .HasComment("项次号");
  114. b.Property<long?>("num_order")
  115. .HasColumnType("bigint")
  116. .HasComment("排序使用");
  117. b.Property<long?>("org_id")
  118. .HasColumnType("bigint")
  119. .HasComment("组织ID");
  120. b.Property<long?>("parent_id")
  121. .HasColumnType("bigint")
  122. .HasComment("父级id");
  123. b.Property<decimal?>("purchase_occupy_qty")
  124. .HasColumnType("decimal(65,30)")
  125. .HasComment("采购明细占用数量");
  126. b.Property<decimal?>("purchase_qty")
  127. .HasColumnType("decimal(65,30)")
  128. .HasComment("采购数量");
  129. b.Property<decimal?>("qty")
  130. .HasColumnType("decimal(65,30)")
  131. .HasComment("单位用量");
  132. b.Property<DateTime?>("satisfy_time")
  133. .HasColumnType("datetime(6)")
  134. .HasComment("满足时间");
  135. b.Property<decimal?>("self_lack_qty")
  136. .HasColumnType("decimal(65,30)")
  137. .HasComment("本级缺料数量");
  138. b.Property<long?>("sentry_id")
  139. .HasColumnType("bigint")
  140. .HasComment("订单行ID");
  141. b.Property<decimal?>("sqty")
  142. .HasColumnType("decimal(65,30)")
  143. .HasComment("库存数量");
  144. b.Property<int?>("stock_state")
  145. .HasColumnType("int")
  146. .HasComment("物料状态");
  147. b.Property<decimal?>("subcontracting_qty")
  148. .HasColumnType("decimal(65,30)")
  149. .HasComment("委外数量");
  150. b.Property<int?>("substitute_all_num")
  151. .HasColumnType("int")
  152. .HasComment("群组优先级");
  153. b.Property<string>("substitute_code")
  154. .HasMaxLength(20)
  155. .HasColumnType("varchar(20)")
  156. .HasComment("群组代码");
  157. b.Property<int?>("substitute_mode")
  158. .HasColumnType("int")
  159. .HasComment("替代方式");
  160. b.Property<int?>("substitute_strategy")
  161. .HasColumnType("int")
  162. .HasComment("替代策略");
  163. b.Property<long>("tenant_id")
  164. .HasColumnType("bigint")
  165. .HasComment("企业ID");
  166. b.Property<int?>("type")
  167. .HasColumnType("int")
  168. .HasComment("类型");
  169. b.Property<string>("unit")
  170. .HasMaxLength(80)
  171. .HasColumnType("varchar(80)")
  172. .HasComment("单位");
  173. b.Property<long?>("update_by")
  174. .HasColumnType("bigint")
  175. .HasComment("修改人");
  176. b.Property<string>("update_by_name")
  177. .HasMaxLength(50)
  178. .HasColumnType("varchar(50)")
  179. .HasComment("修改人名称");
  180. b.Property<DateTime?>("update_time")
  181. .HasColumnType("datetime(6)")
  182. .HasComment("修改时间");
  183. b.Property<decimal?>("use_qty")
  184. .HasColumnType("decimal(65,30)")
  185. .HasComment("库存占用数量");
  186. b.Property<string>("version")
  187. .HasMaxLength(80)
  188. .HasColumnType("varchar(80)")
  189. .HasComment("版本");
  190. b.HasKey("Id");
  191. b.ToTable("b_bom_child_examine", (string)null);
  192. b.HasComment("Bom明细检查结果");
  193. });
  194. modelBuilder.Entity("Bussiness.Model.Bang.b_examine_result", b =>
  195. {
  196. b.Property<long>("Id")
  197. .ValueGeneratedOnAdd()
  198. .HasColumnType("bigint");
  199. b.Property<bool>("IsDeleted")
  200. .ValueGeneratedOnAdd()
  201. .HasColumnType("tinyint(1)")
  202. .HasDefaultValue(false)
  203. .HasColumnName("IsDeleted")
  204. .HasComment("删除标识");
  205. b.Property<string>("bill_no")
  206. .HasMaxLength(50)
  207. .HasColumnType("varchar(50)")
  208. .HasComment("订单编号");
  209. b.Property<string>("bom_number")
  210. .HasMaxLength(20)
  211. .HasColumnType("varchar(20)")
  212. .HasComment("BOM编码");
  213. b.Property<long?>("create_by")
  214. .HasColumnType("bigint")
  215. .HasComment("创建人id");
  216. b.Property<string>("create_by_name")
  217. .HasMaxLength(50)
  218. .HasColumnType("varchar(50)")
  219. .HasComment("创建人名称");
  220. b.Property<DateTime?>("create_time")
  221. .HasColumnType("datetime(6)")
  222. .HasComment("创建时间");
  223. b.Property<DateTime?>("earliest_times")
  224. .HasColumnType("datetime(6)")
  225. .HasComment("最早开工时间");
  226. b.Property<int?>("entry_seq")
  227. .HasColumnType("int")
  228. .HasComment("行号");
  229. b.Property<long?>("factory_id")
  230. .HasColumnType("bigint")
  231. .HasComment("工厂ID");
  232. b.Property<DateTime?>("kitting_times")
  233. .HasColumnType("datetime(6)")
  234. .HasComment("物料齐套时间");
  235. b.Property<DateTime?>("latest_times")
  236. .HasColumnType("datetime(6)")
  237. .HasComment("最晚开工时间");
  238. b.Property<long?>("morder_id")
  239. .HasColumnType("bigint")
  240. .HasComment("工单id");
  241. b.Property<string>("morder_no")
  242. .HasMaxLength(50)
  243. .HasColumnType("varchar(50)")
  244. .HasComment("工单号");
  245. b.Property<decimal?>("need_qty")
  246. .HasPrecision(20, 8)
  247. .HasColumnType("decimal(20,8)")
  248. .HasComment("BOM编码");
  249. b.Property<DateTime?>("order_statr_time")
  250. .HasColumnType("datetime(6)")
  251. .HasComment("工单开工时间");
  252. b.Property<long?>("org_id")
  253. .HasColumnType("bigint")
  254. .HasComment("组织ID");
  255. b.Property<long?>("sentry_id")
  256. .HasColumnType("bigint")
  257. .HasComment("订单行id");
  258. b.Property<long?>("sorderid")
  259. .HasColumnType("bigint")
  260. .HasComment("订单id");
  261. b.Property<long>("tenant_id")
  262. .HasColumnType("bigint")
  263. .HasComment("企业ID");
  264. b.Property<long?>("update_by")
  265. .HasColumnType("bigint")
  266. .HasComment("修改人");
  267. b.Property<string>("update_by_name")
  268. .HasMaxLength(50)
  269. .HasColumnType("varchar(50)")
  270. .HasComment("修改人名称");
  271. b.Property<DateTime?>("update_time")
  272. .HasColumnType("datetime(6)")
  273. .HasComment("修改时间");
  274. b.HasKey("Id");
  275. b.ToTable("b_examine_result", (string)null);
  276. b.HasComment("资源检查");
  277. });
  278. modelBuilder.Entity("Bussiness.Model.Bang.b_mo_occupy", b =>
  279. {
  280. b.Property<long>("Id")
  281. .ValueGeneratedOnAdd()
  282. .HasColumnType("bigint");
  283. b.Property<bool>("IsDeleted")
  284. .ValueGeneratedOnAdd()
  285. .HasColumnType("tinyint(1)")
  286. .HasDefaultValue(false)
  287. .HasColumnName("IsDeleted")
  288. .HasComment("删除标识");
  289. b.Property<long?>("bom_child_examine_id")
  290. .HasColumnType("bigint")
  291. .HasComment("物料检查明细ID");
  292. b.Property<long?>("create_by")
  293. .HasColumnType("bigint")
  294. .HasComment("创建人id");
  295. b.Property<string>("create_by_name")
  296. .HasMaxLength(50)
  297. .HasColumnType("varchar(50)")
  298. .HasComment("创建人名称");
  299. b.Property<DateTime?>("create_time")
  300. .HasColumnType("datetime(6)")
  301. .HasComment("创建时间");
  302. b.Property<long?>("factory_id")
  303. .HasColumnType("bigint")
  304. .HasComment("工厂ID");
  305. b.Property<DateTime?>("moo_etime")
  306. .HasColumnType("datetime(6)")
  307. .HasComment("结束时间");
  308. b.Property<string>("moo_mo")
  309. .HasMaxLength(50)
  310. .HasColumnType("varchar(50)")
  311. .HasComment("工单号");
  312. b.Property<decimal?>("moo_qty")
  313. .HasColumnType("decimal(65,30)")
  314. .HasComment("占用量");
  315. b.Property<DateTime?>("moo_stime")
  316. .HasColumnType("datetime(6)")
  317. .HasComment("开始时间");
  318. b.Property<long?>("org_id")
  319. .HasColumnType("bigint")
  320. .HasComment("组织ID");
  321. b.Property<long>("tenant_id")
  322. .HasColumnType("bigint")
  323. .HasComment("企业ID");
  324. b.Property<long?>("update_by")
  325. .HasColumnType("bigint")
  326. .HasComment("修改人");
  327. b.Property<string>("update_by_name")
  328. .HasMaxLength(50)
  329. .HasColumnType("varchar(50)")
  330. .HasComment("修改人名称");
  331. b.Property<DateTime?>("update_time")
  332. .HasColumnType("datetime(6)")
  333. .HasComment("修改时间");
  334. b.HasKey("Id");
  335. b.ToTable("b_mo_occupy", (string)null);
  336. b.HasComment("在制占用明细");
  337. });
  338. modelBuilder.Entity("Bussiness.Model.Bang.b_mo_order", b =>
  339. {
  340. b.Property<long>("Id")
  341. .ValueGeneratedOnAdd()
  342. .HasColumnType("bigint");
  343. b.Property<bool>("IsDeleted")
  344. .ValueGeneratedOnAdd()
  345. .HasColumnType("tinyint(1)")
  346. .HasDefaultValue(false)
  347. .HasColumnName("IsDeleted")
  348. .HasComment("删除标识");
  349. b.Property<long?>("bom_child_examine_id")
  350. .HasColumnType("bigint")
  351. .HasComment("物料检查明细ID");
  352. b.Property<long?>("create_by")
  353. .HasColumnType("bigint")
  354. .HasComment("创建人id");
  355. b.Property<string>("create_by_name")
  356. .HasMaxLength(50)
  357. .HasColumnType("varchar(50)")
  358. .HasComment("创建人名称");
  359. b.Property<DateTime?>("create_time")
  360. .HasColumnType("datetime(6)")
  361. .HasComment("创建时间");
  362. b.Property<long?>("factory_id")
  363. .HasColumnType("bigint")
  364. .HasComment("工厂ID");
  365. b.Property<DateTime?>("moentry_etime")
  366. .HasColumnType("datetime(6)")
  367. .HasComment("生产工单结束日期");
  368. b.Property<string>("moentry_prdname")
  369. .HasMaxLength(50)
  370. .HasColumnType("varchar(50)")
  371. .HasComment("生产组织名称");
  372. b.Property<DateTime?>("moentry_stime")
  373. .HasColumnType("datetime(6)")
  374. .HasComment("生产工单开始日期");
  375. b.Property<DateTime?>("moentry_sys_etime")
  376. .HasColumnType("datetime(6)")
  377. .HasComment("系统建议完工时间");
  378. b.Property<DateTime?>("moentry_sys_stime")
  379. .HasColumnType("datetime(6)")
  380. .HasComment("系统建议开工时间");
  381. b.Property<string>("moentry_wrkcname")
  382. .HasMaxLength(50)
  383. .HasColumnType("varchar(50)")
  384. .HasComment("工作中心名称");
  385. b.Property<decimal?>("morder_need_time")
  386. .HasColumnType("decimal(65,30)")
  387. .HasComment("工单所需工时");
  388. b.Property<string>("morder_no")
  389. .HasMaxLength(50)
  390. .HasColumnType("varchar(50)")
  391. .HasComment("生产工单编号");
  392. b.Property<decimal?>("morder_production_number")
  393. .HasColumnType("decimal(65,30)")
  394. .HasComment("工单生产数量");
  395. b.Property<decimal?>("need_number")
  396. .HasColumnType("decimal(65,30)")
  397. .HasComment("需求数量");
  398. b.Property<long?>("org_id")
  399. .HasColumnType("bigint")
  400. .HasComment("组织ID");
  401. b.Property<DateTime?>("reality_end_time")
  402. .HasColumnType("datetime(6)")
  403. .HasComment("实际结束时间");
  404. b.Property<DateTime?>("reality_start_time")
  405. .HasColumnType("datetime(6)")
  406. .HasComment("实际开始时间");
  407. b.Property<long>("tenant_id")
  408. .HasColumnType("bigint")
  409. .HasComment("企业ID");
  410. b.Property<long?>("update_by")
  411. .HasColumnType("bigint")
  412. .HasComment("修改人");
  413. b.Property<string>("update_by_name")
  414. .HasMaxLength(50)
  415. .HasColumnType("varchar(50)")
  416. .HasComment("修改人名称");
  417. b.Property<DateTime?>("update_time")
  418. .HasColumnType("datetime(6)")
  419. .HasComment("修改时间");
  420. b.HasKey("Id");
  421. b.ToTable("b_mo_order", (string)null);
  422. b.HasComment("生产工单明细");
  423. });
  424. modelBuilder.Entity("Bussiness.Model.Bang.b_ooder", b =>
  425. {
  426. b.Property<long>("Id")
  427. .ValueGeneratedOnAdd()
  428. .HasColumnType("bigint");
  429. b.Property<bool>("IsDeleted")
  430. .ValueGeneratedOnAdd()
  431. .HasColumnType("tinyint(1)")
  432. .HasDefaultValue(false)
  433. .HasColumnName("IsDeleted")
  434. .HasComment("删除标识");
  435. b.Property<long?>("bom_child_examine_id")
  436. .HasColumnType("bigint")
  437. .HasComment("物料检查明细ID");
  438. b.Property<long?>("create_by")
  439. .HasColumnType("bigint")
  440. .HasComment("创建人id");
  441. b.Property<string>("create_by_name")
  442. .HasMaxLength(50)
  443. .HasColumnType("varchar(50)")
  444. .HasComment("创建人名称");
  445. b.Property<DateTime?>("create_time")
  446. .HasColumnType("datetime(6)")
  447. .HasComment("创建时间");
  448. b.Property<long?>("factory_id")
  449. .HasColumnType("bigint")
  450. .HasComment("工厂ID");
  451. b.Property<decimal?>("morder_production_number")
  452. .HasColumnType("decimal(65,30)")
  453. .HasComment("工单生产数量");
  454. b.Property<DateTime?>("ooentry_etime")
  455. .HasColumnType("datetime(6)")
  456. .HasComment("计划完工日期");
  457. b.Property<string>("ooentry_prdname")
  458. .HasMaxLength(50)
  459. .HasColumnType("varchar(50)")
  460. .HasComment("生产组织名称");
  461. b.Property<DateTime?>("ooentry_stime")
  462. .HasColumnType("datetime(6)")
  463. .HasComment("计划开工日期");
  464. b.Property<DateTime?>("oorder_date")
  465. .HasColumnType("datetime(6)")
  466. .HasComment("委外订单日期");
  467. b.Property<string>("oorder_no")
  468. .HasMaxLength(50)
  469. .HasColumnType("varchar(50)")
  470. .HasComment("工单编号");
  471. b.Property<long?>("org_id")
  472. .HasColumnType("bigint")
  473. .HasComment("组织ID");
  474. b.Property<string>("production_unit")
  475. .HasMaxLength(100)
  476. .HasColumnType("varchar(100)")
  477. .HasComment("加工单位");
  478. b.Property<string>("production_unit_code")
  479. .HasMaxLength(20)
  480. .HasColumnType("varchar(20)")
  481. .HasComment("加工单位编码");
  482. b.Property<long>("tenant_id")
  483. .HasColumnType("bigint")
  484. .HasComment("企业ID");
  485. b.Property<long?>("update_by")
  486. .HasColumnType("bigint")
  487. .HasComment("修改人");
  488. b.Property<string>("update_by_name")
  489. .HasMaxLength(50)
  490. .HasColumnType("varchar(50)")
  491. .HasComment("修改人名称");
  492. b.Property<DateTime?>("update_time")
  493. .HasColumnType("datetime(6)")
  494. .HasComment("修改时间");
  495. b.HasKey("Id");
  496. b.ToTable("b_ooder", (string)null);
  497. b.HasComment("采购占用明细");
  498. });
  499. modelBuilder.Entity("Bussiness.Model.Bang.b_purchase", b =>
  500. {
  501. b.Property<long>("Id")
  502. .ValueGeneratedOnAdd()
  503. .HasColumnType("bigint");
  504. b.Property<bool>("IsDeleted")
  505. .ValueGeneratedOnAdd()
  506. .HasColumnType("tinyint(1)")
  507. .HasDefaultValue(false)
  508. .HasColumnName("IsDeleted")
  509. .HasComment("删除标识");
  510. b.Property<long?>("bom_child_examine_id")
  511. .HasColumnType("bigint")
  512. .HasComment("物料检查明细ID");
  513. b.Property<long?>("create_by")
  514. .HasColumnType("bigint")
  515. .HasComment("创建人id");
  516. b.Property<string>("create_by_name")
  517. .HasMaxLength(50)
  518. .HasColumnType("varchar(50)")
  519. .HasComment("创建人名称");
  520. b.Property<DateTime?>("create_time")
  521. .HasColumnType("datetime(6)")
  522. .HasComment("创建时间");
  523. b.Property<long?>("factory_id")
  524. .HasColumnType("bigint")
  525. .HasComment("工厂ID");
  526. b.Property<long?>("org_id")
  527. .HasColumnType("bigint")
  528. .HasComment("组织ID");
  529. b.Property<decimal?>("pr_aqty")
  530. .HasColumnType("decimal(65,30)")
  531. .HasComment("申请数量");
  532. b.Property<string>("pr_billno")
  533. .HasMaxLength(50)
  534. .HasColumnType("varchar(50)")
  535. .HasComment("pr单号");
  536. b.Property<decimal?>("pr_orderprice")
  537. .HasColumnType("decimal(65,30)")
  538. .HasComment("订单价格(含税)");
  539. b.Property<DateTime?>("pr_parrive_date")
  540. .HasColumnType("datetime(6)")
  541. .HasComment("计划到达日期");
  542. b.Property<decimal?>("pr_price")
  543. .HasColumnType("decimal(65,30)")
  544. .HasComment("采购净价(不含税)");
  545. b.Property<DateTime?>("pr_pur_affirm_date")
  546. .HasColumnType("datetime(6)")
  547. .HasComment("采购确认到货日期");
  548. b.Property<string>("pr_purchasename")
  549. .HasMaxLength(80)
  550. .HasColumnType("varchar(80)")
  551. .HasComment("供应商名称");
  552. b.Property<string>("pr_purchasenumber")
  553. .HasMaxLength(80)
  554. .HasColumnType("varchar(80)")
  555. .HasComment("供应商编码");
  556. b.Property<DateTime?>("pr_rarrive_date")
  557. .HasColumnType("datetime(6)")
  558. .HasComment("需求到货日期");
  559. b.Property<decimal?>("pr_rate")
  560. .HasColumnType("decimal(65,30)")
  561. .HasComment("税率");
  562. b.Property<decimal?>("pr_rqty")
  563. .HasColumnType("decimal(65,30)")
  564. .HasComment("需求数量");
  565. b.Property<decimal?>("pr_sqty")
  566. .HasColumnType("decimal(65,30)")
  567. .HasComment("建议数量");
  568. b.Property<decimal?>("pr_sysprice")
  569. .HasColumnType("decimal(65,30)")
  570. .HasComment("系统价格(含税)");
  571. b.Property<long>("tenant_id")
  572. .HasColumnType("bigint")
  573. .HasComment("企业ID");
  574. b.Property<long?>("update_by")
  575. .HasColumnType("bigint")
  576. .HasComment("修改人");
  577. b.Property<string>("update_by_name")
  578. .HasMaxLength(50)
  579. .HasColumnType("varchar(50)")
  580. .HasComment("修改人名称");
  581. b.Property<DateTime?>("update_time")
  582. .HasColumnType("datetime(6)")
  583. .HasComment("修改时间");
  584. b.HasKey("Id");
  585. b.ToTable("b_purchase", (string)null);
  586. b.HasComment("采购明细信息");
  587. });
  588. modelBuilder.Entity("Bussiness.Model.Bang.b_purchase_occupy", b =>
  589. {
  590. b.Property<long>("Id")
  591. .ValueGeneratedOnAdd()
  592. .HasColumnType("bigint");
  593. b.Property<bool>("IsDeleted")
  594. .ValueGeneratedOnAdd()
  595. .HasColumnType("tinyint(1)")
  596. .HasDefaultValue(false)
  597. .HasColumnName("IsDeleted")
  598. .HasComment("删除标识");
  599. b.Property<long?>("bom_child_examine_id")
  600. .HasColumnType("bigint")
  601. .HasComment("物料检查明细ID");
  602. b.Property<long?>("create_by")
  603. .HasColumnType("bigint")
  604. .HasComment("创建人id");
  605. b.Property<string>("create_by_name")
  606. .HasMaxLength(50)
  607. .HasColumnType("varchar(50)")
  608. .HasComment("创建人名称");
  609. b.Property<DateTime?>("create_time")
  610. .HasColumnType("datetime(6)")
  611. .HasComment("创建时间");
  612. b.Property<DateTime?>("etime")
  613. .HasColumnType("datetime(6)")
  614. .HasComment("结束时间");
  615. b.Property<long?>("factory_id")
  616. .HasColumnType("bigint")
  617. .HasComment("工厂ID");
  618. b.Property<long?>("org_id")
  619. .HasColumnType("bigint")
  620. .HasComment("组织ID");
  621. b.Property<string>("po_billno")
  622. .HasMaxLength(80)
  623. .HasColumnType("varchar(80)")
  624. .HasComment("采购订单单号");
  625. b.Property<decimal?>("qty")
  626. .HasColumnType("decimal(65,30)")
  627. .HasComment("占用量");
  628. b.Property<DateTime?>("stime")
  629. .HasColumnType("datetime(6)")
  630. .HasComment("开始时间");
  631. b.Property<long>("tenant_id")
  632. .HasColumnType("bigint")
  633. .HasComment("企业ID");
  634. b.Property<string>("type")
  635. .HasMaxLength(80)
  636. .HasColumnType("varchar(80)")
  637. .HasComment("类型");
  638. b.Property<long?>("update_by")
  639. .HasColumnType("bigint")
  640. .HasComment("修改人");
  641. b.Property<string>("update_by_name")
  642. .HasMaxLength(50)
  643. .HasColumnType("varchar(50)")
  644. .HasComment("修改人名称");
  645. b.Property<DateTime?>("update_time")
  646. .HasColumnType("datetime(6)")
  647. .HasComment("修改时间");
  648. b.HasKey("Id");
  649. b.ToTable("b_purchase_occupy", (string)null);
  650. b.HasComment("采购占用明细");
  651. });
  652. #pragma warning restore 612, 618
  653. }
  654. }
  655. }