20220522064753_新增货物类型.Designer.cs 71 KB

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