20230208134930_init.Designer.cs 362 KB

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