20221010025311_新增状态记录.Designer.cs 72 KB

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