20220510062109_agvtask新增货物数量.Designer.cs 67 KB

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