BusinessMigrationDbContextModelSnapshot.cs 355 KB

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