WCSDBModelSnapshot.cs 70 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087
  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<short>("PALLETTYPE")
  839. .HasColumnType("smallint");
  840. b.Property<short>("PRODLINE")
  841. .HasColumnType("smallint");
  842. b.Property<int>("Priority")
  843. .HasColumnType("int");
  844. b.Property<string>("SRMSTATION")
  845. .HasMaxLength(20)
  846. .HasColumnType("nvarchar(20)");
  847. b.Property<DateTime?>("STARTTIME")
  848. .HasColumnType("datetime2");
  849. b.Property<int>("STATUS")
  850. .HasColumnType("int");
  851. b.Property<string>("TUNNEL")
  852. .HasMaxLength(10)
  853. .HasColumnType("nvarchar(10)");
  854. b.Property<int>("TYPE")
  855. .HasColumnType("int");
  856. b.Property<string>("TaskGroupKey")
  857. .HasColumnType("nvarchar(max)");
  858. b.Property<DateTime>("UPDATETIME")
  859. .HasColumnType("datetime2");
  860. b.Property<string>("UPDATEUSER")
  861. .IsRequired()
  862. .HasMaxLength(50)
  863. .HasColumnType("nvarchar(50)");
  864. b.Property<int>("UPLOADED")
  865. .HasColumnType("int");
  866. b.Property<byte[]>("VER")
  867. .IsConcurrencyToken()
  868. .ValueGeneratedOnAddOrUpdate()
  869. .HasColumnType("rowversion");
  870. b.Property<int>("WMSTASK")
  871. .HasColumnType("int");
  872. b.HasKey("ID");
  873. b.ToTable("WCS_TASK_OLD");
  874. });
  875. modelBuilder.Entity("WCS.Entity.Protocol.WCS_Users", b =>
  876. {
  877. b.Property<string>("USER_NO")
  878. .HasMaxLength(128)
  879. .HasColumnType("nvarchar(128)");
  880. b.Property<string>("USER_PWD")
  881. .IsRequired()
  882. .HasMaxLength(128)
  883. .HasColumnType("nvarchar(128)");
  884. b.Property<byte[]>("USER_TEXT")
  885. .HasColumnType("varbinary(max)");
  886. b.HasKey("USER_NO");
  887. b.ToTable("WCS_Users");
  888. });
  889. modelBuilder.Entity("WCS.Entity.WCS_CMD", b =>
  890. {
  891. b.Property<int>("ID")
  892. .ValueGeneratedOnAdd()
  893. .HasColumnType("int")
  894. .HasColumnOrder(0);
  895. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"), 1L, 1);
  896. b.Property<string>("DEVICE_CODE")
  897. .HasMaxLength(20)
  898. .HasColumnType("nvarchar(20)");
  899. b.Property<bool>("ENABLED")
  900. .HasColumnType("bit");
  901. b.Property<string>("PROPERTY")
  902. .HasMaxLength(32)
  903. .HasColumnType("nvarchar(32)");
  904. b.Property<string>("PROTOCOL")
  905. .HasMaxLength(256)
  906. .HasColumnType("nvarchar(256)");
  907. b.Property<DateTime>("UPDATETIME")
  908. .HasColumnType("datetime2");
  909. b.Property<string>("UPDATEUSER")
  910. .IsRequired()
  911. .HasMaxLength(50)
  912. .HasColumnType("nvarchar(50)");
  913. b.Property<string>("VALUE")
  914. .HasMaxLength(512)
  915. .HasColumnType("nvarchar(512)");
  916. b.Property<byte[]>("VER")
  917. .IsConcurrencyToken()
  918. .ValueGeneratedOnAddOrUpdate()
  919. .HasColumnType("rowversion");
  920. b.Property<int>("WCSVERSION")
  921. .HasColumnType("int");
  922. b.HasKey("ID");
  923. b.ToTable("WCS_CMD");
  924. });
  925. modelBuilder.Entity("WCS.Entity.WCS_DATABLOCK", b =>
  926. {
  927. b.Property<string>("CODE")
  928. .HasMaxLength(20)
  929. .HasColumnType("nvarchar(20)");
  930. b.Property<int>("DATALENGTH")
  931. .HasColumnType("int");
  932. b.Property<bool>("ENABLED")
  933. .HasColumnType("bit");
  934. b.Property<int>("LENGTH")
  935. .HasColumnType("int");
  936. b.Property<string>("NAME")
  937. .HasMaxLength(20)
  938. .HasColumnType("nvarchar(20)");
  939. b.Property<int>("NO")
  940. .HasColumnType("int");
  941. b.Property<bool>("NOUPDATE")
  942. .HasColumnType("bit");
  943. b.Property<string>("PLCCODE")
  944. .HasColumnType("nvarchar(20)");
  945. b.Property<string>("PROTOCOL")
  946. .IsRequired()
  947. .HasMaxLength(200)
  948. .HasColumnType("nvarchar(200)");
  949. b.Property<DateTime>("UPDATETIME")
  950. .HasColumnType("datetime2");
  951. b.Property<string>("UPDATEUSER")
  952. .IsRequired()
  953. .HasMaxLength(50)
  954. .HasColumnType("nvarchar(50)");
  955. b.Property<byte[]>("VER")
  956. .IsConcurrencyToken()
  957. .ValueGeneratedOnAddOrUpdate()
  958. .HasColumnType("rowversion");
  959. b.HasKey("CODE");
  960. b.HasIndex("PLCCODE");
  961. b.ToTable("WCS_DATABLOCK");
  962. });
  963. modelBuilder.Entity("WCS.Entity.WCS_DEVICE", b =>
  964. {
  965. b.Property<string>("CODE")
  966. .HasMaxLength(50)
  967. .HasColumnType("nvarchar(50)");
  968. b.Property<bool>("ENABLED")
  969. .HasColumnType("bit");
  970. b.Property<string>("NAME")
  971. .IsRequired()
  972. .HasMaxLength(50)
  973. .HasColumnType("nvarchar(50)");
  974. b.Property<DateTime>("UPDATETIME")
  975. .HasColumnType("datetime2");
  976. b.Property<string>("UPDATEUSER")
  977. .IsRequired()
  978. .HasMaxLength(50)
  979. .HasColumnType("nvarchar(50)");
  980. b.Property<byte[]>("VER")
  981. .IsConcurrencyToken()
  982. .ValueGeneratedOnAddOrUpdate()
  983. .HasColumnType("rowversion");
  984. b.HasKey("CODE");
  985. b.ToTable("WCS_DEVICE");
  986. });
  987. modelBuilder.Entity("WCS.Entity.WCS_DEVICEPROTOCOL", b =>
  988. {
  989. b.Property<int>("ID")
  990. .ValueGeneratedOnAdd()
  991. .HasColumnType("int")
  992. .HasColumnOrder(0);
  993. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"), 1L, 1);
  994. b.Property<string>("DBCODE")
  995. .IsRequired()
  996. .HasColumnType("nvarchar(20)");
  997. b.Property<string>("DEVICECODE")
  998. .IsRequired()
  999. .HasColumnType("nvarchar(50)");
  1000. b.Property<bool>("ENABLED")
  1001. .HasColumnType("bit");
  1002. b.Property<short>("POSITION")
  1003. .HasColumnType("smallint");
  1004. b.Property<DateTime>("UPDATETIME")
  1005. .HasColumnType("datetime2");
  1006. b.Property<string>("UPDATEUSER")
  1007. .IsRequired()
  1008. .HasMaxLength(50)
  1009. .HasColumnType("nvarchar(50)");
  1010. b.Property<byte[]>("VER")
  1011. .IsConcurrencyToken()
  1012. .ValueGeneratedOnAddOrUpdate()
  1013. .HasColumnType("rowversion");
  1014. b.HasKey("ID");
  1015. b.HasIndex("DBCODE");
  1016. b.HasIndex("DEVICECODE");
  1017. b.ToTable("WCS_DEVICEPROTOCOL");
  1018. });
  1019. modelBuilder.Entity("WCS.Entity.WCS_EXCEPTION", b =>
  1020. {
  1021. b.Property<int>("ID")
  1022. .ValueGeneratedOnAdd()
  1023. .HasColumnType("int")
  1024. .HasColumnOrder(0);
  1025. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"), 1L, 1);
  1026. b.Property<string>("DEVICE")
  1027. .HasMaxLength(1000)
  1028. .HasColumnType("nvarchar(1000)");
  1029. b.Property<bool>("ENABLED")
  1030. .HasColumnType("bit");
  1031. b.Property<string>("EXCEPTIONTYPE")
  1032. .HasMaxLength(1000)
  1033. .HasColumnType("nvarchar(1000)");
  1034. b.Property<string>("MSG")
  1035. .HasMaxLength(1000)
  1036. .HasColumnType("nvarchar(1000)");
  1037. b.Property<DateTime>("STARTTIME")
  1038. .HasColumnType("datetime2");
  1039. b.Property<int>("TIMES")
  1040. .HasColumnType("int");
  1041. b.Property<DateTime>("UPDATETIME")
  1042. .HasColumnType("datetime2");
  1043. b.Property<string>("UPDATEUSER")
  1044. .IsRequired()
  1045. .HasMaxLength(50)
  1046. .HasColumnType("nvarchar(50)");
  1047. b.Property<byte[]>("VER")
  1048. .IsConcurrencyToken()
  1049. .ValueGeneratedOnAddOrUpdate()
  1050. .HasColumnType("rowversion");
  1051. b.HasKey("ID");
  1052. b.ToTable("WCS_EXCEPTION");
  1053. });
  1054. modelBuilder.Entity("WCS.Entity.WCS_GROUPMEMBER", b =>
  1055. {
  1056. b.Property<int>("ID")
  1057. .ValueGeneratedOnAdd()
  1058. .HasColumnType("int")
  1059. .HasColumnOrder(0);
  1060. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"), 1L, 1);
  1061. b.Property<bool>("ENABLED")
  1062. .HasColumnType("bit");
  1063. b.Property<string>("GROUPCODE")
  1064. .IsRequired()
  1065. .HasColumnType("nvarchar(50)");
  1066. b.Property<string>("MEMBERCODE")
  1067. .IsRequired()
  1068. .HasColumnType("nvarchar(50)");
  1069. b.Property<DateTime>("UPDATETIME")
  1070. .HasColumnType("datetime2");
  1071. b.Property<string>("UPDATEUSER")
  1072. .IsRequired()
  1073. .HasMaxLength(50)
  1074. .HasColumnType("nvarchar(50)");
  1075. b.Property<byte[]>("VER")
  1076. .IsConcurrencyToken()
  1077. .ValueGeneratedOnAddOrUpdate()
  1078. .HasColumnType("rowversion");
  1079. b.HasKey("ID");
  1080. b.HasIndex("GROUPCODE");
  1081. b.HasIndex("MEMBERCODE");
  1082. b.ToTable("WCS_GROUPMEMBER");
  1083. });
  1084. modelBuilder.Entity("WCS.Entity.WCS_PATH", b =>
  1085. {
  1086. b.Property<int>("ID")
  1087. .ValueGeneratedOnAdd()
  1088. .HasColumnType("int")
  1089. .HasColumnOrder(0);
  1090. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"), 1L, 1);
  1091. b.Property<bool>("ENABLED")
  1092. .HasColumnType("bit");
  1093. b.Property<string>("ENDCODE")
  1094. .IsRequired()
  1095. .HasColumnType("nvarchar(50)");
  1096. b.Property<string>("PATH")
  1097. .IsRequired()
  1098. .HasColumnType("nvarchar(max)");
  1099. b.Property<string>("STARTCODE")
  1100. .IsRequired()
  1101. .HasColumnType("nvarchar(50)");
  1102. b.Property<DateTime>("UPDATETIME")
  1103. .HasColumnType("datetime2");
  1104. b.Property<string>("UPDATEUSER")
  1105. .IsRequired()
  1106. .HasMaxLength(50)
  1107. .HasColumnType("nvarchar(50)");
  1108. b.Property<byte[]>("VER")
  1109. .IsConcurrencyToken()
  1110. .ValueGeneratedOnAddOrUpdate()
  1111. .HasColumnType("rowversion");
  1112. b.HasKey("ID");
  1113. b.HasIndex("ENDCODE");
  1114. b.HasIndex("STARTCODE");
  1115. b.ToTable("WCS_PATH");
  1116. });
  1117. modelBuilder.Entity("WCS.Entity.WCS_PATHPOINT", b =>
  1118. {
  1119. b.Property<int>("ID")
  1120. .ValueGeneratedOnAdd()
  1121. .HasColumnType("int")
  1122. .HasColumnOrder(0);
  1123. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"), 1L, 1);
  1124. b.Property<string>("DEVICECODE")
  1125. .IsRequired()
  1126. .HasColumnType("nvarchar(50)");
  1127. b.Property<bool>("ENABLED")
  1128. .HasColumnType("bit");
  1129. b.Property<string>("ENDCODE")
  1130. .IsRequired()
  1131. .HasColumnType("nvarchar(50)");
  1132. b.Property<string>("NEXTCODE")
  1133. .HasColumnType("nvarchar(50)");
  1134. b.Property<string>("PREVCODE")
  1135. .HasColumnType("nvarchar(50)");
  1136. b.Property<string>("STARTCODE")
  1137. .IsRequired()
  1138. .HasColumnType("nvarchar(50)");
  1139. b.Property<DateTime>("UPDATETIME")
  1140. .HasColumnType("datetime2");
  1141. b.Property<string>("UPDATEUSER")
  1142. .IsRequired()
  1143. .HasMaxLength(50)
  1144. .HasColumnType("nvarchar(50)");
  1145. b.Property<byte[]>("VER")
  1146. .IsConcurrencyToken()
  1147. .ValueGeneratedOnAddOrUpdate()
  1148. .HasColumnType("rowversion");
  1149. b.HasKey("ID");
  1150. b.HasIndex("DEVICECODE");
  1151. b.HasIndex("ENDCODE");
  1152. b.HasIndex("NEXTCODE");
  1153. b.HasIndex("PREVCODE");
  1154. b.HasIndex("STARTCODE");
  1155. b.ToTable("WCS_PATHPOINT");
  1156. });
  1157. modelBuilder.Entity("WCS.Entity.WCS_PLC", b =>
  1158. {
  1159. b.Property<string>("CODE")
  1160. .HasMaxLength(20)
  1161. .HasColumnType("nvarchar(20)");
  1162. b.Property<bool>("ENABLED")
  1163. .HasColumnType("bit");
  1164. b.Property<string>("IP")
  1165. .HasMaxLength(20)
  1166. .HasColumnType("nvarchar(20)");
  1167. b.Property<string>("MODEL")
  1168. .HasMaxLength(10)
  1169. .HasColumnType("nvarchar(10)");
  1170. b.Property<string>("NAME")
  1171. .HasMaxLength(20)
  1172. .HasColumnType("nvarchar(20)");
  1173. b.Property<int>("PORT")
  1174. .HasColumnType("int");
  1175. b.Property<int>("RACK")
  1176. .HasColumnType("int");
  1177. b.Property<int>("SLOT")
  1178. .HasColumnType("int");
  1179. b.Property<int>("TYPE")
  1180. .HasColumnType("int");
  1181. b.Property<DateTime>("UPDATETIME")
  1182. .HasColumnType("datetime2");
  1183. b.Property<string>("UPDATEUSER")
  1184. .IsRequired()
  1185. .HasMaxLength(50)
  1186. .HasColumnType("nvarchar(50)");
  1187. b.Property<byte[]>("VER")
  1188. .IsConcurrencyToken()
  1189. .ValueGeneratedOnAddOrUpdate()
  1190. .HasColumnType("rowversion");
  1191. b.HasKey("CODE");
  1192. b.ToTable("WCS_PLC");
  1193. });
  1194. modelBuilder.Entity("WCS.Entity.WCS_ROUTE", b =>
  1195. {
  1196. b.Property<int>("ID")
  1197. .ValueGeneratedOnAdd()
  1198. .HasColumnType("int")
  1199. .HasColumnOrder(0);
  1200. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"), 1L, 1);
  1201. b.Property<string>("DEVICECODE")
  1202. .IsRequired()
  1203. .HasColumnType("nvarchar(50)");
  1204. b.Property<bool>("ENABLED")
  1205. .HasColumnType("bit");
  1206. b.Property<string>("NEXTCODE")
  1207. .IsRequired()
  1208. .HasColumnType("nvarchar(50)");
  1209. b.Property<DateTime>("UPDATETIME")
  1210. .HasColumnType("datetime2");
  1211. b.Property<string>("UPDATEUSER")
  1212. .IsRequired()
  1213. .HasMaxLength(50)
  1214. .HasColumnType("nvarchar(50)");
  1215. b.Property<byte[]>("VER")
  1216. .IsConcurrencyToken()
  1217. .ValueGeneratedOnAddOrUpdate()
  1218. .HasColumnType("rowversion");
  1219. b.HasKey("ID");
  1220. b.HasIndex("DEVICECODE");
  1221. b.HasIndex("NEXTCODE");
  1222. b.ToTable("WCS_ROUTE");
  1223. });
  1224. modelBuilder.Entity("WCS.Entity.WCS_TASK", b =>
  1225. {
  1226. b.Property<int>("ID")
  1227. .ValueGeneratedOnAdd()
  1228. .HasColumnType("int")
  1229. .HasColumnOrder(0);
  1230. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"), 1L, 1);
  1231. b.Property<string>("ADDRFROM")
  1232. .HasMaxLength(20)
  1233. .HasColumnType("nvarchar(20)");
  1234. b.Property<string>("ADDRNEXT")
  1235. .HasMaxLength(20)
  1236. .HasColumnType("nvarchar(20)");
  1237. b.Property<string>("ADDRTO")
  1238. .HasMaxLength(20)
  1239. .HasColumnType("nvarchar(20)");
  1240. b.Property<int>("AgvTask")
  1241. .HasColumnType("int");
  1242. b.Property<string>("BARCODE")
  1243. .HasMaxLength(50)
  1244. .HasColumnType("nvarchar(50)");
  1245. b.Property<DateTime>("CREATETIME")
  1246. .HasColumnType("datetime2");
  1247. b.Property<string>("DEVICE")
  1248. .HasMaxLength(20)
  1249. .HasColumnType("nvarchar(20)");
  1250. b.Property<int>("DOCID")
  1251. .HasColumnType("int");
  1252. b.Property<bool>("ENABLED")
  1253. .HasColumnType("bit");
  1254. b.Property<DateTime?>("ENDTIME")
  1255. .HasColumnType("datetime2");
  1256. b.Property<int>("FLOOR")
  1257. .HasColumnType("int");
  1258. b.Property<short>("FULLQTY")
  1259. .HasColumnType("smallint");
  1260. b.Property<short>("HEIGHT")
  1261. .HasColumnType("smallint");
  1262. b.Property<decimal>("Length")
  1263. .HasColumnType("decimal(18,2)");
  1264. b.Property<string>("ManualRemarks")
  1265. .HasColumnType("nvarchar(max)");
  1266. b.Property<short>("PALLETTYPE")
  1267. .HasColumnType("smallint");
  1268. b.Property<short>("PRODLINE")
  1269. .HasColumnType("smallint");
  1270. b.Property<int>("Priority")
  1271. .HasColumnType("int");
  1272. b.Property<string>("SRMSTATION")
  1273. .HasMaxLength(20)
  1274. .HasColumnType("nvarchar(20)");
  1275. b.Property<DateTime?>("STARTTIME")
  1276. .HasColumnType("datetime2");
  1277. b.Property<int>("STATUS")
  1278. .HasColumnType("int");
  1279. b.Property<string>("TUNNEL")
  1280. .HasMaxLength(10)
  1281. .HasColumnType("nvarchar(10)");
  1282. b.Property<int>("TYPE")
  1283. .HasColumnType("int");
  1284. b.Property<string>("TaskGroupKey")
  1285. .HasColumnType("nvarchar(max)");
  1286. b.Property<DateTime>("UPDATETIME")
  1287. .HasColumnType("datetime2");
  1288. b.Property<string>("UPDATEUSER")
  1289. .IsRequired()
  1290. .HasMaxLength(50)
  1291. .HasColumnType("nvarchar(50)");
  1292. b.Property<int>("UPLOADED")
  1293. .HasColumnType("int");
  1294. b.Property<byte[]>("VER")
  1295. .IsConcurrencyToken()
  1296. .ValueGeneratedOnAddOrUpdate()
  1297. .HasColumnType("rowversion");
  1298. b.Property<int>("WMSTASK")
  1299. .HasColumnType("int");
  1300. b.HasKey("ID");
  1301. b.ToTable("WCS_TASK");
  1302. });
  1303. modelBuilder.Entity("WCS.Entity.Protocol.BCR.WCS_BCR80", b =>
  1304. {
  1305. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  1306. .WithMany()
  1307. .HasForeignKey("DEVICECODE");
  1308. b.Navigation("DEVICE");
  1309. });
  1310. modelBuilder.Entity("WCS.Entity.Protocol.Station.WCS_Station520", b =>
  1311. {
  1312. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  1313. .WithMany()
  1314. .HasForeignKey("DEVICECODE");
  1315. b.Navigation("DEVICE");
  1316. });
  1317. modelBuilder.Entity("WCS.Entity.Protocol.Station.WCS_Station521", b =>
  1318. {
  1319. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  1320. .WithMany()
  1321. .HasForeignKey("DEVICECODE");
  1322. b.Navigation("DEVICE");
  1323. });
  1324. modelBuilder.Entity("WCS.Entity.Protocol.Station.WCS_Station523", b =>
  1325. {
  1326. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  1327. .WithMany()
  1328. .HasForeignKey("DEVICECODE");
  1329. b.Navigation("DEVICE");
  1330. });
  1331. modelBuilder.Entity("WCS.Entity.Protocol.WCS_RGV520", b =>
  1332. {
  1333. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  1334. .WithMany()
  1335. .HasForeignKey("DEVICECODE");
  1336. b.Navigation("DEVICE");
  1337. });
  1338. modelBuilder.Entity("WCS.Entity.Protocol.WCS_RGV521", b =>
  1339. {
  1340. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  1341. .WithMany()
  1342. .HasForeignKey("DEVICECODE");
  1343. b.Navigation("DEVICE");
  1344. });
  1345. modelBuilder.Entity("WCS.Entity.Protocol.WCS_RGV523", b =>
  1346. {
  1347. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  1348. .WithMany()
  1349. .HasForeignKey("DEVICECODE");
  1350. b.Navigation("DEVICE");
  1351. });
  1352. modelBuilder.Entity("WCS.Entity.Protocol.WCS_SRM520", b =>
  1353. {
  1354. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  1355. .WithMany()
  1356. .HasForeignKey("DEVICECODE");
  1357. b.Navigation("DEVICE");
  1358. });
  1359. modelBuilder.Entity("WCS.Entity.Protocol.WCS_SRM521", b =>
  1360. {
  1361. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  1362. .WithMany()
  1363. .HasForeignKey("DEVICECODE");
  1364. b.Navigation("DEVICE");
  1365. });
  1366. modelBuilder.Entity("WCS.Entity.Protocol.WCS_SRM537", b =>
  1367. {
  1368. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  1369. .WithMany()
  1370. .HasForeignKey("DEVICECODE");
  1371. b.Navigation("DEVICE");
  1372. });
  1373. modelBuilder.Entity("WCS.Entity.WCS_DATABLOCK", b =>
  1374. {
  1375. b.HasOne("WCS.Entity.WCS_PLC", "PLC")
  1376. .WithMany()
  1377. .HasForeignKey("PLCCODE");
  1378. b.Navigation("PLC");
  1379. });
  1380. modelBuilder.Entity("WCS.Entity.WCS_DEVICEPROTOCOL", b =>
  1381. {
  1382. b.HasOne("WCS.Entity.WCS_DATABLOCK", "DB")
  1383. .WithMany()
  1384. .HasForeignKey("DBCODE")
  1385. .OnDelete(DeleteBehavior.Restrict)
  1386. .IsRequired();
  1387. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  1388. .WithMany("PROTOCOLS")
  1389. .HasForeignKey("DEVICECODE")
  1390. .OnDelete(DeleteBehavior.Restrict)
  1391. .IsRequired();
  1392. b.Navigation("DB");
  1393. b.Navigation("DEVICE");
  1394. });
  1395. modelBuilder.Entity("WCS.Entity.WCS_GROUPMEMBER", b =>
  1396. {
  1397. b.HasOne("WCS.Entity.WCS_DEVICE", "GROUP")
  1398. .WithMany("DEVICEGROUP")
  1399. .HasForeignKey("GROUPCODE")
  1400. .OnDelete(DeleteBehavior.Restrict)
  1401. .IsRequired();
  1402. b.HasOne("WCS.Entity.WCS_DEVICE", "MEMBER")
  1403. .WithMany()
  1404. .HasForeignKey("MEMBERCODE")
  1405. .OnDelete(DeleteBehavior.Restrict)
  1406. .IsRequired();
  1407. b.Navigation("GROUP");
  1408. b.Navigation("MEMBER");
  1409. });
  1410. modelBuilder.Entity("WCS.Entity.WCS_PATH", b =>
  1411. {
  1412. b.HasOne("WCS.Entity.WCS_DEVICE", "END")
  1413. .WithMany()
  1414. .HasForeignKey("ENDCODE")
  1415. .OnDelete(DeleteBehavior.Restrict)
  1416. .IsRequired();
  1417. b.HasOne("WCS.Entity.WCS_DEVICE", "START")
  1418. .WithMany("PATHS")
  1419. .HasForeignKey("STARTCODE")
  1420. .OnDelete(DeleteBehavior.Restrict)
  1421. .IsRequired();
  1422. b.Navigation("END");
  1423. b.Navigation("START");
  1424. });
  1425. modelBuilder.Entity("WCS.Entity.WCS_PATHPOINT", b =>
  1426. {
  1427. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  1428. .WithMany()
  1429. .HasForeignKey("DEVICECODE")
  1430. .OnDelete(DeleteBehavior.Restrict)
  1431. .IsRequired();
  1432. b.HasOne("WCS.Entity.WCS_DEVICE", "END")
  1433. .WithMany()
  1434. .HasForeignKey("ENDCODE")
  1435. .OnDelete(DeleteBehavior.Restrict)
  1436. .IsRequired();
  1437. b.HasOne("WCS.Entity.WCS_DEVICE", "NEXT")
  1438. .WithMany()
  1439. .HasForeignKey("NEXTCODE");
  1440. b.HasOne("WCS.Entity.WCS_DEVICE", "PREV")
  1441. .WithMany()
  1442. .HasForeignKey("PREVCODE");
  1443. b.HasOne("WCS.Entity.WCS_DEVICE", "START")
  1444. .WithMany()
  1445. .HasForeignKey("STARTCODE")
  1446. .OnDelete(DeleteBehavior.Restrict)
  1447. .IsRequired();
  1448. b.Navigation("DEVICE");
  1449. b.Navigation("END");
  1450. b.Navigation("NEXT");
  1451. b.Navigation("PREV");
  1452. b.Navigation("START");
  1453. });
  1454. modelBuilder.Entity("WCS.Entity.WCS_ROUTE", b =>
  1455. {
  1456. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  1457. .WithMany("ROUTES")
  1458. .HasForeignKey("DEVICECODE")
  1459. .OnDelete(DeleteBehavior.Restrict)
  1460. .IsRequired();
  1461. b.HasOne("WCS.Entity.WCS_DEVICE", "NEXT")
  1462. .WithMany()
  1463. .HasForeignKey("NEXTCODE")
  1464. .OnDelete(DeleteBehavior.Restrict)
  1465. .IsRequired();
  1466. b.Navigation("DEVICE");
  1467. b.Navigation("NEXT");
  1468. });
  1469. modelBuilder.Entity("WCS.Entity.WCS_DEVICE", b =>
  1470. {
  1471. b.Navigation("DEVICEGROUP");
  1472. b.Navigation("PATHS");
  1473. b.Navigation("PROTOCOLS");
  1474. b.Navigation("ROUTES");
  1475. });
  1476. #pragma warning restore 612, 618
  1477. }
  1478. }
  1479. }