BusinessMigrationDbContextModelSnapshot.cs 329 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499
  1. // <auto-generated />
  2. using System;
  3. using Business.EntityFrameworkCore;
  4. using Microsoft.EntityFrameworkCore;
  5. using Microsoft.EntityFrameworkCore.Infrastructure;
  6. using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
  7. using Volo.Abp.EntityFrameworkCore;
  8. #nullable disable
  9. namespace Business.Migrations
  10. {
  11. [DbContext(typeof(BusinessMigrationDbContext))]
  12. partial class BusinessMigrationDbContextModelSnapshot : ModelSnapshot
  13. {
  14. protected override void BuildModel(ModelBuilder modelBuilder)
  15. {
  16. #pragma warning disable 612, 618
  17. modelBuilder
  18. .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.MySql)
  19. .HasAnnotation("ProductVersion", "6.0.5")
  20. .HasAnnotation("Relational:MaxIdentifierLength", 64);
  21. modelBuilder.Entity("Bussiness.Model.MES.IC.ic_bom", b =>
  22. {
  23. b.Property<long>("bom_id")
  24. .ValueGeneratedOnAdd()
  25. .HasColumnType("bigint")
  26. .HasComment("主键");
  27. b.Property<bool>("IsDeleted")
  28. .ValueGeneratedOnAdd()
  29. .HasColumnType("tinyint(1)")
  30. .HasDefaultValue(false)
  31. .HasColumnName("IsDeleted")
  32. .HasComment("删除标识");
  33. b.Property<DateTime?>("begin_day")
  34. .HasColumnType("datetime")
  35. .HasComment("生效日期");
  36. b.Property<string>("biller")
  37. .HasMaxLength(80)
  38. .HasColumnType("varchar(80)")
  39. .HasComment("图片");
  40. b.Property<int>("bom_num")
  41. .HasColumnType("int")
  42. .HasComment("序号");
  43. b.Property<string>("bom_number")
  44. .HasMaxLength(20)
  45. .HasColumnType("varchar(20)")
  46. .HasComment("bom单编号");
  47. b.Property<string>("chartnumber")
  48. .HasMaxLength(80)
  49. .HasColumnType("varchar(80)")
  50. .HasComment("图表编号");
  51. b.Property<DateTime?>("check_date")
  52. .HasColumnType("datetime")
  53. .HasComment("检验时间");
  54. b.Property<string>("checker")
  55. .HasMaxLength(80)
  56. .HasColumnType("varchar(80)")
  57. .HasComment("检验人");
  58. b.Property<long?>("create_by")
  59. .HasColumnType("bigint")
  60. .HasComment("创建人id");
  61. b.Property<string>("create_by_name")
  62. .HasMaxLength(50)
  63. .HasColumnType("varchar(50)")
  64. .HasComment("创建人名称");
  65. b.Property<DateTime?>("create_time")
  66. .HasColumnType("datetime")
  67. .HasComment("创建时间");
  68. b.Property<DateTime?>("end_day")
  69. .HasColumnType("datetime")
  70. .HasComment("失效日期");
  71. b.Property<long?>("factory_id")
  72. .HasColumnType("bigint")
  73. .HasComment("工厂ID");
  74. b.Property<int>("fse_status")
  75. .HasColumnType("int")
  76. .HasComment("使用状态");
  77. b.Property<long?>("org_id")
  78. .HasColumnType("bigint")
  79. .HasComment("组织ID");
  80. b.Property<string>("product_designer")
  81. .HasMaxLength(80)
  82. .HasColumnType("varchar(80)")
  83. .HasComment("产品设计员");
  84. b.Property<string>("product_principal")
  85. .HasMaxLength(80)
  86. .HasColumnType("varchar(80)")
  87. .HasComment("生产负责人");
  88. b.Property<long>("tech_id")
  89. .HasColumnType("bigint")
  90. .HasComment("工艺主键");
  91. b.Property<string>("tech_name")
  92. .HasMaxLength(20)
  93. .HasColumnType("varchar(20)")
  94. .HasComment("工艺名称");
  95. b.Property<long>("tenant_id")
  96. .HasColumnType("bigint")
  97. .HasComment("企业ID");
  98. b.Property<string>("unit")
  99. .HasMaxLength(20)
  100. .HasColumnType("varchar(20)")
  101. .HasComment("单位");
  102. b.Property<long?>("update_by")
  103. .HasColumnType("bigint")
  104. .HasComment("修改人");
  105. b.Property<string>("update_by_name")
  106. .HasMaxLength(50)
  107. .HasColumnType("varchar(50)")
  108. .HasComment("修改人名称");
  109. b.Property<DateTime?>("update_time")
  110. .HasColumnType("datetime")
  111. .HasComment("修改时间");
  112. b.Property<DateTime?>("use_date")
  113. .HasColumnType("datetime")
  114. .HasComment("bom创建时间");
  115. b.Property<string>("user")
  116. .HasMaxLength(20)
  117. .HasColumnType("varchar(20)")
  118. .HasComment("bom创建人");
  119. b.Property<string>("version")
  120. .HasMaxLength(80)
  121. .HasColumnType("varchar(80)")
  122. .HasComment("版本");
  123. b.HasKey("bom_id");
  124. b.ToTable("ic_bom", (string)null);
  125. b.HasComment("物料BOM");
  126. });
  127. modelBuilder.Entity("Bussiness.Model.MES.IC.ic_bom_child", b =>
  128. {
  129. b.Property<long>("bom_child_id")
  130. .ValueGeneratedOnAdd()
  131. .HasColumnType("bigint")
  132. .HasComment("主键");
  133. b.Property<bool>("IsDeleted")
  134. .ValueGeneratedOnAdd()
  135. .HasColumnType("tinyint(1)")
  136. .HasDefaultValue(false)
  137. .HasColumnName("IsDeleted")
  138. .HasComment("删除标识");
  139. b.Property<int>("backflush")
  140. .HasColumnType("int")
  141. .HasComment("是否倒冲");
  142. b.Property<DateTime?>("begin_day")
  143. .HasColumnType("datetime")
  144. .HasComment("生效日期");
  145. b.Property<long>("bom_id")
  146. .HasColumnType("bigint")
  147. .HasComment("bom主键");
  148. b.Property<string>("bom_number")
  149. .HasMaxLength(20)
  150. .HasColumnType("varchar(20)")
  151. .HasComment("bom单编号");
  152. b.Property<long?>("create_by")
  153. .HasColumnType("bigint")
  154. .HasComment("创建人id");
  155. b.Property<string>("create_by_name")
  156. .HasMaxLength(50)
  157. .HasColumnType("varchar(50)")
  158. .HasComment("创建人名称");
  159. b.Property<DateTime?>("create_time")
  160. .HasColumnType("datetime")
  161. .HasComment("创建时间");
  162. b.Property<DateTime?>("end_day")
  163. .HasColumnType("datetime")
  164. .HasComment("失效日期");
  165. b.Property<int>("entryid")
  166. .HasColumnType("int")
  167. .HasComment("顺序号");
  168. b.Property<int>("erp_cls")
  169. .HasColumnType("int")
  170. .HasComment("物料属性");
  171. b.Property<long?>("factory_id")
  172. .HasColumnType("bigint")
  173. .HasComment("工厂ID");
  174. b.Property<int>("haveicsubs")
  175. .HasColumnType("int")
  176. .HasComment("存在替代关系");
  177. b.Property<long>("icitem_id")
  178. .HasColumnType("bigint")
  179. .HasComment("物料id");
  180. b.Property<string>("icitem_ids")
  181. .HasMaxLength(2000)
  182. .HasColumnType("varchar(2000)")
  183. .HasComment("组合模式");
  184. b.Property<int>("is_replace")
  185. .HasColumnType("int")
  186. .HasComment("是否群组替代");
  187. b.Property<int>("iskeyitem")
  188. .HasColumnType("int")
  189. .HasComment("是否关键件");
  190. b.Property<string>("note")
  191. .HasMaxLength(1000)
  192. .HasColumnType("varchar(1000)")
  193. .HasComment("备注");
  194. b.Property<DateTime?>("op_time")
  195. .HasColumnType("datetime")
  196. .HasComment("操作时间");
  197. b.Property<long?>("org_id")
  198. .HasColumnType("bigint")
  199. .HasComment("组织ID");
  200. b.Property<long>("parent_child_id")
  201. .HasColumnType("bigint")
  202. .HasComment("父级id");
  203. b.Property<decimal?>("qty")
  204. .HasPrecision(20, 8)
  205. .HasColumnType("decimal(20,8)")
  206. .HasComment("用量");
  207. b.Property<decimal?>("scrap")
  208. .HasPrecision(20, 8)
  209. .HasColumnType("decimal(20,8)")
  210. .HasComment("损耗率");
  211. b.Property<string>("substitute_code")
  212. .HasMaxLength(20)
  213. .HasColumnType("varchar(20)")
  214. .HasComment("群组代码");
  215. b.Property<long>("tenant_id")
  216. .HasColumnType("bigint")
  217. .HasComment("企业ID");
  218. b.Property<int>("type")
  219. .HasColumnType("int")
  220. .HasComment("物料类型");
  221. b.Property<string>("unit")
  222. .HasMaxLength(20)
  223. .HasColumnType("varchar(20)")
  224. .HasComment("单位");
  225. b.Property<long?>("update_by")
  226. .HasColumnType("bigint")
  227. .HasComment("修改人");
  228. b.Property<string>("update_by_name")
  229. .HasMaxLength(50)
  230. .HasColumnType("varchar(50)")
  231. .HasComment("修改人名称");
  232. b.Property<DateTime?>("update_time")
  233. .HasColumnType("datetime")
  234. .HasComment("修改时间");
  235. b.Property<int>("use_status")
  236. .HasColumnType("int")
  237. .HasComment("使用状态");
  238. b.HasKey("bom_child_id");
  239. b.ToTable("ic_bom_child", (string)null);
  240. b.HasComment("物料BOM明细");
  241. });
  242. modelBuilder.Entity("Bussiness.Model.MES.IC.ic_factory_details", b =>
  243. {
  244. b.Property<long>("icitem_dtl_id")
  245. .ValueGeneratedOnAdd()
  246. .HasColumnType("bigint")
  247. .HasComment("主键");
  248. b.Property<bool>("IsDeleted")
  249. .ValueGeneratedOnAdd()
  250. .HasColumnType("tinyint(1)")
  251. .HasDefaultValue(false)
  252. .HasColumnName("IsDeleted")
  253. .HasComment("删除标识");
  254. b.Property<int>("batch_manager")
  255. .HasColumnType("int")
  256. .HasComment("是否采用业务批次管理");
  257. b.Property<long>("cav_acct")
  258. .HasColumnType("bigint")
  259. .HasComment("标准成本调整差异科目代码");
  260. b.Property<decimal?>("check_cycle")
  261. .HasPrecision(20, 8)
  262. .HasColumnType("decimal(20,8)")
  263. .HasComment("盘点周期");
  264. b.Property<string>("check_cycunit")
  265. .HasMaxLength(80)
  266. .HasColumnType("varchar(80)")
  267. .HasComment("盘点周期单位");
  268. b.Property<long?>("create_by")
  269. .HasColumnType("bigint")
  270. .HasComment("创建人id");
  271. b.Property<string>("create_by_name")
  272. .HasMaxLength(50)
  273. .HasColumnType("varchar(50)")
  274. .HasComment("创建人名称");
  275. b.Property<DateTime?>("create_time")
  276. .HasColumnType("datetime")
  277. .HasComment("创建时间");
  278. b.Property<decimal?>("daily_consume")
  279. .HasPrecision(20, 8)
  280. .HasColumnType("decimal(20,8)")
  281. .HasComment("日消耗量");
  282. b.Property<int>("days_per")
  283. .HasColumnType("int")
  284. .HasComment("每周_月第天");
  285. b.Property<long>("default_chkloc")
  286. .HasColumnType("bigint")
  287. .HasComment("默认待检仓库");
  288. b.Property<long>("default_chksp")
  289. .HasColumnType("bigint")
  290. .HasComment("默认待检仓位");
  291. b.Property<long>("default_loc")
  292. .HasColumnType("bigint")
  293. .HasComment("默认仓库");
  294. b.Property<string>("default_manager")
  295. .HasMaxLength(80)
  296. .HasColumnType("varchar(80)")
  297. .HasComment("默认仓管员");
  298. b.Property<long>("default_sp")
  299. .HasColumnType("bigint")
  300. .HasComment("默认仓位");
  301. b.Property<string>("factory_fode")
  302. .HasMaxLength(80)
  303. .HasColumnType("varchar(80)")
  304. .HasComment("工厂编码");
  305. b.Property<long?>("factory_id")
  306. .HasColumnType("bigint")
  307. .HasComment("工厂ID");
  308. b.Property<decimal?>("high_limit")
  309. .HasPrecision(20, 8)
  310. .HasColumnType("decimal(20,8)")
  311. .HasComment("最高存量");
  312. b.Property<long>("icitem_id")
  313. .HasColumnType("bigint")
  314. .HasComment("物料id");
  315. b.Property<string>("icitem_name")
  316. .HasMaxLength(80)
  317. .HasColumnType("varchar(80)")
  318. .HasComment("物料名称");
  319. b.Property<string>("item_shelve")
  320. .HasMaxLength(80)
  321. .HasColumnType("varchar(80)")
  322. .HasComment("货架信息");
  323. b.Property<DateTime?>("last_checkdate")
  324. .HasColumnType("datetime")
  325. .HasComment("上次盘点日期");
  326. b.Property<decimal?>("low_limit")
  327. .HasPrecision(20, 8)
  328. .HasColumnType("decimal(20,8)")
  329. .HasComment("最低存量");
  330. b.Property<decimal?>("mat_enter_days")
  331. .HasPrecision(20, 8)
  332. .HasColumnType("decimal(20,8)")
  333. .HasComment("原材料入库时间/天");
  334. b.Property<long>("mcv_acct")
  335. .HasColumnType("bigint")
  336. .HasComment("材料成本差异科目代码");
  337. b.Property<string>("note")
  338. .HasMaxLength(1000)
  339. .HasColumnType("varchar(1000)")
  340. .HasComment("特殊备注");
  341. b.Property<decimal?>("ordissu_days")
  342. .HasPrecision(20, 8)
  343. .HasColumnType("decimal(20,8)")
  344. .HasComment("工单发料时间/天");
  345. b.Property<long?>("org_id")
  346. .HasColumnType("bigint")
  347. .HasComment("组织ID");
  348. b.Property<long>("pcv_acct")
  349. .HasColumnType("bigint")
  350. .HasComment("加工费差异科目代码");
  351. b.Property<long>("pick_type")
  352. .HasColumnType("bigint")
  353. .HasComment("领料类型");
  354. b.Property<decimal?>("prd_out_days")
  355. .HasPrecision(20, 8)
  356. .HasColumnType("decimal(20,8)")
  357. .HasComment("成品发货时间/天");
  358. b.Property<decimal?>("prdenter_days")
  359. .HasPrecision(20, 8)
  360. .HasColumnType("decimal(20,8)")
  361. .HasComment("成品入库时间/天");
  362. b.Property<string>("product_line")
  363. .HasMaxLength(80)
  364. .HasColumnType("varchar(80)")
  365. .HasComment("产品线");
  366. b.Property<decimal?>("qty_max")
  367. .HasPrecision(20, 8)
  368. .HasColumnType("decimal(20,8)")
  369. .HasComment("最大订货量");
  370. b.Property<decimal?>("raw_matreceiv_days")
  371. .HasPrecision(20, 8)
  372. .HasColumnType("decimal(20,8)")
  373. .HasComment("原材料收货处理时间/天");
  374. b.Property<long>("sl_acct")
  375. .HasColumnType("bigint")
  376. .HasComment("废品损失科目代码");
  377. b.Property<int>("stock_time")
  378. .HasColumnType("int")
  379. .HasComment("是否需要库龄管理");
  380. b.Property<long>("tenant_id")
  381. .HasColumnType("bigint")
  382. .HasComment("企业ID");
  383. b.Property<long?>("update_by")
  384. .HasColumnType("bigint")
  385. .HasComment("修改人");
  386. b.Property<string>("update_by_name")
  387. .HasMaxLength(50)
  388. .HasColumnType("varchar(50)")
  389. .HasComment("修改人名称");
  390. b.Property<DateTime?>("update_time")
  391. .HasColumnType("datetime")
  392. .HasComment("修改时间");
  393. b.Property<string>("warehouse_note")
  394. .HasMaxLength(1000)
  395. .HasColumnType("varchar(1000)")
  396. .HasComment("库存备注");
  397. b.HasKey("icitem_dtl_id");
  398. b.ToTable("ic_factory_details", (string)null);
  399. b.HasComment("工厂物料明细表");
  400. });
  401. modelBuilder.Entity("Bussiness.Model.MES.IC.ic_item", b =>
  402. {
  403. b.Property<long>("icitem_id")
  404. .ValueGeneratedOnAdd()
  405. .HasColumnType("bigint")
  406. .HasComment("物料id");
  407. b.Property<bool>("IsDeleted")
  408. .ValueGeneratedOnAdd()
  409. .HasColumnType("tinyint(1)")
  410. .HasDefaultValue(false)
  411. .HasColumnName("IsDeleted")
  412. .HasComment("删除标识");
  413. b.Property<int>("allowbatch")
  414. .HasColumnType("int")
  415. .HasComment("批号管理");
  416. b.Property<int>("allowmanu")
  417. .HasColumnType("int")
  418. .HasComment("允许生产");
  419. b.Property<int>("allowout")
  420. .HasColumnType("int")
  421. .HasComment("允许委外");
  422. b.Property<int>("allowpur")
  423. .HasColumnType("int")
  424. .HasComment("允许采购");
  425. b.Property<int>("allowsale")
  426. .HasColumnType("int")
  427. .HasComment("允许销售");
  428. b.Property<int>("allowserial")
  429. .HasColumnType("int")
  430. .HasComment("序列号管理");
  431. b.Property<string>("box_model")
  432. .HasMaxLength(200)
  433. .HasColumnType("varchar(200)")
  434. .HasComment("盒贴规格");
  435. b.Property<string>("chart_number")
  436. .HasMaxLength(80)
  437. .HasColumnType("varchar(80)")
  438. .HasComment("图号");
  439. b.Property<string>("check_bybarcode")
  440. .HasMaxLength(80)
  441. .HasColumnType("varchar(80)")
  442. .HasComment("严格进行二维码数量校验");
  443. b.Property<long?>("create_by")
  444. .HasColumnType("bigint")
  445. .HasComment("创建人id");
  446. b.Property<string>("create_by_name")
  447. .HasMaxLength(50)
  448. .HasColumnType("varchar(50)")
  449. .HasComment("创建人名称");
  450. b.Property<DateTime?>("create_time")
  451. .HasColumnType("datetime")
  452. .HasComment("创建时间");
  453. b.Property<string>("cubic_measure")
  454. .HasMaxLength(80)
  455. .HasColumnType("varchar(80)")
  456. .HasComment("长度单位");
  457. b.Property<int>("enable_warning")
  458. .HasColumnType("int")
  459. .HasComment("启用预警");
  460. b.Property<string>("erp_cls")
  461. .HasMaxLength(80)
  462. .HasColumnType("varchar(80)")
  463. .HasComment("物料属性");
  464. b.Property<string>("erp_oldnumber")
  465. .HasMaxLength(80)
  466. .HasColumnType("varchar(80)")
  467. .HasComment("erp旧料号");
  468. b.Property<long?>("factory_id")
  469. .HasColumnType("bigint")
  470. .HasComment("工厂ID");
  471. b.Property<string>("fms_number")
  472. .HasMaxLength(80)
  473. .HasColumnType("varchar(80)")
  474. .HasComment("fms旧料号");
  475. b.Property<string>("full_name")
  476. .HasMaxLength(255)
  477. .HasColumnType("varchar(255)")
  478. .HasComment("全名");
  479. b.Property<string>("fversion")
  480. .HasMaxLength(80)
  481. .HasColumnType("varchar(80)")
  482. .HasComment("版本号");
  483. b.Property<decimal?>("gross_weight")
  484. .HasPrecision(20, 8)
  485. .HasColumnType("decimal(20,8)")
  486. .HasComment("毛重");
  487. b.Property<long>("hb_level")
  488. .HasColumnType("bigint")
  489. .HasComment("环保等级");
  490. b.Property<decimal?>("height")
  491. .HasPrecision(20, 8)
  492. .HasColumnType("decimal(20,8)")
  493. .HasComment("高度");
  494. b.Property<int>("is_equipment")
  495. .HasColumnType("int")
  496. .HasComment("是否为设备");
  497. b.Property<int>("iskeyitem")
  498. .HasColumnType("int")
  499. .HasComment("是否关键件");
  500. b.Property<long>("item_level")
  501. .HasColumnType("bigint")
  502. .HasComment("物料等级");
  503. b.Property<decimal?>("length")
  504. .HasPrecision(20, 8)
  505. .HasColumnType("decimal(20,8)")
  506. .HasComment("长度");
  507. b.Property<long>("matatt")
  508. .HasColumnType("bigint")
  509. .HasComment("物料类别");
  510. b.Property<string>("maund")
  511. .HasMaxLength(80)
  512. .HasColumnType("varchar(80)")
  513. .HasComment("重量单位");
  514. b.Property<string>("model")
  515. .HasMaxLength(200)
  516. .HasColumnType("varchar(200)")
  517. .HasComment("规格型号");
  518. b.Property<string>("name")
  519. .HasMaxLength(80)
  520. .HasColumnType("varchar(80)")
  521. .HasComment("物料名称");
  522. b.Property<decimal?>("net_weight")
  523. .HasPrecision(20, 8)
  524. .HasColumnType("decimal(20,8)")
  525. .HasComment("净重");
  526. b.Property<string>("number")
  527. .HasMaxLength(80)
  528. .HasColumnType("varchar(80)")
  529. .HasComment("物料编码");
  530. b.Property<long?>("org_id")
  531. .HasColumnType("bigint")
  532. .HasComment("组织ID");
  533. b.Property<long>("output_type_id")
  534. .HasColumnType("bigint")
  535. .HasComment("出库类型");
  536. b.Property<string>("photo")
  537. .HasMaxLength(80)
  538. .HasColumnType("varchar(80)")
  539. .HasComment("图片");
  540. b.Property<long>("picktype")
  541. .HasColumnType("bigint")
  542. .HasComment("领料类型");
  543. b.Property<decimal?>("size")
  544. .HasPrecision(20, 8)
  545. .HasColumnType("decimal(20,8)")
  546. .HasComment("体积");
  547. b.Property<string>("source")
  548. .HasMaxLength(200)
  549. .HasColumnType("varchar(200)")
  550. .HasComment("来源");
  551. b.Property<decimal?>("standard_manhour")
  552. .HasPrecision(20, 8)
  553. .HasColumnType("decimal(20,8)")
  554. .HasComment("单位标准工时_小时");
  555. b.Property<long>("tenant_id")
  556. .HasColumnType("bigint")
  557. .HasComment("企业ID");
  558. b.Property<decimal?>("unit_qty")
  559. .HasPrecision(20, 8)
  560. .HasColumnType("decimal(20,8)")
  561. .HasComment("单位包装数量");
  562. b.Property<decimal?>("unititem_amount")
  563. .HasPrecision(20, 8)
  564. .HasColumnType("decimal(20,8)")
  565. .HasComment("单位材料定额_元");
  566. b.Property<long?>("update_by")
  567. .HasColumnType("bigint")
  568. .HasComment("修改人");
  569. b.Property<string>("update_by_name")
  570. .HasMaxLength(50)
  571. .HasColumnType("varchar(50)")
  572. .HasComment("修改人名称");
  573. b.Property<DateTime?>("update_time")
  574. .HasColumnType("datetime")
  575. .HasComment("修改时间");
  576. b.Property<decimal?>("width")
  577. .HasPrecision(20, 8)
  578. .HasColumnType("decimal(20,8)")
  579. .HasComment("宽度");
  580. b.HasKey("icitem_id");
  581. b.ToTable("ic_item", (string)null);
  582. b.HasComment("物料详情");
  583. });
  584. modelBuilder.Entity("Bussiness.Model.MES.IC.ic_item_ie", b =>
  585. {
  586. b.Property<long>("ic_item_ie_id")
  587. .ValueGeneratedOnAdd()
  588. .HasColumnType("bigint")
  589. .HasComment("主键");
  590. b.Property<bool>("IsDeleted")
  591. .ValueGeneratedOnAdd()
  592. .HasColumnType("tinyint(1)")
  593. .HasDefaultValue(false)
  594. .HasColumnName("IsDeleted")
  595. .HasComment("删除标识");
  596. b.Property<string>("back_flush_sp")
  597. .HasMaxLength(80)
  598. .HasColumnType("varchar(80)")
  599. .HasComment("倒冲仓位");
  600. b.Property<string>("back_flush_stock")
  601. .HasMaxLength(80)
  602. .HasColumnType("varchar(80)")
  603. .HasComment("倒冲仓库");
  604. b.Property<long?>("create_by")
  605. .HasColumnType("bigint")
  606. .HasComment("创建人id");
  607. b.Property<string>("create_by_name")
  608. .HasMaxLength(50)
  609. .HasColumnType("varchar(50)")
  610. .HasComment("创建人名称");
  611. b.Property<DateTime?>("create_time")
  612. .HasColumnType("datetime")
  613. .HasComment("创建时间");
  614. b.Property<long?>("factory_id")
  615. .HasColumnType("bigint")
  616. .HasComment("工厂ID");
  617. b.Property<long>("icitem_id")
  618. .HasColumnType("bigint")
  619. .HasComment("物料id");
  620. b.Property<string>("ir_note")
  621. .HasMaxLength(1000)
  622. .HasColumnType("varchar(1000)")
  623. .HasComment("ie备注");
  624. b.Property<int>("isbackflush")
  625. .HasColumnType("int")
  626. .HasComment("是否倒冲");
  627. b.Property<long?>("org_id")
  628. .HasColumnType("bigint")
  629. .HasComment("组织ID");
  630. b.Property<string>("product_principal")
  631. .HasMaxLength(80)
  632. .HasColumnType("varchar(80)")
  633. .HasComment("生产负责人");
  634. b.Property<int>("put_integer")
  635. .HasColumnType("int")
  636. .HasComment("投料自动取整");
  637. b.Property<long>("tenant_id")
  638. .HasColumnType("bigint")
  639. .HasComment("企业ID");
  640. b.Property<long?>("update_by")
  641. .HasColumnType("bigint")
  642. .HasComment("修改人");
  643. b.Property<string>("update_by_name")
  644. .HasMaxLength(50)
  645. .HasColumnType("varchar(50)")
  646. .HasComment("修改人名称");
  647. b.Property<DateTime?>("update_time")
  648. .HasColumnType("datetime")
  649. .HasComment("修改时间");
  650. b.HasKey("ic_item_ie_id");
  651. b.ToTable("ic_item_ie", (string)null);
  652. b.HasComment("物料ie信息表");
  653. });
  654. modelBuilder.Entity("Bussiness.Model.MES.IC.ic_item_inventory", b =>
  655. {
  656. b.Property<long>("icitem_inventory_id")
  657. .ValueGeneratedOnAdd()
  658. .HasColumnType("bigint")
  659. .HasComment("主键");
  660. b.Property<bool>("IsDeleted")
  661. .ValueGeneratedOnAdd()
  662. .HasColumnType("tinyint(1)")
  663. .HasDefaultValue(false)
  664. .HasColumnName("IsDeleted")
  665. .HasComment("删除标识");
  666. b.Property<decimal?>("bal")
  667. .HasPrecision(20, 8)
  668. .HasColumnType("decimal(20,8)")
  669. .HasComment("金额");
  670. b.Property<string>("batch_no")
  671. .HasMaxLength(80)
  672. .HasColumnType("varchar(80)")
  673. .HasComment("批次号");
  674. b.Property<long?>("create_by")
  675. .HasColumnType("bigint")
  676. .HasComment("创建人id");
  677. b.Property<string>("create_by_name")
  678. .HasMaxLength(50)
  679. .HasColumnType("varchar(50)")
  680. .HasComment("创建人名称");
  681. b.Property<DateTime?>("create_time")
  682. .HasColumnType("datetime")
  683. .HasComment("创建时间");
  684. b.Property<long?>("factory_id")
  685. .HasColumnType("bigint")
  686. .HasComment("工厂ID");
  687. b.Property<long>("icitem_stock_id")
  688. .HasColumnType("bigint")
  689. .HasComment("物料库存主键");
  690. b.Property<DateTime?>("kf_date")
  691. .HasColumnType("datetime")
  692. .HasComment("保质期时间");
  693. b.Property<decimal?>("kf_period")
  694. .HasPrecision(20, 8)
  695. .HasColumnType("decimal(20,8)")
  696. .HasComment("保质期时长");
  697. b.Property<long?>("org_id")
  698. .HasColumnType("bigint")
  699. .HasComment("组织ID");
  700. b.Property<decimal?>("qty")
  701. .HasPrecision(20, 8)
  702. .HasColumnType("decimal(20,8)")
  703. .HasComment("数量");
  704. b.Property<decimal?>("qty_lock")
  705. .HasPrecision(20, 8)
  706. .HasColumnType("decimal(20,8)")
  707. .HasComment("锁定库存");
  708. b.Property<DateTime?>("rq")
  709. .HasColumnType("datetime")
  710. .HasComment("日期");
  711. b.Property<decimal?>("sec_qty")
  712. .HasPrecision(20, 8)
  713. .HasColumnType("decimal(20,8)")
  714. .HasComment("安全库存");
  715. b.Property<long>("stock_id")
  716. .HasColumnType("bigint")
  717. .HasComment("仓库id");
  718. b.Property<string>("stock_name")
  719. .HasMaxLength(80)
  720. .HasColumnType("varchar(80)")
  721. .HasComment("仓库名称");
  722. b.Property<string>("stock_place_code")
  723. .HasMaxLength(80)
  724. .HasColumnType("varchar(80)")
  725. .HasComment("库位编码");
  726. b.Property<long>("stock_place_id")
  727. .HasColumnType("bigint")
  728. .HasComment("库位id");
  729. b.Property<long>("tenant_id")
  730. .HasColumnType("bigint")
  731. .HasComment("企业ID");
  732. b.Property<string>("unit")
  733. .HasMaxLength(80)
  734. .HasColumnType("varchar(80)")
  735. .HasComment("单位");
  736. b.Property<long?>("update_by")
  737. .HasColumnType("bigint")
  738. .HasComment("修改人");
  739. b.Property<string>("update_by_name")
  740. .HasMaxLength(50)
  741. .HasColumnType("varchar(50)")
  742. .HasComment("修改人名称");
  743. b.Property<DateTime?>("update_time")
  744. .HasColumnType("datetime")
  745. .HasComment("修改时间");
  746. b.HasKey("icitem_inventory_id");
  747. b.ToTable("ic_item_inventory", (string)null);
  748. b.HasComment("物料库存信息表");
  749. });
  750. modelBuilder.Entity("Bussiness.Model.MES.IC.ic_item_pur", b =>
  751. {
  752. b.Property<long>("icitem_pur_id")
  753. .ValueGeneratedOnAdd()
  754. .HasColumnType("bigint")
  755. .HasComment("主键");
  756. b.Property<bool>("IsDeleted")
  757. .ValueGeneratedOnAdd()
  758. .HasColumnType("tinyint(1)")
  759. .HasDefaultValue(false)
  760. .HasColumnName("IsDeleted")
  761. .HasComment("删除标识");
  762. b.Property<long?>("create_by")
  763. .HasColumnType("bigint")
  764. .HasComment("创建人id");
  765. b.Property<string>("create_by_name")
  766. .HasMaxLength(50)
  767. .HasColumnType("varchar(50)")
  768. .HasComment("创建人名称");
  769. b.Property<DateTime?>("create_time")
  770. .HasColumnType("datetime")
  771. .HasComment("创建时间");
  772. b.Property<long>("currency_type")
  773. .HasColumnType("bigint")
  774. .HasComment("币种");
  775. b.Property<long?>("factory_id")
  776. .HasColumnType("bigint")
  777. .HasComment("工厂ID");
  778. b.Property<long>("ic_plan_id")
  779. .HasColumnType("bigint")
  780. .HasComment("采购计划id");
  781. b.Property<long>("icitem_id")
  782. .HasColumnType("bigint")
  783. .HasComment("物料id");
  784. b.Property<string>("icitem_name")
  785. .HasMaxLength(80)
  786. .HasColumnType("varchar(80)")
  787. .HasComment("物料名称");
  788. b.Property<decimal?>("netpurchase_price")
  789. .HasPrecision(20, 8)
  790. .HasColumnType("decimal(20,8)")
  791. .HasComment("采购净价(不含税)");
  792. b.Property<long?>("org_id")
  793. .HasColumnType("bigint")
  794. .HasComment("组织ID");
  795. b.Property<string>("purchase_unit")
  796. .HasMaxLength(80)
  797. .HasColumnType("varchar(80)")
  798. .HasComment("采购计量单位");
  799. b.Property<string>("purcher")
  800. .HasMaxLength(80)
  801. .HasColumnType("varchar(80)")
  802. .HasComment("采购员");
  803. b.Property<string>("purchgroup")
  804. .HasMaxLength(80)
  805. .HasColumnType("varchar(80)")
  806. .HasComment("采购组");
  807. b.Property<long>("supplier_id")
  808. .HasColumnType("bigint")
  809. .HasComment("供应商id");
  810. b.Property<string>("supplier_name")
  811. .HasMaxLength(80)
  812. .HasColumnType("varchar(80)")
  813. .HasComment("供应商名称");
  814. b.Property<string>("supplier_number")
  815. .HasMaxLength(80)
  816. .HasColumnType("varchar(80)")
  817. .HasComment("供应商编码");
  818. b.Property<decimal?>("taxrate")
  819. .HasPrecision(20, 8)
  820. .HasColumnType("decimal(20,8)")
  821. .HasComment("税率");
  822. b.Property<long>("tenant_id")
  823. .HasColumnType("bigint")
  824. .HasComment("企业ID");
  825. b.Property<long?>("update_by")
  826. .HasColumnType("bigint")
  827. .HasComment("修改人");
  828. b.Property<string>("update_by_name")
  829. .HasMaxLength(50)
  830. .HasColumnType("varchar(50)")
  831. .HasComment("修改人名称");
  832. b.Property<DateTime?>("update_time")
  833. .HasColumnType("datetime")
  834. .HasComment("修改时间");
  835. b.HasKey("icitem_pur_id");
  836. b.ToTable("ic_item_pur", (string)null);
  837. b.HasComment("物料采购报价单");
  838. });
  839. modelBuilder.Entity("Bussiness.Model.MES.IC.ic_item_stock", b =>
  840. {
  841. b.Property<long>("icitem_stock_id")
  842. .ValueGeneratedOnAdd()
  843. .HasColumnType("bigint")
  844. .HasComment("主键");
  845. b.Property<bool>("IsDeleted")
  846. .ValueGeneratedOnAdd()
  847. .HasColumnType("tinyint(1)")
  848. .HasDefaultValue(false)
  849. .HasColumnName("IsDeleted")
  850. .HasComment("删除标识");
  851. b.Property<long?>("create_by")
  852. .HasColumnType("bigint")
  853. .HasComment("创建人id");
  854. b.Property<string>("create_by_name")
  855. .HasMaxLength(50)
  856. .HasColumnType("varchar(50)")
  857. .HasComment("创建人名称");
  858. b.Property<DateTime?>("create_time")
  859. .HasColumnType("datetime")
  860. .HasComment("创建时间");
  861. b.Property<string>("factory_fode")
  862. .HasMaxLength(80)
  863. .HasColumnType("varchar(80)")
  864. .HasComment("工厂编码");
  865. b.Property<long?>("factory_id")
  866. .HasColumnType("bigint")
  867. .HasComment("工厂ID");
  868. b.Property<long>("icitem_id")
  869. .HasColumnType("bigint")
  870. .HasComment("物料id");
  871. b.Property<string>("icitem_name")
  872. .HasMaxLength(80)
  873. .HasColumnType("varchar(80)")
  874. .HasComment("物料名称");
  875. b.Property<long?>("org_id")
  876. .HasColumnType("bigint")
  877. .HasComment("组织ID");
  878. b.Property<decimal?>("quantity_in_transit")
  879. .HasPrecision(20, 8)
  880. .HasColumnType("decimal(20,8)")
  881. .HasComment("调拨在途数量");
  882. b.Property<decimal?>("sqty")
  883. .HasPrecision(20, 8)
  884. .HasColumnType("decimal(20,8)")
  885. .HasComment("物料库存量");
  886. b.Property<long>("tenant_id")
  887. .HasColumnType("bigint")
  888. .HasComment("企业ID");
  889. b.Property<long?>("update_by")
  890. .HasColumnType("bigint")
  891. .HasComment("修改人");
  892. b.Property<string>("update_by_name")
  893. .HasMaxLength(50)
  894. .HasColumnType("varchar(50)")
  895. .HasComment("修改人名称");
  896. b.Property<DateTime?>("update_time")
  897. .HasColumnType("datetime")
  898. .HasComment("修改时间");
  899. b.HasKey("icitem_stock_id");
  900. b.ToTable("ic_item_stock", (string)null);
  901. b.HasComment("物料库存表");
  902. });
  903. modelBuilder.Entity("Bussiness.Model.MES.IC.ic_metering_unit", b =>
  904. {
  905. b.Property<long>("ic_metering_unit_id")
  906. .ValueGeneratedOnAdd()
  907. .HasColumnType("bigint")
  908. .HasComment("主键");
  909. b.Property<bool>("IsDeleted")
  910. .ValueGeneratedOnAdd()
  911. .HasColumnType("tinyint(1)")
  912. .HasDefaultValue(false)
  913. .HasColumnName("IsDeleted")
  914. .HasComment("删除标识");
  915. b.Property<long?>("create_by")
  916. .HasColumnType("bigint")
  917. .HasComment("创建人id");
  918. b.Property<string>("create_by_name")
  919. .HasMaxLength(50)
  920. .HasColumnType("varchar(50)")
  921. .HasComment("创建人名称");
  922. b.Property<DateTime?>("create_time")
  923. .HasColumnType("datetime")
  924. .HasComment("创建时间");
  925. b.Property<long?>("factory_id")
  926. .HasColumnType("bigint")
  927. .HasComment("工厂ID");
  928. b.Property<long>("icitem_id")
  929. .HasColumnType("bigint")
  930. .HasComment("物料id");
  931. b.Property<string>("icitem_name")
  932. .HasMaxLength(80)
  933. .HasColumnType("varchar(80)")
  934. .HasComment("物料名称");
  935. b.Property<string>("order_unit")
  936. .HasMaxLength(80)
  937. .HasColumnType("varchar(80)")
  938. .HasComment("采购计量单位");
  939. b.Property<long?>("org_id")
  940. .HasColumnType("bigint")
  941. .HasComment("组织ID");
  942. b.Property<string>("product_unit")
  943. .HasMaxLength(80)
  944. .HasColumnType("varchar(80)")
  945. .HasComment("生产计量单位");
  946. b.Property<int>("qty_decimal")
  947. .HasColumnType("int")
  948. .HasComment("数量精度");
  949. b.Property<string>("sale_unit")
  950. .HasMaxLength(80)
  951. .HasColumnType("varchar(80)")
  952. .HasComment("销售计量单位");
  953. b.Property<string>("store_unit")
  954. .HasMaxLength(80)
  955. .HasColumnType("varchar(80)")
  956. .HasComment("库存计量单位");
  957. b.Property<long>("tenant_id")
  958. .HasColumnType("bigint")
  959. .HasComment("企业ID");
  960. b.Property<string>("unit")
  961. .HasMaxLength(80)
  962. .HasColumnType("varchar(80)")
  963. .HasComment("基本计量单位");
  964. b.Property<string>("unit_group")
  965. .HasMaxLength(80)
  966. .HasColumnType("varchar(80)")
  967. .HasComment("计量单位组");
  968. b.Property<long?>("update_by")
  969. .HasColumnType("bigint")
  970. .HasComment("修改人");
  971. b.Property<string>("update_by_name")
  972. .HasMaxLength(50)
  973. .HasColumnType("varchar(50)")
  974. .HasComment("修改人名称");
  975. b.Property<DateTime?>("update_time")
  976. .HasColumnType("datetime")
  977. .HasComment("修改时间");
  978. b.HasKey("ic_metering_unit_id");
  979. b.ToTable("ic_metering_unit", (string)null);
  980. b.HasComment("物料计量表");
  981. });
  982. modelBuilder.Entity("Bussiness.Model.MES.IC.ic_plan", b =>
  983. {
  984. b.Property<long>("ic_plan_id")
  985. .ValueGeneratedOnAdd()
  986. .HasColumnType("bigint")
  987. .HasComment("主键");
  988. b.Property<bool>("IsDeleted")
  989. .ValueGeneratedOnAdd()
  990. .HasColumnType("tinyint(1)")
  991. .HasDefaultValue(false)
  992. .HasColumnName("IsDeleted")
  993. .HasComment("删除标识");
  994. b.Property<int>("aux_prop_plan")
  995. .HasColumnType("int")
  996. .HasComment("辅助属性参与计划运算");
  997. b.Property<decimal?>("bat_change_economy")
  998. .HasPrecision(20, 8)
  999. .HasColumnType("decimal(20,8)")
  1000. .HasComment("变动提前期批量");
  1001. b.Property<int>("book_plan")
  1002. .HasColumnType("int")
  1003. .HasComment("是否需要进行订补货计划的运算");
  1004. b.Property<long?>("create_by")
  1005. .HasColumnType("bigint")
  1006. .HasComment("创建人id");
  1007. b.Property<string>("create_by_name")
  1008. .HasMaxLength(50)
  1009. .HasColumnType("varchar(50)")
  1010. .HasComment("创建人名称");
  1011. b.Property<DateTime?>("create_time")
  1012. .HasColumnType("datetime")
  1013. .HasComment("创建时间");
  1014. b.Property<string>("factory_code")
  1015. .HasMaxLength(80)
  1016. .HasColumnType("varchar(80)")
  1017. .HasComment("工厂编码");
  1018. b.Property<long?>("factory_id")
  1019. .HasColumnType("bigint")
  1020. .HasComment("工厂ID");
  1021. b.Property<decimal?>("fix_leadtime")
  1022. .HasPrecision(20, 8)
  1023. .HasColumnType("decimal(20,8)")
  1024. .HasComment("固定提前期(天)");
  1025. b.Property<long>("icitem_id")
  1026. .HasColumnType("bigint")
  1027. .HasComment("物料id");
  1028. b.Property<string>("icitem_name")
  1029. .HasMaxLength(80)
  1030. .HasColumnType("varchar(80)")
  1031. .HasComment("物料名称");
  1032. b.Property<int>("isfixedreorder")
  1033. .HasColumnType("int")
  1034. .HasComment("设置为固定再订货点");
  1035. b.Property<decimal?>("lead_time")
  1036. .HasPrecision(20, 8)
  1037. .HasColumnType("decimal(20,8)")
  1038. .HasComment("变动提前期");
  1039. b.Property<decimal?>("order_inter_val")
  1040. .HasPrecision(20, 8)
  1041. .HasColumnType("decimal(20,8)")
  1042. .HasComment("订货间隔期_天");
  1043. b.Property<string>("order_point")
  1044. .HasMaxLength(80)
  1045. .HasColumnType("varchar(80)")
  1046. .HasComment("再订货点");
  1047. b.Property<int>("order_trategy")
  1048. .HasColumnType("int")
  1049. .HasComment("订货策略");
  1050. b.Property<long?>("org_id")
  1051. .HasColumnType("bigint")
  1052. .HasComment("组织ID");
  1053. b.Property<int>("plan_trategy")
  1054. .HasColumnType("int")
  1055. .HasComment("计划策略");
  1056. b.Property<string>("planner_name")
  1057. .HasMaxLength(80)
  1058. .HasColumnType("varchar(80)")
  1059. .HasComment("计划员");
  1060. b.Property<string>("planner_num")
  1061. .HasMaxLength(80)
  1062. .HasColumnType("varchar(80)")
  1063. .HasComment("计划员_工号");
  1064. b.Property<string>("plannote")
  1065. .HasMaxLength(1000)
  1066. .HasColumnType("varchar(1000)")
  1067. .HasComment("计划备注");
  1068. b.Property<decimal?>("secinv")
  1069. .HasPrecision(20, 8)
  1070. .HasColumnType("decimal(20,8)")
  1071. .HasComment("安全库存数量");
  1072. b.Property<decimal?>("secinv_ratio")
  1073. .HasPrecision(20, 8)
  1074. .HasColumnType("decimal(20,8)")
  1075. .HasComment("安全库存触发采购比例");
  1076. b.Property<long>("tenant_id")
  1077. .HasColumnType("bigint")
  1078. .HasComment("企业ID");
  1079. b.Property<decimal?>("total_tqq")
  1080. .HasPrecision(20, 8)
  1081. .HasColumnType("decimal(20,8)")
  1082. .HasComment("累计提前期");
  1083. b.Property<long?>("update_by")
  1084. .HasColumnType("bigint")
  1085. .HasComment("修改人");
  1086. b.Property<string>("update_by_name")
  1087. .HasMaxLength(50)
  1088. .HasColumnType("varchar(50)")
  1089. .HasComment("修改人名称");
  1090. b.Property<DateTime?>("update_time")
  1091. .HasColumnType("datetime")
  1092. .HasComment("修改时间");
  1093. b.HasKey("ic_plan_id");
  1094. b.ToTable("ic_plan", (string)null);
  1095. b.HasComment("物料采购计划表");
  1096. });
  1097. modelBuilder.Entity("Bussiness.Model.MES.IC.ic_purchase", b =>
  1098. {
  1099. b.Property<long>("ic_purchase_id")
  1100. .ValueGeneratedOnAdd()
  1101. .HasColumnType("bigint")
  1102. .HasComment("主键");
  1103. b.Property<bool>("IsDeleted")
  1104. .ValueGeneratedOnAdd()
  1105. .HasColumnType("tinyint(1)")
  1106. .HasDefaultValue(false)
  1107. .HasColumnName("IsDeleted")
  1108. .HasComment("删除标识");
  1109. b.Property<decimal?>("batch_append_qty")
  1110. .HasPrecision(20, 8)
  1111. .HasColumnType("decimal(20,8)")
  1112. .HasComment("批量增量");
  1113. b.Property<long?>("create_by")
  1114. .HasColumnType("bigint")
  1115. .HasComment("创建人id");
  1116. b.Property<string>("create_by_name")
  1117. .HasMaxLength(50)
  1118. .HasColumnType("varchar(50)")
  1119. .HasComment("创建人名称");
  1120. b.Property<DateTime?>("create_time")
  1121. .HasColumnType("datetime")
  1122. .HasComment("创建时间");
  1123. b.Property<string>("factory_code")
  1124. .HasMaxLength(80)
  1125. .HasColumnType("varchar(80)")
  1126. .HasComment("工厂编码");
  1127. b.Property<long?>("factory_id")
  1128. .HasColumnType("bigint")
  1129. .HasComment("工厂ID");
  1130. b.Property<long>("ic_plan_id")
  1131. .HasColumnType("bigint")
  1132. .HasComment("计划id");
  1133. b.Property<long>("icitem_id")
  1134. .HasColumnType("bigint")
  1135. .HasComment("物料id");
  1136. b.Property<string>("icitem_name")
  1137. .HasMaxLength(80)
  1138. .HasColumnType("varchar(80)")
  1139. .HasComment("物料名称");
  1140. b.Property<string>("order_dept")
  1141. .HasMaxLength(80)
  1142. .HasColumnType("varchar(80)")
  1143. .HasComment("采购部门");
  1144. b.Property<decimal?>("order_price")
  1145. .HasPrecision(20, 8)
  1146. .HasColumnType("decimal(20,8)")
  1147. .HasComment("采购单价");
  1148. b.Property<string>("order_rector_name")
  1149. .HasMaxLength(80)
  1150. .HasColumnType("varchar(80)")
  1151. .HasComment("采购负责人");
  1152. b.Property<string>("order_rector_num")
  1153. .HasMaxLength(80)
  1154. .HasColumnType("varchar(80)")
  1155. .HasComment("采购负责人_工号");
  1156. b.Property<long?>("org_id")
  1157. .HasColumnType("bigint")
  1158. .HasComment("组织ID");
  1159. b.Property<long>("piv_acct")
  1160. .HasColumnType("bigint")
  1161. .HasComment("采购发票差异科目代码");
  1162. b.Property<long>("pov_acct")
  1163. .HasColumnType("bigint")
  1164. .HasComment("采购订单差异科目代码");
  1165. b.Property<decimal?>("qty_min")
  1166. .HasPrecision(20, 8)
  1167. .HasColumnType("decimal(20,8)")
  1168. .HasComment("最小订货量");
  1169. b.Property<decimal?>("sale_price")
  1170. .HasPrecision(20, 8)
  1171. .HasColumnType("decimal(20,8)")
  1172. .HasComment("销售单价");
  1173. b.Property<long>("tenant_id")
  1174. .HasColumnType("bigint")
  1175. .HasComment("企业ID");
  1176. b.Property<long?>("update_by")
  1177. .HasColumnType("bigint")
  1178. .HasComment("修改人");
  1179. b.Property<string>("update_by_name")
  1180. .HasMaxLength(50)
  1181. .HasColumnType("varchar(50)")
  1182. .HasComment("修改人名称");
  1183. b.Property<DateTime?>("update_time")
  1184. .HasColumnType("datetime")
  1185. .HasComment("修改时间");
  1186. b.HasKey("ic_purchase_id");
  1187. b.ToTable("ic_purchase", (string)null);
  1188. b.HasComment("物料采购信息表");
  1189. });
  1190. modelBuilder.Entity("Bussiness.Model.MES.IC.ic_substitute", b =>
  1191. {
  1192. b.Property<long>("substitute_id")
  1193. .ValueGeneratedOnAdd()
  1194. .HasColumnType("bigint")
  1195. .HasComment("主键");
  1196. b.Property<bool>("IsDeleted")
  1197. .ValueGeneratedOnAdd()
  1198. .HasColumnType("tinyint(1)")
  1199. .HasDefaultValue(false)
  1200. .HasColumnName("IsDeleted")
  1201. .HasComment("删除标识");
  1202. b.Property<long?>("create_by")
  1203. .HasColumnType("bigint")
  1204. .HasComment("创建人id");
  1205. b.Property<string>("create_by_name")
  1206. .HasMaxLength(50)
  1207. .HasColumnType("varchar(50)")
  1208. .HasComment("创建人名称");
  1209. b.Property<DateTime?>("create_time")
  1210. .HasColumnType("datetime")
  1211. .HasComment("创建时间");
  1212. b.Property<long?>("factory_id")
  1213. .HasColumnType("bigint")
  1214. .HasComment("工厂ID");
  1215. b.Property<long?>("org_id")
  1216. .HasColumnType("bigint")
  1217. .HasComment("组织ID");
  1218. b.Property<string>("substitute_code")
  1219. .HasMaxLength(20)
  1220. .HasColumnType("varchar(20)")
  1221. .HasComment("群组代码");
  1222. b.Property<int>("substitute_type")
  1223. .HasColumnType("int")
  1224. .HasComment("替代类型");
  1225. b.Property<long>("tenant_id")
  1226. .HasColumnType("bigint")
  1227. .HasComment("企业ID");
  1228. b.Property<long?>("update_by")
  1229. .HasColumnType("bigint")
  1230. .HasComment("修改人");
  1231. b.Property<string>("update_by_name")
  1232. .HasMaxLength(50)
  1233. .HasColumnType("varchar(50)")
  1234. .HasComment("修改人名称");
  1235. b.Property<DateTime?>("update_time")
  1236. .HasColumnType("datetime")
  1237. .HasComment("修改时间");
  1238. b.HasKey("substitute_id");
  1239. b.ToTable("ic_substitute", (string)null);
  1240. b.HasComment("替代群组");
  1241. });
  1242. modelBuilder.Entity("Bussiness.Model.MES.IC.ic_substitute_all", b =>
  1243. {
  1244. b.Property<long>("substitute_allid")
  1245. .ValueGeneratedOnAdd()
  1246. .HasColumnType("bigint")
  1247. .HasComment("主键");
  1248. b.Property<bool>("IsDeleted")
  1249. .ValueGeneratedOnAdd()
  1250. .HasColumnType("tinyint(1)")
  1251. .HasDefaultValue(false)
  1252. .HasColumnName("IsDeleted")
  1253. .HasComment("删除标识");
  1254. b.Property<long?>("create_by")
  1255. .HasColumnType("bigint")
  1256. .HasComment("创建人id");
  1257. b.Property<string>("create_by_name")
  1258. .HasMaxLength(50)
  1259. .HasColumnType("varchar(50)")
  1260. .HasComment("创建人名称");
  1261. b.Property<DateTime?>("create_time")
  1262. .HasColumnType("datetime")
  1263. .HasComment("创建时间");
  1264. b.Property<long?>("factory_id")
  1265. .HasColumnType("bigint")
  1266. .HasComment("工厂ID");
  1267. b.Property<int>("order_num")
  1268. .HasColumnType("int")
  1269. .HasComment("排序");
  1270. b.Property<long?>("org_id")
  1271. .HasColumnType("bigint")
  1272. .HasComment("组织ID");
  1273. b.Property<string>("product_line")
  1274. .HasMaxLength(50)
  1275. .HasColumnType("varchar(50)")
  1276. .HasComment("产品线");
  1277. b.Property<string>("replace_name")
  1278. .HasMaxLength(50)
  1279. .HasColumnType("varchar(50)")
  1280. .HasComment("替代名称");
  1281. b.Property<string>("replace_relation")
  1282. .HasMaxLength(2000)
  1283. .HasColumnType("varchar(2000)")
  1284. .HasComment("替代关系");
  1285. b.Property<string>("replace_way")
  1286. .HasMaxLength(50)
  1287. .HasColumnType("varchar(50)")
  1288. .HasComment("替代方式");
  1289. b.Property<string>("substitute_code")
  1290. .HasMaxLength(20)
  1291. .HasColumnType("varchar(20)")
  1292. .HasComment("群组代码");
  1293. b.Property<long>("substitute_id")
  1294. .HasColumnType("bigint")
  1295. .HasComment("群组主键");
  1296. b.Property<long>("tenant_id")
  1297. .HasColumnType("bigint")
  1298. .HasComment("企业ID");
  1299. b.Property<long?>("update_by")
  1300. .HasColumnType("bigint")
  1301. .HasComment("修改人");
  1302. b.Property<string>("update_by_name")
  1303. .HasMaxLength(50)
  1304. .HasColumnType("varchar(50)")
  1305. .HasComment("修改人名称");
  1306. b.Property<DateTime?>("update_time")
  1307. .HasColumnType("datetime")
  1308. .HasComment("修改时间");
  1309. b.Property<string>("use_model")
  1310. .HasMaxLength(5000)
  1311. .HasColumnType("varchar(5000)")
  1312. .HasComment("使用机型");
  1313. b.HasKey("substitute_allid");
  1314. b.ToTable("ic_substitute_all", (string)null);
  1315. b.HasComment("物料替代多群组");
  1316. });
  1317. modelBuilder.Entity("Bussiness.Model.MES.IC.ic_substitute_all_dtl", b =>
  1318. {
  1319. b.Property<long>("substitute_dtlid")
  1320. .ValueGeneratedOnAdd()
  1321. .HasColumnType("bigint")
  1322. .HasComment("主键");
  1323. b.Property<bool>("IsDeleted")
  1324. .ValueGeneratedOnAdd()
  1325. .HasColumnType("tinyint(1)")
  1326. .HasDefaultValue(false)
  1327. .HasColumnName("IsDeleted")
  1328. .HasComment("删除标识");
  1329. b.Property<long?>("create_by")
  1330. .HasColumnType("bigint")
  1331. .HasComment("创建人id");
  1332. b.Property<string>("create_by_name")
  1333. .HasMaxLength(50)
  1334. .HasColumnType("varchar(50)")
  1335. .HasComment("创建人名称");
  1336. b.Property<DateTime?>("create_time")
  1337. .HasColumnType("datetime")
  1338. .HasComment("创建时间");
  1339. b.Property<long?>("factory_id")
  1340. .HasColumnType("bigint")
  1341. .HasComment("工厂ID");
  1342. b.Property<long>("icitem_id")
  1343. .HasColumnType("bigint")
  1344. .HasComment("物料主键");
  1345. b.Property<int>("ismain")
  1346. .HasColumnType("int")
  1347. .HasComment("主/替");
  1348. b.Property<long?>("org_id")
  1349. .HasColumnType("bigint")
  1350. .HasComment("组织ID");
  1351. b.Property<long>("substitute_allid")
  1352. .HasColumnType("bigint")
  1353. .HasComment("替代多群组主键");
  1354. b.Property<string>("substitute_code")
  1355. .HasMaxLength(20)
  1356. .HasColumnType("varchar(20)")
  1357. .HasComment("群组代码");
  1358. b.Property<long>("tenant_id")
  1359. .HasColumnType("bigint")
  1360. .HasComment("企业ID");
  1361. b.Property<long?>("update_by")
  1362. .HasColumnType("bigint")
  1363. .HasComment("修改人");
  1364. b.Property<string>("update_by_name")
  1365. .HasMaxLength(50)
  1366. .HasColumnType("varchar(50)")
  1367. .HasComment("修改人名称");
  1368. b.Property<DateTime?>("update_time")
  1369. .HasColumnType("datetime")
  1370. .HasComment("修改时间");
  1371. b.HasKey("substitute_dtlid");
  1372. b.ToTable("ic_substitute_all_dtl", (string)null);
  1373. b.HasComment("物料替代多群组明细");
  1374. });
  1375. modelBuilder.Entity("Bussiness.Model.MES.PO.po_list", b =>
  1376. {
  1377. b.Property<long>("polist_id")
  1378. .ValueGeneratedOnAdd()
  1379. .HasColumnType("bigint")
  1380. .HasComment("主键");
  1381. b.Property<bool>("IsDeleted")
  1382. .ValueGeneratedOnAdd()
  1383. .HasColumnType("tinyint(1)")
  1384. .HasDefaultValue(false)
  1385. .HasColumnName("IsDeleted")
  1386. .HasComment("删除标识");
  1387. b.Property<long?>("create_by")
  1388. .HasColumnType("bigint")
  1389. .HasComment("创建人id");
  1390. b.Property<string>("create_by_name")
  1391. .HasMaxLength(50)
  1392. .HasColumnType("varchar(50)")
  1393. .HasComment("创建人名称");
  1394. b.Property<DateTime?>("create_time")
  1395. .HasColumnType("datetime")
  1396. .HasComment("创建时间");
  1397. b.Property<long>("currencytype")
  1398. .HasColumnType("bigint")
  1399. .HasComment("币别");
  1400. b.Property<decimal?>("esqty")
  1401. .HasPrecision(20, 8)
  1402. .HasColumnType("decimal(20,8)")
  1403. .HasComment("已入库数量");
  1404. b.Property<long?>("factory_id")
  1405. .HasColumnType("bigint")
  1406. .HasComment("工厂ID");
  1407. b.Property<long>("icitem_id")
  1408. .HasColumnType("bigint")
  1409. .HasComment("物料id");
  1410. b.Property<string>("icitem_name")
  1411. .HasMaxLength(100)
  1412. .HasColumnType("varchar(100)")
  1413. .HasComment("物料名称");
  1414. b.Property<decimal?>("netprice")
  1415. .HasPrecision(20, 8)
  1416. .HasColumnType("decimal(20,8)")
  1417. .HasComment("净价");
  1418. b.Property<long?>("org_id")
  1419. .HasColumnType("bigint")
  1420. .HasComment("组织ID");
  1421. b.Property<decimal?>("plan_qty")
  1422. .HasPrecision(20, 8)
  1423. .HasColumnType("decimal(20,8)")
  1424. .HasComment("计划数量");
  1425. b.Property<string>("po_billno")
  1426. .HasMaxLength(80)
  1427. .HasColumnType("varchar(80)")
  1428. .HasComment("po单号");
  1429. b.Property<long>("po_id")
  1430. .HasColumnType("bigint")
  1431. .HasComment("po单id");
  1432. b.Property<string>("po_mono")
  1433. .HasMaxLength(80)
  1434. .HasColumnType("varchar(80)")
  1435. .HasComment("关联工单号");
  1436. b.Property<int>("polist_row")
  1437. .HasColumnType("int")
  1438. .HasComment("行号");
  1439. b.Property<string>("pr_billno")
  1440. .HasMaxLength(80)
  1441. .HasColumnType("varchar(80)")
  1442. .HasComment("pr申请单号");
  1443. b.Property<long>("pr_id")
  1444. .HasColumnType("bigint")
  1445. .HasComment("pr申请单id");
  1446. b.Property<long>("pr_purchase_id")
  1447. .HasColumnType("bigint")
  1448. .HasComment("供应商id");
  1449. b.Property<string>("pr_purchase_name")
  1450. .HasMaxLength(80)
  1451. .HasColumnType("varchar(80)")
  1452. .HasComment("供应商名称");
  1453. b.Property<decimal?>("price")
  1454. .HasPrecision(20, 8)
  1455. .HasColumnType("decimal(20,8)")
  1456. .HasComment("含税单价");
  1457. b.Property<decimal?>("procurement_rarr_date")
  1458. .HasPrecision(20, 8)
  1459. .HasColumnType("decimal(20,8)")
  1460. .HasComment("采购到货日期");
  1461. b.Property<decimal?>("pur_affirmdate")
  1462. .HasPrecision(20, 8)
  1463. .HasColumnType("decimal(20,8)")
  1464. .HasComment("采购确认到货日期");
  1465. b.Property<decimal?>("purchase_date")
  1466. .HasPrecision(20, 8)
  1467. .HasColumnType("decimal(20,8)")
  1468. .HasComment("供应商交期");
  1469. b.Property<decimal?>("qty")
  1470. .HasPrecision(20, 8)
  1471. .HasColumnType("decimal(20,8)")
  1472. .HasComment("订单数量");
  1473. b.Property<DateTime?>("rarrdate")
  1474. .HasColumnType("datetime")
  1475. .HasComment("需求到货日期");
  1476. b.Property<decimal?>("rate")
  1477. .HasPrecision(20, 8)
  1478. .HasColumnType("decimal(20,8)")
  1479. .HasComment("税率");
  1480. b.Property<int>("rnumber")
  1481. .HasColumnType("int")
  1482. .HasComment("评审次数");
  1483. b.Property<decimal?>("rparrive_date")
  1484. .HasPrecision(20, 8)
  1485. .HasColumnType("decimal(20,8)")
  1486. .HasComment("再计划到货日期");
  1487. b.Property<decimal?>("rqty")
  1488. .HasPrecision(20, 8)
  1489. .HasColumnType("decimal(20,8)")
  1490. .HasComment("已收货数量");
  1491. b.Property<int>("rstate")
  1492. .HasColumnType("int")
  1493. .HasComment("评审状态");
  1494. b.Property<int>("state")
  1495. .HasColumnType("int")
  1496. .HasComment("数据状态标识");
  1497. b.Property<long>("stock_id")
  1498. .HasColumnType("bigint")
  1499. .HasComment("收货仓库id");
  1500. b.Property<string>("stock_name")
  1501. .HasMaxLength(80)
  1502. .HasColumnType("varchar(80)")
  1503. .HasComment("收货仓库名称");
  1504. b.Property<long>("tenant_id")
  1505. .HasColumnType("bigint")
  1506. .HasComment("企业ID");
  1507. b.Property<decimal?>("total_price")
  1508. .HasPrecision(20, 8)
  1509. .HasColumnType("decimal(20,8)")
  1510. .HasComment("总价");
  1511. b.Property<long>("unit")
  1512. .HasColumnType("bigint")
  1513. .HasComment("单位");
  1514. b.Property<long?>("update_by")
  1515. .HasColumnType("bigint")
  1516. .HasComment("修改人");
  1517. b.Property<string>("update_by_name")
  1518. .HasMaxLength(50)
  1519. .HasColumnType("varchar(50)")
  1520. .HasComment("修改人名称");
  1521. b.Property<DateTime?>("update_time")
  1522. .HasColumnType("datetime")
  1523. .HasComment("修改时间");
  1524. b.HasKey("polist_id");
  1525. b.ToTable("po_list", (string)null);
  1526. b.HasComment("采购订单明细详情");
  1527. });
  1528. modelBuilder.Entity("Bussiness.Model.MES.PO.po_main", b =>
  1529. {
  1530. b.Property<long>("po_Id")
  1531. .ValueGeneratedOnAdd()
  1532. .HasColumnType("bigint")
  1533. .HasComment("主键");
  1534. b.Property<bool>("IsDeleted")
  1535. .ValueGeneratedOnAdd()
  1536. .HasColumnType("tinyint(1)")
  1537. .HasDefaultValue(false)
  1538. .HasColumnName("IsDeleted")
  1539. .HasComment("删除标识");
  1540. b.Property<int>("bill_type")
  1541. .HasColumnType("int")
  1542. .HasComment("金蝶单据类型值");
  1543. b.Property<long?>("create_by")
  1544. .HasColumnType("bigint")
  1545. .HasComment("创建人id");
  1546. b.Property<string>("create_by_name")
  1547. .HasMaxLength(50)
  1548. .HasColumnType("varchar(50)")
  1549. .HasComment("创建人名称");
  1550. b.Property<DateTime?>("create_time")
  1551. .HasColumnType("datetime")
  1552. .HasComment("创建时间");
  1553. b.Property<long>("currency")
  1554. .HasColumnType("bigint")
  1555. .HasComment("币别");
  1556. b.Property<long?>("factory_id")
  1557. .HasColumnType("bigint")
  1558. .HasComment("工厂ID");
  1559. b.Property<long?>("org_id")
  1560. .HasColumnType("bigint")
  1561. .HasComment("组织ID");
  1562. b.Property<string>("po_billno")
  1563. .HasMaxLength(80)
  1564. .HasColumnType("varchar(80)")
  1565. .HasComment("PO单号");
  1566. b.Property<long>("po_delivery")
  1567. .HasColumnType("bigint")
  1568. .HasComment("交货方式");
  1569. b.Property<int>("po_express")
  1570. .HasColumnType("int")
  1571. .HasComment("是否加急");
  1572. b.Property<string>("po_note")
  1573. .HasMaxLength(1000)
  1574. .HasColumnType("varchar(1000)")
  1575. .HasComment("备注");
  1576. b.Property<int>("po_order_type")
  1577. .HasColumnType("int")
  1578. .HasComment("单据类型");
  1579. b.Property<long>("po_purchase_id")
  1580. .HasColumnType("bigint")
  1581. .HasComment("供应商id");
  1582. b.Property<string>("po_purchase_name")
  1583. .HasMaxLength(80)
  1584. .HasColumnType("varchar(80)")
  1585. .HasComment("供应商名称");
  1586. b.Property<string>("po_purchaser")
  1587. .HasMaxLength(80)
  1588. .HasColumnType("varchar(80)")
  1589. .HasComment("采购员");
  1590. b.Property<string>("po_purchaser_no")
  1591. .HasMaxLength(80)
  1592. .HasColumnType("varchar(80)")
  1593. .HasComment("采购员工号");
  1594. b.Property<DateTime?>("po_ssend_date")
  1595. .HasColumnType("datetime")
  1596. .HasComment("下单日期");
  1597. b.Property<decimal?>("po_tax_rate")
  1598. .HasPrecision(20, 8)
  1599. .HasColumnType("decimal(20,8)")
  1600. .HasComment("税率");
  1601. b.Property<decimal?>("po_total")
  1602. .HasPrecision(20, 8)
  1603. .HasColumnType("decimal(20,8)")
  1604. .HasComment("订单总价");
  1605. b.Property<DateTime?>("review_rtime")
  1606. .HasColumnType("datetime")
  1607. .HasComment("评审通过时间");
  1608. b.Property<decimal?>("rnumber")
  1609. .HasPrecision(20, 8)
  1610. .HasColumnType("decimal(20,8)")
  1611. .HasComment("评审次数");
  1612. b.Property<int>("rstate")
  1613. .HasColumnType("int")
  1614. .HasComment("评审状态");
  1615. b.Property<int>("state")
  1616. .HasColumnType("int")
  1617. .HasComment("数据状态");
  1618. b.Property<long>("tenant_id")
  1619. .HasColumnType("bigint")
  1620. .HasComment("企业ID");
  1621. b.Property<long?>("update_by")
  1622. .HasColumnType("bigint")
  1623. .HasComment("修改人");
  1624. b.Property<string>("update_by_name")
  1625. .HasMaxLength(50)
  1626. .HasColumnType("varchar(50)")
  1627. .HasComment("修改人名称");
  1628. b.Property<DateTime?>("update_time")
  1629. .HasColumnType("datetime")
  1630. .HasComment("修改时间");
  1631. b.HasKey("po_Id");
  1632. b.ToTable("po_main", (string)null);
  1633. b.HasComment("采购订单");
  1634. });
  1635. modelBuilder.Entity("Bussiness.Model.MES.PO.po_occupy", b =>
  1636. {
  1637. b.Property<long>("pooccupy_id")
  1638. .ValueGeneratedOnAdd()
  1639. .HasColumnType("bigint")
  1640. .HasComment("主键");
  1641. b.Property<bool>("IsDeleted")
  1642. .ValueGeneratedOnAdd()
  1643. .HasColumnType("tinyint(1)")
  1644. .HasDefaultValue(false)
  1645. .HasColumnName("IsDeleted")
  1646. .HasComment("删除标识");
  1647. b.Property<long>("bill_no")
  1648. .HasColumnType("bigint")
  1649. .HasComment("客户订单id");
  1650. b.Property<string>("cby")
  1651. .HasMaxLength(80)
  1652. .HasColumnType("varchar(80)")
  1653. .HasComment("变更人");
  1654. b.Property<string>("creason")
  1655. .HasMaxLength(1000)
  1656. .HasColumnType("varchar(1000)")
  1657. .HasComment("变更原因");
  1658. b.Property<long?>("create_by")
  1659. .HasColumnType("bigint")
  1660. .HasComment("创建人id");
  1661. b.Property<string>("create_by_name")
  1662. .HasMaxLength(50)
  1663. .HasColumnType("varchar(50)")
  1664. .HasComment("创建人名称");
  1665. b.Property<DateTime?>("create_time")
  1666. .HasColumnType("datetime")
  1667. .HasComment("创建时间");
  1668. b.Property<DateTime?>("ctime")
  1669. .HasColumnType("datetime")
  1670. .HasComment("变更时间");
  1671. b.Property<long>("eid")
  1672. .HasColumnType("bigint")
  1673. .HasComment("客户订单行id");
  1674. b.Property<int>("entry_id")
  1675. .HasColumnType("int")
  1676. .HasComment("行号");
  1677. b.Property<DateTime?>("etime")
  1678. .HasColumnType("datetime")
  1679. .HasComment("结束时间");
  1680. b.Property<long?>("factory_id")
  1681. .HasColumnType("bigint")
  1682. .HasComment("工厂ID");
  1683. b.Property<long?>("org_id")
  1684. .HasColumnType("bigint")
  1685. .HasComment("组织ID");
  1686. b.Property<long>("polist_id")
  1687. .HasColumnType("bigint")
  1688. .HasComment("采购订单id");
  1689. b.Property<int>("polist_row")
  1690. .HasColumnType("int")
  1691. .HasComment("采购订单行号");
  1692. b.Property<decimal?>("qty")
  1693. .HasPrecision(20, 8)
  1694. .HasColumnType("decimal(20,8)")
  1695. .HasComment("占用量");
  1696. b.Property<int>("state")
  1697. .HasColumnType("int")
  1698. .HasComment("占用状态");
  1699. b.Property<DateTime?>("stime")
  1700. .HasColumnType("datetime")
  1701. .HasComment("开始时间");
  1702. b.Property<long>("tenant_id")
  1703. .HasColumnType("bigint")
  1704. .HasComment("企业ID");
  1705. b.Property<string>("type")
  1706. .HasMaxLength(80)
  1707. .HasColumnType("varchar(80)")
  1708. .HasComment("类型");
  1709. b.Property<long?>("update_by")
  1710. .HasColumnType("bigint")
  1711. .HasComment("修改人");
  1712. b.Property<string>("update_by_name")
  1713. .HasMaxLength(50)
  1714. .HasColumnType("varchar(50)")
  1715. .HasComment("修改人名称");
  1716. b.Property<DateTime?>("update_time")
  1717. .HasColumnType("datetime")
  1718. .HasComment("修改时间");
  1719. b.HasKey("pooccupy_id");
  1720. b.ToTable("po_occupy", (string)null);
  1721. b.HasComment("采购订单占用详情");
  1722. });
  1723. modelBuilder.Entity("Bussiness.Model.MES.PO.pr_main", b =>
  1724. {
  1725. b.Property<long>("pr_id")
  1726. .ValueGeneratedOnAdd()
  1727. .HasColumnType("bigint")
  1728. .HasComment("主键");
  1729. b.Property<bool>("IsDeleted")
  1730. .ValueGeneratedOnAdd()
  1731. .HasColumnType("tinyint(1)")
  1732. .HasDefaultValue(false)
  1733. .HasColumnName("IsDeleted")
  1734. .HasComment("删除标识");
  1735. b.Property<long?>("create_by")
  1736. .HasColumnType("bigint")
  1737. .HasComment("创建人id");
  1738. b.Property<string>("create_by_name")
  1739. .HasMaxLength(50)
  1740. .HasColumnType("varchar(50)")
  1741. .HasComment("创建人名称");
  1742. b.Property<DateTime?>("create_time")
  1743. .HasColumnType("datetime")
  1744. .HasComment("创建时间");
  1745. b.Property<long>("currencytype")
  1746. .HasColumnType("bigint")
  1747. .HasComment("币种");
  1748. b.Property<int>("entity_id")
  1749. .HasColumnType("int")
  1750. .HasComment("工单行号");
  1751. b.Property<long?>("factory_id")
  1752. .HasColumnType("bigint")
  1753. .HasComment("工厂ID");
  1754. b.Property<long>("icitem_id")
  1755. .HasColumnType("bigint")
  1756. .HasComment("物料id");
  1757. b.Property<string>("icitem_name")
  1758. .HasMaxLength(80)
  1759. .HasColumnType("varchar(80)")
  1760. .HasComment("物料名称");
  1761. b.Property<decimal?>("old_apply_aqty")
  1762. .HasPrecision(20, 8)
  1763. .HasColumnType("decimal(20,8)")
  1764. .HasComment("已申请数量");
  1765. b.Property<long?>("org_id")
  1766. .HasColumnType("bigint")
  1767. .HasComment("组织ID");
  1768. b.Property<decimal?>("pr_aqty")
  1769. .HasPrecision(20, 8)
  1770. .HasColumnType("decimal(20,8)")
  1771. .HasComment("申请数量");
  1772. b.Property<string>("pr_billno")
  1773. .HasMaxLength(80)
  1774. .HasColumnType("varchar(80)")
  1775. .HasComment("pr单号");
  1776. b.Property<DateTime?>("pr_bsarrive_date")
  1777. .HasColumnType("datetime")
  1778. .HasComment("采购员建议到货日期");
  1779. b.Property<string>("pr_mono")
  1780. .HasMaxLength(80)
  1781. .HasColumnType("varchar(80)")
  1782. .HasComment("关联工单号");
  1783. b.Property<DateTime?>("pr_oarrive_date")
  1784. .HasColumnType("datetime")
  1785. .HasComment("订单到货日期");
  1786. b.Property<int>("pr_order_type")
  1787. .HasColumnType("int")
  1788. .HasComment("单据类型");
  1789. b.Property<decimal?>("pr_orderprice")
  1790. .HasPrecision(20, 8)
  1791. .HasColumnType("decimal(20,8)")
  1792. .HasComment("订单价格(含税)");
  1793. b.Property<DateTime?>("pr_parrive_date")
  1794. .HasColumnType("datetime")
  1795. .HasComment("计划到达日期");
  1796. b.Property<decimal?>("pr_price")
  1797. .HasPrecision(20, 8)
  1798. .HasColumnType("decimal(20,8)")
  1799. .HasComment("采购净价(不含税)");
  1800. b.Property<DateTime?>("pr_psend_date")
  1801. .HasColumnType("datetime")
  1802. .HasComment("计划下单日期");
  1803. b.Property<DateTime?>("pr_pur_affirm_date")
  1804. .HasColumnType("datetime")
  1805. .HasComment("采购确认到货日期");
  1806. b.Property<long>("pr_purchaseid")
  1807. .HasColumnType("bigint")
  1808. .HasComment("供应商id");
  1809. b.Property<string>("pr_purchasename")
  1810. .HasMaxLength(80)
  1811. .HasColumnType("varchar(80)")
  1812. .HasComment("供应商名称");
  1813. b.Property<string>("pr_purchasenumber")
  1814. .HasMaxLength(80)
  1815. .HasColumnType("varchar(80)")
  1816. .HasComment("供应商编码");
  1817. b.Property<string>("pr_purchaser")
  1818. .HasMaxLength(80)
  1819. .HasColumnType("varchar(80)")
  1820. .HasComment("采购员");
  1821. b.Property<string>("pr_purchaser_num")
  1822. .HasMaxLength(80)
  1823. .HasColumnType("varchar(80)")
  1824. .HasComment("采购员工号");
  1825. b.Property<DateTime?>("pr_rarrive_date")
  1826. .HasColumnType("datetime")
  1827. .HasComment("需求到货日期");
  1828. b.Property<decimal?>("pr_rate")
  1829. .HasPrecision(20, 8)
  1830. .HasColumnType("decimal(20,8)")
  1831. .HasComment("税率");
  1832. b.Property<DateTime?>("pr_rparrive_date")
  1833. .HasColumnType("datetime")
  1834. .HasComment("再计划到货日期");
  1835. b.Property<decimal?>("pr_rqty")
  1836. .HasPrecision(20, 8)
  1837. .HasColumnType("decimal(20,8)")
  1838. .HasComment("需求数量");
  1839. b.Property<string>("pr_rreason")
  1840. .HasMaxLength(1000)
  1841. .HasColumnType("varchar(1000)")
  1842. .HasComment("拒绝原因");
  1843. b.Property<DateTime?>("pr_sarrive_date")
  1844. .HasColumnType("datetime")
  1845. .HasComment("系统建议到达日期");
  1846. b.Property<decimal?>("pr_sqty")
  1847. .HasPrecision(20, 8)
  1848. .HasColumnType("decimal(20,8)")
  1849. .HasComment("建议数量");
  1850. b.Property<DateTime?>("pr_ssend_date")
  1851. .HasColumnType("datetime")
  1852. .HasComment("系统建议下单日期");
  1853. b.Property<decimal?>("pr_sysprice")
  1854. .HasPrecision(20, 8)
  1855. .HasColumnType("decimal(20,8)")
  1856. .HasComment("系统价格(含税)");
  1857. b.Property<int>("pr_type")
  1858. .HasColumnType("int")
  1859. .HasComment("申请类型");
  1860. b.Property<string>("pr_unit")
  1861. .HasMaxLength(20)
  1862. .HasColumnType("varchar(20)")
  1863. .HasComment("单位");
  1864. b.Property<string>("remark")
  1865. .HasMaxLength(1000)
  1866. .HasColumnType("varchar(1000)")
  1867. .HasComment("备注");
  1868. b.Property<decimal?>("secInv_ratio")
  1869. .HasPrecision(20, 8)
  1870. .HasColumnType("decimal(20,8)")
  1871. .HasComment("安全库存触发采购比例");
  1872. b.Property<int>("state")
  1873. .HasColumnType("int")
  1874. .HasComment("状态");
  1875. b.Property<long>("tenant_id")
  1876. .HasColumnType("bigint")
  1877. .HasComment("企业ID");
  1878. b.Property<long?>("update_by")
  1879. .HasColumnType("bigint")
  1880. .HasComment("修改人");
  1881. b.Property<string>("update_by_name")
  1882. .HasMaxLength(50)
  1883. .HasColumnType("varchar(50)")
  1884. .HasComment("修改人名称");
  1885. b.Property<DateTime?>("update_time")
  1886. .HasColumnType("datetime")
  1887. .HasComment("修改时间");
  1888. b.HasKey("pr_id");
  1889. b.ToTable("pr_main", (string)null);
  1890. b.HasComment("采购申请单");
  1891. });
  1892. modelBuilder.Entity("Bussiness.Model.Production.mes_moentry", b =>
  1893. {
  1894. b.Property<long>("moentry_id")
  1895. .ValueGeneratedOnAdd()
  1896. .HasColumnType("bigint")
  1897. .HasComment("生产工单子表id");
  1898. b.Property<bool>("IsDeleted")
  1899. .ValueGeneratedOnAdd()
  1900. .HasColumnType("tinyint(1)")
  1901. .HasDefaultValue(false)
  1902. .HasColumnName("IsDeleted")
  1903. .HasComment("删除标识");
  1904. b.Property<long?>("create_by")
  1905. .HasColumnType("bigint")
  1906. .HasComment("创建人id");
  1907. b.Property<string>("create_by_name")
  1908. .HasMaxLength(50)
  1909. .HasColumnType("varchar(50)")
  1910. .HasComment("创建人名称");
  1911. b.Property<DateTime?>("create_time")
  1912. .HasColumnType("datetime")
  1913. .HasComment("创建时间");
  1914. b.Property<long?>("factory_id")
  1915. .HasColumnType("bigint")
  1916. .HasComment("工厂ID");
  1917. b.Property<string>("fbill_no")
  1918. .IsRequired()
  1919. .HasMaxLength(80)
  1920. .HasColumnType("varchar(80)")
  1921. .HasComment("订单编号");
  1922. b.Property<long>("fentry_id")
  1923. .HasColumnType("bigint")
  1924. .HasComment("订单行号");
  1925. b.Property<long>("moentry_moid")
  1926. .HasColumnType("bigint")
  1927. .HasComment("工单主表id");
  1928. b.Property<string>("moentry_mono")
  1929. .IsRequired()
  1930. .HasMaxLength(80)
  1931. .HasColumnType("varchar(80)")
  1932. .HasComment("工单编号");
  1933. b.Property<decimal?>("morder_production_number")
  1934. .HasPrecision(20, 8)
  1935. .HasColumnType("decimal(20,8)")
  1936. .HasComment("工单生产数量(计划数量)");
  1937. b.Property<decimal?>("need_number")
  1938. .HasPrecision(20, 8)
  1939. .HasColumnType("decimal(20,8)")
  1940. .HasComment("需求数量");
  1941. b.Property<long?>("org_id")
  1942. .HasColumnType("bigint")
  1943. .HasComment("组织ID");
  1944. b.Property<decimal?>("remaining_number")
  1945. .HasPrecision(20, 8)
  1946. .HasColumnType("decimal(20,8)")
  1947. .HasComment("剩余可用数量");
  1948. b.Property<long>("soentry_id")
  1949. .HasColumnType("bigint")
  1950. .HasComment("订单行id");
  1951. b.Property<long>("tenant_id")
  1952. .HasColumnType("bigint")
  1953. .HasComment("企业ID");
  1954. b.Property<string>("unit")
  1955. .IsRequired()
  1956. .HasMaxLength(80)
  1957. .HasColumnType("varchar(80)")
  1958. .HasComment("单位");
  1959. b.Property<long?>("update_by")
  1960. .HasColumnType("bigint")
  1961. .HasComment("修改人");
  1962. b.Property<string>("update_by_name")
  1963. .HasMaxLength(50)
  1964. .HasColumnType("varchar(50)")
  1965. .HasComment("修改人名称");
  1966. b.Property<DateTime?>("update_time")
  1967. .HasColumnType("datetime")
  1968. .HasComment("修改时间");
  1969. b.HasKey("moentry_id");
  1970. b.ToTable("mes_moentry", (string)null);
  1971. b.HasComment("生成工单子表");
  1972. });
  1973. modelBuilder.Entity("Bussiness.Model.Production.mes_mooccupy", b =>
  1974. {
  1975. b.Property<long>("moo_id")
  1976. .ValueGeneratedOnAdd()
  1977. .HasColumnType("bigint")
  1978. .HasComment("工单占用ID");
  1979. b.Property<bool>("IsDeleted")
  1980. .ValueGeneratedOnAdd()
  1981. .HasColumnType("tinyint(1)")
  1982. .HasDefaultValue(false)
  1983. .HasColumnName("IsDeleted")
  1984. .HasComment("删除标识");
  1985. b.Property<long?>("create_by")
  1986. .HasColumnType("bigint")
  1987. .HasComment("创建人id");
  1988. b.Property<string>("create_by_name")
  1989. .HasMaxLength(50)
  1990. .HasColumnType("varchar(50)")
  1991. .HasComment("创建人名称");
  1992. b.Property<DateTime?>("create_time")
  1993. .HasColumnType("datetime")
  1994. .HasComment("创建时间");
  1995. b.Property<long?>("factory_id")
  1996. .HasColumnType("bigint")
  1997. .HasComment("工厂ID");
  1998. b.Property<string>("fbill_no")
  1999. .IsRequired()
  2000. .HasMaxLength(50)
  2001. .HasColumnType("varchar(50)")
  2002. .HasComment("订单号");
  2003. b.Property<long>("fentry_id")
  2004. .HasColumnType("bigint")
  2005. .HasComment("行号");
  2006. b.Property<string>("fitem_name")
  2007. .IsRequired()
  2008. .HasMaxLength(500)
  2009. .HasColumnType("varchar(500)")
  2010. .HasComment("物料名称");
  2011. b.Property<string>("fitem_number")
  2012. .IsRequired()
  2013. .HasMaxLength(50)
  2014. .HasColumnType("varchar(50)")
  2015. .HasComment("物料编码");
  2016. b.Property<string>("fmodel")
  2017. .IsRequired()
  2018. .HasMaxLength(500)
  2019. .HasColumnType("varchar(500)")
  2020. .HasComment("规格型号");
  2021. b.Property<string>("moo_cbr")
  2022. .HasMaxLength(50)
  2023. .HasColumnType("varchar(50)")
  2024. .HasComment("变更人");
  2025. b.Property<string>("moo_creason")
  2026. .HasMaxLength(500)
  2027. .HasColumnType("varchar(500)")
  2028. .HasComment("变更原因");
  2029. b.Property<DateTime?>("moo_ctime")
  2030. .HasColumnType("datetime")
  2031. .HasComment("变更时间");
  2032. b.Property<DateTime?>("moo_etime")
  2033. .HasColumnType("datetime")
  2034. .HasComment("结束时间");
  2035. b.Property<long>("moo_id_billid")
  2036. .HasColumnType("bigint")
  2037. .HasComment("订单id");
  2038. b.Property<string>("moo_id_type")
  2039. .IsRequired()
  2040. .HasMaxLength(50)
  2041. .HasColumnType("varchar(50)")
  2042. .HasComment("类型--原始,分配");
  2043. b.Property<string>("moo_mo")
  2044. .IsRequired()
  2045. .HasMaxLength(50)
  2046. .HasColumnType("varchar(50)")
  2047. .HasComment("工单号");
  2048. b.Property<long>("moo_moid")
  2049. .HasColumnType("bigint")
  2050. .HasComment("工单id");
  2051. b.Property<decimal?>("moo_qty")
  2052. .HasPrecision(20, 8)
  2053. .HasColumnType("decimal(20,8)")
  2054. .HasComment("占用量");
  2055. b.Property<int>("moo_state")
  2056. .HasColumnType("int")
  2057. .HasComment("占用状态-1占用 默认0");
  2058. b.Property<DateTime?>("moo_stime")
  2059. .HasColumnType("datetime")
  2060. .HasComment("开始时间");
  2061. b.Property<long?>("org_id")
  2062. .HasColumnType("bigint")
  2063. .HasComment("组织ID");
  2064. b.Property<long>("tenant_id")
  2065. .HasColumnType("bigint")
  2066. .HasComment("企业ID");
  2067. b.Property<long?>("update_by")
  2068. .HasColumnType("bigint")
  2069. .HasComment("修改人");
  2070. b.Property<string>("update_by_name")
  2071. .HasMaxLength(50)
  2072. .HasColumnType("varchar(50)")
  2073. .HasComment("修改人名称");
  2074. b.Property<DateTime?>("update_time")
  2075. .HasColumnType("datetime")
  2076. .HasComment("修改时间");
  2077. b.HasKey("moo_id");
  2078. b.ToTable("mes_mooccupy", (string)null);
  2079. b.HasComment("在制工单占用记录表");
  2080. });
  2081. modelBuilder.Entity("Bussiness.Model.Production.mes_morder", b =>
  2082. {
  2083. b.Property<long>("morder_id")
  2084. .ValueGeneratedOnAdd()
  2085. .HasColumnType("bigint")
  2086. .HasComment("生产工单id");
  2087. b.Property<bool>("IsDeleted")
  2088. .ValueGeneratedOnAdd()
  2089. .HasColumnType("tinyint(1)")
  2090. .HasDefaultValue(false)
  2091. .HasColumnName("IsDeleted")
  2092. .HasComment("删除标识");
  2093. b.Property<string>("bom_number")
  2094. .HasMaxLength(80)
  2095. .HasColumnType("varchar(80)")
  2096. .HasComment("bom编码");
  2097. b.Property<DateTime?>("convey_date")
  2098. .HasColumnType("datetime")
  2099. .HasComment("下达日期");
  2100. b.Property<long?>("create_by")
  2101. .HasColumnType("bigint")
  2102. .HasComment("创建人id");
  2103. b.Property<string>("create_by_name")
  2104. .HasMaxLength(50)
  2105. .HasColumnType("varchar(50)")
  2106. .HasComment("创建人名称");
  2107. b.Property<DateTime?>("create_time")
  2108. .HasColumnType("datetime")
  2109. .HasComment("创建时间");
  2110. b.Property<long?>("factory_id")
  2111. .HasColumnType("bigint")
  2112. .HasComment("工厂ID");
  2113. b.Property<string>("fmodel")
  2114. .HasMaxLength(500)
  2115. .HasColumnType("varchar(500)")
  2116. .HasComment("规格型号");
  2117. b.Property<string>("fms_number")
  2118. .HasMaxLength(80)
  2119. .HasColumnType("varchar(80)")
  2120. .HasComment("fms旧料号");
  2121. b.Property<decimal?>("inspection_number")
  2122. .HasPrecision(20, 8)
  2123. .HasColumnType("decimal(20,8)")
  2124. .HasComment("报检数量");
  2125. b.Property<decimal?>("inventory_number")
  2126. .HasPrecision(20, 8)
  2127. .HasColumnType("decimal(20,8)")
  2128. .HasComment("入库数量");
  2129. b.Property<DateTime?>("mat_end_date")
  2130. .HasColumnType("datetime")
  2131. .HasComment("基于物料结束时间");
  2132. b.Property<DateTime?>("mat_start_date")
  2133. .HasColumnType("datetime")
  2134. .HasComment("基于物料开始时间");
  2135. b.Property<DateTime?>("moentry_etime")
  2136. .HasColumnType("datetime")
  2137. .HasComment("生产工单结束日期");
  2138. b.Property<long?>("moentry_prd")
  2139. .HasColumnType("bigint")
  2140. .HasComment("生产组织id");
  2141. b.Property<string>("moentry_prdname")
  2142. .HasMaxLength(50)
  2143. .HasColumnType("varchar(50)")
  2144. .HasComment("生产组织名称");
  2145. b.Property<int?>("moentry_startup_status")
  2146. .HasColumnType("int")
  2147. .HasComment("启动状态");
  2148. b.Property<DateTime?>("moentry_stime")
  2149. .HasColumnType("datetime")
  2150. .HasComment("生产工单开始日期");
  2151. b.Property<DateTime?>("moentry_sys_etime")
  2152. .HasColumnType("datetime")
  2153. .HasComment("系统建议完工时间");
  2154. b.Property<DateTime?>("moentry_sys_stime")
  2155. .HasColumnType("datetime")
  2156. .HasComment("系统建议开工时间");
  2157. b.Property<long?>("moentry_wrkc")
  2158. .HasColumnType("bigint")
  2159. .HasComment("工作中心id");
  2160. b.Property<string>("moentry_wrkcname")
  2161. .HasMaxLength(50)
  2162. .HasColumnType("varchar(50)")
  2163. .HasComment("工作中心名称");
  2164. b.Property<string>("morder_batchno")
  2165. .HasMaxLength(100)
  2166. .HasColumnType("varchar(100)")
  2167. .HasComment("工单批号--(批号管理的物料出入库要使用)");
  2168. b.Property<DateTime?>("morder_date")
  2169. .HasColumnType("datetime")
  2170. .HasComment("生产工单日期");
  2171. b.Property<string>("morder_fstate")
  2172. .HasMaxLength(50)
  2173. .HasColumnType("varchar(50)")
  2174. .HasComment("前状态--计划、下达、完成、关闭");
  2175. b.Property<string>("morder_icitem_type")
  2176. .HasMaxLength(255)
  2177. .HasColumnType("varchar(255)")
  2178. .HasComment("工单所属物料类型");
  2179. b.Property<decimal?>("morder_need_time")
  2180. .HasPrecision(20, 8)
  2181. .HasColumnType("decimal(20,8)")
  2182. .HasComment("工单所需工时");
  2183. b.Property<string>("morder_no")
  2184. .IsRequired()
  2185. .HasMaxLength(50)
  2186. .HasColumnType("varchar(50)")
  2187. .HasComment("生产工单编号");
  2188. b.Property<string>("morder_progress")
  2189. .HasMaxLength(1000)
  2190. .HasColumnType("varchar(1000)")
  2191. .HasComment("工单进度");
  2192. b.Property<string>("morder_state")
  2193. .HasMaxLength(50)
  2194. .HasColumnType("varchar(50)")
  2195. .HasComment("生产工单状态(订单状态:初始,下达,暂停、完成)");
  2196. b.Property<string>("morder_type")
  2197. .HasMaxLength(50)
  2198. .HasColumnType("varchar(50)")
  2199. .HasComment("生产工单类型(类型:计划工单、销售工单、委外工单、预测工单)");
  2200. b.Property<decimal?>("notice_qty")
  2201. .HasPrecision(20, 8)
  2202. .HasColumnType("decimal(20,8)")
  2203. .HasComment("已开入库通知单数量");
  2204. b.Property<long?>("org_id")
  2205. .HasColumnType("bigint")
  2206. .HasComment("组织ID");
  2207. b.Property<string>("overdue_Remark")
  2208. .HasMaxLength(255)
  2209. .HasColumnType("varchar(255)")
  2210. .HasComment("逾期原因备注");
  2211. b.Property<long?>("parent_id")
  2212. .HasColumnType("bigint")
  2213. .HasComment("上级工单id");
  2214. b.Property<DateTime?>("pause_time")
  2215. .HasColumnType("datetime")
  2216. .HasComment("最近暂停时间");
  2217. b.Property<decimal?>("picking_qty")
  2218. .HasPrecision(20, 8)
  2219. .HasColumnType("decimal(20,8)")
  2220. .HasComment("已领料数量");
  2221. b.Property<DateTime?>("planner_end_date")
  2222. .HasColumnType("datetime")
  2223. .HasComment("计划员设定结束时间");
  2224. b.Property<string>("planner_name")
  2225. .HasMaxLength(80)
  2226. .HasColumnType("varchar(80)")
  2227. .HasComment("计划员名称");
  2228. b.Property<string>("planner_num")
  2229. .HasMaxLength(80)
  2230. .HasColumnType("varchar(80)")
  2231. .HasComment("计划员工号");
  2232. b.Property<DateTime?>("planner_start_date")
  2233. .HasColumnType("datetime")
  2234. .HasComment("计划员设定开始时间");
  2235. b.Property<string>("product_code")
  2236. .HasMaxLength(80)
  2237. .HasColumnType("varchar(80)")
  2238. .HasComment("产品代码");
  2239. b.Property<string>("product_name")
  2240. .HasMaxLength(500)
  2241. .HasColumnType("varchar(500)")
  2242. .HasComment("产品名称");
  2243. b.Property<string>("project_name")
  2244. .HasMaxLength(255)
  2245. .HasColumnType("varchar(255)")
  2246. .HasComment("项目名称");
  2247. b.Property<decimal?>("qualified_number")
  2248. .HasPrecision(20, 8)
  2249. .HasColumnType("decimal(20,8)")
  2250. .HasComment("合格数量");
  2251. b.Property<DateTime?>("reality_end_time")
  2252. .HasColumnType("datetime")
  2253. .HasComment("实际结束时间");
  2254. b.Property<DateTime?>("reality_start_time")
  2255. .HasColumnType("datetime")
  2256. .HasComment("实际开始时间");
  2257. b.Property<long?>("relation_moid")
  2258. .HasColumnType("bigint")
  2259. .HasComment("关联工单id");
  2260. b.Property<string>("relation_mono")
  2261. .HasMaxLength(50)
  2262. .HasColumnType("varchar(50)")
  2263. .HasComment("关联编号");
  2264. b.Property<DateTime?>("restart_time")
  2265. .HasColumnType("datetime")
  2266. .HasComment("最近重启时间");
  2267. b.Property<DateTime?>("start_time")
  2268. .HasColumnType("datetime")
  2269. .HasComment("开始时间");
  2270. b.Property<long>("tenant_id")
  2271. .HasColumnType("bigint")
  2272. .HasComment("企业ID");
  2273. b.Property<long?>("update_by")
  2274. .HasColumnType("bigint")
  2275. .HasComment("修改人");
  2276. b.Property<string>("update_by_name")
  2277. .HasMaxLength(50)
  2278. .HasColumnType("varchar(50)")
  2279. .HasComment("修改人名称");
  2280. b.Property<DateTime?>("update_time")
  2281. .HasColumnType("datetime")
  2282. .HasComment("修改时间");
  2283. b.Property<decimal?>("work_number")
  2284. .HasPrecision(20, 8)
  2285. .HasColumnType("decimal(20,8)")
  2286. .HasComment("报工数量");
  2287. b.Property<string>("work_order_type")
  2288. .HasMaxLength(255)
  2289. .HasColumnType("varchar(255)")
  2290. .HasComment("工单类型(类型:发货工单、试产工单、备库工单、常规工单、返工工单)");
  2291. b.HasKey("morder_id");
  2292. b.ToTable("mes_morder", (string)null);
  2293. b.HasComment("工单主表");
  2294. });
  2295. modelBuilder.Entity("Bussiness.Model.Production.mes_morder_loss_time", b =>
  2296. {
  2297. b.Property<long>("id")
  2298. .ValueGeneratedOnAdd()
  2299. .HasColumnType("bigint")
  2300. .HasComment("工单损失时间主键");
  2301. b.Property<bool>("IsDeleted")
  2302. .ValueGeneratedOnAdd()
  2303. .HasColumnType("tinyint(1)")
  2304. .HasDefaultValue(false)
  2305. .HasColumnName("IsDeleted")
  2306. .HasComment("删除标识");
  2307. b.Property<string>("card_no")
  2308. .HasMaxLength(50)
  2309. .HasColumnType("varchar(50)")
  2310. .HasComment("用工卡号");
  2311. b.Property<long?>("create_by")
  2312. .HasColumnType("bigint")
  2313. .HasComment("创建人id");
  2314. b.Property<string>("create_by_name")
  2315. .HasMaxLength(50)
  2316. .HasColumnType("varchar(50)")
  2317. .HasComment("创建人名称");
  2318. b.Property<DateTime?>("create_time")
  2319. .HasColumnType("datetime")
  2320. .HasComment("创建时间");
  2321. b.Property<long>("dept_id")
  2322. .HasColumnType("bigint")
  2323. .HasComment("责任单位id");
  2324. b.Property<string>("dept_name")
  2325. .IsRequired()
  2326. .HasMaxLength(50)
  2327. .HasColumnType("varchar(50)")
  2328. .HasComment("责任单位名称");
  2329. b.Property<string>("description")
  2330. .HasMaxLength(255)
  2331. .HasColumnType("varchar(255)")
  2332. .HasComment("描述");
  2333. b.Property<DateTime>("end_time")
  2334. .HasColumnType("datetime")
  2335. .HasComment("损失结束时间");
  2336. b.Property<long?>("factory_id")
  2337. .HasColumnType("bigint")
  2338. .HasComment("工厂ID");
  2339. b.Property<int>("is_stop_production")
  2340. .HasColumnType("int")
  2341. .HasComment("是否停产(0未停产,1停产)");
  2342. b.Property<decimal>("loss_work_hours")
  2343. .HasPrecision(20, 8)
  2344. .HasColumnType("decimal(20,8)")
  2345. .HasComment("损失时间(用户输入)");
  2346. b.Property<long>("morder_id")
  2347. .HasColumnType("bigint")
  2348. .HasComment("生产工单id");
  2349. b.Property<string>("morder_no")
  2350. .IsRequired()
  2351. .HasMaxLength(50)
  2352. .HasColumnType("varchar(50)")
  2353. .HasComment("生产工单编号");
  2354. b.Property<int>("morder_no_row")
  2355. .HasColumnType("int")
  2356. .HasComment("生产工单编号");
  2357. b.Property<long?>("org_id")
  2358. .HasColumnType("bigint")
  2359. .HasComment("组织ID");
  2360. b.Property<string>("reason")
  2361. .IsRequired()
  2362. .HasMaxLength(255)
  2363. .HasColumnType("varchar(255)")
  2364. .HasComment("损失时间原因");
  2365. b.Property<long>("recorder_id")
  2366. .HasColumnType("bigint")
  2367. .HasComment("记录人id");
  2368. b.Property<string>("recorder_name")
  2369. .IsRequired()
  2370. .HasMaxLength(255)
  2371. .HasColumnType("varchar(255)")
  2372. .HasComment("记录人名称");
  2373. b.Property<decimal>("staff_qty")
  2374. .HasPrecision(20, 8)
  2375. .HasColumnType("decimal(20,8)")
  2376. .HasComment("人员数量");
  2377. b.Property<DateTime>("start_time")
  2378. .HasColumnType("datetime")
  2379. .HasComment("损失开始时间");
  2380. b.Property<decimal>("sys_loss_time")
  2381. .HasPrecision(20, 8)
  2382. .HasColumnType("decimal(20,8)")
  2383. .HasComment("系统计算损失时间");
  2384. b.Property<long>("tenant_id")
  2385. .HasColumnType("bigint")
  2386. .HasComment("企业ID");
  2387. b.Property<long?>("update_by")
  2388. .HasColumnType("bigint")
  2389. .HasComment("修改人");
  2390. b.Property<string>("update_by_name")
  2391. .HasMaxLength(50)
  2392. .HasColumnType("varchar(50)")
  2393. .HasComment("修改人名称");
  2394. b.Property<DateTime?>("update_time")
  2395. .HasColumnType("datetime")
  2396. .HasComment("修改时间");
  2397. b.Property<long>("workc_id")
  2398. .HasColumnType("bigint")
  2399. .HasComment("工作中心id");
  2400. b.Property<string>("workc_name")
  2401. .IsRequired()
  2402. .HasMaxLength(50)
  2403. .HasColumnType("varchar(50)")
  2404. .HasComment("工作中心名称");
  2405. b.HasKey("id");
  2406. b.ToTable("mes_morder_loss_time", (string)null);
  2407. b.HasComment("工单损失时间表");
  2408. });
  2409. modelBuilder.Entity("Bussiness.Model.Production.mes_oorder", b =>
  2410. {
  2411. b.Property<long>("oorder_id")
  2412. .ValueGeneratedOnAdd()
  2413. .HasColumnType("bigint")
  2414. .HasComment("委外订单id");
  2415. b.Property<bool>("IsDeleted")
  2416. .ValueGeneratedOnAdd()
  2417. .HasColumnType("tinyint(1)")
  2418. .HasDefaultValue(false)
  2419. .HasColumnName("IsDeleted")
  2420. .HasComment("删除标识");
  2421. b.Property<string>("bom_number")
  2422. .HasMaxLength(80)
  2423. .HasColumnType("varchar(80)")
  2424. .HasComment("bom编码");
  2425. b.Property<long?>("create_by")
  2426. .HasColumnType("bigint")
  2427. .HasComment("创建人id");
  2428. b.Property<string>("create_by_name")
  2429. .HasMaxLength(50)
  2430. .HasColumnType("varchar(50)")
  2431. .HasComment("创建人名称");
  2432. b.Property<DateTime?>("create_time")
  2433. .HasColumnType("datetime")
  2434. .HasComment("创建时间");
  2435. b.Property<long?>("factory_id")
  2436. .HasColumnType("bigint")
  2437. .HasComment("工厂ID");
  2438. b.Property<string>("ffms_number")
  2439. .HasMaxLength(80)
  2440. .HasColumnType("varchar(80)")
  2441. .HasComment("fms旧料号");
  2442. b.Property<decimal?>("inspection_number")
  2443. .HasPrecision(20, 8)
  2444. .HasColumnType("decimal(20,8)")
  2445. .HasComment("报检数量");
  2446. b.Property<decimal?>("inventory_number")
  2447. .HasPrecision(20, 8)
  2448. .HasColumnType("decimal(20,8)")
  2449. .HasComment("入库数量");
  2450. b.Property<int?>("moentry_on")
  2451. .HasColumnType("int")
  2452. .HasComment("启动状态");
  2453. b.Property<decimal?>("morder_production_number")
  2454. .HasPrecision(20, 10)
  2455. .HasColumnType("decimal(20,10)")
  2456. .HasComment("工单生产数量(计划数量)");
  2457. b.Property<string>("morder_progress")
  2458. .HasMaxLength(500)
  2459. .HasColumnType("varchar(500)")
  2460. .HasComment("工单进度");
  2461. b.Property<int?>("need_icitem_status")
  2462. .HasColumnType("int")
  2463. .HasComment("加工单位编码");
  2464. b.Property<decimal?>("need_number")
  2465. .HasPrecision(20, 10)
  2466. .HasColumnType("decimal(20,10)")
  2467. .HasComment("需求数量");
  2468. b.Property<decimal?>("notice_qty")
  2469. .HasPrecision(20, 8)
  2470. .HasColumnType("decimal(20,8)")
  2471. .HasComment("已开通知单数量");
  2472. b.Property<DateTime?>("ooentry_etime")
  2473. .HasColumnType("datetime")
  2474. .HasComment("计划完工日期");
  2475. b.Property<long?>("ooentry_prd")
  2476. .HasColumnType("bigint")
  2477. .HasComment("生产组织");
  2478. b.Property<string>("ooentry_prdname")
  2479. .HasMaxLength(50)
  2480. .HasColumnType("varchar(50)")
  2481. .HasComment("生产组织名称");
  2482. b.Property<DateTime?>("ooentry_stime")
  2483. .HasColumnType("datetime")
  2484. .HasComment("计划开工日期");
  2485. b.Property<long?>("ooentry_wrkc")
  2486. .HasColumnType("bigint")
  2487. .HasComment("工作中心id");
  2488. b.Property<string>("ooentry_wrkcname")
  2489. .HasMaxLength(50)
  2490. .HasColumnType("varchar(50)")
  2491. .HasComment("工作中心名称");
  2492. b.Property<DateTime?>("oorder_date")
  2493. .HasColumnType("datetime")
  2494. .HasComment("委外订单日期");
  2495. b.Property<string>("oorder_no")
  2496. .HasMaxLength(50)
  2497. .HasColumnType("varchar(50)")
  2498. .HasComment("生产工单编号");
  2499. b.Property<string>("oorder_state")
  2500. .HasMaxLength(50)
  2501. .HasColumnType("varchar(50)")
  2502. .HasComment("订单状态");
  2503. b.Property<string>("oorder_type")
  2504. .HasMaxLength(80)
  2505. .HasColumnType("varchar(80)")
  2506. .HasComment("生产工单类型");
  2507. b.Property<long?>("org_id")
  2508. .HasColumnType("bigint")
  2509. .HasComment("组织ID");
  2510. b.Property<DateTime?>("pause_time")
  2511. .HasColumnType("datetime")
  2512. .HasComment("最近暂停时间");
  2513. b.Property<string>("planner_name")
  2514. .HasMaxLength(80)
  2515. .HasColumnType("varchar(80)")
  2516. .HasComment("计划员名称");
  2517. b.Property<string>("planner_num")
  2518. .HasMaxLength(80)
  2519. .HasColumnType("varchar(80)")
  2520. .HasComment("计划员工号");
  2521. b.Property<string>("product_code")
  2522. .HasMaxLength(80)
  2523. .HasColumnType("varchar(80)")
  2524. .HasComment("产品代码");
  2525. b.Property<string>("product_name")
  2526. .HasMaxLength(500)
  2527. .HasColumnType("varchar(500)")
  2528. .HasComment("产品名称");
  2529. b.Property<string>("production_unit")
  2530. .HasMaxLength(100)
  2531. .HasColumnType("varchar(100)")
  2532. .HasComment("加工单位");
  2533. b.Property<string>("production_unit_code")
  2534. .HasMaxLength(20)
  2535. .HasColumnType("varchar(20)")
  2536. .HasComment("加工单位编码");
  2537. b.Property<string>("project_name")
  2538. .HasMaxLength(255)
  2539. .HasColumnType("varchar(255)")
  2540. .HasComment("项目名称");
  2541. b.Property<decimal?>("qualified_number")
  2542. .HasPrecision(20, 8)
  2543. .HasColumnType("decimal(20,8)")
  2544. .HasComment("合格数量");
  2545. b.Property<decimal?>("remaining_number")
  2546. .HasPrecision(20, 10)
  2547. .HasColumnType("decimal(20,10)")
  2548. .HasComment("剩余可用数量");
  2549. b.Property<DateTime?>("restart_time")
  2550. .HasColumnType("datetime")
  2551. .HasComment("最近重启时间");
  2552. b.Property<int?>("sent_status")
  2553. .HasColumnType("int")
  2554. .HasComment("发料状态 1-待发料 2-已发料");
  2555. b.Property<string>("specification_model")
  2556. .HasMaxLength(500)
  2557. .HasColumnType("varchar(500)")
  2558. .HasComment("规格型号");
  2559. b.Property<DateTime?>("start_time")
  2560. .HasColumnType("datetime")
  2561. .HasComment("开始时间");
  2562. b.Property<long>("tenant_id")
  2563. .HasColumnType("bigint")
  2564. .HasComment("企业ID");
  2565. b.Property<string>("unit")
  2566. .HasMaxLength(80)
  2567. .HasColumnType("varchar(80)")
  2568. .HasComment("单位");
  2569. b.Property<long?>("update_by")
  2570. .HasColumnType("bigint")
  2571. .HasComment("修改人");
  2572. b.Property<string>("update_by_name")
  2573. .HasMaxLength(50)
  2574. .HasColumnType("varchar(50)")
  2575. .HasComment("修改人名称");
  2576. b.Property<DateTime?>("update_time")
  2577. .HasColumnType("datetime")
  2578. .HasComment("修改时间");
  2579. b.Property<decimal?>("work_number")
  2580. .HasPrecision(20, 8)
  2581. .HasColumnType("decimal(20,8)")
  2582. .HasComment("报工数量");
  2583. b.HasKey("oorder_id");
  2584. b.ToTable("mes_oorder", (string)null);
  2585. b.HasComment("委外订单表");
  2586. });
  2587. modelBuilder.Entity("Bussiness.Model.Production.mes_schedule_occupy", b =>
  2588. {
  2589. b.Property<long>("id")
  2590. .ValueGeneratedOnAdd()
  2591. .HasColumnType("bigint")
  2592. .HasComment("排程时间占用记录id");
  2593. b.Property<bool>("IsDeleted")
  2594. .ValueGeneratedOnAdd()
  2595. .HasColumnType("tinyint(1)")
  2596. .HasDefaultValue(false)
  2597. .HasColumnName("IsDeleted")
  2598. .HasComment("删除标识");
  2599. b.Property<long?>("create_by")
  2600. .HasColumnType("bigint")
  2601. .HasComment("创建人id");
  2602. b.Property<string>("create_by_name")
  2603. .HasMaxLength(50)
  2604. .HasColumnType("varchar(50)")
  2605. .HasComment("创建人名称");
  2606. b.Property<DateTime?>("create_time")
  2607. .HasColumnType("datetime")
  2608. .HasComment("创建时间");
  2609. b.Property<DateTime?>("end_time")
  2610. .HasColumnType("datetime")
  2611. .HasComment("结束时间");
  2612. b.Property<long?>("factory_id")
  2613. .HasColumnType("bigint")
  2614. .HasComment("工厂ID");
  2615. b.Property<int>("is_Locked")
  2616. .HasColumnType("int")
  2617. .HasComment("是否锁定 0-正常,1-锁定");
  2618. b.Property<long?>("org_id")
  2619. .HasColumnType("bigint")
  2620. .HasComment("组织ID");
  2621. b.Property<long>("prd_org_id")
  2622. .HasColumnType("bigint")
  2623. .HasComment("生产组织id");
  2624. b.Property<DateTime?>("start_time")
  2625. .HasColumnType("datetime")
  2626. .HasComment("开始时间");
  2627. b.Property<int>("status")
  2628. .HasColumnType("int")
  2629. .HasComment("状态 0-待使用,1-已使用");
  2630. b.Property<long>("tenant_id")
  2631. .HasColumnType("bigint")
  2632. .HasComment("企业ID");
  2633. b.Property<long?>("update_by")
  2634. .HasColumnType("bigint")
  2635. .HasComment("修改人");
  2636. b.Property<string>("update_by_name")
  2637. .HasMaxLength(50)
  2638. .HasColumnType("varchar(50)")
  2639. .HasComment("修改人名称");
  2640. b.Property<DateTime?>("update_time")
  2641. .HasColumnType("datetime")
  2642. .HasComment("修改时间");
  2643. b.Property<long>("work_calendar_id")
  2644. .HasColumnType("bigint")
  2645. .HasComment("工作日历id");
  2646. b.Property<long>("work_center_id")
  2647. .HasColumnType("bigint")
  2648. .HasComment("工作中心id");
  2649. b.Property<decimal?>("working_minute")
  2650. .HasPrecision(20, 8)
  2651. .HasColumnType("decimal(20,8)")
  2652. .HasComment("工作时长(h)");
  2653. b.HasKey("id");
  2654. b.ToTable("mes_schedule_occupy", (string)null);
  2655. b.HasComment("排程时间占用记录表");
  2656. });
  2657. modelBuilder.Entity("Bussiness.Model.Production.mes_stockoccupy", b =>
  2658. {
  2659. b.Property<long>("soccupy_id")
  2660. .ValueGeneratedOnAdd()
  2661. .HasColumnType("bigint")
  2662. .HasComment("成品库存占用id");
  2663. b.Property<bool>("IsDeleted")
  2664. .ValueGeneratedOnAdd()
  2665. .HasColumnType("tinyint(1)")
  2666. .HasDefaultValue(false)
  2667. .HasColumnName("IsDeleted")
  2668. .HasComment("删除标识");
  2669. b.Property<long?>("create_by")
  2670. .HasColumnType("bigint")
  2671. .HasComment("创建人id");
  2672. b.Property<string>("create_by_name")
  2673. .HasMaxLength(50)
  2674. .HasColumnType("varchar(50)")
  2675. .HasComment("创建人名称");
  2676. b.Property<DateTime?>("create_time")
  2677. .HasColumnType("datetime")
  2678. .HasComment("创建时间");
  2679. b.Property<long?>("factory_id")
  2680. .HasColumnType("bigint")
  2681. .HasComment("工厂ID");
  2682. b.Property<string>("fbill_no")
  2683. .HasMaxLength(50)
  2684. .HasColumnType("varchar(50)")
  2685. .HasComment("订单编号");
  2686. b.Property<long?>("fentry_id")
  2687. .HasColumnType("bigint")
  2688. .HasComment("订单行号");
  2689. b.Property<string>("fitem_name")
  2690. .HasMaxLength(200)
  2691. .HasColumnType("varchar(200)")
  2692. .HasComment("物料名称");
  2693. b.Property<string>("fitem_number")
  2694. .HasMaxLength(50)
  2695. .HasColumnType("varchar(50)")
  2696. .HasComment("物料编码");
  2697. b.Property<string>("fmodel")
  2698. .HasMaxLength(200)
  2699. .HasColumnType("varchar(200)")
  2700. .HasComment("规格型号");
  2701. b.Property<decimal?>("occupyqty")
  2702. .HasPrecision(20, 2)
  2703. .HasColumnType("decimal(20,2)")
  2704. .HasComment("占用量");
  2705. b.Property<long?>("org_id")
  2706. .HasColumnType("bigint")
  2707. .HasComment("组织ID");
  2708. b.Property<string>("soccupy_cby")
  2709. .HasMaxLength(50)
  2710. .HasColumnType("varchar(50)")
  2711. .HasComment("变更人");
  2712. b.Property<string>("soccupy_creason")
  2713. .HasMaxLength(255)
  2714. .HasColumnType("varchar(255)")
  2715. .HasComment("变更原因");
  2716. b.Property<DateTime?>("soccupy_ctime")
  2717. .HasColumnType("datetime")
  2718. .HasComment("变更时间");
  2719. b.Property<DateTime?>("soccupy_etime")
  2720. .HasColumnType("datetime")
  2721. .HasComment("结束时间");
  2722. b.Property<string>("soccupy_state")
  2723. .HasMaxLength(50)
  2724. .HasColumnType("varchar(50)")
  2725. .HasComment("占用状态");
  2726. b.Property<DateTime?>("soccupy_stime")
  2727. .HasColumnType("datetime")
  2728. .HasComment("开始时间");
  2729. b.Property<string>("soccupy_type")
  2730. .IsRequired()
  2731. .HasMaxLength(50)
  2732. .HasColumnType("varchar(50)")
  2733. .HasComment("类型");
  2734. b.Property<long?>("soentry_id")
  2735. .HasColumnType("bigint")
  2736. .HasComment("订单行id");
  2737. b.Property<long>("tenant_id")
  2738. .HasColumnType("bigint")
  2739. .HasComment("企业ID");
  2740. b.Property<long?>("update_by")
  2741. .HasColumnType("bigint")
  2742. .HasComment("修改人");
  2743. b.Property<string>("update_by_name")
  2744. .HasMaxLength(50)
  2745. .HasColumnType("varchar(50)")
  2746. .HasComment("修改人名称");
  2747. b.Property<DateTime?>("update_time")
  2748. .HasColumnType("datetime")
  2749. .HasComment("修改时间");
  2750. b.Property<long>("warehouse_id")
  2751. .HasColumnType("bigint")
  2752. .HasComment("仓库id");
  2753. b.Property<string>("warehouse_name")
  2754. .HasMaxLength(80)
  2755. .HasColumnType("varchar(80)")
  2756. .HasComment("仓库名称");
  2757. b.Property<string>("warehouse_type")
  2758. .HasMaxLength(50)
  2759. .HasColumnType("varchar(50)")
  2760. .HasComment("仓库类型");
  2761. b.HasKey("soccupy_id");
  2762. b.ToTable("mes_stockoccupy", (string)null);
  2763. b.HasComment("成品库存占用表");
  2764. });
  2765. modelBuilder.Entity("Bussiness.Model.ProductionProcess.mes_loss_time_record", b =>
  2766. {
  2767. b.Property<long>("loss_time_record_id")
  2768. .ValueGeneratedOnAdd()
  2769. .HasColumnType("bigint")
  2770. .HasComment("主键ID");
  2771. b.Property<bool>("IsDeleted")
  2772. .ValueGeneratedOnAdd()
  2773. .HasColumnType("tinyint(1)")
  2774. .HasDefaultValue(false)
  2775. .HasColumnName("IsDeleted")
  2776. .HasComment("删除标识");
  2777. b.Property<string>("cause")
  2778. .HasMaxLength(500)
  2779. .HasColumnType("varchar(500)")
  2780. .HasComment("原因");
  2781. b.Property<long?>("create_by")
  2782. .HasColumnType("bigint")
  2783. .HasComment("创建人id");
  2784. b.Property<string>("create_by_name")
  2785. .HasMaxLength(50)
  2786. .HasColumnType("varchar(50)")
  2787. .HasComment("创建人名称");
  2788. b.Property<DateTime?>("create_time")
  2789. .HasColumnType("datetime")
  2790. .HasComment("创建时间");
  2791. b.Property<string>("desc")
  2792. .HasMaxLength(500)
  2793. .HasColumnType("varchar(500)")
  2794. .HasComment("问题描述");
  2795. b.Property<DateTime?>("end_time")
  2796. .HasColumnType("datetime")
  2797. .HasComment("损失结束时间");
  2798. b.Property<long?>("factory_id")
  2799. .HasColumnType("bigint")
  2800. .HasComment("工厂ID");
  2801. b.Property<int>("isstop")
  2802. .HasColumnType("int")
  2803. .HasComment("是否停线");
  2804. b.Property<long>("morder_id")
  2805. .HasColumnType("bigint")
  2806. .HasComment("工单id");
  2807. b.Property<string>("morder_no")
  2808. .IsRequired()
  2809. .HasMaxLength(50)
  2810. .HasColumnType("varchar(50)")
  2811. .HasComment("工单编号");
  2812. b.Property<long?>("org_id")
  2813. .HasColumnType("bigint")
  2814. .HasComment("组织ID");
  2815. b.Property<long>("product_line")
  2816. .HasColumnType("bigint")
  2817. .HasComment("生产产线");
  2818. b.Property<long>("product_org")
  2819. .HasColumnType("bigint")
  2820. .HasComment("生产车间");
  2821. b.Property<long>("record_id")
  2822. .HasColumnType("bigint")
  2823. .HasComment("记录人id");
  2824. b.Property<string>("record_no")
  2825. .IsRequired()
  2826. .HasColumnType("longtext")
  2827. .HasComment("记录人工号");
  2828. b.Property<DateTime>("record_time")
  2829. .HasColumnType("datetime")
  2830. .HasComment("记录时间");
  2831. b.Property<DateTime?>("start_time")
  2832. .HasColumnType("datetime")
  2833. .HasComment("损失开始时间");
  2834. b.Property<long>("tenant_id")
  2835. .HasColumnType("bigint")
  2836. .HasComment("企业ID");
  2837. b.Property<long?>("update_by")
  2838. .HasColumnType("bigint")
  2839. .HasComment("修改人");
  2840. b.Property<string>("update_by_name")
  2841. .HasMaxLength(50)
  2842. .HasColumnType("varchar(50)")
  2843. .HasComment("修改人名称");
  2844. b.Property<DateTime?>("update_time")
  2845. .HasColumnType("datetime")
  2846. .HasComment("修改时间");
  2847. b.HasKey("loss_time_record_id");
  2848. b.ToTable("mes_loss_time_record", (string)null);
  2849. b.HasComment("损失时间记录表");
  2850. });
  2851. modelBuilder.Entity("Bussiness.Model.ProductionProcess.mes_meaction", b =>
  2852. {
  2853. b.Property<long>("meaction_id")
  2854. .ValueGeneratedOnAdd()
  2855. .HasColumnType("bigint")
  2856. .HasComment("生产动作Id");
  2857. b.Property<bool>("IsDeleted")
  2858. .ValueGeneratedOnAdd()
  2859. .HasColumnType("tinyint(1)")
  2860. .HasDefaultValue(false)
  2861. .HasColumnName("IsDeleted")
  2862. .HasComment("删除标识");
  2863. b.Property<long?>("create_by")
  2864. .HasColumnType("bigint")
  2865. .HasComment("创建人id");
  2866. b.Property<string>("create_by_name")
  2867. .HasMaxLength(50)
  2868. .HasColumnType("varchar(50)")
  2869. .HasComment("创建人名称");
  2870. b.Property<DateTime?>("create_time")
  2871. .HasColumnType("datetime")
  2872. .HasComment("创建时间");
  2873. b.Property<long?>("factory_id")
  2874. .HasColumnType("bigint")
  2875. .HasComment("工厂ID");
  2876. b.Property<long>("morder_id")
  2877. .HasColumnType("bigint")
  2878. .HasComment("生产工单id");
  2879. b.Property<string>("morder_no")
  2880. .IsRequired()
  2881. .HasMaxLength(50)
  2882. .HasColumnType("varchar(50)")
  2883. .HasComment("生产工单号");
  2884. b.Property<long?>("oprby")
  2885. .HasColumnType("bigint")
  2886. .HasComment("操作人id");
  2887. b.Property<string>("oprbyname")
  2888. .HasMaxLength(50)
  2889. .HasColumnType("varchar(50)")
  2890. .HasComment("操作人名称");
  2891. b.Property<string>("oprbyno")
  2892. .HasMaxLength(100)
  2893. .HasColumnType("varchar(100)")
  2894. .HasComment("操作人工号");
  2895. b.Property<DateTime?>("oprtime")
  2896. .HasColumnType("datetime")
  2897. .HasComment("操作时间");
  2898. b.Property<string>("oprtype")
  2899. .HasMaxLength(50)
  2900. .HasColumnType("varchar(50)")
  2901. .HasComment("操作类型");
  2902. b.Property<long?>("org_id")
  2903. .HasColumnType("bigint")
  2904. .HasComment("组织ID");
  2905. b.Property<long>("tenant_id")
  2906. .HasColumnType("bigint")
  2907. .HasComment("企业ID");
  2908. b.Property<long?>("update_by")
  2909. .HasColumnType("bigint")
  2910. .HasComment("修改人");
  2911. b.Property<string>("update_by_name")
  2912. .HasMaxLength(50)
  2913. .HasColumnType("varchar(50)")
  2914. .HasComment("修改人名称");
  2915. b.Property<DateTime?>("update_time")
  2916. .HasColumnType("datetime")
  2917. .HasComment("修改时间");
  2918. b.HasKey("meaction_id");
  2919. b.ToTable("mes_meaction", (string)null);
  2920. b.HasComment("生产动作表");
  2921. });
  2922. modelBuilder.Entity("Bussiness.Model.ProductionProcess.mes_mebycard", b =>
  2923. {
  2924. b.Property<long>("mebycard_id")
  2925. .ValueGeneratedOnAdd()
  2926. .HasColumnType("bigint")
  2927. .HasComment("刷卡id");
  2928. b.Property<bool>("IsDeleted")
  2929. .ValueGeneratedOnAdd()
  2930. .HasColumnType("tinyint(1)")
  2931. .HasDefaultValue(false)
  2932. .HasColumnName("IsDeleted")
  2933. .HasComment("删除标识");
  2934. b.Property<long?>("create_by")
  2935. .HasColumnType("bigint")
  2936. .HasComment("创建人id");
  2937. b.Property<string>("create_by_name")
  2938. .HasMaxLength(50)
  2939. .HasColumnType("varchar(50)")
  2940. .HasComment("创建人名称");
  2941. b.Property<DateTime?>("create_time")
  2942. .HasColumnType("datetime")
  2943. .HasComment("创建时间");
  2944. b.Property<long?>("factory_id")
  2945. .HasColumnType("bigint")
  2946. .HasComment("工厂ID");
  2947. b.Property<string>("mebycard_byno")
  2948. .IsRequired()
  2949. .HasMaxLength(100)
  2950. .HasColumnType("varchar(100)")
  2951. .HasComment("刷卡人员卡号");
  2952. b.Property<long>("mebycard_moid")
  2953. .HasColumnType("bigint")
  2954. .HasComment("生产工单号id");
  2955. b.Property<string>("mebycard_mono")
  2956. .IsRequired()
  2957. .HasMaxLength(50)
  2958. .HasColumnType("varchar(50)")
  2959. .HasComment("生产工单号");
  2960. b.Property<long>("mebycard_pid")
  2961. .HasColumnType("bigint")
  2962. .HasComment("工序id");
  2963. b.Property<string>("mebycard_pname")
  2964. .IsRequired()
  2965. .HasMaxLength(100)
  2966. .HasColumnType("varchar(100)")
  2967. .HasComment("工序名称");
  2968. b.Property<string>("mebycard_pno")
  2969. .IsRequired()
  2970. .HasMaxLength(100)
  2971. .HasColumnType("varchar(100)")
  2972. .HasComment("工序编码");
  2973. b.Property<DateTime>("mebycard_time")
  2974. .HasColumnType("datetime")
  2975. .HasComment("刷卡时间");
  2976. b.Property<long?>("org_id")
  2977. .HasColumnType("bigint")
  2978. .HasComment("组织ID");
  2979. b.Property<long>("tenant_id")
  2980. .HasColumnType("bigint")
  2981. .HasComment("企业ID");
  2982. b.Property<long?>("update_by")
  2983. .HasColumnType("bigint")
  2984. .HasComment("修改人");
  2985. b.Property<string>("update_by_name")
  2986. .HasMaxLength(50)
  2987. .HasColumnType("varchar(50)")
  2988. .HasComment("修改人名称");
  2989. b.Property<DateTime?>("update_time")
  2990. .HasColumnType("datetime")
  2991. .HasComment("修改时间");
  2992. b.HasKey("mebycard_id");
  2993. b.ToTable("mes_mebycard", (string)null);
  2994. b.HasComment("产线刷卡记录");
  2995. });
  2996. modelBuilder.Entity("Bussiness.Model.ProductionProcess.mes_merecheck", b =>
  2997. {
  2998. b.Property<long>("merecheck_id")
  2999. .ValueGeneratedOnAdd()
  3000. .HasColumnType("bigint")
  3001. .HasComment("生产报检记录Id");
  3002. b.Property<bool>("IsDeleted")
  3003. .ValueGeneratedOnAdd()
  3004. .HasColumnType("tinyint(1)")
  3005. .HasDefaultValue(false)
  3006. .HasColumnName("IsDeleted")
  3007. .HasComment("删除标识");
  3008. b.Property<long?>("create_by")
  3009. .HasColumnType("bigint")
  3010. .HasComment("创建人id");
  3011. b.Property<string>("create_by_name")
  3012. .HasMaxLength(50)
  3013. .HasColumnType("varchar(50)")
  3014. .HasComment("创建人名称");
  3015. b.Property<DateTime?>("create_time")
  3016. .HasColumnType("datetime")
  3017. .HasComment("创建时间");
  3018. b.Property<long?>("factory_id")
  3019. .HasColumnType("bigint")
  3020. .HasComment("工厂ID");
  3021. b.Property<long>("morder_id")
  3022. .HasColumnType("bigint")
  3023. .HasComment("生产工单id");
  3024. b.Property<string>("morder_no")
  3025. .IsRequired()
  3026. .HasMaxLength(50)
  3027. .HasColumnType("varchar(50)")
  3028. .HasComment("生产工单号");
  3029. b.Property<long>("oprby")
  3030. .HasColumnType("bigint")
  3031. .HasComment("报检人id");
  3032. b.Property<DateTime>("oprtime")
  3033. .HasColumnType("datetime")
  3034. .HasComment("报检时间");
  3035. b.Property<long?>("org_id")
  3036. .HasColumnType("bigint")
  3037. .HasComment("组织ID");
  3038. b.Property<decimal>("qty")
  3039. .HasPrecision(20, 10)
  3040. .HasColumnType("decimal(20,10)")
  3041. .HasComment("报检数量");
  3042. b.Property<long>("tenant_id")
  3043. .HasColumnType("bigint")
  3044. .HasComment("企业ID");
  3045. b.Property<long?>("update_by")
  3046. .HasColumnType("bigint")
  3047. .HasComment("修改人");
  3048. b.Property<string>("update_by_name")
  3049. .HasMaxLength(50)
  3050. .HasColumnType("varchar(50)")
  3051. .HasComment("修改人名称");
  3052. b.Property<DateTime?>("update_time")
  3053. .HasColumnType("datetime")
  3054. .HasComment("修改时间");
  3055. b.HasKey("merecheck_id");
  3056. b.ToTable("mes_merecheck", (string)null);
  3057. b.HasComment("生产报检记录");
  3058. });
  3059. modelBuilder.Entity("Bussiness.Model.ProductionProcess.mes_mereport", b =>
  3060. {
  3061. b.Property<long>("mereport_id")
  3062. .ValueGeneratedOnAdd()
  3063. .HasColumnType("bigint")
  3064. .HasComment("生产报工记录Id");
  3065. b.Property<bool>("IsDeleted")
  3066. .ValueGeneratedOnAdd()
  3067. .HasColumnType("tinyint(1)")
  3068. .HasDefaultValue(false)
  3069. .HasColumnName("IsDeleted")
  3070. .HasComment("删除标识");
  3071. b.Property<long?>("create_by")
  3072. .HasColumnType("bigint")
  3073. .HasComment("创建人id");
  3074. b.Property<string>("create_by_name")
  3075. .HasMaxLength(50)
  3076. .HasColumnType("varchar(50)")
  3077. .HasComment("创建人名称");
  3078. b.Property<DateTime?>("create_time")
  3079. .HasColumnType("datetime")
  3080. .HasComment("创建时间");
  3081. b.Property<long?>("factory_id")
  3082. .HasColumnType("bigint")
  3083. .HasComment("工厂ID");
  3084. b.Property<decimal>("instock_qty")
  3085. .HasPrecision(20, 10)
  3086. .HasColumnType("decimal(20,10)")
  3087. .HasComment("报工数量");
  3088. b.Property<long>("morder_id")
  3089. .HasColumnType("bigint")
  3090. .HasComment("生产工单id");
  3091. b.Property<string>("morder_no")
  3092. .IsRequired()
  3093. .HasMaxLength(50)
  3094. .HasColumnType("varchar(50)")
  3095. .HasComment("生产工单号");
  3096. b.Property<long?>("org_id")
  3097. .HasColumnType("bigint")
  3098. .HasComment("组织ID");
  3099. b.Property<decimal>("qty")
  3100. .HasPrecision(20, 10)
  3101. .HasColumnType("decimal(20,10)")
  3102. .HasComment("报工数量");
  3103. b.Property<long>("report_by")
  3104. .HasColumnType("bigint")
  3105. .HasComment("报工人id");
  3106. b.Property<string>("report_byno")
  3107. .IsRequired()
  3108. .HasMaxLength(50)
  3109. .HasColumnType("varchar(50)")
  3110. .HasComment("报工人工号");
  3111. b.Property<DateTime>("report_time")
  3112. .HasColumnType("datetime")
  3113. .HasComment("报工时间");
  3114. b.Property<long>("tenant_id")
  3115. .HasColumnType("bigint")
  3116. .HasComment("企业ID");
  3117. b.Property<long?>("update_by")
  3118. .HasColumnType("bigint")
  3119. .HasComment("修改人");
  3120. b.Property<string>("update_by_name")
  3121. .HasMaxLength(50)
  3122. .HasColumnType("varchar(50)")
  3123. .HasComment("修改人名称");
  3124. b.Property<DateTime?>("update_time")
  3125. .HasColumnType("datetime")
  3126. .HasComment("修改时间");
  3127. b.HasKey("mereport_id");
  3128. b.ToTable("mes_mereport", (string)null);
  3129. b.HasComment("生产报工记录");
  3130. });
  3131. modelBuilder.Entity("Bussiness.Model.ProductionProcess.mes_prd_sendmat", b =>
  3132. {
  3133. b.Property<long>("prdsm_id")
  3134. .ValueGeneratedOnAdd()
  3135. .HasColumnType("bigint")
  3136. .HasComment("发料单id");
  3137. b.Property<string>("prdsm_by")
  3138. .IsRequired()
  3139. .HasMaxLength(50)
  3140. .HasColumnType("varchar(50)")
  3141. .HasComment("制单人");
  3142. b.Property<DateTime>("prdsm_date")
  3143. .HasColumnType("datetime")
  3144. .HasComment("单据日期");
  3145. b.Property<DateTime?>("prdsm_ddate")
  3146. .HasColumnType("datetime")
  3147. .HasComment("配送日期");
  3148. b.Property<long>("prdsm_moid")
  3149. .HasColumnType("bigint")
  3150. .HasComment("生产工单id");
  3151. b.Property<string>("prdsm_mono")
  3152. .IsRequired()
  3153. .HasMaxLength(50)
  3154. .HasColumnType("varchar(50)")
  3155. .HasComment("生产工单号");
  3156. b.Property<string>("prdsm_no")
  3157. .IsRequired()
  3158. .HasMaxLength(50)
  3159. .HasColumnType("varchar(50)")
  3160. .HasComment("单据编号");
  3161. b.Property<string>("prdsm_note")
  3162. .HasMaxLength(500)
  3163. .HasColumnType("varchar(500)")
  3164. .HasComment("备注");
  3165. b.Property<string>("prdsm_po_no")
  3166. .HasMaxLength(100)
  3167. .HasColumnType("varchar(100)")
  3168. .HasComment("关联委外po单号");
  3169. b.Property<int?>("prdsm_po_row")
  3170. .HasColumnType("int")
  3171. .HasComment("关联委外po行号");
  3172. b.Property<long>("prdsm_prdid")
  3173. .HasColumnType("bigint")
  3174. .HasComment("生产组织id");
  3175. b.Property<decimal>("prdsm_qty")
  3176. .HasPrecision(20, 10)
  3177. .HasColumnType("decimal(20,10)")
  3178. .HasComment("叫料数量");
  3179. b.Property<string>("prdsm_reason")
  3180. .HasMaxLength(500)
  3181. .HasColumnType("varchar(500)")
  3182. .HasComment("补料理由");
  3183. b.Property<int?>("prdsm_state")
  3184. .HasColumnType("int")
  3185. .HasComment("状态");
  3186. b.Property<string>("prdsm_type")
  3187. .IsRequired()
  3188. .HasMaxLength(50)
  3189. .HasColumnType("varchar(50)")
  3190. .HasComment("单据类型 (发料、叫料、补料、退料)");
  3191. b.Property<long>("prdsm_workcid")
  3192. .HasColumnType("bigint")
  3193. .HasComment("工作中心id");
  3194. b.Property<int>("srcbill_state")
  3195. .HasColumnType("int")
  3196. .HasComment("源单状态");
  3197. b.Property<int>("srcbill_type")
  3198. .HasColumnType("int")
  3199. .HasComment("原单类型");
  3200. b.HasKey("prdsm_id");
  3201. b.ToTable("mes_prd_sendmat", (string)null);
  3202. b.HasComment("发料单");
  3203. });
  3204. modelBuilder.Entity("Bussiness.Model.ProductionProcess.mes_prd_sendmat_list", b =>
  3205. {
  3206. b.Property<long>("prdsml_id")
  3207. .ValueGeneratedOnAdd()
  3208. .HasColumnType("bigint")
  3209. .HasComment("发料单详情id");
  3210. b.Property<bool>("IsDeleted")
  3211. .ValueGeneratedOnAdd()
  3212. .HasColumnType("tinyint(1)")
  3213. .HasDefaultValue(false)
  3214. .HasColumnName("IsDeleted")
  3215. .HasComment("删除标识");
  3216. b.Property<long?>("create_by")
  3217. .HasColumnType("bigint")
  3218. .HasComment("创建人id");
  3219. b.Property<string>("create_by_name")
  3220. .HasMaxLength(50)
  3221. .HasColumnType("varchar(50)")
  3222. .HasComment("创建人名称");
  3223. b.Property<DateTime?>("create_time")
  3224. .HasColumnType("datetime")
  3225. .HasComment("创建时间");
  3226. b.Property<long?>("factory_id")
  3227. .HasColumnType("bigint")
  3228. .HasComment("工厂ID");
  3229. b.Property<int?>("fbackflush")
  3230. .HasColumnType("int")
  3231. .HasComment("是否倒冲");
  3232. b.Property<decimal?>("fdiscard_aux_qty")
  3233. .HasPrecision(20, 10)
  3234. .HasColumnType("decimal(20,10)")
  3235. .HasComment("报废数量");
  3236. b.Property<string>("fisKey_item")
  3237. .HasMaxLength(255)
  3238. .HasColumnType("varchar(255)")
  3239. .HasComment("子项属性");
  3240. b.Property<string>("fitem_name")
  3241. .HasMaxLength(100)
  3242. .HasColumnType("varchar(100)")
  3243. .HasComment("物料编码");
  3244. b.Property<string>("fitem_number")
  3245. .HasMaxLength(100)
  3246. .HasColumnType("varchar(100)")
  3247. .HasComment("物料编码");
  3248. b.Property<string>("fmateriel_type")
  3249. .HasMaxLength(255)
  3250. .HasColumnType("varchar(255)")
  3251. .HasComment("子项属性");
  3252. b.Property<string>("fmodel")
  3253. .HasMaxLength(100)
  3254. .HasColumnType("varchar(100)")
  3255. .HasComment("物料编码");
  3256. b.Property<decimal?>("fqty_send_back")
  3257. .HasPrecision(20, 10)
  3258. .HasColumnType("decimal(20,10)")
  3259. .HasComment("退料数量");
  3260. b.Property<decimal?>("fqty_supply")
  3261. .HasPrecision(20, 10)
  3262. .HasColumnType("decimal(20,10)")
  3263. .HasComment("补料数量");
  3264. b.Property<long?>("org_id")
  3265. .HasColumnType("bigint")
  3266. .HasComment("组织ID");
  3267. b.Property<string>("prdsm_breason")
  3268. .HasMaxLength(500)
  3269. .HasColumnType("varchar(500)")
  3270. .HasComment("退料原因");
  3271. b.Property<long>("prdsm_id")
  3272. .HasColumnType("bigint")
  3273. .HasComment("发料单id");
  3274. b.Property<decimal?>("prdsml_cqtyper")
  3275. .HasPrecision(20, 10)
  3276. .HasColumnType("decimal(20,10)")
  3277. .HasComment("确认单位数量");
  3278. b.Property<string>("prdsml_procname")
  3279. .HasMaxLength(80)
  3280. .HasColumnType("varchar(80)")
  3281. .HasComment("工序名称");
  3282. b.Property<string>("prdsml_procno")
  3283. .HasMaxLength(50)
  3284. .HasColumnType("varchar(50)")
  3285. .HasComment("工序编码");
  3286. b.Property<decimal>("prdsml_qtyissued")
  3287. .HasPrecision(20, 10)
  3288. .HasColumnType("decimal(20,10)")
  3289. .HasComment("已发数量");
  3290. b.Property<decimal?>("prdsml_qtyper")
  3291. .HasPrecision(20, 10)
  3292. .HasColumnType("decimal(20,10)")
  3293. .HasComment("单位数量");
  3294. b.Property<decimal?>("prdsml_qtyplan")
  3295. .HasPrecision(20, 10)
  3296. .HasColumnType("decimal(20,10)")
  3297. .HasComment("计划数量");
  3298. b.Property<decimal?>("prdsml_qtyto")
  3299. .HasPrecision(20, 10)
  3300. .HasColumnType("decimal(20,10)")
  3301. .HasComment("应发数量");
  3302. b.Property<string>("prdsml_unit")
  3303. .HasMaxLength(50)
  3304. .HasColumnType("varchar(50)")
  3305. .HasComment("计量单位");
  3306. b.Property<long>("prdsml_whid")
  3307. .HasColumnType("bigint")
  3308. .HasComment("发料仓库id");
  3309. b.Property<string>("prdsml_whname")
  3310. .HasMaxLength(500)
  3311. .HasColumnType("varchar(500)")
  3312. .HasComment("发料仓库名称");
  3313. b.Property<string>("prdsml_whno")
  3314. .HasMaxLength(50)
  3315. .HasColumnType("varchar(50)")
  3316. .HasComment("发料仓库编码");
  3317. b.Property<int?>("prsml_row")
  3318. .HasColumnType("int")
  3319. .HasComment("行号");
  3320. b.Property<DateTime?>("send_date")
  3321. .HasColumnType("datetime")
  3322. .HasComment("计划发料日期");
  3323. b.Property<string>("station")
  3324. .IsRequired()
  3325. .HasMaxLength(255)
  3326. .HasColumnType("varchar(255)")
  3327. .HasComment("工位");
  3328. b.Property<long>("tenant_id")
  3329. .HasColumnType("bigint")
  3330. .HasComment("企业ID");
  3331. b.Property<long?>("update_by")
  3332. .HasColumnType("bigint")
  3333. .HasComment("修改人");
  3334. b.Property<string>("update_by_name")
  3335. .HasMaxLength(50)
  3336. .HasColumnType("varchar(50)")
  3337. .HasComment("修改人名称");
  3338. b.Property<DateTime?>("update_time")
  3339. .HasColumnType("datetime")
  3340. .HasComment("修改时间");
  3341. b.HasKey("prdsml_id");
  3342. b.ToTable("mes_prd_sendmat_list", (string)null);
  3343. b.HasComment("发料单详情");
  3344. });
  3345. modelBuilder.Entity("Bussiness.Model.ProductionProcess.mes_prdlog", b =>
  3346. {
  3347. b.Property<long>("prdlog_id")
  3348. .ValueGeneratedOnAdd()
  3349. .HasColumnType("bigint")
  3350. .HasComment("生产操作日志id");
  3351. b.Property<bool>("IsDeleted")
  3352. .ValueGeneratedOnAdd()
  3353. .HasColumnType("tinyint(1)")
  3354. .HasDefaultValue(false)
  3355. .HasColumnName("IsDeleted")
  3356. .HasComment("删除标识");
  3357. b.Property<long?>("create_by")
  3358. .HasColumnType("bigint")
  3359. .HasComment("创建人id");
  3360. b.Property<string>("create_by_name")
  3361. .HasMaxLength(50)
  3362. .HasColumnType("varchar(50)")
  3363. .HasComment("创建人名称");
  3364. b.Property<DateTime?>("create_time")
  3365. .HasColumnType("datetime")
  3366. .HasComment("创建时间");
  3367. b.Property<long?>("factory_id")
  3368. .HasColumnType("bigint")
  3369. .HasComment("工厂ID");
  3370. b.Property<long?>("org_id")
  3371. .HasColumnType("bigint")
  3372. .HasComment("组织ID");
  3373. b.Property<long?>("prdlog_by_id")
  3374. .HasColumnType("bigint")
  3375. .HasComment("执行人id");
  3376. b.Property<string>("prdlog_by_name")
  3377. .HasMaxLength(80)
  3378. .HasColumnType("varchar(80)")
  3379. .HasComment("执行人姓名");
  3380. b.Property<int>("prdlog_entryid")
  3381. .HasColumnType("int")
  3382. .HasComment("行号");
  3383. b.Property<string>("prdlog_no")
  3384. .IsRequired()
  3385. .HasMaxLength(80)
  3386. .HasColumnType("varchar(80)")
  3387. .HasComment("业务类型");
  3388. b.Property<string>("prdlog_note")
  3389. .HasMaxLength(255)
  3390. .HasColumnType("varchar(255)")
  3391. .HasComment("内容");
  3392. b.Property<DateTime?>("prdlog_time")
  3393. .HasColumnType("datetime")
  3394. .HasComment("执行时间");
  3395. b.Property<string>("prdlog_type")
  3396. .IsRequired()
  3397. .HasMaxLength(50)
  3398. .HasColumnType("varchar(50)")
  3399. .HasComment("业务类型");
  3400. b.Property<long>("tenant_id")
  3401. .HasColumnType("bigint")
  3402. .HasComment("企业ID");
  3403. b.Property<long?>("update_by")
  3404. .HasColumnType("bigint")
  3405. .HasComment("修改人");
  3406. b.Property<string>("update_by_name")
  3407. .HasMaxLength(50)
  3408. .HasColumnType("varchar(50)")
  3409. .HasComment("修改人名称");
  3410. b.Property<DateTime?>("update_time")
  3411. .HasColumnType("datetime")
  3412. .HasComment("修改时间");
  3413. b.HasKey("prdlog_id");
  3414. b.ToTable("mes_prdlog", (string)null);
  3415. b.HasComment("生产操作日志");
  3416. });
  3417. modelBuilder.Entity("Bussiness.Model.ProductionProcess.mes_product_work_time", b =>
  3418. {
  3419. b.Property<long>("id")
  3420. .ValueGeneratedOnAdd()
  3421. .HasColumnType("bigint")
  3422. .HasComment("生产时间记录id");
  3423. b.Property<bool>("IsDeleted")
  3424. .ValueGeneratedOnAdd()
  3425. .HasColumnType("tinyint(1)")
  3426. .HasDefaultValue(false)
  3427. .HasColumnName("IsDeleted")
  3428. .HasComment("删除标识");
  3429. b.Property<string>("card_no")
  3430. .HasMaxLength(255)
  3431. .HasColumnType("varchar(255)")
  3432. .HasComment("卡号");
  3433. b.Property<long?>("create_by")
  3434. .HasColumnType("bigint")
  3435. .HasComment("创建人id");
  3436. b.Property<string>("create_by_name")
  3437. .HasMaxLength(50)
  3438. .HasColumnType("varchar(50)")
  3439. .HasComment("创建人名称");
  3440. b.Property<DateTime?>("create_time")
  3441. .HasColumnType("datetime")
  3442. .HasComment("创建时间");
  3443. b.Property<long?>("factory_id")
  3444. .HasColumnType("bigint")
  3445. .HasComment("工厂ID");
  3446. b.Property<long?>("org_id")
  3447. .HasColumnType("bigint")
  3448. .HasComment("组织ID");
  3449. b.Property<string>("product_line")
  3450. .HasMaxLength(255)
  3451. .HasColumnType("varchar(255)")
  3452. .HasComment("产线");
  3453. b.Property<DateTime?>("start")
  3454. .HasColumnType("datetime")
  3455. .HasComment("开始时间");
  3456. b.Property<DateTime?>("stop")
  3457. .HasColumnType("datetime")
  3458. .HasComment("结束时间");
  3459. b.Property<long>("tenant_id")
  3460. .HasColumnType("bigint")
  3461. .HasComment("企业ID");
  3462. b.Property<long?>("update_by")
  3463. .HasColumnType("bigint")
  3464. .HasComment("修改人");
  3465. b.Property<string>("update_by_name")
  3466. .HasMaxLength(50)
  3467. .HasColumnType("varchar(50)")
  3468. .HasComment("修改人名称");
  3469. b.Property<DateTime?>("update_time")
  3470. .HasColumnType("datetime")
  3471. .HasComment("修改时间");
  3472. b.Property<DateTime?>("work_date")
  3473. .HasColumnType("datetime")
  3474. .HasComment("生产时间记录id");
  3475. b.HasKey("id");
  3476. b.ToTable("mes_product_work_time", (string)null);
  3477. b.HasComment("mo的生产时间记录");
  3478. });
  3479. modelBuilder.Entity("Bussiness.Model.ProductionProcess.mes_stock_enter", b =>
  3480. {
  3481. b.Property<long>("id")
  3482. .ValueGeneratedOnAdd()
  3483. .HasColumnType("bigint")
  3484. .HasComment("入库单id");
  3485. b.Property<bool>("IsDeleted")
  3486. .ValueGeneratedOnAdd()
  3487. .HasColumnType("tinyint(1)")
  3488. .HasDefaultValue(false)
  3489. .HasColumnName("IsDeleted")
  3490. .HasComment("删除标识");
  3491. b.Property<long?>("create_by")
  3492. .HasColumnType("bigint")
  3493. .HasComment("创建人id");
  3494. b.Property<string>("create_by_name")
  3495. .HasMaxLength(50)
  3496. .HasColumnType("varchar(50)")
  3497. .HasComment("创建人名称");
  3498. b.Property<DateTime?>("create_time")
  3499. .HasColumnType("datetime")
  3500. .HasComment("创建时间");
  3501. b.Property<long>("eby")
  3502. .HasColumnType("bigint")
  3503. .HasComment("入库人id");
  3504. b.Property<string>("ebyname")
  3505. .IsRequired()
  3506. .HasMaxLength(80)
  3507. .HasColumnType("varchar(80)")
  3508. .HasComment("入库人姓名");
  3509. b.Property<DateTime>("edate")
  3510. .HasColumnType("datetime")
  3511. .HasComment("入库日期");
  3512. b.Property<int>("eqty")
  3513. .HasColumnType("int")
  3514. .HasComment("入库数量");
  3515. b.Property<long?>("factory_id")
  3516. .HasColumnType("bigint")
  3517. .HasComment("工厂ID");
  3518. b.Property<string>("ffull_name")
  3519. .HasMaxLength(255)
  3520. .HasColumnType("varchar(255)")
  3521. .HasComment("全名");
  3522. b.Property<string>("fitem_name")
  3523. .HasMaxLength(255)
  3524. .HasColumnType("varchar(255)")
  3525. .HasComment("物料名称");
  3526. b.Property<string>("fitem_number")
  3527. .HasMaxLength(255)
  3528. .HasColumnType("varchar(255)")
  3529. .HasComment("物料编码");
  3530. b.Property<string>("fmodel")
  3531. .HasMaxLength(255)
  3532. .HasColumnType("varchar(255)")
  3533. .HasComment("规格型号");
  3534. b.Property<string>("order_no")
  3535. .HasMaxLength(80)
  3536. .HasColumnType("varchar(80)")
  3537. .HasComment("工单号");
  3538. b.Property<long?>("org_id")
  3539. .HasColumnType("bigint")
  3540. .HasComment("组织ID");
  3541. b.Property<long>("tenant_id")
  3542. .HasColumnType("bigint")
  3543. .HasComment("企业ID");
  3544. b.Property<long?>("update_by")
  3545. .HasColumnType("bigint")
  3546. .HasComment("修改人");
  3547. b.Property<string>("update_by_name")
  3548. .HasMaxLength(50)
  3549. .HasColumnType("varchar(50)")
  3550. .HasComment("修改人名称");
  3551. b.Property<DateTime?>("update_time")
  3552. .HasColumnType("datetime")
  3553. .HasComment("修改时间");
  3554. b.HasKey("id");
  3555. b.ToTable("mes_stock_enter", (string)null);
  3556. b.HasComment("入库单");
  3557. });
  3558. modelBuilder.Entity("Bussiness.Model.ProductionProcess.mes_stock_out", b =>
  3559. {
  3560. b.Property<long>("id")
  3561. .ValueGeneratedOnAdd()
  3562. .HasColumnType("bigint")
  3563. .HasComment("出库单Id");
  3564. b.Property<bool>("IsDeleted")
  3565. .ValueGeneratedOnAdd()
  3566. .HasColumnType("tinyint(1)")
  3567. .HasDefaultValue(false)
  3568. .HasColumnName("IsDeleted")
  3569. .HasComment("删除标识");
  3570. b.Property<long?>("create_by")
  3571. .HasColumnType("bigint")
  3572. .HasComment("创建人id");
  3573. b.Property<string>("create_by_name")
  3574. .HasMaxLength(50)
  3575. .HasColumnType("varchar(50)")
  3576. .HasComment("创建人名称");
  3577. b.Property<DateTime?>("create_time")
  3578. .HasColumnType("datetime")
  3579. .HasComment("创建时间");
  3580. b.Property<long>("eby")
  3581. .HasColumnType("bigint")
  3582. .HasComment("出库人id");
  3583. b.Property<string>("eby_name")
  3584. .IsRequired()
  3585. .HasMaxLength(80)
  3586. .HasColumnType("varchar(80)")
  3587. .HasComment("出库人姓名");
  3588. b.Property<DateTime>("edate")
  3589. .HasColumnType("datetime")
  3590. .HasComment("出库日期");
  3591. b.Property<int>("eqty")
  3592. .HasColumnType("int")
  3593. .HasComment("出库数量");
  3594. b.Property<long?>("factory_id")
  3595. .HasColumnType("bigint")
  3596. .HasComment("工厂ID");
  3597. b.Property<string>("ffull_name")
  3598. .HasMaxLength(255)
  3599. .HasColumnType("varchar(255)")
  3600. .HasComment("全名");
  3601. b.Property<string>("fitem_name")
  3602. .IsRequired()
  3603. .HasMaxLength(255)
  3604. .HasColumnType("varchar(255)")
  3605. .HasComment("物料名称");
  3606. b.Property<string>("fitem_number")
  3607. .HasMaxLength(80)
  3608. .HasColumnType("varchar(80)")
  3609. .HasComment("物料编码");
  3610. b.Property<string>("fmodel")
  3611. .HasMaxLength(255)
  3612. .HasColumnType("varchar(255)")
  3613. .HasComment("规格型号");
  3614. b.Property<string>("order_no")
  3615. .IsRequired()
  3616. .HasMaxLength(80)
  3617. .HasColumnType("varchar(80)")
  3618. .HasComment("销售订单号");
  3619. b.Property<int?>("order_number")
  3620. .HasColumnType("int")
  3621. .HasComment("订单行号");
  3622. b.Property<long?>("org_id")
  3623. .HasColumnType("bigint")
  3624. .HasComment("组织ID");
  3625. b.Property<string>("out_no")
  3626. .IsRequired()
  3627. .HasMaxLength(80)
  3628. .HasColumnType("varchar(80)")
  3629. .HasComment("出库单号");
  3630. b.Property<string>("shipn_no")
  3631. .HasMaxLength(80)
  3632. .HasColumnType("varchar(80)")
  3633. .HasComment("发运通知单号");
  3634. b.Property<string>("stock_name")
  3635. .HasMaxLength(255)
  3636. .HasColumnType("varchar(255)")
  3637. .HasComment("仓库名称");
  3638. b.Property<string>("stock_no")
  3639. .HasMaxLength(255)
  3640. .HasColumnType("varchar(255)")
  3641. .HasComment("仓库编码");
  3642. b.Property<long>("tenant_id")
  3643. .HasColumnType("bigint")
  3644. .HasComment("企业ID");
  3645. b.Property<string>("unit")
  3646. .HasMaxLength(80)
  3647. .HasColumnType("varchar(80)")
  3648. .HasComment("计量单位");
  3649. b.Property<long?>("update_by")
  3650. .HasColumnType("bigint")
  3651. .HasComment("修改人");
  3652. b.Property<string>("update_by_name")
  3653. .HasMaxLength(50)
  3654. .HasColumnType("varchar(50)")
  3655. .HasComment("修改人名称");
  3656. b.Property<DateTime?>("update_time")
  3657. .HasColumnType("datetime")
  3658. .HasComment("修改时间");
  3659. b.HasKey("id");
  3660. b.ToTable("mes_stock_out", (string)null);
  3661. b.HasComment("出库单");
  3662. });
  3663. modelBuilder.Entity("Bussiness.Model.ProductionProcess.mes_swipe_card", b =>
  3664. {
  3665. b.Property<long>("id")
  3666. .ValueGeneratedOnAdd()
  3667. .HasColumnType("bigint")
  3668. .HasComment("mes打卡记录id");
  3669. b.Property<string>("card_no")
  3670. .IsRequired()
  3671. .HasMaxLength(80)
  3672. .HasColumnType("varchar(80)")
  3673. .HasComment("卡号");
  3674. b.Property<DateTime?>("off_line_time")
  3675. .HasColumnType("datetime")
  3676. .HasComment("下线时间");
  3677. b.Property<string>("order_no")
  3678. .HasMaxLength(50)
  3679. .HasColumnType("varchar(50)")
  3680. .HasComment("工单编号");
  3681. b.Property<string>("product_line")
  3682. .IsRequired()
  3683. .HasMaxLength(255)
  3684. .HasColumnType("varchar(255)")
  3685. .HasComment("生产产线");
  3686. b.Property<string>("product_org")
  3687. .IsRequired()
  3688. .HasMaxLength(255)
  3689. .HasColumnType("varchar(255)")
  3690. .HasComment("生产车间");
  3691. b.Property<DateTime>("swipe_date")
  3692. .HasColumnType("datetime")
  3693. .HasComment("刷卡日期");
  3694. b.Property<int>("type")
  3695. .HasColumnType("int")
  3696. .HasComment("刷卡类型");
  3697. b.Property<DateTime?>("up_line_time")
  3698. .HasColumnType("datetime")
  3699. .HasComment("上线时间");
  3700. b.HasKey("id");
  3701. b.ToTable("mes_swipe_card", (string)null);
  3702. b.HasComment("mes打卡记录表");
  3703. });
  3704. modelBuilder.Entity("Bussiness.Model.SystemData.sim_base", b =>
  3705. {
  3706. b.Property<long>("sim_id")
  3707. .ValueGeneratedOnAdd()
  3708. .HasColumnType("bigint")
  3709. .HasComment("主键id");
  3710. b.Property<bool>("IsDeleted")
  3711. .ValueGeneratedOnAdd()
  3712. .HasColumnType("tinyint(1)")
  3713. .HasDefaultValue(false)
  3714. .HasColumnName("IsDeleted")
  3715. .HasComment("删除标识");
  3716. b.Property<long?>("create_by")
  3717. .HasColumnType("bigint")
  3718. .HasComment("创建人id");
  3719. b.Property<string>("create_by_name")
  3720. .HasMaxLength(50)
  3721. .HasColumnType("varchar(50)")
  3722. .HasComment("创建人名称");
  3723. b.Property<DateTime?>("create_time")
  3724. .HasColumnType("datetime")
  3725. .HasComment("创建时间");
  3726. b.Property<long?>("factory_id")
  3727. .HasColumnType("bigint")
  3728. .HasComment("工厂ID");
  3729. b.Property<decimal?>("interval_days")
  3730. .HasPrecision(10)
  3731. .HasColumnType("decimal(10,0)")
  3732. .HasComment("间隔天数");
  3733. b.Property<long?>("org_id")
  3734. .HasColumnType("bigint")
  3735. .HasComment("组织ID");
  3736. b.Property<decimal?>("rise_cycle")
  3737. .HasPrecision(10)
  3738. .HasColumnType("decimal(10,0)")
  3739. .HasComment("上升周期");
  3740. b.Property<DateTime?>("rise_time")
  3741. .HasColumnType("datetime")
  3742. .HasComment("上升时间");
  3743. b.Property<string>("sim_grade")
  3744. .HasMaxLength(255)
  3745. .HasColumnType("varchar(255)")
  3746. .HasComment("sim等级");
  3747. b.Property<int?>("sim_level")
  3748. .HasColumnType("int")
  3749. .HasComment("sim层级顺序");
  3750. b.Property<long>("tenant_id")
  3751. .HasColumnType("bigint")
  3752. .HasComment("企业ID");
  3753. b.Property<long?>("update_by")
  3754. .HasColumnType("bigint")
  3755. .HasComment("修改人");
  3756. b.Property<string>("update_by_name")
  3757. .HasMaxLength(50)
  3758. .HasColumnType("varchar(50)")
  3759. .HasComment("修改人名称");
  3760. b.Property<DateTime?>("update_time")
  3761. .HasColumnType("datetime")
  3762. .HasComment("修改时间");
  3763. b.HasKey("sim_id");
  3764. b.ToTable("sim_base", (string)null);
  3765. b.HasComment("sim基本表");
  3766. });
  3767. modelBuilder.Entity("Bussiness.Model.SystemData.sim_issue_type", b =>
  3768. {
  3769. b.Property<long>("issue_type_id")
  3770. .ValueGeneratedOnAdd()
  3771. .HasColumnType("bigint")
  3772. .HasComment("上升时间");
  3773. b.Property<bool>("IsDeleted")
  3774. .ValueGeneratedOnAdd()
  3775. .HasColumnType("tinyint(1)")
  3776. .HasDefaultValue(false)
  3777. .HasColumnName("IsDeleted")
  3778. .HasComment("删除标识");
  3779. b.Property<string>("app_scenario")
  3780. .HasMaxLength(255)
  3781. .HasColumnType("varchar(255)")
  3782. .HasComment("应用场景");
  3783. b.Property<long?>("create_by")
  3784. .HasColumnType("bigint")
  3785. .HasComment("创建人id");
  3786. b.Property<string>("create_by_name")
  3787. .HasMaxLength(50)
  3788. .HasColumnType("varchar(50)")
  3789. .HasComment("创建人名称");
  3790. b.Property<DateTime?>("create_time")
  3791. .HasColumnType("datetime")
  3792. .HasComment("创建时间");
  3793. b.Property<long?>("duty_dept")
  3794. .HasColumnType("bigint")
  3795. .HasComment("责任部门id");
  3796. b.Property<string>("duty_person")
  3797. .HasMaxLength(255)
  3798. .HasColumnType("varchar(255)")
  3799. .HasComment("责任人");
  3800. b.Property<long?>("factory_id")
  3801. .HasColumnType("bigint")
  3802. .HasComment("工厂ID");
  3803. b.Property<string>("issue_grade")
  3804. .HasMaxLength(255)
  3805. .HasColumnType("varchar(255)")
  3806. .HasComment("问题等级");
  3807. b.Property<long?>("org_id")
  3808. .HasColumnType("bigint")
  3809. .HasComment("组织ID");
  3810. b.Property<long>("tenant_id")
  3811. .HasColumnType("bigint")
  3812. .HasComment("企业ID");
  3813. b.Property<string>("type_code")
  3814. .HasMaxLength(255)
  3815. .HasColumnType("varchar(255)")
  3816. .HasComment("类别代码");
  3817. b.Property<string>("type_name")
  3818. .HasMaxLength(255)
  3819. .HasColumnType("varchar(255)")
  3820. .HasComment("类别名称");
  3821. b.Property<long?>("update_by")
  3822. .HasColumnType("bigint")
  3823. .HasComment("修改人");
  3824. b.Property<string>("update_by_name")
  3825. .HasMaxLength(50)
  3826. .HasColumnType("varchar(50)")
  3827. .HasComment("修改人名称");
  3828. b.Property<DateTime?>("update_time")
  3829. .HasColumnType("datetime")
  3830. .HasComment("修改时间");
  3831. b.HasKey("issue_type_id");
  3832. b.ToTable("sim_issue_type", (string)null);
  3833. b.HasComment("sim事项类别表");
  3834. });
  3835. modelBuilder.Entity("Bussiness.Model.SystemData.sim_plant", b =>
  3836. {
  3837. b.Property<long>("plant_id")
  3838. .ValueGeneratedOnAdd()
  3839. .HasColumnType("bigint")
  3840. .HasComment("主键id");
  3841. b.Property<bool>("IsDeleted")
  3842. .ValueGeneratedOnAdd()
  3843. .HasColumnType("tinyint(1)")
  3844. .HasDefaultValue(false)
  3845. .HasColumnName("IsDeleted")
  3846. .HasComment("删除标识");
  3847. b.Property<long?>("create_by")
  3848. .HasColumnType("bigint")
  3849. .HasComment("创建人id");
  3850. b.Property<string>("create_by_name")
  3851. .HasMaxLength(50)
  3852. .HasColumnType("varchar(50)")
  3853. .HasComment("创建人名称");
  3854. b.Property<DateTime?>("create_time")
  3855. .HasColumnType("datetime")
  3856. .HasComment("创建时间");
  3857. b.Property<long?>("factory_id")
  3858. .HasColumnType("bigint")
  3859. .HasComment("工厂ID");
  3860. b.Property<long?>("org_id")
  3861. .HasColumnType("bigint")
  3862. .HasComment("组织ID");
  3863. b.Property<string>("plant_name")
  3864. .HasMaxLength(255)
  3865. .HasColumnType("varchar(255)")
  3866. .HasComment("事项名称");
  3867. b.Property<long>("tenant_id")
  3868. .HasColumnType("bigint")
  3869. .HasComment("企业ID");
  3870. b.Property<long?>("update_by")
  3871. .HasColumnType("bigint")
  3872. .HasComment("修改人");
  3873. b.Property<string>("update_by_name")
  3874. .HasMaxLength(50)
  3875. .HasColumnType("varchar(50)")
  3876. .HasComment("修改人名称");
  3877. b.Property<DateTime?>("update_time")
  3878. .HasColumnType("datetime")
  3879. .HasComment("修改时间");
  3880. b.HasKey("plant_id");
  3881. b.ToTable("sim_plant", (string)null);
  3882. b.HasComment("sim事项表");
  3883. });
  3884. modelBuilder.Entity("Bussiness.Model.SystemData.sim_user_relation", b =>
  3885. {
  3886. b.Property<long>("id")
  3887. .ValueGeneratedOnAdd()
  3888. .HasColumnType("bigint")
  3889. .HasComment("主键id");
  3890. b.Property<bool>("IsDeleted")
  3891. .ValueGeneratedOnAdd()
  3892. .HasColumnType("tinyint(1)")
  3893. .HasDefaultValue(false)
  3894. .HasColumnName("IsDeleted")
  3895. .HasComment("删除标识");
  3896. b.Property<long?>("create_by")
  3897. .HasColumnType("bigint")
  3898. .HasComment("创建人id");
  3899. b.Property<string>("create_by_name")
  3900. .HasMaxLength(50)
  3901. .HasColumnType("varchar(50)")
  3902. .HasComment("创建人名称");
  3903. b.Property<DateTime?>("create_time")
  3904. .HasColumnType("datetime")
  3905. .HasComment("创建时间");
  3906. b.Property<long?>("factory_id")
  3907. .HasColumnType("bigint")
  3908. .HasComment("工厂ID");
  3909. b.Property<long?>("org_id")
  3910. .HasColumnType("bigint")
  3911. .HasComment("组织ID");
  3912. b.Property<long>("sim_id")
  3913. .HasColumnType("bigint")
  3914. .HasComment("base_sim表ID");
  3915. b.Property<long>("tenant_id")
  3916. .HasColumnType("bigint")
  3917. .HasComment("企业ID");
  3918. b.Property<long?>("update_by")
  3919. .HasColumnType("bigint")
  3920. .HasComment("修改人");
  3921. b.Property<string>("update_by_name")
  3922. .HasMaxLength(50)
  3923. .HasColumnType("varchar(50)")
  3924. .HasComment("修改人名称");
  3925. b.Property<DateTime?>("update_time")
  3926. .HasColumnType("datetime")
  3927. .HasComment("修改时间");
  3928. b.Property<long>("user_id")
  3929. .HasColumnType("bigint")
  3930. .HasComment("用户id");
  3931. b.HasKey("id");
  3932. b.ToTable("sim_user_relation", (string)null);
  3933. b.HasComment("sim用户关联表");
  3934. });
  3935. modelBuilder.Entity("Bussiness.Model.SystemData.sys_code", b =>
  3936. {
  3937. b.Property<long>("sys_code_id")
  3938. .ValueGeneratedOnAdd()
  3939. .HasColumnType("bigint")
  3940. .HasComment("主键id");
  3941. b.Property<string>("chinese_name")
  3942. .HasMaxLength(255)
  3943. .HasColumnType("varchar(255)")
  3944. .HasComment("中文注释");
  3945. b.Property<DateTime?>("code_date")
  3946. .IsRequired()
  3947. .HasColumnType("datetime")
  3948. .HasComment("编码生成时间");
  3949. b.Property<string>("code_name")
  3950. .IsRequired()
  3951. .HasMaxLength(50)
  3952. .HasColumnType("varchar(50)")
  3953. .HasComment("编码生成名称");
  3954. b.Property<string>("code_rule")
  3955. .IsRequired()
  3956. .HasMaxLength(50)
  3957. .HasColumnType("varchar(50)")
  3958. .HasComment("编码生成规则");
  3959. b.Property<long>("code_value")
  3960. .HasColumnType("bigint")
  3961. .HasComment("编码生成当前值");
  3962. b.HasKey("sys_code_id");
  3963. b.ToTable("sys_code", (string)null);
  3964. b.HasComment("系统编码表");
  3965. });
  3966. modelBuilder.Entity("Bussiness.Model.SystemData.sys_code_pre", b =>
  3967. {
  3968. b.Property<long>("id")
  3969. .ValueGeneratedOnAdd()
  3970. .HasColumnType("bigint")
  3971. .HasComment("主键id");
  3972. b.Property<DateTime>("code_date")
  3973. .HasColumnType("datetime")
  3974. .HasComment("编码生成时间");
  3975. b.Property<string>("code_name")
  3976. .IsRequired()
  3977. .HasMaxLength(50)
  3978. .HasColumnType("varchar(50)")
  3979. .HasComment("编码生成名称");
  3980. b.Property<long>("code_value")
  3981. .HasColumnType("bigint")
  3982. .HasComment("编码生成当前值");
  3983. b.Property<string>("pre_name")
  3984. .IsRequired()
  3985. .HasMaxLength(50)
  3986. .HasColumnType("varchar(50)")
  3987. .HasComment("编码生成前置名称");
  3988. b.HasKey("id");
  3989. b.ToTable("sys_code_pre", (string)null);
  3990. b.HasComment("系统编码前置表");
  3991. });
  3992. modelBuilder.Entity("Bussiness.Model.SystemData.sys_config", b =>
  3993. {
  3994. b.Property<long>("config_id")
  3995. .ValueGeneratedOnAdd()
  3996. .HasColumnType("bigint")
  3997. .HasComment("主键id");
  3998. b.Property<bool>("financeis_close")
  3999. .HasColumnType("tinyint(1)")
  4000. .HasComment("账务状态(0-关帐,1-开帐)");
  4001. b.Property<bool>("is_show")
  4002. .HasColumnType("tinyint(1)")
  4003. .HasComment("是否显示(0不显示、1显示)");
  4004. b.Property<DateTime?>("next_open_date")
  4005. .HasColumnType("datetime")
  4006. .HasComment("下一个开帐日期");
  4007. b.Property<string>("type")
  4008. .IsRequired()
  4009. .HasMaxLength(50)
  4010. .HasColumnType("varchar(50)")
  4011. .HasComment("配置类型");
  4012. b.HasKey("config_id");
  4013. b.ToTable("sys_config", (string)null);
  4014. b.HasComment("系统配置表");
  4015. });
  4016. modelBuilder.Entity("Bussiness.Model.SystemData.sys_measure_unit", b =>
  4017. {
  4018. b.Property<long>("unit_id")
  4019. .ValueGeneratedOnAdd()
  4020. .HasColumnType("bigint")
  4021. .HasComment("主键id");
  4022. b.Property<bool>("is_standard")
  4023. .HasColumnType("tinyint(1)")
  4024. .HasComment("是否是标准单位0-否,1是");
  4025. b.Property<bool>("status")
  4026. .HasColumnType("tinyint(1)")
  4027. .HasComment("状态:0-无效,1-有效");
  4028. b.Property<string>("unit_code")
  4029. .HasMaxLength(50)
  4030. .HasColumnType("varchar(50)")
  4031. .HasComment("单位编码");
  4032. b.Property<string>("unit_name")
  4033. .HasMaxLength(50)
  4034. .HasColumnType("varchar(50)")
  4035. .HasComment("单位名称");
  4036. b.HasKey("unit_id");
  4037. b.ToTable("sys_measure_unit", (string)null);
  4038. b.HasComment("计量单位表");
  4039. });
  4040. modelBuilder.Entity("Bussiness.Model.SystemData.sys_post", b =>
  4041. {
  4042. b.Property<long>("post_id")
  4043. .ValueGeneratedOnAdd()
  4044. .HasColumnType("bigint")
  4045. .HasComment("主键id");
  4046. b.Property<bool>("IsDeleted")
  4047. .ValueGeneratedOnAdd()
  4048. .HasColumnType("tinyint(1)")
  4049. .HasDefaultValue(false)
  4050. .HasColumnName("IsDeleted")
  4051. .HasComment("删除标识");
  4052. b.Property<long?>("create_by")
  4053. .HasColumnType("bigint")
  4054. .HasComment("创建人id");
  4055. b.Property<string>("create_by_name")
  4056. .HasMaxLength(50)
  4057. .HasColumnType("varchar(50)")
  4058. .HasComment("创建人名称");
  4059. b.Property<DateTime?>("create_time")
  4060. .HasColumnType("datetime")
  4061. .HasComment("创建时间");
  4062. b.Property<long?>("dept_id")
  4063. .HasColumnType("bigint")
  4064. .HasComment("部门id");
  4065. b.Property<long?>("factory_id")
  4066. .HasColumnType("bigint")
  4067. .HasComment("工厂ID");
  4068. b.Property<long?>("org_id")
  4069. .HasColumnType("bigint")
  4070. .HasComment("组织ID");
  4071. b.Property<long?>("parent_id")
  4072. .HasColumnType("bigint")
  4073. .HasComment("上级岗位");
  4074. b.Property<string>("post_code")
  4075. .HasMaxLength(50)
  4076. .HasColumnType("varchar(50)")
  4077. .HasComment("岗位编码");
  4078. b.Property<int?>("post_level")
  4079. .HasColumnType("int")
  4080. .HasComment("岗位级别");
  4081. b.Property<string>("post_name")
  4082. .HasMaxLength(255)
  4083. .HasColumnType("varchar(255)")
  4084. .HasComment("岗位名称");
  4085. b.Property<string>("post_path")
  4086. .HasMaxLength(255)
  4087. .HasColumnType("varchar(255)")
  4088. .HasComment("岗位路径");
  4089. b.Property<string>("post_remark")
  4090. .HasMaxLength(255)
  4091. .HasColumnType("varchar(255)")
  4092. .HasComment("岗位备注");
  4093. b.Property<int?>("post_sort")
  4094. .HasColumnType("int")
  4095. .HasComment("岗位排序");
  4096. b.Property<bool>("state")
  4097. .HasMaxLength(255)
  4098. .HasColumnType("tinyint(255)")
  4099. .HasComment("数据状态标识 1启用 -1停用");
  4100. b.Property<long>("tenant_id")
  4101. .HasColumnType("bigint")
  4102. .HasComment("企业ID");
  4103. b.Property<long?>("update_by")
  4104. .HasColumnType("bigint")
  4105. .HasComment("修改人");
  4106. b.Property<string>("update_by_name")
  4107. .HasMaxLength(50)
  4108. .HasColumnType("varchar(50)")
  4109. .HasComment("修改人名称");
  4110. b.Property<DateTime?>("update_time")
  4111. .HasColumnType("datetime")
  4112. .HasComment("修改时间");
  4113. b.HasKey("post_id");
  4114. b.ToTable("sys_post", (string)null);
  4115. b.HasComment("岗位表");
  4116. });
  4117. modelBuilder.Entity("Bussiness.Model.SystemData.sys_post_staff", b =>
  4118. {
  4119. b.Property<long>("id")
  4120. .ValueGeneratedOnAdd()
  4121. .HasColumnType("bigint")
  4122. .HasComment("主键id");
  4123. b.Property<bool>("IsDeleted")
  4124. .ValueGeneratedOnAdd()
  4125. .HasColumnType("tinyint(1)")
  4126. .HasDefaultValue(false)
  4127. .HasColumnName("IsDeleted")
  4128. .HasComment("删除标识");
  4129. b.Property<long?>("create_by")
  4130. .HasColumnType("bigint")
  4131. .HasComment("创建人id");
  4132. b.Property<string>("create_by_name")
  4133. .HasMaxLength(50)
  4134. .HasColumnType("varchar(50)")
  4135. .HasComment("创建人名称");
  4136. b.Property<DateTime?>("create_time")
  4137. .HasColumnType("datetime")
  4138. .HasComment("创建时间");
  4139. b.Property<long?>("factory_id")
  4140. .HasColumnType("bigint")
  4141. .HasComment("工厂ID");
  4142. b.Property<long?>("org_id")
  4143. .HasColumnType("bigint")
  4144. .HasComment("组织ID");
  4145. b.Property<long>("post_id")
  4146. .HasColumnType("bigint")
  4147. .HasComment("岗位id");
  4148. b.Property<long>("staff_id")
  4149. .HasColumnType("bigint")
  4150. .HasComment("员工id");
  4151. b.Property<long>("tenant_id")
  4152. .HasColumnType("bigint")
  4153. .HasComment("企业ID");
  4154. b.Property<long?>("update_by")
  4155. .HasColumnType("bigint")
  4156. .HasComment("修改人");
  4157. b.Property<string>("update_by_name")
  4158. .HasMaxLength(50)
  4159. .HasColumnType("varchar(50)")
  4160. .HasComment("修改人名称");
  4161. b.Property<DateTime?>("update_time")
  4162. .HasColumnType("datetime")
  4163. .HasComment("修改时间");
  4164. b.HasKey("id");
  4165. b.ToTable("sys_post_staff", (string)null);
  4166. b.HasComment("员工岗位关联表");
  4167. });
  4168. modelBuilder.Entity("Bussiness.Model.SystemData.sys_shift", b =>
  4169. {
  4170. b.Property<long>("shift_id")
  4171. .ValueGeneratedOnAdd()
  4172. .HasColumnType("bigint")
  4173. .HasComment("主键id");
  4174. b.Property<bool>("IsDeleted")
  4175. .ValueGeneratedOnAdd()
  4176. .HasColumnType("tinyint(1)")
  4177. .HasDefaultValue(false)
  4178. .HasColumnName("IsDeleted")
  4179. .HasComment("删除标识");
  4180. b.Property<long?>("create_by")
  4181. .HasColumnType("bigint")
  4182. .HasComment("创建人id");
  4183. b.Property<string>("create_by_name")
  4184. .HasMaxLength(50)
  4185. .HasColumnType("varchar(50)")
  4186. .HasComment("创建人名称");
  4187. b.Property<DateTime?>("create_time")
  4188. .HasColumnType("datetime")
  4189. .HasComment("创建时间");
  4190. b.Property<long?>("factory_id")
  4191. .HasColumnType("bigint")
  4192. .HasComment("工厂ID");
  4193. b.Property<bool>("is_across")
  4194. .HasColumnType("tinyint(1)")
  4195. .HasComment("岗位id");
  4196. b.Property<long?>("org_id")
  4197. .HasColumnType("bigint")
  4198. .HasComment("组织ID");
  4199. b.Property<string>("remark")
  4200. .HasMaxLength(255)
  4201. .HasColumnType("varchar(255)")
  4202. .HasComment("备注");
  4203. b.Property<string>("shift_name")
  4204. .HasMaxLength(255)
  4205. .HasColumnType("varchar(255)")
  4206. .HasComment("班制名称");
  4207. b.Property<string>("shift_no")
  4208. .HasMaxLength(50)
  4209. .HasColumnType("varchar(50)")
  4210. .HasComment("班制编码");
  4211. b.Property<bool>("state")
  4212. .HasColumnType("tinyint(1)")
  4213. .HasComment("数据状态标识 1启用 0停用");
  4214. b.Property<long>("tenant_id")
  4215. .HasColumnType("bigint")
  4216. .HasComment("企业ID");
  4217. b.Property<long?>("update_by")
  4218. .HasColumnType("bigint")
  4219. .HasComment("修改人");
  4220. b.Property<string>("update_by_name")
  4221. .HasMaxLength(50)
  4222. .HasColumnType("varchar(50)")
  4223. .HasComment("修改人名称");
  4224. b.Property<DateTime?>("update_time")
  4225. .HasColumnType("datetime")
  4226. .HasComment("修改时间");
  4227. b.Property<int?>("validate_hours")
  4228. .HasColumnType("int")
  4229. .HasComment("有效时长");
  4230. b.HasKey("shift_id");
  4231. b.ToTable("sys_shift", (string)null);
  4232. b.HasComment("班制表");
  4233. });
  4234. modelBuilder.Entity("Bussiness.Model.SystemData.sys_shift_invalid_time", b =>
  4235. {
  4236. b.Property<long>("invalid_time_id")
  4237. .ValueGeneratedOnAdd()
  4238. .HasColumnType("bigint")
  4239. .HasComment("数据状态标识 1启用 0停用");
  4240. b.Property<bool>("IsDeleted")
  4241. .ValueGeneratedOnAdd()
  4242. .HasColumnType("tinyint(1)")
  4243. .HasDefaultValue(false)
  4244. .HasColumnName("IsDeleted")
  4245. .HasComment("删除标识");
  4246. b.Property<long?>("create_by")
  4247. .HasColumnType("bigint")
  4248. .HasComment("创建人id");
  4249. b.Property<string>("create_by_name")
  4250. .HasMaxLength(50)
  4251. .HasColumnType("varchar(50)")
  4252. .HasComment("创建人名称");
  4253. b.Property<DateTime?>("create_time")
  4254. .HasColumnType("datetime")
  4255. .HasComment("创建时间");
  4256. b.Property<DateTime>("end_time")
  4257. .HasColumnType("datetime")
  4258. .HasComment("结束时间");
  4259. b.Property<long?>("factory_id")
  4260. .HasColumnType("bigint")
  4261. .HasComment("工厂ID");
  4262. b.Property<long?>("org_id")
  4263. .HasColumnType("bigint")
  4264. .HasComment("组织ID");
  4265. b.Property<long>("slice_id")
  4266. .HasColumnType("bigint")
  4267. .HasComment("班次id");
  4268. b.Property<DateTime>("start_time")
  4269. .HasColumnType("datetime")
  4270. .HasComment("开始时间");
  4271. b.Property<long>("tenant_id")
  4272. .HasColumnType("bigint")
  4273. .HasComment("企业ID");
  4274. b.Property<long?>("update_by")
  4275. .HasColumnType("bigint")
  4276. .HasComment("修改人");
  4277. b.Property<string>("update_by_name")
  4278. .HasMaxLength(50)
  4279. .HasColumnType("varchar(50)")
  4280. .HasComment("修改人名称");
  4281. b.Property<DateTime?>("update_time")
  4282. .HasColumnType("datetime")
  4283. .HasComment("修改时间");
  4284. b.HasKey("invalid_time_id");
  4285. b.ToTable("sys_shift_invalid_time", (string)null);
  4286. b.HasComment("班次无效时间表");
  4287. });
  4288. modelBuilder.Entity("Bussiness.Model.SystemData.sys_shift_shiftslice", b =>
  4289. {
  4290. b.Property<long>("id")
  4291. .ValueGeneratedOnAdd()
  4292. .HasColumnType("bigint")
  4293. .HasComment("主键id");
  4294. b.Property<bool>("IsDeleted")
  4295. .ValueGeneratedOnAdd()
  4296. .HasColumnType("tinyint(1)")
  4297. .HasDefaultValue(false)
  4298. .HasColumnName("IsDeleted")
  4299. .HasComment("删除标识");
  4300. b.Property<long?>("create_by")
  4301. .HasColumnType("bigint")
  4302. .HasComment("创建人id");
  4303. b.Property<string>("create_by_name")
  4304. .HasMaxLength(50)
  4305. .HasColumnType("varchar(50)")
  4306. .HasComment("创建人名称");
  4307. b.Property<DateTime?>("create_time")
  4308. .HasColumnType("datetime")
  4309. .HasComment("创建时间");
  4310. b.Property<long?>("factory_id")
  4311. .HasColumnType("bigint")
  4312. .HasComment("工厂ID");
  4313. b.Property<long?>("org_id")
  4314. .HasColumnType("bigint")
  4315. .HasComment("组织ID");
  4316. b.Property<long>("shift_id")
  4317. .HasMaxLength(50)
  4318. .HasColumnType("bigint")
  4319. .HasComment("班制id");
  4320. b.Property<long>("slice_id")
  4321. .HasMaxLength(255)
  4322. .HasColumnType("bigint")
  4323. .HasComment("班次id");
  4324. b.Property<long>("tenant_id")
  4325. .HasColumnType("bigint")
  4326. .HasComment("企业ID");
  4327. b.Property<long?>("update_by")
  4328. .HasColumnType("bigint")
  4329. .HasComment("修改人");
  4330. b.Property<string>("update_by_name")
  4331. .HasMaxLength(50)
  4332. .HasColumnType("varchar(50)")
  4333. .HasComment("修改人名称");
  4334. b.Property<DateTime?>("update_time")
  4335. .HasColumnType("datetime")
  4336. .HasComment("修改时间");
  4337. b.HasKey("id");
  4338. b.ToTable("sys_shift_shiftslice", (string)null);
  4339. b.HasComment("班制班次关联表");
  4340. });
  4341. modelBuilder.Entity("Bussiness.Model.SystemData.sys_shiftslice", b =>
  4342. {
  4343. b.Property<long>("slice_id")
  4344. .ValueGeneratedOnAdd()
  4345. .HasColumnType("bigint")
  4346. .HasComment("班制班次关联表");
  4347. b.Property<bool>("IsDeleted")
  4348. .ValueGeneratedOnAdd()
  4349. .HasColumnType("tinyint(1)")
  4350. .HasDefaultValue(false)
  4351. .HasColumnName("IsDeleted")
  4352. .HasComment("删除标识");
  4353. b.Property<long?>("create_by")
  4354. .HasColumnType("bigint")
  4355. .HasComment("创建人id");
  4356. b.Property<string>("create_by_name")
  4357. .HasMaxLength(50)
  4358. .HasColumnType("varchar(50)")
  4359. .HasComment("创建人名称");
  4360. b.Property<DateTime?>("create_time")
  4361. .HasColumnType("datetime")
  4362. .HasComment("创建时间");
  4363. b.Property<long?>("factory_id")
  4364. .HasColumnType("bigint")
  4365. .HasComment("工厂ID");
  4366. b.Property<bool>("is_across")
  4367. .HasColumnType("tinyint(1)")
  4368. .HasComment("是否跨天 1是 0否");
  4369. b.Property<long?>("org_id")
  4370. .HasColumnType("bigint")
  4371. .HasComment("组织ID");
  4372. b.Property<string>("remark")
  4373. .HasMaxLength(255)
  4374. .HasColumnType("varchar(255)")
  4375. .HasComment("备注");
  4376. b.Property<DateTime?>("slice_end_time")
  4377. .HasColumnType("datetime")
  4378. .HasComment("结束工作时间");
  4379. b.Property<string>("slice_name")
  4380. .HasMaxLength(255)
  4381. .HasColumnType("varchar(255)")
  4382. .HasComment("班次名称");
  4383. b.Property<string>("slice_no")
  4384. .HasMaxLength(50)
  4385. .HasColumnType("varchar(50)")
  4386. .HasComment("班次编码");
  4387. b.Property<DateTime?>("slice_start_time")
  4388. .HasColumnType("datetime")
  4389. .HasComment("起始工作时间");
  4390. b.Property<bool>("state")
  4391. .HasColumnType("tinyint(1)")
  4392. .HasComment("数据状态标识 1启用 0停用");
  4393. b.Property<long>("tenant_id")
  4394. .HasColumnType("bigint")
  4395. .HasComment("企业ID");
  4396. b.Property<long?>("update_by")
  4397. .HasColumnType("bigint")
  4398. .HasComment("修改人");
  4399. b.Property<string>("update_by_name")
  4400. .HasMaxLength(50)
  4401. .HasColumnType("varchar(50)")
  4402. .HasComment("修改人名称");
  4403. b.Property<DateTime?>("update_time")
  4404. .HasColumnType("datetime")
  4405. .HasComment("修改时间");
  4406. b.Property<int?>("validate_hours")
  4407. .HasColumnType("int")
  4408. .HasComment("有效时长");
  4409. b.Property<int?>("work_hours")
  4410. .HasColumnType("int")
  4411. .HasComment("工作时长");
  4412. b.HasKey("slice_id");
  4413. b.ToTable("sys_shiftslice", (string)null);
  4414. b.HasComment("班次表");
  4415. });
  4416. modelBuilder.Entity("Bussiness.Model.SystemData.sys_staff", b =>
  4417. {
  4418. b.Property<long>("staff_id")
  4419. .ValueGeneratedOnAdd()
  4420. .HasColumnType("bigint")
  4421. .HasComment("主键id");
  4422. b.Property<bool>("IsDeleted")
  4423. .ValueGeneratedOnAdd()
  4424. .HasColumnType("tinyint(1)")
  4425. .HasDefaultValue(false)
  4426. .HasColumnName("IsDeleted")
  4427. .HasComment("删除标识");
  4428. b.Property<DateOnly?>("birthday")
  4429. .HasColumnType("date")
  4430. .HasComment("生日");
  4431. b.Property<string>("card_no")
  4432. .HasMaxLength(50)
  4433. .HasColumnType("varchar(50)")
  4434. .HasComment("卡号");
  4435. b.Property<string>("chinese_name")
  4436. .HasMaxLength(255)
  4437. .HasColumnType("varchar(255)")
  4438. .HasComment("中文名");
  4439. b.Property<long?>("create_by")
  4440. .HasColumnType("bigint")
  4441. .HasComment("创建人id");
  4442. b.Property<string>("create_by_name")
  4443. .HasMaxLength(50)
  4444. .HasColumnType("varchar(50)")
  4445. .HasComment("创建人名称");
  4446. b.Property<DateTime?>("create_time")
  4447. .HasColumnType("datetime")
  4448. .HasComment("创建时间");
  4449. b.Property<long?>("dept_id")
  4450. .HasColumnType("bigint")
  4451. .HasComment("部门id");
  4452. b.Property<string>("dept_name")
  4453. .HasMaxLength(255)
  4454. .HasColumnType("varchar(255)")
  4455. .HasComment("部门名称");
  4456. b.Property<string>("dept_no")
  4457. .HasMaxLength(50)
  4458. .HasColumnType("varchar(50)")
  4459. .HasComment("部门编号");
  4460. b.Property<string>("email")
  4461. .HasMaxLength(255)
  4462. .HasColumnType("varchar(255)")
  4463. .HasComment("邮箱");
  4464. b.Property<string>("emp_no")
  4465. .HasMaxLength(50)
  4466. .HasColumnType("varchar(50)")
  4467. .HasComment("工号");
  4468. b.Property<long?>("factory_id")
  4469. .HasColumnType("bigint")
  4470. .HasComment("工厂ID");
  4471. b.Property<string>("id_no")
  4472. .HasMaxLength(50)
  4473. .HasColumnType("varchar(50)")
  4474. .HasComment("身份证号");
  4475. b.Property<string>("mobile")
  4476. .HasMaxLength(50)
  4477. .HasColumnType("varchar(50)")
  4478. .HasComment("移动电话");
  4479. b.Property<long?>("org_id")
  4480. .HasColumnType("bigint")
  4481. .HasComment("组织ID");
  4482. b.Property<string>("org_name")
  4483. .HasMaxLength(255)
  4484. .HasColumnType("varchar(255)")
  4485. .HasComment("组织名称");
  4486. b.Property<string>("phone")
  4487. .HasMaxLength(80)
  4488. .HasColumnType("varchar(80)")
  4489. .HasComment("电话");
  4490. b.Property<string>("photo")
  4491. .HasMaxLength(255)
  4492. .HasColumnType("varchar(255)")
  4493. .HasComment("照片");
  4494. b.Property<string>("politics")
  4495. .HasMaxLength(50)
  4496. .HasColumnType("varchar(50)")
  4497. .HasComment("政治面貌");
  4498. b.Property<string>("sex")
  4499. .HasMaxLength(1)
  4500. .HasColumnType("varchar(1)")
  4501. .HasComment("性别 1 男 2 女");
  4502. b.Property<string>("staff_no")
  4503. .HasMaxLength(50)
  4504. .HasColumnType("varchar(50)")
  4505. .HasComment("员工编码");
  4506. b.Property<string>("staff_remark")
  4507. .HasMaxLength(255)
  4508. .HasColumnType("varchar(255)")
  4509. .HasComment("备注");
  4510. b.Property<bool>("state")
  4511. .HasMaxLength(255)
  4512. .HasColumnType("tinyint(255)")
  4513. .HasComment("数据状态标识 1启用 0停用");
  4514. b.Property<long>("tenant_id")
  4515. .HasColumnType("bigint")
  4516. .HasComment("企业ID");
  4517. b.Property<long?>("update_by")
  4518. .HasColumnType("bigint")
  4519. .HasComment("修改人");
  4520. b.Property<string>("update_by_name")
  4521. .HasMaxLength(50)
  4522. .HasColumnType("varchar(50)")
  4523. .HasComment("修改人名称");
  4524. b.Property<DateTime?>("update_time")
  4525. .HasColumnType("datetime")
  4526. .HasComment("修改时间");
  4527. b.Property<long?>("user_id")
  4528. .HasColumnType("bigint")
  4529. .HasComment("用户id");
  4530. b.Property<string>("user_name")
  4531. .HasMaxLength(255)
  4532. .HasColumnType("varchar(255)")
  4533. .HasComment("用户名称");
  4534. b.HasKey("staff_id");
  4535. b.ToTable("sys_staff", (string)null);
  4536. b.HasComment("员工表");
  4537. });
  4538. modelBuilder.Entity("Bussiness.Model.SystemData.sys_upload", b =>
  4539. {
  4540. b.Property<long>("upload_id")
  4541. .ValueGeneratedOnAdd()
  4542. .HasColumnType("bigint")
  4543. .HasComment("主键id");
  4544. b.Property<string>("data_type")
  4545. .HasMaxLength(255)
  4546. .HasColumnType("varchar(255)")
  4547. .HasComment("文件数据类型");
  4548. b.Property<string>("file_type")
  4549. .HasMaxLength(255)
  4550. .HasColumnType("varchar(255)")
  4551. .HasComment("文件后缀");
  4552. b.Property<string>("file_url")
  4553. .HasMaxLength(255)
  4554. .HasColumnType("varchar(255)")
  4555. .HasComment("文件存储路径");
  4556. b.Property<string>("original_file_name")
  4557. .HasMaxLength(255)
  4558. .HasColumnType("varchar(255)")
  4559. .HasComment("源文件名称");
  4560. b.HasKey("upload_id");
  4561. b.ToTable("sys_upload", (string)null);
  4562. b.HasComment("文件上传表");
  4563. });
  4564. modelBuilder.Entity("Bussiness.Model.SystemData.wms_customer", b =>
  4565. {
  4566. b.Property<long>("customer_id")
  4567. .ValueGeneratedOnAdd()
  4568. .HasColumnType("bigint")
  4569. .HasComment("客户主键id");
  4570. b.Property<bool>("IsDeleted")
  4571. .ValueGeneratedOnAdd()
  4572. .HasColumnType("tinyint(1)")
  4573. .HasDefaultValue(false)
  4574. .HasColumnName("IsDeleted")
  4575. .HasComment("删除标识");
  4576. b.Property<string>("address")
  4577. .HasMaxLength(255)
  4578. .HasColumnType("varchar(255)")
  4579. .HasComment("地址");
  4580. b.Property<int>("carrying_aos")
  4581. .HasColumnType("int")
  4582. .HasComment("默认运输提前期_天");
  4583. b.Property<string>("city")
  4584. .HasMaxLength(255)
  4585. .HasColumnType("varchar(255)")
  4586. .HasComment("城市");
  4587. b.Property<string>("contact")
  4588. .HasMaxLength(80)
  4589. .HasColumnType("varchar(80)")
  4590. .HasComment("联系人");
  4591. b.Property<string>("corperate")
  4592. .HasMaxLength(255)
  4593. .HasColumnType("varchar(255)")
  4594. .HasComment("法人代表");
  4595. b.Property<string>("country")
  4596. .HasMaxLength(255)
  4597. .HasColumnType("varchar(255)")
  4598. .HasComment("国别地区");
  4599. b.Property<long?>("create_by")
  4600. .HasColumnType("bigint")
  4601. .HasComment("创建人id");
  4602. b.Property<string>("create_by_name")
  4603. .HasMaxLength(50)
  4604. .HasColumnType("varchar(50)")
  4605. .HasComment("创建人名称");
  4606. b.Property<DateTime?>("create_time")
  4607. .HasColumnType("datetime")
  4608. .HasComment("创建时间");
  4609. b.Property<string>("currency")
  4610. .HasMaxLength(80)
  4611. .HasColumnType("varchar(80)")
  4612. .HasComment("结算币种");
  4613. b.Property<string>("cust_group_name")
  4614. .HasMaxLength(255)
  4615. .HasColumnType("varchar(255)")
  4616. .HasComment("客户分组名称");
  4617. b.Property<string>("cust_group_number")
  4618. .HasMaxLength(255)
  4619. .HasColumnType("varchar(255)")
  4620. .HasComment("客户分组编号");
  4621. b.Property<string>("cust_type")
  4622. .HasMaxLength(255)
  4623. .HasColumnType("varchar(255)")
  4624. .HasComment("客户类别");
  4625. b.Property<string>("cust_type_number")
  4626. .HasMaxLength(255)
  4627. .HasColumnType("varchar(255)")
  4628. .HasComment("客户类别编码");
  4629. b.Property<string>("customer_level")
  4630. .HasMaxLength(255)
  4631. .HasColumnType("varchar(255)")
  4632. .HasComment("客户级别");
  4633. b.Property<string>("customer_name")
  4634. .HasMaxLength(255)
  4635. .HasColumnType("varchar(255)")
  4636. .HasComment("客户名称");
  4637. b.Property<string>("customer_no")
  4638. .HasMaxLength(80)
  4639. .HasColumnType("varchar(80)")
  4640. .HasComment("客户编号");
  4641. b.Property<string>("email")
  4642. .HasMaxLength(80)
  4643. .HasColumnType("varchar(80)")
  4644. .HasComment("邮件地址");
  4645. b.Property<string>("employee_name")
  4646. .HasMaxLength(80)
  4647. .HasColumnType("varchar(80)")
  4648. .HasComment("专营业务员");
  4649. b.Property<string>("employee_no")
  4650. .HasMaxLength(80)
  4651. .HasColumnType("varchar(80)")
  4652. .HasComment("专营业务员_工号");
  4653. b.Property<long?>("factory_id")
  4654. .HasColumnType("bigint")
  4655. .HasComment("工厂ID");
  4656. b.Property<string>("mobile")
  4657. .HasMaxLength(80)
  4658. .HasColumnType("varchar(80)")
  4659. .HasComment("手机号码");
  4660. b.Property<DateTime?>("op_time")
  4661. .HasColumnType("datetime")
  4662. .HasComment("操作时间");
  4663. b.Property<long?>("org_id")
  4664. .HasColumnType("bigint")
  4665. .HasComment("组织ID");
  4666. b.Property<string>("post_code")
  4667. .HasMaxLength(80)
  4668. .HasColumnType("varchar(80)")
  4669. .HasComment("邮政编码");
  4670. b.Property<string>("province")
  4671. .HasMaxLength(255)
  4672. .HasColumnType("varchar(255)")
  4673. .HasComment("省份");
  4674. b.Property<string>("region")
  4675. .HasMaxLength(255)
  4676. .HasColumnType("varchar(255)")
  4677. .HasComment("区");
  4678. b.Property<string>("sale_mode")
  4679. .HasMaxLength(255)
  4680. .HasColumnType("varchar(255)")
  4681. .HasComment("销售模式");
  4682. b.Property<string>("short_name")
  4683. .HasMaxLength(255)
  4684. .HasColumnType("varchar(255)")
  4685. .HasComment("客户简称");
  4686. b.Property<string>("short_number")
  4687. .HasMaxLength(255)
  4688. .HasColumnType("varchar(255)")
  4689. .HasComment("客户简码");
  4690. b.Property<string>("state")
  4691. .HasMaxLength(80)
  4692. .HasColumnType("varchar(80)")
  4693. .HasComment("状态");
  4694. b.Property<string>("telephone")
  4695. .HasMaxLength(80)
  4696. .HasColumnType("varchar(80)")
  4697. .HasComment("电话号码");
  4698. b.Property<long>("tenant_id")
  4699. .HasColumnType("bigint")
  4700. .HasComment("企业ID");
  4701. b.Property<long?>("update_by")
  4702. .HasColumnType("bigint")
  4703. .HasComment("修改人");
  4704. b.Property<string>("update_by_name")
  4705. .HasMaxLength(50)
  4706. .HasColumnType("varchar(50)")
  4707. .HasComment("修改人名称");
  4708. b.Property<DateTime?>("update_time")
  4709. .HasColumnType("datetime")
  4710. .HasComment("修改时间");
  4711. b.Property<decimal?>("value_add_rate")
  4712. .HasPrecision(18, 10)
  4713. .HasColumnType("decimal(18,10)")
  4714. .HasComment("增值税率");
  4715. b.HasKey("customer_id");
  4716. b.ToTable("wms_customer", (string)null);
  4717. b.HasComment("客户表");
  4718. });
  4719. modelBuilder.Entity("Bussiness.Model.SystemData.wms_supplier", b =>
  4720. {
  4721. b.Property<long>("supplier_id")
  4722. .ValueGeneratedOnAdd()
  4723. .HasColumnType("bigint")
  4724. .HasComment("供应商主键id");
  4725. b.Property<bool>("IsDeleted")
  4726. .ValueGeneratedOnAdd()
  4727. .HasColumnType("tinyint(1)")
  4728. .HasDefaultValue(false)
  4729. .HasColumnName("IsDeleted")
  4730. .HasComment("删除标识");
  4731. b.Property<string>("addr_en")
  4732. .HasMaxLength(255)
  4733. .HasColumnType("varchar(255)")
  4734. .HasComment("英文地址");
  4735. b.Property<DateTime?>("approve_date")
  4736. .HasColumnType("datetime")
  4737. .HasComment("批准日期");
  4738. b.Property<bool?>("auto_create_mr")
  4739. .HasColumnType("tinyint(1)")
  4740. .HasComment("交货自动生成收货单据");
  4741. b.Property<bool?>("auto_validate_order")
  4742. .HasColumnType("tinyint(1)")
  4743. .HasComment("自动确认订单");
  4744. b.Property<string>("bank")
  4745. .HasMaxLength(255)
  4746. .HasColumnType("varchar(255)")
  4747. .HasComment("开户银行");
  4748. b.Property<string>("bank_account")
  4749. .HasMaxLength(80)
  4750. .HasColumnType("varchar(80)")
  4751. .HasComment("银行账号");
  4752. b.Property<DateTime?>("begin_day")
  4753. .HasColumnType("datetime")
  4754. .HasComment("生效日期");
  4755. b.Property<string>("branch_info")
  4756. .HasMaxLength(255)
  4757. .HasColumnType("varchar(255)")
  4758. .HasComment("分支机构信息");
  4759. b.Property<string>("checker")
  4760. .HasMaxLength(80)
  4761. .HasColumnType("varchar(80)")
  4762. .HasComment("审核人");
  4763. b.Property<string>("company_type")
  4764. .HasMaxLength(80)
  4765. .HasColumnType("varchar(80)")
  4766. .HasComment("公司类别");
  4767. b.Property<string>("contact")
  4768. .HasMaxLength(80)
  4769. .HasColumnType("varchar(80)")
  4770. .HasComment("联系人");
  4771. b.Property<string>("country")
  4772. .HasMaxLength(255)
  4773. .HasColumnType("varchar(255)")
  4774. .HasComment("国别地区");
  4775. b.Property<long?>("create_by")
  4776. .HasColumnType("bigint")
  4777. .HasComment("创建人id");
  4778. b.Property<string>("create_by_name")
  4779. .HasMaxLength(50)
  4780. .HasColumnType("varchar(50)")
  4781. .HasComment("创建人名称");
  4782. b.Property<DateTime?>("create_time")
  4783. .HasColumnType("datetime")
  4784. .HasComment("创建时间");
  4785. b.Property<string>("currency")
  4786. .HasMaxLength(80)
  4787. .HasColumnType("varchar(80)")
  4788. .HasComment("结算币种");
  4789. b.Property<string>("department")
  4790. .HasMaxLength(80)
  4791. .HasColumnType("varchar(80)")
  4792. .HasComment("分管部门");
  4793. b.Property<string>("email")
  4794. .HasMaxLength(80)
  4795. .HasColumnType("varchar(80)")
  4796. .HasComment("邮件地址");
  4797. b.Property<string>("employee_name")
  4798. .HasMaxLength(80)
  4799. .HasColumnType("varchar(80)")
  4800. .HasComment("专营业务员");
  4801. b.Property<string>("employee_no")
  4802. .HasMaxLength(80)
  4803. .HasColumnType("varchar(80)")
  4804. .HasComment("专营业务员_工号");
  4805. b.Property<DateTime?>("end_day")
  4806. .HasColumnType("datetime")
  4807. .HasComment("失效日期");
  4808. b.Property<long?>("factory_id")
  4809. .HasColumnType("bigint")
  4810. .HasComment("工厂ID");
  4811. b.Property<string>("fax")
  4812. .HasMaxLength(80)
  4813. .HasColumnType("varchar(80)")
  4814. .HasComment("传真号码");
  4815. b.Property<bool?>("isuse_supplier_portal")
  4816. .HasColumnType("tinyint(1)")
  4817. .HasComment("启用供应商门户");
  4818. b.Property<string>("licence")
  4819. .HasMaxLength(255)
  4820. .HasColumnType("varchar(255)")
  4821. .HasComment("营业执照");
  4822. b.Property<string>("mobile")
  4823. .HasMaxLength(80)
  4824. .HasColumnType("varchar(80)")
  4825. .HasComment("移动电话");
  4826. b.Property<string>("name_en")
  4827. .HasMaxLength(255)
  4828. .HasColumnType("varchar(255)")
  4829. .HasComment("英文名称");
  4830. b.Property<DateTime?>("op_time")
  4831. .HasColumnType("datetime")
  4832. .HasComment("操作时间");
  4833. b.Property<long?>("org_id")
  4834. .HasColumnType("bigint")
  4835. .HasComment("组织ID");
  4836. b.Property<string>("po_mode")
  4837. .HasMaxLength(80)
  4838. .HasColumnType("varchar(80)")
  4839. .HasComment("采购模式");
  4840. b.Property<string>("post_code")
  4841. .HasMaxLength(80)
  4842. .HasColumnType("varchar(80)")
  4843. .HasComment("邮政编码");
  4844. b.Property<string>("region")
  4845. .HasMaxLength(255)
  4846. .HasColumnType("varchar(255)")
  4847. .HasComment("区域");
  4848. b.Property<string>("regmark")
  4849. .HasMaxLength(255)
  4850. .HasColumnType("varchar(255)")
  4851. .HasComment("注册商标");
  4852. b.Property<DateTime?>("regster_date")
  4853. .HasColumnType("datetime")
  4854. .HasComment("注册日期");
  4855. b.Property<string>("settlement")
  4856. .HasMaxLength(80)
  4857. .HasColumnType("varchar(80)")
  4858. .HasComment("结算方式");
  4859. b.Property<string>("state")
  4860. .HasColumnType("longtext")
  4861. .HasComment("状态");
  4862. b.Property<string>("stockid_assignee")
  4863. .HasMaxLength(255)
  4864. .HasColumnType("varchar(255)")
  4865. .HasComment("受托代销虚仓");
  4866. b.Property<string>("supplier_address")
  4867. .HasMaxLength(255)
  4868. .HasColumnType("varchar(255)")
  4869. .HasComment("供应商地址");
  4870. b.Property<string>("supplier_full_name")
  4871. .HasMaxLength(255)
  4872. .HasColumnType("varchar(255)")
  4873. .HasComment("供应商全称");
  4874. b.Property<string>("supplier_help_code")
  4875. .HasMaxLength(80)
  4876. .HasColumnType("varchar(80)")
  4877. .HasComment("供应商助记码");
  4878. b.Property<string>("supplier_name")
  4879. .HasMaxLength(255)
  4880. .HasColumnType("varchar(255)")
  4881. .HasComment("供应商名称");
  4882. b.Property<string>("supplier_no")
  4883. .HasMaxLength(80)
  4884. .HasColumnType("varchar(80)")
  4885. .HasComment("供应商编号");
  4886. b.Property<string>("supplier_short_name")
  4887. .HasMaxLength(255)
  4888. .HasColumnType("varchar(255)")
  4889. .HasComment("供应商简称");
  4890. b.Property<string>("supply_grade")
  4891. .HasMaxLength(80)
  4892. .HasColumnType("varchar(80)")
  4893. .HasComment("供应商等级");
  4894. b.Property<string>("supply_type")
  4895. .HasMaxLength(80)
  4896. .HasColumnType("varchar(80)")
  4897. .HasComment("供应类别");
  4898. b.Property<string>("taxid")
  4899. .HasMaxLength(255)
  4900. .HasColumnType("varchar(255)")
  4901. .HasComment("税务登记号");
  4902. b.Property<string>("telephone")
  4903. .HasMaxLength(80)
  4904. .HasColumnType("varchar(80)")
  4905. .HasComment("联系电话");
  4906. b.Property<long>("tenant_id")
  4907. .HasColumnType("bigint")
  4908. .HasComment("企业ID");
  4909. b.Property<string>("trade")
  4910. .HasMaxLength(255)
  4911. .HasColumnType("varchar(255)")
  4912. .HasComment("行业");
  4913. b.Property<string>("type")
  4914. .HasMaxLength(80)
  4915. .HasColumnType("varchar(80)")
  4916. .HasComment("供应商分类");
  4917. b.Property<long?>("update_by")
  4918. .HasColumnType("bigint")
  4919. .HasComment("修改人");
  4920. b.Property<string>("update_by_name")
  4921. .HasMaxLength(50)
  4922. .HasColumnType("varchar(50)")
  4923. .HasComment("修改人名称");
  4924. b.Property<DateTime?>("update_time")
  4925. .HasColumnType("datetime")
  4926. .HasComment("修改时间");
  4927. b.Property<decimal?>("value_add_rate")
  4928. .HasPrecision(18, 10)
  4929. .HasColumnType("decimal(18,10)")
  4930. .HasComment("增值税率");
  4931. b.Property<string>("vmi_stock")
  4932. .HasMaxLength(255)
  4933. .HasColumnType("varchar(255)")
  4934. .HasComment("VMI仓");
  4935. b.HasKey("supplier_id");
  4936. b.ToTable("wms_supplier", (string)null);
  4937. b.HasComment("供应商表");
  4938. });
  4939. modelBuilder.Entity("Bussiness.Model.Tech.mes_process", b =>
  4940. {
  4941. b.Property<long>("proc_id")
  4942. .ValueGeneratedOnAdd()
  4943. .HasColumnType("bigint")
  4944. .HasComment("工序主键");
  4945. b.Property<string>("long_desc")
  4946. .HasMaxLength(2000)
  4947. .HasColumnType("varchar(2000)")
  4948. .HasComment("详细描述");
  4949. b.Property<string>("proc_name")
  4950. .IsRequired()
  4951. .HasMaxLength(100)
  4952. .HasColumnType("varchar(100)")
  4953. .HasComment("工序名称");
  4954. b.Property<string>("short_desc")
  4955. .HasMaxLength(500)
  4956. .HasColumnType("varchar(500)")
  4957. .HasComment("简述");
  4958. b.Property<string>("subids")
  4959. .HasMaxLength(2000)
  4960. .HasColumnType("varchar(2000)")
  4961. .HasComment("组合工序id");
  4962. b.HasKey("proc_id");
  4963. b.ToTable("mes_process", (string)null);
  4964. b.HasComment("工序表");
  4965. });
  4966. modelBuilder.Entity("Bussiness.Model.Tech.mes_tech_proc_accessory", b =>
  4967. {
  4968. b.Property<long>("tech_proc_acc_id")
  4969. .ValueGeneratedOnAdd()
  4970. .HasColumnType("bigint")
  4971. .HasComment("治具主键");
  4972. b.Property<bool>("IsDeleted")
  4973. .ValueGeneratedOnAdd()
  4974. .HasColumnType("tinyint(1)")
  4975. .HasDefaultValue(false)
  4976. .HasColumnName("IsDeleted")
  4977. .HasComment("删除标识");
  4978. b.Property<long?>("create_by")
  4979. .HasColumnType("bigint")
  4980. .HasComment("创建人id");
  4981. b.Property<string>("create_by_name")
  4982. .HasMaxLength(50)
  4983. .HasColumnType("varchar(50)")
  4984. .HasComment("创建人名称");
  4985. b.Property<DateTime?>("create_time")
  4986. .HasColumnType("datetime")
  4987. .HasComment("创建时间");
  4988. b.Property<long>("equip_id")
  4989. .HasColumnType("bigint")
  4990. .HasComment("工装id");
  4991. b.Property<string>("equip_no")
  4992. .IsRequired()
  4993. .HasMaxLength(100)
  4994. .HasColumnType("varchar(100)")
  4995. .HasComment("工装编号");
  4996. b.Property<long?>("factory_id")
  4997. .HasColumnType("bigint")
  4998. .HasComment("工厂ID");
  4999. b.Property<long?>("org_id")
  5000. .HasColumnType("bigint")
  5001. .HasComment("组织ID");
  5002. b.Property<int>("qty")
  5003. .HasColumnType("int")
  5004. .HasComment("数量");
  5005. b.Property<long>("tech_proc_id")
  5006. .HasColumnType("bigint")
  5007. .HasComment("工艺工序主键");
  5008. b.Property<long>("tenant_id")
  5009. .HasColumnType("bigint")
  5010. .HasComment("企业ID");
  5011. b.Property<long?>("update_by")
  5012. .HasColumnType("bigint")
  5013. .HasComment("修改人");
  5014. b.Property<string>("update_by_name")
  5015. .HasMaxLength(50)
  5016. .HasColumnType("varchar(50)")
  5017. .HasComment("修改人名称");
  5018. b.Property<DateTime?>("update_time")
  5019. .HasColumnType("datetime")
  5020. .HasComment("修改时间");
  5021. b.HasKey("tech_proc_acc_id");
  5022. b.ToTable("mes_tech_proc_accessory", (string)null);
  5023. b.HasComment("治具表(工装表)");
  5024. });
  5025. modelBuilder.Entity("Bussiness.Model.Tech.mes_tech_proc_document", b =>
  5026. {
  5027. b.Property<long>("tech_proc_doc_id")
  5028. .ValueGeneratedOnAdd()
  5029. .HasColumnType("bigint")
  5030. .HasComment("工序作业指导书主键");
  5031. b.Property<bool>("IsDeleted")
  5032. .ValueGeneratedOnAdd()
  5033. .HasColumnType("tinyint(1)")
  5034. .HasDefaultValue(false)
  5035. .HasColumnName("IsDeleted")
  5036. .HasComment("删除标识");
  5037. b.Property<long?>("create_by")
  5038. .HasColumnType("bigint")
  5039. .HasComment("创建人id");
  5040. b.Property<string>("create_by_name")
  5041. .HasMaxLength(50)
  5042. .HasColumnType("varchar(50)")
  5043. .HasComment("创建人名称");
  5044. b.Property<DateTime?>("create_time")
  5045. .HasColumnType("datetime")
  5046. .HasComment("创建时间");
  5047. b.Property<long?>("factory_id")
  5048. .HasColumnType("bigint")
  5049. .HasComment("工厂ID");
  5050. b.Property<string>("name")
  5051. .HasMaxLength(100)
  5052. .HasColumnType("varchar(100)")
  5053. .HasComment("作业指导书名称");
  5054. b.Property<long?>("org_id")
  5055. .HasColumnType("bigint")
  5056. .HasComment("组织ID");
  5057. b.Property<long>("tech_proc_id")
  5058. .HasColumnType("bigint")
  5059. .HasComment("工艺工序主键");
  5060. b.Property<long>("tenant_id")
  5061. .HasColumnType("bigint")
  5062. .HasComment("企业ID");
  5063. b.Property<long?>("update_by")
  5064. .HasColumnType("bigint")
  5065. .HasComment("修改人");
  5066. b.Property<string>("update_by_name")
  5067. .HasMaxLength(50)
  5068. .HasColumnType("varchar(50)")
  5069. .HasComment("修改人名称");
  5070. b.Property<DateTime?>("update_time")
  5071. .HasColumnType("datetime")
  5072. .HasComment("修改时间");
  5073. b.Property<long>("upload_id")
  5074. .HasColumnType("bigint")
  5075. .HasComment("作业指导书主键");
  5076. b.HasKey("tech_proc_doc_id");
  5077. b.ToTable("mes_tech_proc_document", (string)null);
  5078. b.HasComment("工序作业指导书表");
  5079. });
  5080. modelBuilder.Entity("Bussiness.Model.Tech.mes_tech_proc_workshop", b =>
  5081. {
  5082. b.Property<long>("tech_proc_workshop_id")
  5083. .ValueGeneratedOnAdd()
  5084. .HasColumnType("bigint")
  5085. .HasComment("工位表主键");
  5086. b.Property<bool>("IsDeleted")
  5087. .ValueGeneratedOnAdd()
  5088. .HasColumnType("tinyint(1)")
  5089. .HasDefaultValue(false)
  5090. .HasColumnName("IsDeleted")
  5091. .HasComment("删除标识");
  5092. b.Property<long?>("create_by")
  5093. .HasColumnType("bigint")
  5094. .HasComment("创建人id");
  5095. b.Property<string>("create_by_name")
  5096. .HasMaxLength(50)
  5097. .HasColumnType("varchar(50)")
  5098. .HasComment("创建人名称");
  5099. b.Property<DateTime?>("create_time")
  5100. .HasColumnType("datetime")
  5101. .HasComment("创建时间");
  5102. b.Property<long?>("factory_id")
  5103. .HasColumnType("bigint")
  5104. .HasComment("工厂ID");
  5105. b.Property<long?>("org_id")
  5106. .HasColumnType("bigint")
  5107. .HasComment("组织ID");
  5108. b.Property<int?>("serialno")
  5109. .HasColumnType("int")
  5110. .HasComment("序列号");
  5111. b.Property<long>("tech_proc_id")
  5112. .HasColumnType("bigint")
  5113. .HasComment("工艺工序id");
  5114. b.Property<long>("tenant_id")
  5115. .HasColumnType("bigint")
  5116. .HasComment("企业ID");
  5117. b.Property<long?>("update_by")
  5118. .HasColumnType("bigint")
  5119. .HasComment("修改人");
  5120. b.Property<string>("update_by_name")
  5121. .HasMaxLength(50)
  5122. .HasColumnType("varchar(50)")
  5123. .HasComment("修改人名称");
  5124. b.Property<DateTime?>("update_time")
  5125. .HasColumnType("datetime")
  5126. .HasComment("修改时间");
  5127. b.Property<long>("workshop_id")
  5128. .HasColumnType("bigint")
  5129. .HasComment("工位id");
  5130. b.HasKey("tech_proc_workshop_id");
  5131. b.ToTable("mes_tech_proc_workshop", (string)null);
  5132. b.HasComment("工艺路径关联工位表");
  5133. });
  5134. modelBuilder.Entity("Bussiness.Model.Tech.mes_tech_proc_workshop_equipment", b =>
  5135. {
  5136. b.Property<long>("tech_proc_workshop_equip_id")
  5137. .ValueGeneratedOnAdd()
  5138. .HasColumnType("bigint")
  5139. .HasComment("主键");
  5140. b.Property<bool>("IsDeleted")
  5141. .ValueGeneratedOnAdd()
  5142. .HasColumnType("tinyint(1)")
  5143. .HasDefaultValue(false)
  5144. .HasColumnName("IsDeleted")
  5145. .HasComment("删除标识");
  5146. b.Property<long?>("create_by")
  5147. .HasColumnType("bigint")
  5148. .HasComment("创建人id");
  5149. b.Property<string>("create_by_name")
  5150. .HasMaxLength(50)
  5151. .HasColumnType("varchar(50)")
  5152. .HasComment("创建人名称");
  5153. b.Property<DateTime?>("create_time")
  5154. .HasColumnType("datetime")
  5155. .HasComment("创建时间");
  5156. b.Property<long>("equip_id")
  5157. .HasColumnType("bigint")
  5158. .HasComment("设备id");
  5159. b.Property<string>("equip_name")
  5160. .HasMaxLength(100)
  5161. .HasColumnType("varchar(100)")
  5162. .HasComment("设备名称");
  5163. b.Property<long?>("factory_id")
  5164. .HasColumnType("bigint")
  5165. .HasComment("工厂ID");
  5166. b.Property<long?>("org_id")
  5167. .HasColumnType("bigint")
  5168. .HasComment("组织ID");
  5169. b.Property<long>("tech_proc_workshop_id")
  5170. .HasColumnType("bigint")
  5171. .HasComment("工艺工位id");
  5172. b.Property<long>("tenant_id")
  5173. .HasColumnType("bigint")
  5174. .HasComment("企业ID");
  5175. b.Property<long?>("update_by")
  5176. .HasColumnType("bigint")
  5177. .HasComment("修改人");
  5178. b.Property<string>("update_by_name")
  5179. .HasMaxLength(50)
  5180. .HasColumnType("varchar(50)")
  5181. .HasComment("修改人名称");
  5182. b.Property<DateTime?>("update_time")
  5183. .HasColumnType("datetime")
  5184. .HasComment("修改时间");
  5185. b.Property<long?>("work_calendar_id")
  5186. .HasColumnType("bigint")
  5187. .HasComment("工作日历id");
  5188. b.HasKey("tech_proc_workshop_equip_id");
  5189. b.ToTable("mes_tech_proc_workshop_equipment", (string)null);
  5190. b.HasComment("工艺路径关联设备表");
  5191. });
  5192. modelBuilder.Entity("Bussiness.Model.Tech.mes_tech_proc_workshop_icitem", b =>
  5193. {
  5194. b.Property<long>("tech_proc_workshop_icitem_id")
  5195. .ValueGeneratedOnAdd()
  5196. .HasColumnType("bigint")
  5197. .HasComment("主键");
  5198. b.Property<bool>("IsDeleted")
  5199. .ValueGeneratedOnAdd()
  5200. .HasColumnType("tinyint(1)")
  5201. .HasDefaultValue(false)
  5202. .HasColumnName("IsDeleted")
  5203. .HasComment("删除标识");
  5204. b.Property<long?>("create_by")
  5205. .HasColumnType("bigint")
  5206. .HasComment("创建人id");
  5207. b.Property<string>("create_by_name")
  5208. .HasMaxLength(50)
  5209. .HasColumnType("varchar(50)")
  5210. .HasComment("创建人名称");
  5211. b.Property<DateTime?>("create_time")
  5212. .HasColumnType("datetime")
  5213. .HasComment("创建时间");
  5214. b.Property<long?>("factory_id")
  5215. .HasColumnType("bigint")
  5216. .HasComment("工厂ID");
  5217. b.Property<long>("icitem_id")
  5218. .HasColumnType("bigint")
  5219. .HasComment("物料id");
  5220. b.Property<long?>("org_id")
  5221. .HasColumnType("bigint")
  5222. .HasComment("组织ID");
  5223. b.Property<int>("qty")
  5224. .HasColumnType("int")
  5225. .HasComment("数量");
  5226. b.Property<long>("tech_proc_workshop_id")
  5227. .HasColumnType("bigint")
  5228. .HasComment("工序工位id");
  5229. b.Property<long>("tenant_id")
  5230. .HasColumnType("bigint")
  5231. .HasComment("企业ID");
  5232. b.Property<long?>("update_by")
  5233. .HasColumnType("bigint")
  5234. .HasComment("修改人");
  5235. b.Property<string>("update_by_name")
  5236. .HasMaxLength(50)
  5237. .HasColumnType("varchar(50)")
  5238. .HasComment("修改人名称");
  5239. b.Property<DateTime?>("update_time")
  5240. .HasColumnType("datetime")
  5241. .HasComment("修改时间");
  5242. b.HasKey("tech_proc_workshop_icitem_id");
  5243. b.ToTable("mes_tech_proc_workshop_icitem", (string)null);
  5244. b.HasComment("发料到工位表");
  5245. });
  5246. modelBuilder.Entity("Bussiness.Model.Tech.mes_tech_proc_workshop_staff", b =>
  5247. {
  5248. b.Property<long>("tech_proc_workshop_equip_id")
  5249. .ValueGeneratedOnAdd()
  5250. .HasColumnType("bigint")
  5251. .HasComment("主键");
  5252. b.Property<bool>("IsDeleted")
  5253. .ValueGeneratedOnAdd()
  5254. .HasColumnType("tinyint(1)")
  5255. .HasDefaultValue(false)
  5256. .HasColumnName("IsDeleted")
  5257. .HasComment("删除标识");
  5258. b.Property<long?>("create_by")
  5259. .HasColumnType("bigint")
  5260. .HasComment("创建人id");
  5261. b.Property<string>("create_by_name")
  5262. .HasMaxLength(50)
  5263. .HasColumnType("varchar(50)")
  5264. .HasComment("创建人名称");
  5265. b.Property<DateTime?>("create_time")
  5266. .HasColumnType("datetime")
  5267. .HasComment("创建时间");
  5268. b.Property<long?>("factory_id")
  5269. .HasColumnType("bigint")
  5270. .HasComment("工厂ID");
  5271. b.Property<long?>("org_id")
  5272. .HasColumnType("bigint")
  5273. .HasComment("组织ID");
  5274. b.Property<long>("staff_id")
  5275. .HasColumnType("bigint")
  5276. .HasComment("员工id");
  5277. b.Property<string>("staff_name")
  5278. .HasMaxLength(100)
  5279. .HasColumnType("varchar(100)")
  5280. .HasComment("员工姓名");
  5281. b.Property<long>("tech_proc_workshop_id")
  5282. .HasColumnType("bigint")
  5283. .HasComment("工艺工位id");
  5284. b.Property<long>("tenant_id")
  5285. .HasColumnType("bigint")
  5286. .HasComment("企业ID");
  5287. b.Property<long?>("update_by")
  5288. .HasColumnType("bigint")
  5289. .HasComment("修改人");
  5290. b.Property<string>("update_by_name")
  5291. .HasMaxLength(50)
  5292. .HasColumnType("varchar(50)")
  5293. .HasComment("修改人名称");
  5294. b.Property<DateTime?>("update_time")
  5295. .HasColumnType("datetime")
  5296. .HasComment("修改时间");
  5297. b.HasKey("tech_proc_workshop_equip_id");
  5298. b.ToTable("mes_tech_proc_workshop_staff", (string)null);
  5299. b.HasComment("工序工位员工信息表");
  5300. });
  5301. modelBuilder.Entity("Bussiness.Model.Tech.mes_tech_process", b =>
  5302. {
  5303. b.Property<long>("tech_proc_id")
  5304. .ValueGeneratedOnAdd()
  5305. .HasColumnType("bigint")
  5306. .HasComment("工艺工序主键");
  5307. b.Property<bool>("IsDeleted")
  5308. .ValueGeneratedOnAdd()
  5309. .HasColumnType("tinyint(1)")
  5310. .HasDefaultValue(false)
  5311. .HasColumnName("IsDeleted")
  5312. .HasComment("删除标识");
  5313. b.Property<long?>("create_by")
  5314. .HasColumnType("bigint")
  5315. .HasComment("创建人id");
  5316. b.Property<string>("create_by_name")
  5317. .HasMaxLength(50)
  5318. .HasColumnType("varchar(50)")
  5319. .HasComment("创建人名称");
  5320. b.Property<DateTime?>("create_time")
  5321. .HasColumnType("datetime")
  5322. .HasComment("创建时间");
  5323. b.Property<decimal?>("ct")
  5324. .HasPrecision(20, 8)
  5325. .HasColumnType("decimal(20,8)")
  5326. .HasComment("节拍时间");
  5327. b.Property<decimal?>("effect_ratio")
  5328. .HasPrecision(10, 4)
  5329. .HasColumnType("decimal(10,4)")
  5330. .HasComment("效率系数");
  5331. b.Property<long?>("factory_id")
  5332. .HasColumnType("bigint")
  5333. .HasComment("工厂ID");
  5334. b.Property<int>("is_schedule")
  5335. .HasColumnType("int")
  5336. .HasComment("是否需要排产:1-是;0-否");
  5337. b.Property<int>("level")
  5338. .HasColumnType("int")
  5339. .HasComment("组合层级");
  5340. b.Property<int?>("maxworkshop")
  5341. .HasColumnType("int")
  5342. .HasComment("最大并行工位数");
  5343. b.Property<int?>("mototrack")
  5344. .HasColumnType("int")
  5345. .HasComment("是否需要跟踪工序");
  5346. b.Property<int?>("needqc")
  5347. .HasColumnType("int")
  5348. .HasComment("是否需要质检");
  5349. b.Property<long?>("nextprocid")
  5350. .HasColumnType("bigint")
  5351. .HasComment("下一工序id");
  5352. b.Property<long?>("org_id")
  5353. .HasColumnType("bigint")
  5354. .HasComment("组织ID");
  5355. b.Property<long?>("parentprocid")
  5356. .HasColumnType("bigint")
  5357. .HasComment("父级工序id");
  5358. b.Property<long>("proc_id")
  5359. .HasColumnType("bigint")
  5360. .HasComment("工序主键");
  5361. b.Property<decimal?>("readytime")
  5362. .HasPrecision(20, 8)
  5363. .HasColumnType("decimal(20,8)")
  5364. .HasComment("前置准备时间");
  5365. b.Property<long>("tech_id")
  5366. .HasColumnType("bigint")
  5367. .HasComment("工艺主键");
  5368. b.Property<long>("tenant_id")
  5369. .HasColumnType("bigint")
  5370. .HasComment("企业ID");
  5371. b.Property<int>("type")
  5372. .HasColumnType("int")
  5373. .HasComment("效率计算类型 1-节拍时间;2-UPH");
  5374. b.Property<long?>("update_by")
  5375. .HasColumnType("bigint")
  5376. .HasComment("修改人");
  5377. b.Property<string>("update_by_name")
  5378. .HasMaxLength(50)
  5379. .HasColumnType("varchar(50)")
  5380. .HasComment("修改人名称");
  5381. b.Property<DateTime?>("update_time")
  5382. .HasColumnType("datetime")
  5383. .HasComment("修改时间");
  5384. b.Property<decimal?>("uph")
  5385. .HasPrecision(20, 8)
  5386. .HasColumnType("decimal(20,8)")
  5387. .HasComment("UPH");
  5388. b.HasKey("tech_proc_id");
  5389. b.ToTable("mes_tech_process", (string)null);
  5390. b.HasComment("工艺关联工序表");
  5391. });
  5392. modelBuilder.Entity("Bussiness.Model.Tech.mes_technique", b =>
  5393. {
  5394. b.Property<long>("tech_id")
  5395. .ValueGeneratedOnAdd()
  5396. .HasColumnType("bigint")
  5397. .HasComment("工艺路径主键");
  5398. b.Property<bool>("IsDeleted")
  5399. .ValueGeneratedOnAdd()
  5400. .HasColumnType("tinyint(1)")
  5401. .HasDefaultValue(false)
  5402. .HasColumnName("IsDeleted")
  5403. .HasComment("删除标识");
  5404. b.Property<string>("bom")
  5405. .HasMaxLength(100)
  5406. .HasColumnType("varchar(100)")
  5407. .HasComment("产品");
  5408. b.Property<string>("bomver")
  5409. .HasMaxLength(100)
  5410. .HasColumnType("varchar(100)")
  5411. .HasComment("产品版本");
  5412. b.Property<long?>("create_by")
  5413. .HasColumnType("bigint")
  5414. .HasComment("创建人id");
  5415. b.Property<string>("create_by_name")
  5416. .HasMaxLength(50)
  5417. .HasColumnType("varchar(50)")
  5418. .HasComment("创建人名称");
  5419. b.Property<DateTime?>("create_time")
  5420. .HasColumnType("datetime")
  5421. .HasComment("创建时间");
  5422. b.Property<string>("desc")
  5423. .HasMaxLength(100)
  5424. .HasColumnType("varchar(100)")
  5425. .HasComment("描述");
  5426. b.Property<long?>("factory_id")
  5427. .HasColumnType("bigint")
  5428. .HasComment("工厂ID");
  5429. b.Property<int>("level")
  5430. .HasColumnType("int")
  5431. .HasComment("效率计算层级");
  5432. b.Property<long?>("org_id")
  5433. .HasColumnType("bigint")
  5434. .HasComment("组织ID");
  5435. b.Property<string>("tech_name")
  5436. .IsRequired()
  5437. .HasMaxLength(100)
  5438. .HasColumnType("varchar(100)")
  5439. .HasComment("工艺路径名称");
  5440. b.Property<long>("tenant_id")
  5441. .HasColumnType("bigint")
  5442. .HasComment("企业ID");
  5443. b.Property<long?>("update_by")
  5444. .HasColumnType("bigint")
  5445. .HasComment("修改人");
  5446. b.Property<string>("update_by_name")
  5447. .HasMaxLength(50)
  5448. .HasColumnType("varchar(50)")
  5449. .HasComment("修改人名称");
  5450. b.Property<DateTime?>("update_time")
  5451. .HasColumnType("datetime")
  5452. .HasComment("修改时间");
  5453. b.HasKey("tech_id");
  5454. b.ToTable("mes_technique", (string)null);
  5455. b.HasComment("工艺路径表");
  5456. });
  5457. modelBuilder.Entity("Bussiness.Model.Tech.mes_workshop", b =>
  5458. {
  5459. b.Property<long>("workshop_id")
  5460. .ValueGeneratedOnAdd()
  5461. .HasColumnType("bigint")
  5462. .HasComment("工位表主键");
  5463. b.Property<bool>("IsDeleted")
  5464. .ValueGeneratedOnAdd()
  5465. .HasColumnType("tinyint(1)")
  5466. .HasDefaultValue(false)
  5467. .HasColumnName("IsDeleted")
  5468. .HasComment("删除标识");
  5469. b.Property<string>("building")
  5470. .HasMaxLength(100)
  5471. .HasColumnType("varchar(100)")
  5472. .HasComment("楼栋");
  5473. b.Property<long?>("create_by")
  5474. .HasColumnType("bigint")
  5475. .HasComment("创建人id");
  5476. b.Property<string>("create_by_name")
  5477. .HasMaxLength(50)
  5478. .HasColumnType("varchar(50)")
  5479. .HasComment("创建人名称");
  5480. b.Property<DateTime?>("create_time")
  5481. .HasColumnType("datetime")
  5482. .HasComment("创建时间");
  5483. b.Property<long?>("factory_id")
  5484. .HasColumnType("bigint")
  5485. .HasComment("工厂ID");
  5486. b.Property<string>("floor")
  5487. .HasMaxLength(100)
  5488. .HasColumnType("varchar(100)")
  5489. .HasComment("楼层");
  5490. b.Property<string>("geoinfo")
  5491. .HasMaxLength(100)
  5492. .HasColumnType("varchar(100)")
  5493. .HasComment("坐标");
  5494. b.Property<string>("name")
  5495. .HasMaxLength(100)
  5496. .HasColumnType("varchar(100)")
  5497. .HasComment("工位名称");
  5498. b.Property<long?>("org_id")
  5499. .HasColumnType("bigint")
  5500. .HasComment("组织ID");
  5501. b.Property<string>("subids")
  5502. .HasMaxLength(2000)
  5503. .HasColumnType("varchar(2000)")
  5504. .HasComment("组合工位ids");
  5505. b.Property<long>("tenant_id")
  5506. .HasColumnType("bigint")
  5507. .HasComment("企业ID");
  5508. b.Property<long?>("update_by")
  5509. .HasColumnType("bigint")
  5510. .HasComment("修改人");
  5511. b.Property<string>("update_by_name")
  5512. .HasMaxLength(50)
  5513. .HasColumnType("varchar(50)")
  5514. .HasComment("修改人名称");
  5515. b.Property<DateTime?>("update_time")
  5516. .HasColumnType("datetime")
  5517. .HasComment("修改时间");
  5518. b.Property<long?>("work_calendar_id")
  5519. .HasColumnType("bigint")
  5520. .HasComment("工作日历id");
  5521. b.Property<string>("zone")
  5522. .HasMaxLength(100)
  5523. .HasColumnType("varchar(100)")
  5524. .HasComment("区域");
  5525. b.HasKey("workshop_id");
  5526. b.ToTable("mes_workshop", (string)null);
  5527. b.HasComment("工位表");
  5528. });
  5529. modelBuilder.Entity("Bussiness.Model.Tech.mes_workshop_shelf", b =>
  5530. {
  5531. b.Property<long>("workshop_shelf_id")
  5532. .ValueGeneratedOnAdd()
  5533. .HasColumnType("bigint")
  5534. .HasComment("主键");
  5535. b.Property<bool>("IsDeleted")
  5536. .ValueGeneratedOnAdd()
  5537. .HasColumnType("tinyint(1)")
  5538. .HasDefaultValue(false)
  5539. .HasColumnName("IsDeleted")
  5540. .HasComment("删除标识");
  5541. b.Property<long?>("create_by")
  5542. .HasColumnType("bigint")
  5543. .HasComment("创建人id");
  5544. b.Property<string>("create_by_name")
  5545. .HasMaxLength(50)
  5546. .HasColumnType("varchar(50)")
  5547. .HasComment("创建人名称");
  5548. b.Property<DateTime?>("create_time")
  5549. .HasColumnType("datetime")
  5550. .HasComment("创建时间");
  5551. b.Property<long?>("factory_id")
  5552. .HasColumnType("bigint")
  5553. .HasComment("工厂ID");
  5554. b.Property<string>("geoinfo")
  5555. .HasMaxLength(100)
  5556. .HasColumnType("varchar(100)")
  5557. .HasComment("坐标");
  5558. b.Property<long?>("org_id")
  5559. .HasColumnType("bigint")
  5560. .HasComment("组织ID");
  5561. b.Property<int?>("serialno")
  5562. .HasColumnType("int")
  5563. .HasComment("线边仓序列号");
  5564. b.Property<string>("sheifno")
  5565. .HasMaxLength(100)
  5566. .HasColumnType("varchar(100)")
  5567. .HasComment("仓库编号");
  5568. b.Property<long>("tenant_id")
  5569. .HasColumnType("bigint")
  5570. .HasComment("企业ID");
  5571. b.Property<long?>("update_by")
  5572. .HasColumnType("bigint")
  5573. .HasComment("修改人");
  5574. b.Property<string>("update_by_name")
  5575. .HasMaxLength(50)
  5576. .HasColumnType("varchar(50)")
  5577. .HasComment("修改人名称");
  5578. b.Property<DateTime?>("update_time")
  5579. .HasColumnType("datetime")
  5580. .HasComment("修改时间");
  5581. b.Property<long>("workshop_id")
  5582. .HasColumnType("bigint")
  5583. .HasComment("工位id");
  5584. b.HasKey("workshop_shelf_id");
  5585. b.ToTable("mes_workshop_shelf", (string)null);
  5586. b.HasComment("工位关联线边仓表");
  5587. });
  5588. modelBuilder.Entity("Bussiness.Model.Tech.wms_prdprogress", b =>
  5589. {
  5590. b.Property<long>("progress_id")
  5591. .ValueGeneratedOnAdd()
  5592. .HasColumnType("bigint")
  5593. .HasComment("进度字典主键id");
  5594. b.Property<bool>("IsDeleted")
  5595. .ValueGeneratedOnAdd()
  5596. .HasColumnType("tinyint(1)")
  5597. .HasDefaultValue(false)
  5598. .HasColumnName("IsDeleted")
  5599. .HasComment("删除标识");
  5600. b.Property<long?>("create_by")
  5601. .HasColumnType("bigint")
  5602. .HasComment("创建人id");
  5603. b.Property<string>("create_by_name")
  5604. .HasMaxLength(50)
  5605. .HasColumnType("varchar(50)")
  5606. .HasComment("创建人名称");
  5607. b.Property<DateTime?>("create_time")
  5608. .HasColumnType("datetime")
  5609. .HasComment("创建时间");
  5610. b.Property<long?>("factory_id")
  5611. .HasColumnType("bigint")
  5612. .HasComment("工厂ID");
  5613. b.Property<long?>("org_id")
  5614. .HasColumnType("bigint")
  5615. .HasComment("组织ID");
  5616. b.Property<string>("prdprog_name")
  5617. .HasMaxLength(255)
  5618. .HasColumnType("varchar(255)")
  5619. .HasComment("进度名称");
  5620. b.Property<int>("prdprog_seq")
  5621. .HasColumnType("int")
  5622. .HasComment("进度顺序");
  5623. b.Property<string>("prdprog_type")
  5624. .HasMaxLength(255)
  5625. .HasColumnType("varchar(255)")
  5626. .HasComment("进度类型");
  5627. b.Property<bool>("state")
  5628. .HasColumnType("tinyint(1)")
  5629. .HasComment("进度状态1启用0停用");
  5630. b.Property<long>("tenant_id")
  5631. .HasColumnType("bigint")
  5632. .HasComment("企业ID");
  5633. b.Property<long?>("update_by")
  5634. .HasColumnType("bigint")
  5635. .HasComment("修改人");
  5636. b.Property<string>("update_by_name")
  5637. .HasMaxLength(50)
  5638. .HasColumnType("varchar(50)")
  5639. .HasComment("修改人名称");
  5640. b.Property<DateTime?>("update_time")
  5641. .HasColumnType("datetime")
  5642. .HasComment("修改时间");
  5643. b.HasKey("progress_id");
  5644. b.ToTable("wms_prdprogress", (string)null);
  5645. b.HasComment("进度字典");
  5646. });
  5647. modelBuilder.Entity("Bussiness.Model.Tech.wms_seorder", b =>
  5648. {
  5649. b.Property<long>("seorder_id")
  5650. .ValueGeneratedOnAdd()
  5651. .HasColumnType("bigint")
  5652. .HasComment("销售订单id");
  5653. b.Property<bool>("IsDeleted")
  5654. .ValueGeneratedOnAdd()
  5655. .HasColumnType("tinyint(1)")
  5656. .HasDefaultValue(false)
  5657. .HasColumnName("IsDeleted")
  5658. .HasComment("删除标识");
  5659. b.Property<DateTime?>("audit_date")
  5660. .HasColumnType("datetime")
  5661. .HasComment("审核日期");
  5662. b.Property<string>("auditor")
  5663. .HasMaxLength(50)
  5664. .HasColumnType("varchar(50)")
  5665. .HasComment("审核人");
  5666. b.Property<string>("bill_from")
  5667. .HasMaxLength(255)
  5668. .HasColumnType("varchar(255)")
  5669. .HasComment("订单来源");
  5670. b.Property<string>("bill_no")
  5671. .HasMaxLength(50)
  5672. .HasColumnType("varchar(50)")
  5673. .HasComment("订单编号");
  5674. b.Property<string>("biller")
  5675. .HasMaxLength(50)
  5676. .HasColumnType("varchar(50)")
  5677. .HasComment("制单人");
  5678. b.Property<bool>("closed")
  5679. .HasColumnType("tinyint(1)")
  5680. .HasComment("是否关闭1关闭0未关闭");
  5681. b.Property<long?>("create_by")
  5682. .HasColumnType("bigint")
  5683. .HasComment("创建人id");
  5684. b.Property<string>("create_by_name")
  5685. .HasMaxLength(50)
  5686. .HasColumnType("varchar(50)")
  5687. .HasComment("创建人名称");
  5688. b.Property<long?>("create_dept")
  5689. .HasColumnType("bigint")
  5690. .HasComment("创建部门id");
  5691. b.Property<DateTime?>("create_time")
  5692. .HasColumnType("datetime")
  5693. .HasComment("创建时间");
  5694. b.Property<int?>("currency")
  5695. .HasMaxLength(50)
  5696. .HasColumnType("int")
  5697. .HasComment("币种");
  5698. b.Property<int?>("custom_id")
  5699. .HasColumnType("int")
  5700. .HasComment("客户id");
  5701. b.Property<string>("custom_level")
  5702. .HasMaxLength(80)
  5703. .HasColumnType("varchar(80)")
  5704. .HasComment("客户级别");
  5705. b.Property<string>("custom_name")
  5706. .HasMaxLength(80)
  5707. .HasColumnType("varchar(80)")
  5708. .HasComment("客户名称");
  5709. b.Property<string>("custom_no")
  5710. .HasMaxLength(80)
  5711. .HasColumnType("varchar(80)")
  5712. .HasComment("客户编码");
  5713. b.Property<DateTime?>("date")
  5714. .HasColumnType("datetime")
  5715. .HasComment("签订日期");
  5716. b.Property<string>("emp_name")
  5717. .HasMaxLength(50)
  5718. .HasColumnType("varchar(50)")
  5719. .HasComment("业务员名称");
  5720. b.Property<string>("emp_no")
  5721. .HasMaxLength(50)
  5722. .HasColumnType("varchar(50)")
  5723. .HasComment("业务员工号");
  5724. b.Property<decimal?>("exchange_rate")
  5725. .HasPrecision(20, 8)
  5726. .HasColumnType("decimal(20,8)")
  5727. .HasComment("汇率");
  5728. b.Property<long?>("factory_id")
  5729. .HasColumnType("bigint")
  5730. .HasComment("工厂ID");
  5731. b.Property<DateTime?>("op_time")
  5732. .HasColumnType("datetime")
  5733. .HasComment("操作时间");
  5734. b.Property<int?>("order_type")
  5735. .HasColumnType("int")
  5736. .HasComment("订单类别(销售、计划)");
  5737. b.Property<long?>("org_id")
  5738. .HasColumnType("bigint")
  5739. .HasComment("组织ID");
  5740. b.Property<int?>("out_stock_type")
  5741. .HasColumnType("int")
  5742. .HasComment("销售出库类型");
  5743. b.Property<string>("project_code")
  5744. .HasMaxLength(255)
  5745. .HasColumnType("varchar(255)")
  5746. .HasComment("项目编号");
  5747. b.Property<string>("project_name")
  5748. .HasMaxLength(255)
  5749. .HasColumnType("varchar(255)")
  5750. .HasComment("项目名称");
  5751. b.Property<DateTime?>("rdate")
  5752. .HasColumnType("datetime")
  5753. .HasComment("采购下单日期");
  5754. b.Property<string>("sale_dept_code")
  5755. .HasMaxLength(80)
  5756. .HasColumnType("varchar(80)")
  5757. .HasComment("销售部门编号");
  5758. b.Property<long?>("sale_dept_id")
  5759. .HasColumnType("bigint")
  5760. .HasComment("销售部门id");
  5761. b.Property<string>("sale_dept_name")
  5762. .HasMaxLength(80)
  5763. .HasColumnType("varchar(80)")
  5764. .HasComment("销售部门名称");
  5765. b.Property<int?>("sale_style")
  5766. .HasColumnType("int")
  5767. .HasComment("销售订单类型");
  5768. b.Property<string>("sale_style_no")
  5769. .HasMaxLength(80)
  5770. .HasColumnType("varchar(80)")
  5771. .HasComment("销售订单类型编码");
  5772. b.Property<int?>("status")
  5773. .HasColumnType("int")
  5774. .HasComment("订单状态");
  5775. b.Property<long>("tenant_id")
  5776. .HasColumnType("bigint")
  5777. .HasComment("企业ID");
  5778. b.Property<int?>("trade_type")
  5779. .HasColumnType("int")
  5780. .HasComment("贸易类型");
  5781. b.Property<long?>("update_by")
  5782. .HasColumnType("bigint")
  5783. .HasComment("修改人");
  5784. b.Property<string>("update_by_name")
  5785. .HasMaxLength(50)
  5786. .HasColumnType("varchar(50)")
  5787. .HasComment("修改人名称");
  5788. b.Property<DateTime?>("update_time")
  5789. .HasColumnType("datetime")
  5790. .HasComment("修改时间");
  5791. b.Property<int?>("urgent")
  5792. .HasColumnType("int")
  5793. .HasComment("加急级别");
  5794. b.HasKey("seorder_id");
  5795. b.ToTable("wms_seorder", (string)null);
  5796. b.HasComment("销售订单");
  5797. });
  5798. modelBuilder.Entity("Bussiness.Model.Tech.wms_seorderentry", b =>
  5799. {
  5800. b.Property<long>("seorderentry_id")
  5801. .ValueGeneratedOnAdd()
  5802. .HasColumnType("bigint")
  5803. .HasComment("销售订单明细表id");
  5804. b.Property<bool>("IsDeleted")
  5805. .ValueGeneratedOnAdd()
  5806. .HasColumnType("tinyint(1)")
  5807. .HasDefaultValue(false)
  5808. .HasColumnName("IsDeleted")
  5809. .HasComment("删除标识");
  5810. b.Property<DateTime?>("adjust_date")
  5811. .HasColumnType("datetime")
  5812. .HasComment("调整建议交期");
  5813. b.Property<decimal?>("amount")
  5814. .HasPrecision(20, 8)
  5815. .HasColumnType("decimal(20,8)")
  5816. .HasComment("金额");
  5817. b.Property<decimal?>("aux_price_discount")
  5818. .HasPrecision(20, 8)
  5819. .HasColumnType("decimal(20,8)")
  5820. .HasComment("实际含税单价");
  5821. b.Property<string>("bill_no")
  5822. .HasMaxLength(50)
  5823. .HasColumnType("varchar(50)")
  5824. .HasComment("销售订单编号");
  5825. b.Property<string>("bom_number")
  5826. .HasMaxLength(255)
  5827. .HasColumnType("varchar(255)")
  5828. .HasComment("BOM编号");
  5829. b.Property<string>("contract_no")
  5830. .HasMaxLength(50)
  5831. .HasColumnType("varchar(50)")
  5832. .HasComment("合同编号");
  5833. b.Property<long?>("create_by")
  5834. .HasColumnType("bigint")
  5835. .HasComment("创建人id");
  5836. b.Property<string>("create_by_name")
  5837. .HasMaxLength(50)
  5838. .HasColumnType("varchar(50)")
  5839. .HasComment("创建人名称");
  5840. b.Property<long?>("create_dept")
  5841. .HasColumnType("bigint")
  5842. .HasComment("创建部门id");
  5843. b.Property<DateTime?>("create_time")
  5844. .HasColumnType("datetime")
  5845. .HasComment("创建时间");
  5846. b.Property<string>("custom_order_bill_no")
  5847. .HasMaxLength(50)
  5848. .HasColumnType("varchar(50)")
  5849. .HasComment("客户订单号");
  5850. b.Property<int?>("custom_order_entryid")
  5851. .HasColumnType("int")
  5852. .HasComment("客户订单行号");
  5853. b.Property<string>("custom_order_itemno")
  5854. .HasMaxLength(80)
  5855. .HasColumnType("varchar(80)")
  5856. .HasComment("客户料号");
  5857. b.Property<DateTime?>("date")
  5858. .HasColumnType("datetime")
  5859. .HasComment("最终交货日期");
  5860. b.Property<decimal?>("deliver_count")
  5861. .HasPrecision(20, 8)
  5862. .HasColumnType("decimal(20,8)")
  5863. .HasComment("发货数量(已出库数量)");
  5864. b.Property<decimal?>("deliver_notice_count")
  5865. .HasPrecision(20, 8)
  5866. .HasColumnType("decimal(20,8)")
  5867. .HasComment("发货通知单数量");
  5868. b.Property<decimal?>("discount_amount")
  5869. .HasPrecision(20, 8)
  5870. .HasColumnType("decimal(20,8)")
  5871. .HasComment("折扣额");
  5872. b.Property<decimal?>("discount_rate")
  5873. .HasPrecision(20, 8)
  5874. .HasColumnType("decimal(20,8)")
  5875. .HasComment("折扣率");
  5876. b.Property<int?>("entry_seq")
  5877. .HasColumnType("int")
  5878. .HasComment("行号");
  5879. b.Property<long?>("factory_id")
  5880. .HasColumnType("bigint")
  5881. .HasComment("工厂ID");
  5882. b.Property<string>("fms_number")
  5883. .HasMaxLength(255)
  5884. .HasColumnType("varchar(255)")
  5885. .HasComment("FMS旧料号");
  5886. b.Property<bool?>("is_checked")
  5887. .HasColumnType("tinyint(1)")
  5888. .HasComment("是否完成检测,0未完成,1完成");
  5889. b.Property<string>("item_name")
  5890. .HasMaxLength(255)
  5891. .HasColumnType("varchar(255)")
  5892. .HasComment("产品名称");
  5893. b.Property<string>("item_number")
  5894. .HasMaxLength(255)
  5895. .HasColumnType("varchar(255)")
  5896. .HasComment("产品代码");
  5897. b.Property<string>("map_name")
  5898. .HasMaxLength(255)
  5899. .HasColumnType("varchar(255)")
  5900. .HasComment("代码名称");
  5901. b.Property<string>("map_number")
  5902. .HasMaxLength(255)
  5903. .HasColumnType("varchar(255)")
  5904. .HasComment("对应代码");
  5905. b.Property<bool?>("mrp_closed")
  5906. .HasColumnType("tinyint(1)")
  5907. .HasComment("mrp关闭");
  5908. b.Property<DateTime?>("op_time")
  5909. .HasColumnType("datetime")
  5910. .HasComment("操作时间");
  5911. b.Property<long?>("org_id")
  5912. .HasColumnType("bigint")
  5913. .HasComment("组织ID");
  5914. b.Property<string>("out_stock_type")
  5915. .HasMaxLength(50)
  5916. .HasColumnType("varchar(50)")
  5917. .HasComment("出库类型");
  5918. b.Property<DateTime?>("plan_date")
  5919. .HasColumnType("datetime")
  5920. .HasComment("客户要求交期");
  5921. b.Property<string>("planner_name")
  5922. .HasMaxLength(50)
  5923. .HasColumnType("varchar(50)")
  5924. .HasComment("计划员");
  5925. b.Property<string>("planner_no")
  5926. .HasMaxLength(50)
  5927. .HasColumnType("varchar(50)")
  5928. .HasComment("计划员_工号");
  5929. b.Property<decimal?>("price")
  5930. .HasPrecision(20, 8)
  5931. .HasColumnType("decimal(20,8)")
  5932. .HasComment("单价");
  5933. b.Property<string>("progress")
  5934. .HasMaxLength(255)
  5935. .HasColumnType("varchar(255)")
  5936. .HasComment("订单进度");
  5937. b.Property<decimal?>("qty")
  5938. .HasPrecision(20, 8)
  5939. .HasColumnType("decimal(20,8)")
  5940. .HasComment("订单数量");
  5941. b.Property<string>("remark")
  5942. .HasMaxLength(255)
  5943. .HasColumnType("varchar(255)")
  5944. .HasComment("备注");
  5945. b.Property<int?>("rnumber")
  5946. .HasColumnType("int")
  5947. .HasComment("评审次数");
  5948. b.Property<int?>("rstate")
  5949. .HasColumnType("int")
  5950. .HasComment("评审状态");
  5951. b.Property<string>("se_reject_reason")
  5952. .HasMaxLength(80)
  5953. .HasColumnType("varchar(80)")
  5954. .HasComment("业务员工号");
  5955. b.Property<long>("seorder_id")
  5956. .HasColumnType("bigint")
  5957. .HasComment("销售订单id");
  5958. b.Property<string>("soure_bill_no")
  5959. .HasMaxLength(50)
  5960. .HasColumnType("varchar(50)")
  5961. .HasComment("源单编号");
  5962. b.Property<string>("specification")
  5963. .HasMaxLength(255)
  5964. .HasColumnType("varchar(255)")
  5965. .HasComment("规格型号");
  5966. b.Property<bool>("state")
  5967. .HasColumnType("tinyint(1)")
  5968. .HasComment("数据状态标识 0停用 1启用");
  5969. b.Property<DateTime?>("sys_capacity_date")
  5970. .HasColumnType("datetime")
  5971. .HasComment("系统建议交期(产能)");
  5972. b.Property<DateTime?>("sys_material_date")
  5973. .HasColumnType("datetime")
  5974. .HasComment("系统建议交期(物料)");
  5975. b.Property<decimal?>("tax_amtount")
  5976. .HasPrecision(20, 8)
  5977. .HasColumnType("decimal(20,8)")
  5978. .HasComment("销项税额");
  5979. b.Property<decimal?>("tax_price")
  5980. .HasPrecision(20, 8)
  5981. .HasColumnType("decimal(20,8)")
  5982. .HasComment("含税单价");
  5983. b.Property<decimal?>("tax_rate")
  5984. .HasPrecision(20, 8)
  5985. .HasColumnType("decimal(20,8)")
  5986. .HasComment("税率");
  5987. b.Property<long>("tenant_id")
  5988. .HasColumnType("bigint")
  5989. .HasComment("企业ID");
  5990. b.Property<decimal?>("total_amount")
  5991. .HasPrecision(20, 8)
  5992. .HasColumnType("decimal(20,8)")
  5993. .HasComment("价税合计");
  5994. b.Property<string>("unit")
  5995. .HasMaxLength(50)
  5996. .HasColumnType("varchar(50)")
  5997. .HasComment("单位");
  5998. b.Property<long?>("update_by")
  5999. .HasColumnType("bigint")
  6000. .HasComment("修改人");
  6001. b.Property<string>("update_by_name")
  6002. .HasMaxLength(50)
  6003. .HasColumnType("varchar(50)")
  6004. .HasComment("修改人名称");
  6005. b.Property<DateTime?>("update_time")
  6006. .HasColumnType("datetime")
  6007. .HasComment("修改时间");
  6008. b.Property<int?>("urgent")
  6009. .HasColumnType("int")
  6010. .HasComment("加急级别");
  6011. b.HasKey("seorderentry_id");
  6012. b.ToTable("wms_seorderentry", (string)null);
  6013. b.HasComment("销售订单明细表");
  6014. });
  6015. modelBuilder.Entity("Bussiness.Model.Tech.wms_seorderprog", b =>
  6016. {
  6017. b.Property<long>("seorderprog_id")
  6018. .ValueGeneratedOnAdd()
  6019. .HasColumnType("bigint")
  6020. .HasComment("销售订单进度表");
  6021. b.Property<bool>("IsDeleted")
  6022. .ValueGeneratedOnAdd()
  6023. .HasColumnType("tinyint(1)")
  6024. .HasDefaultValue(false)
  6025. .HasColumnName("IsDeleted")
  6026. .HasComment("删除标识");
  6027. b.Property<string>("bill_no")
  6028. .HasMaxLength(80)
  6029. .HasColumnType("varchar(80)")
  6030. .HasComment("销售订单编号");
  6031. b.Property<long?>("create_by")
  6032. .HasColumnType("bigint")
  6033. .HasComment("创建人id");
  6034. b.Property<string>("create_by_name")
  6035. .HasMaxLength(50)
  6036. .HasColumnType("varchar(50)")
  6037. .HasComment("创建人名称");
  6038. b.Property<long?>("create_dept")
  6039. .HasColumnType("bigint")
  6040. .HasComment("创建部门id");
  6041. b.Property<DateTime?>("create_time")
  6042. .HasColumnType("datetime")
  6043. .HasComment("创建时间");
  6044. b.Property<int?>("entry_seq")
  6045. .HasColumnType("int")
  6046. .HasComment("销售订单行号");
  6047. b.Property<long?>("factory_id")
  6048. .HasColumnType("bigint")
  6049. .HasComment("工厂ID");
  6050. b.Property<long?>("org_id")
  6051. .HasColumnType("bigint")
  6052. .HasComment("组织ID");
  6053. b.Property<long>("seorder_id")
  6054. .HasColumnType("bigint")
  6055. .HasComment("销售订单id");
  6056. b.Property<long?>("seprog_by_id")
  6057. .HasColumnType("bigint")
  6058. .HasComment("提交人id");
  6059. b.Property<string>("seprog_by_name")
  6060. .HasMaxLength(80)
  6061. .HasColumnType("varchar(80)")
  6062. .HasComment("提交人姓名");
  6063. b.Property<DateTime?>("seprog_etime")
  6064. .HasColumnType("datetime")
  6065. .HasComment("完成时间");
  6066. b.Property<string>("seprog_stage")
  6067. .HasMaxLength(50)
  6068. .HasColumnType("varchar(50)")
  6069. .HasComment("进度阶段");
  6070. b.Property<long?>("seprog_stage_id")
  6071. .HasColumnType("bigint")
  6072. .HasComment("进度阶段id");
  6073. b.Property<DateTime?>("seprog_stime")
  6074. .HasColumnType("datetime")
  6075. .HasComment("开始时间");
  6076. b.Property<int?>("seprog_type")
  6077. .HasColumnType("int")
  6078. .HasComment("进度类型");
  6079. b.Property<long>("tenant_id")
  6080. .HasColumnType("bigint")
  6081. .HasComment("企业ID");
  6082. b.Property<long?>("update_by")
  6083. .HasColumnType("bigint")
  6084. .HasComment("修改人");
  6085. b.Property<string>("update_by_name")
  6086. .HasMaxLength(50)
  6087. .HasColumnType("varchar(50)")
  6088. .HasComment("修改人名称");
  6089. b.Property<DateTime?>("update_time")
  6090. .HasColumnType("datetime")
  6091. .HasComment("修改时间");
  6092. b.HasKey("seorderprog_id");
  6093. b.ToTable("wms_seorderprog", (string)null);
  6094. b.HasComment("销售订单进度表");
  6095. });
  6096. modelBuilder.Entity("Bussiness.Model.Tech.wms_seorderreview", b =>
  6097. {
  6098. b.Property<long>("review_id")
  6099. .ValueGeneratedOnAdd()
  6100. .HasColumnType("bigint")
  6101. .HasComment("销售订单评审id");
  6102. b.Property<bool>("IsDeleted")
  6103. .ValueGeneratedOnAdd()
  6104. .HasColumnType("tinyint(1)")
  6105. .HasDefaultValue(false)
  6106. .HasColumnName("IsDeleted")
  6107. .HasComment("删除标识");
  6108. b.Property<long?>("audit_procedure_id")
  6109. .HasColumnType("bigint")
  6110. .HasComment("当前审批步骤id");
  6111. b.Property<string>("audit_procedure_name")
  6112. .HasMaxLength(255)
  6113. .HasColumnType("varchar(255)")
  6114. .HasComment("当前审批步骤名称");
  6115. b.Property<string>("bill_no")
  6116. .HasMaxLength(80)
  6117. .HasColumnType("varchar(80)")
  6118. .HasComment("销售订单编号");
  6119. b.Property<long?>("create_by")
  6120. .HasColumnType("bigint")
  6121. .HasComment("创建人id");
  6122. b.Property<string>("create_by_name")
  6123. .HasMaxLength(50)
  6124. .HasColumnType("varchar(50)")
  6125. .HasComment("创建人名称");
  6126. b.Property<DateTime?>("create_time")
  6127. .HasColumnType("datetime")
  6128. .HasComment("创建时间");
  6129. b.Property<int?>("entry_seq")
  6130. .HasColumnType("int")
  6131. .HasComment("销售订单行号");
  6132. b.Property<long?>("factory_id")
  6133. .HasColumnType("bigint")
  6134. .HasComment("工厂ID");
  6135. b.Property<long?>("org_id")
  6136. .HasColumnType("bigint")
  6137. .HasComment("组织ID");
  6138. b.Property<string>("reject_reason")
  6139. .HasMaxLength(255)
  6140. .HasColumnType("varchar(255)")
  6141. .HasComment("拒绝原因");
  6142. b.Property<DateTime?>("review_adjust_time")
  6143. .HasMaxLength(255)
  6144. .HasColumnType("datetime")
  6145. .HasComment("可接受交期");
  6146. b.Property<long?>("review_by_id")
  6147. .HasColumnType("bigint")
  6148. .HasComment("提交人id");
  6149. b.Property<string>("review_by_name")
  6150. .HasMaxLength(80)
  6151. .HasColumnType("varchar(80)")
  6152. .HasComment("提交人姓名");
  6153. b.Property<string>("review_reject_level")
  6154. .HasMaxLength(255)
  6155. .HasColumnType("varchar(255)")
  6156. .HasComment("拒绝等级");
  6157. b.Property<string>("review_reject_remark")
  6158. .HasMaxLength(255)
  6159. .HasColumnType("varchar(255)")
  6160. .HasComment("拒绝备注");
  6161. b.Property<string>("review_result")
  6162. .HasMaxLength(255)
  6163. .HasColumnType("varchar(255)")
  6164. .HasComment("评审结果");
  6165. b.Property<DateTime?>("review_stime")
  6166. .HasColumnType("datetime")
  6167. .HasComment("提交时间");
  6168. b.Property<DateTime?>("review_time")
  6169. .HasColumnType("datetime")
  6170. .HasComment("评审时间");
  6171. b.Property<string>("review_title")
  6172. .HasMaxLength(255)
  6173. .HasColumnType("varchar(255)")
  6174. .HasComment("标题");
  6175. b.Property<string>("review_type")
  6176. .IsRequired()
  6177. .HasColumnType("longtext")
  6178. .HasComment("业务类型");
  6179. b.Property<long?>("reviewer_id")
  6180. .HasColumnType("bigint")
  6181. .HasComment("评审人id");
  6182. b.Property<string>("reviewer_name")
  6183. .HasMaxLength(80)
  6184. .HasColumnType("varchar(80)")
  6185. .HasComment("评审人姓名");
  6186. b.Property<long>("seorder_id")
  6187. .HasColumnType("bigint")
  6188. .HasComment("销售订单id");
  6189. b.Property<long>("tenant_id")
  6190. .HasColumnType("bigint")
  6191. .HasComment("企业ID");
  6192. b.Property<long?>("update_by")
  6193. .HasColumnType("bigint")
  6194. .HasComment("修改人");
  6195. b.Property<string>("update_by_name")
  6196. .HasMaxLength(50)
  6197. .HasColumnType("varchar(50)")
  6198. .HasComment("修改人名称");
  6199. b.Property<DateTime?>("update_time")
  6200. .HasColumnType("datetime")
  6201. .HasComment("修改时间");
  6202. b.HasKey("review_id");
  6203. b.ToTable("wms_seorderreview", (string)null);
  6204. b.HasComment("销售订单评审表");
  6205. });
  6206. modelBuilder.Entity("Bussiness.Model.Tech.wms_shipnotice", b =>
  6207. {
  6208. b.Property<long>("shipnotice_id")
  6209. .ValueGeneratedOnAdd()
  6210. .HasColumnType("bigint")
  6211. .HasComment("发运通知单主键id");
  6212. b.Property<bool>("IsDeleted")
  6213. .ValueGeneratedOnAdd()
  6214. .HasColumnType("tinyint(1)")
  6215. .HasDefaultValue(false)
  6216. .HasColumnName("IsDeleted")
  6217. .HasComment("删除标识");
  6218. b.Property<string>("address")
  6219. .HasMaxLength(255)
  6220. .HasColumnType("varchar(255)")
  6221. .HasComment("发运地址");
  6222. b.Property<long?>("create_by")
  6223. .HasColumnType("bigint")
  6224. .HasComment("创建人id");
  6225. b.Property<string>("create_by_name")
  6226. .HasMaxLength(50)
  6227. .HasColumnType("varchar(50)")
  6228. .HasComment("创建人名称");
  6229. b.Property<DateTime?>("create_time")
  6230. .HasColumnType("datetime")
  6231. .HasComment("创建时间");
  6232. b.Property<long?>("factory_id")
  6233. .HasColumnType("bigint")
  6234. .HasComment("工厂ID");
  6235. b.Property<long?>("org_id")
  6236. .HasColumnType("bigint")
  6237. .HasComment("组织ID");
  6238. b.Property<DateTime>("shipnotice_date")
  6239. .HasColumnType("datetime")
  6240. .HasComment("发运时间");
  6241. b.Property<string>("shipnotice_no")
  6242. .IsRequired()
  6243. .HasMaxLength(80)
  6244. .HasColumnType("varchar(80)")
  6245. .HasComment("发运通知单号");
  6246. b.Property<long>("shipplan_id")
  6247. .HasColumnType("bigint")
  6248. .HasComment("发货计划id");
  6249. b.Property<string>("shipplan_no")
  6250. .HasMaxLength(80)
  6251. .HasColumnType("varchar(80)")
  6252. .HasComment("发货计划号");
  6253. b.Property<string>("state")
  6254. .IsRequired()
  6255. .HasMaxLength(80)
  6256. .HasColumnType("varchar(80)")
  6257. .HasComment("状态");
  6258. b.Property<long>("tenant_id")
  6259. .HasColumnType("bigint")
  6260. .HasComment("企业ID");
  6261. b.Property<long?>("update_by")
  6262. .HasColumnType("bigint")
  6263. .HasComment("修改人");
  6264. b.Property<string>("update_by_name")
  6265. .HasMaxLength(50)
  6266. .HasColumnType("varchar(50)")
  6267. .HasComment("修改人名称");
  6268. b.Property<DateTime?>("update_time")
  6269. .HasColumnType("datetime")
  6270. .HasComment("修改时间");
  6271. b.HasKey("shipnotice_id");
  6272. b.ToTable("wms_shipnotice", (string)null);
  6273. b.HasComment("发货通知单");
  6274. });
  6275. modelBuilder.Entity("Bussiness.Model.Tech.wms_shipnoticelist", b =>
  6276. {
  6277. b.Property<long>("shipnoticelist_id")
  6278. .ValueGeneratedOnAdd()
  6279. .HasColumnType("bigint")
  6280. .HasComment("发运通知单详情id");
  6281. b.Property<bool>("IsDeleted")
  6282. .ValueGeneratedOnAdd()
  6283. .HasColumnType("tinyint(1)")
  6284. .HasDefaultValue(false)
  6285. .HasColumnName("IsDeleted")
  6286. .HasComment("删除标识");
  6287. b.Property<string>("address")
  6288. .HasMaxLength(255)
  6289. .HasColumnType("varchar(255)")
  6290. .HasComment("发运地址");
  6291. b.Property<long?>("create_by")
  6292. .HasColumnType("bigint")
  6293. .HasComment("创建人id");
  6294. b.Property<string>("create_by_name")
  6295. .HasMaxLength(50)
  6296. .HasColumnType("varchar(50)")
  6297. .HasComment("创建人名称");
  6298. b.Property<DateTime?>("create_time")
  6299. .HasColumnType("datetime")
  6300. .HasComment("创建时间");
  6301. b.Property<long?>("factory_id")
  6302. .HasColumnType("bigint")
  6303. .HasComment("工厂ID");
  6304. b.Property<long?>("org_id")
  6305. .HasColumnType("bigint")
  6306. .HasComment("组织ID");
  6307. b.Property<long?>("shipnotice_custid")
  6308. .HasColumnType("bigint")
  6309. .HasComment("客户id");
  6310. b.Property<string>("shipnotice_custname")
  6311. .HasMaxLength(255)
  6312. .HasColumnType("varchar(255)")
  6313. .HasComment("客户名称");
  6314. b.Property<string>("shipnotice_custno")
  6315. .HasMaxLength(80)
  6316. .HasColumnType("varchar(80)")
  6317. .HasComment("客户编号");
  6318. b.Property<long>("shipnotice_id")
  6319. .HasMaxLength(80)
  6320. .HasColumnType("bigint")
  6321. .HasComment("发货计划号");
  6322. b.Property<decimal?>("shipplanl_fqty")
  6323. .HasPrecision(20, 10)
  6324. .HasColumnType("decimal(20,10)")
  6325. .HasComment("实际发货数量");
  6326. b.Property<decimal?>("shipplanl_iqty")
  6327. .HasPrecision(20, 10)
  6328. .HasColumnType("decimal(20,10)")
  6329. .HasComment("计划发货数量");
  6330. b.Property<int?>("shipplanl_soeid")
  6331. .HasColumnType("int")
  6332. .HasComment("销售单行号");
  6333. b.Property<long?>("shipplanl_soid")
  6334. .HasColumnType("bigint")
  6335. .HasComment("销售单id");
  6336. b.Property<string>("shipplanl_sono")
  6337. .HasMaxLength(80)
  6338. .HasColumnType("varchar(80)")
  6339. .HasComment("销售单号");
  6340. b.Property<long?>("shipplanlist_id")
  6341. .HasColumnType("bigint")
  6342. .HasComment("发货详情id");
  6343. b.Property<string>("state")
  6344. .IsRequired()
  6345. .HasMaxLength(80)
  6346. .HasColumnType("varchar(80)")
  6347. .HasComment("状态");
  6348. b.Property<long>("tenant_id")
  6349. .HasColumnType("bigint")
  6350. .HasComment("企业ID");
  6351. b.Property<long?>("update_by")
  6352. .HasColumnType("bigint")
  6353. .HasComment("修改人");
  6354. b.Property<string>("update_by_name")
  6355. .HasMaxLength(50)
  6356. .HasColumnType("varchar(50)")
  6357. .HasComment("修改人名称");
  6358. b.Property<DateTime?>("update_time")
  6359. .HasColumnType("datetime")
  6360. .HasComment("修改时间");
  6361. b.HasKey("shipnoticelist_id");
  6362. b.ToTable("wms_shipnoticelist", (string)null);
  6363. b.HasComment("发货通知单明细表");
  6364. });
  6365. modelBuilder.Entity("Bussiness.Model.Tech.wms_shipplan", b =>
  6366. {
  6367. b.Property<long>("shipplan_id")
  6368. .ValueGeneratedOnAdd()
  6369. .HasColumnType("bigint")
  6370. .HasComment("发货计划表主键");
  6371. b.Property<bool>("IsDeleted")
  6372. .ValueGeneratedOnAdd()
  6373. .HasColumnType("tinyint(1)")
  6374. .HasDefaultValue(false)
  6375. .HasColumnName("IsDeleted")
  6376. .HasComment("删除标识");
  6377. b.Property<long?>("create_by")
  6378. .HasColumnType("bigint")
  6379. .HasComment("创建人id");
  6380. b.Property<string>("create_by_name")
  6381. .HasMaxLength(50)
  6382. .HasColumnType("varchar(50)")
  6383. .HasComment("创建人名称");
  6384. b.Property<DateTime?>("create_time")
  6385. .HasColumnType("datetime")
  6386. .HasComment("创建时间");
  6387. b.Property<long?>("factory_id")
  6388. .HasColumnType("bigint")
  6389. .HasComment("工厂ID");
  6390. b.Property<long?>("org_id")
  6391. .HasColumnType("bigint")
  6392. .HasComment("组织ID");
  6393. b.Property<DateTime?>("shipplan_date")
  6394. .HasColumnType("datetime")
  6395. .HasComment("发货计划时间");
  6396. b.Property<string>("shipplan_no")
  6397. .HasMaxLength(80)
  6398. .HasColumnType("varchar(80)")
  6399. .HasComment("发货计划编号");
  6400. b.Property<string>("state")
  6401. .HasMaxLength(80)
  6402. .HasColumnType("varchar(80)")
  6403. .HasComment("状态");
  6404. b.Property<long>("tenant_id")
  6405. .HasColumnType("bigint")
  6406. .HasComment("企业ID");
  6407. b.Property<long?>("update_by")
  6408. .HasColumnType("bigint")
  6409. .HasComment("修改人");
  6410. b.Property<string>("update_by_name")
  6411. .HasMaxLength(50)
  6412. .HasColumnType("varchar(50)")
  6413. .HasComment("修改人名称");
  6414. b.Property<DateTime?>("update_time")
  6415. .HasColumnType("datetime")
  6416. .HasComment("修改时间");
  6417. b.HasKey("shipplan_id");
  6418. b.ToTable("wms_shipplan", (string)null);
  6419. b.HasComment("发货计划表");
  6420. });
  6421. modelBuilder.Entity("Bussiness.Model.Tech.work_calendar", b =>
  6422. {
  6423. b.Property<long>("work_calendar_id")
  6424. .ValueGeneratedOnAdd()
  6425. .HasColumnType("bigint")
  6426. .HasComment("工作日历主键");
  6427. b.Property<bool>("IsDeleted")
  6428. .ValueGeneratedOnAdd()
  6429. .HasColumnType("tinyint(1)")
  6430. .HasDefaultValue(false)
  6431. .HasColumnName("IsDeleted")
  6432. .HasComment("删除标识");
  6433. b.Property<int?>("calendar1")
  6434. .HasColumnType("int")
  6435. .HasComment("周1");
  6436. b.Property<int?>("calendar2")
  6437. .HasColumnType("int")
  6438. .HasComment("周2");
  6439. b.Property<int?>("calendar3")
  6440. .HasColumnType("int")
  6441. .HasComment("周3");
  6442. b.Property<int?>("calendar4")
  6443. .HasColumnType("int")
  6444. .HasComment("周4");
  6445. b.Property<int?>("calendar5")
  6446. .HasColumnType("int")
  6447. .HasComment("周5");
  6448. b.Property<int?>("calendar6")
  6449. .HasColumnType("int")
  6450. .HasComment("周6");
  6451. b.Property<int?>("calendar7")
  6452. .HasColumnType("int")
  6453. .HasComment("周7");
  6454. b.Property<long?>("create_by")
  6455. .HasColumnType("bigint")
  6456. .HasComment("创建人id");
  6457. b.Property<string>("create_by_name")
  6458. .HasMaxLength(50)
  6459. .HasColumnType("varchar(50)")
  6460. .HasComment("创建人名称");
  6461. b.Property<DateTime?>("create_time")
  6462. .HasColumnType("datetime")
  6463. .HasComment("创建时间");
  6464. b.Property<DateTime?>("end_time")
  6465. .HasColumnType("datetime")
  6466. .HasComment("结束时间");
  6467. b.Property<long?>("factory_id")
  6468. .HasColumnType("bigint")
  6469. .HasComment("工厂ID");
  6470. b.Property<long?>("org_id")
  6471. .HasColumnType("bigint")
  6472. .HasComment("组织ID");
  6473. b.Property<int?>("rest_period")
  6474. .HasColumnType("int")
  6475. .HasComment("休息周期");
  6476. b.Property<long?>("shift_id")
  6477. .HasColumnType("bigint")
  6478. .HasComment("班制id");
  6479. b.Property<int?>("standard_period")
  6480. .HasColumnType("int")
  6481. .HasComment("标准周期");
  6482. b.Property<DateTime?>("start_time")
  6483. .HasColumnType("datetime")
  6484. .HasComment("开始时间");
  6485. b.Property<long>("tenant_id")
  6486. .HasColumnType("bigint")
  6487. .HasComment("企业ID");
  6488. b.Property<long?>("update_by")
  6489. .HasColumnType("bigint")
  6490. .HasComment("修改人");
  6491. b.Property<string>("update_by_name")
  6492. .HasMaxLength(50)
  6493. .HasColumnType("varchar(50)")
  6494. .HasComment("修改人名称");
  6495. b.Property<DateTime?>("update_time")
  6496. .HasColumnType("datetime")
  6497. .HasComment("修改时间");
  6498. b.Property<string>("work_calendar_name")
  6499. .HasMaxLength(100)
  6500. .HasColumnType("varchar(100)")
  6501. .HasComment("工作日历名称");
  6502. b.Property<string>("work_calendar_no")
  6503. .HasMaxLength(100)
  6504. .HasColumnType("varchar(100)")
  6505. .HasComment("工作日历编码");
  6506. b.Property<int?>("work_period")
  6507. .HasColumnType("int")
  6508. .HasComment("工作周期");
  6509. b.HasKey("work_calendar_id");
  6510. b.ToTable("work_calendar", (string)null);
  6511. b.HasComment("工作日历表");
  6512. });
  6513. modelBuilder.Entity("Bussiness.Model.Tech.work_calendar_list", b =>
  6514. {
  6515. b.Property<long>("work_cal_list_id")
  6516. .ValueGeneratedOnAdd()
  6517. .HasColumnType("bigint")
  6518. .HasComment("工作日历明细主键");
  6519. b.Property<bool>("IsDeleted")
  6520. .ValueGeneratedOnAdd()
  6521. .HasColumnType("tinyint(1)")
  6522. .HasDefaultValue(false)
  6523. .HasColumnName("IsDeleted")
  6524. .HasComment("删除标识");
  6525. b.Property<long?>("create_by")
  6526. .HasColumnType("bigint")
  6527. .HasComment("创建人id");
  6528. b.Property<string>("create_by_name")
  6529. .HasMaxLength(50)
  6530. .HasColumnType("varchar(50)")
  6531. .HasComment("创建人名称");
  6532. b.Property<DateTime?>("create_time")
  6533. .HasColumnType("datetime")
  6534. .HasComment("创建时间");
  6535. b.Property<long?>("factory_id")
  6536. .HasColumnType("bigint")
  6537. .HasComment("工厂ID");
  6538. b.Property<long?>("org_id")
  6539. .HasColumnType("bigint")
  6540. .HasComment("组织ID");
  6541. b.Property<long>("tenant_id")
  6542. .HasColumnType("bigint")
  6543. .HasComment("企业ID");
  6544. b.Property<long?>("update_by")
  6545. .HasColumnType("bigint")
  6546. .HasComment("修改人");
  6547. b.Property<string>("update_by_name")
  6548. .HasMaxLength(50)
  6549. .HasColumnType("varchar(50)")
  6550. .HasComment("修改人名称");
  6551. b.Property<DateTime?>("update_time")
  6552. .HasColumnType("datetime")
  6553. .HasComment("修改时间");
  6554. b.Property<DateTime?>("work_cal_list_date")
  6555. .HasColumnType("datetime")
  6556. .HasComment("日期");
  6557. b.Property<int?>("work_cal_list_num")
  6558. .HasColumnType("int")
  6559. .HasComment("班次数");
  6560. b.Property<int?>("work_cal_list_times")
  6561. .HasColumnType("int")
  6562. .HasComment("工作时长(分钟)");
  6563. b.Property<int?>("work_cal_list_type")
  6564. .HasColumnType("int")
  6565. .HasComment("类型:1-工作日;0-休息日");
  6566. b.Property<long>("work_calendar_id")
  6567. .HasColumnType("bigint")
  6568. .HasComment("工作日历id");
  6569. b.HasKey("work_cal_list_id");
  6570. b.ToTable("work_calendar_list", (string)null);
  6571. b.HasComment("工作日历明细表");
  6572. });
  6573. #pragma warning restore 612, 618
  6574. }
  6575. }
  6576. }