WebCMSEntities.cs 515 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501
  1. using System;
  2. using Microsoft.EntityFrameworkCore;
  3. using Microsoft.EntityFrameworkCore.Metadata;
  4. namespace MySystem.PxcModels
  5. {
  6. public partial class WebCMSEntities : DbContext
  7. {
  8. public WebCMSEntities()
  9. {
  10. }
  11. public WebCMSEntities(DbContextOptions<WebCMSEntities> options)
  12. : base(options)
  13. {
  14. }
  15. public virtual DbSet<ActiveReward> ActiveReward { get; set; }
  16. public virtual DbSet<ActivityEnrolRecord> ActivityEnrolRecord { get; set; }
  17. public virtual DbSet<ActivityInfo> ActivityInfo { get; set; }
  18. public virtual DbSet<ActivityPrizeDetail> ActivityPrizeDetail { get; set; }
  19. public virtual DbSet<Advertisment> Advertisment { get; set; }
  20. public virtual DbSet<AgentLevelSet> AgentLevelSet { get; set; }
  21. public virtual DbSet<AppBottomNavs> AppBottomNavs { get; set; }
  22. public virtual DbSet<AppVersion> AppVersion { get; set; }
  23. public virtual DbSet<AppVideo> AppVideo { get; set; }
  24. public virtual DbSet<AppVideoList> AppVideoList { get; set; }
  25. public virtual DbSet<BankInfo> BankInfo { get; set; }
  26. public virtual DbSet<Col> Col { get; set; }
  27. public virtual DbSet<ConsumerOpenIds> ConsumerOpenIds { get; set; }
  28. public virtual DbSet<ConsumerOrderForNo> ConsumerOrderForNo { get; set; }
  29. public virtual DbSet<ConsumerOrders> ConsumerOrders { get; set; }
  30. public virtual DbSet<ConsumerProfit> ConsumerProfit { get; set; }
  31. public virtual DbSet<Consumers> Consumers { get; set; }
  32. public virtual DbSet<CouponAssignRecords> CouponAssignRecords { get; set; }
  33. public virtual DbSet<Coupons> Coupons { get; set; }
  34. public virtual DbSet<CouponsForUser> CouponsForUser { get; set; }
  35. public virtual DbSet<CustomTagSet> CustomTagSet { get; set; }
  36. public virtual DbSet<ErpCompanys> ErpCompanys { get; set; }
  37. public virtual DbSet<FileUpdateInfo> FileUpdateInfo { get; set; }
  38. public virtual DbSet<FluxProfitDetail> FluxProfitDetail { get; set; }
  39. public virtual DbSet<FluxProfitSummary> FluxProfitSummary { get; set; }
  40. public virtual DbSet<IndexIconList> IndexIconList { get; set; }
  41. public virtual DbSet<KqProductBrand> KqProductBrand { get; set; }
  42. public virtual DbSet<KqProductOrgs> KqProductOrgs { get; set; }
  43. public virtual DbSet<KqProductRuleSet> KqProductRuleSet { get; set; }
  44. public virtual DbSet<KqProducts> KqProducts { get; set; }
  45. public virtual DbSet<MachineApply> MachineApply { get; set; }
  46. public virtual DbSet<MachineApplyDetail> MachineApplyDetail { get; set; }
  47. public virtual DbSet<MachineChange> MachineChange { get; set; }
  48. public virtual DbSet<MachineChangeDetail> MachineChangeDetail { get; set; }
  49. public virtual DbSet<MachineForQrCode> MachineForQrCode { get; set; }
  50. public virtual DbSet<MachineForSnNo> MachineForSnNo { get; set; }
  51. public virtual DbSet<MachineRenew> MachineRenew { get; set; }
  52. public virtual DbSet<MachineReturn> MachineReturn { get; set; }
  53. public virtual DbSet<MenuRight> MenuRight { get; set; }
  54. public virtual DbSet<MerchantAddInfo> MerchantAddInfo { get; set; }
  55. public virtual DbSet<MerchantAdmin> MerchantAdmin { get; set; }
  56. public virtual DbSet<MerchantAuth> MerchantAuth { get; set; }
  57. public virtual DbSet<MerchantClass> MerchantClass { get; set; }
  58. public virtual DbSet<MerchantCol> MerchantCol { get; set; }
  59. public virtual DbSet<MerchantComment> MerchantComment { get; set; }
  60. public virtual DbSet<MerchantForCode> MerchantForCode { get; set; }
  61. public virtual DbSet<MerchantForMobile> MerchantForMobile { get; set; }
  62. public virtual DbSet<MerchantForName> MerchantForName { get; set; }
  63. public virtual DbSet<MerchantInfo> MerchantInfo { get; set; }
  64. public virtual DbSet<MerchantParamSet> MerchantParamSet { get; set; }
  65. public virtual DbSet<MerchantQrCode> MerchantQrCode { get; set; }
  66. public virtual DbSet<MerchantRebateDetail> MerchantRebateDetail { get; set; }
  67. public virtual DbSet<Merchants> Merchants { get; set; }
  68. public virtual DbSet<MobileCodeCheck> MobileCodeCheck { get; set; }
  69. public virtual DbSet<MsgBlackList> MsgBlackList { get; set; }
  70. public virtual DbSet<MsgPersonal> MsgPersonal { get; set; }
  71. public virtual DbSet<MsgPlacard> MsgPlacard { get; set; }
  72. public virtual DbSet<MsgPlacardRead> MsgPlacardRead { get; set; }
  73. public virtual DbSet<MsgPush> MsgPush { get; set; }
  74. public virtual DbSet<MsgSms> MsgSms { get; set; }
  75. public virtual DbSet<MsgSmsSet> MsgSmsSet { get; set; }
  76. public virtual DbSet<MsgTemplate> MsgTemplate { get; set; }
  77. public virtual DbSet<OpenBankCityTable> OpenBankCityTable { get; set; }
  78. public virtual DbSet<OpenBankTable> OpenBankTable { get; set; }
  79. public virtual DbSet<OpenReward> OpenReward { get; set; }
  80. public virtual DbSet<OpenRewardDetail> OpenRewardDetail { get; set; }
  81. public virtual DbSet<OpenSnSnapshot> OpenSnSnapshot { get; set; }
  82. public virtual DbSet<OperateLog> OperateLog { get; set; }
  83. public virtual DbSet<OperateRightList> OperateRightList { get; set; }
  84. public virtual DbSet<OrderForNo> OrderForNo { get; set; }
  85. public virtual DbSet<OrderProduct> OrderProduct { get; set; }
  86. public virtual DbSet<OrderRefund> OrderRefund { get; set; }
  87. public virtual DbSet<OrderRefundReason> OrderRefundReason { get; set; }
  88. public virtual DbSet<Orders> Orders { get; set; }
  89. public virtual DbSet<PageInfo> PageInfo { get; set; }
  90. public virtual DbSet<PageUpdateInfo> PageUpdateInfo { get; set; }
  91. public virtual DbSet<PosMachines> PosMachines { get; set; }
  92. public virtual DbSet<PosMachinesTwo> PosMachinesTwo { get; set; }
  93. public virtual DbSet<PosMerchantInfo> PosMerchantInfo { get; set; }
  94. public virtual DbSet<ProductComment> ProductComment { get; set; }
  95. public virtual DbSet<ProductCommentAgree> ProductCommentAgree { get; set; }
  96. public virtual DbSet<ProductFareAreas> ProductFareAreas { get; set; }
  97. public virtual DbSet<ProductFareTemp> ProductFareTemp { get; set; }
  98. public virtual DbSet<ProductKeys> ProductKeys { get; set; }
  99. public virtual DbSet<ProductNorm> ProductNorm { get; set; }
  100. public virtual DbSet<ProductNormItem> ProductNormItem { get; set; }
  101. public virtual DbSet<ProductNormTemp> ProductNormTemp { get; set; }
  102. public virtual DbSet<Products> Products { get; set; }
  103. public virtual DbSet<ProfitObjectActivations> ProfitObjectActivations { get; set; }
  104. public virtual DbSet<ProfitObjectContinueFloors> ProfitObjectContinueFloors { get; set; }
  105. public virtual DbSet<ProfitObjectFloors> ProfitObjectFloors { get; set; }
  106. public virtual DbSet<ProfitObjectLevelKinds> ProfitObjectLevelKinds { get; set; }
  107. public virtual DbSet<ProfitObjectLevels> ProfitObjectLevels { get; set; }
  108. public virtual DbSet<ProfitObjects> ProfitObjects { get; set; }
  109. public virtual DbSet<ProfitObjectsActiveCheck> ProfitObjectsActiveCheck { get; set; }
  110. public virtual DbSet<ProfitObjectsActiveParams> ProfitObjectsActiveParams { get; set; }
  111. public virtual DbSet<ProfitObjectsActives> ProfitObjectsActives { get; set; }
  112. public virtual DbSet<ProfitObjectsActivesForId> ProfitObjectsActivesForId { get; set; }
  113. public virtual DbSet<ProfitObjectsRule> ProfitObjectsRule { get; set; }
  114. public virtual DbSet<ProfitObjectsRuleDetails> ProfitObjectsRuleDetails { get; set; }
  115. public virtual DbSet<ProfitReceiveRecord> ProfitReceiveRecord { get; set; }
  116. public virtual DbSet<ProfitReceives> ProfitReceives { get; set; }
  117. public virtual DbSet<ProfitRecord> ProfitRecord { get; set; }
  118. public virtual DbSet<ProfitRewardRecord> ProfitRewardRecord { get; set; }
  119. public virtual DbSet<ProfitSubsidyDetail> ProfitSubsidyDetail { get; set; }
  120. public virtual DbSet<PublicAccountSet> PublicAccountSet { get; set; }
  121. public virtual DbSet<PullNewAct> PullNewAct { get; set; }
  122. public virtual DbSet<PullNewDetail> PullNewDetail { get; set; }
  123. public virtual DbSet<PullnewSummary> PullnewSummary { get; set; }
  124. public virtual DbSet<RightDic> RightDic { get; set; }
  125. public virtual DbSet<ServiceCenter> ServiceCenter { get; set; }
  126. public virtual DbSet<StoreBalance> StoreBalance { get; set; }
  127. public virtual DbSet<StoreChangeHistory> StoreChangeHistory { get; set; }
  128. public virtual DbSet<StoreForCode> StoreForCode { get; set; }
  129. public virtual DbSet<StoreForName> StoreForName { get; set; }
  130. public virtual DbSet<StoreHouse> StoreHouse { get; set; }
  131. public virtual DbSet<StoreMallOrderSummary> StoreMallOrderSummary { get; set; }
  132. public virtual DbSet<StoreSnActivateSummary> StoreSnActivateSummary { get; set; }
  133. public virtual DbSet<StoreStockChange> StoreStockChange { get; set; }
  134. public virtual DbSet<StoreSwapSn> StoreSwapSn { get; set; }
  135. public virtual DbSet<SysAdmin> SysAdmin { get; set; }
  136. public virtual DbSet<SysAdminRole> SysAdminRole { get; set; }
  137. public virtual DbSet<SysLog> SysLog { get; set; }
  138. public virtual DbSet<SysRechargeRecord> SysRechargeRecord { get; set; }
  139. public virtual DbSet<SystemSet> SystemSet { get; set; }
  140. public virtual DbSet<TeamApply> TeamApply { get; set; }
  141. public virtual DbSet<TeamApplyForTeamName> TeamApplyForTeamName { get; set; }
  142. public virtual DbSet<TeamApplyForTeamNo> TeamApplyForTeamNo { get; set; }
  143. public virtual DbSet<TeamBlackList> TeamBlackList { get; set; }
  144. public virtual DbSet<TeamConfig> TeamConfig { get; set; }
  145. public virtual DbSet<TeamDayTop> TeamDayTop { get; set; }
  146. public virtual DbSet<TeamOfferApply> TeamOfferApply { get; set; }
  147. public virtual DbSet<TeamPersonDayTop> TeamPersonDayTop { get; set; }
  148. public virtual DbSet<TradeDaySummary> TradeDaySummary { get; set; }
  149. public virtual DbSet<TradeRecord> TradeRecord { get; set; }
  150. public virtual DbSet<UploadParams> UploadParams { get; set; }
  151. public virtual DbSet<UserAccount> UserAccount { get; set; }
  152. public virtual DbSet<UserAccountRecord> UserAccountRecord { get; set; }
  153. public virtual DbSet<UserAddress> UserAddress { get; set; }
  154. public virtual DbSet<UserAuthRecord> UserAuthRecord { get; set; }
  155. public virtual DbSet<UserBack> UserBack { get; set; }
  156. public virtual DbSet<UserBackKind> UserBackKind { get; set; }
  157. public virtual DbSet<UserBalanceTop> UserBalanceTop { get; set; }
  158. public virtual DbSet<UserCar> UserCar { get; set; }
  159. public virtual DbSet<UserCardForWeChat> UserCardForWeChat { get; set; }
  160. public virtual DbSet<UserCardRecord> UserCardRecord { get; set; }
  161. public virtual DbSet<UserCashRecord> UserCashRecord { get; set; }
  162. public virtual DbSet<UserCenterIconList> UserCenterIconList { get; set; }
  163. public virtual DbSet<UserCollection> UserCollection { get; set; }
  164. public virtual DbSet<UserData> UserData { get; set; }
  165. public virtual DbSet<UserDetail> UserDetail { get; set; }
  166. public virtual DbSet<UserFamilyMember> UserFamilyMember { get; set; }
  167. public virtual DbSet<UserForMakerCode> UserForMakerCode { get; set; }
  168. public virtual DbSet<UserForMobile> UserForMobile { get; set; }
  169. public virtual DbSet<UserForRealName> UserForRealName { get; set; }
  170. public virtual DbSet<UserFriend> UserFriend { get; set; }
  171. public virtual DbSet<UserGroup> UserGroup { get; set; }
  172. public virtual DbSet<UserLevelSet> UserLevelSet { get; set; }
  173. public virtual DbSet<UserLoginRecord> UserLoginRecord { get; set; }
  174. public virtual DbSet<UserMachineData> UserMachineData { get; set; }
  175. public virtual DbSet<UserMallLargeSn> UserMallLargeSn { get; set; }
  176. public virtual DbSet<UserOfflineSignInRecords> UserOfflineSignInRecords { get; set; }
  177. public virtual DbSet<UserProfit> UserProfit { get; set; }
  178. public virtual DbSet<UserProfitSet> UserProfitSet { get; set; }
  179. public virtual DbSet<UserProfitSubsidySummary> UserProfitSubsidySummary { get; set; }
  180. public virtual DbSet<UserRank> UserRank { get; set; }
  181. public virtual DbSet<UserRankWhite> UserRankWhite { get; set; }
  182. public virtual DbSet<UserRebateDetail> UserRebateDetail { get; set; }
  183. public virtual DbSet<UserSnActInfo> UserSnActInfo { get; set; }
  184. public virtual DbSet<UserSnDelayChange> UserSnDelayChange { get; set; }
  185. public virtual DbSet<UserStoreChange> UserStoreChange { get; set; }
  186. public virtual DbSet<UserSwapDetail> UserSwapDetail { get; set; }
  187. public virtual DbSet<UserSwapSummary> UserSwapSummary { get; set; }
  188. public virtual DbSet<UserSwapWhite> UserSwapWhite { get; set; }
  189. public virtual DbSet<UserTradeDaySummary> UserTradeDaySummary { get; set; }
  190. public virtual DbSet<UserTradeMonthSummary> UserTradeMonthSummary { get; set; }
  191. public virtual DbSet<Users> Users { get; set; }
  192. protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
  193. {
  194. if (!optionsBuilder.IsConfigured)
  195. {
  196. optionsBuilder.UseMySql(Library.ConfigurationManager.AppSettings["Pxc1SqlConnStr"].ToString(), x => x.ServerVersion("5.7.17-mysql"));
  197. }
  198. }
  199. protected override void OnModelCreating(ModelBuilder modelBuilder)
  200. {
  201. modelBuilder.Entity<ActiveReward>(entity =>
  202. {
  203. entity.Property(e => e.Id).HasColumnType("int(11)");
  204. entity.Property(e => e.ActDate).HasColumnType("datetime");
  205. entity.Property(e => e.ActType).HasColumnType("int(11)");
  206. entity.Property(e => e.ActTypeDesc)
  207. .HasColumnType("varchar(64)")
  208. .HasCharSet("utf8")
  209. .HasCollation("utf8_general_ci");
  210. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  211. entity.Property(e => e.City)
  212. .HasColumnType("varchar(32)")
  213. .HasCharSet("utf8")
  214. .HasCollation("utf8_general_ci");
  215. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  216. entity.Property(e => e.CreateMan)
  217. .HasColumnType("varchar(50)")
  218. .HasCharSet("utf8")
  219. .HasCollation("utf8_general_ci");
  220. entity.Property(e => e.DirectBuddyNo).HasColumnType("int(11)");
  221. entity.Property(e => e.DivideAmount).HasColumnType("decimal(18,2)");
  222. entity.Property(e => e.KqMerNo)
  223. .HasColumnType("varchar(32)")
  224. .HasCharSet("utf8")
  225. .HasCollation("utf8_general_ci");
  226. entity.Property(e => e.KqSnNo)
  227. .HasColumnType("varchar(32)")
  228. .HasCharSet("utf8")
  229. .HasCollation("utf8_general_ci");
  230. entity.Property(e => e.MerUserId).HasColumnType("int(11)");
  231. entity.Property(e => e.MerUserNav)
  232. .HasColumnType("varchar(200)")
  233. .HasCharSet("utf8")
  234. .HasCollation("utf8_general_ci");
  235. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  236. entity.Property(e => e.ParentParentUserId).HasColumnType("int(11)");
  237. entity.Property(e => e.ParentUserId).HasColumnType("int(11)");
  238. entity.Property(e => e.Province)
  239. .HasColumnType("varchar(32)")
  240. .HasCharSet("utf8")
  241. .HasCollation("utf8_general_ci");
  242. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  243. entity.Property(e => e.Remark)
  244. .HasColumnType("varchar(64)")
  245. .HasCharSet("utf8")
  246. .HasCollation("utf8_general_ci");
  247. entity.Property(e => e.RewardAmount).HasColumnType("decimal(18,2)");
  248. entity.Property(e => e.RewardRef).HasColumnType("int(11)");
  249. entity.Property(e => e.RewardSourceUserId).HasColumnType("int(11)");
  250. entity.Property(e => e.RewardTips)
  251. .HasColumnType("varchar(16)")
  252. .HasCharSet("utf8")
  253. .HasCollation("utf8_general_ci");
  254. entity.Property(e => e.RuleRewardAmount).HasColumnType("decimal(18,2)");
  255. entity.Property(e => e.SeoDescription)
  256. .HasColumnType("varchar(500)")
  257. .HasCharSet("utf8")
  258. .HasCollation("utf8_general_ci");
  259. entity.Property(e => e.SeoKeyword)
  260. .HasColumnType("varchar(200)")
  261. .HasCharSet("utf8")
  262. .HasCollation("utf8_general_ci");
  263. entity.Property(e => e.SeoTitle)
  264. .HasColumnType("varchar(100)")
  265. .HasCharSet("utf8")
  266. .HasCollation("utf8_general_ci");
  267. entity.Property(e => e.SnApplyUserId).HasColumnType("int(11)");
  268. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  269. entity.Property(e => e.SnType).HasColumnType("int(11)");
  270. entity.Property(e => e.Sort).HasColumnType("int(11)");
  271. entity.Property(e => e.StandardDate).HasColumnType("datetime");
  272. entity.Property(e => e.Status).HasColumnType("int(11)");
  273. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  274. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  275. entity.Property(e => e.UpdateMan)
  276. .HasColumnType("varchar(50)")
  277. .HasCharSet("utf8")
  278. .HasCollation("utf8_general_ci");
  279. entity.Property(e => e.UserId).HasColumnType("int(11)");
  280. entity.Property(e => e.UserNav)
  281. .HasColumnType("varchar(200)")
  282. .HasCharSet("utf8")
  283. .HasCollation("utf8_general_ci");
  284. entity.Property(e => e.Version).HasColumnType("int(11)");
  285. });
  286. modelBuilder.Entity<ActivityEnrolRecord>(entity =>
  287. {
  288. entity.Property(e => e.Id).HasColumnType("int(11)");
  289. entity.Property(e => e.ActId).HasColumnType("int(11)");
  290. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  291. entity.Property(e => e.CreateMan)
  292. .HasColumnType("varchar(50)")
  293. .HasCharSet("utf8")
  294. .HasCollation("utf8_general_ci");
  295. entity.Property(e => e.EffectEndTime)
  296. .HasColumnType("varchar(8)")
  297. .HasCharSet("utf8")
  298. .HasCollation("utf8_general_ci");
  299. entity.Property(e => e.EffectStartTime)
  300. .HasColumnType("varchar(8)")
  301. .HasCharSet("utf8")
  302. .HasCollation("utf8_general_ci");
  303. entity.Property(e => e.EnrolMonth)
  304. .HasColumnType("varchar(80)")
  305. .HasCharSet("utf8")
  306. .HasCollation("utf8_general_ci");
  307. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  308. entity.Property(e => e.SeoDescription)
  309. .HasColumnType("varchar(500)")
  310. .HasCharSet("utf8")
  311. .HasCollation("utf8_general_ci");
  312. entity.Property(e => e.SeoKeyword)
  313. .HasColumnType("varchar(200)")
  314. .HasCharSet("utf8")
  315. .HasCollation("utf8_general_ci");
  316. entity.Property(e => e.SeoTitle)
  317. .HasColumnType("varchar(100)")
  318. .HasCharSet("utf8")
  319. .HasCollation("utf8_general_ci");
  320. entity.Property(e => e.Sort).HasColumnType("int(11)");
  321. entity.Property(e => e.Status).HasColumnType("int(11)");
  322. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  323. entity.Property(e => e.UpdateMan)
  324. .HasColumnType("varchar(50)")
  325. .HasCharSet("utf8")
  326. .HasCollation("utf8_general_ci");
  327. entity.Property(e => e.UserId).HasColumnType("int(11)");
  328. entity.Property(e => e.Version).HasColumnType("int(11)");
  329. });
  330. modelBuilder.Entity<ActivityInfo>(entity =>
  331. {
  332. entity.Property(e => e.Id).HasColumnType("int(11)");
  333. entity.Property(e => e.ActBanner)
  334. .HasColumnType("varchar(200)")
  335. .HasCharSet("utf8")
  336. .HasCollation("utf8_general_ci");
  337. entity.Property(e => e.ActCode)
  338. .HasColumnType("varchar(32)")
  339. .HasCharSet("utf8")
  340. .HasCollation("utf8_general_ci");
  341. entity.Property(e => e.ActContent)
  342. .HasColumnType("longtext")
  343. .HasCharSet("utf8")
  344. .HasCollation("utf8_general_ci");
  345. entity.Property(e => e.ActName)
  346. .HasColumnType("varchar(128)")
  347. .HasCharSet("utf8")
  348. .HasCollation("utf8_general_ci");
  349. entity.Property(e => e.ActReferUrl)
  350. .HasColumnType("varchar(255)")
  351. .HasCharSet("utf8")
  352. .HasCollation("utf8_general_ci");
  353. entity.Property(e => e.ActType).HasColumnType("int(11)");
  354. entity.Property(e => e.BrandId)
  355. .HasColumnType("varchar(100)")
  356. .HasCharSet("utf8")
  357. .HasCollation("utf8_general_ci");
  358. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  359. entity.Property(e => e.CreateMan)
  360. .HasColumnType("varchar(50)")
  361. .HasCharSet("utf8")
  362. .HasCollation("utf8_general_ci");
  363. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  364. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  365. entity.Property(e => e.EnrolEndDate).HasColumnType("datetime");
  366. entity.Property(e => e.EnrolEndTime)
  367. .HasColumnType("varchar(8)")
  368. .HasCharSet("utf8")
  369. .HasCollation("utf8_general_ci");
  370. entity.Property(e => e.EnrolStartDate).HasColumnType("datetime");
  371. entity.Property(e => e.EnrolStartTime)
  372. .HasColumnType("varchar(8)")
  373. .HasCharSet("utf8")
  374. .HasCollation("utf8_general_ci");
  375. entity.Property(e => e.IsTop).HasColumnType("int(11)");
  376. entity.Property(e => e.LimitTopBuddy)
  377. .HasColumnType("varchar(255)")
  378. .HasCharSet("utf8")
  379. .HasCollation("utf8_general_ci");
  380. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  381. entity.Property(e => e.Remark)
  382. .HasColumnType("varchar(128)")
  383. .HasCharSet("utf8")
  384. .HasCollation("utf8_general_ci");
  385. entity.Property(e => e.SeoDescription)
  386. .HasColumnType("varchar(500)")
  387. .HasCharSet("utf8")
  388. .HasCollation("utf8_general_ci");
  389. entity.Property(e => e.SeoKeyword)
  390. .HasColumnType("varchar(200)")
  391. .HasCharSet("utf8")
  392. .HasCollation("utf8_general_ci");
  393. entity.Property(e => e.SeoTitle)
  394. .HasColumnType("varchar(100)")
  395. .HasCharSet("utf8")
  396. .HasCollation("utf8_general_ci");
  397. entity.Property(e => e.Sort).HasColumnType("int(11)");
  398. entity.Property(e => e.Status).HasColumnType("int(11)");
  399. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  400. entity.Property(e => e.UpdateMan)
  401. .HasColumnType("varchar(50)")
  402. .HasCharSet("utf8")
  403. .HasCollation("utf8_general_ci");
  404. entity.Property(e => e.Version).HasColumnType("int(11)");
  405. });
  406. modelBuilder.Entity<ActivityPrizeDetail>(entity =>
  407. {
  408. entity.Property(e => e.Id).HasColumnType("int(11)");
  409. entity.Property(e => e.ActRewardAmt).HasColumnType("decimal(18,2)");
  410. entity.Property(e => e.ActivityId).HasColumnType("int(11)");
  411. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  412. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  413. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  414. entity.Property(e => e.CreateMan)
  415. .HasColumnType("varchar(50)")
  416. .HasCharSet("utf8")
  417. .HasCollation("utf8_general_ci");
  418. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  419. entity.Property(e => e.OtherProdCreditTradeAmt).HasColumnType("decimal(18,2)");
  420. entity.Property(e => e.ProfitRate).HasColumnType("decimal(18,2)");
  421. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  422. entity.Property(e => e.SeoDescription)
  423. .HasColumnType("varchar(500)")
  424. .HasCharSet("utf8")
  425. .HasCollation("utf8_general_ci");
  426. entity.Property(e => e.SeoKeyword)
  427. .HasColumnType("varchar(200)")
  428. .HasCharSet("utf8")
  429. .HasCollation("utf8_general_ci");
  430. entity.Property(e => e.SeoTitle)
  431. .HasColumnType("varchar(100)")
  432. .HasCharSet("utf8")
  433. .HasCollation("utf8_general_ci");
  434. entity.Property(e => e.Sort).HasColumnType("int(11)");
  435. entity.Property(e => e.Status).HasColumnType("int(11)");
  436. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  437. entity.Property(e => e.TradeAmt).HasColumnType("decimal(18,2)");
  438. entity.Property(e => e.TradeMonth)
  439. .HasColumnType("varchar(6)")
  440. .HasCharSet("utf8")
  441. .HasCollation("utf8_general_ci");
  442. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  443. entity.Property(e => e.UpdateMan)
  444. .HasColumnType("varchar(50)")
  445. .HasCharSet("utf8")
  446. .HasCollation("utf8_general_ci");
  447. entity.Property(e => e.UserId).HasColumnType("int(11)");
  448. entity.Property(e => e.Version).HasColumnType("int(11)");
  449. });
  450. modelBuilder.Entity<Advertisment>(entity =>
  451. {
  452. entity.Property(e => e.Id).HasColumnType("int(11)");
  453. entity.Property(e => e.ColId)
  454. .HasColumnType("varchar(30)")
  455. .HasCharSet("utf8")
  456. .HasCollation("utf8_general_ci");
  457. entity.Property(e => e.Contents)
  458. .HasColumnType("longtext")
  459. .HasCharSet("utf8")
  460. .HasCollation("utf8_general_ci");
  461. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  462. entity.Property(e => e.CreateMan)
  463. .HasColumnType("varchar(50)")
  464. .HasCharSet("utf8")
  465. .HasCollation("utf8_general_ci");
  466. entity.Property(e => e.PicPath)
  467. .HasColumnType("varchar(200)")
  468. .HasCharSet("utf8")
  469. .HasCollation("utf8_general_ci");
  470. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  471. entity.Property(e => e.SeoDescription)
  472. .HasColumnType("varchar(500)")
  473. .HasCharSet("utf8")
  474. .HasCollation("utf8_general_ci");
  475. entity.Property(e => e.SeoKeyword)
  476. .HasColumnType("varchar(200)")
  477. .HasCharSet("utf8")
  478. .HasCollation("utf8_general_ci");
  479. entity.Property(e => e.SeoTitle)
  480. .HasColumnType("varchar(100)")
  481. .HasCharSet("utf8")
  482. .HasCollation("utf8_general_ci");
  483. entity.Property(e => e.Sort).HasColumnType("int(11)");
  484. entity.Property(e => e.Status).HasColumnType("int(11)");
  485. entity.Property(e => e.Title)
  486. .HasColumnType("varchar(50)")
  487. .HasCharSet("utf8")
  488. .HasCollation("utf8_general_ci");
  489. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  490. entity.Property(e => e.UpdateMan)
  491. .HasColumnType("varchar(50)")
  492. .HasCharSet("utf8")
  493. .HasCollation("utf8_general_ci");
  494. entity.Property(e => e.Url)
  495. .HasColumnType("longtext")
  496. .HasCharSet("utf8")
  497. .HasCollation("utf8_general_ci");
  498. entity.Property(e => e.Version).HasColumnType("int(11)");
  499. });
  500. modelBuilder.Entity<AgentLevelSet>(entity =>
  501. {
  502. entity.Property(e => e.Id).HasColumnType("int(11)");
  503. entity.Property(e => e.AreasProfitPercent).HasColumnType("decimal(18,2)");
  504. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  505. entity.Property(e => e.CreateMan)
  506. .HasColumnType("varchar(50)")
  507. .HasCharSet("utf8")
  508. .HasCollation("utf8_general_ci");
  509. entity.Property(e => e.LevelDiff)
  510. .HasColumnType("bit(1)")
  511. .HasDefaultValueSql("b'0'");
  512. entity.Property(e => e.Name)
  513. .HasColumnType("varchar(50)")
  514. .HasCharSet("utf8")
  515. .HasCollation("utf8_general_ci");
  516. entity.Property(e => e.ProfitPercent).HasColumnType("decimal(18,2)");
  517. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  518. entity.Property(e => e.SeoDescription)
  519. .HasColumnType("varchar(500)")
  520. .HasCharSet("utf8")
  521. .HasCollation("utf8_general_ci");
  522. entity.Property(e => e.SeoKeyword)
  523. .HasColumnType("varchar(200)")
  524. .HasCharSet("utf8")
  525. .HasCollation("utf8_general_ci");
  526. entity.Property(e => e.SeoTitle)
  527. .HasColumnType("varchar(100)")
  528. .HasCharSet("utf8")
  529. .HasCollation("utf8_general_ci");
  530. entity.Property(e => e.Sort).HasColumnType("int(11)");
  531. entity.Property(e => e.Status).HasColumnType("int(11)");
  532. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  533. entity.Property(e => e.UpdateMan)
  534. .HasColumnType("varchar(50)")
  535. .HasCharSet("utf8")
  536. .HasCollation("utf8_general_ci");
  537. entity.Property(e => e.Version).HasColumnType("int(11)");
  538. });
  539. modelBuilder.Entity<AppBottomNavs>(entity =>
  540. {
  541. entity.Property(e => e.Id).HasColumnType("int(11)");
  542. entity.Property(e => e.BgColor)
  543. .HasColumnType("varchar(6)")
  544. .HasCharSet("utf8")
  545. .HasCollation("utf8_general_ci");
  546. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  547. entity.Property(e => e.CreateMan)
  548. .HasColumnType("varchar(50)")
  549. .HasCharSet("utf8")
  550. .HasCollation("utf8_general_ci");
  551. entity.Property(e => e.NoPageHint)
  552. .HasColumnType("varchar(50)")
  553. .HasCharSet("utf8")
  554. .HasCollation("utf8_general_ci");
  555. entity.Property(e => e.NormalIcon)
  556. .HasColumnType("varchar(200)")
  557. .HasCharSet("utf8")
  558. .HasCollation("utf8_general_ci");
  559. entity.Property(e => e.NormalTextColor)
  560. .HasColumnType("varchar(6)")
  561. .HasCharSet("utf8")
  562. .HasCollation("utf8_general_ci");
  563. entity.Property(e => e.PageName)
  564. .HasColumnType("varchar(50)")
  565. .HasCharSet("utf8")
  566. .HasCollation("utf8_general_ci");
  567. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  568. entity.Property(e => e.SelectIcon)
  569. .HasColumnType("varchar(200)")
  570. .HasCharSet("utf8")
  571. .HasCollation("utf8_general_ci");
  572. entity.Property(e => e.SelectTextColor)
  573. .HasColumnType("varchar(6)")
  574. .HasCharSet("utf8")
  575. .HasCollation("utf8_general_ci");
  576. entity.Property(e => e.SeoDescription)
  577. .HasColumnType("varchar(500)")
  578. .HasCharSet("utf8")
  579. .HasCollation("utf8_general_ci");
  580. entity.Property(e => e.SeoKeyword)
  581. .HasColumnType("varchar(200)")
  582. .HasCharSet("utf8")
  583. .HasCollation("utf8_general_ci");
  584. entity.Property(e => e.SeoTitle)
  585. .HasColumnType("varchar(100)")
  586. .HasCharSet("utf8")
  587. .HasCollation("utf8_general_ci");
  588. entity.Property(e => e.Sort).HasColumnType("int(11)");
  589. entity.Property(e => e.Status).HasColumnType("int(11)");
  590. entity.Property(e => e.Title)
  591. .HasColumnType("varchar(10)")
  592. .HasCharSet("utf8")
  593. .HasCollation("utf8_general_ci");
  594. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  595. entity.Property(e => e.UpdateMan)
  596. .HasColumnType("varchar(50)")
  597. .HasCharSet("utf8")
  598. .HasCollation("utf8_general_ci");
  599. entity.Property(e => e.Version).HasColumnType("int(11)");
  600. });
  601. modelBuilder.Entity<AppVersion>(entity =>
  602. {
  603. entity.Property(e => e.Id).HasColumnType("int(11)");
  604. entity.Property(e => e.CancelText)
  605. .HasColumnType("varchar(10)")
  606. .HasCharSet("utf8")
  607. .HasCollation("utf8_general_ci");
  608. entity.Property(e => e.ConfirmText)
  609. .HasColumnType("varchar(10)")
  610. .HasCharSet("utf8")
  611. .HasCollation("utf8_general_ci");
  612. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  613. entity.Property(e => e.CreateMan)
  614. .HasColumnType("varchar(50)")
  615. .HasCharSet("utf8")
  616. .HasCollation("utf8_general_ci");
  617. entity.Property(e => e.DownloadUrl)
  618. .HasColumnType("varchar(500)")
  619. .HasCharSet("utf8")
  620. .HasCollation("utf8_general_ci");
  621. entity.Property(e => e.Info)
  622. .HasColumnType("varchar(200)")
  623. .HasCharSet("utf8")
  624. .HasCollation("utf8_general_ci");
  625. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  626. entity.Property(e => e.SeoDescription)
  627. .HasColumnType("varchar(500)")
  628. .HasCharSet("utf8")
  629. .HasCollation("utf8_general_ci");
  630. entity.Property(e => e.SeoKeyword)
  631. .HasColumnType("varchar(200)")
  632. .HasCharSet("utf8")
  633. .HasCollation("utf8_general_ci");
  634. entity.Property(e => e.SeoTitle)
  635. .HasColumnType("varchar(100)")
  636. .HasCharSet("utf8")
  637. .HasCollation("utf8_general_ci");
  638. entity.Property(e => e.Sort).HasColumnType("int(11)");
  639. entity.Property(e => e.Status).HasColumnType("int(11)");
  640. entity.Property(e => e.TerminalKind)
  641. .HasColumnType("varchar(10)")
  642. .HasCharSet("utf8")
  643. .HasCollation("utf8_general_ci");
  644. entity.Property(e => e.Title)
  645. .HasColumnType("varchar(50)")
  646. .HasCharSet("utf8")
  647. .HasCollation("utf8_general_ci");
  648. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  649. entity.Property(e => e.UpdateMan)
  650. .HasColumnType("varchar(50)")
  651. .HasCharSet("utf8")
  652. .HasCollation("utf8_general_ci");
  653. entity.Property(e => e.Version).HasColumnType("int(11)");
  654. entity.Property(e => e.VersionNum)
  655. .HasColumnType("varchar(20)")
  656. .HasCharSet("utf8")
  657. .HasCollation("utf8_general_ci");
  658. });
  659. modelBuilder.Entity<AppVideo>(entity =>
  660. {
  661. entity.Property(e => e.Id).HasColumnType("int(11)");
  662. entity.Property(e => e.BannerPic)
  663. .HasColumnType("varchar(200)")
  664. .HasCharSet("utf8")
  665. .HasCollation("utf8_general_ci");
  666. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  667. entity.Property(e => e.CreateMan)
  668. .HasColumnType("varchar(50)")
  669. .HasCharSet("utf8")
  670. .HasCollation("utf8_general_ci");
  671. entity.Property(e => e.Name)
  672. .HasColumnType("varchar(50)")
  673. .HasCharSet("utf8")
  674. .HasCollation("utf8_general_ci");
  675. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  676. entity.Property(e => e.Remark)
  677. .HasColumnType("varchar(200)")
  678. .HasCharSet("utf8")
  679. .HasCollation("utf8_general_ci");
  680. entity.Property(e => e.SeoDescription)
  681. .HasColumnType("varchar(500)")
  682. .HasCharSet("utf8")
  683. .HasCollation("utf8_general_ci");
  684. entity.Property(e => e.SeoKeyword)
  685. .HasColumnType("varchar(200)")
  686. .HasCharSet("utf8")
  687. .HasCollation("utf8_general_ci");
  688. entity.Property(e => e.SeoTitle)
  689. .HasColumnType("varchar(100)")
  690. .HasCharSet("utf8")
  691. .HasCollation("utf8_general_ci");
  692. entity.Property(e => e.Sort).HasColumnType("int(11)");
  693. entity.Property(e => e.Status).HasColumnType("int(11)");
  694. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  695. entity.Property(e => e.UpdateMan)
  696. .HasColumnType("varchar(50)")
  697. .HasCharSet("utf8")
  698. .HasCollation("utf8_general_ci");
  699. entity.Property(e => e.Version).HasColumnType("int(11)");
  700. });
  701. modelBuilder.Entity<AppVideoList>(entity =>
  702. {
  703. entity.Property(e => e.Id).HasColumnType("int(11)");
  704. entity.Property(e => e.BgPic)
  705. .HasColumnType("varchar(200)")
  706. .HasCharSet("utf8")
  707. .HasCollation("utf8_general_ci");
  708. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  709. entity.Property(e => e.CreateMan)
  710. .HasColumnType("varchar(50)")
  711. .HasCharSet("utf8")
  712. .HasCollation("utf8_general_ci");
  713. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  714. entity.Property(e => e.Remark)
  715. .HasColumnType("varchar(200)")
  716. .HasCharSet("utf8")
  717. .HasCollation("utf8_general_ci");
  718. entity.Property(e => e.SeoDescription)
  719. .HasColumnType("varchar(500)")
  720. .HasCharSet("utf8")
  721. .HasCollation("utf8_general_ci");
  722. entity.Property(e => e.SeoKeyword)
  723. .HasColumnType("varchar(200)")
  724. .HasCharSet("utf8")
  725. .HasCollation("utf8_general_ci");
  726. entity.Property(e => e.SeoTitle)
  727. .HasColumnType("varchar(100)")
  728. .HasCharSet("utf8")
  729. .HasCollation("utf8_general_ci");
  730. entity.Property(e => e.Sort).HasColumnType("int(11)");
  731. entity.Property(e => e.Status).HasColumnType("int(11)");
  732. entity.Property(e => e.Title)
  733. .HasColumnType("varchar(50)")
  734. .HasCharSet("utf8")
  735. .HasCollation("utf8_general_ci");
  736. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  737. entity.Property(e => e.UpdateMan)
  738. .HasColumnType("varchar(50)")
  739. .HasCharSet("utf8")
  740. .HasCollation("utf8_general_ci");
  741. entity.Property(e => e.Version).HasColumnType("int(11)");
  742. entity.Property(e => e.VideoId).HasColumnType("int(11)");
  743. entity.Property(e => e.VideoUrl)
  744. .HasColumnType("varchar(500)")
  745. .HasCharSet("utf8")
  746. .HasCollation("utf8_general_ci");
  747. });
  748. modelBuilder.Entity<BankInfo>(entity =>
  749. {
  750. entity.Property(e => e.Id).HasColumnType("int(11)");
  751. entity.Property(e => e.BankCode)
  752. .HasColumnType("varchar(16)")
  753. .HasCharSet("utf8")
  754. .HasCollation("utf8_general_ci");
  755. entity.Property(e => e.BankName)
  756. .HasColumnType("varchar(100)")
  757. .HasCharSet("utf8")
  758. .HasCollation("utf8_general_ci");
  759. entity.Property(e => e.BankNameAbbr)
  760. .HasColumnType("varchar(60)")
  761. .HasCharSet("utf8")
  762. .HasCollation("utf8_general_ci");
  763. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  764. entity.Property(e => e.CreateMan)
  765. .HasColumnType("varchar(50)")
  766. .HasCharSet("utf8")
  767. .HasCollation("utf8_general_ci");
  768. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  769. entity.Property(e => e.SeoDescription)
  770. .HasColumnType("varchar(500)")
  771. .HasCharSet("utf8")
  772. .HasCollation("utf8_general_ci");
  773. entity.Property(e => e.SeoKeyword)
  774. .HasColumnType("varchar(200)")
  775. .HasCharSet("utf8")
  776. .HasCollation("utf8_general_ci");
  777. entity.Property(e => e.SeoTitle)
  778. .HasColumnType("varchar(100)")
  779. .HasCharSet("utf8")
  780. .HasCollation("utf8_general_ci");
  781. entity.Property(e => e.Sort).HasColumnType("int(11)");
  782. entity.Property(e => e.Status).HasColumnType("int(11)");
  783. entity.Property(e => e.UnitedBankName)
  784. .HasColumnType("varchar(100)")
  785. .HasCharSet("utf8")
  786. .HasCollation("utf8_general_ci");
  787. entity.Property(e => e.UnitedBankNo)
  788. .HasColumnType("varchar(16)")
  789. .HasCharSet("utf8")
  790. .HasCollation("utf8_general_ci");
  791. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  792. entity.Property(e => e.UpdateMan)
  793. .HasColumnType("varchar(50)")
  794. .HasCharSet("utf8")
  795. .HasCollation("utf8_general_ci");
  796. entity.Property(e => e.Version).HasColumnType("int(11)");
  797. });
  798. modelBuilder.Entity<Col>(entity =>
  799. {
  800. entity.Property(e => e.Id).HasColumnType("int(11)");
  801. entity.Property(e => e.ClassName)
  802. .HasColumnType("varchar(50)")
  803. .HasCharSet("utf8")
  804. .HasCollation("utf8_general_ci");
  805. entity.Property(e => e.ColDetail)
  806. .HasColumnType("varchar(50)")
  807. .HasCharSet("utf8")
  808. .HasCollation("utf8_general_ci");
  809. entity.Property(e => e.ColEnName)
  810. .HasColumnType("varchar(50)")
  811. .HasCharSet("utf8")
  812. .HasCollation("utf8_general_ci");
  813. entity.Property(e => e.ColEnNav)
  814. .HasColumnType("varchar(200)")
  815. .HasCharSet("utf8")
  816. .HasCollation("utf8_general_ci");
  817. entity.Property(e => e.ColId)
  818. .HasColumnType("varchar(30)")
  819. .HasCharSet("utf8")
  820. .HasCollation("utf8_general_ci");
  821. entity.Property(e => e.ColName)
  822. .HasColumnType("varchar(50)")
  823. .HasCharSet("utf8")
  824. .HasCollation("utf8_general_ci");
  825. entity.Property(e => e.ColPicPath)
  826. .HasColumnType("varchar(200)")
  827. .HasCharSet("utf8")
  828. .HasCollation("utf8_general_ci");
  829. entity.Property(e => e.Contents)
  830. .HasColumnType("longtext")
  831. .HasCharSet("utf8")
  832. .HasCollation("utf8_general_ci");
  833. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  834. entity.Property(e => e.CreateMan)
  835. .HasColumnType("varchar(50)")
  836. .HasCharSet("utf8")
  837. .HasCollation("utf8_general_ci");
  838. entity.Property(e => e.DetailTemp)
  839. .HasColumnType("varchar(100)")
  840. .HasCharSet("utf8")
  841. .HasCollation("utf8_general_ci");
  842. entity.Property(e => e.DetailTempM)
  843. .HasColumnType("varchar(100)")
  844. .HasCharSet("utf8")
  845. .HasCollation("utf8_general_ci");
  846. entity.Property(e => e.ListPageCount).HasColumnType("int(11)");
  847. entity.Property(e => e.ListTemp)
  848. .HasColumnType("varchar(100)")
  849. .HasCharSet("utf8")
  850. .HasCollation("utf8_general_ci");
  851. entity.Property(e => e.ListTempM)
  852. .HasColumnType("varchar(100)")
  853. .HasCharSet("utf8")
  854. .HasCollation("utf8_general_ci");
  855. entity.Property(e => e.ParentId).HasColumnType("int(11)");
  856. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  857. entity.Property(e => e.Recommend)
  858. .HasColumnType("bit(1)")
  859. .HasDefaultValueSql("b'0'");
  860. entity.Property(e => e.SeoDescription)
  861. .HasColumnType("varchar(500)")
  862. .HasCharSet("utf8")
  863. .HasCollation("utf8_general_ci");
  864. entity.Property(e => e.SeoKeyword)
  865. .HasColumnType("varchar(200)")
  866. .HasCharSet("utf8")
  867. .HasCollation("utf8_general_ci");
  868. entity.Property(e => e.SeoTitle)
  869. .HasColumnType("varchar(100)")
  870. .HasCharSet("utf8")
  871. .HasCollation("utf8_general_ci");
  872. entity.Property(e => e.Sort).HasColumnType("int(11)");
  873. entity.Property(e => e.Status).HasColumnType("int(11)");
  874. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  875. entity.Property(e => e.UpdateMan)
  876. .HasColumnType("varchar(50)")
  877. .HasCharSet("utf8")
  878. .HasCollation("utf8_general_ci");
  879. entity.Property(e => e.Url)
  880. .HasColumnType("longtext")
  881. .HasCharSet("utf8")
  882. .HasCollation("utf8_general_ci");
  883. entity.Property(e => e.Version).HasColumnType("int(11)");
  884. });
  885. modelBuilder.Entity<ConsumerOpenIds>(entity =>
  886. {
  887. entity.HasKey(e => e.OpenId)
  888. .HasName("PRIMARY");
  889. entity.Property(e => e.OpenId)
  890. .HasColumnType("varchar(50)")
  891. .HasCharSet("utf8")
  892. .HasCollation("utf8_general_ci");
  893. entity.Property(e => e.ConsumerId).HasColumnType("int(11)");
  894. });
  895. modelBuilder.Entity<ConsumerOrderForNo>(entity =>
  896. {
  897. entity.HasKey(e => e.OrderNo)
  898. .HasName("PRIMARY");
  899. entity.Property(e => e.OrderNo)
  900. .HasColumnType("varchar(50)")
  901. .HasCharSet("utf8")
  902. .HasCollation("utf8_general_ci");
  903. entity.Property(e => e.OrderIds).HasColumnType("int(11)");
  904. });
  905. modelBuilder.Entity<ConsumerOrders>(entity =>
  906. {
  907. entity.Property(e => e.Id).HasColumnType("int(11)");
  908. entity.Property(e => e.ConsumerId).HasColumnType("int(11)");
  909. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  910. entity.Property(e => e.CreateMan)
  911. .HasColumnType("varchar(50)")
  912. .HasCharSet("utf8")
  913. .HasCollation("utf8_general_ci");
  914. entity.Property(e => e.CurDivi).HasColumnType("decimal(18,2)");
  915. entity.Property(e => e.IsAct)
  916. .HasColumnType("bit(1)")
  917. .HasDefaultValueSql("b'0'");
  918. entity.Property(e => e.MaxDivi).HasColumnType("decimal(18,2)");
  919. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  920. entity.Property(e => e.OrderNo)
  921. .HasColumnType("varchar(30)")
  922. .HasCharSet("utf8")
  923. .HasCollation("utf8_general_ci");
  924. entity.Property(e => e.PayMode).HasColumnType("int(11)");
  925. entity.Property(e => e.PayMoney).HasColumnType("decimal(18,2)");
  926. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  927. entity.Property(e => e.ReturnMoney).HasColumnType("decimal(18,2)");
  928. entity.Property(e => e.SeoDescription)
  929. .HasColumnType("varchar(500)")
  930. .HasCharSet("utf8")
  931. .HasCollation("utf8_general_ci");
  932. entity.Property(e => e.SeoKeyword)
  933. .HasColumnType("varchar(200)")
  934. .HasCharSet("utf8")
  935. .HasCollation("utf8_general_ci");
  936. entity.Property(e => e.SeoTitle)
  937. .HasColumnType("varchar(100)")
  938. .HasCharSet("utf8")
  939. .HasCollation("utf8_general_ci");
  940. entity.Property(e => e.SnNo)
  941. .HasColumnType("varchar(50)")
  942. .HasCharSet("utf8")
  943. .HasCollation("utf8_general_ci");
  944. entity.Property(e => e.Sort).HasColumnType("int(11)");
  945. entity.Property(e => e.Status).HasColumnType("int(11)");
  946. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  947. entity.Property(e => e.UpdateMan)
  948. .HasColumnType("varchar(50)")
  949. .HasCharSet("utf8")
  950. .HasCollation("utf8_general_ci");
  951. entity.Property(e => e.Version).HasColumnType("int(11)");
  952. });
  953. modelBuilder.Entity<ConsumerProfit>(entity =>
  954. {
  955. entity.Property(e => e.Id).HasColumnType("int(11)");
  956. entity.Property(e => e.ConsumerId).HasColumnType("int(11)");
  957. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  958. entity.Property(e => e.CreateMan)
  959. .HasColumnType("varchar(50)")
  960. .HasCharSet("utf8")
  961. .HasCollation("utf8_general_ci");
  962. entity.Property(e => e.GetMoney).HasColumnType("decimal(18,2)");
  963. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  964. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  965. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  966. entity.Property(e => e.SeoDescription)
  967. .HasColumnType("varchar(500)")
  968. .HasCharSet("utf8")
  969. .HasCollation("utf8_general_ci");
  970. entity.Property(e => e.SeoKeyword)
  971. .HasColumnType("varchar(200)")
  972. .HasCharSet("utf8")
  973. .HasCollation("utf8_general_ci");
  974. entity.Property(e => e.SeoTitle)
  975. .HasColumnType("varchar(100)")
  976. .HasCharSet("utf8")
  977. .HasCollation("utf8_general_ci");
  978. entity.Property(e => e.Sort).HasColumnType("int(11)");
  979. entity.Property(e => e.Status).HasColumnType("int(11)");
  980. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  981. entity.Property(e => e.UpdateMan)
  982. .HasColumnType("varchar(50)")
  983. .HasCharSet("utf8")
  984. .HasCollation("utf8_general_ci");
  985. entity.Property(e => e.Version).HasColumnType("int(11)");
  986. });
  987. modelBuilder.Entity<Consumers>(entity =>
  988. {
  989. entity.Property(e => e.Id).HasColumnType("int(11)");
  990. entity.Property(e => e.AlipayFlag)
  991. .HasColumnType("bit(1)")
  992. .HasDefaultValueSql("b'0'");
  993. entity.Property(e => e.AlipayUserId)
  994. .HasColumnType("varchar(50)")
  995. .HasCharSet("utf8")
  996. .HasCollation("utf8_general_ci");
  997. entity.Property(e => e.CardFlag)
  998. .HasColumnType("bit(1)")
  999. .HasDefaultValueSql("b'0'");
  1000. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1001. entity.Property(e => e.CreateMan)
  1002. .HasColumnType("varchar(50)")
  1003. .HasCharSet("utf8")
  1004. .HasCollation("utf8_general_ci");
  1005. entity.Property(e => e.CurIntgegral).HasColumnType("int(11)");
  1006. entity.Property(e => e.HeadPhoto)
  1007. .HasColumnType("varchar(2000)")
  1008. .HasCharSet("utf8")
  1009. .HasCollation("utf8_general_ci");
  1010. entity.Property(e => e.LastConsumDate).HasColumnType("datetime");
  1011. entity.Property(e => e.Mobile)
  1012. .HasColumnType("varchar(11)")
  1013. .HasCharSet("utf8")
  1014. .HasCollation("utf8_general_ci");
  1015. entity.Property(e => e.NickName)
  1016. .HasColumnType("varchar(50)")
  1017. .HasCharSet("utf8")
  1018. .HasCollation("utf8_general_ci");
  1019. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1020. entity.Property(e => e.SeoDescription)
  1021. .HasColumnType("varchar(500)")
  1022. .HasCharSet("utf8")
  1023. .HasCollation("utf8_general_ci");
  1024. entity.Property(e => e.SeoKeyword)
  1025. .HasColumnType("varchar(200)")
  1026. .HasCharSet("utf8")
  1027. .HasCollation("utf8_general_ci");
  1028. entity.Property(e => e.SeoTitle)
  1029. .HasColumnType("varchar(100)")
  1030. .HasCharSet("utf8")
  1031. .HasCollation("utf8_general_ci");
  1032. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1033. entity.Property(e => e.Status).HasColumnType("int(11)");
  1034. entity.Property(e => e.TotalAmount).HasColumnType("decimal(18,2)");
  1035. entity.Property(e => e.TotalConsumCount).HasColumnType("int(11)");
  1036. entity.Property(e => e.TotalDividend).HasColumnType("decimal(18,2)");
  1037. entity.Property(e => e.TotalIntegral).HasColumnType("int(11)");
  1038. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1039. entity.Property(e => e.UpdateMan)
  1040. .HasColumnType("varchar(50)")
  1041. .HasCharSet("utf8")
  1042. .HasCollation("utf8_general_ci");
  1043. entity.Property(e => e.Version).HasColumnType("int(11)");
  1044. entity.Property(e => e.WeChatPayFlag)
  1045. .HasColumnType("bit(1)")
  1046. .HasDefaultValueSql("b'0'");
  1047. entity.Property(e => e.WechatOpenId)
  1048. .HasColumnType("varchar(50)")
  1049. .HasCharSet("utf8")
  1050. .HasCollation("utf8_general_ci");
  1051. entity.Property(e => e.WechatUnionid)
  1052. .HasColumnType("varchar(50)")
  1053. .HasCharSet("utf8")
  1054. .HasCollation("utf8_general_ci");
  1055. });
  1056. modelBuilder.Entity<CouponAssignRecords>(entity =>
  1057. {
  1058. entity.Property(e => e.Id).HasColumnType("int(11)");
  1059. entity.Property(e => e.Areas)
  1060. .HasColumnType("varchar(50)")
  1061. .HasCharSet("utf8")
  1062. .HasCollation("utf8_general_ci");
  1063. entity.Property(e => e.CouponIds)
  1064. .HasColumnType("varchar(200)")
  1065. .HasCharSet("utf8")
  1066. .HasCollation("utf8_general_ci");
  1067. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1068. entity.Property(e => e.CreateMan)
  1069. .HasColumnType("varchar(50)")
  1070. .HasCharSet("utf8")
  1071. .HasCollation("utf8_general_ci");
  1072. entity.Property(e => e.CurMoneyMax).HasColumnType("decimal(18,2)");
  1073. entity.Property(e => e.CurMoneyMin).HasColumnType("decimal(18,2)");
  1074. entity.Property(e => e.Mobile)
  1075. .HasColumnType("varchar(11)")
  1076. .HasCharSet("utf8")
  1077. .HasCollation("utf8_general_ci");
  1078. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1079. entity.Property(e => e.SeoDescription)
  1080. .HasColumnType("varchar(500)")
  1081. .HasCharSet("utf8")
  1082. .HasCollation("utf8_general_ci");
  1083. entity.Property(e => e.SeoKeyword)
  1084. .HasColumnType("varchar(200)")
  1085. .HasCharSet("utf8")
  1086. .HasCollation("utf8_general_ci");
  1087. entity.Property(e => e.SeoTitle)
  1088. .HasColumnType("varchar(100)")
  1089. .HasCharSet("utf8")
  1090. .HasCollation("utf8_general_ci");
  1091. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1092. entity.Property(e => e.Status).HasColumnType("int(11)");
  1093. entity.Property(e => e.TotalOrderMoneyMax).HasColumnType("decimal(18,2)");
  1094. entity.Property(e => e.TotalOrderMoneyMin).HasColumnType("decimal(18,2)");
  1095. entity.Property(e => e.TotalUseIntegralMax).HasColumnType("decimal(18,2)");
  1096. entity.Property(e => e.TotalUseIntegralMin).HasColumnType("decimal(18,2)");
  1097. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1098. entity.Property(e => e.UpdateMan)
  1099. .HasColumnType("varchar(50)")
  1100. .HasCharSet("utf8")
  1101. .HasCollation("utf8_general_ci");
  1102. entity.Property(e => e.UserGroupId)
  1103. .HasColumnType("varchar(50)")
  1104. .HasCharSet("utf8")
  1105. .HasCollation("utf8_general_ci");
  1106. entity.Property(e => e.UserMaxLevel).HasColumnType("int(11)");
  1107. entity.Property(e => e.UserMinLevel).HasColumnType("int(11)");
  1108. entity.Property(e => e.Version).HasColumnType("int(11)");
  1109. });
  1110. modelBuilder.Entity<Coupons>(entity =>
  1111. {
  1112. entity.Property(e => e.Id).HasColumnType("int(11)");
  1113. entity.Property(e => e.AndPromotion)
  1114. .HasColumnType("bit(1)")
  1115. .HasDefaultValueSql("b'0'");
  1116. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1117. entity.Property(e => e.CreateMan)
  1118. .HasColumnType("varchar(50)")
  1119. .HasCharSet("utf8")
  1120. .HasCollation("utf8_general_ci");
  1121. entity.Property(e => e.ExpireEndDate).HasColumnType("datetime");
  1122. entity.Property(e => e.ExpireStartDate).HasColumnType("datetime");
  1123. entity.Property(e => e.Explanation)
  1124. .HasColumnType("varchar(200)")
  1125. .HasCharSet("utf8")
  1126. .HasCollation("utf8_general_ci");
  1127. entity.Property(e => e.FullReduceData).HasColumnType("decimal(18,2)");
  1128. entity.Property(e => e.FullReduceMoney).HasColumnType("decimal(18,2)");
  1129. entity.Property(e => e.IsNewUser)
  1130. .HasColumnType("bit(1)")
  1131. .HasDefaultValueSql("b'0'");
  1132. entity.Property(e => e.IsPublic)
  1133. .HasColumnType("bit(1)")
  1134. .HasDefaultValueSql("b'0'");
  1135. entity.Property(e => e.IsReUse)
  1136. .HasColumnType("bit(1)")
  1137. .HasDefaultValueSql("b'0'");
  1138. entity.Property(e => e.IsRepeat)
  1139. .HasColumnType("bit(1)")
  1140. .HasDefaultValueSql("b'0'");
  1141. entity.Property(e => e.IsSuperpose)
  1142. .HasColumnType("bit(1)")
  1143. .HasDefaultValueSql("b'0'");
  1144. entity.Property(e => e.Kind).HasColumnType("int(11)");
  1145. entity.Property(e => e.MerchantId)
  1146. .HasColumnType("varchar(200)")
  1147. .HasCharSet("utf8")
  1148. .HasCollation("utf8_general_ci");
  1149. entity.Property(e => e.Name)
  1150. .HasColumnType("varchar(50)")
  1151. .HasCharSet("utf8")
  1152. .HasCollation("utf8_general_ci");
  1153. entity.Property(e => e.ProductColId)
  1154. .HasColumnType("varchar(200)")
  1155. .HasCharSet("utf8")
  1156. .HasCollation("utf8_general_ci");
  1157. entity.Property(e => e.ProductId)
  1158. .HasColumnType("varchar(500)")
  1159. .HasCharSet("utf8")
  1160. .HasCollation("utf8_general_ci");
  1161. entity.Property(e => e.PublicEndDate).HasColumnType("datetime");
  1162. entity.Property(e => e.PublicMax).HasColumnType("int(11)");
  1163. entity.Property(e => e.PublicMaxByDay).HasColumnType("int(11)");
  1164. entity.Property(e => e.PublicStartDate).HasColumnType("datetime");
  1165. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1166. entity.Property(e => e.RepeatCondition)
  1167. .HasColumnType("varchar(50)")
  1168. .HasCharSet("utf8")
  1169. .HasCollation("utf8_general_ci");
  1170. entity.Property(e => e.RepeatType).HasColumnType("int(11)");
  1171. entity.Property(e => e.SeoDescription)
  1172. .HasColumnType("varchar(500)")
  1173. .HasCharSet("utf8")
  1174. .HasCollation("utf8_general_ci");
  1175. entity.Property(e => e.SeoKeyword)
  1176. .HasColumnType("varchar(200)")
  1177. .HasCharSet("utf8")
  1178. .HasCollation("utf8_general_ci");
  1179. entity.Property(e => e.SeoTitle)
  1180. .HasColumnType("varchar(100)")
  1181. .HasCharSet("utf8")
  1182. .HasCollation("utf8_general_ci");
  1183. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1184. entity.Property(e => e.Status).HasColumnType("int(11)");
  1185. entity.Property(e => e.Stock).HasColumnType("decimal(18,2)");
  1186. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1187. entity.Property(e => e.UpdateMan)
  1188. .HasColumnType("varchar(50)")
  1189. .HasCharSet("utf8")
  1190. .HasCollation("utf8_general_ci");
  1191. entity.Property(e => e.UseEndDate).HasColumnType("datetime");
  1192. entity.Property(e => e.UseStartDate).HasColumnType("datetime");
  1193. entity.Property(e => e.UserMaxLevel).HasColumnType("int(11)");
  1194. entity.Property(e => e.UserMinLevel).HasColumnType("int(11)");
  1195. entity.Property(e => e.Version).HasColumnType("int(11)");
  1196. });
  1197. modelBuilder.Entity<CouponsForUser>(entity =>
  1198. {
  1199. entity.Property(e => e.Id).HasColumnType("int(11)");
  1200. entity.Property(e => e.CouponId).HasColumnType("int(11)");
  1201. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1202. entity.Property(e => e.CreateMan)
  1203. .HasColumnType("varchar(50)")
  1204. .HasCharSet("utf8")
  1205. .HasCollation("utf8_general_ci");
  1206. entity.Property(e => e.IsLock)
  1207. .HasColumnType("bit(1)")
  1208. .HasDefaultValueSql("b'0'");
  1209. entity.Property(e => e.IsUse)
  1210. .HasColumnType("bit(1)")
  1211. .HasDefaultValueSql("b'0'");
  1212. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1213. entity.Property(e => e.SeoDescription)
  1214. .HasColumnType("varchar(500)")
  1215. .HasCharSet("utf8")
  1216. .HasCollation("utf8_general_ci");
  1217. entity.Property(e => e.SeoKeyword)
  1218. .HasColumnType("varchar(200)")
  1219. .HasCharSet("utf8")
  1220. .HasCollation("utf8_general_ci");
  1221. entity.Property(e => e.SeoTitle)
  1222. .HasColumnType("varchar(100)")
  1223. .HasCharSet("utf8")
  1224. .HasCollation("utf8_general_ci");
  1225. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1226. entity.Property(e => e.Status).HasColumnType("int(11)");
  1227. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1228. entity.Property(e => e.UpdateMan)
  1229. .HasColumnType("varchar(50)")
  1230. .HasCharSet("utf8")
  1231. .HasCollation("utf8_general_ci");
  1232. entity.Property(e => e.UseDate).HasColumnType("datetime");
  1233. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1234. entity.Property(e => e.Version).HasColumnType("int(11)");
  1235. });
  1236. modelBuilder.Entity<CustomTagSet>(entity =>
  1237. {
  1238. entity.Property(e => e.Id).HasColumnType("int(11)");
  1239. entity.Property(e => e.Contents)
  1240. .HasColumnType("varchar(500)")
  1241. .HasCharSet("utf8")
  1242. .HasCollation("utf8_general_ci");
  1243. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1244. entity.Property(e => e.CreateMan)
  1245. .HasColumnType("varchar(50)")
  1246. .HasCharSet("utf8")
  1247. .HasCollation("utf8_general_ci");
  1248. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1249. entity.Property(e => e.SeoDescription)
  1250. .HasColumnType("varchar(500)")
  1251. .HasCharSet("utf8")
  1252. .HasCollation("utf8_general_ci");
  1253. entity.Property(e => e.SeoKeyword)
  1254. .HasColumnType("varchar(200)")
  1255. .HasCharSet("utf8")
  1256. .HasCollation("utf8_general_ci");
  1257. entity.Property(e => e.SeoTitle)
  1258. .HasColumnType("varchar(100)")
  1259. .HasCharSet("utf8")
  1260. .HasCollation("utf8_general_ci");
  1261. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1262. entity.Property(e => e.Status).HasColumnType("int(11)");
  1263. entity.Property(e => e.Tags)
  1264. .HasColumnType("varchar(50)")
  1265. .HasCharSet("utf8")
  1266. .HasCollation("utf8_general_ci");
  1267. entity.Property(e => e.Title)
  1268. .HasColumnType("varchar(50)")
  1269. .HasCharSet("utf8")
  1270. .HasCollation("utf8_general_ci");
  1271. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1272. entity.Property(e => e.UpdateMan)
  1273. .HasColumnType("varchar(50)")
  1274. .HasCharSet("utf8")
  1275. .HasCollation("utf8_general_ci");
  1276. entity.Property(e => e.Version).HasColumnType("int(11)");
  1277. });
  1278. modelBuilder.Entity<ErpCompanys>(entity =>
  1279. {
  1280. entity.Property(e => e.Id).HasColumnType("int(11)");
  1281. entity.Property(e => e.Code)
  1282. .HasColumnType("varchar(50)")
  1283. .HasCharSet("utf8")
  1284. .HasCollation("utf8_general_ci");
  1285. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1286. entity.Property(e => e.CreateMan)
  1287. .HasColumnType("varchar(50)")
  1288. .HasCharSet("utf8")
  1289. .HasCollation("utf8_general_ci");
  1290. entity.Property(e => e.Name)
  1291. .HasColumnType("varchar(50)")
  1292. .HasCharSet("utf8")
  1293. .HasCollation("utf8_general_ci");
  1294. entity.Property(e => e.Phone)
  1295. .HasColumnType("varchar(30)")
  1296. .HasCharSet("utf8")
  1297. .HasCollation("utf8_general_ci");
  1298. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1299. entity.Property(e => e.SeoDescription)
  1300. .HasColumnType("varchar(500)")
  1301. .HasCharSet("utf8")
  1302. .HasCollation("utf8_general_ci");
  1303. entity.Property(e => e.SeoKeyword)
  1304. .HasColumnType("varchar(200)")
  1305. .HasCharSet("utf8")
  1306. .HasCollation("utf8_general_ci");
  1307. entity.Property(e => e.SeoTitle)
  1308. .HasColumnType("varchar(100)")
  1309. .HasCharSet("utf8")
  1310. .HasCollation("utf8_general_ci");
  1311. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1312. entity.Property(e => e.Status).HasColumnType("int(11)");
  1313. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1314. entity.Property(e => e.UpdateMan)
  1315. .HasColumnType("varchar(50)")
  1316. .HasCharSet("utf8")
  1317. .HasCollation("utf8_general_ci");
  1318. entity.Property(e => e.Version).HasColumnType("int(11)");
  1319. });
  1320. modelBuilder.Entity<FileUpdateInfo>(entity =>
  1321. {
  1322. entity.Property(e => e.Id).HasColumnType("int(11)");
  1323. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1324. entity.Property(e => e.CreateMan)
  1325. .HasColumnType("varchar(50)")
  1326. .HasCharSet("utf8")
  1327. .HasCollation("utf8_general_ci");
  1328. entity.Property(e => e.FileName)
  1329. .HasColumnType("varchar(50)")
  1330. .HasCharSet("utf8")
  1331. .HasCollation("utf8_general_ci");
  1332. entity.Property(e => e.Path)
  1333. .HasColumnType("varchar(200)")
  1334. .HasCharSet("utf8")
  1335. .HasCollation("utf8_general_ci");
  1336. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1337. entity.Property(e => e.SeoDescription)
  1338. .HasColumnType("varchar(500)")
  1339. .HasCharSet("utf8")
  1340. .HasCollation("utf8_general_ci");
  1341. entity.Property(e => e.SeoKeyword)
  1342. .HasColumnType("varchar(200)")
  1343. .HasCharSet("utf8")
  1344. .HasCollation("utf8_general_ci");
  1345. entity.Property(e => e.SeoTitle)
  1346. .HasColumnType("varchar(100)")
  1347. .HasCharSet("utf8")
  1348. .HasCollation("utf8_general_ci");
  1349. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1350. entity.Property(e => e.Status).HasColumnType("int(11)");
  1351. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1352. entity.Property(e => e.UpdateMan)
  1353. .HasColumnType("varchar(50)")
  1354. .HasCharSet("utf8")
  1355. .HasCollation("utf8_general_ci");
  1356. entity.Property(e => e.Version).HasColumnType("int(11)");
  1357. entity.Property(e => e.VersionNum).HasColumnType("int(11)");
  1358. });
  1359. modelBuilder.Entity<FluxProfitDetail>(entity =>
  1360. {
  1361. entity.Property(e => e.Id).HasColumnType("int(11)");
  1362. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1363. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1364. entity.Property(e => e.CreateMan)
  1365. .HasColumnType("varchar(50)")
  1366. .HasCharSet("utf8")
  1367. .HasCollation("utf8_general_ci");
  1368. entity.Property(e => e.FluxEndDate)
  1369. .HasColumnType("varchar(8)")
  1370. .HasCharSet("utf8")
  1371. .HasCollation("utf8_general_ci");
  1372. entity.Property(e => e.FluxFeeAmt).HasColumnType("decimal(18,2)");
  1373. entity.Property(e => e.FluxOrderNo)
  1374. .HasColumnType("varchar(64)")
  1375. .HasCharSet("utf8")
  1376. .HasCollation("utf8_general_ci");
  1377. entity.Property(e => e.FluxProfitAmt).HasColumnType("decimal(18,2)");
  1378. entity.Property(e => e.FluxStartDate)
  1379. .HasColumnType("varchar(8)")
  1380. .HasCharSet("utf8")
  1381. .HasCollation("utf8_general_ci");
  1382. entity.Property(e => e.MerNo)
  1383. .HasColumnType("varchar(32)")
  1384. .HasCharSet("utf8")
  1385. .HasCollation("utf8_general_ci");
  1386. entity.Property(e => e.MerUserType).HasColumnType("int(11)");
  1387. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  1388. entity.Property(e => e.MerchantUserId).HasColumnType("int(11)");
  1389. entity.Property(e => e.PosType)
  1390. .HasColumnType("varchar(32)")
  1391. .HasCharSet("utf8")
  1392. .HasCollation("utf8_general_ci");
  1393. entity.Property(e => e.ProfitType).HasColumnType("int(11)");
  1394. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1395. entity.Property(e => e.RecordNo)
  1396. .HasColumnType("varchar(32)")
  1397. .HasCharSet("utf8")
  1398. .HasCollation("utf8_general_ci");
  1399. entity.Property(e => e.Remark)
  1400. .HasColumnType("varchar(128)")
  1401. .HasCharSet("utf8")
  1402. .HasCollation("utf8_general_ci");
  1403. entity.Property(e => e.SeoDescription)
  1404. .HasColumnType("varchar(500)")
  1405. .HasCharSet("utf8")
  1406. .HasCollation("utf8_general_ci");
  1407. entity.Property(e => e.SeoKeyword)
  1408. .HasColumnType("varchar(200)")
  1409. .HasCharSet("utf8")
  1410. .HasCollation("utf8_general_ci");
  1411. entity.Property(e => e.SeoTitle)
  1412. .HasColumnType("varchar(100)")
  1413. .HasCharSet("utf8")
  1414. .HasCollation("utf8_general_ci");
  1415. entity.Property(e => e.SnNo)
  1416. .HasColumnType("varchar(32)")
  1417. .HasCharSet("utf8")
  1418. .HasCollation("utf8_general_ci");
  1419. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1420. entity.Property(e => e.Status).HasColumnType("int(11)");
  1421. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  1422. entity.Property(e => e.TradeAmt).HasColumnType("decimal(18,2)");
  1423. entity.Property(e => e.TradeDate)
  1424. .HasColumnType("varchar(8)")
  1425. .HasCharSet("utf8")
  1426. .HasCollation("utf8_general_ci");
  1427. entity.Property(e => e.TradeMonth)
  1428. .HasColumnType("varchar(6)")
  1429. .HasCharSet("utf8")
  1430. .HasCollation("utf8_general_ci");
  1431. entity.Property(e => e.TradeOrderNo)
  1432. .HasColumnType("varchar(64)")
  1433. .HasCharSet("utf8")
  1434. .HasCollation("utf8_general_ci");
  1435. entity.Property(e => e.TradeTime)
  1436. .HasColumnType("varchar(6)")
  1437. .HasCharSet("utf8")
  1438. .HasCollation("utf8_general_ci");
  1439. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1440. entity.Property(e => e.UpdateMan)
  1441. .HasColumnType("varchar(50)")
  1442. .HasCharSet("utf8")
  1443. .HasCollation("utf8_general_ci");
  1444. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1445. entity.Property(e => e.Version).HasColumnType("int(11)");
  1446. });
  1447. modelBuilder.Entity<FluxProfitSummary>(entity =>
  1448. {
  1449. entity.Property(e => e.Id).HasColumnType("int(11)");
  1450. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1451. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  1452. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1453. entity.Property(e => e.CreateMan)
  1454. .HasColumnType("varchar(50)")
  1455. .HasCharSet("utf8")
  1456. .HasCollation("utf8_general_ci");
  1457. entity.Property(e => e.FluxProfitAmt).HasColumnType("decimal(18,2)");
  1458. entity.Property(e => e.FluxTradeNum).HasColumnType("int(11)");
  1459. entity.Property(e => e.MerUserType).HasColumnType("int(11)");
  1460. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1461. entity.Property(e => e.Remark)
  1462. .HasColumnType("varchar(64)")
  1463. .HasCharSet("utf8")
  1464. .HasCollation("utf8_general_ci");
  1465. entity.Property(e => e.SeoDescription)
  1466. .HasColumnType("varchar(500)")
  1467. .HasCharSet("utf8")
  1468. .HasCollation("utf8_general_ci");
  1469. entity.Property(e => e.SeoKeyword)
  1470. .HasColumnType("varchar(200)")
  1471. .HasCharSet("utf8")
  1472. .HasCollation("utf8_general_ci");
  1473. entity.Property(e => e.SeoTitle)
  1474. .HasColumnType("varchar(100)")
  1475. .HasCharSet("utf8")
  1476. .HasCollation("utf8_general_ci");
  1477. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1478. entity.Property(e => e.Status).HasColumnType("int(11)");
  1479. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  1480. entity.Property(e => e.TradeMonth)
  1481. .HasColumnType("varchar(6)")
  1482. .HasCharSet("utf8")
  1483. .HasCollation("utf8_general_ci");
  1484. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1485. entity.Property(e => e.UpdateMan)
  1486. .HasColumnType("varchar(50)")
  1487. .HasCharSet("utf8")
  1488. .HasCollation("utf8_general_ci");
  1489. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1490. entity.Property(e => e.Version).HasColumnType("int(11)");
  1491. });
  1492. modelBuilder.Entity<IndexIconList>(entity =>
  1493. {
  1494. entity.Property(e => e.Id).HasColumnType("int(11)");
  1495. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1496. entity.Property(e => e.CreateMan)
  1497. .HasColumnType("varchar(50)")
  1498. .HasCharSet("utf8")
  1499. .HasCollation("utf8_general_ci");
  1500. entity.Property(e => e.Icon)
  1501. .HasColumnType("varchar(200)")
  1502. .HasCharSet("utf8")
  1503. .HasCollation("utf8_general_ci");
  1504. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1505. entity.Property(e => e.SeoDescription)
  1506. .HasColumnType("varchar(500)")
  1507. .HasCharSet("utf8")
  1508. .HasCollation("utf8_general_ci");
  1509. entity.Property(e => e.SeoKeyword)
  1510. .HasColumnType("varchar(200)")
  1511. .HasCharSet("utf8")
  1512. .HasCollation("utf8_general_ci");
  1513. entity.Property(e => e.SeoTitle)
  1514. .HasColumnType("varchar(100)")
  1515. .HasCharSet("utf8")
  1516. .HasCollation("utf8_general_ci");
  1517. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1518. entity.Property(e => e.Status).HasColumnType("int(11)");
  1519. entity.Property(e => e.Title)
  1520. .HasColumnType("varchar(50)")
  1521. .HasCharSet("utf8")
  1522. .HasCollation("utf8_general_ci");
  1523. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1524. entity.Property(e => e.UpdateMan)
  1525. .HasColumnType("varchar(50)")
  1526. .HasCharSet("utf8")
  1527. .HasCollation("utf8_general_ci");
  1528. entity.Property(e => e.Url)
  1529. .HasColumnType("varchar(50)")
  1530. .HasCharSet("utf8")
  1531. .HasCollation("utf8_general_ci");
  1532. entity.Property(e => e.Version).HasColumnType("int(11)");
  1533. });
  1534. modelBuilder.Entity<KqProductBrand>(entity =>
  1535. {
  1536. entity.Property(e => e.Id).HasColumnType("int(11)");
  1537. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1538. entity.Property(e => e.CreateMan)
  1539. .HasColumnType("varchar(50)")
  1540. .HasCharSet("utf8")
  1541. .HasCollation("utf8_general_ci");
  1542. entity.Property(e => e.Name)
  1543. .HasColumnType("varchar(50)")
  1544. .HasCharSet("utf8")
  1545. .HasCollation("utf8_general_ci");
  1546. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  1547. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1548. entity.Property(e => e.SeoDescription)
  1549. .HasColumnType("varchar(500)")
  1550. .HasCharSet("utf8")
  1551. .HasCollation("utf8_general_ci");
  1552. entity.Property(e => e.SeoKeyword)
  1553. .HasColumnType("varchar(200)")
  1554. .HasCharSet("utf8")
  1555. .HasCollation("utf8_general_ci");
  1556. entity.Property(e => e.SeoTitle)
  1557. .HasColumnType("varchar(100)")
  1558. .HasCharSet("utf8")
  1559. .HasCollation("utf8_general_ci");
  1560. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1561. entity.Property(e => e.Status).HasColumnType("int(11)");
  1562. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1563. entity.Property(e => e.UpdateMan)
  1564. .HasColumnType("varchar(50)")
  1565. .HasCharSet("utf8")
  1566. .HasCollation("utf8_general_ci");
  1567. entity.Property(e => e.Version).HasColumnType("int(11)");
  1568. });
  1569. modelBuilder.Entity<KqProductOrgs>(entity =>
  1570. {
  1571. entity.Property(e => e.Id).HasColumnType("int(11)");
  1572. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1573. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1574. entity.Property(e => e.CreateMan)
  1575. .HasColumnType("varchar(50)")
  1576. .HasCharSet("utf8")
  1577. .HasCollation("utf8_general_ci");
  1578. entity.Property(e => e.Name)
  1579. .HasColumnType("varchar(50)")
  1580. .HasCharSet("utf8")
  1581. .HasCollation("utf8_general_ci");
  1582. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1583. entity.Property(e => e.SeoDescription)
  1584. .HasColumnType("varchar(500)")
  1585. .HasCharSet("utf8")
  1586. .HasCollation("utf8_general_ci");
  1587. entity.Property(e => e.SeoKeyword)
  1588. .HasColumnType("varchar(200)")
  1589. .HasCharSet("utf8")
  1590. .HasCollation("utf8_general_ci");
  1591. entity.Property(e => e.SeoTitle)
  1592. .HasColumnType("varchar(100)")
  1593. .HasCharSet("utf8")
  1594. .HasCollation("utf8_general_ci");
  1595. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1596. entity.Property(e => e.Status).HasColumnType("int(11)");
  1597. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1598. entity.Property(e => e.UpdateMan)
  1599. .HasColumnType("varchar(50)")
  1600. .HasCharSet("utf8")
  1601. .HasCollation("utf8_general_ci");
  1602. entity.Property(e => e.Version).HasColumnType("int(11)");
  1603. });
  1604. modelBuilder.Entity<KqProductRuleSet>(entity =>
  1605. {
  1606. entity.Property(e => e.Id).HasColumnType("int(11)");
  1607. entity.Property(e => e.ActDeposit).HasColumnType("decimal(18,2)");
  1608. entity.Property(e => e.ActEndDate).HasColumnType("datetime");
  1609. entity.Property(e => e.ActFirst).HasColumnType("decimal(18,2)");
  1610. entity.Property(e => e.ActFirstDeposit).HasColumnType("decimal(18,2)");
  1611. entity.Property(e => e.ActPosCount).HasColumnType("int(11)");
  1612. entity.Property(e => e.ActPrize).HasColumnType("decimal(18,2)");
  1613. entity.Property(e => e.ActStartDate).HasColumnType("datetime");
  1614. entity.Property(e => e.ActiveCount).HasColumnType("int(11)");
  1615. entity.Property(e => e.ActivePrice).HasColumnType("decimal(18,2)");
  1616. entity.Property(e => e.BigExtendCycleDays).HasColumnType("int(11)");
  1617. entity.Property(e => e.BigTotalAmount).HasColumnType("decimal(18,2)");
  1618. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1619. entity.Property(e => e.CreateMan)
  1620. .HasColumnType("varchar(50)")
  1621. .HasCharSet("utf8")
  1622. .HasCollation("utf8_general_ci");
  1623. entity.Property(e => e.CycleEndDate).HasColumnType("datetime");
  1624. entity.Property(e => e.CycleIsOther)
  1625. .HasColumnType("bit(1)")
  1626. .HasDefaultValueSql("b'0'");
  1627. entity.Property(e => e.CyclePosDays).HasColumnType("int(11)");
  1628. entity.Property(e => e.CycleStartDate).HasColumnType("datetime");
  1629. entity.Property(e => e.Deposit).HasColumnType("decimal(18,2)");
  1630. entity.Property(e => e.FeeBindDays).HasColumnType("int(11)");
  1631. entity.Property(e => e.FeeFixed).HasColumnType("decimal(18,2)");
  1632. entity.Property(e => e.FeeOfDays).HasColumnType("datetime");
  1633. entity.Property(e => e.FeeRate).HasColumnType("decimal(18,2)");
  1634. entity.Property(e => e.FlowCardDirectProfit).HasColumnType("decimal(18,2)");
  1635. entity.Property(e => e.FlowCardEndDate).HasColumnType("datetime");
  1636. entity.Property(e => e.FlowCardFee).HasColumnType("decimal(18,2)");
  1637. entity.Property(e => e.FlowCardFreeDays).HasColumnType("int(11)");
  1638. entity.Property(e => e.FlowCardStartDate).HasColumnType("datetime");
  1639. entity.Property(e => e.HelpEndDate).HasColumnType("datetime");
  1640. entity.Property(e => e.HelpFee).HasColumnType("decimal(18,2)");
  1641. entity.Property(e => e.HelpMonths).HasColumnType("int(11)");
  1642. entity.Property(e => e.HelpStartDate).HasColumnType("datetime");
  1643. entity.Property(e => e.HelpSteadyFee).HasColumnType("decimal(18,2)");
  1644. entity.Property(e => e.MerStaEndDate).HasColumnType("datetime");
  1645. entity.Property(e => e.MerStaMonths).HasColumnType("int(11)");
  1646. entity.Property(e => e.MerStaProfit).HasColumnType("decimal(18,2)");
  1647. entity.Property(e => e.MerStaStartDate).HasColumnType("datetime");
  1648. entity.Property(e => e.MerStaTradeForMonth).HasColumnType("decimal(18,2)");
  1649. entity.Property(e => e.OpenEndDate).HasColumnType("datetime");
  1650. entity.Property(e => e.OpenStaDays).HasColumnType("int(11)");
  1651. entity.Property(e => e.OpenStaPrize).HasColumnType("decimal(18,2)");
  1652. entity.Property(e => e.OpenStaPrize2).HasColumnType("decimal(18,2)");
  1653. entity.Property(e => e.OpenStaTrade).HasColumnType("decimal(18,2)");
  1654. entity.Property(e => e.OpenStartDate).HasColumnType("datetime");
  1655. entity.Property(e => e.OrgId).HasColumnType("int(11)");
  1656. entity.Property(e => e.PullNewEndDate).HasColumnType("datetime");
  1657. entity.Property(e => e.PullNewExtendDays).HasColumnType("int(11)");
  1658. entity.Property(e => e.PullNewStartDate).HasColumnType("datetime");
  1659. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1660. entity.Property(e => e.SeoDescription)
  1661. .HasColumnType("varchar(500)")
  1662. .HasCharSet("utf8")
  1663. .HasCollation("utf8_general_ci");
  1664. entity.Property(e => e.SeoKeyword)
  1665. .HasColumnType("varchar(200)")
  1666. .HasCharSet("utf8")
  1667. .HasCollation("utf8_general_ci");
  1668. entity.Property(e => e.SeoTitle)
  1669. .HasColumnType("varchar(100)")
  1670. .HasCharSet("utf8")
  1671. .HasCollation("utf8_general_ci");
  1672. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1673. entity.Property(e => e.Status).HasColumnType("int(11)");
  1674. entity.Property(e => e.SubsidyEndDate).HasColumnType("datetime");
  1675. entity.Property(e => e.SubsidyStartDate).HasColumnType("datetime");
  1676. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1677. entity.Property(e => e.UpdateMan)
  1678. .HasColumnType("varchar(50)")
  1679. .HasCharSet("utf8")
  1680. .HasCollation("utf8_general_ci");
  1681. entity.Property(e => e.Version).HasColumnType("int(11)");
  1682. });
  1683. modelBuilder.Entity<KqProducts>(entity =>
  1684. {
  1685. entity.Property(e => e.Id).HasColumnType("int(11)");
  1686. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1687. entity.Property(e => e.CreateMan)
  1688. .HasColumnType("varchar(50)")
  1689. .HasCharSet("utf8")
  1690. .HasCollation("utf8_general_ci");
  1691. entity.Property(e => e.Name)
  1692. .HasColumnType("varchar(50)")
  1693. .HasCharSet("utf8")
  1694. .HasCollation("utf8_general_ci");
  1695. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1696. entity.Property(e => e.SeoDescription)
  1697. .HasColumnType("varchar(500)")
  1698. .HasCharSet("utf8")
  1699. .HasCollation("utf8_general_ci");
  1700. entity.Property(e => e.SeoKeyword)
  1701. .HasColumnType("varchar(200)")
  1702. .HasCharSet("utf8")
  1703. .HasCollation("utf8_general_ci");
  1704. entity.Property(e => e.SeoTitle)
  1705. .HasColumnType("varchar(100)")
  1706. .HasCharSet("utf8")
  1707. .HasCollation("utf8_general_ci");
  1708. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1709. entity.Property(e => e.Status).HasColumnType("int(11)");
  1710. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1711. entity.Property(e => e.UpdateMan)
  1712. .HasColumnType("varchar(50)")
  1713. .HasCharSet("utf8")
  1714. .HasCollation("utf8_general_ci");
  1715. entity.Property(e => e.Version).HasColumnType("int(11)");
  1716. });
  1717. modelBuilder.Entity<MachineApply>(entity =>
  1718. {
  1719. entity.Property(e => e.Id).HasColumnType("int(11)");
  1720. entity.Property(e => e.Address)
  1721. .HasColumnType("varchar(50)")
  1722. .HasCharSet("utf8")
  1723. .HasCollation("utf8_general_ci");
  1724. entity.Property(e => e.ApplyDeviceName)
  1725. .HasColumnType("varchar(32)")
  1726. .HasCharSet("utf8")
  1727. .HasCollation("utf8_general_ci");
  1728. entity.Property(e => e.ApplyDeviceNum).HasColumnType("int(11)");
  1729. entity.Property(e => e.ApplyNo)
  1730. .HasColumnType("varchar(32)")
  1731. .HasCharSet("utf8")
  1732. .HasCollation("utf8_general_ci");
  1733. entity.Property(e => e.ApplyTime).HasColumnType("datetime");
  1734. entity.Property(e => e.Areas)
  1735. .HasColumnType("varchar(30)")
  1736. .HasCharSet("utf8")
  1737. .HasCollation("utf8_general_ci");
  1738. entity.Property(e => e.AuditBy)
  1739. .HasColumnType("varchar(32)")
  1740. .HasCharSet("utf8")
  1741. .HasCollation("utf8_general_ci");
  1742. entity.Property(e => e.AuditRemark)
  1743. .HasColumnType("varchar(128)")
  1744. .HasCharSet("utf8")
  1745. .HasCollation("utf8_general_ci");
  1746. entity.Property(e => e.AuditResult).HasColumnType("int(11)");
  1747. entity.Property(e => e.AuditTime).HasColumnType("datetime");
  1748. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1749. entity.Property(e => e.CompleteTime).HasColumnType("datetime");
  1750. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1751. entity.Property(e => e.CreateMan)
  1752. .HasColumnType("varchar(50)")
  1753. .HasCharSet("utf8")
  1754. .HasCollation("utf8_general_ci");
  1755. entity.Property(e => e.DeliveryType).HasColumnType("int(11)");
  1756. entity.Property(e => e.ExpressName)
  1757. .HasColumnType("varchar(32)")
  1758. .HasCharSet("utf8")
  1759. .HasCollation("utf8_general_ci");
  1760. entity.Property(e => e.ExpressNo)
  1761. .HasColumnType("varchar(32)")
  1762. .HasCharSet("utf8")
  1763. .HasCollation("utf8_general_ci");
  1764. entity.Property(e => e.Mobile)
  1765. .HasColumnType("varchar(11)")
  1766. .HasCharSet("utf8")
  1767. .HasCollation("utf8_general_ci");
  1768. entity.Property(e => e.OrderExpand)
  1769. .HasColumnType("mediumtext")
  1770. .HasCharSet("utf8")
  1771. .HasCollation("utf8_general_ci");
  1772. entity.Property(e => e.ProductName)
  1773. .HasColumnType("varchar(32)")
  1774. .HasCharSet("utf8")
  1775. .HasCollation("utf8_general_ci");
  1776. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1777. entity.Property(e => e.RealName)
  1778. .HasColumnType("varchar(30)")
  1779. .HasCharSet("utf8")
  1780. .HasCollation("utf8_general_ci");
  1781. entity.Property(e => e.Remark)
  1782. .HasColumnType("varchar(64)")
  1783. .HasCharSet("utf8")
  1784. .HasCollation("utf8_general_ci");
  1785. entity.Property(e => e.ReturnOrderNo)
  1786. .HasColumnType("varchar(32)")
  1787. .HasCharSet("utf8")
  1788. .HasCollation("utf8_general_ci");
  1789. entity.Property(e => e.ReturnStatus).HasColumnType("int(11)");
  1790. entity.Property(e => e.SendDate).HasColumnType("datetime");
  1791. entity.Property(e => e.SendSn)
  1792. .HasColumnType("varchar(32)")
  1793. .HasCharSet("utf8")
  1794. .HasCollation("utf8_general_ci");
  1795. entity.Property(e => e.SendStatus).HasColumnType("int(11)");
  1796. entity.Property(e => e.SeoDescription)
  1797. .HasColumnType("varchar(500)")
  1798. .HasCharSet("utf8")
  1799. .HasCollation("utf8_general_ci");
  1800. entity.Property(e => e.SeoKeyword)
  1801. .HasColumnType("varchar(200)")
  1802. .HasCharSet("utf8")
  1803. .HasCollation("utf8_general_ci");
  1804. entity.Property(e => e.SeoTitle)
  1805. .HasColumnType("varchar(100)")
  1806. .HasCharSet("utf8")
  1807. .HasCollation("utf8_general_ci");
  1808. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1809. entity.Property(e => e.Status).HasColumnType("int(11)");
  1810. entity.Property(e => e.StoreAddress)
  1811. .HasColumnType("varchar(50)")
  1812. .HasCharSet("utf8")
  1813. .HasCollation("utf8_general_ci");
  1814. entity.Property(e => e.StoreAreas)
  1815. .HasColumnType("varchar(30)")
  1816. .HasCharSet("utf8")
  1817. .HasCollation("utf8_general_ci");
  1818. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  1819. entity.Property(e => e.StoreManager)
  1820. .HasColumnType("varchar(32)")
  1821. .HasCharSet("utf8")
  1822. .HasCollation("utf8_general_ci");
  1823. entity.Property(e => e.StoreManagerMobile)
  1824. .HasColumnType("varchar(11)")
  1825. .HasCharSet("utf8")
  1826. .HasCollation("utf8_general_ci");
  1827. entity.Property(e => e.StoreName)
  1828. .HasColumnType("varchar(32)")
  1829. .HasCharSet("utf8")
  1830. .HasCollation("utf8_general_ci");
  1831. entity.Property(e => e.StoreType).HasColumnType("int(11)");
  1832. entity.Property(e => e.StoreUserId).HasColumnType("int(11)");
  1833. entity.Property(e => e.SwapActProName)
  1834. .HasColumnType("varchar(32)")
  1835. .HasCharSet("utf8")
  1836. .HasCollation("utf8_general_ci");
  1837. entity.Property(e => e.SwapActProType).HasColumnType("int(11)");
  1838. entity.Property(e => e.SwapSnExpand)
  1839. .HasColumnType("mediumtext")
  1840. .HasCharSet("utf8")
  1841. .HasCollation("utf8_general_ci");
  1842. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  1843. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1844. entity.Property(e => e.UpdateMan)
  1845. .HasColumnType("varchar(50)")
  1846. .HasCharSet("utf8")
  1847. .HasCollation("utf8_general_ci");
  1848. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1849. entity.Property(e => e.Version).HasColumnType("int(11)");
  1850. });
  1851. modelBuilder.Entity<MachineApplyDetail>(entity =>
  1852. {
  1853. entity.Property(e => e.Id).HasColumnType("int(11)");
  1854. entity.Property(e => e.ApplyId).HasColumnType("int(11)");
  1855. entity.Property(e => e.ApplyNo)
  1856. .HasColumnType("varchar(32)")
  1857. .HasCharSet("utf8")
  1858. .HasCollation("utf8_general_ci");
  1859. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1860. entity.Property(e => e.CreateMan)
  1861. .HasColumnType("varchar(50)")
  1862. .HasCharSet("utf8")
  1863. .HasCollation("utf8_general_ci");
  1864. entity.Property(e => e.DeviceDesc)
  1865. .HasColumnType("varchar(32)")
  1866. .HasCharSet("utf8")
  1867. .HasCollation("utf8_general_ci");
  1868. entity.Property(e => e.DeviceModel)
  1869. .HasColumnType("varchar(32)")
  1870. .HasCharSet("utf8")
  1871. .HasCollation("utf8_general_ci");
  1872. entity.Property(e => e.DeviceSnNo)
  1873. .HasColumnType("varchar(32)")
  1874. .HasCharSet("utf8")
  1875. .HasCollation("utf8_general_ci");
  1876. entity.Property(e => e.DeviceStatus).HasColumnType("int(11)");
  1877. entity.Property(e => e.DeviceVendor)
  1878. .HasColumnType("varchar(32)")
  1879. .HasCharSet("utf8")
  1880. .HasCollation("utf8_general_ci");
  1881. entity.Property(e => e.ProductName)
  1882. .HasColumnType("varchar(32)")
  1883. .HasCharSet("utf8")
  1884. .HasCollation("utf8_general_ci");
  1885. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  1886. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1887. entity.Property(e => e.Remark)
  1888. .HasColumnType("varchar(64)")
  1889. .HasCharSet("utf8")
  1890. .HasCollation("utf8_general_ci");
  1891. entity.Property(e => e.SeoDescription)
  1892. .HasColumnType("varchar(500)")
  1893. .HasCharSet("utf8")
  1894. .HasCollation("utf8_general_ci");
  1895. entity.Property(e => e.SeoKeyword)
  1896. .HasColumnType("varchar(200)")
  1897. .HasCharSet("utf8")
  1898. .HasCollation("utf8_general_ci");
  1899. entity.Property(e => e.SeoTitle)
  1900. .HasColumnType("varchar(100)")
  1901. .HasCharSet("utf8")
  1902. .HasCollation("utf8_general_ci");
  1903. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1904. entity.Property(e => e.SourceSnNo)
  1905. .HasColumnType("varchar(32)")
  1906. .HasCharSet("utf8")
  1907. .HasCollation("utf8_general_ci");
  1908. entity.Property(e => e.SourceSnType).HasColumnType("int(11)");
  1909. entity.Property(e => e.Status).HasColumnType("int(11)");
  1910. entity.Property(e => e.UpSrcProName)
  1911. .HasColumnType("varchar(32)")
  1912. .HasCharSet("utf8")
  1913. .HasCollation("utf8_general_ci");
  1914. entity.Property(e => e.UpSrcProType).HasColumnType("int(11)");
  1915. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1916. entity.Property(e => e.UpdateMan)
  1917. .HasColumnType("varchar(50)")
  1918. .HasCharSet("utf8")
  1919. .HasCollation("utf8_general_ci");
  1920. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1921. entity.Property(e => e.Version).HasColumnType("int(11)");
  1922. });
  1923. modelBuilder.Entity<MachineChange>(entity =>
  1924. {
  1925. entity.Property(e => e.Id).HasColumnType("int(11)");
  1926. entity.Property(e => e.AuditBy)
  1927. .HasColumnType("varchar(32)")
  1928. .HasCharSet("utf8")
  1929. .HasCollation("utf8_general_ci");
  1930. entity.Property(e => e.AuditRemark)
  1931. .HasColumnType("varchar(128)")
  1932. .HasCharSet("utf8")
  1933. .HasCollation("utf8_general_ci");
  1934. entity.Property(e => e.AuditResult).HasColumnType("int(11)");
  1935. entity.Property(e => e.AuditTime).HasColumnType("datetime");
  1936. entity.Property(e => e.BackProductName)
  1937. .HasColumnType("varchar(32)")
  1938. .HasCharSet("utf8")
  1939. .HasCollation("utf8_general_ci");
  1940. entity.Property(e => e.BackProductType).HasColumnType("int(11)");
  1941. entity.Property(e => e.BackStoreId).HasColumnType("int(11)");
  1942. entity.Property(e => e.BackStoreName)
  1943. .HasColumnType("varchar(32)")
  1944. .HasCharSet("utf8")
  1945. .HasCollation("utf8_general_ci");
  1946. entity.Property(e => e.BackStoreUserId).HasColumnType("int(11)");
  1947. entity.Property(e => e.ChangeDeviceName)
  1948. .HasColumnType("varchar(32)")
  1949. .HasCharSet("utf8")
  1950. .HasCollation("utf8_general_ci");
  1951. entity.Property(e => e.ChangeDeviceNum).HasColumnType("int(11)");
  1952. entity.Property(e => e.ChangeNo)
  1953. .HasColumnType("varchar(32)")
  1954. .HasCharSet("utf8")
  1955. .HasCollation("utf8_general_ci");
  1956. entity.Property(e => e.ChangeSnExpand)
  1957. .HasColumnType("mediumtext")
  1958. .HasCharSet("utf8")
  1959. .HasCollation("utf8_general_ci");
  1960. entity.Property(e => e.ChangeTime).HasColumnType("datetime");
  1961. entity.Property(e => e.CompleteTime).HasColumnType("datetime");
  1962. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1963. entity.Property(e => e.CreateMan)
  1964. .HasColumnType("varchar(50)")
  1965. .HasCharSet("utf8")
  1966. .HasCollation("utf8_general_ci");
  1967. entity.Property(e => e.OrderExpand)
  1968. .HasColumnType("mediumtext")
  1969. .HasCharSet("utf8")
  1970. .HasCollation("utf8_general_ci");
  1971. entity.Property(e => e.OutProductName)
  1972. .HasColumnType("varchar(32)")
  1973. .HasCharSet("utf8")
  1974. .HasCollation("utf8_general_ci");
  1975. entity.Property(e => e.OutProductType).HasColumnType("int(11)");
  1976. entity.Property(e => e.OutStoreAddress)
  1977. .HasColumnType("varchar(128)")
  1978. .HasCharSet("utf8")
  1979. .HasCollation("utf8_general_ci");
  1980. entity.Property(e => e.OutStoreAreas)
  1981. .HasColumnType("varchar(30)")
  1982. .HasCharSet("utf8")
  1983. .HasCollation("utf8_general_ci");
  1984. entity.Property(e => e.OutStoreId).HasColumnType("int(11)");
  1985. entity.Property(e => e.OutStoreManager)
  1986. .HasColumnType("varchar(32)")
  1987. .HasCharSet("utf8")
  1988. .HasCollation("utf8_general_ci");
  1989. entity.Property(e => e.OutStoreManagerMobile)
  1990. .HasColumnType("varchar(11)")
  1991. .HasCharSet("utf8")
  1992. .HasCollation("utf8_general_ci");
  1993. entity.Property(e => e.OutStoreName)
  1994. .HasColumnType("varchar(32)")
  1995. .HasCharSet("utf8")
  1996. .HasCollation("utf8_general_ci");
  1997. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1998. entity.Property(e => e.Remark)
  1999. .HasColumnType("varchar(64)")
  2000. .HasCharSet("utf8")
  2001. .HasCollation("utf8_general_ci");
  2002. entity.Property(e => e.SeoDescription)
  2003. .HasColumnType("varchar(500)")
  2004. .HasCharSet("utf8")
  2005. .HasCollation("utf8_general_ci");
  2006. entity.Property(e => e.SeoKeyword)
  2007. .HasColumnType("varchar(200)")
  2008. .HasCharSet("utf8")
  2009. .HasCollation("utf8_general_ci");
  2010. entity.Property(e => e.SeoTitle)
  2011. .HasColumnType("varchar(100)")
  2012. .HasCharSet("utf8")
  2013. .HasCollation("utf8_general_ci");
  2014. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2015. entity.Property(e => e.Status).HasColumnType("int(11)");
  2016. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2017. entity.Property(e => e.UpdateMan)
  2018. .HasColumnType("varchar(50)")
  2019. .HasCharSet("utf8")
  2020. .HasCollation("utf8_general_ci");
  2021. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2022. entity.Property(e => e.Version).HasColumnType("int(11)");
  2023. });
  2024. modelBuilder.Entity<MachineChangeDetail>(entity =>
  2025. {
  2026. entity.Property(e => e.Id).HasColumnType("int(11)");
  2027. entity.Property(e => e.BackDeviceStatus).HasColumnType("int(11)");
  2028. entity.Property(e => e.BackProductName)
  2029. .HasColumnType("varchar(32)")
  2030. .HasCharSet("utf8")
  2031. .HasCollation("utf8_general_ci");
  2032. entity.Property(e => e.BackProductType).HasColumnType("int(11)");
  2033. entity.Property(e => e.BackSnNo)
  2034. .HasColumnType("varchar(32)")
  2035. .HasCharSet("utf8")
  2036. .HasCollation("utf8_general_ci");
  2037. entity.Property(e => e.BackSnType).HasColumnType("int(11)");
  2038. entity.Property(e => e.ChangeId).HasColumnType("int(11)");
  2039. entity.Property(e => e.ChangeNo)
  2040. .HasColumnType("varchar(32)")
  2041. .HasCharSet("utf8")
  2042. .HasCollation("utf8_general_ci");
  2043. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2044. entity.Property(e => e.CreateMan)
  2045. .HasColumnType("varchar(50)")
  2046. .HasCharSet("utf8")
  2047. .HasCollation("utf8_general_ci");
  2048. entity.Property(e => e.OutProductName)
  2049. .HasColumnType("varchar(32)")
  2050. .HasCharSet("utf8")
  2051. .HasCollation("utf8_general_ci");
  2052. entity.Property(e => e.OutProductType).HasColumnType("int(11)");
  2053. entity.Property(e => e.OutSnNo)
  2054. .HasColumnType("varchar(32)")
  2055. .HasCharSet("utf8")
  2056. .HasCollation("utf8_general_ci");
  2057. entity.Property(e => e.OutSnType).HasColumnType("int(11)");
  2058. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2059. entity.Property(e => e.Remark)
  2060. .HasColumnType("varchar(64)")
  2061. .HasCharSet("utf8")
  2062. .HasCollation("utf8_general_ci");
  2063. entity.Property(e => e.SeoDescription)
  2064. .HasColumnType("varchar(500)")
  2065. .HasCharSet("utf8")
  2066. .HasCollation("utf8_general_ci");
  2067. entity.Property(e => e.SeoKeyword)
  2068. .HasColumnType("varchar(200)")
  2069. .HasCharSet("utf8")
  2070. .HasCollation("utf8_general_ci");
  2071. entity.Property(e => e.SeoTitle)
  2072. .HasColumnType("varchar(100)")
  2073. .HasCharSet("utf8")
  2074. .HasCollation("utf8_general_ci");
  2075. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2076. entity.Property(e => e.Status).HasColumnType("int(11)");
  2077. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2078. entity.Property(e => e.UpdateMan)
  2079. .HasColumnType("varchar(50)")
  2080. .HasCharSet("utf8")
  2081. .HasCollation("utf8_general_ci");
  2082. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2083. entity.Property(e => e.Version).HasColumnType("int(11)");
  2084. });
  2085. modelBuilder.Entity<MachineForQrCode>(entity =>
  2086. {
  2087. entity.HasKey(e => e.DataId)
  2088. .HasName("PRIMARY");
  2089. entity.Property(e => e.DataId)
  2090. .HasColumnType("varchar(20)")
  2091. .HasCharSet("utf8")
  2092. .HasCollation("utf8_general_ci");
  2093. entity.Property(e => e.BindDate).HasColumnType("datetime");
  2094. entity.Property(e => e.MachineSnNo)
  2095. .HasColumnType("varchar(50)")
  2096. .HasCharSet("utf8")
  2097. .HasCollation("utf8_general_ci");
  2098. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2099. entity.Property(e => e.SnNo)
  2100. .HasColumnType("varchar(50)")
  2101. .HasCharSet("utf8")
  2102. .HasCollation("utf8_general_ci");
  2103. });
  2104. modelBuilder.Entity<MachineForSnNo>(entity =>
  2105. {
  2106. entity.HasKey(e => e.SnNo)
  2107. .HasName("PRIMARY");
  2108. entity.Property(e => e.SnNo)
  2109. .HasColumnType("varchar(50)")
  2110. .HasCharSet("utf8")
  2111. .HasCollation("utf8_general_ci");
  2112. entity.Property(e => e.SnId).HasColumnType("int(11)");
  2113. });
  2114. modelBuilder.Entity<MachineRenew>(entity =>
  2115. {
  2116. entity.Property(e => e.Id).HasColumnType("int(11)");
  2117. entity.Property(e => e.ApplyDate)
  2118. .HasColumnType("varchar(8)")
  2119. .HasCharSet("utf8")
  2120. .HasCollation("utf8_general_ci");
  2121. entity.Property(e => e.ApplyNo)
  2122. .HasColumnType("varchar(32)")
  2123. .HasCharSet("utf8")
  2124. .HasCollation("utf8_general_ci");
  2125. entity.Property(e => e.AuditDate).HasColumnType("datetime");
  2126. entity.Property(e => e.AuditDesc)
  2127. .HasColumnType("varchar(256)")
  2128. .HasCharSet("utf8")
  2129. .HasCollation("utf8_general_ci");
  2130. entity.Property(e => e.AuditStatus)
  2131. .HasColumnName("audit_status")
  2132. .HasColumnType("int(11)");
  2133. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2134. entity.Property(e => e.CreateMan)
  2135. .HasColumnType("varchar(50)")
  2136. .HasCharSet("utf8")
  2137. .HasCollation("utf8_general_ci");
  2138. entity.Property(e => e.DamagedBrandId).HasColumnType("int(11)");
  2139. entity.Property(e => e.DamagedSnNo)
  2140. .HasColumnType("varchar(32)")
  2141. .HasCharSet("utf8")
  2142. .HasCollation("utf8_general_ci");
  2143. entity.Property(e => e.DamagedSnType).HasColumnType("int(11)");
  2144. entity.Property(e => e.DeliverBrandId).HasColumnType("int(11)");
  2145. entity.Property(e => e.DeliverSnNo)
  2146. .HasColumnType("varchar(32)")
  2147. .HasCharSet("utf8")
  2148. .HasCollation("utf8_general_ci");
  2149. entity.Property(e => e.DemandDesc)
  2150. .HasColumnType("varchar(256)")
  2151. .HasCharSet("utf8")
  2152. .HasCollation("utf8_general_ci");
  2153. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2154. entity.Property(e => e.ReplaceBrandId).HasColumnType("int(11)");
  2155. entity.Property(e => e.ReplaceSnNo)
  2156. .HasColumnType("varchar(32)")
  2157. .HasCharSet("utf8")
  2158. .HasCollation("utf8_general_ci");
  2159. entity.Property(e => e.ReplaceSnType).HasColumnType("int(11)");
  2160. entity.Property(e => e.SeoDescription)
  2161. .HasColumnType("varchar(500)")
  2162. .HasCharSet("utf8")
  2163. .HasCollation("utf8_general_ci");
  2164. entity.Property(e => e.SeoKeyword)
  2165. .HasColumnType("varchar(200)")
  2166. .HasCharSet("utf8")
  2167. .HasCollation("utf8_general_ci");
  2168. entity.Property(e => e.SeoTitle)
  2169. .HasColumnType("varchar(100)")
  2170. .HasCharSet("utf8")
  2171. .HasCollation("utf8_general_ci");
  2172. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2173. entity.Property(e => e.Status).HasColumnType("int(11)");
  2174. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2175. entity.Property(e => e.UpdateMan)
  2176. .HasColumnType("varchar(50)")
  2177. .HasCharSet("utf8")
  2178. .HasCollation("utf8_general_ci");
  2179. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2180. entity.Property(e => e.Version).HasColumnType("int(11)");
  2181. });
  2182. modelBuilder.Entity<MachineReturn>(entity =>
  2183. {
  2184. entity.Property(e => e.Id).HasColumnType("int(11)");
  2185. entity.Property(e => e.ApplyNo)
  2186. .HasColumnType("varchar(32)")
  2187. .HasCharSet("utf8")
  2188. .HasCollation("utf8_general_ci");
  2189. entity.Property(e => e.AuditStatus).HasColumnType("int(11)");
  2190. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  2191. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2192. entity.Property(e => e.CreateMan)
  2193. .HasColumnType("varchar(50)")
  2194. .HasCharSet("utf8")
  2195. .HasCollation("utf8_general_ci");
  2196. entity.Property(e => e.DeviceDesc)
  2197. .HasColumnType("varchar(256)")
  2198. .HasCharSet("utf8")
  2199. .HasCollation("utf8_general_ci");
  2200. entity.Property(e => e.DeviceNum).HasColumnType("int(11)");
  2201. entity.Property(e => e.DeviceSnNos)
  2202. .HasColumnType("mediumtext")
  2203. .HasCharSet("utf8")
  2204. .HasCollation("utf8_general_ci");
  2205. entity.Property(e => e.Operator)
  2206. .HasColumnType("varchar(32)")
  2207. .HasCharSet("utf8")
  2208. .HasCollation("utf8_general_ci");
  2209. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2210. entity.Property(e => e.Remark)
  2211. .HasColumnType("varchar(64)")
  2212. .HasCharSet("utf8")
  2213. .HasCollation("utf8_general_ci");
  2214. entity.Property(e => e.SeoDescription)
  2215. .HasColumnType("varchar(500)")
  2216. .HasCharSet("utf8")
  2217. .HasCollation("utf8_general_ci");
  2218. entity.Property(e => e.SeoKeyword)
  2219. .HasColumnType("varchar(200)")
  2220. .HasCharSet("utf8")
  2221. .HasCollation("utf8_general_ci");
  2222. entity.Property(e => e.SeoTitle)
  2223. .HasColumnType("varchar(100)")
  2224. .HasCharSet("utf8")
  2225. .HasCollation("utf8_general_ci");
  2226. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2227. entity.Property(e => e.Status).HasColumnType("int(11)");
  2228. entity.Property(e => e.ToStoreId).HasColumnType("int(11)");
  2229. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2230. entity.Property(e => e.UpdateMan)
  2231. .HasColumnType("varchar(50)")
  2232. .HasCharSet("utf8")
  2233. .HasCollation("utf8_general_ci");
  2234. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2235. entity.Property(e => e.Version).HasColumnType("int(11)");
  2236. });
  2237. modelBuilder.Entity<MenuRight>(entity =>
  2238. {
  2239. entity.HasKey(e => e.MenuId)
  2240. .HasName("PRIMARY");
  2241. entity.Property(e => e.MenuId)
  2242. .HasColumnType("varchar(50)")
  2243. .HasCharSet("utf8")
  2244. .HasCollation("utf8_general_ci");
  2245. entity.Property(e => e.Name)
  2246. .HasColumnType("varchar(50)")
  2247. .HasCharSet("utf8")
  2248. .HasCollation("utf8_general_ci");
  2249. });
  2250. modelBuilder.Entity<MerchantAddInfo>(entity =>
  2251. {
  2252. entity.Property(e => e.Id).HasColumnType("int(11)");
  2253. entity.Property(e => e.AccountBank)
  2254. .HasColumnType("varchar(30)")
  2255. .HasCharSet("utf8")
  2256. .HasCollation("utf8_general_ci");
  2257. entity.Property(e => e.AccountName)
  2258. .HasColumnType("varchar(50)")
  2259. .HasCharSet("utf8")
  2260. .HasCollation("utf8_general_ci");
  2261. entity.Property(e => e.AccountNumber)
  2262. .HasColumnType("varchar(50)")
  2263. .HasCharSet("utf8")
  2264. .HasCollation("utf8_general_ci");
  2265. entity.Property(e => e.ActivitiesId)
  2266. .HasColumnType("varchar(32)")
  2267. .HasCharSet("utf8")
  2268. .HasCollation("utf8_general_ci");
  2269. entity.Property(e => e.ActivitiesRate)
  2270. .HasColumnType("varchar(20)")
  2271. .HasCharSet("utf8")
  2272. .HasCollation("utf8_general_ci");
  2273. entity.Property(e => e.AppAppid)
  2274. .HasColumnType("varchar(50)")
  2275. .HasCharSet("utf8")
  2276. .HasCollation("utf8_general_ci");
  2277. entity.Property(e => e.AppPics)
  2278. .HasColumnType("varchar(200)")
  2279. .HasCharSet("utf8")
  2280. .HasCollation("utf8_general_ci");
  2281. entity.Property(e => e.AppSubAppid)
  2282. .HasColumnType("varchar(50)")
  2283. .HasCharSet("utf8")
  2284. .HasCollation("utf8_general_ci");
  2285. entity.Property(e => e.ApplymentId)
  2286. .HasColumnType("varchar(50)")
  2287. .HasCharSet("utf8")
  2288. .HasCollation("utf8_general_ci");
  2289. entity.Property(e => e.ApplymentState)
  2290. .HasColumnType("varchar(50)")
  2291. .HasCharSet("utf8")
  2292. .HasCollation("utf8_general_ci");
  2293. entity.Property(e => e.AuditDetail)
  2294. .HasColumnType("mediumtext")
  2295. .HasCharSet("utf8")
  2296. .HasCollation("utf8_general_ci");
  2297. entity.Property(e => e.BankAccountType)
  2298. .HasColumnType("varchar(50)")
  2299. .HasCharSet("utf8")
  2300. .HasCollation("utf8_general_ci");
  2301. entity.Property(e => e.BankAddressCode)
  2302. .HasColumnType("varchar(20)")
  2303. .HasCharSet("utf8")
  2304. .HasCollation("utf8_general_ci");
  2305. entity.Property(e => e.BankBranchId)
  2306. .HasColumnType("varchar(20)")
  2307. .HasCharSet("utf8")
  2308. .HasCollation("utf8_general_ci");
  2309. entity.Property(e => e.BankName)
  2310. .HasColumnType("varchar(50)")
  2311. .HasCharSet("utf8")
  2312. .HasCollation("utf8_general_ci");
  2313. entity.Property(e => e.BizAddressCode)
  2314. .HasColumnType("varchar(30)")
  2315. .HasCharSet("utf8")
  2316. .HasCollation("utf8_general_ci");
  2317. entity.Property(e => e.BizStoreAddress)
  2318. .HasColumnType("varchar(50)")
  2319. .HasCharSet("utf8")
  2320. .HasCollation("utf8_general_ci");
  2321. entity.Property(e => e.BizStoreName)
  2322. .HasColumnType("varchar(50)")
  2323. .HasCharSet("utf8")
  2324. .HasCollation("utf8_general_ci");
  2325. entity.Property(e => e.BizSubAppid)
  2326. .HasColumnType("varchar(32)")
  2327. .HasCharSet("utf8")
  2328. .HasCollation("utf8_general_ci");
  2329. entity.Property(e => e.BusinessCode)
  2330. .HasColumnType("varchar(50)")
  2331. .HasCharSet("utf8")
  2332. .HasCollation("utf8_general_ci");
  2333. entity.Property(e => e.CardPeriodBegin).HasColumnType("datetime");
  2334. entity.Property(e => e.CardPeriodEnd).HasColumnType("datetime");
  2335. entity.Property(e => e.CertCopy)
  2336. .HasColumnType("varchar(200)")
  2337. .HasCharSet("utf8")
  2338. .HasCollation("utf8_general_ci");
  2339. entity.Property(e => e.CertLegalPerson)
  2340. .HasColumnType("varchar(20)")
  2341. .HasCharSet("utf8")
  2342. .HasCollation("utf8_general_ci");
  2343. entity.Property(e => e.CertMerchantName)
  2344. .HasColumnType("varchar(30)")
  2345. .HasCharSet("utf8")
  2346. .HasCollation("utf8_general_ci");
  2347. entity.Property(e => e.CertNumber)
  2348. .HasColumnType("varchar(32)")
  2349. .HasCharSet("utf8")
  2350. .HasCollation("utf8_general_ci");
  2351. entity.Property(e => e.CertType)
  2352. .HasColumnType("varchar(30)")
  2353. .HasCharSet("utf8")
  2354. .HasCollation("utf8_general_ci");
  2355. entity.Property(e => e.CertificateLetterCopy)
  2356. .HasColumnType("varchar(200)")
  2357. .HasCharSet("utf8")
  2358. .HasCollation("utf8_general_ci");
  2359. entity.Property(e => e.CompanyAddress)
  2360. .HasColumnType("varchar(50)")
  2361. .HasCharSet("utf8")
  2362. .HasCollation("utf8_general_ci");
  2363. entity.Property(e => e.ContactEmail)
  2364. .HasColumnType("varchar(50)")
  2365. .HasCharSet("utf8")
  2366. .HasCollation("utf8_general_ci");
  2367. entity.Property(e => e.ContactIdNumber)
  2368. .HasColumnType("varchar(18)")
  2369. .HasCharSet("utf8")
  2370. .HasCollation("utf8_general_ci");
  2371. entity.Property(e => e.ContactName)
  2372. .HasColumnType("varchar(30)")
  2373. .HasCharSet("utf8")
  2374. .HasCollation("utf8_general_ci");
  2375. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2376. entity.Property(e => e.CreateMan)
  2377. .HasColumnType("varchar(50)")
  2378. .HasCharSet("utf8")
  2379. .HasCollation("utf8_general_ci");
  2380. entity.Property(e => e.IdCardCopy)
  2381. .HasColumnType("varchar(200)")
  2382. .HasCharSet("utf8")
  2383. .HasCollation("utf8_general_ci");
  2384. entity.Property(e => e.IdCardName)
  2385. .HasColumnType("varchar(20)")
  2386. .HasCharSet("utf8")
  2387. .HasCollation("utf8_general_ci");
  2388. entity.Property(e => e.IdCardNational)
  2389. .HasColumnType("varchar(200)")
  2390. .HasCharSet("utf8")
  2391. .HasCollation("utf8_general_ci");
  2392. entity.Property(e => e.IdCardNumber)
  2393. .HasColumnType("varchar(18)")
  2394. .HasCharSet("utf8")
  2395. .HasCollation("utf8_general_ci");
  2396. entity.Property(e => e.IdDocType)
  2397. .HasColumnType("varchar(50)")
  2398. .HasCharSet("utf8")
  2399. .HasCollation("utf8_general_ci");
  2400. entity.Property(e => e.IndoorPic)
  2401. .HasColumnType("varchar(200)")
  2402. .HasCharSet("utf8")
  2403. .HasCollation("utf8_general_ci");
  2404. entity.Property(e => e.LegalPerson)
  2405. .HasColumnType("varchar(20)")
  2406. .HasCharSet("utf8")
  2407. .HasCollation("utf8_general_ci");
  2408. entity.Property(e => e.LicenseCopy)
  2409. .HasColumnType("varchar(200)")
  2410. .HasCharSet("utf8")
  2411. .HasCollation("utf8_general_ci");
  2412. entity.Property(e => e.LicenseNumber)
  2413. .HasColumnType("varchar(32)")
  2414. .HasCharSet("utf8")
  2415. .HasCollation("utf8_general_ci");
  2416. entity.Property(e => e.MerchantShortname)
  2417. .HasColumnType("varchar(50)")
  2418. .HasCharSet("utf8")
  2419. .HasCollation("utf8_general_ci");
  2420. entity.Property(e => e.MiniProgramAppid)
  2421. .HasColumnType("varchar(50)")
  2422. .HasCharSet("utf8")
  2423. .HasCollation("utf8_general_ci");
  2424. entity.Property(e => e.MiniProgramPics)
  2425. .HasColumnType("varchar(200)")
  2426. .HasCharSet("utf8")
  2427. .HasCollation("utf8_general_ci");
  2428. entity.Property(e => e.MiniProgramSubAppid)
  2429. .HasColumnType("varchar(50)")
  2430. .HasCharSet("utf8")
  2431. .HasCollation("utf8_general_ci");
  2432. entity.Property(e => e.MobilePhone)
  2433. .HasColumnType("varchar(11)")
  2434. .HasCharSet("utf8")
  2435. .HasCollation("utf8_general_ci");
  2436. entity.Property(e => e.MpAppid)
  2437. .HasColumnType("varchar(50)")
  2438. .HasCharSet("utf8")
  2439. .HasCollation("utf8_general_ci");
  2440. entity.Property(e => e.MpPics)
  2441. .HasColumnType("varchar(200)")
  2442. .HasCharSet("utf8")
  2443. .HasCollation("utf8_general_ci");
  2444. entity.Property(e => e.MpSubAppid)
  2445. .HasColumnType("varchar(50)")
  2446. .HasCharSet("utf8")
  2447. .HasCollation("utf8_general_ci");
  2448. entity.Property(e => e.OpenId)
  2449. .HasColumnType("varchar(50)")
  2450. .HasCharSet("utf8")
  2451. .HasCollation("utf8_general_ci");
  2452. entity.Property(e => e.OrgPeriodBegin).HasColumnType("datetime");
  2453. entity.Property(e => e.OrgPeriodEnd).HasColumnType("datetime");
  2454. entity.Property(e => e.OrganizationCode)
  2455. .HasColumnType("varchar(32)")
  2456. .HasCharSet("utf8")
  2457. .HasCollation("utf8_general_ci");
  2458. entity.Property(e => e.OrganizationCopy)
  2459. .HasColumnType("varchar(200)")
  2460. .HasCharSet("utf8")
  2461. .HasCollation("utf8_general_ci");
  2462. entity.Property(e => e.Owner)
  2463. .HasColumnType("bit(1)")
  2464. .HasDefaultValueSql("b'0'");
  2465. entity.Property(e => e.PeriodBegin).HasColumnType("datetime");
  2466. entity.Property(e => e.PeriodEnd).HasColumnType("datetime");
  2467. entity.Property(e => e.QualificationType)
  2468. .HasColumnType("varchar(30)")
  2469. .HasCharSet("utf8")
  2470. .HasCollation("utf8_general_ci");
  2471. entity.Property(e => e.Qualifications)
  2472. .HasColumnType("varchar(200)")
  2473. .HasCharSet("utf8")
  2474. .HasCollation("utf8_general_ci");
  2475. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2476. entity.Property(e => e.SalesScenesType)
  2477. .HasColumnType("varchar(50)")
  2478. .HasCharSet("utf8")
  2479. .HasCollation("utf8_general_ci");
  2480. entity.Property(e => e.SeoDescription)
  2481. .HasColumnType("varchar(500)")
  2482. .HasCharSet("utf8")
  2483. .HasCollation("utf8_general_ci");
  2484. entity.Property(e => e.SeoKeyword)
  2485. .HasColumnType("varchar(200)")
  2486. .HasCharSet("utf8")
  2487. .HasCollation("utf8_general_ci");
  2488. entity.Property(e => e.SeoTitle)
  2489. .HasColumnType("varchar(100)")
  2490. .HasCharSet("utf8")
  2491. .HasCollation("utf8_general_ci");
  2492. entity.Property(e => e.ServicePhone)
  2493. .HasColumnType("varchar(30)")
  2494. .HasCharSet("utf8")
  2495. .HasCollation("utf8_general_ci");
  2496. entity.Property(e => e.SettlementId)
  2497. .HasColumnType("varchar(3)")
  2498. .HasCharSet("utf8")
  2499. .HasCollation("utf8_general_ci");
  2500. entity.Property(e => e.SignUrl)
  2501. .HasColumnType("varchar(1000)")
  2502. .HasCharSet("utf8")
  2503. .HasCollation("utf8_general_ci");
  2504. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2505. entity.Property(e => e.Status).HasColumnType("int(11)");
  2506. entity.Property(e => e.StoreEntrancePic)
  2507. .HasColumnType("varchar(200)")
  2508. .HasCharSet("utf8")
  2509. .HasCollation("utf8_general_ci");
  2510. entity.Property(e => e.SubCorpId)
  2511. .HasColumnType("varchar(50)")
  2512. .HasCharSet("utf8")
  2513. .HasCollation("utf8_general_ci");
  2514. entity.Property(e => e.SubMchid)
  2515. .HasColumnType("varchar(32)")
  2516. .HasCharSet("utf8")
  2517. .HasCollation("utf8_general_ci");
  2518. entity.Property(e => e.SubjectType)
  2519. .HasColumnType("varchar(50)")
  2520. .HasCharSet("utf8")
  2521. .HasCollation("utf8_general_ci");
  2522. entity.Property(e => e.UboInfoIdCardCopy)
  2523. .HasColumnType("varchar(200)")
  2524. .HasCharSet("utf8")
  2525. .HasCollation("utf8_general_ci");
  2526. entity.Property(e => e.UboInfoIdCardNational)
  2527. .HasColumnType("varchar(200)")
  2528. .HasCharSet("utf8")
  2529. .HasCollation("utf8_general_ci");
  2530. entity.Property(e => e.UboInfoIdDocCopy)
  2531. .HasColumnType("varchar(200)")
  2532. .HasCharSet("utf8")
  2533. .HasCollation("utf8_general_ci");
  2534. entity.Property(e => e.UboInfoIdNumber)
  2535. .HasColumnType("varchar(30)")
  2536. .HasCharSet("utf8")
  2537. .HasCollation("utf8_general_ci");
  2538. entity.Property(e => e.UboInfoIdPeriodBegin).HasColumnType("datetime");
  2539. entity.Property(e => e.UboInfoIdPeriodEnd).HasColumnType("datetime");
  2540. entity.Property(e => e.UboInfoIdType)
  2541. .HasColumnType("varchar(50)")
  2542. .HasCharSet("utf8")
  2543. .HasCollation("utf8_general_ci");
  2544. entity.Property(e => e.UboInfoName)
  2545. .HasColumnType("varchar(20)")
  2546. .HasCharSet("utf8")
  2547. .HasCollation("utf8_general_ci");
  2548. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2549. entity.Property(e => e.UpdateMan)
  2550. .HasColumnType("varchar(50)")
  2551. .HasCharSet("utf8")
  2552. .HasCollation("utf8_general_ci");
  2553. entity.Property(e => e.Version).HasColumnType("int(11)");
  2554. entity.Property(e => e.WebAppId)
  2555. .HasColumnType("varchar(50)")
  2556. .HasCharSet("utf8")
  2557. .HasCollation("utf8_general_ci");
  2558. entity.Property(e => e.WebAuthorisation)
  2559. .HasColumnType("varchar(200)")
  2560. .HasCharSet("utf8")
  2561. .HasCollation("utf8_general_ci");
  2562. entity.Property(e => e.WebDomain)
  2563. .HasColumnType("varchar(50)")
  2564. .HasCharSet("utf8")
  2565. .HasCollation("utf8_general_ci");
  2566. entity.Property(e => e.WeworkPics)
  2567. .HasColumnType("varchar(200)")
  2568. .HasCharSet("utf8")
  2569. .HasCollation("utf8_general_ci");
  2570. });
  2571. modelBuilder.Entity<MerchantAdmin>(entity =>
  2572. {
  2573. entity.Property(e => e.Id).HasColumnType("int(11)");
  2574. entity.Property(e => e.AdminName)
  2575. .HasColumnType("varchar(50)")
  2576. .HasCharSet("utf8")
  2577. .HasCollation("utf8_general_ci");
  2578. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2579. entity.Property(e => e.CreateMan)
  2580. .HasColumnType("varchar(50)")
  2581. .HasCharSet("utf8")
  2582. .HasCollation("utf8_general_ci");
  2583. entity.Property(e => e.Email)
  2584. .HasColumnType("varchar(50)")
  2585. .HasCharSet("utf8")
  2586. .HasCollation("utf8_general_ci");
  2587. entity.Property(e => e.LastLoginDate).HasColumnType("datetime");
  2588. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2589. entity.Property(e => e.Mobile)
  2590. .HasColumnType("varchar(11)")
  2591. .HasCharSet("utf8")
  2592. .HasCollation("utf8_general_ci");
  2593. entity.Property(e => e.Note)
  2594. .HasColumnType("mediumtext")
  2595. .HasCharSet("utf8")
  2596. .HasCollation("utf8_general_ci");
  2597. entity.Property(e => e.Password)
  2598. .HasColumnType("varchar(32)")
  2599. .HasCharSet("utf8")
  2600. .HasCollation("utf8_general_ci");
  2601. entity.Property(e => e.Qq)
  2602. .HasColumnName("QQ")
  2603. .HasColumnType("varchar(20)")
  2604. .HasCharSet("utf8")
  2605. .HasCollation("utf8_general_ci");
  2606. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2607. entity.Property(e => e.RealName)
  2608. .HasColumnType("varchar(50)")
  2609. .HasCharSet("utf8")
  2610. .HasCollation("utf8_general_ci");
  2611. entity.Property(e => e.RightInfo)
  2612. .HasColumnType("varchar(500)")
  2613. .HasCharSet("utf8")
  2614. .HasCollation("utf8_general_ci");
  2615. entity.Property(e => e.SeoDescription)
  2616. .HasColumnType("varchar(500)")
  2617. .HasCharSet("utf8")
  2618. .HasCollation("utf8_general_ci");
  2619. entity.Property(e => e.SeoKeyword)
  2620. .HasColumnType("varchar(200)")
  2621. .HasCharSet("utf8")
  2622. .HasCollation("utf8_general_ci");
  2623. entity.Property(e => e.SeoTitle)
  2624. .HasColumnType("varchar(100)")
  2625. .HasCharSet("utf8")
  2626. .HasCollation("utf8_general_ci");
  2627. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2628. entity.Property(e => e.Status).HasColumnType("int(11)");
  2629. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2630. entity.Property(e => e.UpdateMan)
  2631. .HasColumnType("varchar(50)")
  2632. .HasCharSet("utf8")
  2633. .HasCollation("utf8_general_ci");
  2634. entity.Property(e => e.Version).HasColumnType("int(11)");
  2635. });
  2636. modelBuilder.Entity<MerchantAuth>(entity =>
  2637. {
  2638. entity.Property(e => e.Id).HasColumnType("int(11)");
  2639. entity.Property(e => e.AuthType).HasColumnType("int(11)");
  2640. entity.Property(e => e.BankCardAccount)
  2641. .HasColumnType("varchar(32)")
  2642. .HasCharSet("utf8")
  2643. .HasCollation("utf8_general_ci");
  2644. entity.Property(e => e.BankMobile)
  2645. .HasColumnType("varchar(11)")
  2646. .HasCharSet("utf8")
  2647. .HasCollation("utf8_general_ci");
  2648. entity.Property(e => e.BankName)
  2649. .HasColumnType("varchar(64)")
  2650. .HasCharSet("utf8")
  2651. .HasCollation("utf8_general_ci");
  2652. entity.Property(e => e.ChannelCode)
  2653. .HasColumnType("varchar(16)")
  2654. .HasCharSet("utf8")
  2655. .HasCollation("utf8_general_ci");
  2656. entity.Property(e => e.ChannelName)
  2657. .HasColumnType("varchar(32)")
  2658. .HasCharSet("utf8")
  2659. .HasCollation("utf8_general_ci");
  2660. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2661. entity.Property(e => e.CreateMan)
  2662. .HasColumnType("varchar(50)")
  2663. .HasCharSet("utf8")
  2664. .HasCollation("utf8_general_ci");
  2665. entity.Property(e => e.IdCardNo)
  2666. .HasColumnType("varchar(18)")
  2667. .HasCharSet("utf8")
  2668. .HasCollation("utf8_general_ci");
  2669. entity.Property(e => e.MerNo)
  2670. .HasColumnType("varchar(20)")
  2671. .HasCharSet("utf8")
  2672. .HasCollation("utf8_general_ci");
  2673. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2674. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2675. entity.Property(e => e.RealName)
  2676. .HasColumnType("varchar(16)")
  2677. .HasCharSet("utf8")
  2678. .HasCollation("utf8_general_ci");
  2679. entity.Property(e => e.ReqData)
  2680. .HasColumnType("varchar(2000)")
  2681. .HasCharSet("utf8")
  2682. .HasCollation("utf8_general_ci");
  2683. entity.Property(e => e.RespData)
  2684. .HasColumnType("varchar(2000)")
  2685. .HasCharSet("utf8")
  2686. .HasCollation("utf8_general_ci");
  2687. entity.Property(e => e.ReturnCode)
  2688. .HasColumnType("varchar(30)")
  2689. .HasCharSet("utf8")
  2690. .HasCollation("utf8_general_ci");
  2691. entity.Property(e => e.ReturnMsg)
  2692. .HasColumnType("varchar(512)")
  2693. .HasCharSet("utf8")
  2694. .HasCollation("utf8_general_ci");
  2695. entity.Property(e => e.SeoDescription)
  2696. .HasColumnType("varchar(500)")
  2697. .HasCharSet("utf8")
  2698. .HasCollation("utf8_general_ci");
  2699. entity.Property(e => e.SeoKeyword)
  2700. .HasColumnType("varchar(200)")
  2701. .HasCharSet("utf8")
  2702. .HasCollation("utf8_general_ci");
  2703. entity.Property(e => e.SeoTitle)
  2704. .HasColumnType("varchar(100)")
  2705. .HasCharSet("utf8")
  2706. .HasCollation("utf8_general_ci");
  2707. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2708. entity.Property(e => e.Status).HasColumnType("int(11)");
  2709. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2710. entity.Property(e => e.UpdateMan)
  2711. .HasColumnType("varchar(50)")
  2712. .HasCharSet("utf8")
  2713. .HasCollation("utf8_general_ci");
  2714. entity.Property(e => e.Version).HasColumnType("int(11)");
  2715. });
  2716. modelBuilder.Entity<MerchantClass>(entity =>
  2717. {
  2718. entity.Property(e => e.Id).HasColumnType("int(11)");
  2719. entity.Property(e => e.ColName)
  2720. .HasColumnType("varchar(50)")
  2721. .HasCharSet("utf8")
  2722. .HasCollation("utf8_general_ci");
  2723. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2724. entity.Property(e => e.CreateMan)
  2725. .HasColumnType("varchar(50)")
  2726. .HasCharSet("utf8")
  2727. .HasCollation("utf8_general_ci");
  2728. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2729. entity.Property(e => e.ParentId).HasColumnType("int(11)");
  2730. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2731. entity.Property(e => e.SeoDescription)
  2732. .HasColumnType("varchar(500)")
  2733. .HasCharSet("utf8")
  2734. .HasCollation("utf8_general_ci");
  2735. entity.Property(e => e.SeoKeyword)
  2736. .HasColumnType("varchar(200)")
  2737. .HasCharSet("utf8")
  2738. .HasCollation("utf8_general_ci");
  2739. entity.Property(e => e.SeoTitle)
  2740. .HasColumnType("varchar(100)")
  2741. .HasCharSet("utf8")
  2742. .HasCollation("utf8_general_ci");
  2743. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2744. entity.Property(e => e.Status).HasColumnType("int(11)");
  2745. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2746. entity.Property(e => e.UpdateMan)
  2747. .HasColumnType("varchar(50)")
  2748. .HasCharSet("utf8")
  2749. .HasCollation("utf8_general_ci");
  2750. entity.Property(e => e.Version).HasColumnType("int(11)");
  2751. });
  2752. modelBuilder.Entity<MerchantCol>(entity =>
  2753. {
  2754. entity.Property(e => e.Id).HasColumnType("int(11)");
  2755. entity.Property(e => e.ColDetail)
  2756. .HasColumnType("varchar(50)")
  2757. .HasCharSet("utf8")
  2758. .HasCollation("utf8_general_ci");
  2759. entity.Property(e => e.ColEnName)
  2760. .HasColumnType("varchar(50)")
  2761. .HasCharSet("utf8")
  2762. .HasCollation("utf8_general_ci");
  2763. entity.Property(e => e.ColId)
  2764. .HasColumnType("varchar(30)")
  2765. .HasCharSet("utf8")
  2766. .HasCollation("utf8_general_ci");
  2767. entity.Property(e => e.ColName)
  2768. .HasColumnType("varchar(50)")
  2769. .HasCharSet("utf8")
  2770. .HasCollation("utf8_general_ci");
  2771. entity.Property(e => e.ColPicPath)
  2772. .HasColumnType("varchar(200)")
  2773. .HasCharSet("utf8")
  2774. .HasCollation("utf8_general_ci");
  2775. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2776. entity.Property(e => e.CreateMan)
  2777. .HasColumnType("varchar(50)")
  2778. .HasCharSet("utf8")
  2779. .HasCollation("utf8_general_ci");
  2780. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2781. entity.Property(e => e.ParentId).HasColumnType("int(11)");
  2782. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2783. entity.Property(e => e.Recommend)
  2784. .HasColumnType("bit(1)")
  2785. .HasDefaultValueSql("b'0'");
  2786. entity.Property(e => e.SeoDescription)
  2787. .HasColumnType("varchar(500)")
  2788. .HasCharSet("utf8")
  2789. .HasCollation("utf8_general_ci");
  2790. entity.Property(e => e.SeoKeyword)
  2791. .HasColumnType("varchar(200)")
  2792. .HasCharSet("utf8")
  2793. .HasCollation("utf8_general_ci");
  2794. entity.Property(e => e.SeoTitle)
  2795. .HasColumnType("varchar(100)")
  2796. .HasCharSet("utf8")
  2797. .HasCollation("utf8_general_ci");
  2798. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2799. entity.Property(e => e.Status).HasColumnType("int(11)");
  2800. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2801. entity.Property(e => e.UpdateMan)
  2802. .HasColumnType("varchar(50)")
  2803. .HasCharSet("utf8")
  2804. .HasCollation("utf8_general_ci");
  2805. entity.Property(e => e.Version).HasColumnType("int(11)");
  2806. });
  2807. modelBuilder.Entity<MerchantComment>(entity =>
  2808. {
  2809. entity.Property(e => e.Id).HasColumnType("int(11)");
  2810. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2811. entity.Property(e => e.CreateMan)
  2812. .HasColumnType("varchar(50)")
  2813. .HasCharSet("utf8")
  2814. .HasCollation("utf8_general_ci");
  2815. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2816. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  2817. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2818. entity.Property(e => e.SeoDescription)
  2819. .HasColumnType("varchar(500)")
  2820. .HasCharSet("utf8")
  2821. .HasCollation("utf8_general_ci");
  2822. entity.Property(e => e.SeoKeyword)
  2823. .HasColumnType("varchar(200)")
  2824. .HasCharSet("utf8")
  2825. .HasCollation("utf8_general_ci");
  2826. entity.Property(e => e.SeoTitle)
  2827. .HasColumnType("varchar(100)")
  2828. .HasCharSet("utf8")
  2829. .HasCollation("utf8_general_ci");
  2830. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2831. entity.Property(e => e.StarNum1).HasColumnType("int(11)");
  2832. entity.Property(e => e.StarNum2).HasColumnType("int(11)");
  2833. entity.Property(e => e.StarNum3).HasColumnType("int(11)");
  2834. entity.Property(e => e.Status).HasColumnType("int(11)");
  2835. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2836. entity.Property(e => e.UpdateMan)
  2837. .HasColumnType("varchar(50)")
  2838. .HasCharSet("utf8")
  2839. .HasCollation("utf8_general_ci");
  2840. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2841. entity.Property(e => e.Version).HasColumnType("int(11)");
  2842. });
  2843. modelBuilder.Entity<MerchantForCode>(entity =>
  2844. {
  2845. entity.HasKey(e => e.Code)
  2846. .HasName("PRIMARY");
  2847. entity.Property(e => e.Code)
  2848. .HasColumnType("varchar(30)")
  2849. .HasCharSet("utf8")
  2850. .HasCollation("utf8_general_ci");
  2851. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2852. });
  2853. modelBuilder.Entity<MerchantForMobile>(entity =>
  2854. {
  2855. entity.HasKey(e => e.Mobile)
  2856. .HasName("PRIMARY");
  2857. entity.Property(e => e.Mobile)
  2858. .HasColumnType("varchar(11)")
  2859. .HasCharSet("utf8")
  2860. .HasCollation("utf8_general_ci");
  2861. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2862. });
  2863. modelBuilder.Entity<MerchantForName>(entity =>
  2864. {
  2865. entity.HasKey(e => e.Name)
  2866. .HasName("PRIMARY");
  2867. entity.Property(e => e.Name)
  2868. .HasColumnType("varchar(30)")
  2869. .HasCharSet("utf8")
  2870. .HasCollation("utf8_general_ci");
  2871. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2872. });
  2873. modelBuilder.Entity<MerchantInfo>(entity =>
  2874. {
  2875. entity.Property(e => e.Id).HasColumnType("int(11)");
  2876. entity.Property(e => e.ActivationDate).HasColumnType("datetime");
  2877. entity.Property(e => e.ActivationStatus).HasColumnType("int(11)");
  2878. entity.Property(e => e.Address)
  2879. .HasColumnType("varchar(100)")
  2880. .HasCharSet("utf8")
  2881. .HasCollation("utf8_general_ci");
  2882. entity.Property(e => e.Areas)
  2883. .HasColumnType("varchar(50)")
  2884. .HasCharSet("utf8")
  2885. .HasCollation("utf8_general_ci");
  2886. entity.Property(e => e.BindDate).HasColumnType("datetime");
  2887. entity.Property(e => e.BindStatus).HasColumnType("int(11)");
  2888. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2889. entity.Property(e => e.CreateMan)
  2890. .HasColumnType("varchar(50)")
  2891. .HasCharSet("utf8")
  2892. .HasCollation("utf8_general_ci");
  2893. entity.Property(e => e.IsAuth)
  2894. .HasColumnType("bit(1)")
  2895. .HasDefaultValueSql("b'0'");
  2896. entity.Property(e => e.LastAddConsumerDate).HasColumnType("datetime");
  2897. entity.Property(e => e.LastConsumeDate).HasColumnType("datetime");
  2898. entity.Property(e => e.LoginPwd)
  2899. .HasColumnType("varchar(32)")
  2900. .HasCharSet("utf8")
  2901. .HasCollation("utf8_general_ci");
  2902. entity.Property(e => e.Logo)
  2903. .HasColumnType("varchar(200)")
  2904. .HasCharSet("utf8")
  2905. .HasCollation("utf8_general_ci");
  2906. entity.Property(e => e.Mobile)
  2907. .HasColumnType("varchar(11)")
  2908. .HasCharSet("utf8")
  2909. .HasCollation("utf8_general_ci");
  2910. entity.Property(e => e.Name)
  2911. .HasColumnType("varchar(50)")
  2912. .HasCharSet("utf8")
  2913. .HasCollation("utf8_general_ci");
  2914. entity.Property(e => e.ParentUserNav)
  2915. .HasColumnType("varchar(500)")
  2916. .HasCharSet("utf8")
  2917. .HasCollation("utf8_general_ci");
  2918. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2919. entity.Property(e => e.SeoDescription)
  2920. .HasColumnType("varchar(500)")
  2921. .HasCharSet("utf8")
  2922. .HasCollation("utf8_general_ci");
  2923. entity.Property(e => e.SeoKeyword)
  2924. .HasColumnType("varchar(200)")
  2925. .HasCharSet("utf8")
  2926. .HasCollation("utf8_general_ci");
  2927. entity.Property(e => e.SeoTitle)
  2928. .HasColumnType("varchar(100)")
  2929. .HasCharSet("utf8")
  2930. .HasCollation("utf8_general_ci");
  2931. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2932. entity.Property(e => e.Status).HasColumnType("int(11)");
  2933. entity.Property(e => e.TotalActual).HasColumnType("decimal(18,2)");
  2934. entity.Property(e => e.TotalAmount).HasColumnType("decimal(18,2)");
  2935. entity.Property(e => e.TotalConsumeCount).HasColumnType("int(11)");
  2936. entity.Property(e => e.TotalCustomer).HasColumnType("int(11)");
  2937. entity.Property(e => e.TotalOrder).HasColumnType("int(11)");
  2938. entity.Property(e => e.TotalUser).HasColumnType("int(11)");
  2939. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2940. entity.Property(e => e.UpdateMan)
  2941. .HasColumnType("varchar(50)")
  2942. .HasCharSet("utf8")
  2943. .HasCollation("utf8_general_ci");
  2944. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2945. entity.Property(e => e.Version).HasColumnType("int(11)");
  2946. });
  2947. modelBuilder.Entity<MerchantParamSet>(entity =>
  2948. {
  2949. entity.Property(e => e.Id).HasColumnType("int(11)");
  2950. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2951. entity.Property(e => e.CreateMan)
  2952. .HasColumnType("varchar(50)")
  2953. .HasCharSet("utf8")
  2954. .HasCollation("utf8_general_ci");
  2955. entity.Property(e => e.DiviPercent).HasColumnType("decimal(18,2)");
  2956. entity.Property(e => e.DiviPersons).HasColumnType("int(11)");
  2957. entity.Property(e => e.GetPercent).HasColumnType("decimal(18,2)");
  2958. entity.Property(e => e.IsAll).HasColumnType("int(11)");
  2959. entity.Property(e => e.MinPayMoney).HasColumnType("decimal(18,2)");
  2960. entity.Property(e => e.ProfitDays).HasColumnType("int(11)");
  2961. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2962. entity.Property(e => e.SeoDescription)
  2963. .HasColumnType("varchar(500)")
  2964. .HasCharSet("utf8")
  2965. .HasCollation("utf8_general_ci");
  2966. entity.Property(e => e.SeoKeyword)
  2967. .HasColumnType("varchar(200)")
  2968. .HasCharSet("utf8")
  2969. .HasCollation("utf8_general_ci");
  2970. entity.Property(e => e.SeoTitle)
  2971. .HasColumnType("varchar(100)")
  2972. .HasCharSet("utf8")
  2973. .HasCollation("utf8_general_ci");
  2974. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2975. entity.Property(e => e.Status).HasColumnType("int(11)");
  2976. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2977. entity.Property(e => e.UpdateMan)
  2978. .HasColumnType("varchar(50)")
  2979. .HasCharSet("utf8")
  2980. .HasCollation("utf8_general_ci");
  2981. entity.Property(e => e.Version).HasColumnType("int(11)");
  2982. });
  2983. modelBuilder.Entity<MerchantQrCode>(entity =>
  2984. {
  2985. entity.Property(e => e.Id).HasColumnType("int(11)");
  2986. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2987. entity.Property(e => e.CreateMan)
  2988. .HasColumnType("varchar(50)")
  2989. .HasCharSet("utf8")
  2990. .HasCollation("utf8_general_ci");
  2991. entity.Property(e => e.MachineId).HasColumnType("int(11)");
  2992. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2993. entity.Property(e => e.QrCodeContent)
  2994. .HasColumnType("varchar(500)")
  2995. .HasCharSet("utf8")
  2996. .HasCollation("utf8_general_ci");
  2997. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2998. entity.Property(e => e.SeoDescription)
  2999. .HasColumnType("varchar(500)")
  3000. .HasCharSet("utf8")
  3001. .HasCollation("utf8_general_ci");
  3002. entity.Property(e => e.SeoKeyword)
  3003. .HasColumnType("varchar(200)")
  3004. .HasCharSet("utf8")
  3005. .HasCollation("utf8_general_ci");
  3006. entity.Property(e => e.SeoTitle)
  3007. .HasColumnType("varchar(100)")
  3008. .HasCharSet("utf8")
  3009. .HasCollation("utf8_general_ci");
  3010. entity.Property(e => e.SnNo)
  3011. .HasColumnType("varchar(50)")
  3012. .HasCharSet("utf8")
  3013. .HasCollation("utf8_general_ci");
  3014. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3015. entity.Property(e => e.Status).HasColumnType("int(11)");
  3016. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3017. entity.Property(e => e.UpdateMan)
  3018. .HasColumnType("varchar(50)")
  3019. .HasCharSet("utf8")
  3020. .HasCollation("utf8_general_ci");
  3021. entity.Property(e => e.Version).HasColumnType("int(11)");
  3022. });
  3023. modelBuilder.Entity<MerchantRebateDetail>(entity =>
  3024. {
  3025. entity.Property(e => e.Id).HasColumnType("int(11)");
  3026. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  3027. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3028. entity.Property(e => e.CreateMan)
  3029. .HasColumnType("varchar(50)")
  3030. .HasCharSet("utf8")
  3031. .HasCollation("utf8_general_ci");
  3032. entity.Property(e => e.CreditRewardAmount).HasColumnType("decimal(18,2)");
  3033. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  3034. entity.Property(e => e.DebitRewardAmount).HasColumnType("decimal(18,2)");
  3035. entity.Property(e => e.DebitTradeAmt).HasColumnType("decimal(18,2)");
  3036. entity.Property(e => e.MerNo)
  3037. .HasColumnType("varchar(32)")
  3038. .HasCharSet("utf8")
  3039. .HasCollation("utf8_general_ci");
  3040. entity.Property(e => e.MerRegTime).HasColumnType("datetime");
  3041. entity.Property(e => e.MerStandardDate).HasColumnType("datetime");
  3042. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  3043. entity.Property(e => e.MmpUserName)
  3044. .HasColumnType("varchar(32)")
  3045. .HasCharSet("utf8")
  3046. .HasCollation("utf8_general_ci");
  3047. entity.Property(e => e.MmpUserNo)
  3048. .HasColumnType("varchar(32)")
  3049. .HasCharSet("utf8")
  3050. .HasCollation("utf8_general_ci");
  3051. entity.Property(e => e.ProductName)
  3052. .HasColumnType("varchar(32)")
  3053. .HasCharSet("utf8")
  3054. .HasCollation("utf8_general_ci");
  3055. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3056. entity.Property(e => e.Remark)
  3057. .HasColumnType("varchar(64)")
  3058. .HasCharSet("utf8")
  3059. .HasCollation("utf8_general_ci");
  3060. entity.Property(e => e.RewardDesc)
  3061. .HasColumnType("varchar(128)")
  3062. .HasCharSet("utf8")
  3063. .HasCollation("utf8_general_ci");
  3064. entity.Property(e => e.SeoDescription)
  3065. .HasColumnType("varchar(500)")
  3066. .HasCharSet("utf8")
  3067. .HasCollation("utf8_general_ci");
  3068. entity.Property(e => e.SeoKeyword)
  3069. .HasColumnType("varchar(200)")
  3070. .HasCharSet("utf8")
  3071. .HasCollation("utf8_general_ci");
  3072. entity.Property(e => e.SeoTitle)
  3073. .HasColumnType("varchar(100)")
  3074. .HasCharSet("utf8")
  3075. .HasCollation("utf8_general_ci");
  3076. entity.Property(e => e.SnNo)
  3077. .HasColumnType("varchar(32)")
  3078. .HasCharSet("utf8")
  3079. .HasCollation("utf8_general_ci");
  3080. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3081. entity.Property(e => e.Status).HasColumnType("int(11)");
  3082. entity.Property(e => e.SyncStatus).HasColumnType("int(11)");
  3083. entity.Property(e => e.TradeDate)
  3084. .HasColumnType("varchar(8)")
  3085. .HasCharSet("utf8")
  3086. .HasCollation("utf8_general_ci");
  3087. entity.Property(e => e.TradeMonth)
  3088. .HasColumnType("varchar(6)")
  3089. .HasCharSet("utf8")
  3090. .HasCollation("utf8_general_ci");
  3091. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3092. entity.Property(e => e.UpdateMan)
  3093. .HasColumnType("varchar(50)")
  3094. .HasCharSet("utf8")
  3095. .HasCollation("utf8_general_ci");
  3096. entity.Property(e => e.Version).HasColumnType("int(11)");
  3097. });
  3098. modelBuilder.Entity<Merchants>(entity =>
  3099. {
  3100. entity.Property(e => e.Id).HasColumnType("int(11)");
  3101. entity.Property(e => e.Address)
  3102. .HasColumnType("varchar(50)")
  3103. .HasCharSet("utf8")
  3104. .HasCollation("utf8_general_ci");
  3105. entity.Property(e => e.Areas)
  3106. .HasColumnType("varchar(30)")
  3107. .HasCharSet("utf8")
  3108. .HasCollation("utf8_general_ci");
  3109. entity.Property(e => e.BusinessLicense)
  3110. .HasColumnType("varchar(200)")
  3111. .HasCharSet("utf8")
  3112. .HasCollation("utf8_general_ci");
  3113. entity.Property(e => e.CommentCount).HasColumnType("int(11)");
  3114. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3115. entity.Property(e => e.CreateMan)
  3116. .HasColumnType("varchar(50)")
  3117. .HasCharSet("utf8")
  3118. .HasCollation("utf8_general_ci");
  3119. entity.Property(e => e.FollowCount).HasColumnType("int(11)");
  3120. entity.Property(e => e.IsAuth)
  3121. .HasColumnType("bit(1)")
  3122. .HasDefaultValueSql("b'0'");
  3123. entity.Property(e => e.IsRecommend)
  3124. .HasColumnType("bit(1)")
  3125. .HasDefaultValueSql("b'0'");
  3126. entity.Property(e => e.LoginPwd)
  3127. .HasColumnType("varchar(32)")
  3128. .HasCharSet("utf8")
  3129. .HasCollation("utf8_general_ci");
  3130. entity.Property(e => e.Logo)
  3131. .HasColumnType("varchar(200)")
  3132. .HasCharSet("utf8")
  3133. .HasCollation("utf8_general_ci");
  3134. entity.Property(e => e.Name)
  3135. .HasColumnType("varchar(50)")
  3136. .HasCharSet("utf8")
  3137. .HasCollation("utf8_general_ci");
  3138. entity.Property(e => e.PayPwd)
  3139. .HasColumnType("varchar(32)")
  3140. .HasCharSet("utf8")
  3141. .HasCollation("utf8_general_ci");
  3142. entity.Property(e => e.Phone)
  3143. .HasColumnType("varchar(30)")
  3144. .HasCharSet("utf8")
  3145. .HasCollation("utf8_general_ci");
  3146. entity.Property(e => e.Principal)
  3147. .HasColumnType("varchar(30)")
  3148. .HasCharSet("utf8")
  3149. .HasCollation("utf8_general_ci");
  3150. entity.Property(e => e.Province)
  3151. .HasColumnType("varchar(20)")
  3152. .HasCharSet("utf8")
  3153. .HasCollation("utf8_general_ci");
  3154. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3155. entity.Property(e => e.SeoDescription)
  3156. .HasColumnType("varchar(500)")
  3157. .HasCharSet("utf8")
  3158. .HasCollation("utf8_general_ci");
  3159. entity.Property(e => e.SeoKeyword)
  3160. .HasColumnType("varchar(200)")
  3161. .HasCharSet("utf8")
  3162. .HasCollation("utf8_general_ci");
  3163. entity.Property(e => e.SeoTitle)
  3164. .HasColumnType("varchar(100)")
  3165. .HasCharSet("utf8")
  3166. .HasCollation("utf8_general_ci");
  3167. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3168. entity.Property(e => e.StarNum1).HasColumnType("decimal(18,2)");
  3169. entity.Property(e => e.StarNum2).HasColumnType("decimal(18,2)");
  3170. entity.Property(e => e.StarNum3).HasColumnType("decimal(18,2)");
  3171. entity.Property(e => e.Status).HasColumnType("int(11)");
  3172. entity.Property(e => e.Title)
  3173. .HasColumnType("varchar(50)")
  3174. .HasCharSet("utf8")
  3175. .HasCollation("utf8_general_ci");
  3176. entity.Property(e => e.Title2)
  3177. .HasColumnType("varchar(50)")
  3178. .HasCharSet("utf8")
  3179. .HasCollation("utf8_general_ci");
  3180. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3181. entity.Property(e => e.UpdateMan)
  3182. .HasColumnType("varchar(50)")
  3183. .HasCharSet("utf8")
  3184. .HasCollation("utf8_general_ci");
  3185. entity.Property(e => e.UserName)
  3186. .HasColumnType("varchar(50)")
  3187. .HasCharSet("utf8")
  3188. .HasCollation("utf8_general_ci");
  3189. entity.Property(e => e.Version).HasColumnType("int(11)");
  3190. });
  3191. modelBuilder.Entity<MobileCodeCheck>(entity =>
  3192. {
  3193. entity.HasKey(e => e.Mobile)
  3194. .HasName("PRIMARY");
  3195. entity.Property(e => e.Mobile)
  3196. .HasColumnType("varchar(11)")
  3197. .HasCharSet("utf8")
  3198. .HasCollation("utf8_general_ci");
  3199. entity.Property(e => e.CheckCode)
  3200. .HasColumnType("varchar(6)")
  3201. .HasCharSet("utf8")
  3202. .HasCollation("utf8_general_ci");
  3203. entity.Property(e => e.CheckCodeTime).HasColumnType("datetime");
  3204. entity.Property(e => e.CheckNo)
  3205. .HasColumnType("varchar(6)")
  3206. .HasCharSet("utf8")
  3207. .HasCollation("utf8_general_ci");
  3208. });
  3209. modelBuilder.Entity<MsgBlackList>(entity =>
  3210. {
  3211. entity.Property(e => e.Id).HasColumnType("int(11)");
  3212. entity.Property(e => e.ColId)
  3213. .HasColumnType("varchar(30)")
  3214. .HasCharSet("utf8")
  3215. .HasCollation("utf8_general_ci");
  3216. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3217. entity.Property(e => e.CreateMan)
  3218. .HasColumnType("varchar(50)")
  3219. .HasCharSet("utf8")
  3220. .HasCollation("utf8_general_ci");
  3221. entity.Property(e => e.Extend)
  3222. .HasColumnType("varchar(2000)")
  3223. .HasCharSet("utf8")
  3224. .HasCollation("utf8_general_ci");
  3225. entity.Property(e => e.Ip)
  3226. .HasColumnType("varchar(64)")
  3227. .HasCharSet("utf8")
  3228. .HasCollation("utf8_general_ci");
  3229. entity.Property(e => e.Mobile)
  3230. .HasColumnType("varchar(11)")
  3231. .HasCharSet("utf8")
  3232. .HasCollation("utf8_general_ci");
  3233. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3234. entity.Property(e => e.Reason)
  3235. .HasColumnType("varchar(512)")
  3236. .HasCharSet("utf8")
  3237. .HasCollation("utf8_general_ci");
  3238. entity.Property(e => e.Remark)
  3239. .HasColumnType("varchar(64)")
  3240. .HasCharSet("utf8")
  3241. .HasCollation("utf8_general_ci");
  3242. entity.Property(e => e.SeoDescription)
  3243. .HasColumnType("varchar(500)")
  3244. .HasCharSet("utf8")
  3245. .HasCollation("utf8_general_ci");
  3246. entity.Property(e => e.SeoKeyword)
  3247. .HasColumnType("varchar(200)")
  3248. .HasCharSet("utf8")
  3249. .HasCollation("utf8_general_ci");
  3250. entity.Property(e => e.SeoTitle)
  3251. .HasColumnType("varchar(100)")
  3252. .HasCharSet("utf8")
  3253. .HasCollation("utf8_general_ci");
  3254. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3255. entity.Property(e => e.Status).HasColumnType("int(11)");
  3256. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  3257. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3258. entity.Property(e => e.UpdateMan)
  3259. .HasColumnType("varchar(50)")
  3260. .HasCharSet("utf8")
  3261. .HasCollation("utf8_general_ci");
  3262. entity.Property(e => e.Version).HasColumnType("int(11)");
  3263. });
  3264. modelBuilder.Entity<MsgPersonal>(entity =>
  3265. {
  3266. entity.Property(e => e.Id).HasColumnType("int(11)");
  3267. entity.Property(e => e.BgPic)
  3268. .HasColumnType("varchar(200)")
  3269. .HasCharSet("utf8")
  3270. .HasCollation("utf8_general_ci");
  3271. entity.Property(e => e.Content)
  3272. .HasColumnType("longtext")
  3273. .HasCharSet("utf8")
  3274. .HasCollation("utf8_general_ci");
  3275. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3276. entity.Property(e => e.CreateMan)
  3277. .HasColumnType("varchar(50)")
  3278. .HasCharSet("utf8")
  3279. .HasCollation("utf8_general_ci");
  3280. entity.Property(e => e.ExtendColumn)
  3281. .HasColumnType("mediumtext")
  3282. .HasCharSet("utf8")
  3283. .HasCollation("utf8_general_ci");
  3284. entity.Property(e => e.MsgType).HasColumnType("int(11)");
  3285. entity.Property(e => e.PushFlag).HasColumnType("int(11)");
  3286. entity.Property(e => e.PushParam)
  3287. .HasColumnType("varchar(255)")
  3288. .HasCharSet("utf8")
  3289. .HasCollation("utf8_general_ci");
  3290. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3291. entity.Property(e => e.ReadFlag)
  3292. .HasColumnType("bit(1)")
  3293. .HasDefaultValueSql("b'0'");
  3294. entity.Property(e => e.Remark)
  3295. .HasColumnType("varchar(255)")
  3296. .HasCharSet("utf8")
  3297. .HasCollation("utf8_general_ci");
  3298. entity.Property(e => e.SeoDescription)
  3299. .HasColumnType("varchar(500)")
  3300. .HasCharSet("utf8")
  3301. .HasCollation("utf8_general_ci");
  3302. entity.Property(e => e.SeoKeyword)
  3303. .HasColumnType("varchar(200)")
  3304. .HasCharSet("utf8")
  3305. .HasCollation("utf8_general_ci");
  3306. entity.Property(e => e.SeoTitle)
  3307. .HasColumnType("varchar(100)")
  3308. .HasCharSet("utf8")
  3309. .HasCollation("utf8_general_ci");
  3310. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3311. entity.Property(e => e.Status).HasColumnType("int(11)");
  3312. entity.Property(e => e.Summary)
  3313. .HasColumnType("varchar(500)")
  3314. .HasCharSet("utf8")
  3315. .HasCollation("utf8_general_ci");
  3316. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  3317. entity.Property(e => e.Title)
  3318. .HasColumnType("varchar(50)")
  3319. .HasCharSet("utf8")
  3320. .HasCollation("utf8_general_ci");
  3321. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3322. entity.Property(e => e.UpdateMan)
  3323. .HasColumnType("varchar(50)")
  3324. .HasCharSet("utf8")
  3325. .HasCollation("utf8_general_ci");
  3326. entity.Property(e => e.Url)
  3327. .HasColumnType("varchar(500)")
  3328. .HasCharSet("utf8")
  3329. .HasCollation("utf8_general_ci");
  3330. entity.Property(e => e.UserId).HasColumnType("int(11)");
  3331. entity.Property(e => e.Version).HasColumnType("int(11)");
  3332. });
  3333. modelBuilder.Entity<MsgPlacard>(entity =>
  3334. {
  3335. entity.Property(e => e.Id).HasColumnType("int(11)");
  3336. entity.Property(e => e.BgPic)
  3337. .HasColumnType("varchar(200)")
  3338. .HasCharSet("utf8")
  3339. .HasCollation("utf8_general_ci");
  3340. entity.Property(e => e.Content)
  3341. .HasColumnType("longtext")
  3342. .HasCharSet("utf8")
  3343. .HasCollation("utf8_general_ci");
  3344. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3345. entity.Property(e => e.CreateMan)
  3346. .HasColumnType("varchar(50)")
  3347. .HasCharSet("utf8")
  3348. .HasCollation("utf8_general_ci");
  3349. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  3350. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  3351. entity.Property(e => e.ExtendColumn)
  3352. .HasColumnType("mediumtext")
  3353. .HasCharSet("utf8")
  3354. .HasCollation("utf8_general_ci");
  3355. entity.Property(e => e.IsTop)
  3356. .HasColumnType("bit(1)")
  3357. .HasDefaultValueSql("b'0'");
  3358. entity.Property(e => e.MsgType).HasColumnType("int(11)");
  3359. entity.Property(e => e.PushFlag).HasColumnType("int(11)");
  3360. entity.Property(e => e.PushParam)
  3361. .HasColumnType("varchar(255)")
  3362. .HasCharSet("utf8")
  3363. .HasCollation("utf8_general_ci");
  3364. entity.Property(e => e.PushTime).HasColumnType("datetime");
  3365. entity.Property(e => e.PushType).HasColumnType("int(11)");
  3366. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3367. entity.Property(e => e.Remark)
  3368. .HasColumnType("varchar(255)")
  3369. .HasCharSet("utf8")
  3370. .HasCollation("utf8_general_ci");
  3371. entity.Property(e => e.SeoDescription)
  3372. .HasColumnType("varchar(500)")
  3373. .HasCharSet("utf8")
  3374. .HasCollation("utf8_general_ci");
  3375. entity.Property(e => e.SeoKeyword)
  3376. .HasColumnType("varchar(200)")
  3377. .HasCharSet("utf8")
  3378. .HasCollation("utf8_general_ci");
  3379. entity.Property(e => e.SeoTitle)
  3380. .HasColumnType("varchar(100)")
  3381. .HasCharSet("utf8")
  3382. .HasCollation("utf8_general_ci");
  3383. entity.Property(e => e.ShowType).HasColumnType("int(11)");
  3384. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3385. entity.Property(e => e.Status).HasColumnType("int(11)");
  3386. entity.Property(e => e.Summary)
  3387. .HasColumnType("varchar(500)")
  3388. .HasCharSet("utf8")
  3389. .HasCollation("utf8_general_ci");
  3390. entity.Property(e => e.Title)
  3391. .HasColumnType("varchar(50)")
  3392. .HasCharSet("utf8")
  3393. .HasCollation("utf8_general_ci");
  3394. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3395. entity.Property(e => e.UpdateMan)
  3396. .HasColumnType("varchar(50)")
  3397. .HasCharSet("utf8")
  3398. .HasCollation("utf8_general_ci");
  3399. entity.Property(e => e.Url)
  3400. .HasColumnType("varchar(500)")
  3401. .HasCharSet("utf8")
  3402. .HasCollation("utf8_general_ci");
  3403. entity.Property(e => e.Version).HasColumnType("int(11)");
  3404. });
  3405. modelBuilder.Entity<MsgPlacardRead>(entity =>
  3406. {
  3407. entity.Property(e => e.Id).HasColumnType("int(11)");
  3408. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3409. entity.Property(e => e.CreateMan)
  3410. .HasColumnType("varchar(50)")
  3411. .HasCharSet("utf8")
  3412. .HasCollation("utf8_general_ci");
  3413. entity.Property(e => e.PlacardId).HasColumnType("int(11)");
  3414. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3415. entity.Property(e => e.ReadFlag)
  3416. .HasColumnType("bit(1)")
  3417. .HasDefaultValueSql("b'0'");
  3418. entity.Property(e => e.Remark)
  3419. .HasColumnType("varchar(255)")
  3420. .HasCharSet("utf8")
  3421. .HasCollation("utf8_general_ci");
  3422. entity.Property(e => e.SeoDescription)
  3423. .HasColumnType("varchar(500)")
  3424. .HasCharSet("utf8")
  3425. .HasCollation("utf8_general_ci");
  3426. entity.Property(e => e.SeoKeyword)
  3427. .HasColumnType("varchar(200)")
  3428. .HasCharSet("utf8")
  3429. .HasCollation("utf8_general_ci");
  3430. entity.Property(e => e.SeoTitle)
  3431. .HasColumnType("varchar(100)")
  3432. .HasCharSet("utf8")
  3433. .HasCollation("utf8_general_ci");
  3434. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3435. entity.Property(e => e.Status).HasColumnType("int(11)");
  3436. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3437. entity.Property(e => e.UpdateMan)
  3438. .HasColumnType("varchar(50)")
  3439. .HasCharSet("utf8")
  3440. .HasCollation("utf8_general_ci");
  3441. entity.Property(e => e.UserId)
  3442. .HasColumnType("varchar(64)")
  3443. .HasCharSet("utf8")
  3444. .HasCollation("utf8_general_ci");
  3445. entity.Property(e => e.Version).HasColumnType("int(11)");
  3446. });
  3447. modelBuilder.Entity<MsgPush>(entity =>
  3448. {
  3449. entity.Property(e => e.Id).HasColumnType("int(11)");
  3450. entity.Property(e => e.AutoPushDate).HasColumnType("datetime");
  3451. entity.Property(e => e.ClientType)
  3452. .HasColumnType("varchar(20)")
  3453. .HasCharSet("utf8")
  3454. .HasCollation("utf8_general_ci");
  3455. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3456. entity.Property(e => e.CreateMan)
  3457. .HasColumnType("varchar(50)")
  3458. .HasCharSet("utf8")
  3459. .HasCollation("utf8_general_ci");
  3460. entity.Property(e => e.Details)
  3461. .HasColumnType("varchar(200)")
  3462. .HasCharSet("utf8")
  3463. .HasCollation("utf8_general_ci");
  3464. entity.Property(e => e.Devices)
  3465. .HasColumnType("mediumtext")
  3466. .HasCharSet("utf8")
  3467. .HasCollation("utf8_general_ci");
  3468. entity.Property(e => e.IsSilent)
  3469. .HasColumnType("bit(1)")
  3470. .HasDefaultValueSql("b'0'");
  3471. entity.Property(e => e.MessageId)
  3472. .HasColumnType("varchar(50)")
  3473. .HasCharSet("utf8")
  3474. .HasCollation("utf8_general_ci");
  3475. entity.Property(e => e.Mobiles)
  3476. .HasColumnType("mediumtext")
  3477. .HasCharSet("utf8")
  3478. .HasCollation("utf8_general_ci");
  3479. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3480. entity.Property(e => e.SeoDescription)
  3481. .HasColumnType("varchar(500)")
  3482. .HasCharSet("utf8")
  3483. .HasCollation("utf8_general_ci");
  3484. entity.Property(e => e.SeoKeyword)
  3485. .HasColumnType("varchar(200)")
  3486. .HasCharSet("utf8")
  3487. .HasCollation("utf8_general_ci");
  3488. entity.Property(e => e.SeoTitle)
  3489. .HasColumnType("varchar(100)")
  3490. .HasCharSet("utf8")
  3491. .HasCollation("utf8_general_ci");
  3492. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3493. entity.Property(e => e.Status).HasColumnType("int(11)");
  3494. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  3495. entity.Property(e => e.Title)
  3496. .HasColumnType("varchar(50)")
  3497. .HasCharSet("utf8")
  3498. .HasCollation("utf8_general_ci");
  3499. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3500. entity.Property(e => e.UpdateMan)
  3501. .HasColumnType("varchar(50)")
  3502. .HasCharSet("utf8")
  3503. .HasCollation("utf8_general_ci");
  3504. entity.Property(e => e.Url)
  3505. .HasColumnType("varchar(500)")
  3506. .HasCharSet("utf8")
  3507. .HasCollation("utf8_general_ci");
  3508. entity.Property(e => e.Version).HasColumnType("int(11)");
  3509. });
  3510. modelBuilder.Entity<MsgSms>(entity =>
  3511. {
  3512. entity.Property(e => e.Id).HasColumnType("int(11)");
  3513. entity.Property(e => e.Code).HasColumnType("int(11)");
  3514. entity.Property(e => e.ColId)
  3515. .HasColumnType("varchar(30)")
  3516. .HasCharSet("utf8")
  3517. .HasCollation("utf8_general_ci");
  3518. entity.Property(e => e.Content)
  3519. .HasColumnType("varchar(200)")
  3520. .HasCharSet("utf8")
  3521. .HasCollation("utf8_general_ci");
  3522. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3523. entity.Property(e => e.CreateMan)
  3524. .HasColumnType("varchar(50)")
  3525. .HasCharSet("utf8")
  3526. .HasCollation("utf8_general_ci");
  3527. entity.Property(e => e.ErrorNum).HasColumnType("int(11)");
  3528. entity.Property(e => e.Ip)
  3529. .HasColumnType("varchar(15)")
  3530. .HasCharSet("utf8")
  3531. .HasCollation("utf8_general_ci");
  3532. entity.Property(e => e.Kind)
  3533. .HasColumnType("varchar(64)")
  3534. .HasCharSet("utf8")
  3535. .HasCollation("utf8_general_ci");
  3536. entity.Property(e => e.Mobile)
  3537. .HasColumnType("varchar(11)")
  3538. .HasCharSet("utf8")
  3539. .HasCollation("utf8_general_ci");
  3540. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3541. entity.Property(e => e.RespCode)
  3542. .HasColumnType("varchar(16)")
  3543. .HasCharSet("utf8")
  3544. .HasCollation("utf8_general_ci");
  3545. entity.Property(e => e.RespContent)
  3546. .HasColumnType("varchar(500)")
  3547. .HasCharSet("utf8")
  3548. .HasCollation("utf8_general_ci");
  3549. entity.Property(e => e.SendStatus).HasColumnType("int(11)");
  3550. entity.Property(e => e.SendTime).HasColumnType("datetime");
  3551. entity.Property(e => e.SendType).HasColumnType("int(11)");
  3552. entity.Property(e => e.SeoDescription)
  3553. .HasColumnType("varchar(500)")
  3554. .HasCharSet("utf8")
  3555. .HasCollation("utf8_general_ci");
  3556. entity.Property(e => e.SeoKeyword)
  3557. .HasColumnType("varchar(200)")
  3558. .HasCharSet("utf8")
  3559. .HasCollation("utf8_general_ci");
  3560. entity.Property(e => e.SeoTitle)
  3561. .HasColumnType("varchar(100)")
  3562. .HasCharSet("utf8")
  3563. .HasCollation("utf8_general_ci");
  3564. entity.Property(e => e.SignName)
  3565. .HasColumnType("varchar(10)")
  3566. .HasCharSet("utf8")
  3567. .HasCollation("utf8_general_ci");
  3568. entity.Property(e => e.SmsType).HasColumnType("int(11)");
  3569. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3570. entity.Property(e => e.Status).HasColumnType("int(11)");
  3571. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  3572. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3573. entity.Property(e => e.UpdateMan)
  3574. .HasColumnType("varchar(50)")
  3575. .HasCharSet("utf8")
  3576. .HasCollation("utf8_general_ci");
  3577. entity.Property(e => e.VerifyCode)
  3578. .HasColumnType("varchar(6)")
  3579. .HasCharSet("utf8")
  3580. .HasCollation("utf8_general_ci");
  3581. entity.Property(e => e.VerifyStatus).HasColumnType("int(11)");
  3582. entity.Property(e => e.Version).HasColumnType("int(11)");
  3583. });
  3584. modelBuilder.Entity<MsgSmsSet>(entity =>
  3585. {
  3586. entity.Property(e => e.Id).HasColumnType("int(11)");
  3587. entity.Property(e => e.AuthPwd)
  3588. .HasColumnType("varchar(50)")
  3589. .HasCharSet("utf8")
  3590. .HasCollation("utf8_general_ci");
  3591. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3592. entity.Property(e => e.CreateMan)
  3593. .HasColumnType("varchar(50)")
  3594. .HasCharSet("utf8")
  3595. .HasCollation("utf8_general_ci");
  3596. entity.Property(e => e.Name)
  3597. .HasColumnType("varchar(50)")
  3598. .HasCharSet("utf8")
  3599. .HasCollation("utf8_general_ci");
  3600. entity.Property(e => e.Params)
  3601. .HasColumnType("varchar(200)")
  3602. .HasCharSet("utf8")
  3603. .HasCollation("utf8_general_ci");
  3604. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3605. entity.Property(e => e.ReqUrl)
  3606. .HasColumnType("varchar(200)")
  3607. .HasCharSet("utf8")
  3608. .HasCollation("utf8_general_ci");
  3609. entity.Property(e => e.SeoDescription)
  3610. .HasColumnType("varchar(500)")
  3611. .HasCharSet("utf8")
  3612. .HasCollation("utf8_general_ci");
  3613. entity.Property(e => e.SeoKeyword)
  3614. .HasColumnType("varchar(200)")
  3615. .HasCharSet("utf8")
  3616. .HasCollation("utf8_general_ci");
  3617. entity.Property(e => e.SeoTitle)
  3618. .HasColumnType("varchar(100)")
  3619. .HasCharSet("utf8")
  3620. .HasCollation("utf8_general_ci");
  3621. entity.Property(e => e.SmsType).HasColumnType("int(11)");
  3622. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3623. entity.Property(e => e.Status).HasColumnType("int(11)");
  3624. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3625. entity.Property(e => e.UpdateMan)
  3626. .HasColumnType("varchar(50)")
  3627. .HasCharSet("utf8")
  3628. .HasCollation("utf8_general_ci");
  3629. entity.Property(e => e.UserName)
  3630. .HasColumnType("varchar(50)")
  3631. .HasCharSet("utf8")
  3632. .HasCollation("utf8_general_ci");
  3633. entity.Property(e => e.Version).HasColumnType("int(11)");
  3634. });
  3635. modelBuilder.Entity<MsgTemplate>(entity =>
  3636. {
  3637. entity.Property(e => e.Id).HasColumnType("int(11)");
  3638. entity.Property(e => e.ColId)
  3639. .HasColumnType("varchar(30)")
  3640. .HasCharSet("utf8")
  3641. .HasCollation("utf8_general_ci");
  3642. entity.Property(e => e.Content)
  3643. .HasColumnType("varchar(200)")
  3644. .HasCharSet("utf8")
  3645. .HasCollation("utf8_general_ci");
  3646. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3647. entity.Property(e => e.CreateMan)
  3648. .HasColumnType("varchar(50)")
  3649. .HasCharSet("utf8")
  3650. .HasCollation("utf8_general_ci");
  3651. entity.Property(e => e.Extend)
  3652. .HasColumnType("varchar(2000)")
  3653. .HasCharSet("utf8")
  3654. .HasCollation("utf8_general_ci");
  3655. entity.Property(e => e.MsgType).HasColumnType("int(11)");
  3656. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3657. entity.Property(e => e.Remark)
  3658. .HasColumnType("varchar(64)")
  3659. .HasCharSet("utf8")
  3660. .HasCollation("utf8_general_ci");
  3661. entity.Property(e => e.SeoDescription)
  3662. .HasColumnType("varchar(500)")
  3663. .HasCharSet("utf8")
  3664. .HasCollation("utf8_general_ci");
  3665. entity.Property(e => e.SeoKeyword)
  3666. .HasColumnType("varchar(200)")
  3667. .HasCharSet("utf8")
  3668. .HasCollation("utf8_general_ci");
  3669. entity.Property(e => e.SeoTitle)
  3670. .HasColumnType("varchar(100)")
  3671. .HasCharSet("utf8")
  3672. .HasCollation("utf8_general_ci");
  3673. entity.Property(e => e.SignName)
  3674. .HasColumnType("varchar(10)")
  3675. .HasCharSet("utf8")
  3676. .HasCollation("utf8_general_ci");
  3677. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3678. entity.Property(e => e.Status).HasColumnType("int(11)");
  3679. entity.Property(e => e.TemplateType).HasColumnType("int(11)");
  3680. entity.Property(e => e.Title)
  3681. .HasColumnType("varchar(50)")
  3682. .HasCharSet("utf8")
  3683. .HasCollation("utf8_general_ci");
  3684. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3685. entity.Property(e => e.UpdateMan)
  3686. .HasColumnType("varchar(50)")
  3687. .HasCharSet("utf8")
  3688. .HasCollation("utf8_general_ci");
  3689. entity.Property(e => e.Version).HasColumnType("int(11)");
  3690. });
  3691. modelBuilder.Entity<OpenBankCityTable>(entity =>
  3692. {
  3693. entity.HasKey(e => e.CityName)
  3694. .HasName("PRIMARY");
  3695. entity.Property(e => e.CityName)
  3696. .HasColumnType("varchar(100)")
  3697. .HasCharSet("utf8")
  3698. .HasCollation("utf8_general_ci");
  3699. entity.Property(e => e.Code)
  3700. .HasColumnType("varchar(20)")
  3701. .HasCharSet("utf8")
  3702. .HasCollation("utf8_general_ci");
  3703. });
  3704. modelBuilder.Entity<OpenBankTable>(entity =>
  3705. {
  3706. entity.HasKey(e => e.BankName)
  3707. .HasName("PRIMARY");
  3708. entity.Property(e => e.BankName)
  3709. .HasColumnType("varchar(200)")
  3710. .HasCharSet("utf8")
  3711. .HasCollation("utf8_general_ci");
  3712. entity.Property(e => e.BankCode)
  3713. .HasColumnType("varchar(50)")
  3714. .HasCharSet("utf8")
  3715. .HasCollation("utf8_general_ci");
  3716. });
  3717. modelBuilder.Entity<OpenReward>(entity =>
  3718. {
  3719. entity.Property(e => e.Id).HasColumnType("int(11)");
  3720. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  3721. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  3722. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3723. entity.Property(e => e.CreateMan)
  3724. .HasColumnType("varchar(50)")
  3725. .HasCharSet("utf8")
  3726. .HasCollation("utf8_general_ci");
  3727. entity.Property(e => e.CreditRewardAmount).HasColumnType("decimal(18,2)");
  3728. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  3729. entity.Property(e => e.DebitRewardAmount).HasColumnType("decimal(18,2)");
  3730. entity.Property(e => e.DebitTradeAmt).HasColumnType("decimal(18,2)");
  3731. entity.Property(e => e.OpenRewardNo)
  3732. .HasColumnType("varchar(32)")
  3733. .HasCharSet("utf8")
  3734. .HasCollation("utf8_general_ci");
  3735. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3736. entity.Property(e => e.Remark)
  3737. .HasColumnType("varchar(128)")
  3738. .HasCharSet("utf8")
  3739. .HasCollation("utf8_general_ci");
  3740. entity.Property(e => e.RewardDesc)
  3741. .HasColumnType("varchar(128)")
  3742. .HasCharSet("utf8")
  3743. .HasCollation("utf8_general_ci");
  3744. entity.Property(e => e.RewardMerCount).HasColumnType("int(11)");
  3745. entity.Property(e => e.RewardType).HasColumnType("int(11)");
  3746. entity.Property(e => e.SeoDescription)
  3747. .HasColumnType("varchar(500)")
  3748. .HasCharSet("utf8")
  3749. .HasCollation("utf8_general_ci");
  3750. entity.Property(e => e.SeoKeyword)
  3751. .HasColumnType("varchar(200)")
  3752. .HasCharSet("utf8")
  3753. .HasCollation("utf8_general_ci");
  3754. entity.Property(e => e.SeoTitle)
  3755. .HasColumnType("varchar(100)")
  3756. .HasCharSet("utf8")
  3757. .HasCollation("utf8_general_ci");
  3758. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3759. entity.Property(e => e.Status).HasColumnType("int(11)");
  3760. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  3761. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  3762. entity.Property(e => e.TradeMonth)
  3763. .HasColumnType("varchar(6)")
  3764. .HasCharSet("utf8")
  3765. .HasCollation("utf8_general_ci");
  3766. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3767. entity.Property(e => e.UpdateMan)
  3768. .HasColumnType("varchar(50)")
  3769. .HasCharSet("utf8")
  3770. .HasCollation("utf8_general_ci");
  3771. entity.Property(e => e.UserId).HasColumnType("int(11)");
  3772. entity.Property(e => e.Version).HasColumnType("int(11)");
  3773. });
  3774. modelBuilder.Entity<OpenRewardDetail>(entity =>
  3775. {
  3776. entity.Property(e => e.Id).HasColumnType("int(11)");
  3777. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  3778. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  3779. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3780. entity.Property(e => e.CreateMan)
  3781. .HasColumnType("varchar(50)")
  3782. .HasCharSet("utf8")
  3783. .HasCollation("utf8_general_ci");
  3784. entity.Property(e => e.CreditRewardAmount).HasColumnType("decimal(18,2)");
  3785. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  3786. entity.Property(e => e.DebitRewardAmount).HasColumnType("decimal(18,2)");
  3787. entity.Property(e => e.DebitTradeAmt).HasColumnType("decimal(18,2)");
  3788. entity.Property(e => e.DirectUserId).HasColumnType("int(11)");
  3789. entity.Property(e => e.MerBuddyType).HasColumnType("int(11)");
  3790. entity.Property(e => e.MerNo)
  3791. .HasColumnType("varchar(32)")
  3792. .HasCharSet("utf8")
  3793. .HasCollation("utf8_general_ci");
  3794. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  3795. entity.Property(e => e.OpenDetailRec)
  3796. .HasColumnType("varchar(32)")
  3797. .HasCharSet("utf8")
  3798. .HasCollation("utf8_general_ci");
  3799. entity.Property(e => e.OpenRewardNo)
  3800. .HasColumnType("varchar(32)")
  3801. .HasCharSet("utf8")
  3802. .HasCollation("utf8_general_ci");
  3803. entity.Property(e => e.ProductName)
  3804. .HasColumnType("varchar(32)")
  3805. .HasCharSet("utf8")
  3806. .HasCollation("utf8_general_ci");
  3807. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3808. entity.Property(e => e.Remark)
  3809. .HasColumnType("varchar(128)")
  3810. .HasCharSet("utf8")
  3811. .HasCollation("utf8_general_ci");
  3812. entity.Property(e => e.RewardDesc)
  3813. .HasColumnType("varchar(128)")
  3814. .HasCharSet("utf8")
  3815. .HasCollation("utf8_general_ci");
  3816. entity.Property(e => e.RewardTips)
  3817. .HasColumnType("varchar(16)")
  3818. .HasCharSet("utf8")
  3819. .HasCollation("utf8_general_ci");
  3820. entity.Property(e => e.RewardType).HasColumnType("int(11)");
  3821. entity.Property(e => e.SeoDescription)
  3822. .HasColumnType("varchar(500)")
  3823. .HasCharSet("utf8")
  3824. .HasCollation("utf8_general_ci");
  3825. entity.Property(e => e.SeoKeyword)
  3826. .HasColumnType("varchar(200)")
  3827. .HasCharSet("utf8")
  3828. .HasCollation("utf8_general_ci");
  3829. entity.Property(e => e.SeoTitle)
  3830. .HasColumnType("varchar(100)")
  3831. .HasCharSet("utf8")
  3832. .HasCollation("utf8_general_ci");
  3833. entity.Property(e => e.SnApplyUserId).HasColumnType("int(11)");
  3834. entity.Property(e => e.SnNo)
  3835. .HasColumnType("varchar(32)")
  3836. .HasCharSet("utf8")
  3837. .HasCollation("utf8_general_ci");
  3838. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  3839. entity.Property(e => e.SnType).HasColumnType("int(11)");
  3840. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3841. entity.Property(e => e.StandardDate).HasColumnType("datetime");
  3842. entity.Property(e => e.Status).HasColumnType("int(11)");
  3843. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  3844. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  3845. entity.Property(e => e.TradeMonth)
  3846. .HasColumnType("varchar(6)")
  3847. .HasCharSet("utf8")
  3848. .HasCollation("utf8_general_ci");
  3849. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3850. entity.Property(e => e.UpdateMan)
  3851. .HasColumnType("varchar(50)")
  3852. .HasCharSet("utf8")
  3853. .HasCollation("utf8_general_ci");
  3854. entity.Property(e => e.UserId).HasColumnType("int(11)");
  3855. entity.Property(e => e.Version).HasColumnType("int(11)");
  3856. });
  3857. modelBuilder.Entity<OpenSnSnapshot>(entity =>
  3858. {
  3859. entity.Property(e => e.Id).HasColumnType("int(11)");
  3860. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  3861. entity.Property(e => e.BuySnNum).HasColumnType("int(11)");
  3862. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3863. entity.Property(e => e.CreateMan)
  3864. .HasColumnType("varchar(50)")
  3865. .HasCharSet("utf8")
  3866. .HasCollation("utf8_general_ci");
  3867. entity.Property(e => e.CreditRewardAmount).HasColumnType("decimal(18,2)");
  3868. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  3869. entity.Property(e => e.DebitRewardAmount).HasColumnType("decimal(18,2)");
  3870. entity.Property(e => e.DebitTradeAmt).HasColumnType("decimal(18,2)");
  3871. entity.Property(e => e.DirectUserId).HasColumnType("int(11)");
  3872. entity.Property(e => e.FailReason)
  3873. .HasColumnType("varchar(128)")
  3874. .HasCharSet("utf8")
  3875. .HasCollation("utf8_general_ci");
  3876. entity.Property(e => e.MerNo)
  3877. .HasColumnType("varchar(32)")
  3878. .HasCharSet("utf8")
  3879. .HasCollation("utf8_general_ci");
  3880. entity.Property(e => e.MerUserType).HasColumnType("int(11)");
  3881. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  3882. entity.Property(e => e.OpenDetailRec)
  3883. .HasColumnType("varchar(32)")
  3884. .HasCharSet("utf8")
  3885. .HasCollation("utf8_general_ci");
  3886. entity.Property(e => e.OpenRewardNo)
  3887. .HasColumnType("varchar(32)")
  3888. .HasCharSet("utf8")
  3889. .HasCollation("utf8_general_ci");
  3890. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3891. entity.Property(e => e.Remark)
  3892. .HasColumnType("varchar(128)")
  3893. .HasCharSet("utf8")
  3894. .HasCollation("utf8_general_ci");
  3895. entity.Property(e => e.RewardAmount).HasColumnType("decimal(18,2)");
  3896. entity.Property(e => e.RewardDesc)
  3897. .HasColumnType("varchar(128)")
  3898. .HasCharSet("utf8")
  3899. .HasCollation("utf8_general_ci");
  3900. entity.Property(e => e.RewardTips)
  3901. .HasColumnType("varchar(16)")
  3902. .HasCharSet("utf8")
  3903. .HasCollation("utf8_general_ci");
  3904. entity.Property(e => e.RewardType).HasColumnType("int(11)");
  3905. entity.Property(e => e.SeoDescription)
  3906. .HasColumnType("varchar(500)")
  3907. .HasCharSet("utf8")
  3908. .HasCollation("utf8_general_ci");
  3909. entity.Property(e => e.SeoKeyword)
  3910. .HasColumnType("varchar(200)")
  3911. .HasCharSet("utf8")
  3912. .HasCollation("utf8_general_ci");
  3913. entity.Property(e => e.SeoTitle)
  3914. .HasColumnType("varchar(100)")
  3915. .HasCharSet("utf8")
  3916. .HasCollation("utf8_general_ci");
  3917. entity.Property(e => e.SnApplyUserId).HasColumnType("int(11)");
  3918. entity.Property(e => e.SnNo)
  3919. .HasColumnType("varchar(32)")
  3920. .HasCharSet("utf8")
  3921. .HasCollation("utf8_general_ci");
  3922. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  3923. entity.Property(e => e.SnType).HasColumnType("int(11)");
  3924. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3925. entity.Property(e => e.StandardDate).HasColumnType("datetime");
  3926. entity.Property(e => e.Status).HasColumnType("int(11)");
  3927. entity.Property(e => e.StdBuySnNum).HasColumnType("int(11)");
  3928. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  3929. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  3930. entity.Property(e => e.TradeMonth)
  3931. .HasColumnType("varchar(6)")
  3932. .HasCharSet("utf8")
  3933. .HasCollation("utf8_general_ci");
  3934. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3935. entity.Property(e => e.UpdateMan)
  3936. .HasColumnType("varchar(50)")
  3937. .HasCharSet("utf8")
  3938. .HasCollation("utf8_general_ci");
  3939. entity.Property(e => e.UserId).HasColumnType("int(11)");
  3940. entity.Property(e => e.UserNav)
  3941. .HasColumnType("varchar(300)")
  3942. .HasCharSet("utf8")
  3943. .HasCollation("utf8_general_ci");
  3944. entity.Property(e => e.Version).HasColumnType("int(11)");
  3945. });
  3946. modelBuilder.Entity<OperateLog>(entity =>
  3947. {
  3948. entity.Property(e => e.Id).HasColumnType("int(11)");
  3949. entity.Property(e => e.AfterOperate)
  3950. .HasColumnType("mediumtext")
  3951. .HasCharSet("utf8")
  3952. .HasCollation("utf8_general_ci");
  3953. entity.Property(e => e.BeforeOperate)
  3954. .HasColumnType("mediumtext")
  3955. .HasCharSet("utf8")
  3956. .HasCollation("utf8_general_ci");
  3957. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3958. entity.Property(e => e.CreateMan)
  3959. .HasColumnType("varchar(50)")
  3960. .HasCharSet("utf8")
  3961. .HasCollation("utf8_general_ci");
  3962. entity.Property(e => e.OpMode)
  3963. .HasColumnType("varchar(30)")
  3964. .HasCharSet("utf8")
  3965. .HasCollation("utf8_general_ci");
  3966. entity.Property(e => e.OperateMan)
  3967. .HasColumnType("varchar(50)")
  3968. .HasCharSet("utf8")
  3969. .HasCollation("utf8_general_ci");
  3970. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3971. entity.Property(e => e.SeoDescription)
  3972. .HasColumnType("varchar(500)")
  3973. .HasCharSet("utf8")
  3974. .HasCollation("utf8_general_ci");
  3975. entity.Property(e => e.SeoKeyword)
  3976. .HasColumnType("varchar(200)")
  3977. .HasCharSet("utf8")
  3978. .HasCollation("utf8_general_ci");
  3979. entity.Property(e => e.SeoTitle)
  3980. .HasColumnType("varchar(100)")
  3981. .HasCharSet("utf8")
  3982. .HasCollation("utf8_general_ci");
  3983. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3984. entity.Property(e => e.Status).HasColumnType("int(11)");
  3985. entity.Property(e => e.TableEnName)
  3986. .HasColumnType("varchar(50)")
  3987. .HasCharSet("utf8")
  3988. .HasCollation("utf8_general_ci");
  3989. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3990. entity.Property(e => e.UpdateMan)
  3991. .HasColumnType("varchar(50)")
  3992. .HasCharSet("utf8")
  3993. .HasCollation("utf8_general_ci");
  3994. entity.Property(e => e.Version).HasColumnType("int(11)");
  3995. });
  3996. modelBuilder.Entity<OperateRightList>(entity =>
  3997. {
  3998. entity.Property(e => e.Id).HasColumnType("int(11)");
  3999. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4000. entity.Property(e => e.CreateMan)
  4001. .HasColumnType("varchar(50)")
  4002. .HasCharSet("utf8")
  4003. .HasCollation("utf8_general_ci");
  4004. entity.Property(e => e.EnName)
  4005. .HasColumnType("varchar(50)")
  4006. .HasCharSet("utf8")
  4007. .HasCollation("utf8_general_ci");
  4008. entity.Property(e => e.Name)
  4009. .HasColumnType("varchar(50)")
  4010. .HasCharSet("utf8")
  4011. .HasCollation("utf8_general_ci");
  4012. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4013. entity.Property(e => e.SeoDescription)
  4014. .HasColumnType("varchar(500)")
  4015. .HasCharSet("utf8")
  4016. .HasCollation("utf8_general_ci");
  4017. entity.Property(e => e.SeoKeyword)
  4018. .HasColumnType("varchar(200)")
  4019. .HasCharSet("utf8")
  4020. .HasCollation("utf8_general_ci");
  4021. entity.Property(e => e.SeoTitle)
  4022. .HasColumnType("varchar(100)")
  4023. .HasCharSet("utf8")
  4024. .HasCollation("utf8_general_ci");
  4025. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4026. entity.Property(e => e.Status).HasColumnType("int(11)");
  4027. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4028. entity.Property(e => e.UpdateMan)
  4029. .HasColumnType("varchar(50)")
  4030. .HasCharSet("utf8")
  4031. .HasCollation("utf8_general_ci");
  4032. entity.Property(e => e.Version).HasColumnType("int(11)");
  4033. });
  4034. modelBuilder.Entity<OrderForNo>(entity =>
  4035. {
  4036. entity.HasKey(e => e.OrderNo)
  4037. .HasName("PRIMARY");
  4038. entity.Property(e => e.OrderNo)
  4039. .HasColumnType("varchar(50)")
  4040. .HasCharSet("utf8")
  4041. .HasCollation("utf8_general_ci");
  4042. entity.Property(e => e.OrderIds)
  4043. .HasColumnType("varchar(50)")
  4044. .HasCharSet("utf8")
  4045. .HasCollation("utf8_general_ci");
  4046. entity.Property(e => e.RspCode).HasColumnType("int(11)");
  4047. entity.Property(e => e.RspMsg)
  4048. .HasColumnType("varchar(500)")
  4049. .HasCharSet("utf8")
  4050. .HasCollation("utf8_general_ci");
  4051. });
  4052. modelBuilder.Entity<OrderProduct>(entity =>
  4053. {
  4054. entity.Property(e => e.Id).HasColumnType("int(11)");
  4055. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4056. entity.Property(e => e.CreateMan)
  4057. .HasColumnType("varchar(50)")
  4058. .HasCharSet("utf8")
  4059. .HasCollation("utf8_general_ci");
  4060. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4061. entity.Property(e => e.NormDetail)
  4062. .HasColumnType("varchar(200)")
  4063. .HasCharSet("utf8")
  4064. .HasCollation("utf8_general_ci");
  4065. entity.Property(e => e.NormId)
  4066. .HasColumnType("varchar(50)")
  4067. .HasCharSet("utf8")
  4068. .HasCollation("utf8_general_ci");
  4069. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  4070. entity.Property(e => e.ProductCode)
  4071. .HasColumnType("varchar(30)")
  4072. .HasCharSet("utf8")
  4073. .HasCollation("utf8_general_ci");
  4074. entity.Property(e => e.ProductCount).HasColumnType("int(11)");
  4075. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  4076. entity.Property(e => e.ProductIntegral).HasColumnType("decimal(18,2)");
  4077. entity.Property(e => e.ProductName)
  4078. .HasColumnType("varchar(100)")
  4079. .HasCharSet("utf8")
  4080. .HasCollation("utf8_general_ci");
  4081. entity.Property(e => e.ProductPhoto)
  4082. .HasColumnType("varchar(200)")
  4083. .HasCharSet("utf8")
  4084. .HasCollation("utf8_general_ci");
  4085. entity.Property(e => e.ProductPrice).HasColumnType("decimal(18,2)");
  4086. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4087. entity.Property(e => e.SeoDescription)
  4088. .HasColumnType("varchar(500)")
  4089. .HasCharSet("utf8")
  4090. .HasCollation("utf8_general_ci");
  4091. entity.Property(e => e.SeoKeyword)
  4092. .HasColumnType("varchar(200)")
  4093. .HasCharSet("utf8")
  4094. .HasCollation("utf8_general_ci");
  4095. entity.Property(e => e.SeoTitle)
  4096. .HasColumnType("varchar(100)")
  4097. .HasCharSet("utf8")
  4098. .HasCollation("utf8_general_ci");
  4099. entity.Property(e => e.SnNos)
  4100. .HasColumnType("mediumtext")
  4101. .HasCharSet("utf8")
  4102. .HasCollation("utf8_general_ci");
  4103. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4104. entity.Property(e => e.Status).HasColumnType("int(11)");
  4105. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  4106. entity.Property(e => e.TotalIntegral).HasColumnType("decimal(18,2)");
  4107. entity.Property(e => e.TotalPrice).HasColumnType("decimal(18,2)");
  4108. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4109. entity.Property(e => e.UpdateMan)
  4110. .HasColumnType("varchar(50)")
  4111. .HasCharSet("utf8")
  4112. .HasCollation("utf8_general_ci");
  4113. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4114. entity.Property(e => e.Version).HasColumnType("int(11)");
  4115. });
  4116. modelBuilder.Entity<OrderRefund>(entity =>
  4117. {
  4118. entity.Property(e => e.Id).HasColumnType("int(11)");
  4119. entity.Property(e => e.Amount).HasColumnType("decimal(18,2)");
  4120. entity.Property(e => e.Contents)
  4121. .HasColumnType("longtext")
  4122. .HasCharSet("utf8")
  4123. .HasCollation("utf8_general_ci");
  4124. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4125. entity.Property(e => e.CreateMan)
  4126. .HasColumnType("varchar(50)")
  4127. .HasCharSet("utf8")
  4128. .HasCollation("utf8_general_ci");
  4129. entity.Property(e => e.ErpCode)
  4130. .HasColumnType("varchar(50)")
  4131. .HasCharSet("utf8")
  4132. .HasCollation("utf8_general_ci");
  4133. entity.Property(e => e.ErpCompany).HasColumnType("int(11)");
  4134. entity.Property(e => e.GoodStatus).HasColumnType("int(11)");
  4135. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4136. entity.Property(e => e.Mobile)
  4137. .HasColumnType("varchar(11)")
  4138. .HasCharSet("utf8")
  4139. .HasCollation("utf8_general_ci");
  4140. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  4141. entity.Property(e => e.Photos)
  4142. .HasColumnType("varchar(500)")
  4143. .HasCharSet("utf8")
  4144. .HasCollation("utf8_general_ci");
  4145. entity.Property(e => e.ProductId)
  4146. .HasColumnType("varchar(50)")
  4147. .HasCharSet("utf8")
  4148. .HasCollation("utf8_general_ci");
  4149. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4150. entity.Property(e => e.Reason).HasColumnType("int(11)");
  4151. entity.Property(e => e.SeoDescription)
  4152. .HasColumnType("varchar(500)")
  4153. .HasCharSet("utf8")
  4154. .HasCollation("utf8_general_ci");
  4155. entity.Property(e => e.SeoKeyword)
  4156. .HasColumnType("varchar(200)")
  4157. .HasCharSet("utf8")
  4158. .HasCollation("utf8_general_ci");
  4159. entity.Property(e => e.SeoTitle)
  4160. .HasColumnType("varchar(100)")
  4161. .HasCharSet("utf8")
  4162. .HasCollation("utf8_general_ci");
  4163. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4164. entity.Property(e => e.Status).HasColumnType("int(11)");
  4165. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4166. entity.Property(e => e.UpdateMan)
  4167. .HasColumnType("varchar(50)")
  4168. .HasCharSet("utf8")
  4169. .HasCollation("utf8_general_ci");
  4170. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4171. entity.Property(e => e.Version).HasColumnType("int(11)");
  4172. });
  4173. modelBuilder.Entity<OrderRefundReason>(entity =>
  4174. {
  4175. entity.Property(e => e.Id).HasColumnType("int(11)");
  4176. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4177. entity.Property(e => e.CreateMan)
  4178. .HasColumnType("varchar(50)")
  4179. .HasCharSet("utf8")
  4180. .HasCollation("utf8_general_ci");
  4181. entity.Property(e => e.Name)
  4182. .HasColumnType("varchar(50)")
  4183. .HasCharSet("utf8")
  4184. .HasCollation("utf8_general_ci");
  4185. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4186. entity.Property(e => e.SeoDescription)
  4187. .HasColumnType("varchar(500)")
  4188. .HasCharSet("utf8")
  4189. .HasCollation("utf8_general_ci");
  4190. entity.Property(e => e.SeoKeyword)
  4191. .HasColumnType("varchar(200)")
  4192. .HasCharSet("utf8")
  4193. .HasCollation("utf8_general_ci");
  4194. entity.Property(e => e.SeoTitle)
  4195. .HasColumnType("varchar(100)")
  4196. .HasCharSet("utf8")
  4197. .HasCollation("utf8_general_ci");
  4198. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4199. entity.Property(e => e.Status).HasColumnType("int(11)");
  4200. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4201. entity.Property(e => e.UpdateMan)
  4202. .HasColumnType("varchar(50)")
  4203. .HasCharSet("utf8")
  4204. .HasCollation("utf8_general_ci");
  4205. entity.Property(e => e.Version).HasColumnType("int(11)");
  4206. });
  4207. modelBuilder.Entity<Orders>(entity =>
  4208. {
  4209. entity.Property(e => e.Id).HasColumnType("int(11)");
  4210. entity.Property(e => e.ActualPay).HasColumnType("decimal(18,2)");
  4211. entity.Property(e => e.Address)
  4212. .HasColumnType("varchar(50)")
  4213. .HasCharSet("utf8")
  4214. .HasCollation("utf8_general_ci");
  4215. entity.Property(e => e.Areas)
  4216. .HasColumnType("varchar(30)")
  4217. .HasCharSet("utf8")
  4218. .HasCollation("utf8_general_ci");
  4219. entity.Property(e => e.AutoConfirmDate).HasColumnType("datetime");
  4220. entity.Property(e => e.BuyCount).HasColumnType("int(11)");
  4221. entity.Property(e => e.ChannelAmount).HasColumnType("decimal(18,2)");
  4222. entity.Property(e => e.ConfirmDate).HasColumnType("datetime");
  4223. entity.Property(e => e.CouponId).HasColumnType("int(11)");
  4224. entity.Property(e => e.CouponMoney).HasColumnType("decimal(18,2)");
  4225. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4226. entity.Property(e => e.CreateMan)
  4227. .HasColumnType("varchar(50)")
  4228. .HasCharSet("utf8")
  4229. .HasCollation("utf8_general_ci");
  4230. entity.Property(e => e.DeliveryType).HasColumnType("int(11)");
  4231. entity.Property(e => e.ErpCode)
  4232. .HasColumnType("varchar(50)")
  4233. .HasCharSet("utf8")
  4234. .HasCollation("utf8_general_ci");
  4235. entity.Property(e => e.ErpMode).HasColumnType("int(11)");
  4236. entity.Property(e => e.ErpName)
  4237. .HasColumnType("varchar(50)")
  4238. .HasCharSet("utf8")
  4239. .HasCollation("utf8_general_ci");
  4240. entity.Property(e => e.ErpPrice).HasColumnType("decimal(18,2)");
  4241. entity.Property(e => e.Integral).HasColumnType("decimal(18,2)");
  4242. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4243. entity.Property(e => e.Mobile)
  4244. .HasColumnType("varchar(11)")
  4245. .HasCharSet("utf8")
  4246. .HasCollation("utf8_general_ci");
  4247. entity.Property(e => e.OrderNo)
  4248. .HasColumnType("varchar(30)")
  4249. .HasCharSet("utf8")
  4250. .HasCollation("utf8_general_ci");
  4251. entity.Property(e => e.PayDate).HasColumnType("datetime");
  4252. entity.Property(e => e.PayMode).HasColumnType("int(11)");
  4253. entity.Property(e => e.PayStatus).HasColumnType("int(11)");
  4254. entity.Property(e => e.PostalCode)
  4255. .HasColumnType("varchar(6)")
  4256. .HasCharSet("utf8")
  4257. .HasCollation("utf8_general_ci");
  4258. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  4259. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4260. entity.Property(e => e.RealName)
  4261. .HasColumnType("varchar(10)")
  4262. .HasCharSet("utf8")
  4263. .HasCollation("utf8_general_ci");
  4264. entity.Property(e => e.RefundActAmount).HasColumnType("decimal(18,2)");
  4265. entity.Property(e => e.RefundFeeAmount).HasColumnType("decimal(18,2)");
  4266. entity.Property(e => e.RefundReason)
  4267. .HasColumnType("varchar(64)")
  4268. .HasCharSet("utf8")
  4269. .HasCollation("utf8_general_ci");
  4270. entity.Property(e => e.RefundStatus).HasColumnType("int(11)");
  4271. entity.Property(e => e.Remark)
  4272. .HasColumnType("varchar(64)")
  4273. .HasCharSet("utf8")
  4274. .HasCollation("utf8_general_ci");
  4275. entity.Property(e => e.ReqData)
  4276. .HasColumnType("varchar(2048)")
  4277. .HasCharSet("utf8")
  4278. .HasCollation("utf8_general_ci");
  4279. entity.Property(e => e.ResData)
  4280. .HasColumnType("varchar(2048)")
  4281. .HasCharSet("utf8")
  4282. .HasCollation("utf8_general_ci");
  4283. entity.Property(e => e.ReturnCode)
  4284. .HasColumnType("varchar(32)")
  4285. .HasCharSet("utf8")
  4286. .HasCollation("utf8_general_ci");
  4287. entity.Property(e => e.ReturnMsg)
  4288. .HasColumnType("varchar(128)")
  4289. .HasCharSet("utf8")
  4290. .HasCollation("utf8_general_ci");
  4291. entity.Property(e => e.SendDate).HasColumnType("datetime");
  4292. entity.Property(e => e.SendStatus).HasColumnType("int(11)");
  4293. entity.Property(e => e.SeoDescription)
  4294. .HasColumnType("varchar(500)")
  4295. .HasCharSet("utf8")
  4296. .HasCollation("utf8_general_ci");
  4297. entity.Property(e => e.SeoKeyword)
  4298. .HasColumnType("varchar(200)")
  4299. .HasCharSet("utf8")
  4300. .HasCollation("utf8_general_ci");
  4301. entity.Property(e => e.SeoTitle)
  4302. .HasColumnType("varchar(100)")
  4303. .HasCharSet("utf8")
  4304. .HasCollation("utf8_general_ci");
  4305. entity.Property(e => e.SnNos)
  4306. .HasColumnType("mediumtext")
  4307. .HasCharSet("utf8")
  4308. .HasCollation("utf8_general_ci");
  4309. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4310. entity.Property(e => e.Status).HasColumnType("int(11)");
  4311. entity.Property(e => e.StoreContact)
  4312. .HasColumnType("varchar(30)")
  4313. .HasCharSet("utf8")
  4314. .HasCollation("utf8_general_ci");
  4315. entity.Property(e => e.StoreContactMobile)
  4316. .HasColumnType("varchar(11)")
  4317. .HasCharSet("utf8")
  4318. .HasCollation("utf8_general_ci");
  4319. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  4320. entity.Property(e => e.StoreType).HasColumnType("int(11)");
  4321. entity.Property(e => e.StoreUserId).HasColumnType("int(11)");
  4322. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  4323. entity.Property(e => e.TotalPrice).HasColumnType("decimal(18,2)");
  4324. entity.Property(e => e.TradeNo)
  4325. .HasColumnType("varchar(50)")
  4326. .HasCharSet("utf8")
  4327. .HasCollation("utf8_general_ci");
  4328. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4329. entity.Property(e => e.UpdateMan)
  4330. .HasColumnType("varchar(50)")
  4331. .HasCharSet("utf8")
  4332. .HasCollation("utf8_general_ci");
  4333. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4334. entity.Property(e => e.UserMessage)
  4335. .HasColumnType("varchar(50)")
  4336. .HasCharSet("utf8")
  4337. .HasCollation("utf8_general_ci");
  4338. entity.Property(e => e.Version).HasColumnType("int(11)");
  4339. });
  4340. modelBuilder.Entity<PageInfo>(entity =>
  4341. {
  4342. entity.Property(e => e.Id).HasColumnType("int(11)");
  4343. entity.Property(e => e.ColId)
  4344. .HasColumnType("varchar(30)")
  4345. .HasCharSet("utf8")
  4346. .HasCollation("utf8_general_ci");
  4347. entity.Property(e => e.Contents)
  4348. .HasColumnType("longtext")
  4349. .HasCharSet("utf8")
  4350. .HasCollation("utf8_general_ci");
  4351. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4352. entity.Property(e => e.CreateMan)
  4353. .HasColumnType("varchar(50)")
  4354. .HasCharSet("utf8")
  4355. .HasCollation("utf8_general_ci");
  4356. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4357. entity.Property(e => e.SeoDescription)
  4358. .HasColumnType("varchar(500)")
  4359. .HasCharSet("utf8")
  4360. .HasCollation("utf8_general_ci");
  4361. entity.Property(e => e.SeoKeyword)
  4362. .HasColumnType("varchar(200)")
  4363. .HasCharSet("utf8")
  4364. .HasCollation("utf8_general_ci");
  4365. entity.Property(e => e.SeoTitle)
  4366. .HasColumnType("varchar(100)")
  4367. .HasCharSet("utf8")
  4368. .HasCollation("utf8_general_ci");
  4369. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4370. entity.Property(e => e.Status).HasColumnType("int(11)");
  4371. entity.Property(e => e.Title)
  4372. .HasColumnType("varchar(200)")
  4373. .HasCharSet("utf8")
  4374. .HasCollation("utf8_general_ci");
  4375. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4376. entity.Property(e => e.UpdateMan)
  4377. .HasColumnType("varchar(50)")
  4378. .HasCharSet("utf8")
  4379. .HasCollation("utf8_general_ci");
  4380. entity.Property(e => e.Version).HasColumnType("int(11)");
  4381. });
  4382. modelBuilder.Entity<PageUpdateInfo>(entity =>
  4383. {
  4384. entity.Property(e => e.Id).HasColumnType("int(11)");
  4385. entity.Property(e => e.BgColor)
  4386. .HasColumnType("varchar(6)")
  4387. .HasCharSet("utf8")
  4388. .HasCollation("utf8_general_ci");
  4389. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4390. entity.Property(e => e.CreateMan)
  4391. .HasColumnType("varchar(50)")
  4392. .HasCharSet("utf8")
  4393. .HasCollation("utf8_general_ci");
  4394. entity.Property(e => e.GotoPages)
  4395. .HasColumnType("varchar(500)")
  4396. .HasCharSet("utf8")
  4397. .HasCollation("utf8_general_ci");
  4398. entity.Property(e => e.IsScrollBar)
  4399. .HasColumnType("bit(1)")
  4400. .HasDefaultValueSql("b'0'");
  4401. entity.Property(e => e.IsSkid)
  4402. .HasColumnType("bit(1)")
  4403. .HasDefaultValueSql("b'0'");
  4404. entity.Property(e => e.LeftAction1)
  4405. .HasColumnType("longtext")
  4406. .HasCharSet("utf8")
  4407. .HasCollation("utf8_general_ci");
  4408. entity.Property(e => e.LeftAction2)
  4409. .HasColumnType("longtext")
  4410. .HasCharSet("utf8")
  4411. .HasCollation("utf8_general_ci");
  4412. entity.Property(e => e.LeftBtn1)
  4413. .HasColumnType("varchar(100)")
  4414. .HasCharSet("utf8")
  4415. .HasCollation("utf8_general_ci");
  4416. entity.Property(e => e.LeftBtn2)
  4417. .HasColumnType("varchar(50)")
  4418. .HasCharSet("utf8")
  4419. .HasCollation("utf8_general_ci");
  4420. entity.Property(e => e.ModulePath)
  4421. .HasColumnType("varchar(200)")
  4422. .HasCharSet("utf8")
  4423. .HasCollation("utf8_general_ci");
  4424. entity.Property(e => e.ModuleVersion).HasColumnType("int(11)");
  4425. entity.Property(e => e.MustUpdate)
  4426. .HasColumnType("bit(1)")
  4427. .HasDefaultValueSql("b'0'");
  4428. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4429. entity.Property(e => e.RightAction1)
  4430. .HasColumnType("longtext")
  4431. .HasCharSet("utf8")
  4432. .HasCollation("utf8_general_ci");
  4433. entity.Property(e => e.RightAction2)
  4434. .HasColumnType("longtext")
  4435. .HasCharSet("utf8")
  4436. .HasCollation("utf8_general_ci");
  4437. entity.Property(e => e.RightBtn1)
  4438. .HasColumnType("varchar(50)")
  4439. .HasCharSet("utf8")
  4440. .HasCollation("utf8_general_ci");
  4441. entity.Property(e => e.RightBtn2)
  4442. .HasColumnType("varchar(50)")
  4443. .HasCharSet("utf8")
  4444. .HasCollation("utf8_general_ci");
  4445. entity.Property(e => e.SeoDescription)
  4446. .HasColumnType("varchar(500)")
  4447. .HasCharSet("utf8")
  4448. .HasCollation("utf8_general_ci");
  4449. entity.Property(e => e.SeoKeyword)
  4450. .HasColumnType("varchar(200)")
  4451. .HasCharSet("utf8")
  4452. .HasCollation("utf8_general_ci");
  4453. entity.Property(e => e.SeoTitle)
  4454. .HasColumnType("varchar(100)")
  4455. .HasCharSet("utf8")
  4456. .HasCollation("utf8_general_ci");
  4457. entity.Property(e => e.ShowTitle)
  4458. .HasColumnType("bit(1)")
  4459. .HasDefaultValueSql("b'0'");
  4460. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4461. entity.Property(e => e.Status).HasColumnType("int(11)");
  4462. entity.Property(e => e.StatusBarStyle)
  4463. .HasColumnType("varchar(10)")
  4464. .HasCharSet("utf8")
  4465. .HasCollation("utf8_general_ci");
  4466. entity.Property(e => e.TextColor)
  4467. .HasColumnType("varchar(6)")
  4468. .HasCharSet("utf8")
  4469. .HasCollation("utf8_general_ci");
  4470. entity.Property(e => e.Title)
  4471. .HasColumnType("varchar(50)")
  4472. .HasCharSet("utf8")
  4473. .HasCollation("utf8_general_ci");
  4474. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4475. entity.Property(e => e.UpdateMan)
  4476. .HasColumnType("varchar(50)")
  4477. .HasCharSet("utf8")
  4478. .HasCollation("utf8_general_ci");
  4479. entity.Property(e => e.Version).HasColumnType("int(11)");
  4480. });
  4481. modelBuilder.Entity<PosMachines>(entity =>
  4482. {
  4483. entity.Property(e => e.Id).HasColumnType("int(11)");
  4484. entity.Property(e => e.ActivationState).HasColumnType("int(11)");
  4485. entity.Property(e => e.ActivationTime).HasColumnType("datetime");
  4486. entity.Property(e => e.ActivityList)
  4487. .HasColumnType("varchar(200)")
  4488. .HasCharSet("utf8")
  4489. .HasCollation("utf8_general_ci");
  4490. entity.Property(e => e.BatchNo)
  4491. .HasColumnType("varchar(32)")
  4492. .HasCharSet("utf8")
  4493. .HasCollation("utf8_general_ci");
  4494. entity.Property(e => e.BindMerchantId).HasColumnType("int(11)");
  4495. entity.Property(e => e.BindingState).HasColumnType("int(11)");
  4496. entity.Property(e => e.BindingTime).HasColumnType("datetime");
  4497. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  4498. entity.Property(e => e.BuyUserId).HasColumnType("int(11)");
  4499. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4500. entity.Property(e => e.CreateMan)
  4501. .HasColumnType("varchar(50)")
  4502. .HasCharSet("utf8")
  4503. .HasCollation("utf8_general_ci");
  4504. entity.Property(e => e.CreditTrade).HasColumnType("decimal(18,2)");
  4505. entity.Property(e => e.DebitCardTrade).HasColumnType("decimal(18,2)");
  4506. entity.Property(e => e.Detail)
  4507. .HasColumnType("longtext")
  4508. .HasCharSet("utf8")
  4509. .HasCollation("utf8_general_ci");
  4510. entity.Property(e => e.DeviceKind)
  4511. .HasColumnType("varchar(32)")
  4512. .HasCharSet("utf8")
  4513. .HasCollation("utf8_general_ci");
  4514. entity.Property(e => e.DeviceName)
  4515. .HasColumnType("varchar(32)")
  4516. .HasCharSet("utf8")
  4517. .HasCollation("utf8_general_ci");
  4518. entity.Property(e => e.DeviceType)
  4519. .HasColumnType("varchar(20)")
  4520. .HasCharSet("utf8")
  4521. .HasCollation("utf8_general_ci");
  4522. entity.Property(e => e.IsPurchase)
  4523. .HasColumnType("bit(1)")
  4524. .HasDefaultValueSql("b'0'");
  4525. entity.Property(e => e.IsVip)
  4526. .HasColumnType("bit(1)")
  4527. .HasDefaultValueSql("b'0'");
  4528. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  4529. entity.Property(e => e.PosSn)
  4530. .HasColumnType("varchar(50)")
  4531. .HasCharSet("utf8")
  4532. .HasCollation("utf8_general_ci");
  4533. entity.Property(e => e.PosSnType).HasColumnType("int(11)");
  4534. entity.Property(e => e.PrizeParams)
  4535. .HasColumnType("varchar(200)")
  4536. .HasCharSet("utf8")
  4537. .HasCollation("utf8_general_ci");
  4538. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4539. entity.Property(e => e.RecycBackCount).HasColumnType("int(11)");
  4540. entity.Property(e => e.RecycEndDate).HasColumnType("datetime");
  4541. entity.Property(e => e.ScanQrTrade).HasColumnType("decimal(18,2)");
  4542. entity.Property(e => e.SeoDescription)
  4543. .HasColumnType("varchar(500)")
  4544. .HasCharSet("utf8")
  4545. .HasCollation("utf8_general_ci");
  4546. entity.Property(e => e.SeoKeyword)
  4547. .HasColumnType("varchar(200)")
  4548. .HasCharSet("utf8")
  4549. .HasCollation("utf8_general_ci");
  4550. entity.Property(e => e.SeoTitle)
  4551. .HasColumnType("varchar(100)")
  4552. .HasCharSet("utf8")
  4553. .HasCollation("utf8_general_ci");
  4554. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4555. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  4556. entity.Property(e => e.Status).HasColumnType("int(11)");
  4557. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  4558. entity.Property(e => e.TransferTime).HasColumnType("datetime");
  4559. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4560. entity.Property(e => e.UpdateMan)
  4561. .HasColumnType("varchar(50)")
  4562. .HasCharSet("utf8")
  4563. .HasCollation("utf8_general_ci");
  4564. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4565. entity.Property(e => e.UserNav)
  4566. .HasColumnType("longtext")
  4567. .HasCharSet("utf8")
  4568. .HasCollation("utf8_general_ci");
  4569. entity.Property(e => e.Version).HasColumnType("int(11)");
  4570. });
  4571. modelBuilder.Entity<PosMachinesTwo>(entity =>
  4572. {
  4573. entity.Property(e => e.Id).HasColumnType("int(11)");
  4574. entity.Property(e => e.ActivationState).HasColumnType("int(11)");
  4575. entity.Property(e => e.ActivationTime).HasColumnType("datetime");
  4576. entity.Property(e => e.ActivityList)
  4577. .HasColumnType("varchar(200)")
  4578. .HasCharSet("utf8")
  4579. .HasCollation("utf8_general_ci");
  4580. entity.Property(e => e.BatchNo)
  4581. .HasColumnType("varchar(32)")
  4582. .HasCharSet("utf8")
  4583. .HasCollation("utf8_general_ci");
  4584. entity.Property(e => e.BindMerchantId).HasColumnType("int(11)");
  4585. entity.Property(e => e.BindingState).HasColumnType("int(11)");
  4586. entity.Property(e => e.BindingTime).HasColumnType("datetime");
  4587. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  4588. entity.Property(e => e.BuyUserId).HasColumnType("int(11)");
  4589. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4590. entity.Property(e => e.CreditTrade).HasColumnType("decimal(18,2)");
  4591. entity.Property(e => e.DebitCardTrade).HasColumnType("decimal(18,2)");
  4592. entity.Property(e => e.Detail)
  4593. .HasColumnType("longtext")
  4594. .HasCharSet("utf8")
  4595. .HasCollation("utf8_general_ci");
  4596. entity.Property(e => e.DeviceKind)
  4597. .HasColumnType("varchar(32)")
  4598. .HasCharSet("utf8")
  4599. .HasCollation("utf8_general_ci");
  4600. entity.Property(e => e.DeviceName)
  4601. .HasColumnType("varchar(32)")
  4602. .HasCharSet("utf8")
  4603. .HasCollation("utf8_general_ci");
  4604. entity.Property(e => e.DeviceType)
  4605. .HasColumnType("varchar(20)")
  4606. .HasCharSet("utf8")
  4607. .HasCollation("utf8_general_ci");
  4608. entity.Property(e => e.IsPurchase)
  4609. .HasColumnType("bit(1)")
  4610. .HasDefaultValueSql("b'0'");
  4611. entity.Property(e => e.IsVip)
  4612. .HasColumnType("bit(1)")
  4613. .HasDefaultValueSql("b'0'");
  4614. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  4615. entity.Property(e => e.PosSn)
  4616. .HasColumnType("varchar(50)")
  4617. .HasCharSet("utf8")
  4618. .HasCollation("utf8_general_ci");
  4619. entity.Property(e => e.PosSnType).HasColumnType("int(11)");
  4620. entity.Property(e => e.PrizeParams)
  4621. .HasColumnType("varchar(200)")
  4622. .HasCharSet("utf8")
  4623. .HasCollation("utf8_general_ci");
  4624. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4625. entity.Property(e => e.RecycBackCount).HasColumnType("int(11)");
  4626. entity.Property(e => e.RecycEndDate).HasColumnType("datetime");
  4627. entity.Property(e => e.ScanQrTrade).HasColumnType("decimal(18,2)");
  4628. entity.Property(e => e.SeoDescription)
  4629. .HasColumnType("varchar(500)")
  4630. .HasCharSet("utf8")
  4631. .HasCollation("utf8_general_ci");
  4632. entity.Property(e => e.SeoKeyword)
  4633. .HasColumnType("varchar(200)")
  4634. .HasCharSet("utf8")
  4635. .HasCollation("utf8_general_ci");
  4636. entity.Property(e => e.SeoTitle)
  4637. .HasColumnType("varchar(100)")
  4638. .HasCharSet("utf8")
  4639. .HasCollation("utf8_general_ci");
  4640. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4641. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  4642. entity.Property(e => e.Status).HasColumnType("int(11)");
  4643. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  4644. entity.Property(e => e.TransferTime).HasColumnType("datetime");
  4645. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4646. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4647. entity.Property(e => e.UserNav)
  4648. .HasColumnType("longtext")
  4649. .HasCharSet("utf8")
  4650. .HasCollation("utf8_general_ci");
  4651. });
  4652. modelBuilder.Entity<PosMerchantInfo>(entity =>
  4653. {
  4654. entity.Property(e => e.Id).HasColumnType("int(11)");
  4655. entity.Property(e => e.ActType).HasColumnType("int(11)");
  4656. entity.Property(e => e.ActTypeDesc)
  4657. .HasColumnType("varchar(64)")
  4658. .HasCharSet("utf8")
  4659. .HasCollation("utf8_general_ci");
  4660. entity.Property(e => e.ActiveStatus).HasColumnType("int(11)");
  4661. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  4662. entity.Property(e => e.City)
  4663. .HasColumnType("varchar(32)")
  4664. .HasCharSet("utf8")
  4665. .HasCollation("utf8_general_ci");
  4666. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4667. entity.Property(e => e.DirectUserId).HasColumnType("int(11)");
  4668. entity.Property(e => e.KqMerNo)
  4669. .HasColumnType("varchar(32)")
  4670. .HasCharSet("utf8")
  4671. .HasCollation("utf8_general_ci");
  4672. entity.Property(e => e.KqRegTime).HasColumnType("datetime");
  4673. entity.Property(e => e.KqSnNo)
  4674. .HasColumnType("varchar(32)")
  4675. .HasCharSet("utf8")
  4676. .HasCollation("utf8_general_ci");
  4677. entity.Property(e => e.MatchTime).HasColumnType("datetime");
  4678. entity.Property(e => e.MerIdcardNo)
  4679. .HasColumnType("varchar(18)")
  4680. .HasCharSet("utf8")
  4681. .HasCollation("utf8_general_ci");
  4682. entity.Property(e => e.MerRealName)
  4683. .HasColumnType("varchar(16)")
  4684. .HasCharSet("utf8")
  4685. .HasCollation("utf8_general_ci");
  4686. entity.Property(e => e.MerStandardDate).HasColumnType("datetime");
  4687. entity.Property(e => e.MerStatus).HasColumnType("int(11)");
  4688. entity.Property(e => e.MerUserId).HasColumnType("int(11)");
  4689. entity.Property(e => e.MerUserType).HasColumnType("int(11)");
  4690. entity.Property(e => e.MerchantMobile)
  4691. .HasColumnType("varchar(11)")
  4692. .HasCharSet("utf8")
  4693. .HasCollation("utf8_general_ci");
  4694. entity.Property(e => e.MerchantName)
  4695. .HasColumnType("varchar(32)")
  4696. .HasCharSet("utf8")
  4697. .HasCollation("utf8_general_ci");
  4698. entity.Property(e => e.MerchantNo)
  4699. .HasColumnType("varchar(16)")
  4700. .HasCharSet("utf8")
  4701. .HasCollation("utf8_general_ci");
  4702. entity.Property(e => e.MgrName)
  4703. .HasColumnType("varchar(32)")
  4704. .HasCharSet("utf8")
  4705. .HasCollation("utf8_general_ci");
  4706. entity.Property(e => e.MgrNo)
  4707. .HasColumnType("varchar(16)")
  4708. .HasCharSet("utf8")
  4709. .HasCollation("utf8_general_ci");
  4710. entity.Property(e => e.Province)
  4711. .HasColumnType("varchar(32)")
  4712. .HasCharSet("utf8")
  4713. .HasCollation("utf8_general_ci");
  4714. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4715. entity.Property(e => e.RebateQual).HasColumnType("int(11)");
  4716. entity.Property(e => e.Remark)
  4717. .HasColumnType("varchar(64)")
  4718. .HasCharSet("utf8")
  4719. .HasCollation("utf8_general_ci");
  4720. entity.Property(e => e.SeoDescription)
  4721. .HasColumnType("varchar(500)")
  4722. .HasCharSet("utf8")
  4723. .HasCollation("utf8_general_ci");
  4724. entity.Property(e => e.SeoKeyword)
  4725. .HasColumnType("varchar(200)")
  4726. .HasCharSet("utf8")
  4727. .HasCollation("utf8_general_ci");
  4728. entity.Property(e => e.SeoTitle)
  4729. .HasColumnType("varchar(100)")
  4730. .HasCharSet("utf8")
  4731. .HasCollation("utf8_general_ci");
  4732. entity.Property(e => e.SnApplyUserId).HasColumnType("int(11)");
  4733. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  4734. entity.Property(e => e.SnType).HasColumnType("int(11)");
  4735. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4736. entity.Property(e => e.Status).HasColumnType("int(11)");
  4737. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  4738. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4739. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4740. });
  4741. modelBuilder.Entity<ProductComment>(entity =>
  4742. {
  4743. entity.Property(e => e.Id).HasColumnType("int(11)");
  4744. entity.Property(e => e.AgreeCount).HasColumnType("int(11)");
  4745. entity.Property(e => e.BackCount).HasColumnType("int(11)");
  4746. entity.Property(e => e.Contents)
  4747. .HasColumnType("varchar(200)")
  4748. .HasCharSet("utf8")
  4749. .HasCollation("utf8_general_ci");
  4750. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4751. entity.Property(e => e.CreateMan)
  4752. .HasColumnType("varchar(50)")
  4753. .HasCharSet("utf8")
  4754. .HasCollation("utf8_general_ci");
  4755. entity.Property(e => e.HasPhoto)
  4756. .HasColumnType("bit(1)")
  4757. .HasDefaultValueSql("b'0'");
  4758. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4759. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  4760. entity.Property(e => e.PhotoList)
  4761. .HasColumnType("mediumtext")
  4762. .HasCharSet("utf8")
  4763. .HasCollation("utf8_general_ci");
  4764. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  4765. entity.Property(e => e.ProductNormId).HasColumnType("int(11)");
  4766. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4767. entity.Property(e => e.SeoDescription)
  4768. .HasColumnType("varchar(500)")
  4769. .HasCharSet("utf8")
  4770. .HasCollation("utf8_general_ci");
  4771. entity.Property(e => e.SeoKeyword)
  4772. .HasColumnType("varchar(200)")
  4773. .HasCharSet("utf8")
  4774. .HasCollation("utf8_general_ci");
  4775. entity.Property(e => e.SeoTitle)
  4776. .HasColumnType("varchar(100)")
  4777. .HasCharSet("utf8")
  4778. .HasCollation("utf8_general_ci");
  4779. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4780. entity.Property(e => e.StarNum).HasColumnType("int(11)");
  4781. entity.Property(e => e.Status).HasColumnType("int(11)");
  4782. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4783. entity.Property(e => e.UpdateMan)
  4784. .HasColumnType("varchar(50)")
  4785. .HasCharSet("utf8")
  4786. .HasCollation("utf8_general_ci");
  4787. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4788. entity.Property(e => e.Version).HasColumnType("int(11)");
  4789. });
  4790. modelBuilder.Entity<ProductCommentAgree>(entity =>
  4791. {
  4792. entity.Property(e => e.Id).HasColumnType("int(11)");
  4793. entity.Property(e => e.ProductCommentId).HasColumnType("int(11)");
  4794. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4795. });
  4796. modelBuilder.Entity<ProductFareAreas>(entity =>
  4797. {
  4798. entity.Property(e => e.Id).HasColumnType("int(11)");
  4799. entity.Property(e => e.Areas)
  4800. .HasColumnType("longtext")
  4801. .HasCharSet("utf8")
  4802. .HasCollation("utf8_general_ci");
  4803. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4804. entity.Property(e => e.CreateMan)
  4805. .HasColumnType("varchar(50)")
  4806. .HasCharSet("utf8")
  4807. .HasCollation("utf8_general_ci");
  4808. entity.Property(e => e.FirstAmount).HasColumnType("decimal(18,2)");
  4809. entity.Property(e => e.FirstFee).HasColumnType("decimal(18,2)");
  4810. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4811. entity.Property(e => e.MoreAmount).HasColumnType("decimal(18,2)");
  4812. entity.Property(e => e.MoreFee).HasColumnType("decimal(18,2)");
  4813. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4814. entity.Property(e => e.SeoDescription)
  4815. .HasColumnType("varchar(500)")
  4816. .HasCharSet("utf8")
  4817. .HasCollation("utf8_general_ci");
  4818. entity.Property(e => e.SeoKeyword)
  4819. .HasColumnType("varchar(200)")
  4820. .HasCharSet("utf8")
  4821. .HasCollation("utf8_general_ci");
  4822. entity.Property(e => e.SeoTitle)
  4823. .HasColumnType("varchar(100)")
  4824. .HasCharSet("utf8")
  4825. .HasCollation("utf8_general_ci");
  4826. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4827. entity.Property(e => e.Status).HasColumnType("int(11)");
  4828. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  4829. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4830. entity.Property(e => e.UpdateMan)
  4831. .HasColumnType("varchar(50)")
  4832. .HasCharSet("utf8")
  4833. .HasCollation("utf8_general_ci");
  4834. entity.Property(e => e.Version).HasColumnType("int(11)");
  4835. });
  4836. modelBuilder.Entity<ProductFareTemp>(entity =>
  4837. {
  4838. entity.Property(e => e.Id).HasColumnType("int(11)");
  4839. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4840. entity.Property(e => e.CreateMan)
  4841. .HasColumnType("varchar(50)")
  4842. .HasCharSet("utf8")
  4843. .HasCollation("utf8_general_ci");
  4844. entity.Property(e => e.FirstAmount).HasColumnType("decimal(18,2)");
  4845. entity.Property(e => e.FirstFee).HasColumnType("decimal(18,2)");
  4846. entity.Property(e => e.IsFree)
  4847. .HasColumnType("bit(1)")
  4848. .HasDefaultValueSql("b'0'");
  4849. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4850. entity.Property(e => e.MeterMode).HasColumnType("int(11)");
  4851. entity.Property(e => e.MoreAmount).HasColumnType("decimal(18,2)");
  4852. entity.Property(e => e.MoreFee).HasColumnType("decimal(18,2)");
  4853. entity.Property(e => e.Name)
  4854. .HasColumnType("varchar(50)")
  4855. .HasCharSet("utf8")
  4856. .HasCollation("utf8_general_ci");
  4857. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4858. entity.Property(e => e.SendAddress)
  4859. .HasColumnType("varchar(50)")
  4860. .HasCharSet("utf8")
  4861. .HasCollation("utf8_general_ci");
  4862. entity.Property(e => e.SendAreas)
  4863. .HasColumnType("varchar(30)")
  4864. .HasCharSet("utf8")
  4865. .HasCollation("utf8_general_ci");
  4866. entity.Property(e => e.SendDate).HasColumnType("int(11)");
  4867. entity.Property(e => e.SeoDescription)
  4868. .HasColumnType("varchar(500)")
  4869. .HasCharSet("utf8")
  4870. .HasCollation("utf8_general_ci");
  4871. entity.Property(e => e.SeoKeyword)
  4872. .HasColumnType("varchar(200)")
  4873. .HasCharSet("utf8")
  4874. .HasCollation("utf8_general_ci");
  4875. entity.Property(e => e.SeoTitle)
  4876. .HasColumnType("varchar(100)")
  4877. .HasCharSet("utf8")
  4878. .HasCollation("utf8_general_ci");
  4879. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4880. entity.Property(e => e.Status).HasColumnType("int(11)");
  4881. entity.Property(e => e.TransportMode).HasColumnType("int(11)");
  4882. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4883. entity.Property(e => e.UpdateMan)
  4884. .HasColumnType("varchar(50)")
  4885. .HasCharSet("utf8")
  4886. .HasCollation("utf8_general_ci");
  4887. entity.Property(e => e.Version).HasColumnType("int(11)");
  4888. });
  4889. modelBuilder.Entity<ProductKeys>(entity =>
  4890. {
  4891. entity.HasKey(e => e.Name)
  4892. .HasName("PRIMARY");
  4893. entity.Property(e => e.Name)
  4894. .HasColumnType("varchar(10)")
  4895. .HasCharSet("utf8")
  4896. .HasCollation("utf8_general_ci");
  4897. entity.Property(e => e.ColIds)
  4898. .HasColumnType("longtext")
  4899. .HasCharSet("utf8")
  4900. .HasCollation("utf8_general_ci");
  4901. entity.Property(e => e.ProductIds)
  4902. .HasColumnType("longtext")
  4903. .HasCharSet("utf8")
  4904. .HasCollation("utf8_general_ci");
  4905. });
  4906. modelBuilder.Entity<ProductNorm>(entity =>
  4907. {
  4908. entity.Property(e => e.Id).HasColumnType("int(11)");
  4909. entity.Property(e => e.BuyCount).HasColumnType("int(11)");
  4910. entity.Property(e => e.Code)
  4911. .HasColumnType("varchar(50)")
  4912. .HasCharSet("utf8")
  4913. .HasCollation("utf8_general_ci");
  4914. entity.Property(e => e.ColName)
  4915. .HasColumnType("varchar(50)")
  4916. .HasCharSet("utf8")
  4917. .HasCollation("utf8_general_ci");
  4918. entity.Property(e => e.CostPrice).HasColumnType("decimal(18,2)");
  4919. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4920. entity.Property(e => e.CreateMan)
  4921. .HasColumnType("varchar(50)")
  4922. .HasCharSet("utf8")
  4923. .HasCollation("utf8_general_ci");
  4924. entity.Property(e => e.IdList)
  4925. .HasColumnType("varchar(50)")
  4926. .HasCharSet("utf8")
  4927. .HasCollation("utf8_general_ci");
  4928. entity.Property(e => e.Integral).HasColumnType("decimal(18,2)");
  4929. entity.Property(e => e.LimitCount).HasColumnType("int(11)");
  4930. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4931. entity.Property(e => e.Price).HasColumnType("decimal(18,2)");
  4932. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  4933. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4934. entity.Property(e => e.SeoDescription)
  4935. .HasColumnType("varchar(500)")
  4936. .HasCharSet("utf8")
  4937. .HasCollation("utf8_general_ci");
  4938. entity.Property(e => e.SeoKeyword)
  4939. .HasColumnType("varchar(200)")
  4940. .HasCharSet("utf8")
  4941. .HasCollation("utf8_general_ci");
  4942. entity.Property(e => e.SeoTitle)
  4943. .HasColumnType("varchar(100)")
  4944. .HasCharSet("utf8")
  4945. .HasCollation("utf8_general_ci");
  4946. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4947. entity.Property(e => e.Status).HasColumnType("int(11)");
  4948. entity.Property(e => e.Stock).HasColumnType("int(11)");
  4949. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4950. entity.Property(e => e.UpdateMan)
  4951. .HasColumnType("varchar(50)")
  4952. .HasCharSet("utf8")
  4953. .HasCollation("utf8_general_ci");
  4954. entity.Property(e => e.UserIntegral).HasColumnType("decimal(18,2)");
  4955. entity.Property(e => e.UserPrice).HasColumnType("decimal(18,2)");
  4956. entity.Property(e => e.Version).HasColumnType("int(11)");
  4957. });
  4958. modelBuilder.Entity<ProductNormItem>(entity =>
  4959. {
  4960. entity.Property(e => e.Id).HasColumnType("int(11)");
  4961. entity.Property(e => e.ColName)
  4962. .HasColumnType("varchar(50)")
  4963. .HasCharSet("utf8")
  4964. .HasCollation("utf8_general_ci");
  4965. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4966. entity.Property(e => e.CreateMan)
  4967. .HasColumnType("varchar(50)")
  4968. .HasCharSet("utf8")
  4969. .HasCollation("utf8_general_ci");
  4970. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4971. entity.Property(e => e.ParentId).HasColumnType("int(11)");
  4972. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  4973. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4974. entity.Property(e => e.SeoDescription)
  4975. .HasColumnType("varchar(500)")
  4976. .HasCharSet("utf8")
  4977. .HasCollation("utf8_general_ci");
  4978. entity.Property(e => e.SeoKeyword)
  4979. .HasColumnType("varchar(200)")
  4980. .HasCharSet("utf8")
  4981. .HasCollation("utf8_general_ci");
  4982. entity.Property(e => e.SeoTitle)
  4983. .HasColumnType("varchar(100)")
  4984. .HasCharSet("utf8")
  4985. .HasCollation("utf8_general_ci");
  4986. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4987. entity.Property(e => e.Status).HasColumnType("int(11)");
  4988. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4989. entity.Property(e => e.UpdateMan)
  4990. .HasColumnType("varchar(50)")
  4991. .HasCharSet("utf8")
  4992. .HasCollation("utf8_general_ci");
  4993. entity.Property(e => e.Version).HasColumnType("int(11)");
  4994. });
  4995. modelBuilder.Entity<ProductNormTemp>(entity =>
  4996. {
  4997. entity.Property(e => e.Id).HasColumnType("int(11)");
  4998. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4999. entity.Property(e => e.CreateMan)
  5000. .HasColumnType("varchar(50)")
  5001. .HasCharSet("utf8")
  5002. .HasCollation("utf8_general_ci");
  5003. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5004. entity.Property(e => e.Name)
  5005. .HasColumnType("varchar(50)")
  5006. .HasCharSet("utf8")
  5007. .HasCollation("utf8_general_ci");
  5008. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5009. entity.Property(e => e.SeoDescription)
  5010. .HasColumnType("varchar(500)")
  5011. .HasCharSet("utf8")
  5012. .HasCollation("utf8_general_ci");
  5013. entity.Property(e => e.SeoKeyword)
  5014. .HasColumnType("varchar(200)")
  5015. .HasCharSet("utf8")
  5016. .HasCollation("utf8_general_ci");
  5017. entity.Property(e => e.SeoTitle)
  5018. .HasColumnType("varchar(100)")
  5019. .HasCharSet("utf8")
  5020. .HasCollation("utf8_general_ci");
  5021. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5022. entity.Property(e => e.Status).HasColumnType("int(11)");
  5023. entity.Property(e => e.TempJsonData)
  5024. .HasColumnType("longtext")
  5025. .HasCharSet("utf8")
  5026. .HasCollation("utf8_general_ci");
  5027. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5028. entity.Property(e => e.UpdateMan)
  5029. .HasColumnType("varchar(50)")
  5030. .HasCharSet("utf8")
  5031. .HasCollation("utf8_general_ci");
  5032. entity.Property(e => e.Version).HasColumnType("int(11)");
  5033. });
  5034. modelBuilder.Entity<Products>(entity =>
  5035. {
  5036. entity.Property(e => e.Id).HasColumnType("int(11)");
  5037. entity.Property(e => e.BuyCount).HasColumnType("int(11)");
  5038. entity.Property(e => e.ColId)
  5039. .HasColumnType("varchar(30)")
  5040. .HasCharSet("utf8")
  5041. .HasCollation("utf8_general_ci");
  5042. entity.Property(e => e.CommentCount).HasColumnType("int(11)");
  5043. entity.Property(e => e.Contents)
  5044. .HasColumnType("longtext")
  5045. .HasCharSet("utf8")
  5046. .HasCollation("utf8_general_ci");
  5047. entity.Property(e => e.CostPrice).HasColumnType("decimal(18,2)");
  5048. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5049. entity.Property(e => e.CreateMan)
  5050. .HasColumnType("varchar(50)")
  5051. .HasCharSet("utf8")
  5052. .HasCollation("utf8_general_ci");
  5053. entity.Property(e => e.DetailPicPath)
  5054. .HasColumnType("varchar(500)")
  5055. .HasCharSet("utf8")
  5056. .HasCollation("utf8_general_ci");
  5057. entity.Property(e => e.Details)
  5058. .HasColumnType("longtext")
  5059. .HasCharSet("utf8")
  5060. .HasCollation("utf8_general_ci");
  5061. entity.Property(e => e.EndDate).HasColumnType("datetime");
  5062. entity.Property(e => e.FareTemplateId).HasColumnType("int(11)");
  5063. entity.Property(e => e.GoodPercent).HasColumnType("decimal(18,2)");
  5064. entity.Property(e => e.Integral).HasColumnType("decimal(18,2)");
  5065. entity.Property(e => e.IsLimit)
  5066. .HasColumnType("bit(1)")
  5067. .HasDefaultValueSql("b'0'");
  5068. entity.Property(e => e.IsRecommend)
  5069. .HasColumnType("bit(1)")
  5070. .HasDefaultValueSql("b'0'");
  5071. entity.Property(e => e.IsRecommend2)
  5072. .HasColumnType("bit(1)")
  5073. .HasDefaultValueSql("b'0'");
  5074. entity.Property(e => e.IsRecommend3)
  5075. .HasColumnType("bit(1)")
  5076. .HasDefaultValueSql("b'0'");
  5077. entity.Property(e => e.KeyWord)
  5078. .HasColumnType("varchar(500)")
  5079. .HasCharSet("utf8")
  5080. .HasCollation("utf8_general_ci");
  5081. entity.Property(e => e.LimitCount).HasColumnType("int(11)");
  5082. entity.Property(e => e.LinkUrl)
  5083. .HasColumnType("varchar(500)")
  5084. .HasCharSet("utf8")
  5085. .HasCollation("utf8_general_ci");
  5086. entity.Property(e => e.ListPicPath)
  5087. .HasColumnType("varchar(200)")
  5088. .HasCharSet("utf8")
  5089. .HasCollation("utf8_general_ci");
  5090. entity.Property(e => e.MemberPrice).HasColumnType("decimal(18,2)");
  5091. entity.Property(e => e.MerchantClassId).HasColumnType("int(11)");
  5092. entity.Property(e => e.MerchantColId)
  5093. .HasColumnType("varchar(30)")
  5094. .HasCharSet("utf8")
  5095. .HasCollation("utf8_general_ci");
  5096. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5097. entity.Property(e => e.MonthSale).HasColumnType("int(11)");
  5098. entity.Property(e => e.NormIds)
  5099. .HasColumnType("varchar(100)")
  5100. .HasCharSet("utf8")
  5101. .HasCollation("utf8_general_ci");
  5102. entity.Property(e => e.NormJson)
  5103. .HasColumnType("longtext")
  5104. .HasCharSet("utf8")
  5105. .HasCollation("utf8_general_ci");
  5106. entity.Property(e => e.Price).HasColumnType("decimal(18,2)");
  5107. entity.Property(e => e.ProductCode)
  5108. .HasColumnType("varchar(30)")
  5109. .HasCharSet("utf8")
  5110. .HasCollation("utf8_general_ci");
  5111. entity.Property(e => e.ProductName)
  5112. .HasColumnType("varchar(100)")
  5113. .HasCharSet("utf8")
  5114. .HasCollation("utf8_general_ci");
  5115. entity.Property(e => e.PublishDate).HasColumnType("datetime");
  5116. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5117. entity.Property(e => e.SeoDescription)
  5118. .HasColumnType("varchar(500)")
  5119. .HasCharSet("utf8")
  5120. .HasCollation("utf8_general_ci");
  5121. entity.Property(e => e.SeoKeyword)
  5122. .HasColumnType("varchar(200)")
  5123. .HasCharSet("utf8")
  5124. .HasCollation("utf8_general_ci");
  5125. entity.Property(e => e.SeoTitle)
  5126. .HasColumnType("varchar(100)")
  5127. .HasCharSet("utf8")
  5128. .HasCollation("utf8_general_ci");
  5129. entity.Property(e => e.ShareDetail)
  5130. .HasColumnType("varchar(200)")
  5131. .HasCharSet("utf8")
  5132. .HasCollation("utf8_general_ci");
  5133. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5134. entity.Property(e => e.SourcePrice).HasColumnType("decimal(18,2)");
  5135. entity.Property(e => e.StartDate).HasColumnType("datetime");
  5136. entity.Property(e => e.Status).HasColumnType("int(11)");
  5137. entity.Property(e => e.Stock).HasColumnType("int(11)");
  5138. entity.Property(e => e.Title)
  5139. .HasColumnType("varchar(50)")
  5140. .HasCharSet("utf8")
  5141. .HasCollation("utf8_general_ci");
  5142. entity.Property(e => e.Title2)
  5143. .HasColumnType("varchar(50)")
  5144. .HasCharSet("utf8")
  5145. .HasCollation("utf8_general_ci");
  5146. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5147. entity.Property(e => e.UpdateMan)
  5148. .HasColumnType("varchar(50)")
  5149. .HasCharSet("utf8")
  5150. .HasCollation("utf8_general_ci");
  5151. entity.Property(e => e.UserIntegral).HasColumnType("decimal(18,2)");
  5152. entity.Property(e => e.Version).HasColumnType("int(11)");
  5153. });
  5154. modelBuilder.Entity<ProfitObjectActivations>(entity =>
  5155. {
  5156. entity.Property(e => e.Id).HasColumnType("int(11)");
  5157. entity.Property(e => e.Code)
  5158. .HasColumnType("varchar(32)")
  5159. .HasCharSet("utf8")
  5160. .HasCollation("utf8_general_ci");
  5161. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5162. entity.Property(e => e.CreateMan)
  5163. .HasColumnType("varchar(50)")
  5164. .HasCharSet("utf8")
  5165. .HasCollation("utf8_general_ci");
  5166. entity.Property(e => e.EndDate).HasColumnType("datetime");
  5167. entity.Property(e => e.ExpiredNumber).HasColumnType("decimal(18,6)");
  5168. entity.Property(e => e.LimitCustomerDate).HasColumnType("datetime");
  5169. entity.Property(e => e.LimitDateKind).HasColumnType("int(11)");
  5170. entity.Property(e => e.LimitDateVal).HasColumnType("int(11)");
  5171. entity.Property(e => e.MachineCount).HasColumnType("int(11)");
  5172. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5173. entity.Property(e => e.ProfitNumber).HasColumnType("decimal(18,6)");
  5174. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5175. entity.Property(e => e.SeoDescription)
  5176. .HasColumnType("varchar(500)")
  5177. .HasCharSet("utf8")
  5178. .HasCollation("utf8_general_ci");
  5179. entity.Property(e => e.SeoKeyword)
  5180. .HasColumnType("varchar(200)")
  5181. .HasCharSet("utf8")
  5182. .HasCollation("utf8_general_ci");
  5183. entity.Property(e => e.SeoTitle)
  5184. .HasColumnType("varchar(100)")
  5185. .HasCharSet("utf8")
  5186. .HasCollation("utf8_general_ci");
  5187. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5188. entity.Property(e => e.StartDate).HasColumnType("datetime");
  5189. entity.Property(e => e.Status).HasColumnType("int(11)");
  5190. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5191. entity.Property(e => e.UpdateMan)
  5192. .HasColumnType("varchar(50)")
  5193. .HasCharSet("utf8")
  5194. .HasCollation("utf8_general_ci");
  5195. entity.Property(e => e.Version).HasColumnType("int(11)");
  5196. });
  5197. modelBuilder.Entity<ProfitObjectContinueFloors>(entity =>
  5198. {
  5199. entity.Property(e => e.Id).HasColumnType("int(11)");
  5200. entity.Property(e => e.AddProfitVal).HasColumnType("decimal(18,6)");
  5201. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5202. entity.Property(e => e.CreateMan)
  5203. .HasColumnType("varchar(50)")
  5204. .HasCharSet("utf8")
  5205. .HasCollation("utf8_general_ci");
  5206. entity.Property(e => e.FloorNumber).HasColumnType("int(11)");
  5207. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5208. entity.Property(e => e.Percents).HasColumnType("decimal(18,6)");
  5209. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5210. entity.Property(e => e.SeoDescription)
  5211. .HasColumnType("varchar(500)")
  5212. .HasCharSet("utf8")
  5213. .HasCollation("utf8_general_ci");
  5214. entity.Property(e => e.SeoKeyword)
  5215. .HasColumnType("varchar(200)")
  5216. .HasCharSet("utf8")
  5217. .HasCollation("utf8_general_ci");
  5218. entity.Property(e => e.SeoTitle)
  5219. .HasColumnType("varchar(100)")
  5220. .HasCharSet("utf8")
  5221. .HasCollation("utf8_general_ci");
  5222. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5223. entity.Property(e => e.Status).HasColumnType("int(11)");
  5224. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5225. entity.Property(e => e.UpdateMan)
  5226. .HasColumnType("varchar(50)")
  5227. .HasCharSet("utf8")
  5228. .HasCollation("utf8_general_ci");
  5229. entity.Property(e => e.Version).HasColumnType("int(11)");
  5230. });
  5231. modelBuilder.Entity<ProfitObjectFloors>(entity =>
  5232. {
  5233. entity.Property(e => e.Id).HasColumnType("int(11)");
  5234. entity.Property(e => e.AddProfitVal).HasColumnType("decimal(18,6)");
  5235. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5236. entity.Property(e => e.CreateMan)
  5237. .HasColumnType("varchar(50)")
  5238. .HasCharSet("utf8")
  5239. .HasCollation("utf8_general_ci");
  5240. entity.Property(e => e.FloorDiff)
  5241. .HasColumnType("bit(1)")
  5242. .HasDefaultValueSql("b'0'");
  5243. entity.Property(e => e.FloorNumber).HasColumnType("int(11)");
  5244. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5245. entity.Property(e => e.Percents).HasColumnType("decimal(18,6)");
  5246. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5247. entity.Property(e => e.SeoDescription)
  5248. .HasColumnType("varchar(500)")
  5249. .HasCharSet("utf8")
  5250. .HasCollation("utf8_general_ci");
  5251. entity.Property(e => e.SeoKeyword)
  5252. .HasColumnType("varchar(200)")
  5253. .HasCharSet("utf8")
  5254. .HasCollation("utf8_general_ci");
  5255. entity.Property(e => e.SeoTitle)
  5256. .HasColumnType("varchar(100)")
  5257. .HasCharSet("utf8")
  5258. .HasCollation("utf8_general_ci");
  5259. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5260. entity.Property(e => e.Status).HasColumnType("int(11)");
  5261. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5262. entity.Property(e => e.UpdateMan)
  5263. .HasColumnType("varchar(50)")
  5264. .HasCharSet("utf8")
  5265. .HasCollation("utf8_general_ci");
  5266. entity.Property(e => e.Version).HasColumnType("int(11)");
  5267. });
  5268. modelBuilder.Entity<ProfitObjectLevelKinds>(entity =>
  5269. {
  5270. entity.Property(e => e.Id).HasColumnType("int(11)");
  5271. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5272. entity.Property(e => e.CreateMan)
  5273. .HasColumnType("varchar(50)")
  5274. .HasCharSet("utf8")
  5275. .HasCollation("utf8_general_ci");
  5276. entity.Property(e => e.Name)
  5277. .HasColumnType("varchar(50)")
  5278. .HasCharSet("utf8")
  5279. .HasCollation("utf8_general_ci");
  5280. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5281. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5282. entity.Property(e => e.SeoDescription)
  5283. .HasColumnType("varchar(500)")
  5284. .HasCharSet("utf8")
  5285. .HasCollation("utf8_general_ci");
  5286. entity.Property(e => e.SeoKeyword)
  5287. .HasColumnType("varchar(200)")
  5288. .HasCharSet("utf8")
  5289. .HasCollation("utf8_general_ci");
  5290. entity.Property(e => e.SeoTitle)
  5291. .HasColumnType("varchar(100)")
  5292. .HasCharSet("utf8")
  5293. .HasCollation("utf8_general_ci");
  5294. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5295. entity.Property(e => e.Status).HasColumnType("int(11)");
  5296. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5297. entity.Property(e => e.UpdateMan)
  5298. .HasColumnType("varchar(50)")
  5299. .HasCharSet("utf8")
  5300. .HasCollation("utf8_general_ci");
  5301. entity.Property(e => e.Version).HasColumnType("int(11)");
  5302. });
  5303. modelBuilder.Entity<ProfitObjectLevels>(entity =>
  5304. {
  5305. entity.Property(e => e.Id).HasColumnType("int(11)");
  5306. entity.Property(e => e.AddProfitVal).HasColumnType("decimal(18,6)");
  5307. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5308. entity.Property(e => e.CreateMan)
  5309. .HasColumnType("varchar(50)")
  5310. .HasCharSet("utf8")
  5311. .HasCollation("utf8_general_ci");
  5312. entity.Property(e => e.DebitAddProfitVal).HasColumnType("decimal(18,2)");
  5313. entity.Property(e => e.DebitPercents).HasColumnType("decimal(18,2)");
  5314. entity.Property(e => e.KindId).HasColumnType("int(11)");
  5315. entity.Property(e => e.LevelDiff)
  5316. .HasColumnType("bit(1)")
  5317. .HasDefaultValueSql("b'0'");
  5318. entity.Property(e => e.LevelNumber).HasColumnType("int(11)");
  5319. entity.Property(e => e.Name)
  5320. .HasColumnType("varchar(50)")
  5321. .HasCharSet("utf8")
  5322. .HasCollation("utf8_general_ci");
  5323. entity.Property(e => e.Percents).HasColumnType("decimal(18,6)");
  5324. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5325. entity.Property(e => e.SeoDescription)
  5326. .HasColumnType("varchar(500)")
  5327. .HasCharSet("utf8")
  5328. .HasCollation("utf8_general_ci");
  5329. entity.Property(e => e.SeoKeyword)
  5330. .HasColumnType("varchar(200)")
  5331. .HasCharSet("utf8")
  5332. .HasCollation("utf8_general_ci");
  5333. entity.Property(e => e.SeoTitle)
  5334. .HasColumnType("varchar(100)")
  5335. .HasCharSet("utf8")
  5336. .HasCollation("utf8_general_ci");
  5337. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5338. entity.Property(e => e.Status).HasColumnType("int(11)");
  5339. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5340. entity.Property(e => e.UpdateMan)
  5341. .HasColumnType("varchar(50)")
  5342. .HasCharSet("utf8")
  5343. .HasCollation("utf8_general_ci");
  5344. entity.Property(e => e.Version).HasColumnType("int(11)");
  5345. });
  5346. modelBuilder.Entity<ProfitObjects>(entity =>
  5347. {
  5348. entity.Property(e => e.Id).HasColumnType("int(11)");
  5349. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5350. entity.Property(e => e.CreateMan)
  5351. .HasColumnType("varchar(50)")
  5352. .HasCharSet("utf8")
  5353. .HasCollation("utf8_general_ci");
  5354. entity.Property(e => e.EndDate).HasColumnType("datetime");
  5355. entity.Property(e => e.MaxFloor).HasColumnType("int(11)");
  5356. entity.Property(e => e.MaxLevel).HasColumnType("int(11)");
  5357. entity.Property(e => e.MaxLevelContinue)
  5358. .HasColumnType("bit(1)")
  5359. .HasDefaultValueSql("b'0'");
  5360. entity.Property(e => e.MinProfitVal).HasColumnType("decimal(18,5)");
  5361. entity.Property(e => e.Name)
  5362. .HasColumnType("varchar(50)")
  5363. .HasCharSet("utf8")
  5364. .HasCollation("utf8_general_ci");
  5365. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5366. entity.Property(e => e.SeoDescription)
  5367. .HasColumnType("varchar(500)")
  5368. .HasCharSet("utf8")
  5369. .HasCollation("utf8_general_ci");
  5370. entity.Property(e => e.SeoKeyword)
  5371. .HasColumnType("varchar(200)")
  5372. .HasCharSet("utf8")
  5373. .HasCollation("utf8_general_ci");
  5374. entity.Property(e => e.SeoTitle)
  5375. .HasColumnType("varchar(100)")
  5376. .HasCharSet("utf8")
  5377. .HasCollation("utf8_general_ci");
  5378. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5379. entity.Property(e => e.StartDate).HasColumnType("datetime");
  5380. entity.Property(e => e.Status).HasColumnType("int(11)");
  5381. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5382. entity.Property(e => e.UpdateMan)
  5383. .HasColumnType("varchar(50)")
  5384. .HasCharSet("utf8")
  5385. .HasCollation("utf8_general_ci");
  5386. entity.Property(e => e.Version).HasColumnType("int(11)");
  5387. });
  5388. modelBuilder.Entity<ProfitObjectsActiveCheck>(entity =>
  5389. {
  5390. entity.HasKey(e => e.CheckData)
  5391. .HasName("PRIMARY");
  5392. entity.Property(e => e.CheckData)
  5393. .HasColumnType("varchar(100)")
  5394. .HasCharSet("utf8")
  5395. .HasCollation("utf8_general_ci");
  5396. });
  5397. modelBuilder.Entity<ProfitObjectsActiveParams>(entity =>
  5398. {
  5399. entity.Property(e => e.Id).HasColumnType("int(11)");
  5400. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5401. entity.Property(e => e.CreateMan)
  5402. .HasColumnType("varchar(50)")
  5403. .HasCharSet("utf8")
  5404. .HasCollation("utf8_general_ci");
  5405. entity.Property(e => e.Name)
  5406. .HasColumnType("varchar(50)")
  5407. .HasCharSet("utf8")
  5408. .HasCollation("utf8_general_ci");
  5409. entity.Property(e => e.ProfitObjectsActiveId).HasColumnType("int(11)");
  5410. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5411. entity.Property(e => e.Remark)
  5412. .HasColumnType("varchar(200)")
  5413. .HasCharSet("utf8")
  5414. .HasCollation("utf8_general_ci");
  5415. entity.Property(e => e.SeoDescription)
  5416. .HasColumnType("varchar(500)")
  5417. .HasCharSet("utf8")
  5418. .HasCollation("utf8_general_ci");
  5419. entity.Property(e => e.SeoKeyword)
  5420. .HasColumnType("varchar(200)")
  5421. .HasCharSet("utf8")
  5422. .HasCollation("utf8_general_ci");
  5423. entity.Property(e => e.SeoTitle)
  5424. .HasColumnType("varchar(100)")
  5425. .HasCharSet("utf8")
  5426. .HasCollation("utf8_general_ci");
  5427. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5428. entity.Property(e => e.Status).HasColumnType("int(11)");
  5429. entity.Property(e => e.TextValue)
  5430. .HasColumnType("varchar(20)")
  5431. .HasCharSet("utf8")
  5432. .HasCollation("utf8_general_ci");
  5433. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5434. entity.Property(e => e.UpdateMan)
  5435. .HasColumnType("varchar(50)")
  5436. .HasCharSet("utf8")
  5437. .HasCollation("utf8_general_ci");
  5438. entity.Property(e => e.Version).HasColumnType("int(11)");
  5439. });
  5440. modelBuilder.Entity<ProfitObjectsActives>(entity =>
  5441. {
  5442. entity.Property(e => e.Id).HasColumnType("int(11)");
  5443. entity.Property(e => e.CardType).HasColumnType("int(11)");
  5444. entity.Property(e => e.Code)
  5445. .HasColumnType("varchar(50)")
  5446. .HasCharSet("utf8")
  5447. .HasCollation("utf8_general_ci");
  5448. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5449. entity.Property(e => e.CreateMan)
  5450. .HasColumnType("varchar(50)")
  5451. .HasCharSet("utf8")
  5452. .HasCollation("utf8_general_ci");
  5453. entity.Property(e => e.EndDate).HasColumnType("datetime");
  5454. entity.Property(e => e.FinishNumber).HasColumnType("decimal(18,6)");
  5455. entity.Property(e => e.LimitCustomerDate).HasColumnType("datetime");
  5456. entity.Property(e => e.LimitDateKind).HasColumnType("int(11)");
  5457. entity.Property(e => e.LimitDateVal).HasColumnType("int(11)");
  5458. entity.Property(e => e.MachineCount).HasColumnType("int(11)");
  5459. entity.Property(e => e.Name)
  5460. .HasColumnType("varchar(50)")
  5461. .HasCharSet("utf8")
  5462. .HasCollation("utf8_general_ci");
  5463. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5464. entity.Property(e => e.ProfitNumber).HasColumnType("decimal(18,6)");
  5465. entity.Property(e => e.ProfitNumber2).HasColumnType("decimal(18,2)");
  5466. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5467. entity.Property(e => e.SeoDescription)
  5468. .HasColumnType("varchar(500)")
  5469. .HasCharSet("utf8")
  5470. .HasCollation("utf8_general_ci");
  5471. entity.Property(e => e.SeoKeyword)
  5472. .HasColumnType("varchar(200)")
  5473. .HasCharSet("utf8")
  5474. .HasCollation("utf8_general_ci");
  5475. entity.Property(e => e.SeoTitle)
  5476. .HasColumnType("varchar(100)")
  5477. .HasCharSet("utf8")
  5478. .HasCollation("utf8_general_ci");
  5479. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5480. entity.Property(e => e.StartDate).HasColumnType("datetime");
  5481. entity.Property(e => e.Status).HasColumnType("int(11)");
  5482. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5483. entity.Property(e => e.UpdateMan)
  5484. .HasColumnType("varchar(50)")
  5485. .HasCharSet("utf8")
  5486. .HasCollation("utf8_general_ci");
  5487. entity.Property(e => e.Version).HasColumnType("int(11)");
  5488. });
  5489. modelBuilder.Entity<ProfitObjectsActivesForId>(entity =>
  5490. {
  5491. entity.HasKey(e => e.Name)
  5492. .HasName("PRIMARY");
  5493. entity.Property(e => e.Name)
  5494. .HasColumnType("varchar(50)")
  5495. .HasCharSet("utf8")
  5496. .HasCollation("utf8_general_ci");
  5497. entity.Property(e => e.ActivityId).HasColumnType("int(11)");
  5498. });
  5499. modelBuilder.Entity<ProfitObjectsRule>(entity =>
  5500. {
  5501. entity.Property(e => e.Id).HasColumnType("int(11)");
  5502. entity.Property(e => e.Code)
  5503. .HasColumnType("varchar(50)")
  5504. .HasCharSet("utf8")
  5505. .HasCollation("utf8_general_ci");
  5506. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5507. entity.Property(e => e.CreateMan)
  5508. .HasColumnType("varchar(50)")
  5509. .HasCharSet("utf8")
  5510. .HasCollation("utf8_general_ci");
  5511. entity.Property(e => e.EndDate).HasColumnType("datetime");
  5512. entity.Property(e => e.Name)
  5513. .HasColumnType("varchar(50)")
  5514. .HasCharSet("utf8")
  5515. .HasCollation("utf8_general_ci");
  5516. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5517. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5518. entity.Property(e => e.SeoDescription)
  5519. .HasColumnType("varchar(500)")
  5520. .HasCharSet("utf8")
  5521. .HasCollation("utf8_general_ci");
  5522. entity.Property(e => e.SeoKeyword)
  5523. .HasColumnType("varchar(200)")
  5524. .HasCharSet("utf8")
  5525. .HasCollation("utf8_general_ci");
  5526. entity.Property(e => e.SeoTitle)
  5527. .HasColumnType("varchar(100)")
  5528. .HasCharSet("utf8")
  5529. .HasCollation("utf8_general_ci");
  5530. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5531. entity.Property(e => e.StartDate).HasColumnType("datetime");
  5532. entity.Property(e => e.Status).HasColumnType("int(11)");
  5533. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5534. entity.Property(e => e.UpdateMan)
  5535. .HasColumnType("varchar(50)")
  5536. .HasCharSet("utf8")
  5537. .HasCollation("utf8_general_ci");
  5538. entity.Property(e => e.Version).HasColumnType("int(11)");
  5539. });
  5540. modelBuilder.Entity<ProfitObjectsRuleDetails>(entity =>
  5541. {
  5542. entity.Property(e => e.Id).HasColumnType("int(11)");
  5543. entity.Property(e => e.Code)
  5544. .HasColumnType("varchar(50)")
  5545. .HasCharSet("utf8")
  5546. .HasCollation("utf8_general_ci");
  5547. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5548. entity.Property(e => e.CreateMan)
  5549. .HasColumnType("varchar(50)")
  5550. .HasCharSet("utf8")
  5551. .HasCollation("utf8_general_ci");
  5552. entity.Property(e => e.DataValue)
  5553. .HasColumnType("varchar(50)")
  5554. .HasCharSet("utf8")
  5555. .HasCollation("utf8_general_ci");
  5556. entity.Property(e => e.Name)
  5557. .HasColumnType("varchar(50)")
  5558. .HasCharSet("utf8")
  5559. .HasCollation("utf8_general_ci");
  5560. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5561. entity.Property(e => e.RuleId).HasColumnType("int(11)");
  5562. entity.Property(e => e.SeoDescription)
  5563. .HasColumnType("varchar(500)")
  5564. .HasCharSet("utf8")
  5565. .HasCollation("utf8_general_ci");
  5566. entity.Property(e => e.SeoKeyword)
  5567. .HasColumnType("varchar(200)")
  5568. .HasCharSet("utf8")
  5569. .HasCollation("utf8_general_ci");
  5570. entity.Property(e => e.SeoTitle)
  5571. .HasColumnType("varchar(100)")
  5572. .HasCharSet("utf8")
  5573. .HasCollation("utf8_general_ci");
  5574. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5575. entity.Property(e => e.Status).HasColumnType("int(11)");
  5576. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5577. entity.Property(e => e.UpdateMan)
  5578. .HasColumnType("varchar(50)")
  5579. .HasCharSet("utf8")
  5580. .HasCollation("utf8_general_ci");
  5581. entity.Property(e => e.Version).HasColumnType("int(11)");
  5582. });
  5583. modelBuilder.Entity<ProfitReceiveRecord>(entity =>
  5584. {
  5585. entity.Property(e => e.Id).HasColumnType("int(11)");
  5586. entity.Property(e => e.Account)
  5587. .HasColumnType("varchar(32)")
  5588. .HasCharSet("utf8")
  5589. .HasCollation("utf8_general_ci");
  5590. entity.Property(e => e.Amount).HasColumnType("decimal(18,2)");
  5591. entity.Property(e => e.AppId)
  5592. .HasColumnType("varchar(32)")
  5593. .HasCharSet("utf8")
  5594. .HasCollation("utf8_general_ci");
  5595. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5596. entity.Property(e => e.CreateMan)
  5597. .HasColumnType("varchar(50)")
  5598. .HasCharSet("utf8")
  5599. .HasCollation("utf8_general_ci");
  5600. entity.Property(e => e.CustomRelation)
  5601. .HasColumnType("varchar(10)")
  5602. .HasCharSet("utf8")
  5603. .HasCollation("utf8_general_ci");
  5604. entity.Property(e => e.Description)
  5605. .HasColumnType("varchar(50)")
  5606. .HasCharSet("utf8")
  5607. .HasCollation("utf8_general_ci");
  5608. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5609. entity.Property(e => e.Name)
  5610. .HasColumnType("varchar(32)")
  5611. .HasCharSet("utf8")
  5612. .HasCollation("utf8_general_ci");
  5613. entity.Property(e => e.OrderId)
  5614. .HasColumnType("varchar(32)")
  5615. .HasCharSet("utf8")
  5616. .HasCollation("utf8_general_ci");
  5617. entity.Property(e => e.OutOrderNo)
  5618. .HasColumnType("varchar(32)")
  5619. .HasCharSet("utf8")
  5620. .HasCollation("utf8_general_ci");
  5621. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5622. entity.Property(e => e.RelationType)
  5623. .HasColumnType("varchar(30)")
  5624. .HasCharSet("utf8")
  5625. .HasCollation("utf8_general_ci");
  5626. entity.Property(e => e.SeoDescription)
  5627. .HasColumnType("varchar(500)")
  5628. .HasCharSet("utf8")
  5629. .HasCollation("utf8_general_ci");
  5630. entity.Property(e => e.SeoKeyword)
  5631. .HasColumnType("varchar(200)")
  5632. .HasCharSet("utf8")
  5633. .HasCollation("utf8_general_ci");
  5634. entity.Property(e => e.SeoTitle)
  5635. .HasColumnType("varchar(100)")
  5636. .HasCharSet("utf8")
  5637. .HasCollation("utf8_general_ci");
  5638. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5639. entity.Property(e => e.State)
  5640. .HasColumnType("varchar(20)")
  5641. .HasCharSet("utf8")
  5642. .HasCollation("utf8_general_ci");
  5643. entity.Property(e => e.Status).HasColumnType("int(11)");
  5644. entity.Property(e => e.SubAppId)
  5645. .HasColumnType("varchar(32)")
  5646. .HasCharSet("utf8")
  5647. .HasCollation("utf8_general_ci");
  5648. entity.Property(e => e.SubMchid)
  5649. .HasColumnType("varchar(32)")
  5650. .HasCharSet("utf8")
  5651. .HasCollation("utf8_general_ci");
  5652. entity.Property(e => e.TransactionId)
  5653. .HasColumnType("varchar(32)")
  5654. .HasCharSet("utf8")
  5655. .HasCollation("utf8_general_ci");
  5656. entity.Property(e => e.Type)
  5657. .HasColumnType("varchar(30)")
  5658. .HasCharSet("utf8")
  5659. .HasCollation("utf8_general_ci");
  5660. entity.Property(e => e.UnfreezeUnsplit)
  5661. .HasColumnType("bit(1)")
  5662. .HasDefaultValueSql("b'0'");
  5663. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5664. entity.Property(e => e.UpdateMan)
  5665. .HasColumnType("varchar(50)")
  5666. .HasCharSet("utf8")
  5667. .HasCollation("utf8_general_ci");
  5668. entity.Property(e => e.Version).HasColumnType("int(11)");
  5669. });
  5670. modelBuilder.Entity<ProfitReceives>(entity =>
  5671. {
  5672. entity.Property(e => e.Id).HasColumnType("int(11)");
  5673. entity.Property(e => e.Account)
  5674. .HasColumnType("varchar(32)")
  5675. .HasCharSet("utf8")
  5676. .HasCollation("utf8_general_ci");
  5677. entity.Property(e => e.AppId)
  5678. .HasColumnType("varchar(32)")
  5679. .HasCharSet("utf8")
  5680. .HasCollation("utf8_general_ci");
  5681. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5682. entity.Property(e => e.CreateMan)
  5683. .HasColumnType("varchar(50)")
  5684. .HasCharSet("utf8")
  5685. .HasCollation("utf8_general_ci");
  5686. entity.Property(e => e.CustomRelation)
  5687. .HasColumnType("varchar(10)")
  5688. .HasCharSet("utf8")
  5689. .HasCollation("utf8_general_ci");
  5690. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5691. entity.Property(e => e.Name)
  5692. .HasColumnType("varchar(32)")
  5693. .HasCharSet("utf8")
  5694. .HasCollation("utf8_general_ci");
  5695. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5696. entity.Property(e => e.RelationType)
  5697. .HasColumnType("varchar(30)")
  5698. .HasCharSet("utf8")
  5699. .HasCollation("utf8_general_ci");
  5700. entity.Property(e => e.SeoDescription)
  5701. .HasColumnType("varchar(500)")
  5702. .HasCharSet("utf8")
  5703. .HasCollation("utf8_general_ci");
  5704. entity.Property(e => e.SeoKeyword)
  5705. .HasColumnType("varchar(200)")
  5706. .HasCharSet("utf8")
  5707. .HasCollation("utf8_general_ci");
  5708. entity.Property(e => e.SeoTitle)
  5709. .HasColumnType("varchar(100)")
  5710. .HasCharSet("utf8")
  5711. .HasCollation("utf8_general_ci");
  5712. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5713. entity.Property(e => e.Status).HasColumnType("int(11)");
  5714. entity.Property(e => e.SubAppId)
  5715. .HasColumnType("varchar(32)")
  5716. .HasCharSet("utf8")
  5717. .HasCollation("utf8_general_ci");
  5718. entity.Property(e => e.SubMchid)
  5719. .HasColumnType("varchar(32)")
  5720. .HasCharSet("utf8")
  5721. .HasCollation("utf8_general_ci");
  5722. entity.Property(e => e.Type)
  5723. .HasColumnType("varchar(30)")
  5724. .HasCharSet("utf8")
  5725. .HasCollation("utf8_general_ci");
  5726. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5727. entity.Property(e => e.UpdateMan)
  5728. .HasColumnType("varchar(50)")
  5729. .HasCharSet("utf8")
  5730. .HasCollation("utf8_general_ci");
  5731. entity.Property(e => e.Version).HasColumnType("int(11)");
  5732. });
  5733. modelBuilder.Entity<ProfitRecord>(entity =>
  5734. {
  5735. entity.Property(e => e.Id).HasColumnType("int(11)");
  5736. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  5737. entity.Property(e => e.CapFlag).HasColumnType("int(11)");
  5738. entity.Property(e => e.ClearDate).HasColumnType("datetime");
  5739. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5740. entity.Property(e => e.CreateMan)
  5741. .HasColumnType("varchar(50)")
  5742. .HasCharSet("utf8")
  5743. .HasCollation("utf8_general_ci");
  5744. entity.Property(e => e.DirectFlag)
  5745. .HasColumnType("bit(1)")
  5746. .HasDefaultValueSql("b'0'");
  5747. entity.Property(e => e.HelpMonthCount).HasColumnType("int(11)");
  5748. entity.Property(e => e.MerBuddyType).HasColumnType("int(11)");
  5749. entity.Property(e => e.MerHelpFlag)
  5750. .HasColumnType("bit(1)")
  5751. .HasDefaultValueSql("b'0'");
  5752. entity.Property(e => e.MerNo)
  5753. .HasColumnType("varchar(32)")
  5754. .HasCharSet("utf8")
  5755. .HasCollation("utf8_general_ci");
  5756. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5757. entity.Property(e => e.ParentNav)
  5758. .HasColumnType("varchar(1000)")
  5759. .HasCharSet("utf8")
  5760. .HasCollation("utf8_general_ci");
  5761. entity.Property(e => e.ProfitAmount).HasColumnType("decimal(18,2)");
  5762. entity.Property(e => e.QrPayFlag).HasColumnType("int(11)");
  5763. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5764. entity.Property(e => e.Remark)
  5765. .HasColumnType("varchar(64)")
  5766. .HasCharSet("utf8")
  5767. .HasCollation("utf8_general_ci");
  5768. entity.Property(e => e.SeoDescription)
  5769. .HasColumnType("varchar(500)")
  5770. .HasCharSet("utf8")
  5771. .HasCollation("utf8_general_ci");
  5772. entity.Property(e => e.SeoKeyword)
  5773. .HasColumnType("varchar(200)")
  5774. .HasCharSet("utf8")
  5775. .HasCollation("utf8_general_ci");
  5776. entity.Property(e => e.SeoTitle)
  5777. .HasColumnType("varchar(100)")
  5778. .HasCharSet("utf8")
  5779. .HasCollation("utf8_general_ci");
  5780. entity.Property(e => e.SnNo)
  5781. .HasColumnType("varchar(32)")
  5782. .HasCharSet("utf8")
  5783. .HasCollation("utf8_general_ci");
  5784. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5785. entity.Property(e => e.Status).HasColumnType("int(11)");
  5786. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  5787. entity.Property(e => e.TradeId).HasColumnType("int(11)");
  5788. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5789. entity.Property(e => e.UpdateMan)
  5790. .HasColumnType("varchar(50)")
  5791. .HasCharSet("utf8")
  5792. .HasCollation("utf8_general_ci");
  5793. entity.Property(e => e.UserId).HasColumnType("int(11)");
  5794. entity.Property(e => e.Version).HasColumnType("int(11)");
  5795. });
  5796. modelBuilder.Entity<ProfitRewardRecord>(entity =>
  5797. {
  5798. entity.Property(e => e.Id).HasColumnType("int(11)");
  5799. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  5800. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  5801. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5802. entity.Property(e => e.CreateMan)
  5803. .HasColumnType("varchar(50)")
  5804. .HasCharSet("utf8")
  5805. .HasCollation("utf8_general_ci");
  5806. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  5807. entity.Property(e => e.CreditTradeProfit).HasColumnType("decimal(18,2)");
  5808. entity.Property(e => e.DebitCapSingleReward).HasColumnType("decimal(18,2)");
  5809. entity.Property(e => e.DebitCapTradeAmt).HasColumnType("decimal(18,2)");
  5810. entity.Property(e => e.DebitCapTradeNum).HasColumnType("int(11)");
  5811. entity.Property(e => e.DebitNonCapTradeAmt).HasColumnType("decimal(18,2)");
  5812. entity.Property(e => e.DebitNonTradeCapProfit).HasColumnType("decimal(18,2)");
  5813. entity.Property(e => e.DebitTradeCapProfit).HasColumnType("decimal(18,2)");
  5814. entity.Property(e => e.HelpCreditAddOrSubRate).HasColumnType("decimal(18,2)");
  5815. entity.Property(e => e.HelpCreditProfitRate).HasColumnType("decimal(18,2)");
  5816. entity.Property(e => e.HelpCreditProfitStandardRate).HasColumnType("decimal(18,2)");
  5817. entity.Property(e => e.HelpCreditTradeAmt).HasColumnType("decimal(18,2)");
  5818. entity.Property(e => e.HelpCreditTradeProfit).HasColumnType("decimal(18,2)");
  5819. entity.Property(e => e.HelpDebitAddOrSubRate).HasColumnType("decimal(18,2)");
  5820. entity.Property(e => e.HelpDebitNonCapTradeAmt).HasColumnType("decimal(18,2)");
  5821. entity.Property(e => e.HelpDebitNonTradeCapProfit).HasColumnType("decimal(18,2)");
  5822. entity.Property(e => e.HelpDebitProfitRate).HasColumnType("decimal(18,2)");
  5823. entity.Property(e => e.HelpDebitProfitStandardRate).HasColumnType("decimal(18,2)");
  5824. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5825. entity.Property(e => e.NonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  5826. entity.Property(e => e.NonQrCreditTradeProfit).HasColumnType("decimal(18,2)");
  5827. entity.Property(e => e.NonQrDebitNonTradeCapProfit).HasColumnType("decimal(18,2)");
  5828. entity.Property(e => e.NonQrDebitNotCapTradeAmt).HasColumnType("decimal(18,2)");
  5829. entity.Property(e => e.NotHelpCreditAddOrSubRate).HasColumnType("decimal(18,2)");
  5830. entity.Property(e => e.NotHelpCreditProfitRate).HasColumnType("decimal(18,2)");
  5831. entity.Property(e => e.NotHelpCreditProfitStandardRate).HasColumnType("decimal(18,2)");
  5832. entity.Property(e => e.NotHelpCreditTradeAmt).HasColumnType("decimal(18,2)");
  5833. entity.Property(e => e.NotHelpCreditTradeProfit).HasColumnType("decimal(18,2)");
  5834. entity.Property(e => e.NotHelpDebitAddOrSubRate).HasColumnType("decimal(18,2)");
  5835. entity.Property(e => e.NotHelpDebitNonCapTradeAmt).HasColumnType("decimal(18,2)");
  5836. entity.Property(e => e.NotHelpDebitNonTradeCapProfit).HasColumnType("decimal(18,2)");
  5837. entity.Property(e => e.NotHelpDebitProfitRate).HasColumnType("decimal(18,2)");
  5838. entity.Property(e => e.NotHelpDebitProfitStandardRate).HasColumnType("decimal(18,2)");
  5839. entity.Property(e => e.OtherCreditTradeAmt).HasColumnType("decimal(18,2)");
  5840. entity.Property(e => e.OtherDebitNotCapTradeAmt).HasColumnType("decimal(18,2)");
  5841. entity.Property(e => e.OtherTradeAmt).HasColumnType("decimal(18,2)");
  5842. entity.Property(e => e.ProfitType).HasColumnType("int(11)");
  5843. entity.Property(e => e.QrCreditAddOrSubRate).HasColumnType("decimal(18,2)");
  5844. entity.Property(e => e.QrCreditProfitRate).HasColumnType("decimal(18,2)");
  5845. entity.Property(e => e.QrCreditProfitStandardRate).HasColumnType("decimal(18,2)");
  5846. entity.Property(e => e.QrCreditTradeAmt).HasColumnType("decimal(18,2)");
  5847. entity.Property(e => e.QrCreditTradeProfit).HasColumnType("decimal(18,2)");
  5848. entity.Property(e => e.QrDebitAddOrSubRate).HasColumnType("decimal(18,2)");
  5849. entity.Property(e => e.QrDebitNonTradeCapProfit).HasColumnType("decimal(18,2)");
  5850. entity.Property(e => e.QrDebitNotCapTradeAmt).HasColumnType("decimal(18,2)");
  5851. entity.Property(e => e.QrDebitProfitRate).HasColumnType("decimal(18,2)");
  5852. entity.Property(e => e.QrDebitProfitStandardRate).HasColumnType("decimal(18,2)");
  5853. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5854. entity.Property(e => e.RecordNo)
  5855. .HasColumnType("varchar(32)")
  5856. .HasCharSet("utf8")
  5857. .HasCollation("utf8_general_ci");
  5858. entity.Property(e => e.Remark)
  5859. .HasColumnType("varchar(64)")
  5860. .HasCharSet("utf8")
  5861. .HasCollation("utf8_general_ci");
  5862. entity.Property(e => e.SeoDescription)
  5863. .HasColumnType("varchar(500)")
  5864. .HasCharSet("utf8")
  5865. .HasCollation("utf8_general_ci");
  5866. entity.Property(e => e.SeoKeyword)
  5867. .HasColumnType("varchar(200)")
  5868. .HasCharSet("utf8")
  5869. .HasCollation("utf8_general_ci");
  5870. entity.Property(e => e.SeoTitle)
  5871. .HasColumnType("varchar(100)")
  5872. .HasCharSet("utf8")
  5873. .HasCollation("utf8_general_ci");
  5874. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5875. entity.Property(e => e.Status).HasColumnType("int(11)");
  5876. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  5877. entity.Property(e => e.TradeAmt).HasColumnType("decimal(18,2)");
  5878. entity.Property(e => e.TradeMonth)
  5879. .HasColumnType("varchar(6)")
  5880. .HasCharSet("utf8")
  5881. .HasCollation("utf8_general_ci");
  5882. entity.Property(e => e.TradeProfit).HasColumnType("decimal(18,2)");
  5883. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5884. entity.Property(e => e.UpdateMan)
  5885. .HasColumnType("varchar(50)")
  5886. .HasCharSet("utf8")
  5887. .HasCollation("utf8_general_ci");
  5888. entity.Property(e => e.UserId).HasColumnType("int(11)");
  5889. entity.Property(e => e.Version).HasColumnType("int(11)");
  5890. });
  5891. modelBuilder.Entity<ProfitSubsidyDetail>(entity =>
  5892. {
  5893. entity.Property(e => e.Id).HasColumnType("int(11)");
  5894. entity.Property(e => e.BelongUserId).HasColumnType("int(11)");
  5895. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  5896. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5897. entity.Property(e => e.CreateMan)
  5898. .HasColumnType("varchar(50)")
  5899. .HasCharSet("utf8")
  5900. .HasCollation("utf8_general_ci");
  5901. entity.Property(e => e.CreditProfitRate).HasColumnType("decimal(18,2)");
  5902. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  5903. entity.Property(e => e.MerHelpFlag)
  5904. .HasColumnType("bit(1)")
  5905. .HasDefaultValueSql("b'0'");
  5906. entity.Property(e => e.MerNo)
  5907. .HasColumnType("varchar(32)")
  5908. .HasCharSet("utf8")
  5909. .HasCollation("utf8_general_ci");
  5910. entity.Property(e => e.MerRegTime).HasColumnType("datetime");
  5911. entity.Property(e => e.MerStandardDate).HasColumnType("datetime");
  5912. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5913. entity.Property(e => e.NonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  5914. entity.Property(e => e.ProductName)
  5915. .HasColumnType("varchar(16)")
  5916. .HasCharSet("utf8")
  5917. .HasCollation("utf8_general_ci");
  5918. entity.Property(e => e.QrCreditTradeAmt).HasColumnType("decimal(18,2)");
  5919. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5920. entity.Property(e => e.RecordNo)
  5921. .HasColumnType("varchar(32)")
  5922. .HasCharSet("utf8")
  5923. .HasCollation("utf8_general_ci");
  5924. entity.Property(e => e.Remark)
  5925. .HasColumnType("varchar(64)")
  5926. .HasCharSet("utf8")
  5927. .HasCollation("utf8_general_ci");
  5928. entity.Property(e => e.SeoDescription)
  5929. .HasColumnType("varchar(500)")
  5930. .HasCharSet("utf8")
  5931. .HasCollation("utf8_general_ci");
  5932. entity.Property(e => e.SeoKeyword)
  5933. .HasColumnType("varchar(200)")
  5934. .HasCharSet("utf8")
  5935. .HasCollation("utf8_general_ci");
  5936. entity.Property(e => e.SeoTitle)
  5937. .HasColumnType("varchar(100)")
  5938. .HasCharSet("utf8")
  5939. .HasCollation("utf8_general_ci");
  5940. entity.Property(e => e.SnNo)
  5941. .HasColumnType("varchar(32)")
  5942. .HasCharSet("utf8")
  5943. .HasCollation("utf8_general_ci");
  5944. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5945. entity.Property(e => e.Status).HasColumnType("int(11)");
  5946. entity.Property(e => e.SubsidyProfit).HasColumnType("decimal(18,2)");
  5947. entity.Property(e => e.SubsidyProfitRate).HasColumnType("decimal(18,2)");
  5948. entity.Property(e => e.SubsidyType).HasColumnType("int(11)");
  5949. entity.Property(e => e.SubsidyUserId).HasColumnType("int(11)");
  5950. entity.Property(e => e.TradeMonth)
  5951. .HasColumnType("varchar(6)")
  5952. .HasCharSet("utf8")
  5953. .HasCollation("utf8_general_ci");
  5954. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5955. entity.Property(e => e.UpdateMan)
  5956. .HasColumnType("varchar(50)")
  5957. .HasCharSet("utf8")
  5958. .HasCollation("utf8_general_ci");
  5959. entity.Property(e => e.Version).HasColumnType("int(11)");
  5960. });
  5961. modelBuilder.Entity<PublicAccountSet>(entity =>
  5962. {
  5963. entity.Property(e => e.Id).HasColumnType("int(11)");
  5964. entity.Property(e => e.AlipayAppId)
  5965. .HasColumnType("varchar(50)")
  5966. .HasCharSet("utf8")
  5967. .HasCollation("utf8_general_ci");
  5968. entity.Property(e => e.AlipayPartnerId)
  5969. .HasColumnType("varchar(50)")
  5970. .HasCharSet("utf8")
  5971. .HasCollation("utf8_general_ci");
  5972. entity.Property(e => e.AlipayPrivateKey)
  5973. .HasColumnType("mediumtext")
  5974. .HasCharSet("utf8")
  5975. .HasCollation("utf8_general_ci");
  5976. entity.Property(e => e.AlipayPublicKey)
  5977. .HasColumnType("mediumtext")
  5978. .HasCharSet("utf8")
  5979. .HasCollation("utf8_general_ci");
  5980. entity.Property(e => e.AliyunAccessKeyId)
  5981. .HasColumnType("varchar(50)")
  5982. .HasCharSet("utf8")
  5983. .HasCollation("utf8_general_ci");
  5984. entity.Property(e => e.AliyunAccessKeySecret)
  5985. .HasColumnType("varchar(50)")
  5986. .HasCharSet("utf8")
  5987. .HasCollation("utf8_general_ci");
  5988. entity.Property(e => e.AliyunAndroidActivity)
  5989. .HasColumnType("varchar(100)")
  5990. .HasCharSet("utf8")
  5991. .HasCollation("utf8_general_ci");
  5992. entity.Property(e => e.AliyunAndroidNotifyTitle)
  5993. .HasColumnType("varchar(20)")
  5994. .HasCharSet("utf8")
  5995. .HasCollation("utf8_general_ci");
  5996. entity.Property(e => e.AliyunPushAndroidAppId)
  5997. .HasColumnType("varchar(50)")
  5998. .HasCharSet("utf8")
  5999. .HasCollation("utf8_general_ci");
  6000. entity.Property(e => e.AliyunPushAndroidAppSecret)
  6001. .HasColumnType("varchar(50)")
  6002. .HasCharSet("utf8")
  6003. .HasCollation("utf8_general_ci");
  6004. entity.Property(e => e.AliyunPushIosAppId)
  6005. .HasColumnType("varchar(500)")
  6006. .HasCharSet("utf8")
  6007. .HasCollation("utf8_general_ci");
  6008. entity.Property(e => e.AliyunPushIosAppSecret)
  6009. .HasColumnType("varchar(50)")
  6010. .HasCharSet("utf8")
  6011. .HasCollation("utf8_general_ci");
  6012. entity.Property(e => e.AliyunRegionId)
  6013. .HasColumnType("varchar(30)")
  6014. .HasCharSet("utf8")
  6015. .HasCollation("utf8_general_ci");
  6016. entity.Property(e => e.ErpApiUrl)
  6017. .HasColumnType("varchar(200)")
  6018. .HasCharSet("utf8")
  6019. .HasCollation("utf8_general_ci");
  6020. entity.Property(e => e.ErpAppCode)
  6021. .HasColumnType("varchar(100)")
  6022. .HasCharSet("utf8")
  6023. .HasCollation("utf8_general_ci");
  6024. entity.Property(e => e.MeiQiaAppKey)
  6025. .HasColumnType("varchar(50)")
  6026. .HasCharSet("utf8")
  6027. .HasCollation("utf8_general_ci");
  6028. entity.Property(e => e.MobAppKey)
  6029. .HasColumnType("varchar(50)")
  6030. .HasCharSet("utf8")
  6031. .HasCollation("utf8_general_ci");
  6032. entity.Property(e => e.MobAppSecret)
  6033. .HasColumnType("varchar(50)")
  6034. .HasCharSet("utf8")
  6035. .HasCollation("utf8_general_ci");
  6036. entity.Property(e => e.QqAndroidAppId)
  6037. .HasColumnType("varchar(50)")
  6038. .HasCharSet("utf8")
  6039. .HasCollation("utf8_general_ci");
  6040. entity.Property(e => e.QqAndroidAppKey)
  6041. .HasColumnType("varchar(50)")
  6042. .HasCharSet("utf8")
  6043. .HasCollation("utf8_general_ci");
  6044. entity.Property(e => e.QqIosAppId)
  6045. .HasColumnType("varchar(50)")
  6046. .HasCharSet("utf8")
  6047. .HasCollation("utf8_general_ci");
  6048. entity.Property(e => e.QqIosAppKey)
  6049. .HasColumnType("varchar(50)")
  6050. .HasCharSet("utf8")
  6051. .HasCollation("utf8_general_ci");
  6052. entity.Property(e => e.ServerIp)
  6053. .HasColumnType("varchar(15)")
  6054. .HasCharSet("utf8")
  6055. .HasCollation("utf8_general_ci");
  6056. entity.Property(e => e.SmsApiDefaultTemplate)
  6057. .HasColumnType("varchar(200)")
  6058. .HasCharSet("utf8")
  6059. .HasCollation("utf8_general_ci");
  6060. entity.Property(e => e.SmsApiPwd)
  6061. .HasColumnType("varchar(50)")
  6062. .HasCharSet("utf8")
  6063. .HasCollation("utf8_general_ci");
  6064. entity.Property(e => e.SmsApiSign)
  6065. .HasColumnType("varchar(10)")
  6066. .HasCharSet("utf8")
  6067. .HasCollation("utf8_general_ci");
  6068. entity.Property(e => e.SmsApiUserId)
  6069. .HasColumnType("varchar(50)")
  6070. .HasCharSet("utf8")
  6071. .HasCollation("utf8_general_ci");
  6072. entity.Property(e => e.WeChatAppId)
  6073. .HasColumnType("varchar(50)")
  6074. .HasCharSet("utf8")
  6075. .HasCollation("utf8_general_ci");
  6076. entity.Property(e => e.WeChatAppSecret)
  6077. .HasColumnType("varchar(50)")
  6078. .HasCharSet("utf8")
  6079. .HasCollation("utf8_general_ci");
  6080. entity.Property(e => e.WeChatMchId)
  6081. .HasColumnType("varchar(20)")
  6082. .HasCharSet("utf8")
  6083. .HasCollation("utf8_general_ci");
  6084. entity.Property(e => e.WeChatMiniAppId)
  6085. .HasColumnType("varchar(50)")
  6086. .HasCharSet("utf8")
  6087. .HasCollation("utf8_general_ci");
  6088. entity.Property(e => e.WeChatMiniAppSecret)
  6089. .HasColumnType("varchar(50)")
  6090. .HasCharSet("utf8")
  6091. .HasCollation("utf8_general_ci");
  6092. entity.Property(e => e.WeChatOpenAppId)
  6093. .HasColumnType("varchar(50)")
  6094. .HasCharSet("utf8")
  6095. .HasCollation("utf8_general_ci");
  6096. entity.Property(e => e.WeChatOpenAppSecret)
  6097. .HasColumnType("varchar(50)")
  6098. .HasCharSet("utf8")
  6099. .HasCollation("utf8_general_ci");
  6100. entity.Property(e => e.WeChatPayKey)
  6101. .HasColumnType("varchar(50)")
  6102. .HasCharSet("utf8")
  6103. .HasCollation("utf8_general_ci");
  6104. });
  6105. modelBuilder.Entity<PullNewAct>(entity =>
  6106. {
  6107. entity.Property(e => e.Id).HasColumnType("int(11)");
  6108. entity.Property(e => e.ActEffectEndDate).HasColumnType("datetime");
  6109. entity.Property(e => e.ActEffectStartDate).HasColumnType("datetime");
  6110. entity.Property(e => e.ActStdCond)
  6111. .HasColumnType("varchar(32)")
  6112. .HasCharSet("utf8")
  6113. .HasCollation("utf8_general_ci");
  6114. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6115. entity.Property(e => e.CreateMan)
  6116. .HasColumnType("varchar(50)")
  6117. .HasCharSet("utf8")
  6118. .HasCollation("utf8_general_ci");
  6119. entity.Property(e => e.ProductName)
  6120. .HasColumnType("varchar(32)")
  6121. .HasCharSet("utf8")
  6122. .HasCollation("utf8_general_ci");
  6123. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  6124. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6125. entity.Property(e => e.Remark)
  6126. .HasColumnType("varchar(128)")
  6127. .HasCharSet("utf8")
  6128. .HasCollation("utf8_general_ci");
  6129. entity.Property(e => e.SeoDescription)
  6130. .HasColumnType("varchar(500)")
  6131. .HasCharSet("utf8")
  6132. .HasCollation("utf8_general_ci");
  6133. entity.Property(e => e.SeoKeyword)
  6134. .HasColumnType("varchar(200)")
  6135. .HasCharSet("utf8")
  6136. .HasCollation("utf8_general_ci");
  6137. entity.Property(e => e.SeoTitle)
  6138. .HasColumnType("varchar(100)")
  6139. .HasCharSet("utf8")
  6140. .HasCollation("utf8_general_ci");
  6141. entity.Property(e => e.SnDelayDay).HasColumnType("int(11)");
  6142. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6143. entity.Property(e => e.Status).HasColumnType("int(11)");
  6144. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6145. entity.Property(e => e.UpdateMan)
  6146. .HasColumnType("varchar(50)")
  6147. .HasCharSet("utf8")
  6148. .HasCollation("utf8_general_ci");
  6149. entity.Property(e => e.Version).HasColumnType("int(11)");
  6150. });
  6151. modelBuilder.Entity<PullNewDetail>(entity =>
  6152. {
  6153. entity.Property(e => e.Id).HasColumnType("int(11)");
  6154. entity.Property(e => e.BizStatus).HasColumnType("int(11)");
  6155. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6156. entity.Property(e => e.CreateMan)
  6157. .HasColumnType("varchar(50)")
  6158. .HasCharSet("utf8")
  6159. .HasCollation("utf8_general_ci");
  6160. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6161. entity.Property(e => e.RecMallBrandId).HasColumnType("int(11)");
  6162. entity.Property(e => e.RecMallOrder)
  6163. .HasColumnType("varchar(32)")
  6164. .HasCharSet("utf8")
  6165. .HasCollation("utf8_general_ci");
  6166. entity.Property(e => e.RecMallOrderTime).HasColumnType("datetime");
  6167. entity.Property(e => e.RecMallProductName)
  6168. .HasColumnType("varchar(32)")
  6169. .HasCharSet("utf8")
  6170. .HasCollation("utf8_general_ci");
  6171. entity.Property(e => e.RecMallProductNum).HasColumnType("int(11)");
  6172. entity.Property(e => e.RecMallSendTime).HasColumnType("datetime");
  6173. entity.Property(e => e.RecUserId).HasColumnType("int(11)");
  6174. entity.Property(e => e.RecUserType).HasColumnType("int(11)");
  6175. entity.Property(e => e.RegDate).HasColumnType("datetime");
  6176. entity.Property(e => e.Remark)
  6177. .HasColumnType("varchar(64)")
  6178. .HasCharSet("utf8")
  6179. .HasCollation("utf8_general_ci");
  6180. entity.Property(e => e.RewardStatus).HasColumnType("int(11)");
  6181. entity.Property(e => e.SeoDescription)
  6182. .HasColumnType("varchar(500)")
  6183. .HasCharSet("utf8")
  6184. .HasCollation("utf8_general_ci");
  6185. entity.Property(e => e.SeoKeyword)
  6186. .HasColumnType("varchar(200)")
  6187. .HasCharSet("utf8")
  6188. .HasCollation("utf8_general_ci");
  6189. entity.Property(e => e.SeoTitle)
  6190. .HasColumnType("varchar(100)")
  6191. .HasCharSet("utf8")
  6192. .HasCollation("utf8_general_ci");
  6193. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6194. entity.Property(e => e.StatDate)
  6195. .HasColumnType("varchar(8)")
  6196. .HasCharSet("utf8")
  6197. .HasCollation("utf8_general_ci");
  6198. entity.Property(e => e.StatMonth)
  6199. .HasColumnType("varchar(6)")
  6200. .HasCharSet("utf8")
  6201. .HasCollation("utf8_general_ci");
  6202. entity.Property(e => e.StatType).HasColumnType("int(11)");
  6203. entity.Property(e => e.Status).HasColumnType("int(11)");
  6204. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6205. entity.Property(e => e.UpdateMan)
  6206. .HasColumnType("varchar(50)")
  6207. .HasCharSet("utf8")
  6208. .HasCollation("utf8_general_ci");
  6209. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6210. entity.Property(e => e.Version).HasColumnType("int(11)");
  6211. });
  6212. modelBuilder.Entity<PullnewSummary>(entity =>
  6213. {
  6214. entity.Property(e => e.Id).HasColumnType("int(11)");
  6215. entity.Property(e => e.BizSnDelayDay).HasColumnType("int(11)");
  6216. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6217. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6218. entity.Property(e => e.CreateMan)
  6219. .HasColumnType("varchar(50)")
  6220. .HasCharSet("utf8")
  6221. .HasCollation("utf8_general_ci");
  6222. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6223. entity.Property(e => e.RecUserAuthNum).HasColumnType("int(11)");
  6224. entity.Property(e => e.RecUserDeliveryStdNum).HasColumnType("int(11)");
  6225. entity.Property(e => e.Remark)
  6226. .HasColumnType("varchar(64)")
  6227. .HasCharSet("utf8")
  6228. .HasCollation("utf8_general_ci");
  6229. entity.Property(e => e.RuleSnDelayDay).HasColumnType("int(11)");
  6230. entity.Property(e => e.SeoDescription)
  6231. .HasColumnType("varchar(500)")
  6232. .HasCharSet("utf8")
  6233. .HasCollation("utf8_general_ci");
  6234. entity.Property(e => e.SeoKeyword)
  6235. .HasColumnType("varchar(200)")
  6236. .HasCharSet("utf8")
  6237. .HasCollation("utf8_general_ci");
  6238. entity.Property(e => e.SeoTitle)
  6239. .HasColumnType("varchar(100)")
  6240. .HasCharSet("utf8")
  6241. .HasCollation("utf8_general_ci");
  6242. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6243. entity.Property(e => e.StatDate)
  6244. .HasColumnType("varchar(8)")
  6245. .HasCharSet("utf8")
  6246. .HasCollation("utf8_general_ci");
  6247. entity.Property(e => e.StatMonth)
  6248. .HasColumnType("varchar(6)")
  6249. .HasCharSet("utf8")
  6250. .HasCollation("utf8_general_ci");
  6251. entity.Property(e => e.Status).HasColumnType("int(11)");
  6252. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6253. entity.Property(e => e.UpdateMan)
  6254. .HasColumnType("varchar(50)")
  6255. .HasCharSet("utf8")
  6256. .HasCollation("utf8_general_ci");
  6257. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6258. entity.Property(e => e.Version).HasColumnType("int(11)");
  6259. });
  6260. modelBuilder.Entity<RightDic>(entity =>
  6261. {
  6262. entity.Property(e => e.Id)
  6263. .HasColumnName("ID")
  6264. .HasColumnType("varchar(50)")
  6265. .HasCharSet("utf8")
  6266. .HasCollation("utf8_general_ci");
  6267. entity.Property(e => e.Icon)
  6268. .HasColumnType("varchar(50)")
  6269. .HasCharSet("utf8")
  6270. .HasCollation("utf8_general_ci");
  6271. entity.Property(e => e.MainDataList)
  6272. .HasColumnType("bit(1)")
  6273. .HasDefaultValueSql("b'0'");
  6274. entity.Property(e => e.MainMenu)
  6275. .HasColumnType("bit(1)")
  6276. .HasDefaultValueSql("b'0'");
  6277. entity.Property(e => e.MainStat)
  6278. .HasColumnType("bit(1)")
  6279. .HasDefaultValueSql("b'0'");
  6280. entity.Property(e => e.Name)
  6281. .HasColumnType("varchar(50)")
  6282. .HasCharSet("utf8")
  6283. .HasCollation("utf8_general_ci");
  6284. entity.Property(e => e.OtherRight)
  6285. .HasColumnType("varchar(500)")
  6286. .HasCharSet("utf8")
  6287. .HasCollation("utf8_general_ci");
  6288. entity.Property(e => e.RightLevel).HasColumnType("int(11)");
  6289. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6290. entity.Property(e => e.Url)
  6291. .HasColumnType("varchar(200)")
  6292. .HasCharSet("utf8")
  6293. .HasCollation("utf8_general_ci");
  6294. });
  6295. modelBuilder.Entity<ServiceCenter>(entity =>
  6296. {
  6297. entity.Property(e => e.Id).HasColumnType("int(11)");
  6298. entity.Property(e => e.CategoryId).HasColumnType("int(11)");
  6299. entity.Property(e => e.Content)
  6300. .HasColumnType("longtext")
  6301. .HasCharSet("utf8")
  6302. .HasCollation("utf8_general_ci");
  6303. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6304. entity.Property(e => e.CreateMan)
  6305. .HasColumnType("varchar(50)")
  6306. .HasCharSet("utf8")
  6307. .HasCollation("utf8_general_ci");
  6308. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6309. entity.Property(e => e.SeoDescription)
  6310. .HasColumnType("varchar(500)")
  6311. .HasCharSet("utf8")
  6312. .HasCollation("utf8_general_ci");
  6313. entity.Property(e => e.SeoKeyword)
  6314. .HasColumnType("varchar(200)")
  6315. .HasCharSet("utf8")
  6316. .HasCollation("utf8_general_ci");
  6317. entity.Property(e => e.SeoTitle)
  6318. .HasColumnType("varchar(100)")
  6319. .HasCharSet("utf8")
  6320. .HasCollation("utf8_general_ci");
  6321. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6322. entity.Property(e => e.Status).HasColumnType("int(11)");
  6323. entity.Property(e => e.SubTitle)
  6324. .HasColumnType("varchar(50)")
  6325. .HasCharSet("utf8")
  6326. .HasCollation("utf8_general_ci");
  6327. entity.Property(e => e.Title)
  6328. .HasColumnType("varchar(50)")
  6329. .HasCharSet("utf8")
  6330. .HasCollation("utf8_general_ci");
  6331. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6332. entity.Property(e => e.UpdateMan)
  6333. .HasColumnType("varchar(50)")
  6334. .HasCharSet("utf8")
  6335. .HasCollation("utf8_general_ci");
  6336. entity.Property(e => e.Version).HasColumnType("int(11)");
  6337. });
  6338. modelBuilder.Entity<StoreBalance>(entity =>
  6339. {
  6340. entity.Property(e => e.Id).HasColumnType("int(11)");
  6341. entity.Property(e => e.AfterLaveNum).HasColumnType("int(11)");
  6342. entity.Property(e => e.AfterOutNum).HasColumnType("int(11)");
  6343. entity.Property(e => e.AfterTotalNum).HasColumnType("int(11)");
  6344. entity.Property(e => e.BeforeLaveNum).HasColumnType("int(11)");
  6345. entity.Property(e => e.BeforeOutNum).HasColumnType("int(11)");
  6346. entity.Property(e => e.BeforeTotalNum).HasColumnType("int(11)");
  6347. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6348. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6349. entity.Property(e => e.CreateMan)
  6350. .HasColumnType("varchar(50)")
  6351. .HasCharSet("utf8")
  6352. .HasCollation("utf8_general_ci");
  6353. entity.Property(e => e.OpStoreNum).HasColumnType("int(11)");
  6354. entity.Property(e => e.OpSymbol)
  6355. .HasColumnType("varchar(1)")
  6356. .HasCharSet("utf8")
  6357. .HasCollation("utf8_general_ci");
  6358. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6359. entity.Property(e => e.SeoDescription)
  6360. .HasColumnType("varchar(500)")
  6361. .HasCharSet("utf8")
  6362. .HasCollation("utf8_general_ci");
  6363. entity.Property(e => e.SeoKeyword)
  6364. .HasColumnType("varchar(200)")
  6365. .HasCharSet("utf8")
  6366. .HasCollation("utf8_general_ci");
  6367. entity.Property(e => e.SeoTitle)
  6368. .HasColumnType("varchar(100)")
  6369. .HasCharSet("utf8")
  6370. .HasCollation("utf8_general_ci");
  6371. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6372. entity.Property(e => e.Status).HasColumnType("int(11)");
  6373. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  6374. entity.Property(e => e.TransRecordNo)
  6375. .HasColumnType("varchar(32)")
  6376. .HasCharSet("utf8")
  6377. .HasCollation("utf8_general_ci");
  6378. entity.Property(e => e.TransType).HasColumnType("int(11)");
  6379. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6380. entity.Property(e => e.UpdateMan)
  6381. .HasColumnType("varchar(50)")
  6382. .HasCharSet("utf8")
  6383. .HasCollation("utf8_general_ci");
  6384. entity.Property(e => e.Version).HasColumnType("int(11)");
  6385. });
  6386. modelBuilder.Entity<StoreChangeHistory>(entity =>
  6387. {
  6388. entity.Property(e => e.Id).HasColumnType("int(11)");
  6389. entity.Property(e => e.BizBatchNo)
  6390. .HasColumnType("varchar(32)")
  6391. .HasCharSet("utf8")
  6392. .HasCollation("utf8_general_ci");
  6393. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6394. entity.Property(e => e.ChangeRecordNo)
  6395. .HasColumnType("varchar(32)")
  6396. .HasCharSet("utf8")
  6397. .HasCollation("utf8_general_ci");
  6398. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6399. entity.Property(e => e.CreateMan)
  6400. .HasColumnType("varchar(50)")
  6401. .HasCharSet("utf8")
  6402. .HasCollation("utf8_general_ci");
  6403. entity.Property(e => e.DeviceModel)
  6404. .HasColumnType("varchar(32)")
  6405. .HasCharSet("utf8")
  6406. .HasCollation("utf8_general_ci");
  6407. entity.Property(e => e.DeviceType)
  6408. .HasColumnType("varchar(32)")
  6409. .HasCharSet("utf8")
  6410. .HasCollation("utf8_general_ci");
  6411. entity.Property(e => e.DeviceVendor)
  6412. .HasColumnType("varchar(32)")
  6413. .HasCharSet("utf8")
  6414. .HasCollation("utf8_general_ci");
  6415. entity.Property(e => e.FromDate).HasColumnType("datetime");
  6416. entity.Property(e => e.FromRemark)
  6417. .HasColumnType("varchar(64)")
  6418. .HasCharSet("utf8")
  6419. .HasCollation("utf8_general_ci");
  6420. entity.Property(e => e.FromUserId).HasColumnType("int(11)");
  6421. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6422. entity.Property(e => e.SeoDescription)
  6423. .HasColumnType("varchar(500)")
  6424. .HasCharSet("utf8")
  6425. .HasCollation("utf8_general_ci");
  6426. entity.Property(e => e.SeoKeyword)
  6427. .HasColumnType("varchar(200)")
  6428. .HasCharSet("utf8")
  6429. .HasCollation("utf8_general_ci");
  6430. entity.Property(e => e.SeoTitle)
  6431. .HasColumnType("varchar(100)")
  6432. .HasCharSet("utf8")
  6433. .HasCollation("utf8_general_ci");
  6434. entity.Property(e => e.SnNo)
  6435. .HasColumnType("varchar(32)")
  6436. .HasCharSet("utf8")
  6437. .HasCollation("utf8_general_ci");
  6438. entity.Property(e => e.SnType).HasColumnType("int(11)");
  6439. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6440. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  6441. entity.Property(e => e.Status).HasColumnType("int(11)");
  6442. entity.Property(e => e.StockOpDirect).HasColumnType("int(11)");
  6443. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  6444. entity.Property(e => e.ToDate).HasColumnType("datetime");
  6445. entity.Property(e => e.ToRemark)
  6446. .HasColumnType("varchar(64)")
  6447. .HasCharSet("utf8")
  6448. .HasCollation("utf8_general_ci");
  6449. entity.Property(e => e.ToStoreId).HasColumnType("int(11)");
  6450. entity.Property(e => e.ToUserId).HasColumnType("int(11)");
  6451. entity.Property(e => e.TransType).HasColumnType("int(11)");
  6452. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6453. entity.Property(e => e.UpdateMan)
  6454. .HasColumnType("varchar(50)")
  6455. .HasCharSet("utf8")
  6456. .HasCollation("utf8_general_ci");
  6457. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6458. entity.Property(e => e.Version).HasColumnType("int(11)");
  6459. });
  6460. modelBuilder.Entity<StoreForCode>(entity =>
  6461. {
  6462. entity.HasKey(e => e.Code)
  6463. .HasName("PRIMARY");
  6464. entity.Property(e => e.Code)
  6465. .HasColumnType("varchar(30)")
  6466. .HasCharSet("utf8")
  6467. .HasCollation("utf8_general_ci");
  6468. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  6469. });
  6470. modelBuilder.Entity<StoreForName>(entity =>
  6471. {
  6472. entity.HasKey(e => e.Name)
  6473. .HasName("PRIMARY");
  6474. entity.Property(e => e.Name)
  6475. .HasColumnType("varchar(30)")
  6476. .HasCharSet("utf8")
  6477. .HasCollation("utf8_general_ci");
  6478. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  6479. });
  6480. modelBuilder.Entity<StoreHouse>(entity =>
  6481. {
  6482. entity.Property(e => e.Id).HasColumnType("int(11)");
  6483. entity.Property(e => e.Address)
  6484. .HasColumnType("varchar(128)")
  6485. .HasCharSet("utf8")
  6486. .HasCollation("utf8_general_ci");
  6487. entity.Property(e => e.Areas)
  6488. .HasColumnType("varchar(30)")
  6489. .HasCharSet("utf8")
  6490. .HasCollation("utf8_general_ci");
  6491. entity.Property(e => e.BrandId)
  6492. .HasColumnType("varchar(30)")
  6493. .HasCharSet("utf8")
  6494. .HasCollation("utf8_general_ci");
  6495. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6496. entity.Property(e => e.CreateMan)
  6497. .HasColumnType("varchar(50)")
  6498. .HasCharSet("utf8")
  6499. .HasCollation("utf8_general_ci");
  6500. entity.Property(e => e.LaveNum).HasColumnType("int(11)");
  6501. entity.Property(e => e.LimitTopUserId)
  6502. .HasColumnType("varchar(100)")
  6503. .HasCharSet("utf8")
  6504. .HasCollation("utf8_general_ci");
  6505. entity.Property(e => e.ManageMobile)
  6506. .HasColumnType("varchar(11)")
  6507. .HasCharSet("utf8")
  6508. .HasCollation("utf8_general_ci");
  6509. entity.Property(e => e.ManageUserId).HasColumnType("int(11)");
  6510. entity.Property(e => e.ManagerEmail)
  6511. .HasColumnType("varchar(32)")
  6512. .HasCharSet("utf8")
  6513. .HasCollation("utf8_general_ci");
  6514. entity.Property(e => e.OutNum).HasColumnType("int(11)");
  6515. entity.Property(e => e.ParentNav)
  6516. .HasColumnType("longtext")
  6517. .HasCharSet("utf8")
  6518. .HasCollation("utf8_general_ci");
  6519. entity.Property(e => e.ParentStoreId).HasColumnType("int(11)");
  6520. entity.Property(e => e.ProductName)
  6521. .HasColumnType("varchar(32)")
  6522. .HasCharSet("utf8")
  6523. .HasCollation("utf8_general_ci");
  6524. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6525. entity.Property(e => e.Remark)
  6526. .HasColumnType("varchar(128)")
  6527. .HasCharSet("utf8")
  6528. .HasCollation("utf8_general_ci");
  6529. entity.Property(e => e.SeoDescription)
  6530. .HasColumnType("varchar(500)")
  6531. .HasCharSet("utf8")
  6532. .HasCollation("utf8_general_ci");
  6533. entity.Property(e => e.SeoKeyword)
  6534. .HasColumnType("varchar(200)")
  6535. .HasCharSet("utf8")
  6536. .HasCollation("utf8_general_ci");
  6537. entity.Property(e => e.SeoTitle)
  6538. .HasColumnType("varchar(100)")
  6539. .HasCharSet("utf8")
  6540. .HasCollation("utf8_general_ci");
  6541. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6542. entity.Property(e => e.Status).HasColumnType("int(11)");
  6543. entity.Property(e => e.StoreKind).HasColumnType("int(11)");
  6544. entity.Property(e => e.StoreName)
  6545. .HasColumnType("varchar(32)")
  6546. .HasCharSet("utf8")
  6547. .HasCollation("utf8_general_ci");
  6548. entity.Property(e => e.StoreNo)
  6549. .HasColumnType("varchar(16)")
  6550. .HasCharSet("utf8")
  6551. .HasCollation("utf8_general_ci");
  6552. entity.Property(e => e.StoreStatus).HasColumnType("int(11)");
  6553. entity.Property(e => e.StoreType).HasColumnType("int(11)");
  6554. entity.Property(e => e.TotalNum).HasColumnType("int(11)");
  6555. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6556. entity.Property(e => e.UpdateMan)
  6557. .HasColumnType("varchar(50)")
  6558. .HasCharSet("utf8")
  6559. .HasCollation("utf8_general_ci");
  6560. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6561. entity.Property(e => e.Version).HasColumnType("int(11)");
  6562. });
  6563. modelBuilder.Entity<StoreMallOrderSummary>(entity =>
  6564. {
  6565. entity.Property(e => e.Id).HasColumnType("int(11)");
  6566. entity.Property(e => e.AgentStoreId).HasColumnType("int(11)");
  6567. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6568. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6569. entity.Property(e => e.CreateMan)
  6570. .HasColumnType("varchar(50)")
  6571. .HasCharSet("utf8")
  6572. .HasCollation("utf8_general_ci");
  6573. entity.Property(e => e.OrderAmt).HasColumnType("int(11)");
  6574. entity.Property(e => e.OrderNum).HasColumnType("int(11)");
  6575. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6576. entity.Property(e => e.RefundAmt).HasColumnType("decimal(18,2)");
  6577. entity.Property(e => e.RefundOrderNum).HasColumnType("int(11)");
  6578. entity.Property(e => e.Remark)
  6579. .HasColumnType("varchar(64)")
  6580. .HasCharSet("utf8")
  6581. .HasCollation("utf8_general_ci");
  6582. entity.Property(e => e.SeoDescription)
  6583. .HasColumnType("varchar(500)")
  6584. .HasCharSet("utf8")
  6585. .HasCollation("utf8_general_ci");
  6586. entity.Property(e => e.SeoKeyword)
  6587. .HasColumnType("varchar(200)")
  6588. .HasCharSet("utf8")
  6589. .HasCollation("utf8_general_ci");
  6590. entity.Property(e => e.SeoTitle)
  6591. .HasColumnType("varchar(100)")
  6592. .HasCharSet("utf8")
  6593. .HasCollation("utf8_general_ci");
  6594. entity.Property(e => e.SettleAmt).HasColumnType("decimal(18,2)");
  6595. entity.Property(e => e.SettleStatus).HasColumnType("int(11)");
  6596. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6597. entity.Property(e => e.Status).HasColumnType("int(11)");
  6598. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  6599. entity.Property(e => e.TradeMonth)
  6600. .HasColumnType("varchar(6)")
  6601. .HasCharSet("utf8")
  6602. .HasCollation("utf8_general_ci");
  6603. entity.Property(e => e.UnitPrice).HasColumnType("decimal(18,2)");
  6604. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6605. entity.Property(e => e.UpdateMan)
  6606. .HasColumnType("varchar(50)")
  6607. .HasCharSet("utf8")
  6608. .HasCollation("utf8_general_ci");
  6609. entity.Property(e => e.Version).HasColumnType("int(11)");
  6610. });
  6611. modelBuilder.Entity<StoreSnActivateSummary>(entity =>
  6612. {
  6613. entity.Property(e => e.Id).HasColumnType("int(11)");
  6614. entity.Property(e => e.ActivateNum).HasColumnType("int(11)");
  6615. entity.Property(e => e.AgentStoreId).HasColumnType("int(11)");
  6616. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6617. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6618. entity.Property(e => e.CreateMan)
  6619. .HasColumnType("varchar(50)")
  6620. .HasCharSet("utf8")
  6621. .HasCollation("utf8_general_ci");
  6622. entity.Property(e => e.EffectActNum).HasColumnType("int(11)");
  6623. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6624. entity.Property(e => e.RejectActNum).HasColumnType("int(11)");
  6625. entity.Property(e => e.Remark)
  6626. .HasColumnType("varchar(64)")
  6627. .HasCharSet("utf8")
  6628. .HasCollation("utf8_general_ci");
  6629. entity.Property(e => e.SeoDescription)
  6630. .HasColumnType("varchar(500)")
  6631. .HasCharSet("utf8")
  6632. .HasCollation("utf8_general_ci");
  6633. entity.Property(e => e.SeoKeyword)
  6634. .HasColumnType("varchar(200)")
  6635. .HasCharSet("utf8")
  6636. .HasCollation("utf8_general_ci");
  6637. entity.Property(e => e.SeoTitle)
  6638. .HasColumnType("varchar(100)")
  6639. .HasCharSet("utf8")
  6640. .HasCollation("utf8_general_ci");
  6641. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6642. entity.Property(e => e.Status).HasColumnType("int(11)");
  6643. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  6644. entity.Property(e => e.TradeDate)
  6645. .HasColumnType("varchar(8)")
  6646. .HasCharSet("utf8")
  6647. .HasCollation("utf8_general_ci");
  6648. entity.Property(e => e.TradeMonth)
  6649. .HasColumnType("varchar(6)")
  6650. .HasCharSet("utf8")
  6651. .HasCollation("utf8_general_ci");
  6652. entity.Property(e => e.TransferActNum).HasColumnType("int(11)");
  6653. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6654. entity.Property(e => e.UpdateMan)
  6655. .HasColumnType("varchar(50)")
  6656. .HasCharSet("utf8")
  6657. .HasCollation("utf8_general_ci");
  6658. entity.Property(e => e.UserApplyNum).HasColumnType("int(11)");
  6659. entity.Property(e => e.Version).HasColumnType("int(11)");
  6660. });
  6661. modelBuilder.Entity<StoreStockChange>(entity =>
  6662. {
  6663. entity.Property(e => e.Id).HasColumnType("int(11)");
  6664. entity.Property(e => e.ActRewardUserId).HasColumnType("int(11)");
  6665. entity.Property(e => e.ActiveStatus).HasColumnType("int(11)");
  6666. entity.Property(e => e.BindMerchant).HasColumnType("int(11)");
  6667. entity.Property(e => e.BindStatus).HasColumnType("int(11)");
  6668. entity.Property(e => e.BizBatchNo)
  6669. .HasColumnType("varchar(32)")
  6670. .HasCharSet("utf8")
  6671. .HasCollation("utf8_general_ci");
  6672. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6673. entity.Property(e => e.BrandType)
  6674. .HasColumnType("varchar(10)")
  6675. .HasCharSet("utf8")
  6676. .HasCollation("utf8_general_ci");
  6677. entity.Property(e => e.ChangeNo)
  6678. .HasColumnType("varchar(32)")
  6679. .HasCharSet("utf8")
  6680. .HasCollation("utf8_general_ci");
  6681. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6682. entity.Property(e => e.CreateMan)
  6683. .HasColumnType("varchar(50)")
  6684. .HasCharSet("utf8")
  6685. .HasCollation("utf8_general_ci");
  6686. entity.Property(e => e.DeviceModel)
  6687. .HasColumnType("varchar(32)")
  6688. .HasCharSet("utf8")
  6689. .HasCollation("utf8_general_ci");
  6690. entity.Property(e => e.DeviceType)
  6691. .HasColumnType("varchar(32)")
  6692. .HasCharSet("utf8")
  6693. .HasCollation("utf8_general_ci");
  6694. entity.Property(e => e.DeviceVendor)
  6695. .HasColumnType("varchar(32)")
  6696. .HasCharSet("utf8")
  6697. .HasCollation("utf8_general_ci");
  6698. entity.Property(e => e.ExpressNo)
  6699. .HasColumnType("varchar(32)")
  6700. .HasCharSet("utf8")
  6701. .HasCollation("utf8_general_ci");
  6702. entity.Property(e => e.FromDate).HasColumnType("datetime");
  6703. entity.Property(e => e.FromRemark)
  6704. .HasColumnType("varchar(64)")
  6705. .HasCharSet("utf8")
  6706. .HasCollation("utf8_general_ci");
  6707. entity.Property(e => e.FromUserId).HasColumnType("int(11)");
  6708. entity.Property(e => e.ProductName)
  6709. .HasColumnType("varchar(32)")
  6710. .HasCharSet("utf8")
  6711. .HasCollation("utf8_general_ci");
  6712. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6713. entity.Property(e => e.SeoDescription)
  6714. .HasColumnType("varchar(500)")
  6715. .HasCharSet("utf8")
  6716. .HasCollation("utf8_general_ci");
  6717. entity.Property(e => e.SeoKeyword)
  6718. .HasColumnType("varchar(200)")
  6719. .HasCharSet("utf8")
  6720. .HasCollation("utf8_general_ci");
  6721. entity.Property(e => e.SeoTitle)
  6722. .HasColumnType("varchar(100)")
  6723. .HasCharSet("utf8")
  6724. .HasCollation("utf8_general_ci");
  6725. entity.Property(e => e.SnNo)
  6726. .HasColumnType("varchar(32)")
  6727. .HasCharSet("utf8")
  6728. .HasCollation("utf8_general_ci");
  6729. entity.Property(e => e.SnStatus).HasColumnType("int(11)");
  6730. entity.Property(e => e.SnType).HasColumnType("int(11)");
  6731. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6732. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  6733. entity.Property(e => e.Status).HasColumnType("int(11)");
  6734. entity.Property(e => e.StockOpDirect).HasColumnType("int(11)");
  6735. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  6736. entity.Property(e => e.ToDate).HasColumnType("datetime");
  6737. entity.Property(e => e.ToRemark)
  6738. .HasColumnType("varchar(64)")
  6739. .HasCharSet("utf8")
  6740. .HasCollation("utf8_general_ci");
  6741. entity.Property(e => e.ToStoreId).HasColumnType("int(11)");
  6742. entity.Property(e => e.ToUserId).HasColumnType("int(11)");
  6743. entity.Property(e => e.TransType).HasColumnType("int(11)");
  6744. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6745. entity.Property(e => e.UpdateMan)
  6746. .HasColumnType("varchar(50)")
  6747. .HasCharSet("utf8")
  6748. .HasCollation("utf8_general_ci");
  6749. entity.Property(e => e.Version).HasColumnType("int(11)");
  6750. });
  6751. modelBuilder.Entity<StoreSwapSn>(entity =>
  6752. {
  6753. entity.Property(e => e.Id).HasColumnType("int(11)");
  6754. entity.Property(e => e.ActType).HasColumnType("int(11)");
  6755. entity.Property(e => e.ActTypeDesc)
  6756. .HasColumnType("varchar(64)")
  6757. .HasCharSet("utf8")
  6758. .HasCollation("utf8_general_ci");
  6759. entity.Property(e => e.BizStatus).HasColumnType("int(11)");
  6760. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6761. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6762. entity.Property(e => e.CreateMan)
  6763. .HasColumnType("varchar(50)")
  6764. .HasCharSet("utf8")
  6765. .HasCollation("utf8_general_ci");
  6766. entity.Property(e => e.PosType)
  6767. .HasColumnType("varchar(32)")
  6768. .HasCharSet("utf8")
  6769. .HasCollation("utf8_general_ci");
  6770. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6771. entity.Property(e => e.Remark)
  6772. .HasColumnType("varchar(128)")
  6773. .HasCharSet("utf8")
  6774. .HasCollation("utf8_general_ci");
  6775. entity.Property(e => e.RiskStatus).HasColumnType("int(11)");
  6776. entity.Property(e => e.SeoDescription)
  6777. .HasColumnType("varchar(500)")
  6778. .HasCharSet("utf8")
  6779. .HasCollation("utf8_general_ci");
  6780. entity.Property(e => e.SeoKeyword)
  6781. .HasColumnType("varchar(200)")
  6782. .HasCharSet("utf8")
  6783. .HasCollation("utf8_general_ci");
  6784. entity.Property(e => e.SeoTitle)
  6785. .HasColumnType("varchar(100)")
  6786. .HasCharSet("utf8")
  6787. .HasCollation("utf8_general_ci");
  6788. entity.Property(e => e.SnNo)
  6789. .HasColumnType("varchar(32)")
  6790. .HasCharSet("utf8")
  6791. .HasCollation("utf8_general_ci");
  6792. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  6793. entity.Property(e => e.SnType).HasColumnType("int(11)");
  6794. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6795. entity.Property(e => e.StandardDate).HasColumnType("datetime");
  6796. entity.Property(e => e.Status).HasColumnType("int(11)");
  6797. entity.Property(e => e.SwapApplyDate).HasColumnType("datetime");
  6798. entity.Property(e => e.SwapApplyOrderNo)
  6799. .HasColumnType("varchar(32)")
  6800. .HasCharSet("utf8")
  6801. .HasCollation("utf8_general_ci");
  6802. entity.Property(e => e.SwapExtProductTypes)
  6803. .HasColumnType("varchar(16)")
  6804. .HasCharSet("utf8")
  6805. .HasCollation("utf8_general_ci");
  6806. entity.Property(e => e.SwapSnNo)
  6807. .HasColumnType("varchar(32)")
  6808. .HasCharSet("utf8")
  6809. .HasCollation("utf8_general_ci");
  6810. entity.Property(e => e.SwapStatus).HasColumnType("int(11)");
  6811. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6812. entity.Property(e => e.UpdateMan)
  6813. .HasColumnType("varchar(50)")
  6814. .HasCharSet("utf8")
  6815. .HasCollation("utf8_general_ci");
  6816. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6817. entity.Property(e => e.Version).HasColumnType("int(11)");
  6818. });
  6819. modelBuilder.Entity<SysAdmin>(entity =>
  6820. {
  6821. entity.Property(e => e.Id).HasColumnType("int(11)");
  6822. entity.Property(e => e.AdminName)
  6823. .HasColumnType("varchar(50)")
  6824. .HasCharSet("utf8")
  6825. .HasCollation("utf8_general_ci");
  6826. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6827. entity.Property(e => e.CreateMan)
  6828. .HasColumnType("varchar(50)")
  6829. .HasCharSet("utf8")
  6830. .HasCollation("utf8_general_ci");
  6831. entity.Property(e => e.LastLoginDate).HasColumnType("datetime");
  6832. entity.Property(e => e.Password)
  6833. .HasColumnType("varchar(32)")
  6834. .HasCharSet("utf8")
  6835. .HasCollation("utf8_general_ci");
  6836. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6837. entity.Property(e => e.RealName)
  6838. .HasColumnType("varchar(50)")
  6839. .HasCharSet("utf8")
  6840. .HasCollation("utf8_general_ci");
  6841. entity.Property(e => e.Role)
  6842. .HasColumnType("varchar(30)")
  6843. .HasCharSet("utf8")
  6844. .HasCollation("utf8_general_ci");
  6845. entity.Property(e => e.SeoDescription)
  6846. .HasColumnType("varchar(500)")
  6847. .HasCharSet("utf8")
  6848. .HasCollation("utf8_general_ci");
  6849. entity.Property(e => e.SeoKeyword)
  6850. .HasColumnType("varchar(200)")
  6851. .HasCharSet("utf8")
  6852. .HasCollation("utf8_general_ci");
  6853. entity.Property(e => e.SeoTitle)
  6854. .HasColumnType("varchar(100)")
  6855. .HasCharSet("utf8")
  6856. .HasCollation("utf8_general_ci");
  6857. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6858. entity.Property(e => e.Status).HasColumnType("int(11)");
  6859. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6860. entity.Property(e => e.UpdateMan)
  6861. .HasColumnType("varchar(50)")
  6862. .HasCharSet("utf8")
  6863. .HasCollation("utf8_general_ci");
  6864. entity.Property(e => e.Version).HasColumnType("int(11)");
  6865. });
  6866. modelBuilder.Entity<SysAdminRole>(entity =>
  6867. {
  6868. entity.Property(e => e.Id).HasColumnType("int(11)");
  6869. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6870. entity.Property(e => e.CreateMan)
  6871. .HasColumnType("varchar(50)")
  6872. .HasCharSet("utf8")
  6873. .HasCollation("utf8_general_ci");
  6874. entity.Property(e => e.Details)
  6875. .HasColumnType("longtext")
  6876. .HasCharSet("utf8")
  6877. .HasCollation("utf8_general_ci");
  6878. entity.Property(e => e.Name)
  6879. .HasColumnType("varchar(50)")
  6880. .HasCharSet("utf8")
  6881. .HasCollation("utf8_general_ci");
  6882. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6883. entity.Property(e => e.RightInfo)
  6884. .HasColumnType("longtext")
  6885. .HasCharSet("utf8")
  6886. .HasCollation("utf8_general_ci");
  6887. entity.Property(e => e.SeoDescription)
  6888. .HasColumnType("varchar(500)")
  6889. .HasCharSet("utf8")
  6890. .HasCollation("utf8_general_ci");
  6891. entity.Property(e => e.SeoKeyword)
  6892. .HasColumnType("varchar(200)")
  6893. .HasCharSet("utf8")
  6894. .HasCollation("utf8_general_ci");
  6895. entity.Property(e => e.SeoTitle)
  6896. .HasColumnType("varchar(100)")
  6897. .HasCharSet("utf8")
  6898. .HasCollation("utf8_general_ci");
  6899. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6900. entity.Property(e => e.Status).HasColumnType("int(11)");
  6901. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6902. entity.Property(e => e.UpdateMan)
  6903. .HasColumnType("varchar(50)")
  6904. .HasCharSet("utf8")
  6905. .HasCollation("utf8_general_ci");
  6906. entity.Property(e => e.Version).HasColumnType("int(11)");
  6907. });
  6908. modelBuilder.Entity<SysLog>(entity =>
  6909. {
  6910. entity.Property(e => e.Id).HasColumnType("int(11)");
  6911. entity.Property(e => e.Contents)
  6912. .HasColumnType("varchar(200)")
  6913. .HasCharSet("utf8")
  6914. .HasCollation("utf8_general_ci");
  6915. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6916. entity.Property(e => e.CreateMan)
  6917. .HasColumnType("varchar(50)")
  6918. .HasCharSet("utf8")
  6919. .HasCollation("utf8_general_ci");
  6920. });
  6921. modelBuilder.Entity<SysRechargeRecord>(entity =>
  6922. {
  6923. entity.Property(e => e.Id).HasColumnType("int(11)");
  6924. entity.Property(e => e.Amount).HasColumnType("decimal(18,2)");
  6925. entity.Property(e => e.BatchCode)
  6926. .HasColumnType("varchar(32)")
  6927. .HasCharSet("utf8")
  6928. .HasCollation("utf8_general_ci");
  6929. entity.Property(e => e.BizTime).HasColumnType("datetime");
  6930. entity.Property(e => e.BizType).HasColumnType("int(11)");
  6931. entity.Property(e => e.ClientIp)
  6932. .HasColumnType("varchar(15)")
  6933. .HasCharSet("utf8")
  6934. .HasCollation("utf8_general_ci");
  6935. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6936. entity.Property(e => e.CreateMan)
  6937. .HasColumnType("varchar(50)")
  6938. .HasCharSet("utf8")
  6939. .HasCollation("utf8_general_ci");
  6940. entity.Property(e => e.PartnerTradeNo)
  6941. .HasColumnType("varchar(32)")
  6942. .HasCharSet("utf8")
  6943. .HasCollation("utf8_general_ci");
  6944. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  6945. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6946. entity.Property(e => e.RechargeRecNo)
  6947. .HasColumnType("varchar(32)")
  6948. .HasCharSet("utf8")
  6949. .HasCollation("utf8_general_ci");
  6950. entity.Property(e => e.SeoDescription)
  6951. .HasColumnType("varchar(500)")
  6952. .HasCharSet("utf8")
  6953. .HasCollation("utf8_general_ci");
  6954. entity.Property(e => e.SeoKeyword)
  6955. .HasColumnType("varchar(200)")
  6956. .HasCharSet("utf8")
  6957. .HasCollation("utf8_general_ci");
  6958. entity.Property(e => e.SeoTitle)
  6959. .HasColumnType("varchar(100)")
  6960. .HasCharSet("utf8")
  6961. .HasCollation("utf8_general_ci");
  6962. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6963. entity.Property(e => e.Status).HasColumnType("int(11)");
  6964. entity.Property(e => e.SyncStatus).HasColumnType("int(11)");
  6965. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6966. entity.Property(e => e.UpdateMan)
  6967. .HasColumnType("varchar(50)")
  6968. .HasCharSet("utf8")
  6969. .HasCollation("utf8_general_ci");
  6970. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6971. entity.Property(e => e.Version).HasColumnType("int(11)");
  6972. });
  6973. modelBuilder.Entity<SystemSet>(entity =>
  6974. {
  6975. entity.Property(e => e.Id).HasColumnType("int(11)");
  6976. entity.Property(e => e.Address)
  6977. .HasColumnType("varchar(100)")
  6978. .HasCharSet("utf8")
  6979. .HasCollation("utf8_general_ci");
  6980. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6981. entity.Property(e => e.CreateMan)
  6982. .HasColumnType("varchar(50)")
  6983. .HasCharSet("utf8")
  6984. .HasCollation("utf8_general_ci");
  6985. entity.Property(e => e.IndexDescription)
  6986. .HasColumnType("longtext")
  6987. .HasCharSet("utf8")
  6988. .HasCollation("utf8_general_ci");
  6989. entity.Property(e => e.IndexKeyword)
  6990. .HasColumnType("varchar(200)")
  6991. .HasCharSet("utf8")
  6992. .HasCollation("utf8_general_ci");
  6993. entity.Property(e => e.Logo)
  6994. .HasColumnType("varchar(200)")
  6995. .HasCharSet("utf8")
  6996. .HasCollation("utf8_general_ci");
  6997. entity.Property(e => e.Phone)
  6998. .HasColumnType("varchar(100)")
  6999. .HasCharSet("utf8")
  7000. .HasCollation("utf8_general_ci");
  7001. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7002. entity.Property(e => e.RightInfo)
  7003. .HasColumnType("longtext")
  7004. .HasCharSet("utf8")
  7005. .HasCollation("utf8_general_ci");
  7006. entity.Property(e => e.SeoDescription)
  7007. .HasColumnType("varchar(500)")
  7008. .HasCharSet("utf8")
  7009. .HasCollation("utf8_general_ci");
  7010. entity.Property(e => e.SeoKeyword)
  7011. .HasColumnType("varchar(200)")
  7012. .HasCharSet("utf8")
  7013. .HasCollation("utf8_general_ci");
  7014. entity.Property(e => e.SeoTitle)
  7015. .HasColumnType("varchar(100)")
  7016. .HasCharSet("utf8")
  7017. .HasCollation("utf8_general_ci");
  7018. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7019. entity.Property(e => e.StartAdPhoto)
  7020. .HasColumnType("varchar(200)")
  7021. .HasCharSet("utf8")
  7022. .HasCollation("utf8_general_ci");
  7023. entity.Property(e => e.Status).HasColumnType("int(11)");
  7024. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7025. entity.Property(e => e.UpdateMan)
  7026. .HasColumnType("varchar(50)")
  7027. .HasCharSet("utf8")
  7028. .HasCollation("utf8_general_ci");
  7029. entity.Property(e => e.UploadAutoWater)
  7030. .HasColumnType("bit(1)")
  7031. .HasDefaultValueSql("b'0'");
  7032. entity.Property(e => e.UploadAutoZoom)
  7033. .HasColumnType("bit(1)")
  7034. .HasDefaultValueSql("b'0'");
  7035. entity.Property(e => e.UploadAutoZoomHeight).HasColumnType("int(11)");
  7036. entity.Property(e => e.UploadAutoZoomQuality).HasColumnType("int(11)");
  7037. entity.Property(e => e.UploadAutoZoomWidth).HasColumnType("int(11)");
  7038. entity.Property(e => e.UploadExt)
  7039. .HasColumnType("varchar(100)")
  7040. .HasCharSet("utf8")
  7041. .HasCollation("utf8_general_ci");
  7042. entity.Property(e => e.UploadMaxSize).HasColumnType("int(11)");
  7043. entity.Property(e => e.UploadOss)
  7044. .HasColumnType("bit(1)")
  7045. .HasDefaultValueSql("b'0'");
  7046. entity.Property(e => e.UploadWaterPath)
  7047. .HasColumnType("varchar(200)")
  7048. .HasCharSet("utf8")
  7049. .HasCollation("utf8_general_ci");
  7050. entity.Property(e => e.UploadWaterPosition)
  7051. .HasColumnType("varchar(15)")
  7052. .HasCharSet("utf8")
  7053. .HasCollation("utf8_general_ci");
  7054. entity.Property(e => e.Version).HasColumnType("int(11)");
  7055. entity.Property(e => e.WebName)
  7056. .HasColumnType("varchar(50)")
  7057. .HasCharSet("utf8")
  7058. .HasCollation("utf8_general_ci");
  7059. entity.Property(e => e.WebStatCode)
  7060. .HasColumnType("longtext")
  7061. .HasCharSet("utf8")
  7062. .HasCollation("utf8_general_ci");
  7063. entity.Property(e => e.WebUrl)
  7064. .HasColumnType("varchar(200)")
  7065. .HasCharSet("utf8")
  7066. .HasCollation("utf8_general_ci");
  7067. });
  7068. modelBuilder.Entity<TeamApply>(entity =>
  7069. {
  7070. entity.Property(e => e.Id).HasColumnType("int(11)");
  7071. entity.Property(e => e.Areas)
  7072. .HasColumnType("varchar(30)")
  7073. .HasCharSet("utf8")
  7074. .HasCollation("utf8_general_ci");
  7075. entity.Property(e => e.AuditRemark)
  7076. .HasColumnType("varchar(64)")
  7077. .HasCharSet("utf8")
  7078. .HasCollation("utf8_general_ci");
  7079. entity.Property(e => e.AuditResult).HasColumnType("int(11)");
  7080. entity.Property(e => e.AuditTime).HasColumnType("datetime");
  7081. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7082. entity.Property(e => e.CreateMan)
  7083. .HasColumnType("varchar(50)")
  7084. .HasCharSet("utf8")
  7085. .HasCollation("utf8_general_ci");
  7086. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  7087. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  7088. entity.Property(e => e.EnterEndDate).HasColumnType("datetime");
  7089. entity.Property(e => e.EnterStartDate).HasColumnType("datetime");
  7090. entity.Property(e => e.ManagerName)
  7091. .HasColumnType("varchar(32)")
  7092. .HasCharSet("utf8")
  7093. .HasCollation("utf8_general_ci");
  7094. entity.Property(e => e.ManagerNo)
  7095. .HasColumnType("varchar(32)")
  7096. .HasCharSet("utf8")
  7097. .HasCollation("utf8_general_ci");
  7098. entity.Property(e => e.MaxUserNum).HasColumnType("int(11)");
  7099. entity.Property(e => e.MinUserNum).HasColumnType("int(11)");
  7100. entity.Property(e => e.NotifyFlag).HasColumnType("int(11)");
  7101. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7102. entity.Property(e => e.Remark)
  7103. .HasColumnType("varchar(64)")
  7104. .HasCharSet("utf8")
  7105. .HasCollation("utf8_general_ci");
  7106. entity.Property(e => e.SeoDescription)
  7107. .HasColumnType("varchar(500)")
  7108. .HasCharSet("utf8")
  7109. .HasCollation("utf8_general_ci");
  7110. entity.Property(e => e.SeoKeyword)
  7111. .HasColumnType("varchar(200)")
  7112. .HasCharSet("utf8")
  7113. .HasCollation("utf8_general_ci");
  7114. entity.Property(e => e.SeoTitle)
  7115. .HasColumnType("varchar(100)")
  7116. .HasCharSet("utf8")
  7117. .HasCollation("utf8_general_ci");
  7118. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7119. entity.Property(e => e.Status).HasColumnType("int(11)");
  7120. entity.Property(e => e.TeamName)
  7121. .HasColumnType("varchar(32)")
  7122. .HasCharSet("utf8")
  7123. .HasCollation("utf8_general_ci");
  7124. entity.Property(e => e.TeamNo)
  7125. .HasColumnType("varchar(32)")
  7126. .HasCharSet("utf8")
  7127. .HasCollation("utf8_general_ci");
  7128. entity.Property(e => e.TeamStatus).HasColumnType("int(11)");
  7129. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7130. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7131. entity.Property(e => e.UpdateMan)
  7132. .HasColumnType("varchar(50)")
  7133. .HasCharSet("utf8")
  7134. .HasCollation("utf8_general_ci");
  7135. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7136. entity.Property(e => e.Version).HasColumnType("int(11)");
  7137. entity.Property(e => e.WatchWord)
  7138. .HasColumnType("varchar(32)")
  7139. .HasCharSet("utf8")
  7140. .HasCollation("utf8_general_ci");
  7141. });
  7142. modelBuilder.Entity<TeamApplyForTeamName>(entity =>
  7143. {
  7144. entity.HasKey(e => e.TeamName)
  7145. .HasName("PRIMARY");
  7146. entity.Property(e => e.TeamName)
  7147. .HasColumnType("varchar(32)")
  7148. .HasCharSet("utf8")
  7149. .HasCollation("utf8_general_ci");
  7150. entity.Property(e => e.TeamId).HasColumnType("int(11)");
  7151. });
  7152. modelBuilder.Entity<TeamApplyForTeamNo>(entity =>
  7153. {
  7154. entity.HasKey(e => e.TeamNo)
  7155. .HasName("PRIMARY");
  7156. entity.Property(e => e.TeamNo)
  7157. .HasColumnType("varchar(32)")
  7158. .HasCharSet("utf8")
  7159. .HasCollation("utf8_general_ci");
  7160. entity.Property(e => e.TeamId).HasColumnType("int(11)");
  7161. });
  7162. modelBuilder.Entity<TeamBlackList>(entity =>
  7163. {
  7164. entity.Property(e => e.Id).HasColumnType("int(11)");
  7165. entity.Property(e => e.BlackStatus).HasColumnType("int(11)");
  7166. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7167. entity.Property(e => e.CreateMan)
  7168. .HasColumnType("varchar(50)")
  7169. .HasCharSet("utf8")
  7170. .HasCollation("utf8_general_ci");
  7171. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  7172. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  7173. entity.Property(e => e.ManagerName)
  7174. .HasColumnType("varchar(32)")
  7175. .HasCharSet("utf8")
  7176. .HasCollation("utf8_general_ci");
  7177. entity.Property(e => e.ManagerNo)
  7178. .HasColumnType("varchar(32)")
  7179. .HasCharSet("utf8")
  7180. .HasCollation("utf8_general_ci");
  7181. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7182. entity.Property(e => e.Remark)
  7183. .HasColumnType("varchar(64)")
  7184. .HasCharSet("utf8")
  7185. .HasCollation("utf8_general_ci");
  7186. entity.Property(e => e.SeoDescription)
  7187. .HasColumnType("varchar(500)")
  7188. .HasCharSet("utf8")
  7189. .HasCollation("utf8_general_ci");
  7190. entity.Property(e => e.SeoKeyword)
  7191. .HasColumnType("varchar(200)")
  7192. .HasCharSet("utf8")
  7193. .HasCollation("utf8_general_ci");
  7194. entity.Property(e => e.SeoTitle)
  7195. .HasColumnType("varchar(100)")
  7196. .HasCharSet("utf8")
  7197. .HasCollation("utf8_general_ci");
  7198. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7199. entity.Property(e => e.Status).HasColumnType("int(11)");
  7200. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7201. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7202. entity.Property(e => e.UpdateMan)
  7203. .HasColumnType("varchar(50)")
  7204. .HasCharSet("utf8")
  7205. .HasCollation("utf8_general_ci");
  7206. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7207. entity.Property(e => e.Version).HasColumnType("int(11)");
  7208. });
  7209. modelBuilder.Entity<TeamConfig>(entity =>
  7210. {
  7211. entity.Property(e => e.Id).HasColumnType("int(11)");
  7212. entity.Property(e => e.BlacklistCycle).HasColumnType("int(11)");
  7213. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7214. entity.Property(e => e.CreateMan)
  7215. .HasColumnType("varchar(50)")
  7216. .HasCharSet("utf8")
  7217. .HasCollation("utf8_general_ci");
  7218. entity.Property(e => e.EnterEndMin).HasColumnType("int(11)");
  7219. entity.Property(e => e.LimitBuddyNo)
  7220. .HasColumnType("varchar(128)")
  7221. .HasCharSet("utf8")
  7222. .HasCollation("utf8_general_ci");
  7223. entity.Property(e => e.MaxCycleNum).HasColumnType("int(11)");
  7224. entity.Property(e => e.MaxStartDayLimit).HasColumnType("int(11)");
  7225. entity.Property(e => e.MaxUserNum).HasColumnType("int(11)");
  7226. entity.Property(e => e.MinCycleNum).HasColumnType("int(11)");
  7227. entity.Property(e => e.MinStartDayLimit).HasColumnType("int(11)");
  7228. entity.Property(e => e.MinUserNum).HasColumnType("int(11)");
  7229. entity.Property(e => e.OverlineStatus)
  7230. .HasColumnType("bit(1)")
  7231. .HasDefaultValueSql("b'0'");
  7232. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7233. entity.Property(e => e.Remark)
  7234. .HasColumnType("varchar(64)")
  7235. .HasCharSet("utf8")
  7236. .HasCollation("utf8_general_ci");
  7237. entity.Property(e => e.SeoDescription)
  7238. .HasColumnType("varchar(500)")
  7239. .HasCharSet("utf8")
  7240. .HasCollation("utf8_general_ci");
  7241. entity.Property(e => e.SeoKeyword)
  7242. .HasColumnType("varchar(200)")
  7243. .HasCharSet("utf8")
  7244. .HasCollation("utf8_general_ci");
  7245. entity.Property(e => e.SeoTitle)
  7246. .HasColumnType("varchar(100)")
  7247. .HasCharSet("utf8")
  7248. .HasCollation("utf8_general_ci");
  7249. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7250. entity.Property(e => e.Status).HasColumnType("int(11)");
  7251. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7252. entity.Property(e => e.UpdateMan)
  7253. .HasColumnType("varchar(50)")
  7254. .HasCharSet("utf8")
  7255. .HasCollation("utf8_general_ci");
  7256. entity.Property(e => e.Version).HasColumnType("int(11)");
  7257. });
  7258. modelBuilder.Entity<TeamDayTop>(entity =>
  7259. {
  7260. entity.Property(e => e.Id).HasColumnType("int(11)");
  7261. entity.Property(e => e.ActMerNum).HasColumnType("int(11)");
  7262. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  7263. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7264. entity.Property(e => e.CreateMan)
  7265. .HasColumnType("varchar(50)")
  7266. .HasCharSet("utf8")
  7267. .HasCollation("utf8_general_ci");
  7268. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7269. entity.Property(e => e.Remark)
  7270. .HasColumnType("varchar(64)")
  7271. .HasCharSet("utf8")
  7272. .HasCollation("utf8_general_ci");
  7273. entity.Property(e => e.SeoDescription)
  7274. .HasColumnType("varchar(500)")
  7275. .HasCharSet("utf8")
  7276. .HasCollation("utf8_general_ci");
  7277. entity.Property(e => e.SeoKeyword)
  7278. .HasColumnType("varchar(200)")
  7279. .HasCharSet("utf8")
  7280. .HasCollation("utf8_general_ci");
  7281. entity.Property(e => e.SeoTitle)
  7282. .HasColumnType("varchar(100)")
  7283. .HasCharSet("utf8")
  7284. .HasCollation("utf8_general_ci");
  7285. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7286. entity.Property(e => e.StatDate)
  7287. .HasColumnType("varchar(8)")
  7288. .HasCharSet("utf8")
  7289. .HasCollation("utf8_general_ci");
  7290. entity.Property(e => e.StatMonth)
  7291. .HasColumnType("varchar(6)")
  7292. .HasCharSet("utf8")
  7293. .HasCollation("utf8_general_ci");
  7294. entity.Property(e => e.Status).HasColumnType("int(11)");
  7295. entity.Property(e => e.TeamActMerNum).HasColumnType("int(11)");
  7296. entity.Property(e => e.TeamEndDate).HasColumnType("datetime");
  7297. entity.Property(e => e.TeamId).HasColumnType("int(11)");
  7298. entity.Property(e => e.TeamStartDate).HasColumnType("datetime");
  7299. entity.Property(e => e.TeamUserId).HasColumnType("int(11)");
  7300. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7301. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7302. entity.Property(e => e.UpdateMan)
  7303. .HasColumnType("varchar(50)")
  7304. .HasCharSet("utf8")
  7305. .HasCollation("utf8_general_ci");
  7306. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7307. entity.Property(e => e.Version).HasColumnType("int(11)");
  7308. });
  7309. modelBuilder.Entity<TeamOfferApply>(entity =>
  7310. {
  7311. entity.Property(e => e.Id).HasColumnType("int(11)");
  7312. entity.Property(e => e.Areas)
  7313. .HasColumnType("varchar(30)")
  7314. .HasCharSet("utf8")
  7315. .HasCollation("utf8_general_ci");
  7316. entity.Property(e => e.AuditRemark)
  7317. .HasColumnType("varchar(64)")
  7318. .HasCharSet("utf8")
  7319. .HasCollation("utf8_general_ci");
  7320. entity.Property(e => e.AuditResult).HasColumnType("int(11)");
  7321. entity.Property(e => e.AuditTime).HasColumnType("datetime");
  7322. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7323. entity.Property(e => e.CreateMan)
  7324. .HasColumnType("varchar(50)")
  7325. .HasCharSet("utf8")
  7326. .HasCollation("utf8_general_ci");
  7327. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  7328. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  7329. entity.Property(e => e.EnterDate).HasColumnType("datetime");
  7330. entity.Property(e => e.ManagerName)
  7331. .HasColumnType("varchar(32)")
  7332. .HasCharSet("utf8")
  7333. .HasCollation("utf8_general_ci");
  7334. entity.Property(e => e.ManagerNo)
  7335. .HasColumnType("varchar(32)")
  7336. .HasCharSet("utf8")
  7337. .HasCollation("utf8_general_ci");
  7338. entity.Property(e => e.NotifyFlag).HasColumnType("int(11)");
  7339. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7340. entity.Property(e => e.Remark)
  7341. .HasColumnType("varchar(64)")
  7342. .HasCharSet("utf8")
  7343. .HasCollation("utf8_general_ci");
  7344. entity.Property(e => e.SeoDescription)
  7345. .HasColumnType("varchar(500)")
  7346. .HasCharSet("utf8")
  7347. .HasCollation("utf8_general_ci");
  7348. entity.Property(e => e.SeoKeyword)
  7349. .HasColumnType("varchar(200)")
  7350. .HasCharSet("utf8")
  7351. .HasCollation("utf8_general_ci");
  7352. entity.Property(e => e.SeoTitle)
  7353. .HasColumnType("varchar(100)")
  7354. .HasCharSet("utf8")
  7355. .HasCollation("utf8_general_ci");
  7356. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7357. entity.Property(e => e.Status).HasColumnType("int(11)");
  7358. entity.Property(e => e.TeamApplyStatus).HasColumnType("int(11)");
  7359. entity.Property(e => e.TeamId).HasColumnType("int(11)");
  7360. entity.Property(e => e.TeamLeader).HasColumnType("int(11)");
  7361. entity.Property(e => e.TeamStatus).HasColumnType("int(11)");
  7362. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7363. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7364. entity.Property(e => e.UpdateMan)
  7365. .HasColumnType("varchar(50)")
  7366. .HasCharSet("utf8")
  7367. .HasCollation("utf8_general_ci");
  7368. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7369. entity.Property(e => e.Version).HasColumnType("int(11)");
  7370. });
  7371. modelBuilder.Entity<TeamPersonDayTop>(entity =>
  7372. {
  7373. entity.Property(e => e.Id).HasColumnType("int(11)");
  7374. entity.Property(e => e.ActMerNum).HasColumnType("int(11)");
  7375. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  7376. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7377. entity.Property(e => e.CreateMan)
  7378. .HasColumnType("varchar(50)")
  7379. .HasCharSet("utf8")
  7380. .HasCollation("utf8_general_ci");
  7381. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7382. entity.Property(e => e.Remark)
  7383. .HasColumnType("varchar(64)")
  7384. .HasCharSet("utf8")
  7385. .HasCollation("utf8_general_ci");
  7386. entity.Property(e => e.SeoDescription)
  7387. .HasColumnType("varchar(500)")
  7388. .HasCharSet("utf8")
  7389. .HasCollation("utf8_general_ci");
  7390. entity.Property(e => e.SeoKeyword)
  7391. .HasColumnType("varchar(200)")
  7392. .HasCharSet("utf8")
  7393. .HasCollation("utf8_general_ci");
  7394. entity.Property(e => e.SeoTitle)
  7395. .HasColumnType("varchar(100)")
  7396. .HasCharSet("utf8")
  7397. .HasCollation("utf8_general_ci");
  7398. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7399. entity.Property(e => e.StatDate)
  7400. .HasColumnType("varchar(8)")
  7401. .HasCharSet("utf8")
  7402. .HasCollation("utf8_general_ci");
  7403. entity.Property(e => e.StatMonth)
  7404. .HasColumnType("varchar(6)")
  7405. .HasCharSet("utf8")
  7406. .HasCollation("utf8_general_ci");
  7407. entity.Property(e => e.Status).HasColumnType("int(11)");
  7408. entity.Property(e => e.TeamActMerNum).HasColumnType("int(11)");
  7409. entity.Property(e => e.TeamEndDate).HasColumnType("datetime");
  7410. entity.Property(e => e.TeamId).HasColumnType("int(11)");
  7411. entity.Property(e => e.TeamStartDate).HasColumnType("datetime");
  7412. entity.Property(e => e.TeamUserId).HasColumnType("int(11)");
  7413. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7414. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7415. entity.Property(e => e.UpdateMan)
  7416. .HasColumnType("varchar(50)")
  7417. .HasCharSet("utf8")
  7418. .HasCollation("utf8_general_ci");
  7419. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7420. entity.Property(e => e.Version).HasColumnType("int(11)");
  7421. });
  7422. modelBuilder.Entity<TradeDaySummary>(entity =>
  7423. {
  7424. entity.Property(e => e.Id).HasColumnType("int(11)");
  7425. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  7426. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7427. entity.Property(e => e.CreateMan)
  7428. .HasColumnType("varchar(50)")
  7429. .HasCharSet("utf8")
  7430. .HasCollation("utf8_general_ci");
  7431. entity.Property(e => e.HelpDirectCreditTradeAmt).HasColumnType("decimal(18,2)");
  7432. entity.Property(e => e.HelpDirectDebitCapNum).HasColumnType("decimal(18,2)");
  7433. entity.Property(e => e.HelpDirectDebitCapTradeAmt).HasColumnType("decimal(18,2)");
  7434. entity.Property(e => e.HelpDirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  7435. entity.Property(e => e.HelpDirectNonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7436. entity.Property(e => e.HelpDirectNonQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7437. entity.Property(e => e.HelpDirectQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7438. entity.Property(e => e.HelpDirectQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7439. entity.Property(e => e.HelpDirectTradeAmt).HasColumnType("decimal(18,2)");
  7440. entity.Property(e => e.HelpNonDirectCreditTradeAmt).HasColumnType("decimal(18,2)");
  7441. entity.Property(e => e.HelpNonDirectDebitCapNum).HasColumnType("decimal(18,2)");
  7442. entity.Property(e => e.HelpNonDirectDebitCapTradeAmt).HasColumnType("decimal(18,2)");
  7443. entity.Property(e => e.HelpNonDirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  7444. entity.Property(e => e.HelpNonDirectNonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7445. entity.Property(e => e.HelpNonDirectNonQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7446. entity.Property(e => e.HelpNonDirectQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7447. entity.Property(e => e.HelpNonDirectQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7448. entity.Property(e => e.HelpNonDirectTradeAmt).HasColumnType("decimal(18,2)");
  7449. entity.Property(e => e.MgrName)
  7450. .HasColumnType("varchar(32)")
  7451. .HasCharSet("utf8")
  7452. .HasCollation("utf8_general_ci");
  7453. entity.Property(e => e.MgrNo)
  7454. .HasColumnType("varchar(16)")
  7455. .HasCharSet("utf8")
  7456. .HasCollation("utf8_general_ci");
  7457. entity.Property(e => e.NotHelpDirectCreditTradeAmt).HasColumnType("decimal(18,2)");
  7458. entity.Property(e => e.NotHelpDirectDebitCapNum).HasColumnType("int(11)");
  7459. entity.Property(e => e.NotHelpDirectDebitCapTradeAmt).HasColumnType("decimal(18,2)");
  7460. entity.Property(e => e.NotHelpDirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  7461. entity.Property(e => e.NotHelpDirectNonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7462. entity.Property(e => e.NotHelpDirectNonQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7463. entity.Property(e => e.NotHelpDirectQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7464. entity.Property(e => e.NotHelpDirectQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7465. entity.Property(e => e.NotHelpDirectTradeAmt).HasColumnType("decimal(18,2)");
  7466. entity.Property(e => e.NotHelpNonDirectCreditTradeAmt).HasColumnType("decimal(18,2)");
  7467. entity.Property(e => e.NotHelpNonDirectDebitCapNum).HasColumnType("int(11)");
  7468. entity.Property(e => e.NotHelpNonDirectDebitCapTradeAmt).HasColumnType("decimal(18,2)");
  7469. entity.Property(e => e.NotHelpNonDirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  7470. entity.Property(e => e.NotHelpNonDirectNonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7471. entity.Property(e => e.NotHelpNonDirectNonQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7472. entity.Property(e => e.NotHelpNonDirectQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7473. entity.Property(e => e.NotHelpNonDirectQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7474. entity.Property(e => e.NotHelpNonDirectTradeAmt).HasColumnType("decimal(18,2)");
  7475. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7476. entity.Property(e => e.SeoDescription)
  7477. .HasColumnType("varchar(500)")
  7478. .HasCharSet("utf8")
  7479. .HasCollation("utf8_general_ci");
  7480. entity.Property(e => e.SeoKeyword)
  7481. .HasColumnType("varchar(200)")
  7482. .HasCharSet("utf8")
  7483. .HasCollation("utf8_general_ci");
  7484. entity.Property(e => e.SeoTitle)
  7485. .HasColumnType("varchar(100)")
  7486. .HasCharSet("utf8")
  7487. .HasCollation("utf8_general_ci");
  7488. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7489. entity.Property(e => e.Status).HasColumnType("int(11)");
  7490. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7491. entity.Property(e => e.TradeDate)
  7492. .HasColumnType("varchar(8)")
  7493. .HasCharSet("utf8")
  7494. .HasCollation("utf8_general_ci");
  7495. entity.Property(e => e.TradeMonth)
  7496. .HasColumnType("varchar(6)")
  7497. .HasCharSet("utf8")
  7498. .HasCollation("utf8_general_ci");
  7499. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7500. entity.Property(e => e.UpdateMan)
  7501. .HasColumnType("varchar(50)")
  7502. .HasCharSet("utf8")
  7503. .HasCollation("utf8_general_ci");
  7504. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7505. entity.Property(e => e.Version).HasColumnType("int(11)");
  7506. });
  7507. modelBuilder.Entity<TradeRecord>(entity =>
  7508. {
  7509. entity.Property(e => e.Id).HasColumnType("int(11)");
  7510. entity.Property(e => e.BankCardType).HasColumnType("int(11)");
  7511. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  7512. entity.Property(e => e.CapFlag).HasColumnType("int(11)");
  7513. entity.Property(e => e.ClearDate).HasColumnType("datetime");
  7514. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7515. entity.Property(e => e.CreateMan)
  7516. .HasColumnType("varchar(50)")
  7517. .HasCharSet("utf8")
  7518. .HasCollation("utf8_general_ci");
  7519. entity.Property(e => e.DirectFlag)
  7520. .HasColumnType("bit(1)")
  7521. .HasDefaultValueSql("b'0'");
  7522. entity.Property(e => e.HelpMonthCount).HasColumnType("int(11)");
  7523. entity.Property(e => e.MerBuddyType).HasColumnType("int(11)");
  7524. entity.Property(e => e.MerHelpFlag)
  7525. .HasColumnType("bit(1)")
  7526. .HasDefaultValueSql("b'0'");
  7527. entity.Property(e => e.MerNo)
  7528. .HasColumnType("varchar(32)")
  7529. .HasCharSet("utf8")
  7530. .HasCollation("utf8_general_ci");
  7531. entity.Property(e => e.MerUserId).HasColumnType("int(11)");
  7532. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  7533. entity.Property(e => e.QrPayFlag).HasColumnType("int(11)");
  7534. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7535. entity.Property(e => e.RecordNo)
  7536. .HasColumnType("varchar(32)")
  7537. .HasCharSet("utf8")
  7538. .HasCollation("utf8_general_ci");
  7539. entity.Property(e => e.Remark)
  7540. .HasColumnType("varchar(64)")
  7541. .HasCharSet("utf8")
  7542. .HasCollation("utf8_general_ci");
  7543. entity.Property(e => e.SeoDescription)
  7544. .HasColumnType("varchar(500)")
  7545. .HasCharSet("utf8")
  7546. .HasCollation("utf8_general_ci");
  7547. entity.Property(e => e.SeoKeyword)
  7548. .HasColumnType("varchar(200)")
  7549. .HasCharSet("utf8")
  7550. .HasCollation("utf8_general_ci");
  7551. entity.Property(e => e.SeoTitle)
  7552. .HasColumnType("varchar(100)")
  7553. .HasCharSet("utf8")
  7554. .HasCollation("utf8_general_ci");
  7555. entity.Property(e => e.SnNo)
  7556. .HasColumnType("varchar(32)")
  7557. .HasCharSet("utf8")
  7558. .HasCollation("utf8_general_ci");
  7559. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7560. entity.Property(e => e.Status).HasColumnType("int(11)");
  7561. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7562. entity.Property(e => e.TradeAmount).HasColumnType("decimal(18,2)");
  7563. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  7564. entity.Property(e => e.TradeSerialNo)
  7565. .HasColumnType("varchar(48)")
  7566. .HasCharSet("utf8")
  7567. .HasCollation("utf8_general_ci");
  7568. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7569. entity.Property(e => e.UpdateMan)
  7570. .HasColumnType("varchar(50)")
  7571. .HasCharSet("utf8")
  7572. .HasCollation("utf8_general_ci");
  7573. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7574. entity.Property(e => e.Version).HasColumnType("int(11)");
  7575. });
  7576. modelBuilder.Entity<UploadParams>(entity =>
  7577. {
  7578. entity.Property(e => e.Id).HasColumnType("int(11)");
  7579. entity.Property(e => e.ColumnEnName)
  7580. .HasColumnType("varchar(50)")
  7581. .HasCharSet("utf8")
  7582. .HasCollation("utf8_general_ci");
  7583. entity.Property(e => e.ColumnName)
  7584. .HasColumnType("varchar(50)")
  7585. .HasCharSet("utf8")
  7586. .HasCollation("utf8_general_ci");
  7587. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7588. entity.Property(e => e.CreateMan)
  7589. .HasColumnType("varchar(50)")
  7590. .HasCharSet("utf8")
  7591. .HasCollation("utf8_general_ci");
  7592. entity.Property(e => e.ParamString)
  7593. .HasColumnType("varchar(200)")
  7594. .HasCharSet("utf8")
  7595. .HasCollation("utf8_general_ci");
  7596. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7597. entity.Property(e => e.SeoDescription)
  7598. .HasColumnType("varchar(500)")
  7599. .HasCharSet("utf8")
  7600. .HasCollation("utf8_general_ci");
  7601. entity.Property(e => e.SeoKeyword)
  7602. .HasColumnType("varchar(200)")
  7603. .HasCharSet("utf8")
  7604. .HasCollation("utf8_general_ci");
  7605. entity.Property(e => e.SeoTitle)
  7606. .HasColumnType("varchar(100)")
  7607. .HasCharSet("utf8")
  7608. .HasCollation("utf8_general_ci");
  7609. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7610. entity.Property(e => e.Status).HasColumnType("int(11)");
  7611. entity.Property(e => e.TableEnName)
  7612. .HasColumnType("varchar(50)")
  7613. .HasCharSet("utf8")
  7614. .HasCollation("utf8_general_ci");
  7615. entity.Property(e => e.TableName)
  7616. .HasColumnType("varchar(50)")
  7617. .HasCharSet("utf8")
  7618. .HasCollation("utf8_general_ci");
  7619. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7620. entity.Property(e => e.UpdateMan)
  7621. .HasColumnType("varchar(50)")
  7622. .HasCharSet("utf8")
  7623. .HasCollation("utf8_general_ci");
  7624. entity.Property(e => e.Version).HasColumnType("int(11)");
  7625. });
  7626. modelBuilder.Entity<UserAccount>(entity =>
  7627. {
  7628. entity.Property(e => e.Id).HasColumnType("int(11)");
  7629. entity.Property(e => e.AccountStatus).HasColumnType("int(11)");
  7630. entity.Property(e => e.BalanceAmount).HasColumnType("decimal(18,2)");
  7631. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7632. entity.Property(e => e.CreateMan)
  7633. .HasColumnType("varchar(50)")
  7634. .HasCharSet("utf8")
  7635. .HasCollation("utf8_general_ci");
  7636. entity.Property(e => e.FreezeAmount).HasColumnType("decimal(18,2)");
  7637. entity.Property(e => e.LockStatus).HasColumnType("int(11)");
  7638. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7639. entity.Property(e => e.SeoDescription)
  7640. .HasColumnType("varchar(500)")
  7641. .HasCharSet("utf8")
  7642. .HasCollation("utf8_general_ci");
  7643. entity.Property(e => e.SeoKeyword)
  7644. .HasColumnType("varchar(200)")
  7645. .HasCharSet("utf8")
  7646. .HasCollation("utf8_general_ci");
  7647. entity.Property(e => e.SeoTitle)
  7648. .HasColumnType("varchar(100)")
  7649. .HasCharSet("utf8")
  7650. .HasCollation("utf8_general_ci");
  7651. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7652. entity.Property(e => e.Status).HasColumnType("int(11)");
  7653. entity.Property(e => e.TeamTotalOverProfit).HasColumnType("decimal(18,2)");
  7654. entity.Property(e => e.TeamTotalProfit).HasColumnType("decimal(18,2)");
  7655. entity.Property(e => e.TeamTotalServiceProfit).HasColumnType("decimal(18,2)");
  7656. entity.Property(e => e.TotalAmount).HasColumnType("decimal(18,2)");
  7657. entity.Property(e => e.TotalOverProfit).HasColumnType("decimal(18,2)");
  7658. entity.Property(e => e.TotalProfit).HasColumnType("decimal(18,2)");
  7659. entity.Property(e => e.TotalServiceProfit).HasColumnType("decimal(18,2)");
  7660. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7661. entity.Property(e => e.UpdateMan)
  7662. .HasColumnType("varchar(50)")
  7663. .HasCharSet("utf8")
  7664. .HasCollation("utf8_general_ci");
  7665. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7666. entity.Property(e => e.UserProperty).HasColumnType("int(11)");
  7667. entity.Property(e => e.UserType).HasColumnType("int(11)");
  7668. entity.Property(e => e.Version).HasColumnType("int(11)");
  7669. entity.Property(e => e.WithdrawAmount).HasColumnType("decimal(18,2)");
  7670. });
  7671. modelBuilder.Entity<UserAccountRecord>(entity =>
  7672. {
  7673. entity.Property(e => e.Id).HasColumnType("int(11)");
  7674. entity.Property(e => e.AfterBalanceAmount).HasColumnType("decimal(18,2)");
  7675. entity.Property(e => e.AfterFreezeAmount).HasColumnType("decimal(18,2)");
  7676. entity.Property(e => e.AfterTotalAmount).HasColumnType("decimal(18,2)");
  7677. entity.Property(e => e.BeforeBalanceAmount).HasColumnType("decimal(18,2)");
  7678. entity.Property(e => e.BeforeFreezeAmount).HasColumnType("decimal(18,2)");
  7679. entity.Property(e => e.BeforeTotalAmount).HasColumnType("decimal(18,2)");
  7680. entity.Property(e => e.ChangeAmount).HasColumnType("decimal(18,2)");
  7681. entity.Property(e => e.ChangeType).HasColumnType("int(11)");
  7682. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7683. entity.Property(e => e.CreateMan)
  7684. .HasColumnType("varchar(50)")
  7685. .HasCharSet("utf8")
  7686. .HasCollation("utf8_general_ci");
  7687. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  7688. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7689. entity.Property(e => e.Remark)
  7690. .HasColumnType("varchar(64)")
  7691. .HasCharSet("utf8")
  7692. .HasCollation("utf8_general_ci");
  7693. entity.Property(e => e.SeoDescription)
  7694. .HasColumnType("varchar(500)")
  7695. .HasCharSet("utf8")
  7696. .HasCollation("utf8_general_ci");
  7697. entity.Property(e => e.SeoKeyword)
  7698. .HasColumnType("varchar(200)")
  7699. .HasCharSet("utf8")
  7700. .HasCollation("utf8_general_ci");
  7701. entity.Property(e => e.SeoTitle)
  7702. .HasColumnType("varchar(100)")
  7703. .HasCharSet("utf8")
  7704. .HasCollation("utf8_general_ci");
  7705. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7706. entity.Property(e => e.Status).HasColumnType("int(11)");
  7707. entity.Property(e => e.TransRecordNo)
  7708. .HasColumnType("varchar(32)")
  7709. .HasCharSet("utf8")
  7710. .HasCollation("utf8_general_ci");
  7711. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7712. entity.Property(e => e.UpdateMan)
  7713. .HasColumnType("varchar(50)")
  7714. .HasCharSet("utf8")
  7715. .HasCollation("utf8_general_ci");
  7716. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7717. entity.Property(e => e.Version).HasColumnType("int(11)");
  7718. });
  7719. modelBuilder.Entity<UserAddress>(entity =>
  7720. {
  7721. entity.Property(e => e.Id).HasColumnType("int(11)");
  7722. entity.Property(e => e.Address)
  7723. .HasColumnType("varchar(100)")
  7724. .HasCharSet("utf8")
  7725. .HasCollation("utf8_general_ci");
  7726. entity.Property(e => e.Areas)
  7727. .HasColumnType("varchar(30)")
  7728. .HasCharSet("utf8")
  7729. .HasCollation("utf8_general_ci");
  7730. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7731. entity.Property(e => e.CreateMan)
  7732. .HasColumnType("varchar(50)")
  7733. .HasCharSet("utf8")
  7734. .HasCollation("utf8_general_ci");
  7735. entity.Property(e => e.IsDefault)
  7736. .HasColumnType("bit(1)")
  7737. .HasDefaultValueSql("b'0'");
  7738. entity.Property(e => e.Mobile)
  7739. .HasColumnType("varchar(11)")
  7740. .HasCharSet("utf8")
  7741. .HasCollation("utf8_general_ci");
  7742. entity.Property(e => e.PostalCode)
  7743. .HasColumnType("varchar(6)")
  7744. .HasCharSet("utf8")
  7745. .HasCollation("utf8_general_ci");
  7746. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7747. entity.Property(e => e.RealName)
  7748. .HasColumnType("varchar(10)")
  7749. .HasCharSet("utf8")
  7750. .HasCollation("utf8_general_ci");
  7751. entity.Property(e => e.SeoDescription)
  7752. .HasColumnType("varchar(500)")
  7753. .HasCharSet("utf8")
  7754. .HasCollation("utf8_general_ci");
  7755. entity.Property(e => e.SeoKeyword)
  7756. .HasColumnType("varchar(200)")
  7757. .HasCharSet("utf8")
  7758. .HasCollation("utf8_general_ci");
  7759. entity.Property(e => e.SeoTitle)
  7760. .HasColumnType("varchar(100)")
  7761. .HasCharSet("utf8")
  7762. .HasCollation("utf8_general_ci");
  7763. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7764. entity.Property(e => e.Status).HasColumnType("int(11)");
  7765. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7766. entity.Property(e => e.UpdateMan)
  7767. .HasColumnType("varchar(50)")
  7768. .HasCharSet("utf8")
  7769. .HasCollation("utf8_general_ci");
  7770. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7771. entity.Property(e => e.Version).HasColumnType("int(11)");
  7772. });
  7773. modelBuilder.Entity<UserAuthRecord>(entity =>
  7774. {
  7775. entity.Property(e => e.Id).HasColumnType("int(11)");
  7776. entity.Property(e => e.AuthType).HasColumnType("int(11)");
  7777. entity.Property(e => e.BankCardAccount)
  7778. .HasColumnType("varchar(32)")
  7779. .HasCharSet("utf8")
  7780. .HasCollation("utf8_general_ci");
  7781. entity.Property(e => e.BankMobile)
  7782. .HasColumnType("varchar(11)")
  7783. .HasCharSet("utf8")
  7784. .HasCollation("utf8_general_ci");
  7785. entity.Property(e => e.BankName)
  7786. .HasColumnType("varchar(64)")
  7787. .HasCharSet("utf8")
  7788. .HasCollation("utf8_general_ci");
  7789. entity.Property(e => e.ChannelCode)
  7790. .HasColumnType("varchar(16)")
  7791. .HasCharSet("utf8")
  7792. .HasCollation("utf8_general_ci");
  7793. entity.Property(e => e.ChannelName)
  7794. .HasColumnType("varchar(32)")
  7795. .HasCharSet("utf8")
  7796. .HasCollation("utf8_general_ci");
  7797. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7798. entity.Property(e => e.CreateMan)
  7799. .HasColumnType("varchar(50)")
  7800. .HasCharSet("utf8")
  7801. .HasCollation("utf8_general_ci");
  7802. entity.Property(e => e.IdcardNo)
  7803. .HasColumnType("varchar(18)")
  7804. .HasCharSet("utf8")
  7805. .HasCollation("utf8_general_ci");
  7806. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7807. entity.Property(e => e.RealName)
  7808. .HasColumnType("varchar(32)")
  7809. .HasCharSet("utf8")
  7810. .HasCollation("utf8_general_ci");
  7811. entity.Property(e => e.ReqData)
  7812. .HasColumnType("varchar(2048)")
  7813. .HasCharSet("utf8")
  7814. .HasCollation("utf8_general_ci");
  7815. entity.Property(e => e.ResData)
  7816. .HasColumnType("varchar(2048)")
  7817. .HasCharSet("utf8")
  7818. .HasCollation("utf8_general_ci");
  7819. entity.Property(e => e.ReturnCode)
  7820. .HasColumnType("varchar(32)")
  7821. .HasCharSet("utf8")
  7822. .HasCollation("utf8_general_ci");
  7823. entity.Property(e => e.ReturnMsg)
  7824. .HasColumnType("varchar(128)")
  7825. .HasCharSet("utf8")
  7826. .HasCollation("utf8_general_ci");
  7827. entity.Property(e => e.SeoDescription)
  7828. .HasColumnType("varchar(500)")
  7829. .HasCharSet("utf8")
  7830. .HasCollation("utf8_general_ci");
  7831. entity.Property(e => e.SeoKeyword)
  7832. .HasColumnType("varchar(200)")
  7833. .HasCharSet("utf8")
  7834. .HasCollation("utf8_general_ci");
  7835. entity.Property(e => e.SeoTitle)
  7836. .HasColumnType("varchar(100)")
  7837. .HasCharSet("utf8")
  7838. .HasCollation("utf8_general_ci");
  7839. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7840. entity.Property(e => e.Status).HasColumnType("int(11)");
  7841. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7842. entity.Property(e => e.UpdateMan)
  7843. .HasColumnType("varchar(50)")
  7844. .HasCharSet("utf8")
  7845. .HasCollation("utf8_general_ci");
  7846. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7847. entity.Property(e => e.Version).HasColumnType("int(11)");
  7848. });
  7849. modelBuilder.Entity<UserBack>(entity =>
  7850. {
  7851. entity.Property(e => e.Id).HasColumnType("int(11)");
  7852. entity.Property(e => e.BackKind).HasColumnType("int(11)");
  7853. entity.Property(e => e.BackStatus).HasColumnType("int(11)");
  7854. entity.Property(e => e.Content)
  7855. .HasColumnType("varchar(100)")
  7856. .HasCharSet("utf8")
  7857. .HasCollation("utf8_general_ci");
  7858. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7859. entity.Property(e => e.CreateMan)
  7860. .HasColumnType("varchar(50)")
  7861. .HasCharSet("utf8")
  7862. .HasCollation("utf8_general_ci");
  7863. entity.Property(e => e.IsPhoneCallBack)
  7864. .HasColumnType("bit(1)")
  7865. .HasDefaultValueSql("b'0'");
  7866. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7867. entity.Property(e => e.ReplyContent)
  7868. .HasColumnType("mediumtext")
  7869. .HasCharSet("utf8")
  7870. .HasCollation("utf8_general_ci");
  7871. entity.Property(e => e.SeoDescription)
  7872. .HasColumnType("varchar(500)")
  7873. .HasCharSet("utf8")
  7874. .HasCollation("utf8_general_ci");
  7875. entity.Property(e => e.SeoKeyword)
  7876. .HasColumnType("varchar(200)")
  7877. .HasCharSet("utf8")
  7878. .HasCollation("utf8_general_ci");
  7879. entity.Property(e => e.SeoTitle)
  7880. .HasColumnType("varchar(100)")
  7881. .HasCharSet("utf8")
  7882. .HasCollation("utf8_general_ci");
  7883. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7884. entity.Property(e => e.Status).HasColumnType("int(11)");
  7885. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7886. entity.Property(e => e.UpdateMan)
  7887. .HasColumnType("varchar(50)")
  7888. .HasCharSet("utf8")
  7889. .HasCollation("utf8_general_ci");
  7890. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7891. entity.Property(e => e.Version).HasColumnType("int(11)");
  7892. });
  7893. modelBuilder.Entity<UserBackKind>(entity =>
  7894. {
  7895. entity.Property(e => e.Id).HasColumnType("int(11)");
  7896. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7897. entity.Property(e => e.CreateMan)
  7898. .HasColumnType("varchar(50)")
  7899. .HasCharSet("utf8")
  7900. .HasCollation("utf8_general_ci");
  7901. entity.Property(e => e.Name)
  7902. .HasColumnType("varchar(50)")
  7903. .HasCharSet("utf8")
  7904. .HasCollation("utf8_general_ci");
  7905. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7906. entity.Property(e => e.SeoDescription)
  7907. .HasColumnType("varchar(500)")
  7908. .HasCharSet("utf8")
  7909. .HasCollation("utf8_general_ci");
  7910. entity.Property(e => e.SeoKeyword)
  7911. .HasColumnType("varchar(200)")
  7912. .HasCharSet("utf8")
  7913. .HasCollation("utf8_general_ci");
  7914. entity.Property(e => e.SeoTitle)
  7915. .HasColumnType("varchar(100)")
  7916. .HasCharSet("utf8")
  7917. .HasCollation("utf8_general_ci");
  7918. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7919. entity.Property(e => e.Status).HasColumnType("int(11)");
  7920. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7921. entity.Property(e => e.UpdateMan)
  7922. .HasColumnType("varchar(50)")
  7923. .HasCharSet("utf8")
  7924. .HasCollation("utf8_general_ci");
  7925. entity.Property(e => e.Version).HasColumnType("int(11)");
  7926. });
  7927. modelBuilder.Entity<UserBalanceTop>(entity =>
  7928. {
  7929. entity.Property(e => e.Id).HasColumnType("int(11)");
  7930. entity.Property(e => e.Balance).HasColumnType("decimal(18,2)");
  7931. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7932. entity.Property(e => e.CreateMan)
  7933. .HasColumnType("varchar(50)")
  7934. .HasCharSet("utf8")
  7935. .HasCollation("utf8_general_ci");
  7936. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7937. entity.Property(e => e.SeoDescription)
  7938. .HasColumnType("varchar(500)")
  7939. .HasCharSet("utf8")
  7940. .HasCollation("utf8_general_ci");
  7941. entity.Property(e => e.SeoKeyword)
  7942. .HasColumnType("varchar(200)")
  7943. .HasCharSet("utf8")
  7944. .HasCollation("utf8_general_ci");
  7945. entity.Property(e => e.SeoTitle)
  7946. .HasColumnType("varchar(100)")
  7947. .HasCharSet("utf8")
  7948. .HasCollation("utf8_general_ci");
  7949. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7950. entity.Property(e => e.StatDate)
  7951. .HasColumnType("varchar(8)")
  7952. .HasCharSet("utf8")
  7953. .HasCollation("utf8_general_ci");
  7954. entity.Property(e => e.StatMonth)
  7955. .HasColumnType("varchar(6)")
  7956. .HasCharSet("utf8")
  7957. .HasCollation("utf8_general_ci");
  7958. entity.Property(e => e.Status).HasColumnType("int(11)");
  7959. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7960. entity.Property(e => e.UpdateMan)
  7961. .HasColumnType("varchar(50)")
  7962. .HasCharSet("utf8")
  7963. .HasCollation("utf8_general_ci");
  7964. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7965. entity.Property(e => e.Version).HasColumnType("int(11)");
  7966. });
  7967. modelBuilder.Entity<UserCar>(entity =>
  7968. {
  7969. entity.Property(e => e.Id).HasColumnType("int(11)");
  7970. entity.Property(e => e.BuyCount).HasColumnType("int(11)");
  7971. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7972. entity.Property(e => e.CreateMan)
  7973. .HasColumnType("varchar(50)")
  7974. .HasCharSet("utf8")
  7975. .HasCollation("utf8_general_ci");
  7976. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  7977. entity.Property(e => e.NormId).HasColumnType("int(11)");
  7978. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  7979. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7980. entity.Property(e => e.SeoDescription)
  7981. .HasColumnType("varchar(500)")
  7982. .HasCharSet("utf8")
  7983. .HasCollation("utf8_general_ci");
  7984. entity.Property(e => e.SeoKeyword)
  7985. .HasColumnType("varchar(200)")
  7986. .HasCharSet("utf8")
  7987. .HasCollation("utf8_general_ci");
  7988. entity.Property(e => e.SeoTitle)
  7989. .HasColumnType("varchar(100)")
  7990. .HasCharSet("utf8")
  7991. .HasCollation("utf8_general_ci");
  7992. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7993. entity.Property(e => e.Status).HasColumnType("int(11)");
  7994. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7995. entity.Property(e => e.UpdateMan)
  7996. .HasColumnType("varchar(50)")
  7997. .HasCharSet("utf8")
  7998. .HasCollation("utf8_general_ci");
  7999. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8000. entity.Property(e => e.Version).HasColumnType("int(11)");
  8001. });
  8002. modelBuilder.Entity<UserCardForWeChat>(entity =>
  8003. {
  8004. entity.Property(e => e.Id).HasColumnType("int(11)");
  8005. entity.Property(e => e.BrandName)
  8006. .HasColumnType("varchar(12)")
  8007. .HasCharSet("utf8")
  8008. .HasCollation("utf8_general_ci");
  8009. entity.Property(e => e.CardId)
  8010. .HasColumnType("varchar(50)")
  8011. .HasCharSet("utf8")
  8012. .HasCollation("utf8_general_ci");
  8013. entity.Property(e => e.CardType)
  8014. .HasColumnType("varchar(30)")
  8015. .HasCharSet("utf8")
  8016. .HasCollation("utf8_general_ci");
  8017. entity.Property(e => e.CodeType)
  8018. .HasColumnType("varchar(50)")
  8019. .HasCharSet("utf8")
  8020. .HasCollation("utf8_general_ci");
  8021. entity.Property(e => e.Color)
  8022. .HasColumnType("varchar(20)")
  8023. .HasCharSet("utf8")
  8024. .HasCollation("utf8_general_ci");
  8025. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8026. entity.Property(e => e.CreateMan)
  8027. .HasColumnType("varchar(50)")
  8028. .HasCharSet("utf8")
  8029. .HasCollation("utf8_general_ci");
  8030. entity.Property(e => e.DateType)
  8031. .HasColumnType("varchar(50)")
  8032. .HasCharSet("utf8")
  8033. .HasCollation("utf8_general_ci");
  8034. entity.Property(e => e.Description)
  8035. .HasColumnType("varchar(1024)")
  8036. .HasCharSet("utf8")
  8037. .HasCollation("utf8_general_ci");
  8038. entity.Property(e => e.EnterName)
  8039. .HasColumnType("varchar(15)")
  8040. .HasCharSet("utf8")
  8041. .HasCollation("utf8_general_ci");
  8042. entity.Property(e => e.EnterTips)
  8043. .HasColumnType("varchar(6)")
  8044. .HasCharSet("utf8")
  8045. .HasCollation("utf8_general_ci");
  8046. entity.Property(e => e.EnterUrl)
  8047. .HasColumnType("varchar(200)")
  8048. .HasCharSet("utf8")
  8049. .HasCollation("utf8_general_ci");
  8050. entity.Property(e => e.LogoUrl)
  8051. .HasColumnType("varchar(200)")
  8052. .HasCharSet("utf8")
  8053. .HasCollation("utf8_general_ci");
  8054. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  8055. entity.Property(e => e.Notice)
  8056. .HasColumnType("varchar(16)")
  8057. .HasCharSet("utf8")
  8058. .HasCollation("utf8_general_ci");
  8059. entity.Property(e => e.Prerogative)
  8060. .HasColumnType("varchar(1024)")
  8061. .HasCharSet("utf8")
  8062. .HasCollation("utf8_general_ci");
  8063. entity.Property(e => e.Quantity).HasColumnType("int(11)");
  8064. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8065. entity.Property(e => e.SeoDescription)
  8066. .HasColumnType("varchar(500)")
  8067. .HasCharSet("utf8")
  8068. .HasCollation("utf8_general_ci");
  8069. entity.Property(e => e.SeoKeyword)
  8070. .HasColumnType("varchar(200)")
  8071. .HasCharSet("utf8")
  8072. .HasCollation("utf8_general_ci");
  8073. entity.Property(e => e.SeoTitle)
  8074. .HasColumnType("varchar(100)")
  8075. .HasCharSet("utf8")
  8076. .HasCollation("utf8_general_ci");
  8077. entity.Property(e => e.Sku)
  8078. .HasColumnType("mediumtext")
  8079. .HasCharSet("utf8")
  8080. .HasCollation("utf8_general_ci");
  8081. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8082. entity.Property(e => e.Status).HasColumnType("int(11)");
  8083. entity.Property(e => e.SupplyBalance)
  8084. .HasColumnType("bit(1)")
  8085. .HasDefaultValueSql("b'0'");
  8086. entity.Property(e => e.SupplyBonus)
  8087. .HasColumnType("bit(1)")
  8088. .HasDefaultValueSql("b'0'");
  8089. entity.Property(e => e.Title)
  8090. .HasColumnType("varchar(9)")
  8091. .HasCharSet("utf8")
  8092. .HasCollation("utf8_general_ci");
  8093. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8094. entity.Property(e => e.UpdateMan)
  8095. .HasColumnType("varchar(50)")
  8096. .HasCharSet("utf8")
  8097. .HasCollation("utf8_general_ci");
  8098. entity.Property(e => e.Version).HasColumnType("int(11)");
  8099. });
  8100. modelBuilder.Entity<UserCardRecord>(entity =>
  8101. {
  8102. entity.Property(e => e.Id).HasColumnType("int(11)");
  8103. entity.Property(e => e.CardId).HasColumnType("int(11)");
  8104. entity.Property(e => e.ConsumerId).HasColumnType("int(11)");
  8105. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8106. entity.Property(e => e.CreateMan)
  8107. .HasColumnType("varchar(50)")
  8108. .HasCharSet("utf8")
  8109. .HasCollation("utf8_general_ci");
  8110. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  8111. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8112. entity.Property(e => e.SeoDescription)
  8113. .HasColumnType("varchar(500)")
  8114. .HasCharSet("utf8")
  8115. .HasCollation("utf8_general_ci");
  8116. entity.Property(e => e.SeoKeyword)
  8117. .HasColumnType("varchar(200)")
  8118. .HasCharSet("utf8")
  8119. .HasCollation("utf8_general_ci");
  8120. entity.Property(e => e.SeoTitle)
  8121. .HasColumnType("varchar(100)")
  8122. .HasCharSet("utf8")
  8123. .HasCollation("utf8_general_ci");
  8124. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8125. entity.Property(e => e.Status).HasColumnType("int(11)");
  8126. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8127. entity.Property(e => e.UpdateMan)
  8128. .HasColumnType("varchar(50)")
  8129. .HasCharSet("utf8")
  8130. .HasCollation("utf8_general_ci");
  8131. entity.Property(e => e.Version).HasColumnType("int(11)");
  8132. });
  8133. modelBuilder.Entity<UserCashRecord>(entity =>
  8134. {
  8135. entity.Property(e => e.Id).HasColumnType("int(11)");
  8136. entity.Property(e => e.ActualTradeAmount).HasColumnType("decimal(18,2)");
  8137. entity.Property(e => e.CashOrderNo)
  8138. .HasColumnType("varchar(32)")
  8139. .HasCharSet("utf8")
  8140. .HasCollation("utf8_general_ci");
  8141. entity.Property(e => e.ChanelName)
  8142. .HasColumnType("varchar(32)")
  8143. .HasCharSet("utf8")
  8144. .HasCollation("utf8_general_ci");
  8145. entity.Property(e => e.ChannelCode)
  8146. .HasColumnType("varchar(16)")
  8147. .HasCharSet("utf8")
  8148. .HasCollation("utf8_general_ci");
  8149. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8150. entity.Property(e => e.CreateMan)
  8151. .HasColumnType("varchar(50)")
  8152. .HasCharSet("utf8")
  8153. .HasCollation("utf8_general_ci");
  8154. entity.Property(e => e.IdCardNo)
  8155. .HasColumnType("varchar(18)")
  8156. .HasCharSet("utf8")
  8157. .HasCollation("utf8_general_ci");
  8158. entity.Property(e => e.Ip)
  8159. .HasColumnType("varchar(15)")
  8160. .HasCharSet("utf8")
  8161. .HasCollation("utf8_general_ci");
  8162. entity.Property(e => e.ManageFee).HasColumnType("decimal(18,2)");
  8163. entity.Property(e => e.MediaSource)
  8164. .HasColumnType("varchar(16)")
  8165. .HasCharSet("utf8")
  8166. .HasCollation("utf8_general_ci");
  8167. entity.Property(e => e.PayTradeNo)
  8168. .HasColumnType("varchar(32)")
  8169. .HasCharSet("utf8")
  8170. .HasCollation("utf8_general_ci");
  8171. entity.Property(e => e.PaymentDate).HasColumnType("datetime");
  8172. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8173. entity.Property(e => e.Remark)
  8174. .HasColumnType("varchar(128)")
  8175. .HasCharSet("utf8")
  8176. .HasCollation("utf8_general_ci");
  8177. entity.Property(e => e.ReqData)
  8178. .HasColumnType("varchar(2048)")
  8179. .HasCharSet("utf8")
  8180. .HasCollation("utf8_general_ci");
  8181. entity.Property(e => e.ResData)
  8182. .HasColumnType("varchar(2048)")
  8183. .HasCharSet("utf8")
  8184. .HasCollation("utf8_general_ci");
  8185. entity.Property(e => e.ReturnCode)
  8186. .HasColumnType("varchar(32)")
  8187. .HasCharSet("utf8")
  8188. .HasCollation("utf8_general_ci");
  8189. entity.Property(e => e.ReturnMsg)
  8190. .HasColumnType("varchar(128)")
  8191. .HasCharSet("utf8")
  8192. .HasCollation("utf8_general_ci");
  8193. entity.Property(e => e.SeoDescription)
  8194. .HasColumnType("varchar(500)")
  8195. .HasCharSet("utf8")
  8196. .HasCollation("utf8_general_ci");
  8197. entity.Property(e => e.SeoKeyword)
  8198. .HasColumnType("varchar(200)")
  8199. .HasCharSet("utf8")
  8200. .HasCollation("utf8_general_ci");
  8201. entity.Property(e => e.SeoTitle)
  8202. .HasColumnType("varchar(100)")
  8203. .HasCharSet("utf8")
  8204. .HasCollation("utf8_general_ci");
  8205. entity.Property(e => e.SettleBankCardNo)
  8206. .HasColumnType("varchar(32)")
  8207. .HasCharSet("utf8")
  8208. .HasCollation("utf8_general_ci");
  8209. entity.Property(e => e.SettleBankName)
  8210. .HasColumnType("varchar(64)")
  8211. .HasCharSet("utf8")
  8212. .HasCollation("utf8_general_ci");
  8213. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8214. entity.Property(e => e.Status).HasColumnType("int(11)");
  8215. entity.Property(e => e.TradeAmount).HasColumnType("decimal(18,2)");
  8216. entity.Property(e => e.TradeFee).HasColumnType("decimal(18,2)");
  8217. entity.Property(e => e.TradeType).HasColumnType("int(11)");
  8218. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8219. entity.Property(e => e.UpdateMan)
  8220. .HasColumnType("varchar(50)")
  8221. .HasCharSet("utf8")
  8222. .HasCollation("utf8_general_ci");
  8223. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8224. entity.Property(e => e.Version).HasColumnType("int(11)");
  8225. });
  8226. modelBuilder.Entity<UserCenterIconList>(entity =>
  8227. {
  8228. entity.Property(e => e.Id).HasColumnType("int(11)");
  8229. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8230. entity.Property(e => e.CreateMan)
  8231. .HasColumnType("varchar(50)")
  8232. .HasCharSet("utf8")
  8233. .HasCollation("utf8_general_ci");
  8234. entity.Property(e => e.Icon)
  8235. .HasColumnType("varchar(200)")
  8236. .HasCharSet("utf8")
  8237. .HasCollation("utf8_general_ci");
  8238. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8239. entity.Property(e => e.SeoDescription)
  8240. .HasColumnType("varchar(500)")
  8241. .HasCharSet("utf8")
  8242. .HasCollation("utf8_general_ci");
  8243. entity.Property(e => e.SeoKeyword)
  8244. .HasColumnType("varchar(200)")
  8245. .HasCharSet("utf8")
  8246. .HasCollation("utf8_general_ci");
  8247. entity.Property(e => e.SeoTitle)
  8248. .HasColumnType("varchar(100)")
  8249. .HasCharSet("utf8")
  8250. .HasCollation("utf8_general_ci");
  8251. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8252. entity.Property(e => e.Status).HasColumnType("int(11)");
  8253. entity.Property(e => e.Title)
  8254. .HasColumnType("varchar(50)")
  8255. .HasCharSet("utf8")
  8256. .HasCollation("utf8_general_ci");
  8257. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8258. entity.Property(e => e.UpdateMan)
  8259. .HasColumnType("varchar(50)")
  8260. .HasCharSet("utf8")
  8261. .HasCollation("utf8_general_ci");
  8262. entity.Property(e => e.Url)
  8263. .HasColumnType("varchar(50)")
  8264. .HasCharSet("utf8")
  8265. .HasCollation("utf8_general_ci");
  8266. entity.Property(e => e.Version).HasColumnType("int(11)");
  8267. });
  8268. modelBuilder.Entity<UserCollection>(entity =>
  8269. {
  8270. entity.Property(e => e.Id).HasColumnType("int(11)");
  8271. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8272. entity.Property(e => e.CreateMan)
  8273. .HasColumnType("varchar(50)")
  8274. .HasCharSet("utf8")
  8275. .HasCollation("utf8_general_ci");
  8276. entity.Property(e => e.DataId).HasColumnType("int(11)");
  8277. entity.Property(e => e.Kind).HasColumnType("int(11)");
  8278. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8279. entity.Property(e => e.SeoDescription)
  8280. .HasColumnType("varchar(500)")
  8281. .HasCharSet("utf8")
  8282. .HasCollation("utf8_general_ci");
  8283. entity.Property(e => e.SeoKeyword)
  8284. .HasColumnType("varchar(200)")
  8285. .HasCharSet("utf8")
  8286. .HasCollation("utf8_general_ci");
  8287. entity.Property(e => e.SeoTitle)
  8288. .HasColumnType("varchar(100)")
  8289. .HasCharSet("utf8")
  8290. .HasCollation("utf8_general_ci");
  8291. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8292. entity.Property(e => e.Status).HasColumnType("int(11)");
  8293. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8294. entity.Property(e => e.UpdateMan)
  8295. .HasColumnType("varchar(50)")
  8296. .HasCharSet("utf8")
  8297. .HasCollation("utf8_general_ci");
  8298. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8299. entity.Property(e => e.Version).HasColumnType("int(11)");
  8300. });
  8301. modelBuilder.Entity<UserData>(entity =>
  8302. {
  8303. entity.HasKey(e => e.UserId)
  8304. .HasName("PRIMARY");
  8305. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8306. entity.Property(e => e.ActiveRewardAmount).HasColumnType("decimal(18,2)");
  8307. entity.Property(e => e.CashFreezeAmt).HasColumnType("decimal(18,2)");
  8308. entity.Property(e => e.CollectionCount).HasColumnType("int(11)");
  8309. entity.Property(e => e.Coupons).HasColumnType("decimal(18,2)");
  8310. entity.Property(e => e.CurMoney).HasColumnType("decimal(18,2)");
  8311. entity.Property(e => e.FansCount).HasColumnType("int(11)");
  8312. entity.Property(e => e.FollowCount).HasColumnType("int(11)");
  8313. entity.Property(e => e.GrowthValue).HasColumnType("int(11)");
  8314. entity.Property(e => e.Integral).HasColumnType("decimal(18,2)");
  8315. entity.Property(e => e.MachineCount).HasColumnType("int(11)");
  8316. entity.Property(e => e.ProfitRewardRate).HasColumnType("decimal(18,2)");
  8317. entity.Property(e => e.SettleAmount).HasColumnType("decimal(18,2)");
  8318. entity.Property(e => e.ToCommentOrderCount).HasColumnType("int(11)");
  8319. entity.Property(e => e.ToPayOrderCount).HasColumnType("int(11)");
  8320. entity.Property(e => e.ToReceiveOrderCount).HasColumnType("int(11)");
  8321. entity.Property(e => e.ToRefundOrderCount).HasColumnType("int(11)");
  8322. entity.Property(e => e.ToSendOrderCount).HasColumnType("int(11)");
  8323. entity.Property(e => e.TotalOrderMoney).HasColumnType("decimal(18,2)");
  8324. entity.Property(e => e.TotalUseIntegral).HasColumnType("decimal(18,2)");
  8325. });
  8326. modelBuilder.Entity<UserDetail>(entity =>
  8327. {
  8328. entity.Property(e => e.Id).HasColumnType("int(11)");
  8329. entity.Property(e => e.AddMan).HasColumnType("int(11)");
  8330. entity.Property(e => e.Birthday).HasColumnType("datetime");
  8331. entity.Property(e => e.CardAddAddress).HasColumnType("int(11)");
  8332. entity.Property(e => e.CardExpireDate).HasColumnType("datetime");
  8333. entity.Property(e => e.EduLevel).HasColumnType("int(11)");
  8334. entity.Property(e => e.Email)
  8335. .HasColumnType("varchar(50)")
  8336. .HasCharSet("utf8")
  8337. .HasCollation("utf8_general_ci");
  8338. entity.Property(e => e.FamilyIncome).HasColumnType("int(11)");
  8339. entity.Property(e => e.Interests)
  8340. .HasColumnType("varchar(200)")
  8341. .HasCharSet("utf8")
  8342. .HasCollation("utf8_general_ci");
  8343. entity.Property(e => e.Note)
  8344. .HasColumnType("longtext")
  8345. .HasCharSet("utf8")
  8346. .HasCollation("utf8_general_ci");
  8347. entity.Property(e => e.OfficePhone)
  8348. .HasColumnType("varchar(50)")
  8349. .HasCharSet("utf8")
  8350. .HasCollation("utf8_general_ci");
  8351. entity.Property(e => e.PostalCode)
  8352. .HasColumnType("varchar(6)")
  8353. .HasCharSet("utf8")
  8354. .HasCollation("utf8_general_ci");
  8355. entity.Property(e => e.PrivatePhone)
  8356. .HasColumnType("varchar(50)")
  8357. .HasCharSet("utf8")
  8358. .HasCollation("utf8_general_ci");
  8359. entity.Property(e => e.ToShopDate).HasColumnType("datetime");
  8360. entity.Property(e => e.TrafficTool).HasColumnType("int(11)");
  8361. entity.Property(e => e.UpdateMan).HasColumnType("int(11)");
  8362. entity.Property(e => e.UserJob).HasColumnType("int(11)");
  8363. });
  8364. modelBuilder.Entity<UserFamilyMember>(entity =>
  8365. {
  8366. entity.Property(e => e.Id).HasColumnType("int(11)");
  8367. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8368. entity.Property(e => e.CreateMan)
  8369. .HasColumnType("varchar(50)")
  8370. .HasCharSet("utf8")
  8371. .HasCollation("utf8_general_ci");
  8372. entity.Property(e => e.IdCardNo)
  8373. .HasColumnType("varchar(18)")
  8374. .HasCharSet("utf8")
  8375. .HasCollation("utf8_general_ci");
  8376. entity.Property(e => e.Job).HasColumnType("int(11)");
  8377. entity.Property(e => e.MemberKind).HasColumnType("int(11)");
  8378. entity.Property(e => e.Mobile)
  8379. .HasColumnType("varchar(11)")
  8380. .HasCharSet("utf8")
  8381. .HasCollation("utf8_general_ci");
  8382. entity.Property(e => e.Name)
  8383. .HasColumnType("varchar(20)")
  8384. .HasCharSet("utf8")
  8385. .HasCollation("utf8_general_ci");
  8386. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8387. entity.Property(e => e.SeoDescription)
  8388. .HasColumnType("varchar(500)")
  8389. .HasCharSet("utf8")
  8390. .HasCollation("utf8_general_ci");
  8391. entity.Property(e => e.SeoKeyword)
  8392. .HasColumnType("varchar(200)")
  8393. .HasCharSet("utf8")
  8394. .HasCollation("utf8_general_ci");
  8395. entity.Property(e => e.SeoTitle)
  8396. .HasColumnType("varchar(100)")
  8397. .HasCharSet("utf8")
  8398. .HasCollation("utf8_general_ci");
  8399. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8400. entity.Property(e => e.Status).HasColumnType("int(11)");
  8401. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8402. entity.Property(e => e.UpdateMan)
  8403. .HasColumnType("varchar(50)")
  8404. .HasCharSet("utf8")
  8405. .HasCollation("utf8_general_ci");
  8406. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8407. entity.Property(e => e.Version).HasColumnType("int(11)");
  8408. });
  8409. modelBuilder.Entity<UserForMakerCode>(entity =>
  8410. {
  8411. entity.HasKey(e => e.MakerCode)
  8412. .HasName("PRIMARY");
  8413. entity.Property(e => e.MakerCode)
  8414. .HasColumnType("varchar(30)")
  8415. .HasCharSet("utf8")
  8416. .HasCollation("utf8_general_ci");
  8417. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8418. });
  8419. modelBuilder.Entity<UserForMobile>(entity =>
  8420. {
  8421. entity.HasKey(e => e.Mobile)
  8422. .HasName("PRIMARY");
  8423. entity.Property(e => e.Mobile)
  8424. .HasColumnType("varchar(11)")
  8425. .HasCharSet("utf8")
  8426. .HasCollation("utf8_general_ci");
  8427. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8428. });
  8429. modelBuilder.Entity<UserForRealName>(entity =>
  8430. {
  8431. entity.HasKey(e => e.RealName)
  8432. .HasName("PRIMARY");
  8433. entity.Property(e => e.RealName)
  8434. .HasColumnType("varchar(30)")
  8435. .HasCharSet("utf8")
  8436. .HasCollation("utf8_general_ci");
  8437. entity.Property(e => e.UserId)
  8438. .HasColumnType("varchar(100)")
  8439. .HasCharSet("utf8")
  8440. .HasCollation("utf8_general_ci");
  8441. });
  8442. modelBuilder.Entity<UserFriend>(entity =>
  8443. {
  8444. entity.Property(e => e.Id).HasColumnType("int(11)");
  8445. entity.Property(e => e.FriendId).HasColumnType("int(11)");
  8446. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8447. });
  8448. modelBuilder.Entity<UserGroup>(entity =>
  8449. {
  8450. entity.Property(e => e.Id).HasColumnType("int(11)");
  8451. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8452. entity.Property(e => e.CreateMan)
  8453. .HasColumnType("varchar(50)")
  8454. .HasCharSet("utf8")
  8455. .HasCollation("utf8_general_ci");
  8456. entity.Property(e => e.Details)
  8457. .HasColumnType("varchar(200)")
  8458. .HasCharSet("utf8")
  8459. .HasCollation("utf8_general_ci");
  8460. entity.Property(e => e.Name)
  8461. .HasColumnType("varchar(20)")
  8462. .HasCharSet("utf8")
  8463. .HasCollation("utf8_general_ci");
  8464. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8465. entity.Property(e => e.SeoDescription)
  8466. .HasColumnType("varchar(500)")
  8467. .HasCharSet("utf8")
  8468. .HasCollation("utf8_general_ci");
  8469. entity.Property(e => e.SeoKeyword)
  8470. .HasColumnType("varchar(200)")
  8471. .HasCharSet("utf8")
  8472. .HasCollation("utf8_general_ci");
  8473. entity.Property(e => e.SeoTitle)
  8474. .HasColumnType("varchar(100)")
  8475. .HasCharSet("utf8")
  8476. .HasCollation("utf8_general_ci");
  8477. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8478. entity.Property(e => e.Status).HasColumnType("int(11)");
  8479. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8480. entity.Property(e => e.UpdateMan)
  8481. .HasColumnType("varchar(50)")
  8482. .HasCharSet("utf8")
  8483. .HasCollation("utf8_general_ci");
  8484. entity.Property(e => e.Version).HasColumnType("int(11)");
  8485. });
  8486. modelBuilder.Entity<UserLevelSet>(entity =>
  8487. {
  8488. entity.Property(e => e.Id).HasColumnType("int(11)");
  8489. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8490. entity.Property(e => e.CreateMan)
  8491. .HasColumnType("varchar(50)")
  8492. .HasCharSet("utf8")
  8493. .HasCollation("utf8_general_ci");
  8494. entity.Property(e => e.Details)
  8495. .HasColumnType("varchar(200)")
  8496. .HasCharSet("utf8")
  8497. .HasCollation("utf8_general_ci");
  8498. entity.Property(e => e.Name)
  8499. .HasColumnType("varchar(20)")
  8500. .HasCharSet("utf8")
  8501. .HasCollation("utf8_general_ci");
  8502. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8503. entity.Property(e => e.SeoDescription)
  8504. .HasColumnType("varchar(500)")
  8505. .HasCharSet("utf8")
  8506. .HasCollation("utf8_general_ci");
  8507. entity.Property(e => e.SeoKeyword)
  8508. .HasColumnType("varchar(200)")
  8509. .HasCharSet("utf8")
  8510. .HasCollation("utf8_general_ci");
  8511. entity.Property(e => e.SeoTitle)
  8512. .HasColumnType("varchar(100)")
  8513. .HasCharSet("utf8")
  8514. .HasCollation("utf8_general_ci");
  8515. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8516. entity.Property(e => e.Status).HasColumnType("int(11)");
  8517. entity.Property(e => e.UpLevelDays).HasColumnType("int(11)");
  8518. entity.Property(e => e.UpLevelGrowth).HasColumnType("int(11)");
  8519. entity.Property(e => e.UpLevelIntegral).HasColumnType("decimal(10,0)");
  8520. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8521. entity.Property(e => e.UpdateMan)
  8522. .HasColumnType("varchar(50)")
  8523. .HasCharSet("utf8")
  8524. .HasCollation("utf8_general_ci");
  8525. entity.Property(e => e.Version).HasColumnType("int(11)");
  8526. });
  8527. modelBuilder.Entity<UserLoginRecord>(entity =>
  8528. {
  8529. entity.Property(e => e.Id).HasColumnType("int(11)");
  8530. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8531. entity.Property(e => e.CreateMan)
  8532. .HasColumnType("varchar(50)")
  8533. .HasCharSet("utf8")
  8534. .HasCollation("utf8_general_ci");
  8535. entity.Property(e => e.Kind).HasColumnType("int(11)");
  8536. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8537. entity.Property(e => e.SeoDescription)
  8538. .HasColumnType("varchar(500)")
  8539. .HasCharSet("utf8")
  8540. .HasCollation("utf8_general_ci");
  8541. entity.Property(e => e.SeoKeyword)
  8542. .HasColumnType("varchar(200)")
  8543. .HasCharSet("utf8")
  8544. .HasCollation("utf8_general_ci");
  8545. entity.Property(e => e.SeoTitle)
  8546. .HasColumnType("varchar(100)")
  8547. .HasCharSet("utf8")
  8548. .HasCollation("utf8_general_ci");
  8549. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8550. entity.Property(e => e.Status).HasColumnType("int(11)");
  8551. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8552. entity.Property(e => e.UpdateMan)
  8553. .HasColumnType("varchar(50)")
  8554. .HasCharSet("utf8")
  8555. .HasCollation("utf8_general_ci");
  8556. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8557. entity.Property(e => e.Version).HasColumnType("int(11)");
  8558. });
  8559. modelBuilder.Entity<UserMachineData>(entity =>
  8560. {
  8561. entity.HasKey(e => e.IdBrand)
  8562. .HasName("PRIMARY");
  8563. entity.Property(e => e.IdBrand)
  8564. .HasColumnType("varchar(50)")
  8565. .HasCharSet("utf8")
  8566. .HasCollation("utf8_general_ci");
  8567. entity.Property(e => e.ActProfit).HasColumnType("decimal(18,2)");
  8568. entity.Property(e => e.BindCount).HasColumnType("int(11)");
  8569. entity.Property(e => e.DividendsProfit).HasColumnType("decimal(18,2)");
  8570. entity.Property(e => e.FluxProfit).HasColumnType("decimal(18,2)");
  8571. entity.Property(e => e.OpenProfit).HasColumnType("decimal(18,2)");
  8572. entity.Property(e => e.OtherProfit).HasColumnType("decimal(18,2)");
  8573. entity.Property(e => e.TotalMachineCount).HasColumnType("int(11)");
  8574. entity.Property(e => e.TradeProfit).HasColumnType("decimal(18,2)");
  8575. entity.Property(e => e.UnBindCount).HasColumnType("int(11)");
  8576. });
  8577. modelBuilder.Entity<UserMallLargeSn>(entity =>
  8578. {
  8579. entity.Property(e => e.Id).HasColumnType("int(11)");
  8580. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  8581. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8582. entity.Property(e => e.CreateMan)
  8583. .HasColumnType("varchar(50)")
  8584. .HasCharSet("utf8")
  8585. .HasCollation("utf8_general_ci");
  8586. entity.Property(e => e.OrderAmount).HasColumnType("decimal(18,2)");
  8587. entity.Property(e => e.OrderNo)
  8588. .HasColumnType("varchar(32)")
  8589. .HasCharSet("utf8")
  8590. .HasCollation("utf8_general_ci");
  8591. entity.Property(e => e.OrderNum).HasColumnType("int(11)");
  8592. entity.Property(e => e.ProductName)
  8593. .HasColumnType("varchar(32)")
  8594. .HasCharSet("utf8")
  8595. .HasCollation("utf8_general_ci");
  8596. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8597. entity.Property(e => e.Remark)
  8598. .HasColumnType("varchar(64)")
  8599. .HasCharSet("utf8")
  8600. .HasCollation("utf8_general_ci");
  8601. entity.Property(e => e.RuleOrderAmt).HasColumnType("decimal(18,2)");
  8602. entity.Property(e => e.SeoDescription)
  8603. .HasColumnType("varchar(500)")
  8604. .HasCharSet("utf8")
  8605. .HasCollation("utf8_general_ci");
  8606. entity.Property(e => e.SeoKeyword)
  8607. .HasColumnType("varchar(200)")
  8608. .HasCharSet("utf8")
  8609. .HasCollation("utf8_general_ci");
  8610. entity.Property(e => e.SeoTitle)
  8611. .HasColumnType("varchar(100)")
  8612. .HasCharSet("utf8")
  8613. .HasCollation("utf8_general_ci");
  8614. entity.Property(e => e.SnNo)
  8615. .HasColumnType("varchar(32)")
  8616. .HasCharSet("utf8")
  8617. .HasCollation("utf8_general_ci");
  8618. entity.Property(e => e.SnShipDate).HasColumnType("datetime");
  8619. entity.Property(e => e.SnStatus).HasColumnType("int(11)");
  8620. entity.Property(e => e.SnType).HasColumnType("int(11)");
  8621. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8622. entity.Property(e => e.Status).HasColumnType("int(11)");
  8623. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  8624. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8625. entity.Property(e => e.UpdateMan)
  8626. .HasColumnType("varchar(50)")
  8627. .HasCharSet("utf8")
  8628. .HasCollation("utf8_general_ci");
  8629. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8630. entity.Property(e => e.Version).HasColumnType("int(11)");
  8631. });
  8632. modelBuilder.Entity<UserOfflineSignInRecords>(entity =>
  8633. {
  8634. entity.Property(e => e.Id).HasColumnType("int(11)");
  8635. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8636. entity.Property(e => e.CreateMan)
  8637. .HasColumnType("varchar(50)")
  8638. .HasCharSet("utf8")
  8639. .HasCollation("utf8_general_ci");
  8640. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  8641. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8642. entity.Property(e => e.SeoDescription)
  8643. .HasColumnType("varchar(500)")
  8644. .HasCharSet("utf8")
  8645. .HasCollation("utf8_general_ci");
  8646. entity.Property(e => e.SeoKeyword)
  8647. .HasColumnType("varchar(200)")
  8648. .HasCharSet("utf8")
  8649. .HasCollation("utf8_general_ci");
  8650. entity.Property(e => e.SeoTitle)
  8651. .HasColumnType("varchar(100)")
  8652. .HasCharSet("utf8")
  8653. .HasCollation("utf8_general_ci");
  8654. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8655. entity.Property(e => e.Status).HasColumnType("int(11)");
  8656. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8657. entity.Property(e => e.UpdateMan)
  8658. .HasColumnType("varchar(50)")
  8659. .HasCharSet("utf8")
  8660. .HasCollation("utf8_general_ci");
  8661. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8662. entity.Property(e => e.Version).HasColumnType("int(11)");
  8663. });
  8664. modelBuilder.Entity<UserProfit>(entity =>
  8665. {
  8666. entity.Property(e => e.Id).HasColumnType("int(11)");
  8667. entity.Property(e => e.AddOrSubRate).HasColumnType("decimal(18,2)");
  8668. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  8669. entity.Property(e => e.CardType)
  8670. .HasColumnType("varchar(10)")
  8671. .HasCharSet("utf8")
  8672. .HasCollation("utf8_general_ci");
  8673. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8674. entity.Property(e => e.CreateMan)
  8675. .HasColumnType("varchar(50)")
  8676. .HasCharSet("utf8")
  8677. .HasCollation("utf8_general_ci");
  8678. entity.Property(e => e.HelpAddOrSubRate).HasColumnType("decimal(18,2)");
  8679. entity.Property(e => e.HelpProfitPercent).HasColumnType("decimal(18,2)");
  8680. entity.Property(e => e.HelpProfitRate).HasColumnType("decimal(18,2)");
  8681. entity.Property(e => e.HelpProfitRateBase).HasColumnType("decimal(18,2)");
  8682. entity.Property(e => e.ProfitPercent).HasColumnType("decimal(18,2)");
  8683. entity.Property(e => e.ProfitRate).HasColumnType("decimal(18,2)");
  8684. entity.Property(e => e.ProfitRateBase).HasColumnType("decimal(18,2)");
  8685. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8686. entity.Property(e => e.Remark)
  8687. .HasColumnType("varchar(64)")
  8688. .HasCharSet("utf8")
  8689. .HasCollation("utf8_general_ci");
  8690. entity.Property(e => e.SeoDescription)
  8691. .HasColumnType("varchar(500)")
  8692. .HasCharSet("utf8")
  8693. .HasCollation("utf8_general_ci");
  8694. entity.Property(e => e.SeoKeyword)
  8695. .HasColumnType("varchar(200)")
  8696. .HasCharSet("utf8")
  8697. .HasCollation("utf8_general_ci");
  8698. entity.Property(e => e.SeoTitle)
  8699. .HasColumnType("varchar(100)")
  8700. .HasCharSet("utf8")
  8701. .HasCollation("utf8_general_ci");
  8702. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8703. entity.Property(e => e.Status).HasColumnType("int(11)");
  8704. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  8705. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8706. entity.Property(e => e.UpdateMan)
  8707. .HasColumnType("varchar(50)")
  8708. .HasCharSet("utf8")
  8709. .HasCollation("utf8_general_ci");
  8710. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8711. entity.Property(e => e.Version).HasColumnType("int(11)");
  8712. });
  8713. modelBuilder.Entity<UserProfitSet>(entity =>
  8714. {
  8715. entity.Property(e => e.Id).HasColumnType("int(11)");
  8716. entity.Property(e => e.AddOrSubRate).HasColumnType("decimal(18,2)");
  8717. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  8718. entity.Property(e => e.CardType).HasColumnType("int(11)");
  8719. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8720. entity.Property(e => e.CreateMan)
  8721. .HasColumnType("varchar(50)")
  8722. .HasCharSet("utf8")
  8723. .HasCollation("utf8_general_ci");
  8724. entity.Property(e => e.HelpFlag).HasColumnType("int(11)");
  8725. entity.Property(e => e.ProfitPercent).HasColumnType("decimal(18,2)");
  8726. entity.Property(e => e.ProfitRate).HasColumnType("decimal(18,2)");
  8727. entity.Property(e => e.ProfitRateBase).HasColumnType("decimal(18,2)");
  8728. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8729. entity.Property(e => e.Remark)
  8730. .HasColumnType("varchar(64)")
  8731. .HasCharSet("utf8")
  8732. .HasCollation("utf8_general_ci");
  8733. entity.Property(e => e.SeoDescription)
  8734. .HasColumnType("varchar(500)")
  8735. .HasCharSet("utf8")
  8736. .HasCollation("utf8_general_ci");
  8737. entity.Property(e => e.SeoKeyword)
  8738. .HasColumnType("varchar(200)")
  8739. .HasCharSet("utf8")
  8740. .HasCollation("utf8_general_ci");
  8741. entity.Property(e => e.SeoTitle)
  8742. .HasColumnType("varchar(100)")
  8743. .HasCharSet("utf8")
  8744. .HasCollation("utf8_general_ci");
  8745. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8746. entity.Property(e => e.Status).HasColumnType("int(11)");
  8747. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  8748. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8749. entity.Property(e => e.UpdateMan)
  8750. .HasColumnType("varchar(50)")
  8751. .HasCharSet("utf8")
  8752. .HasCollation("utf8_general_ci");
  8753. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8754. entity.Property(e => e.Version).HasColumnType("int(11)");
  8755. });
  8756. modelBuilder.Entity<UserProfitSubsidySummary>(entity =>
  8757. {
  8758. entity.Property(e => e.Id).HasColumnType("int(11)");
  8759. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  8760. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  8761. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8762. entity.Property(e => e.CreateMan)
  8763. .HasColumnType("varchar(50)")
  8764. .HasCharSet("utf8")
  8765. .HasCollation("utf8_general_ci");
  8766. entity.Property(e => e.MgrName)
  8767. .HasColumnType("varchar(32)")
  8768. .HasCharSet("utf8")
  8769. .HasCollation("utf8_general_ci");
  8770. entity.Property(e => e.MgrNo)
  8771. .HasColumnType("varchar(16)")
  8772. .HasCharSet("utf8")
  8773. .HasCollation("utf8_general_ci");
  8774. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8775. entity.Property(e => e.SeoDescription)
  8776. .HasColumnType("varchar(500)")
  8777. .HasCharSet("utf8")
  8778. .HasCollation("utf8_general_ci");
  8779. entity.Property(e => e.SeoKeyword)
  8780. .HasColumnType("varchar(200)")
  8781. .HasCharSet("utf8")
  8782. .HasCollation("utf8_general_ci");
  8783. entity.Property(e => e.SeoTitle)
  8784. .HasColumnType("varchar(100)")
  8785. .HasCharSet("utf8")
  8786. .HasCollation("utf8_general_ci");
  8787. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8788. entity.Property(e => e.Status).HasColumnType("int(11)");
  8789. entity.Property(e => e.SubsidyDirectProfit).HasColumnType("decimal(18,2)");
  8790. entity.Property(e => e.SubsidyJuniorProfit).HasColumnType("decimal(18,2)");
  8791. entity.Property(e => e.SubsidyTotalProfit).HasColumnType("decimal(18,2)");
  8792. entity.Property(e => e.TradeMonth)
  8793. .HasColumnType("varchar(6)")
  8794. .HasCharSet("utf8")
  8795. .HasCollation("utf8_general_ci");
  8796. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8797. entity.Property(e => e.UpdateMan)
  8798. .HasColumnType("varchar(50)")
  8799. .HasCharSet("utf8")
  8800. .HasCollation("utf8_general_ci");
  8801. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8802. entity.Property(e => e.Version).HasColumnType("int(11)");
  8803. });
  8804. modelBuilder.Entity<UserRank>(entity =>
  8805. {
  8806. entity.Property(e => e.Id).HasColumnType("int(11)");
  8807. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8808. entity.Property(e => e.CreateMan)
  8809. .HasColumnType("varchar(50)")
  8810. .HasCharSet("utf8")
  8811. .HasCollation("utf8_general_ci");
  8812. entity.Property(e => e.ExceedVal).HasColumnType("int(11)");
  8813. entity.Property(e => e.NextRank).HasColumnType("int(11)");
  8814. entity.Property(e => e.OperateDate).HasColumnType("datetime");
  8815. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8816. entity.Property(e => e.Rank).HasColumnType("int(11)");
  8817. entity.Property(e => e.SeoDescription)
  8818. .HasColumnType("varchar(500)")
  8819. .HasCharSet("utf8")
  8820. .HasCollation("utf8_general_ci");
  8821. entity.Property(e => e.SeoKeyword)
  8822. .HasColumnType("varchar(200)")
  8823. .HasCharSet("utf8")
  8824. .HasCollation("utf8_general_ci");
  8825. entity.Property(e => e.SeoTitle)
  8826. .HasColumnType("varchar(100)")
  8827. .HasCharSet("utf8")
  8828. .HasCollation("utf8_general_ci");
  8829. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8830. entity.Property(e => e.StatMonth).HasColumnType("int(11)");
  8831. entity.Property(e => e.StatYear).HasColumnType("int(11)");
  8832. entity.Property(e => e.Status).HasColumnType("int(11)");
  8833. entity.Property(e => e.TradeAmt).HasColumnType("decimal(18,2)");
  8834. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8835. entity.Property(e => e.UpdateMan)
  8836. .HasColumnType("varchar(50)")
  8837. .HasCharSet("utf8")
  8838. .HasCollation("utf8_general_ci");
  8839. entity.Property(e => e.UpgradeFlag)
  8840. .HasColumnType("bit(1)")
  8841. .HasDefaultValueSql("b'0'");
  8842. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8843. entity.Property(e => e.Version).HasColumnType("int(11)");
  8844. entity.Property(e => e.WhiteRank).HasColumnType("int(11)");
  8845. });
  8846. modelBuilder.Entity<UserRankWhite>(entity =>
  8847. {
  8848. entity.Property(e => e.Id).HasColumnType("int(11)");
  8849. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8850. entity.Property(e => e.CreateMan)
  8851. .HasColumnType("varchar(50)")
  8852. .HasCharSet("utf8")
  8853. .HasCollation("utf8_general_ci");
  8854. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8855. entity.Property(e => e.Rank).HasColumnType("int(11)");
  8856. entity.Property(e => e.SeoDescription)
  8857. .HasColumnType("varchar(500)")
  8858. .HasCharSet("utf8")
  8859. .HasCollation("utf8_general_ci");
  8860. entity.Property(e => e.SeoKeyword)
  8861. .HasColumnType("varchar(200)")
  8862. .HasCharSet("utf8")
  8863. .HasCollation("utf8_general_ci");
  8864. entity.Property(e => e.SeoTitle)
  8865. .HasColumnType("varchar(100)")
  8866. .HasCharSet("utf8")
  8867. .HasCollation("utf8_general_ci");
  8868. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8869. entity.Property(e => e.Status).HasColumnType("int(11)");
  8870. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8871. entity.Property(e => e.UpdateMan)
  8872. .HasColumnType("varchar(50)")
  8873. .HasCharSet("utf8")
  8874. .HasCollation("utf8_general_ci");
  8875. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8876. entity.Property(e => e.Version).HasColumnType("int(11)");
  8877. });
  8878. modelBuilder.Entity<UserRebateDetail>(entity =>
  8879. {
  8880. entity.Property(e => e.Id).HasColumnType("int(11)");
  8881. entity.Property(e => e.ChannelMerNo)
  8882. .HasColumnType("varchar(32)")
  8883. .HasCharSet("utf8")
  8884. .HasCollation("utf8_general_ci");
  8885. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8886. entity.Property(e => e.CreateMan)
  8887. .HasColumnType("varchar(50)")
  8888. .HasCharSet("utf8")
  8889. .HasCollation("utf8_general_ci");
  8890. entity.Property(e => e.CreditRewardAmount).HasColumnType("decimal(18,2)");
  8891. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  8892. entity.Property(e => e.DebitRewardAmount).HasColumnType("decimal(18,2)");
  8893. entity.Property(e => e.DebitTradeAmt).HasColumnType("decimal(18,2)");
  8894. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  8895. entity.Property(e => e.MgrName)
  8896. .HasColumnType("varchar(32)")
  8897. .HasCharSet("utf8")
  8898. .HasCollation("utf8_general_ci");
  8899. entity.Property(e => e.MgrNo)
  8900. .HasColumnType("varchar(16)")
  8901. .HasCharSet("utf8")
  8902. .HasCollation("utf8_general_ci");
  8903. entity.Property(e => e.ProductName)
  8904. .HasColumnType("varchar(32)")
  8905. .HasCharSet("utf8")
  8906. .HasCollation("utf8_general_ci");
  8907. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  8908. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8909. entity.Property(e => e.RebateMonthCount).HasColumnType("int(11)");
  8910. entity.Property(e => e.RebateRewardNo)
  8911. .HasColumnType("varchar(32)")
  8912. .HasCharSet("utf8")
  8913. .HasCollation("utf8_general_ci");
  8914. entity.Property(e => e.RebateType).HasColumnType("int(11)");
  8915. entity.Property(e => e.Remark)
  8916. .HasColumnType("varchar(64)")
  8917. .HasCharSet("utf8")
  8918. .HasCollation("utf8_general_ci");
  8919. entity.Property(e => e.SeoDescription)
  8920. .HasColumnType("varchar(500)")
  8921. .HasCharSet("utf8")
  8922. .HasCollation("utf8_general_ci");
  8923. entity.Property(e => e.SeoKeyword)
  8924. .HasColumnType("varchar(200)")
  8925. .HasCharSet("utf8")
  8926. .HasCollation("utf8_general_ci");
  8927. entity.Property(e => e.SeoTitle)
  8928. .HasColumnType("varchar(100)")
  8929. .HasCharSet("utf8")
  8930. .HasCollation("utf8_general_ci");
  8931. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8932. entity.Property(e => e.Status).HasColumnType("int(11)");
  8933. entity.Property(e => e.TradeDate)
  8934. .HasColumnType("varchar(8)")
  8935. .HasCharSet("utf8")
  8936. .HasCollation("utf8_general_ci");
  8937. entity.Property(e => e.TradeMonth)
  8938. .HasColumnType("varchar(6)")
  8939. .HasCharSet("utf8")
  8940. .HasCollation("utf8_general_ci");
  8941. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8942. entity.Property(e => e.UpdateMan)
  8943. .HasColumnType("varchar(50)")
  8944. .HasCharSet("utf8")
  8945. .HasCollation("utf8_general_ci");
  8946. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8947. entity.Property(e => e.Version).HasColumnType("int(11)");
  8948. });
  8949. modelBuilder.Entity<UserSnActInfo>(entity =>
  8950. {
  8951. entity.Property(e => e.Id).HasColumnType("int(11)");
  8952. entity.Property(e => e.ActUserId).HasColumnType("int(11)");
  8953. entity.Property(e => e.ActiveStatus).HasColumnType("int(11)");
  8954. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  8955. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8956. entity.Property(e => e.CreateMan)
  8957. .HasColumnType("varchar(50)")
  8958. .HasCharSet("utf8")
  8959. .HasCollation("utf8_general_ci");
  8960. entity.Property(e => e.EffectEndActDate)
  8961. .HasColumnType("varchar(8)")
  8962. .HasCharSet("utf8")
  8963. .HasCollation("utf8_general_ci");
  8964. entity.Property(e => e.EffectEndCycleDate)
  8965. .HasColumnType("varchar(8)")
  8966. .HasCharSet("utf8")
  8967. .HasCollation("utf8_general_ci");
  8968. entity.Property(e => e.EffectStartActDate)
  8969. .HasColumnType("varchar(8)")
  8970. .HasCharSet("utf8")
  8971. .HasCollation("utf8_general_ci");
  8972. entity.Property(e => e.EffectStartCycleDate)
  8973. .HasColumnType("varchar(8)")
  8974. .HasCharSet("utf8")
  8975. .HasCollation("utf8_general_ci");
  8976. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8977. entity.Property(e => e.Remark)
  8978. .HasColumnType("varchar(128)")
  8979. .HasCharSet("utf8")
  8980. .HasCollation("utf8_general_ci");
  8981. entity.Property(e => e.SeoDescription)
  8982. .HasColumnType("varchar(500)")
  8983. .HasCharSet("utf8")
  8984. .HasCollation("utf8_general_ci");
  8985. entity.Property(e => e.SeoKeyword)
  8986. .HasColumnType("varchar(200)")
  8987. .HasCharSet("utf8")
  8988. .HasCollation("utf8_general_ci");
  8989. entity.Property(e => e.SeoTitle)
  8990. .HasColumnType("varchar(100)")
  8991. .HasCharSet("utf8")
  8992. .HasCollation("utf8_general_ci");
  8993. entity.Property(e => e.SnNo)
  8994. .HasColumnType("varchar(32)")
  8995. .HasCharSet("utf8")
  8996. .HasCollation("utf8_general_ci");
  8997. entity.Property(e => e.SnShipDate).HasColumnType("datetime");
  8998. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  8999. entity.Property(e => e.SnType).HasColumnType("int(11)");
  9000. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9001. entity.Property(e => e.SourceShipDate).HasColumnType("datetime");
  9002. entity.Property(e => e.SourceSnNo)
  9003. .HasColumnType("varchar(32)")
  9004. .HasCharSet("utf8")
  9005. .HasCollation("utf8_general_ci");
  9006. entity.Property(e => e.SourceSnType).HasColumnType("int(11)");
  9007. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  9008. entity.Property(e => e.StandardDate)
  9009. .HasColumnType("varchar(8)")
  9010. .HasCharSet("utf8")
  9011. .HasCollation("utf8_general_ci");
  9012. entity.Property(e => e.Status).HasColumnType("int(11)");
  9013. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9014. entity.Property(e => e.UpdateMan)
  9015. .HasColumnType("varchar(50)")
  9016. .HasCharSet("utf8")
  9017. .HasCollation("utf8_general_ci");
  9018. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9019. entity.Property(e => e.Version).HasColumnType("int(11)");
  9020. });
  9021. modelBuilder.Entity<UserSnDelayChange>(entity =>
  9022. {
  9023. entity.Property(e => e.Id).HasColumnType("int(11)");
  9024. entity.Property(e => e.ActivityRuleId).HasColumnType("int(11)");
  9025. entity.Property(e => e.AfterEndCycleDate)
  9026. .HasColumnType("varchar(8)")
  9027. .HasCharSet("utf8")
  9028. .HasCollation("utf8_general_ci");
  9029. entity.Property(e => e.BeforeEndCycleDate)
  9030. .HasColumnType("varchar(8)")
  9031. .HasCharSet("utf8")
  9032. .HasCollation("utf8_general_ci");
  9033. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9034. entity.Property(e => e.ChangeRecordNo)
  9035. .HasColumnType("varchar(32)")
  9036. .HasCharSet("utf8")
  9037. .HasCollation("utf8_general_ci");
  9038. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9039. entity.Property(e => e.CreateMan)
  9040. .HasColumnType("varchar(50)")
  9041. .HasCharSet("utf8")
  9042. .HasCollation("utf8_general_ci");
  9043. entity.Property(e => e.InitCycleDate)
  9044. .HasColumnType("varchar(8)")
  9045. .HasCharSet("utf8")
  9046. .HasCollation("utf8_general_ci");
  9047. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9048. entity.Property(e => e.RecUserId).HasColumnType("int(11)");
  9049. entity.Property(e => e.Remark)
  9050. .HasColumnType("varchar(128)")
  9051. .HasCharSet("utf8")
  9052. .HasCollation("utf8_general_ci");
  9053. entity.Property(e => e.SeoDescription)
  9054. .HasColumnType("varchar(500)")
  9055. .HasCharSet("utf8")
  9056. .HasCollation("utf8_general_ci");
  9057. entity.Property(e => e.SeoKeyword)
  9058. .HasColumnType("varchar(200)")
  9059. .HasCharSet("utf8")
  9060. .HasCollation("utf8_general_ci");
  9061. entity.Property(e => e.SeoTitle)
  9062. .HasColumnType("varchar(100)")
  9063. .HasCharSet("utf8")
  9064. .HasCollation("utf8_general_ci");
  9065. entity.Property(e => e.SnDelayDay).HasColumnType("int(11)");
  9066. entity.Property(e => e.SnNo)
  9067. .HasColumnType("varchar(32)")
  9068. .HasCharSet("utf8")
  9069. .HasCollation("utf8_general_ci");
  9070. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  9071. entity.Property(e => e.SnType).HasColumnType("int(11)");
  9072. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9073. entity.Property(e => e.SourceSnNo)
  9074. .HasColumnType("varchar(32)")
  9075. .HasCharSet("utf8")
  9076. .HasCollation("utf8_general_ci");
  9077. entity.Property(e => e.SourceSnShipDate).HasColumnType("datetime");
  9078. entity.Property(e => e.SourceSnType).HasColumnType("int(11)");
  9079. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  9080. entity.Property(e => e.Status).HasColumnType("int(11)");
  9081. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9082. entity.Property(e => e.UpdateMan)
  9083. .HasColumnType("varchar(50)")
  9084. .HasCharSet("utf8")
  9085. .HasCollation("utf8_general_ci");
  9086. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9087. entity.Property(e => e.Version).HasColumnType("int(11)");
  9088. });
  9089. modelBuilder.Entity<UserStoreChange>(entity =>
  9090. {
  9091. entity.Property(e => e.Id).HasColumnType("int(11)");
  9092. entity.Property(e => e.ActRewardUserId).HasColumnType("int(11)");
  9093. entity.Property(e => e.ActiveStatus).HasColumnType("int(11)");
  9094. entity.Property(e => e.BindMerchantId).HasColumnType("int(11)");
  9095. entity.Property(e => e.BindStatus).HasColumnType("int(11)");
  9096. entity.Property(e => e.BizBatchNo)
  9097. .HasColumnType("varchar(32)")
  9098. .HasCharSet("utf8")
  9099. .HasCollation("utf8_general_ci");
  9100. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9101. entity.Property(e => e.BrandType)
  9102. .HasColumnType("varchar(10)")
  9103. .HasCharSet("utf8")
  9104. .HasCollation("utf8_general_ci");
  9105. entity.Property(e => e.ChangeRecordNo)
  9106. .HasColumnType("varchar(32)")
  9107. .HasCharSet("utf8")
  9108. .HasCollation("utf8_general_ci");
  9109. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9110. entity.Property(e => e.CreateMan)
  9111. .HasColumnType("varchar(50)")
  9112. .HasCharSet("utf8")
  9113. .HasCollation("utf8_general_ci");
  9114. entity.Property(e => e.DeviceModel)
  9115. .HasColumnType("varchar(32)")
  9116. .HasCharSet("utf8")
  9117. .HasCollation("utf8_general_ci");
  9118. entity.Property(e => e.DeviceType)
  9119. .HasColumnType("varchar(32)")
  9120. .HasCharSet("utf8")
  9121. .HasCollation("utf8_general_ci");
  9122. entity.Property(e => e.DeviceVendor)
  9123. .HasColumnType("varchar(32)")
  9124. .HasCharSet("utf8")
  9125. .HasCollation("utf8_general_ci");
  9126. entity.Property(e => e.FromDate).HasColumnType("datetime");
  9127. entity.Property(e => e.FromRemark)
  9128. .HasColumnType("varchar(64)")
  9129. .HasCharSet("utf8")
  9130. .HasCollation("utf8_general_ci");
  9131. entity.Property(e => e.FromUserId).HasColumnType("int(11)");
  9132. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9133. entity.Property(e => e.SeoDescription)
  9134. .HasColumnType("varchar(500)")
  9135. .HasCharSet("utf8")
  9136. .HasCollation("utf8_general_ci");
  9137. entity.Property(e => e.SeoKeyword)
  9138. .HasColumnType("varchar(200)")
  9139. .HasCharSet("utf8")
  9140. .HasCollation("utf8_general_ci");
  9141. entity.Property(e => e.SeoTitle)
  9142. .HasColumnType("varchar(100)")
  9143. .HasCharSet("utf8")
  9144. .HasCollation("utf8_general_ci");
  9145. entity.Property(e => e.SnNo)
  9146. .HasColumnType("varchar(32)")
  9147. .HasCharSet("utf8")
  9148. .HasCollation("utf8_general_ci");
  9149. entity.Property(e => e.SnStatus).HasColumnType("int(11)");
  9150. entity.Property(e => e.SnType).HasColumnType("int(11)");
  9151. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9152. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  9153. entity.Property(e => e.Status).HasColumnType("int(11)");
  9154. entity.Property(e => e.StockOpDirect).HasColumnType("int(11)");
  9155. entity.Property(e => e.ToDate).HasColumnType("datetime");
  9156. entity.Property(e => e.ToRemark)
  9157. .HasColumnType("varchar(64)")
  9158. .HasCharSet("utf8")
  9159. .HasCollation("utf8_general_ci");
  9160. entity.Property(e => e.ToStoreId).HasColumnType("int(11)");
  9161. entity.Property(e => e.ToUserId).HasColumnType("int(11)");
  9162. entity.Property(e => e.TransType).HasColumnType("int(11)");
  9163. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9164. entity.Property(e => e.UpdateMan)
  9165. .HasColumnType("varchar(50)")
  9166. .HasCharSet("utf8")
  9167. .HasCollation("utf8_general_ci");
  9168. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9169. entity.Property(e => e.Version).HasColumnType("int(11)");
  9170. });
  9171. modelBuilder.Entity<UserSwapDetail>(entity =>
  9172. {
  9173. entity.Property(e => e.Id).HasColumnType("int(11)");
  9174. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9175. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9176. entity.Property(e => e.CreateMan)
  9177. .HasColumnType("varchar(50)")
  9178. .HasCharSet("utf8")
  9179. .HasCollation("utf8_general_ci");
  9180. entity.Property(e => e.DirectSnTradeAmt).HasColumnType("decimal(18,2)");
  9181. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9182. entity.Property(e => e.RecordNo)
  9183. .HasColumnType("varchar(32)")
  9184. .HasCharSet("utf8")
  9185. .HasCollation("utf8_general_ci");
  9186. entity.Property(e => e.Remark)
  9187. .HasColumnType("varchar(64)")
  9188. .HasCharSet("utf8")
  9189. .HasCollation("utf8_general_ci");
  9190. entity.Property(e => e.RiskResult).HasColumnType("int(11)");
  9191. entity.Property(e => e.SeoDescription)
  9192. .HasColumnType("varchar(500)")
  9193. .HasCharSet("utf8")
  9194. .HasCollation("utf8_general_ci");
  9195. entity.Property(e => e.SeoKeyword)
  9196. .HasColumnType("varchar(200)")
  9197. .HasCharSet("utf8")
  9198. .HasCollation("utf8_general_ci");
  9199. entity.Property(e => e.SeoTitle)
  9200. .HasColumnType("varchar(100)")
  9201. .HasCharSet("utf8")
  9202. .HasCollation("utf8_general_ci");
  9203. entity.Property(e => e.SnNo)
  9204. .HasColumnType("varchar(32)")
  9205. .HasCharSet("utf8")
  9206. .HasCollation("utf8_general_ci");
  9207. entity.Property(e => e.SnType).HasColumnType("int(11)");
  9208. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9209. entity.Property(e => e.SourceSnNo)
  9210. .HasColumnType("varchar(32)")
  9211. .HasCharSet("utf8")
  9212. .HasCollation("utf8_general_ci");
  9213. entity.Property(e => e.SourceSnType).HasColumnType("int(11)");
  9214. entity.Property(e => e.Status).HasColumnType("int(11)");
  9215. entity.Property(e => e.SwapExtProductTypes)
  9216. .HasColumnType("varchar(16)")
  9217. .HasCharSet("utf8")
  9218. .HasCollation("utf8_general_ci");
  9219. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  9220. entity.Property(e => e.TradeDate)
  9221. .HasColumnType("varchar(8)")
  9222. .HasCharSet("utf8")
  9223. .HasCollation("utf8_general_ci");
  9224. entity.Property(e => e.TradeMonth)
  9225. .HasColumnType("varchar(6)")
  9226. .HasCharSet("utf8")
  9227. .HasCollation("utf8_general_ci");
  9228. entity.Property(e => e.UpSourceSnNo)
  9229. .HasColumnType("varchar(32)")
  9230. .HasCharSet("utf8")
  9231. .HasCollation("utf8_general_ci");
  9232. entity.Property(e => e.UpSourceSnType).HasColumnType("int(11)");
  9233. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9234. entity.Property(e => e.UpdateMan)
  9235. .HasColumnType("varchar(50)")
  9236. .HasCharSet("utf8")
  9237. .HasCollation("utf8_general_ci");
  9238. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9239. entity.Property(e => e.Version).HasColumnType("int(11)");
  9240. });
  9241. modelBuilder.Entity<UserSwapSummary>(entity =>
  9242. {
  9243. entity.Property(e => e.Id).HasColumnType("int(11)");
  9244. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9245. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9246. entity.Property(e => e.CreateMan)
  9247. .HasColumnType("varchar(50)")
  9248. .HasCharSet("utf8")
  9249. .HasCollation("utf8_general_ci");
  9250. entity.Property(e => e.DirAvgTradeAmt).HasColumnType("decimal(18,2)");
  9251. entity.Property(e => e.DirectActMerCount).HasColumnType("int(11)");
  9252. entity.Property(e => e.DirectTradeAmt).HasColumnType("decimal(18,2)");
  9253. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9254. entity.Property(e => e.RiskStatus).HasColumnType("int(11)");
  9255. entity.Property(e => e.RuleId).HasColumnType("int(11)");
  9256. entity.Property(e => e.SeoDescription)
  9257. .HasColumnType("varchar(500)")
  9258. .HasCharSet("utf8")
  9259. .HasCollation("utf8_general_ci");
  9260. entity.Property(e => e.SeoKeyword)
  9261. .HasColumnType("varchar(200)")
  9262. .HasCharSet("utf8")
  9263. .HasCollation("utf8_general_ci");
  9264. entity.Property(e => e.SeoTitle)
  9265. .HasColumnType("varchar(100)")
  9266. .HasCharSet("utf8")
  9267. .HasCollation("utf8_general_ci");
  9268. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9269. entity.Property(e => e.Status).HasColumnType("int(11)");
  9270. entity.Property(e => e.SwapExtProductTypes)
  9271. .HasColumnType("varchar(16)")
  9272. .HasCharSet("utf8")
  9273. .HasCollation("utf8_general_ci");
  9274. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  9275. entity.Property(e => e.TradeMonth)
  9276. .HasColumnType("varchar(6)")
  9277. .HasCharSet("utf8")
  9278. .HasCollation("utf8_general_ci");
  9279. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9280. entity.Property(e => e.UpdateMan)
  9281. .HasColumnType("varchar(50)")
  9282. .HasCharSet("utf8")
  9283. .HasCollation("utf8_general_ci");
  9284. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9285. entity.Property(e => e.Version).HasColumnType("int(11)");
  9286. });
  9287. modelBuilder.Entity<UserSwapWhite>(entity =>
  9288. {
  9289. entity.Property(e => e.Id).HasColumnType("int(11)");
  9290. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9291. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9292. entity.Property(e => e.CreateMan)
  9293. .HasColumnType("varchar(50)")
  9294. .HasCharSet("utf8")
  9295. .HasCollation("utf8_general_ci");
  9296. entity.Property(e => e.EndEffectTime).HasColumnType("datetime");
  9297. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9298. entity.Property(e => e.Remark)
  9299. .HasColumnType("varchar(64)")
  9300. .HasCharSet("utf8")
  9301. .HasCollation("utf8_general_ci");
  9302. entity.Property(e => e.RiskType).HasColumnType("int(11)");
  9303. entity.Property(e => e.SeoDescription)
  9304. .HasColumnType("varchar(500)")
  9305. .HasCharSet("utf8")
  9306. .HasCollation("utf8_general_ci");
  9307. entity.Property(e => e.SeoKeyword)
  9308. .HasColumnType("varchar(200)")
  9309. .HasCharSet("utf8")
  9310. .HasCollation("utf8_general_ci");
  9311. entity.Property(e => e.SeoTitle)
  9312. .HasColumnType("varchar(100)")
  9313. .HasCharSet("utf8")
  9314. .HasCollation("utf8_general_ci");
  9315. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9316. entity.Property(e => e.StartEffectTime).HasColumnType("datetime");
  9317. entity.Property(e => e.Status).HasColumnType("int(11)");
  9318. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9319. entity.Property(e => e.UpdateMan)
  9320. .HasColumnType("varchar(50)")
  9321. .HasCharSet("utf8")
  9322. .HasCollation("utf8_general_ci");
  9323. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9324. entity.Property(e => e.Version).HasColumnType("int(11)");
  9325. });
  9326. modelBuilder.Entity<UserTradeDaySummary>(entity =>
  9327. {
  9328. entity.Property(e => e.Id).HasColumnType("int(11)");
  9329. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9330. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9331. entity.Property(e => e.CreateMan)
  9332. .HasColumnType("varchar(50)")
  9333. .HasCharSet("utf8")
  9334. .HasCollation("utf8_general_ci");
  9335. entity.Property(e => e.DirectDebitCapNum).HasColumnType("int(11)");
  9336. entity.Property(e => e.DirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  9337. entity.Property(e => e.DirectTradeAmt).HasColumnType("decimal(18,2)");
  9338. entity.Property(e => e.NonDirectDebitCapNum).HasColumnType("int(11)");
  9339. entity.Property(e => e.NonDirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  9340. entity.Property(e => e.NonDirectTradeAmt).HasColumnType("decimal(18,2)");
  9341. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9342. entity.Property(e => e.Remark)
  9343. .HasColumnType("varchar(64)")
  9344. .HasCharSet("utf8")
  9345. .HasCollation("utf8_general_ci");
  9346. entity.Property(e => e.SeoDescription)
  9347. .HasColumnType("varchar(500)")
  9348. .HasCharSet("utf8")
  9349. .HasCollation("utf8_general_ci");
  9350. entity.Property(e => e.SeoKeyword)
  9351. .HasColumnType("varchar(200)")
  9352. .HasCharSet("utf8")
  9353. .HasCollation("utf8_general_ci");
  9354. entity.Property(e => e.SeoTitle)
  9355. .HasColumnType("varchar(100)")
  9356. .HasCharSet("utf8")
  9357. .HasCollation("utf8_general_ci");
  9358. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9359. entity.Property(e => e.Status).HasColumnType("int(11)");
  9360. entity.Property(e => e.TradeDate)
  9361. .HasColumnType("varchar(8)")
  9362. .HasCharSet("utf8")
  9363. .HasCollation("utf8_general_ci");
  9364. entity.Property(e => e.TradeMonth)
  9365. .HasColumnType("varchar(6)")
  9366. .HasCharSet("utf8")
  9367. .HasCollation("utf8_general_ci");
  9368. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9369. entity.Property(e => e.UpdateMan)
  9370. .HasColumnType("varchar(50)")
  9371. .HasCharSet("utf8")
  9372. .HasCollation("utf8_general_ci");
  9373. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9374. entity.Property(e => e.Version).HasColumnType("int(11)");
  9375. });
  9376. modelBuilder.Entity<UserTradeMonthSummary>(entity =>
  9377. {
  9378. entity.Property(e => e.Id).HasColumnType("int(11)");
  9379. entity.Property(e => e.ActiveBuddyMerStatus).HasColumnType("int(11)");
  9380. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9381. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9382. entity.Property(e => e.CreateMan)
  9383. .HasColumnType("varchar(50)")
  9384. .HasCharSet("utf8")
  9385. .HasCollation("utf8_general_ci");
  9386. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  9387. entity.Property(e => e.DebitCapTradeAmt).HasColumnType("decimal(18,2)");
  9388. entity.Property(e => e.DebitCapTradeNum).HasColumnType("int(11)");
  9389. entity.Property(e => e.DebitNotCapTradeAmt).HasColumnType("decimal(18,2)");
  9390. entity.Property(e => e.MallPosOrderStatus).HasColumnType("int(11)");
  9391. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9392. entity.Property(e => e.Remark)
  9393. .HasColumnType("varchar(64)")
  9394. .HasCharSet("utf8")
  9395. .HasCollation("utf8_general_ci");
  9396. entity.Property(e => e.SeoDescription)
  9397. .HasColumnType("varchar(500)")
  9398. .HasCharSet("utf8")
  9399. .HasCollation("utf8_general_ci");
  9400. entity.Property(e => e.SeoKeyword)
  9401. .HasColumnType("varchar(200)")
  9402. .HasCharSet("utf8")
  9403. .HasCollation("utf8_general_ci");
  9404. entity.Property(e => e.SeoTitle)
  9405. .HasColumnType("varchar(100)")
  9406. .HasCharSet("utf8")
  9407. .HasCollation("utf8_general_ci");
  9408. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9409. entity.Property(e => e.StatType).HasColumnType("int(11)");
  9410. entity.Property(e => e.Status).HasColumnType("int(11)");
  9411. entity.Property(e => e.TradeAmt).HasColumnType("decimal(18,2)");
  9412. entity.Property(e => e.TradeMonth)
  9413. .HasColumnType("varchar(6)")
  9414. .HasCharSet("utf8")
  9415. .HasCollation("utf8_general_ci");
  9416. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9417. entity.Property(e => e.UpdateMan)
  9418. .HasColumnType("varchar(50)")
  9419. .HasCharSet("utf8")
  9420. .HasCollation("utf8_general_ci");
  9421. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9422. entity.Property(e => e.Version).HasColumnType("int(11)");
  9423. });
  9424. modelBuilder.Entity<Users>(entity =>
  9425. {
  9426. entity.Property(e => e.Id).HasColumnType("int(11)");
  9427. entity.Property(e => e.AccessToken)
  9428. .HasColumnType("varchar(64)")
  9429. .HasCharSet("utf8")
  9430. .HasCollation("utf8_general_ci");
  9431. entity.Property(e => e.ActiveRewardAmount).HasColumnType("decimal(18,2)");
  9432. entity.Property(e => e.Address)
  9433. .HasColumnType("varchar(50)")
  9434. .HasCharSet("utf8")
  9435. .HasCollation("utf8_general_ci");
  9436. entity.Property(e => e.AgentAreas)
  9437. .HasColumnType("varchar(50)")
  9438. .HasCharSet("utf8")
  9439. .HasCollation("utf8_general_ci");
  9440. entity.Property(e => e.AgentLevel).HasColumnType("int(11)");
  9441. entity.Property(e => e.AlipayUserId)
  9442. .HasColumnType("varchar(50)")
  9443. .HasCharSet("utf8")
  9444. .HasCollation("utf8_general_ci");
  9445. entity.Property(e => e.Areas)
  9446. .HasColumnType("varchar(30)")
  9447. .HasCharSet("utf8")
  9448. .HasCollation("utf8_general_ci");
  9449. entity.Property(e => e.AuditStatus).HasColumnType("int(11)");
  9450. entity.Property(e => e.AuthDate).HasColumnType("datetime");
  9451. entity.Property(e => e.AuthFlag)
  9452. .HasColumnType("bit(1)")
  9453. .HasDefaultValueSql("b'0'");
  9454. entity.Property(e => e.BankCardPositiveImage)
  9455. .HasColumnType("varchar(200)")
  9456. .HasCharSet("utf8")
  9457. .HasCollation("utf8_general_ci");
  9458. entity.Property(e => e.CarIds)
  9459. .HasColumnType("varchar(100)")
  9460. .HasCharSet("utf8")
  9461. .HasCollation("utf8_general_ci");
  9462. entity.Property(e => e.CardNo)
  9463. .HasColumnType("varchar(30)")
  9464. .HasCharSet("utf8")
  9465. .HasCollation("utf8_general_ci");
  9466. entity.Property(e => e.CardRecCode)
  9467. .HasColumnType("varchar(200)")
  9468. .HasCharSet("utf8")
  9469. .HasCollation("utf8_general_ci");
  9470. entity.Property(e => e.CashFreezeAmt).HasColumnType("decimal(18,2)");
  9471. entity.Property(e => e.CertFrontImage)
  9472. .HasColumnType("varchar(200)")
  9473. .HasCharSet("utf8")
  9474. .HasCollation("utf8_general_ci");
  9475. entity.Property(e => e.CertId)
  9476. .HasColumnType("varchar(18)")
  9477. .HasCharSet("utf8")
  9478. .HasCollation("utf8_general_ci");
  9479. entity.Property(e => e.CertReverseImage)
  9480. .HasColumnType("varchar(200)")
  9481. .HasCharSet("utf8")
  9482. .HasCollation("utf8_general_ci");
  9483. entity.Property(e => e.CertValidEndDate).HasColumnType("datetime");
  9484. entity.Property(e => e.CertValidStartDate).HasColumnType("datetime");
  9485. entity.Property(e => e.CitySetDate).HasColumnType("datetime");
  9486. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9487. entity.Property(e => e.CreateMan)
  9488. .HasColumnType("varchar(50)")
  9489. .HasCharSet("utf8")
  9490. .HasCollation("utf8_general_ci");
  9491. entity.Property(e => e.DeviceId)
  9492. .HasColumnType("varchar(128)")
  9493. .HasCharSet("utf8")
  9494. .HasCollation("utf8_general_ci");
  9495. entity.Property(e => e.DeviceToken)
  9496. .HasColumnType("varchar(64)")
  9497. .HasCharSet("utf8")
  9498. .HasCollation("utf8_general_ci");
  9499. entity.Property(e => e.ExpiredDate).HasColumnType("datetime");
  9500. entity.Property(e => e.GroupId)
  9501. .HasColumnType("varchar(200)")
  9502. .HasCharSet("utf8")
  9503. .HasCollation("utf8_general_ci");
  9504. entity.Property(e => e.HandCertImage)
  9505. .HasColumnType("varchar(200)")
  9506. .HasCharSet("utf8")
  9507. .HasCollation("utf8_general_ci");
  9508. entity.Property(e => e.HandPwd)
  9509. .HasColumnType("varchar(32)")
  9510. .HasCharSet("utf8")
  9511. .HasCollation("utf8_general_ci");
  9512. entity.Property(e => e.HeadPhoto)
  9513. .HasColumnType("varchar(2000)")
  9514. .HasCharSet("utf8")
  9515. .HasCollation("utf8_general_ci");
  9516. entity.Property(e => e.IdCardEndNo)
  9517. .HasColumnType("varchar(4)")
  9518. .HasCharSet("utf8")
  9519. .HasCollation("utf8_general_ci");
  9520. entity.Property(e => e.IsNewUser)
  9521. .HasColumnType("bit(1)")
  9522. .HasDefaultValueSql("b'0'");
  9523. entity.Property(e => e.LockStatus)
  9524. .HasColumnType("bit(1)")
  9525. .HasDefaultValueSql("b'0'");
  9526. entity.Property(e => e.LoginPwd)
  9527. .HasColumnType("varchar(32)")
  9528. .HasCharSet("utf8")
  9529. .HasCollation("utf8_general_ci");
  9530. entity.Property(e => e.LoginStatus).HasColumnType("int(11)");
  9531. entity.Property(e => e.MakerCode)
  9532. .HasColumnType("varchar(32)")
  9533. .HasCharSet("utf8")
  9534. .HasCollation("utf8_general_ci");
  9535. entity.Property(e => e.MerchantDate).HasColumnType("datetime");
  9536. entity.Property(e => e.MerchantType).HasColumnType("int(11)");
  9537. entity.Property(e => e.Mobile)
  9538. .HasColumnType("varchar(11)")
  9539. .HasCharSet("utf8")
  9540. .HasCollation("utf8_general_ci");
  9541. entity.Property(e => e.NickName)
  9542. .HasColumnType("varchar(300)")
  9543. .HasCharSet("utf8")
  9544. .HasCollation("utf8_general_ci");
  9545. entity.Property(e => e.OpenId)
  9546. .HasColumnType("varchar(50)")
  9547. .HasCharSet("utf8")
  9548. .HasCollation("utf8_general_ci");
  9549. entity.Property(e => e.ParentNav)
  9550. .HasColumnType("longtext")
  9551. .HasCharSet("utf8")
  9552. .HasCollation("utf8_general_ci");
  9553. entity.Property(e => e.ParentUserId).HasColumnType("int(11)");
  9554. entity.Property(e => e.PayPwd)
  9555. .HasColumnType("varchar(32)")
  9556. .HasCharSet("utf8")
  9557. .HasCollation("utf8_general_ci");
  9558. entity.Property(e => e.ProfitRewardRate).HasColumnType("decimal(18,2)");
  9559. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9560. entity.Property(e => e.RealName)
  9561. .HasColumnType("varchar(30)")
  9562. .HasCharSet("utf8")
  9563. .HasCollation("utf8_general_ci");
  9564. entity.Property(e => e.ReferenceCode)
  9565. .HasColumnType("varchar(200)")
  9566. .HasCharSet("utf8")
  9567. .HasCollation("utf8_general_ci");
  9568. entity.Property(e => e.ReferenceQrCode)
  9569. .HasColumnType("varchar(200)")
  9570. .HasCharSet("utf8")
  9571. .HasCollation("utf8_general_ci");
  9572. entity.Property(e => e.ReferralUserId).HasColumnType("int(11)");
  9573. entity.Property(e => e.Remark)
  9574. .HasColumnType("mediumtext")
  9575. .HasCharSet("utf8")
  9576. .HasCollation("utf8_general_ci");
  9577. entity.Property(e => e.RiskFlag)
  9578. .HasColumnType("bit(1)")
  9579. .HasDefaultValueSql("b'0'");
  9580. entity.Property(e => e.RiskRemark)
  9581. .HasColumnType("varchar(64)")
  9582. .HasCharSet("utf8")
  9583. .HasCollation("utf8_general_ci");
  9584. entity.Property(e => e.RreezeRemark)
  9585. .HasColumnType("varchar(64)")
  9586. .HasCharSet("utf8")
  9587. .HasCollation("utf8_general_ci");
  9588. entity.Property(e => e.SeoDescription)
  9589. .HasColumnType("varchar(500)")
  9590. .HasCharSet("utf8")
  9591. .HasCollation("utf8_general_ci");
  9592. entity.Property(e => e.SeoKeyword)
  9593. .HasColumnType("varchar(200)")
  9594. .HasCharSet("utf8")
  9595. .HasCollation("utf8_general_ci");
  9596. entity.Property(e => e.SeoTitle)
  9597. .HasColumnType("varchar(100)")
  9598. .HasCharSet("utf8")
  9599. .HasCollation("utf8_general_ci");
  9600. entity.Property(e => e.SettleAmount).HasColumnType("decimal(18,2)");
  9601. entity.Property(e => e.SettleBankCardName)
  9602. .HasColumnType("varchar(20)")
  9603. .HasCharSet("utf8")
  9604. .HasCollation("utf8_general_ci");
  9605. entity.Property(e => e.SettleBankCardNo)
  9606. .HasColumnType("varchar(32)")
  9607. .HasCharSet("utf8")
  9608. .HasCollation("utf8_general_ci");
  9609. entity.Property(e => e.SettleBankName)
  9610. .HasColumnType("varchar(32)")
  9611. .HasCharSet("utf8")
  9612. .HasCollation("utf8_general_ci");
  9613. entity.Property(e => e.SettleRemark)
  9614. .HasColumnType("varchar(64)")
  9615. .HasCharSet("utf8")
  9616. .HasCollation("utf8_general_ci");
  9617. entity.Property(e => e.Sex).HasColumnType("int(11)");
  9618. entity.Property(e => e.SignImgUrl)
  9619. .HasColumnType("varchar(200)")
  9620. .HasCharSet("utf8")
  9621. .HasCollation("utf8_general_ci");
  9622. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9623. entity.Property(e => e.Status).HasColumnType("int(11)");
  9624. entity.Property(e => e.Tags)
  9625. .HasColumnType("varchar(200)")
  9626. .HasCharSet("utf8")
  9627. .HasCollation("utf8_general_ci");
  9628. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9629. entity.Property(e => e.UpdateMan)
  9630. .HasColumnType("varchar(50)")
  9631. .HasCharSet("utf8")
  9632. .HasCollation("utf8_general_ci");
  9633. entity.Property(e => e.UserLevel).HasColumnType("int(11)");
  9634. entity.Property(e => e.UserProperty).HasColumnType("int(11)");
  9635. entity.Property(e => e.UserType).HasColumnType("int(11)");
  9636. entity.Property(e => e.Version).HasColumnType("int(11)");
  9637. });
  9638. OnModelCreatingPartial(modelBuilder);
  9639. }
  9640. partial void OnModelCreatingPartial(ModelBuilder modelBuilder);
  9641. }
  9642. }