BusinessMigrationDbContextModelSnapshot.cs 360 KB

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