BusinessMigrationDbContextModelSnapshot.cs 365 KB

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