WCSDBModelSnapshot.cs 66 KB

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