BusinessMigrationDbContextModelSnapshot.cs 340 KB

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