BusinessMigrationDbContextModelSnapshot.cs 362 KB

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