20230131062801_init.Designer.cs 355 KB

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