WCSDBModelSnapshot.cs 72 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137
  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_DEVICESTATELOG", b =>
  232. {
  233. b.Property<int>("ID")
  234. .ValueGeneratedOnAdd()
  235. .HasColumnType("int")
  236. .HasColumnOrder(0);
  237. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"), 1L, 1);
  238. b.Property<string>("DEVICECODE")
  239. .HasColumnType("nvarchar(max)");
  240. b.Property<bool>("ENABLED")
  241. .HasColumnType("bit");
  242. b.Property<string>("STATE")
  243. .HasColumnType("nvarchar(max)");
  244. b.Property<DateTime>("UPDATETIME")
  245. .HasColumnType("datetime2");
  246. b.Property<string>("UPDATEUSER")
  247. .IsRequired()
  248. .HasMaxLength(50)
  249. .HasColumnType("nvarchar(50)");
  250. b.Property<byte[]>("VER")
  251. .IsConcurrencyToken()
  252. .ValueGeneratedOnAddOrUpdate()
  253. .HasColumnType("rowversion");
  254. b.HasKey("ID");
  255. b.ToTable("WCS_DEVICESTATELOG");
  256. });
  257. modelBuilder.Entity("WCS.Entity.Protocol.WCS_MAPPINGENTRY", b =>
  258. {
  259. b.Property<int>("MEP_ID")
  260. .ValueGeneratedOnAdd()
  261. .HasColumnType("int");
  262. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("MEP_ID"), 1L, 1);
  263. b.Property<bool>("MEP_ISSTOP")
  264. .HasColumnType("bit");
  265. b.Property<string>("MEP_MAPPINGCHNAME")
  266. .IsRequired()
  267. .HasMaxLength(50)
  268. .HasColumnType("nvarchar(50)");
  269. b.Property<int>("MEP_MAPPINGNO")
  270. .HasColumnType("int");
  271. b.Property<string>("MEP_MAPPINGTYPE")
  272. .IsRequired()
  273. .HasMaxLength(50)
  274. .HasColumnType("nvarchar(50)");
  275. b.HasKey("MEP_ID");
  276. b.ToTable("WCS_MAPPINGENTRY");
  277. });
  278. modelBuilder.Entity("WCS.Entity.Protocol.WCS_RGV520", b =>
  279. {
  280. b.Property<int>("ID")
  281. .ValueGeneratedOnAdd()
  282. .HasColumnType("int")
  283. .HasColumnOrder(0);
  284. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"), 1L, 1);
  285. b.Property<string>("DEVICECODE")
  286. .HasColumnType("nvarchar(50)");
  287. b.Property<short>("DestPosition_1")
  288. .HasColumnType("smallint");
  289. b.Property<short>("DestPosition_2")
  290. .HasColumnType("smallint");
  291. b.Property<bool>("ENABLED")
  292. .HasColumnType("bit");
  293. b.Property<DateTime>("FRAME")
  294. .HasColumnType("datetime2");
  295. b.Property<bool>("ISLAST")
  296. .HasColumnType("bit");
  297. b.Property<short>("Priority_1")
  298. .HasColumnType("smallint");
  299. b.Property<short>("Priority_2")
  300. .HasColumnType("smallint");
  301. b.Property<short>("RES1_1")
  302. .HasColumnType("smallint");
  303. b.Property<short>("RES1_2")
  304. .HasColumnType("smallint");
  305. b.Property<short>("RES2_1")
  306. .HasColumnType("smallint");
  307. b.Property<short>("RES2_2")
  308. .HasColumnType("smallint");
  309. b.Property<short>("StartPosition_1")
  310. .HasColumnType("smallint");
  311. b.Property<short>("StartPosition_2")
  312. .HasColumnType("smallint");
  313. b.Property<int>("TaskID_1")
  314. .HasColumnType("int");
  315. b.Property<int>("TaskID_2")
  316. .HasColumnType("int");
  317. b.Property<short>("TaskType_1")
  318. .HasColumnType("smallint");
  319. b.Property<short>("TaskType_2")
  320. .HasColumnType("smallint");
  321. b.Property<int>("Trigger_1")
  322. .HasColumnType("int");
  323. b.Property<int>("Trigger_2")
  324. .HasColumnType("int");
  325. b.Property<DateTime>("UPDATETIME")
  326. .HasColumnType("datetime2");
  327. b.Property<string>("UPDATEUSER")
  328. .IsRequired()
  329. .HasMaxLength(50)
  330. .HasColumnType("nvarchar(50)");
  331. b.Property<byte[]>("VER")
  332. .IsConcurrencyToken()
  333. .ValueGeneratedOnAddOrUpdate()
  334. .HasColumnType("rowversion");
  335. b.Property<int>("WCSVERSION")
  336. .HasColumnType("int");
  337. b.HasKey("ID");
  338. b.HasIndex("DEVICECODE");
  339. b.ToTable("WCS_RGV520");
  340. });
  341. modelBuilder.Entity("WCS.Entity.Protocol.WCS_RGV521", b =>
  342. {
  343. b.Property<int>("ID")
  344. .ValueGeneratedOnAdd()
  345. .HasColumnType("int")
  346. .HasColumnOrder(0);
  347. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"), 1L, 1);
  348. b.Property<string>("DEVICECODE")
  349. .HasColumnType("nvarchar(50)");
  350. b.Property<short>("DestPosition_1")
  351. .HasColumnType("smallint");
  352. b.Property<short>("DestPosition_2")
  353. .HasColumnType("smallint");
  354. b.Property<bool>("ENABLED")
  355. .HasColumnType("bit");
  356. b.Property<DateTime>("FRAME")
  357. .HasColumnType("datetime2");
  358. b.Property<bool>("ISLAST")
  359. .HasColumnType("bit");
  360. b.Property<float>("Mileage")
  361. .HasColumnType("real");
  362. b.Property<short>("PRIORITY_1")
  363. .HasColumnType("smallint");
  364. b.Property<short>("PRIORITY_2")
  365. .HasColumnType("smallint");
  366. b.Property<float>("Position")
  367. .HasColumnType("real");
  368. b.Property<short>("RES1_1")
  369. .HasColumnType("smallint");
  370. b.Property<short>("RES1_2")
  371. .HasColumnType("smallint");
  372. b.Property<short>("RES2_1")
  373. .HasColumnType("smallint");
  374. b.Property<short>("RES2_2")
  375. .HasColumnType("smallint");
  376. b.Property<short>("RES6")
  377. .HasColumnType("smallint");
  378. b.Property<float>("Runtime")
  379. .HasColumnType("real");
  380. b.Property<short>("StartPosition_1")
  381. .HasColumnType("smallint");
  382. b.Property<short>("StartPosition_2")
  383. .HasColumnType("smallint");
  384. b.Property<int>("Status_1")
  385. .HasColumnType("int");
  386. b.Property<int>("Status_2")
  387. .HasColumnType("int");
  388. b.Property<short>("SystemStatus")
  389. .HasColumnType("smallint");
  390. b.Property<int>("TaskID_1")
  391. .HasColumnType("int");
  392. b.Property<int>("TaskID_2")
  393. .HasColumnType("int");
  394. b.Property<short>("TaskType_1")
  395. .HasColumnType("smallint");
  396. b.Property<short>("TaskType_2")
  397. .HasColumnType("smallint");
  398. b.Property<int>("Trigger_1")
  399. .HasColumnType("int");
  400. b.Property<int>("Trigger_2")
  401. .HasColumnType("int");
  402. b.Property<DateTime>("UPDATETIME")
  403. .HasColumnType("datetime2");
  404. b.Property<string>("UPDATEUSER")
  405. .IsRequired()
  406. .HasMaxLength(50)
  407. .HasColumnType("nvarchar(50)");
  408. b.Property<byte[]>("VER")
  409. .IsConcurrencyToken()
  410. .ValueGeneratedOnAddOrUpdate()
  411. .HasColumnType("rowversion");
  412. b.Property<int>("WCSVERSION")
  413. .HasColumnType("int");
  414. b.Property<short>("WorkMode")
  415. .HasColumnType("smallint");
  416. b.HasKey("ID");
  417. b.HasIndex("DEVICECODE");
  418. b.ToTable("WCS_RGV521");
  419. });
  420. modelBuilder.Entity("WCS.Entity.Protocol.WCS_RGV523", b =>
  421. {
  422. b.Property<int>("ID")
  423. .ValueGeneratedOnAdd()
  424. .HasColumnType("int")
  425. .HasColumnOrder(0);
  426. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"), 1L, 1);
  427. b.Property<string>("DEVICECODE")
  428. .HasColumnType("nvarchar(50)");
  429. b.Property<bool>("ENABLED")
  430. .HasColumnType("bit");
  431. b.Property<DateTime>("FRAME")
  432. .HasColumnType("datetime2");
  433. b.Property<int>("Fault")
  434. .HasColumnType("int");
  435. b.Property<int>("Fault1")
  436. .HasColumnType("int");
  437. b.Property<int>("Fault2")
  438. .HasColumnType("int");
  439. b.Property<bool>("ISLAST")
  440. .HasColumnType("bit");
  441. b.Property<int>("Status")
  442. .HasColumnType("int");
  443. b.Property<int>("Status1")
  444. .HasColumnType("int");
  445. b.Property<int>("Status2")
  446. .HasColumnType("int");
  447. b.Property<DateTime>("UPDATETIME")
  448. .HasColumnType("datetime2");
  449. b.Property<string>("UPDATEUSER")
  450. .IsRequired()
  451. .HasMaxLength(50)
  452. .HasColumnType("nvarchar(50)");
  453. b.Property<byte[]>("VER")
  454. .IsConcurrencyToken()
  455. .ValueGeneratedOnAddOrUpdate()
  456. .HasColumnType("rowversion");
  457. b.Property<int>("WCSVERSION")
  458. .HasColumnType("int");
  459. b.HasKey("ID");
  460. b.HasIndex("DEVICECODE");
  461. b.ToTable("WCS_RGV523");
  462. });
  463. modelBuilder.Entity("WCS.Entity.Protocol.WCS_SRM520", b =>
  464. {
  465. b.Property<int>("ID")
  466. .ValueGeneratedOnAdd()
  467. .HasColumnType("int")
  468. .HasColumnOrder(0);
  469. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"), 1L, 1);
  470. b.Property<string>("DEVICECODE")
  471. .HasColumnType("nvarchar(50)");
  472. b.Property<short>("ECol_1")
  473. .HasColumnType("smallint");
  474. b.Property<short>("ECol_2")
  475. .HasColumnType("smallint");
  476. b.Property<short>("EDepth_1")
  477. .HasColumnType("smallint");
  478. b.Property<short>("EDepth_2")
  479. .HasColumnType("smallint");
  480. b.Property<short>("ELayer_1")
  481. .HasColumnType("smallint");
  482. b.Property<short>("ELayer_2")
  483. .HasColumnType("smallint");
  484. b.Property<short>("ELine_1")
  485. .HasColumnType("smallint");
  486. b.Property<short>("ELine_2")
  487. .HasColumnType("smallint");
  488. b.Property<bool>("ENABLED")
  489. .HasColumnType("bit");
  490. b.Property<DateTime>("FRAME")
  491. .HasColumnType("datetime2");
  492. b.Property<short>("FinishedACK_1")
  493. .HasColumnType("smallint");
  494. b.Property<short>("FinishedACK_2")
  495. .HasColumnType("smallint");
  496. b.Property<short>("GoodsType_1")
  497. .HasColumnType("smallint");
  498. b.Property<short>("GoodsType_2")
  499. .HasColumnType("smallint");
  500. b.Property<short>("Handshake_1")
  501. .HasColumnType("smallint");
  502. b.Property<short>("Handshake_2")
  503. .HasColumnType("smallint");
  504. b.Property<bool>("ISLAST")
  505. .HasColumnType("bit");
  506. b.Property<short>("RES1_1")
  507. .HasColumnType("smallint");
  508. b.Property<short>("RES1_2")
  509. .HasColumnType("smallint");
  510. b.Property<short>("RES2_1")
  511. .HasColumnType("smallint");
  512. b.Property<short>("RES2_2")
  513. .HasColumnType("smallint");
  514. b.Property<short>("RES3_1")
  515. .HasColumnType("smallint");
  516. b.Property<short>("RES3_2")
  517. .HasColumnType("smallint");
  518. b.Property<short>("RES4_1")
  519. .HasColumnType("smallint");
  520. b.Property<short>("RES4_2")
  521. .HasColumnType("smallint");
  522. b.Property<short>("SCSpeedMode_2")
  523. .HasColumnType("smallint");
  524. b.Property<short>("SCol_1")
  525. .HasColumnType("smallint");
  526. b.Property<short>("SCol_2")
  527. .HasColumnType("smallint");
  528. b.Property<short>("SDepth_1")
  529. .HasColumnType("smallint");
  530. b.Property<short>("SDepth_2")
  531. .HasColumnType("smallint");
  532. b.Property<short>("SLayer_1")
  533. .HasColumnType("smallint");
  534. b.Property<short>("SLayer_2")
  535. .HasColumnType("smallint");
  536. b.Property<short>("SLine_1")
  537. .HasColumnType("smallint");
  538. b.Property<short>("SLine_2")
  539. .HasColumnType("smallint");
  540. b.Property<short>("SpeedMode_1")
  541. .HasColumnType("smallint");
  542. b.Property<int>("TaskID_1")
  543. .HasColumnType("int");
  544. b.Property<int>("TaskID_2")
  545. .HasColumnType("int");
  546. b.Property<DateTime>("UPDATETIME")
  547. .HasColumnType("datetime2");
  548. b.Property<string>("UPDATEUSER")
  549. .IsRequired()
  550. .HasMaxLength(50)
  551. .HasColumnType("nvarchar(50)");
  552. b.Property<byte[]>("VER")
  553. .IsConcurrencyToken()
  554. .ValueGeneratedOnAddOrUpdate()
  555. .HasColumnType("rowversion");
  556. b.Property<short>("VoucherNo_1")
  557. .HasColumnType("smallint");
  558. b.Property<short>("VoucherNo_2")
  559. .HasColumnType("smallint");
  560. b.Property<int>("WCSVERSION")
  561. .HasColumnType("int");
  562. b.HasKey("ID");
  563. b.HasIndex("DEVICECODE");
  564. b.ToTable("WCS_SRM520");
  565. });
  566. modelBuilder.Entity("WCS.Entity.Protocol.WCS_SRM521", b =>
  567. {
  568. b.Property<int>("ID")
  569. .ValueGeneratedOnAdd()
  570. .HasColumnType("int")
  571. .HasColumnOrder(0);
  572. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"), 1L, 1);
  573. b.Property<short>("Alarm")
  574. .HasColumnType("smallint");
  575. b.Property<short>("Col_1")
  576. .HasColumnType("smallint");
  577. b.Property<short>("Col_2")
  578. .HasColumnType("smallint");
  579. b.Property<string>("DEVICECODE")
  580. .HasColumnType("nvarchar(50)");
  581. b.Property<short>("ECol_1")
  582. .HasColumnType("smallint");
  583. b.Property<short>("ECol_2")
  584. .HasColumnType("smallint");
  585. b.Property<short>("EDepth_1")
  586. .HasColumnType("smallint");
  587. b.Property<short>("EDepth_2")
  588. .HasColumnType("smallint");
  589. b.Property<short>("ELayer_1")
  590. .HasColumnType("smallint");
  591. b.Property<short>("ELayer_2")
  592. .HasColumnType("smallint");
  593. b.Property<short>("ELine_1")
  594. .HasColumnType("smallint");
  595. b.Property<short>("ELine_2")
  596. .HasColumnType("smallint");
  597. b.Property<bool>("ENABLED")
  598. .HasColumnType("bit");
  599. b.Property<DateTime>("FRAME")
  600. .HasColumnType("datetime2");
  601. b.Property<int>("FinishedTask_1")
  602. .HasColumnType("int");
  603. b.Property<int>("FinishedTask_2")
  604. .HasColumnType("int");
  605. b.Property<int>("ForkPos_1")
  606. .HasColumnType("int");
  607. b.Property<int>("ForkPos_2")
  608. .HasColumnType("int");
  609. b.Property<int>("ForkStatus_1")
  610. .HasColumnType("int");
  611. b.Property<int>("ForkStatus_2")
  612. .HasColumnType("int");
  613. b.Property<short>("GoodsType_1")
  614. .HasColumnType("smallint");
  615. b.Property<short>("GoodsType_2")
  616. .HasColumnType("smallint");
  617. b.Property<bool>("ISLAST")
  618. .HasColumnType("bit");
  619. b.Property<short>("Layer_1")
  620. .HasColumnType("smallint");
  621. b.Property<short>("Layer_2")
  622. .HasColumnType("smallint");
  623. b.Property<int>("LiftPos_1")
  624. .HasColumnType("int");
  625. b.Property<int>("LiftPos_2")
  626. .HasColumnType("int");
  627. b.Property<short>("Line_1")
  628. .HasColumnType("smallint");
  629. b.Property<short>("Line_2")
  630. .HasColumnType("smallint");
  631. b.Property<short>("Mode_1")
  632. .HasColumnType("smallint");
  633. b.Property<short>("Mode_2")
  634. .HasColumnType("smallint");
  635. b.Property<short>("RES10_1")
  636. .HasColumnType("smallint");
  637. b.Property<short>("RES10_2")
  638. .HasColumnType("smallint");
  639. b.Property<int>("RES11_1")
  640. .HasColumnType("int");
  641. b.Property<int>("RES11_2")
  642. .HasColumnType("int");
  643. b.Property<int>("RES12_1")
  644. .HasColumnType("int");
  645. b.Property<int>("RES12_2")
  646. .HasColumnType("int");
  647. b.Property<int>("RES13_1")
  648. .HasColumnType("int");
  649. b.Property<int>("RES13_2")
  650. .HasColumnType("int");
  651. b.Property<int>("RES14_1")
  652. .HasColumnType("int");
  653. b.Property<int>("RES14_2")
  654. .HasColumnType("int");
  655. b.Property<short>("RES9_1")
  656. .HasColumnType("smallint");
  657. b.Property<short>("RES9_2")
  658. .HasColumnType("smallint");
  659. b.Property<float>("Runtime")
  660. .HasColumnType("real");
  661. b.Property<float>("Runtime_1")
  662. .HasColumnType("real");
  663. b.Property<float>("Runtime_2")
  664. .HasColumnType("real");
  665. b.Property<short>("SCol_1")
  666. .HasColumnType("smallint");
  667. b.Property<short>("SCol_2")
  668. .HasColumnType("smallint");
  669. b.Property<short>("SDepth_1")
  670. .HasColumnType("smallint");
  671. b.Property<short>("SDepth_2")
  672. .HasColumnType("smallint");
  673. b.Property<short>("SLayer_1")
  674. .HasColumnType("smallint");
  675. b.Property<short>("SLayer_2")
  676. .HasColumnType("smallint");
  677. b.Property<short>("SLine_1")
  678. .HasColumnType("smallint");
  679. b.Property<short>("SLine_2")
  680. .HasColumnType("smallint");
  681. b.Property<short>("SRMMode")
  682. .HasColumnType("smallint");
  683. b.Property<short>("SRMStatus")
  684. .HasColumnType("smallint");
  685. b.Property<short>("Status_1")
  686. .HasColumnType("smallint");
  687. b.Property<short>("Status_2")
  688. .HasColumnType("smallint");
  689. b.Property<int>("TaskID_1")
  690. .HasColumnType("int");
  691. b.Property<int>("TaskID_2")
  692. .HasColumnType("int");
  693. b.Property<float>("TotalKM")
  694. .HasColumnType("real");
  695. b.Property<float>("TotalKM_1")
  696. .HasColumnType("real");
  697. b.Property<float>("TotalKM_2")
  698. .HasColumnType("real");
  699. b.Property<int>("TravelPos_1")
  700. .HasColumnType("int");
  701. b.Property<int>("TravelPos_2")
  702. .HasColumnType("int");
  703. b.Property<DateTime>("UPDATETIME")
  704. .HasColumnType("datetime2");
  705. b.Property<string>("UPDATEUSER")
  706. .IsRequired()
  707. .HasMaxLength(50)
  708. .HasColumnType("nvarchar(50)");
  709. b.Property<byte[]>("VER")
  710. .IsConcurrencyToken()
  711. .ValueGeneratedOnAddOrUpdate()
  712. .HasColumnType("rowversion");
  713. b.Property<short>("VoucherNo_1")
  714. .HasColumnType("smallint");
  715. b.Property<short>("VoucherNo_2")
  716. .HasColumnType("smallint");
  717. b.Property<int>("WCSVERSION")
  718. .HasColumnType("int");
  719. b.HasKey("ID");
  720. b.HasIndex("DEVICECODE");
  721. b.ToTable("WCS_SRM521");
  722. });
  723. modelBuilder.Entity("WCS.Entity.Protocol.WCS_SRM537", b =>
  724. {
  725. b.Property<int>("ID")
  726. .ValueGeneratedOnAdd()
  727. .HasColumnType("int")
  728. .HasColumnOrder(0);
  729. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"), 1L, 1);
  730. b.Property<string>("DEVICECODE")
  731. .HasColumnType("nvarchar(50)");
  732. b.Property<bool>("ENABLED")
  733. .HasColumnType("bit");
  734. b.Property<DateTime>("FRAME")
  735. .HasColumnType("datetime2");
  736. b.Property<bool>("ISLAST")
  737. .HasColumnType("bit");
  738. b.Property<decimal>("SCAlarm")
  739. .HasColumnType("decimal(20,0)");
  740. b.Property<DateTime>("UPDATETIME")
  741. .HasColumnType("datetime2");
  742. b.Property<string>("UPDATEUSER")
  743. .IsRequired()
  744. .HasMaxLength(50)
  745. .HasColumnType("nvarchar(50)");
  746. b.Property<byte[]>("VER")
  747. .IsConcurrencyToken()
  748. .ValueGeneratedOnAddOrUpdate()
  749. .HasColumnType("rowversion");
  750. b.Property<int>("WCSVERSION")
  751. .HasColumnType("int");
  752. b.HasKey("ID");
  753. b.HasIndex("DEVICECODE");
  754. b.ToTable("WCS_SRM537");
  755. });
  756. modelBuilder.Entity("WCS.Entity.Protocol.WCS_StatusLog", b =>
  757. {
  758. b.Property<int>("ID")
  759. .ValueGeneratedOnAdd()
  760. .HasColumnType("int")
  761. .HasColumnOrder(0);
  762. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"), 1L, 1);
  763. b.Property<bool>("ENABLED")
  764. .HasColumnType("bit");
  765. b.Property<int>("NewStatus")
  766. .HasColumnType("int");
  767. b.Property<string>("Node")
  768. .HasColumnType("nvarchar(max)");
  769. b.Property<int>("OldStatus")
  770. .HasColumnType("int");
  771. b.Property<DateTime>("UPDATETIME")
  772. .HasColumnType("datetime2");
  773. b.Property<string>("UPDATEUSER")
  774. .IsRequired()
  775. .HasMaxLength(50)
  776. .HasColumnType("nvarchar(50)");
  777. b.Property<byte[]>("VER")
  778. .IsConcurrencyToken()
  779. .ValueGeneratedOnAddOrUpdate()
  780. .HasColumnType("rowversion");
  781. b.Property<int>("WCS_TASKID")
  782. .HasColumnType("int");
  783. b.Property<string>("msg")
  784. .HasColumnType("nvarchar(max)");
  785. b.Property<int>("upStatus")
  786. .HasColumnType("int");
  787. b.HasKey("ID");
  788. b.ToTable("WCS_StatusLog");
  789. });
  790. modelBuilder.Entity("WCS.Entity.Protocol.WCS_SystemConfig", b =>
  791. {
  792. b.Property<int>("ID")
  793. .ValueGeneratedOnAdd()
  794. .HasColumnType("int")
  795. .HasColumnOrder(0);
  796. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"), 1L, 1);
  797. b.Property<string>("Code")
  798. .HasColumnType("nvarchar(max)");
  799. b.Property<string>("DEVICECODE")
  800. .HasColumnType("nvarchar(max)");
  801. b.Property<string>("Describe")
  802. .HasColumnType("nvarchar(max)");
  803. b.Property<string>("Direction")
  804. .HasColumnType("nvarchar(max)");
  805. b.Property<bool>("ENABLED")
  806. .HasColumnType("bit");
  807. b.Property<string>("TUNNEL")
  808. .HasColumnType("nvarchar(max)");
  809. b.Property<DateTime>("UPDATETIME")
  810. .HasColumnType("datetime2");
  811. b.Property<string>("UPDATEUSER")
  812. .IsRequired()
  813. .HasMaxLength(50)
  814. .HasColumnType("nvarchar(50)");
  815. b.Property<byte[]>("VER")
  816. .IsConcurrencyToken()
  817. .ValueGeneratedOnAddOrUpdate()
  818. .HasColumnType("rowversion");
  819. b.HasKey("ID");
  820. b.ToTable("WCS_SystemConfig");
  821. });
  822. modelBuilder.Entity("WCS.Entity.Protocol.WCS_TASK_OLD", b =>
  823. {
  824. b.Property<int>("ID")
  825. .ValueGeneratedOnAdd()
  826. .HasColumnType("int")
  827. .HasColumnOrder(0);
  828. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"), 1L, 1);
  829. b.Property<string>("ADDRFROM")
  830. .HasMaxLength(20)
  831. .HasColumnType("nvarchar(20)");
  832. b.Property<string>("ADDRNEXT")
  833. .HasMaxLength(20)
  834. .HasColumnType("nvarchar(20)");
  835. b.Property<string>("ADDRTO")
  836. .HasMaxLength(20)
  837. .HasColumnType("nvarchar(20)");
  838. b.Property<int>("AgvTask")
  839. .HasColumnType("int");
  840. b.Property<string>("BARCODE")
  841. .HasMaxLength(50)
  842. .HasColumnType("nvarchar(50)");
  843. b.Property<DateTime>("CREATETIME")
  844. .HasColumnType("datetime2");
  845. b.Property<string>("DEVICE")
  846. .HasMaxLength(20)
  847. .HasColumnType("nvarchar(20)");
  848. b.Property<int>("DOCID")
  849. .HasColumnType("int");
  850. b.Property<bool>("ENABLED")
  851. .HasColumnType("bit");
  852. b.Property<DateTime?>("ENDTIME")
  853. .HasColumnType("datetime2");
  854. b.Property<int>("FLOOR")
  855. .HasColumnType("int");
  856. b.Property<short>("FULLQTY")
  857. .HasColumnType("smallint");
  858. b.Property<short>("HEIGHT")
  859. .HasColumnType("smallint");
  860. b.Property<decimal>("Length")
  861. .HasColumnType("decimal(18,2)");
  862. b.Property<string>("ManualRemarks")
  863. .HasColumnType("nvarchar(max)");
  864. b.Property<string>("MaterialCode")
  865. .HasColumnType("nvarchar(max)");
  866. b.Property<short>("PALLETTYPE")
  867. .HasColumnType("smallint");
  868. b.Property<short>("PRODLINE")
  869. .HasColumnType("smallint");
  870. b.Property<int>("Priority")
  871. .HasColumnType("int");
  872. b.Property<string>("SRMSTATION")
  873. .HasMaxLength(20)
  874. .HasColumnType("nvarchar(20)");
  875. b.Property<DateTime?>("STARTTIME")
  876. .HasColumnType("datetime2");
  877. b.Property<int>("STATUS")
  878. .HasColumnType("int");
  879. b.Property<string>("TUNNEL")
  880. .HasMaxLength(10)
  881. .HasColumnType("nvarchar(10)");
  882. b.Property<int>("TYPE")
  883. .HasColumnType("int");
  884. b.Property<string>("TaskGroupKey")
  885. .HasColumnType("nvarchar(max)");
  886. b.Property<DateTime>("UPDATETIME")
  887. .HasColumnType("datetime2");
  888. b.Property<string>("UPDATEUSER")
  889. .IsRequired()
  890. .HasMaxLength(50)
  891. .HasColumnType("nvarchar(50)");
  892. b.Property<int>("UPLOADED")
  893. .HasColumnType("int");
  894. b.Property<byte[]>("VER")
  895. .IsConcurrencyToken()
  896. .ValueGeneratedOnAddOrUpdate()
  897. .HasColumnType("rowversion");
  898. b.Property<int>("WMSTASK")
  899. .HasColumnType("int");
  900. b.HasKey("ID");
  901. b.ToTable("WCS_TASK_OLD");
  902. });
  903. modelBuilder.Entity("WCS.Entity.Protocol.WCS_Users", b =>
  904. {
  905. b.Property<string>("USER_NO")
  906. .HasMaxLength(128)
  907. .HasColumnType("nvarchar(128)");
  908. b.Property<string>("USER_PWD")
  909. .IsRequired()
  910. .HasMaxLength(128)
  911. .HasColumnType("nvarchar(128)");
  912. b.Property<byte[]>("USER_TEXT")
  913. .HasColumnType("varbinary(max)");
  914. b.HasKey("USER_NO");
  915. b.ToTable("WCS_Users");
  916. });
  917. modelBuilder.Entity("WCS.Entity.WCS_CMD", b =>
  918. {
  919. b.Property<int>("ID")
  920. .ValueGeneratedOnAdd()
  921. .HasColumnType("int")
  922. .HasColumnOrder(0);
  923. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"), 1L, 1);
  924. b.Property<string>("DEVICE_CODE")
  925. .HasMaxLength(20)
  926. .HasColumnType("nvarchar(20)");
  927. b.Property<bool>("ENABLED")
  928. .HasColumnType("bit");
  929. b.Property<string>("PROPERTY")
  930. .HasMaxLength(32)
  931. .HasColumnType("nvarchar(32)");
  932. b.Property<string>("PROTOCOL")
  933. .HasMaxLength(256)
  934. .HasColumnType("nvarchar(256)");
  935. b.Property<DateTime>("UPDATETIME")
  936. .HasColumnType("datetime2");
  937. b.Property<string>("UPDATEUSER")
  938. .IsRequired()
  939. .HasMaxLength(50)
  940. .HasColumnType("nvarchar(50)");
  941. b.Property<string>("VALUE")
  942. .HasMaxLength(512)
  943. .HasColumnType("nvarchar(512)");
  944. b.Property<byte[]>("VER")
  945. .IsConcurrencyToken()
  946. .ValueGeneratedOnAddOrUpdate()
  947. .HasColumnType("rowversion");
  948. b.Property<int>("WCSVERSION")
  949. .HasColumnType("int");
  950. b.HasKey("ID");
  951. b.ToTable("WCS_CMD");
  952. });
  953. modelBuilder.Entity("WCS.Entity.WCS_DATABLOCK", b =>
  954. {
  955. b.Property<string>("CODE")
  956. .HasMaxLength(20)
  957. .HasColumnType("nvarchar(20)");
  958. b.Property<int>("DATALENGTH")
  959. .HasColumnType("int");
  960. b.Property<bool>("ENABLED")
  961. .HasColumnType("bit");
  962. b.Property<int>("LENGTH")
  963. .HasColumnType("int");
  964. b.Property<string>("NAME")
  965. .HasMaxLength(20)
  966. .HasColumnType("nvarchar(20)");
  967. b.Property<int>("NO")
  968. .HasColumnType("int");
  969. b.Property<bool>("NOUPDATE")
  970. .HasColumnType("bit");
  971. b.Property<string>("PLCCODE")
  972. .HasColumnType("nvarchar(20)");
  973. b.Property<string>("PROTOCOL")
  974. .IsRequired()
  975. .HasMaxLength(200)
  976. .HasColumnType("nvarchar(200)");
  977. b.Property<DateTime>("UPDATETIME")
  978. .HasColumnType("datetime2");
  979. b.Property<string>("UPDATEUSER")
  980. .IsRequired()
  981. .HasMaxLength(50)
  982. .HasColumnType("nvarchar(50)");
  983. b.Property<byte[]>("VER")
  984. .IsConcurrencyToken()
  985. .ValueGeneratedOnAddOrUpdate()
  986. .HasColumnType("rowversion");
  987. b.HasKey("CODE");
  988. b.HasIndex("PLCCODE");
  989. b.ToTable("WCS_DATABLOCK");
  990. });
  991. modelBuilder.Entity("WCS.Entity.WCS_DEVICE", b =>
  992. {
  993. b.Property<string>("CODE")
  994. .HasMaxLength(50)
  995. .HasColumnType("nvarchar(50)");
  996. b.Property<bool>("ENABLED")
  997. .HasColumnType("bit");
  998. b.Property<string>("NAME")
  999. .IsRequired()
  1000. .HasMaxLength(50)
  1001. .HasColumnType("nvarchar(50)");
  1002. b.Property<DateTime>("UPDATETIME")
  1003. .HasColumnType("datetime2");
  1004. b.Property<string>("UPDATEUSER")
  1005. .IsRequired()
  1006. .HasMaxLength(50)
  1007. .HasColumnType("nvarchar(50)");
  1008. b.Property<byte[]>("VER")
  1009. .IsConcurrencyToken()
  1010. .ValueGeneratedOnAddOrUpdate()
  1011. .HasColumnType("rowversion");
  1012. b.HasKey("CODE");
  1013. b.ToTable("WCS_DEVICE");
  1014. });
  1015. modelBuilder.Entity("WCS.Entity.WCS_DEVICEPROTOCOL", b =>
  1016. {
  1017. b.Property<int>("ID")
  1018. .ValueGeneratedOnAdd()
  1019. .HasColumnType("int")
  1020. .HasColumnOrder(0);
  1021. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"), 1L, 1);
  1022. b.Property<string>("DBCODE")
  1023. .IsRequired()
  1024. .HasColumnType("nvarchar(20)");
  1025. b.Property<string>("DEVICECODE")
  1026. .IsRequired()
  1027. .HasColumnType("nvarchar(50)");
  1028. b.Property<bool>("ENABLED")
  1029. .HasColumnType("bit");
  1030. b.Property<short>("POSITION")
  1031. .HasColumnType("smallint");
  1032. b.Property<DateTime>("UPDATETIME")
  1033. .HasColumnType("datetime2");
  1034. b.Property<string>("UPDATEUSER")
  1035. .IsRequired()
  1036. .HasMaxLength(50)
  1037. .HasColumnType("nvarchar(50)");
  1038. b.Property<byte[]>("VER")
  1039. .IsConcurrencyToken()
  1040. .ValueGeneratedOnAddOrUpdate()
  1041. .HasColumnType("rowversion");
  1042. b.HasKey("ID");
  1043. b.HasIndex("DBCODE");
  1044. b.HasIndex("DEVICECODE");
  1045. b.ToTable("WCS_DEVICEPROTOCOL");
  1046. });
  1047. modelBuilder.Entity("WCS.Entity.WCS_EXCEPTION", b =>
  1048. {
  1049. b.Property<int>("ID")
  1050. .ValueGeneratedOnAdd()
  1051. .HasColumnType("int")
  1052. .HasColumnOrder(0);
  1053. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"), 1L, 1);
  1054. b.Property<string>("DEVICE")
  1055. .HasMaxLength(1000)
  1056. .HasColumnType("nvarchar(1000)");
  1057. b.Property<bool>("ENABLED")
  1058. .HasColumnType("bit");
  1059. b.Property<string>("EXCEPTIONTYPE")
  1060. .HasMaxLength(1000)
  1061. .HasColumnType("nvarchar(1000)");
  1062. b.Property<string>("MSG")
  1063. .HasMaxLength(1000)
  1064. .HasColumnType("nvarchar(1000)");
  1065. b.Property<DateTime>("STARTTIME")
  1066. .HasColumnType("datetime2");
  1067. b.Property<int>("TIMES")
  1068. .HasColumnType("int");
  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.ToTable("WCS_EXCEPTION");
  1081. });
  1082. modelBuilder.Entity("WCS.Entity.WCS_GROUPMEMBER", b =>
  1083. {
  1084. b.Property<int>("ID")
  1085. .ValueGeneratedOnAdd()
  1086. .HasColumnType("int")
  1087. .HasColumnOrder(0);
  1088. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"), 1L, 1);
  1089. b.Property<bool>("ENABLED")
  1090. .HasColumnType("bit");
  1091. b.Property<string>("GROUPCODE")
  1092. .IsRequired()
  1093. .HasColumnType("nvarchar(50)");
  1094. b.Property<string>("MEMBERCODE")
  1095. .IsRequired()
  1096. .HasColumnType("nvarchar(50)");
  1097. b.Property<DateTime>("UPDATETIME")
  1098. .HasColumnType("datetime2");
  1099. b.Property<string>("UPDATEUSER")
  1100. .IsRequired()
  1101. .HasMaxLength(50)
  1102. .HasColumnType("nvarchar(50)");
  1103. b.Property<byte[]>("VER")
  1104. .IsConcurrencyToken()
  1105. .ValueGeneratedOnAddOrUpdate()
  1106. .HasColumnType("rowversion");
  1107. b.HasKey("ID");
  1108. b.HasIndex("GROUPCODE");
  1109. b.HasIndex("MEMBERCODE");
  1110. b.ToTable("WCS_GROUPMEMBER");
  1111. });
  1112. modelBuilder.Entity("WCS.Entity.WCS_PATH", b =>
  1113. {
  1114. b.Property<int>("ID")
  1115. .ValueGeneratedOnAdd()
  1116. .HasColumnType("int")
  1117. .HasColumnOrder(0);
  1118. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"), 1L, 1);
  1119. b.Property<bool>("ENABLED")
  1120. .HasColumnType("bit");
  1121. b.Property<string>("ENDCODE")
  1122. .IsRequired()
  1123. .HasColumnType("nvarchar(50)");
  1124. b.Property<string>("PATH")
  1125. .IsRequired()
  1126. .HasColumnType("nvarchar(max)");
  1127. b.Property<string>("STARTCODE")
  1128. .IsRequired()
  1129. .HasColumnType("nvarchar(50)");
  1130. b.Property<DateTime>("UPDATETIME")
  1131. .HasColumnType("datetime2");
  1132. b.Property<string>("UPDATEUSER")
  1133. .IsRequired()
  1134. .HasMaxLength(50)
  1135. .HasColumnType("nvarchar(50)");
  1136. b.Property<byte[]>("VER")
  1137. .IsConcurrencyToken()
  1138. .ValueGeneratedOnAddOrUpdate()
  1139. .HasColumnType("rowversion");
  1140. b.HasKey("ID");
  1141. b.HasIndex("ENDCODE");
  1142. b.HasIndex("STARTCODE");
  1143. b.ToTable("WCS_PATH");
  1144. });
  1145. modelBuilder.Entity("WCS.Entity.WCS_PATHPOINT", b =>
  1146. {
  1147. b.Property<int>("ID")
  1148. .ValueGeneratedOnAdd()
  1149. .HasColumnType("int")
  1150. .HasColumnOrder(0);
  1151. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"), 1L, 1);
  1152. b.Property<string>("DEVICECODE")
  1153. .IsRequired()
  1154. .HasColumnType("nvarchar(50)");
  1155. b.Property<bool>("ENABLED")
  1156. .HasColumnType("bit");
  1157. b.Property<string>("ENDCODE")
  1158. .IsRequired()
  1159. .HasColumnType("nvarchar(50)");
  1160. b.Property<string>("NEXTCODE")
  1161. .HasColumnType("nvarchar(50)");
  1162. b.Property<string>("PREVCODE")
  1163. .HasColumnType("nvarchar(50)");
  1164. b.Property<string>("STARTCODE")
  1165. .IsRequired()
  1166. .HasColumnType("nvarchar(50)");
  1167. b.Property<DateTime>("UPDATETIME")
  1168. .HasColumnType("datetime2");
  1169. b.Property<string>("UPDATEUSER")
  1170. .IsRequired()
  1171. .HasMaxLength(50)
  1172. .HasColumnType("nvarchar(50)");
  1173. b.Property<byte[]>("VER")
  1174. .IsConcurrencyToken()
  1175. .ValueGeneratedOnAddOrUpdate()
  1176. .HasColumnType("rowversion");
  1177. b.HasKey("ID");
  1178. b.HasIndex("DEVICECODE");
  1179. b.HasIndex("ENDCODE");
  1180. b.HasIndex("NEXTCODE");
  1181. b.HasIndex("PREVCODE");
  1182. b.HasIndex("STARTCODE");
  1183. b.ToTable("WCS_PATHPOINT");
  1184. });
  1185. modelBuilder.Entity("WCS.Entity.WCS_PLC", b =>
  1186. {
  1187. b.Property<string>("CODE")
  1188. .HasMaxLength(20)
  1189. .HasColumnType("nvarchar(20)");
  1190. b.Property<bool>("ENABLED")
  1191. .HasColumnType("bit");
  1192. b.Property<string>("IP")
  1193. .HasMaxLength(20)
  1194. .HasColumnType("nvarchar(20)");
  1195. b.Property<string>("MODEL")
  1196. .HasMaxLength(10)
  1197. .HasColumnType("nvarchar(10)");
  1198. b.Property<string>("NAME")
  1199. .HasMaxLength(20)
  1200. .HasColumnType("nvarchar(20)");
  1201. b.Property<int>("PORT")
  1202. .HasColumnType("int");
  1203. b.Property<int>("RACK")
  1204. .HasColumnType("int");
  1205. b.Property<int>("SLOT")
  1206. .HasColumnType("int");
  1207. b.Property<int>("TYPE")
  1208. .HasColumnType("int");
  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("CODE");
  1220. b.ToTable("WCS_PLC");
  1221. });
  1222. modelBuilder.Entity("WCS.Entity.WCS_ROUTE", b =>
  1223. {
  1224. b.Property<int>("ID")
  1225. .ValueGeneratedOnAdd()
  1226. .HasColumnType("int")
  1227. .HasColumnOrder(0);
  1228. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"), 1L, 1);
  1229. b.Property<string>("DEVICECODE")
  1230. .IsRequired()
  1231. .HasColumnType("nvarchar(50)");
  1232. b.Property<bool>("ENABLED")
  1233. .HasColumnType("bit");
  1234. b.Property<string>("NEXTCODE")
  1235. .IsRequired()
  1236. .HasColumnType("nvarchar(50)");
  1237. b.Property<DateTime>("UPDATETIME")
  1238. .HasColumnType("datetime2");
  1239. b.Property<string>("UPDATEUSER")
  1240. .IsRequired()
  1241. .HasMaxLength(50)
  1242. .HasColumnType("nvarchar(50)");
  1243. b.Property<byte[]>("VER")
  1244. .IsConcurrencyToken()
  1245. .ValueGeneratedOnAddOrUpdate()
  1246. .HasColumnType("rowversion");
  1247. b.HasKey("ID");
  1248. b.HasIndex("DEVICECODE");
  1249. b.HasIndex("NEXTCODE");
  1250. b.ToTable("WCS_ROUTE");
  1251. });
  1252. modelBuilder.Entity("WCS.Entity.WCS_TASK", b =>
  1253. {
  1254. b.Property<int>("ID")
  1255. .ValueGeneratedOnAdd()
  1256. .HasColumnType("int")
  1257. .HasColumnOrder(0);
  1258. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"), 1L, 1);
  1259. b.Property<string>("ADDRFROM")
  1260. .HasMaxLength(20)
  1261. .HasColumnType("nvarchar(20)");
  1262. b.Property<string>("ADDRNEXT")
  1263. .HasMaxLength(20)
  1264. .HasColumnType("nvarchar(20)");
  1265. b.Property<string>("ADDRTO")
  1266. .HasMaxLength(20)
  1267. .HasColumnType("nvarchar(20)");
  1268. b.Property<int>("AgvTask")
  1269. .HasColumnType("int");
  1270. b.Property<string>("BARCODE")
  1271. .HasMaxLength(50)
  1272. .HasColumnType("nvarchar(50)");
  1273. b.Property<DateTime>("CREATETIME")
  1274. .HasColumnType("datetime2");
  1275. b.Property<string>("DEVICE")
  1276. .HasMaxLength(20)
  1277. .HasColumnType("nvarchar(20)");
  1278. b.Property<string>("DEVICEDL")
  1279. .HasMaxLength(20)
  1280. .HasColumnType("nvarchar(20)");
  1281. b.Property<int>("DOCID")
  1282. .HasColumnType("int");
  1283. b.Property<bool>("ENABLED")
  1284. .HasColumnType("bit");
  1285. b.Property<DateTime?>("ENDTIME")
  1286. .HasColumnType("datetime2");
  1287. b.Property<int>("FLOOR")
  1288. .HasColumnType("int");
  1289. b.Property<short>("FULLQTY")
  1290. .HasColumnType("smallint");
  1291. b.Property<short>("HEIGHT")
  1292. .HasColumnType("smallint");
  1293. b.Property<decimal>("Length")
  1294. .HasColumnType("decimal(18,2)");
  1295. b.Property<string>("ManualRemarks")
  1296. .HasColumnType("nvarchar(max)");
  1297. b.Property<string>("MaterialCode")
  1298. .HasColumnType("nvarchar(max)");
  1299. b.Property<short>("PALLETTYPE")
  1300. .HasColumnType("smallint");
  1301. b.Property<short>("PRODLINE")
  1302. .HasColumnType("smallint");
  1303. b.Property<int>("Priority")
  1304. .HasColumnType("int");
  1305. b.Property<string>("SRMSTATION")
  1306. .HasMaxLength(20)
  1307. .HasColumnType("nvarchar(20)");
  1308. b.Property<DateTime?>("STARTTIME")
  1309. .HasColumnType("datetime2");
  1310. b.Property<int>("STATUS")
  1311. .HasColumnType("int");
  1312. b.Property<string>("TUNNEL")
  1313. .HasMaxLength(10)
  1314. .HasColumnType("nvarchar(10)");
  1315. b.Property<string>("TUNNELDL")
  1316. .HasMaxLength(10)
  1317. .HasColumnType("nvarchar(10)");
  1318. b.Property<int>("TYPE")
  1319. .HasColumnType("int");
  1320. b.Property<string>("TaskGroupKey")
  1321. .HasColumnType("nvarchar(max)");
  1322. b.Property<DateTime>("UPDATETIME")
  1323. .HasColumnType("datetime2");
  1324. b.Property<string>("UPDATEUSER")
  1325. .IsRequired()
  1326. .HasMaxLength(50)
  1327. .HasColumnType("nvarchar(50)");
  1328. b.Property<int>("UPLOADED")
  1329. .HasColumnType("int");
  1330. b.Property<byte[]>("VER")
  1331. .IsConcurrencyToken()
  1332. .ValueGeneratedOnAddOrUpdate()
  1333. .HasColumnType("rowversion");
  1334. b.Property<int>("WMSTASK")
  1335. .HasColumnType("int");
  1336. b.HasKey("ID");
  1337. b.ToTable("WCS_TASK");
  1338. });
  1339. modelBuilder.Entity("WCS.Entity.Protocol.BCR.WCS_BCR80", b =>
  1340. {
  1341. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  1342. .WithMany()
  1343. .HasForeignKey("DEVICECODE");
  1344. b.Navigation("DEVICE");
  1345. });
  1346. modelBuilder.Entity("WCS.Entity.Protocol.Station.WCS_Station520", b =>
  1347. {
  1348. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  1349. .WithMany()
  1350. .HasForeignKey("DEVICECODE");
  1351. b.Navigation("DEVICE");
  1352. });
  1353. modelBuilder.Entity("WCS.Entity.Protocol.Station.WCS_Station521", b =>
  1354. {
  1355. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  1356. .WithMany()
  1357. .HasForeignKey("DEVICECODE");
  1358. b.Navigation("DEVICE");
  1359. });
  1360. modelBuilder.Entity("WCS.Entity.Protocol.Station.WCS_Station523", b =>
  1361. {
  1362. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  1363. .WithMany()
  1364. .HasForeignKey("DEVICECODE");
  1365. b.Navigation("DEVICE");
  1366. });
  1367. modelBuilder.Entity("WCS.Entity.Protocol.WCS_RGV520", b =>
  1368. {
  1369. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  1370. .WithMany()
  1371. .HasForeignKey("DEVICECODE");
  1372. b.Navigation("DEVICE");
  1373. });
  1374. modelBuilder.Entity("WCS.Entity.Protocol.WCS_RGV521", b =>
  1375. {
  1376. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  1377. .WithMany()
  1378. .HasForeignKey("DEVICECODE");
  1379. b.Navigation("DEVICE");
  1380. });
  1381. modelBuilder.Entity("WCS.Entity.Protocol.WCS_RGV523", b =>
  1382. {
  1383. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  1384. .WithMany()
  1385. .HasForeignKey("DEVICECODE");
  1386. b.Navigation("DEVICE");
  1387. });
  1388. modelBuilder.Entity("WCS.Entity.Protocol.WCS_SRM520", b =>
  1389. {
  1390. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  1391. .WithMany()
  1392. .HasForeignKey("DEVICECODE");
  1393. b.Navigation("DEVICE");
  1394. });
  1395. modelBuilder.Entity("WCS.Entity.Protocol.WCS_SRM521", b =>
  1396. {
  1397. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  1398. .WithMany()
  1399. .HasForeignKey("DEVICECODE");
  1400. b.Navigation("DEVICE");
  1401. });
  1402. modelBuilder.Entity("WCS.Entity.Protocol.WCS_SRM537", b =>
  1403. {
  1404. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  1405. .WithMany()
  1406. .HasForeignKey("DEVICECODE");
  1407. b.Navigation("DEVICE");
  1408. });
  1409. modelBuilder.Entity("WCS.Entity.WCS_DATABLOCK", b =>
  1410. {
  1411. b.HasOne("WCS.Entity.WCS_PLC", "PLC")
  1412. .WithMany()
  1413. .HasForeignKey("PLCCODE");
  1414. b.Navigation("PLC");
  1415. });
  1416. modelBuilder.Entity("WCS.Entity.WCS_DEVICEPROTOCOL", b =>
  1417. {
  1418. b.HasOne("WCS.Entity.WCS_DATABLOCK", "DB")
  1419. .WithMany()
  1420. .HasForeignKey("DBCODE")
  1421. .OnDelete(DeleteBehavior.Restrict)
  1422. .IsRequired();
  1423. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  1424. .WithMany("PROTOCOLS")
  1425. .HasForeignKey("DEVICECODE")
  1426. .OnDelete(DeleteBehavior.Restrict)
  1427. .IsRequired();
  1428. b.Navigation("DB");
  1429. b.Navigation("DEVICE");
  1430. });
  1431. modelBuilder.Entity("WCS.Entity.WCS_GROUPMEMBER", b =>
  1432. {
  1433. b.HasOne("WCS.Entity.WCS_DEVICE", "GROUP")
  1434. .WithMany("DEVICEGROUP")
  1435. .HasForeignKey("GROUPCODE")
  1436. .OnDelete(DeleteBehavior.Restrict)
  1437. .IsRequired();
  1438. b.HasOne("WCS.Entity.WCS_DEVICE", "MEMBER")
  1439. .WithMany()
  1440. .HasForeignKey("MEMBERCODE")
  1441. .OnDelete(DeleteBehavior.Restrict)
  1442. .IsRequired();
  1443. b.Navigation("GROUP");
  1444. b.Navigation("MEMBER");
  1445. });
  1446. modelBuilder.Entity("WCS.Entity.WCS_PATH", b =>
  1447. {
  1448. b.HasOne("WCS.Entity.WCS_DEVICE", "END")
  1449. .WithMany()
  1450. .HasForeignKey("ENDCODE")
  1451. .OnDelete(DeleteBehavior.Restrict)
  1452. .IsRequired();
  1453. b.HasOne("WCS.Entity.WCS_DEVICE", "START")
  1454. .WithMany("PATHS")
  1455. .HasForeignKey("STARTCODE")
  1456. .OnDelete(DeleteBehavior.Restrict)
  1457. .IsRequired();
  1458. b.Navigation("END");
  1459. b.Navigation("START");
  1460. });
  1461. modelBuilder.Entity("WCS.Entity.WCS_PATHPOINT", b =>
  1462. {
  1463. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  1464. .WithMany()
  1465. .HasForeignKey("DEVICECODE")
  1466. .OnDelete(DeleteBehavior.Restrict)
  1467. .IsRequired();
  1468. b.HasOne("WCS.Entity.WCS_DEVICE", "END")
  1469. .WithMany()
  1470. .HasForeignKey("ENDCODE")
  1471. .OnDelete(DeleteBehavior.Restrict)
  1472. .IsRequired();
  1473. b.HasOne("WCS.Entity.WCS_DEVICE", "NEXT")
  1474. .WithMany()
  1475. .HasForeignKey("NEXTCODE");
  1476. b.HasOne("WCS.Entity.WCS_DEVICE", "PREV")
  1477. .WithMany()
  1478. .HasForeignKey("PREVCODE");
  1479. b.HasOne("WCS.Entity.WCS_DEVICE", "START")
  1480. .WithMany()
  1481. .HasForeignKey("STARTCODE")
  1482. .OnDelete(DeleteBehavior.Restrict)
  1483. .IsRequired();
  1484. b.Navigation("DEVICE");
  1485. b.Navigation("END");
  1486. b.Navigation("NEXT");
  1487. b.Navigation("PREV");
  1488. b.Navigation("START");
  1489. });
  1490. modelBuilder.Entity("WCS.Entity.WCS_ROUTE", b =>
  1491. {
  1492. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  1493. .WithMany("ROUTES")
  1494. .HasForeignKey("DEVICECODE")
  1495. .OnDelete(DeleteBehavior.Restrict)
  1496. .IsRequired();
  1497. b.HasOne("WCS.Entity.WCS_DEVICE", "NEXT")
  1498. .WithMany()
  1499. .HasForeignKey("NEXTCODE")
  1500. .OnDelete(DeleteBehavior.Restrict)
  1501. .IsRequired();
  1502. b.Navigation("DEVICE");
  1503. b.Navigation("NEXT");
  1504. });
  1505. modelBuilder.Entity("WCS.Entity.WCS_DEVICE", b =>
  1506. {
  1507. b.Navigation("DEVICEGROUP");
  1508. b.Navigation("PATHS");
  1509. b.Navigation("PROTOCOLS");
  1510. b.Navigation("ROUTES");
  1511. });
  1512. #pragma warning restore 612, 618
  1513. }
  1514. }
  1515. }