20230217031911_removeMysqlNotMap.Designer.cs 364 KB

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