20220430065045_12.Designer.cs 68 KB

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