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