BusinessMigrationDbContextModelSnapshot.cs 365 KB

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