BusinessMigrationDbContextModelSnapshot.cs 364 KB

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