12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012 |
- // <auto-generated />
- using System;
- using Microsoft.EntityFrameworkCore;
- using Microsoft.EntityFrameworkCore.Infrastructure;
- using Microsoft.EntityFrameworkCore.Metadata;
- using Microsoft.EntityFrameworkCore.Migrations;
- using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
- using WCS.Service;
- #nullable disable
- namespace WCS.Service.Migrations
- {
- [DbContext(typeof(WCSDB))]
- [Migration("20220411054310_10")]
- partial class _10
- {
- protected override void BuildTargetModel(ModelBuilder modelBuilder)
- {
- #pragma warning disable 612, 618
- modelBuilder
- .HasAnnotation("ProductVersion", "6.0.3")
- .HasAnnotation("Relational:MaxIdentifierLength", 128);
- SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1);
- modelBuilder.Entity("WCS.Entity.Protocol.BCR.WCS_BCR80", b =>
- {
- b.Property<int>("ID")
- .ValueGeneratedOnAdd()
- .HasColumnType("int")
- .HasColumnOrder(0);
- SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"), 1L, 1);
- b.Property<string>("Content")
- .HasMaxLength(130)
- .HasColumnType("nvarchar(130)");
- b.Property<string>("DEVICECODE")
- .HasColumnType("nvarchar(50)");
- b.Property<bool>("ENABLED")
- .HasColumnType("bit");
- b.Property<DateTime>("FRAME")
- .HasColumnType("datetime2");
- b.Property<bool>("ISLAST")
- .HasColumnType("bit");
- b.Property<DateTime>("UPDATETIME")
- .HasColumnType("datetime2");
- b.Property<string>("UPDATEUSER")
- .IsRequired()
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)");
- b.Property<byte[]>("VER")
- .IsConcurrencyToken()
- .ValueGeneratedOnAddOrUpdate()
- .HasColumnType("rowversion");
- b.Property<int>("WCSVERSION")
- .HasColumnType("int");
- b.HasKey("ID");
- b.HasIndex("DEVICECODE");
- b.ToTable("WCS_BCR80");
- });
- modelBuilder.Entity("WCS.Entity.Protocol.Station.WCS_Station520", b =>
- {
- b.Property<int>("ID")
- .ValueGeneratedOnAdd()
- .HasColumnType("int")
- .HasColumnOrder(0);
- SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"), 1L, 1);
- b.Property<short>("CmdType")
- .HasColumnType("smallint");
- b.Property<string>("DEVICECODE")
- .HasColumnType("nvarchar(50)");
- b.Property<bool>("ENABLED")
- .HasColumnType("bit");
- b.Property<DateTime>("FRAME")
- .HasColumnType("datetime2");
- b.Property<short>("GoodsSize")
- .HasColumnType("smallint");
- b.Property<int>("Goodscode")
- .HasColumnType("int");
- b.Property<short>("Goodsend")
- .HasColumnType("smallint");
- b.Property<short>("Goodsnum")
- .HasColumnType("smallint");
- b.Property<short>("Goodsstart")
- .HasColumnType("smallint");
- b.Property<bool>("ISLAST")
- .HasColumnType("bit");
- b.Property<int>("Istation521Status")
- .HasColumnType("int");
- b.Property<short>("Request")
- .HasColumnType("smallint");
- b.Property<int>("Tasknum")
- .HasColumnType("int");
- b.Property<DateTime>("UPDATETIME")
- .HasColumnType("datetime2");
- b.Property<string>("UPDATEUSER")
- .IsRequired()
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)");
- b.Property<byte[]>("VER")
- .IsConcurrencyToken()
- .ValueGeneratedOnAddOrUpdate()
- .HasColumnType("rowversion");
- b.Property<short>("VoucherNo")
- .HasColumnType("smallint");
- b.Property<int>("WCSVERSION")
- .HasColumnType("int");
- b.HasKey("ID");
- b.HasIndex("DEVICECODE");
- b.ToTable("WCS_STATION520");
- });
- modelBuilder.Entity("WCS.Entity.Protocol.Station.WCS_Station521", b =>
- {
- b.Property<int>("ID")
- .ValueGeneratedOnAdd()
- .HasColumnType("int")
- .HasColumnOrder(0);
- SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"), 1L, 1);
- b.Property<short>("CmdType")
- .HasColumnType("smallint");
- b.Property<string>("DEVICECODE")
- .HasColumnType("nvarchar(50)");
- b.Property<bool>("ENABLED")
- .HasColumnType("bit");
- b.Property<DateTime>("FRAME")
- .HasColumnType("datetime2");
- b.Property<short>("GoodsSize")
- .HasColumnType("smallint");
- b.Property<int>("Goodscode")
- .HasColumnType("int");
- b.Property<short>("Goodsend")
- .HasColumnType("smallint");
- b.Property<short>("Goodsnum")
- .HasColumnType("smallint");
- b.Property<short>("Goodsstart")
- .HasColumnType("smallint");
- b.Property<bool>("ISLAST")
- .HasColumnType("bit");
- b.Property<int>("Istation521Status")
- .HasColumnType("int");
- b.Property<short>("Request")
- .HasColumnType("smallint");
- b.Property<int>("Tasknum")
- .HasColumnType("int");
- b.Property<DateTime>("UPDATETIME")
- .HasColumnType("datetime2");
- b.Property<string>("UPDATEUSER")
- .IsRequired()
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)");
- b.Property<byte[]>("VER")
- .IsConcurrencyToken()
- .ValueGeneratedOnAddOrUpdate()
- .HasColumnType("rowversion");
- b.Property<short>("VoucherNo")
- .HasColumnType("smallint");
- b.Property<int>("WCSVERSION")
- .HasColumnType("int");
- b.HasKey("ID");
- b.HasIndex("DEVICECODE");
- b.ToTable("WCS_STATION521");
- });
- modelBuilder.Entity("WCS.Entity.Protocol.Station.WCS_Station523", b =>
- {
- b.Property<int>("ID")
- .ValueGeneratedOnAdd()
- .HasColumnType("int")
- .HasColumnOrder(0);
- SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"), 1L, 1);
- b.Property<int>("Alarm")
- .HasColumnType("int");
- b.Property<string>("DEVICECODE")
- .HasColumnType("nvarchar(50)");
- b.Property<bool>("ENABLED")
- .HasColumnType("bit");
- b.Property<DateTime>("FRAME")
- .HasColumnType("datetime2");
- b.Property<bool>("ISLAST")
- .HasColumnType("bit");
- b.Property<short>("RES")
- .HasColumnType("smallint");
- b.Property<float>("RunTime")
- .HasColumnType("real");
- b.Property<int>("Status")
- .HasColumnType("int");
- b.Property<DateTime>("UPDATETIME")
- .HasColumnType("datetime2");
- b.Property<string>("UPDATEUSER")
- .IsRequired()
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)");
- b.Property<byte[]>("VER")
- .IsConcurrencyToken()
- .ValueGeneratedOnAddOrUpdate()
- .HasColumnType("rowversion");
- b.Property<int>("WCSVERSION")
- .HasColumnType("int");
- b.HasKey("ID");
- b.HasIndex("DEVICECODE");
- b.ToTable("WCS_STATION523");
- });
- modelBuilder.Entity("WCS.Entity.Protocol.WCS_AGVTask", b =>
- {
- b.Property<int>("ID")
- .ValueGeneratedOnAdd()
- .HasColumnType("int");
- SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"), 1L, 1);
- b.Property<string>("AGVID")
- .HasMaxLength(20)
- .HasColumnType("nvarchar(20)");
- b.Property<int>("AGVStatus")
- .HasColumnType("int");
- b.Property<DateTime?>("AGVUpdateTime")
- .HasColumnType("datetime2");
- b.Property<DateTime>("CreateTime")
- .HasColumnType("datetime2");
- b.Property<string>("Position")
- .IsRequired()
- .HasMaxLength(20)
- .HasColumnType("nvarchar(20)");
- b.Property<string>("Station")
- .HasMaxLength(20)
- .HasColumnType("nvarchar(20)");
- b.Property<int>("Status")
- .HasColumnType("int");
- b.Property<int>("TaskType")
- .HasColumnType("int");
- b.Property<DateTime?>("UpdateTime")
- .HasColumnType("datetime2");
- b.Property<int>("Workshop")
- .HasColumnType("int");
- b.HasKey("ID");
- b.ToTable("WCS_AGVTask");
- });
- modelBuilder.Entity("WCS.Entity.Protocol.WCS_MAPPINGENTRY", b =>
- {
- b.Property<int>("MEP_ID")
- .ValueGeneratedOnAdd()
- .HasColumnType("int");
- SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("MEP_ID"), 1L, 1);
- b.Property<bool>("MEP_ISSTOP")
- .HasColumnType("bit");
- b.Property<string>("MEP_MAPPINGCHNAME")
- .IsRequired()
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)");
- b.Property<int>("MEP_MAPPINGNO")
- .HasColumnType("int");
- b.Property<string>("MEP_MAPPINGTYPE")
- .IsRequired()
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)");
- b.HasKey("MEP_ID");
- b.ToTable("WCS_MAPPINGENTRY");
- });
- modelBuilder.Entity("WCS.Entity.Protocol.WCS_RGV520", b =>
- {
- b.Property<int>("ID")
- .ValueGeneratedOnAdd()
- .HasColumnType("int")
- .HasColumnOrder(0);
- SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"), 1L, 1);
- b.Property<string>("DEVICECODE")
- .HasColumnType("nvarchar(50)");
- b.Property<short>("DestPosition_1")
- .HasColumnType("smallint");
- b.Property<short>("DestPosition_2")
- .HasColumnType("smallint");
- b.Property<bool>("ENABLED")
- .HasColumnType("bit");
- b.Property<DateTime>("FRAME")
- .HasColumnType("datetime2");
- b.Property<bool>("ISLAST")
- .HasColumnType("bit");
- b.Property<short>("Priority_1")
- .HasColumnType("smallint");
- b.Property<short>("Priority_2")
- .HasColumnType("smallint");
- b.Property<short>("RES1_1")
- .HasColumnType("smallint");
- b.Property<short>("RES1_2")
- .HasColumnType("smallint");
- b.Property<short>("RES2_1")
- .HasColumnType("smallint");
- b.Property<short>("RES2_2")
- .HasColumnType("smallint");
- b.Property<short>("StartPosition_1")
- .HasColumnType("smallint");
- b.Property<short>("StartPosition_2")
- .HasColumnType("smallint");
- b.Property<int>("TaskID_1")
- .HasColumnType("int");
- b.Property<int>("TaskID_2")
- .HasColumnType("int");
- b.Property<short>("TaskType_1")
- .HasColumnType("smallint");
- b.Property<short>("TaskType_2")
- .HasColumnType("smallint");
- b.Property<int>("Trigger_1")
- .HasColumnType("int");
- b.Property<int>("Trigger_2")
- .HasColumnType("int");
- b.Property<DateTime>("UPDATETIME")
- .HasColumnType("datetime2");
- b.Property<string>("UPDATEUSER")
- .IsRequired()
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)");
- b.Property<byte[]>("VER")
- .IsConcurrencyToken()
- .ValueGeneratedOnAddOrUpdate()
- .HasColumnType("rowversion");
- b.Property<int>("WCSVERSION")
- .HasColumnType("int");
- b.HasKey("ID");
- b.HasIndex("DEVICECODE");
- b.ToTable("WCS_RGV520");
- });
- modelBuilder.Entity("WCS.Entity.Protocol.WCS_RGV521", b =>
- {
- b.Property<int>("ID")
- .ValueGeneratedOnAdd()
- .HasColumnType("int")
- .HasColumnOrder(0);
- SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"), 1L, 1);
- b.Property<string>("DEVICECODE")
- .HasColumnType("nvarchar(50)");
- b.Property<short>("DestPosition_1")
- .HasColumnType("smallint");
- b.Property<short>("DestPosition_2")
- .HasColumnType("smallint");
- b.Property<bool>("ENABLED")
- .HasColumnType("bit");
- b.Property<DateTime>("FRAME")
- .HasColumnType("datetime2");
- b.Property<bool>("Finish_1")
- .HasColumnType("bit");
- b.Property<bool>("Finish_2")
- .HasColumnType("bit");
- b.Property<bool>("ISLAST")
- .HasColumnType("bit");
- b.Property<float>("Mileage")
- .HasColumnType("real");
- b.Property<bool>("PH_Status_1")
- .HasColumnType("bit");
- b.Property<bool>("PH_Status_2")
- .HasColumnType("bit");
- b.Property<short>("PRIORITY_1")
- .HasColumnType("smallint");
- b.Property<short>("PRIORITY_2")
- .HasColumnType("smallint");
- b.Property<float>("Position")
- .HasColumnType("real");
- b.Property<short>("RES1_1")
- .HasColumnType("smallint");
- b.Property<short>("RES1_2")
- .HasColumnType("smallint");
- b.Property<short>("RES2_1")
- .HasColumnType("smallint");
- b.Property<short>("RES2_2")
- .HasColumnType("smallint");
- b.Property<bool>("RES3_1")
- .HasColumnType("bit");
- b.Property<bool>("RES3_2")
- .HasColumnType("bit");
- b.Property<bool>("RES4_1")
- .HasColumnType("bit");
- b.Property<bool>("RES4_2")
- .HasColumnType("bit");
- b.Property<bool>("RES5_1")
- .HasColumnType("bit");
- b.Property<bool>("RES5_2")
- .HasColumnType("bit");
- b.Property<bool>("RES6_1")
- .HasColumnType("bit");
- b.Property<bool>("RES6_2")
- .HasColumnType("bit");
- b.Property<bool>("RES7_1")
- .HasColumnType("bit");
- b.Property<bool>("RES7_2")
- .HasColumnType("bit");
- b.Property<float>("Runtime")
- .HasColumnType("real");
- b.Property<short>("StartPosition_1")
- .HasColumnType("smallint");
- b.Property<short>("StartPosition_2")
- .HasColumnType("smallint");
- b.Property<short>("SystemStatus")
- .HasColumnType("smallint");
- b.Property<int>("TaskID_1")
- .HasColumnType("int");
- b.Property<int>("TaskID_2")
- .HasColumnType("int");
- b.Property<short>("TaskType_1")
- .HasColumnType("smallint");
- b.Property<short>("TaskType_2")
- .HasColumnType("smallint");
- b.Property<bool>("ToSition_1")
- .HasColumnType("bit");
- b.Property<bool>("ToSition_2")
- .HasColumnType("bit");
- b.Property<int>("Trigger_1")
- .HasColumnType("int");
- b.Property<int>("Trigger_2")
- .HasColumnType("int");
- b.Property<DateTime>("UPDATETIME")
- .HasColumnType("datetime2");
- b.Property<string>("UPDATEUSER")
- .IsRequired()
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)");
- b.Property<byte[]>("VER")
- .IsConcurrencyToken()
- .ValueGeneratedOnAddOrUpdate()
- .HasColumnType("rowversion");
- b.Property<int>("WCSVERSION")
- .HasColumnType("int");
- b.Property<short>("WorkMode")
- .HasColumnType("smallint");
- b.HasKey("ID");
- b.HasIndex("DEVICECODE");
- b.ToTable("WCS_RGV521");
- });
- modelBuilder.Entity("WCS.Entity.Protocol.WCS_RGV523", b =>
- {
- b.Property<int>("ID")
- .ValueGeneratedOnAdd()
- .HasColumnType("int")
- .HasColumnOrder(0);
- SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"), 1L, 1);
- b.Property<string>("DEVICECODE")
- .HasColumnType("nvarchar(50)");
- b.Property<bool>("ENABLED")
- .HasColumnType("bit");
- b.Property<DateTime>("FRAME")
- .HasColumnType("datetime2");
- b.Property<int>("Fault")
- .HasColumnType("int");
- b.Property<int>("Fault1")
- .HasColumnType("int");
- b.Property<int>("Fault2")
- .HasColumnType("int");
- b.Property<bool>("ISLAST")
- .HasColumnType("bit");
- b.Property<int>("Status")
- .HasColumnType("int");
- b.Property<int>("Status1")
- .HasColumnType("int");
- b.Property<int>("Status2")
- .HasColumnType("int");
- b.Property<DateTime>("UPDATETIME")
- .HasColumnType("datetime2");
- b.Property<string>("UPDATEUSER")
- .IsRequired()
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)");
- b.Property<byte[]>("VER")
- .IsConcurrencyToken()
- .ValueGeneratedOnAddOrUpdate()
- .HasColumnType("rowversion");
- b.Property<int>("WCSVERSION")
- .HasColumnType("int");
- b.HasKey("ID");
- b.HasIndex("DEVICECODE");
- b.ToTable("WCS_RGV523");
- });
- modelBuilder.Entity("WCS.Entity.Protocol.WCS_SRM520", b =>
- {
- b.Property<int>("ID")
- .ValueGeneratedOnAdd()
- .HasColumnType("int")
- .HasColumnOrder(0);
- SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"), 1L, 1);
- b.Property<string>("DEVICECODE")
- .HasColumnType("nvarchar(50)");
- b.Property<short>("ECol_1")
- .HasColumnType("smallint");
- b.Property<short>("ECol_2")
- .HasColumnType("smallint");
- b.Property<short>("EDepth_1")
- .HasColumnType("smallint");
- b.Property<short>("EDepth_2")
- .HasColumnType("smallint");
- b.Property<short>("ELayer_1")
- .HasColumnType("smallint");
- b.Property<short>("ELayer_2")
- .HasColumnType("smallint");
- b.Property<short>("ELine_1")
- .HasColumnType("smallint");
- b.Property<short>("ELine_2")
- .HasColumnType("smallint");
- b.Property<bool>("ENABLED")
- .HasColumnType("bit");
- b.Property<DateTime>("FRAME")
- .HasColumnType("datetime2");
- b.Property<short>("FinishedACK_1")
- .HasColumnType("smallint");
- b.Property<short>("FinishedACK_2")
- .HasColumnType("smallint");
- b.Property<short>("GoodsType_1")
- .HasColumnType("smallint");
- b.Property<short>("GoodsType_2")
- .HasColumnType("smallint");
- b.Property<short>("Handshake_1")
- .HasColumnType("smallint");
- b.Property<short>("Handshake_2")
- .HasColumnType("smallint");
- b.Property<bool>("ISLAST")
- .HasColumnType("bit");
- b.Property<short>("RES1_1")
- .HasColumnType("smallint");
- b.Property<short>("RES1_2")
- .HasColumnType("smallint");
- b.Property<short>("RES2_1")
- .HasColumnType("smallint");
- b.Property<short>("RES2_2")
- .HasColumnType("smallint");
- b.Property<short>("RES3_1")
- .HasColumnType("smallint");
- b.Property<short>("RES3_2")
- .HasColumnType("smallint");
- b.Property<short>("RES4_1")
- .HasColumnType("smallint");
- b.Property<short>("RES4_2")
- .HasColumnType("smallint");
- b.Property<short>("SCSpeedMode_2")
- .HasColumnType("smallint");
- b.Property<short>("SCol_1")
- .HasColumnType("smallint");
- b.Property<short>("SCol_2")
- .HasColumnType("smallint");
- b.Property<short>("SDepth_1")
- .HasColumnType("smallint");
- b.Property<short>("SDepth_2")
- .HasColumnType("smallint");
- b.Property<short>("SLayer_1")
- .HasColumnType("smallint");
- b.Property<short>("SLayer_2")
- .HasColumnType("smallint");
- b.Property<short>("SLine_1")
- .HasColumnType("smallint");
- b.Property<short>("SLine_2")
- .HasColumnType("smallint");
- b.Property<short>("SpeedMode_1")
- .HasColumnType("smallint");
- b.Property<int>("TaskID_1")
- .HasColumnType("int");
- b.Property<int>("TaskID_2")
- .HasColumnType("int");
- b.Property<DateTime>("UPDATETIME")
- .HasColumnType("datetime2");
- b.Property<string>("UPDATEUSER")
- .IsRequired()
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)");
- b.Property<byte[]>("VER")
- .IsConcurrencyToken()
- .ValueGeneratedOnAddOrUpdate()
- .HasColumnType("rowversion");
- b.Property<short>("VoucherNo_1")
- .HasColumnType("smallint");
- b.Property<short>("VoucherNo_2")
- .HasColumnType("smallint");
- b.Property<int>("WCSVERSION")
- .HasColumnType("int");
- b.HasKey("ID");
- b.HasIndex("DEVICECODE");
- b.ToTable("WCS_SRM520");
- });
- modelBuilder.Entity("WCS.Entity.Protocol.WCS_SRM521", b =>
- {
- b.Property<int>("ID")
- .ValueGeneratedOnAdd()
- .HasColumnType("int")
- .HasColumnOrder(0);
- SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"), 1L, 1);
- b.Property<short>("Alarm")
- .HasColumnType("smallint");
- b.Property<short>("Col_1")
- .HasColumnType("smallint");
- b.Property<short>("Col_2")
- .HasColumnType("smallint");
- b.Property<string>("DEVICECODE")
- .HasColumnType("nvarchar(50)");
- b.Property<short>("ECol_1")
- .HasColumnType("smallint");
- b.Property<short>("ECol_2")
- .HasColumnType("smallint");
- b.Property<short>("EDepth_1")
- .HasColumnType("smallint");
- b.Property<short>("EDepth_2")
- .HasColumnType("smallint");
- b.Property<short>("ELayer_1")
- .HasColumnType("smallint");
- b.Property<short>("ELayer_2")
- .HasColumnType("smallint");
- b.Property<short>("ELine_1")
- .HasColumnType("smallint");
- b.Property<short>("ELine_2")
- .HasColumnType("smallint");
- b.Property<bool>("ENABLED")
- .HasColumnType("bit");
- b.Property<DateTime>("FRAME")
- .HasColumnType("datetime2");
- b.Property<int>("FinishedTask_1")
- .HasColumnType("int");
- b.Property<int>("FinishedTask_2")
- .HasColumnType("int");
- b.Property<int>("ForkPos_1")
- .HasColumnType("int");
- b.Property<int>("ForkPos_2")
- .HasColumnType("int");
- b.Property<long>("ForkStatus_1")
- .HasColumnType("bigint");
- b.Property<long>("ForkStatus_2")
- .HasColumnType("bigint");
- b.Property<short>("GoodsType_1")
- .HasColumnType("smallint");
- b.Property<short>("GoodsType_2")
- .HasColumnType("smallint");
- b.Property<bool>("ISLAST")
- .HasColumnType("bit");
- b.Property<short>("Layer_1")
- .HasColumnType("smallint");
- b.Property<short>("Layer_2")
- .HasColumnType("smallint");
- b.Property<int>("LiftPos_1")
- .HasColumnType("int");
- b.Property<int>("LiftPos_2")
- .HasColumnType("int");
- b.Property<short>("Line_1")
- .HasColumnType("smallint");
- b.Property<short>("Line_2")
- .HasColumnType("smallint");
- b.Property<short>("Mode_1")
- .HasColumnType("smallint");
- b.Property<short>("Mode_2")
- .HasColumnType("smallint");
- b.Property<short>("RES10_1")
- .HasColumnType("smallint");
- b.Property<short>("RES10_2")
- .HasColumnType("smallint");
- b.Property<int>("RES11_1")
- .HasColumnType("int");
- b.Property<int>("RES11_2")
- .HasColumnType("int");
- b.Property<int>("RES12_1")
- .HasColumnType("int");
- b.Property<int>("RES12_2")
- .HasColumnType("int");
- b.Property<int>("RES13_1")
- .HasColumnType("int");
- b.Property<int>("RES13_2")
- .HasColumnType("int");
- b.Property<int>("RES14_1")
- .HasColumnType("int");
- b.Property<int>("RES14_2")
- .HasColumnType("int");
- b.Property<short>("RES9_1")
- .HasColumnType("smallint");
- b.Property<short>("RES9_2")
- .HasColumnType("smallint");
- b.Property<float>("Runtime")
- .HasColumnType("real");
- b.Property<float>("Runtime_1")
- .HasColumnType("real");
- b.Property<float>("Runtime_2")
- .HasColumnType("real");
- b.Property<short>("SCol_1")
- .HasColumnType("smallint");
- b.Property<short>("SCol_2")
- .HasColumnType("smallint");
- b.Property<short>("SDepth_1")
- .HasColumnType("smallint");
- b.Property<short>("SDepth_2")
- .HasColumnType("smallint");
- b.Property<short>("SLayer_1")
- .HasColumnType("smallint");
- b.Property<short>("SLayer_2")
- .HasColumnType("smallint");
- b.Property<short>("SLine_1")
- .HasColumnType("smallint");
- b.Property<short>("SLine_2")
- .HasColumnType("smallint");
- b.Property<short>("SRMMode")
- .HasColumnType("smallint");
- b.Property<short>("SRMStatus")
- .HasColumnType("smallint");
- b.Property<short>("Status_1")
- .HasColumnType("smallint");
- b.Property<short>("Status_2")
- .HasColumnType("smallint");
- b.Property<int>("TaskID_1")
- .HasColumnType("int");
- b.Property<int>("TaskID_2")
- .HasColumnType("int");
- b.Property<float>("TotalKM")
- .HasColumnType("real");
- b.Property<float>("TotalKM_1")
- .HasColumnType("real");
- b.Property<float>("TotalKM_2")
- .HasColumnType("real");
- b.Property<int>("TravelPos_1")
- .HasColumnType("int");
- b.Property<int>("TravelPos_2")
- .HasColumnType("int");
- b.Property<DateTime>("UPDATETIME")
- .HasColumnType("datetime2");
- b.Property<string>("UPDATEUSER")
- .IsRequired()
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)");
- b.Property<byte[]>("VER")
- .IsConcurrencyToken()
- .ValueGeneratedOnAddOrUpdate()
- .HasColumnType("rowversion");
- b.Property<short>("VoucherNo_1")
- .HasColumnType("smallint");
- b.Property<short>("VoucherNo_2")
- .HasColumnType("smallint");
- b.Property<int>("WCSVERSION")
- .HasColumnType("int");
- b.HasKey("ID");
- b.HasIndex("DEVICECODE");
- b.ToTable("WCS_SRM521");
- });
- modelBuilder.Entity("WCS.Entity.Protocol.WCS_SRM537", b =>
- {
- b.Property<int>("ID")
- .ValueGeneratedOnAdd()
- .HasColumnType("int")
- .HasColumnOrder(0);
- SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"), 1L, 1);
- b.Property<string>("DEVICECODE")
- .HasColumnType("nvarchar(50)");
- b.Property<bool>("ENABLED")
- .HasColumnType("bit");
- b.Property<DateTime>("FRAME")
- .HasColumnType("datetime2");
- b.Property<bool>("ISLAST")
- .HasColumnType("bit");
- b.Property<decimal>("SCAlarm")
- .HasColumnType("decimal(20,0)");
- b.Property<DateTime>("UPDATETIME")
- .HasColumnType("datetime2");
- b.Property<string>("UPDATEUSER")
- .IsRequired()
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)");
- b.Property<byte[]>("VER")
- .IsConcurrencyToken()
- .ValueGeneratedOnAddOrUpdate()
- .HasColumnType("rowversion");
- b.Property<int>("WCSVERSION")
- .HasColumnType("int");
- b.HasKey("ID");
- b.HasIndex("DEVICECODE");
- b.ToTable("WCS_SRM537");
- });
- modelBuilder.Entity("WCS.Entity.Protocol.WCS_StatusLog", b =>
- {
- b.Property<int>("ID")
- .ValueGeneratedOnAdd()
- .HasColumnType("int")
- .HasColumnOrder(0);
- SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"), 1L, 1);
- b.Property<bool>("ENABLED")
- .HasColumnType("bit");
- b.Property<int>("NewStatus")
- .HasColumnType("int");
- b.Property<string>("Node")
- .HasColumnType("nvarchar(max)");
- b.Property<int>("OldStatus")
- .HasColumnType("int");
- b.Property<DateTime>("UPDATETIME")
- .HasColumnType("datetime2");
- b.Property<string>("UPDATEUSER")
- .IsRequired()
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)");
- b.Property<byte[]>("VER")
- .IsConcurrencyToken()
- .ValueGeneratedOnAddOrUpdate()
- .HasColumnType("rowversion");
- b.Property<int>("WCS_TASKID")
- .HasColumnType("int");
- b.Property<string>("msg")
- .HasColumnType("nvarchar(max)");
- b.Property<int>("upStatus")
- .HasColumnType("int");
- b.HasKey("ID");
- b.ToTable("WCS_StatusLog");
- });
- modelBuilder.Entity("WCS.Entity.Protocol.WCS_SystemConfig", b =>
- {
- b.Property<int>("ID")
- .ValueGeneratedOnAdd()
- .HasColumnType("int")
- .HasColumnOrder(0);
- SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"), 1L, 1);
- b.Property<string>("Code")
- .HasColumnType("nvarchar(max)");
- b.Property<string>("DEVICECODE")
- .HasColumnType("nvarchar(max)");
- b.Property<string>("Describe")
- .HasColumnType("nvarchar(max)");
- b.Property<string>("Direction")
- .HasColumnType("nvarchar(max)");
- b.Property<bool>("ENABLED")
- .HasColumnType("bit");
- b.Property<string>("TUNNEL")
- .HasColumnType("nvarchar(max)");
- b.Property<DateTime>("UPDATETIME")
- .HasColumnType("datetime2");
- b.Property<string>("UPDATEUSER")
- .IsRequired()
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)");
- b.Property<byte[]>("VER")
- .IsConcurrencyToken()
- .ValueGeneratedOnAddOrUpdate()
- .HasColumnType("rowversion");
- b.HasKey("ID");
- b.ToTable("WCS_SystemConfig");
- });
- modelBuilder.Entity("WCS.Entity.Protocol.WCS_Users", b =>
- {
- b.Property<string>("USER_NO")
- .HasMaxLength(128)
- .HasColumnType("nvarchar(128)");
- b.Property<string>("USER_PWD")
- .IsRequired()
- .HasMaxLength(128)
- .HasColumnType("nvarchar(128)");
- b.Property<byte[]>("USER_TEXT")
- .HasColumnType("varbinary(max)");
- b.HasKey("USER_NO");
- b.ToTable("WCS_Users");
- });
- modelBuilder.Entity("WCS.Entity.WCS_CMD", b =>
- {
- b.Property<int>("ID")
- .ValueGeneratedOnAdd()
- .HasColumnType("int")
- .HasColumnOrder(0);
- SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"), 1L, 1);
- b.Property<string>("DEVICE_CODE")
- .HasMaxLength(20)
- .HasColumnType("nvarchar(20)");
- b.Property<bool>("ENABLED")
- .HasColumnType("bit");
- b.Property<string>("PROPERTY")
- .HasMaxLength(32)
- .HasColumnType("nvarchar(32)");
- b.Property<string>("PROTOCOL")
- .HasMaxLength(256)
- .HasColumnType("nvarchar(256)");
- b.Property<DateTime>("UPDATETIME")
- .HasColumnType("datetime2");
- b.Property<string>("UPDATEUSER")
- .IsRequired()
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)");
- b.Property<string>("VALUE")
- .HasMaxLength(512)
- .HasColumnType("nvarchar(512)");
- b.Property<byte[]>("VER")
- .IsConcurrencyToken()
- .ValueGeneratedOnAddOrUpdate()
- .HasColumnType("rowversion");
- b.Property<int>("WCSVERSION")
- .HasColumnType("int");
- b.HasKey("ID");
- b.ToTable("WCS_CMD");
- });
- modelBuilder.Entity("WCS.Entity.WCS_DATABLOCK", b =>
- {
- b.Property<string>("CODE")
- .HasMaxLength(20)
- .HasColumnType("nvarchar(20)");
- b.Property<int>("DATALENGTH")
- .HasColumnType("int");
- b.Property<bool>("ENABLED")
- .HasColumnType("bit");
- b.Property<int>("LENGTH")
- .HasColumnType("int");
- b.Property<string>("NAME")
- .HasMaxLength(20)
- .HasColumnType("nvarchar(20)");
- b.Property<int>("NO")
- .HasColumnType("int");
- b.Property<bool>("NOUPDATE")
- .HasColumnType("bit");
- b.Property<string>("PLCCODE")
- .HasColumnType("nvarchar(20)");
- b.Property<string>("PROTOCOL")
- .IsRequired()
- .HasMaxLength(200)
- .HasColumnType("nvarchar(200)");
- b.Property<DateTime>("UPDATETIME")
- .HasColumnType("datetime2");
- b.Property<string>("UPDATEUSER")
- .IsRequired()
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)");
- b.Property<byte[]>("VER")
- .IsConcurrencyToken()
- .ValueGeneratedOnAddOrUpdate()
- .HasColumnType("rowversion");
- b.HasKey("CODE");
- b.HasIndex("PLCCODE");
- b.ToTable("WCS_DATABLOCK");
- });
- modelBuilder.Entity("WCS.Entity.WCS_DEVICE", b =>
- {
- b.Property<string>("CODE")
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)");
- b.Property<bool>("ENABLED")
- .HasColumnType("bit");
- b.Property<string>("NAME")
- .IsRequired()
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)");
- b.Property<DateTime>("UPDATETIME")
- .HasColumnType("datetime2");
- b.Property<string>("UPDATEUSER")
- .IsRequired()
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)");
- b.Property<byte[]>("VER")
- .IsConcurrencyToken()
- .ValueGeneratedOnAddOrUpdate()
- .HasColumnType("rowversion");
- b.HasKey("CODE");
- b.ToTable("WCS_DEVICE");
- });
- modelBuilder.Entity("WCS.Entity.WCS_DEVICEPROTOCOL", b =>
- {
- b.Property<int>("ID")
- .ValueGeneratedOnAdd()
- .HasColumnType("int")
- .HasColumnOrder(0);
- SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"), 1L, 1);
- b.Property<string>("DBCODE")
- .IsRequired()
- .HasColumnType("nvarchar(20)");
- b.Property<string>("DEVICECODE")
- .IsRequired()
- .HasColumnType("nvarchar(50)");
- b.Property<bool>("ENABLED")
- .HasColumnType("bit");
- b.Property<short>("POSITION")
- .HasColumnType("smallint");
- b.Property<DateTime>("UPDATETIME")
- .HasColumnType("datetime2");
- b.Property<string>("UPDATEUSER")
- .IsRequired()
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)");
- b.Property<byte[]>("VER")
- .IsConcurrencyToken()
- .ValueGeneratedOnAddOrUpdate()
- .HasColumnType("rowversion");
- b.HasKey("ID");
- b.HasIndex("DBCODE");
- b.HasIndex("DEVICECODE");
- b.ToTable("WCS_DEVICEPROTOCOL");
- });
- modelBuilder.Entity("WCS.Entity.WCS_EXCEPTION", b =>
- {
- b.Property<int>("ID")
- .ValueGeneratedOnAdd()
- .HasColumnType("int")
- .HasColumnOrder(0);
- SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"), 1L, 1);
- b.Property<string>("DEVICE")
- .HasMaxLength(1000)
- .HasColumnType("nvarchar(1000)");
- b.Property<bool>("ENABLED")
- .HasColumnType("bit");
- b.Property<string>("EXCEPTIONTYPE")
- .HasMaxLength(1000)
- .HasColumnType("nvarchar(1000)");
- b.Property<string>("MSG")
- .HasMaxLength(1000)
- .HasColumnType("nvarchar(1000)");
- b.Property<DateTime>("STARTTIME")
- .HasColumnType("datetime2");
- b.Property<int>("TIMES")
- .HasColumnType("int");
- b.Property<DateTime>("UPDATETIME")
- .HasColumnType("datetime2");
- b.Property<string>("UPDATEUSER")
- .IsRequired()
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)");
- b.Property<byte[]>("VER")
- .IsConcurrencyToken()
- .ValueGeneratedOnAddOrUpdate()
- .HasColumnType("rowversion");
- b.HasKey("ID");
- b.ToTable("WCS_EXCEPTION");
- });
- modelBuilder.Entity("WCS.Entity.WCS_GROUPMEMBER", b =>
- {
- b.Property<int>("ID")
- .ValueGeneratedOnAdd()
- .HasColumnType("int")
- .HasColumnOrder(0);
- SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"), 1L, 1);
- b.Property<bool>("ENABLED")
- .HasColumnType("bit");
- b.Property<string>("GROUPCODE")
- .IsRequired()
- .HasColumnType("nvarchar(50)");
- b.Property<string>("MEMBERCODE")
- .IsRequired()
- .HasColumnType("nvarchar(50)");
- b.Property<DateTime>("UPDATETIME")
- .HasColumnType("datetime2");
- b.Property<string>("UPDATEUSER")
- .IsRequired()
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)");
- b.Property<byte[]>("VER")
- .IsConcurrencyToken()
- .ValueGeneratedOnAddOrUpdate()
- .HasColumnType("rowversion");
- b.HasKey("ID");
- b.HasIndex("GROUPCODE");
- b.HasIndex("MEMBERCODE");
- b.ToTable("WCS_GROUPMEMBER");
- });
- modelBuilder.Entity("WCS.Entity.WCS_PATH", b =>
- {
- b.Property<int>("ID")
- .ValueGeneratedOnAdd()
- .HasColumnType("int")
- .HasColumnOrder(0);
- SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"), 1L, 1);
- b.Property<bool>("ENABLED")
- .HasColumnType("bit");
- b.Property<string>("ENDCODE")
- .IsRequired()
- .HasColumnType("nvarchar(50)");
- b.Property<string>("PATH")
- .IsRequired()
- .HasColumnType("nvarchar(max)");
- b.Property<string>("STARTCODE")
- .IsRequired()
- .HasColumnType("nvarchar(50)");
- b.Property<DateTime>("UPDATETIME")
- .HasColumnType("datetime2");
- b.Property<string>("UPDATEUSER")
- .IsRequired()
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)");
- b.Property<byte[]>("VER")
- .IsConcurrencyToken()
- .ValueGeneratedOnAddOrUpdate()
- .HasColumnType("rowversion");
- b.HasKey("ID");
- b.HasIndex("ENDCODE");
- b.HasIndex("STARTCODE");
- b.ToTable("WCS_PATH");
- });
- modelBuilder.Entity("WCS.Entity.WCS_PATHPOINT", b =>
- {
- b.Property<int>("ID")
- .ValueGeneratedOnAdd()
- .HasColumnType("int")
- .HasColumnOrder(0);
- SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"), 1L, 1);
- b.Property<string>("DEVICECODE")
- .IsRequired()
- .HasColumnType("nvarchar(50)");
- b.Property<bool>("ENABLED")
- .HasColumnType("bit");
- b.Property<string>("ENDCODE")
- .IsRequired()
- .HasColumnType("nvarchar(50)");
- b.Property<string>("NEXTCODE")
- .HasColumnType("nvarchar(50)");
- b.Property<string>("PREVCODE")
- .HasColumnType("nvarchar(50)");
- b.Property<string>("STARTCODE")
- .IsRequired()
- .HasColumnType("nvarchar(50)");
- b.Property<DateTime>("UPDATETIME")
- .HasColumnType("datetime2");
- b.Property<string>("UPDATEUSER")
- .IsRequired()
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)");
- b.Property<byte[]>("VER")
- .IsConcurrencyToken()
- .ValueGeneratedOnAddOrUpdate()
- .HasColumnType("rowversion");
- b.HasKey("ID");
- b.HasIndex("DEVICECODE");
- b.HasIndex("ENDCODE");
- b.HasIndex("NEXTCODE");
- b.HasIndex("PREVCODE");
- b.HasIndex("STARTCODE");
- b.ToTable("WCS_PATHPOINT");
- });
- modelBuilder.Entity("WCS.Entity.WCS_PLC", b =>
- {
- b.Property<string>("CODE")
- .HasMaxLength(20)
- .HasColumnType("nvarchar(20)");
- b.Property<bool>("ENABLED")
- .HasColumnType("bit");
- b.Property<string>("IP")
- .HasMaxLength(20)
- .HasColumnType("nvarchar(20)");
- b.Property<string>("MODEL")
- .HasMaxLength(10)
- .HasColumnType("nvarchar(10)");
- b.Property<string>("NAME")
- .HasMaxLength(20)
- .HasColumnType("nvarchar(20)");
- b.Property<int>("PORT")
- .HasColumnType("int");
- b.Property<int>("RACK")
- .HasColumnType("int");
- b.Property<int>("SLOT")
- .HasColumnType("int");
- b.Property<int>("TYPE")
- .HasColumnType("int");
- b.Property<DateTime>("UPDATETIME")
- .HasColumnType("datetime2");
- b.Property<string>("UPDATEUSER")
- .IsRequired()
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)");
- b.Property<byte[]>("VER")
- .IsConcurrencyToken()
- .ValueGeneratedOnAddOrUpdate()
- .HasColumnType("rowversion");
- b.HasKey("CODE");
- b.ToTable("WCS_PLC");
- });
- modelBuilder.Entity("WCS.Entity.WCS_ROUTE", b =>
- {
- b.Property<int>("ID")
- .ValueGeneratedOnAdd()
- .HasColumnType("int")
- .HasColumnOrder(0);
- SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"), 1L, 1);
- b.Property<string>("DEVICECODE")
- .IsRequired()
- .HasColumnType("nvarchar(50)");
- b.Property<bool>("ENABLED")
- .HasColumnType("bit");
- b.Property<string>("NEXTCODE")
- .IsRequired()
- .HasColumnType("nvarchar(50)");
- b.Property<DateTime>("UPDATETIME")
- .HasColumnType("datetime2");
- b.Property<string>("UPDATEUSER")
- .IsRequired()
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)");
- b.Property<byte[]>("VER")
- .IsConcurrencyToken()
- .ValueGeneratedOnAddOrUpdate()
- .HasColumnType("rowversion");
- b.HasKey("ID");
- b.HasIndex("DEVICECODE");
- b.HasIndex("NEXTCODE");
- b.ToTable("WCS_ROUTE");
- });
- modelBuilder.Entity("WCS.Entity.WCS_TASK", b =>
- {
- b.Property<int>("ID")
- .ValueGeneratedOnAdd()
- .HasColumnType("int")
- .HasColumnOrder(0);
- SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"), 1L, 1);
- b.Property<string>("ADDRFROM")
- .HasMaxLength(20)
- .HasColumnType("nvarchar(20)");
- b.Property<string>("ADDRNEXT")
- .HasMaxLength(20)
- .HasColumnType("nvarchar(20)");
- b.Property<string>("ADDRTO")
- .HasMaxLength(20)
- .HasColumnType("nvarchar(20)");
- b.Property<int>("AgvTask")
- .HasColumnType("int");
- b.Property<string>("BARCODE")
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)");
- b.Property<DateTime>("CREATETIME")
- .HasColumnType("datetime2");
- b.Property<string>("DEVICE")
- .HasMaxLength(20)
- .HasColumnType("nvarchar(20)");
- b.Property<int>("DOCID")
- .HasColumnType("int");
- b.Property<bool>("ENABLED")
- .HasColumnType("bit");
- b.Property<DateTime?>("ENDTIME")
- .HasColumnType("datetime2");
- b.Property<int>("FLOOR")
- .HasColumnType("int");
- b.Property<short>("FULLQTY")
- .HasColumnType("smallint");
- b.Property<short>("HEIGHT")
- .HasColumnType("smallint");
- b.Property<string>("ManualRemarks")
- .HasColumnType("nvarchar(max)");
- b.Property<short>("PALLETTYPE")
- .HasColumnType("smallint");
- b.Property<short>("PRODLINE")
- .HasColumnType("smallint");
- b.Property<int>("Priority")
- .HasColumnType("int");
- b.Property<string>("SRMSTATION")
- .HasMaxLength(20)
- .HasColumnType("nvarchar(20)");
- b.Property<DateTime?>("STARTTIME")
- .HasColumnType("datetime2");
- b.Property<int>("STATUS")
- .HasColumnType("int");
- b.Property<string>("TUNNEL")
- .HasMaxLength(10)
- .HasColumnType("nvarchar(10)");
- b.Property<int>("TYPE")
- .HasColumnType("int");
- b.Property<string>("TaskGroupKey")
- .HasColumnType("nvarchar(max)");
- b.Property<DateTime>("UPDATETIME")
- .HasColumnType("datetime2");
- b.Property<string>("UPDATEUSER")
- .IsRequired()
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)");
- b.Property<int>("UPLOADED")
- .HasColumnType("int");
- b.Property<byte[]>("VER")
- .IsConcurrencyToken()
- .ValueGeneratedOnAddOrUpdate()
- .HasColumnType("rowversion");
- b.Property<int>("WMSTASK")
- .HasColumnType("int");
- b.HasKey("ID");
- b.ToTable("WCS_TASK");
- });
- modelBuilder.Entity("WCS.Entity.Protocol.BCR.WCS_BCR80", b =>
- {
- b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
- .WithMany()
- .HasForeignKey("DEVICECODE");
- b.Navigation("DEVICE");
- });
- modelBuilder.Entity("WCS.Entity.Protocol.Station.WCS_Station520", b =>
- {
- b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
- .WithMany()
- .HasForeignKey("DEVICECODE");
- b.Navigation("DEVICE");
- });
- modelBuilder.Entity("WCS.Entity.Protocol.Station.WCS_Station521", b =>
- {
- b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
- .WithMany()
- .HasForeignKey("DEVICECODE");
- b.Navigation("DEVICE");
- });
- modelBuilder.Entity("WCS.Entity.Protocol.Station.WCS_Station523", b =>
- {
- b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
- .WithMany()
- .HasForeignKey("DEVICECODE");
- b.Navigation("DEVICE");
- });
- modelBuilder.Entity("WCS.Entity.Protocol.WCS_RGV520", b =>
- {
- b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
- .WithMany()
- .HasForeignKey("DEVICECODE");
- b.Navigation("DEVICE");
- });
- modelBuilder.Entity("WCS.Entity.Protocol.WCS_RGV521", b =>
- {
- b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
- .WithMany()
- .HasForeignKey("DEVICECODE");
- b.Navigation("DEVICE");
- });
- modelBuilder.Entity("WCS.Entity.Protocol.WCS_RGV523", b =>
- {
- b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
- .WithMany()
- .HasForeignKey("DEVICECODE");
- b.Navigation("DEVICE");
- });
- modelBuilder.Entity("WCS.Entity.Protocol.WCS_SRM520", b =>
- {
- b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
- .WithMany()
- .HasForeignKey("DEVICECODE");
- b.Navigation("DEVICE");
- });
- modelBuilder.Entity("WCS.Entity.Protocol.WCS_SRM521", b =>
- {
- b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
- .WithMany()
- .HasForeignKey("DEVICECODE");
- b.Navigation("DEVICE");
- });
- modelBuilder.Entity("WCS.Entity.Protocol.WCS_SRM537", b =>
- {
- b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
- .WithMany()
- .HasForeignKey("DEVICECODE");
- b.Navigation("DEVICE");
- });
- modelBuilder.Entity("WCS.Entity.WCS_DATABLOCK", b =>
- {
- b.HasOne("WCS.Entity.WCS_PLC", "PLC")
- .WithMany()
- .HasForeignKey("PLCCODE");
- b.Navigation("PLC");
- });
- modelBuilder.Entity("WCS.Entity.WCS_DEVICEPROTOCOL", b =>
- {
- b.HasOne("WCS.Entity.WCS_DATABLOCK", "DB")
- .WithMany()
- .HasForeignKey("DBCODE")
- .OnDelete(DeleteBehavior.Restrict)
- .IsRequired();
- b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
- .WithMany("PROTOCOLS")
- .HasForeignKey("DEVICECODE")
- .OnDelete(DeleteBehavior.Restrict)
- .IsRequired();
- b.Navigation("DB");
- b.Navigation("DEVICE");
- });
- modelBuilder.Entity("WCS.Entity.WCS_GROUPMEMBER", b =>
- {
- b.HasOne("WCS.Entity.WCS_DEVICE", "GROUP")
- .WithMany("DEVICEGROUP")
- .HasForeignKey("GROUPCODE")
- .OnDelete(DeleteBehavior.Restrict)
- .IsRequired();
- b.HasOne("WCS.Entity.WCS_DEVICE", "MEMBER")
- .WithMany()
- .HasForeignKey("MEMBERCODE")
- .OnDelete(DeleteBehavior.Restrict)
- .IsRequired();
- b.Navigation("GROUP");
- b.Navigation("MEMBER");
- });
- modelBuilder.Entity("WCS.Entity.WCS_PATH", b =>
- {
- b.HasOne("WCS.Entity.WCS_DEVICE", "END")
- .WithMany()
- .HasForeignKey("ENDCODE")
- .OnDelete(DeleteBehavior.Restrict)
- .IsRequired();
- b.HasOne("WCS.Entity.WCS_DEVICE", "START")
- .WithMany("PATHS")
- .HasForeignKey("STARTCODE")
- .OnDelete(DeleteBehavior.Restrict)
- .IsRequired();
- b.Navigation("END");
- b.Navigation("START");
- });
- modelBuilder.Entity("WCS.Entity.WCS_PATHPOINT", b =>
- {
- b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
- .WithMany("PATHPOINTS")
- .HasForeignKey("DEVICECODE")
- .OnDelete(DeleteBehavior.Restrict)
- .IsRequired();
- b.HasOne("WCS.Entity.WCS_DEVICE", "END")
- .WithMany()
- .HasForeignKey("ENDCODE")
- .OnDelete(DeleteBehavior.Restrict)
- .IsRequired();
- b.HasOne("WCS.Entity.WCS_DEVICE", "NEXT")
- .WithMany()
- .HasForeignKey("NEXTCODE");
- b.HasOne("WCS.Entity.WCS_DEVICE", "PREV")
- .WithMany()
- .HasForeignKey("PREVCODE");
- b.HasOne("WCS.Entity.WCS_DEVICE", "START")
- .WithMany()
- .HasForeignKey("STARTCODE")
- .OnDelete(DeleteBehavior.Restrict)
- .IsRequired();
- b.Navigation("DEVICE");
- b.Navigation("END");
- b.Navigation("NEXT");
- b.Navigation("PREV");
- b.Navigation("START");
- });
- modelBuilder.Entity("WCS.Entity.WCS_ROUTE", b =>
- {
- b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
- .WithMany("ROUTES")
- .HasForeignKey("DEVICECODE")
- .OnDelete(DeleteBehavior.Restrict)
- .IsRequired();
- b.HasOne("WCS.Entity.WCS_DEVICE", "NEXT")
- .WithMany()
- .HasForeignKey("NEXTCODE")
- .OnDelete(DeleteBehavior.Restrict)
- .IsRequired();
- b.Navigation("DEVICE");
- b.Navigation("NEXT");
- });
- modelBuilder.Entity("WCS.Entity.WCS_DEVICE", b =>
- {
- b.Navigation("DEVICEGROUP");
- b.Navigation("PATHPOINTS");
- b.Navigation("PATHS");
- b.Navigation("PROTOCOLS");
- b.Navigation("ROUTES");
- });
- #pragma warning restore 612, 618
- }
- }
- }
|