20230324022835_RemoveRequire.Designer.cs 340 KB

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