WebCMSEntities.cs 505 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222
  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<ConsumerOrders> ConsumerOrders { get; set; }
  29. public virtual DbSet<ConsumerProfit> ConsumerProfit { get; set; }
  30. public virtual DbSet<Consumers> Consumers { get; set; }
  31. public virtual DbSet<CouponAssignRecords> CouponAssignRecords { get; set; }
  32. public virtual DbSet<Coupons> Coupons { get; set; }
  33. public virtual DbSet<CouponsForUser> CouponsForUser { get; set; }
  34. public virtual DbSet<CustomTagSet> CustomTagSet { get; set; }
  35. public virtual DbSet<ErpCompanys> ErpCompanys { get; set; }
  36. public virtual DbSet<FileUpdateInfo> FileUpdateInfo { get; set; }
  37. public virtual DbSet<FluxProfitDetail> FluxProfitDetail { get; set; }
  38. public virtual DbSet<FluxProfitSummary> FluxProfitSummary { get; set; }
  39. public virtual DbSet<IndexIconList> IndexIconList { get; set; }
  40. public virtual DbSet<KqProductBrand> KqProductBrand { get; set; }
  41. public virtual DbSet<KqProductOrgs> KqProductOrgs { get; set; }
  42. public virtual DbSet<KqProductRuleSet> KqProductRuleSet { get; set; }
  43. public virtual DbSet<KqProducts> KqProducts { get; set; }
  44. public virtual DbSet<MachineApply> MachineApply { get; set; }
  45. public virtual DbSet<MachineApplyDetail> MachineApplyDetail { get; set; }
  46. public virtual DbSet<MachineChange> MachineChange { get; set; }
  47. public virtual DbSet<MachineChangeDetail> MachineChangeDetail { get; set; }
  48. public virtual DbSet<MachineForQrCode> MachineForQrCode { get; set; }
  49. public virtual DbSet<MachineForSnNo> MachineForSnNo { get; set; }
  50. public virtual DbSet<MachineRenew> MachineRenew { get; set; }
  51. public virtual DbSet<MachineReturn> MachineReturn { get; set; }
  52. public virtual DbSet<MenuRight> MenuRight { get; set; }
  53. public virtual DbSet<MerchantAddInfo> MerchantAddInfo { get; set; }
  54. public virtual DbSet<MerchantAdmin> MerchantAdmin { get; set; }
  55. public virtual DbSet<MerchantAuth> MerchantAuth { get; set; }
  56. public virtual DbSet<MerchantClass> MerchantClass { get; set; }
  57. public virtual DbSet<MerchantCol> MerchantCol { get; set; }
  58. public virtual DbSet<MerchantComment> MerchantComment { get; set; }
  59. public virtual DbSet<MerchantForCode> MerchantForCode { get; set; }
  60. public virtual DbSet<MerchantForMobile> MerchantForMobile { get; set; }
  61. public virtual DbSet<MerchantForName> MerchantForName { get; set; }
  62. public virtual DbSet<MerchantInfo> MerchantInfo { get; set; }
  63. public virtual DbSet<MerchantParamSet> MerchantParamSet { get; set; }
  64. public virtual DbSet<MerchantQrCode> MerchantQrCode { get; set; }
  65. public virtual DbSet<MerchantRebateDetail> MerchantRebateDetail { get; set; }
  66. public virtual DbSet<Merchants> Merchants { get; set; }
  67. public virtual DbSet<MobileCodeCheck> MobileCodeCheck { get; set; }
  68. public virtual DbSet<MsgBlackList> MsgBlackList { get; set; }
  69. public virtual DbSet<MsgPersonal> MsgPersonal { get; set; }
  70. public virtual DbSet<MsgPlacard> MsgPlacard { get; set; }
  71. public virtual DbSet<MsgPlacardRead> MsgPlacardRead { get; set; }
  72. public virtual DbSet<MsgPush> MsgPush { get; set; }
  73. public virtual DbSet<MsgSms> MsgSms { get; set; }
  74. public virtual DbSet<MsgSmsSet> MsgSmsSet { get; set; }
  75. public virtual DbSet<MsgTemplate> MsgTemplate { get; set; }
  76. public virtual DbSet<OpenBankCityTable> OpenBankCityTable { get; set; }
  77. public virtual DbSet<OpenBankTable> OpenBankTable { get; set; }
  78. public virtual DbSet<OpenReward> OpenReward { get; set; }
  79. public virtual DbSet<OpenRewardDetail> OpenRewardDetail { get; set; }
  80. public virtual DbSet<OpenSnSnapshot> OpenSnSnapshot { get; set; }
  81. public virtual DbSet<OperateLog> OperateLog { get; set; }
  82. public virtual DbSet<OperateRightList> OperateRightList { get; set; }
  83. public virtual DbSet<OrderForNo> OrderForNo { get; set; }
  84. public virtual DbSet<OrderProduct> OrderProduct { get; set; }
  85. public virtual DbSet<OrderRefund> OrderRefund { get; set; }
  86. public virtual DbSet<OrderRefundReason> OrderRefundReason { get; set; }
  87. public virtual DbSet<Orders> Orders { get; set; }
  88. public virtual DbSet<PageInfo> PageInfo { get; set; }
  89. public virtual DbSet<PageUpdateInfo> PageUpdateInfo { get; set; }
  90. public virtual DbSet<PosMachines> PosMachines { get; set; }
  91. public virtual DbSet<ProductComment> ProductComment { get; set; }
  92. public virtual DbSet<ProductCommentAgree> ProductCommentAgree { get; set; }
  93. public virtual DbSet<ProductFareAreas> ProductFareAreas { get; set; }
  94. public virtual DbSet<ProductFareTemp> ProductFareTemp { get; set; }
  95. public virtual DbSet<ProductKeys> ProductKeys { get; set; }
  96. public virtual DbSet<ProductNorm> ProductNorm { get; set; }
  97. public virtual DbSet<ProductNormItem> ProductNormItem { get; set; }
  98. public virtual DbSet<ProductNormTemp> ProductNormTemp { get; set; }
  99. public virtual DbSet<Products> Products { get; set; }
  100. public virtual DbSet<ProfitObjectActivations> ProfitObjectActivations { get; set; }
  101. public virtual DbSet<ProfitObjectContinueFloors> ProfitObjectContinueFloors { get; set; }
  102. public virtual DbSet<ProfitObjectFloors> ProfitObjectFloors { get; set; }
  103. public virtual DbSet<ProfitObjectLevelKinds> ProfitObjectLevelKinds { get; set; }
  104. public virtual DbSet<ProfitObjectLevels> ProfitObjectLevels { get; set; }
  105. public virtual DbSet<ProfitObjects> ProfitObjects { get; set; }
  106. public virtual DbSet<ProfitObjectsActiveCheck> ProfitObjectsActiveCheck { get; set; }
  107. public virtual DbSet<ProfitObjectsActiveParams> ProfitObjectsActiveParams { get; set; }
  108. public virtual DbSet<ProfitObjectsActives> ProfitObjectsActives { get; set; }
  109. public virtual DbSet<ProfitObjectsActivesForId> ProfitObjectsActivesForId { get; set; }
  110. public virtual DbSet<ProfitObjectsRule> ProfitObjectsRule { get; set; }
  111. public virtual DbSet<ProfitObjectsRuleDetails> ProfitObjectsRuleDetails { get; set; }
  112. public virtual DbSet<ProfitReceiveRecord> ProfitReceiveRecord { get; set; }
  113. public virtual DbSet<ProfitReceives> ProfitReceives { get; set; }
  114. public virtual DbSet<ProfitRecord> ProfitRecord { get; set; }
  115. public virtual DbSet<ProfitRewardRecord> ProfitRewardRecord { get; set; }
  116. public virtual DbSet<ProfitSubsidyDetail> ProfitSubsidyDetail { get; set; }
  117. public virtual DbSet<PublicAccountSet> PublicAccountSet { get; set; }
  118. public virtual DbSet<PullNewAct> PullNewAct { get; set; }
  119. public virtual DbSet<PullNewDetail> PullNewDetail { get; set; }
  120. public virtual DbSet<PullnewSummary> PullnewSummary { get; set; }
  121. public virtual DbSet<RightDic> RightDic { get; set; }
  122. public virtual DbSet<ServiceCenter> ServiceCenter { get; set; }
  123. public virtual DbSet<StoreBalance> StoreBalance { get; set; }
  124. public virtual DbSet<StoreChangeHistory> StoreChangeHistory { get; set; }
  125. public virtual DbSet<StoreForCode> StoreForCode { get; set; }
  126. public virtual DbSet<StoreForName> StoreForName { get; set; }
  127. public virtual DbSet<StoreHouse> StoreHouse { get; set; }
  128. public virtual DbSet<StoreMallOrderSummary> StoreMallOrderSummary { get; set; }
  129. public virtual DbSet<StoreSnActivateSummary> StoreSnActivateSummary { get; set; }
  130. public virtual DbSet<StoreStockChange> StoreStockChange { get; set; }
  131. public virtual DbSet<StoreSwapSn> StoreSwapSn { get; set; }
  132. public virtual DbSet<SysAdmin> SysAdmin { get; set; }
  133. public virtual DbSet<SysAdminRole> SysAdminRole { get; set; }
  134. public virtual DbSet<SysLog> SysLog { get; set; }
  135. public virtual DbSet<SysRechargeRecord> SysRechargeRecord { get; set; }
  136. public virtual DbSet<SystemSet> SystemSet { get; set; }
  137. public virtual DbSet<TeamApply> TeamApply { get; set; }
  138. public virtual DbSet<TeamApplyForTeamName> TeamApplyForTeamName { get; set; }
  139. public virtual DbSet<TeamApplyForTeamNo> TeamApplyForTeamNo { get; set; }
  140. public virtual DbSet<TeamBlackList> TeamBlackList { get; set; }
  141. public virtual DbSet<TeamConfig> TeamConfig { get; set; }
  142. public virtual DbSet<TeamDayTop> TeamDayTop { get; set; }
  143. public virtual DbSet<TeamOfferApply> TeamOfferApply { get; set; }
  144. public virtual DbSet<TeamPersonDayTop> TeamPersonDayTop { get; set; }
  145. public virtual DbSet<TradeDaySummary> TradeDaySummary { get; set; }
  146. public virtual DbSet<TradeRecord> TradeRecord { get; set; }
  147. public virtual DbSet<UploadParams> UploadParams { get; set; }
  148. public virtual DbSet<UserAccount> UserAccount { get; set; }
  149. public virtual DbSet<UserAccountRecord> UserAccountRecord { get; set; }
  150. public virtual DbSet<UserAddress> UserAddress { get; set; }
  151. public virtual DbSet<UserAuthRecord> UserAuthRecord { get; set; }
  152. public virtual DbSet<UserBack> UserBack { get; set; }
  153. public virtual DbSet<UserBackKind> UserBackKind { get; set; }
  154. public virtual DbSet<UserBalanceTop> UserBalanceTop { get; set; }
  155. public virtual DbSet<UserCar> UserCar { get; set; }
  156. public virtual DbSet<UserCardForWeChat> UserCardForWeChat { get; set; }
  157. public virtual DbSet<UserCardRecord> UserCardRecord { get; set; }
  158. public virtual DbSet<UserCashRecord> UserCashRecord { get; set; }
  159. public virtual DbSet<UserCenterIconList> UserCenterIconList { get; set; }
  160. public virtual DbSet<UserCollection> UserCollection { get; set; }
  161. public virtual DbSet<UserData> UserData { get; set; }
  162. public virtual DbSet<UserDetail> UserDetail { get; set; }
  163. public virtual DbSet<UserFamilyMember> UserFamilyMember { get; set; }
  164. public virtual DbSet<UserForMakerCode> UserForMakerCode { get; set; }
  165. public virtual DbSet<UserForMobile> UserForMobile { get; set; }
  166. public virtual DbSet<UserForRealName> UserForRealName { get; set; }
  167. public virtual DbSet<UserFriend> UserFriend { get; set; }
  168. public virtual DbSet<UserGroup> UserGroup { get; set; }
  169. public virtual DbSet<UserLevelSet> UserLevelSet { get; set; }
  170. public virtual DbSet<UserLoginRecord> UserLoginRecord { get; set; }
  171. public virtual DbSet<UserMachineData> UserMachineData { get; set; }
  172. public virtual DbSet<UserMallLargeSn> UserMallLargeSn { get; set; }
  173. public virtual DbSet<UserOfflineSignInRecords> UserOfflineSignInRecords { get; set; }
  174. public virtual DbSet<UserProfit> UserProfit { get; set; }
  175. public virtual DbSet<UserProfitSet> UserProfitSet { get; set; }
  176. public virtual DbSet<UserProfitSubsidySummary> UserProfitSubsidySummary { get; set; }
  177. public virtual DbSet<UserRank> UserRank { get; set; }
  178. public virtual DbSet<UserRankWhite> UserRankWhite { get; set; }
  179. public virtual DbSet<UserRebateDetail> UserRebateDetail { get; set; }
  180. public virtual DbSet<UserSnActInfo> UserSnActInfo { get; set; }
  181. public virtual DbSet<UserSnDelayChange> UserSnDelayChange { get; set; }
  182. public virtual DbSet<UserStoreChange> UserStoreChange { get; set; }
  183. public virtual DbSet<UserSwapDetail> UserSwapDetail { get; set; }
  184. public virtual DbSet<UserSwapSummary> UserSwapSummary { get; set; }
  185. public virtual DbSet<UserSwapWhite> UserSwapWhite { get; set; }
  186. public virtual DbSet<UserTradeDaySummary> UserTradeDaySummary { get; set; }
  187. public virtual DbSet<UserTradeMonthSummary> UserTradeMonthSummary { get; set; }
  188. public virtual DbSet<Users> Users { get; set; }
  189. protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
  190. {
  191. if (!optionsBuilder.IsConfigured)
  192. {
  193. optionsBuilder.UseMySql(Library.ConfigurationManager.AppSettings["Pxc1SqlConnStr"].ToString(), x => x.ServerVersion("5.7.17-mysql"));
  194. }
  195. }
  196. protected override void OnModelCreating(ModelBuilder modelBuilder)
  197. {
  198. modelBuilder.Entity<ActiveReward>(entity =>
  199. {
  200. entity.Property(e => e.Id).HasColumnType("int(11)");
  201. entity.Property(e => e.ActDate).HasColumnType("datetime");
  202. entity.Property(e => e.ActType).HasColumnType("int(11)");
  203. entity.Property(e => e.ActTypeDesc)
  204. .HasColumnType("varchar(64)")
  205. .HasCharSet("utf8")
  206. .HasCollation("utf8_general_ci");
  207. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  208. entity.Property(e => e.City)
  209. .HasColumnType("varchar(32)")
  210. .HasCharSet("utf8")
  211. .HasCollation("utf8_general_ci");
  212. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  213. entity.Property(e => e.CreateMan)
  214. .HasColumnType("varchar(50)")
  215. .HasCharSet("utf8")
  216. .HasCollation("utf8_general_ci");
  217. entity.Property(e => e.DirectBuddyNo).HasColumnType("int(11)");
  218. entity.Property(e => e.DivideAmount).HasColumnType("decimal(18,2)");
  219. entity.Property(e => e.KqMerNo)
  220. .HasColumnType("varchar(32)")
  221. .HasCharSet("utf8")
  222. .HasCollation("utf8_general_ci");
  223. entity.Property(e => e.KqSnNo)
  224. .HasColumnType("varchar(32)")
  225. .HasCharSet("utf8")
  226. .HasCollation("utf8_general_ci");
  227. entity.Property(e => e.MerUserId).HasColumnType("int(11)");
  228. entity.Property(e => e.MerUserNav)
  229. .HasColumnType("varchar(200)")
  230. .HasCharSet("utf8")
  231. .HasCollation("utf8_general_ci");
  232. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  233. entity.Property(e => e.ParentParentUserId).HasColumnType("int(11)");
  234. entity.Property(e => e.ParentUserId).HasColumnType("int(11)");
  235. entity.Property(e => e.Province)
  236. .HasColumnType("varchar(32)")
  237. .HasCharSet("utf8")
  238. .HasCollation("utf8_general_ci");
  239. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  240. entity.Property(e => e.Remark)
  241. .HasColumnType("varchar(64)")
  242. .HasCharSet("utf8")
  243. .HasCollation("utf8_general_ci");
  244. entity.Property(e => e.RewardAmount).HasColumnType("decimal(18,2)");
  245. entity.Property(e => e.RewardRef).HasColumnType("int(11)");
  246. entity.Property(e => e.RewardSourceUserId).HasColumnType("int(11)");
  247. entity.Property(e => e.RewardTips)
  248. .HasColumnType("varchar(16)")
  249. .HasCharSet("utf8")
  250. .HasCollation("utf8_general_ci");
  251. entity.Property(e => e.RuleRewardAmount).HasColumnType("decimal(18,2)");
  252. entity.Property(e => e.SeoDescription)
  253. .HasColumnType("varchar(500)")
  254. .HasCharSet("utf8")
  255. .HasCollation("utf8_general_ci");
  256. entity.Property(e => e.SeoKeyword)
  257. .HasColumnType("varchar(200)")
  258. .HasCharSet("utf8")
  259. .HasCollation("utf8_general_ci");
  260. entity.Property(e => e.SeoTitle)
  261. .HasColumnType("varchar(100)")
  262. .HasCharSet("utf8")
  263. .HasCollation("utf8_general_ci");
  264. entity.Property(e => e.SnApplyUserId).HasColumnType("int(11)");
  265. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  266. entity.Property(e => e.SnType).HasColumnType("int(11)");
  267. entity.Property(e => e.Sort).HasColumnType("int(11)");
  268. entity.Property(e => e.StandardDate).HasColumnType("datetime");
  269. entity.Property(e => e.Status).HasColumnType("int(11)");
  270. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  271. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  272. entity.Property(e => e.UpdateMan)
  273. .HasColumnType("varchar(50)")
  274. .HasCharSet("utf8")
  275. .HasCollation("utf8_general_ci");
  276. entity.Property(e => e.UserId).HasColumnType("int(11)");
  277. entity.Property(e => e.UserNav)
  278. .HasColumnType("varchar(200)")
  279. .HasCharSet("utf8")
  280. .HasCollation("utf8_general_ci");
  281. entity.Property(e => e.Version).HasColumnType("int(11)");
  282. });
  283. modelBuilder.Entity<ActivityEnrolRecord>(entity =>
  284. {
  285. entity.Property(e => e.Id).HasColumnType("int(11)");
  286. entity.Property(e => e.ActId).HasColumnType("int(11)");
  287. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  288. entity.Property(e => e.CreateMan)
  289. .HasColumnType("varchar(50)")
  290. .HasCharSet("utf8")
  291. .HasCollation("utf8_general_ci");
  292. entity.Property(e => e.EffectEndTime)
  293. .HasColumnType("varchar(8)")
  294. .HasCharSet("utf8")
  295. .HasCollation("utf8_general_ci");
  296. entity.Property(e => e.EffectStartTime)
  297. .HasColumnType("varchar(8)")
  298. .HasCharSet("utf8")
  299. .HasCollation("utf8_general_ci");
  300. entity.Property(e => e.EnrolMonth)
  301. .HasColumnType("varchar(80)")
  302. .HasCharSet("utf8")
  303. .HasCollation("utf8_general_ci");
  304. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  305. entity.Property(e => e.SeoDescription)
  306. .HasColumnType("varchar(500)")
  307. .HasCharSet("utf8")
  308. .HasCollation("utf8_general_ci");
  309. entity.Property(e => e.SeoKeyword)
  310. .HasColumnType("varchar(200)")
  311. .HasCharSet("utf8")
  312. .HasCollation("utf8_general_ci");
  313. entity.Property(e => e.SeoTitle)
  314. .HasColumnType("varchar(100)")
  315. .HasCharSet("utf8")
  316. .HasCollation("utf8_general_ci");
  317. entity.Property(e => e.Sort).HasColumnType("int(11)");
  318. entity.Property(e => e.Status).HasColumnType("int(11)");
  319. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  320. entity.Property(e => e.UpdateMan)
  321. .HasColumnType("varchar(50)")
  322. .HasCharSet("utf8")
  323. .HasCollation("utf8_general_ci");
  324. entity.Property(e => e.UserId).HasColumnType("int(11)");
  325. entity.Property(e => e.Version).HasColumnType("int(11)");
  326. });
  327. modelBuilder.Entity<ActivityInfo>(entity =>
  328. {
  329. entity.Property(e => e.Id).HasColumnType("int(11)");
  330. entity.Property(e => e.ActBanner)
  331. .HasColumnType("varchar(200)")
  332. .HasCharSet("utf8")
  333. .HasCollation("utf8_general_ci");
  334. entity.Property(e => e.ActCode)
  335. .HasColumnType("varchar(32)")
  336. .HasCharSet("utf8")
  337. .HasCollation("utf8_general_ci");
  338. entity.Property(e => e.ActContent)
  339. .HasColumnType("longtext")
  340. .HasCharSet("utf8")
  341. .HasCollation("utf8_general_ci");
  342. entity.Property(e => e.ActName)
  343. .HasColumnType("varchar(128)")
  344. .HasCharSet("utf8")
  345. .HasCollation("utf8_general_ci");
  346. entity.Property(e => e.ActReferUrl)
  347. .HasColumnType("varchar(255)")
  348. .HasCharSet("utf8")
  349. .HasCollation("utf8_general_ci");
  350. entity.Property(e => e.ActType).HasColumnType("int(11)");
  351. entity.Property(e => e.BrandId)
  352. .HasColumnType("varchar(100)")
  353. .HasCharSet("utf8")
  354. .HasCollation("utf8_general_ci");
  355. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  356. entity.Property(e => e.CreateMan)
  357. .HasColumnType("varchar(50)")
  358. .HasCharSet("utf8")
  359. .HasCollation("utf8_general_ci");
  360. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  361. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  362. entity.Property(e => e.EnrolEndDate).HasColumnType("datetime");
  363. entity.Property(e => e.EnrolEndTime)
  364. .HasColumnType("varchar(8)")
  365. .HasCharSet("utf8")
  366. .HasCollation("utf8_general_ci");
  367. entity.Property(e => e.EnrolStartDate).HasColumnType("datetime");
  368. entity.Property(e => e.EnrolStartTime)
  369. .HasColumnType("varchar(8)")
  370. .HasCharSet("utf8")
  371. .HasCollation("utf8_general_ci");
  372. entity.Property(e => e.IsTop).HasColumnType("int(11)");
  373. entity.Property(e => e.LimitTopBuddy)
  374. .HasColumnType("varchar(255)")
  375. .HasCharSet("utf8")
  376. .HasCollation("utf8_general_ci");
  377. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  378. entity.Property(e => e.Remark)
  379. .HasColumnType("varchar(128)")
  380. .HasCharSet("utf8")
  381. .HasCollation("utf8_general_ci");
  382. entity.Property(e => e.SeoDescription)
  383. .HasColumnType("varchar(500)")
  384. .HasCharSet("utf8")
  385. .HasCollation("utf8_general_ci");
  386. entity.Property(e => e.SeoKeyword)
  387. .HasColumnType("varchar(200)")
  388. .HasCharSet("utf8")
  389. .HasCollation("utf8_general_ci");
  390. entity.Property(e => e.SeoTitle)
  391. .HasColumnType("varchar(100)")
  392. .HasCharSet("utf8")
  393. .HasCollation("utf8_general_ci");
  394. entity.Property(e => e.Sort).HasColumnType("int(11)");
  395. entity.Property(e => e.Status).HasColumnType("int(11)");
  396. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  397. entity.Property(e => e.UpdateMan)
  398. .HasColumnType("varchar(50)")
  399. .HasCharSet("utf8")
  400. .HasCollation("utf8_general_ci");
  401. entity.Property(e => e.Version).HasColumnType("int(11)");
  402. });
  403. modelBuilder.Entity<ActivityPrizeDetail>(entity =>
  404. {
  405. entity.Property(e => e.Id).HasColumnType("int(11)");
  406. entity.Property(e => e.ActRewardAmt).HasColumnType("decimal(18,2)");
  407. entity.Property(e => e.ActivityId).HasColumnType("int(11)");
  408. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  409. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  410. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  411. entity.Property(e => e.CreateMan)
  412. .HasColumnType("varchar(50)")
  413. .HasCharSet("utf8")
  414. .HasCollation("utf8_general_ci");
  415. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  416. entity.Property(e => e.OtherProdCreditTradeAmt).HasColumnType("decimal(18,2)");
  417. entity.Property(e => e.ProfitRate).HasColumnType("decimal(18,2)");
  418. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  419. entity.Property(e => e.SeoDescription)
  420. .HasColumnType("varchar(500)")
  421. .HasCharSet("utf8")
  422. .HasCollation("utf8_general_ci");
  423. entity.Property(e => e.SeoKeyword)
  424. .HasColumnType("varchar(200)")
  425. .HasCharSet("utf8")
  426. .HasCollation("utf8_general_ci");
  427. entity.Property(e => e.SeoTitle)
  428. .HasColumnType("varchar(100)")
  429. .HasCharSet("utf8")
  430. .HasCollation("utf8_general_ci");
  431. entity.Property(e => e.Sort).HasColumnType("int(11)");
  432. entity.Property(e => e.Status).HasColumnType("int(11)");
  433. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  434. entity.Property(e => e.TradeAmt).HasColumnType("decimal(18,2)");
  435. entity.Property(e => e.TradeMonth)
  436. .HasColumnType("varchar(6)")
  437. .HasCharSet("utf8")
  438. .HasCollation("utf8_general_ci");
  439. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  440. entity.Property(e => e.UpdateMan)
  441. .HasColumnType("varchar(50)")
  442. .HasCharSet("utf8")
  443. .HasCollation("utf8_general_ci");
  444. entity.Property(e => e.UserId).HasColumnType("int(11)");
  445. entity.Property(e => e.Version).HasColumnType("int(11)");
  446. });
  447. modelBuilder.Entity<Advertisment>(entity =>
  448. {
  449. entity.Property(e => e.Id).HasColumnType("int(11)");
  450. entity.Property(e => e.ColId)
  451. .HasColumnType("varchar(30)")
  452. .HasCharSet("utf8")
  453. .HasCollation("utf8_general_ci");
  454. entity.Property(e => e.Contents)
  455. .HasColumnType("longtext")
  456. .HasCharSet("utf8")
  457. .HasCollation("utf8_general_ci");
  458. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  459. entity.Property(e => e.CreateMan)
  460. .HasColumnType("varchar(50)")
  461. .HasCharSet("utf8")
  462. .HasCollation("utf8_general_ci");
  463. entity.Property(e => e.PicPath)
  464. .HasColumnType("varchar(200)")
  465. .HasCharSet("utf8")
  466. .HasCollation("utf8_general_ci");
  467. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  468. entity.Property(e => e.SeoDescription)
  469. .HasColumnType("varchar(500)")
  470. .HasCharSet("utf8")
  471. .HasCollation("utf8_general_ci");
  472. entity.Property(e => e.SeoKeyword)
  473. .HasColumnType("varchar(200)")
  474. .HasCharSet("utf8")
  475. .HasCollation("utf8_general_ci");
  476. entity.Property(e => e.SeoTitle)
  477. .HasColumnType("varchar(100)")
  478. .HasCharSet("utf8")
  479. .HasCollation("utf8_general_ci");
  480. entity.Property(e => e.Sort).HasColumnType("int(11)");
  481. entity.Property(e => e.Status).HasColumnType("int(11)");
  482. entity.Property(e => e.Title)
  483. .HasColumnType("varchar(50)")
  484. .HasCharSet("utf8")
  485. .HasCollation("utf8_general_ci");
  486. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  487. entity.Property(e => e.UpdateMan)
  488. .HasColumnType("varchar(50)")
  489. .HasCharSet("utf8")
  490. .HasCollation("utf8_general_ci");
  491. entity.Property(e => e.Url)
  492. .HasColumnType("longtext")
  493. .HasCharSet("utf8")
  494. .HasCollation("utf8_general_ci");
  495. entity.Property(e => e.Version).HasColumnType("int(11)");
  496. });
  497. modelBuilder.Entity<AgentLevelSet>(entity =>
  498. {
  499. entity.Property(e => e.Id).HasColumnType("int(11)");
  500. entity.Property(e => e.AreasProfitPercent).HasColumnType("decimal(18,2)");
  501. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  502. entity.Property(e => e.CreateMan)
  503. .HasColumnType("varchar(50)")
  504. .HasCharSet("utf8")
  505. .HasCollation("utf8_general_ci");
  506. entity.Property(e => e.LevelDiff)
  507. .HasColumnType("bit(1)")
  508. .HasDefaultValueSql("b'0'");
  509. entity.Property(e => e.Name)
  510. .HasColumnType("varchar(50)")
  511. .HasCharSet("utf8")
  512. .HasCollation("utf8_general_ci");
  513. entity.Property(e => e.ProfitPercent).HasColumnType("decimal(18,2)");
  514. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  515. entity.Property(e => e.SeoDescription)
  516. .HasColumnType("varchar(500)")
  517. .HasCharSet("utf8")
  518. .HasCollation("utf8_general_ci");
  519. entity.Property(e => e.SeoKeyword)
  520. .HasColumnType("varchar(200)")
  521. .HasCharSet("utf8")
  522. .HasCollation("utf8_general_ci");
  523. entity.Property(e => e.SeoTitle)
  524. .HasColumnType("varchar(100)")
  525. .HasCharSet("utf8")
  526. .HasCollation("utf8_general_ci");
  527. entity.Property(e => e.Sort).HasColumnType("int(11)");
  528. entity.Property(e => e.Status).HasColumnType("int(11)");
  529. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  530. entity.Property(e => e.UpdateMan)
  531. .HasColumnType("varchar(50)")
  532. .HasCharSet("utf8")
  533. .HasCollation("utf8_general_ci");
  534. entity.Property(e => e.Version).HasColumnType("int(11)");
  535. });
  536. modelBuilder.Entity<AppBottomNavs>(entity =>
  537. {
  538. entity.Property(e => e.Id).HasColumnType("int(11)");
  539. entity.Property(e => e.BgColor)
  540. .HasColumnType("varchar(6)")
  541. .HasCharSet("utf8")
  542. .HasCollation("utf8_general_ci");
  543. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  544. entity.Property(e => e.CreateMan)
  545. .HasColumnType("varchar(50)")
  546. .HasCharSet("utf8")
  547. .HasCollation("utf8_general_ci");
  548. entity.Property(e => e.NoPageHint)
  549. .HasColumnType("varchar(50)")
  550. .HasCharSet("utf8")
  551. .HasCollation("utf8_general_ci");
  552. entity.Property(e => e.NormalIcon)
  553. .HasColumnType("varchar(200)")
  554. .HasCharSet("utf8")
  555. .HasCollation("utf8_general_ci");
  556. entity.Property(e => e.NormalTextColor)
  557. .HasColumnType("varchar(6)")
  558. .HasCharSet("utf8")
  559. .HasCollation("utf8_general_ci");
  560. entity.Property(e => e.PageName)
  561. .HasColumnType("varchar(50)")
  562. .HasCharSet("utf8")
  563. .HasCollation("utf8_general_ci");
  564. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  565. entity.Property(e => e.SelectIcon)
  566. .HasColumnType("varchar(200)")
  567. .HasCharSet("utf8")
  568. .HasCollation("utf8_general_ci");
  569. entity.Property(e => e.SelectTextColor)
  570. .HasColumnType("varchar(6)")
  571. .HasCharSet("utf8")
  572. .HasCollation("utf8_general_ci");
  573. entity.Property(e => e.SeoDescription)
  574. .HasColumnType("varchar(500)")
  575. .HasCharSet("utf8")
  576. .HasCollation("utf8_general_ci");
  577. entity.Property(e => e.SeoKeyword)
  578. .HasColumnType("varchar(200)")
  579. .HasCharSet("utf8")
  580. .HasCollation("utf8_general_ci");
  581. entity.Property(e => e.SeoTitle)
  582. .HasColumnType("varchar(100)")
  583. .HasCharSet("utf8")
  584. .HasCollation("utf8_general_ci");
  585. entity.Property(e => e.Sort).HasColumnType("int(11)");
  586. entity.Property(e => e.Status).HasColumnType("int(11)");
  587. entity.Property(e => e.Title)
  588. .HasColumnType("varchar(10)")
  589. .HasCharSet("utf8")
  590. .HasCollation("utf8_general_ci");
  591. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  592. entity.Property(e => e.UpdateMan)
  593. .HasColumnType("varchar(50)")
  594. .HasCharSet("utf8")
  595. .HasCollation("utf8_general_ci");
  596. entity.Property(e => e.Version).HasColumnType("int(11)");
  597. });
  598. modelBuilder.Entity<AppVersion>(entity =>
  599. {
  600. entity.Property(e => e.Id).HasColumnType("int(11)");
  601. entity.Property(e => e.CancelText)
  602. .HasColumnType("varchar(10)")
  603. .HasCharSet("utf8")
  604. .HasCollation("utf8_general_ci");
  605. entity.Property(e => e.ConfirmText)
  606. .HasColumnType("varchar(10)")
  607. .HasCharSet("utf8")
  608. .HasCollation("utf8_general_ci");
  609. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  610. entity.Property(e => e.CreateMan)
  611. .HasColumnType("varchar(50)")
  612. .HasCharSet("utf8")
  613. .HasCollation("utf8_general_ci");
  614. entity.Property(e => e.DownloadUrl)
  615. .HasColumnType("varchar(500)")
  616. .HasCharSet("utf8")
  617. .HasCollation("utf8_general_ci");
  618. entity.Property(e => e.Info)
  619. .HasColumnType("varchar(200)")
  620. .HasCharSet("utf8")
  621. .HasCollation("utf8_general_ci");
  622. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  623. entity.Property(e => e.SeoDescription)
  624. .HasColumnType("varchar(500)")
  625. .HasCharSet("utf8")
  626. .HasCollation("utf8_general_ci");
  627. entity.Property(e => e.SeoKeyword)
  628. .HasColumnType("varchar(200)")
  629. .HasCharSet("utf8")
  630. .HasCollation("utf8_general_ci");
  631. entity.Property(e => e.SeoTitle)
  632. .HasColumnType("varchar(100)")
  633. .HasCharSet("utf8")
  634. .HasCollation("utf8_general_ci");
  635. entity.Property(e => e.Sort).HasColumnType("int(11)");
  636. entity.Property(e => e.Status).HasColumnType("int(11)");
  637. entity.Property(e => e.TerminalKind)
  638. .HasColumnType("varchar(10)")
  639. .HasCharSet("utf8")
  640. .HasCollation("utf8_general_ci");
  641. entity.Property(e => e.Title)
  642. .HasColumnType("varchar(50)")
  643. .HasCharSet("utf8")
  644. .HasCollation("utf8_general_ci");
  645. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  646. entity.Property(e => e.UpdateMan)
  647. .HasColumnType("varchar(50)")
  648. .HasCharSet("utf8")
  649. .HasCollation("utf8_general_ci");
  650. entity.Property(e => e.Version).HasColumnType("int(11)");
  651. entity.Property(e => e.VersionNum)
  652. .HasColumnType("varchar(20)")
  653. .HasCharSet("utf8")
  654. .HasCollation("utf8_general_ci");
  655. });
  656. modelBuilder.Entity<AppVideo>(entity =>
  657. {
  658. entity.Property(e => e.Id).HasColumnType("int(11)");
  659. entity.Property(e => e.BannerPic)
  660. .HasColumnType("varchar(200)")
  661. .HasCharSet("utf8")
  662. .HasCollation("utf8_general_ci");
  663. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  664. entity.Property(e => e.CreateMan)
  665. .HasColumnType("varchar(50)")
  666. .HasCharSet("utf8")
  667. .HasCollation("utf8_general_ci");
  668. entity.Property(e => e.Name)
  669. .HasColumnType("varchar(50)")
  670. .HasCharSet("utf8")
  671. .HasCollation("utf8_general_ci");
  672. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  673. entity.Property(e => e.Remark)
  674. .HasColumnType("varchar(200)")
  675. .HasCharSet("utf8")
  676. .HasCollation("utf8_general_ci");
  677. entity.Property(e => e.SeoDescription)
  678. .HasColumnType("varchar(500)")
  679. .HasCharSet("utf8")
  680. .HasCollation("utf8_general_ci");
  681. entity.Property(e => e.SeoKeyword)
  682. .HasColumnType("varchar(200)")
  683. .HasCharSet("utf8")
  684. .HasCollation("utf8_general_ci");
  685. entity.Property(e => e.SeoTitle)
  686. .HasColumnType("varchar(100)")
  687. .HasCharSet("utf8")
  688. .HasCollation("utf8_general_ci");
  689. entity.Property(e => e.Sort).HasColumnType("int(11)");
  690. entity.Property(e => e.Status).HasColumnType("int(11)");
  691. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  692. entity.Property(e => e.UpdateMan)
  693. .HasColumnType("varchar(50)")
  694. .HasCharSet("utf8")
  695. .HasCollation("utf8_general_ci");
  696. entity.Property(e => e.Version).HasColumnType("int(11)");
  697. });
  698. modelBuilder.Entity<AppVideoList>(entity =>
  699. {
  700. entity.Property(e => e.Id).HasColumnType("int(11)");
  701. entity.Property(e => e.BgPic)
  702. .HasColumnType("varchar(200)")
  703. .HasCharSet("utf8")
  704. .HasCollation("utf8_general_ci");
  705. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  706. entity.Property(e => e.CreateMan)
  707. .HasColumnType("varchar(50)")
  708. .HasCharSet("utf8")
  709. .HasCollation("utf8_general_ci");
  710. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  711. entity.Property(e => e.Remark)
  712. .HasColumnType("varchar(200)")
  713. .HasCharSet("utf8")
  714. .HasCollation("utf8_general_ci");
  715. entity.Property(e => e.SeoDescription)
  716. .HasColumnType("varchar(500)")
  717. .HasCharSet("utf8")
  718. .HasCollation("utf8_general_ci");
  719. entity.Property(e => e.SeoKeyword)
  720. .HasColumnType("varchar(200)")
  721. .HasCharSet("utf8")
  722. .HasCollation("utf8_general_ci");
  723. entity.Property(e => e.SeoTitle)
  724. .HasColumnType("varchar(100)")
  725. .HasCharSet("utf8")
  726. .HasCollation("utf8_general_ci");
  727. entity.Property(e => e.Sort).HasColumnType("int(11)");
  728. entity.Property(e => e.Status).HasColumnType("int(11)");
  729. entity.Property(e => e.Title)
  730. .HasColumnType("varchar(50)")
  731. .HasCharSet("utf8")
  732. .HasCollation("utf8_general_ci");
  733. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  734. entity.Property(e => e.UpdateMan)
  735. .HasColumnType("varchar(50)")
  736. .HasCharSet("utf8")
  737. .HasCollation("utf8_general_ci");
  738. entity.Property(e => e.Version).HasColumnType("int(11)");
  739. entity.Property(e => e.VideoId).HasColumnType("int(11)");
  740. entity.Property(e => e.VideoUrl)
  741. .HasColumnType("varchar(500)")
  742. .HasCharSet("utf8")
  743. .HasCollation("utf8_general_ci");
  744. });
  745. modelBuilder.Entity<BankInfo>(entity =>
  746. {
  747. entity.Property(e => e.Id).HasColumnType("int(11)");
  748. entity.Property(e => e.BankCode)
  749. .HasColumnType("varchar(16)")
  750. .HasCharSet("utf8")
  751. .HasCollation("utf8_general_ci");
  752. entity.Property(e => e.BankName)
  753. .HasColumnType("varchar(100)")
  754. .HasCharSet("utf8")
  755. .HasCollation("utf8_general_ci");
  756. entity.Property(e => e.BankNameAbbr)
  757. .HasColumnType("varchar(60)")
  758. .HasCharSet("utf8")
  759. .HasCollation("utf8_general_ci");
  760. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  761. entity.Property(e => e.CreateMan)
  762. .HasColumnType("varchar(50)")
  763. .HasCharSet("utf8")
  764. .HasCollation("utf8_general_ci");
  765. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  766. entity.Property(e => e.SeoDescription)
  767. .HasColumnType("varchar(500)")
  768. .HasCharSet("utf8")
  769. .HasCollation("utf8_general_ci");
  770. entity.Property(e => e.SeoKeyword)
  771. .HasColumnType("varchar(200)")
  772. .HasCharSet("utf8")
  773. .HasCollation("utf8_general_ci");
  774. entity.Property(e => e.SeoTitle)
  775. .HasColumnType("varchar(100)")
  776. .HasCharSet("utf8")
  777. .HasCollation("utf8_general_ci");
  778. entity.Property(e => e.Sort).HasColumnType("int(11)");
  779. entity.Property(e => e.Status).HasColumnType("int(11)");
  780. entity.Property(e => e.UnitedBankName)
  781. .HasColumnType("varchar(100)")
  782. .HasCharSet("utf8")
  783. .HasCollation("utf8_general_ci");
  784. entity.Property(e => e.UnitedBankNo)
  785. .HasColumnType("varchar(16)")
  786. .HasCharSet("utf8")
  787. .HasCollation("utf8_general_ci");
  788. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  789. entity.Property(e => e.UpdateMan)
  790. .HasColumnType("varchar(50)")
  791. .HasCharSet("utf8")
  792. .HasCollation("utf8_general_ci");
  793. entity.Property(e => e.Version).HasColumnType("int(11)");
  794. });
  795. modelBuilder.Entity<Col>(entity =>
  796. {
  797. entity.Property(e => e.Id).HasColumnType("int(11)");
  798. entity.Property(e => e.ClassName)
  799. .HasColumnType("varchar(50)")
  800. .HasCharSet("utf8")
  801. .HasCollation("utf8_general_ci");
  802. entity.Property(e => e.ColDetail)
  803. .HasColumnType("varchar(50)")
  804. .HasCharSet("utf8")
  805. .HasCollation("utf8_general_ci");
  806. entity.Property(e => e.ColEnName)
  807. .HasColumnType("varchar(50)")
  808. .HasCharSet("utf8")
  809. .HasCollation("utf8_general_ci");
  810. entity.Property(e => e.ColEnNav)
  811. .HasColumnType("varchar(200)")
  812. .HasCharSet("utf8")
  813. .HasCollation("utf8_general_ci");
  814. entity.Property(e => e.ColId)
  815. .HasColumnType("varchar(30)")
  816. .HasCharSet("utf8")
  817. .HasCollation("utf8_general_ci");
  818. entity.Property(e => e.ColName)
  819. .HasColumnType("varchar(50)")
  820. .HasCharSet("utf8")
  821. .HasCollation("utf8_general_ci");
  822. entity.Property(e => e.ColPicPath)
  823. .HasColumnType("varchar(200)")
  824. .HasCharSet("utf8")
  825. .HasCollation("utf8_general_ci");
  826. entity.Property(e => e.Contents)
  827. .HasColumnType("longtext")
  828. .HasCharSet("utf8")
  829. .HasCollation("utf8_general_ci");
  830. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  831. entity.Property(e => e.CreateMan)
  832. .HasColumnType("varchar(50)")
  833. .HasCharSet("utf8")
  834. .HasCollation("utf8_general_ci");
  835. entity.Property(e => e.DetailTemp)
  836. .HasColumnType("varchar(100)")
  837. .HasCharSet("utf8")
  838. .HasCollation("utf8_general_ci");
  839. entity.Property(e => e.DetailTempM)
  840. .HasColumnType("varchar(100)")
  841. .HasCharSet("utf8")
  842. .HasCollation("utf8_general_ci");
  843. entity.Property(e => e.ListPageCount).HasColumnType("int(11)");
  844. entity.Property(e => e.ListTemp)
  845. .HasColumnType("varchar(100)")
  846. .HasCharSet("utf8")
  847. .HasCollation("utf8_general_ci");
  848. entity.Property(e => e.ListTempM)
  849. .HasColumnType("varchar(100)")
  850. .HasCharSet("utf8")
  851. .HasCollation("utf8_general_ci");
  852. entity.Property(e => e.ParentId).HasColumnType("int(11)");
  853. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  854. entity.Property(e => e.Recommend)
  855. .HasColumnType("bit(1)")
  856. .HasDefaultValueSql("b'0'");
  857. entity.Property(e => e.SeoDescription)
  858. .HasColumnType("varchar(500)")
  859. .HasCharSet("utf8")
  860. .HasCollation("utf8_general_ci");
  861. entity.Property(e => e.SeoKeyword)
  862. .HasColumnType("varchar(200)")
  863. .HasCharSet("utf8")
  864. .HasCollation("utf8_general_ci");
  865. entity.Property(e => e.SeoTitle)
  866. .HasColumnType("varchar(100)")
  867. .HasCharSet("utf8")
  868. .HasCollation("utf8_general_ci");
  869. entity.Property(e => e.Sort).HasColumnType("int(11)");
  870. entity.Property(e => e.Status).HasColumnType("int(11)");
  871. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  872. entity.Property(e => e.UpdateMan)
  873. .HasColumnType("varchar(50)")
  874. .HasCharSet("utf8")
  875. .HasCollation("utf8_general_ci");
  876. entity.Property(e => e.Url)
  877. .HasColumnType("longtext")
  878. .HasCharSet("utf8")
  879. .HasCollation("utf8_general_ci");
  880. entity.Property(e => e.Version).HasColumnType("int(11)");
  881. });
  882. modelBuilder.Entity<ConsumerOpenIds>(entity =>
  883. {
  884. entity.HasKey(e => e.OpenId)
  885. .HasName("PRIMARY");
  886. entity.Property(e => e.OpenId)
  887. .HasColumnType("varchar(50)")
  888. .HasCharSet("utf8")
  889. .HasCollation("utf8_general_ci");
  890. entity.Property(e => e.ConsumerId).HasColumnType("int(11)");
  891. });
  892. modelBuilder.Entity<ConsumerOrders>(entity =>
  893. {
  894. entity.Property(e => e.Id).HasColumnType("int(11)");
  895. entity.Property(e => e.ConsumerId).HasColumnType("int(11)");
  896. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  897. entity.Property(e => e.CreateMan)
  898. .HasColumnType("varchar(50)")
  899. .HasCharSet("utf8")
  900. .HasCollation("utf8_general_ci");
  901. entity.Property(e => e.CurDivi).HasColumnType("decimal(18,2)");
  902. entity.Property(e => e.MaxDivi).HasColumnType("decimal(18,2)");
  903. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  904. entity.Property(e => e.OrderNo)
  905. .HasColumnType("varchar(30)")
  906. .HasCharSet("utf8")
  907. .HasCollation("utf8_general_ci");
  908. entity.Property(e => e.PayMode).HasColumnType("int(11)");
  909. entity.Property(e => e.PayMoney).HasColumnType("decimal(18,2)");
  910. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  911. entity.Property(e => e.ReturnMoney).HasColumnType("decimal(18,2)");
  912. entity.Property(e => e.SeoDescription)
  913. .HasColumnType("varchar(500)")
  914. .HasCharSet("utf8")
  915. .HasCollation("utf8_general_ci");
  916. entity.Property(e => e.SeoKeyword)
  917. .HasColumnType("varchar(200)")
  918. .HasCharSet("utf8")
  919. .HasCollation("utf8_general_ci");
  920. entity.Property(e => e.SeoTitle)
  921. .HasColumnType("varchar(100)")
  922. .HasCharSet("utf8")
  923. .HasCollation("utf8_general_ci");
  924. entity.Property(e => e.SnNo)
  925. .HasColumnType("varchar(50)")
  926. .HasCharSet("utf8")
  927. .HasCollation("utf8_general_ci");
  928. entity.Property(e => e.Sort).HasColumnType("int(11)");
  929. entity.Property(e => e.Status).HasColumnType("int(11)");
  930. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  931. entity.Property(e => e.UpdateMan)
  932. .HasColumnType("varchar(50)")
  933. .HasCharSet("utf8")
  934. .HasCollation("utf8_general_ci");
  935. entity.Property(e => e.Version).HasColumnType("int(11)");
  936. });
  937. modelBuilder.Entity<ConsumerProfit>(entity =>
  938. {
  939. entity.Property(e => e.Id).HasColumnType("int(11)");
  940. entity.Property(e => e.ConsumerId).HasColumnType("int(11)");
  941. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  942. entity.Property(e => e.CreateMan)
  943. .HasColumnType("varchar(50)")
  944. .HasCharSet("utf8")
  945. .HasCollation("utf8_general_ci");
  946. entity.Property(e => e.GetMoney).HasColumnType("decimal(18,2)");
  947. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  948. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  949. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  950. entity.Property(e => e.SeoDescription)
  951. .HasColumnType("varchar(500)")
  952. .HasCharSet("utf8")
  953. .HasCollation("utf8_general_ci");
  954. entity.Property(e => e.SeoKeyword)
  955. .HasColumnType("varchar(200)")
  956. .HasCharSet("utf8")
  957. .HasCollation("utf8_general_ci");
  958. entity.Property(e => e.SeoTitle)
  959. .HasColumnType("varchar(100)")
  960. .HasCharSet("utf8")
  961. .HasCollation("utf8_general_ci");
  962. entity.Property(e => e.Sort).HasColumnType("int(11)");
  963. entity.Property(e => e.Status).HasColumnType("int(11)");
  964. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  965. entity.Property(e => e.UpdateMan)
  966. .HasColumnType("varchar(50)")
  967. .HasCharSet("utf8")
  968. .HasCollation("utf8_general_ci");
  969. entity.Property(e => e.Version).HasColumnType("int(11)");
  970. });
  971. modelBuilder.Entity<Consumers>(entity =>
  972. {
  973. entity.Property(e => e.Id).HasColumnType("int(11)");
  974. entity.Property(e => e.AlipayFlag)
  975. .HasColumnType("bit(1)")
  976. .HasDefaultValueSql("b'0'");
  977. entity.Property(e => e.AlipayUserId)
  978. .HasColumnType("varchar(50)")
  979. .HasCharSet("utf8")
  980. .HasCollation("utf8_general_ci");
  981. entity.Property(e => e.CardFlag)
  982. .HasColumnType("bit(1)")
  983. .HasDefaultValueSql("b'0'");
  984. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  985. entity.Property(e => e.CreateMan)
  986. .HasColumnType("varchar(50)")
  987. .HasCharSet("utf8")
  988. .HasCollation("utf8_general_ci");
  989. entity.Property(e => e.CurIntgegral).HasColumnType("int(11)");
  990. entity.Property(e => e.HeadPhoto)
  991. .HasColumnType("varchar(2000)")
  992. .HasCharSet("utf8")
  993. .HasCollation("utf8_general_ci");
  994. entity.Property(e => e.LastConsumDate).HasColumnType("datetime");
  995. entity.Property(e => e.Mobile)
  996. .HasColumnType("varchar(11)")
  997. .HasCharSet("utf8")
  998. .HasCollation("utf8_general_ci");
  999. entity.Property(e => e.NickName)
  1000. .HasColumnType("varchar(50)")
  1001. .HasCharSet("utf8")
  1002. .HasCollation("utf8_general_ci");
  1003. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1004. entity.Property(e => e.SeoDescription)
  1005. .HasColumnType("varchar(500)")
  1006. .HasCharSet("utf8")
  1007. .HasCollation("utf8_general_ci");
  1008. entity.Property(e => e.SeoKeyword)
  1009. .HasColumnType("varchar(200)")
  1010. .HasCharSet("utf8")
  1011. .HasCollation("utf8_general_ci");
  1012. entity.Property(e => e.SeoTitle)
  1013. .HasColumnType("varchar(100)")
  1014. .HasCharSet("utf8")
  1015. .HasCollation("utf8_general_ci");
  1016. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1017. entity.Property(e => e.Status).HasColumnType("int(11)");
  1018. entity.Property(e => e.TotalAmount).HasColumnType("decimal(18,2)");
  1019. entity.Property(e => e.TotalConsumCount).HasColumnType("int(11)");
  1020. entity.Property(e => e.TotalDividend).HasColumnType("decimal(18,2)");
  1021. entity.Property(e => e.TotalIntegral).HasColumnType("int(11)");
  1022. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1023. entity.Property(e => e.UpdateMan)
  1024. .HasColumnType("varchar(50)")
  1025. .HasCharSet("utf8")
  1026. .HasCollation("utf8_general_ci");
  1027. entity.Property(e => e.Version).HasColumnType("int(11)");
  1028. entity.Property(e => e.WeChatPayFlag)
  1029. .HasColumnType("bit(1)")
  1030. .HasDefaultValueSql("b'0'");
  1031. entity.Property(e => e.WechatOpenId)
  1032. .HasColumnType("varchar(50)")
  1033. .HasCharSet("utf8")
  1034. .HasCollation("utf8_general_ci");
  1035. entity.Property(e => e.WechatUnionid)
  1036. .HasColumnType("varchar(50)")
  1037. .HasCharSet("utf8")
  1038. .HasCollation("utf8_general_ci");
  1039. });
  1040. modelBuilder.Entity<CouponAssignRecords>(entity =>
  1041. {
  1042. entity.Property(e => e.Id).HasColumnType("int(11)");
  1043. entity.Property(e => e.Areas)
  1044. .HasColumnType("varchar(50)")
  1045. .HasCharSet("utf8")
  1046. .HasCollation("utf8_general_ci");
  1047. entity.Property(e => e.CouponIds)
  1048. .HasColumnType("varchar(200)")
  1049. .HasCharSet("utf8")
  1050. .HasCollation("utf8_general_ci");
  1051. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1052. entity.Property(e => e.CreateMan)
  1053. .HasColumnType("varchar(50)")
  1054. .HasCharSet("utf8")
  1055. .HasCollation("utf8_general_ci");
  1056. entity.Property(e => e.CurMoneyMax).HasColumnType("decimal(18,2)");
  1057. entity.Property(e => e.CurMoneyMin).HasColumnType("decimal(18,2)");
  1058. entity.Property(e => e.Mobile)
  1059. .HasColumnType("varchar(11)")
  1060. .HasCharSet("utf8")
  1061. .HasCollation("utf8_general_ci");
  1062. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1063. entity.Property(e => e.SeoDescription)
  1064. .HasColumnType("varchar(500)")
  1065. .HasCharSet("utf8")
  1066. .HasCollation("utf8_general_ci");
  1067. entity.Property(e => e.SeoKeyword)
  1068. .HasColumnType("varchar(200)")
  1069. .HasCharSet("utf8")
  1070. .HasCollation("utf8_general_ci");
  1071. entity.Property(e => e.SeoTitle)
  1072. .HasColumnType("varchar(100)")
  1073. .HasCharSet("utf8")
  1074. .HasCollation("utf8_general_ci");
  1075. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1076. entity.Property(e => e.Status).HasColumnType("int(11)");
  1077. entity.Property(e => e.TotalOrderMoneyMax).HasColumnType("decimal(18,2)");
  1078. entity.Property(e => e.TotalOrderMoneyMin).HasColumnType("decimal(18,2)");
  1079. entity.Property(e => e.TotalUseIntegralMax).HasColumnType("decimal(18,2)");
  1080. entity.Property(e => e.TotalUseIntegralMin).HasColumnType("decimal(18,2)");
  1081. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1082. entity.Property(e => e.UpdateMan)
  1083. .HasColumnType("varchar(50)")
  1084. .HasCharSet("utf8")
  1085. .HasCollation("utf8_general_ci");
  1086. entity.Property(e => e.UserGroupId)
  1087. .HasColumnType("varchar(50)")
  1088. .HasCharSet("utf8")
  1089. .HasCollation("utf8_general_ci");
  1090. entity.Property(e => e.UserMaxLevel).HasColumnType("int(11)");
  1091. entity.Property(e => e.UserMinLevel).HasColumnType("int(11)");
  1092. entity.Property(e => e.Version).HasColumnType("int(11)");
  1093. });
  1094. modelBuilder.Entity<Coupons>(entity =>
  1095. {
  1096. entity.Property(e => e.Id).HasColumnType("int(11)");
  1097. entity.Property(e => e.AndPromotion)
  1098. .HasColumnType("bit(1)")
  1099. .HasDefaultValueSql("b'0'");
  1100. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1101. entity.Property(e => e.CreateMan)
  1102. .HasColumnType("varchar(50)")
  1103. .HasCharSet("utf8")
  1104. .HasCollation("utf8_general_ci");
  1105. entity.Property(e => e.ExpireEndDate).HasColumnType("datetime");
  1106. entity.Property(e => e.ExpireStartDate).HasColumnType("datetime");
  1107. entity.Property(e => e.Explanation)
  1108. .HasColumnType("varchar(200)")
  1109. .HasCharSet("utf8")
  1110. .HasCollation("utf8_general_ci");
  1111. entity.Property(e => e.FullReduceData).HasColumnType("decimal(18,2)");
  1112. entity.Property(e => e.FullReduceMoney).HasColumnType("decimal(18,2)");
  1113. entity.Property(e => e.IsNewUser)
  1114. .HasColumnType("bit(1)")
  1115. .HasDefaultValueSql("b'0'");
  1116. entity.Property(e => e.IsPublic)
  1117. .HasColumnType("bit(1)")
  1118. .HasDefaultValueSql("b'0'");
  1119. entity.Property(e => e.IsReUse)
  1120. .HasColumnType("bit(1)")
  1121. .HasDefaultValueSql("b'0'");
  1122. entity.Property(e => e.IsRepeat)
  1123. .HasColumnType("bit(1)")
  1124. .HasDefaultValueSql("b'0'");
  1125. entity.Property(e => e.IsSuperpose)
  1126. .HasColumnType("bit(1)")
  1127. .HasDefaultValueSql("b'0'");
  1128. entity.Property(e => e.Kind).HasColumnType("int(11)");
  1129. entity.Property(e => e.MerchantId)
  1130. .HasColumnType("varchar(200)")
  1131. .HasCharSet("utf8")
  1132. .HasCollation("utf8_general_ci");
  1133. entity.Property(e => e.Name)
  1134. .HasColumnType("varchar(50)")
  1135. .HasCharSet("utf8")
  1136. .HasCollation("utf8_general_ci");
  1137. entity.Property(e => e.ProductColId)
  1138. .HasColumnType("varchar(200)")
  1139. .HasCharSet("utf8")
  1140. .HasCollation("utf8_general_ci");
  1141. entity.Property(e => e.ProductId)
  1142. .HasColumnType("varchar(500)")
  1143. .HasCharSet("utf8")
  1144. .HasCollation("utf8_general_ci");
  1145. entity.Property(e => e.PublicEndDate).HasColumnType("datetime");
  1146. entity.Property(e => e.PublicMax).HasColumnType("int(11)");
  1147. entity.Property(e => e.PublicMaxByDay).HasColumnType("int(11)");
  1148. entity.Property(e => e.PublicStartDate).HasColumnType("datetime");
  1149. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1150. entity.Property(e => e.RepeatCondition)
  1151. .HasColumnType("varchar(50)")
  1152. .HasCharSet("utf8")
  1153. .HasCollation("utf8_general_ci");
  1154. entity.Property(e => e.RepeatType).HasColumnType("int(11)");
  1155. entity.Property(e => e.SeoDescription)
  1156. .HasColumnType("varchar(500)")
  1157. .HasCharSet("utf8")
  1158. .HasCollation("utf8_general_ci");
  1159. entity.Property(e => e.SeoKeyword)
  1160. .HasColumnType("varchar(200)")
  1161. .HasCharSet("utf8")
  1162. .HasCollation("utf8_general_ci");
  1163. entity.Property(e => e.SeoTitle)
  1164. .HasColumnType("varchar(100)")
  1165. .HasCharSet("utf8")
  1166. .HasCollation("utf8_general_ci");
  1167. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1168. entity.Property(e => e.Status).HasColumnType("int(11)");
  1169. entity.Property(e => e.Stock).HasColumnType("decimal(18,2)");
  1170. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1171. entity.Property(e => e.UpdateMan)
  1172. .HasColumnType("varchar(50)")
  1173. .HasCharSet("utf8")
  1174. .HasCollation("utf8_general_ci");
  1175. entity.Property(e => e.UseEndDate).HasColumnType("datetime");
  1176. entity.Property(e => e.UseStartDate).HasColumnType("datetime");
  1177. entity.Property(e => e.UserMaxLevel).HasColumnType("int(11)");
  1178. entity.Property(e => e.UserMinLevel).HasColumnType("int(11)");
  1179. entity.Property(e => e.Version).HasColumnType("int(11)");
  1180. });
  1181. modelBuilder.Entity<CouponsForUser>(entity =>
  1182. {
  1183. entity.Property(e => e.Id).HasColumnType("int(11)");
  1184. entity.Property(e => e.CouponId).HasColumnType("int(11)");
  1185. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1186. entity.Property(e => e.CreateMan)
  1187. .HasColumnType("varchar(50)")
  1188. .HasCharSet("utf8")
  1189. .HasCollation("utf8_general_ci");
  1190. entity.Property(e => e.IsLock)
  1191. .HasColumnType("bit(1)")
  1192. .HasDefaultValueSql("b'0'");
  1193. entity.Property(e => e.IsUse)
  1194. .HasColumnType("bit(1)")
  1195. .HasDefaultValueSql("b'0'");
  1196. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1197. entity.Property(e => e.SeoDescription)
  1198. .HasColumnType("varchar(500)")
  1199. .HasCharSet("utf8")
  1200. .HasCollation("utf8_general_ci");
  1201. entity.Property(e => e.SeoKeyword)
  1202. .HasColumnType("varchar(200)")
  1203. .HasCharSet("utf8")
  1204. .HasCollation("utf8_general_ci");
  1205. entity.Property(e => e.SeoTitle)
  1206. .HasColumnType("varchar(100)")
  1207. .HasCharSet("utf8")
  1208. .HasCollation("utf8_general_ci");
  1209. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1210. entity.Property(e => e.Status).HasColumnType("int(11)");
  1211. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1212. entity.Property(e => e.UpdateMan)
  1213. .HasColumnType("varchar(50)")
  1214. .HasCharSet("utf8")
  1215. .HasCollation("utf8_general_ci");
  1216. entity.Property(e => e.UseDate).HasColumnType("datetime");
  1217. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1218. entity.Property(e => e.Version).HasColumnType("int(11)");
  1219. });
  1220. modelBuilder.Entity<CustomTagSet>(entity =>
  1221. {
  1222. entity.Property(e => e.Id).HasColumnType("int(11)");
  1223. entity.Property(e => e.Contents)
  1224. .HasColumnType("varchar(500)")
  1225. .HasCharSet("utf8")
  1226. .HasCollation("utf8_general_ci");
  1227. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1228. entity.Property(e => e.CreateMan)
  1229. .HasColumnType("varchar(50)")
  1230. .HasCharSet("utf8")
  1231. .HasCollation("utf8_general_ci");
  1232. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1233. entity.Property(e => e.SeoDescription)
  1234. .HasColumnType("varchar(500)")
  1235. .HasCharSet("utf8")
  1236. .HasCollation("utf8_general_ci");
  1237. entity.Property(e => e.SeoKeyword)
  1238. .HasColumnType("varchar(200)")
  1239. .HasCharSet("utf8")
  1240. .HasCollation("utf8_general_ci");
  1241. entity.Property(e => e.SeoTitle)
  1242. .HasColumnType("varchar(100)")
  1243. .HasCharSet("utf8")
  1244. .HasCollation("utf8_general_ci");
  1245. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1246. entity.Property(e => e.Status).HasColumnType("int(11)");
  1247. entity.Property(e => e.Tags)
  1248. .HasColumnType("varchar(50)")
  1249. .HasCharSet("utf8")
  1250. .HasCollation("utf8_general_ci");
  1251. entity.Property(e => e.Title)
  1252. .HasColumnType("varchar(50)")
  1253. .HasCharSet("utf8")
  1254. .HasCollation("utf8_general_ci");
  1255. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1256. entity.Property(e => e.UpdateMan)
  1257. .HasColumnType("varchar(50)")
  1258. .HasCharSet("utf8")
  1259. .HasCollation("utf8_general_ci");
  1260. entity.Property(e => e.Version).HasColumnType("int(11)");
  1261. });
  1262. modelBuilder.Entity<ErpCompanys>(entity =>
  1263. {
  1264. entity.Property(e => e.Id).HasColumnType("int(11)");
  1265. entity.Property(e => e.Code)
  1266. .HasColumnType("varchar(50)")
  1267. .HasCharSet("utf8")
  1268. .HasCollation("utf8_general_ci");
  1269. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1270. entity.Property(e => e.CreateMan)
  1271. .HasColumnType("varchar(50)")
  1272. .HasCharSet("utf8")
  1273. .HasCollation("utf8_general_ci");
  1274. entity.Property(e => e.Name)
  1275. .HasColumnType("varchar(50)")
  1276. .HasCharSet("utf8")
  1277. .HasCollation("utf8_general_ci");
  1278. entity.Property(e => e.Phone)
  1279. .HasColumnType("varchar(30)")
  1280. .HasCharSet("utf8")
  1281. .HasCollation("utf8_general_ci");
  1282. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1283. entity.Property(e => e.SeoDescription)
  1284. .HasColumnType("varchar(500)")
  1285. .HasCharSet("utf8")
  1286. .HasCollation("utf8_general_ci");
  1287. entity.Property(e => e.SeoKeyword)
  1288. .HasColumnType("varchar(200)")
  1289. .HasCharSet("utf8")
  1290. .HasCollation("utf8_general_ci");
  1291. entity.Property(e => e.SeoTitle)
  1292. .HasColumnType("varchar(100)")
  1293. .HasCharSet("utf8")
  1294. .HasCollation("utf8_general_ci");
  1295. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1296. entity.Property(e => e.Status).HasColumnType("int(11)");
  1297. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1298. entity.Property(e => e.UpdateMan)
  1299. .HasColumnType("varchar(50)")
  1300. .HasCharSet("utf8")
  1301. .HasCollation("utf8_general_ci");
  1302. entity.Property(e => e.Version).HasColumnType("int(11)");
  1303. });
  1304. modelBuilder.Entity<FileUpdateInfo>(entity =>
  1305. {
  1306. entity.Property(e => e.Id).HasColumnType("int(11)");
  1307. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1308. entity.Property(e => e.CreateMan)
  1309. .HasColumnType("varchar(50)")
  1310. .HasCharSet("utf8")
  1311. .HasCollation("utf8_general_ci");
  1312. entity.Property(e => e.FileName)
  1313. .HasColumnType("varchar(50)")
  1314. .HasCharSet("utf8")
  1315. .HasCollation("utf8_general_ci");
  1316. entity.Property(e => e.Path)
  1317. .HasColumnType("varchar(200)")
  1318. .HasCharSet("utf8")
  1319. .HasCollation("utf8_general_ci");
  1320. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1321. entity.Property(e => e.SeoDescription)
  1322. .HasColumnType("varchar(500)")
  1323. .HasCharSet("utf8")
  1324. .HasCollation("utf8_general_ci");
  1325. entity.Property(e => e.SeoKeyword)
  1326. .HasColumnType("varchar(200)")
  1327. .HasCharSet("utf8")
  1328. .HasCollation("utf8_general_ci");
  1329. entity.Property(e => e.SeoTitle)
  1330. .HasColumnType("varchar(100)")
  1331. .HasCharSet("utf8")
  1332. .HasCollation("utf8_general_ci");
  1333. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1334. entity.Property(e => e.Status).HasColumnType("int(11)");
  1335. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1336. entity.Property(e => e.UpdateMan)
  1337. .HasColumnType("varchar(50)")
  1338. .HasCharSet("utf8")
  1339. .HasCollation("utf8_general_ci");
  1340. entity.Property(e => e.Version).HasColumnType("int(11)");
  1341. entity.Property(e => e.VersionNum).HasColumnType("int(11)");
  1342. });
  1343. modelBuilder.Entity<FluxProfitDetail>(entity =>
  1344. {
  1345. entity.Property(e => e.Id).HasColumnType("int(11)");
  1346. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1347. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1348. entity.Property(e => e.CreateMan)
  1349. .HasColumnType("varchar(50)")
  1350. .HasCharSet("utf8")
  1351. .HasCollation("utf8_general_ci");
  1352. entity.Property(e => e.FluxEndDate)
  1353. .HasColumnType("varchar(8)")
  1354. .HasCharSet("utf8")
  1355. .HasCollation("utf8_general_ci");
  1356. entity.Property(e => e.FluxFeeAmt).HasColumnType("decimal(18,2)");
  1357. entity.Property(e => e.FluxOrderNo)
  1358. .HasColumnType("varchar(64)")
  1359. .HasCharSet("utf8")
  1360. .HasCollation("utf8_general_ci");
  1361. entity.Property(e => e.FluxProfitAmt).HasColumnType("decimal(18,2)");
  1362. entity.Property(e => e.FluxStartDate)
  1363. .HasColumnType("varchar(8)")
  1364. .HasCharSet("utf8")
  1365. .HasCollation("utf8_general_ci");
  1366. entity.Property(e => e.MerNo)
  1367. .HasColumnType("varchar(32)")
  1368. .HasCharSet("utf8")
  1369. .HasCollation("utf8_general_ci");
  1370. entity.Property(e => e.MerUserType).HasColumnType("int(11)");
  1371. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  1372. entity.Property(e => e.MerchantUserId).HasColumnType("int(11)");
  1373. entity.Property(e => e.PosType)
  1374. .HasColumnType("varchar(32)")
  1375. .HasCharSet("utf8")
  1376. .HasCollation("utf8_general_ci");
  1377. entity.Property(e => e.ProfitType).HasColumnType("int(11)");
  1378. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1379. entity.Property(e => e.RecordNo)
  1380. .HasColumnType("varchar(32)")
  1381. .HasCharSet("utf8")
  1382. .HasCollation("utf8_general_ci");
  1383. entity.Property(e => e.Remark)
  1384. .HasColumnType("varchar(128)")
  1385. .HasCharSet("utf8")
  1386. .HasCollation("utf8_general_ci");
  1387. entity.Property(e => e.SeoDescription)
  1388. .HasColumnType("varchar(500)")
  1389. .HasCharSet("utf8")
  1390. .HasCollation("utf8_general_ci");
  1391. entity.Property(e => e.SeoKeyword)
  1392. .HasColumnType("varchar(200)")
  1393. .HasCharSet("utf8")
  1394. .HasCollation("utf8_general_ci");
  1395. entity.Property(e => e.SeoTitle)
  1396. .HasColumnType("varchar(100)")
  1397. .HasCharSet("utf8")
  1398. .HasCollation("utf8_general_ci");
  1399. entity.Property(e => e.SnNo)
  1400. .HasColumnType("varchar(32)")
  1401. .HasCharSet("utf8")
  1402. .HasCollation("utf8_general_ci");
  1403. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1404. entity.Property(e => e.Status).HasColumnType("int(11)");
  1405. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  1406. entity.Property(e => e.TradeAmt).HasColumnType("decimal(18,2)");
  1407. entity.Property(e => e.TradeDate)
  1408. .HasColumnType("varchar(8)")
  1409. .HasCharSet("utf8")
  1410. .HasCollation("utf8_general_ci");
  1411. entity.Property(e => e.TradeMonth)
  1412. .HasColumnType("varchar(6)")
  1413. .HasCharSet("utf8")
  1414. .HasCollation("utf8_general_ci");
  1415. entity.Property(e => e.TradeOrderNo)
  1416. .HasColumnType("varchar(64)")
  1417. .HasCharSet("utf8")
  1418. .HasCollation("utf8_general_ci");
  1419. entity.Property(e => e.TradeTime)
  1420. .HasColumnType("varchar(6)")
  1421. .HasCharSet("utf8")
  1422. .HasCollation("utf8_general_ci");
  1423. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1424. entity.Property(e => e.UpdateMan)
  1425. .HasColumnType("varchar(50)")
  1426. .HasCharSet("utf8")
  1427. .HasCollation("utf8_general_ci");
  1428. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1429. entity.Property(e => e.Version).HasColumnType("int(11)");
  1430. });
  1431. modelBuilder.Entity<FluxProfitSummary>(entity =>
  1432. {
  1433. entity.Property(e => e.Id).HasColumnType("int(11)");
  1434. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1435. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  1436. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1437. entity.Property(e => e.CreateMan)
  1438. .HasColumnType("varchar(50)")
  1439. .HasCharSet("utf8")
  1440. .HasCollation("utf8_general_ci");
  1441. entity.Property(e => e.FluxProfitAmt).HasColumnType("decimal(18,2)");
  1442. entity.Property(e => e.FluxTradeNum).HasColumnType("int(11)");
  1443. entity.Property(e => e.MerUserType).HasColumnType("int(11)");
  1444. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1445. entity.Property(e => e.Remark)
  1446. .HasColumnType("varchar(64)")
  1447. .HasCharSet("utf8")
  1448. .HasCollation("utf8_general_ci");
  1449. entity.Property(e => e.SeoDescription)
  1450. .HasColumnType("varchar(500)")
  1451. .HasCharSet("utf8")
  1452. .HasCollation("utf8_general_ci");
  1453. entity.Property(e => e.SeoKeyword)
  1454. .HasColumnType("varchar(200)")
  1455. .HasCharSet("utf8")
  1456. .HasCollation("utf8_general_ci");
  1457. entity.Property(e => e.SeoTitle)
  1458. .HasColumnType("varchar(100)")
  1459. .HasCharSet("utf8")
  1460. .HasCollation("utf8_general_ci");
  1461. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1462. entity.Property(e => e.Status).HasColumnType("int(11)");
  1463. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  1464. entity.Property(e => e.TradeMonth)
  1465. .HasColumnType("varchar(6)")
  1466. .HasCharSet("utf8")
  1467. .HasCollation("utf8_general_ci");
  1468. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1469. entity.Property(e => e.UpdateMan)
  1470. .HasColumnType("varchar(50)")
  1471. .HasCharSet("utf8")
  1472. .HasCollation("utf8_general_ci");
  1473. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1474. entity.Property(e => e.Version).HasColumnType("int(11)");
  1475. });
  1476. modelBuilder.Entity<IndexIconList>(entity =>
  1477. {
  1478. entity.Property(e => e.Id).HasColumnType("int(11)");
  1479. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1480. entity.Property(e => e.CreateMan)
  1481. .HasColumnType("varchar(50)")
  1482. .HasCharSet("utf8")
  1483. .HasCollation("utf8_general_ci");
  1484. entity.Property(e => e.Icon)
  1485. .HasColumnType("varchar(200)")
  1486. .HasCharSet("utf8")
  1487. .HasCollation("utf8_general_ci");
  1488. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1489. entity.Property(e => e.SeoDescription)
  1490. .HasColumnType("varchar(500)")
  1491. .HasCharSet("utf8")
  1492. .HasCollation("utf8_general_ci");
  1493. entity.Property(e => e.SeoKeyword)
  1494. .HasColumnType("varchar(200)")
  1495. .HasCharSet("utf8")
  1496. .HasCollation("utf8_general_ci");
  1497. entity.Property(e => e.SeoTitle)
  1498. .HasColumnType("varchar(100)")
  1499. .HasCharSet("utf8")
  1500. .HasCollation("utf8_general_ci");
  1501. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1502. entity.Property(e => e.Status).HasColumnType("int(11)");
  1503. entity.Property(e => e.Title)
  1504. .HasColumnType("varchar(50)")
  1505. .HasCharSet("utf8")
  1506. .HasCollation("utf8_general_ci");
  1507. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1508. entity.Property(e => e.UpdateMan)
  1509. .HasColumnType("varchar(50)")
  1510. .HasCharSet("utf8")
  1511. .HasCollation("utf8_general_ci");
  1512. entity.Property(e => e.Url)
  1513. .HasColumnType("varchar(50)")
  1514. .HasCharSet("utf8")
  1515. .HasCollation("utf8_general_ci");
  1516. entity.Property(e => e.Version).HasColumnType("int(11)");
  1517. });
  1518. modelBuilder.Entity<KqProductBrand>(entity =>
  1519. {
  1520. entity.Property(e => e.Id).HasColumnType("int(11)");
  1521. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1522. entity.Property(e => e.CreateMan)
  1523. .HasColumnType("varchar(50)")
  1524. .HasCharSet("utf8")
  1525. .HasCollation("utf8_general_ci");
  1526. entity.Property(e => e.Name)
  1527. .HasColumnType("varchar(50)")
  1528. .HasCharSet("utf8")
  1529. .HasCollation("utf8_general_ci");
  1530. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  1531. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1532. entity.Property(e => e.SeoDescription)
  1533. .HasColumnType("varchar(500)")
  1534. .HasCharSet("utf8")
  1535. .HasCollation("utf8_general_ci");
  1536. entity.Property(e => e.SeoKeyword)
  1537. .HasColumnType("varchar(200)")
  1538. .HasCharSet("utf8")
  1539. .HasCollation("utf8_general_ci");
  1540. entity.Property(e => e.SeoTitle)
  1541. .HasColumnType("varchar(100)")
  1542. .HasCharSet("utf8")
  1543. .HasCollation("utf8_general_ci");
  1544. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1545. entity.Property(e => e.Status).HasColumnType("int(11)");
  1546. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1547. entity.Property(e => e.UpdateMan)
  1548. .HasColumnType("varchar(50)")
  1549. .HasCharSet("utf8")
  1550. .HasCollation("utf8_general_ci");
  1551. entity.Property(e => e.Version).HasColumnType("int(11)");
  1552. });
  1553. modelBuilder.Entity<KqProductOrgs>(entity =>
  1554. {
  1555. entity.Property(e => e.Id).HasColumnType("int(11)");
  1556. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1557. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1558. entity.Property(e => e.CreateMan)
  1559. .HasColumnType("varchar(50)")
  1560. .HasCharSet("utf8")
  1561. .HasCollation("utf8_general_ci");
  1562. entity.Property(e => e.Name)
  1563. .HasColumnType("varchar(50)")
  1564. .HasCharSet("utf8")
  1565. .HasCollation("utf8_general_ci");
  1566. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1567. entity.Property(e => e.SeoDescription)
  1568. .HasColumnType("varchar(500)")
  1569. .HasCharSet("utf8")
  1570. .HasCollation("utf8_general_ci");
  1571. entity.Property(e => e.SeoKeyword)
  1572. .HasColumnType("varchar(200)")
  1573. .HasCharSet("utf8")
  1574. .HasCollation("utf8_general_ci");
  1575. entity.Property(e => e.SeoTitle)
  1576. .HasColumnType("varchar(100)")
  1577. .HasCharSet("utf8")
  1578. .HasCollation("utf8_general_ci");
  1579. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1580. entity.Property(e => e.Status).HasColumnType("int(11)");
  1581. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1582. entity.Property(e => e.UpdateMan)
  1583. .HasColumnType("varchar(50)")
  1584. .HasCharSet("utf8")
  1585. .HasCollation("utf8_general_ci");
  1586. entity.Property(e => e.Version).HasColumnType("int(11)");
  1587. });
  1588. modelBuilder.Entity<KqProductRuleSet>(entity =>
  1589. {
  1590. entity.Property(e => e.Id).HasColumnType("int(11)");
  1591. entity.Property(e => e.ActDeposit).HasColumnType("decimal(18,2)");
  1592. entity.Property(e => e.ActEndDate).HasColumnType("datetime");
  1593. entity.Property(e => e.ActFirst).HasColumnType("decimal(18,2)");
  1594. entity.Property(e => e.ActFirstDeposit).HasColumnType("decimal(18,2)");
  1595. entity.Property(e => e.ActPosCount).HasColumnType("int(11)");
  1596. entity.Property(e => e.ActPrize).HasColumnType("decimal(18,2)");
  1597. entity.Property(e => e.ActStartDate).HasColumnType("datetime");
  1598. entity.Property(e => e.ActiveCount).HasColumnType("int(11)");
  1599. entity.Property(e => e.ActivePrice).HasColumnType("decimal(18,2)");
  1600. entity.Property(e => e.BigExtendCycleDays).HasColumnType("int(11)");
  1601. entity.Property(e => e.BigTotalAmount).HasColumnType("decimal(18,2)");
  1602. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1603. entity.Property(e => e.CreateMan)
  1604. .HasColumnType("varchar(50)")
  1605. .HasCharSet("utf8")
  1606. .HasCollation("utf8_general_ci");
  1607. entity.Property(e => e.CycleEndDate).HasColumnType("datetime");
  1608. entity.Property(e => e.CycleIsOther)
  1609. .HasColumnType("bit(1)")
  1610. .HasDefaultValueSql("b'0'");
  1611. entity.Property(e => e.CyclePosDays).HasColumnType("int(11)");
  1612. entity.Property(e => e.CycleStartDate).HasColumnType("datetime");
  1613. entity.Property(e => e.Deposit).HasColumnType("decimal(18,2)");
  1614. entity.Property(e => e.FeeBindDays).HasColumnType("int(11)");
  1615. entity.Property(e => e.FeeFixed).HasColumnType("decimal(18,2)");
  1616. entity.Property(e => e.FeeOfDays).HasColumnType("datetime");
  1617. entity.Property(e => e.FeeRate).HasColumnType("decimal(18,2)");
  1618. entity.Property(e => e.FlowCardDirectProfit).HasColumnType("decimal(18,2)");
  1619. entity.Property(e => e.FlowCardEndDate).HasColumnType("datetime");
  1620. entity.Property(e => e.FlowCardFee).HasColumnType("decimal(18,2)");
  1621. entity.Property(e => e.FlowCardFreeDays).HasColumnType("int(11)");
  1622. entity.Property(e => e.FlowCardStartDate).HasColumnType("datetime");
  1623. entity.Property(e => e.HelpEndDate).HasColumnType("datetime");
  1624. entity.Property(e => e.HelpFee).HasColumnType("decimal(18,2)");
  1625. entity.Property(e => e.HelpMonths).HasColumnType("int(11)");
  1626. entity.Property(e => e.HelpStartDate).HasColumnType("datetime");
  1627. entity.Property(e => e.HelpSteadyFee).HasColumnType("decimal(18,2)");
  1628. entity.Property(e => e.MerStaEndDate).HasColumnType("datetime");
  1629. entity.Property(e => e.MerStaMonths).HasColumnType("int(11)");
  1630. entity.Property(e => e.MerStaProfit).HasColumnType("decimal(18,2)");
  1631. entity.Property(e => e.MerStaStartDate).HasColumnType("datetime");
  1632. entity.Property(e => e.MerStaTradeForMonth).HasColumnType("decimal(18,2)");
  1633. entity.Property(e => e.OpenEndDate).HasColumnType("datetime");
  1634. entity.Property(e => e.OpenStaDays).HasColumnType("int(11)");
  1635. entity.Property(e => e.OpenStaPrize).HasColumnType("decimal(18,2)");
  1636. entity.Property(e => e.OpenStaPrize2).HasColumnType("decimal(18,2)");
  1637. entity.Property(e => e.OpenStaTrade).HasColumnType("decimal(18,2)");
  1638. entity.Property(e => e.OpenStartDate).HasColumnType("datetime");
  1639. entity.Property(e => e.OrgId).HasColumnType("int(11)");
  1640. entity.Property(e => e.PullNewEndDate).HasColumnType("datetime");
  1641. entity.Property(e => e.PullNewExtendDays).HasColumnType("int(11)");
  1642. entity.Property(e => e.PullNewStartDate).HasColumnType("datetime");
  1643. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1644. entity.Property(e => e.SeoDescription)
  1645. .HasColumnType("varchar(500)")
  1646. .HasCharSet("utf8")
  1647. .HasCollation("utf8_general_ci");
  1648. entity.Property(e => e.SeoKeyword)
  1649. .HasColumnType("varchar(200)")
  1650. .HasCharSet("utf8")
  1651. .HasCollation("utf8_general_ci");
  1652. entity.Property(e => e.SeoTitle)
  1653. .HasColumnType("varchar(100)")
  1654. .HasCharSet("utf8")
  1655. .HasCollation("utf8_general_ci");
  1656. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1657. entity.Property(e => e.Status).HasColumnType("int(11)");
  1658. entity.Property(e => e.SubsidyEndDate).HasColumnType("datetime");
  1659. entity.Property(e => e.SubsidyStartDate).HasColumnType("datetime");
  1660. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1661. entity.Property(e => e.UpdateMan)
  1662. .HasColumnType("varchar(50)")
  1663. .HasCharSet("utf8")
  1664. .HasCollation("utf8_general_ci");
  1665. entity.Property(e => e.Version).HasColumnType("int(11)");
  1666. });
  1667. modelBuilder.Entity<KqProducts>(entity =>
  1668. {
  1669. entity.Property(e => e.Id).HasColumnType("int(11)");
  1670. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1671. entity.Property(e => e.CreateMan)
  1672. .HasColumnType("varchar(50)")
  1673. .HasCharSet("utf8")
  1674. .HasCollation("utf8_general_ci");
  1675. entity.Property(e => e.Name)
  1676. .HasColumnType("varchar(50)")
  1677. .HasCharSet("utf8")
  1678. .HasCollation("utf8_general_ci");
  1679. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1680. entity.Property(e => e.SeoDescription)
  1681. .HasColumnType("varchar(500)")
  1682. .HasCharSet("utf8")
  1683. .HasCollation("utf8_general_ci");
  1684. entity.Property(e => e.SeoKeyword)
  1685. .HasColumnType("varchar(200)")
  1686. .HasCharSet("utf8")
  1687. .HasCollation("utf8_general_ci");
  1688. entity.Property(e => e.SeoTitle)
  1689. .HasColumnType("varchar(100)")
  1690. .HasCharSet("utf8")
  1691. .HasCollation("utf8_general_ci");
  1692. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1693. entity.Property(e => e.Status).HasColumnType("int(11)");
  1694. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1695. entity.Property(e => e.UpdateMan)
  1696. .HasColumnType("varchar(50)")
  1697. .HasCharSet("utf8")
  1698. .HasCollation("utf8_general_ci");
  1699. entity.Property(e => e.Version).HasColumnType("int(11)");
  1700. });
  1701. modelBuilder.Entity<MachineApply>(entity =>
  1702. {
  1703. entity.Property(e => e.Id).HasColumnType("int(11)");
  1704. entity.Property(e => e.Address)
  1705. .HasColumnType("varchar(50)")
  1706. .HasCharSet("utf8")
  1707. .HasCollation("utf8_general_ci");
  1708. entity.Property(e => e.ApplyDeviceName)
  1709. .HasColumnType("varchar(32)")
  1710. .HasCharSet("utf8")
  1711. .HasCollation("utf8_general_ci");
  1712. entity.Property(e => e.ApplyDeviceNum).HasColumnType("int(11)");
  1713. entity.Property(e => e.ApplyNo)
  1714. .HasColumnType("varchar(32)")
  1715. .HasCharSet("utf8")
  1716. .HasCollation("utf8_general_ci");
  1717. entity.Property(e => e.ApplyTime).HasColumnType("datetime");
  1718. entity.Property(e => e.Areas)
  1719. .HasColumnType("varchar(30)")
  1720. .HasCharSet("utf8")
  1721. .HasCollation("utf8_general_ci");
  1722. entity.Property(e => e.AuditBy)
  1723. .HasColumnType("varchar(32)")
  1724. .HasCharSet("utf8")
  1725. .HasCollation("utf8_general_ci");
  1726. entity.Property(e => e.AuditRemark)
  1727. .HasColumnType("varchar(128)")
  1728. .HasCharSet("utf8")
  1729. .HasCollation("utf8_general_ci");
  1730. entity.Property(e => e.AuditResult).HasColumnType("int(11)");
  1731. entity.Property(e => e.AuditTime).HasColumnType("datetime");
  1732. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1733. entity.Property(e => e.CompleteTime).HasColumnType("datetime");
  1734. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1735. entity.Property(e => e.CreateMan)
  1736. .HasColumnType("varchar(50)")
  1737. .HasCharSet("utf8")
  1738. .HasCollation("utf8_general_ci");
  1739. entity.Property(e => e.DeliveryType).HasColumnType("int(11)");
  1740. entity.Property(e => e.ExpressName)
  1741. .HasColumnType("varchar(32)")
  1742. .HasCharSet("utf8")
  1743. .HasCollation("utf8_general_ci");
  1744. entity.Property(e => e.ExpressNo)
  1745. .HasColumnType("varchar(32)")
  1746. .HasCharSet("utf8")
  1747. .HasCollation("utf8_general_ci");
  1748. entity.Property(e => e.Mobile)
  1749. .HasColumnType("varchar(11)")
  1750. .HasCharSet("utf8")
  1751. .HasCollation("utf8_general_ci");
  1752. entity.Property(e => e.OrderExpand)
  1753. .HasColumnType("mediumtext")
  1754. .HasCharSet("utf8")
  1755. .HasCollation("utf8_general_ci");
  1756. entity.Property(e => e.ProductName)
  1757. .HasColumnType("varchar(32)")
  1758. .HasCharSet("utf8")
  1759. .HasCollation("utf8_general_ci");
  1760. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1761. entity.Property(e => e.RealName)
  1762. .HasColumnType("varchar(30)")
  1763. .HasCharSet("utf8")
  1764. .HasCollation("utf8_general_ci");
  1765. entity.Property(e => e.Remark)
  1766. .HasColumnType("varchar(64)")
  1767. .HasCharSet("utf8")
  1768. .HasCollation("utf8_general_ci");
  1769. entity.Property(e => e.ReturnOrderNo)
  1770. .HasColumnType("varchar(32)")
  1771. .HasCharSet("utf8")
  1772. .HasCollation("utf8_general_ci");
  1773. entity.Property(e => e.ReturnStatus).HasColumnType("int(11)");
  1774. entity.Property(e => e.SendDate).HasColumnType("datetime");
  1775. entity.Property(e => e.SendSn)
  1776. .HasColumnType("varchar(32)")
  1777. .HasCharSet("utf8")
  1778. .HasCollation("utf8_general_ci");
  1779. entity.Property(e => e.SendStatus).HasColumnType("int(11)");
  1780. entity.Property(e => e.SeoDescription)
  1781. .HasColumnType("varchar(500)")
  1782. .HasCharSet("utf8")
  1783. .HasCollation("utf8_general_ci");
  1784. entity.Property(e => e.SeoKeyword)
  1785. .HasColumnType("varchar(200)")
  1786. .HasCharSet("utf8")
  1787. .HasCollation("utf8_general_ci");
  1788. entity.Property(e => e.SeoTitle)
  1789. .HasColumnType("varchar(100)")
  1790. .HasCharSet("utf8")
  1791. .HasCollation("utf8_general_ci");
  1792. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1793. entity.Property(e => e.Status).HasColumnType("int(11)");
  1794. entity.Property(e => e.StoreAddress)
  1795. .HasColumnType("varchar(50)")
  1796. .HasCharSet("utf8")
  1797. .HasCollation("utf8_general_ci");
  1798. entity.Property(e => e.StoreAreas)
  1799. .HasColumnType("varchar(30)")
  1800. .HasCharSet("utf8")
  1801. .HasCollation("utf8_general_ci");
  1802. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  1803. entity.Property(e => e.StoreManager)
  1804. .HasColumnType("varchar(32)")
  1805. .HasCharSet("utf8")
  1806. .HasCollation("utf8_general_ci");
  1807. entity.Property(e => e.StoreManagerMobile)
  1808. .HasColumnType("varchar(11)")
  1809. .HasCharSet("utf8")
  1810. .HasCollation("utf8_general_ci");
  1811. entity.Property(e => e.StoreName)
  1812. .HasColumnType("varchar(32)")
  1813. .HasCharSet("utf8")
  1814. .HasCollation("utf8_general_ci");
  1815. entity.Property(e => e.StoreType).HasColumnType("int(11)");
  1816. entity.Property(e => e.StoreUserId).HasColumnType("int(11)");
  1817. entity.Property(e => e.SwapActProName)
  1818. .HasColumnType("varchar(32)")
  1819. .HasCharSet("utf8")
  1820. .HasCollation("utf8_general_ci");
  1821. entity.Property(e => e.SwapActProType).HasColumnType("int(11)");
  1822. entity.Property(e => e.SwapSnExpand)
  1823. .HasColumnType("mediumtext")
  1824. .HasCharSet("utf8")
  1825. .HasCollation("utf8_general_ci");
  1826. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  1827. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1828. entity.Property(e => e.UpdateMan)
  1829. .HasColumnType("varchar(50)")
  1830. .HasCharSet("utf8")
  1831. .HasCollation("utf8_general_ci");
  1832. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1833. entity.Property(e => e.Version).HasColumnType("int(11)");
  1834. });
  1835. modelBuilder.Entity<MachineApplyDetail>(entity =>
  1836. {
  1837. entity.Property(e => e.Id).HasColumnType("int(11)");
  1838. entity.Property(e => e.ApplyId).HasColumnType("int(11)");
  1839. entity.Property(e => e.ApplyNo)
  1840. .HasColumnType("varchar(32)")
  1841. .HasCharSet("utf8")
  1842. .HasCollation("utf8_general_ci");
  1843. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1844. entity.Property(e => e.CreateMan)
  1845. .HasColumnType("varchar(50)")
  1846. .HasCharSet("utf8")
  1847. .HasCollation("utf8_general_ci");
  1848. entity.Property(e => e.DeviceDesc)
  1849. .HasColumnType("varchar(32)")
  1850. .HasCharSet("utf8")
  1851. .HasCollation("utf8_general_ci");
  1852. entity.Property(e => e.DeviceModel)
  1853. .HasColumnType("varchar(32)")
  1854. .HasCharSet("utf8")
  1855. .HasCollation("utf8_general_ci");
  1856. entity.Property(e => e.DeviceSnNo)
  1857. .HasColumnType("varchar(32)")
  1858. .HasCharSet("utf8")
  1859. .HasCollation("utf8_general_ci");
  1860. entity.Property(e => e.DeviceStatus).HasColumnType("int(11)");
  1861. entity.Property(e => e.DeviceVendor)
  1862. .HasColumnType("varchar(32)")
  1863. .HasCharSet("utf8")
  1864. .HasCollation("utf8_general_ci");
  1865. entity.Property(e => e.ProductName)
  1866. .HasColumnType("varchar(32)")
  1867. .HasCharSet("utf8")
  1868. .HasCollation("utf8_general_ci");
  1869. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  1870. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1871. entity.Property(e => e.Remark)
  1872. .HasColumnType("varchar(64)")
  1873. .HasCharSet("utf8")
  1874. .HasCollation("utf8_general_ci");
  1875. entity.Property(e => e.SeoDescription)
  1876. .HasColumnType("varchar(500)")
  1877. .HasCharSet("utf8")
  1878. .HasCollation("utf8_general_ci");
  1879. entity.Property(e => e.SeoKeyword)
  1880. .HasColumnType("varchar(200)")
  1881. .HasCharSet("utf8")
  1882. .HasCollation("utf8_general_ci");
  1883. entity.Property(e => e.SeoTitle)
  1884. .HasColumnType("varchar(100)")
  1885. .HasCharSet("utf8")
  1886. .HasCollation("utf8_general_ci");
  1887. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1888. entity.Property(e => e.SourceSnNo)
  1889. .HasColumnType("varchar(32)")
  1890. .HasCharSet("utf8")
  1891. .HasCollation("utf8_general_ci");
  1892. entity.Property(e => e.SourceSnType).HasColumnType("int(11)");
  1893. entity.Property(e => e.Status).HasColumnType("int(11)");
  1894. entity.Property(e => e.UpSrcProName)
  1895. .HasColumnType("varchar(32)")
  1896. .HasCharSet("utf8")
  1897. .HasCollation("utf8_general_ci");
  1898. entity.Property(e => e.UpSrcProType).HasColumnType("int(11)");
  1899. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1900. entity.Property(e => e.UpdateMan)
  1901. .HasColumnType("varchar(50)")
  1902. .HasCharSet("utf8")
  1903. .HasCollation("utf8_general_ci");
  1904. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1905. entity.Property(e => e.Version).HasColumnType("int(11)");
  1906. });
  1907. modelBuilder.Entity<MachineChange>(entity =>
  1908. {
  1909. entity.Property(e => e.Id).HasColumnType("int(11)");
  1910. entity.Property(e => e.AuditBy)
  1911. .HasColumnType("varchar(32)")
  1912. .HasCharSet("utf8")
  1913. .HasCollation("utf8_general_ci");
  1914. entity.Property(e => e.AuditRemark)
  1915. .HasColumnType("varchar(128)")
  1916. .HasCharSet("utf8")
  1917. .HasCollation("utf8_general_ci");
  1918. entity.Property(e => e.AuditResult).HasColumnType("int(11)");
  1919. entity.Property(e => e.AuditTime).HasColumnType("datetime");
  1920. entity.Property(e => e.BackProductName)
  1921. .HasColumnType("varchar(32)")
  1922. .HasCharSet("utf8")
  1923. .HasCollation("utf8_general_ci");
  1924. entity.Property(e => e.BackProductType).HasColumnType("int(11)");
  1925. entity.Property(e => e.BackStoreId).HasColumnType("int(11)");
  1926. entity.Property(e => e.BackStoreName)
  1927. .HasColumnType("varchar(32)")
  1928. .HasCharSet("utf8")
  1929. .HasCollation("utf8_general_ci");
  1930. entity.Property(e => e.BackStoreUserId).HasColumnType("int(11)");
  1931. entity.Property(e => e.ChangeDeviceName)
  1932. .HasColumnType("varchar(32)")
  1933. .HasCharSet("utf8")
  1934. .HasCollation("utf8_general_ci");
  1935. entity.Property(e => e.ChangeDeviceNum).HasColumnType("int(11)");
  1936. entity.Property(e => e.ChangeNo)
  1937. .HasColumnType("varchar(32)")
  1938. .HasCharSet("utf8")
  1939. .HasCollation("utf8_general_ci");
  1940. entity.Property(e => e.ChangeSnExpand)
  1941. .HasColumnType("mediumtext")
  1942. .HasCharSet("utf8")
  1943. .HasCollation("utf8_general_ci");
  1944. entity.Property(e => e.ChangeTime).HasColumnType("datetime");
  1945. entity.Property(e => e.CompleteTime).HasColumnType("datetime");
  1946. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1947. entity.Property(e => e.CreateMan)
  1948. .HasColumnType("varchar(50)")
  1949. .HasCharSet("utf8")
  1950. .HasCollation("utf8_general_ci");
  1951. entity.Property(e => e.OrderExpand)
  1952. .HasColumnType("mediumtext")
  1953. .HasCharSet("utf8")
  1954. .HasCollation("utf8_general_ci");
  1955. entity.Property(e => e.OutProductName)
  1956. .HasColumnType("varchar(32)")
  1957. .HasCharSet("utf8")
  1958. .HasCollation("utf8_general_ci");
  1959. entity.Property(e => e.OutProductType).HasColumnType("int(11)");
  1960. entity.Property(e => e.OutStoreAddress)
  1961. .HasColumnType("varchar(128)")
  1962. .HasCharSet("utf8")
  1963. .HasCollation("utf8_general_ci");
  1964. entity.Property(e => e.OutStoreAreas)
  1965. .HasColumnType("varchar(30)")
  1966. .HasCharSet("utf8")
  1967. .HasCollation("utf8_general_ci");
  1968. entity.Property(e => e.OutStoreId).HasColumnType("int(11)");
  1969. entity.Property(e => e.OutStoreManager)
  1970. .HasColumnType("varchar(32)")
  1971. .HasCharSet("utf8")
  1972. .HasCollation("utf8_general_ci");
  1973. entity.Property(e => e.OutStoreManagerMobile)
  1974. .HasColumnType("varchar(11)")
  1975. .HasCharSet("utf8")
  1976. .HasCollation("utf8_general_ci");
  1977. entity.Property(e => e.OutStoreName)
  1978. .HasColumnType("varchar(32)")
  1979. .HasCharSet("utf8")
  1980. .HasCollation("utf8_general_ci");
  1981. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1982. entity.Property(e => e.Remark)
  1983. .HasColumnType("varchar(64)")
  1984. .HasCharSet("utf8")
  1985. .HasCollation("utf8_general_ci");
  1986. entity.Property(e => e.SeoDescription)
  1987. .HasColumnType("varchar(500)")
  1988. .HasCharSet("utf8")
  1989. .HasCollation("utf8_general_ci");
  1990. entity.Property(e => e.SeoKeyword)
  1991. .HasColumnType("varchar(200)")
  1992. .HasCharSet("utf8")
  1993. .HasCollation("utf8_general_ci");
  1994. entity.Property(e => e.SeoTitle)
  1995. .HasColumnType("varchar(100)")
  1996. .HasCharSet("utf8")
  1997. .HasCollation("utf8_general_ci");
  1998. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1999. entity.Property(e => e.Status).HasColumnType("int(11)");
  2000. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2001. entity.Property(e => e.UpdateMan)
  2002. .HasColumnType("varchar(50)")
  2003. .HasCharSet("utf8")
  2004. .HasCollation("utf8_general_ci");
  2005. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2006. entity.Property(e => e.Version).HasColumnType("int(11)");
  2007. });
  2008. modelBuilder.Entity<MachineChangeDetail>(entity =>
  2009. {
  2010. entity.Property(e => e.Id).HasColumnType("int(11)");
  2011. entity.Property(e => e.BackDeviceStatus).HasColumnType("int(11)");
  2012. entity.Property(e => e.BackProductName)
  2013. .HasColumnType("varchar(32)")
  2014. .HasCharSet("utf8")
  2015. .HasCollation("utf8_general_ci");
  2016. entity.Property(e => e.BackProductType).HasColumnType("int(11)");
  2017. entity.Property(e => e.BackSnNo)
  2018. .HasColumnType("varchar(32)")
  2019. .HasCharSet("utf8")
  2020. .HasCollation("utf8_general_ci");
  2021. entity.Property(e => e.BackSnType).HasColumnType("int(11)");
  2022. entity.Property(e => e.ChangeId).HasColumnType("int(11)");
  2023. entity.Property(e => e.ChangeNo)
  2024. .HasColumnType("varchar(32)")
  2025. .HasCharSet("utf8")
  2026. .HasCollation("utf8_general_ci");
  2027. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2028. entity.Property(e => e.CreateMan)
  2029. .HasColumnType("varchar(50)")
  2030. .HasCharSet("utf8")
  2031. .HasCollation("utf8_general_ci");
  2032. entity.Property(e => e.OutProductName)
  2033. .HasColumnType("varchar(32)")
  2034. .HasCharSet("utf8")
  2035. .HasCollation("utf8_general_ci");
  2036. entity.Property(e => e.OutProductType).HasColumnType("int(11)");
  2037. entity.Property(e => e.OutSnNo)
  2038. .HasColumnType("varchar(32)")
  2039. .HasCharSet("utf8")
  2040. .HasCollation("utf8_general_ci");
  2041. entity.Property(e => e.OutSnType).HasColumnType("int(11)");
  2042. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2043. entity.Property(e => e.Remark)
  2044. .HasColumnType("varchar(64)")
  2045. .HasCharSet("utf8")
  2046. .HasCollation("utf8_general_ci");
  2047. entity.Property(e => e.SeoDescription)
  2048. .HasColumnType("varchar(500)")
  2049. .HasCharSet("utf8")
  2050. .HasCollation("utf8_general_ci");
  2051. entity.Property(e => e.SeoKeyword)
  2052. .HasColumnType("varchar(200)")
  2053. .HasCharSet("utf8")
  2054. .HasCollation("utf8_general_ci");
  2055. entity.Property(e => e.SeoTitle)
  2056. .HasColumnType("varchar(100)")
  2057. .HasCharSet("utf8")
  2058. .HasCollation("utf8_general_ci");
  2059. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2060. entity.Property(e => e.Status).HasColumnType("int(11)");
  2061. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2062. entity.Property(e => e.UpdateMan)
  2063. .HasColumnType("varchar(50)")
  2064. .HasCharSet("utf8")
  2065. .HasCollation("utf8_general_ci");
  2066. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2067. entity.Property(e => e.Version).HasColumnType("int(11)");
  2068. });
  2069. modelBuilder.Entity<MachineForQrCode>(entity =>
  2070. {
  2071. entity.HasKey(e => e.DataId)
  2072. .HasName("PRIMARY");
  2073. entity.Property(e => e.DataId)
  2074. .HasColumnType("varchar(20)")
  2075. .HasCharSet("utf8")
  2076. .HasCollation("utf8_general_ci");
  2077. entity.Property(e => e.BindDate).HasColumnType("datetime");
  2078. entity.Property(e => e.MachineSnNo)
  2079. .HasColumnType("varchar(50)")
  2080. .HasCharSet("utf8")
  2081. .HasCollation("utf8_general_ci");
  2082. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2083. entity.Property(e => e.SnNo)
  2084. .HasColumnType("varchar(50)")
  2085. .HasCharSet("utf8")
  2086. .HasCollation("utf8_general_ci");
  2087. });
  2088. modelBuilder.Entity<MachineForSnNo>(entity =>
  2089. {
  2090. entity.HasKey(e => e.SnNo)
  2091. .HasName("PRIMARY");
  2092. entity.Property(e => e.SnNo)
  2093. .HasColumnType("varchar(50)")
  2094. .HasCharSet("utf8")
  2095. .HasCollation("utf8_general_ci");
  2096. entity.Property(e => e.SnId).HasColumnType("int(11)");
  2097. });
  2098. modelBuilder.Entity<MachineRenew>(entity =>
  2099. {
  2100. entity.Property(e => e.Id).HasColumnType("int(11)");
  2101. entity.Property(e => e.ApplyDate)
  2102. .HasColumnType("varchar(8)")
  2103. .HasCharSet("utf8")
  2104. .HasCollation("utf8_general_ci");
  2105. entity.Property(e => e.ApplyNo)
  2106. .HasColumnType("varchar(32)")
  2107. .HasCharSet("utf8")
  2108. .HasCollation("utf8_general_ci");
  2109. entity.Property(e => e.AuditDate).HasColumnType("datetime");
  2110. entity.Property(e => e.AuditDesc)
  2111. .HasColumnType("varchar(256)")
  2112. .HasCharSet("utf8")
  2113. .HasCollation("utf8_general_ci");
  2114. entity.Property(e => e.AuditStatus)
  2115. .HasColumnName("audit_status")
  2116. .HasColumnType("int(11)");
  2117. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2118. entity.Property(e => e.CreateMan)
  2119. .HasColumnType("varchar(50)")
  2120. .HasCharSet("utf8")
  2121. .HasCollation("utf8_general_ci");
  2122. entity.Property(e => e.DamagedBrandId).HasColumnType("int(11)");
  2123. entity.Property(e => e.DamagedSnNo)
  2124. .HasColumnType("varchar(32)")
  2125. .HasCharSet("utf8")
  2126. .HasCollation("utf8_general_ci");
  2127. entity.Property(e => e.DamagedSnType).HasColumnType("int(11)");
  2128. entity.Property(e => e.DeliverBrandId).HasColumnType("int(11)");
  2129. entity.Property(e => e.DeliverSnNo)
  2130. .HasColumnType("varchar(32)")
  2131. .HasCharSet("utf8")
  2132. .HasCollation("utf8_general_ci");
  2133. entity.Property(e => e.DemandDesc)
  2134. .HasColumnType("varchar(256)")
  2135. .HasCharSet("utf8")
  2136. .HasCollation("utf8_general_ci");
  2137. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2138. entity.Property(e => e.ReplaceBrandId).HasColumnType("int(11)");
  2139. entity.Property(e => e.ReplaceSnNo)
  2140. .HasColumnType("varchar(32)")
  2141. .HasCharSet("utf8")
  2142. .HasCollation("utf8_general_ci");
  2143. entity.Property(e => e.ReplaceSnType).HasColumnType("int(11)");
  2144. entity.Property(e => e.SeoDescription)
  2145. .HasColumnType("varchar(500)")
  2146. .HasCharSet("utf8")
  2147. .HasCollation("utf8_general_ci");
  2148. entity.Property(e => e.SeoKeyword)
  2149. .HasColumnType("varchar(200)")
  2150. .HasCharSet("utf8")
  2151. .HasCollation("utf8_general_ci");
  2152. entity.Property(e => e.SeoTitle)
  2153. .HasColumnType("varchar(100)")
  2154. .HasCharSet("utf8")
  2155. .HasCollation("utf8_general_ci");
  2156. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2157. entity.Property(e => e.Status).HasColumnType("int(11)");
  2158. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2159. entity.Property(e => e.UpdateMan)
  2160. .HasColumnType("varchar(50)")
  2161. .HasCharSet("utf8")
  2162. .HasCollation("utf8_general_ci");
  2163. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2164. entity.Property(e => e.Version).HasColumnType("int(11)");
  2165. });
  2166. modelBuilder.Entity<MachineReturn>(entity =>
  2167. {
  2168. entity.Property(e => e.Id).HasColumnType("int(11)");
  2169. entity.Property(e => e.ApplyNo)
  2170. .HasColumnType("varchar(32)")
  2171. .HasCharSet("utf8")
  2172. .HasCollation("utf8_general_ci");
  2173. entity.Property(e => e.AuditStatus).HasColumnType("int(11)");
  2174. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  2175. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2176. entity.Property(e => e.CreateMan)
  2177. .HasColumnType("varchar(50)")
  2178. .HasCharSet("utf8")
  2179. .HasCollation("utf8_general_ci");
  2180. entity.Property(e => e.DeviceDesc)
  2181. .HasColumnType("varchar(256)")
  2182. .HasCharSet("utf8")
  2183. .HasCollation("utf8_general_ci");
  2184. entity.Property(e => e.DeviceNum).HasColumnType("int(11)");
  2185. entity.Property(e => e.DeviceSnNos)
  2186. .HasColumnType("mediumtext")
  2187. .HasCharSet("utf8")
  2188. .HasCollation("utf8_general_ci");
  2189. entity.Property(e => e.Operator)
  2190. .HasColumnType("varchar(32)")
  2191. .HasCharSet("utf8")
  2192. .HasCollation("utf8_general_ci");
  2193. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2194. entity.Property(e => e.Remark)
  2195. .HasColumnType("varchar(64)")
  2196. .HasCharSet("utf8")
  2197. .HasCollation("utf8_general_ci");
  2198. entity.Property(e => e.SeoDescription)
  2199. .HasColumnType("varchar(500)")
  2200. .HasCharSet("utf8")
  2201. .HasCollation("utf8_general_ci");
  2202. entity.Property(e => e.SeoKeyword)
  2203. .HasColumnType("varchar(200)")
  2204. .HasCharSet("utf8")
  2205. .HasCollation("utf8_general_ci");
  2206. entity.Property(e => e.SeoTitle)
  2207. .HasColumnType("varchar(100)")
  2208. .HasCharSet("utf8")
  2209. .HasCollation("utf8_general_ci");
  2210. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2211. entity.Property(e => e.Status).HasColumnType("int(11)");
  2212. entity.Property(e => e.ToStoreId).HasColumnType("int(11)");
  2213. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2214. entity.Property(e => e.UpdateMan)
  2215. .HasColumnType("varchar(50)")
  2216. .HasCharSet("utf8")
  2217. .HasCollation("utf8_general_ci");
  2218. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2219. entity.Property(e => e.Version).HasColumnType("int(11)");
  2220. });
  2221. modelBuilder.Entity<MenuRight>(entity =>
  2222. {
  2223. entity.HasKey(e => e.MenuId)
  2224. .HasName("PRIMARY");
  2225. entity.Property(e => e.MenuId)
  2226. .HasColumnType("varchar(50)")
  2227. .HasCharSet("utf8")
  2228. .HasCollation("utf8_general_ci");
  2229. entity.Property(e => e.Name)
  2230. .HasColumnType("varchar(50)")
  2231. .HasCharSet("utf8")
  2232. .HasCollation("utf8_general_ci");
  2233. });
  2234. modelBuilder.Entity<MerchantAddInfo>(entity =>
  2235. {
  2236. entity.Property(e => e.Id).HasColumnType("int(11)");
  2237. entity.Property(e => e.AccountBank)
  2238. .HasColumnType("varchar(30)")
  2239. .HasCharSet("utf8")
  2240. .HasCollation("utf8_general_ci");
  2241. entity.Property(e => e.AccountName)
  2242. .HasColumnType("varchar(50)")
  2243. .HasCharSet("utf8")
  2244. .HasCollation("utf8_general_ci");
  2245. entity.Property(e => e.AccountNumber)
  2246. .HasColumnType("varchar(50)")
  2247. .HasCharSet("utf8")
  2248. .HasCollation("utf8_general_ci");
  2249. entity.Property(e => e.ActivitiesId)
  2250. .HasColumnType("varchar(32)")
  2251. .HasCharSet("utf8")
  2252. .HasCollation("utf8_general_ci");
  2253. entity.Property(e => e.ActivitiesRate)
  2254. .HasColumnType("varchar(20)")
  2255. .HasCharSet("utf8")
  2256. .HasCollation("utf8_general_ci");
  2257. entity.Property(e => e.AppAppid)
  2258. .HasColumnType("varchar(50)")
  2259. .HasCharSet("utf8")
  2260. .HasCollation("utf8_general_ci");
  2261. entity.Property(e => e.AppPics)
  2262. .HasColumnType("varchar(200)")
  2263. .HasCharSet("utf8")
  2264. .HasCollation("utf8_general_ci");
  2265. entity.Property(e => e.AppSubAppid)
  2266. .HasColumnType("varchar(50)")
  2267. .HasCharSet("utf8")
  2268. .HasCollation("utf8_general_ci");
  2269. entity.Property(e => e.ApplymentId)
  2270. .HasColumnType("varchar(50)")
  2271. .HasCharSet("utf8")
  2272. .HasCollation("utf8_general_ci");
  2273. entity.Property(e => e.ApplymentState)
  2274. .HasColumnType("varchar(50)")
  2275. .HasCharSet("utf8")
  2276. .HasCollation("utf8_general_ci");
  2277. entity.Property(e => e.AuditDetail)
  2278. .HasColumnType("mediumtext")
  2279. .HasCharSet("utf8")
  2280. .HasCollation("utf8_general_ci");
  2281. entity.Property(e => e.BankAccountType)
  2282. .HasColumnType("varchar(50)")
  2283. .HasCharSet("utf8")
  2284. .HasCollation("utf8_general_ci");
  2285. entity.Property(e => e.BankAddressCode)
  2286. .HasColumnType("varchar(20)")
  2287. .HasCharSet("utf8")
  2288. .HasCollation("utf8_general_ci");
  2289. entity.Property(e => e.BankBranchId)
  2290. .HasColumnType("varchar(20)")
  2291. .HasCharSet("utf8")
  2292. .HasCollation("utf8_general_ci");
  2293. entity.Property(e => e.BankName)
  2294. .HasColumnType("varchar(50)")
  2295. .HasCharSet("utf8")
  2296. .HasCollation("utf8_general_ci");
  2297. entity.Property(e => e.BizAddressCode)
  2298. .HasColumnType("varchar(30)")
  2299. .HasCharSet("utf8")
  2300. .HasCollation("utf8_general_ci");
  2301. entity.Property(e => e.BizStoreAddress)
  2302. .HasColumnType("varchar(50)")
  2303. .HasCharSet("utf8")
  2304. .HasCollation("utf8_general_ci");
  2305. entity.Property(e => e.BizStoreName)
  2306. .HasColumnType("varchar(50)")
  2307. .HasCharSet("utf8")
  2308. .HasCollation("utf8_general_ci");
  2309. entity.Property(e => e.BizSubAppid)
  2310. .HasColumnType("varchar(32)")
  2311. .HasCharSet("utf8")
  2312. .HasCollation("utf8_general_ci");
  2313. entity.Property(e => e.BusinessCode)
  2314. .HasColumnType("varchar(50)")
  2315. .HasCharSet("utf8")
  2316. .HasCollation("utf8_general_ci");
  2317. entity.Property(e => e.CardPeriodBegin).HasColumnType("datetime");
  2318. entity.Property(e => e.CardPeriodEnd).HasColumnType("datetime");
  2319. entity.Property(e => e.CertCopy)
  2320. .HasColumnType("varchar(200)")
  2321. .HasCharSet("utf8")
  2322. .HasCollation("utf8_general_ci");
  2323. entity.Property(e => e.CertLegalPerson)
  2324. .HasColumnType("varchar(20)")
  2325. .HasCharSet("utf8")
  2326. .HasCollation("utf8_general_ci");
  2327. entity.Property(e => e.CertMerchantName)
  2328. .HasColumnType("varchar(30)")
  2329. .HasCharSet("utf8")
  2330. .HasCollation("utf8_general_ci");
  2331. entity.Property(e => e.CertNumber)
  2332. .HasColumnType("varchar(32)")
  2333. .HasCharSet("utf8")
  2334. .HasCollation("utf8_general_ci");
  2335. entity.Property(e => e.CertType)
  2336. .HasColumnType("varchar(30)")
  2337. .HasCharSet("utf8")
  2338. .HasCollation("utf8_general_ci");
  2339. entity.Property(e => e.CertificateLetterCopy)
  2340. .HasColumnType("varchar(200)")
  2341. .HasCharSet("utf8")
  2342. .HasCollation("utf8_general_ci");
  2343. entity.Property(e => e.CompanyAddress)
  2344. .HasColumnType("varchar(50)")
  2345. .HasCharSet("utf8")
  2346. .HasCollation("utf8_general_ci");
  2347. entity.Property(e => e.ContactEmail)
  2348. .HasColumnType("varchar(50)")
  2349. .HasCharSet("utf8")
  2350. .HasCollation("utf8_general_ci");
  2351. entity.Property(e => e.ContactIdNumber)
  2352. .HasColumnType("varchar(18)")
  2353. .HasCharSet("utf8")
  2354. .HasCollation("utf8_general_ci");
  2355. entity.Property(e => e.ContactName)
  2356. .HasColumnType("varchar(30)")
  2357. .HasCharSet("utf8")
  2358. .HasCollation("utf8_general_ci");
  2359. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2360. entity.Property(e => e.CreateMan)
  2361. .HasColumnType("varchar(50)")
  2362. .HasCharSet("utf8")
  2363. .HasCollation("utf8_general_ci");
  2364. entity.Property(e => e.IdCardCopy)
  2365. .HasColumnType("varchar(200)")
  2366. .HasCharSet("utf8")
  2367. .HasCollation("utf8_general_ci");
  2368. entity.Property(e => e.IdCardName)
  2369. .HasColumnType("varchar(20)")
  2370. .HasCharSet("utf8")
  2371. .HasCollation("utf8_general_ci");
  2372. entity.Property(e => e.IdCardNational)
  2373. .HasColumnType("varchar(200)")
  2374. .HasCharSet("utf8")
  2375. .HasCollation("utf8_general_ci");
  2376. entity.Property(e => e.IdCardNumber)
  2377. .HasColumnType("varchar(18)")
  2378. .HasCharSet("utf8")
  2379. .HasCollation("utf8_general_ci");
  2380. entity.Property(e => e.IdDocType)
  2381. .HasColumnType("varchar(50)")
  2382. .HasCharSet("utf8")
  2383. .HasCollation("utf8_general_ci");
  2384. entity.Property(e => e.IndoorPic)
  2385. .HasColumnType("varchar(200)")
  2386. .HasCharSet("utf8")
  2387. .HasCollation("utf8_general_ci");
  2388. entity.Property(e => e.LegalPerson)
  2389. .HasColumnType("varchar(20)")
  2390. .HasCharSet("utf8")
  2391. .HasCollation("utf8_general_ci");
  2392. entity.Property(e => e.LicenseCopy)
  2393. .HasColumnType("varchar(200)")
  2394. .HasCharSet("utf8")
  2395. .HasCollation("utf8_general_ci");
  2396. entity.Property(e => e.LicenseNumber)
  2397. .HasColumnType("varchar(32)")
  2398. .HasCharSet("utf8")
  2399. .HasCollation("utf8_general_ci");
  2400. entity.Property(e => e.MerchantShortname)
  2401. .HasColumnType("varchar(50)")
  2402. .HasCharSet("utf8")
  2403. .HasCollation("utf8_general_ci");
  2404. entity.Property(e => e.MiniProgramAppid)
  2405. .HasColumnType("varchar(50)")
  2406. .HasCharSet("utf8")
  2407. .HasCollation("utf8_general_ci");
  2408. entity.Property(e => e.MiniProgramPics)
  2409. .HasColumnType("varchar(200)")
  2410. .HasCharSet("utf8")
  2411. .HasCollation("utf8_general_ci");
  2412. entity.Property(e => e.MiniProgramSubAppid)
  2413. .HasColumnType("varchar(50)")
  2414. .HasCharSet("utf8")
  2415. .HasCollation("utf8_general_ci");
  2416. entity.Property(e => e.MobilePhone)
  2417. .HasColumnType("varchar(11)")
  2418. .HasCharSet("utf8")
  2419. .HasCollation("utf8_general_ci");
  2420. entity.Property(e => e.MpAppid)
  2421. .HasColumnType("varchar(50)")
  2422. .HasCharSet("utf8")
  2423. .HasCollation("utf8_general_ci");
  2424. entity.Property(e => e.MpPics)
  2425. .HasColumnType("varchar(200)")
  2426. .HasCharSet("utf8")
  2427. .HasCollation("utf8_general_ci");
  2428. entity.Property(e => e.MpSubAppid)
  2429. .HasColumnType("varchar(50)")
  2430. .HasCharSet("utf8")
  2431. .HasCollation("utf8_general_ci");
  2432. entity.Property(e => e.OpenId)
  2433. .HasColumnType("varchar(50)")
  2434. .HasCharSet("utf8")
  2435. .HasCollation("utf8_general_ci");
  2436. entity.Property(e => e.OrgPeriodBegin).HasColumnType("datetime");
  2437. entity.Property(e => e.OrgPeriodEnd).HasColumnType("datetime");
  2438. entity.Property(e => e.OrganizationCode)
  2439. .HasColumnType("varchar(32)")
  2440. .HasCharSet("utf8")
  2441. .HasCollation("utf8_general_ci");
  2442. entity.Property(e => e.OrganizationCopy)
  2443. .HasColumnType("varchar(200)")
  2444. .HasCharSet("utf8")
  2445. .HasCollation("utf8_general_ci");
  2446. entity.Property(e => e.Owner)
  2447. .HasColumnType("bit(1)")
  2448. .HasDefaultValueSql("b'0'");
  2449. entity.Property(e => e.PeriodBegin).HasColumnType("datetime");
  2450. entity.Property(e => e.PeriodEnd).HasColumnType("datetime");
  2451. entity.Property(e => e.QualificationType)
  2452. .HasColumnType("varchar(30)")
  2453. .HasCharSet("utf8")
  2454. .HasCollation("utf8_general_ci");
  2455. entity.Property(e => e.Qualifications)
  2456. .HasColumnType("varchar(200)")
  2457. .HasCharSet("utf8")
  2458. .HasCollation("utf8_general_ci");
  2459. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2460. entity.Property(e => e.SalesScenesType)
  2461. .HasColumnType("varchar(50)")
  2462. .HasCharSet("utf8")
  2463. .HasCollation("utf8_general_ci");
  2464. entity.Property(e => e.SeoDescription)
  2465. .HasColumnType("varchar(500)")
  2466. .HasCharSet("utf8")
  2467. .HasCollation("utf8_general_ci");
  2468. entity.Property(e => e.SeoKeyword)
  2469. .HasColumnType("varchar(200)")
  2470. .HasCharSet("utf8")
  2471. .HasCollation("utf8_general_ci");
  2472. entity.Property(e => e.SeoTitle)
  2473. .HasColumnType("varchar(100)")
  2474. .HasCharSet("utf8")
  2475. .HasCollation("utf8_general_ci");
  2476. entity.Property(e => e.ServicePhone)
  2477. .HasColumnType("varchar(30)")
  2478. .HasCharSet("utf8")
  2479. .HasCollation("utf8_general_ci");
  2480. entity.Property(e => e.SettlementId)
  2481. .HasColumnType("varchar(3)")
  2482. .HasCharSet("utf8")
  2483. .HasCollation("utf8_general_ci");
  2484. entity.Property(e => e.SignUrl)
  2485. .HasColumnType("varchar(1000)")
  2486. .HasCharSet("utf8")
  2487. .HasCollation("utf8_general_ci");
  2488. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2489. entity.Property(e => e.Status).HasColumnType("int(11)");
  2490. entity.Property(e => e.StoreEntrancePic)
  2491. .HasColumnType("varchar(200)")
  2492. .HasCharSet("utf8")
  2493. .HasCollation("utf8_general_ci");
  2494. entity.Property(e => e.SubCorpId)
  2495. .HasColumnType("varchar(50)")
  2496. .HasCharSet("utf8")
  2497. .HasCollation("utf8_general_ci");
  2498. entity.Property(e => e.SubMchid)
  2499. .HasColumnType("varchar(32)")
  2500. .HasCharSet("utf8")
  2501. .HasCollation("utf8_general_ci");
  2502. entity.Property(e => e.SubjectType)
  2503. .HasColumnType("varchar(50)")
  2504. .HasCharSet("utf8")
  2505. .HasCollation("utf8_general_ci");
  2506. entity.Property(e => e.UboInfoIdCardCopy)
  2507. .HasColumnType("varchar(200)")
  2508. .HasCharSet("utf8")
  2509. .HasCollation("utf8_general_ci");
  2510. entity.Property(e => e.UboInfoIdCardNational)
  2511. .HasColumnType("varchar(200)")
  2512. .HasCharSet("utf8")
  2513. .HasCollation("utf8_general_ci");
  2514. entity.Property(e => e.UboInfoIdDocCopy)
  2515. .HasColumnType("varchar(200)")
  2516. .HasCharSet("utf8")
  2517. .HasCollation("utf8_general_ci");
  2518. entity.Property(e => e.UboInfoIdNumber)
  2519. .HasColumnType("varchar(30)")
  2520. .HasCharSet("utf8")
  2521. .HasCollation("utf8_general_ci");
  2522. entity.Property(e => e.UboInfoIdPeriodBegin).HasColumnType("datetime");
  2523. entity.Property(e => e.UboInfoIdPeriodEnd).HasColumnType("datetime");
  2524. entity.Property(e => e.UboInfoIdType)
  2525. .HasColumnType("varchar(50)")
  2526. .HasCharSet("utf8")
  2527. .HasCollation("utf8_general_ci");
  2528. entity.Property(e => e.UboInfoName)
  2529. .HasColumnType("varchar(20)")
  2530. .HasCharSet("utf8")
  2531. .HasCollation("utf8_general_ci");
  2532. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2533. entity.Property(e => e.UpdateMan)
  2534. .HasColumnType("varchar(50)")
  2535. .HasCharSet("utf8")
  2536. .HasCollation("utf8_general_ci");
  2537. entity.Property(e => e.Version).HasColumnType("int(11)");
  2538. entity.Property(e => e.WebAppId)
  2539. .HasColumnType("varchar(50)")
  2540. .HasCharSet("utf8")
  2541. .HasCollation("utf8_general_ci");
  2542. entity.Property(e => e.WebAuthorisation)
  2543. .HasColumnType("varchar(200)")
  2544. .HasCharSet("utf8")
  2545. .HasCollation("utf8_general_ci");
  2546. entity.Property(e => e.WebDomain)
  2547. .HasColumnType("varchar(50)")
  2548. .HasCharSet("utf8")
  2549. .HasCollation("utf8_general_ci");
  2550. entity.Property(e => e.WeworkPics)
  2551. .HasColumnType("varchar(200)")
  2552. .HasCharSet("utf8")
  2553. .HasCollation("utf8_general_ci");
  2554. });
  2555. modelBuilder.Entity<MerchantAdmin>(entity =>
  2556. {
  2557. entity.Property(e => e.Id).HasColumnType("int(11)");
  2558. entity.Property(e => e.AdminName)
  2559. .HasColumnType("varchar(50)")
  2560. .HasCharSet("utf8")
  2561. .HasCollation("utf8_general_ci");
  2562. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2563. entity.Property(e => e.CreateMan)
  2564. .HasColumnType("varchar(50)")
  2565. .HasCharSet("utf8")
  2566. .HasCollation("utf8_general_ci");
  2567. entity.Property(e => e.Email)
  2568. .HasColumnType("varchar(50)")
  2569. .HasCharSet("utf8")
  2570. .HasCollation("utf8_general_ci");
  2571. entity.Property(e => e.LastLoginDate).HasColumnType("datetime");
  2572. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2573. entity.Property(e => e.Mobile)
  2574. .HasColumnType("varchar(11)")
  2575. .HasCharSet("utf8")
  2576. .HasCollation("utf8_general_ci");
  2577. entity.Property(e => e.Note)
  2578. .HasColumnType("mediumtext")
  2579. .HasCharSet("utf8")
  2580. .HasCollation("utf8_general_ci");
  2581. entity.Property(e => e.Password)
  2582. .HasColumnType("varchar(32)")
  2583. .HasCharSet("utf8")
  2584. .HasCollation("utf8_general_ci");
  2585. entity.Property(e => e.Qq)
  2586. .HasColumnName("QQ")
  2587. .HasColumnType("varchar(20)")
  2588. .HasCharSet("utf8")
  2589. .HasCollation("utf8_general_ci");
  2590. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2591. entity.Property(e => e.RealName)
  2592. .HasColumnType("varchar(50)")
  2593. .HasCharSet("utf8")
  2594. .HasCollation("utf8_general_ci");
  2595. entity.Property(e => e.RightInfo)
  2596. .HasColumnType("varchar(500)")
  2597. .HasCharSet("utf8")
  2598. .HasCollation("utf8_general_ci");
  2599. entity.Property(e => e.SeoDescription)
  2600. .HasColumnType("varchar(500)")
  2601. .HasCharSet("utf8")
  2602. .HasCollation("utf8_general_ci");
  2603. entity.Property(e => e.SeoKeyword)
  2604. .HasColumnType("varchar(200)")
  2605. .HasCharSet("utf8")
  2606. .HasCollation("utf8_general_ci");
  2607. entity.Property(e => e.SeoTitle)
  2608. .HasColumnType("varchar(100)")
  2609. .HasCharSet("utf8")
  2610. .HasCollation("utf8_general_ci");
  2611. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2612. entity.Property(e => e.Status).HasColumnType("int(11)");
  2613. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2614. entity.Property(e => e.UpdateMan)
  2615. .HasColumnType("varchar(50)")
  2616. .HasCharSet("utf8")
  2617. .HasCollation("utf8_general_ci");
  2618. entity.Property(e => e.Version).HasColumnType("int(11)");
  2619. });
  2620. modelBuilder.Entity<MerchantAuth>(entity =>
  2621. {
  2622. entity.Property(e => e.Id).HasColumnType("int(11)");
  2623. entity.Property(e => e.AuthType).HasColumnType("int(11)");
  2624. entity.Property(e => e.BankCardAccount)
  2625. .HasColumnType("varchar(32)")
  2626. .HasCharSet("utf8")
  2627. .HasCollation("utf8_general_ci");
  2628. entity.Property(e => e.BankMobile)
  2629. .HasColumnType("varchar(11)")
  2630. .HasCharSet("utf8")
  2631. .HasCollation("utf8_general_ci");
  2632. entity.Property(e => e.BankName)
  2633. .HasColumnType("varchar(64)")
  2634. .HasCharSet("utf8")
  2635. .HasCollation("utf8_general_ci");
  2636. entity.Property(e => e.ChannelCode)
  2637. .HasColumnType("varchar(16)")
  2638. .HasCharSet("utf8")
  2639. .HasCollation("utf8_general_ci");
  2640. entity.Property(e => e.ChannelName)
  2641. .HasColumnType("varchar(32)")
  2642. .HasCharSet("utf8")
  2643. .HasCollation("utf8_general_ci");
  2644. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2645. entity.Property(e => e.CreateMan)
  2646. .HasColumnType("varchar(50)")
  2647. .HasCharSet("utf8")
  2648. .HasCollation("utf8_general_ci");
  2649. entity.Property(e => e.IdCardNo)
  2650. .HasColumnType("varchar(18)")
  2651. .HasCharSet("utf8")
  2652. .HasCollation("utf8_general_ci");
  2653. entity.Property(e => e.MerNo)
  2654. .HasColumnType("varchar(20)")
  2655. .HasCharSet("utf8")
  2656. .HasCollation("utf8_general_ci");
  2657. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2658. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2659. entity.Property(e => e.RealName)
  2660. .HasColumnType("varchar(16)")
  2661. .HasCharSet("utf8")
  2662. .HasCollation("utf8_general_ci");
  2663. entity.Property(e => e.ReqData)
  2664. .HasColumnType("varchar(2000)")
  2665. .HasCharSet("utf8")
  2666. .HasCollation("utf8_general_ci");
  2667. entity.Property(e => e.RespData)
  2668. .HasColumnType("varchar(2000)")
  2669. .HasCharSet("utf8")
  2670. .HasCollation("utf8_general_ci");
  2671. entity.Property(e => e.ReturnCode)
  2672. .HasColumnType("varchar(30)")
  2673. .HasCharSet("utf8")
  2674. .HasCollation("utf8_general_ci");
  2675. entity.Property(e => e.ReturnMsg)
  2676. .HasColumnType("varchar(512)")
  2677. .HasCharSet("utf8")
  2678. .HasCollation("utf8_general_ci");
  2679. entity.Property(e => e.SeoDescription)
  2680. .HasColumnType("varchar(500)")
  2681. .HasCharSet("utf8")
  2682. .HasCollation("utf8_general_ci");
  2683. entity.Property(e => e.SeoKeyword)
  2684. .HasColumnType("varchar(200)")
  2685. .HasCharSet("utf8")
  2686. .HasCollation("utf8_general_ci");
  2687. entity.Property(e => e.SeoTitle)
  2688. .HasColumnType("varchar(100)")
  2689. .HasCharSet("utf8")
  2690. .HasCollation("utf8_general_ci");
  2691. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2692. entity.Property(e => e.Status).HasColumnType("int(11)");
  2693. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2694. entity.Property(e => e.UpdateMan)
  2695. .HasColumnType("varchar(50)")
  2696. .HasCharSet("utf8")
  2697. .HasCollation("utf8_general_ci");
  2698. entity.Property(e => e.Version).HasColumnType("int(11)");
  2699. });
  2700. modelBuilder.Entity<MerchantClass>(entity =>
  2701. {
  2702. entity.Property(e => e.Id).HasColumnType("int(11)");
  2703. entity.Property(e => e.ColName)
  2704. .HasColumnType("varchar(50)")
  2705. .HasCharSet("utf8")
  2706. .HasCollation("utf8_general_ci");
  2707. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2708. entity.Property(e => e.CreateMan)
  2709. .HasColumnType("varchar(50)")
  2710. .HasCharSet("utf8")
  2711. .HasCollation("utf8_general_ci");
  2712. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2713. entity.Property(e => e.ParentId).HasColumnType("int(11)");
  2714. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2715. entity.Property(e => e.SeoDescription)
  2716. .HasColumnType("varchar(500)")
  2717. .HasCharSet("utf8")
  2718. .HasCollation("utf8_general_ci");
  2719. entity.Property(e => e.SeoKeyword)
  2720. .HasColumnType("varchar(200)")
  2721. .HasCharSet("utf8")
  2722. .HasCollation("utf8_general_ci");
  2723. entity.Property(e => e.SeoTitle)
  2724. .HasColumnType("varchar(100)")
  2725. .HasCharSet("utf8")
  2726. .HasCollation("utf8_general_ci");
  2727. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2728. entity.Property(e => e.Status).HasColumnType("int(11)");
  2729. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2730. entity.Property(e => e.UpdateMan)
  2731. .HasColumnType("varchar(50)")
  2732. .HasCharSet("utf8")
  2733. .HasCollation("utf8_general_ci");
  2734. entity.Property(e => e.Version).HasColumnType("int(11)");
  2735. });
  2736. modelBuilder.Entity<MerchantCol>(entity =>
  2737. {
  2738. entity.Property(e => e.Id).HasColumnType("int(11)");
  2739. entity.Property(e => e.ColDetail)
  2740. .HasColumnType("varchar(50)")
  2741. .HasCharSet("utf8")
  2742. .HasCollation("utf8_general_ci");
  2743. entity.Property(e => e.ColEnName)
  2744. .HasColumnType("varchar(50)")
  2745. .HasCharSet("utf8")
  2746. .HasCollation("utf8_general_ci");
  2747. entity.Property(e => e.ColId)
  2748. .HasColumnType("varchar(30)")
  2749. .HasCharSet("utf8")
  2750. .HasCollation("utf8_general_ci");
  2751. entity.Property(e => e.ColName)
  2752. .HasColumnType("varchar(50)")
  2753. .HasCharSet("utf8")
  2754. .HasCollation("utf8_general_ci");
  2755. entity.Property(e => e.ColPicPath)
  2756. .HasColumnType("varchar(200)")
  2757. .HasCharSet("utf8")
  2758. .HasCollation("utf8_general_ci");
  2759. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2760. entity.Property(e => e.CreateMan)
  2761. .HasColumnType("varchar(50)")
  2762. .HasCharSet("utf8")
  2763. .HasCollation("utf8_general_ci");
  2764. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2765. entity.Property(e => e.ParentId).HasColumnType("int(11)");
  2766. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2767. entity.Property(e => e.Recommend)
  2768. .HasColumnType("bit(1)")
  2769. .HasDefaultValueSql("b'0'");
  2770. entity.Property(e => e.SeoDescription)
  2771. .HasColumnType("varchar(500)")
  2772. .HasCharSet("utf8")
  2773. .HasCollation("utf8_general_ci");
  2774. entity.Property(e => e.SeoKeyword)
  2775. .HasColumnType("varchar(200)")
  2776. .HasCharSet("utf8")
  2777. .HasCollation("utf8_general_ci");
  2778. entity.Property(e => e.SeoTitle)
  2779. .HasColumnType("varchar(100)")
  2780. .HasCharSet("utf8")
  2781. .HasCollation("utf8_general_ci");
  2782. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2783. entity.Property(e => e.Status).HasColumnType("int(11)");
  2784. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2785. entity.Property(e => e.UpdateMan)
  2786. .HasColumnType("varchar(50)")
  2787. .HasCharSet("utf8")
  2788. .HasCollation("utf8_general_ci");
  2789. entity.Property(e => e.Version).HasColumnType("int(11)");
  2790. });
  2791. modelBuilder.Entity<MerchantComment>(entity =>
  2792. {
  2793. entity.Property(e => e.Id).HasColumnType("int(11)");
  2794. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2795. entity.Property(e => e.CreateMan)
  2796. .HasColumnType("varchar(50)")
  2797. .HasCharSet("utf8")
  2798. .HasCollation("utf8_general_ci");
  2799. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2800. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  2801. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2802. entity.Property(e => e.SeoDescription)
  2803. .HasColumnType("varchar(500)")
  2804. .HasCharSet("utf8")
  2805. .HasCollation("utf8_general_ci");
  2806. entity.Property(e => e.SeoKeyword)
  2807. .HasColumnType("varchar(200)")
  2808. .HasCharSet("utf8")
  2809. .HasCollation("utf8_general_ci");
  2810. entity.Property(e => e.SeoTitle)
  2811. .HasColumnType("varchar(100)")
  2812. .HasCharSet("utf8")
  2813. .HasCollation("utf8_general_ci");
  2814. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2815. entity.Property(e => e.StarNum1).HasColumnType("int(11)");
  2816. entity.Property(e => e.StarNum2).HasColumnType("int(11)");
  2817. entity.Property(e => e.StarNum3).HasColumnType("int(11)");
  2818. entity.Property(e => e.Status).HasColumnType("int(11)");
  2819. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2820. entity.Property(e => e.UpdateMan)
  2821. .HasColumnType("varchar(50)")
  2822. .HasCharSet("utf8")
  2823. .HasCollation("utf8_general_ci");
  2824. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2825. entity.Property(e => e.Version).HasColumnType("int(11)");
  2826. });
  2827. modelBuilder.Entity<MerchantForCode>(entity =>
  2828. {
  2829. entity.HasKey(e => e.Code)
  2830. .HasName("PRIMARY");
  2831. entity.Property(e => e.Code)
  2832. .HasColumnType("varchar(30)")
  2833. .HasCharSet("utf8")
  2834. .HasCollation("utf8_general_ci");
  2835. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2836. });
  2837. modelBuilder.Entity<MerchantForMobile>(entity =>
  2838. {
  2839. entity.HasKey(e => e.Mobile)
  2840. .HasName("PRIMARY");
  2841. entity.Property(e => e.Mobile)
  2842. .HasColumnType("varchar(11)")
  2843. .HasCharSet("utf8")
  2844. .HasCollation("utf8_general_ci");
  2845. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2846. });
  2847. modelBuilder.Entity<MerchantForName>(entity =>
  2848. {
  2849. entity.HasKey(e => e.Name)
  2850. .HasName("PRIMARY");
  2851. entity.Property(e => e.Name)
  2852. .HasColumnType("varchar(30)")
  2853. .HasCharSet("utf8")
  2854. .HasCollation("utf8_general_ci");
  2855. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2856. });
  2857. modelBuilder.Entity<MerchantInfo>(entity =>
  2858. {
  2859. entity.Property(e => e.Id).HasColumnType("int(11)");
  2860. entity.Property(e => e.Address)
  2861. .HasColumnType("varchar(100)")
  2862. .HasCharSet("utf8")
  2863. .HasCollation("utf8_general_ci");
  2864. entity.Property(e => e.Areas)
  2865. .HasColumnType("varchar(50)")
  2866. .HasCharSet("utf8")
  2867. .HasCollation("utf8_general_ci");
  2868. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2869. entity.Property(e => e.CreateMan)
  2870. .HasColumnType("varchar(50)")
  2871. .HasCharSet("utf8")
  2872. .HasCollation("utf8_general_ci");
  2873. entity.Property(e => e.IsAuth)
  2874. .HasColumnType("bit(1)")
  2875. .HasDefaultValueSql("b'0'");
  2876. entity.Property(e => e.LastAddConsumerDate).HasColumnType("datetime");
  2877. entity.Property(e => e.LastConsumeDate).HasColumnType("datetime");
  2878. entity.Property(e => e.LoginPwd)
  2879. .HasColumnType("varchar(32)")
  2880. .HasCharSet("utf8")
  2881. .HasCollation("utf8_general_ci");
  2882. entity.Property(e => e.Logo)
  2883. .HasColumnType("varchar(200)")
  2884. .HasCharSet("utf8")
  2885. .HasCollation("utf8_general_ci");
  2886. entity.Property(e => e.Mobile)
  2887. .HasColumnType("varchar(11)")
  2888. .HasCharSet("utf8")
  2889. .HasCollation("utf8_general_ci");
  2890. entity.Property(e => e.Name)
  2891. .HasColumnType("varchar(50)")
  2892. .HasCharSet("utf8")
  2893. .HasCollation("utf8_general_ci");
  2894. entity.Property(e => e.ParentUserNav)
  2895. .HasColumnType("varchar(500)")
  2896. .HasCharSet("utf8")
  2897. .HasCollation("utf8_general_ci");
  2898. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2899. entity.Property(e => e.SeoDescription)
  2900. .HasColumnType("varchar(500)")
  2901. .HasCharSet("utf8")
  2902. .HasCollation("utf8_general_ci");
  2903. entity.Property(e => e.SeoKeyword)
  2904. .HasColumnType("varchar(200)")
  2905. .HasCharSet("utf8")
  2906. .HasCollation("utf8_general_ci");
  2907. entity.Property(e => e.SeoTitle)
  2908. .HasColumnType("varchar(100)")
  2909. .HasCharSet("utf8")
  2910. .HasCollation("utf8_general_ci");
  2911. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2912. entity.Property(e => e.Status).HasColumnType("int(11)");
  2913. entity.Property(e => e.TotalActual).HasColumnType("decimal(18,2)");
  2914. entity.Property(e => e.TotalAmount).HasColumnType("decimal(18,2)");
  2915. entity.Property(e => e.TotalConsumeCount).HasColumnType("int(11)");
  2916. entity.Property(e => e.TotalCustomer).HasColumnType("int(11)");
  2917. entity.Property(e => e.TotalOrder).HasColumnType("int(11)");
  2918. entity.Property(e => e.TotalUser).HasColumnType("int(11)");
  2919. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2920. entity.Property(e => e.UpdateMan)
  2921. .HasColumnType("varchar(50)")
  2922. .HasCharSet("utf8")
  2923. .HasCollation("utf8_general_ci");
  2924. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2925. entity.Property(e => e.Version).HasColumnType("int(11)");
  2926. });
  2927. modelBuilder.Entity<MerchantParamSet>(entity =>
  2928. {
  2929. entity.Property(e => e.Id).HasColumnType("int(11)");
  2930. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2931. entity.Property(e => e.CreateMan)
  2932. .HasColumnType("varchar(50)")
  2933. .HasCharSet("utf8")
  2934. .HasCollation("utf8_general_ci");
  2935. entity.Property(e => e.DiviPercent).HasColumnType("decimal(18,2)");
  2936. entity.Property(e => e.DiviPersons).HasColumnType("int(11)");
  2937. entity.Property(e => e.GetPercent).HasColumnType("decimal(18,2)");
  2938. entity.Property(e => e.IsAll).HasColumnType("int(11)");
  2939. entity.Property(e => e.MinPayMoney).HasColumnType("decimal(18,2)");
  2940. entity.Property(e => e.ProfitDays).HasColumnType("int(11)");
  2941. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2942. entity.Property(e => e.SeoDescription)
  2943. .HasColumnType("varchar(500)")
  2944. .HasCharSet("utf8")
  2945. .HasCollation("utf8_general_ci");
  2946. entity.Property(e => e.SeoKeyword)
  2947. .HasColumnType("varchar(200)")
  2948. .HasCharSet("utf8")
  2949. .HasCollation("utf8_general_ci");
  2950. entity.Property(e => e.SeoTitle)
  2951. .HasColumnType("varchar(100)")
  2952. .HasCharSet("utf8")
  2953. .HasCollation("utf8_general_ci");
  2954. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2955. entity.Property(e => e.Status).HasColumnType("int(11)");
  2956. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2957. entity.Property(e => e.UpdateMan)
  2958. .HasColumnType("varchar(50)")
  2959. .HasCharSet("utf8")
  2960. .HasCollation("utf8_general_ci");
  2961. entity.Property(e => e.Version).HasColumnType("int(11)");
  2962. });
  2963. modelBuilder.Entity<MerchantQrCode>(entity =>
  2964. {
  2965. entity.Property(e => e.Id).HasColumnType("int(11)");
  2966. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2967. entity.Property(e => e.CreateMan)
  2968. .HasColumnType("varchar(50)")
  2969. .HasCharSet("utf8")
  2970. .HasCollation("utf8_general_ci");
  2971. entity.Property(e => e.MachineId).HasColumnType("int(11)");
  2972. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2973. entity.Property(e => e.QrCodeContent)
  2974. .HasColumnType("varchar(500)")
  2975. .HasCharSet("utf8")
  2976. .HasCollation("utf8_general_ci");
  2977. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2978. entity.Property(e => e.SeoDescription)
  2979. .HasColumnType("varchar(500)")
  2980. .HasCharSet("utf8")
  2981. .HasCollation("utf8_general_ci");
  2982. entity.Property(e => e.SeoKeyword)
  2983. .HasColumnType("varchar(200)")
  2984. .HasCharSet("utf8")
  2985. .HasCollation("utf8_general_ci");
  2986. entity.Property(e => e.SeoTitle)
  2987. .HasColumnType("varchar(100)")
  2988. .HasCharSet("utf8")
  2989. .HasCollation("utf8_general_ci");
  2990. entity.Property(e => e.SnNo)
  2991. .HasColumnType("varchar(50)")
  2992. .HasCharSet("utf8")
  2993. .HasCollation("utf8_general_ci");
  2994. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2995. entity.Property(e => e.Status).HasColumnType("int(11)");
  2996. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2997. entity.Property(e => e.UpdateMan)
  2998. .HasColumnType("varchar(50)")
  2999. .HasCharSet("utf8")
  3000. .HasCollation("utf8_general_ci");
  3001. entity.Property(e => e.Version).HasColumnType("int(11)");
  3002. });
  3003. modelBuilder.Entity<MerchantRebateDetail>(entity =>
  3004. {
  3005. entity.Property(e => e.Id).HasColumnType("int(11)");
  3006. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  3007. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3008. entity.Property(e => e.CreateMan)
  3009. .HasColumnType("varchar(50)")
  3010. .HasCharSet("utf8")
  3011. .HasCollation("utf8_general_ci");
  3012. entity.Property(e => e.CreditRewardAmount).HasColumnType("decimal(18,2)");
  3013. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  3014. entity.Property(e => e.DebitRewardAmount).HasColumnType("decimal(18,2)");
  3015. entity.Property(e => e.DebitTradeAmt).HasColumnType("decimal(18,2)");
  3016. entity.Property(e => e.MerNo)
  3017. .HasColumnType("varchar(32)")
  3018. .HasCharSet("utf8")
  3019. .HasCollation("utf8_general_ci");
  3020. entity.Property(e => e.MerRegTime).HasColumnType("datetime");
  3021. entity.Property(e => e.MerStandardDate).HasColumnType("datetime");
  3022. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  3023. entity.Property(e => e.MmpUserName)
  3024. .HasColumnType("varchar(32)")
  3025. .HasCharSet("utf8")
  3026. .HasCollation("utf8_general_ci");
  3027. entity.Property(e => e.MmpUserNo)
  3028. .HasColumnType("varchar(32)")
  3029. .HasCharSet("utf8")
  3030. .HasCollation("utf8_general_ci");
  3031. entity.Property(e => e.ProductName)
  3032. .HasColumnType("varchar(32)")
  3033. .HasCharSet("utf8")
  3034. .HasCollation("utf8_general_ci");
  3035. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3036. entity.Property(e => e.Remark)
  3037. .HasColumnType("varchar(64)")
  3038. .HasCharSet("utf8")
  3039. .HasCollation("utf8_general_ci");
  3040. entity.Property(e => e.RewardDesc)
  3041. .HasColumnType("varchar(128)")
  3042. .HasCharSet("utf8")
  3043. .HasCollation("utf8_general_ci");
  3044. entity.Property(e => e.SeoDescription)
  3045. .HasColumnType("varchar(500)")
  3046. .HasCharSet("utf8")
  3047. .HasCollation("utf8_general_ci");
  3048. entity.Property(e => e.SeoKeyword)
  3049. .HasColumnType("varchar(200)")
  3050. .HasCharSet("utf8")
  3051. .HasCollation("utf8_general_ci");
  3052. entity.Property(e => e.SeoTitle)
  3053. .HasColumnType("varchar(100)")
  3054. .HasCharSet("utf8")
  3055. .HasCollation("utf8_general_ci");
  3056. entity.Property(e => e.SnNo)
  3057. .HasColumnType("varchar(32)")
  3058. .HasCharSet("utf8")
  3059. .HasCollation("utf8_general_ci");
  3060. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3061. entity.Property(e => e.Status).HasColumnType("int(11)");
  3062. entity.Property(e => e.SyncStatus).HasColumnType("int(11)");
  3063. entity.Property(e => e.TradeDate)
  3064. .HasColumnType("varchar(8)")
  3065. .HasCharSet("utf8")
  3066. .HasCollation("utf8_general_ci");
  3067. entity.Property(e => e.TradeMonth)
  3068. .HasColumnType("varchar(6)")
  3069. .HasCharSet("utf8")
  3070. .HasCollation("utf8_general_ci");
  3071. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3072. entity.Property(e => e.UpdateMan)
  3073. .HasColumnType("varchar(50)")
  3074. .HasCharSet("utf8")
  3075. .HasCollation("utf8_general_ci");
  3076. entity.Property(e => e.Version).HasColumnType("int(11)");
  3077. });
  3078. modelBuilder.Entity<Merchants>(entity =>
  3079. {
  3080. entity.Property(e => e.Id).HasColumnType("int(11)");
  3081. entity.Property(e => e.Address)
  3082. .HasColumnType("varchar(50)")
  3083. .HasCharSet("utf8")
  3084. .HasCollation("utf8_general_ci");
  3085. entity.Property(e => e.Areas)
  3086. .HasColumnType("varchar(30)")
  3087. .HasCharSet("utf8")
  3088. .HasCollation("utf8_general_ci");
  3089. entity.Property(e => e.BusinessLicense)
  3090. .HasColumnType("varchar(200)")
  3091. .HasCharSet("utf8")
  3092. .HasCollation("utf8_general_ci");
  3093. entity.Property(e => e.CommentCount).HasColumnType("int(11)");
  3094. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3095. entity.Property(e => e.CreateMan)
  3096. .HasColumnType("varchar(50)")
  3097. .HasCharSet("utf8")
  3098. .HasCollation("utf8_general_ci");
  3099. entity.Property(e => e.FollowCount).HasColumnType("int(11)");
  3100. entity.Property(e => e.IsAuth)
  3101. .HasColumnType("bit(1)")
  3102. .HasDefaultValueSql("b'0'");
  3103. entity.Property(e => e.IsRecommend)
  3104. .HasColumnType("bit(1)")
  3105. .HasDefaultValueSql("b'0'");
  3106. entity.Property(e => e.LoginPwd)
  3107. .HasColumnType("varchar(32)")
  3108. .HasCharSet("utf8")
  3109. .HasCollation("utf8_general_ci");
  3110. entity.Property(e => e.Logo)
  3111. .HasColumnType("varchar(200)")
  3112. .HasCharSet("utf8")
  3113. .HasCollation("utf8_general_ci");
  3114. entity.Property(e => e.Name)
  3115. .HasColumnType("varchar(50)")
  3116. .HasCharSet("utf8")
  3117. .HasCollation("utf8_general_ci");
  3118. entity.Property(e => e.PayPwd)
  3119. .HasColumnType("varchar(32)")
  3120. .HasCharSet("utf8")
  3121. .HasCollation("utf8_general_ci");
  3122. entity.Property(e => e.Phone)
  3123. .HasColumnType("varchar(30)")
  3124. .HasCharSet("utf8")
  3125. .HasCollation("utf8_general_ci");
  3126. entity.Property(e => e.Principal)
  3127. .HasColumnType("varchar(30)")
  3128. .HasCharSet("utf8")
  3129. .HasCollation("utf8_general_ci");
  3130. entity.Property(e => e.Province)
  3131. .HasColumnType("varchar(20)")
  3132. .HasCharSet("utf8")
  3133. .HasCollation("utf8_general_ci");
  3134. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3135. entity.Property(e => e.SeoDescription)
  3136. .HasColumnType("varchar(500)")
  3137. .HasCharSet("utf8")
  3138. .HasCollation("utf8_general_ci");
  3139. entity.Property(e => e.SeoKeyword)
  3140. .HasColumnType("varchar(200)")
  3141. .HasCharSet("utf8")
  3142. .HasCollation("utf8_general_ci");
  3143. entity.Property(e => e.SeoTitle)
  3144. .HasColumnType("varchar(100)")
  3145. .HasCharSet("utf8")
  3146. .HasCollation("utf8_general_ci");
  3147. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3148. entity.Property(e => e.StarNum1).HasColumnType("decimal(18,2)");
  3149. entity.Property(e => e.StarNum2).HasColumnType("decimal(18,2)");
  3150. entity.Property(e => e.StarNum3).HasColumnType("decimal(18,2)");
  3151. entity.Property(e => e.Status).HasColumnType("int(11)");
  3152. entity.Property(e => e.Title)
  3153. .HasColumnType("varchar(50)")
  3154. .HasCharSet("utf8")
  3155. .HasCollation("utf8_general_ci");
  3156. entity.Property(e => e.Title2)
  3157. .HasColumnType("varchar(50)")
  3158. .HasCharSet("utf8")
  3159. .HasCollation("utf8_general_ci");
  3160. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3161. entity.Property(e => e.UpdateMan)
  3162. .HasColumnType("varchar(50)")
  3163. .HasCharSet("utf8")
  3164. .HasCollation("utf8_general_ci");
  3165. entity.Property(e => e.UserName)
  3166. .HasColumnType("varchar(50)")
  3167. .HasCharSet("utf8")
  3168. .HasCollation("utf8_general_ci");
  3169. entity.Property(e => e.Version).HasColumnType("int(11)");
  3170. });
  3171. modelBuilder.Entity<MobileCodeCheck>(entity =>
  3172. {
  3173. entity.HasKey(e => e.Mobile)
  3174. .HasName("PRIMARY");
  3175. entity.Property(e => e.Mobile)
  3176. .HasColumnType("varchar(11)")
  3177. .HasCharSet("utf8")
  3178. .HasCollation("utf8_general_ci");
  3179. entity.Property(e => e.CheckCode)
  3180. .HasColumnType("varchar(6)")
  3181. .HasCharSet("utf8")
  3182. .HasCollation("utf8_general_ci");
  3183. entity.Property(e => e.CheckCodeTime).HasColumnType("datetime");
  3184. entity.Property(e => e.CheckNo)
  3185. .HasColumnType("varchar(6)")
  3186. .HasCharSet("utf8")
  3187. .HasCollation("utf8_general_ci");
  3188. });
  3189. modelBuilder.Entity<MsgBlackList>(entity =>
  3190. {
  3191. entity.Property(e => e.Id).HasColumnType("int(11)");
  3192. entity.Property(e => e.ColId)
  3193. .HasColumnType("varchar(30)")
  3194. .HasCharSet("utf8")
  3195. .HasCollation("utf8_general_ci");
  3196. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3197. entity.Property(e => e.CreateMan)
  3198. .HasColumnType("varchar(50)")
  3199. .HasCharSet("utf8")
  3200. .HasCollation("utf8_general_ci");
  3201. entity.Property(e => e.Extend)
  3202. .HasColumnType("varchar(2000)")
  3203. .HasCharSet("utf8")
  3204. .HasCollation("utf8_general_ci");
  3205. entity.Property(e => e.Ip)
  3206. .HasColumnType("varchar(64)")
  3207. .HasCharSet("utf8")
  3208. .HasCollation("utf8_general_ci");
  3209. entity.Property(e => e.Mobile)
  3210. .HasColumnType("varchar(11)")
  3211. .HasCharSet("utf8")
  3212. .HasCollation("utf8_general_ci");
  3213. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3214. entity.Property(e => e.Reason)
  3215. .HasColumnType("varchar(512)")
  3216. .HasCharSet("utf8")
  3217. .HasCollation("utf8_general_ci");
  3218. entity.Property(e => e.Remark)
  3219. .HasColumnType("varchar(64)")
  3220. .HasCharSet("utf8")
  3221. .HasCollation("utf8_general_ci");
  3222. entity.Property(e => e.SeoDescription)
  3223. .HasColumnType("varchar(500)")
  3224. .HasCharSet("utf8")
  3225. .HasCollation("utf8_general_ci");
  3226. entity.Property(e => e.SeoKeyword)
  3227. .HasColumnType("varchar(200)")
  3228. .HasCharSet("utf8")
  3229. .HasCollation("utf8_general_ci");
  3230. entity.Property(e => e.SeoTitle)
  3231. .HasColumnType("varchar(100)")
  3232. .HasCharSet("utf8")
  3233. .HasCollation("utf8_general_ci");
  3234. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3235. entity.Property(e => e.Status).HasColumnType("int(11)");
  3236. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  3237. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3238. entity.Property(e => e.UpdateMan)
  3239. .HasColumnType("varchar(50)")
  3240. .HasCharSet("utf8")
  3241. .HasCollation("utf8_general_ci");
  3242. entity.Property(e => e.Version).HasColumnType("int(11)");
  3243. });
  3244. modelBuilder.Entity<MsgPersonal>(entity =>
  3245. {
  3246. entity.Property(e => e.Id).HasColumnType("int(11)");
  3247. entity.Property(e => e.BgPic)
  3248. .HasColumnType("varchar(200)")
  3249. .HasCharSet("utf8")
  3250. .HasCollation("utf8_general_ci");
  3251. entity.Property(e => e.Content)
  3252. .HasColumnType("longtext")
  3253. .HasCharSet("utf8")
  3254. .HasCollation("utf8_general_ci");
  3255. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3256. entity.Property(e => e.CreateMan)
  3257. .HasColumnType("varchar(50)")
  3258. .HasCharSet("utf8")
  3259. .HasCollation("utf8_general_ci");
  3260. entity.Property(e => e.ExtendColumn)
  3261. .HasColumnType("mediumtext")
  3262. .HasCharSet("utf8")
  3263. .HasCollation("utf8_general_ci");
  3264. entity.Property(e => e.MsgType).HasColumnType("int(11)");
  3265. entity.Property(e => e.PushFlag).HasColumnType("int(11)");
  3266. entity.Property(e => e.PushParam)
  3267. .HasColumnType("varchar(255)")
  3268. .HasCharSet("utf8")
  3269. .HasCollation("utf8_general_ci");
  3270. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3271. entity.Property(e => e.ReadFlag)
  3272. .HasColumnType("bit(1)")
  3273. .HasDefaultValueSql("b'0'");
  3274. entity.Property(e => e.Remark)
  3275. .HasColumnType("varchar(255)")
  3276. .HasCharSet("utf8")
  3277. .HasCollation("utf8_general_ci");
  3278. entity.Property(e => e.SeoDescription)
  3279. .HasColumnType("varchar(500)")
  3280. .HasCharSet("utf8")
  3281. .HasCollation("utf8_general_ci");
  3282. entity.Property(e => e.SeoKeyword)
  3283. .HasColumnType("varchar(200)")
  3284. .HasCharSet("utf8")
  3285. .HasCollation("utf8_general_ci");
  3286. entity.Property(e => e.SeoTitle)
  3287. .HasColumnType("varchar(100)")
  3288. .HasCharSet("utf8")
  3289. .HasCollation("utf8_general_ci");
  3290. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3291. entity.Property(e => e.Status).HasColumnType("int(11)");
  3292. entity.Property(e => e.Summary)
  3293. .HasColumnType("varchar(500)")
  3294. .HasCharSet("utf8")
  3295. .HasCollation("utf8_general_ci");
  3296. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  3297. entity.Property(e => e.Title)
  3298. .HasColumnType("varchar(50)")
  3299. .HasCharSet("utf8")
  3300. .HasCollation("utf8_general_ci");
  3301. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3302. entity.Property(e => e.UpdateMan)
  3303. .HasColumnType("varchar(50)")
  3304. .HasCharSet("utf8")
  3305. .HasCollation("utf8_general_ci");
  3306. entity.Property(e => e.Url)
  3307. .HasColumnType("varchar(500)")
  3308. .HasCharSet("utf8")
  3309. .HasCollation("utf8_general_ci");
  3310. entity.Property(e => e.UserId).HasColumnType("int(11)");
  3311. entity.Property(e => e.Version).HasColumnType("int(11)");
  3312. });
  3313. modelBuilder.Entity<MsgPlacard>(entity =>
  3314. {
  3315. entity.Property(e => e.Id).HasColumnType("int(11)");
  3316. entity.Property(e => e.BgPic)
  3317. .HasColumnType("varchar(200)")
  3318. .HasCharSet("utf8")
  3319. .HasCollation("utf8_general_ci");
  3320. entity.Property(e => e.Content)
  3321. .HasColumnType("longtext")
  3322. .HasCharSet("utf8")
  3323. .HasCollation("utf8_general_ci");
  3324. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3325. entity.Property(e => e.CreateMan)
  3326. .HasColumnType("varchar(50)")
  3327. .HasCharSet("utf8")
  3328. .HasCollation("utf8_general_ci");
  3329. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  3330. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  3331. entity.Property(e => e.ExtendColumn)
  3332. .HasColumnType("mediumtext")
  3333. .HasCharSet("utf8")
  3334. .HasCollation("utf8_general_ci");
  3335. entity.Property(e => e.IsTop)
  3336. .HasColumnType("bit(1)")
  3337. .HasDefaultValueSql("b'0'");
  3338. entity.Property(e => e.MsgType).HasColumnType("int(11)");
  3339. entity.Property(e => e.PushFlag).HasColumnType("int(11)");
  3340. entity.Property(e => e.PushParam)
  3341. .HasColumnType("varchar(255)")
  3342. .HasCharSet("utf8")
  3343. .HasCollation("utf8_general_ci");
  3344. entity.Property(e => e.PushTime).HasColumnType("datetime");
  3345. entity.Property(e => e.PushType).HasColumnType("int(11)");
  3346. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3347. entity.Property(e => e.Remark)
  3348. .HasColumnType("varchar(255)")
  3349. .HasCharSet("utf8")
  3350. .HasCollation("utf8_general_ci");
  3351. entity.Property(e => e.SeoDescription)
  3352. .HasColumnType("varchar(500)")
  3353. .HasCharSet("utf8")
  3354. .HasCollation("utf8_general_ci");
  3355. entity.Property(e => e.SeoKeyword)
  3356. .HasColumnType("varchar(200)")
  3357. .HasCharSet("utf8")
  3358. .HasCollation("utf8_general_ci");
  3359. entity.Property(e => e.SeoTitle)
  3360. .HasColumnType("varchar(100)")
  3361. .HasCharSet("utf8")
  3362. .HasCollation("utf8_general_ci");
  3363. entity.Property(e => e.ShowType).HasColumnType("int(11)");
  3364. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3365. entity.Property(e => e.Status).HasColumnType("int(11)");
  3366. entity.Property(e => e.Summary)
  3367. .HasColumnType("varchar(500)")
  3368. .HasCharSet("utf8")
  3369. .HasCollation("utf8_general_ci");
  3370. entity.Property(e => e.Title)
  3371. .HasColumnType("varchar(50)")
  3372. .HasCharSet("utf8")
  3373. .HasCollation("utf8_general_ci");
  3374. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3375. entity.Property(e => e.UpdateMan)
  3376. .HasColumnType("varchar(50)")
  3377. .HasCharSet("utf8")
  3378. .HasCollation("utf8_general_ci");
  3379. entity.Property(e => e.Url)
  3380. .HasColumnType("varchar(500)")
  3381. .HasCharSet("utf8")
  3382. .HasCollation("utf8_general_ci");
  3383. entity.Property(e => e.Version).HasColumnType("int(11)");
  3384. });
  3385. modelBuilder.Entity<MsgPlacardRead>(entity =>
  3386. {
  3387. entity.Property(e => e.Id).HasColumnType("int(11)");
  3388. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3389. entity.Property(e => e.CreateMan)
  3390. .HasColumnType("varchar(50)")
  3391. .HasCharSet("utf8")
  3392. .HasCollation("utf8_general_ci");
  3393. entity.Property(e => e.PlacardId).HasColumnType("int(11)");
  3394. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3395. entity.Property(e => e.ReadFlag)
  3396. .HasColumnType("bit(1)")
  3397. .HasDefaultValueSql("b'0'");
  3398. entity.Property(e => e.Remark)
  3399. .HasColumnType("varchar(255)")
  3400. .HasCharSet("utf8")
  3401. .HasCollation("utf8_general_ci");
  3402. entity.Property(e => e.SeoDescription)
  3403. .HasColumnType("varchar(500)")
  3404. .HasCharSet("utf8")
  3405. .HasCollation("utf8_general_ci");
  3406. entity.Property(e => e.SeoKeyword)
  3407. .HasColumnType("varchar(200)")
  3408. .HasCharSet("utf8")
  3409. .HasCollation("utf8_general_ci");
  3410. entity.Property(e => e.SeoTitle)
  3411. .HasColumnType("varchar(100)")
  3412. .HasCharSet("utf8")
  3413. .HasCollation("utf8_general_ci");
  3414. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3415. entity.Property(e => e.Status).HasColumnType("int(11)");
  3416. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3417. entity.Property(e => e.UpdateMan)
  3418. .HasColumnType("varchar(50)")
  3419. .HasCharSet("utf8")
  3420. .HasCollation("utf8_general_ci");
  3421. entity.Property(e => e.UserId)
  3422. .HasColumnType("varchar(64)")
  3423. .HasCharSet("utf8")
  3424. .HasCollation("utf8_general_ci");
  3425. entity.Property(e => e.Version).HasColumnType("int(11)");
  3426. });
  3427. modelBuilder.Entity<MsgPush>(entity =>
  3428. {
  3429. entity.Property(e => e.Id).HasColumnType("int(11)");
  3430. entity.Property(e => e.AutoPushDate).HasColumnType("datetime");
  3431. entity.Property(e => e.ClientType)
  3432. .HasColumnType("varchar(20)")
  3433. .HasCharSet("utf8")
  3434. .HasCollation("utf8_general_ci");
  3435. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3436. entity.Property(e => e.CreateMan)
  3437. .HasColumnType("varchar(50)")
  3438. .HasCharSet("utf8")
  3439. .HasCollation("utf8_general_ci");
  3440. entity.Property(e => e.Details)
  3441. .HasColumnType("varchar(200)")
  3442. .HasCharSet("utf8")
  3443. .HasCollation("utf8_general_ci");
  3444. entity.Property(e => e.Devices)
  3445. .HasColumnType("mediumtext")
  3446. .HasCharSet("utf8")
  3447. .HasCollation("utf8_general_ci");
  3448. entity.Property(e => e.IsSilent)
  3449. .HasColumnType("bit(1)")
  3450. .HasDefaultValueSql("b'0'");
  3451. entity.Property(e => e.MessageId)
  3452. .HasColumnType("varchar(50)")
  3453. .HasCharSet("utf8")
  3454. .HasCollation("utf8_general_ci");
  3455. entity.Property(e => e.Mobiles)
  3456. .HasColumnType("mediumtext")
  3457. .HasCharSet("utf8")
  3458. .HasCollation("utf8_general_ci");
  3459. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3460. entity.Property(e => e.SeoDescription)
  3461. .HasColumnType("varchar(500)")
  3462. .HasCharSet("utf8")
  3463. .HasCollation("utf8_general_ci");
  3464. entity.Property(e => e.SeoKeyword)
  3465. .HasColumnType("varchar(200)")
  3466. .HasCharSet("utf8")
  3467. .HasCollation("utf8_general_ci");
  3468. entity.Property(e => e.SeoTitle)
  3469. .HasColumnType("varchar(100)")
  3470. .HasCharSet("utf8")
  3471. .HasCollation("utf8_general_ci");
  3472. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3473. entity.Property(e => e.Status).HasColumnType("int(11)");
  3474. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  3475. entity.Property(e => e.Title)
  3476. .HasColumnType("varchar(50)")
  3477. .HasCharSet("utf8")
  3478. .HasCollation("utf8_general_ci");
  3479. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3480. entity.Property(e => e.UpdateMan)
  3481. .HasColumnType("varchar(50)")
  3482. .HasCharSet("utf8")
  3483. .HasCollation("utf8_general_ci");
  3484. entity.Property(e => e.Url)
  3485. .HasColumnType("varchar(500)")
  3486. .HasCharSet("utf8")
  3487. .HasCollation("utf8_general_ci");
  3488. entity.Property(e => e.Version).HasColumnType("int(11)");
  3489. });
  3490. modelBuilder.Entity<MsgSms>(entity =>
  3491. {
  3492. entity.Property(e => e.Id).HasColumnType("int(11)");
  3493. entity.Property(e => e.Code).HasColumnType("int(11)");
  3494. entity.Property(e => e.ColId)
  3495. .HasColumnType("varchar(30)")
  3496. .HasCharSet("utf8")
  3497. .HasCollation("utf8_general_ci");
  3498. entity.Property(e => e.Content)
  3499. .HasColumnType("varchar(200)")
  3500. .HasCharSet("utf8")
  3501. .HasCollation("utf8_general_ci");
  3502. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3503. entity.Property(e => e.CreateMan)
  3504. .HasColumnType("varchar(50)")
  3505. .HasCharSet("utf8")
  3506. .HasCollation("utf8_general_ci");
  3507. entity.Property(e => e.ErrorNum).HasColumnType("int(11)");
  3508. entity.Property(e => e.Ip)
  3509. .HasColumnType("varchar(15)")
  3510. .HasCharSet("utf8")
  3511. .HasCollation("utf8_general_ci");
  3512. entity.Property(e => e.Kind)
  3513. .HasColumnType("varchar(64)")
  3514. .HasCharSet("utf8")
  3515. .HasCollation("utf8_general_ci");
  3516. entity.Property(e => e.Mobile)
  3517. .HasColumnType("varchar(11)")
  3518. .HasCharSet("utf8")
  3519. .HasCollation("utf8_general_ci");
  3520. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3521. entity.Property(e => e.RespCode)
  3522. .HasColumnType("varchar(16)")
  3523. .HasCharSet("utf8")
  3524. .HasCollation("utf8_general_ci");
  3525. entity.Property(e => e.RespContent)
  3526. .HasColumnType("varchar(500)")
  3527. .HasCharSet("utf8")
  3528. .HasCollation("utf8_general_ci");
  3529. entity.Property(e => e.SendStatus).HasColumnType("int(11)");
  3530. entity.Property(e => e.SendTime).HasColumnType("datetime");
  3531. entity.Property(e => e.SendType).HasColumnType("int(11)");
  3532. entity.Property(e => e.SeoDescription)
  3533. .HasColumnType("varchar(500)")
  3534. .HasCharSet("utf8")
  3535. .HasCollation("utf8_general_ci");
  3536. entity.Property(e => e.SeoKeyword)
  3537. .HasColumnType("varchar(200)")
  3538. .HasCharSet("utf8")
  3539. .HasCollation("utf8_general_ci");
  3540. entity.Property(e => e.SeoTitle)
  3541. .HasColumnType("varchar(100)")
  3542. .HasCharSet("utf8")
  3543. .HasCollation("utf8_general_ci");
  3544. entity.Property(e => e.SignName)
  3545. .HasColumnType("varchar(10)")
  3546. .HasCharSet("utf8")
  3547. .HasCollation("utf8_general_ci");
  3548. entity.Property(e => e.SmsType).HasColumnType("int(11)");
  3549. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3550. entity.Property(e => e.Status).HasColumnType("int(11)");
  3551. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  3552. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3553. entity.Property(e => e.UpdateMan)
  3554. .HasColumnType("varchar(50)")
  3555. .HasCharSet("utf8")
  3556. .HasCollation("utf8_general_ci");
  3557. entity.Property(e => e.VerifyCode)
  3558. .HasColumnType("varchar(6)")
  3559. .HasCharSet("utf8")
  3560. .HasCollation("utf8_general_ci");
  3561. entity.Property(e => e.VerifyStatus).HasColumnType("int(11)");
  3562. entity.Property(e => e.Version).HasColumnType("int(11)");
  3563. });
  3564. modelBuilder.Entity<MsgSmsSet>(entity =>
  3565. {
  3566. entity.Property(e => e.Id).HasColumnType("int(11)");
  3567. entity.Property(e => e.AuthPwd)
  3568. .HasColumnType("varchar(50)")
  3569. .HasCharSet("utf8")
  3570. .HasCollation("utf8_general_ci");
  3571. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3572. entity.Property(e => e.CreateMan)
  3573. .HasColumnType("varchar(50)")
  3574. .HasCharSet("utf8")
  3575. .HasCollation("utf8_general_ci");
  3576. entity.Property(e => e.Name)
  3577. .HasColumnType("varchar(50)")
  3578. .HasCharSet("utf8")
  3579. .HasCollation("utf8_general_ci");
  3580. entity.Property(e => e.Params)
  3581. .HasColumnType("varchar(200)")
  3582. .HasCharSet("utf8")
  3583. .HasCollation("utf8_general_ci");
  3584. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3585. entity.Property(e => e.ReqUrl)
  3586. .HasColumnType("varchar(200)")
  3587. .HasCharSet("utf8")
  3588. .HasCollation("utf8_general_ci");
  3589. entity.Property(e => e.SeoDescription)
  3590. .HasColumnType("varchar(500)")
  3591. .HasCharSet("utf8")
  3592. .HasCollation("utf8_general_ci");
  3593. entity.Property(e => e.SeoKeyword)
  3594. .HasColumnType("varchar(200)")
  3595. .HasCharSet("utf8")
  3596. .HasCollation("utf8_general_ci");
  3597. entity.Property(e => e.SeoTitle)
  3598. .HasColumnType("varchar(100)")
  3599. .HasCharSet("utf8")
  3600. .HasCollation("utf8_general_ci");
  3601. entity.Property(e => e.SmsType).HasColumnType("int(11)");
  3602. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3603. entity.Property(e => e.Status).HasColumnType("int(11)");
  3604. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3605. entity.Property(e => e.UpdateMan)
  3606. .HasColumnType("varchar(50)")
  3607. .HasCharSet("utf8")
  3608. .HasCollation("utf8_general_ci");
  3609. entity.Property(e => e.UserName)
  3610. .HasColumnType("varchar(50)")
  3611. .HasCharSet("utf8")
  3612. .HasCollation("utf8_general_ci");
  3613. entity.Property(e => e.Version).HasColumnType("int(11)");
  3614. });
  3615. modelBuilder.Entity<MsgTemplate>(entity =>
  3616. {
  3617. entity.Property(e => e.Id).HasColumnType("int(11)");
  3618. entity.Property(e => e.ColId)
  3619. .HasColumnType("varchar(30)")
  3620. .HasCharSet("utf8")
  3621. .HasCollation("utf8_general_ci");
  3622. entity.Property(e => e.Content)
  3623. .HasColumnType("varchar(200)")
  3624. .HasCharSet("utf8")
  3625. .HasCollation("utf8_general_ci");
  3626. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3627. entity.Property(e => e.CreateMan)
  3628. .HasColumnType("varchar(50)")
  3629. .HasCharSet("utf8")
  3630. .HasCollation("utf8_general_ci");
  3631. entity.Property(e => e.Extend)
  3632. .HasColumnType("varchar(2000)")
  3633. .HasCharSet("utf8")
  3634. .HasCollation("utf8_general_ci");
  3635. entity.Property(e => e.MsgType).HasColumnType("int(11)");
  3636. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3637. entity.Property(e => e.Remark)
  3638. .HasColumnType("varchar(64)")
  3639. .HasCharSet("utf8")
  3640. .HasCollation("utf8_general_ci");
  3641. entity.Property(e => e.SeoDescription)
  3642. .HasColumnType("varchar(500)")
  3643. .HasCharSet("utf8")
  3644. .HasCollation("utf8_general_ci");
  3645. entity.Property(e => e.SeoKeyword)
  3646. .HasColumnType("varchar(200)")
  3647. .HasCharSet("utf8")
  3648. .HasCollation("utf8_general_ci");
  3649. entity.Property(e => e.SeoTitle)
  3650. .HasColumnType("varchar(100)")
  3651. .HasCharSet("utf8")
  3652. .HasCollation("utf8_general_ci");
  3653. entity.Property(e => e.SignName)
  3654. .HasColumnType("varchar(10)")
  3655. .HasCharSet("utf8")
  3656. .HasCollation("utf8_general_ci");
  3657. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3658. entity.Property(e => e.Status).HasColumnType("int(11)");
  3659. entity.Property(e => e.TemplateType).HasColumnType("int(11)");
  3660. entity.Property(e => e.Title)
  3661. .HasColumnType("varchar(50)")
  3662. .HasCharSet("utf8")
  3663. .HasCollation("utf8_general_ci");
  3664. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3665. entity.Property(e => e.UpdateMan)
  3666. .HasColumnType("varchar(50)")
  3667. .HasCharSet("utf8")
  3668. .HasCollation("utf8_general_ci");
  3669. entity.Property(e => e.Version).HasColumnType("int(11)");
  3670. });
  3671. modelBuilder.Entity<OpenBankCityTable>(entity =>
  3672. {
  3673. entity.HasKey(e => e.CityName)
  3674. .HasName("PRIMARY");
  3675. entity.Property(e => e.CityName)
  3676. .HasColumnType("varchar(100)")
  3677. .HasCharSet("utf8")
  3678. .HasCollation("utf8_general_ci");
  3679. entity.Property(e => e.Code)
  3680. .HasColumnType("varchar(20)")
  3681. .HasCharSet("utf8")
  3682. .HasCollation("utf8_general_ci");
  3683. });
  3684. modelBuilder.Entity<OpenBankTable>(entity =>
  3685. {
  3686. entity.HasKey(e => e.BankName)
  3687. .HasName("PRIMARY");
  3688. entity.Property(e => e.BankName)
  3689. .HasColumnType("varchar(200)")
  3690. .HasCharSet("utf8")
  3691. .HasCollation("utf8_general_ci");
  3692. entity.Property(e => e.BankCode)
  3693. .HasColumnType("varchar(50)")
  3694. .HasCharSet("utf8")
  3695. .HasCollation("utf8_general_ci");
  3696. });
  3697. modelBuilder.Entity<OpenReward>(entity =>
  3698. {
  3699. entity.Property(e => e.Id).HasColumnType("int(11)");
  3700. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  3701. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  3702. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3703. entity.Property(e => e.CreateMan)
  3704. .HasColumnType("varchar(50)")
  3705. .HasCharSet("utf8")
  3706. .HasCollation("utf8_general_ci");
  3707. entity.Property(e => e.CreditRewardAmount).HasColumnType("decimal(18,2)");
  3708. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  3709. entity.Property(e => e.DebitRewardAmount).HasColumnType("decimal(18,2)");
  3710. entity.Property(e => e.DebitTradeAmt).HasColumnType("decimal(18,2)");
  3711. entity.Property(e => e.OpenRewardNo)
  3712. .HasColumnType("varchar(32)")
  3713. .HasCharSet("utf8")
  3714. .HasCollation("utf8_general_ci");
  3715. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3716. entity.Property(e => e.Remark)
  3717. .HasColumnType("varchar(128)")
  3718. .HasCharSet("utf8")
  3719. .HasCollation("utf8_general_ci");
  3720. entity.Property(e => e.RewardDesc)
  3721. .HasColumnType("varchar(128)")
  3722. .HasCharSet("utf8")
  3723. .HasCollation("utf8_general_ci");
  3724. entity.Property(e => e.RewardMerCount).HasColumnType("int(11)");
  3725. entity.Property(e => e.RewardType).HasColumnType("int(11)");
  3726. entity.Property(e => e.SeoDescription)
  3727. .HasColumnType("varchar(500)")
  3728. .HasCharSet("utf8")
  3729. .HasCollation("utf8_general_ci");
  3730. entity.Property(e => e.SeoKeyword)
  3731. .HasColumnType("varchar(200)")
  3732. .HasCharSet("utf8")
  3733. .HasCollation("utf8_general_ci");
  3734. entity.Property(e => e.SeoTitle)
  3735. .HasColumnType("varchar(100)")
  3736. .HasCharSet("utf8")
  3737. .HasCollation("utf8_general_ci");
  3738. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3739. entity.Property(e => e.Status).HasColumnType("int(11)");
  3740. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  3741. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  3742. entity.Property(e => e.TradeMonth)
  3743. .HasColumnType("varchar(6)")
  3744. .HasCharSet("utf8")
  3745. .HasCollation("utf8_general_ci");
  3746. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3747. entity.Property(e => e.UpdateMan)
  3748. .HasColumnType("varchar(50)")
  3749. .HasCharSet("utf8")
  3750. .HasCollation("utf8_general_ci");
  3751. entity.Property(e => e.UserId).HasColumnType("int(11)");
  3752. entity.Property(e => e.Version).HasColumnType("int(11)");
  3753. });
  3754. modelBuilder.Entity<OpenRewardDetail>(entity =>
  3755. {
  3756. entity.Property(e => e.Id).HasColumnType("int(11)");
  3757. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  3758. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  3759. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3760. entity.Property(e => e.CreateMan)
  3761. .HasColumnType("varchar(50)")
  3762. .HasCharSet("utf8")
  3763. .HasCollation("utf8_general_ci");
  3764. entity.Property(e => e.CreditRewardAmount).HasColumnType("decimal(18,2)");
  3765. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  3766. entity.Property(e => e.DebitRewardAmount).HasColumnType("decimal(18,2)");
  3767. entity.Property(e => e.DebitTradeAmt).HasColumnType("decimal(18,2)");
  3768. entity.Property(e => e.DirectUserId).HasColumnType("int(11)");
  3769. entity.Property(e => e.MerBuddyType).HasColumnType("int(11)");
  3770. entity.Property(e => e.MerNo)
  3771. .HasColumnType("varchar(32)")
  3772. .HasCharSet("utf8")
  3773. .HasCollation("utf8_general_ci");
  3774. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  3775. entity.Property(e => e.OpenDetailRec)
  3776. .HasColumnType("varchar(32)")
  3777. .HasCharSet("utf8")
  3778. .HasCollation("utf8_general_ci");
  3779. entity.Property(e => e.OpenRewardNo)
  3780. .HasColumnType("varchar(32)")
  3781. .HasCharSet("utf8")
  3782. .HasCollation("utf8_general_ci");
  3783. entity.Property(e => e.ProductName)
  3784. .HasColumnType("varchar(32)")
  3785. .HasCharSet("utf8")
  3786. .HasCollation("utf8_general_ci");
  3787. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3788. entity.Property(e => e.Remark)
  3789. .HasColumnType("varchar(128)")
  3790. .HasCharSet("utf8")
  3791. .HasCollation("utf8_general_ci");
  3792. entity.Property(e => e.RewardDesc)
  3793. .HasColumnType("varchar(128)")
  3794. .HasCharSet("utf8")
  3795. .HasCollation("utf8_general_ci");
  3796. entity.Property(e => e.RewardTips)
  3797. .HasColumnType("varchar(16)")
  3798. .HasCharSet("utf8")
  3799. .HasCollation("utf8_general_ci");
  3800. entity.Property(e => e.RewardType).HasColumnType("int(11)");
  3801. entity.Property(e => e.SeoDescription)
  3802. .HasColumnType("varchar(500)")
  3803. .HasCharSet("utf8")
  3804. .HasCollation("utf8_general_ci");
  3805. entity.Property(e => e.SeoKeyword)
  3806. .HasColumnType("varchar(200)")
  3807. .HasCharSet("utf8")
  3808. .HasCollation("utf8_general_ci");
  3809. entity.Property(e => e.SeoTitle)
  3810. .HasColumnType("varchar(100)")
  3811. .HasCharSet("utf8")
  3812. .HasCollation("utf8_general_ci");
  3813. entity.Property(e => e.SnApplyUserId).HasColumnType("int(11)");
  3814. entity.Property(e => e.SnNo)
  3815. .HasColumnType("varchar(32)")
  3816. .HasCharSet("utf8")
  3817. .HasCollation("utf8_general_ci");
  3818. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  3819. entity.Property(e => e.SnType).HasColumnType("int(11)");
  3820. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3821. entity.Property(e => e.StandardDate).HasColumnType("datetime");
  3822. entity.Property(e => e.Status).HasColumnType("int(11)");
  3823. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  3824. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  3825. entity.Property(e => e.TradeMonth)
  3826. .HasColumnType("varchar(6)")
  3827. .HasCharSet("utf8")
  3828. .HasCollation("utf8_general_ci");
  3829. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3830. entity.Property(e => e.UpdateMan)
  3831. .HasColumnType("varchar(50)")
  3832. .HasCharSet("utf8")
  3833. .HasCollation("utf8_general_ci");
  3834. entity.Property(e => e.UserId).HasColumnType("int(11)");
  3835. entity.Property(e => e.Version).HasColumnType("int(11)");
  3836. });
  3837. modelBuilder.Entity<OpenSnSnapshot>(entity =>
  3838. {
  3839. entity.Property(e => e.Id).HasColumnType("int(11)");
  3840. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  3841. entity.Property(e => e.BuySnNum).HasColumnType("int(11)");
  3842. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3843. entity.Property(e => e.CreateMan)
  3844. .HasColumnType("varchar(50)")
  3845. .HasCharSet("utf8")
  3846. .HasCollation("utf8_general_ci");
  3847. entity.Property(e => e.CreditRewardAmount).HasColumnType("decimal(18,2)");
  3848. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  3849. entity.Property(e => e.DebitRewardAmount).HasColumnType("decimal(18,2)");
  3850. entity.Property(e => e.DebitTradeAmt).HasColumnType("decimal(18,2)");
  3851. entity.Property(e => e.DirectUserId).HasColumnType("int(11)");
  3852. entity.Property(e => e.FailReason)
  3853. .HasColumnType("varchar(128)")
  3854. .HasCharSet("utf8")
  3855. .HasCollation("utf8_general_ci");
  3856. entity.Property(e => e.MerNo)
  3857. .HasColumnType("varchar(32)")
  3858. .HasCharSet("utf8")
  3859. .HasCollation("utf8_general_ci");
  3860. entity.Property(e => e.MerUserType).HasColumnType("int(11)");
  3861. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  3862. entity.Property(e => e.OpenDetailRec)
  3863. .HasColumnType("varchar(32)")
  3864. .HasCharSet("utf8")
  3865. .HasCollation("utf8_general_ci");
  3866. entity.Property(e => e.OpenRewardNo)
  3867. .HasColumnType("varchar(32)")
  3868. .HasCharSet("utf8")
  3869. .HasCollation("utf8_general_ci");
  3870. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3871. entity.Property(e => e.Remark)
  3872. .HasColumnType("varchar(128)")
  3873. .HasCharSet("utf8")
  3874. .HasCollation("utf8_general_ci");
  3875. entity.Property(e => e.RewardAmount).HasColumnType("decimal(18,2)");
  3876. entity.Property(e => e.RewardDesc)
  3877. .HasColumnType("varchar(128)")
  3878. .HasCharSet("utf8")
  3879. .HasCollation("utf8_general_ci");
  3880. entity.Property(e => e.RewardTips)
  3881. .HasColumnType("varchar(16)")
  3882. .HasCharSet("utf8")
  3883. .HasCollation("utf8_general_ci");
  3884. entity.Property(e => e.RewardType).HasColumnType("int(11)");
  3885. entity.Property(e => e.SeoDescription)
  3886. .HasColumnType("varchar(500)")
  3887. .HasCharSet("utf8")
  3888. .HasCollation("utf8_general_ci");
  3889. entity.Property(e => e.SeoKeyword)
  3890. .HasColumnType("varchar(200)")
  3891. .HasCharSet("utf8")
  3892. .HasCollation("utf8_general_ci");
  3893. entity.Property(e => e.SeoTitle)
  3894. .HasColumnType("varchar(100)")
  3895. .HasCharSet("utf8")
  3896. .HasCollation("utf8_general_ci");
  3897. entity.Property(e => e.SnApplyUserId).HasColumnType("int(11)");
  3898. entity.Property(e => e.SnNo)
  3899. .HasColumnType("varchar(32)")
  3900. .HasCharSet("utf8")
  3901. .HasCollation("utf8_general_ci");
  3902. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  3903. entity.Property(e => e.SnType).HasColumnType("int(11)");
  3904. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3905. entity.Property(e => e.StandardDate).HasColumnType("datetime");
  3906. entity.Property(e => e.Status).HasColumnType("int(11)");
  3907. entity.Property(e => e.StdBuySnNum).HasColumnType("int(11)");
  3908. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  3909. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  3910. entity.Property(e => e.TradeMonth)
  3911. .HasColumnType("varchar(6)")
  3912. .HasCharSet("utf8")
  3913. .HasCollation("utf8_general_ci");
  3914. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3915. entity.Property(e => e.UpdateMan)
  3916. .HasColumnType("varchar(50)")
  3917. .HasCharSet("utf8")
  3918. .HasCollation("utf8_general_ci");
  3919. entity.Property(e => e.UserId).HasColumnType("int(11)");
  3920. entity.Property(e => e.UserNav)
  3921. .HasColumnType("varchar(300)")
  3922. .HasCharSet("utf8")
  3923. .HasCollation("utf8_general_ci");
  3924. entity.Property(e => e.Version).HasColumnType("int(11)");
  3925. });
  3926. modelBuilder.Entity<OperateLog>(entity =>
  3927. {
  3928. entity.Property(e => e.Id).HasColumnType("int(11)");
  3929. entity.Property(e => e.AfterOperate)
  3930. .HasColumnType("mediumtext")
  3931. .HasCharSet("utf8")
  3932. .HasCollation("utf8_general_ci");
  3933. entity.Property(e => e.BeforeOperate)
  3934. .HasColumnType("mediumtext")
  3935. .HasCharSet("utf8")
  3936. .HasCollation("utf8_general_ci");
  3937. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3938. entity.Property(e => e.CreateMan)
  3939. .HasColumnType("varchar(50)")
  3940. .HasCharSet("utf8")
  3941. .HasCollation("utf8_general_ci");
  3942. entity.Property(e => e.OpMode)
  3943. .HasColumnType("varchar(30)")
  3944. .HasCharSet("utf8")
  3945. .HasCollation("utf8_general_ci");
  3946. entity.Property(e => e.OperateMan)
  3947. .HasColumnType("varchar(50)")
  3948. .HasCharSet("utf8")
  3949. .HasCollation("utf8_general_ci");
  3950. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3951. entity.Property(e => e.SeoDescription)
  3952. .HasColumnType("varchar(500)")
  3953. .HasCharSet("utf8")
  3954. .HasCollation("utf8_general_ci");
  3955. entity.Property(e => e.SeoKeyword)
  3956. .HasColumnType("varchar(200)")
  3957. .HasCharSet("utf8")
  3958. .HasCollation("utf8_general_ci");
  3959. entity.Property(e => e.SeoTitle)
  3960. .HasColumnType("varchar(100)")
  3961. .HasCharSet("utf8")
  3962. .HasCollation("utf8_general_ci");
  3963. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3964. entity.Property(e => e.Status).HasColumnType("int(11)");
  3965. entity.Property(e => e.TableEnName)
  3966. .HasColumnType("varchar(50)")
  3967. .HasCharSet("utf8")
  3968. .HasCollation("utf8_general_ci");
  3969. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3970. entity.Property(e => e.UpdateMan)
  3971. .HasColumnType("varchar(50)")
  3972. .HasCharSet("utf8")
  3973. .HasCollation("utf8_general_ci");
  3974. entity.Property(e => e.Version).HasColumnType("int(11)");
  3975. });
  3976. modelBuilder.Entity<OperateRightList>(entity =>
  3977. {
  3978. entity.Property(e => e.Id).HasColumnType("int(11)");
  3979. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3980. entity.Property(e => e.CreateMan)
  3981. .HasColumnType("varchar(50)")
  3982. .HasCharSet("utf8")
  3983. .HasCollation("utf8_general_ci");
  3984. entity.Property(e => e.EnName)
  3985. .HasColumnType("varchar(50)")
  3986. .HasCharSet("utf8")
  3987. .HasCollation("utf8_general_ci");
  3988. entity.Property(e => e.Name)
  3989. .HasColumnType("varchar(50)")
  3990. .HasCharSet("utf8")
  3991. .HasCollation("utf8_general_ci");
  3992. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3993. entity.Property(e => e.SeoDescription)
  3994. .HasColumnType("varchar(500)")
  3995. .HasCharSet("utf8")
  3996. .HasCollation("utf8_general_ci");
  3997. entity.Property(e => e.SeoKeyword)
  3998. .HasColumnType("varchar(200)")
  3999. .HasCharSet("utf8")
  4000. .HasCollation("utf8_general_ci");
  4001. entity.Property(e => e.SeoTitle)
  4002. .HasColumnType("varchar(100)")
  4003. .HasCharSet("utf8")
  4004. .HasCollation("utf8_general_ci");
  4005. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4006. entity.Property(e => e.Status).HasColumnType("int(11)");
  4007. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4008. entity.Property(e => e.UpdateMan)
  4009. .HasColumnType("varchar(50)")
  4010. .HasCharSet("utf8")
  4011. .HasCollation("utf8_general_ci");
  4012. entity.Property(e => e.Version).HasColumnType("int(11)");
  4013. });
  4014. modelBuilder.Entity<OrderForNo>(entity =>
  4015. {
  4016. entity.HasKey(e => e.OrderNo)
  4017. .HasName("PRIMARY");
  4018. entity.Property(e => e.OrderNo)
  4019. .HasColumnType("varchar(50)")
  4020. .HasCharSet("utf8")
  4021. .HasCollation("utf8_general_ci");
  4022. entity.Property(e => e.OrderIds)
  4023. .HasColumnType("varchar(50)")
  4024. .HasCharSet("utf8")
  4025. .HasCollation("utf8_general_ci");
  4026. entity.Property(e => e.RspCode).HasColumnType("int(11)");
  4027. entity.Property(e => e.RspMsg)
  4028. .HasColumnType("varchar(500)")
  4029. .HasCharSet("utf8")
  4030. .HasCollation("utf8_general_ci");
  4031. });
  4032. modelBuilder.Entity<OrderProduct>(entity =>
  4033. {
  4034. entity.Property(e => e.Id).HasColumnType("int(11)");
  4035. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4036. entity.Property(e => e.CreateMan)
  4037. .HasColumnType("varchar(50)")
  4038. .HasCharSet("utf8")
  4039. .HasCollation("utf8_general_ci");
  4040. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4041. entity.Property(e => e.NormDetail)
  4042. .HasColumnType("varchar(200)")
  4043. .HasCharSet("utf8")
  4044. .HasCollation("utf8_general_ci");
  4045. entity.Property(e => e.NormId)
  4046. .HasColumnType("varchar(50)")
  4047. .HasCharSet("utf8")
  4048. .HasCollation("utf8_general_ci");
  4049. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  4050. entity.Property(e => e.ProductCode)
  4051. .HasColumnType("varchar(30)")
  4052. .HasCharSet("utf8")
  4053. .HasCollation("utf8_general_ci");
  4054. entity.Property(e => e.ProductCount).HasColumnType("int(11)");
  4055. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  4056. entity.Property(e => e.ProductIntegral).HasColumnType("decimal(18,2)");
  4057. entity.Property(e => e.ProductName)
  4058. .HasColumnType("varchar(100)")
  4059. .HasCharSet("utf8")
  4060. .HasCollation("utf8_general_ci");
  4061. entity.Property(e => e.ProductPhoto)
  4062. .HasColumnType("varchar(200)")
  4063. .HasCharSet("utf8")
  4064. .HasCollation("utf8_general_ci");
  4065. entity.Property(e => e.ProductPrice).HasColumnType("decimal(18,2)");
  4066. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4067. entity.Property(e => e.SeoDescription)
  4068. .HasColumnType("varchar(500)")
  4069. .HasCharSet("utf8")
  4070. .HasCollation("utf8_general_ci");
  4071. entity.Property(e => e.SeoKeyword)
  4072. .HasColumnType("varchar(200)")
  4073. .HasCharSet("utf8")
  4074. .HasCollation("utf8_general_ci");
  4075. entity.Property(e => e.SeoTitle)
  4076. .HasColumnType("varchar(100)")
  4077. .HasCharSet("utf8")
  4078. .HasCollation("utf8_general_ci");
  4079. entity.Property(e => e.SnNos)
  4080. .HasColumnType("mediumtext")
  4081. .HasCharSet("utf8")
  4082. .HasCollation("utf8_general_ci");
  4083. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4084. entity.Property(e => e.Status).HasColumnType("int(11)");
  4085. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  4086. entity.Property(e => e.TotalIntegral).HasColumnType("decimal(18,2)");
  4087. entity.Property(e => e.TotalPrice).HasColumnType("decimal(18,2)");
  4088. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4089. entity.Property(e => e.UpdateMan)
  4090. .HasColumnType("varchar(50)")
  4091. .HasCharSet("utf8")
  4092. .HasCollation("utf8_general_ci");
  4093. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4094. entity.Property(e => e.Version).HasColumnType("int(11)");
  4095. });
  4096. modelBuilder.Entity<OrderRefund>(entity =>
  4097. {
  4098. entity.Property(e => e.Id).HasColumnType("int(11)");
  4099. entity.Property(e => e.Amount).HasColumnType("decimal(18,2)");
  4100. entity.Property(e => e.Contents)
  4101. .HasColumnType("longtext")
  4102. .HasCharSet("utf8")
  4103. .HasCollation("utf8_general_ci");
  4104. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4105. entity.Property(e => e.CreateMan)
  4106. .HasColumnType("varchar(50)")
  4107. .HasCharSet("utf8")
  4108. .HasCollation("utf8_general_ci");
  4109. entity.Property(e => e.ErpCode)
  4110. .HasColumnType("varchar(50)")
  4111. .HasCharSet("utf8")
  4112. .HasCollation("utf8_general_ci");
  4113. entity.Property(e => e.ErpCompany).HasColumnType("int(11)");
  4114. entity.Property(e => e.GoodStatus).HasColumnType("int(11)");
  4115. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4116. entity.Property(e => e.Mobile)
  4117. .HasColumnType("varchar(11)")
  4118. .HasCharSet("utf8")
  4119. .HasCollation("utf8_general_ci");
  4120. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  4121. entity.Property(e => e.Photos)
  4122. .HasColumnType("varchar(500)")
  4123. .HasCharSet("utf8")
  4124. .HasCollation("utf8_general_ci");
  4125. entity.Property(e => e.ProductId)
  4126. .HasColumnType("varchar(50)")
  4127. .HasCharSet("utf8")
  4128. .HasCollation("utf8_general_ci");
  4129. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4130. entity.Property(e => e.Reason).HasColumnType("int(11)");
  4131. entity.Property(e => e.SeoDescription)
  4132. .HasColumnType("varchar(500)")
  4133. .HasCharSet("utf8")
  4134. .HasCollation("utf8_general_ci");
  4135. entity.Property(e => e.SeoKeyword)
  4136. .HasColumnType("varchar(200)")
  4137. .HasCharSet("utf8")
  4138. .HasCollation("utf8_general_ci");
  4139. entity.Property(e => e.SeoTitle)
  4140. .HasColumnType("varchar(100)")
  4141. .HasCharSet("utf8")
  4142. .HasCollation("utf8_general_ci");
  4143. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4144. entity.Property(e => e.Status).HasColumnType("int(11)");
  4145. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4146. entity.Property(e => e.UpdateMan)
  4147. .HasColumnType("varchar(50)")
  4148. .HasCharSet("utf8")
  4149. .HasCollation("utf8_general_ci");
  4150. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4151. entity.Property(e => e.Version).HasColumnType("int(11)");
  4152. });
  4153. modelBuilder.Entity<OrderRefundReason>(entity =>
  4154. {
  4155. entity.Property(e => e.Id).HasColumnType("int(11)");
  4156. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4157. entity.Property(e => e.CreateMan)
  4158. .HasColumnType("varchar(50)")
  4159. .HasCharSet("utf8")
  4160. .HasCollation("utf8_general_ci");
  4161. entity.Property(e => e.Name)
  4162. .HasColumnType("varchar(50)")
  4163. .HasCharSet("utf8")
  4164. .HasCollation("utf8_general_ci");
  4165. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4166. entity.Property(e => e.SeoDescription)
  4167. .HasColumnType("varchar(500)")
  4168. .HasCharSet("utf8")
  4169. .HasCollation("utf8_general_ci");
  4170. entity.Property(e => e.SeoKeyword)
  4171. .HasColumnType("varchar(200)")
  4172. .HasCharSet("utf8")
  4173. .HasCollation("utf8_general_ci");
  4174. entity.Property(e => e.SeoTitle)
  4175. .HasColumnType("varchar(100)")
  4176. .HasCharSet("utf8")
  4177. .HasCollation("utf8_general_ci");
  4178. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4179. entity.Property(e => e.Status).HasColumnType("int(11)");
  4180. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4181. entity.Property(e => e.UpdateMan)
  4182. .HasColumnType("varchar(50)")
  4183. .HasCharSet("utf8")
  4184. .HasCollation("utf8_general_ci");
  4185. entity.Property(e => e.Version).HasColumnType("int(11)");
  4186. });
  4187. modelBuilder.Entity<Orders>(entity =>
  4188. {
  4189. entity.Property(e => e.Id).HasColumnType("int(11)");
  4190. entity.Property(e => e.ActualPay).HasColumnType("decimal(18,2)");
  4191. entity.Property(e => e.Address)
  4192. .HasColumnType("varchar(50)")
  4193. .HasCharSet("utf8")
  4194. .HasCollation("utf8_general_ci");
  4195. entity.Property(e => e.Areas)
  4196. .HasColumnType("varchar(30)")
  4197. .HasCharSet("utf8")
  4198. .HasCollation("utf8_general_ci");
  4199. entity.Property(e => e.AutoConfirmDate).HasColumnType("datetime");
  4200. entity.Property(e => e.BuyCount).HasColumnType("int(11)");
  4201. entity.Property(e => e.ChannelAmount).HasColumnType("decimal(18,2)");
  4202. entity.Property(e => e.ConfirmDate).HasColumnType("datetime");
  4203. entity.Property(e => e.CouponId).HasColumnType("int(11)");
  4204. entity.Property(e => e.CouponMoney).HasColumnType("decimal(18,2)");
  4205. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4206. entity.Property(e => e.CreateMan)
  4207. .HasColumnType("varchar(50)")
  4208. .HasCharSet("utf8")
  4209. .HasCollation("utf8_general_ci");
  4210. entity.Property(e => e.DeliveryType).HasColumnType("int(11)");
  4211. entity.Property(e => e.ErpCode)
  4212. .HasColumnType("varchar(50)")
  4213. .HasCharSet("utf8")
  4214. .HasCollation("utf8_general_ci");
  4215. entity.Property(e => e.ErpMode).HasColumnType("int(11)");
  4216. entity.Property(e => e.ErpName)
  4217. .HasColumnType("varchar(50)")
  4218. .HasCharSet("utf8")
  4219. .HasCollation("utf8_general_ci");
  4220. entity.Property(e => e.ErpPrice).HasColumnType("decimal(18,2)");
  4221. entity.Property(e => e.Integral).HasColumnType("decimal(18,2)");
  4222. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4223. entity.Property(e => e.Mobile)
  4224. .HasColumnType("varchar(11)")
  4225. .HasCharSet("utf8")
  4226. .HasCollation("utf8_general_ci");
  4227. entity.Property(e => e.OrderNo)
  4228. .HasColumnType("varchar(30)")
  4229. .HasCharSet("utf8")
  4230. .HasCollation("utf8_general_ci");
  4231. entity.Property(e => e.PayDate).HasColumnType("datetime");
  4232. entity.Property(e => e.PayMode).HasColumnType("int(11)");
  4233. entity.Property(e => e.PayStatus).HasColumnType("int(11)");
  4234. entity.Property(e => e.PostalCode)
  4235. .HasColumnType("varchar(6)")
  4236. .HasCharSet("utf8")
  4237. .HasCollation("utf8_general_ci");
  4238. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  4239. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4240. entity.Property(e => e.RealName)
  4241. .HasColumnType("varchar(10)")
  4242. .HasCharSet("utf8")
  4243. .HasCollation("utf8_general_ci");
  4244. entity.Property(e => e.RefundActAmount).HasColumnType("decimal(18,2)");
  4245. entity.Property(e => e.RefundFeeAmount).HasColumnType("decimal(18,2)");
  4246. entity.Property(e => e.RefundReason)
  4247. .HasColumnType("varchar(64)")
  4248. .HasCharSet("utf8")
  4249. .HasCollation("utf8_general_ci");
  4250. entity.Property(e => e.RefundStatus).HasColumnType("int(11)");
  4251. entity.Property(e => e.Remark)
  4252. .HasColumnType("varchar(64)")
  4253. .HasCharSet("utf8")
  4254. .HasCollation("utf8_general_ci");
  4255. entity.Property(e => e.ReqData)
  4256. .HasColumnType("varchar(2048)")
  4257. .HasCharSet("utf8")
  4258. .HasCollation("utf8_general_ci");
  4259. entity.Property(e => e.ResData)
  4260. .HasColumnType("varchar(2048)")
  4261. .HasCharSet("utf8")
  4262. .HasCollation("utf8_general_ci");
  4263. entity.Property(e => e.ReturnCode)
  4264. .HasColumnType("varchar(32)")
  4265. .HasCharSet("utf8")
  4266. .HasCollation("utf8_general_ci");
  4267. entity.Property(e => e.ReturnMsg)
  4268. .HasColumnType("varchar(128)")
  4269. .HasCharSet("utf8")
  4270. .HasCollation("utf8_general_ci");
  4271. entity.Property(e => e.SendDate).HasColumnType("datetime");
  4272. entity.Property(e => e.SendStatus).HasColumnType("int(11)");
  4273. entity.Property(e => e.SeoDescription)
  4274. .HasColumnType("varchar(500)")
  4275. .HasCharSet("utf8")
  4276. .HasCollation("utf8_general_ci");
  4277. entity.Property(e => e.SeoKeyword)
  4278. .HasColumnType("varchar(200)")
  4279. .HasCharSet("utf8")
  4280. .HasCollation("utf8_general_ci");
  4281. entity.Property(e => e.SeoTitle)
  4282. .HasColumnType("varchar(100)")
  4283. .HasCharSet("utf8")
  4284. .HasCollation("utf8_general_ci");
  4285. entity.Property(e => e.SnNos)
  4286. .HasColumnType("mediumtext")
  4287. .HasCharSet("utf8")
  4288. .HasCollation("utf8_general_ci");
  4289. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4290. entity.Property(e => e.Status).HasColumnType("int(11)");
  4291. entity.Property(e => e.StoreContact)
  4292. .HasColumnType("varchar(30)")
  4293. .HasCharSet("utf8")
  4294. .HasCollation("utf8_general_ci");
  4295. entity.Property(e => e.StoreContactMobile)
  4296. .HasColumnType("varchar(11)")
  4297. .HasCharSet("utf8")
  4298. .HasCollation("utf8_general_ci");
  4299. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  4300. entity.Property(e => e.StoreType).HasColumnType("int(11)");
  4301. entity.Property(e => e.StoreUserId).HasColumnType("int(11)");
  4302. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  4303. entity.Property(e => e.TotalPrice).HasColumnType("decimal(18,2)");
  4304. entity.Property(e => e.TradeNo)
  4305. .HasColumnType("varchar(50)")
  4306. .HasCharSet("utf8")
  4307. .HasCollation("utf8_general_ci");
  4308. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4309. entity.Property(e => e.UpdateMan)
  4310. .HasColumnType("varchar(50)")
  4311. .HasCharSet("utf8")
  4312. .HasCollation("utf8_general_ci");
  4313. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4314. entity.Property(e => e.UserMessage)
  4315. .HasColumnType("varchar(50)")
  4316. .HasCharSet("utf8")
  4317. .HasCollation("utf8_general_ci");
  4318. entity.Property(e => e.Version).HasColumnType("int(11)");
  4319. });
  4320. modelBuilder.Entity<PageInfo>(entity =>
  4321. {
  4322. entity.Property(e => e.Id).HasColumnType("int(11)");
  4323. entity.Property(e => e.ColId)
  4324. .HasColumnType("varchar(30)")
  4325. .HasCharSet("utf8")
  4326. .HasCollation("utf8_general_ci");
  4327. entity.Property(e => e.Contents)
  4328. .HasColumnType("longtext")
  4329. .HasCharSet("utf8")
  4330. .HasCollation("utf8_general_ci");
  4331. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4332. entity.Property(e => e.CreateMan)
  4333. .HasColumnType("varchar(50)")
  4334. .HasCharSet("utf8")
  4335. .HasCollation("utf8_general_ci");
  4336. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4337. entity.Property(e => e.SeoDescription)
  4338. .HasColumnType("varchar(500)")
  4339. .HasCharSet("utf8")
  4340. .HasCollation("utf8_general_ci");
  4341. entity.Property(e => e.SeoKeyword)
  4342. .HasColumnType("varchar(200)")
  4343. .HasCharSet("utf8")
  4344. .HasCollation("utf8_general_ci");
  4345. entity.Property(e => e.SeoTitle)
  4346. .HasColumnType("varchar(100)")
  4347. .HasCharSet("utf8")
  4348. .HasCollation("utf8_general_ci");
  4349. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4350. entity.Property(e => e.Status).HasColumnType("int(11)");
  4351. entity.Property(e => e.Title)
  4352. .HasColumnType("varchar(200)")
  4353. .HasCharSet("utf8")
  4354. .HasCollation("utf8_general_ci");
  4355. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4356. entity.Property(e => e.UpdateMan)
  4357. .HasColumnType("varchar(50)")
  4358. .HasCharSet("utf8")
  4359. .HasCollation("utf8_general_ci");
  4360. entity.Property(e => e.Version).HasColumnType("int(11)");
  4361. });
  4362. modelBuilder.Entity<PageUpdateInfo>(entity =>
  4363. {
  4364. entity.Property(e => e.Id).HasColumnType("int(11)");
  4365. entity.Property(e => e.BgColor)
  4366. .HasColumnType("varchar(6)")
  4367. .HasCharSet("utf8")
  4368. .HasCollation("utf8_general_ci");
  4369. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4370. entity.Property(e => e.CreateMan)
  4371. .HasColumnType("varchar(50)")
  4372. .HasCharSet("utf8")
  4373. .HasCollation("utf8_general_ci");
  4374. entity.Property(e => e.GotoPages)
  4375. .HasColumnType("varchar(500)")
  4376. .HasCharSet("utf8")
  4377. .HasCollation("utf8_general_ci");
  4378. entity.Property(e => e.IsScrollBar)
  4379. .HasColumnType("bit(1)")
  4380. .HasDefaultValueSql("b'0'");
  4381. entity.Property(e => e.IsSkid)
  4382. .HasColumnType("bit(1)")
  4383. .HasDefaultValueSql("b'0'");
  4384. entity.Property(e => e.LeftAction1)
  4385. .HasColumnType("longtext")
  4386. .HasCharSet("utf8")
  4387. .HasCollation("utf8_general_ci");
  4388. entity.Property(e => e.LeftAction2)
  4389. .HasColumnType("longtext")
  4390. .HasCharSet("utf8")
  4391. .HasCollation("utf8_general_ci");
  4392. entity.Property(e => e.LeftBtn1)
  4393. .HasColumnType("varchar(100)")
  4394. .HasCharSet("utf8")
  4395. .HasCollation("utf8_general_ci");
  4396. entity.Property(e => e.LeftBtn2)
  4397. .HasColumnType("varchar(50)")
  4398. .HasCharSet("utf8")
  4399. .HasCollation("utf8_general_ci");
  4400. entity.Property(e => e.ModulePath)
  4401. .HasColumnType("varchar(200)")
  4402. .HasCharSet("utf8")
  4403. .HasCollation("utf8_general_ci");
  4404. entity.Property(e => e.ModuleVersion).HasColumnType("int(11)");
  4405. entity.Property(e => e.MustUpdate)
  4406. .HasColumnType("bit(1)")
  4407. .HasDefaultValueSql("b'0'");
  4408. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4409. entity.Property(e => e.RightAction1)
  4410. .HasColumnType("longtext")
  4411. .HasCharSet("utf8")
  4412. .HasCollation("utf8_general_ci");
  4413. entity.Property(e => e.RightAction2)
  4414. .HasColumnType("longtext")
  4415. .HasCharSet("utf8")
  4416. .HasCollation("utf8_general_ci");
  4417. entity.Property(e => e.RightBtn1)
  4418. .HasColumnType("varchar(50)")
  4419. .HasCharSet("utf8")
  4420. .HasCollation("utf8_general_ci");
  4421. entity.Property(e => e.RightBtn2)
  4422. .HasColumnType("varchar(50)")
  4423. .HasCharSet("utf8")
  4424. .HasCollation("utf8_general_ci");
  4425. entity.Property(e => e.SeoDescription)
  4426. .HasColumnType("varchar(500)")
  4427. .HasCharSet("utf8")
  4428. .HasCollation("utf8_general_ci");
  4429. entity.Property(e => e.SeoKeyword)
  4430. .HasColumnType("varchar(200)")
  4431. .HasCharSet("utf8")
  4432. .HasCollation("utf8_general_ci");
  4433. entity.Property(e => e.SeoTitle)
  4434. .HasColumnType("varchar(100)")
  4435. .HasCharSet("utf8")
  4436. .HasCollation("utf8_general_ci");
  4437. entity.Property(e => e.ShowTitle)
  4438. .HasColumnType("bit(1)")
  4439. .HasDefaultValueSql("b'0'");
  4440. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4441. entity.Property(e => e.Status).HasColumnType("int(11)");
  4442. entity.Property(e => e.StatusBarStyle)
  4443. .HasColumnType("varchar(10)")
  4444. .HasCharSet("utf8")
  4445. .HasCollation("utf8_general_ci");
  4446. entity.Property(e => e.TextColor)
  4447. .HasColumnType("varchar(6)")
  4448. .HasCharSet("utf8")
  4449. .HasCollation("utf8_general_ci");
  4450. entity.Property(e => e.Title)
  4451. .HasColumnType("varchar(50)")
  4452. .HasCharSet("utf8")
  4453. .HasCollation("utf8_general_ci");
  4454. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4455. entity.Property(e => e.UpdateMan)
  4456. .HasColumnType("varchar(50)")
  4457. .HasCharSet("utf8")
  4458. .HasCollation("utf8_general_ci");
  4459. entity.Property(e => e.Version).HasColumnType("int(11)");
  4460. });
  4461. modelBuilder.Entity<PosMachines>(entity =>
  4462. {
  4463. entity.Property(e => e.Id).HasColumnType("int(11)");
  4464. entity.Property(e => e.ActivationState).HasColumnType("int(11)");
  4465. entity.Property(e => e.ActivationTime).HasColumnType("datetime");
  4466. entity.Property(e => e.ActivityList)
  4467. .HasColumnType("varchar(200)")
  4468. .HasCharSet("utf8")
  4469. .HasCollation("utf8_general_ci");
  4470. entity.Property(e => e.BatchNo)
  4471. .HasColumnType("varchar(32)")
  4472. .HasCharSet("utf8")
  4473. .HasCollation("utf8_general_ci");
  4474. entity.Property(e => e.BindMerchantId).HasColumnType("int(11)");
  4475. entity.Property(e => e.BindingState).HasColumnType("int(11)");
  4476. entity.Property(e => e.BindingTime).HasColumnType("datetime");
  4477. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  4478. entity.Property(e => e.BuyUserId).HasColumnType("int(11)");
  4479. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4480. entity.Property(e => e.CreateMan)
  4481. .HasColumnType("varchar(50)")
  4482. .HasCharSet("utf8")
  4483. .HasCollation("utf8_general_ci");
  4484. entity.Property(e => e.CreditTrade).HasColumnType("decimal(18,2)");
  4485. entity.Property(e => e.DebitCardTrade).HasColumnType("decimal(18,2)");
  4486. entity.Property(e => e.Detail)
  4487. .HasColumnType("longtext")
  4488. .HasCharSet("utf8")
  4489. .HasCollation("utf8_general_ci");
  4490. entity.Property(e => e.DeviceKind)
  4491. .HasColumnType("varchar(32)")
  4492. .HasCharSet("utf8")
  4493. .HasCollation("utf8_general_ci");
  4494. entity.Property(e => e.DeviceName)
  4495. .HasColumnType("varchar(32)")
  4496. .HasCharSet("utf8")
  4497. .HasCollation("utf8_general_ci");
  4498. entity.Property(e => e.DeviceType)
  4499. .HasColumnType("varchar(20)")
  4500. .HasCharSet("utf8")
  4501. .HasCollation("utf8_general_ci");
  4502. entity.Property(e => e.IsPurchase)
  4503. .HasColumnType("bit(1)")
  4504. .HasDefaultValueSql("b'0'");
  4505. entity.Property(e => e.IsVip)
  4506. .HasColumnType("bit(1)")
  4507. .HasDefaultValueSql("b'0'");
  4508. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  4509. entity.Property(e => e.PosSn)
  4510. .HasColumnType("varchar(50)")
  4511. .HasCharSet("utf8")
  4512. .HasCollation("utf8_general_ci");
  4513. entity.Property(e => e.PosSnType).HasColumnType("int(11)");
  4514. entity.Property(e => e.PrizeParams)
  4515. .HasColumnType("varchar(200)")
  4516. .HasCharSet("utf8")
  4517. .HasCollation("utf8_general_ci");
  4518. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4519. entity.Property(e => e.RecycBackCount).HasColumnType("int(11)");
  4520. entity.Property(e => e.RecycEndDate).HasColumnType("datetime");
  4521. entity.Property(e => e.ScanQrTrade).HasColumnType("decimal(18,2)");
  4522. entity.Property(e => e.SeoDescription)
  4523. .HasColumnType("varchar(500)")
  4524. .HasCharSet("utf8")
  4525. .HasCollation("utf8_general_ci");
  4526. entity.Property(e => e.SeoKeyword)
  4527. .HasColumnType("varchar(200)")
  4528. .HasCharSet("utf8")
  4529. .HasCollation("utf8_general_ci");
  4530. entity.Property(e => e.SeoTitle)
  4531. .HasColumnType("varchar(100)")
  4532. .HasCharSet("utf8")
  4533. .HasCollation("utf8_general_ci");
  4534. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4535. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  4536. entity.Property(e => e.Status).HasColumnType("int(11)");
  4537. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  4538. entity.Property(e => e.TransferTime).HasColumnType("datetime");
  4539. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4540. entity.Property(e => e.UpdateMan)
  4541. .HasColumnType("varchar(50)")
  4542. .HasCharSet("utf8")
  4543. .HasCollation("utf8_general_ci");
  4544. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4545. entity.Property(e => e.UserNav)
  4546. .HasColumnType("longtext")
  4547. .HasCharSet("utf8")
  4548. .HasCollation("utf8_general_ci");
  4549. entity.Property(e => e.Version).HasColumnType("int(11)");
  4550. });
  4551. modelBuilder.Entity<ProductComment>(entity =>
  4552. {
  4553. entity.Property(e => e.Id).HasColumnType("int(11)");
  4554. entity.Property(e => e.AgreeCount).HasColumnType("int(11)");
  4555. entity.Property(e => e.BackCount).HasColumnType("int(11)");
  4556. entity.Property(e => e.Contents)
  4557. .HasColumnType("varchar(200)")
  4558. .HasCharSet("utf8")
  4559. .HasCollation("utf8_general_ci");
  4560. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4561. entity.Property(e => e.CreateMan)
  4562. .HasColumnType("varchar(50)")
  4563. .HasCharSet("utf8")
  4564. .HasCollation("utf8_general_ci");
  4565. entity.Property(e => e.HasPhoto)
  4566. .HasColumnType("bit(1)")
  4567. .HasDefaultValueSql("b'0'");
  4568. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4569. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  4570. entity.Property(e => e.PhotoList)
  4571. .HasColumnType("mediumtext")
  4572. .HasCharSet("utf8")
  4573. .HasCollation("utf8_general_ci");
  4574. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  4575. entity.Property(e => e.ProductNormId).HasColumnType("int(11)");
  4576. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4577. entity.Property(e => e.SeoDescription)
  4578. .HasColumnType("varchar(500)")
  4579. .HasCharSet("utf8")
  4580. .HasCollation("utf8_general_ci");
  4581. entity.Property(e => e.SeoKeyword)
  4582. .HasColumnType("varchar(200)")
  4583. .HasCharSet("utf8")
  4584. .HasCollation("utf8_general_ci");
  4585. entity.Property(e => e.SeoTitle)
  4586. .HasColumnType("varchar(100)")
  4587. .HasCharSet("utf8")
  4588. .HasCollation("utf8_general_ci");
  4589. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4590. entity.Property(e => e.StarNum).HasColumnType("int(11)");
  4591. entity.Property(e => e.Status).HasColumnType("int(11)");
  4592. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4593. entity.Property(e => e.UpdateMan)
  4594. .HasColumnType("varchar(50)")
  4595. .HasCharSet("utf8")
  4596. .HasCollation("utf8_general_ci");
  4597. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4598. entity.Property(e => e.Version).HasColumnType("int(11)");
  4599. });
  4600. modelBuilder.Entity<ProductCommentAgree>(entity =>
  4601. {
  4602. entity.Property(e => e.Id).HasColumnType("int(11)");
  4603. entity.Property(e => e.ProductCommentId).HasColumnType("int(11)");
  4604. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4605. });
  4606. modelBuilder.Entity<ProductFareAreas>(entity =>
  4607. {
  4608. entity.Property(e => e.Id).HasColumnType("int(11)");
  4609. entity.Property(e => e.Areas)
  4610. .HasColumnType("longtext")
  4611. .HasCharSet("utf8")
  4612. .HasCollation("utf8_general_ci");
  4613. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4614. entity.Property(e => e.CreateMan)
  4615. .HasColumnType("varchar(50)")
  4616. .HasCharSet("utf8")
  4617. .HasCollation("utf8_general_ci");
  4618. entity.Property(e => e.FirstAmount).HasColumnType("decimal(18,2)");
  4619. entity.Property(e => e.FirstFee).HasColumnType("decimal(18,2)");
  4620. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4621. entity.Property(e => e.MoreAmount).HasColumnType("decimal(18,2)");
  4622. entity.Property(e => e.MoreFee).HasColumnType("decimal(18,2)");
  4623. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4624. entity.Property(e => e.SeoDescription)
  4625. .HasColumnType("varchar(500)")
  4626. .HasCharSet("utf8")
  4627. .HasCollation("utf8_general_ci");
  4628. entity.Property(e => e.SeoKeyword)
  4629. .HasColumnType("varchar(200)")
  4630. .HasCharSet("utf8")
  4631. .HasCollation("utf8_general_ci");
  4632. entity.Property(e => e.SeoTitle)
  4633. .HasColumnType("varchar(100)")
  4634. .HasCharSet("utf8")
  4635. .HasCollation("utf8_general_ci");
  4636. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4637. entity.Property(e => e.Status).HasColumnType("int(11)");
  4638. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  4639. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4640. entity.Property(e => e.UpdateMan)
  4641. .HasColumnType("varchar(50)")
  4642. .HasCharSet("utf8")
  4643. .HasCollation("utf8_general_ci");
  4644. entity.Property(e => e.Version).HasColumnType("int(11)");
  4645. });
  4646. modelBuilder.Entity<ProductFareTemp>(entity =>
  4647. {
  4648. entity.Property(e => e.Id).HasColumnType("int(11)");
  4649. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4650. entity.Property(e => e.CreateMan)
  4651. .HasColumnType("varchar(50)")
  4652. .HasCharSet("utf8")
  4653. .HasCollation("utf8_general_ci");
  4654. entity.Property(e => e.FirstAmount).HasColumnType("decimal(18,2)");
  4655. entity.Property(e => e.FirstFee).HasColumnType("decimal(18,2)");
  4656. entity.Property(e => e.IsFree)
  4657. .HasColumnType("bit(1)")
  4658. .HasDefaultValueSql("b'0'");
  4659. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4660. entity.Property(e => e.MeterMode).HasColumnType("int(11)");
  4661. entity.Property(e => e.MoreAmount).HasColumnType("decimal(18,2)");
  4662. entity.Property(e => e.MoreFee).HasColumnType("decimal(18,2)");
  4663. entity.Property(e => e.Name)
  4664. .HasColumnType("varchar(50)")
  4665. .HasCharSet("utf8")
  4666. .HasCollation("utf8_general_ci");
  4667. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4668. entity.Property(e => e.SendAddress)
  4669. .HasColumnType("varchar(50)")
  4670. .HasCharSet("utf8")
  4671. .HasCollation("utf8_general_ci");
  4672. entity.Property(e => e.SendAreas)
  4673. .HasColumnType("varchar(30)")
  4674. .HasCharSet("utf8")
  4675. .HasCollation("utf8_general_ci");
  4676. entity.Property(e => e.SendDate).HasColumnType("int(11)");
  4677. entity.Property(e => e.SeoDescription)
  4678. .HasColumnType("varchar(500)")
  4679. .HasCharSet("utf8")
  4680. .HasCollation("utf8_general_ci");
  4681. entity.Property(e => e.SeoKeyword)
  4682. .HasColumnType("varchar(200)")
  4683. .HasCharSet("utf8")
  4684. .HasCollation("utf8_general_ci");
  4685. entity.Property(e => e.SeoTitle)
  4686. .HasColumnType("varchar(100)")
  4687. .HasCharSet("utf8")
  4688. .HasCollation("utf8_general_ci");
  4689. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4690. entity.Property(e => e.Status).HasColumnType("int(11)");
  4691. entity.Property(e => e.TransportMode).HasColumnType("int(11)");
  4692. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4693. entity.Property(e => e.UpdateMan)
  4694. .HasColumnType("varchar(50)")
  4695. .HasCharSet("utf8")
  4696. .HasCollation("utf8_general_ci");
  4697. entity.Property(e => e.Version).HasColumnType("int(11)");
  4698. });
  4699. modelBuilder.Entity<ProductKeys>(entity =>
  4700. {
  4701. entity.HasKey(e => e.Name)
  4702. .HasName("PRIMARY");
  4703. entity.Property(e => e.Name)
  4704. .HasColumnType("varchar(10)")
  4705. .HasCharSet("utf8")
  4706. .HasCollation("utf8_general_ci");
  4707. entity.Property(e => e.ColIds)
  4708. .HasColumnType("longtext")
  4709. .HasCharSet("utf8")
  4710. .HasCollation("utf8_general_ci");
  4711. entity.Property(e => e.ProductIds)
  4712. .HasColumnType("longtext")
  4713. .HasCharSet("utf8")
  4714. .HasCollation("utf8_general_ci");
  4715. });
  4716. modelBuilder.Entity<ProductNorm>(entity =>
  4717. {
  4718. entity.Property(e => e.Id).HasColumnType("int(11)");
  4719. entity.Property(e => e.BuyCount).HasColumnType("int(11)");
  4720. entity.Property(e => e.Code)
  4721. .HasColumnType("varchar(50)")
  4722. .HasCharSet("utf8")
  4723. .HasCollation("utf8_general_ci");
  4724. entity.Property(e => e.ColName)
  4725. .HasColumnType("varchar(50)")
  4726. .HasCharSet("utf8")
  4727. .HasCollation("utf8_general_ci");
  4728. entity.Property(e => e.CostPrice).HasColumnType("decimal(18,2)");
  4729. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4730. entity.Property(e => e.CreateMan)
  4731. .HasColumnType("varchar(50)")
  4732. .HasCharSet("utf8")
  4733. .HasCollation("utf8_general_ci");
  4734. entity.Property(e => e.IdList)
  4735. .HasColumnType("varchar(50)")
  4736. .HasCharSet("utf8")
  4737. .HasCollation("utf8_general_ci");
  4738. entity.Property(e => e.Integral).HasColumnType("decimal(18,2)");
  4739. entity.Property(e => e.LimitCount).HasColumnType("int(11)");
  4740. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4741. entity.Property(e => e.Price).HasColumnType("decimal(18,2)");
  4742. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  4743. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4744. entity.Property(e => e.SeoDescription)
  4745. .HasColumnType("varchar(500)")
  4746. .HasCharSet("utf8")
  4747. .HasCollation("utf8_general_ci");
  4748. entity.Property(e => e.SeoKeyword)
  4749. .HasColumnType("varchar(200)")
  4750. .HasCharSet("utf8")
  4751. .HasCollation("utf8_general_ci");
  4752. entity.Property(e => e.SeoTitle)
  4753. .HasColumnType("varchar(100)")
  4754. .HasCharSet("utf8")
  4755. .HasCollation("utf8_general_ci");
  4756. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4757. entity.Property(e => e.Status).HasColumnType("int(11)");
  4758. entity.Property(e => e.Stock).HasColumnType("int(11)");
  4759. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4760. entity.Property(e => e.UpdateMan)
  4761. .HasColumnType("varchar(50)")
  4762. .HasCharSet("utf8")
  4763. .HasCollation("utf8_general_ci");
  4764. entity.Property(e => e.UserIntegral).HasColumnType("decimal(18,2)");
  4765. entity.Property(e => e.UserPrice).HasColumnType("decimal(18,2)");
  4766. entity.Property(e => e.Version).HasColumnType("int(11)");
  4767. });
  4768. modelBuilder.Entity<ProductNormItem>(entity =>
  4769. {
  4770. entity.Property(e => e.Id).HasColumnType("int(11)");
  4771. entity.Property(e => e.ColName)
  4772. .HasColumnType("varchar(50)")
  4773. .HasCharSet("utf8")
  4774. .HasCollation("utf8_general_ci");
  4775. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4776. entity.Property(e => e.CreateMan)
  4777. .HasColumnType("varchar(50)")
  4778. .HasCharSet("utf8")
  4779. .HasCollation("utf8_general_ci");
  4780. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4781. entity.Property(e => e.ParentId).HasColumnType("int(11)");
  4782. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  4783. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4784. entity.Property(e => e.SeoDescription)
  4785. .HasColumnType("varchar(500)")
  4786. .HasCharSet("utf8")
  4787. .HasCollation("utf8_general_ci");
  4788. entity.Property(e => e.SeoKeyword)
  4789. .HasColumnType("varchar(200)")
  4790. .HasCharSet("utf8")
  4791. .HasCollation("utf8_general_ci");
  4792. entity.Property(e => e.SeoTitle)
  4793. .HasColumnType("varchar(100)")
  4794. .HasCharSet("utf8")
  4795. .HasCollation("utf8_general_ci");
  4796. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4797. entity.Property(e => e.Status).HasColumnType("int(11)");
  4798. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4799. entity.Property(e => e.UpdateMan)
  4800. .HasColumnType("varchar(50)")
  4801. .HasCharSet("utf8")
  4802. .HasCollation("utf8_general_ci");
  4803. entity.Property(e => e.Version).HasColumnType("int(11)");
  4804. });
  4805. modelBuilder.Entity<ProductNormTemp>(entity =>
  4806. {
  4807. entity.Property(e => e.Id).HasColumnType("int(11)");
  4808. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4809. entity.Property(e => e.CreateMan)
  4810. .HasColumnType("varchar(50)")
  4811. .HasCharSet("utf8")
  4812. .HasCollation("utf8_general_ci");
  4813. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4814. entity.Property(e => e.Name)
  4815. .HasColumnType("varchar(50)")
  4816. .HasCharSet("utf8")
  4817. .HasCollation("utf8_general_ci");
  4818. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4819. entity.Property(e => e.SeoDescription)
  4820. .HasColumnType("varchar(500)")
  4821. .HasCharSet("utf8")
  4822. .HasCollation("utf8_general_ci");
  4823. entity.Property(e => e.SeoKeyword)
  4824. .HasColumnType("varchar(200)")
  4825. .HasCharSet("utf8")
  4826. .HasCollation("utf8_general_ci");
  4827. entity.Property(e => e.SeoTitle)
  4828. .HasColumnType("varchar(100)")
  4829. .HasCharSet("utf8")
  4830. .HasCollation("utf8_general_ci");
  4831. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4832. entity.Property(e => e.Status).HasColumnType("int(11)");
  4833. entity.Property(e => e.TempJsonData)
  4834. .HasColumnType("longtext")
  4835. .HasCharSet("utf8")
  4836. .HasCollation("utf8_general_ci");
  4837. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4838. entity.Property(e => e.UpdateMan)
  4839. .HasColumnType("varchar(50)")
  4840. .HasCharSet("utf8")
  4841. .HasCollation("utf8_general_ci");
  4842. entity.Property(e => e.Version).HasColumnType("int(11)");
  4843. });
  4844. modelBuilder.Entity<Products>(entity =>
  4845. {
  4846. entity.Property(e => e.Id).HasColumnType("int(11)");
  4847. entity.Property(e => e.BuyCount).HasColumnType("int(11)");
  4848. entity.Property(e => e.ColId)
  4849. .HasColumnType("varchar(30)")
  4850. .HasCharSet("utf8")
  4851. .HasCollation("utf8_general_ci");
  4852. entity.Property(e => e.CommentCount).HasColumnType("int(11)");
  4853. entity.Property(e => e.Contents)
  4854. .HasColumnType("longtext")
  4855. .HasCharSet("utf8")
  4856. .HasCollation("utf8_general_ci");
  4857. entity.Property(e => e.CostPrice).HasColumnType("decimal(18,2)");
  4858. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4859. entity.Property(e => e.CreateMan)
  4860. .HasColumnType("varchar(50)")
  4861. .HasCharSet("utf8")
  4862. .HasCollation("utf8_general_ci");
  4863. entity.Property(e => e.DetailPicPath)
  4864. .HasColumnType("varchar(500)")
  4865. .HasCharSet("utf8")
  4866. .HasCollation("utf8_general_ci");
  4867. entity.Property(e => e.Details)
  4868. .HasColumnType("longtext")
  4869. .HasCharSet("utf8")
  4870. .HasCollation("utf8_general_ci");
  4871. entity.Property(e => e.EndDate).HasColumnType("datetime");
  4872. entity.Property(e => e.FareTemplateId).HasColumnType("int(11)");
  4873. entity.Property(e => e.GoodPercent).HasColumnType("decimal(18,2)");
  4874. entity.Property(e => e.Integral).HasColumnType("decimal(18,2)");
  4875. entity.Property(e => e.IsLimit)
  4876. .HasColumnType("bit(1)")
  4877. .HasDefaultValueSql("b'0'");
  4878. entity.Property(e => e.IsRecommend)
  4879. .HasColumnType("bit(1)")
  4880. .HasDefaultValueSql("b'0'");
  4881. entity.Property(e => e.IsRecommend2)
  4882. .HasColumnType("bit(1)")
  4883. .HasDefaultValueSql("b'0'");
  4884. entity.Property(e => e.IsRecommend3)
  4885. .HasColumnType("bit(1)")
  4886. .HasDefaultValueSql("b'0'");
  4887. entity.Property(e => e.KeyWord)
  4888. .HasColumnType("varchar(500)")
  4889. .HasCharSet("utf8")
  4890. .HasCollation("utf8_general_ci");
  4891. entity.Property(e => e.LimitCount).HasColumnType("int(11)");
  4892. entity.Property(e => e.LinkUrl)
  4893. .HasColumnType("varchar(500)")
  4894. .HasCharSet("utf8")
  4895. .HasCollation("utf8_general_ci");
  4896. entity.Property(e => e.ListPicPath)
  4897. .HasColumnType("varchar(200)")
  4898. .HasCharSet("utf8")
  4899. .HasCollation("utf8_general_ci");
  4900. entity.Property(e => e.MemberPrice).HasColumnType("decimal(18,2)");
  4901. entity.Property(e => e.MerchantClassId).HasColumnType("int(11)");
  4902. entity.Property(e => e.MerchantColId)
  4903. .HasColumnType("varchar(30)")
  4904. .HasCharSet("utf8")
  4905. .HasCollation("utf8_general_ci");
  4906. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4907. entity.Property(e => e.MonthSale).HasColumnType("int(11)");
  4908. entity.Property(e => e.NormIds)
  4909. .HasColumnType("varchar(100)")
  4910. .HasCharSet("utf8")
  4911. .HasCollation("utf8_general_ci");
  4912. entity.Property(e => e.NormJson)
  4913. .HasColumnType("longtext")
  4914. .HasCharSet("utf8")
  4915. .HasCollation("utf8_general_ci");
  4916. entity.Property(e => e.Price).HasColumnType("decimal(18,2)");
  4917. entity.Property(e => e.ProductCode)
  4918. .HasColumnType("varchar(30)")
  4919. .HasCharSet("utf8")
  4920. .HasCollation("utf8_general_ci");
  4921. entity.Property(e => e.ProductName)
  4922. .HasColumnType("varchar(100)")
  4923. .HasCharSet("utf8")
  4924. .HasCollation("utf8_general_ci");
  4925. entity.Property(e => e.PublishDate).HasColumnType("datetime");
  4926. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4927. entity.Property(e => e.SeoDescription)
  4928. .HasColumnType("varchar(500)")
  4929. .HasCharSet("utf8")
  4930. .HasCollation("utf8_general_ci");
  4931. entity.Property(e => e.SeoKeyword)
  4932. .HasColumnType("varchar(200)")
  4933. .HasCharSet("utf8")
  4934. .HasCollation("utf8_general_ci");
  4935. entity.Property(e => e.SeoTitle)
  4936. .HasColumnType("varchar(100)")
  4937. .HasCharSet("utf8")
  4938. .HasCollation("utf8_general_ci");
  4939. entity.Property(e => e.ShareDetail)
  4940. .HasColumnType("varchar(200)")
  4941. .HasCharSet("utf8")
  4942. .HasCollation("utf8_general_ci");
  4943. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4944. entity.Property(e => e.SourcePrice).HasColumnType("decimal(18,2)");
  4945. entity.Property(e => e.StartDate).HasColumnType("datetime");
  4946. entity.Property(e => e.Status).HasColumnType("int(11)");
  4947. entity.Property(e => e.Stock).HasColumnType("int(11)");
  4948. entity.Property(e => e.Title)
  4949. .HasColumnType("varchar(50)")
  4950. .HasCharSet("utf8")
  4951. .HasCollation("utf8_general_ci");
  4952. entity.Property(e => e.Title2)
  4953. .HasColumnType("varchar(50)")
  4954. .HasCharSet("utf8")
  4955. .HasCollation("utf8_general_ci");
  4956. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4957. entity.Property(e => e.UpdateMan)
  4958. .HasColumnType("varchar(50)")
  4959. .HasCharSet("utf8")
  4960. .HasCollation("utf8_general_ci");
  4961. entity.Property(e => e.UserIntegral).HasColumnType("decimal(18,2)");
  4962. entity.Property(e => e.Version).HasColumnType("int(11)");
  4963. });
  4964. modelBuilder.Entity<ProfitObjectActivations>(entity =>
  4965. {
  4966. entity.Property(e => e.Id).HasColumnType("int(11)");
  4967. entity.Property(e => e.Code)
  4968. .HasColumnType("varchar(32)")
  4969. .HasCharSet("utf8")
  4970. .HasCollation("utf8_general_ci");
  4971. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4972. entity.Property(e => e.CreateMan)
  4973. .HasColumnType("varchar(50)")
  4974. .HasCharSet("utf8")
  4975. .HasCollation("utf8_general_ci");
  4976. entity.Property(e => e.EndDate).HasColumnType("datetime");
  4977. entity.Property(e => e.ExpiredNumber).HasColumnType("decimal(18,6)");
  4978. entity.Property(e => e.LimitCustomerDate).HasColumnType("datetime");
  4979. entity.Property(e => e.LimitDateKind).HasColumnType("int(11)");
  4980. entity.Property(e => e.LimitDateVal).HasColumnType("int(11)");
  4981. entity.Property(e => e.MachineCount).HasColumnType("int(11)");
  4982. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  4983. entity.Property(e => e.ProfitNumber).HasColumnType("decimal(18,6)");
  4984. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4985. entity.Property(e => e.SeoDescription)
  4986. .HasColumnType("varchar(500)")
  4987. .HasCharSet("utf8")
  4988. .HasCollation("utf8_general_ci");
  4989. entity.Property(e => e.SeoKeyword)
  4990. .HasColumnType("varchar(200)")
  4991. .HasCharSet("utf8")
  4992. .HasCollation("utf8_general_ci");
  4993. entity.Property(e => e.SeoTitle)
  4994. .HasColumnType("varchar(100)")
  4995. .HasCharSet("utf8")
  4996. .HasCollation("utf8_general_ci");
  4997. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4998. entity.Property(e => e.StartDate).HasColumnType("datetime");
  4999. entity.Property(e => e.Status).HasColumnType("int(11)");
  5000. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5001. entity.Property(e => e.UpdateMan)
  5002. .HasColumnType("varchar(50)")
  5003. .HasCharSet("utf8")
  5004. .HasCollation("utf8_general_ci");
  5005. entity.Property(e => e.Version).HasColumnType("int(11)");
  5006. });
  5007. modelBuilder.Entity<ProfitObjectContinueFloors>(entity =>
  5008. {
  5009. entity.Property(e => e.Id).HasColumnType("int(11)");
  5010. entity.Property(e => e.AddProfitVal).HasColumnType("decimal(18,6)");
  5011. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5012. entity.Property(e => e.CreateMan)
  5013. .HasColumnType("varchar(50)")
  5014. .HasCharSet("utf8")
  5015. .HasCollation("utf8_general_ci");
  5016. entity.Property(e => e.FloorNumber).HasColumnType("int(11)");
  5017. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5018. entity.Property(e => e.Percents).HasColumnType("decimal(18,6)");
  5019. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5020. entity.Property(e => e.SeoDescription)
  5021. .HasColumnType("varchar(500)")
  5022. .HasCharSet("utf8")
  5023. .HasCollation("utf8_general_ci");
  5024. entity.Property(e => e.SeoKeyword)
  5025. .HasColumnType("varchar(200)")
  5026. .HasCharSet("utf8")
  5027. .HasCollation("utf8_general_ci");
  5028. entity.Property(e => e.SeoTitle)
  5029. .HasColumnType("varchar(100)")
  5030. .HasCharSet("utf8")
  5031. .HasCollation("utf8_general_ci");
  5032. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5033. entity.Property(e => e.Status).HasColumnType("int(11)");
  5034. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5035. entity.Property(e => e.UpdateMan)
  5036. .HasColumnType("varchar(50)")
  5037. .HasCharSet("utf8")
  5038. .HasCollation("utf8_general_ci");
  5039. entity.Property(e => e.Version).HasColumnType("int(11)");
  5040. });
  5041. modelBuilder.Entity<ProfitObjectFloors>(entity =>
  5042. {
  5043. entity.Property(e => e.Id).HasColumnType("int(11)");
  5044. entity.Property(e => e.AddProfitVal).HasColumnType("decimal(18,6)");
  5045. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5046. entity.Property(e => e.CreateMan)
  5047. .HasColumnType("varchar(50)")
  5048. .HasCharSet("utf8")
  5049. .HasCollation("utf8_general_ci");
  5050. entity.Property(e => e.FloorDiff)
  5051. .HasColumnType("bit(1)")
  5052. .HasDefaultValueSql("b'0'");
  5053. entity.Property(e => e.FloorNumber).HasColumnType("int(11)");
  5054. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5055. entity.Property(e => e.Percents).HasColumnType("decimal(18,6)");
  5056. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5057. entity.Property(e => e.SeoDescription)
  5058. .HasColumnType("varchar(500)")
  5059. .HasCharSet("utf8")
  5060. .HasCollation("utf8_general_ci");
  5061. entity.Property(e => e.SeoKeyword)
  5062. .HasColumnType("varchar(200)")
  5063. .HasCharSet("utf8")
  5064. .HasCollation("utf8_general_ci");
  5065. entity.Property(e => e.SeoTitle)
  5066. .HasColumnType("varchar(100)")
  5067. .HasCharSet("utf8")
  5068. .HasCollation("utf8_general_ci");
  5069. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5070. entity.Property(e => e.Status).HasColumnType("int(11)");
  5071. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5072. entity.Property(e => e.UpdateMan)
  5073. .HasColumnType("varchar(50)")
  5074. .HasCharSet("utf8")
  5075. .HasCollation("utf8_general_ci");
  5076. entity.Property(e => e.Version).HasColumnType("int(11)");
  5077. });
  5078. modelBuilder.Entity<ProfitObjectLevelKinds>(entity =>
  5079. {
  5080. entity.Property(e => e.Id).HasColumnType("int(11)");
  5081. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5082. entity.Property(e => e.CreateMan)
  5083. .HasColumnType("varchar(50)")
  5084. .HasCharSet("utf8")
  5085. .HasCollation("utf8_general_ci");
  5086. entity.Property(e => e.Name)
  5087. .HasColumnType("varchar(50)")
  5088. .HasCharSet("utf8")
  5089. .HasCollation("utf8_general_ci");
  5090. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5091. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5092. entity.Property(e => e.SeoDescription)
  5093. .HasColumnType("varchar(500)")
  5094. .HasCharSet("utf8")
  5095. .HasCollation("utf8_general_ci");
  5096. entity.Property(e => e.SeoKeyword)
  5097. .HasColumnType("varchar(200)")
  5098. .HasCharSet("utf8")
  5099. .HasCollation("utf8_general_ci");
  5100. entity.Property(e => e.SeoTitle)
  5101. .HasColumnType("varchar(100)")
  5102. .HasCharSet("utf8")
  5103. .HasCollation("utf8_general_ci");
  5104. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5105. entity.Property(e => e.Status).HasColumnType("int(11)");
  5106. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5107. entity.Property(e => e.UpdateMan)
  5108. .HasColumnType("varchar(50)")
  5109. .HasCharSet("utf8")
  5110. .HasCollation("utf8_general_ci");
  5111. entity.Property(e => e.Version).HasColumnType("int(11)");
  5112. });
  5113. modelBuilder.Entity<ProfitObjectLevels>(entity =>
  5114. {
  5115. entity.Property(e => e.Id).HasColumnType("int(11)");
  5116. entity.Property(e => e.AddProfitVal).HasColumnType("decimal(18,6)");
  5117. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5118. entity.Property(e => e.CreateMan)
  5119. .HasColumnType("varchar(50)")
  5120. .HasCharSet("utf8")
  5121. .HasCollation("utf8_general_ci");
  5122. entity.Property(e => e.DebitAddProfitVal).HasColumnType("decimal(18,2)");
  5123. entity.Property(e => e.DebitPercents).HasColumnType("decimal(18,2)");
  5124. entity.Property(e => e.KindId).HasColumnType("int(11)");
  5125. entity.Property(e => e.LevelDiff)
  5126. .HasColumnType("bit(1)")
  5127. .HasDefaultValueSql("b'0'");
  5128. entity.Property(e => e.LevelNumber).HasColumnType("int(11)");
  5129. entity.Property(e => e.Name)
  5130. .HasColumnType("varchar(50)")
  5131. .HasCharSet("utf8")
  5132. .HasCollation("utf8_general_ci");
  5133. entity.Property(e => e.Percents).HasColumnType("decimal(18,6)");
  5134. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5135. entity.Property(e => e.SeoDescription)
  5136. .HasColumnType("varchar(500)")
  5137. .HasCharSet("utf8")
  5138. .HasCollation("utf8_general_ci");
  5139. entity.Property(e => e.SeoKeyword)
  5140. .HasColumnType("varchar(200)")
  5141. .HasCharSet("utf8")
  5142. .HasCollation("utf8_general_ci");
  5143. entity.Property(e => e.SeoTitle)
  5144. .HasColumnType("varchar(100)")
  5145. .HasCharSet("utf8")
  5146. .HasCollation("utf8_general_ci");
  5147. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5148. entity.Property(e => e.Status).HasColumnType("int(11)");
  5149. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5150. entity.Property(e => e.UpdateMan)
  5151. .HasColumnType("varchar(50)")
  5152. .HasCharSet("utf8")
  5153. .HasCollation("utf8_general_ci");
  5154. entity.Property(e => e.Version).HasColumnType("int(11)");
  5155. });
  5156. modelBuilder.Entity<ProfitObjects>(entity =>
  5157. {
  5158. entity.Property(e => e.Id).HasColumnType("int(11)");
  5159. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5160. entity.Property(e => e.CreateMan)
  5161. .HasColumnType("varchar(50)")
  5162. .HasCharSet("utf8")
  5163. .HasCollation("utf8_general_ci");
  5164. entity.Property(e => e.EndDate).HasColumnType("datetime");
  5165. entity.Property(e => e.MaxFloor).HasColumnType("int(11)");
  5166. entity.Property(e => e.MaxLevel).HasColumnType("int(11)");
  5167. entity.Property(e => e.MaxLevelContinue)
  5168. .HasColumnType("bit(1)")
  5169. .HasDefaultValueSql("b'0'");
  5170. entity.Property(e => e.MinProfitVal).HasColumnType("decimal(18,5)");
  5171. entity.Property(e => e.Name)
  5172. .HasColumnType("varchar(50)")
  5173. .HasCharSet("utf8")
  5174. .HasCollation("utf8_general_ci");
  5175. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5176. entity.Property(e => e.SeoDescription)
  5177. .HasColumnType("varchar(500)")
  5178. .HasCharSet("utf8")
  5179. .HasCollation("utf8_general_ci");
  5180. entity.Property(e => e.SeoKeyword)
  5181. .HasColumnType("varchar(200)")
  5182. .HasCharSet("utf8")
  5183. .HasCollation("utf8_general_ci");
  5184. entity.Property(e => e.SeoTitle)
  5185. .HasColumnType("varchar(100)")
  5186. .HasCharSet("utf8")
  5187. .HasCollation("utf8_general_ci");
  5188. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5189. entity.Property(e => e.StartDate).HasColumnType("datetime");
  5190. entity.Property(e => e.Status).HasColumnType("int(11)");
  5191. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5192. entity.Property(e => e.UpdateMan)
  5193. .HasColumnType("varchar(50)")
  5194. .HasCharSet("utf8")
  5195. .HasCollation("utf8_general_ci");
  5196. entity.Property(e => e.Version).HasColumnType("int(11)");
  5197. });
  5198. modelBuilder.Entity<ProfitObjectsActiveCheck>(entity =>
  5199. {
  5200. entity.HasKey(e => e.CheckData)
  5201. .HasName("PRIMARY");
  5202. entity.Property(e => e.CheckData)
  5203. .HasColumnType("varchar(100)")
  5204. .HasCharSet("utf8")
  5205. .HasCollation("utf8_general_ci");
  5206. });
  5207. modelBuilder.Entity<ProfitObjectsActiveParams>(entity =>
  5208. {
  5209. entity.Property(e => e.Id).HasColumnType("int(11)");
  5210. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5211. entity.Property(e => e.CreateMan)
  5212. .HasColumnType("varchar(50)")
  5213. .HasCharSet("utf8")
  5214. .HasCollation("utf8_general_ci");
  5215. entity.Property(e => e.Name)
  5216. .HasColumnType("varchar(50)")
  5217. .HasCharSet("utf8")
  5218. .HasCollation("utf8_general_ci");
  5219. entity.Property(e => e.ProfitObjectsActiveId).HasColumnType("int(11)");
  5220. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5221. entity.Property(e => e.Remark)
  5222. .HasColumnType("varchar(200)")
  5223. .HasCharSet("utf8")
  5224. .HasCollation("utf8_general_ci");
  5225. entity.Property(e => e.SeoDescription)
  5226. .HasColumnType("varchar(500)")
  5227. .HasCharSet("utf8")
  5228. .HasCollation("utf8_general_ci");
  5229. entity.Property(e => e.SeoKeyword)
  5230. .HasColumnType("varchar(200)")
  5231. .HasCharSet("utf8")
  5232. .HasCollation("utf8_general_ci");
  5233. entity.Property(e => e.SeoTitle)
  5234. .HasColumnType("varchar(100)")
  5235. .HasCharSet("utf8")
  5236. .HasCollation("utf8_general_ci");
  5237. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5238. entity.Property(e => e.Status).HasColumnType("int(11)");
  5239. entity.Property(e => e.TextValue)
  5240. .HasColumnType("varchar(20)")
  5241. .HasCharSet("utf8")
  5242. .HasCollation("utf8_general_ci");
  5243. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5244. entity.Property(e => e.UpdateMan)
  5245. .HasColumnType("varchar(50)")
  5246. .HasCharSet("utf8")
  5247. .HasCollation("utf8_general_ci");
  5248. entity.Property(e => e.Version).HasColumnType("int(11)");
  5249. });
  5250. modelBuilder.Entity<ProfitObjectsActives>(entity =>
  5251. {
  5252. entity.Property(e => e.Id).HasColumnType("int(11)");
  5253. entity.Property(e => e.CardType).HasColumnType("int(11)");
  5254. entity.Property(e => e.Code)
  5255. .HasColumnType("varchar(50)")
  5256. .HasCharSet("utf8")
  5257. .HasCollation("utf8_general_ci");
  5258. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5259. entity.Property(e => e.CreateMan)
  5260. .HasColumnType("varchar(50)")
  5261. .HasCharSet("utf8")
  5262. .HasCollation("utf8_general_ci");
  5263. entity.Property(e => e.EndDate).HasColumnType("datetime");
  5264. entity.Property(e => e.FinishNumber).HasColumnType("decimal(18,6)");
  5265. entity.Property(e => e.LimitCustomerDate).HasColumnType("datetime");
  5266. entity.Property(e => e.LimitDateKind).HasColumnType("int(11)");
  5267. entity.Property(e => e.LimitDateVal).HasColumnType("int(11)");
  5268. entity.Property(e => e.MachineCount).HasColumnType("int(11)");
  5269. entity.Property(e => e.Name)
  5270. .HasColumnType("varchar(50)")
  5271. .HasCharSet("utf8")
  5272. .HasCollation("utf8_general_ci");
  5273. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5274. entity.Property(e => e.ProfitNumber).HasColumnType("decimal(18,6)");
  5275. entity.Property(e => e.ProfitNumber2).HasColumnType("decimal(18,2)");
  5276. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5277. entity.Property(e => e.SeoDescription)
  5278. .HasColumnType("varchar(500)")
  5279. .HasCharSet("utf8")
  5280. .HasCollation("utf8_general_ci");
  5281. entity.Property(e => e.SeoKeyword)
  5282. .HasColumnType("varchar(200)")
  5283. .HasCharSet("utf8")
  5284. .HasCollation("utf8_general_ci");
  5285. entity.Property(e => e.SeoTitle)
  5286. .HasColumnType("varchar(100)")
  5287. .HasCharSet("utf8")
  5288. .HasCollation("utf8_general_ci");
  5289. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5290. entity.Property(e => e.StartDate).HasColumnType("datetime");
  5291. entity.Property(e => e.Status).HasColumnType("int(11)");
  5292. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5293. entity.Property(e => e.UpdateMan)
  5294. .HasColumnType("varchar(50)")
  5295. .HasCharSet("utf8")
  5296. .HasCollation("utf8_general_ci");
  5297. entity.Property(e => e.Version).HasColumnType("int(11)");
  5298. });
  5299. modelBuilder.Entity<ProfitObjectsActivesForId>(entity =>
  5300. {
  5301. entity.HasKey(e => e.Name)
  5302. .HasName("PRIMARY");
  5303. entity.Property(e => e.Name)
  5304. .HasColumnType("varchar(50)")
  5305. .HasCharSet("utf8")
  5306. .HasCollation("utf8_general_ci");
  5307. entity.Property(e => e.ActivityId).HasColumnType("int(11)");
  5308. });
  5309. modelBuilder.Entity<ProfitObjectsRule>(entity =>
  5310. {
  5311. entity.Property(e => e.Id).HasColumnType("int(11)");
  5312. entity.Property(e => e.Code)
  5313. .HasColumnType("varchar(50)")
  5314. .HasCharSet("utf8")
  5315. .HasCollation("utf8_general_ci");
  5316. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5317. entity.Property(e => e.CreateMan)
  5318. .HasColumnType("varchar(50)")
  5319. .HasCharSet("utf8")
  5320. .HasCollation("utf8_general_ci");
  5321. entity.Property(e => e.EndDate).HasColumnType("datetime");
  5322. entity.Property(e => e.Name)
  5323. .HasColumnType("varchar(50)")
  5324. .HasCharSet("utf8")
  5325. .HasCollation("utf8_general_ci");
  5326. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5327. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5328. entity.Property(e => e.SeoDescription)
  5329. .HasColumnType("varchar(500)")
  5330. .HasCharSet("utf8")
  5331. .HasCollation("utf8_general_ci");
  5332. entity.Property(e => e.SeoKeyword)
  5333. .HasColumnType("varchar(200)")
  5334. .HasCharSet("utf8")
  5335. .HasCollation("utf8_general_ci");
  5336. entity.Property(e => e.SeoTitle)
  5337. .HasColumnType("varchar(100)")
  5338. .HasCharSet("utf8")
  5339. .HasCollation("utf8_general_ci");
  5340. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5341. entity.Property(e => e.StartDate).HasColumnType("datetime");
  5342. entity.Property(e => e.Status).HasColumnType("int(11)");
  5343. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5344. entity.Property(e => e.UpdateMan)
  5345. .HasColumnType("varchar(50)")
  5346. .HasCharSet("utf8")
  5347. .HasCollation("utf8_general_ci");
  5348. entity.Property(e => e.Version).HasColumnType("int(11)");
  5349. });
  5350. modelBuilder.Entity<ProfitObjectsRuleDetails>(entity =>
  5351. {
  5352. entity.Property(e => e.Id).HasColumnType("int(11)");
  5353. entity.Property(e => e.Code)
  5354. .HasColumnType("varchar(50)")
  5355. .HasCharSet("utf8")
  5356. .HasCollation("utf8_general_ci");
  5357. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5358. entity.Property(e => e.CreateMan)
  5359. .HasColumnType("varchar(50)")
  5360. .HasCharSet("utf8")
  5361. .HasCollation("utf8_general_ci");
  5362. entity.Property(e => e.DataValue)
  5363. .HasColumnType("varchar(50)")
  5364. .HasCharSet("utf8")
  5365. .HasCollation("utf8_general_ci");
  5366. entity.Property(e => e.Name)
  5367. .HasColumnType("varchar(50)")
  5368. .HasCharSet("utf8")
  5369. .HasCollation("utf8_general_ci");
  5370. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5371. entity.Property(e => e.RuleId).HasColumnType("int(11)");
  5372. entity.Property(e => e.SeoDescription)
  5373. .HasColumnType("varchar(500)")
  5374. .HasCharSet("utf8")
  5375. .HasCollation("utf8_general_ci");
  5376. entity.Property(e => e.SeoKeyword)
  5377. .HasColumnType("varchar(200)")
  5378. .HasCharSet("utf8")
  5379. .HasCollation("utf8_general_ci");
  5380. entity.Property(e => e.SeoTitle)
  5381. .HasColumnType("varchar(100)")
  5382. .HasCharSet("utf8")
  5383. .HasCollation("utf8_general_ci");
  5384. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5385. entity.Property(e => e.Status).HasColumnType("int(11)");
  5386. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5387. entity.Property(e => e.UpdateMan)
  5388. .HasColumnType("varchar(50)")
  5389. .HasCharSet("utf8")
  5390. .HasCollation("utf8_general_ci");
  5391. entity.Property(e => e.Version).HasColumnType("int(11)");
  5392. });
  5393. modelBuilder.Entity<ProfitReceiveRecord>(entity =>
  5394. {
  5395. entity.Property(e => e.Id).HasColumnType("int(11)");
  5396. entity.Property(e => e.Account)
  5397. .HasColumnType("varchar(32)")
  5398. .HasCharSet("utf8")
  5399. .HasCollation("utf8_general_ci");
  5400. entity.Property(e => e.Amount).HasColumnType("decimal(18,2)");
  5401. entity.Property(e => e.AppId)
  5402. .HasColumnType("varchar(32)")
  5403. .HasCharSet("utf8")
  5404. .HasCollation("utf8_general_ci");
  5405. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5406. entity.Property(e => e.CreateMan)
  5407. .HasColumnType("varchar(50)")
  5408. .HasCharSet("utf8")
  5409. .HasCollation("utf8_general_ci");
  5410. entity.Property(e => e.CustomRelation)
  5411. .HasColumnType("varchar(10)")
  5412. .HasCharSet("utf8")
  5413. .HasCollation("utf8_general_ci");
  5414. entity.Property(e => e.Description)
  5415. .HasColumnType("varchar(50)")
  5416. .HasCharSet("utf8")
  5417. .HasCollation("utf8_general_ci");
  5418. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5419. entity.Property(e => e.Name)
  5420. .HasColumnType("varchar(32)")
  5421. .HasCharSet("utf8")
  5422. .HasCollation("utf8_general_ci");
  5423. entity.Property(e => e.OrderId)
  5424. .HasColumnType("varchar(32)")
  5425. .HasCharSet("utf8")
  5426. .HasCollation("utf8_general_ci");
  5427. entity.Property(e => e.OutOrderNo)
  5428. .HasColumnType("varchar(32)")
  5429. .HasCharSet("utf8")
  5430. .HasCollation("utf8_general_ci");
  5431. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5432. entity.Property(e => e.RelationType)
  5433. .HasColumnType("varchar(30)")
  5434. .HasCharSet("utf8")
  5435. .HasCollation("utf8_general_ci");
  5436. entity.Property(e => e.SeoDescription)
  5437. .HasColumnType("varchar(500)")
  5438. .HasCharSet("utf8")
  5439. .HasCollation("utf8_general_ci");
  5440. entity.Property(e => e.SeoKeyword)
  5441. .HasColumnType("varchar(200)")
  5442. .HasCharSet("utf8")
  5443. .HasCollation("utf8_general_ci");
  5444. entity.Property(e => e.SeoTitle)
  5445. .HasColumnType("varchar(100)")
  5446. .HasCharSet("utf8")
  5447. .HasCollation("utf8_general_ci");
  5448. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5449. entity.Property(e => e.State)
  5450. .HasColumnType("varchar(20)")
  5451. .HasCharSet("utf8")
  5452. .HasCollation("utf8_general_ci");
  5453. entity.Property(e => e.Status).HasColumnType("int(11)");
  5454. entity.Property(e => e.SubAppId)
  5455. .HasColumnType("varchar(32)")
  5456. .HasCharSet("utf8")
  5457. .HasCollation("utf8_general_ci");
  5458. entity.Property(e => e.SubMchid)
  5459. .HasColumnType("varchar(32)")
  5460. .HasCharSet("utf8")
  5461. .HasCollation("utf8_general_ci");
  5462. entity.Property(e => e.TransactionId)
  5463. .HasColumnType("varchar(32)")
  5464. .HasCharSet("utf8")
  5465. .HasCollation("utf8_general_ci");
  5466. entity.Property(e => e.Type)
  5467. .HasColumnType("varchar(30)")
  5468. .HasCharSet("utf8")
  5469. .HasCollation("utf8_general_ci");
  5470. entity.Property(e => e.UnfreezeUnsplit)
  5471. .HasColumnType("bit(1)")
  5472. .HasDefaultValueSql("b'0'");
  5473. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5474. entity.Property(e => e.UpdateMan)
  5475. .HasColumnType("varchar(50)")
  5476. .HasCharSet("utf8")
  5477. .HasCollation("utf8_general_ci");
  5478. entity.Property(e => e.Version).HasColumnType("int(11)");
  5479. });
  5480. modelBuilder.Entity<ProfitReceives>(entity =>
  5481. {
  5482. entity.Property(e => e.Id).HasColumnType("int(11)");
  5483. entity.Property(e => e.Account)
  5484. .HasColumnType("varchar(32)")
  5485. .HasCharSet("utf8")
  5486. .HasCollation("utf8_general_ci");
  5487. entity.Property(e => e.AppId)
  5488. .HasColumnType("varchar(32)")
  5489. .HasCharSet("utf8")
  5490. .HasCollation("utf8_general_ci");
  5491. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5492. entity.Property(e => e.CreateMan)
  5493. .HasColumnType("varchar(50)")
  5494. .HasCharSet("utf8")
  5495. .HasCollation("utf8_general_ci");
  5496. entity.Property(e => e.CustomRelation)
  5497. .HasColumnType("varchar(10)")
  5498. .HasCharSet("utf8")
  5499. .HasCollation("utf8_general_ci");
  5500. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5501. entity.Property(e => e.Name)
  5502. .HasColumnType("varchar(32)")
  5503. .HasCharSet("utf8")
  5504. .HasCollation("utf8_general_ci");
  5505. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5506. entity.Property(e => e.RelationType)
  5507. .HasColumnType("varchar(30)")
  5508. .HasCharSet("utf8")
  5509. .HasCollation("utf8_general_ci");
  5510. entity.Property(e => e.SeoDescription)
  5511. .HasColumnType("varchar(500)")
  5512. .HasCharSet("utf8")
  5513. .HasCollation("utf8_general_ci");
  5514. entity.Property(e => e.SeoKeyword)
  5515. .HasColumnType("varchar(200)")
  5516. .HasCharSet("utf8")
  5517. .HasCollation("utf8_general_ci");
  5518. entity.Property(e => e.SeoTitle)
  5519. .HasColumnType("varchar(100)")
  5520. .HasCharSet("utf8")
  5521. .HasCollation("utf8_general_ci");
  5522. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5523. entity.Property(e => e.Status).HasColumnType("int(11)");
  5524. entity.Property(e => e.SubAppId)
  5525. .HasColumnType("varchar(32)")
  5526. .HasCharSet("utf8")
  5527. .HasCollation("utf8_general_ci");
  5528. entity.Property(e => e.SubMchid)
  5529. .HasColumnType("varchar(32)")
  5530. .HasCharSet("utf8")
  5531. .HasCollation("utf8_general_ci");
  5532. entity.Property(e => e.Type)
  5533. .HasColumnType("varchar(30)")
  5534. .HasCharSet("utf8")
  5535. .HasCollation("utf8_general_ci");
  5536. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5537. entity.Property(e => e.UpdateMan)
  5538. .HasColumnType("varchar(50)")
  5539. .HasCharSet("utf8")
  5540. .HasCollation("utf8_general_ci");
  5541. entity.Property(e => e.Version).HasColumnType("int(11)");
  5542. });
  5543. modelBuilder.Entity<ProfitRecord>(entity =>
  5544. {
  5545. entity.Property(e => e.Id).HasColumnType("int(11)");
  5546. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  5547. entity.Property(e => e.CapFlag).HasColumnType("int(11)");
  5548. entity.Property(e => e.ClearDate).HasColumnType("datetime");
  5549. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5550. entity.Property(e => e.CreateMan)
  5551. .HasColumnType("varchar(50)")
  5552. .HasCharSet("utf8")
  5553. .HasCollation("utf8_general_ci");
  5554. entity.Property(e => e.DirectFlag)
  5555. .HasColumnType("bit(1)")
  5556. .HasDefaultValueSql("b'0'");
  5557. entity.Property(e => e.HelpMonthCount).HasColumnType("int(11)");
  5558. entity.Property(e => e.MerBuddyType).HasColumnType("int(11)");
  5559. entity.Property(e => e.MerHelpFlag)
  5560. .HasColumnType("bit(1)")
  5561. .HasDefaultValueSql("b'0'");
  5562. entity.Property(e => e.MerNo)
  5563. .HasColumnType("varchar(32)")
  5564. .HasCharSet("utf8")
  5565. .HasCollation("utf8_general_ci");
  5566. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5567. entity.Property(e => e.ParentNav)
  5568. .HasColumnType("varchar(1000)")
  5569. .HasCharSet("utf8")
  5570. .HasCollation("utf8_general_ci");
  5571. entity.Property(e => e.ProfitAmount).HasColumnType("decimal(18,2)");
  5572. entity.Property(e => e.QrPayFlag).HasColumnType("int(11)");
  5573. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5574. entity.Property(e => e.Remark)
  5575. .HasColumnType("varchar(64)")
  5576. .HasCharSet("utf8")
  5577. .HasCollation("utf8_general_ci");
  5578. entity.Property(e => e.SeoDescription)
  5579. .HasColumnType("varchar(500)")
  5580. .HasCharSet("utf8")
  5581. .HasCollation("utf8_general_ci");
  5582. entity.Property(e => e.SeoKeyword)
  5583. .HasColumnType("varchar(200)")
  5584. .HasCharSet("utf8")
  5585. .HasCollation("utf8_general_ci");
  5586. entity.Property(e => e.SeoTitle)
  5587. .HasColumnType("varchar(100)")
  5588. .HasCharSet("utf8")
  5589. .HasCollation("utf8_general_ci");
  5590. entity.Property(e => e.SnNo)
  5591. .HasColumnType("varchar(32)")
  5592. .HasCharSet("utf8")
  5593. .HasCollation("utf8_general_ci");
  5594. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5595. entity.Property(e => e.Status).HasColumnType("int(11)");
  5596. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  5597. entity.Property(e => e.TradeId).HasColumnType("int(11)");
  5598. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5599. entity.Property(e => e.UpdateMan)
  5600. .HasColumnType("varchar(50)")
  5601. .HasCharSet("utf8")
  5602. .HasCollation("utf8_general_ci");
  5603. entity.Property(e => e.UserId).HasColumnType("int(11)");
  5604. entity.Property(e => e.Version).HasColumnType("int(11)");
  5605. });
  5606. modelBuilder.Entity<ProfitRewardRecord>(entity =>
  5607. {
  5608. entity.Property(e => e.Id).HasColumnType("int(11)");
  5609. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  5610. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  5611. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5612. entity.Property(e => e.CreateMan)
  5613. .HasColumnType("varchar(50)")
  5614. .HasCharSet("utf8")
  5615. .HasCollation("utf8_general_ci");
  5616. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  5617. entity.Property(e => e.CreditTradeProfit).HasColumnType("decimal(18,2)");
  5618. entity.Property(e => e.DebitCapSingleReward).HasColumnType("decimal(18,2)");
  5619. entity.Property(e => e.DebitCapTradeAmt).HasColumnType("decimal(18,2)");
  5620. entity.Property(e => e.DebitCapTradeNum).HasColumnType("int(11)");
  5621. entity.Property(e => e.DebitNonCapTradeAmt).HasColumnType("decimal(18,2)");
  5622. entity.Property(e => e.DebitNonTradeCapProfit).HasColumnType("decimal(18,2)");
  5623. entity.Property(e => e.DebitTradeCapProfit).HasColumnType("decimal(18,2)");
  5624. entity.Property(e => e.HelpCreditAddOrSubRate).HasColumnType("decimal(18,2)");
  5625. entity.Property(e => e.HelpCreditProfitRate).HasColumnType("decimal(18,2)");
  5626. entity.Property(e => e.HelpCreditProfitStandardRate).HasColumnType("decimal(18,2)");
  5627. entity.Property(e => e.HelpCreditTradeAmt).HasColumnType("decimal(18,2)");
  5628. entity.Property(e => e.HelpCreditTradeProfit).HasColumnType("decimal(18,2)");
  5629. entity.Property(e => e.HelpDebitAddOrSubRate).HasColumnType("decimal(18,2)");
  5630. entity.Property(e => e.HelpDebitNonCapTradeAmt).HasColumnType("decimal(18,2)");
  5631. entity.Property(e => e.HelpDebitNonTradeCapProfit).HasColumnType("decimal(18,2)");
  5632. entity.Property(e => e.HelpDebitProfitRate).HasColumnType("decimal(18,2)");
  5633. entity.Property(e => e.HelpDebitProfitStandardRate).HasColumnType("decimal(18,2)");
  5634. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5635. entity.Property(e => e.NonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  5636. entity.Property(e => e.NonQrCreditTradeProfit).HasColumnType("decimal(18,2)");
  5637. entity.Property(e => e.NonQrDebitNonTradeCapProfit).HasColumnType("decimal(18,2)");
  5638. entity.Property(e => e.NonQrDebitNotCapTradeAmt).HasColumnType("decimal(18,2)");
  5639. entity.Property(e => e.NotHelpCreditAddOrSubRate).HasColumnType("decimal(18,2)");
  5640. entity.Property(e => e.NotHelpCreditProfitRate).HasColumnType("decimal(18,2)");
  5641. entity.Property(e => e.NotHelpCreditProfitStandardRate).HasColumnType("decimal(18,2)");
  5642. entity.Property(e => e.NotHelpCreditTradeAmt).HasColumnType("decimal(18,2)");
  5643. entity.Property(e => e.NotHelpCreditTradeProfit).HasColumnType("decimal(18,2)");
  5644. entity.Property(e => e.NotHelpDebitAddOrSubRate).HasColumnType("decimal(18,2)");
  5645. entity.Property(e => e.NotHelpDebitNonCapTradeAmt).HasColumnType("decimal(18,2)");
  5646. entity.Property(e => e.NotHelpDebitNonTradeCapProfit).HasColumnType("decimal(18,2)");
  5647. entity.Property(e => e.NotHelpDebitProfitRate).HasColumnType("decimal(18,2)");
  5648. entity.Property(e => e.NotHelpDebitProfitStandardRate).HasColumnType("decimal(18,2)");
  5649. entity.Property(e => e.OtherCreditTradeAmt).HasColumnType("decimal(18,2)");
  5650. entity.Property(e => e.OtherDebitNotCapTradeAmt).HasColumnType("decimal(18,2)");
  5651. entity.Property(e => e.OtherTradeAmt).HasColumnType("decimal(18,2)");
  5652. entity.Property(e => e.ProfitType).HasColumnType("int(11)");
  5653. entity.Property(e => e.QrCreditAddOrSubRate).HasColumnType("decimal(18,2)");
  5654. entity.Property(e => e.QrCreditProfitRate).HasColumnType("decimal(18,2)");
  5655. entity.Property(e => e.QrCreditProfitStandardRate).HasColumnType("decimal(18,2)");
  5656. entity.Property(e => e.QrCreditTradeAmt).HasColumnType("decimal(18,2)");
  5657. entity.Property(e => e.QrCreditTradeProfit).HasColumnType("decimal(18,2)");
  5658. entity.Property(e => e.QrDebitAddOrSubRate).HasColumnType("decimal(18,2)");
  5659. entity.Property(e => e.QrDebitNonTradeCapProfit).HasColumnType("decimal(18,2)");
  5660. entity.Property(e => e.QrDebitNotCapTradeAmt).HasColumnType("decimal(18,2)");
  5661. entity.Property(e => e.QrDebitProfitRate).HasColumnType("decimal(18,2)");
  5662. entity.Property(e => e.QrDebitProfitStandardRate).HasColumnType("decimal(18,2)");
  5663. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5664. entity.Property(e => e.RecordNo)
  5665. .HasColumnType("varchar(32)")
  5666. .HasCharSet("utf8")
  5667. .HasCollation("utf8_general_ci");
  5668. entity.Property(e => e.Remark)
  5669. .HasColumnType("varchar(64)")
  5670. .HasCharSet("utf8")
  5671. .HasCollation("utf8_general_ci");
  5672. entity.Property(e => e.SeoDescription)
  5673. .HasColumnType("varchar(500)")
  5674. .HasCharSet("utf8")
  5675. .HasCollation("utf8_general_ci");
  5676. entity.Property(e => e.SeoKeyword)
  5677. .HasColumnType("varchar(200)")
  5678. .HasCharSet("utf8")
  5679. .HasCollation("utf8_general_ci");
  5680. entity.Property(e => e.SeoTitle)
  5681. .HasColumnType("varchar(100)")
  5682. .HasCharSet("utf8")
  5683. .HasCollation("utf8_general_ci");
  5684. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5685. entity.Property(e => e.Status).HasColumnType("int(11)");
  5686. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  5687. entity.Property(e => e.TradeAmt).HasColumnType("decimal(18,2)");
  5688. entity.Property(e => e.TradeMonth)
  5689. .HasColumnType("varchar(6)")
  5690. .HasCharSet("utf8")
  5691. .HasCollation("utf8_general_ci");
  5692. entity.Property(e => e.TradeProfit).HasColumnType("decimal(18,2)");
  5693. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5694. entity.Property(e => e.UpdateMan)
  5695. .HasColumnType("varchar(50)")
  5696. .HasCharSet("utf8")
  5697. .HasCollation("utf8_general_ci");
  5698. entity.Property(e => e.UserId).HasColumnType("int(11)");
  5699. entity.Property(e => e.Version).HasColumnType("int(11)");
  5700. });
  5701. modelBuilder.Entity<ProfitSubsidyDetail>(entity =>
  5702. {
  5703. entity.Property(e => e.Id).HasColumnType("int(11)");
  5704. entity.Property(e => e.BelongUserId).HasColumnType("int(11)");
  5705. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  5706. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5707. entity.Property(e => e.CreateMan)
  5708. .HasColumnType("varchar(50)")
  5709. .HasCharSet("utf8")
  5710. .HasCollation("utf8_general_ci");
  5711. entity.Property(e => e.CreditProfitRate).HasColumnType("decimal(18,2)");
  5712. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  5713. entity.Property(e => e.MerHelpFlag)
  5714. .HasColumnType("bit(1)")
  5715. .HasDefaultValueSql("b'0'");
  5716. entity.Property(e => e.MerNo)
  5717. .HasColumnType("varchar(32)")
  5718. .HasCharSet("utf8")
  5719. .HasCollation("utf8_general_ci");
  5720. entity.Property(e => e.MerRegTime).HasColumnType("datetime");
  5721. entity.Property(e => e.MerStandardDate).HasColumnType("datetime");
  5722. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5723. entity.Property(e => e.NonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  5724. entity.Property(e => e.ProductName)
  5725. .HasColumnType("varchar(16)")
  5726. .HasCharSet("utf8")
  5727. .HasCollation("utf8_general_ci");
  5728. entity.Property(e => e.QrCreditTradeAmt).HasColumnType("decimal(18,2)");
  5729. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5730. entity.Property(e => e.RecordNo)
  5731. .HasColumnType("varchar(32)")
  5732. .HasCharSet("utf8")
  5733. .HasCollation("utf8_general_ci");
  5734. entity.Property(e => e.Remark)
  5735. .HasColumnType("varchar(64)")
  5736. .HasCharSet("utf8")
  5737. .HasCollation("utf8_general_ci");
  5738. entity.Property(e => e.SeoDescription)
  5739. .HasColumnType("varchar(500)")
  5740. .HasCharSet("utf8")
  5741. .HasCollation("utf8_general_ci");
  5742. entity.Property(e => e.SeoKeyword)
  5743. .HasColumnType("varchar(200)")
  5744. .HasCharSet("utf8")
  5745. .HasCollation("utf8_general_ci");
  5746. entity.Property(e => e.SeoTitle)
  5747. .HasColumnType("varchar(100)")
  5748. .HasCharSet("utf8")
  5749. .HasCollation("utf8_general_ci");
  5750. entity.Property(e => e.SnNo)
  5751. .HasColumnType("varchar(32)")
  5752. .HasCharSet("utf8")
  5753. .HasCollation("utf8_general_ci");
  5754. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5755. entity.Property(e => e.Status).HasColumnType("int(11)");
  5756. entity.Property(e => e.SubsidyProfit).HasColumnType("decimal(18,2)");
  5757. entity.Property(e => e.SubsidyProfitRate).HasColumnType("decimal(18,2)");
  5758. entity.Property(e => e.SubsidyType).HasColumnType("int(11)");
  5759. entity.Property(e => e.SubsidyUserId).HasColumnType("int(11)");
  5760. entity.Property(e => e.TradeMonth)
  5761. .HasColumnType("varchar(6)")
  5762. .HasCharSet("utf8")
  5763. .HasCollation("utf8_general_ci");
  5764. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5765. entity.Property(e => e.UpdateMan)
  5766. .HasColumnType("varchar(50)")
  5767. .HasCharSet("utf8")
  5768. .HasCollation("utf8_general_ci");
  5769. entity.Property(e => e.Version).HasColumnType("int(11)");
  5770. });
  5771. modelBuilder.Entity<PublicAccountSet>(entity =>
  5772. {
  5773. entity.Property(e => e.Id).HasColumnType("int(11)");
  5774. entity.Property(e => e.AlipayAppId)
  5775. .HasColumnType("varchar(50)")
  5776. .HasCharSet("utf8")
  5777. .HasCollation("utf8_general_ci");
  5778. entity.Property(e => e.AlipayPartnerId)
  5779. .HasColumnType("varchar(50)")
  5780. .HasCharSet("utf8")
  5781. .HasCollation("utf8_general_ci");
  5782. entity.Property(e => e.AlipayPrivateKey)
  5783. .HasColumnType("mediumtext")
  5784. .HasCharSet("utf8")
  5785. .HasCollation("utf8_general_ci");
  5786. entity.Property(e => e.AlipayPublicKey)
  5787. .HasColumnType("mediumtext")
  5788. .HasCharSet("utf8")
  5789. .HasCollation("utf8_general_ci");
  5790. entity.Property(e => e.AliyunAccessKeyId)
  5791. .HasColumnType("varchar(50)")
  5792. .HasCharSet("utf8")
  5793. .HasCollation("utf8_general_ci");
  5794. entity.Property(e => e.AliyunAccessKeySecret)
  5795. .HasColumnType("varchar(50)")
  5796. .HasCharSet("utf8")
  5797. .HasCollation("utf8_general_ci");
  5798. entity.Property(e => e.AliyunAndroidActivity)
  5799. .HasColumnType("varchar(100)")
  5800. .HasCharSet("utf8")
  5801. .HasCollation("utf8_general_ci");
  5802. entity.Property(e => e.AliyunAndroidNotifyTitle)
  5803. .HasColumnType("varchar(20)")
  5804. .HasCharSet("utf8")
  5805. .HasCollation("utf8_general_ci");
  5806. entity.Property(e => e.AliyunPushAndroidAppId)
  5807. .HasColumnType("varchar(50)")
  5808. .HasCharSet("utf8")
  5809. .HasCollation("utf8_general_ci");
  5810. entity.Property(e => e.AliyunPushAndroidAppSecret)
  5811. .HasColumnType("varchar(50)")
  5812. .HasCharSet("utf8")
  5813. .HasCollation("utf8_general_ci");
  5814. entity.Property(e => e.AliyunPushIosAppId)
  5815. .HasColumnType("varchar(500)")
  5816. .HasCharSet("utf8")
  5817. .HasCollation("utf8_general_ci");
  5818. entity.Property(e => e.AliyunPushIosAppSecret)
  5819. .HasColumnType("varchar(50)")
  5820. .HasCharSet("utf8")
  5821. .HasCollation("utf8_general_ci");
  5822. entity.Property(e => e.AliyunRegionId)
  5823. .HasColumnType("varchar(30)")
  5824. .HasCharSet("utf8")
  5825. .HasCollation("utf8_general_ci");
  5826. entity.Property(e => e.ErpApiUrl)
  5827. .HasColumnType("varchar(200)")
  5828. .HasCharSet("utf8")
  5829. .HasCollation("utf8_general_ci");
  5830. entity.Property(e => e.ErpAppCode)
  5831. .HasColumnType("varchar(100)")
  5832. .HasCharSet("utf8")
  5833. .HasCollation("utf8_general_ci");
  5834. entity.Property(e => e.MeiQiaAppKey)
  5835. .HasColumnType("varchar(50)")
  5836. .HasCharSet("utf8")
  5837. .HasCollation("utf8_general_ci");
  5838. entity.Property(e => e.MobAppKey)
  5839. .HasColumnType("varchar(50)")
  5840. .HasCharSet("utf8")
  5841. .HasCollation("utf8_general_ci");
  5842. entity.Property(e => e.MobAppSecret)
  5843. .HasColumnType("varchar(50)")
  5844. .HasCharSet("utf8")
  5845. .HasCollation("utf8_general_ci");
  5846. entity.Property(e => e.QqAndroidAppId)
  5847. .HasColumnType("varchar(50)")
  5848. .HasCharSet("utf8")
  5849. .HasCollation("utf8_general_ci");
  5850. entity.Property(e => e.QqAndroidAppKey)
  5851. .HasColumnType("varchar(50)")
  5852. .HasCharSet("utf8")
  5853. .HasCollation("utf8_general_ci");
  5854. entity.Property(e => e.QqIosAppId)
  5855. .HasColumnType("varchar(50)")
  5856. .HasCharSet("utf8")
  5857. .HasCollation("utf8_general_ci");
  5858. entity.Property(e => e.QqIosAppKey)
  5859. .HasColumnType("varchar(50)")
  5860. .HasCharSet("utf8")
  5861. .HasCollation("utf8_general_ci");
  5862. entity.Property(e => e.ServerIp)
  5863. .HasColumnType("varchar(15)")
  5864. .HasCharSet("utf8")
  5865. .HasCollation("utf8_general_ci");
  5866. entity.Property(e => e.SmsApiDefaultTemplate)
  5867. .HasColumnType("varchar(200)")
  5868. .HasCharSet("utf8")
  5869. .HasCollation("utf8_general_ci");
  5870. entity.Property(e => e.SmsApiPwd)
  5871. .HasColumnType("varchar(50)")
  5872. .HasCharSet("utf8")
  5873. .HasCollation("utf8_general_ci");
  5874. entity.Property(e => e.SmsApiSign)
  5875. .HasColumnType("varchar(10)")
  5876. .HasCharSet("utf8")
  5877. .HasCollation("utf8_general_ci");
  5878. entity.Property(e => e.SmsApiUserId)
  5879. .HasColumnType("varchar(50)")
  5880. .HasCharSet("utf8")
  5881. .HasCollation("utf8_general_ci");
  5882. entity.Property(e => e.WeChatAppId)
  5883. .HasColumnType("varchar(50)")
  5884. .HasCharSet("utf8")
  5885. .HasCollation("utf8_general_ci");
  5886. entity.Property(e => e.WeChatAppSecret)
  5887. .HasColumnType("varchar(50)")
  5888. .HasCharSet("utf8")
  5889. .HasCollation("utf8_general_ci");
  5890. entity.Property(e => e.WeChatMchId)
  5891. .HasColumnType("varchar(20)")
  5892. .HasCharSet("utf8")
  5893. .HasCollation("utf8_general_ci");
  5894. entity.Property(e => e.WeChatMiniAppId)
  5895. .HasColumnType("varchar(50)")
  5896. .HasCharSet("utf8")
  5897. .HasCollation("utf8_general_ci");
  5898. entity.Property(e => e.WeChatMiniAppSecret)
  5899. .HasColumnType("varchar(50)")
  5900. .HasCharSet("utf8")
  5901. .HasCollation("utf8_general_ci");
  5902. entity.Property(e => e.WeChatOpenAppId)
  5903. .HasColumnType("varchar(50)")
  5904. .HasCharSet("utf8")
  5905. .HasCollation("utf8_general_ci");
  5906. entity.Property(e => e.WeChatOpenAppSecret)
  5907. .HasColumnType("varchar(50)")
  5908. .HasCharSet("utf8")
  5909. .HasCollation("utf8_general_ci");
  5910. entity.Property(e => e.WeChatPayKey)
  5911. .HasColumnType("varchar(50)")
  5912. .HasCharSet("utf8")
  5913. .HasCollation("utf8_general_ci");
  5914. });
  5915. modelBuilder.Entity<PullNewAct>(entity =>
  5916. {
  5917. entity.Property(e => e.Id).HasColumnType("int(11)");
  5918. entity.Property(e => e.ActEffectEndDate).HasColumnType("datetime");
  5919. entity.Property(e => e.ActEffectStartDate).HasColumnType("datetime");
  5920. entity.Property(e => e.ActStdCond)
  5921. .HasColumnType("varchar(32)")
  5922. .HasCharSet("utf8")
  5923. .HasCollation("utf8_general_ci");
  5924. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5925. entity.Property(e => e.CreateMan)
  5926. .HasColumnType("varchar(50)")
  5927. .HasCharSet("utf8")
  5928. .HasCollation("utf8_general_ci");
  5929. entity.Property(e => e.ProductName)
  5930. .HasColumnType("varchar(32)")
  5931. .HasCharSet("utf8")
  5932. .HasCollation("utf8_general_ci");
  5933. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  5934. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5935. entity.Property(e => e.Remark)
  5936. .HasColumnType("varchar(128)")
  5937. .HasCharSet("utf8")
  5938. .HasCollation("utf8_general_ci");
  5939. entity.Property(e => e.SeoDescription)
  5940. .HasColumnType("varchar(500)")
  5941. .HasCharSet("utf8")
  5942. .HasCollation("utf8_general_ci");
  5943. entity.Property(e => e.SeoKeyword)
  5944. .HasColumnType("varchar(200)")
  5945. .HasCharSet("utf8")
  5946. .HasCollation("utf8_general_ci");
  5947. entity.Property(e => e.SeoTitle)
  5948. .HasColumnType("varchar(100)")
  5949. .HasCharSet("utf8")
  5950. .HasCollation("utf8_general_ci");
  5951. entity.Property(e => e.SnDelayDay).HasColumnType("int(11)");
  5952. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5953. entity.Property(e => e.Status).HasColumnType("int(11)");
  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<PullNewDetail>(entity =>
  5962. {
  5963. entity.Property(e => e.Id).HasColumnType("int(11)");
  5964. entity.Property(e => e.BizStatus).HasColumnType("int(11)");
  5965. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5966. entity.Property(e => e.CreateMan)
  5967. .HasColumnType("varchar(50)")
  5968. .HasCharSet("utf8")
  5969. .HasCollation("utf8_general_ci");
  5970. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5971. entity.Property(e => e.RecMallBrandId).HasColumnType("int(11)");
  5972. entity.Property(e => e.RecMallOrder)
  5973. .HasColumnType("varchar(32)")
  5974. .HasCharSet("utf8")
  5975. .HasCollation("utf8_general_ci");
  5976. entity.Property(e => e.RecMallOrderTime).HasColumnType("datetime");
  5977. entity.Property(e => e.RecMallProductName)
  5978. .HasColumnType("varchar(32)")
  5979. .HasCharSet("utf8")
  5980. .HasCollation("utf8_general_ci");
  5981. entity.Property(e => e.RecMallProductNum).HasColumnType("int(11)");
  5982. entity.Property(e => e.RecMallSendTime).HasColumnType("datetime");
  5983. entity.Property(e => e.RecUserId).HasColumnType("int(11)");
  5984. entity.Property(e => e.RecUserType).HasColumnType("int(11)");
  5985. entity.Property(e => e.RegDate).HasColumnType("datetime");
  5986. entity.Property(e => e.Remark)
  5987. .HasColumnType("varchar(64)")
  5988. .HasCharSet("utf8")
  5989. .HasCollation("utf8_general_ci");
  5990. entity.Property(e => e.RewardStatus).HasColumnType("int(11)");
  5991. entity.Property(e => e.SeoDescription)
  5992. .HasColumnType("varchar(500)")
  5993. .HasCharSet("utf8")
  5994. .HasCollation("utf8_general_ci");
  5995. entity.Property(e => e.SeoKeyword)
  5996. .HasColumnType("varchar(200)")
  5997. .HasCharSet("utf8")
  5998. .HasCollation("utf8_general_ci");
  5999. entity.Property(e => e.SeoTitle)
  6000. .HasColumnType("varchar(100)")
  6001. .HasCharSet("utf8")
  6002. .HasCollation("utf8_general_ci");
  6003. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6004. entity.Property(e => e.StatDate)
  6005. .HasColumnType("varchar(8)")
  6006. .HasCharSet("utf8")
  6007. .HasCollation("utf8_general_ci");
  6008. entity.Property(e => e.StatMonth)
  6009. .HasColumnType("varchar(6)")
  6010. .HasCharSet("utf8")
  6011. .HasCollation("utf8_general_ci");
  6012. entity.Property(e => e.StatType).HasColumnType("int(11)");
  6013. entity.Property(e => e.Status).HasColumnType("int(11)");
  6014. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6015. entity.Property(e => e.UpdateMan)
  6016. .HasColumnType("varchar(50)")
  6017. .HasCharSet("utf8")
  6018. .HasCollation("utf8_general_ci");
  6019. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6020. entity.Property(e => e.Version).HasColumnType("int(11)");
  6021. });
  6022. modelBuilder.Entity<PullnewSummary>(entity =>
  6023. {
  6024. entity.Property(e => e.Id).HasColumnType("int(11)");
  6025. entity.Property(e => e.BizSnDelayDay).HasColumnType("int(11)");
  6026. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6027. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6028. entity.Property(e => e.CreateMan)
  6029. .HasColumnType("varchar(50)")
  6030. .HasCharSet("utf8")
  6031. .HasCollation("utf8_general_ci");
  6032. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6033. entity.Property(e => e.RecUserAuthNum).HasColumnType("int(11)");
  6034. entity.Property(e => e.RecUserDeliveryStdNum).HasColumnType("int(11)");
  6035. entity.Property(e => e.Remark)
  6036. .HasColumnType("varchar(64)")
  6037. .HasCharSet("utf8")
  6038. .HasCollation("utf8_general_ci");
  6039. entity.Property(e => e.RuleSnDelayDay).HasColumnType("int(11)");
  6040. entity.Property(e => e.SeoDescription)
  6041. .HasColumnType("varchar(500)")
  6042. .HasCharSet("utf8")
  6043. .HasCollation("utf8_general_ci");
  6044. entity.Property(e => e.SeoKeyword)
  6045. .HasColumnType("varchar(200)")
  6046. .HasCharSet("utf8")
  6047. .HasCollation("utf8_general_ci");
  6048. entity.Property(e => e.SeoTitle)
  6049. .HasColumnType("varchar(100)")
  6050. .HasCharSet("utf8")
  6051. .HasCollation("utf8_general_ci");
  6052. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6053. entity.Property(e => e.StatDate)
  6054. .HasColumnType("varchar(8)")
  6055. .HasCharSet("utf8")
  6056. .HasCollation("utf8_general_ci");
  6057. entity.Property(e => e.StatMonth)
  6058. .HasColumnType("varchar(6)")
  6059. .HasCharSet("utf8")
  6060. .HasCollation("utf8_general_ci");
  6061. entity.Property(e => e.Status).HasColumnType("int(11)");
  6062. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6063. entity.Property(e => e.UpdateMan)
  6064. .HasColumnType("varchar(50)")
  6065. .HasCharSet("utf8")
  6066. .HasCollation("utf8_general_ci");
  6067. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6068. entity.Property(e => e.Version).HasColumnType("int(11)");
  6069. });
  6070. modelBuilder.Entity<RightDic>(entity =>
  6071. {
  6072. entity.Property(e => e.Id)
  6073. .HasColumnName("ID")
  6074. .HasColumnType("varchar(50)")
  6075. .HasCharSet("utf8")
  6076. .HasCollation("utf8_general_ci");
  6077. entity.Property(e => e.Icon)
  6078. .HasColumnType("varchar(50)")
  6079. .HasCharSet("utf8")
  6080. .HasCollation("utf8_general_ci");
  6081. entity.Property(e => e.MainDataList)
  6082. .HasColumnType("bit(1)")
  6083. .HasDefaultValueSql("b'0'");
  6084. entity.Property(e => e.MainMenu)
  6085. .HasColumnType("bit(1)")
  6086. .HasDefaultValueSql("b'0'");
  6087. entity.Property(e => e.MainStat)
  6088. .HasColumnType("bit(1)")
  6089. .HasDefaultValueSql("b'0'");
  6090. entity.Property(e => e.Name)
  6091. .HasColumnType("varchar(50)")
  6092. .HasCharSet("utf8")
  6093. .HasCollation("utf8_general_ci");
  6094. entity.Property(e => e.RightLevel).HasColumnType("int(11)");
  6095. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6096. entity.Property(e => e.Url)
  6097. .HasColumnType("varchar(200)")
  6098. .HasCharSet("utf8")
  6099. .HasCollation("utf8_general_ci");
  6100. });
  6101. modelBuilder.Entity<ServiceCenter>(entity =>
  6102. {
  6103. entity.Property(e => e.Id).HasColumnType("int(11)");
  6104. entity.Property(e => e.CategoryId).HasColumnType("int(11)");
  6105. entity.Property(e => e.Content)
  6106. .HasColumnType("longtext")
  6107. .HasCharSet("utf8")
  6108. .HasCollation("utf8_general_ci");
  6109. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6110. entity.Property(e => e.CreateMan)
  6111. .HasColumnType("varchar(50)")
  6112. .HasCharSet("utf8")
  6113. .HasCollation("utf8_general_ci");
  6114. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6115. entity.Property(e => e.SeoDescription)
  6116. .HasColumnType("varchar(500)")
  6117. .HasCharSet("utf8")
  6118. .HasCollation("utf8_general_ci");
  6119. entity.Property(e => e.SeoKeyword)
  6120. .HasColumnType("varchar(200)")
  6121. .HasCharSet("utf8")
  6122. .HasCollation("utf8_general_ci");
  6123. entity.Property(e => e.SeoTitle)
  6124. .HasColumnType("varchar(100)")
  6125. .HasCharSet("utf8")
  6126. .HasCollation("utf8_general_ci");
  6127. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6128. entity.Property(e => e.Status).HasColumnType("int(11)");
  6129. entity.Property(e => e.SubTitle)
  6130. .HasColumnType("varchar(50)")
  6131. .HasCharSet("utf8")
  6132. .HasCollation("utf8_general_ci");
  6133. entity.Property(e => e.Title)
  6134. .HasColumnType("varchar(50)")
  6135. .HasCharSet("utf8")
  6136. .HasCollation("utf8_general_ci");
  6137. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6138. entity.Property(e => e.UpdateMan)
  6139. .HasColumnType("varchar(50)")
  6140. .HasCharSet("utf8")
  6141. .HasCollation("utf8_general_ci");
  6142. entity.Property(e => e.Version).HasColumnType("int(11)");
  6143. });
  6144. modelBuilder.Entity<StoreBalance>(entity =>
  6145. {
  6146. entity.Property(e => e.Id).HasColumnType("int(11)");
  6147. entity.Property(e => e.AfterLaveNum).HasColumnType("int(11)");
  6148. entity.Property(e => e.AfterOutNum).HasColumnType("int(11)");
  6149. entity.Property(e => e.AfterTotalNum).HasColumnType("int(11)");
  6150. entity.Property(e => e.BeforeLaveNum).HasColumnType("int(11)");
  6151. entity.Property(e => e.BeforeOutNum).HasColumnType("int(11)");
  6152. entity.Property(e => e.BeforeTotalNum).HasColumnType("int(11)");
  6153. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6154. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6155. entity.Property(e => e.CreateMan)
  6156. .HasColumnType("varchar(50)")
  6157. .HasCharSet("utf8")
  6158. .HasCollation("utf8_general_ci");
  6159. entity.Property(e => e.OpStoreNum).HasColumnType("int(11)");
  6160. entity.Property(e => e.OpSymbol)
  6161. .HasColumnType("varchar(1)")
  6162. .HasCharSet("utf8")
  6163. .HasCollation("utf8_general_ci");
  6164. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6165. entity.Property(e => e.SeoDescription)
  6166. .HasColumnType("varchar(500)")
  6167. .HasCharSet("utf8")
  6168. .HasCollation("utf8_general_ci");
  6169. entity.Property(e => e.SeoKeyword)
  6170. .HasColumnType("varchar(200)")
  6171. .HasCharSet("utf8")
  6172. .HasCollation("utf8_general_ci");
  6173. entity.Property(e => e.SeoTitle)
  6174. .HasColumnType("varchar(100)")
  6175. .HasCharSet("utf8")
  6176. .HasCollation("utf8_general_ci");
  6177. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6178. entity.Property(e => e.Status).HasColumnType("int(11)");
  6179. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  6180. entity.Property(e => e.TransRecordNo)
  6181. .HasColumnType("varchar(32)")
  6182. .HasCharSet("utf8")
  6183. .HasCollation("utf8_general_ci");
  6184. entity.Property(e => e.TransType).HasColumnType("int(11)");
  6185. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6186. entity.Property(e => e.UpdateMan)
  6187. .HasColumnType("varchar(50)")
  6188. .HasCharSet("utf8")
  6189. .HasCollation("utf8_general_ci");
  6190. entity.Property(e => e.Version).HasColumnType("int(11)");
  6191. });
  6192. modelBuilder.Entity<StoreChangeHistory>(entity =>
  6193. {
  6194. entity.Property(e => e.Id).HasColumnType("int(11)");
  6195. entity.Property(e => e.BizBatchNo)
  6196. .HasColumnType("varchar(32)")
  6197. .HasCharSet("utf8")
  6198. .HasCollation("utf8_general_ci");
  6199. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6200. entity.Property(e => e.ChangeRecordNo)
  6201. .HasColumnType("varchar(32)")
  6202. .HasCharSet("utf8")
  6203. .HasCollation("utf8_general_ci");
  6204. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6205. entity.Property(e => e.CreateMan)
  6206. .HasColumnType("varchar(50)")
  6207. .HasCharSet("utf8")
  6208. .HasCollation("utf8_general_ci");
  6209. entity.Property(e => e.DeviceModel)
  6210. .HasColumnType("varchar(32)")
  6211. .HasCharSet("utf8")
  6212. .HasCollation("utf8_general_ci");
  6213. entity.Property(e => e.DeviceType)
  6214. .HasColumnType("varchar(32)")
  6215. .HasCharSet("utf8")
  6216. .HasCollation("utf8_general_ci");
  6217. entity.Property(e => e.DeviceVendor)
  6218. .HasColumnType("varchar(32)")
  6219. .HasCharSet("utf8")
  6220. .HasCollation("utf8_general_ci");
  6221. entity.Property(e => e.FromDate).HasColumnType("datetime");
  6222. entity.Property(e => e.FromRemark)
  6223. .HasColumnType("varchar(64)")
  6224. .HasCharSet("utf8")
  6225. .HasCollation("utf8_general_ci");
  6226. entity.Property(e => e.FromUserId).HasColumnType("int(11)");
  6227. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6228. entity.Property(e => e.SeoDescription)
  6229. .HasColumnType("varchar(500)")
  6230. .HasCharSet("utf8")
  6231. .HasCollation("utf8_general_ci");
  6232. entity.Property(e => e.SeoKeyword)
  6233. .HasColumnType("varchar(200)")
  6234. .HasCharSet("utf8")
  6235. .HasCollation("utf8_general_ci");
  6236. entity.Property(e => e.SeoTitle)
  6237. .HasColumnType("varchar(100)")
  6238. .HasCharSet("utf8")
  6239. .HasCollation("utf8_general_ci");
  6240. entity.Property(e => e.SnNo)
  6241. .HasColumnType("varchar(32)")
  6242. .HasCharSet("utf8")
  6243. .HasCollation("utf8_general_ci");
  6244. entity.Property(e => e.SnType).HasColumnType("int(11)");
  6245. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6246. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  6247. entity.Property(e => e.Status).HasColumnType("int(11)");
  6248. entity.Property(e => e.StockOpDirect).HasColumnType("int(11)");
  6249. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  6250. entity.Property(e => e.ToDate).HasColumnType("datetime");
  6251. entity.Property(e => e.ToRemark)
  6252. .HasColumnType("varchar(64)")
  6253. .HasCharSet("utf8")
  6254. .HasCollation("utf8_general_ci");
  6255. entity.Property(e => e.ToStoreId).HasColumnType("int(11)");
  6256. entity.Property(e => e.ToUserId).HasColumnType("int(11)");
  6257. entity.Property(e => e.TransType).HasColumnType("int(11)");
  6258. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6259. entity.Property(e => e.UpdateMan)
  6260. .HasColumnType("varchar(50)")
  6261. .HasCharSet("utf8")
  6262. .HasCollation("utf8_general_ci");
  6263. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6264. entity.Property(e => e.Version).HasColumnType("int(11)");
  6265. });
  6266. modelBuilder.Entity<StoreForCode>(entity =>
  6267. {
  6268. entity.HasKey(e => e.Code)
  6269. .HasName("PRIMARY");
  6270. entity.Property(e => e.Code)
  6271. .HasColumnType("varchar(30)")
  6272. .HasCharSet("utf8")
  6273. .HasCollation("utf8_general_ci");
  6274. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  6275. });
  6276. modelBuilder.Entity<StoreForName>(entity =>
  6277. {
  6278. entity.HasKey(e => e.Name)
  6279. .HasName("PRIMARY");
  6280. entity.Property(e => e.Name)
  6281. .HasColumnType("varchar(30)")
  6282. .HasCharSet("utf8")
  6283. .HasCollation("utf8_general_ci");
  6284. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  6285. });
  6286. modelBuilder.Entity<StoreHouse>(entity =>
  6287. {
  6288. entity.Property(e => e.Id).HasColumnType("int(11)");
  6289. entity.Property(e => e.Address)
  6290. .HasColumnType("varchar(128)")
  6291. .HasCharSet("utf8")
  6292. .HasCollation("utf8_general_ci");
  6293. entity.Property(e => e.Areas)
  6294. .HasColumnType("varchar(30)")
  6295. .HasCharSet("utf8")
  6296. .HasCollation("utf8_general_ci");
  6297. entity.Property(e => e.BrandId)
  6298. .HasColumnType("varchar(30)")
  6299. .HasCharSet("utf8")
  6300. .HasCollation("utf8_general_ci");
  6301. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6302. entity.Property(e => e.CreateMan)
  6303. .HasColumnType("varchar(50)")
  6304. .HasCharSet("utf8")
  6305. .HasCollation("utf8_general_ci");
  6306. entity.Property(e => e.LaveNum).HasColumnType("int(11)");
  6307. entity.Property(e => e.LimitTopUserId)
  6308. .HasColumnType("varchar(100)")
  6309. .HasCharSet("utf8")
  6310. .HasCollation("utf8_general_ci");
  6311. entity.Property(e => e.ManageMobile)
  6312. .HasColumnType("varchar(11)")
  6313. .HasCharSet("utf8")
  6314. .HasCollation("utf8_general_ci");
  6315. entity.Property(e => e.ManageUserId).HasColumnType("int(11)");
  6316. entity.Property(e => e.ManagerEmail)
  6317. .HasColumnType("varchar(32)")
  6318. .HasCharSet("utf8")
  6319. .HasCollation("utf8_general_ci");
  6320. entity.Property(e => e.OutNum).HasColumnType("int(11)");
  6321. entity.Property(e => e.ParentNav)
  6322. .HasColumnType("longtext")
  6323. .HasCharSet("utf8")
  6324. .HasCollation("utf8_general_ci");
  6325. entity.Property(e => e.ParentStoreId).HasColumnType("int(11)");
  6326. entity.Property(e => e.ProductName)
  6327. .HasColumnType("varchar(32)")
  6328. .HasCharSet("utf8")
  6329. .HasCollation("utf8_general_ci");
  6330. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6331. entity.Property(e => e.Remark)
  6332. .HasColumnType("varchar(128)")
  6333. .HasCharSet("utf8")
  6334. .HasCollation("utf8_general_ci");
  6335. entity.Property(e => e.SeoDescription)
  6336. .HasColumnType("varchar(500)")
  6337. .HasCharSet("utf8")
  6338. .HasCollation("utf8_general_ci");
  6339. entity.Property(e => e.SeoKeyword)
  6340. .HasColumnType("varchar(200)")
  6341. .HasCharSet("utf8")
  6342. .HasCollation("utf8_general_ci");
  6343. entity.Property(e => e.SeoTitle)
  6344. .HasColumnType("varchar(100)")
  6345. .HasCharSet("utf8")
  6346. .HasCollation("utf8_general_ci");
  6347. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6348. entity.Property(e => e.Status).HasColumnType("int(11)");
  6349. entity.Property(e => e.StoreKind).HasColumnType("int(11)");
  6350. entity.Property(e => e.StoreName)
  6351. .HasColumnType("varchar(32)")
  6352. .HasCharSet("utf8")
  6353. .HasCollation("utf8_general_ci");
  6354. entity.Property(e => e.StoreNo)
  6355. .HasColumnType("varchar(16)")
  6356. .HasCharSet("utf8")
  6357. .HasCollation("utf8_general_ci");
  6358. entity.Property(e => e.StoreStatus).HasColumnType("int(11)");
  6359. entity.Property(e => e.StoreType).HasColumnType("int(11)");
  6360. entity.Property(e => e.TotalNum).HasColumnType("int(11)");
  6361. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6362. entity.Property(e => e.UpdateMan)
  6363. .HasColumnType("varchar(50)")
  6364. .HasCharSet("utf8")
  6365. .HasCollation("utf8_general_ci");
  6366. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6367. entity.Property(e => e.Version).HasColumnType("int(11)");
  6368. });
  6369. modelBuilder.Entity<StoreMallOrderSummary>(entity =>
  6370. {
  6371. entity.Property(e => e.Id).HasColumnType("int(11)");
  6372. entity.Property(e => e.AgentStoreId).HasColumnType("int(11)");
  6373. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6374. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6375. entity.Property(e => e.CreateMan)
  6376. .HasColumnType("varchar(50)")
  6377. .HasCharSet("utf8")
  6378. .HasCollation("utf8_general_ci");
  6379. entity.Property(e => e.OrderAmt).HasColumnType("int(11)");
  6380. entity.Property(e => e.OrderNum).HasColumnType("int(11)");
  6381. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6382. entity.Property(e => e.RefundAmt).HasColumnType("decimal(18,2)");
  6383. entity.Property(e => e.RefundOrderNum).HasColumnType("int(11)");
  6384. entity.Property(e => e.Remark)
  6385. .HasColumnType("varchar(64)")
  6386. .HasCharSet("utf8")
  6387. .HasCollation("utf8_general_ci");
  6388. entity.Property(e => e.SeoDescription)
  6389. .HasColumnType("varchar(500)")
  6390. .HasCharSet("utf8")
  6391. .HasCollation("utf8_general_ci");
  6392. entity.Property(e => e.SeoKeyword)
  6393. .HasColumnType("varchar(200)")
  6394. .HasCharSet("utf8")
  6395. .HasCollation("utf8_general_ci");
  6396. entity.Property(e => e.SeoTitle)
  6397. .HasColumnType("varchar(100)")
  6398. .HasCharSet("utf8")
  6399. .HasCollation("utf8_general_ci");
  6400. entity.Property(e => e.SettleAmt).HasColumnType("decimal(18,2)");
  6401. entity.Property(e => e.SettleStatus).HasColumnType("int(11)");
  6402. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6403. entity.Property(e => e.Status).HasColumnType("int(11)");
  6404. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  6405. entity.Property(e => e.TradeMonth)
  6406. .HasColumnType("varchar(6)")
  6407. .HasCharSet("utf8")
  6408. .HasCollation("utf8_general_ci");
  6409. entity.Property(e => e.UnitPrice).HasColumnType("decimal(18,2)");
  6410. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6411. entity.Property(e => e.UpdateMan)
  6412. .HasColumnType("varchar(50)")
  6413. .HasCharSet("utf8")
  6414. .HasCollation("utf8_general_ci");
  6415. entity.Property(e => e.Version).HasColumnType("int(11)");
  6416. });
  6417. modelBuilder.Entity<StoreSnActivateSummary>(entity =>
  6418. {
  6419. entity.Property(e => e.Id).HasColumnType("int(11)");
  6420. entity.Property(e => e.ActivateNum).HasColumnType("int(11)");
  6421. entity.Property(e => e.AgentStoreId).HasColumnType("int(11)");
  6422. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6423. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6424. entity.Property(e => e.CreateMan)
  6425. .HasColumnType("varchar(50)")
  6426. .HasCharSet("utf8")
  6427. .HasCollation("utf8_general_ci");
  6428. entity.Property(e => e.EffectActNum).HasColumnType("int(11)");
  6429. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6430. entity.Property(e => e.RejectActNum).HasColumnType("int(11)");
  6431. entity.Property(e => e.Remark)
  6432. .HasColumnType("varchar(64)")
  6433. .HasCharSet("utf8")
  6434. .HasCollation("utf8_general_ci");
  6435. entity.Property(e => e.SeoDescription)
  6436. .HasColumnType("varchar(500)")
  6437. .HasCharSet("utf8")
  6438. .HasCollation("utf8_general_ci");
  6439. entity.Property(e => e.SeoKeyword)
  6440. .HasColumnType("varchar(200)")
  6441. .HasCharSet("utf8")
  6442. .HasCollation("utf8_general_ci");
  6443. entity.Property(e => e.SeoTitle)
  6444. .HasColumnType("varchar(100)")
  6445. .HasCharSet("utf8")
  6446. .HasCollation("utf8_general_ci");
  6447. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6448. entity.Property(e => e.Status).HasColumnType("int(11)");
  6449. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  6450. entity.Property(e => e.TradeDate)
  6451. .HasColumnType("varchar(8)")
  6452. .HasCharSet("utf8")
  6453. .HasCollation("utf8_general_ci");
  6454. entity.Property(e => e.TradeMonth)
  6455. .HasColumnType("varchar(6)")
  6456. .HasCharSet("utf8")
  6457. .HasCollation("utf8_general_ci");
  6458. entity.Property(e => e.TransferActNum).HasColumnType("int(11)");
  6459. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6460. entity.Property(e => e.UpdateMan)
  6461. .HasColumnType("varchar(50)")
  6462. .HasCharSet("utf8")
  6463. .HasCollation("utf8_general_ci");
  6464. entity.Property(e => e.UserApplyNum).HasColumnType("int(11)");
  6465. entity.Property(e => e.Version).HasColumnType("int(11)");
  6466. });
  6467. modelBuilder.Entity<StoreStockChange>(entity =>
  6468. {
  6469. entity.Property(e => e.Id).HasColumnType("int(11)");
  6470. entity.Property(e => e.ActRewardUserId).HasColumnType("int(11)");
  6471. entity.Property(e => e.ActiveStatus).HasColumnType("int(11)");
  6472. entity.Property(e => e.BindMerchant).HasColumnType("int(11)");
  6473. entity.Property(e => e.BindStatus).HasColumnType("int(11)");
  6474. entity.Property(e => e.BizBatchNo)
  6475. .HasColumnType("varchar(32)")
  6476. .HasCharSet("utf8")
  6477. .HasCollation("utf8_general_ci");
  6478. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6479. entity.Property(e => e.BrandType)
  6480. .HasColumnType("varchar(10)")
  6481. .HasCharSet("utf8")
  6482. .HasCollation("utf8_general_ci");
  6483. entity.Property(e => e.ChangeNo)
  6484. .HasColumnType("varchar(32)")
  6485. .HasCharSet("utf8")
  6486. .HasCollation("utf8_general_ci");
  6487. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6488. entity.Property(e => e.CreateMan)
  6489. .HasColumnType("varchar(50)")
  6490. .HasCharSet("utf8")
  6491. .HasCollation("utf8_general_ci");
  6492. entity.Property(e => e.DeviceModel)
  6493. .HasColumnType("varchar(32)")
  6494. .HasCharSet("utf8")
  6495. .HasCollation("utf8_general_ci");
  6496. entity.Property(e => e.DeviceType)
  6497. .HasColumnType("varchar(32)")
  6498. .HasCharSet("utf8")
  6499. .HasCollation("utf8_general_ci");
  6500. entity.Property(e => e.DeviceVendor)
  6501. .HasColumnType("varchar(32)")
  6502. .HasCharSet("utf8")
  6503. .HasCollation("utf8_general_ci");
  6504. entity.Property(e => e.ExpressNo)
  6505. .HasColumnType("varchar(32)")
  6506. .HasCharSet("utf8")
  6507. .HasCollation("utf8_general_ci");
  6508. entity.Property(e => e.FromDate).HasColumnType("datetime");
  6509. entity.Property(e => e.FromRemark)
  6510. .HasColumnType("varchar(64)")
  6511. .HasCharSet("utf8")
  6512. .HasCollation("utf8_general_ci");
  6513. entity.Property(e => e.FromUserId).HasColumnType("int(11)");
  6514. entity.Property(e => e.ProductName)
  6515. .HasColumnType("varchar(32)")
  6516. .HasCharSet("utf8")
  6517. .HasCollation("utf8_general_ci");
  6518. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6519. entity.Property(e => e.SeoDescription)
  6520. .HasColumnType("varchar(500)")
  6521. .HasCharSet("utf8")
  6522. .HasCollation("utf8_general_ci");
  6523. entity.Property(e => e.SeoKeyword)
  6524. .HasColumnType("varchar(200)")
  6525. .HasCharSet("utf8")
  6526. .HasCollation("utf8_general_ci");
  6527. entity.Property(e => e.SeoTitle)
  6528. .HasColumnType("varchar(100)")
  6529. .HasCharSet("utf8")
  6530. .HasCollation("utf8_general_ci");
  6531. entity.Property(e => e.SnNo)
  6532. .HasColumnType("varchar(32)")
  6533. .HasCharSet("utf8")
  6534. .HasCollation("utf8_general_ci");
  6535. entity.Property(e => e.SnStatus).HasColumnType("int(11)");
  6536. entity.Property(e => e.SnType).HasColumnType("int(11)");
  6537. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6538. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  6539. entity.Property(e => e.Status).HasColumnType("int(11)");
  6540. entity.Property(e => e.StockOpDirect).HasColumnType("int(11)");
  6541. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  6542. entity.Property(e => e.ToDate).HasColumnType("datetime");
  6543. entity.Property(e => e.ToRemark)
  6544. .HasColumnType("varchar(64)")
  6545. .HasCharSet("utf8")
  6546. .HasCollation("utf8_general_ci");
  6547. entity.Property(e => e.ToStoreId).HasColumnType("int(11)");
  6548. entity.Property(e => e.ToUserId).HasColumnType("int(11)");
  6549. entity.Property(e => e.TransType).HasColumnType("int(11)");
  6550. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6551. entity.Property(e => e.UpdateMan)
  6552. .HasColumnType("varchar(50)")
  6553. .HasCharSet("utf8")
  6554. .HasCollation("utf8_general_ci");
  6555. entity.Property(e => e.Version).HasColumnType("int(11)");
  6556. });
  6557. modelBuilder.Entity<StoreSwapSn>(entity =>
  6558. {
  6559. entity.Property(e => e.Id).HasColumnType("int(11)");
  6560. entity.Property(e => e.ActType).HasColumnType("int(11)");
  6561. entity.Property(e => e.ActTypeDesc)
  6562. .HasColumnType("varchar(64)")
  6563. .HasCharSet("utf8")
  6564. .HasCollation("utf8_general_ci");
  6565. entity.Property(e => e.BizStatus).HasColumnType("int(11)");
  6566. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6567. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6568. entity.Property(e => e.CreateMan)
  6569. .HasColumnType("varchar(50)")
  6570. .HasCharSet("utf8")
  6571. .HasCollation("utf8_general_ci");
  6572. entity.Property(e => e.PosType)
  6573. .HasColumnType("varchar(32)")
  6574. .HasCharSet("utf8")
  6575. .HasCollation("utf8_general_ci");
  6576. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6577. entity.Property(e => e.Remark)
  6578. .HasColumnType("varchar(128)")
  6579. .HasCharSet("utf8")
  6580. .HasCollation("utf8_general_ci");
  6581. entity.Property(e => e.RiskStatus).HasColumnType("int(11)");
  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.SnNo)
  6595. .HasColumnType("varchar(32)")
  6596. .HasCharSet("utf8")
  6597. .HasCollation("utf8_general_ci");
  6598. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  6599. entity.Property(e => e.SnType).HasColumnType("int(11)");
  6600. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6601. entity.Property(e => e.StandardDate).HasColumnType("datetime");
  6602. entity.Property(e => e.Status).HasColumnType("int(11)");
  6603. entity.Property(e => e.SwapApplyDate).HasColumnType("datetime");
  6604. entity.Property(e => e.SwapApplyOrderNo)
  6605. .HasColumnType("varchar(32)")
  6606. .HasCharSet("utf8")
  6607. .HasCollation("utf8_general_ci");
  6608. entity.Property(e => e.SwapExtProductTypes)
  6609. .HasColumnType("varchar(16)")
  6610. .HasCharSet("utf8")
  6611. .HasCollation("utf8_general_ci");
  6612. entity.Property(e => e.SwapSnNo)
  6613. .HasColumnType("varchar(32)")
  6614. .HasCharSet("utf8")
  6615. .HasCollation("utf8_general_ci");
  6616. entity.Property(e => e.SwapStatus).HasColumnType("int(11)");
  6617. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6618. entity.Property(e => e.UpdateMan)
  6619. .HasColumnType("varchar(50)")
  6620. .HasCharSet("utf8")
  6621. .HasCollation("utf8_general_ci");
  6622. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6623. entity.Property(e => e.Version).HasColumnType("int(11)");
  6624. });
  6625. modelBuilder.Entity<SysAdmin>(entity =>
  6626. {
  6627. entity.Property(e => e.Id).HasColumnType("int(11)");
  6628. entity.Property(e => e.AdminName)
  6629. .HasColumnType("varchar(50)")
  6630. .HasCharSet("utf8")
  6631. .HasCollation("utf8_general_ci");
  6632. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6633. entity.Property(e => e.CreateMan)
  6634. .HasColumnType("varchar(50)")
  6635. .HasCharSet("utf8")
  6636. .HasCollation("utf8_general_ci");
  6637. entity.Property(e => e.LastLoginDate).HasColumnType("datetime");
  6638. entity.Property(e => e.Password)
  6639. .HasColumnType("varchar(32)")
  6640. .HasCharSet("utf8")
  6641. .HasCollation("utf8_general_ci");
  6642. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6643. entity.Property(e => e.RealName)
  6644. .HasColumnType("varchar(50)")
  6645. .HasCharSet("utf8")
  6646. .HasCollation("utf8_general_ci");
  6647. entity.Property(e => e.Role)
  6648. .HasColumnType("varchar(30)")
  6649. .HasCharSet("utf8")
  6650. .HasCollation("utf8_general_ci");
  6651. entity.Property(e => e.SeoDescription)
  6652. .HasColumnType("varchar(500)")
  6653. .HasCharSet("utf8")
  6654. .HasCollation("utf8_general_ci");
  6655. entity.Property(e => e.SeoKeyword)
  6656. .HasColumnType("varchar(200)")
  6657. .HasCharSet("utf8")
  6658. .HasCollation("utf8_general_ci");
  6659. entity.Property(e => e.SeoTitle)
  6660. .HasColumnType("varchar(100)")
  6661. .HasCharSet("utf8")
  6662. .HasCollation("utf8_general_ci");
  6663. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6664. entity.Property(e => e.Status).HasColumnType("int(11)");
  6665. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6666. entity.Property(e => e.UpdateMan)
  6667. .HasColumnType("varchar(50)")
  6668. .HasCharSet("utf8")
  6669. .HasCollation("utf8_general_ci");
  6670. entity.Property(e => e.Version).HasColumnType("int(11)");
  6671. });
  6672. modelBuilder.Entity<SysAdminRole>(entity =>
  6673. {
  6674. entity.Property(e => e.Id).HasColumnType("int(11)");
  6675. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6676. entity.Property(e => e.CreateMan)
  6677. .HasColumnType("varchar(50)")
  6678. .HasCharSet("utf8")
  6679. .HasCollation("utf8_general_ci");
  6680. entity.Property(e => e.Details)
  6681. .HasColumnType("longtext")
  6682. .HasCharSet("utf8")
  6683. .HasCollation("utf8_general_ci");
  6684. entity.Property(e => e.Name)
  6685. .HasColumnType("varchar(50)")
  6686. .HasCharSet("utf8")
  6687. .HasCollation("utf8_general_ci");
  6688. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6689. entity.Property(e => e.RightInfo)
  6690. .HasColumnType("longtext")
  6691. .HasCharSet("utf8")
  6692. .HasCollation("utf8_general_ci");
  6693. entity.Property(e => e.SeoDescription)
  6694. .HasColumnType("varchar(500)")
  6695. .HasCharSet("utf8")
  6696. .HasCollation("utf8_general_ci");
  6697. entity.Property(e => e.SeoKeyword)
  6698. .HasColumnType("varchar(200)")
  6699. .HasCharSet("utf8")
  6700. .HasCollation("utf8_general_ci");
  6701. entity.Property(e => e.SeoTitle)
  6702. .HasColumnType("varchar(100)")
  6703. .HasCharSet("utf8")
  6704. .HasCollation("utf8_general_ci");
  6705. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6706. entity.Property(e => e.Status).HasColumnType("int(11)");
  6707. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6708. entity.Property(e => e.UpdateMan)
  6709. .HasColumnType("varchar(50)")
  6710. .HasCharSet("utf8")
  6711. .HasCollation("utf8_general_ci");
  6712. entity.Property(e => e.Version).HasColumnType("int(11)");
  6713. });
  6714. modelBuilder.Entity<SysLog>(entity =>
  6715. {
  6716. entity.Property(e => e.Id).HasColumnType("int(11)");
  6717. entity.Property(e => e.Contents)
  6718. .HasColumnType("varchar(200)")
  6719. .HasCharSet("utf8")
  6720. .HasCollation("utf8_general_ci");
  6721. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6722. entity.Property(e => e.CreateMan)
  6723. .HasColumnType("varchar(50)")
  6724. .HasCharSet("utf8")
  6725. .HasCollation("utf8_general_ci");
  6726. });
  6727. modelBuilder.Entity<SysRechargeRecord>(entity =>
  6728. {
  6729. entity.Property(e => e.Id).HasColumnType("int(11)");
  6730. entity.Property(e => e.Amount).HasColumnType("decimal(18,2)");
  6731. entity.Property(e => e.BatchCode)
  6732. .HasColumnType("varchar(32)")
  6733. .HasCharSet("utf8")
  6734. .HasCollation("utf8_general_ci");
  6735. entity.Property(e => e.BizTime).HasColumnType("datetime");
  6736. entity.Property(e => e.BizType).HasColumnType("int(11)");
  6737. entity.Property(e => e.ClientIp)
  6738. .HasColumnType("varchar(15)")
  6739. .HasCharSet("utf8")
  6740. .HasCollation("utf8_general_ci");
  6741. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6742. entity.Property(e => e.CreateMan)
  6743. .HasColumnType("varchar(50)")
  6744. .HasCharSet("utf8")
  6745. .HasCollation("utf8_general_ci");
  6746. entity.Property(e => e.PartnerTradeNo)
  6747. .HasColumnType("varchar(32)")
  6748. .HasCharSet("utf8")
  6749. .HasCollation("utf8_general_ci");
  6750. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  6751. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6752. entity.Property(e => e.RechargeRecNo)
  6753. .HasColumnType("varchar(32)")
  6754. .HasCharSet("utf8")
  6755. .HasCollation("utf8_general_ci");
  6756. entity.Property(e => e.SeoDescription)
  6757. .HasColumnType("varchar(500)")
  6758. .HasCharSet("utf8")
  6759. .HasCollation("utf8_general_ci");
  6760. entity.Property(e => e.SeoKeyword)
  6761. .HasColumnType("varchar(200)")
  6762. .HasCharSet("utf8")
  6763. .HasCollation("utf8_general_ci");
  6764. entity.Property(e => e.SeoTitle)
  6765. .HasColumnType("varchar(100)")
  6766. .HasCharSet("utf8")
  6767. .HasCollation("utf8_general_ci");
  6768. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6769. entity.Property(e => e.Status).HasColumnType("int(11)");
  6770. entity.Property(e => e.SyncStatus).HasColumnType("int(11)");
  6771. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6772. entity.Property(e => e.UpdateMan)
  6773. .HasColumnType("varchar(50)")
  6774. .HasCharSet("utf8")
  6775. .HasCollation("utf8_general_ci");
  6776. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6777. entity.Property(e => e.Version).HasColumnType("int(11)");
  6778. });
  6779. modelBuilder.Entity<SystemSet>(entity =>
  6780. {
  6781. entity.Property(e => e.Id).HasColumnType("int(11)");
  6782. entity.Property(e => e.Address)
  6783. .HasColumnType("varchar(100)")
  6784. .HasCharSet("utf8")
  6785. .HasCollation("utf8_general_ci");
  6786. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6787. entity.Property(e => e.CreateMan)
  6788. .HasColumnType("varchar(50)")
  6789. .HasCharSet("utf8")
  6790. .HasCollation("utf8_general_ci");
  6791. entity.Property(e => e.IndexDescription)
  6792. .HasColumnType("longtext")
  6793. .HasCharSet("utf8")
  6794. .HasCollation("utf8_general_ci");
  6795. entity.Property(e => e.IndexKeyword)
  6796. .HasColumnType("varchar(200)")
  6797. .HasCharSet("utf8")
  6798. .HasCollation("utf8_general_ci");
  6799. entity.Property(e => e.Logo)
  6800. .HasColumnType("varchar(200)")
  6801. .HasCharSet("utf8")
  6802. .HasCollation("utf8_general_ci");
  6803. entity.Property(e => e.Phone)
  6804. .HasColumnType("varchar(100)")
  6805. .HasCharSet("utf8")
  6806. .HasCollation("utf8_general_ci");
  6807. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6808. entity.Property(e => e.RightInfo)
  6809. .HasColumnType("longtext")
  6810. .HasCharSet("utf8")
  6811. .HasCollation("utf8_general_ci");
  6812. entity.Property(e => e.SeoDescription)
  6813. .HasColumnType("varchar(500)")
  6814. .HasCharSet("utf8")
  6815. .HasCollation("utf8_general_ci");
  6816. entity.Property(e => e.SeoKeyword)
  6817. .HasColumnType("varchar(200)")
  6818. .HasCharSet("utf8")
  6819. .HasCollation("utf8_general_ci");
  6820. entity.Property(e => e.SeoTitle)
  6821. .HasColumnType("varchar(100)")
  6822. .HasCharSet("utf8")
  6823. .HasCollation("utf8_general_ci");
  6824. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6825. entity.Property(e => e.StartAdPhoto)
  6826. .HasColumnType("varchar(200)")
  6827. .HasCharSet("utf8")
  6828. .HasCollation("utf8_general_ci");
  6829. entity.Property(e => e.Status).HasColumnType("int(11)");
  6830. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6831. entity.Property(e => e.UpdateMan)
  6832. .HasColumnType("varchar(50)")
  6833. .HasCharSet("utf8")
  6834. .HasCollation("utf8_general_ci");
  6835. entity.Property(e => e.UploadAutoWater)
  6836. .HasColumnType("bit(1)")
  6837. .HasDefaultValueSql("b'0'");
  6838. entity.Property(e => e.UploadAutoZoom)
  6839. .HasColumnType("bit(1)")
  6840. .HasDefaultValueSql("b'0'");
  6841. entity.Property(e => e.UploadAutoZoomHeight).HasColumnType("int(11)");
  6842. entity.Property(e => e.UploadAutoZoomQuality).HasColumnType("int(11)");
  6843. entity.Property(e => e.UploadAutoZoomWidth).HasColumnType("int(11)");
  6844. entity.Property(e => e.UploadExt)
  6845. .HasColumnType("varchar(100)")
  6846. .HasCharSet("utf8")
  6847. .HasCollation("utf8_general_ci");
  6848. entity.Property(e => e.UploadMaxSize).HasColumnType("int(11)");
  6849. entity.Property(e => e.UploadOss)
  6850. .HasColumnType("bit(1)")
  6851. .HasDefaultValueSql("b'0'");
  6852. entity.Property(e => e.UploadWaterPath)
  6853. .HasColumnType("varchar(200)")
  6854. .HasCharSet("utf8")
  6855. .HasCollation("utf8_general_ci");
  6856. entity.Property(e => e.UploadWaterPosition)
  6857. .HasColumnType("varchar(15)")
  6858. .HasCharSet("utf8")
  6859. .HasCollation("utf8_general_ci");
  6860. entity.Property(e => e.Version).HasColumnType("int(11)");
  6861. entity.Property(e => e.WebName)
  6862. .HasColumnType("varchar(50)")
  6863. .HasCharSet("utf8")
  6864. .HasCollation("utf8_general_ci");
  6865. entity.Property(e => e.WebStatCode)
  6866. .HasColumnType("longtext")
  6867. .HasCharSet("utf8")
  6868. .HasCollation("utf8_general_ci");
  6869. entity.Property(e => e.WebUrl)
  6870. .HasColumnType("varchar(200)")
  6871. .HasCharSet("utf8")
  6872. .HasCollation("utf8_general_ci");
  6873. });
  6874. modelBuilder.Entity<TeamApply>(entity =>
  6875. {
  6876. entity.Property(e => e.Id).HasColumnType("int(11)");
  6877. entity.Property(e => e.Areas)
  6878. .HasColumnType("varchar(30)")
  6879. .HasCharSet("utf8")
  6880. .HasCollation("utf8_general_ci");
  6881. entity.Property(e => e.AuditRemark)
  6882. .HasColumnType("varchar(64)")
  6883. .HasCharSet("utf8")
  6884. .HasCollation("utf8_general_ci");
  6885. entity.Property(e => e.AuditResult).HasColumnType("int(11)");
  6886. entity.Property(e => e.AuditTime).HasColumnType("datetime");
  6887. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6888. entity.Property(e => e.CreateMan)
  6889. .HasColumnType("varchar(50)")
  6890. .HasCharSet("utf8")
  6891. .HasCollation("utf8_general_ci");
  6892. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  6893. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  6894. entity.Property(e => e.EnterEndDate).HasColumnType("datetime");
  6895. entity.Property(e => e.EnterStartDate).HasColumnType("datetime");
  6896. entity.Property(e => e.ManagerName)
  6897. .HasColumnType("varchar(32)")
  6898. .HasCharSet("utf8")
  6899. .HasCollation("utf8_general_ci");
  6900. entity.Property(e => e.ManagerNo)
  6901. .HasColumnType("varchar(32)")
  6902. .HasCharSet("utf8")
  6903. .HasCollation("utf8_general_ci");
  6904. entity.Property(e => e.MaxUserNum).HasColumnType("int(11)");
  6905. entity.Property(e => e.MinUserNum).HasColumnType("int(11)");
  6906. entity.Property(e => e.NotifyFlag).HasColumnType("int(11)");
  6907. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6908. entity.Property(e => e.Remark)
  6909. .HasColumnType("varchar(64)")
  6910. .HasCharSet("utf8")
  6911. .HasCollation("utf8_general_ci");
  6912. entity.Property(e => e.SeoDescription)
  6913. .HasColumnType("varchar(500)")
  6914. .HasCharSet("utf8")
  6915. .HasCollation("utf8_general_ci");
  6916. entity.Property(e => e.SeoKeyword)
  6917. .HasColumnType("varchar(200)")
  6918. .HasCharSet("utf8")
  6919. .HasCollation("utf8_general_ci");
  6920. entity.Property(e => e.SeoTitle)
  6921. .HasColumnType("varchar(100)")
  6922. .HasCharSet("utf8")
  6923. .HasCollation("utf8_general_ci");
  6924. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6925. entity.Property(e => e.Status).HasColumnType("int(11)");
  6926. entity.Property(e => e.TeamName)
  6927. .HasColumnType("varchar(32)")
  6928. .HasCharSet("utf8")
  6929. .HasCollation("utf8_general_ci");
  6930. entity.Property(e => e.TeamNo)
  6931. .HasColumnType("varchar(32)")
  6932. .HasCharSet("utf8")
  6933. .HasCollation("utf8_general_ci");
  6934. entity.Property(e => e.TeamStatus).HasColumnType("int(11)");
  6935. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  6936. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6937. entity.Property(e => e.UpdateMan)
  6938. .HasColumnType("varchar(50)")
  6939. .HasCharSet("utf8")
  6940. .HasCollation("utf8_general_ci");
  6941. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6942. entity.Property(e => e.Version).HasColumnType("int(11)");
  6943. entity.Property(e => e.WatchWord)
  6944. .HasColumnType("varchar(32)")
  6945. .HasCharSet("utf8")
  6946. .HasCollation("utf8_general_ci");
  6947. });
  6948. modelBuilder.Entity<TeamApplyForTeamName>(entity =>
  6949. {
  6950. entity.HasKey(e => e.TeamName)
  6951. .HasName("PRIMARY");
  6952. entity.Property(e => e.TeamName)
  6953. .HasColumnType("varchar(32)")
  6954. .HasCharSet("utf8")
  6955. .HasCollation("utf8_general_ci");
  6956. entity.Property(e => e.TeamId).HasColumnType("int(11)");
  6957. });
  6958. modelBuilder.Entity<TeamApplyForTeamNo>(entity =>
  6959. {
  6960. entity.HasKey(e => e.TeamNo)
  6961. .HasName("PRIMARY");
  6962. entity.Property(e => e.TeamNo)
  6963. .HasColumnType("varchar(32)")
  6964. .HasCharSet("utf8")
  6965. .HasCollation("utf8_general_ci");
  6966. entity.Property(e => e.TeamId).HasColumnType("int(11)");
  6967. });
  6968. modelBuilder.Entity<TeamBlackList>(entity =>
  6969. {
  6970. entity.Property(e => e.Id).HasColumnType("int(11)");
  6971. entity.Property(e => e.BlackStatus).HasColumnType("int(11)");
  6972. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6973. entity.Property(e => e.CreateMan)
  6974. .HasColumnType("varchar(50)")
  6975. .HasCharSet("utf8")
  6976. .HasCollation("utf8_general_ci");
  6977. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  6978. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  6979. entity.Property(e => e.ManagerName)
  6980. .HasColumnType("varchar(32)")
  6981. .HasCharSet("utf8")
  6982. .HasCollation("utf8_general_ci");
  6983. entity.Property(e => e.ManagerNo)
  6984. .HasColumnType("varchar(32)")
  6985. .HasCharSet("utf8")
  6986. .HasCollation("utf8_general_ci");
  6987. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6988. entity.Property(e => e.Remark)
  6989. .HasColumnType("varchar(64)")
  6990. .HasCharSet("utf8")
  6991. .HasCollation("utf8_general_ci");
  6992. entity.Property(e => e.SeoDescription)
  6993. .HasColumnType("varchar(500)")
  6994. .HasCharSet("utf8")
  6995. .HasCollation("utf8_general_ci");
  6996. entity.Property(e => e.SeoKeyword)
  6997. .HasColumnType("varchar(200)")
  6998. .HasCharSet("utf8")
  6999. .HasCollation("utf8_general_ci");
  7000. entity.Property(e => e.SeoTitle)
  7001. .HasColumnType("varchar(100)")
  7002. .HasCharSet("utf8")
  7003. .HasCollation("utf8_general_ci");
  7004. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7005. entity.Property(e => e.Status).HasColumnType("int(11)");
  7006. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7007. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7008. entity.Property(e => e.UpdateMan)
  7009. .HasColumnType("varchar(50)")
  7010. .HasCharSet("utf8")
  7011. .HasCollation("utf8_general_ci");
  7012. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7013. entity.Property(e => e.Version).HasColumnType("int(11)");
  7014. });
  7015. modelBuilder.Entity<TeamConfig>(entity =>
  7016. {
  7017. entity.Property(e => e.Id).HasColumnType("int(11)");
  7018. entity.Property(e => e.BlacklistCycle).HasColumnType("int(11)");
  7019. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7020. entity.Property(e => e.CreateMan)
  7021. .HasColumnType("varchar(50)")
  7022. .HasCharSet("utf8")
  7023. .HasCollation("utf8_general_ci");
  7024. entity.Property(e => e.EnterEndMin).HasColumnType("int(11)");
  7025. entity.Property(e => e.LimitBuddyNo)
  7026. .HasColumnType("varchar(128)")
  7027. .HasCharSet("utf8")
  7028. .HasCollation("utf8_general_ci");
  7029. entity.Property(e => e.MaxCycleNum).HasColumnType("int(11)");
  7030. entity.Property(e => e.MaxStartDayLimit).HasColumnType("int(11)");
  7031. entity.Property(e => e.MaxUserNum).HasColumnType("int(11)");
  7032. entity.Property(e => e.MinCycleNum).HasColumnType("int(11)");
  7033. entity.Property(e => e.MinStartDayLimit).HasColumnType("int(11)");
  7034. entity.Property(e => e.MinUserNum).HasColumnType("int(11)");
  7035. entity.Property(e => e.OverlineStatus)
  7036. .HasColumnType("bit(1)")
  7037. .HasDefaultValueSql("b'0'");
  7038. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7039. entity.Property(e => e.Remark)
  7040. .HasColumnType("varchar(64)")
  7041. .HasCharSet("utf8")
  7042. .HasCollation("utf8_general_ci");
  7043. entity.Property(e => e.SeoDescription)
  7044. .HasColumnType("varchar(500)")
  7045. .HasCharSet("utf8")
  7046. .HasCollation("utf8_general_ci");
  7047. entity.Property(e => e.SeoKeyword)
  7048. .HasColumnType("varchar(200)")
  7049. .HasCharSet("utf8")
  7050. .HasCollation("utf8_general_ci");
  7051. entity.Property(e => e.SeoTitle)
  7052. .HasColumnType("varchar(100)")
  7053. .HasCharSet("utf8")
  7054. .HasCollation("utf8_general_ci");
  7055. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7056. entity.Property(e => e.Status).HasColumnType("int(11)");
  7057. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7058. entity.Property(e => e.UpdateMan)
  7059. .HasColumnType("varchar(50)")
  7060. .HasCharSet("utf8")
  7061. .HasCollation("utf8_general_ci");
  7062. entity.Property(e => e.Version).HasColumnType("int(11)");
  7063. });
  7064. modelBuilder.Entity<TeamDayTop>(entity =>
  7065. {
  7066. entity.Property(e => e.Id).HasColumnType("int(11)");
  7067. entity.Property(e => e.ActMerNum).HasColumnType("int(11)");
  7068. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  7069. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7070. entity.Property(e => e.CreateMan)
  7071. .HasColumnType("varchar(50)")
  7072. .HasCharSet("utf8")
  7073. .HasCollation("utf8_general_ci");
  7074. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7075. entity.Property(e => e.Remark)
  7076. .HasColumnType("varchar(64)")
  7077. .HasCharSet("utf8")
  7078. .HasCollation("utf8_general_ci");
  7079. entity.Property(e => e.SeoDescription)
  7080. .HasColumnType("varchar(500)")
  7081. .HasCharSet("utf8")
  7082. .HasCollation("utf8_general_ci");
  7083. entity.Property(e => e.SeoKeyword)
  7084. .HasColumnType("varchar(200)")
  7085. .HasCharSet("utf8")
  7086. .HasCollation("utf8_general_ci");
  7087. entity.Property(e => e.SeoTitle)
  7088. .HasColumnType("varchar(100)")
  7089. .HasCharSet("utf8")
  7090. .HasCollation("utf8_general_ci");
  7091. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7092. entity.Property(e => e.StatDate)
  7093. .HasColumnType("varchar(8)")
  7094. .HasCharSet("utf8")
  7095. .HasCollation("utf8_general_ci");
  7096. entity.Property(e => e.StatMonth)
  7097. .HasColumnType("varchar(6)")
  7098. .HasCharSet("utf8")
  7099. .HasCollation("utf8_general_ci");
  7100. entity.Property(e => e.Status).HasColumnType("int(11)");
  7101. entity.Property(e => e.TeamActMerNum).HasColumnType("int(11)");
  7102. entity.Property(e => e.TeamEndDate).HasColumnType("datetime");
  7103. entity.Property(e => e.TeamId).HasColumnType("int(11)");
  7104. entity.Property(e => e.TeamStartDate).HasColumnType("datetime");
  7105. entity.Property(e => e.TeamUserId).HasColumnType("int(11)");
  7106. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7107. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7108. entity.Property(e => e.UpdateMan)
  7109. .HasColumnType("varchar(50)")
  7110. .HasCharSet("utf8")
  7111. .HasCollation("utf8_general_ci");
  7112. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7113. entity.Property(e => e.Version).HasColumnType("int(11)");
  7114. });
  7115. modelBuilder.Entity<TeamOfferApply>(entity =>
  7116. {
  7117. entity.Property(e => e.Id).HasColumnType("int(11)");
  7118. entity.Property(e => e.Areas)
  7119. .HasColumnType("varchar(30)")
  7120. .HasCharSet("utf8")
  7121. .HasCollation("utf8_general_ci");
  7122. entity.Property(e => e.AuditRemark)
  7123. .HasColumnType("varchar(64)")
  7124. .HasCharSet("utf8")
  7125. .HasCollation("utf8_general_ci");
  7126. entity.Property(e => e.AuditResult).HasColumnType("int(11)");
  7127. entity.Property(e => e.AuditTime).HasColumnType("datetime");
  7128. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7129. entity.Property(e => e.CreateMan)
  7130. .HasColumnType("varchar(50)")
  7131. .HasCharSet("utf8")
  7132. .HasCollation("utf8_general_ci");
  7133. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  7134. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  7135. entity.Property(e => e.EnterDate).HasColumnType("datetime");
  7136. entity.Property(e => e.ManagerName)
  7137. .HasColumnType("varchar(32)")
  7138. .HasCharSet("utf8")
  7139. .HasCollation("utf8_general_ci");
  7140. entity.Property(e => e.ManagerNo)
  7141. .HasColumnType("varchar(32)")
  7142. .HasCharSet("utf8")
  7143. .HasCollation("utf8_general_ci");
  7144. entity.Property(e => e.NotifyFlag).HasColumnType("int(11)");
  7145. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7146. entity.Property(e => e.Remark)
  7147. .HasColumnType("varchar(64)")
  7148. .HasCharSet("utf8")
  7149. .HasCollation("utf8_general_ci");
  7150. entity.Property(e => e.SeoDescription)
  7151. .HasColumnType("varchar(500)")
  7152. .HasCharSet("utf8")
  7153. .HasCollation("utf8_general_ci");
  7154. entity.Property(e => e.SeoKeyword)
  7155. .HasColumnType("varchar(200)")
  7156. .HasCharSet("utf8")
  7157. .HasCollation("utf8_general_ci");
  7158. entity.Property(e => e.SeoTitle)
  7159. .HasColumnType("varchar(100)")
  7160. .HasCharSet("utf8")
  7161. .HasCollation("utf8_general_ci");
  7162. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7163. entity.Property(e => e.Status).HasColumnType("int(11)");
  7164. entity.Property(e => e.TeamApplyStatus).HasColumnType("int(11)");
  7165. entity.Property(e => e.TeamId).HasColumnType("int(11)");
  7166. entity.Property(e => e.TeamLeader).HasColumnType("int(11)");
  7167. entity.Property(e => e.TeamStatus).HasColumnType("int(11)");
  7168. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7169. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7170. entity.Property(e => e.UpdateMan)
  7171. .HasColumnType("varchar(50)")
  7172. .HasCharSet("utf8")
  7173. .HasCollation("utf8_general_ci");
  7174. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7175. entity.Property(e => e.Version).HasColumnType("int(11)");
  7176. });
  7177. modelBuilder.Entity<TeamPersonDayTop>(entity =>
  7178. {
  7179. entity.Property(e => e.Id).HasColumnType("int(11)");
  7180. entity.Property(e => e.ActMerNum).HasColumnType("int(11)");
  7181. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  7182. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7183. entity.Property(e => e.CreateMan)
  7184. .HasColumnType("varchar(50)")
  7185. .HasCharSet("utf8")
  7186. .HasCollation("utf8_general_ci");
  7187. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7188. entity.Property(e => e.Remark)
  7189. .HasColumnType("varchar(64)")
  7190. .HasCharSet("utf8")
  7191. .HasCollation("utf8_general_ci");
  7192. entity.Property(e => e.SeoDescription)
  7193. .HasColumnType("varchar(500)")
  7194. .HasCharSet("utf8")
  7195. .HasCollation("utf8_general_ci");
  7196. entity.Property(e => e.SeoKeyword)
  7197. .HasColumnType("varchar(200)")
  7198. .HasCharSet("utf8")
  7199. .HasCollation("utf8_general_ci");
  7200. entity.Property(e => e.SeoTitle)
  7201. .HasColumnType("varchar(100)")
  7202. .HasCharSet("utf8")
  7203. .HasCollation("utf8_general_ci");
  7204. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7205. entity.Property(e => e.StatDate)
  7206. .HasColumnType("varchar(8)")
  7207. .HasCharSet("utf8")
  7208. .HasCollation("utf8_general_ci");
  7209. entity.Property(e => e.StatMonth)
  7210. .HasColumnType("varchar(6)")
  7211. .HasCharSet("utf8")
  7212. .HasCollation("utf8_general_ci");
  7213. entity.Property(e => e.Status).HasColumnType("int(11)");
  7214. entity.Property(e => e.TeamActMerNum).HasColumnType("int(11)");
  7215. entity.Property(e => e.TeamEndDate).HasColumnType("datetime");
  7216. entity.Property(e => e.TeamId).HasColumnType("int(11)");
  7217. entity.Property(e => e.TeamStartDate).HasColumnType("datetime");
  7218. entity.Property(e => e.TeamUserId).HasColumnType("int(11)");
  7219. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7220. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7221. entity.Property(e => e.UpdateMan)
  7222. .HasColumnType("varchar(50)")
  7223. .HasCharSet("utf8")
  7224. .HasCollation("utf8_general_ci");
  7225. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7226. entity.Property(e => e.Version).HasColumnType("int(11)");
  7227. });
  7228. modelBuilder.Entity<TradeDaySummary>(entity =>
  7229. {
  7230. entity.Property(e => e.Id).HasColumnType("int(11)");
  7231. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  7232. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7233. entity.Property(e => e.CreateMan)
  7234. .HasColumnType("varchar(50)")
  7235. .HasCharSet("utf8")
  7236. .HasCollation("utf8_general_ci");
  7237. entity.Property(e => e.HelpDirectCreditTradeAmt).HasColumnType("decimal(18,2)");
  7238. entity.Property(e => e.HelpDirectDebitCapNum).HasColumnType("decimal(18,2)");
  7239. entity.Property(e => e.HelpDirectDebitCapTradeAmt).HasColumnType("decimal(18,2)");
  7240. entity.Property(e => e.HelpDirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  7241. entity.Property(e => e.HelpDirectNonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7242. entity.Property(e => e.HelpDirectNonQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7243. entity.Property(e => e.HelpDirectQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7244. entity.Property(e => e.HelpDirectQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7245. entity.Property(e => e.HelpDirectTradeAmt).HasColumnType("decimal(18,2)");
  7246. entity.Property(e => e.HelpNonDirectCreditTradeAmt).HasColumnType("decimal(18,2)");
  7247. entity.Property(e => e.HelpNonDirectDebitCapNum).HasColumnType("decimal(18,2)");
  7248. entity.Property(e => e.HelpNonDirectDebitCapTradeAmt).HasColumnType("decimal(18,2)");
  7249. entity.Property(e => e.HelpNonDirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  7250. entity.Property(e => e.HelpNonDirectNonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7251. entity.Property(e => e.HelpNonDirectNonQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7252. entity.Property(e => e.HelpNonDirectQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7253. entity.Property(e => e.HelpNonDirectQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7254. entity.Property(e => e.HelpNonDirectTradeAmt).HasColumnType("decimal(18,2)");
  7255. entity.Property(e => e.MgrName)
  7256. .HasColumnType("varchar(32)")
  7257. .HasCharSet("utf8")
  7258. .HasCollation("utf8_general_ci");
  7259. entity.Property(e => e.MgrNo)
  7260. .HasColumnType("varchar(16)")
  7261. .HasCharSet("utf8")
  7262. .HasCollation("utf8_general_ci");
  7263. entity.Property(e => e.NotHelpDirectCreditTradeAmt).HasColumnType("decimal(18,2)");
  7264. entity.Property(e => e.NotHelpDirectDebitCapNum).HasColumnType("int(11)");
  7265. entity.Property(e => e.NotHelpDirectDebitCapTradeAmt).HasColumnType("decimal(18,2)");
  7266. entity.Property(e => e.NotHelpDirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  7267. entity.Property(e => e.NotHelpDirectNonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7268. entity.Property(e => e.NotHelpDirectNonQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7269. entity.Property(e => e.NotHelpDirectQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7270. entity.Property(e => e.NotHelpDirectQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7271. entity.Property(e => e.NotHelpDirectTradeAmt).HasColumnType("decimal(18,2)");
  7272. entity.Property(e => e.NotHelpNonDirectCreditTradeAmt).HasColumnType("decimal(18,2)");
  7273. entity.Property(e => e.NotHelpNonDirectDebitCapNum).HasColumnType("int(11)");
  7274. entity.Property(e => e.NotHelpNonDirectDebitCapTradeAmt).HasColumnType("decimal(18,2)");
  7275. entity.Property(e => e.NotHelpNonDirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  7276. entity.Property(e => e.NotHelpNonDirectNonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7277. entity.Property(e => e.NotHelpNonDirectNonQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7278. entity.Property(e => e.NotHelpNonDirectQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7279. entity.Property(e => e.NotHelpNonDirectQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7280. entity.Property(e => e.NotHelpNonDirectTradeAmt).HasColumnType("decimal(18,2)");
  7281. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7282. entity.Property(e => e.SeoDescription)
  7283. .HasColumnType("varchar(500)")
  7284. .HasCharSet("utf8")
  7285. .HasCollation("utf8_general_ci");
  7286. entity.Property(e => e.SeoKeyword)
  7287. .HasColumnType("varchar(200)")
  7288. .HasCharSet("utf8")
  7289. .HasCollation("utf8_general_ci");
  7290. entity.Property(e => e.SeoTitle)
  7291. .HasColumnType("varchar(100)")
  7292. .HasCharSet("utf8")
  7293. .HasCollation("utf8_general_ci");
  7294. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7295. entity.Property(e => e.Status).HasColumnType("int(11)");
  7296. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7297. entity.Property(e => e.TradeDate)
  7298. .HasColumnType("varchar(8)")
  7299. .HasCharSet("utf8")
  7300. .HasCollation("utf8_general_ci");
  7301. entity.Property(e => e.TradeMonth)
  7302. .HasColumnType("varchar(6)")
  7303. .HasCharSet("utf8")
  7304. .HasCollation("utf8_general_ci");
  7305. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7306. entity.Property(e => e.UpdateMan)
  7307. .HasColumnType("varchar(50)")
  7308. .HasCharSet("utf8")
  7309. .HasCollation("utf8_general_ci");
  7310. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7311. entity.Property(e => e.Version).HasColumnType("int(11)");
  7312. });
  7313. modelBuilder.Entity<TradeRecord>(entity =>
  7314. {
  7315. entity.Property(e => e.Id).HasColumnType("int(11)");
  7316. entity.Property(e => e.BankCardType).HasColumnType("int(11)");
  7317. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  7318. entity.Property(e => e.CapFlag).HasColumnType("int(11)");
  7319. entity.Property(e => e.ClearDate).HasColumnType("datetime");
  7320. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7321. entity.Property(e => e.CreateMan)
  7322. .HasColumnType("varchar(50)")
  7323. .HasCharSet("utf8")
  7324. .HasCollation("utf8_general_ci");
  7325. entity.Property(e => e.DirectFlag)
  7326. .HasColumnType("bit(1)")
  7327. .HasDefaultValueSql("b'0'");
  7328. entity.Property(e => e.HelpMonthCount).HasColumnType("int(11)");
  7329. entity.Property(e => e.MerBuddyType).HasColumnType("int(11)");
  7330. entity.Property(e => e.MerHelpFlag)
  7331. .HasColumnType("bit(1)")
  7332. .HasDefaultValueSql("b'0'");
  7333. entity.Property(e => e.MerNo)
  7334. .HasColumnType("varchar(32)")
  7335. .HasCharSet("utf8")
  7336. .HasCollation("utf8_general_ci");
  7337. entity.Property(e => e.MerUserId).HasColumnType("int(11)");
  7338. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  7339. entity.Property(e => e.QrPayFlag).HasColumnType("int(11)");
  7340. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7341. entity.Property(e => e.RecordNo)
  7342. .HasColumnType("varchar(32)")
  7343. .HasCharSet("utf8")
  7344. .HasCollation("utf8_general_ci");
  7345. entity.Property(e => e.Remark)
  7346. .HasColumnType("varchar(64)")
  7347. .HasCharSet("utf8")
  7348. .HasCollation("utf8_general_ci");
  7349. entity.Property(e => e.SeoDescription)
  7350. .HasColumnType("varchar(500)")
  7351. .HasCharSet("utf8")
  7352. .HasCollation("utf8_general_ci");
  7353. entity.Property(e => e.SeoKeyword)
  7354. .HasColumnType("varchar(200)")
  7355. .HasCharSet("utf8")
  7356. .HasCollation("utf8_general_ci");
  7357. entity.Property(e => e.SeoTitle)
  7358. .HasColumnType("varchar(100)")
  7359. .HasCharSet("utf8")
  7360. .HasCollation("utf8_general_ci");
  7361. entity.Property(e => e.SnNo)
  7362. .HasColumnType("varchar(32)")
  7363. .HasCharSet("utf8")
  7364. .HasCollation("utf8_general_ci");
  7365. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7366. entity.Property(e => e.Status).HasColumnType("int(11)");
  7367. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7368. entity.Property(e => e.TradeAmount).HasColumnType("decimal(18,2)");
  7369. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  7370. entity.Property(e => e.TradeSerialNo)
  7371. .HasColumnType("varchar(48)")
  7372. .HasCharSet("utf8")
  7373. .HasCollation("utf8_general_ci");
  7374. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7375. entity.Property(e => e.UpdateMan)
  7376. .HasColumnType("varchar(50)")
  7377. .HasCharSet("utf8")
  7378. .HasCollation("utf8_general_ci");
  7379. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7380. entity.Property(e => e.Version).HasColumnType("int(11)");
  7381. });
  7382. modelBuilder.Entity<UploadParams>(entity =>
  7383. {
  7384. entity.Property(e => e.Id).HasColumnType("int(11)");
  7385. entity.Property(e => e.ColumnEnName)
  7386. .HasColumnType("varchar(50)")
  7387. .HasCharSet("utf8")
  7388. .HasCollation("utf8_general_ci");
  7389. entity.Property(e => e.ColumnName)
  7390. .HasColumnType("varchar(50)")
  7391. .HasCharSet("utf8")
  7392. .HasCollation("utf8_general_ci");
  7393. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7394. entity.Property(e => e.CreateMan)
  7395. .HasColumnType("varchar(50)")
  7396. .HasCharSet("utf8")
  7397. .HasCollation("utf8_general_ci");
  7398. entity.Property(e => e.ParamString)
  7399. .HasColumnType("varchar(200)")
  7400. .HasCharSet("utf8")
  7401. .HasCollation("utf8_general_ci");
  7402. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7403. entity.Property(e => e.SeoDescription)
  7404. .HasColumnType("varchar(500)")
  7405. .HasCharSet("utf8")
  7406. .HasCollation("utf8_general_ci");
  7407. entity.Property(e => e.SeoKeyword)
  7408. .HasColumnType("varchar(200)")
  7409. .HasCharSet("utf8")
  7410. .HasCollation("utf8_general_ci");
  7411. entity.Property(e => e.SeoTitle)
  7412. .HasColumnType("varchar(100)")
  7413. .HasCharSet("utf8")
  7414. .HasCollation("utf8_general_ci");
  7415. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7416. entity.Property(e => e.Status).HasColumnType("int(11)");
  7417. entity.Property(e => e.TableEnName)
  7418. .HasColumnType("varchar(50)")
  7419. .HasCharSet("utf8")
  7420. .HasCollation("utf8_general_ci");
  7421. entity.Property(e => e.TableName)
  7422. .HasColumnType("varchar(50)")
  7423. .HasCharSet("utf8")
  7424. .HasCollation("utf8_general_ci");
  7425. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7426. entity.Property(e => e.UpdateMan)
  7427. .HasColumnType("varchar(50)")
  7428. .HasCharSet("utf8")
  7429. .HasCollation("utf8_general_ci");
  7430. entity.Property(e => e.Version).HasColumnType("int(11)");
  7431. });
  7432. modelBuilder.Entity<UserAccount>(entity =>
  7433. {
  7434. entity.Property(e => e.Id).HasColumnType("int(11)");
  7435. entity.Property(e => e.AccountStatus).HasColumnType("int(11)");
  7436. entity.Property(e => e.BalanceAmount).HasColumnType("decimal(18,2)");
  7437. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7438. entity.Property(e => e.CreateMan)
  7439. .HasColumnType("varchar(50)")
  7440. .HasCharSet("utf8")
  7441. .HasCollation("utf8_general_ci");
  7442. entity.Property(e => e.FreezeAmount).HasColumnType("decimal(18,2)");
  7443. entity.Property(e => e.LockStatus).HasColumnType("int(11)");
  7444. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7445. entity.Property(e => e.SeoDescription)
  7446. .HasColumnType("varchar(500)")
  7447. .HasCharSet("utf8")
  7448. .HasCollation("utf8_general_ci");
  7449. entity.Property(e => e.SeoKeyword)
  7450. .HasColumnType("varchar(200)")
  7451. .HasCharSet("utf8")
  7452. .HasCollation("utf8_general_ci");
  7453. entity.Property(e => e.SeoTitle)
  7454. .HasColumnType("varchar(100)")
  7455. .HasCharSet("utf8")
  7456. .HasCollation("utf8_general_ci");
  7457. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7458. entity.Property(e => e.Status).HasColumnType("int(11)");
  7459. entity.Property(e => e.TeamTotalOverProfit).HasColumnType("decimal(18,2)");
  7460. entity.Property(e => e.TeamTotalProfit).HasColumnType("decimal(18,2)");
  7461. entity.Property(e => e.TeamTotalServiceProfit).HasColumnType("decimal(18,2)");
  7462. entity.Property(e => e.TotalAmount).HasColumnType("decimal(18,2)");
  7463. entity.Property(e => e.TotalOverProfit).HasColumnType("decimal(18,2)");
  7464. entity.Property(e => e.TotalProfit).HasColumnType("decimal(18,2)");
  7465. entity.Property(e => e.TotalServiceProfit).HasColumnType("decimal(18,2)");
  7466. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7467. entity.Property(e => e.UpdateMan)
  7468. .HasColumnType("varchar(50)")
  7469. .HasCharSet("utf8")
  7470. .HasCollation("utf8_general_ci");
  7471. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7472. entity.Property(e => e.UserProperty).HasColumnType("int(11)");
  7473. entity.Property(e => e.UserType).HasColumnType("int(11)");
  7474. entity.Property(e => e.Version).HasColumnType("int(11)");
  7475. entity.Property(e => e.WithdrawAmount).HasColumnType("decimal(18,2)");
  7476. });
  7477. modelBuilder.Entity<UserAccountRecord>(entity =>
  7478. {
  7479. entity.Property(e => e.Id).HasColumnType("int(11)");
  7480. entity.Property(e => e.AfterBalanceAmount).HasColumnType("decimal(18,2)");
  7481. entity.Property(e => e.AfterFreezeAmount).HasColumnType("decimal(18,2)");
  7482. entity.Property(e => e.AfterTotalAmount).HasColumnType("decimal(18,2)");
  7483. entity.Property(e => e.BeforeBalanceAmount).HasColumnType("decimal(18,2)");
  7484. entity.Property(e => e.BeforeFreezeAmount).HasColumnType("decimal(18,2)");
  7485. entity.Property(e => e.BeforeTotalAmount).HasColumnType("decimal(18,2)");
  7486. entity.Property(e => e.ChangeAmount).HasColumnType("decimal(18,2)");
  7487. entity.Property(e => e.ChangeType).HasColumnType("int(11)");
  7488. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7489. entity.Property(e => e.CreateMan)
  7490. .HasColumnType("varchar(50)")
  7491. .HasCharSet("utf8")
  7492. .HasCollation("utf8_general_ci");
  7493. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  7494. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7495. entity.Property(e => e.Remark)
  7496. .HasColumnType("varchar(64)")
  7497. .HasCharSet("utf8")
  7498. .HasCollation("utf8_general_ci");
  7499. entity.Property(e => e.SeoDescription)
  7500. .HasColumnType("varchar(500)")
  7501. .HasCharSet("utf8")
  7502. .HasCollation("utf8_general_ci");
  7503. entity.Property(e => e.SeoKeyword)
  7504. .HasColumnType("varchar(200)")
  7505. .HasCharSet("utf8")
  7506. .HasCollation("utf8_general_ci");
  7507. entity.Property(e => e.SeoTitle)
  7508. .HasColumnType("varchar(100)")
  7509. .HasCharSet("utf8")
  7510. .HasCollation("utf8_general_ci");
  7511. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7512. entity.Property(e => e.Status).HasColumnType("int(11)");
  7513. entity.Property(e => e.TransRecordNo)
  7514. .HasColumnType("varchar(32)")
  7515. .HasCharSet("utf8")
  7516. .HasCollation("utf8_general_ci");
  7517. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7518. entity.Property(e => e.UpdateMan)
  7519. .HasColumnType("varchar(50)")
  7520. .HasCharSet("utf8")
  7521. .HasCollation("utf8_general_ci");
  7522. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7523. entity.Property(e => e.Version).HasColumnType("int(11)");
  7524. });
  7525. modelBuilder.Entity<UserAddress>(entity =>
  7526. {
  7527. entity.Property(e => e.Id).HasColumnType("int(11)");
  7528. entity.Property(e => e.Address)
  7529. .HasColumnType("varchar(100)")
  7530. .HasCharSet("utf8")
  7531. .HasCollation("utf8_general_ci");
  7532. entity.Property(e => e.Areas)
  7533. .HasColumnType("varchar(30)")
  7534. .HasCharSet("utf8")
  7535. .HasCollation("utf8_general_ci");
  7536. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7537. entity.Property(e => e.CreateMan)
  7538. .HasColumnType("varchar(50)")
  7539. .HasCharSet("utf8")
  7540. .HasCollation("utf8_general_ci");
  7541. entity.Property(e => e.IsDefault)
  7542. .HasColumnType("bit(1)")
  7543. .HasDefaultValueSql("b'0'");
  7544. entity.Property(e => e.Mobile)
  7545. .HasColumnType("varchar(11)")
  7546. .HasCharSet("utf8")
  7547. .HasCollation("utf8_general_ci");
  7548. entity.Property(e => e.PostalCode)
  7549. .HasColumnType("varchar(6)")
  7550. .HasCharSet("utf8")
  7551. .HasCollation("utf8_general_ci");
  7552. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7553. entity.Property(e => e.RealName)
  7554. .HasColumnType("varchar(10)")
  7555. .HasCharSet("utf8")
  7556. .HasCollation("utf8_general_ci");
  7557. entity.Property(e => e.SeoDescription)
  7558. .HasColumnType("varchar(500)")
  7559. .HasCharSet("utf8")
  7560. .HasCollation("utf8_general_ci");
  7561. entity.Property(e => e.SeoKeyword)
  7562. .HasColumnType("varchar(200)")
  7563. .HasCharSet("utf8")
  7564. .HasCollation("utf8_general_ci");
  7565. entity.Property(e => e.SeoTitle)
  7566. .HasColumnType("varchar(100)")
  7567. .HasCharSet("utf8")
  7568. .HasCollation("utf8_general_ci");
  7569. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7570. entity.Property(e => e.Status).HasColumnType("int(11)");
  7571. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7572. entity.Property(e => e.UpdateMan)
  7573. .HasColumnType("varchar(50)")
  7574. .HasCharSet("utf8")
  7575. .HasCollation("utf8_general_ci");
  7576. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7577. entity.Property(e => e.Version).HasColumnType("int(11)");
  7578. });
  7579. modelBuilder.Entity<UserAuthRecord>(entity =>
  7580. {
  7581. entity.Property(e => e.Id).HasColumnType("int(11)");
  7582. entity.Property(e => e.AuthType).HasColumnType("int(11)");
  7583. entity.Property(e => e.BankCardAccount)
  7584. .HasColumnType("varchar(32)")
  7585. .HasCharSet("utf8")
  7586. .HasCollation("utf8_general_ci");
  7587. entity.Property(e => e.BankMobile)
  7588. .HasColumnType("varchar(11)")
  7589. .HasCharSet("utf8")
  7590. .HasCollation("utf8_general_ci");
  7591. entity.Property(e => e.BankName)
  7592. .HasColumnType("varchar(64)")
  7593. .HasCharSet("utf8")
  7594. .HasCollation("utf8_general_ci");
  7595. entity.Property(e => e.ChannelCode)
  7596. .HasColumnType("varchar(16)")
  7597. .HasCharSet("utf8")
  7598. .HasCollation("utf8_general_ci");
  7599. entity.Property(e => e.ChannelName)
  7600. .HasColumnType("varchar(32)")
  7601. .HasCharSet("utf8")
  7602. .HasCollation("utf8_general_ci");
  7603. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7604. entity.Property(e => e.CreateMan)
  7605. .HasColumnType("varchar(50)")
  7606. .HasCharSet("utf8")
  7607. .HasCollation("utf8_general_ci");
  7608. entity.Property(e => e.IdcardNo)
  7609. .HasColumnType("varchar(18)")
  7610. .HasCharSet("utf8")
  7611. .HasCollation("utf8_general_ci");
  7612. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7613. entity.Property(e => e.RealName)
  7614. .HasColumnType("varchar(32)")
  7615. .HasCharSet("utf8")
  7616. .HasCollation("utf8_general_ci");
  7617. entity.Property(e => e.ReqData)
  7618. .HasColumnType("varchar(2048)")
  7619. .HasCharSet("utf8")
  7620. .HasCollation("utf8_general_ci");
  7621. entity.Property(e => e.ResData)
  7622. .HasColumnType("varchar(2048)")
  7623. .HasCharSet("utf8")
  7624. .HasCollation("utf8_general_ci");
  7625. entity.Property(e => e.ReturnCode)
  7626. .HasColumnType("varchar(32)")
  7627. .HasCharSet("utf8")
  7628. .HasCollation("utf8_general_ci");
  7629. entity.Property(e => e.ReturnMsg)
  7630. .HasColumnType("varchar(128)")
  7631. .HasCharSet("utf8")
  7632. .HasCollation("utf8_general_ci");
  7633. entity.Property(e => e.SeoDescription)
  7634. .HasColumnType("varchar(500)")
  7635. .HasCharSet("utf8")
  7636. .HasCollation("utf8_general_ci");
  7637. entity.Property(e => e.SeoKeyword)
  7638. .HasColumnType("varchar(200)")
  7639. .HasCharSet("utf8")
  7640. .HasCollation("utf8_general_ci");
  7641. entity.Property(e => e.SeoTitle)
  7642. .HasColumnType("varchar(100)")
  7643. .HasCharSet("utf8")
  7644. .HasCollation("utf8_general_ci");
  7645. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7646. entity.Property(e => e.Status).HasColumnType("int(11)");
  7647. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7648. entity.Property(e => e.UpdateMan)
  7649. .HasColumnType("varchar(50)")
  7650. .HasCharSet("utf8")
  7651. .HasCollation("utf8_general_ci");
  7652. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7653. entity.Property(e => e.Version).HasColumnType("int(11)");
  7654. });
  7655. modelBuilder.Entity<UserBack>(entity =>
  7656. {
  7657. entity.Property(e => e.Id).HasColumnType("int(11)");
  7658. entity.Property(e => e.BackKind).HasColumnType("int(11)");
  7659. entity.Property(e => e.BackStatus).HasColumnType("int(11)");
  7660. entity.Property(e => e.Content)
  7661. .HasColumnType("varchar(100)")
  7662. .HasCharSet("utf8")
  7663. .HasCollation("utf8_general_ci");
  7664. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7665. entity.Property(e => e.CreateMan)
  7666. .HasColumnType("varchar(50)")
  7667. .HasCharSet("utf8")
  7668. .HasCollation("utf8_general_ci");
  7669. entity.Property(e => e.IsPhoneCallBack)
  7670. .HasColumnType("bit(1)")
  7671. .HasDefaultValueSql("b'0'");
  7672. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7673. entity.Property(e => e.ReplyContent)
  7674. .HasColumnType("mediumtext")
  7675. .HasCharSet("utf8")
  7676. .HasCollation("utf8_general_ci");
  7677. entity.Property(e => e.SeoDescription)
  7678. .HasColumnType("varchar(500)")
  7679. .HasCharSet("utf8")
  7680. .HasCollation("utf8_general_ci");
  7681. entity.Property(e => e.SeoKeyword)
  7682. .HasColumnType("varchar(200)")
  7683. .HasCharSet("utf8")
  7684. .HasCollation("utf8_general_ci");
  7685. entity.Property(e => e.SeoTitle)
  7686. .HasColumnType("varchar(100)")
  7687. .HasCharSet("utf8")
  7688. .HasCollation("utf8_general_ci");
  7689. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7690. entity.Property(e => e.Status).HasColumnType("int(11)");
  7691. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7692. entity.Property(e => e.UpdateMan)
  7693. .HasColumnType("varchar(50)")
  7694. .HasCharSet("utf8")
  7695. .HasCollation("utf8_general_ci");
  7696. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7697. entity.Property(e => e.Version).HasColumnType("int(11)");
  7698. });
  7699. modelBuilder.Entity<UserBackKind>(entity =>
  7700. {
  7701. entity.Property(e => e.Id).HasColumnType("int(11)");
  7702. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7703. entity.Property(e => e.CreateMan)
  7704. .HasColumnType("varchar(50)")
  7705. .HasCharSet("utf8")
  7706. .HasCollation("utf8_general_ci");
  7707. entity.Property(e => e.Name)
  7708. .HasColumnType("varchar(50)")
  7709. .HasCharSet("utf8")
  7710. .HasCollation("utf8_general_ci");
  7711. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7712. entity.Property(e => e.SeoDescription)
  7713. .HasColumnType("varchar(500)")
  7714. .HasCharSet("utf8")
  7715. .HasCollation("utf8_general_ci");
  7716. entity.Property(e => e.SeoKeyword)
  7717. .HasColumnType("varchar(200)")
  7718. .HasCharSet("utf8")
  7719. .HasCollation("utf8_general_ci");
  7720. entity.Property(e => e.SeoTitle)
  7721. .HasColumnType("varchar(100)")
  7722. .HasCharSet("utf8")
  7723. .HasCollation("utf8_general_ci");
  7724. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7725. entity.Property(e => e.Status).HasColumnType("int(11)");
  7726. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7727. entity.Property(e => e.UpdateMan)
  7728. .HasColumnType("varchar(50)")
  7729. .HasCharSet("utf8")
  7730. .HasCollation("utf8_general_ci");
  7731. entity.Property(e => e.Version).HasColumnType("int(11)");
  7732. });
  7733. modelBuilder.Entity<UserBalanceTop>(entity =>
  7734. {
  7735. entity.Property(e => e.Id).HasColumnType("int(11)");
  7736. entity.Property(e => e.Balance).HasColumnType("decimal(18,2)");
  7737. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7738. entity.Property(e => e.CreateMan)
  7739. .HasColumnType("varchar(50)")
  7740. .HasCharSet("utf8")
  7741. .HasCollation("utf8_general_ci");
  7742. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7743. entity.Property(e => e.SeoDescription)
  7744. .HasColumnType("varchar(500)")
  7745. .HasCharSet("utf8")
  7746. .HasCollation("utf8_general_ci");
  7747. entity.Property(e => e.SeoKeyword)
  7748. .HasColumnType("varchar(200)")
  7749. .HasCharSet("utf8")
  7750. .HasCollation("utf8_general_ci");
  7751. entity.Property(e => e.SeoTitle)
  7752. .HasColumnType("varchar(100)")
  7753. .HasCharSet("utf8")
  7754. .HasCollation("utf8_general_ci");
  7755. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7756. entity.Property(e => e.StatDate)
  7757. .HasColumnType("varchar(8)")
  7758. .HasCharSet("utf8")
  7759. .HasCollation("utf8_general_ci");
  7760. entity.Property(e => e.StatMonth)
  7761. .HasColumnType("varchar(6)")
  7762. .HasCharSet("utf8")
  7763. .HasCollation("utf8_general_ci");
  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<UserCar>(entity =>
  7774. {
  7775. entity.Property(e => e.Id).HasColumnType("int(11)");
  7776. entity.Property(e => e.BuyCount).HasColumnType("int(11)");
  7777. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7778. entity.Property(e => e.CreateMan)
  7779. .HasColumnType("varchar(50)")
  7780. .HasCharSet("utf8")
  7781. .HasCollation("utf8_general_ci");
  7782. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  7783. entity.Property(e => e.NormId).HasColumnType("int(11)");
  7784. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  7785. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7786. entity.Property(e => e.SeoDescription)
  7787. .HasColumnType("varchar(500)")
  7788. .HasCharSet("utf8")
  7789. .HasCollation("utf8_general_ci");
  7790. entity.Property(e => e.SeoKeyword)
  7791. .HasColumnType("varchar(200)")
  7792. .HasCharSet("utf8")
  7793. .HasCollation("utf8_general_ci");
  7794. entity.Property(e => e.SeoTitle)
  7795. .HasColumnType("varchar(100)")
  7796. .HasCharSet("utf8")
  7797. .HasCollation("utf8_general_ci");
  7798. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7799. entity.Property(e => e.Status).HasColumnType("int(11)");
  7800. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7801. entity.Property(e => e.UpdateMan)
  7802. .HasColumnType("varchar(50)")
  7803. .HasCharSet("utf8")
  7804. .HasCollation("utf8_general_ci");
  7805. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7806. entity.Property(e => e.Version).HasColumnType("int(11)");
  7807. });
  7808. modelBuilder.Entity<UserCardForWeChat>(entity =>
  7809. {
  7810. entity.Property(e => e.Id).HasColumnType("int(11)");
  7811. entity.Property(e => e.BrandName)
  7812. .HasColumnType("varchar(12)")
  7813. .HasCharSet("utf8")
  7814. .HasCollation("utf8_general_ci");
  7815. entity.Property(e => e.CardId)
  7816. .HasColumnType("varchar(50)")
  7817. .HasCharSet("utf8")
  7818. .HasCollation("utf8_general_ci");
  7819. entity.Property(e => e.CardType)
  7820. .HasColumnType("varchar(30)")
  7821. .HasCharSet("utf8")
  7822. .HasCollation("utf8_general_ci");
  7823. entity.Property(e => e.CodeType)
  7824. .HasColumnType("varchar(50)")
  7825. .HasCharSet("utf8")
  7826. .HasCollation("utf8_general_ci");
  7827. entity.Property(e => e.Color)
  7828. .HasColumnType("varchar(20)")
  7829. .HasCharSet("utf8")
  7830. .HasCollation("utf8_general_ci");
  7831. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7832. entity.Property(e => e.CreateMan)
  7833. .HasColumnType("varchar(50)")
  7834. .HasCharSet("utf8")
  7835. .HasCollation("utf8_general_ci");
  7836. entity.Property(e => e.DateType)
  7837. .HasColumnType("varchar(50)")
  7838. .HasCharSet("utf8")
  7839. .HasCollation("utf8_general_ci");
  7840. entity.Property(e => e.Description)
  7841. .HasColumnType("varchar(1024)")
  7842. .HasCharSet("utf8")
  7843. .HasCollation("utf8_general_ci");
  7844. entity.Property(e => e.EnterName)
  7845. .HasColumnType("varchar(15)")
  7846. .HasCharSet("utf8")
  7847. .HasCollation("utf8_general_ci");
  7848. entity.Property(e => e.EnterTips)
  7849. .HasColumnType("varchar(6)")
  7850. .HasCharSet("utf8")
  7851. .HasCollation("utf8_general_ci");
  7852. entity.Property(e => e.EnterUrl)
  7853. .HasColumnType("varchar(200)")
  7854. .HasCharSet("utf8")
  7855. .HasCollation("utf8_general_ci");
  7856. entity.Property(e => e.LogoUrl)
  7857. .HasColumnType("varchar(200)")
  7858. .HasCharSet("utf8")
  7859. .HasCollation("utf8_general_ci");
  7860. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  7861. entity.Property(e => e.Notice)
  7862. .HasColumnType("varchar(16)")
  7863. .HasCharSet("utf8")
  7864. .HasCollation("utf8_general_ci");
  7865. entity.Property(e => e.Prerogative)
  7866. .HasColumnType("varchar(1024)")
  7867. .HasCharSet("utf8")
  7868. .HasCollation("utf8_general_ci");
  7869. entity.Property(e => e.Quantity).HasColumnType("int(11)");
  7870. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  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.Sku)
  7884. .HasColumnType("mediumtext")
  7885. .HasCharSet("utf8")
  7886. .HasCollation("utf8_general_ci");
  7887. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7888. entity.Property(e => e.Status).HasColumnType("int(11)");
  7889. entity.Property(e => e.SupplyBalance)
  7890. .HasColumnType("bit(1)")
  7891. .HasDefaultValueSql("b'0'");
  7892. entity.Property(e => e.SupplyBonus)
  7893. .HasColumnType("bit(1)")
  7894. .HasDefaultValueSql("b'0'");
  7895. entity.Property(e => e.Title)
  7896. .HasColumnType("varchar(9)")
  7897. .HasCharSet("utf8")
  7898. .HasCollation("utf8_general_ci");
  7899. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7900. entity.Property(e => e.UpdateMan)
  7901. .HasColumnType("varchar(50)")
  7902. .HasCharSet("utf8")
  7903. .HasCollation("utf8_general_ci");
  7904. entity.Property(e => e.Version).HasColumnType("int(11)");
  7905. });
  7906. modelBuilder.Entity<UserCardRecord>(entity =>
  7907. {
  7908. entity.Property(e => e.Id).HasColumnType("int(11)");
  7909. entity.Property(e => e.CardId).HasColumnType("int(11)");
  7910. entity.Property(e => e.ConsumerId).HasColumnType("int(11)");
  7911. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7912. entity.Property(e => e.CreateMan)
  7913. .HasColumnType("varchar(50)")
  7914. .HasCharSet("utf8")
  7915. .HasCollation("utf8_general_ci");
  7916. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  7917. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7918. entity.Property(e => e.SeoDescription)
  7919. .HasColumnType("varchar(500)")
  7920. .HasCharSet("utf8")
  7921. .HasCollation("utf8_general_ci");
  7922. entity.Property(e => e.SeoKeyword)
  7923. .HasColumnType("varchar(200)")
  7924. .HasCharSet("utf8")
  7925. .HasCollation("utf8_general_ci");
  7926. entity.Property(e => e.SeoTitle)
  7927. .HasColumnType("varchar(100)")
  7928. .HasCharSet("utf8")
  7929. .HasCollation("utf8_general_ci");
  7930. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7931. entity.Property(e => e.Status).HasColumnType("int(11)");
  7932. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7933. entity.Property(e => e.UpdateMan)
  7934. .HasColumnType("varchar(50)")
  7935. .HasCharSet("utf8")
  7936. .HasCollation("utf8_general_ci");
  7937. entity.Property(e => e.Version).HasColumnType("int(11)");
  7938. });
  7939. modelBuilder.Entity<UserCashRecord>(entity =>
  7940. {
  7941. entity.Property(e => e.Id).HasColumnType("int(11)");
  7942. entity.Property(e => e.ActualTradeAmount).HasColumnType("decimal(18,2)");
  7943. entity.Property(e => e.CashOrderNo)
  7944. .HasColumnType("varchar(32)")
  7945. .HasCharSet("utf8")
  7946. .HasCollation("utf8_general_ci");
  7947. entity.Property(e => e.ChanelName)
  7948. .HasColumnType("varchar(32)")
  7949. .HasCharSet("utf8")
  7950. .HasCollation("utf8_general_ci");
  7951. entity.Property(e => e.ChannelCode)
  7952. .HasColumnType("varchar(16)")
  7953. .HasCharSet("utf8")
  7954. .HasCollation("utf8_general_ci");
  7955. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7956. entity.Property(e => e.CreateMan)
  7957. .HasColumnType("varchar(50)")
  7958. .HasCharSet("utf8")
  7959. .HasCollation("utf8_general_ci");
  7960. entity.Property(e => e.IdCardNo)
  7961. .HasColumnType("varchar(18)")
  7962. .HasCharSet("utf8")
  7963. .HasCollation("utf8_general_ci");
  7964. entity.Property(e => e.Ip)
  7965. .HasColumnType("varchar(15)")
  7966. .HasCharSet("utf8")
  7967. .HasCollation("utf8_general_ci");
  7968. entity.Property(e => e.ManageFee).HasColumnType("decimal(18,2)");
  7969. entity.Property(e => e.MediaSource)
  7970. .HasColumnType("varchar(16)")
  7971. .HasCharSet("utf8")
  7972. .HasCollation("utf8_general_ci");
  7973. entity.Property(e => e.PayTradeNo)
  7974. .HasColumnType("varchar(32)")
  7975. .HasCharSet("utf8")
  7976. .HasCollation("utf8_general_ci");
  7977. entity.Property(e => e.PaymentDate).HasColumnType("datetime");
  7978. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7979. entity.Property(e => e.Remark)
  7980. .HasColumnType("varchar(128)")
  7981. .HasCharSet("utf8")
  7982. .HasCollation("utf8_general_ci");
  7983. entity.Property(e => e.ReqData)
  7984. .HasColumnType("varchar(2048)")
  7985. .HasCharSet("utf8")
  7986. .HasCollation("utf8_general_ci");
  7987. entity.Property(e => e.ResData)
  7988. .HasColumnType("varchar(2048)")
  7989. .HasCharSet("utf8")
  7990. .HasCollation("utf8_general_ci");
  7991. entity.Property(e => e.ReturnCode)
  7992. .HasColumnType("varchar(32)")
  7993. .HasCharSet("utf8")
  7994. .HasCollation("utf8_general_ci");
  7995. entity.Property(e => e.ReturnMsg)
  7996. .HasColumnType("varchar(128)")
  7997. .HasCharSet("utf8")
  7998. .HasCollation("utf8_general_ci");
  7999. entity.Property(e => e.SeoDescription)
  8000. .HasColumnType("varchar(500)")
  8001. .HasCharSet("utf8")
  8002. .HasCollation("utf8_general_ci");
  8003. entity.Property(e => e.SeoKeyword)
  8004. .HasColumnType("varchar(200)")
  8005. .HasCharSet("utf8")
  8006. .HasCollation("utf8_general_ci");
  8007. entity.Property(e => e.SeoTitle)
  8008. .HasColumnType("varchar(100)")
  8009. .HasCharSet("utf8")
  8010. .HasCollation("utf8_general_ci");
  8011. entity.Property(e => e.SettleBankCardNo)
  8012. .HasColumnType("varchar(32)")
  8013. .HasCharSet("utf8")
  8014. .HasCollation("utf8_general_ci");
  8015. entity.Property(e => e.SettleBankName)
  8016. .HasColumnType("varchar(64)")
  8017. .HasCharSet("utf8")
  8018. .HasCollation("utf8_general_ci");
  8019. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8020. entity.Property(e => e.Status).HasColumnType("int(11)");
  8021. entity.Property(e => e.TradeAmount).HasColumnType("decimal(18,2)");
  8022. entity.Property(e => e.TradeFee).HasColumnType("decimal(18,2)");
  8023. entity.Property(e => e.TradeType).HasColumnType("int(11)");
  8024. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8025. entity.Property(e => e.UpdateMan)
  8026. .HasColumnType("varchar(50)")
  8027. .HasCharSet("utf8")
  8028. .HasCollation("utf8_general_ci");
  8029. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8030. entity.Property(e => e.Version).HasColumnType("int(11)");
  8031. });
  8032. modelBuilder.Entity<UserCenterIconList>(entity =>
  8033. {
  8034. entity.Property(e => e.Id).HasColumnType("int(11)");
  8035. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8036. entity.Property(e => e.CreateMan)
  8037. .HasColumnType("varchar(50)")
  8038. .HasCharSet("utf8")
  8039. .HasCollation("utf8_general_ci");
  8040. entity.Property(e => e.Icon)
  8041. .HasColumnType("varchar(200)")
  8042. .HasCharSet("utf8")
  8043. .HasCollation("utf8_general_ci");
  8044. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8045. entity.Property(e => e.SeoDescription)
  8046. .HasColumnType("varchar(500)")
  8047. .HasCharSet("utf8")
  8048. .HasCollation("utf8_general_ci");
  8049. entity.Property(e => e.SeoKeyword)
  8050. .HasColumnType("varchar(200)")
  8051. .HasCharSet("utf8")
  8052. .HasCollation("utf8_general_ci");
  8053. entity.Property(e => e.SeoTitle)
  8054. .HasColumnType("varchar(100)")
  8055. .HasCharSet("utf8")
  8056. .HasCollation("utf8_general_ci");
  8057. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8058. entity.Property(e => e.Status).HasColumnType("int(11)");
  8059. entity.Property(e => e.Title)
  8060. .HasColumnType("varchar(50)")
  8061. .HasCharSet("utf8")
  8062. .HasCollation("utf8_general_ci");
  8063. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8064. entity.Property(e => e.UpdateMan)
  8065. .HasColumnType("varchar(50)")
  8066. .HasCharSet("utf8")
  8067. .HasCollation("utf8_general_ci");
  8068. entity.Property(e => e.Url)
  8069. .HasColumnType("varchar(50)")
  8070. .HasCharSet("utf8")
  8071. .HasCollation("utf8_general_ci");
  8072. entity.Property(e => e.Version).HasColumnType("int(11)");
  8073. });
  8074. modelBuilder.Entity<UserCollection>(entity =>
  8075. {
  8076. entity.Property(e => e.Id).HasColumnType("int(11)");
  8077. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8078. entity.Property(e => e.CreateMan)
  8079. .HasColumnType("varchar(50)")
  8080. .HasCharSet("utf8")
  8081. .HasCollation("utf8_general_ci");
  8082. entity.Property(e => e.DataId).HasColumnType("int(11)");
  8083. entity.Property(e => e.Kind).HasColumnType("int(11)");
  8084. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8085. entity.Property(e => e.SeoDescription)
  8086. .HasColumnType("varchar(500)")
  8087. .HasCharSet("utf8")
  8088. .HasCollation("utf8_general_ci");
  8089. entity.Property(e => e.SeoKeyword)
  8090. .HasColumnType("varchar(200)")
  8091. .HasCharSet("utf8")
  8092. .HasCollation("utf8_general_ci");
  8093. entity.Property(e => e.SeoTitle)
  8094. .HasColumnType("varchar(100)")
  8095. .HasCharSet("utf8")
  8096. .HasCollation("utf8_general_ci");
  8097. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8098. entity.Property(e => e.Status).HasColumnType("int(11)");
  8099. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8100. entity.Property(e => e.UpdateMan)
  8101. .HasColumnType("varchar(50)")
  8102. .HasCharSet("utf8")
  8103. .HasCollation("utf8_general_ci");
  8104. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8105. entity.Property(e => e.Version).HasColumnType("int(11)");
  8106. });
  8107. modelBuilder.Entity<UserData>(entity =>
  8108. {
  8109. entity.HasKey(e => e.UserId)
  8110. .HasName("PRIMARY");
  8111. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8112. entity.Property(e => e.ActiveRewardAmount).HasColumnType("decimal(18,2)");
  8113. entity.Property(e => e.CashFreezeAmt).HasColumnType("decimal(18,2)");
  8114. entity.Property(e => e.CollectionCount).HasColumnType("int(11)");
  8115. entity.Property(e => e.Coupons).HasColumnType("decimal(18,2)");
  8116. entity.Property(e => e.CurMoney).HasColumnType("decimal(18,2)");
  8117. entity.Property(e => e.FansCount).HasColumnType("int(11)");
  8118. entity.Property(e => e.FollowCount).HasColumnType("int(11)");
  8119. entity.Property(e => e.GrowthValue).HasColumnType("int(11)");
  8120. entity.Property(e => e.Integral).HasColumnType("decimal(18,2)");
  8121. entity.Property(e => e.MachineCount).HasColumnType("int(11)");
  8122. entity.Property(e => e.ProfitRewardRate).HasColumnType("decimal(18,2)");
  8123. entity.Property(e => e.SettleAmount).HasColumnType("decimal(18,2)");
  8124. entity.Property(e => e.ToCommentOrderCount).HasColumnType("int(11)");
  8125. entity.Property(e => e.ToPayOrderCount).HasColumnType("int(11)");
  8126. entity.Property(e => e.ToReceiveOrderCount).HasColumnType("int(11)");
  8127. entity.Property(e => e.ToRefundOrderCount).HasColumnType("int(11)");
  8128. entity.Property(e => e.ToSendOrderCount).HasColumnType("int(11)");
  8129. entity.Property(e => e.TotalOrderMoney).HasColumnType("decimal(18,2)");
  8130. entity.Property(e => e.TotalUseIntegral).HasColumnType("decimal(18,2)");
  8131. });
  8132. modelBuilder.Entity<UserDetail>(entity =>
  8133. {
  8134. entity.Property(e => e.Id).HasColumnType("int(11)");
  8135. entity.Property(e => e.AddMan).HasColumnType("int(11)");
  8136. entity.Property(e => e.Birthday).HasColumnType("datetime");
  8137. entity.Property(e => e.CardAddAddress).HasColumnType("int(11)");
  8138. entity.Property(e => e.CardExpireDate).HasColumnType("datetime");
  8139. entity.Property(e => e.EduLevel).HasColumnType("int(11)");
  8140. entity.Property(e => e.Email)
  8141. .HasColumnType("varchar(50)")
  8142. .HasCharSet("utf8")
  8143. .HasCollation("utf8_general_ci");
  8144. entity.Property(e => e.FamilyIncome).HasColumnType("int(11)");
  8145. entity.Property(e => e.Interests)
  8146. .HasColumnType("varchar(200)")
  8147. .HasCharSet("utf8")
  8148. .HasCollation("utf8_general_ci");
  8149. entity.Property(e => e.Note)
  8150. .HasColumnType("longtext")
  8151. .HasCharSet("utf8")
  8152. .HasCollation("utf8_general_ci");
  8153. entity.Property(e => e.OfficePhone)
  8154. .HasColumnType("varchar(50)")
  8155. .HasCharSet("utf8")
  8156. .HasCollation("utf8_general_ci");
  8157. entity.Property(e => e.PostalCode)
  8158. .HasColumnType("varchar(6)")
  8159. .HasCharSet("utf8")
  8160. .HasCollation("utf8_general_ci");
  8161. entity.Property(e => e.PrivatePhone)
  8162. .HasColumnType("varchar(50)")
  8163. .HasCharSet("utf8")
  8164. .HasCollation("utf8_general_ci");
  8165. entity.Property(e => e.ToShopDate).HasColumnType("datetime");
  8166. entity.Property(e => e.TrafficTool).HasColumnType("int(11)");
  8167. entity.Property(e => e.UpdateMan).HasColumnType("int(11)");
  8168. entity.Property(e => e.UserJob).HasColumnType("int(11)");
  8169. });
  8170. modelBuilder.Entity<UserFamilyMember>(entity =>
  8171. {
  8172. entity.Property(e => e.Id).HasColumnType("int(11)");
  8173. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8174. entity.Property(e => e.CreateMan)
  8175. .HasColumnType("varchar(50)")
  8176. .HasCharSet("utf8")
  8177. .HasCollation("utf8_general_ci");
  8178. entity.Property(e => e.IdCardNo)
  8179. .HasColumnType("varchar(18)")
  8180. .HasCharSet("utf8")
  8181. .HasCollation("utf8_general_ci");
  8182. entity.Property(e => e.Job).HasColumnType("int(11)");
  8183. entity.Property(e => e.MemberKind).HasColumnType("int(11)");
  8184. entity.Property(e => e.Mobile)
  8185. .HasColumnType("varchar(11)")
  8186. .HasCharSet("utf8")
  8187. .HasCollation("utf8_general_ci");
  8188. entity.Property(e => e.Name)
  8189. .HasColumnType("varchar(20)")
  8190. .HasCharSet("utf8")
  8191. .HasCollation("utf8_general_ci");
  8192. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  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.Sort).HasColumnType("int(11)");
  8206. entity.Property(e => e.Status).HasColumnType("int(11)");
  8207. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8208. entity.Property(e => e.UpdateMan)
  8209. .HasColumnType("varchar(50)")
  8210. .HasCharSet("utf8")
  8211. .HasCollation("utf8_general_ci");
  8212. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8213. entity.Property(e => e.Version).HasColumnType("int(11)");
  8214. });
  8215. modelBuilder.Entity<UserForMakerCode>(entity =>
  8216. {
  8217. entity.HasKey(e => e.MakerCode)
  8218. .HasName("PRIMARY");
  8219. entity.Property(e => e.MakerCode)
  8220. .HasColumnType("varchar(30)")
  8221. .HasCharSet("utf8")
  8222. .HasCollation("utf8_general_ci");
  8223. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8224. });
  8225. modelBuilder.Entity<UserForMobile>(entity =>
  8226. {
  8227. entity.HasKey(e => e.Mobile)
  8228. .HasName("PRIMARY");
  8229. entity.Property(e => e.Mobile)
  8230. .HasColumnType("varchar(11)")
  8231. .HasCharSet("utf8")
  8232. .HasCollation("utf8_general_ci");
  8233. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8234. });
  8235. modelBuilder.Entity<UserForRealName>(entity =>
  8236. {
  8237. entity.HasKey(e => e.RealName)
  8238. .HasName("PRIMARY");
  8239. entity.Property(e => e.RealName)
  8240. .HasColumnType("varchar(30)")
  8241. .HasCharSet("utf8")
  8242. .HasCollation("utf8_general_ci");
  8243. entity.Property(e => e.UserId)
  8244. .HasColumnType("varchar(100)")
  8245. .HasCharSet("utf8")
  8246. .HasCollation("utf8_general_ci");
  8247. });
  8248. modelBuilder.Entity<UserFriend>(entity =>
  8249. {
  8250. entity.Property(e => e.Id).HasColumnType("int(11)");
  8251. entity.Property(e => e.FriendId).HasColumnType("int(11)");
  8252. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8253. });
  8254. modelBuilder.Entity<UserGroup>(entity =>
  8255. {
  8256. entity.Property(e => e.Id).HasColumnType("int(11)");
  8257. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8258. entity.Property(e => e.CreateMan)
  8259. .HasColumnType("varchar(50)")
  8260. .HasCharSet("utf8")
  8261. .HasCollation("utf8_general_ci");
  8262. entity.Property(e => e.Details)
  8263. .HasColumnType("varchar(200)")
  8264. .HasCharSet("utf8")
  8265. .HasCollation("utf8_general_ci");
  8266. entity.Property(e => e.Name)
  8267. .HasColumnType("varchar(20)")
  8268. .HasCharSet("utf8")
  8269. .HasCollation("utf8_general_ci");
  8270. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8271. entity.Property(e => e.SeoDescription)
  8272. .HasColumnType("varchar(500)")
  8273. .HasCharSet("utf8")
  8274. .HasCollation("utf8_general_ci");
  8275. entity.Property(e => e.SeoKeyword)
  8276. .HasColumnType("varchar(200)")
  8277. .HasCharSet("utf8")
  8278. .HasCollation("utf8_general_ci");
  8279. entity.Property(e => e.SeoTitle)
  8280. .HasColumnType("varchar(100)")
  8281. .HasCharSet("utf8")
  8282. .HasCollation("utf8_general_ci");
  8283. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8284. entity.Property(e => e.Status).HasColumnType("int(11)");
  8285. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8286. entity.Property(e => e.UpdateMan)
  8287. .HasColumnType("varchar(50)")
  8288. .HasCharSet("utf8")
  8289. .HasCollation("utf8_general_ci");
  8290. entity.Property(e => e.Version).HasColumnType("int(11)");
  8291. });
  8292. modelBuilder.Entity<UserLevelSet>(entity =>
  8293. {
  8294. entity.Property(e => e.Id).HasColumnType("int(11)");
  8295. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8296. entity.Property(e => e.CreateMan)
  8297. .HasColumnType("varchar(50)")
  8298. .HasCharSet("utf8")
  8299. .HasCollation("utf8_general_ci");
  8300. entity.Property(e => e.Details)
  8301. .HasColumnType("varchar(200)")
  8302. .HasCharSet("utf8")
  8303. .HasCollation("utf8_general_ci");
  8304. entity.Property(e => e.Name)
  8305. .HasColumnType("varchar(20)")
  8306. .HasCharSet("utf8")
  8307. .HasCollation("utf8_general_ci");
  8308. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8309. entity.Property(e => e.SeoDescription)
  8310. .HasColumnType("varchar(500)")
  8311. .HasCharSet("utf8")
  8312. .HasCollation("utf8_general_ci");
  8313. entity.Property(e => e.SeoKeyword)
  8314. .HasColumnType("varchar(200)")
  8315. .HasCharSet("utf8")
  8316. .HasCollation("utf8_general_ci");
  8317. entity.Property(e => e.SeoTitle)
  8318. .HasColumnType("varchar(100)")
  8319. .HasCharSet("utf8")
  8320. .HasCollation("utf8_general_ci");
  8321. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8322. entity.Property(e => e.Status).HasColumnType("int(11)");
  8323. entity.Property(e => e.UpLevelDays).HasColumnType("int(11)");
  8324. entity.Property(e => e.UpLevelGrowth).HasColumnType("int(11)");
  8325. entity.Property(e => e.UpLevelIntegral).HasColumnType("decimal(10,0)");
  8326. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8327. entity.Property(e => e.UpdateMan)
  8328. .HasColumnType("varchar(50)")
  8329. .HasCharSet("utf8")
  8330. .HasCollation("utf8_general_ci");
  8331. entity.Property(e => e.Version).HasColumnType("int(11)");
  8332. });
  8333. modelBuilder.Entity<UserLoginRecord>(entity =>
  8334. {
  8335. entity.Property(e => e.Id).HasColumnType("int(11)");
  8336. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8337. entity.Property(e => e.CreateMan)
  8338. .HasColumnType("varchar(50)")
  8339. .HasCharSet("utf8")
  8340. .HasCollation("utf8_general_ci");
  8341. entity.Property(e => e.Kind).HasColumnType("int(11)");
  8342. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8343. entity.Property(e => e.SeoDescription)
  8344. .HasColumnType("varchar(500)")
  8345. .HasCharSet("utf8")
  8346. .HasCollation("utf8_general_ci");
  8347. entity.Property(e => e.SeoKeyword)
  8348. .HasColumnType("varchar(200)")
  8349. .HasCharSet("utf8")
  8350. .HasCollation("utf8_general_ci");
  8351. entity.Property(e => e.SeoTitle)
  8352. .HasColumnType("varchar(100)")
  8353. .HasCharSet("utf8")
  8354. .HasCollation("utf8_general_ci");
  8355. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8356. entity.Property(e => e.Status).HasColumnType("int(11)");
  8357. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8358. entity.Property(e => e.UpdateMan)
  8359. .HasColumnType("varchar(50)")
  8360. .HasCharSet("utf8")
  8361. .HasCollation("utf8_general_ci");
  8362. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8363. entity.Property(e => e.Version).HasColumnType("int(11)");
  8364. });
  8365. modelBuilder.Entity<UserMachineData>(entity =>
  8366. {
  8367. entity.HasKey(e => e.IdBrand)
  8368. .HasName("PRIMARY");
  8369. entity.Property(e => e.IdBrand)
  8370. .HasColumnType("varchar(50)")
  8371. .HasCharSet("utf8")
  8372. .HasCollation("utf8_general_ci");
  8373. entity.Property(e => e.ActProfit).HasColumnType("decimal(18,2)");
  8374. entity.Property(e => e.BindCount).HasColumnType("int(11)");
  8375. entity.Property(e => e.DividendsProfit).HasColumnType("decimal(18,2)");
  8376. entity.Property(e => e.FluxProfit).HasColumnType("decimal(18,2)");
  8377. entity.Property(e => e.OpenProfit).HasColumnType("decimal(18,2)");
  8378. entity.Property(e => e.OtherProfit).HasColumnType("decimal(18,2)");
  8379. entity.Property(e => e.TotalMachineCount).HasColumnType("int(11)");
  8380. entity.Property(e => e.TradeProfit).HasColumnType("decimal(18,2)");
  8381. entity.Property(e => e.UnBindCount).HasColumnType("int(11)");
  8382. });
  8383. modelBuilder.Entity<UserMallLargeSn>(entity =>
  8384. {
  8385. entity.Property(e => e.Id).HasColumnType("int(11)");
  8386. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  8387. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8388. entity.Property(e => e.CreateMan)
  8389. .HasColumnType("varchar(50)")
  8390. .HasCharSet("utf8")
  8391. .HasCollation("utf8_general_ci");
  8392. entity.Property(e => e.OrderAmount).HasColumnType("decimal(18,2)");
  8393. entity.Property(e => e.OrderNo)
  8394. .HasColumnType("varchar(32)")
  8395. .HasCharSet("utf8")
  8396. .HasCollation("utf8_general_ci");
  8397. entity.Property(e => e.OrderNum).HasColumnType("int(11)");
  8398. entity.Property(e => e.ProductName)
  8399. .HasColumnType("varchar(32)")
  8400. .HasCharSet("utf8")
  8401. .HasCollation("utf8_general_ci");
  8402. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8403. entity.Property(e => e.Remark)
  8404. .HasColumnType("varchar(64)")
  8405. .HasCharSet("utf8")
  8406. .HasCollation("utf8_general_ci");
  8407. entity.Property(e => e.RuleOrderAmt).HasColumnType("decimal(18,2)");
  8408. entity.Property(e => e.SeoDescription)
  8409. .HasColumnType("varchar(500)")
  8410. .HasCharSet("utf8")
  8411. .HasCollation("utf8_general_ci");
  8412. entity.Property(e => e.SeoKeyword)
  8413. .HasColumnType("varchar(200)")
  8414. .HasCharSet("utf8")
  8415. .HasCollation("utf8_general_ci");
  8416. entity.Property(e => e.SeoTitle)
  8417. .HasColumnType("varchar(100)")
  8418. .HasCharSet("utf8")
  8419. .HasCollation("utf8_general_ci");
  8420. entity.Property(e => e.SnNo)
  8421. .HasColumnType("varchar(32)")
  8422. .HasCharSet("utf8")
  8423. .HasCollation("utf8_general_ci");
  8424. entity.Property(e => e.SnShipDate).HasColumnType("datetime");
  8425. entity.Property(e => e.SnStatus).HasColumnType("int(11)");
  8426. entity.Property(e => e.SnType).HasColumnType("int(11)");
  8427. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8428. entity.Property(e => e.Status).HasColumnType("int(11)");
  8429. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  8430. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8431. entity.Property(e => e.UpdateMan)
  8432. .HasColumnType("varchar(50)")
  8433. .HasCharSet("utf8")
  8434. .HasCollation("utf8_general_ci");
  8435. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8436. entity.Property(e => e.Version).HasColumnType("int(11)");
  8437. });
  8438. modelBuilder.Entity<UserOfflineSignInRecords>(entity =>
  8439. {
  8440. entity.Property(e => e.Id).HasColumnType("int(11)");
  8441. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8442. entity.Property(e => e.CreateMan)
  8443. .HasColumnType("varchar(50)")
  8444. .HasCharSet("utf8")
  8445. .HasCollation("utf8_general_ci");
  8446. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  8447. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8448. entity.Property(e => e.SeoDescription)
  8449. .HasColumnType("varchar(500)")
  8450. .HasCharSet("utf8")
  8451. .HasCollation("utf8_general_ci");
  8452. entity.Property(e => e.SeoKeyword)
  8453. .HasColumnType("varchar(200)")
  8454. .HasCharSet("utf8")
  8455. .HasCollation("utf8_general_ci");
  8456. entity.Property(e => e.SeoTitle)
  8457. .HasColumnType("varchar(100)")
  8458. .HasCharSet("utf8")
  8459. .HasCollation("utf8_general_ci");
  8460. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8461. entity.Property(e => e.Status).HasColumnType("int(11)");
  8462. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8463. entity.Property(e => e.UpdateMan)
  8464. .HasColumnType("varchar(50)")
  8465. .HasCharSet("utf8")
  8466. .HasCollation("utf8_general_ci");
  8467. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8468. entity.Property(e => e.Version).HasColumnType("int(11)");
  8469. });
  8470. modelBuilder.Entity<UserProfit>(entity =>
  8471. {
  8472. entity.Property(e => e.Id).HasColumnType("int(11)");
  8473. entity.Property(e => e.AddOrSubRate).HasColumnType("decimal(18,2)");
  8474. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  8475. entity.Property(e => e.CardType)
  8476. .HasColumnType("varchar(10)")
  8477. .HasCharSet("utf8")
  8478. .HasCollation("utf8_general_ci");
  8479. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8480. entity.Property(e => e.CreateMan)
  8481. .HasColumnType("varchar(50)")
  8482. .HasCharSet("utf8")
  8483. .HasCollation("utf8_general_ci");
  8484. entity.Property(e => e.HelpAddOrSubRate).HasColumnType("decimal(18,2)");
  8485. entity.Property(e => e.HelpProfitPercent).HasColumnType("decimal(18,2)");
  8486. entity.Property(e => e.HelpProfitRate).HasColumnType("decimal(18,2)");
  8487. entity.Property(e => e.HelpProfitRateBase).HasColumnType("decimal(18,2)");
  8488. entity.Property(e => e.ProfitPercent).HasColumnType("decimal(18,2)");
  8489. entity.Property(e => e.ProfitRate).HasColumnType("decimal(18,2)");
  8490. entity.Property(e => e.ProfitRateBase).HasColumnType("decimal(18,2)");
  8491. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8492. entity.Property(e => e.Remark)
  8493. .HasColumnType("varchar(64)")
  8494. .HasCharSet("utf8")
  8495. .HasCollation("utf8_general_ci");
  8496. entity.Property(e => e.SeoDescription)
  8497. .HasColumnType("varchar(500)")
  8498. .HasCharSet("utf8")
  8499. .HasCollation("utf8_general_ci");
  8500. entity.Property(e => e.SeoKeyword)
  8501. .HasColumnType("varchar(200)")
  8502. .HasCharSet("utf8")
  8503. .HasCollation("utf8_general_ci");
  8504. entity.Property(e => e.SeoTitle)
  8505. .HasColumnType("varchar(100)")
  8506. .HasCharSet("utf8")
  8507. .HasCollation("utf8_general_ci");
  8508. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8509. entity.Property(e => e.Status).HasColumnType("int(11)");
  8510. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  8511. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8512. entity.Property(e => e.UpdateMan)
  8513. .HasColumnType("varchar(50)")
  8514. .HasCharSet("utf8")
  8515. .HasCollation("utf8_general_ci");
  8516. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8517. entity.Property(e => e.Version).HasColumnType("int(11)");
  8518. });
  8519. modelBuilder.Entity<UserProfitSet>(entity =>
  8520. {
  8521. entity.Property(e => e.Id).HasColumnType("int(11)");
  8522. entity.Property(e => e.AddOrSubRate).HasColumnType("decimal(18,2)");
  8523. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  8524. entity.Property(e => e.CardType).HasColumnType("int(11)");
  8525. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8526. entity.Property(e => e.CreateMan)
  8527. .HasColumnType("varchar(50)")
  8528. .HasCharSet("utf8")
  8529. .HasCollation("utf8_general_ci");
  8530. entity.Property(e => e.HelpFlag).HasColumnType("int(11)");
  8531. entity.Property(e => e.ProfitPercent).HasColumnType("decimal(18,2)");
  8532. entity.Property(e => e.ProfitRate).HasColumnType("decimal(18,2)");
  8533. entity.Property(e => e.ProfitRateBase).HasColumnType("decimal(18,2)");
  8534. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8535. entity.Property(e => e.Remark)
  8536. .HasColumnType("varchar(64)")
  8537. .HasCharSet("utf8")
  8538. .HasCollation("utf8_general_ci");
  8539. entity.Property(e => e.SeoDescription)
  8540. .HasColumnType("varchar(500)")
  8541. .HasCharSet("utf8")
  8542. .HasCollation("utf8_general_ci");
  8543. entity.Property(e => e.SeoKeyword)
  8544. .HasColumnType("varchar(200)")
  8545. .HasCharSet("utf8")
  8546. .HasCollation("utf8_general_ci");
  8547. entity.Property(e => e.SeoTitle)
  8548. .HasColumnType("varchar(100)")
  8549. .HasCharSet("utf8")
  8550. .HasCollation("utf8_general_ci");
  8551. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8552. entity.Property(e => e.Status).HasColumnType("int(11)");
  8553. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  8554. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8555. entity.Property(e => e.UpdateMan)
  8556. .HasColumnType("varchar(50)")
  8557. .HasCharSet("utf8")
  8558. .HasCollation("utf8_general_ci");
  8559. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8560. entity.Property(e => e.Version).HasColumnType("int(11)");
  8561. });
  8562. modelBuilder.Entity<UserProfitSubsidySummary>(entity =>
  8563. {
  8564. entity.Property(e => e.Id).HasColumnType("int(11)");
  8565. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  8566. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  8567. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8568. entity.Property(e => e.CreateMan)
  8569. .HasColumnType("varchar(50)")
  8570. .HasCharSet("utf8")
  8571. .HasCollation("utf8_general_ci");
  8572. entity.Property(e => e.MgrName)
  8573. .HasColumnType("varchar(32)")
  8574. .HasCharSet("utf8")
  8575. .HasCollation("utf8_general_ci");
  8576. entity.Property(e => e.MgrNo)
  8577. .HasColumnType("varchar(16)")
  8578. .HasCharSet("utf8")
  8579. .HasCollation("utf8_general_ci");
  8580. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8581. entity.Property(e => e.SeoDescription)
  8582. .HasColumnType("varchar(500)")
  8583. .HasCharSet("utf8")
  8584. .HasCollation("utf8_general_ci");
  8585. entity.Property(e => e.SeoKeyword)
  8586. .HasColumnType("varchar(200)")
  8587. .HasCharSet("utf8")
  8588. .HasCollation("utf8_general_ci");
  8589. entity.Property(e => e.SeoTitle)
  8590. .HasColumnType("varchar(100)")
  8591. .HasCharSet("utf8")
  8592. .HasCollation("utf8_general_ci");
  8593. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8594. entity.Property(e => e.Status).HasColumnType("int(11)");
  8595. entity.Property(e => e.SubsidyDirectProfit).HasColumnType("decimal(18,2)");
  8596. entity.Property(e => e.SubsidyJuniorProfit).HasColumnType("decimal(18,2)");
  8597. entity.Property(e => e.SubsidyTotalProfit).HasColumnType("decimal(18,2)");
  8598. entity.Property(e => e.TradeMonth)
  8599. .HasColumnType("varchar(6)")
  8600. .HasCharSet("utf8")
  8601. .HasCollation("utf8_general_ci");
  8602. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8603. entity.Property(e => e.UpdateMan)
  8604. .HasColumnType("varchar(50)")
  8605. .HasCharSet("utf8")
  8606. .HasCollation("utf8_general_ci");
  8607. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8608. entity.Property(e => e.Version).HasColumnType("int(11)");
  8609. });
  8610. modelBuilder.Entity<UserRank>(entity =>
  8611. {
  8612. entity.Property(e => e.Id).HasColumnType("int(11)");
  8613. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8614. entity.Property(e => e.CreateMan)
  8615. .HasColumnType("varchar(50)")
  8616. .HasCharSet("utf8")
  8617. .HasCollation("utf8_general_ci");
  8618. entity.Property(e => e.ExceedVal).HasColumnType("int(11)");
  8619. entity.Property(e => e.NextRank).HasColumnType("int(11)");
  8620. entity.Property(e => e.OperateDate).HasColumnType("datetime");
  8621. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8622. entity.Property(e => e.Rank).HasColumnType("int(11)");
  8623. entity.Property(e => e.SeoDescription)
  8624. .HasColumnType("varchar(500)")
  8625. .HasCharSet("utf8")
  8626. .HasCollation("utf8_general_ci");
  8627. entity.Property(e => e.SeoKeyword)
  8628. .HasColumnType("varchar(200)")
  8629. .HasCharSet("utf8")
  8630. .HasCollation("utf8_general_ci");
  8631. entity.Property(e => e.SeoTitle)
  8632. .HasColumnType("varchar(100)")
  8633. .HasCharSet("utf8")
  8634. .HasCollation("utf8_general_ci");
  8635. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8636. entity.Property(e => e.StatMonth).HasColumnType("int(11)");
  8637. entity.Property(e => e.StatYear).HasColumnType("int(11)");
  8638. entity.Property(e => e.Status).HasColumnType("int(11)");
  8639. entity.Property(e => e.TradeAmt).HasColumnType("decimal(18,2)");
  8640. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8641. entity.Property(e => e.UpdateMan)
  8642. .HasColumnType("varchar(50)")
  8643. .HasCharSet("utf8")
  8644. .HasCollation("utf8_general_ci");
  8645. entity.Property(e => e.UpgradeFlag)
  8646. .HasColumnType("bit(1)")
  8647. .HasDefaultValueSql("b'0'");
  8648. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8649. entity.Property(e => e.Version).HasColumnType("int(11)");
  8650. entity.Property(e => e.WhiteRank).HasColumnType("int(11)");
  8651. });
  8652. modelBuilder.Entity<UserRankWhite>(entity =>
  8653. {
  8654. entity.Property(e => e.Id).HasColumnType("int(11)");
  8655. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8656. entity.Property(e => e.CreateMan)
  8657. .HasColumnType("varchar(50)")
  8658. .HasCharSet("utf8")
  8659. .HasCollation("utf8_general_ci");
  8660. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8661. entity.Property(e => e.Rank).HasColumnType("int(11)");
  8662. entity.Property(e => e.SeoDescription)
  8663. .HasColumnType("varchar(500)")
  8664. .HasCharSet("utf8")
  8665. .HasCollation("utf8_general_ci");
  8666. entity.Property(e => e.SeoKeyword)
  8667. .HasColumnType("varchar(200)")
  8668. .HasCharSet("utf8")
  8669. .HasCollation("utf8_general_ci");
  8670. entity.Property(e => e.SeoTitle)
  8671. .HasColumnType("varchar(100)")
  8672. .HasCharSet("utf8")
  8673. .HasCollation("utf8_general_ci");
  8674. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8675. entity.Property(e => e.Status).HasColumnType("int(11)");
  8676. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8677. entity.Property(e => e.UpdateMan)
  8678. .HasColumnType("varchar(50)")
  8679. .HasCharSet("utf8")
  8680. .HasCollation("utf8_general_ci");
  8681. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8682. entity.Property(e => e.Version).HasColumnType("int(11)");
  8683. });
  8684. modelBuilder.Entity<UserRebateDetail>(entity =>
  8685. {
  8686. entity.Property(e => e.Id).HasColumnType("int(11)");
  8687. entity.Property(e => e.ChannelMerNo)
  8688. .HasColumnType("varchar(32)")
  8689. .HasCharSet("utf8")
  8690. .HasCollation("utf8_general_ci");
  8691. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8692. entity.Property(e => e.CreateMan)
  8693. .HasColumnType("varchar(50)")
  8694. .HasCharSet("utf8")
  8695. .HasCollation("utf8_general_ci");
  8696. entity.Property(e => e.CreditRewardAmount).HasColumnType("decimal(18,2)");
  8697. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  8698. entity.Property(e => e.DebitRewardAmount).HasColumnType("decimal(18,2)");
  8699. entity.Property(e => e.DebitTradeAmt).HasColumnType("decimal(18,2)");
  8700. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  8701. entity.Property(e => e.MgrName)
  8702. .HasColumnType("varchar(32)")
  8703. .HasCharSet("utf8")
  8704. .HasCollation("utf8_general_ci");
  8705. entity.Property(e => e.MgrNo)
  8706. .HasColumnType("varchar(16)")
  8707. .HasCharSet("utf8")
  8708. .HasCollation("utf8_general_ci");
  8709. entity.Property(e => e.ProductName)
  8710. .HasColumnType("varchar(32)")
  8711. .HasCharSet("utf8")
  8712. .HasCollation("utf8_general_ci");
  8713. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  8714. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8715. entity.Property(e => e.RebateMonthCount).HasColumnType("int(11)");
  8716. entity.Property(e => e.RebateRewardNo)
  8717. .HasColumnType("varchar(32)")
  8718. .HasCharSet("utf8")
  8719. .HasCollation("utf8_general_ci");
  8720. entity.Property(e => e.RebateType).HasColumnType("int(11)");
  8721. entity.Property(e => e.Remark)
  8722. .HasColumnType("varchar(64)")
  8723. .HasCharSet("utf8")
  8724. .HasCollation("utf8_general_ci");
  8725. entity.Property(e => e.SeoDescription)
  8726. .HasColumnType("varchar(500)")
  8727. .HasCharSet("utf8")
  8728. .HasCollation("utf8_general_ci");
  8729. entity.Property(e => e.SeoKeyword)
  8730. .HasColumnType("varchar(200)")
  8731. .HasCharSet("utf8")
  8732. .HasCollation("utf8_general_ci");
  8733. entity.Property(e => e.SeoTitle)
  8734. .HasColumnType("varchar(100)")
  8735. .HasCharSet("utf8")
  8736. .HasCollation("utf8_general_ci");
  8737. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8738. entity.Property(e => e.Status).HasColumnType("int(11)");
  8739. entity.Property(e => e.TradeDate)
  8740. .HasColumnType("varchar(8)")
  8741. .HasCharSet("utf8")
  8742. .HasCollation("utf8_general_ci");
  8743. entity.Property(e => e.TradeMonth)
  8744. .HasColumnType("varchar(6)")
  8745. .HasCharSet("utf8")
  8746. .HasCollation("utf8_general_ci");
  8747. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8748. entity.Property(e => e.UpdateMan)
  8749. .HasColumnType("varchar(50)")
  8750. .HasCharSet("utf8")
  8751. .HasCollation("utf8_general_ci");
  8752. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8753. entity.Property(e => e.Version).HasColumnType("int(11)");
  8754. });
  8755. modelBuilder.Entity<UserSnActInfo>(entity =>
  8756. {
  8757. entity.Property(e => e.Id).HasColumnType("int(11)");
  8758. entity.Property(e => e.ActUserId).HasColumnType("int(11)");
  8759. entity.Property(e => e.ActiveStatus).HasColumnType("int(11)");
  8760. entity.Property(e => e.BrandId).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.EffectEndActDate)
  8767. .HasColumnType("varchar(8)")
  8768. .HasCharSet("utf8")
  8769. .HasCollation("utf8_general_ci");
  8770. entity.Property(e => e.EffectEndCycleDate)
  8771. .HasColumnType("varchar(8)")
  8772. .HasCharSet("utf8")
  8773. .HasCollation("utf8_general_ci");
  8774. entity.Property(e => e.EffectStartActDate)
  8775. .HasColumnType("varchar(8)")
  8776. .HasCharSet("utf8")
  8777. .HasCollation("utf8_general_ci");
  8778. entity.Property(e => e.EffectStartCycleDate)
  8779. .HasColumnType("varchar(8)")
  8780. .HasCharSet("utf8")
  8781. .HasCollation("utf8_general_ci");
  8782. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8783. entity.Property(e => e.Remark)
  8784. .HasColumnType("varchar(128)")
  8785. .HasCharSet("utf8")
  8786. .HasCollation("utf8_general_ci");
  8787. entity.Property(e => e.SeoDescription)
  8788. .HasColumnType("varchar(500)")
  8789. .HasCharSet("utf8")
  8790. .HasCollation("utf8_general_ci");
  8791. entity.Property(e => e.SeoKeyword)
  8792. .HasColumnType("varchar(200)")
  8793. .HasCharSet("utf8")
  8794. .HasCollation("utf8_general_ci");
  8795. entity.Property(e => e.SeoTitle)
  8796. .HasColumnType("varchar(100)")
  8797. .HasCharSet("utf8")
  8798. .HasCollation("utf8_general_ci");
  8799. entity.Property(e => e.SnNo)
  8800. .HasColumnType("varchar(32)")
  8801. .HasCharSet("utf8")
  8802. .HasCollation("utf8_general_ci");
  8803. entity.Property(e => e.SnShipDate).HasColumnType("datetime");
  8804. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  8805. entity.Property(e => e.SnType).HasColumnType("int(11)");
  8806. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8807. entity.Property(e => e.SourceShipDate).HasColumnType("datetime");
  8808. entity.Property(e => e.SourceSnNo)
  8809. .HasColumnType("varchar(32)")
  8810. .HasCharSet("utf8")
  8811. .HasCollation("utf8_general_ci");
  8812. entity.Property(e => e.SourceSnType).HasColumnType("int(11)");
  8813. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  8814. entity.Property(e => e.StandardDate)
  8815. .HasColumnType("varchar(8)")
  8816. .HasCharSet("utf8")
  8817. .HasCollation("utf8_general_ci");
  8818. entity.Property(e => e.Status).HasColumnType("int(11)");
  8819. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8820. entity.Property(e => e.UpdateMan)
  8821. .HasColumnType("varchar(50)")
  8822. .HasCharSet("utf8")
  8823. .HasCollation("utf8_general_ci");
  8824. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8825. entity.Property(e => e.Version).HasColumnType("int(11)");
  8826. });
  8827. modelBuilder.Entity<UserSnDelayChange>(entity =>
  8828. {
  8829. entity.Property(e => e.Id).HasColumnType("int(11)");
  8830. entity.Property(e => e.ActivityRuleId).HasColumnType("int(11)");
  8831. entity.Property(e => e.AfterEndCycleDate)
  8832. .HasColumnType("varchar(8)")
  8833. .HasCharSet("utf8")
  8834. .HasCollation("utf8_general_ci");
  8835. entity.Property(e => e.BeforeEndCycleDate)
  8836. .HasColumnType("varchar(8)")
  8837. .HasCharSet("utf8")
  8838. .HasCollation("utf8_general_ci");
  8839. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  8840. entity.Property(e => e.ChangeRecordNo)
  8841. .HasColumnType("varchar(32)")
  8842. .HasCharSet("utf8")
  8843. .HasCollation("utf8_general_ci");
  8844. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8845. entity.Property(e => e.CreateMan)
  8846. .HasColumnType("varchar(50)")
  8847. .HasCharSet("utf8")
  8848. .HasCollation("utf8_general_ci");
  8849. entity.Property(e => e.InitCycleDate)
  8850. .HasColumnType("varchar(8)")
  8851. .HasCharSet("utf8")
  8852. .HasCollation("utf8_general_ci");
  8853. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8854. entity.Property(e => e.RecUserId).HasColumnType("int(11)");
  8855. entity.Property(e => e.Remark)
  8856. .HasColumnType("varchar(128)")
  8857. .HasCharSet("utf8")
  8858. .HasCollation("utf8_general_ci");
  8859. entity.Property(e => e.SeoDescription)
  8860. .HasColumnType("varchar(500)")
  8861. .HasCharSet("utf8")
  8862. .HasCollation("utf8_general_ci");
  8863. entity.Property(e => e.SeoKeyword)
  8864. .HasColumnType("varchar(200)")
  8865. .HasCharSet("utf8")
  8866. .HasCollation("utf8_general_ci");
  8867. entity.Property(e => e.SeoTitle)
  8868. .HasColumnType("varchar(100)")
  8869. .HasCharSet("utf8")
  8870. .HasCollation("utf8_general_ci");
  8871. entity.Property(e => e.SnDelayDay).HasColumnType("int(11)");
  8872. entity.Property(e => e.SnNo)
  8873. .HasColumnType("varchar(32)")
  8874. .HasCharSet("utf8")
  8875. .HasCollation("utf8_general_ci");
  8876. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  8877. entity.Property(e => e.SnType).HasColumnType("int(11)");
  8878. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8879. entity.Property(e => e.SourceSnNo)
  8880. .HasColumnType("varchar(32)")
  8881. .HasCharSet("utf8")
  8882. .HasCollation("utf8_general_ci");
  8883. entity.Property(e => e.SourceSnShipDate).HasColumnType("datetime");
  8884. entity.Property(e => e.SourceSnType).HasColumnType("int(11)");
  8885. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  8886. entity.Property(e => e.Status).HasColumnType("int(11)");
  8887. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8888. entity.Property(e => e.UpdateMan)
  8889. .HasColumnType("varchar(50)")
  8890. .HasCharSet("utf8")
  8891. .HasCollation("utf8_general_ci");
  8892. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8893. entity.Property(e => e.Version).HasColumnType("int(11)");
  8894. });
  8895. modelBuilder.Entity<UserStoreChange>(entity =>
  8896. {
  8897. entity.Property(e => e.Id).HasColumnType("int(11)");
  8898. entity.Property(e => e.ActRewardUserId).HasColumnType("int(11)");
  8899. entity.Property(e => e.ActiveStatus).HasColumnType("int(11)");
  8900. entity.Property(e => e.BindMerchantId).HasColumnType("int(11)");
  8901. entity.Property(e => e.BindStatus).HasColumnType("int(11)");
  8902. entity.Property(e => e.BizBatchNo)
  8903. .HasColumnType("varchar(32)")
  8904. .HasCharSet("utf8")
  8905. .HasCollation("utf8_general_ci");
  8906. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  8907. entity.Property(e => e.BrandType)
  8908. .HasColumnType("varchar(10)")
  8909. .HasCharSet("utf8")
  8910. .HasCollation("utf8_general_ci");
  8911. entity.Property(e => e.ChangeRecordNo)
  8912. .HasColumnType("varchar(32)")
  8913. .HasCharSet("utf8")
  8914. .HasCollation("utf8_general_ci");
  8915. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8916. entity.Property(e => e.CreateMan)
  8917. .HasColumnType("varchar(50)")
  8918. .HasCharSet("utf8")
  8919. .HasCollation("utf8_general_ci");
  8920. entity.Property(e => e.DeviceModel)
  8921. .HasColumnType("varchar(32)")
  8922. .HasCharSet("utf8")
  8923. .HasCollation("utf8_general_ci");
  8924. entity.Property(e => e.DeviceType)
  8925. .HasColumnType("varchar(32)")
  8926. .HasCharSet("utf8")
  8927. .HasCollation("utf8_general_ci");
  8928. entity.Property(e => e.DeviceVendor)
  8929. .HasColumnType("varchar(32)")
  8930. .HasCharSet("utf8")
  8931. .HasCollation("utf8_general_ci");
  8932. entity.Property(e => e.FromDate).HasColumnType("datetime");
  8933. entity.Property(e => e.FromRemark)
  8934. .HasColumnType("varchar(64)")
  8935. .HasCharSet("utf8")
  8936. .HasCollation("utf8_general_ci");
  8937. entity.Property(e => e.FromUserId).HasColumnType("int(11)");
  8938. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8939. entity.Property(e => e.SeoDescription)
  8940. .HasColumnType("varchar(500)")
  8941. .HasCharSet("utf8")
  8942. .HasCollation("utf8_general_ci");
  8943. entity.Property(e => e.SeoKeyword)
  8944. .HasColumnType("varchar(200)")
  8945. .HasCharSet("utf8")
  8946. .HasCollation("utf8_general_ci");
  8947. entity.Property(e => e.SeoTitle)
  8948. .HasColumnType("varchar(100)")
  8949. .HasCharSet("utf8")
  8950. .HasCollation("utf8_general_ci");
  8951. entity.Property(e => e.SnNo)
  8952. .HasColumnType("varchar(32)")
  8953. .HasCharSet("utf8")
  8954. .HasCollation("utf8_general_ci");
  8955. entity.Property(e => e.SnStatus).HasColumnType("int(11)");
  8956. entity.Property(e => e.SnType).HasColumnType("int(11)");
  8957. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8958. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  8959. entity.Property(e => e.Status).HasColumnType("int(11)");
  8960. entity.Property(e => e.StockOpDirect).HasColumnType("int(11)");
  8961. entity.Property(e => e.ToDate).HasColumnType("datetime");
  8962. entity.Property(e => e.ToRemark)
  8963. .HasColumnType("varchar(64)")
  8964. .HasCharSet("utf8")
  8965. .HasCollation("utf8_general_ci");
  8966. entity.Property(e => e.ToStoreId).HasColumnType("int(11)");
  8967. entity.Property(e => e.ToUserId).HasColumnType("int(11)");
  8968. entity.Property(e => e.TransType).HasColumnType("int(11)");
  8969. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8970. entity.Property(e => e.UpdateMan)
  8971. .HasColumnType("varchar(50)")
  8972. .HasCharSet("utf8")
  8973. .HasCollation("utf8_general_ci");
  8974. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8975. entity.Property(e => e.Version).HasColumnType("int(11)");
  8976. });
  8977. modelBuilder.Entity<UserSwapDetail>(entity =>
  8978. {
  8979. entity.Property(e => e.Id).HasColumnType("int(11)");
  8980. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  8981. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8982. entity.Property(e => e.CreateMan)
  8983. .HasColumnType("varchar(50)")
  8984. .HasCharSet("utf8")
  8985. .HasCollation("utf8_general_ci");
  8986. entity.Property(e => e.DirectSnTradeAmt).HasColumnType("decimal(18,2)");
  8987. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8988. entity.Property(e => e.RecordNo)
  8989. .HasColumnType("varchar(32)")
  8990. .HasCharSet("utf8")
  8991. .HasCollation("utf8_general_ci");
  8992. entity.Property(e => e.Remark)
  8993. .HasColumnType("varchar(64)")
  8994. .HasCharSet("utf8")
  8995. .HasCollation("utf8_general_ci");
  8996. entity.Property(e => e.RiskResult).HasColumnType("int(11)");
  8997. entity.Property(e => e.SeoDescription)
  8998. .HasColumnType("varchar(500)")
  8999. .HasCharSet("utf8")
  9000. .HasCollation("utf8_general_ci");
  9001. entity.Property(e => e.SeoKeyword)
  9002. .HasColumnType("varchar(200)")
  9003. .HasCharSet("utf8")
  9004. .HasCollation("utf8_general_ci");
  9005. entity.Property(e => e.SeoTitle)
  9006. .HasColumnType("varchar(100)")
  9007. .HasCharSet("utf8")
  9008. .HasCollation("utf8_general_ci");
  9009. entity.Property(e => e.SnNo)
  9010. .HasColumnType("varchar(32)")
  9011. .HasCharSet("utf8")
  9012. .HasCollation("utf8_general_ci");
  9013. entity.Property(e => e.SnType).HasColumnType("int(11)");
  9014. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9015. entity.Property(e => e.SourceSnNo)
  9016. .HasColumnType("varchar(32)")
  9017. .HasCharSet("utf8")
  9018. .HasCollation("utf8_general_ci");
  9019. entity.Property(e => e.SourceSnType).HasColumnType("int(11)");
  9020. entity.Property(e => e.Status).HasColumnType("int(11)");
  9021. entity.Property(e => e.SwapExtProductTypes)
  9022. .HasColumnType("varchar(16)")
  9023. .HasCharSet("utf8")
  9024. .HasCollation("utf8_general_ci");
  9025. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  9026. entity.Property(e => e.TradeDate)
  9027. .HasColumnType("varchar(8)")
  9028. .HasCharSet("utf8")
  9029. .HasCollation("utf8_general_ci");
  9030. entity.Property(e => e.TradeMonth)
  9031. .HasColumnType("varchar(6)")
  9032. .HasCharSet("utf8")
  9033. .HasCollation("utf8_general_ci");
  9034. entity.Property(e => e.UpSourceSnNo)
  9035. .HasColumnType("varchar(32)")
  9036. .HasCharSet("utf8")
  9037. .HasCollation("utf8_general_ci");
  9038. entity.Property(e => e.UpSourceSnType).HasColumnType("int(11)");
  9039. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9040. entity.Property(e => e.UpdateMan)
  9041. .HasColumnType("varchar(50)")
  9042. .HasCharSet("utf8")
  9043. .HasCollation("utf8_general_ci");
  9044. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9045. entity.Property(e => e.Version).HasColumnType("int(11)");
  9046. });
  9047. modelBuilder.Entity<UserSwapSummary>(entity =>
  9048. {
  9049. entity.Property(e => e.Id).HasColumnType("int(11)");
  9050. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9051. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9052. entity.Property(e => e.CreateMan)
  9053. .HasColumnType("varchar(50)")
  9054. .HasCharSet("utf8")
  9055. .HasCollation("utf8_general_ci");
  9056. entity.Property(e => e.DirAvgTradeAmt).HasColumnType("decimal(18,2)");
  9057. entity.Property(e => e.DirectActMerCount).HasColumnType("int(11)");
  9058. entity.Property(e => e.DirectTradeAmt).HasColumnType("decimal(18,2)");
  9059. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9060. entity.Property(e => e.RiskStatus).HasColumnType("int(11)");
  9061. entity.Property(e => e.RuleId).HasColumnType("int(11)");
  9062. entity.Property(e => e.SeoDescription)
  9063. .HasColumnType("varchar(500)")
  9064. .HasCharSet("utf8")
  9065. .HasCollation("utf8_general_ci");
  9066. entity.Property(e => e.SeoKeyword)
  9067. .HasColumnType("varchar(200)")
  9068. .HasCharSet("utf8")
  9069. .HasCollation("utf8_general_ci");
  9070. entity.Property(e => e.SeoTitle)
  9071. .HasColumnType("varchar(100)")
  9072. .HasCharSet("utf8")
  9073. .HasCollation("utf8_general_ci");
  9074. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9075. entity.Property(e => e.Status).HasColumnType("int(11)");
  9076. entity.Property(e => e.SwapExtProductTypes)
  9077. .HasColumnType("varchar(16)")
  9078. .HasCharSet("utf8")
  9079. .HasCollation("utf8_general_ci");
  9080. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  9081. entity.Property(e => e.TradeMonth)
  9082. .HasColumnType("varchar(6)")
  9083. .HasCharSet("utf8")
  9084. .HasCollation("utf8_general_ci");
  9085. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9086. entity.Property(e => e.UpdateMan)
  9087. .HasColumnType("varchar(50)")
  9088. .HasCharSet("utf8")
  9089. .HasCollation("utf8_general_ci");
  9090. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9091. entity.Property(e => e.Version).HasColumnType("int(11)");
  9092. });
  9093. modelBuilder.Entity<UserSwapWhite>(entity =>
  9094. {
  9095. entity.Property(e => e.Id).HasColumnType("int(11)");
  9096. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9097. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9098. entity.Property(e => e.CreateMan)
  9099. .HasColumnType("varchar(50)")
  9100. .HasCharSet("utf8")
  9101. .HasCollation("utf8_general_ci");
  9102. entity.Property(e => e.EndEffectTime).HasColumnType("datetime");
  9103. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9104. entity.Property(e => e.Remark)
  9105. .HasColumnType("varchar(64)")
  9106. .HasCharSet("utf8")
  9107. .HasCollation("utf8_general_ci");
  9108. entity.Property(e => e.RiskType).HasColumnType("int(11)");
  9109. entity.Property(e => e.SeoDescription)
  9110. .HasColumnType("varchar(500)")
  9111. .HasCharSet("utf8")
  9112. .HasCollation("utf8_general_ci");
  9113. entity.Property(e => e.SeoKeyword)
  9114. .HasColumnType("varchar(200)")
  9115. .HasCharSet("utf8")
  9116. .HasCollation("utf8_general_ci");
  9117. entity.Property(e => e.SeoTitle)
  9118. .HasColumnType("varchar(100)")
  9119. .HasCharSet("utf8")
  9120. .HasCollation("utf8_general_ci");
  9121. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9122. entity.Property(e => e.StartEffectTime).HasColumnType("datetime");
  9123. entity.Property(e => e.Status).HasColumnType("int(11)");
  9124. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9125. entity.Property(e => e.UpdateMan)
  9126. .HasColumnType("varchar(50)")
  9127. .HasCharSet("utf8")
  9128. .HasCollation("utf8_general_ci");
  9129. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9130. entity.Property(e => e.Version).HasColumnType("int(11)");
  9131. });
  9132. modelBuilder.Entity<UserTradeDaySummary>(entity =>
  9133. {
  9134. entity.Property(e => e.Id).HasColumnType("int(11)");
  9135. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9136. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9137. entity.Property(e => e.CreateMan)
  9138. .HasColumnType("varchar(50)")
  9139. .HasCharSet("utf8")
  9140. .HasCollation("utf8_general_ci");
  9141. entity.Property(e => e.DirectDebitCapNum).HasColumnType("int(11)");
  9142. entity.Property(e => e.DirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  9143. entity.Property(e => e.DirectTradeAmt).HasColumnType("decimal(18,2)");
  9144. entity.Property(e => e.NonDirectDebitCapNum).HasColumnType("int(11)");
  9145. entity.Property(e => e.NonDirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  9146. entity.Property(e => e.NonDirectTradeAmt).HasColumnType("decimal(18,2)");
  9147. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9148. entity.Property(e => e.Remark)
  9149. .HasColumnType("varchar(64)")
  9150. .HasCharSet("utf8")
  9151. .HasCollation("utf8_general_ci");
  9152. entity.Property(e => e.SeoDescription)
  9153. .HasColumnType("varchar(500)")
  9154. .HasCharSet("utf8")
  9155. .HasCollation("utf8_general_ci");
  9156. entity.Property(e => e.SeoKeyword)
  9157. .HasColumnType("varchar(200)")
  9158. .HasCharSet("utf8")
  9159. .HasCollation("utf8_general_ci");
  9160. entity.Property(e => e.SeoTitle)
  9161. .HasColumnType("varchar(100)")
  9162. .HasCharSet("utf8")
  9163. .HasCollation("utf8_general_ci");
  9164. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9165. entity.Property(e => e.Status).HasColumnType("int(11)");
  9166. entity.Property(e => e.TradeDate)
  9167. .HasColumnType("varchar(8)")
  9168. .HasCharSet("utf8")
  9169. .HasCollation("utf8_general_ci");
  9170. entity.Property(e => e.TradeMonth)
  9171. .HasColumnType("varchar(6)")
  9172. .HasCharSet("utf8")
  9173. .HasCollation("utf8_general_ci");
  9174. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9175. entity.Property(e => e.UpdateMan)
  9176. .HasColumnType("varchar(50)")
  9177. .HasCharSet("utf8")
  9178. .HasCollation("utf8_general_ci");
  9179. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9180. entity.Property(e => e.Version).HasColumnType("int(11)");
  9181. });
  9182. modelBuilder.Entity<UserTradeMonthSummary>(entity =>
  9183. {
  9184. entity.Property(e => e.Id).HasColumnType("int(11)");
  9185. entity.Property(e => e.ActiveBuddyMerStatus).HasColumnType("int(11)");
  9186. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9187. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9188. entity.Property(e => e.CreateMan)
  9189. .HasColumnType("varchar(50)")
  9190. .HasCharSet("utf8")
  9191. .HasCollation("utf8_general_ci");
  9192. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  9193. entity.Property(e => e.DebitCapTradeAmt).HasColumnType("decimal(18,2)");
  9194. entity.Property(e => e.DebitCapTradeNum).HasColumnType("int(11)");
  9195. entity.Property(e => e.DebitNotCapTradeAmt).HasColumnType("decimal(18,2)");
  9196. entity.Property(e => e.MallPosOrderStatus).HasColumnType("int(11)");
  9197. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9198. entity.Property(e => e.Remark)
  9199. .HasColumnType("varchar(64)")
  9200. .HasCharSet("utf8")
  9201. .HasCollation("utf8_general_ci");
  9202. entity.Property(e => e.SeoDescription)
  9203. .HasColumnType("varchar(500)")
  9204. .HasCharSet("utf8")
  9205. .HasCollation("utf8_general_ci");
  9206. entity.Property(e => e.SeoKeyword)
  9207. .HasColumnType("varchar(200)")
  9208. .HasCharSet("utf8")
  9209. .HasCollation("utf8_general_ci");
  9210. entity.Property(e => e.SeoTitle)
  9211. .HasColumnType("varchar(100)")
  9212. .HasCharSet("utf8")
  9213. .HasCollation("utf8_general_ci");
  9214. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9215. entity.Property(e => e.StatType).HasColumnType("int(11)");
  9216. entity.Property(e => e.Status).HasColumnType("int(11)");
  9217. entity.Property(e => e.TradeAmt).HasColumnType("decimal(18,2)");
  9218. entity.Property(e => e.TradeMonth)
  9219. .HasColumnType("varchar(6)")
  9220. .HasCharSet("utf8")
  9221. .HasCollation("utf8_general_ci");
  9222. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9223. entity.Property(e => e.UpdateMan)
  9224. .HasColumnType("varchar(50)")
  9225. .HasCharSet("utf8")
  9226. .HasCollation("utf8_general_ci");
  9227. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9228. entity.Property(e => e.Version).HasColumnType("int(11)");
  9229. });
  9230. modelBuilder.Entity<Users>(entity =>
  9231. {
  9232. entity.Property(e => e.Id).HasColumnType("int(11)");
  9233. entity.Property(e => e.AccessToken)
  9234. .HasColumnType("varchar(64)")
  9235. .HasCharSet("utf8")
  9236. .HasCollation("utf8_general_ci");
  9237. entity.Property(e => e.ActiveRewardAmount).HasColumnType("decimal(18,2)");
  9238. entity.Property(e => e.Address)
  9239. .HasColumnType("varchar(50)")
  9240. .HasCharSet("utf8")
  9241. .HasCollation("utf8_general_ci");
  9242. entity.Property(e => e.AgentAreas)
  9243. .HasColumnType("varchar(50)")
  9244. .HasCharSet("utf8")
  9245. .HasCollation("utf8_general_ci");
  9246. entity.Property(e => e.AgentLevel).HasColumnType("int(11)");
  9247. entity.Property(e => e.AlipayUserId)
  9248. .HasColumnType("varchar(50)")
  9249. .HasCharSet("utf8")
  9250. .HasCollation("utf8_general_ci");
  9251. entity.Property(e => e.Areas)
  9252. .HasColumnType("varchar(30)")
  9253. .HasCharSet("utf8")
  9254. .HasCollation("utf8_general_ci");
  9255. entity.Property(e => e.AuditStatus).HasColumnType("int(11)");
  9256. entity.Property(e => e.AuthDate).HasColumnType("datetime");
  9257. entity.Property(e => e.AuthFlag)
  9258. .HasColumnType("bit(1)")
  9259. .HasDefaultValueSql("b'0'");
  9260. entity.Property(e => e.BankCardPositiveImage)
  9261. .HasColumnType("varchar(200)")
  9262. .HasCharSet("utf8")
  9263. .HasCollation("utf8_general_ci");
  9264. entity.Property(e => e.CarIds)
  9265. .HasColumnType("varchar(100)")
  9266. .HasCharSet("utf8")
  9267. .HasCollation("utf8_general_ci");
  9268. entity.Property(e => e.CardNo)
  9269. .HasColumnType("varchar(30)")
  9270. .HasCharSet("utf8")
  9271. .HasCollation("utf8_general_ci");
  9272. entity.Property(e => e.CardRecCode)
  9273. .HasColumnType("varchar(200)")
  9274. .HasCharSet("utf8")
  9275. .HasCollation("utf8_general_ci");
  9276. entity.Property(e => e.CashFreezeAmt).HasColumnType("decimal(18,2)");
  9277. entity.Property(e => e.CertFrontImage)
  9278. .HasColumnType("varchar(200)")
  9279. .HasCharSet("utf8")
  9280. .HasCollation("utf8_general_ci");
  9281. entity.Property(e => e.CertId)
  9282. .HasColumnType("varchar(18)")
  9283. .HasCharSet("utf8")
  9284. .HasCollation("utf8_general_ci");
  9285. entity.Property(e => e.CertReverseImage)
  9286. .HasColumnType("varchar(200)")
  9287. .HasCharSet("utf8")
  9288. .HasCollation("utf8_general_ci");
  9289. entity.Property(e => e.CertValidEndDate).HasColumnType("datetime");
  9290. entity.Property(e => e.CertValidStartDate).HasColumnType("datetime");
  9291. entity.Property(e => e.CitySetDate).HasColumnType("datetime");
  9292. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9293. entity.Property(e => e.CreateMan)
  9294. .HasColumnType("varchar(50)")
  9295. .HasCharSet("utf8")
  9296. .HasCollation("utf8_general_ci");
  9297. entity.Property(e => e.DeviceId)
  9298. .HasColumnType("varchar(128)")
  9299. .HasCharSet("utf8")
  9300. .HasCollation("utf8_general_ci");
  9301. entity.Property(e => e.DeviceToken)
  9302. .HasColumnType("varchar(64)")
  9303. .HasCharSet("utf8")
  9304. .HasCollation("utf8_general_ci");
  9305. entity.Property(e => e.ExpiredDate).HasColumnType("datetime");
  9306. entity.Property(e => e.GroupId)
  9307. .HasColumnType("varchar(200)")
  9308. .HasCharSet("utf8")
  9309. .HasCollation("utf8_general_ci");
  9310. entity.Property(e => e.HandCertImage)
  9311. .HasColumnType("varchar(200)")
  9312. .HasCharSet("utf8")
  9313. .HasCollation("utf8_general_ci");
  9314. entity.Property(e => e.HandPwd)
  9315. .HasColumnType("varchar(32)")
  9316. .HasCharSet("utf8")
  9317. .HasCollation("utf8_general_ci");
  9318. entity.Property(e => e.HeadPhoto)
  9319. .HasColumnType("varchar(2000)")
  9320. .HasCharSet("utf8")
  9321. .HasCollation("utf8_general_ci");
  9322. entity.Property(e => e.IdCardEndNo)
  9323. .HasColumnType("varchar(4)")
  9324. .HasCharSet("utf8")
  9325. .HasCollation("utf8_general_ci");
  9326. entity.Property(e => e.IsNewUser)
  9327. .HasColumnType("bit(1)")
  9328. .HasDefaultValueSql("b'0'");
  9329. entity.Property(e => e.LockStatus)
  9330. .HasColumnType("bit(1)")
  9331. .HasDefaultValueSql("b'0'");
  9332. entity.Property(e => e.LoginPwd)
  9333. .HasColumnType("varchar(32)")
  9334. .HasCharSet("utf8")
  9335. .HasCollation("utf8_general_ci");
  9336. entity.Property(e => e.LoginStatus).HasColumnType("int(11)");
  9337. entity.Property(e => e.MakerCode)
  9338. .HasColumnType("varchar(32)")
  9339. .HasCharSet("utf8")
  9340. .HasCollation("utf8_general_ci");
  9341. entity.Property(e => e.MerchantDate).HasColumnType("datetime");
  9342. entity.Property(e => e.MerchantType).HasColumnType("int(11)");
  9343. entity.Property(e => e.Mobile)
  9344. .HasColumnType("varchar(11)")
  9345. .HasCharSet("utf8")
  9346. .HasCollation("utf8_general_ci");
  9347. entity.Property(e => e.NickName)
  9348. .HasColumnType("varchar(300)")
  9349. .HasCharSet("utf8")
  9350. .HasCollation("utf8_general_ci");
  9351. entity.Property(e => e.OpenId)
  9352. .HasColumnType("varchar(50)")
  9353. .HasCharSet("utf8")
  9354. .HasCollation("utf8_general_ci");
  9355. entity.Property(e => e.ParentNav)
  9356. .HasColumnType("longtext")
  9357. .HasCharSet("utf8")
  9358. .HasCollation("utf8_general_ci");
  9359. entity.Property(e => e.ParentUserId).HasColumnType("int(11)");
  9360. entity.Property(e => e.PayPwd)
  9361. .HasColumnType("varchar(32)")
  9362. .HasCharSet("utf8")
  9363. .HasCollation("utf8_general_ci");
  9364. entity.Property(e => e.ProfitRewardRate).HasColumnType("decimal(18,2)");
  9365. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9366. entity.Property(e => e.RealName)
  9367. .HasColumnType("varchar(30)")
  9368. .HasCharSet("utf8")
  9369. .HasCollation("utf8_general_ci");
  9370. entity.Property(e => e.ReferenceCode)
  9371. .HasColumnType("varchar(200)")
  9372. .HasCharSet("utf8")
  9373. .HasCollation("utf8_general_ci");
  9374. entity.Property(e => e.ReferenceQrCode)
  9375. .HasColumnType("varchar(200)")
  9376. .HasCharSet("utf8")
  9377. .HasCollation("utf8_general_ci");
  9378. entity.Property(e => e.ReferralUserId).HasColumnType("int(11)");
  9379. entity.Property(e => e.Remark)
  9380. .HasColumnType("mediumtext")
  9381. .HasCharSet("utf8")
  9382. .HasCollation("utf8_general_ci");
  9383. entity.Property(e => e.RiskFlag)
  9384. .HasColumnType("bit(1)")
  9385. .HasDefaultValueSql("b'0'");
  9386. entity.Property(e => e.RiskRemark)
  9387. .HasColumnType("varchar(64)")
  9388. .HasCharSet("utf8")
  9389. .HasCollation("utf8_general_ci");
  9390. entity.Property(e => e.RreezeRemark)
  9391. .HasColumnType("varchar(64)")
  9392. .HasCharSet("utf8")
  9393. .HasCollation("utf8_general_ci");
  9394. entity.Property(e => e.SeoDescription)
  9395. .HasColumnType("varchar(500)")
  9396. .HasCharSet("utf8")
  9397. .HasCollation("utf8_general_ci");
  9398. entity.Property(e => e.SeoKeyword)
  9399. .HasColumnType("varchar(200)")
  9400. .HasCharSet("utf8")
  9401. .HasCollation("utf8_general_ci");
  9402. entity.Property(e => e.SeoTitle)
  9403. .HasColumnType("varchar(100)")
  9404. .HasCharSet("utf8")
  9405. .HasCollation("utf8_general_ci");
  9406. entity.Property(e => e.SettleAmount).HasColumnType("decimal(18,2)");
  9407. entity.Property(e => e.SettleBankCardName)
  9408. .HasColumnType("varchar(20)")
  9409. .HasCharSet("utf8")
  9410. .HasCollation("utf8_general_ci");
  9411. entity.Property(e => e.SettleBankCardNo)
  9412. .HasColumnType("varchar(32)")
  9413. .HasCharSet("utf8")
  9414. .HasCollation("utf8_general_ci");
  9415. entity.Property(e => e.SettleBankName)
  9416. .HasColumnType("varchar(32)")
  9417. .HasCharSet("utf8")
  9418. .HasCollation("utf8_general_ci");
  9419. entity.Property(e => e.SettleRemark)
  9420. .HasColumnType("varchar(64)")
  9421. .HasCharSet("utf8")
  9422. .HasCollation("utf8_general_ci");
  9423. entity.Property(e => e.Sex).HasColumnType("int(11)");
  9424. entity.Property(e => e.SignImgUrl)
  9425. .HasColumnType("varchar(200)")
  9426. .HasCharSet("utf8")
  9427. .HasCollation("utf8_general_ci");
  9428. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9429. entity.Property(e => e.Status).HasColumnType("int(11)");
  9430. entity.Property(e => e.Tags)
  9431. .HasColumnType("varchar(200)")
  9432. .HasCharSet("utf8")
  9433. .HasCollation("utf8_general_ci");
  9434. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9435. entity.Property(e => e.UpdateMan)
  9436. .HasColumnType("varchar(50)")
  9437. .HasCharSet("utf8")
  9438. .HasCollation("utf8_general_ci");
  9439. entity.Property(e => e.UserLevel).HasColumnType("int(11)");
  9440. entity.Property(e => e.UserProperty).HasColumnType("int(11)");
  9441. entity.Property(e => e.UserType).HasColumnType("int(11)");
  9442. entity.Property(e => e.Version).HasColumnType("int(11)");
  9443. });
  9444. OnModelCreatingPartial(modelBuilder);
  9445. }
  9446. partial void OnModelCreatingPartial(ModelBuilder modelBuilder);
  9447. }
  9448. }