BusinessMigrationDbContextModelSnapshot.cs 366 KB

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