WCSDBModelSnapshot.cs 67 KB

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