20210708073038_7-8-2.Designer.cs 44 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301
  1. // <auto-generated />
  2. using System;
  3. using Microsoft.EntityFrameworkCore;
  4. using Microsoft.EntityFrameworkCore.Infrastructure;
  5. using Microsoft.EntityFrameworkCore.Metadata;
  6. using Microsoft.EntityFrameworkCore.Migrations;
  7. using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
  8. using WCS.Service;
  9. namespace WCS.Service.Migrations
  10. {
  11. [DbContext(typeof(WCSDB))]
  12. [Migration("20210708073038_7-8-2")]
  13. partial class _782
  14. {
  15. protected override void BuildTargetModel(ModelBuilder modelBuilder)
  16. {
  17. #pragma warning disable 612, 618
  18. modelBuilder
  19. .HasAnnotation("Relational:MaxIdentifierLength", 128)
  20. .HasAnnotation("ProductVersion", "5.0.5")
  21. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  22. modelBuilder.Entity("WCS.Entity.Protocol.WCS_BCR80", b =>
  23. {
  24. b.Property<int>("ID")
  25. .ValueGeneratedOnAdd()
  26. .HasColumnType("int")
  27. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  28. b.Property<string>("CONTENT")
  29. .HasMaxLength(20)
  30. .HasColumnType("nvarchar(20)");
  31. b.Property<string>("DEVICECODE")
  32. .HasColumnType("nvarchar(50)");
  33. b.Property<bool>("ENABLED")
  34. .HasColumnType("bit");
  35. b.Property<DateTime>("FRAME")
  36. .HasColumnType("datetime2");
  37. b.Property<bool>("ISLAST")
  38. .HasColumnType("bit");
  39. b.Property<DateTime>("UPDATETIME")
  40. .HasColumnType("datetime2");
  41. b.Property<string>("UPDATEUSER")
  42. .IsRequired()
  43. .HasMaxLength(50)
  44. .HasColumnType("nvarchar(50)");
  45. b.Property<byte[]>("VER")
  46. .IsConcurrencyToken()
  47. .ValueGeneratedOnAddOrUpdate()
  48. .HasColumnType("rowversion");
  49. b.Property<int>("WCSVERSION")
  50. .HasColumnType("int");
  51. b.HasKey("ID");
  52. b.HasIndex("DEVICECODE");
  53. b.ToTable("WCS_BCR80");
  54. });
  55. modelBuilder.Entity("WCS.Entity.Protocol.WCS_RGV520", b =>
  56. {
  57. b.Property<int>("ID")
  58. .ValueGeneratedOnAdd()
  59. .HasColumnType("int")
  60. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  61. b.Property<string>("DEVICECODE")
  62. .HasColumnType("nvarchar(50)");
  63. b.Property<short>("DestPosition_1")
  64. .HasColumnType("smallint");
  65. b.Property<short>("DestPosition_2")
  66. .HasColumnType("smallint");
  67. b.Property<bool>("ENABLED")
  68. .HasColumnType("bit");
  69. b.Property<DateTime>("FRAME")
  70. .HasColumnType("datetime2");
  71. b.Property<bool>("ISLAST")
  72. .HasColumnType("bit");
  73. b.Property<short>("PRIORITY_1")
  74. .HasColumnType("smallint");
  75. b.Property<short>("PRIORITY_2")
  76. .HasColumnType("smallint");
  77. b.Property<short>("RES1_1")
  78. .HasColumnType("smallint");
  79. b.Property<short>("RES1_2")
  80. .HasColumnType("smallint");
  81. b.Property<short>("RES2_1")
  82. .HasColumnType("smallint");
  83. b.Property<short>("RES2_2")
  84. .HasColumnType("smallint");
  85. b.Property<short>("StartPosition_1")
  86. .HasColumnType("smallint");
  87. b.Property<short>("StartPosition_2")
  88. .HasColumnType("smallint");
  89. b.Property<int>("TaskID_1")
  90. .HasColumnType("int");
  91. b.Property<int>("TaskID_2")
  92. .HasColumnType("int");
  93. b.Property<short>("TaskType_1")
  94. .HasColumnType("smallint");
  95. b.Property<short>("TaskType_2")
  96. .HasColumnType("smallint");
  97. b.Property<short>("Trigger_1")
  98. .HasColumnType("smallint");
  99. b.Property<short>("Trigger_2")
  100. .HasColumnType("smallint");
  101. b.Property<DateTime>("UPDATETIME")
  102. .HasColumnType("datetime2");
  103. b.Property<string>("UPDATEUSER")
  104. .IsRequired()
  105. .HasMaxLength(50)
  106. .HasColumnType("nvarchar(50)");
  107. b.Property<byte[]>("VER")
  108. .IsConcurrencyToken()
  109. .ValueGeneratedOnAddOrUpdate()
  110. .HasColumnType("rowversion");
  111. b.Property<int>("WCSVERSION")
  112. .HasColumnType("int");
  113. b.HasKey("ID");
  114. b.HasIndex("DEVICECODE");
  115. b.ToTable("WCS_RGV520");
  116. });
  117. modelBuilder.Entity("WCS.Entity.Protocol.WCS_RGV521", b =>
  118. {
  119. b.Property<int>("ID")
  120. .ValueGeneratedOnAdd()
  121. .HasColumnType("int")
  122. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  123. b.Property<short>("ACT_V")
  124. .HasColumnType("smallint");
  125. b.Property<string>("DEVICECODE")
  126. .HasColumnType("nvarchar(50)");
  127. b.Property<short>("DestPosition_1")
  128. .HasColumnType("smallint");
  129. b.Property<short>("DestPosition_2")
  130. .HasColumnType("smallint");
  131. b.Property<bool>("ENABLED")
  132. .HasColumnType("bit");
  133. b.Property<DateTime>("FRAME")
  134. .HasColumnType("datetime2");
  135. b.Property<bool>("Finish_1")
  136. .HasColumnType("bit");
  137. b.Property<bool>("Finish_2")
  138. .HasColumnType("bit");
  139. b.Property<bool>("ISLAST")
  140. .HasColumnType("bit");
  141. b.Property<float>("Mileage")
  142. .HasColumnType("real");
  143. b.Property<bool>("PH_Status_1")
  144. .HasColumnType("bit");
  145. b.Property<bool>("PH_Status_2")
  146. .HasColumnType("bit");
  147. b.Property<short>("PRIORITY_1")
  148. .HasColumnType("smallint");
  149. b.Property<short>("PRIORITY_2")
  150. .HasColumnType("smallint");
  151. b.Property<float>("Position")
  152. .HasColumnType("real");
  153. b.Property<short>("RES")
  154. .HasColumnType("smallint");
  155. b.Property<short>("RES1_2")
  156. .HasColumnType("smallint");
  157. b.Property<short>("RES2_1")
  158. .HasColumnType("smallint");
  159. b.Property<short>("RES2_2")
  160. .HasColumnType("smallint");
  161. b.Property<float>("Runtime")
  162. .HasColumnType("real");
  163. b.Property<short>("StartPosition_1")
  164. .HasColumnType("smallint");
  165. b.Property<short>("StartPosition_2")
  166. .HasColumnType("smallint");
  167. b.Property<short>("SystemStatus")
  168. .HasColumnType("smallint");
  169. b.Property<int>("TaskID_1")
  170. .HasColumnType("int");
  171. b.Property<int>("TaskID_2")
  172. .HasColumnType("int");
  173. b.Property<short>("TaskType_1")
  174. .HasColumnType("smallint");
  175. b.Property<short>("TaskType_2")
  176. .HasColumnType("smallint");
  177. b.Property<bool>("ToSition_1")
  178. .HasColumnType("bit");
  179. b.Property<bool>("ToSition_2")
  180. .HasColumnType("bit");
  181. b.Property<DateTime>("UPDATETIME")
  182. .HasColumnType("datetime2");
  183. b.Property<string>("UPDATEUSER")
  184. .IsRequired()
  185. .HasMaxLength(50)
  186. .HasColumnType("nvarchar(50)");
  187. b.Property<byte[]>("VER")
  188. .IsConcurrencyToken()
  189. .ValueGeneratedOnAddOrUpdate()
  190. .HasColumnType("rowversion");
  191. b.Property<int>("WCSVERSION")
  192. .HasColumnType("int");
  193. b.Property<short>("WorkMode")
  194. .HasColumnType("smallint");
  195. b.HasKey("ID");
  196. b.HasIndex("DEVICECODE");
  197. b.ToTable("WCS_RGV521");
  198. });
  199. modelBuilder.Entity("WCS.Entity.Protocol.WCS_RGV523", b =>
  200. {
  201. b.Property<int>("ID")
  202. .ValueGeneratedOnAdd()
  203. .HasColumnType("int")
  204. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  205. b.Property<string>("DEVICECODE")
  206. .HasColumnType("nvarchar(50)");
  207. b.Property<bool>("ENABLED")
  208. .HasColumnType("bit");
  209. b.Property<DateTime>("FRAME")
  210. .HasColumnType("datetime2");
  211. b.Property<int>("Fault")
  212. .HasColumnType("int");
  213. b.Property<int>("Fault1")
  214. .HasColumnType("int");
  215. b.Property<int>("Fault2")
  216. .HasColumnType("int");
  217. b.Property<bool>("ISLAST")
  218. .HasColumnType("bit");
  219. b.Property<int>("Status")
  220. .HasColumnType("int");
  221. b.Property<int>("Status1")
  222. .HasColumnType("int");
  223. b.Property<int>("Status2")
  224. .HasColumnType("int");
  225. b.Property<DateTime>("UPDATETIME")
  226. .HasColumnType("datetime2");
  227. b.Property<string>("UPDATEUSER")
  228. .IsRequired()
  229. .HasMaxLength(50)
  230. .HasColumnType("nvarchar(50)");
  231. b.Property<byte[]>("VER")
  232. .IsConcurrencyToken()
  233. .ValueGeneratedOnAddOrUpdate()
  234. .HasColumnType("rowversion");
  235. b.Property<int>("WCSVERSION")
  236. .HasColumnType("int");
  237. b.HasKey("ID");
  238. b.HasIndex("DEVICECODE");
  239. b.ToTable("WCS_RGV523");
  240. });
  241. modelBuilder.Entity("WCS.Entity.Protocol.WCS_SC520", b =>
  242. {
  243. b.Property<int>("ID")
  244. .ValueGeneratedOnAdd()
  245. .HasColumnType("int")
  246. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  247. b.Property<string>("DEVICECODE")
  248. .HasColumnType("nvarchar(50)");
  249. b.Property<short>("ECol")
  250. .HasColumnType("smallint");
  251. b.Property<short>("EDepth")
  252. .HasColumnType("smallint");
  253. b.Property<short>("ELayer")
  254. .HasColumnType("smallint");
  255. b.Property<short>("ELine")
  256. .HasColumnType("smallint");
  257. b.Property<bool>("ENABLED")
  258. .HasColumnType("bit");
  259. b.Property<short>("Endnumber2")
  260. .HasColumnType("smallint");
  261. b.Property<DateTime>("FRAME")
  262. .HasColumnType("datetime2");
  263. b.Property<short>("FinishedACK")
  264. .HasColumnType("smallint");
  265. b.Property<short>("GoodsType")
  266. .HasColumnType("smallint");
  267. b.Property<short>("Handshake")
  268. .HasColumnType("smallint");
  269. b.Property<bool>("ISLAST")
  270. .HasColumnType("bit");
  271. b.Property<short>("SCol")
  272. .HasColumnType("smallint");
  273. b.Property<short>("SDepth")
  274. .HasColumnType("smallint");
  275. b.Property<short>("SLayer")
  276. .HasColumnType("smallint");
  277. b.Property<short>("SLine")
  278. .HasColumnType("smallint");
  279. b.Property<short>("SpeedMode")
  280. .HasColumnType("smallint");
  281. b.Property<short>("Startnumber1")
  282. .HasColumnType("smallint");
  283. b.Property<int>("TaskID")
  284. .HasColumnType("int");
  285. b.Property<short>("Trigger")
  286. .HasColumnType("smallint");
  287. b.Property<DateTime>("UPDATETIME")
  288. .HasColumnType("datetime2");
  289. b.Property<string>("UPDATEUSER")
  290. .IsRequired()
  291. .HasMaxLength(50)
  292. .HasColumnType("nvarchar(50)");
  293. b.Property<byte[]>("VER")
  294. .IsConcurrencyToken()
  295. .ValueGeneratedOnAddOrUpdate()
  296. .HasColumnType("rowversion");
  297. b.Property<int>("WCSVERSION")
  298. .HasColumnType("int");
  299. b.HasKey("ID");
  300. b.HasIndex("DEVICECODE");
  301. b.ToTable("WCS_SC520");
  302. });
  303. modelBuilder.Entity("WCS.Entity.Protocol.WCS_SC521", b =>
  304. {
  305. b.Property<int>("ID")
  306. .ValueGeneratedOnAdd()
  307. .HasColumnType("int")
  308. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  309. b.Property<bool>("Alarm")
  310. .HasColumnType("bit");
  311. b.Property<short>("Col")
  312. .HasColumnType("smallint");
  313. b.Property<string>("DEVICECODE")
  314. .HasColumnType("nvarchar(50)");
  315. b.Property<short>("ECol")
  316. .HasColumnType("smallint");
  317. b.Property<short>("EDepth")
  318. .HasColumnType("smallint");
  319. b.Property<short>("ELayer")
  320. .HasColumnType("smallint");
  321. b.Property<short>("ELine")
  322. .HasColumnType("smallint");
  323. b.Property<bool>("ENABLED")
  324. .HasColumnType("bit");
  325. b.Property<short>("Endnumber2")
  326. .HasColumnType("smallint");
  327. b.Property<DateTime>("FRAME")
  328. .HasColumnType("datetime2");
  329. b.Property<int>("FinishedTask")
  330. .HasColumnType("int");
  331. b.Property<bool>("ForkCenter")
  332. .HasColumnType("bit");
  333. b.Property<int>("ForkPos")
  334. .HasColumnType("int");
  335. b.Property<bool>("GetFinishi")
  336. .HasColumnType("bit");
  337. b.Property<short>("GoodsType")
  338. .HasColumnType("smallint");
  339. b.Property<bool>("Handshake")
  340. .HasColumnType("bit");
  341. b.Property<bool>("ISLAST")
  342. .HasColumnType("bit");
  343. b.Property<short>("Layer")
  344. .HasColumnType("smallint");
  345. b.Property<int>("LiftPos")
  346. .HasColumnType("int");
  347. b.Property<short>("Line")
  348. .HasColumnType("smallint");
  349. b.Property<bool>("Loaded")
  350. .HasColumnType("bit");
  351. b.Property<short>("Mode")
  352. .HasColumnType("smallint");
  353. b.Property<bool>("PutFinishi")
  354. .HasColumnType("bit");
  355. b.Property<byte>("RES")
  356. .HasColumnType("tinyint");
  357. b.Property<float>("Runtime")
  358. .HasColumnType("real");
  359. b.Property<short>("SCol")
  360. .HasColumnType("smallint");
  361. b.Property<short>("SDepth")
  362. .HasColumnType("smallint");
  363. b.Property<short>("SLayer")
  364. .HasColumnType("smallint");
  365. b.Property<short>("SLine")
  366. .HasColumnType("smallint");
  367. b.Property<short>("Status")
  368. .HasColumnType("smallint");
  369. b.Property<bool>("TaskFinishi")
  370. .HasColumnType("bit");
  371. b.Property<int>("TaskID")
  372. .HasColumnType("int");
  373. b.Property<float>("TotalKM")
  374. .HasColumnType("real");
  375. b.Property<int>("TravelPos")
  376. .HasColumnType("int");
  377. b.Property<short>("Trigger")
  378. .HasColumnType("smallint");
  379. b.Property<short>("Tunnel")
  380. .HasColumnType("smallint");
  381. b.Property<DateTime>("UPDATETIME")
  382. .HasColumnType("datetime2");
  383. b.Property<string>("UPDATEUSER")
  384. .IsRequired()
  385. .HasMaxLength(50)
  386. .HasColumnType("nvarchar(50)");
  387. b.Property<byte[]>("VER")
  388. .IsConcurrencyToken()
  389. .ValueGeneratedOnAddOrUpdate()
  390. .HasColumnType("rowversion");
  391. b.Property<int>("WCSVERSION")
  392. .HasColumnType("int");
  393. b.HasKey("ID");
  394. b.HasIndex("DEVICECODE");
  395. b.ToTable("WCS_SC521");
  396. });
  397. modelBuilder.Entity("WCS.Entity.Protocol.WCS_SC537", b =>
  398. {
  399. b.Property<int>("ID")
  400. .ValueGeneratedOnAdd()
  401. .HasColumnType("int")
  402. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  403. b.Property<string>("DEVICECODE")
  404. .HasColumnType("nvarchar(50)");
  405. b.Property<bool>("ENABLED")
  406. .HasColumnType("bit");
  407. b.Property<DateTime>("FRAME")
  408. .HasColumnType("datetime2");
  409. b.Property<bool>("ISLAST")
  410. .HasColumnType("bit");
  411. b.Property<decimal>("SCAlarm")
  412. .HasColumnType("decimal(20,0)");
  413. b.Property<DateTime>("UPDATETIME")
  414. .HasColumnType("datetime2");
  415. b.Property<string>("UPDATEUSER")
  416. .IsRequired()
  417. .HasMaxLength(50)
  418. .HasColumnType("nvarchar(50)");
  419. b.Property<byte[]>("VER")
  420. .IsConcurrencyToken()
  421. .ValueGeneratedOnAddOrUpdate()
  422. .HasColumnType("rowversion");
  423. b.Property<int>("WCSVERSION")
  424. .HasColumnType("int");
  425. b.HasKey("ID");
  426. b.HasIndex("DEVICECODE");
  427. b.ToTable("WCS_SC537");
  428. });
  429. modelBuilder.Entity("WCS.Entity.Protocol.WCS_STATION520", b =>
  430. {
  431. b.Property<int>("ID")
  432. .ValueGeneratedOnAdd()
  433. .HasColumnType("int")
  434. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  435. b.Property<bool>("CONFIRM")
  436. .HasColumnType("bit");
  437. b.Property<string>("DEVICECODE")
  438. .HasColumnType("nvarchar(50)");
  439. b.Property<bool>("ENABLED")
  440. .HasColumnType("bit");
  441. b.Property<DateTime>("FRAME")
  442. .HasColumnType("datetime2");
  443. b.Property<int>("GOODSCODE")
  444. .HasColumnType("int");
  445. b.Property<short>("GOODSEND")
  446. .HasColumnType("smallint");
  447. b.Property<short>("GOODSSIZE")
  448. .HasColumnType("smallint");
  449. b.Property<short>("GOODSSTART")
  450. .HasColumnType("smallint");
  451. b.Property<short>("GOODSTYPE")
  452. .HasColumnType("smallint");
  453. b.Property<bool>("ISLAST")
  454. .HasColumnType("bit");
  455. b.Property<bool>("RES")
  456. .HasColumnType("bit");
  457. b.Property<int>("TASKNUM")
  458. .HasColumnType("int");
  459. b.Property<DateTime>("UPDATETIME")
  460. .HasColumnType("datetime2");
  461. b.Property<string>("UPDATEUSER")
  462. .IsRequired()
  463. .HasMaxLength(50)
  464. .HasColumnType("nvarchar(50)");
  465. b.Property<byte[]>("VER")
  466. .IsConcurrencyToken()
  467. .ValueGeneratedOnAddOrUpdate()
  468. .HasColumnType("rowversion");
  469. b.Property<int>("WCSVERSION")
  470. .HasColumnType("int");
  471. b.HasKey("ID");
  472. b.HasIndex("DEVICECODE");
  473. b.ToTable("WCS_STATION520");
  474. });
  475. modelBuilder.Entity("WCS.Entity.Protocol.WCS_STATION521", b =>
  476. {
  477. b.Property<int>("ID")
  478. .ValueGeneratedOnAdd()
  479. .HasColumnType("int")
  480. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  481. b.Property<bool>("BCR_NOREAD")
  482. .HasColumnType("bit");
  483. b.Property<bool>("B_OUTSIDE")
  484. .HasColumnType("bit");
  485. b.Property<string>("DEVICECODE")
  486. .HasColumnType("nvarchar(50)");
  487. b.Property<bool>("ENABLED")
  488. .HasColumnType("bit");
  489. b.Property<DateTime>("FRAME")
  490. .HasColumnType("datetime2");
  491. b.Property<bool>("F_OUTSIDE")
  492. .HasColumnType("bit");
  493. b.Property<int>("GOODSCODE")
  494. .HasColumnType("int");
  495. b.Property<short>("GOODSEND")
  496. .HasColumnType("smallint");
  497. b.Property<short>("GOODSSIZE")
  498. .HasColumnType("smallint");
  499. b.Property<short>("GOODSSTART")
  500. .HasColumnType("smallint");
  501. b.Property<short>("GOODSTYPE")
  502. .HasColumnType("smallint");
  503. b.Property<bool>("GOODS_ERR")
  504. .HasColumnType("bit");
  505. b.Property<bool>("H_OUTSIDE")
  506. .HasColumnType("bit");
  507. b.Property<bool>("ISLAST")
  508. .HasColumnType("bit");
  509. b.Property<bool>("L_OUTSIDE")
  510. .HasColumnType("bit");
  511. b.Property<bool>("OVERLOAD")
  512. .HasColumnType("bit");
  513. b.Property<bool>("PH_STATUS")
  514. .HasColumnType("bit");
  515. b.Property<bool>("REQUEST")
  516. .HasColumnType("bit");
  517. b.Property<bool>("RES")
  518. .HasColumnType("bit");
  519. b.Property<bool>("RES1")
  520. .HasColumnType("bit");
  521. b.Property<bool>("RES2")
  522. .HasColumnType("bit");
  523. b.Property<bool>("RES3")
  524. .HasColumnType("bit");
  525. b.Property<bool>("RES4")
  526. .HasColumnType("bit");
  527. b.Property<bool>("RES5")
  528. .HasColumnType("bit");
  529. b.Property<bool>("R_OUTSIDE")
  530. .HasColumnType("bit");
  531. b.Property<int>("TASKNUM")
  532. .HasColumnType("int");
  533. b.Property<DateTime>("UPDATETIME")
  534. .HasColumnType("datetime2");
  535. b.Property<string>("UPDATEUSER")
  536. .IsRequired()
  537. .HasMaxLength(50)
  538. .HasColumnType("nvarchar(50)");
  539. b.Property<byte[]>("VER")
  540. .IsConcurrencyToken()
  541. .ValueGeneratedOnAddOrUpdate()
  542. .HasColumnType("rowversion");
  543. b.Property<int>("WCSVERSION")
  544. .HasColumnType("int");
  545. b.Property<int>("WEIGHT")
  546. .HasColumnType("int");
  547. b.HasKey("ID");
  548. b.HasIndex("DEVICECODE");
  549. b.ToTable("WCS_STATION521");
  550. });
  551. modelBuilder.Entity("WCS.Entity.Protocol.WCS_STATION523", b =>
  552. {
  553. b.Property<int>("ID")
  554. .ValueGeneratedOnAdd()
  555. .HasColumnType("int")
  556. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  557. b.Property<string>("DEVICECODE")
  558. .HasColumnType("nvarchar(50)");
  559. b.Property<bool>("ENABLED")
  560. .HasColumnType("bit");
  561. b.Property<DateTime>("FRAME")
  562. .HasColumnType("datetime2");
  563. b.Property<int>("Fault")
  564. .HasColumnType("int");
  565. b.Property<bool>("ISLAST")
  566. .HasColumnType("bit");
  567. b.Property<short>("RES")
  568. .HasColumnType("smallint");
  569. b.Property<float>("RunTime")
  570. .HasColumnType("real");
  571. b.Property<short>("Status")
  572. .HasColumnType("smallint");
  573. b.Property<DateTime>("UPDATETIME")
  574. .HasColumnType("datetime2");
  575. b.Property<string>("UPDATEUSER")
  576. .IsRequired()
  577. .HasMaxLength(50)
  578. .HasColumnType("nvarchar(50)");
  579. b.Property<byte[]>("VER")
  580. .IsConcurrencyToken()
  581. .ValueGeneratedOnAddOrUpdate()
  582. .HasColumnType("rowversion");
  583. b.Property<int>("WCSVERSION")
  584. .HasColumnType("int");
  585. b.HasKey("ID");
  586. b.HasIndex("DEVICECODE");
  587. b.ToTable("WCS_STATION523");
  588. });
  589. modelBuilder.Entity("WCS.Entity.WCS_CMD", b =>
  590. {
  591. b.Property<int>("ID")
  592. .ValueGeneratedOnAdd()
  593. .HasColumnType("int")
  594. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  595. b.Property<string>("DEVICE_CODE")
  596. .HasMaxLength(20)
  597. .HasColumnType("nvarchar(20)");
  598. b.Property<bool>("ENABLED")
  599. .HasColumnType("bit");
  600. b.Property<string>("PROPERTY")
  601. .HasMaxLength(32)
  602. .HasColumnType("nvarchar(32)");
  603. b.Property<string>("PROTOCOL")
  604. .HasMaxLength(256)
  605. .HasColumnType("nvarchar(256)");
  606. b.Property<DateTime>("UPDATETIME")
  607. .HasColumnType("datetime2");
  608. b.Property<string>("UPDATEUSER")
  609. .IsRequired()
  610. .HasMaxLength(50)
  611. .HasColumnType("nvarchar(50)");
  612. b.Property<string>("VALUE")
  613. .HasMaxLength(512)
  614. .HasColumnType("nvarchar(512)");
  615. b.Property<byte[]>("VER")
  616. .IsConcurrencyToken()
  617. .ValueGeneratedOnAddOrUpdate()
  618. .HasColumnType("rowversion");
  619. b.Property<int>("WCSVERSION")
  620. .HasColumnType("int");
  621. b.HasKey("ID");
  622. b.ToTable("WCS_CMD");
  623. });
  624. modelBuilder.Entity("WCS.Entity.WCS_DATABLOCK", b =>
  625. {
  626. b.Property<string>("CODE")
  627. .HasMaxLength(20)
  628. .HasColumnType("nvarchar(20)");
  629. b.Property<int>("DATALENGTH")
  630. .HasColumnType("int");
  631. b.Property<bool>("ENABLED")
  632. .HasColumnType("bit");
  633. b.Property<int>("LENGTH")
  634. .HasColumnType("int");
  635. b.Property<string>("NAME")
  636. .HasMaxLength(20)
  637. .HasColumnType("nvarchar(20)");
  638. b.Property<int>("NO")
  639. .HasColumnType("int");
  640. b.Property<bool>("NOUPDATE")
  641. .HasColumnType("bit");
  642. b.Property<string>("PLCCODE")
  643. .HasColumnType("nvarchar(20)");
  644. b.Property<string>("PROTOCOL")
  645. .IsRequired()
  646. .HasMaxLength(200)
  647. .HasColumnType("nvarchar(200)");
  648. b.Property<DateTime>("UPDATETIME")
  649. .HasColumnType("datetime2");
  650. b.Property<string>("UPDATEUSER")
  651. .IsRequired()
  652. .HasMaxLength(50)
  653. .HasColumnType("nvarchar(50)");
  654. b.Property<byte[]>("VER")
  655. .IsConcurrencyToken()
  656. .ValueGeneratedOnAddOrUpdate()
  657. .HasColumnType("rowversion");
  658. b.HasKey("CODE");
  659. b.HasIndex("PLCCODE");
  660. b.ToTable("WCS_DATABLOCK");
  661. });
  662. modelBuilder.Entity("WCS.Entity.WCS_DEVICE", b =>
  663. {
  664. b.Property<string>("CODE")
  665. .HasMaxLength(50)
  666. .HasColumnType("nvarchar(50)");
  667. b.Property<bool>("ENABLED")
  668. .HasColumnType("bit");
  669. b.Property<string>("NAME")
  670. .IsRequired()
  671. .HasMaxLength(50)
  672. .HasColumnType("nvarchar(50)");
  673. b.Property<DateTime>("UPDATETIME")
  674. .HasColumnType("datetime2");
  675. b.Property<string>("UPDATEUSER")
  676. .IsRequired()
  677. .HasMaxLength(50)
  678. .HasColumnType("nvarchar(50)");
  679. b.Property<byte[]>("VER")
  680. .IsConcurrencyToken()
  681. .ValueGeneratedOnAddOrUpdate()
  682. .HasColumnType("rowversion");
  683. b.HasKey("CODE");
  684. b.ToTable("WCS_DEVICE");
  685. });
  686. modelBuilder.Entity("WCS.Entity.WCS_DEVICEPROTOCOL", b =>
  687. {
  688. b.Property<int>("ID")
  689. .ValueGeneratedOnAdd()
  690. .HasColumnType("int")
  691. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  692. b.Property<string>("DBCODE")
  693. .HasColumnType("nvarchar(20)");
  694. b.Property<string>("DEVICECODE")
  695. .IsRequired()
  696. .HasColumnType("nvarchar(50)");
  697. b.Property<bool>("ENABLED")
  698. .HasColumnType("bit");
  699. b.Property<short>("POSITION")
  700. .HasColumnType("smallint");
  701. b.Property<DateTime>("UPDATETIME")
  702. .HasColumnType("datetime2");
  703. b.Property<string>("UPDATEUSER")
  704. .IsRequired()
  705. .HasMaxLength(50)
  706. .HasColumnType("nvarchar(50)");
  707. b.Property<byte[]>("VER")
  708. .IsConcurrencyToken()
  709. .ValueGeneratedOnAddOrUpdate()
  710. .HasColumnType("rowversion");
  711. b.HasKey("ID");
  712. b.HasIndex("DBCODE");
  713. b.HasIndex("DEVICECODE");
  714. b.ToTable("WCS_DEVICEPROTOCOL");
  715. });
  716. modelBuilder.Entity("WCS.Entity.WCS_EXCEPTION", b =>
  717. {
  718. b.Property<int>("ID")
  719. .ValueGeneratedOnAdd()
  720. .HasColumnType("int")
  721. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  722. b.Property<bool>("ENABLED")
  723. .HasColumnType("bit");
  724. b.Property<string>("MSG")
  725. .HasMaxLength(1000)
  726. .HasColumnType("nvarchar(1000)");
  727. b.Property<DateTime>("STARTTIME")
  728. .HasColumnType("datetime2");
  729. b.Property<int>("TIMES")
  730. .HasColumnType("int");
  731. b.Property<DateTime>("UPDATETIME")
  732. .HasColumnType("datetime2");
  733. b.Property<string>("UPDATEUSER")
  734. .IsRequired()
  735. .HasMaxLength(50)
  736. .HasColumnType("nvarchar(50)");
  737. b.Property<byte[]>("VER")
  738. .IsConcurrencyToken()
  739. .ValueGeneratedOnAddOrUpdate()
  740. .HasColumnType("rowversion");
  741. b.HasKey("ID");
  742. b.ToTable("WCS_EXCEPTION");
  743. });
  744. modelBuilder.Entity("WCS.Entity.WCS_PLC", b =>
  745. {
  746. b.Property<string>("CODE")
  747. .HasMaxLength(20)
  748. .HasColumnType("nvarchar(20)");
  749. b.Property<bool>("ENABLED")
  750. .HasColumnType("bit");
  751. b.Property<string>("IP")
  752. .HasMaxLength(20)
  753. .HasColumnType("nvarchar(20)");
  754. b.Property<string>("MODEL")
  755. .HasMaxLength(10)
  756. .HasColumnType("nvarchar(10)");
  757. b.Property<string>("NAME")
  758. .HasMaxLength(20)
  759. .HasColumnType("nvarchar(20)");
  760. b.Property<int>("PORT")
  761. .HasColumnType("int");
  762. b.Property<int>("RACK")
  763. .HasColumnType("int");
  764. b.Property<int>("SLOT")
  765. .HasColumnType("int");
  766. b.Property<int>("TYPE")
  767. .HasColumnType("int");
  768. b.Property<DateTime>("UPDATETIME")
  769. .HasColumnType("datetime2");
  770. b.Property<string>("UPDATEUSER")
  771. .IsRequired()
  772. .HasMaxLength(50)
  773. .HasColumnType("nvarchar(50)");
  774. b.Property<byte[]>("VER")
  775. .IsConcurrencyToken()
  776. .ValueGeneratedOnAddOrUpdate()
  777. .HasColumnType("rowversion");
  778. b.HasKey("CODE");
  779. b.ToTable("WCS_PLC");
  780. });
  781. modelBuilder.Entity("WCS.Entity.WCS_TASK", b =>
  782. {
  783. b.Property<int>("ID")
  784. .ValueGeneratedOnAdd()
  785. .HasColumnType("int")
  786. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  787. b.Property<string>("ADDRFROM")
  788. .HasMaxLength(20)
  789. .HasColumnType("nvarchar(20)");
  790. b.Property<string>("ADDRTO")
  791. .HasMaxLength(20)
  792. .HasColumnType("nvarchar(20)");
  793. b.Property<string>("BARCODE")
  794. .HasMaxLength(50)
  795. .HasColumnType("nvarchar(50)");
  796. b.Property<DateTime>("CREATETIME")
  797. .HasColumnType("datetime2");
  798. b.Property<string>("DEVICE")
  799. .HasMaxLength(20)
  800. .HasColumnType("nvarchar(20)");
  801. b.Property<bool>("ENABLED")
  802. .HasColumnType("bit");
  803. b.Property<DateTime?>("ENDTIME")
  804. .HasColumnType("datetime2");
  805. b.Property<int>("PALLETTYPE")
  806. .HasColumnType("int");
  807. b.Property<DateTime?>("STARTTIME")
  808. .HasColumnType("datetime2");
  809. b.Property<int>("STATUS")
  810. .HasColumnType("int");
  811. b.Property<int>("TUNNEL")
  812. .HasColumnType("int");
  813. b.Property<int>("TYPE")
  814. .HasColumnType("int");
  815. b.Property<DateTime>("UPDATETIME")
  816. .HasColumnType("datetime2");
  817. b.Property<string>("UPDATEUSER")
  818. .IsRequired()
  819. .HasMaxLength(50)
  820. .HasColumnType("nvarchar(50)");
  821. b.Property<int>("UPLOADED")
  822. .HasColumnType("int");
  823. b.Property<byte[]>("VER")
  824. .IsConcurrencyToken()
  825. .ValueGeneratedOnAddOrUpdate()
  826. .HasColumnType("rowversion");
  827. b.Property<int>("WMSTASK")
  828. .HasColumnType("int");
  829. b.HasKey("ID");
  830. b.ToTable("WCS_TASK");
  831. });
  832. modelBuilder.Entity("WCS.Entity.Protocol.WCS_BCR80", b =>
  833. {
  834. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  835. .WithMany()
  836. .HasForeignKey("DEVICECODE");
  837. b.Navigation("DEVICE");
  838. });
  839. modelBuilder.Entity("WCS.Entity.Protocol.WCS_RGV520", b =>
  840. {
  841. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  842. .WithMany()
  843. .HasForeignKey("DEVICECODE");
  844. b.Navigation("DEVICE");
  845. });
  846. modelBuilder.Entity("WCS.Entity.Protocol.WCS_RGV521", b =>
  847. {
  848. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  849. .WithMany()
  850. .HasForeignKey("DEVICECODE");
  851. b.Navigation("DEVICE");
  852. });
  853. modelBuilder.Entity("WCS.Entity.Protocol.WCS_RGV523", b =>
  854. {
  855. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  856. .WithMany()
  857. .HasForeignKey("DEVICECODE");
  858. b.Navigation("DEVICE");
  859. });
  860. modelBuilder.Entity("WCS.Entity.Protocol.WCS_SC520", b =>
  861. {
  862. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  863. .WithMany()
  864. .HasForeignKey("DEVICECODE");
  865. b.Navigation("DEVICE");
  866. });
  867. modelBuilder.Entity("WCS.Entity.Protocol.WCS_SC521", b =>
  868. {
  869. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  870. .WithMany()
  871. .HasForeignKey("DEVICECODE");
  872. b.Navigation("DEVICE");
  873. });
  874. modelBuilder.Entity("WCS.Entity.Protocol.WCS_SC537", b =>
  875. {
  876. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  877. .WithMany()
  878. .HasForeignKey("DEVICECODE");
  879. b.Navigation("DEVICE");
  880. });
  881. modelBuilder.Entity("WCS.Entity.Protocol.WCS_STATION520", b =>
  882. {
  883. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  884. .WithMany()
  885. .HasForeignKey("DEVICECODE");
  886. b.Navigation("DEVICE");
  887. });
  888. modelBuilder.Entity("WCS.Entity.Protocol.WCS_STATION521", b =>
  889. {
  890. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  891. .WithMany()
  892. .HasForeignKey("DEVICECODE");
  893. b.Navigation("DEVICE");
  894. });
  895. modelBuilder.Entity("WCS.Entity.Protocol.WCS_STATION523", b =>
  896. {
  897. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  898. .WithMany()
  899. .HasForeignKey("DEVICECODE");
  900. b.Navigation("DEVICE");
  901. });
  902. modelBuilder.Entity("WCS.Entity.WCS_DATABLOCK", b =>
  903. {
  904. b.HasOne("WCS.Entity.WCS_PLC", "PLC")
  905. .WithMany()
  906. .HasForeignKey("PLCCODE");
  907. b.Navigation("PLC");
  908. });
  909. modelBuilder.Entity("WCS.Entity.WCS_DEVICEPROTOCOL", b =>
  910. {
  911. b.HasOne("WCS.Entity.WCS_DATABLOCK", "DB")
  912. .WithMany()
  913. .HasForeignKey("DBCODE");
  914. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  915. .WithMany("PROTOCOLS")
  916. .HasForeignKey("DEVICECODE")
  917. .OnDelete(DeleteBehavior.Cascade)
  918. .IsRequired();
  919. b.Navigation("DB");
  920. b.Navigation("DEVICE");
  921. });
  922. modelBuilder.Entity("WCS.Entity.WCS_DEVICE", b =>
  923. {
  924. b.Navigation("PROTOCOLS");
  925. });
  926. #pragma warning restore 612, 618
  927. }
  928. }
  929. }