20220411054310_10.Designer.cs 68 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012
  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. #nullable disable
  10. namespace WCS.Service.Migrations
  11. {
  12. [DbContext(typeof(WCSDB))]
  13. [Migration("20220411054310_10")]
  14. partial class _10
  15. {
  16. protected override void BuildTargetModel(ModelBuilder modelBuilder)
  17. {
  18. #pragma warning disable 612, 618
  19. modelBuilder
  20. .HasAnnotation("ProductVersion", "6.0.3")
  21. .HasAnnotation("Relational:MaxIdentifierLength", 128);
  22. SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1);
  23. modelBuilder.Entity("WCS.Entity.Protocol.BCR.WCS_BCR80", b =>
  24. {
  25. b.Property<int>("ID")
  26. .ValueGeneratedOnAdd()
  27. .HasColumnType("int")
  28. .HasColumnOrder(0);
  29. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"), 1L, 1);
  30. b.Property<string>("Content")
  31. .HasMaxLength(130)
  32. .HasColumnType("nvarchar(130)");
  33. b.Property<string>("DEVICECODE")
  34. .HasColumnType("nvarchar(50)");
  35. b.Property<bool>("ENABLED")
  36. .HasColumnType("bit");
  37. b.Property<DateTime>("FRAME")
  38. .HasColumnType("datetime2");
  39. b.Property<bool>("ISLAST")
  40. .HasColumnType("bit");
  41. b.Property<DateTime>("UPDATETIME")
  42. .HasColumnType("datetime2");
  43. b.Property<string>("UPDATEUSER")
  44. .IsRequired()
  45. .HasMaxLength(50)
  46. .HasColumnType("nvarchar(50)");
  47. b.Property<byte[]>("VER")
  48. .IsConcurrencyToken()
  49. .ValueGeneratedOnAddOrUpdate()
  50. .HasColumnType("rowversion");
  51. b.Property<int>("WCSVERSION")
  52. .HasColumnType("int");
  53. b.HasKey("ID");
  54. b.HasIndex("DEVICECODE");
  55. b.ToTable("WCS_BCR80");
  56. });
  57. modelBuilder.Entity("WCS.Entity.Protocol.Station.WCS_Station520", b =>
  58. {
  59. b.Property<int>("ID")
  60. .ValueGeneratedOnAdd()
  61. .HasColumnType("int")
  62. .HasColumnOrder(0);
  63. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"), 1L, 1);
  64. b.Property<short>("CmdType")
  65. .HasColumnType("smallint");
  66. b.Property<string>("DEVICECODE")
  67. .HasColumnType("nvarchar(50)");
  68. b.Property<bool>("ENABLED")
  69. .HasColumnType("bit");
  70. b.Property<DateTime>("FRAME")
  71. .HasColumnType("datetime2");
  72. b.Property<short>("GoodsSize")
  73. .HasColumnType("smallint");
  74. b.Property<int>("Goodscode")
  75. .HasColumnType("int");
  76. b.Property<short>("Goodsend")
  77. .HasColumnType("smallint");
  78. b.Property<short>("Goodsnum")
  79. .HasColumnType("smallint");
  80. b.Property<short>("Goodsstart")
  81. .HasColumnType("smallint");
  82. b.Property<bool>("ISLAST")
  83. .HasColumnType("bit");
  84. b.Property<int>("Istation521Status")
  85. .HasColumnType("int");
  86. b.Property<short>("Request")
  87. .HasColumnType("smallint");
  88. b.Property<int>("Tasknum")
  89. .HasColumnType("int");
  90. b.Property<DateTime>("UPDATETIME")
  91. .HasColumnType("datetime2");
  92. b.Property<string>("UPDATEUSER")
  93. .IsRequired()
  94. .HasMaxLength(50)
  95. .HasColumnType("nvarchar(50)");
  96. b.Property<byte[]>("VER")
  97. .IsConcurrencyToken()
  98. .ValueGeneratedOnAddOrUpdate()
  99. .HasColumnType("rowversion");
  100. b.Property<short>("VoucherNo")
  101. .HasColumnType("smallint");
  102. b.Property<int>("WCSVERSION")
  103. .HasColumnType("int");
  104. b.HasKey("ID");
  105. b.HasIndex("DEVICECODE");
  106. b.ToTable("WCS_STATION520");
  107. });
  108. modelBuilder.Entity("WCS.Entity.Protocol.Station.WCS_Station521", b =>
  109. {
  110. b.Property<int>("ID")
  111. .ValueGeneratedOnAdd()
  112. .HasColumnType("int")
  113. .HasColumnOrder(0);
  114. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"), 1L, 1);
  115. b.Property<short>("CmdType")
  116. .HasColumnType("smallint");
  117. b.Property<string>("DEVICECODE")
  118. .HasColumnType("nvarchar(50)");
  119. b.Property<bool>("ENABLED")
  120. .HasColumnType("bit");
  121. b.Property<DateTime>("FRAME")
  122. .HasColumnType("datetime2");
  123. b.Property<short>("GoodsSize")
  124. .HasColumnType("smallint");
  125. b.Property<int>("Goodscode")
  126. .HasColumnType("int");
  127. b.Property<short>("Goodsend")
  128. .HasColumnType("smallint");
  129. b.Property<short>("Goodsnum")
  130. .HasColumnType("smallint");
  131. b.Property<short>("Goodsstart")
  132. .HasColumnType("smallint");
  133. b.Property<bool>("ISLAST")
  134. .HasColumnType("bit");
  135. b.Property<int>("Istation521Status")
  136. .HasColumnType("int");
  137. b.Property<short>("Request")
  138. .HasColumnType("smallint");
  139. b.Property<int>("Tasknum")
  140. .HasColumnType("int");
  141. b.Property<DateTime>("UPDATETIME")
  142. .HasColumnType("datetime2");
  143. b.Property<string>("UPDATEUSER")
  144. .IsRequired()
  145. .HasMaxLength(50)
  146. .HasColumnType("nvarchar(50)");
  147. b.Property<byte[]>("VER")
  148. .IsConcurrencyToken()
  149. .ValueGeneratedOnAddOrUpdate()
  150. .HasColumnType("rowversion");
  151. b.Property<short>("VoucherNo")
  152. .HasColumnType("smallint");
  153. b.Property<int>("WCSVERSION")
  154. .HasColumnType("int");
  155. b.HasKey("ID");
  156. b.HasIndex("DEVICECODE");
  157. b.ToTable("WCS_STATION521");
  158. });
  159. modelBuilder.Entity("WCS.Entity.Protocol.Station.WCS_Station523", b =>
  160. {
  161. b.Property<int>("ID")
  162. .ValueGeneratedOnAdd()
  163. .HasColumnType("int")
  164. .HasColumnOrder(0);
  165. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"), 1L, 1);
  166. b.Property<int>("Alarm")
  167. .HasColumnType("int");
  168. b.Property<string>("DEVICECODE")
  169. .HasColumnType("nvarchar(50)");
  170. b.Property<bool>("ENABLED")
  171. .HasColumnType("bit");
  172. b.Property<DateTime>("FRAME")
  173. .HasColumnType("datetime2");
  174. b.Property<bool>("ISLAST")
  175. .HasColumnType("bit");
  176. b.Property<short>("RES")
  177. .HasColumnType("smallint");
  178. b.Property<float>("RunTime")
  179. .HasColumnType("real");
  180. b.Property<int>("Status")
  181. .HasColumnType("int");
  182. b.Property<DateTime>("UPDATETIME")
  183. .HasColumnType("datetime2");
  184. b.Property<string>("UPDATEUSER")
  185. .IsRequired()
  186. .HasMaxLength(50)
  187. .HasColumnType("nvarchar(50)");
  188. b.Property<byte[]>("VER")
  189. .IsConcurrencyToken()
  190. .ValueGeneratedOnAddOrUpdate()
  191. .HasColumnType("rowversion");
  192. b.Property<int>("WCSVERSION")
  193. .HasColumnType("int");
  194. b.HasKey("ID");
  195. b.HasIndex("DEVICECODE");
  196. b.ToTable("WCS_STATION523");
  197. });
  198. modelBuilder.Entity("WCS.Entity.Protocol.WCS_AGVTask", b =>
  199. {
  200. b.Property<int>("ID")
  201. .ValueGeneratedOnAdd()
  202. .HasColumnType("int");
  203. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"), 1L, 1);
  204. b.Property<string>("AGVID")
  205. .HasMaxLength(20)
  206. .HasColumnType("nvarchar(20)");
  207. b.Property<int>("AGVStatus")
  208. .HasColumnType("int");
  209. b.Property<DateTime?>("AGVUpdateTime")
  210. .HasColumnType("datetime2");
  211. b.Property<DateTime>("CreateTime")
  212. .HasColumnType("datetime2");
  213. b.Property<string>("Position")
  214. .IsRequired()
  215. .HasMaxLength(20)
  216. .HasColumnType("nvarchar(20)");
  217. b.Property<string>("Station")
  218. .HasMaxLength(20)
  219. .HasColumnType("nvarchar(20)");
  220. b.Property<int>("Status")
  221. .HasColumnType("int");
  222. b.Property<int>("TaskType")
  223. .HasColumnType("int");
  224. b.Property<DateTime?>("UpdateTime")
  225. .HasColumnType("datetime2");
  226. b.Property<int>("Workshop")
  227. .HasColumnType("int");
  228. b.HasKey("ID");
  229. b.ToTable("WCS_AGVTask");
  230. });
  231. modelBuilder.Entity("WCS.Entity.Protocol.WCS_MAPPINGENTRY", b =>
  232. {
  233. b.Property<int>("MEP_ID")
  234. .ValueGeneratedOnAdd()
  235. .HasColumnType("int");
  236. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("MEP_ID"), 1L, 1);
  237. b.Property<bool>("MEP_ISSTOP")
  238. .HasColumnType("bit");
  239. b.Property<string>("MEP_MAPPINGCHNAME")
  240. .IsRequired()
  241. .HasMaxLength(50)
  242. .HasColumnType("nvarchar(50)");
  243. b.Property<int>("MEP_MAPPINGNO")
  244. .HasColumnType("int");
  245. b.Property<string>("MEP_MAPPINGTYPE")
  246. .IsRequired()
  247. .HasMaxLength(50)
  248. .HasColumnType("nvarchar(50)");
  249. b.HasKey("MEP_ID");
  250. b.ToTable("WCS_MAPPINGENTRY");
  251. });
  252. modelBuilder.Entity("WCS.Entity.Protocol.WCS_RGV520", b =>
  253. {
  254. b.Property<int>("ID")
  255. .ValueGeneratedOnAdd()
  256. .HasColumnType("int")
  257. .HasColumnOrder(0);
  258. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"), 1L, 1);
  259. b.Property<string>("DEVICECODE")
  260. .HasColumnType("nvarchar(50)");
  261. b.Property<short>("DestPosition_1")
  262. .HasColumnType("smallint");
  263. b.Property<short>("DestPosition_2")
  264. .HasColumnType("smallint");
  265. b.Property<bool>("ENABLED")
  266. .HasColumnType("bit");
  267. b.Property<DateTime>("FRAME")
  268. .HasColumnType("datetime2");
  269. b.Property<bool>("ISLAST")
  270. .HasColumnType("bit");
  271. b.Property<short>("Priority_1")
  272. .HasColumnType("smallint");
  273. b.Property<short>("Priority_2")
  274. .HasColumnType("smallint");
  275. b.Property<short>("RES1_1")
  276. .HasColumnType("smallint");
  277. b.Property<short>("RES1_2")
  278. .HasColumnType("smallint");
  279. b.Property<short>("RES2_1")
  280. .HasColumnType("smallint");
  281. b.Property<short>("RES2_2")
  282. .HasColumnType("smallint");
  283. b.Property<short>("StartPosition_1")
  284. .HasColumnType("smallint");
  285. b.Property<short>("StartPosition_2")
  286. .HasColumnType("smallint");
  287. b.Property<int>("TaskID_1")
  288. .HasColumnType("int");
  289. b.Property<int>("TaskID_2")
  290. .HasColumnType("int");
  291. b.Property<short>("TaskType_1")
  292. .HasColumnType("smallint");
  293. b.Property<short>("TaskType_2")
  294. .HasColumnType("smallint");
  295. b.Property<int>("Trigger_1")
  296. .HasColumnType("int");
  297. b.Property<int>("Trigger_2")
  298. .HasColumnType("int");
  299. b.Property<DateTime>("UPDATETIME")
  300. .HasColumnType("datetime2");
  301. b.Property<string>("UPDATEUSER")
  302. .IsRequired()
  303. .HasMaxLength(50)
  304. .HasColumnType("nvarchar(50)");
  305. b.Property<byte[]>("VER")
  306. .IsConcurrencyToken()
  307. .ValueGeneratedOnAddOrUpdate()
  308. .HasColumnType("rowversion");
  309. b.Property<int>("WCSVERSION")
  310. .HasColumnType("int");
  311. b.HasKey("ID");
  312. b.HasIndex("DEVICECODE");
  313. b.ToTable("WCS_RGV520");
  314. });
  315. modelBuilder.Entity("WCS.Entity.Protocol.WCS_RGV521", b =>
  316. {
  317. b.Property<int>("ID")
  318. .ValueGeneratedOnAdd()
  319. .HasColumnType("int")
  320. .HasColumnOrder(0);
  321. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"), 1L, 1);
  322. b.Property<string>("DEVICECODE")
  323. .HasColumnType("nvarchar(50)");
  324. b.Property<short>("DestPosition_1")
  325. .HasColumnType("smallint");
  326. b.Property<short>("DestPosition_2")
  327. .HasColumnType("smallint");
  328. b.Property<bool>("ENABLED")
  329. .HasColumnType("bit");
  330. b.Property<DateTime>("FRAME")
  331. .HasColumnType("datetime2");
  332. b.Property<bool>("Finish_1")
  333. .HasColumnType("bit");
  334. b.Property<bool>("Finish_2")
  335. .HasColumnType("bit");
  336. b.Property<bool>("ISLAST")
  337. .HasColumnType("bit");
  338. b.Property<float>("Mileage")
  339. .HasColumnType("real");
  340. b.Property<bool>("PH_Status_1")
  341. .HasColumnType("bit");
  342. b.Property<bool>("PH_Status_2")
  343. .HasColumnType("bit");
  344. b.Property<short>("PRIORITY_1")
  345. .HasColumnType("smallint");
  346. b.Property<short>("PRIORITY_2")
  347. .HasColumnType("smallint");
  348. b.Property<float>("Position")
  349. .HasColumnType("real");
  350. b.Property<short>("RES1_1")
  351. .HasColumnType("smallint");
  352. b.Property<short>("RES1_2")
  353. .HasColumnType("smallint");
  354. b.Property<short>("RES2_1")
  355. .HasColumnType("smallint");
  356. b.Property<short>("RES2_2")
  357. .HasColumnType("smallint");
  358. b.Property<bool>("RES3_1")
  359. .HasColumnType("bit");
  360. b.Property<bool>("RES3_2")
  361. .HasColumnType("bit");
  362. b.Property<bool>("RES4_1")
  363. .HasColumnType("bit");
  364. b.Property<bool>("RES4_2")
  365. .HasColumnType("bit");
  366. b.Property<bool>("RES5_1")
  367. .HasColumnType("bit");
  368. b.Property<bool>("RES5_2")
  369. .HasColumnType("bit");
  370. b.Property<bool>("RES6_1")
  371. .HasColumnType("bit");
  372. b.Property<bool>("RES6_2")
  373. .HasColumnType("bit");
  374. b.Property<bool>("RES7_1")
  375. .HasColumnType("bit");
  376. b.Property<bool>("RES7_2")
  377. .HasColumnType("bit");
  378. b.Property<float>("Runtime")
  379. .HasColumnType("real");
  380. b.Property<short>("StartPosition_1")
  381. .HasColumnType("smallint");
  382. b.Property<short>("StartPosition_2")
  383. .HasColumnType("smallint");
  384. b.Property<short>("SystemStatus")
  385. .HasColumnType("smallint");
  386. b.Property<int>("TaskID_1")
  387. .HasColumnType("int");
  388. b.Property<int>("TaskID_2")
  389. .HasColumnType("int");
  390. b.Property<short>("TaskType_1")
  391. .HasColumnType("smallint");
  392. b.Property<short>("TaskType_2")
  393. .HasColumnType("smallint");
  394. b.Property<bool>("ToSition_1")
  395. .HasColumnType("bit");
  396. b.Property<bool>("ToSition_2")
  397. .HasColumnType("bit");
  398. b.Property<int>("Trigger_1")
  399. .HasColumnType("int");
  400. b.Property<int>("Trigger_2")
  401. .HasColumnType("int");
  402. b.Property<DateTime>("UPDATETIME")
  403. .HasColumnType("datetime2");
  404. b.Property<string>("UPDATEUSER")
  405. .IsRequired()
  406. .HasMaxLength(50)
  407. .HasColumnType("nvarchar(50)");
  408. b.Property<byte[]>("VER")
  409. .IsConcurrencyToken()
  410. .ValueGeneratedOnAddOrUpdate()
  411. .HasColumnType("rowversion");
  412. b.Property<int>("WCSVERSION")
  413. .HasColumnType("int");
  414. b.Property<short>("WorkMode")
  415. .HasColumnType("smallint");
  416. b.HasKey("ID");
  417. b.HasIndex("DEVICECODE");
  418. b.ToTable("WCS_RGV521");
  419. });
  420. modelBuilder.Entity("WCS.Entity.Protocol.WCS_RGV523", b =>
  421. {
  422. b.Property<int>("ID")
  423. .ValueGeneratedOnAdd()
  424. .HasColumnType("int")
  425. .HasColumnOrder(0);
  426. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"), 1L, 1);
  427. b.Property<string>("DEVICECODE")
  428. .HasColumnType("nvarchar(50)");
  429. b.Property<bool>("ENABLED")
  430. .HasColumnType("bit");
  431. b.Property<DateTime>("FRAME")
  432. .HasColumnType("datetime2");
  433. b.Property<int>("Fault")
  434. .HasColumnType("int");
  435. b.Property<int>("Fault1")
  436. .HasColumnType("int");
  437. b.Property<int>("Fault2")
  438. .HasColumnType("int");
  439. b.Property<bool>("ISLAST")
  440. .HasColumnType("bit");
  441. b.Property<int>("Status")
  442. .HasColumnType("int");
  443. b.Property<int>("Status1")
  444. .HasColumnType("int");
  445. b.Property<int>("Status2")
  446. .HasColumnType("int");
  447. b.Property<DateTime>("UPDATETIME")
  448. .HasColumnType("datetime2");
  449. b.Property<string>("UPDATEUSER")
  450. .IsRequired()
  451. .HasMaxLength(50)
  452. .HasColumnType("nvarchar(50)");
  453. b.Property<byte[]>("VER")
  454. .IsConcurrencyToken()
  455. .ValueGeneratedOnAddOrUpdate()
  456. .HasColumnType("rowversion");
  457. b.Property<int>("WCSVERSION")
  458. .HasColumnType("int");
  459. b.HasKey("ID");
  460. b.HasIndex("DEVICECODE");
  461. b.ToTable("WCS_RGV523");
  462. });
  463. modelBuilder.Entity("WCS.Entity.Protocol.WCS_SRM520", b =>
  464. {
  465. b.Property<int>("ID")
  466. .ValueGeneratedOnAdd()
  467. .HasColumnType("int")
  468. .HasColumnOrder(0);
  469. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"), 1L, 1);
  470. b.Property<string>("DEVICECODE")
  471. .HasColumnType("nvarchar(50)");
  472. b.Property<short>("ECol_1")
  473. .HasColumnType("smallint");
  474. b.Property<short>("ECol_2")
  475. .HasColumnType("smallint");
  476. b.Property<short>("EDepth_1")
  477. .HasColumnType("smallint");
  478. b.Property<short>("EDepth_2")
  479. .HasColumnType("smallint");
  480. b.Property<short>("ELayer_1")
  481. .HasColumnType("smallint");
  482. b.Property<short>("ELayer_2")
  483. .HasColumnType("smallint");
  484. b.Property<short>("ELine_1")
  485. .HasColumnType("smallint");
  486. b.Property<short>("ELine_2")
  487. .HasColumnType("smallint");
  488. b.Property<bool>("ENABLED")
  489. .HasColumnType("bit");
  490. b.Property<DateTime>("FRAME")
  491. .HasColumnType("datetime2");
  492. b.Property<short>("FinishedACK_1")
  493. .HasColumnType("smallint");
  494. b.Property<short>("FinishedACK_2")
  495. .HasColumnType("smallint");
  496. b.Property<short>("GoodsType_1")
  497. .HasColumnType("smallint");
  498. b.Property<short>("GoodsType_2")
  499. .HasColumnType("smallint");
  500. b.Property<short>("Handshake_1")
  501. .HasColumnType("smallint");
  502. b.Property<short>("Handshake_2")
  503. .HasColumnType("smallint");
  504. b.Property<bool>("ISLAST")
  505. .HasColumnType("bit");
  506. b.Property<short>("RES1_1")
  507. .HasColumnType("smallint");
  508. b.Property<short>("RES1_2")
  509. .HasColumnType("smallint");
  510. b.Property<short>("RES2_1")
  511. .HasColumnType("smallint");
  512. b.Property<short>("RES2_2")
  513. .HasColumnType("smallint");
  514. b.Property<short>("RES3_1")
  515. .HasColumnType("smallint");
  516. b.Property<short>("RES3_2")
  517. .HasColumnType("smallint");
  518. b.Property<short>("RES4_1")
  519. .HasColumnType("smallint");
  520. b.Property<short>("RES4_2")
  521. .HasColumnType("smallint");
  522. b.Property<short>("SCSpeedMode_2")
  523. .HasColumnType("smallint");
  524. b.Property<short>("SCol_1")
  525. .HasColumnType("smallint");
  526. b.Property<short>("SCol_2")
  527. .HasColumnType("smallint");
  528. b.Property<short>("SDepth_1")
  529. .HasColumnType("smallint");
  530. b.Property<short>("SDepth_2")
  531. .HasColumnType("smallint");
  532. b.Property<short>("SLayer_1")
  533. .HasColumnType("smallint");
  534. b.Property<short>("SLayer_2")
  535. .HasColumnType("smallint");
  536. b.Property<short>("SLine_1")
  537. .HasColumnType("smallint");
  538. b.Property<short>("SLine_2")
  539. .HasColumnType("smallint");
  540. b.Property<short>("SpeedMode_1")
  541. .HasColumnType("smallint");
  542. b.Property<int>("TaskID_1")
  543. .HasColumnType("int");
  544. b.Property<int>("TaskID_2")
  545. .HasColumnType("int");
  546. b.Property<DateTime>("UPDATETIME")
  547. .HasColumnType("datetime2");
  548. b.Property<string>("UPDATEUSER")
  549. .IsRequired()
  550. .HasMaxLength(50)
  551. .HasColumnType("nvarchar(50)");
  552. b.Property<byte[]>("VER")
  553. .IsConcurrencyToken()
  554. .ValueGeneratedOnAddOrUpdate()
  555. .HasColumnType("rowversion");
  556. b.Property<short>("VoucherNo_1")
  557. .HasColumnType("smallint");
  558. b.Property<short>("VoucherNo_2")
  559. .HasColumnType("smallint");
  560. b.Property<int>("WCSVERSION")
  561. .HasColumnType("int");
  562. b.HasKey("ID");
  563. b.HasIndex("DEVICECODE");
  564. b.ToTable("WCS_SRM520");
  565. });
  566. modelBuilder.Entity("WCS.Entity.Protocol.WCS_SRM521", b =>
  567. {
  568. b.Property<int>("ID")
  569. .ValueGeneratedOnAdd()
  570. .HasColumnType("int")
  571. .HasColumnOrder(0);
  572. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"), 1L, 1);
  573. b.Property<short>("Alarm")
  574. .HasColumnType("smallint");
  575. b.Property<short>("Col_1")
  576. .HasColumnType("smallint");
  577. b.Property<short>("Col_2")
  578. .HasColumnType("smallint");
  579. b.Property<string>("DEVICECODE")
  580. .HasColumnType("nvarchar(50)");
  581. b.Property<short>("ECol_1")
  582. .HasColumnType("smallint");
  583. b.Property<short>("ECol_2")
  584. .HasColumnType("smallint");
  585. b.Property<short>("EDepth_1")
  586. .HasColumnType("smallint");
  587. b.Property<short>("EDepth_2")
  588. .HasColumnType("smallint");
  589. b.Property<short>("ELayer_1")
  590. .HasColumnType("smallint");
  591. b.Property<short>("ELayer_2")
  592. .HasColumnType("smallint");
  593. b.Property<short>("ELine_1")
  594. .HasColumnType("smallint");
  595. b.Property<short>("ELine_2")
  596. .HasColumnType("smallint");
  597. b.Property<bool>("ENABLED")
  598. .HasColumnType("bit");
  599. b.Property<DateTime>("FRAME")
  600. .HasColumnType("datetime2");
  601. b.Property<int>("FinishedTask_1")
  602. .HasColumnType("int");
  603. b.Property<int>("FinishedTask_2")
  604. .HasColumnType("int");
  605. b.Property<int>("ForkPos_1")
  606. .HasColumnType("int");
  607. b.Property<int>("ForkPos_2")
  608. .HasColumnType("int");
  609. b.Property<long>("ForkStatus_1")
  610. .HasColumnType("bigint");
  611. b.Property<long>("ForkStatus_2")
  612. .HasColumnType("bigint");
  613. b.Property<short>("GoodsType_1")
  614. .HasColumnType("smallint");
  615. b.Property<short>("GoodsType_2")
  616. .HasColumnType("smallint");
  617. b.Property<bool>("ISLAST")
  618. .HasColumnType("bit");
  619. b.Property<short>("Layer_1")
  620. .HasColumnType("smallint");
  621. b.Property<short>("Layer_2")
  622. .HasColumnType("smallint");
  623. b.Property<int>("LiftPos_1")
  624. .HasColumnType("int");
  625. b.Property<int>("LiftPos_2")
  626. .HasColumnType("int");
  627. b.Property<short>("Line_1")
  628. .HasColumnType("smallint");
  629. b.Property<short>("Line_2")
  630. .HasColumnType("smallint");
  631. b.Property<short>("Mode_1")
  632. .HasColumnType("smallint");
  633. b.Property<short>("Mode_2")
  634. .HasColumnType("smallint");
  635. b.Property<short>("RES10_1")
  636. .HasColumnType("smallint");
  637. b.Property<short>("RES10_2")
  638. .HasColumnType("smallint");
  639. b.Property<int>("RES11_1")
  640. .HasColumnType("int");
  641. b.Property<int>("RES11_2")
  642. .HasColumnType("int");
  643. b.Property<int>("RES12_1")
  644. .HasColumnType("int");
  645. b.Property<int>("RES12_2")
  646. .HasColumnType("int");
  647. b.Property<int>("RES13_1")
  648. .HasColumnType("int");
  649. b.Property<int>("RES13_2")
  650. .HasColumnType("int");
  651. b.Property<int>("RES14_1")
  652. .HasColumnType("int");
  653. b.Property<int>("RES14_2")
  654. .HasColumnType("int");
  655. b.Property<short>("RES9_1")
  656. .HasColumnType("smallint");
  657. b.Property<short>("RES9_2")
  658. .HasColumnType("smallint");
  659. b.Property<float>("Runtime")
  660. .HasColumnType("real");
  661. b.Property<float>("Runtime_1")
  662. .HasColumnType("real");
  663. b.Property<float>("Runtime_2")
  664. .HasColumnType("real");
  665. b.Property<short>("SCol_1")
  666. .HasColumnType("smallint");
  667. b.Property<short>("SCol_2")
  668. .HasColumnType("smallint");
  669. b.Property<short>("SDepth_1")
  670. .HasColumnType("smallint");
  671. b.Property<short>("SDepth_2")
  672. .HasColumnType("smallint");
  673. b.Property<short>("SLayer_1")
  674. .HasColumnType("smallint");
  675. b.Property<short>("SLayer_2")
  676. .HasColumnType("smallint");
  677. b.Property<short>("SLine_1")
  678. .HasColumnType("smallint");
  679. b.Property<short>("SLine_2")
  680. .HasColumnType("smallint");
  681. b.Property<short>("SRMMode")
  682. .HasColumnType("smallint");
  683. b.Property<short>("SRMStatus")
  684. .HasColumnType("smallint");
  685. b.Property<short>("Status_1")
  686. .HasColumnType("smallint");
  687. b.Property<short>("Status_2")
  688. .HasColumnType("smallint");
  689. b.Property<int>("TaskID_1")
  690. .HasColumnType("int");
  691. b.Property<int>("TaskID_2")
  692. .HasColumnType("int");
  693. b.Property<float>("TotalKM")
  694. .HasColumnType("real");
  695. b.Property<float>("TotalKM_1")
  696. .HasColumnType("real");
  697. b.Property<float>("TotalKM_2")
  698. .HasColumnType("real");
  699. b.Property<int>("TravelPos_1")
  700. .HasColumnType("int");
  701. b.Property<int>("TravelPos_2")
  702. .HasColumnType("int");
  703. b.Property<DateTime>("UPDATETIME")
  704. .HasColumnType("datetime2");
  705. b.Property<string>("UPDATEUSER")
  706. .IsRequired()
  707. .HasMaxLength(50)
  708. .HasColumnType("nvarchar(50)");
  709. b.Property<byte[]>("VER")
  710. .IsConcurrencyToken()
  711. .ValueGeneratedOnAddOrUpdate()
  712. .HasColumnType("rowversion");
  713. b.Property<short>("VoucherNo_1")
  714. .HasColumnType("smallint");
  715. b.Property<short>("VoucherNo_2")
  716. .HasColumnType("smallint");
  717. b.Property<int>("WCSVERSION")
  718. .HasColumnType("int");
  719. b.HasKey("ID");
  720. b.HasIndex("DEVICECODE");
  721. b.ToTable("WCS_SRM521");
  722. });
  723. modelBuilder.Entity("WCS.Entity.Protocol.WCS_SRM537", b =>
  724. {
  725. b.Property<int>("ID")
  726. .ValueGeneratedOnAdd()
  727. .HasColumnType("int")
  728. .HasColumnOrder(0);
  729. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"), 1L, 1);
  730. b.Property<string>("DEVICECODE")
  731. .HasColumnType("nvarchar(50)");
  732. b.Property<bool>("ENABLED")
  733. .HasColumnType("bit");
  734. b.Property<DateTime>("FRAME")
  735. .HasColumnType("datetime2");
  736. b.Property<bool>("ISLAST")
  737. .HasColumnType("bit");
  738. b.Property<decimal>("SCAlarm")
  739. .HasColumnType("decimal(20,0)");
  740. b.Property<DateTime>("UPDATETIME")
  741. .HasColumnType("datetime2");
  742. b.Property<string>("UPDATEUSER")
  743. .IsRequired()
  744. .HasMaxLength(50)
  745. .HasColumnType("nvarchar(50)");
  746. b.Property<byte[]>("VER")
  747. .IsConcurrencyToken()
  748. .ValueGeneratedOnAddOrUpdate()
  749. .HasColumnType("rowversion");
  750. b.Property<int>("WCSVERSION")
  751. .HasColumnType("int");
  752. b.HasKey("ID");
  753. b.HasIndex("DEVICECODE");
  754. b.ToTable("WCS_SRM537");
  755. });
  756. modelBuilder.Entity("WCS.Entity.Protocol.WCS_StatusLog", b =>
  757. {
  758. b.Property<int>("ID")
  759. .ValueGeneratedOnAdd()
  760. .HasColumnType("int")
  761. .HasColumnOrder(0);
  762. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"), 1L, 1);
  763. b.Property<bool>("ENABLED")
  764. .HasColumnType("bit");
  765. b.Property<int>("NewStatus")
  766. .HasColumnType("int");
  767. b.Property<string>("Node")
  768. .HasColumnType("nvarchar(max)");
  769. b.Property<int>("OldStatus")
  770. .HasColumnType("int");
  771. b.Property<DateTime>("UPDATETIME")
  772. .HasColumnType("datetime2");
  773. b.Property<string>("UPDATEUSER")
  774. .IsRequired()
  775. .HasMaxLength(50)
  776. .HasColumnType("nvarchar(50)");
  777. b.Property<byte[]>("VER")
  778. .IsConcurrencyToken()
  779. .ValueGeneratedOnAddOrUpdate()
  780. .HasColumnType("rowversion");
  781. b.Property<int>("WCS_TASKID")
  782. .HasColumnType("int");
  783. b.Property<string>("msg")
  784. .HasColumnType("nvarchar(max)");
  785. b.Property<int>("upStatus")
  786. .HasColumnType("int");
  787. b.HasKey("ID");
  788. b.ToTable("WCS_StatusLog");
  789. });
  790. modelBuilder.Entity("WCS.Entity.Protocol.WCS_SystemConfig", b =>
  791. {
  792. b.Property<int>("ID")
  793. .ValueGeneratedOnAdd()
  794. .HasColumnType("int")
  795. .HasColumnOrder(0);
  796. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"), 1L, 1);
  797. b.Property<string>("Code")
  798. .HasColumnType("nvarchar(max)");
  799. b.Property<string>("DEVICECODE")
  800. .HasColumnType("nvarchar(max)");
  801. b.Property<string>("Describe")
  802. .HasColumnType("nvarchar(max)");
  803. b.Property<string>("Direction")
  804. .HasColumnType("nvarchar(max)");
  805. b.Property<bool>("ENABLED")
  806. .HasColumnType("bit");
  807. b.Property<string>("TUNNEL")
  808. .HasColumnType("nvarchar(max)");
  809. b.Property<DateTime>("UPDATETIME")
  810. .HasColumnType("datetime2");
  811. b.Property<string>("UPDATEUSER")
  812. .IsRequired()
  813. .HasMaxLength(50)
  814. .HasColumnType("nvarchar(50)");
  815. b.Property<byte[]>("VER")
  816. .IsConcurrencyToken()
  817. .ValueGeneratedOnAddOrUpdate()
  818. .HasColumnType("rowversion");
  819. b.HasKey("ID");
  820. b.ToTable("WCS_SystemConfig");
  821. });
  822. modelBuilder.Entity("WCS.Entity.Protocol.WCS_Users", b =>
  823. {
  824. b.Property<string>("USER_NO")
  825. .HasMaxLength(128)
  826. .HasColumnType("nvarchar(128)");
  827. b.Property<string>("USER_PWD")
  828. .IsRequired()
  829. .HasMaxLength(128)
  830. .HasColumnType("nvarchar(128)");
  831. b.Property<byte[]>("USER_TEXT")
  832. .HasColumnType("varbinary(max)");
  833. b.HasKey("USER_NO");
  834. b.ToTable("WCS_Users");
  835. });
  836. modelBuilder.Entity("WCS.Entity.WCS_CMD", b =>
  837. {
  838. b.Property<int>("ID")
  839. .ValueGeneratedOnAdd()
  840. .HasColumnType("int")
  841. .HasColumnOrder(0);
  842. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"), 1L, 1);
  843. b.Property<string>("DEVICE_CODE")
  844. .HasMaxLength(20)
  845. .HasColumnType("nvarchar(20)");
  846. b.Property<bool>("ENABLED")
  847. .HasColumnType("bit");
  848. b.Property<string>("PROPERTY")
  849. .HasMaxLength(32)
  850. .HasColumnType("nvarchar(32)");
  851. b.Property<string>("PROTOCOL")
  852. .HasMaxLength(256)
  853. .HasColumnType("nvarchar(256)");
  854. b.Property<DateTime>("UPDATETIME")
  855. .HasColumnType("datetime2");
  856. b.Property<string>("UPDATEUSER")
  857. .IsRequired()
  858. .HasMaxLength(50)
  859. .HasColumnType("nvarchar(50)");
  860. b.Property<string>("VALUE")
  861. .HasMaxLength(512)
  862. .HasColumnType("nvarchar(512)");
  863. b.Property<byte[]>("VER")
  864. .IsConcurrencyToken()
  865. .ValueGeneratedOnAddOrUpdate()
  866. .HasColumnType("rowversion");
  867. b.Property<int>("WCSVERSION")
  868. .HasColumnType("int");
  869. b.HasKey("ID");
  870. b.ToTable("WCS_CMD");
  871. });
  872. modelBuilder.Entity("WCS.Entity.WCS_DATABLOCK", b =>
  873. {
  874. b.Property<string>("CODE")
  875. .HasMaxLength(20)
  876. .HasColumnType("nvarchar(20)");
  877. b.Property<int>("DATALENGTH")
  878. .HasColumnType("int");
  879. b.Property<bool>("ENABLED")
  880. .HasColumnType("bit");
  881. b.Property<int>("LENGTH")
  882. .HasColumnType("int");
  883. b.Property<string>("NAME")
  884. .HasMaxLength(20)
  885. .HasColumnType("nvarchar(20)");
  886. b.Property<int>("NO")
  887. .HasColumnType("int");
  888. b.Property<bool>("NOUPDATE")
  889. .HasColumnType("bit");
  890. b.Property<string>("PLCCODE")
  891. .HasColumnType("nvarchar(20)");
  892. b.Property<string>("PROTOCOL")
  893. .IsRequired()
  894. .HasMaxLength(200)
  895. .HasColumnType("nvarchar(200)");
  896. b.Property<DateTime>("UPDATETIME")
  897. .HasColumnType("datetime2");
  898. b.Property<string>("UPDATEUSER")
  899. .IsRequired()
  900. .HasMaxLength(50)
  901. .HasColumnType("nvarchar(50)");
  902. b.Property<byte[]>("VER")
  903. .IsConcurrencyToken()
  904. .ValueGeneratedOnAddOrUpdate()
  905. .HasColumnType("rowversion");
  906. b.HasKey("CODE");
  907. b.HasIndex("PLCCODE");
  908. b.ToTable("WCS_DATABLOCK");
  909. });
  910. modelBuilder.Entity("WCS.Entity.WCS_DEVICE", b =>
  911. {
  912. b.Property<string>("CODE")
  913. .HasMaxLength(50)
  914. .HasColumnType("nvarchar(50)");
  915. b.Property<bool>("ENABLED")
  916. .HasColumnType("bit");
  917. b.Property<string>("NAME")
  918. .IsRequired()
  919. .HasMaxLength(50)
  920. .HasColumnType("nvarchar(50)");
  921. b.Property<DateTime>("UPDATETIME")
  922. .HasColumnType("datetime2");
  923. b.Property<string>("UPDATEUSER")
  924. .IsRequired()
  925. .HasMaxLength(50)
  926. .HasColumnType("nvarchar(50)");
  927. b.Property<byte[]>("VER")
  928. .IsConcurrencyToken()
  929. .ValueGeneratedOnAddOrUpdate()
  930. .HasColumnType("rowversion");
  931. b.HasKey("CODE");
  932. b.ToTable("WCS_DEVICE");
  933. });
  934. modelBuilder.Entity("WCS.Entity.WCS_DEVICEPROTOCOL", b =>
  935. {
  936. b.Property<int>("ID")
  937. .ValueGeneratedOnAdd()
  938. .HasColumnType("int")
  939. .HasColumnOrder(0);
  940. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"), 1L, 1);
  941. b.Property<string>("DBCODE")
  942. .IsRequired()
  943. .HasColumnType("nvarchar(20)");
  944. b.Property<string>("DEVICECODE")
  945. .IsRequired()
  946. .HasColumnType("nvarchar(50)");
  947. b.Property<bool>("ENABLED")
  948. .HasColumnType("bit");
  949. b.Property<short>("POSITION")
  950. .HasColumnType("smallint");
  951. b.Property<DateTime>("UPDATETIME")
  952. .HasColumnType("datetime2");
  953. b.Property<string>("UPDATEUSER")
  954. .IsRequired()
  955. .HasMaxLength(50)
  956. .HasColumnType("nvarchar(50)");
  957. b.Property<byte[]>("VER")
  958. .IsConcurrencyToken()
  959. .ValueGeneratedOnAddOrUpdate()
  960. .HasColumnType("rowversion");
  961. b.HasKey("ID");
  962. b.HasIndex("DBCODE");
  963. b.HasIndex("DEVICECODE");
  964. b.ToTable("WCS_DEVICEPROTOCOL");
  965. });
  966. modelBuilder.Entity("WCS.Entity.WCS_EXCEPTION", b =>
  967. {
  968. b.Property<int>("ID")
  969. .ValueGeneratedOnAdd()
  970. .HasColumnType("int")
  971. .HasColumnOrder(0);
  972. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"), 1L, 1);
  973. b.Property<string>("DEVICE")
  974. .HasMaxLength(1000)
  975. .HasColumnType("nvarchar(1000)");
  976. b.Property<bool>("ENABLED")
  977. .HasColumnType("bit");
  978. b.Property<string>("EXCEPTIONTYPE")
  979. .HasMaxLength(1000)
  980. .HasColumnType("nvarchar(1000)");
  981. b.Property<string>("MSG")
  982. .HasMaxLength(1000)
  983. .HasColumnType("nvarchar(1000)");
  984. b.Property<DateTime>("STARTTIME")
  985. .HasColumnType("datetime2");
  986. b.Property<int>("TIMES")
  987. .HasColumnType("int");
  988. b.Property<DateTime>("UPDATETIME")
  989. .HasColumnType("datetime2");
  990. b.Property<string>("UPDATEUSER")
  991. .IsRequired()
  992. .HasMaxLength(50)
  993. .HasColumnType("nvarchar(50)");
  994. b.Property<byte[]>("VER")
  995. .IsConcurrencyToken()
  996. .ValueGeneratedOnAddOrUpdate()
  997. .HasColumnType("rowversion");
  998. b.HasKey("ID");
  999. b.ToTable("WCS_EXCEPTION");
  1000. });
  1001. modelBuilder.Entity("WCS.Entity.WCS_GROUPMEMBER", b =>
  1002. {
  1003. b.Property<int>("ID")
  1004. .ValueGeneratedOnAdd()
  1005. .HasColumnType("int")
  1006. .HasColumnOrder(0);
  1007. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"), 1L, 1);
  1008. b.Property<bool>("ENABLED")
  1009. .HasColumnType("bit");
  1010. b.Property<string>("GROUPCODE")
  1011. .IsRequired()
  1012. .HasColumnType("nvarchar(50)");
  1013. b.Property<string>("MEMBERCODE")
  1014. .IsRequired()
  1015. .HasColumnType("nvarchar(50)");
  1016. b.Property<DateTime>("UPDATETIME")
  1017. .HasColumnType("datetime2");
  1018. b.Property<string>("UPDATEUSER")
  1019. .IsRequired()
  1020. .HasMaxLength(50)
  1021. .HasColumnType("nvarchar(50)");
  1022. b.Property<byte[]>("VER")
  1023. .IsConcurrencyToken()
  1024. .ValueGeneratedOnAddOrUpdate()
  1025. .HasColumnType("rowversion");
  1026. b.HasKey("ID");
  1027. b.HasIndex("GROUPCODE");
  1028. b.HasIndex("MEMBERCODE");
  1029. b.ToTable("WCS_GROUPMEMBER");
  1030. });
  1031. modelBuilder.Entity("WCS.Entity.WCS_PATH", b =>
  1032. {
  1033. b.Property<int>("ID")
  1034. .ValueGeneratedOnAdd()
  1035. .HasColumnType("int")
  1036. .HasColumnOrder(0);
  1037. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"), 1L, 1);
  1038. b.Property<bool>("ENABLED")
  1039. .HasColumnType("bit");
  1040. b.Property<string>("ENDCODE")
  1041. .IsRequired()
  1042. .HasColumnType("nvarchar(50)");
  1043. b.Property<string>("PATH")
  1044. .IsRequired()
  1045. .HasColumnType("nvarchar(max)");
  1046. b.Property<string>("STARTCODE")
  1047. .IsRequired()
  1048. .HasColumnType("nvarchar(50)");
  1049. b.Property<DateTime>("UPDATETIME")
  1050. .HasColumnType("datetime2");
  1051. b.Property<string>("UPDATEUSER")
  1052. .IsRequired()
  1053. .HasMaxLength(50)
  1054. .HasColumnType("nvarchar(50)");
  1055. b.Property<byte[]>("VER")
  1056. .IsConcurrencyToken()
  1057. .ValueGeneratedOnAddOrUpdate()
  1058. .HasColumnType("rowversion");
  1059. b.HasKey("ID");
  1060. b.HasIndex("ENDCODE");
  1061. b.HasIndex("STARTCODE");
  1062. b.ToTable("WCS_PATH");
  1063. });
  1064. modelBuilder.Entity("WCS.Entity.WCS_PATHPOINT", b =>
  1065. {
  1066. b.Property<int>("ID")
  1067. .ValueGeneratedOnAdd()
  1068. .HasColumnType("int")
  1069. .HasColumnOrder(0);
  1070. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"), 1L, 1);
  1071. b.Property<string>("DEVICECODE")
  1072. .IsRequired()
  1073. .HasColumnType("nvarchar(50)");
  1074. b.Property<bool>("ENABLED")
  1075. .HasColumnType("bit");
  1076. b.Property<string>("ENDCODE")
  1077. .IsRequired()
  1078. .HasColumnType("nvarchar(50)");
  1079. b.Property<string>("NEXTCODE")
  1080. .HasColumnType("nvarchar(50)");
  1081. b.Property<string>("PREVCODE")
  1082. .HasColumnType("nvarchar(50)");
  1083. b.Property<string>("STARTCODE")
  1084. .IsRequired()
  1085. .HasColumnType("nvarchar(50)");
  1086. b.Property<DateTime>("UPDATETIME")
  1087. .HasColumnType("datetime2");
  1088. b.Property<string>("UPDATEUSER")
  1089. .IsRequired()
  1090. .HasMaxLength(50)
  1091. .HasColumnType("nvarchar(50)");
  1092. b.Property<byte[]>("VER")
  1093. .IsConcurrencyToken()
  1094. .ValueGeneratedOnAddOrUpdate()
  1095. .HasColumnType("rowversion");
  1096. b.HasKey("ID");
  1097. b.HasIndex("DEVICECODE");
  1098. b.HasIndex("ENDCODE");
  1099. b.HasIndex("NEXTCODE");
  1100. b.HasIndex("PREVCODE");
  1101. b.HasIndex("STARTCODE");
  1102. b.ToTable("WCS_PATHPOINT");
  1103. });
  1104. modelBuilder.Entity("WCS.Entity.WCS_PLC", b =>
  1105. {
  1106. b.Property<string>("CODE")
  1107. .HasMaxLength(20)
  1108. .HasColumnType("nvarchar(20)");
  1109. b.Property<bool>("ENABLED")
  1110. .HasColumnType("bit");
  1111. b.Property<string>("IP")
  1112. .HasMaxLength(20)
  1113. .HasColumnType("nvarchar(20)");
  1114. b.Property<string>("MODEL")
  1115. .HasMaxLength(10)
  1116. .HasColumnType("nvarchar(10)");
  1117. b.Property<string>("NAME")
  1118. .HasMaxLength(20)
  1119. .HasColumnType("nvarchar(20)");
  1120. b.Property<int>("PORT")
  1121. .HasColumnType("int");
  1122. b.Property<int>("RACK")
  1123. .HasColumnType("int");
  1124. b.Property<int>("SLOT")
  1125. .HasColumnType("int");
  1126. b.Property<int>("TYPE")
  1127. .HasColumnType("int");
  1128. b.Property<DateTime>("UPDATETIME")
  1129. .HasColumnType("datetime2");
  1130. b.Property<string>("UPDATEUSER")
  1131. .IsRequired()
  1132. .HasMaxLength(50)
  1133. .HasColumnType("nvarchar(50)");
  1134. b.Property<byte[]>("VER")
  1135. .IsConcurrencyToken()
  1136. .ValueGeneratedOnAddOrUpdate()
  1137. .HasColumnType("rowversion");
  1138. b.HasKey("CODE");
  1139. b.ToTable("WCS_PLC");
  1140. });
  1141. modelBuilder.Entity("WCS.Entity.WCS_ROUTE", b =>
  1142. {
  1143. b.Property<int>("ID")
  1144. .ValueGeneratedOnAdd()
  1145. .HasColumnType("int")
  1146. .HasColumnOrder(0);
  1147. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"), 1L, 1);
  1148. b.Property<string>("DEVICECODE")
  1149. .IsRequired()
  1150. .HasColumnType("nvarchar(50)");
  1151. b.Property<bool>("ENABLED")
  1152. .HasColumnType("bit");
  1153. b.Property<string>("NEXTCODE")
  1154. .IsRequired()
  1155. .HasColumnType("nvarchar(50)");
  1156. b.Property<DateTime>("UPDATETIME")
  1157. .HasColumnType("datetime2");
  1158. b.Property<string>("UPDATEUSER")
  1159. .IsRequired()
  1160. .HasMaxLength(50)
  1161. .HasColumnType("nvarchar(50)");
  1162. b.Property<byte[]>("VER")
  1163. .IsConcurrencyToken()
  1164. .ValueGeneratedOnAddOrUpdate()
  1165. .HasColumnType("rowversion");
  1166. b.HasKey("ID");
  1167. b.HasIndex("DEVICECODE");
  1168. b.HasIndex("NEXTCODE");
  1169. b.ToTable("WCS_ROUTE");
  1170. });
  1171. modelBuilder.Entity("WCS.Entity.WCS_TASK", b =>
  1172. {
  1173. b.Property<int>("ID")
  1174. .ValueGeneratedOnAdd()
  1175. .HasColumnType("int")
  1176. .HasColumnOrder(0);
  1177. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"), 1L, 1);
  1178. b.Property<string>("ADDRFROM")
  1179. .HasMaxLength(20)
  1180. .HasColumnType("nvarchar(20)");
  1181. b.Property<string>("ADDRNEXT")
  1182. .HasMaxLength(20)
  1183. .HasColumnType("nvarchar(20)");
  1184. b.Property<string>("ADDRTO")
  1185. .HasMaxLength(20)
  1186. .HasColumnType("nvarchar(20)");
  1187. b.Property<int>("AgvTask")
  1188. .HasColumnType("int");
  1189. b.Property<string>("BARCODE")
  1190. .HasMaxLength(50)
  1191. .HasColumnType("nvarchar(50)");
  1192. b.Property<DateTime>("CREATETIME")
  1193. .HasColumnType("datetime2");
  1194. b.Property<string>("DEVICE")
  1195. .HasMaxLength(20)
  1196. .HasColumnType("nvarchar(20)");
  1197. b.Property<int>("DOCID")
  1198. .HasColumnType("int");
  1199. b.Property<bool>("ENABLED")
  1200. .HasColumnType("bit");
  1201. b.Property<DateTime?>("ENDTIME")
  1202. .HasColumnType("datetime2");
  1203. b.Property<int>("FLOOR")
  1204. .HasColumnType("int");
  1205. b.Property<short>("FULLQTY")
  1206. .HasColumnType("smallint");
  1207. b.Property<short>("HEIGHT")
  1208. .HasColumnType("smallint");
  1209. b.Property<string>("ManualRemarks")
  1210. .HasColumnType("nvarchar(max)");
  1211. b.Property<short>("PALLETTYPE")
  1212. .HasColumnType("smallint");
  1213. b.Property<short>("PRODLINE")
  1214. .HasColumnType("smallint");
  1215. b.Property<int>("Priority")
  1216. .HasColumnType("int");
  1217. b.Property<string>("SRMSTATION")
  1218. .HasMaxLength(20)
  1219. .HasColumnType("nvarchar(20)");
  1220. b.Property<DateTime?>("STARTTIME")
  1221. .HasColumnType("datetime2");
  1222. b.Property<int>("STATUS")
  1223. .HasColumnType("int");
  1224. b.Property<string>("TUNNEL")
  1225. .HasMaxLength(10)
  1226. .HasColumnType("nvarchar(10)");
  1227. b.Property<int>("TYPE")
  1228. .HasColumnType("int");
  1229. b.Property<string>("TaskGroupKey")
  1230. .HasColumnType("nvarchar(max)");
  1231. b.Property<DateTime>("UPDATETIME")
  1232. .HasColumnType("datetime2");
  1233. b.Property<string>("UPDATEUSER")
  1234. .IsRequired()
  1235. .HasMaxLength(50)
  1236. .HasColumnType("nvarchar(50)");
  1237. b.Property<int>("UPLOADED")
  1238. .HasColumnType("int");
  1239. b.Property<byte[]>("VER")
  1240. .IsConcurrencyToken()
  1241. .ValueGeneratedOnAddOrUpdate()
  1242. .HasColumnType("rowversion");
  1243. b.Property<int>("WMSTASK")
  1244. .HasColumnType("int");
  1245. b.HasKey("ID");
  1246. b.ToTable("WCS_TASK");
  1247. });
  1248. modelBuilder.Entity("WCS.Entity.Protocol.BCR.WCS_BCR80", b =>
  1249. {
  1250. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  1251. .WithMany()
  1252. .HasForeignKey("DEVICECODE");
  1253. b.Navigation("DEVICE");
  1254. });
  1255. modelBuilder.Entity("WCS.Entity.Protocol.Station.WCS_Station520", b =>
  1256. {
  1257. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  1258. .WithMany()
  1259. .HasForeignKey("DEVICECODE");
  1260. b.Navigation("DEVICE");
  1261. });
  1262. modelBuilder.Entity("WCS.Entity.Protocol.Station.WCS_Station521", b =>
  1263. {
  1264. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  1265. .WithMany()
  1266. .HasForeignKey("DEVICECODE");
  1267. b.Navigation("DEVICE");
  1268. });
  1269. modelBuilder.Entity("WCS.Entity.Protocol.Station.WCS_Station523", b =>
  1270. {
  1271. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  1272. .WithMany()
  1273. .HasForeignKey("DEVICECODE");
  1274. b.Navigation("DEVICE");
  1275. });
  1276. modelBuilder.Entity("WCS.Entity.Protocol.WCS_RGV520", b =>
  1277. {
  1278. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  1279. .WithMany()
  1280. .HasForeignKey("DEVICECODE");
  1281. b.Navigation("DEVICE");
  1282. });
  1283. modelBuilder.Entity("WCS.Entity.Protocol.WCS_RGV521", b =>
  1284. {
  1285. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  1286. .WithMany()
  1287. .HasForeignKey("DEVICECODE");
  1288. b.Navigation("DEVICE");
  1289. });
  1290. modelBuilder.Entity("WCS.Entity.Protocol.WCS_RGV523", b =>
  1291. {
  1292. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  1293. .WithMany()
  1294. .HasForeignKey("DEVICECODE");
  1295. b.Navigation("DEVICE");
  1296. });
  1297. modelBuilder.Entity("WCS.Entity.Protocol.WCS_SRM520", b =>
  1298. {
  1299. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  1300. .WithMany()
  1301. .HasForeignKey("DEVICECODE");
  1302. b.Navigation("DEVICE");
  1303. });
  1304. modelBuilder.Entity("WCS.Entity.Protocol.WCS_SRM521", b =>
  1305. {
  1306. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  1307. .WithMany()
  1308. .HasForeignKey("DEVICECODE");
  1309. b.Navigation("DEVICE");
  1310. });
  1311. modelBuilder.Entity("WCS.Entity.Protocol.WCS_SRM537", b =>
  1312. {
  1313. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  1314. .WithMany()
  1315. .HasForeignKey("DEVICECODE");
  1316. b.Navigation("DEVICE");
  1317. });
  1318. modelBuilder.Entity("WCS.Entity.WCS_DATABLOCK", b =>
  1319. {
  1320. b.HasOne("WCS.Entity.WCS_PLC", "PLC")
  1321. .WithMany()
  1322. .HasForeignKey("PLCCODE");
  1323. b.Navigation("PLC");
  1324. });
  1325. modelBuilder.Entity("WCS.Entity.WCS_DEVICEPROTOCOL", b =>
  1326. {
  1327. b.HasOne("WCS.Entity.WCS_DATABLOCK", "DB")
  1328. .WithMany()
  1329. .HasForeignKey("DBCODE")
  1330. .OnDelete(DeleteBehavior.Restrict)
  1331. .IsRequired();
  1332. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  1333. .WithMany("PROTOCOLS")
  1334. .HasForeignKey("DEVICECODE")
  1335. .OnDelete(DeleteBehavior.Restrict)
  1336. .IsRequired();
  1337. b.Navigation("DB");
  1338. b.Navigation("DEVICE");
  1339. });
  1340. modelBuilder.Entity("WCS.Entity.WCS_GROUPMEMBER", b =>
  1341. {
  1342. b.HasOne("WCS.Entity.WCS_DEVICE", "GROUP")
  1343. .WithMany("DEVICEGROUP")
  1344. .HasForeignKey("GROUPCODE")
  1345. .OnDelete(DeleteBehavior.Restrict)
  1346. .IsRequired();
  1347. b.HasOne("WCS.Entity.WCS_DEVICE", "MEMBER")
  1348. .WithMany()
  1349. .HasForeignKey("MEMBERCODE")
  1350. .OnDelete(DeleteBehavior.Restrict)
  1351. .IsRequired();
  1352. b.Navigation("GROUP");
  1353. b.Navigation("MEMBER");
  1354. });
  1355. modelBuilder.Entity("WCS.Entity.WCS_PATH", b =>
  1356. {
  1357. b.HasOne("WCS.Entity.WCS_DEVICE", "END")
  1358. .WithMany()
  1359. .HasForeignKey("ENDCODE")
  1360. .OnDelete(DeleteBehavior.Restrict)
  1361. .IsRequired();
  1362. b.HasOne("WCS.Entity.WCS_DEVICE", "START")
  1363. .WithMany("PATHS")
  1364. .HasForeignKey("STARTCODE")
  1365. .OnDelete(DeleteBehavior.Restrict)
  1366. .IsRequired();
  1367. b.Navigation("END");
  1368. b.Navigation("START");
  1369. });
  1370. modelBuilder.Entity("WCS.Entity.WCS_PATHPOINT", b =>
  1371. {
  1372. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  1373. .WithMany("PATHPOINTS")
  1374. .HasForeignKey("DEVICECODE")
  1375. .OnDelete(DeleteBehavior.Restrict)
  1376. .IsRequired();
  1377. b.HasOne("WCS.Entity.WCS_DEVICE", "END")
  1378. .WithMany()
  1379. .HasForeignKey("ENDCODE")
  1380. .OnDelete(DeleteBehavior.Restrict)
  1381. .IsRequired();
  1382. b.HasOne("WCS.Entity.WCS_DEVICE", "NEXT")
  1383. .WithMany()
  1384. .HasForeignKey("NEXTCODE");
  1385. b.HasOne("WCS.Entity.WCS_DEVICE", "PREV")
  1386. .WithMany()
  1387. .HasForeignKey("PREVCODE");
  1388. b.HasOne("WCS.Entity.WCS_DEVICE", "START")
  1389. .WithMany()
  1390. .HasForeignKey("STARTCODE")
  1391. .OnDelete(DeleteBehavior.Restrict)
  1392. .IsRequired();
  1393. b.Navigation("DEVICE");
  1394. b.Navigation("END");
  1395. b.Navigation("NEXT");
  1396. b.Navigation("PREV");
  1397. b.Navigation("START");
  1398. });
  1399. modelBuilder.Entity("WCS.Entity.WCS_ROUTE", b =>
  1400. {
  1401. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  1402. .WithMany("ROUTES")
  1403. .HasForeignKey("DEVICECODE")
  1404. .OnDelete(DeleteBehavior.Restrict)
  1405. .IsRequired();
  1406. b.HasOne("WCS.Entity.WCS_DEVICE", "NEXT")
  1407. .WithMany()
  1408. .HasForeignKey("NEXTCODE")
  1409. .OnDelete(DeleteBehavior.Restrict)
  1410. .IsRequired();
  1411. b.Navigation("DEVICE");
  1412. b.Navigation("NEXT");
  1413. });
  1414. modelBuilder.Entity("WCS.Entity.WCS_DEVICE", b =>
  1415. {
  1416. b.Navigation("DEVICEGROUP");
  1417. b.Navigation("PATHPOINTS");
  1418. b.Navigation("PATHS");
  1419. b.Navigation("PROTOCOLS");
  1420. b.Navigation("ROUTES");
  1421. });
  1422. #pragma warning restore 612, 618
  1423. }
  1424. }
  1425. }