WCSDBModelSnapshot.cs 71 KB

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