WebCMSEntities.cs 516 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513
  1. using System;
  2. using Microsoft.EntityFrameworkCore;
  3. using Microsoft.EntityFrameworkCore.Metadata;
  4. namespace MySystem.Models
  5. {
  6. public partial class WebCMSEntities : DbContext
  7. {
  8. public WebCMSEntities()
  9. {
  10. }
  11. public WebCMSEntities(DbContextOptions<WebCMSEntities> options)
  12. : base(options)
  13. {
  14. }
  15. public virtual DbSet<ActiveReward> ActiveReward { get; set; }
  16. public virtual DbSet<ActivityEnrolRecord> ActivityEnrolRecord { get; set; }
  17. public virtual DbSet<ActivityInfo> ActivityInfo { get; set; }
  18. public virtual DbSet<ActivityPrizeDetail> ActivityPrizeDetail { get; set; }
  19. public virtual DbSet<Advertisment> Advertisment { get; set; }
  20. public virtual DbSet<AgentLevelSet> AgentLevelSet { get; set; }
  21. public virtual DbSet<AppBottomNavs> AppBottomNavs { get; set; }
  22. public virtual DbSet<AppVersion> AppVersion { get; set; }
  23. public virtual DbSet<AppVideo> AppVideo { get; set; }
  24. public virtual DbSet<AppVideoList> AppVideoList { get; set; }
  25. public virtual DbSet<BankInfo> BankInfo { get; set; }
  26. public virtual DbSet<Col> Col { get; set; }
  27. public virtual DbSet<ConsumerOpenIds> ConsumerOpenIds { get; set; }
  28. public virtual DbSet<ConsumerOrderForNo> ConsumerOrderForNo { get; set; }
  29. public virtual DbSet<ConsumerOrders> ConsumerOrders { get; set; }
  30. public virtual DbSet<ConsumerProfit> ConsumerProfit { get; set; }
  31. public virtual DbSet<Consumers> Consumers { get; set; }
  32. public virtual DbSet<CouponAssignRecords> CouponAssignRecords { get; set; }
  33. public virtual DbSet<Coupons> Coupons { get; set; }
  34. public virtual DbSet<CouponsForUser> CouponsForUser { get; set; }
  35. public virtual DbSet<CustomTagSet> CustomTagSet { get; set; }
  36. public virtual DbSet<ErpCompanys> ErpCompanys { get; set; }
  37. public virtual DbSet<FileUpdateInfo> FileUpdateInfo { get; set; }
  38. public virtual DbSet<FluxProfitDetail> FluxProfitDetail { get; set; }
  39. public virtual DbSet<FluxProfitSummary> FluxProfitSummary { get; set; }
  40. public virtual DbSet<IndexIconList> IndexIconList { get; set; }
  41. public virtual DbSet<KqProductBrand> KqProductBrand { get; set; }
  42. public virtual DbSet<KqProductOrgs> KqProductOrgs { get; set; }
  43. public virtual DbSet<KqProductRuleSet> KqProductRuleSet { get; set; }
  44. public virtual DbSet<KqProducts> KqProducts { get; set; }
  45. public virtual DbSet<MachineApply> MachineApply { get; set; }
  46. public virtual DbSet<MachineApplyDetail> MachineApplyDetail { get; set; }
  47. public virtual DbSet<MachineChange> MachineChange { get; set; }
  48. public virtual DbSet<MachineChangeDetail> MachineChangeDetail { get; set; }
  49. public virtual DbSet<MachineForMerNo> MachineForMerNo { get; set; }
  50. public virtual DbSet<MachineForQrCode> MachineForQrCode { get; set; }
  51. public virtual DbSet<MachineForSnNo> MachineForSnNo { get; set; }
  52. public virtual DbSet<MachineRenew> MachineRenew { get; set; }
  53. public virtual DbSet<MachineReturn> MachineReturn { get; set; }
  54. public virtual DbSet<MenuRight> MenuRight { get; set; }
  55. public virtual DbSet<MerchantAddInfo> MerchantAddInfo { get; set; }
  56. public virtual DbSet<MerchantAdmin> MerchantAdmin { get; set; }
  57. public virtual DbSet<MerchantAuth> MerchantAuth { get; set; }
  58. public virtual DbSet<MerchantClass> MerchantClass { get; set; }
  59. public virtual DbSet<MerchantCol> MerchantCol { get; set; }
  60. public virtual DbSet<MerchantComment> MerchantComment { get; set; }
  61. public virtual DbSet<MerchantForCode> MerchantForCode { get; set; }
  62. public virtual DbSet<MerchantForMobile> MerchantForMobile { get; set; }
  63. public virtual DbSet<MerchantForName> MerchantForName { get; set; }
  64. public virtual DbSet<MerchantInfo> MerchantInfo { get; set; }
  65. public virtual DbSet<MerchantParamSet> MerchantParamSet { get; set; }
  66. public virtual DbSet<MerchantQrCode> MerchantQrCode { get; set; }
  67. public virtual DbSet<MerchantRebateDetail> MerchantRebateDetail { get; set; }
  68. public virtual DbSet<Merchants> Merchants { get; set; }
  69. public virtual DbSet<MobileCodeCheck> MobileCodeCheck { get; set; }
  70. public virtual DbSet<MsgBlackList> MsgBlackList { get; set; }
  71. public virtual DbSet<MsgPersonal> MsgPersonal { get; set; }
  72. public virtual DbSet<MsgPlacard> MsgPlacard { get; set; }
  73. public virtual DbSet<MsgPlacardRead> MsgPlacardRead { get; set; }
  74. public virtual DbSet<MsgPush> MsgPush { get; set; }
  75. public virtual DbSet<MsgSms> MsgSms { get; set; }
  76. public virtual DbSet<MsgSmsSet> MsgSmsSet { get; set; }
  77. public virtual DbSet<MsgTemplate> MsgTemplate { get; set; }
  78. public virtual DbSet<OpenBankCityTable> OpenBankCityTable { get; set; }
  79. public virtual DbSet<OpenBankTable> OpenBankTable { get; set; }
  80. public virtual DbSet<OpenReward> OpenReward { get; set; }
  81. public virtual DbSet<OpenRewardDetail> OpenRewardDetail { get; set; }
  82. public virtual DbSet<OpenSnSnapshot> OpenSnSnapshot { get; set; }
  83. public virtual DbSet<OperateLog> OperateLog { get; set; }
  84. public virtual DbSet<OperateRightList> OperateRightList { get; set; }
  85. public virtual DbSet<OrderForNo> OrderForNo { get; set; }
  86. public virtual DbSet<OrderProduct> OrderProduct { get; set; }
  87. public virtual DbSet<OrderRefund> OrderRefund { get; set; }
  88. public virtual DbSet<OrderRefundReason> OrderRefundReason { get; set; }
  89. public virtual DbSet<Orders> Orders { get; set; }
  90. public virtual DbSet<PageInfo> PageInfo { get; set; }
  91. public virtual DbSet<PageUpdateInfo> PageUpdateInfo { get; set; }
  92. public virtual DbSet<PosMachines> PosMachines { get; set; }
  93. public virtual DbSet<PosMachinesTwo> PosMachinesTwo { get; set; }
  94. public virtual DbSet<PosMerchantInfo> PosMerchantInfo { get; set; }
  95. public virtual DbSet<ProductComment> ProductComment { get; set; }
  96. public virtual DbSet<ProductCommentAgree> ProductCommentAgree { get; set; }
  97. public virtual DbSet<ProductFareAreas> ProductFareAreas { get; set; }
  98. public virtual DbSet<ProductFareTemp> ProductFareTemp { get; set; }
  99. public virtual DbSet<ProductKeys> ProductKeys { get; set; }
  100. public virtual DbSet<ProductNorm> ProductNorm { get; set; }
  101. public virtual DbSet<ProductNormItem> ProductNormItem { get; set; }
  102. public virtual DbSet<ProductNormTemp> ProductNormTemp { get; set; }
  103. public virtual DbSet<Products> Products { get; set; }
  104. public virtual DbSet<ProfitObjectActivations> ProfitObjectActivations { get; set; }
  105. public virtual DbSet<ProfitObjectContinueFloors> ProfitObjectContinueFloors { get; set; }
  106. public virtual DbSet<ProfitObjectFloors> ProfitObjectFloors { get; set; }
  107. public virtual DbSet<ProfitObjectLevelKinds> ProfitObjectLevelKinds { get; set; }
  108. public virtual DbSet<ProfitObjectLevels> ProfitObjectLevels { get; set; }
  109. public virtual DbSet<ProfitObjects> ProfitObjects { get; set; }
  110. public virtual DbSet<ProfitObjectsActiveCheck> ProfitObjectsActiveCheck { get; set; }
  111. public virtual DbSet<ProfitObjectsActiveParams> ProfitObjectsActiveParams { get; set; }
  112. public virtual DbSet<ProfitObjectsActives> ProfitObjectsActives { get; set; }
  113. public virtual DbSet<ProfitObjectsActivesForId> ProfitObjectsActivesForId { get; set; }
  114. public virtual DbSet<ProfitObjectsRule> ProfitObjectsRule { get; set; }
  115. public virtual DbSet<ProfitObjectsRuleDetails> ProfitObjectsRuleDetails { get; set; }
  116. public virtual DbSet<ProfitReceiveRecord> ProfitReceiveRecord { get; set; }
  117. public virtual DbSet<ProfitReceives> ProfitReceives { get; set; }
  118. public virtual DbSet<ProfitRecord> ProfitRecord { get; set; }
  119. public virtual DbSet<ProfitRewardRecord> ProfitRewardRecord { get; set; }
  120. public virtual DbSet<ProfitSubsidyDetail> ProfitSubsidyDetail { get; set; }
  121. public virtual DbSet<PublicAccountSet> PublicAccountSet { get; set; }
  122. public virtual DbSet<PullNewAct> PullNewAct { get; set; }
  123. public virtual DbSet<PullNewDetail> PullNewDetail { get; set; }
  124. public virtual DbSet<PullnewSummary> PullnewSummary { get; set; }
  125. public virtual DbSet<RightDic> RightDic { get; set; }
  126. public virtual DbSet<ServiceCenter> ServiceCenter { get; set; }
  127. public virtual DbSet<StoreBalance> StoreBalance { get; set; }
  128. public virtual DbSet<StoreChangeHistory> StoreChangeHistory { get; set; }
  129. public virtual DbSet<StoreForCode> StoreForCode { get; set; }
  130. public virtual DbSet<StoreForName> StoreForName { get; set; }
  131. public virtual DbSet<StoreHouse> StoreHouse { get; set; }
  132. public virtual DbSet<StoreMallOrderSummary> StoreMallOrderSummary { get; set; }
  133. public virtual DbSet<StoreSnActivateSummary> StoreSnActivateSummary { get; set; }
  134. public virtual DbSet<StoreStockChange> StoreStockChange { get; set; }
  135. public virtual DbSet<StoreSwapSn> StoreSwapSn { get; set; }
  136. public virtual DbSet<SysAdmin> SysAdmin { get; set; }
  137. public virtual DbSet<SysAdminRole> SysAdminRole { get; set; }
  138. public virtual DbSet<SysLog> SysLog { get; set; }
  139. public virtual DbSet<SysRechargeRecord> SysRechargeRecord { get; set; }
  140. public virtual DbSet<SystemSet> SystemSet { get; set; }
  141. public virtual DbSet<TeamApply> TeamApply { get; set; }
  142. public virtual DbSet<TeamApplyForTeamName> TeamApplyForTeamName { get; set; }
  143. public virtual DbSet<TeamApplyForTeamNo> TeamApplyForTeamNo { get; set; }
  144. public virtual DbSet<TeamBlackList> TeamBlackList { get; set; }
  145. public virtual DbSet<TeamConfig> TeamConfig { get; set; }
  146. public virtual DbSet<TeamDayTop> TeamDayTop { get; set; }
  147. public virtual DbSet<TeamOfferApply> TeamOfferApply { get; set; }
  148. public virtual DbSet<TeamPersonDayTop> TeamPersonDayTop { get; set; }
  149. public virtual DbSet<TradeDaySummary> TradeDaySummary { get; set; }
  150. public virtual DbSet<TradeRecord> TradeRecord { get; set; }
  151. public virtual DbSet<UploadParams> UploadParams { get; set; }
  152. public virtual DbSet<UserAccount> UserAccount { get; set; }
  153. public virtual DbSet<UserAccountRecord> UserAccountRecord { get; set; }
  154. public virtual DbSet<UserAddress> UserAddress { get; set; }
  155. public virtual DbSet<UserAuthRecord> UserAuthRecord { get; set; }
  156. public virtual DbSet<UserBack> UserBack { get; set; }
  157. public virtual DbSet<UserBackKind> UserBackKind { get; set; }
  158. public virtual DbSet<UserBalanceTop> UserBalanceTop { get; set; }
  159. public virtual DbSet<UserCar> UserCar { get; set; }
  160. public virtual DbSet<UserCardForWeChat> UserCardForWeChat { get; set; }
  161. public virtual DbSet<UserCardRecord> UserCardRecord { get; set; }
  162. public virtual DbSet<UserCashRecord> UserCashRecord { get; set; }
  163. public virtual DbSet<UserCenterIconList> UserCenterIconList { get; set; }
  164. public virtual DbSet<UserCollection> UserCollection { get; set; }
  165. public virtual DbSet<UserData> UserData { get; set; }
  166. public virtual DbSet<UserDetail> UserDetail { get; set; }
  167. public virtual DbSet<UserFamilyMember> UserFamilyMember { get; set; }
  168. public virtual DbSet<UserForMakerCode> UserForMakerCode { get; set; }
  169. public virtual DbSet<UserForMobile> UserForMobile { get; set; }
  170. public virtual DbSet<UserForRealName> UserForRealName { get; set; }
  171. public virtual DbSet<UserFriend> UserFriend { get; set; }
  172. public virtual DbSet<UserGroup> UserGroup { get; set; }
  173. public virtual DbSet<UserLevelSet> UserLevelSet { get; set; }
  174. public virtual DbSet<UserLoginRecord> UserLoginRecord { get; set; }
  175. public virtual DbSet<UserMachineData> UserMachineData { get; set; }
  176. public virtual DbSet<UserMallLargeSn> UserMallLargeSn { get; set; }
  177. public virtual DbSet<UserOfflineSignInRecords> UserOfflineSignInRecords { get; set; }
  178. public virtual DbSet<UserProfit> UserProfit { get; set; }
  179. public virtual DbSet<UserProfitSet> UserProfitSet { get; set; }
  180. public virtual DbSet<UserProfitSubsidySummary> UserProfitSubsidySummary { get; set; }
  181. public virtual DbSet<UserRank> UserRank { get; set; }
  182. public virtual DbSet<UserRankWhite> UserRankWhite { get; set; }
  183. public virtual DbSet<UserRebateDetail> UserRebateDetail { get; set; }
  184. public virtual DbSet<UserSnActInfo> UserSnActInfo { get; set; }
  185. public virtual DbSet<UserSnDelayChange> UserSnDelayChange { get; set; }
  186. public virtual DbSet<UserStoreChange> UserStoreChange { get; set; }
  187. public virtual DbSet<UserSwapDetail> UserSwapDetail { get; set; }
  188. public virtual DbSet<UserSwapSummary> UserSwapSummary { get; set; }
  189. public virtual DbSet<UserSwapWhite> UserSwapWhite { get; set; }
  190. public virtual DbSet<UserTradeDaySummary> UserTradeDaySummary { get; set; }
  191. public virtual DbSet<UserTradeMonthSummary> UserTradeMonthSummary { get; set; }
  192. public virtual DbSet<Users> Users { get; set; }
  193. protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
  194. {
  195. if (!optionsBuilder.IsConfigured)
  196. {
  197. optionsBuilder.UseMySql(Library.ConfigurationManager.AppSettings["SqlConnStr"].ToString(), x => x.ServerVersion("5.7.17-mysql"));
  198. }
  199. }
  200. protected override void OnModelCreating(ModelBuilder modelBuilder)
  201. {
  202. modelBuilder.Entity<ActiveReward>(entity =>
  203. {
  204. entity.Property(e => e.Id).HasColumnType("int(11)");
  205. entity.Property(e => e.ActDate).HasColumnType("datetime");
  206. entity.Property(e => e.ActType).HasColumnType("int(11)");
  207. entity.Property(e => e.ActTypeDesc)
  208. .HasColumnType("varchar(64)")
  209. .HasCharSet("utf8")
  210. .HasCollation("utf8_general_ci");
  211. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  212. entity.Property(e => e.City)
  213. .HasColumnType("varchar(32)")
  214. .HasCharSet("utf8")
  215. .HasCollation("utf8_general_ci");
  216. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  217. entity.Property(e => e.CreateMan)
  218. .HasColumnType("varchar(50)")
  219. .HasCharSet("utf8")
  220. .HasCollation("utf8_general_ci");
  221. entity.Property(e => e.DirectBuddyNo).HasColumnType("int(11)");
  222. entity.Property(e => e.DivideAmount).HasColumnType("decimal(18,2)");
  223. entity.Property(e => e.KqMerNo)
  224. .HasColumnType("varchar(32)")
  225. .HasCharSet("utf8")
  226. .HasCollation("utf8_general_ci");
  227. entity.Property(e => e.KqSnNo)
  228. .HasColumnType("varchar(32)")
  229. .HasCharSet("utf8")
  230. .HasCollation("utf8_general_ci");
  231. entity.Property(e => e.MerUserId).HasColumnType("int(11)");
  232. entity.Property(e => e.MerUserNav)
  233. .HasColumnType("varchar(200)")
  234. .HasCharSet("utf8")
  235. .HasCollation("utf8_general_ci");
  236. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  237. entity.Property(e => e.ParentParentUserId).HasColumnType("int(11)");
  238. entity.Property(e => e.ParentUserId).HasColumnType("int(11)");
  239. entity.Property(e => e.Province)
  240. .HasColumnType("varchar(32)")
  241. .HasCharSet("utf8")
  242. .HasCollation("utf8_general_ci");
  243. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  244. entity.Property(e => e.Remark)
  245. .HasColumnType("varchar(64)")
  246. .HasCharSet("utf8")
  247. .HasCollation("utf8_general_ci");
  248. entity.Property(e => e.RewardAmount).HasColumnType("decimal(18,2)");
  249. entity.Property(e => e.RewardRef).HasColumnType("int(11)");
  250. entity.Property(e => e.RewardSourceUserId).HasColumnType("int(11)");
  251. entity.Property(e => e.RewardTips)
  252. .HasColumnType("varchar(16)")
  253. .HasCharSet("utf8")
  254. .HasCollation("utf8_general_ci");
  255. entity.Property(e => e.RuleRewardAmount).HasColumnType("decimal(18,2)");
  256. entity.Property(e => e.SeoDescription)
  257. .HasColumnType("varchar(500)")
  258. .HasCharSet("utf8")
  259. .HasCollation("utf8_general_ci");
  260. entity.Property(e => e.SeoKeyword)
  261. .HasColumnType("varchar(200)")
  262. .HasCharSet("utf8")
  263. .HasCollation("utf8_general_ci");
  264. entity.Property(e => e.SeoTitle)
  265. .HasColumnType("varchar(100)")
  266. .HasCharSet("utf8")
  267. .HasCollation("utf8_general_ci");
  268. entity.Property(e => e.SnApplyUserId).HasColumnType("int(11)");
  269. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  270. entity.Property(e => e.SnType).HasColumnType("int(11)");
  271. entity.Property(e => e.Sort).HasColumnType("int(11)");
  272. entity.Property(e => e.StandardDate).HasColumnType("datetime");
  273. entity.Property(e => e.Status).HasColumnType("int(11)");
  274. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  275. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  276. entity.Property(e => e.UpdateMan)
  277. .HasColumnType("varchar(50)")
  278. .HasCharSet("utf8")
  279. .HasCollation("utf8_general_ci");
  280. entity.Property(e => e.UserId).HasColumnType("int(11)");
  281. entity.Property(e => e.UserNav)
  282. .HasColumnType("varchar(200)")
  283. .HasCharSet("utf8")
  284. .HasCollation("utf8_general_ci");
  285. entity.Property(e => e.Version).HasColumnType("int(11)");
  286. });
  287. modelBuilder.Entity<ActivityEnrolRecord>(entity =>
  288. {
  289. entity.Property(e => e.Id).HasColumnType("int(11)");
  290. entity.Property(e => e.ActId).HasColumnType("int(11)");
  291. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  292. entity.Property(e => e.CreateMan)
  293. .HasColumnType("varchar(50)")
  294. .HasCharSet("utf8")
  295. .HasCollation("utf8_general_ci");
  296. entity.Property(e => e.EffectEndTime)
  297. .HasColumnType("varchar(8)")
  298. .HasCharSet("utf8")
  299. .HasCollation("utf8_general_ci");
  300. entity.Property(e => e.EffectStartTime)
  301. .HasColumnType("varchar(8)")
  302. .HasCharSet("utf8")
  303. .HasCollation("utf8_general_ci");
  304. entity.Property(e => e.EnrolMonth)
  305. .HasColumnType("varchar(80)")
  306. .HasCharSet("utf8")
  307. .HasCollation("utf8_general_ci");
  308. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  309. entity.Property(e => e.SeoDescription)
  310. .HasColumnType("varchar(500)")
  311. .HasCharSet("utf8")
  312. .HasCollation("utf8_general_ci");
  313. entity.Property(e => e.SeoKeyword)
  314. .HasColumnType("varchar(200)")
  315. .HasCharSet("utf8")
  316. .HasCollation("utf8_general_ci");
  317. entity.Property(e => e.SeoTitle)
  318. .HasColumnType("varchar(100)")
  319. .HasCharSet("utf8")
  320. .HasCollation("utf8_general_ci");
  321. entity.Property(e => e.Sort).HasColumnType("int(11)");
  322. entity.Property(e => e.Status).HasColumnType("int(11)");
  323. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  324. entity.Property(e => e.UpdateMan)
  325. .HasColumnType("varchar(50)")
  326. .HasCharSet("utf8")
  327. .HasCollation("utf8_general_ci");
  328. entity.Property(e => e.UserId).HasColumnType("int(11)");
  329. entity.Property(e => e.Version).HasColumnType("int(11)");
  330. });
  331. modelBuilder.Entity<ActivityInfo>(entity =>
  332. {
  333. entity.Property(e => e.Id).HasColumnType("int(11)");
  334. entity.Property(e => e.ActBanner)
  335. .HasColumnType("varchar(200)")
  336. .HasCharSet("utf8")
  337. .HasCollation("utf8_general_ci");
  338. entity.Property(e => e.ActCode)
  339. .HasColumnType("varchar(32)")
  340. .HasCharSet("utf8")
  341. .HasCollation("utf8_general_ci");
  342. entity.Property(e => e.ActContent)
  343. .HasColumnType("longtext")
  344. .HasCharSet("utf8")
  345. .HasCollation("utf8_general_ci");
  346. entity.Property(e => e.ActName)
  347. .HasColumnType("varchar(128)")
  348. .HasCharSet("utf8")
  349. .HasCollation("utf8_general_ci");
  350. entity.Property(e => e.ActReferUrl)
  351. .HasColumnType("varchar(255)")
  352. .HasCharSet("utf8")
  353. .HasCollation("utf8_general_ci");
  354. entity.Property(e => e.ActType).HasColumnType("int(11)");
  355. entity.Property(e => e.BrandId)
  356. .HasColumnType("varchar(100)")
  357. .HasCharSet("utf8")
  358. .HasCollation("utf8_general_ci");
  359. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  360. entity.Property(e => e.CreateMan)
  361. .HasColumnType("varchar(50)")
  362. .HasCharSet("utf8")
  363. .HasCollation("utf8_general_ci");
  364. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  365. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  366. entity.Property(e => e.EnrolEndDate).HasColumnType("datetime");
  367. entity.Property(e => e.EnrolEndTime)
  368. .HasColumnType("varchar(8)")
  369. .HasCharSet("utf8")
  370. .HasCollation("utf8_general_ci");
  371. entity.Property(e => e.EnrolStartDate).HasColumnType("datetime");
  372. entity.Property(e => e.EnrolStartTime)
  373. .HasColumnType("varchar(8)")
  374. .HasCharSet("utf8")
  375. .HasCollation("utf8_general_ci");
  376. entity.Property(e => e.IsTop).HasColumnType("int(11)");
  377. entity.Property(e => e.LimitTopBuddy)
  378. .HasColumnType("varchar(255)")
  379. .HasCharSet("utf8")
  380. .HasCollation("utf8_general_ci");
  381. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  382. entity.Property(e => e.Remark)
  383. .HasColumnType("varchar(128)")
  384. .HasCharSet("utf8")
  385. .HasCollation("utf8_general_ci");
  386. entity.Property(e => e.SeoDescription)
  387. .HasColumnType("varchar(500)")
  388. .HasCharSet("utf8")
  389. .HasCollation("utf8_general_ci");
  390. entity.Property(e => e.SeoKeyword)
  391. .HasColumnType("varchar(200)")
  392. .HasCharSet("utf8")
  393. .HasCollation("utf8_general_ci");
  394. entity.Property(e => e.SeoTitle)
  395. .HasColumnType("varchar(100)")
  396. .HasCharSet("utf8")
  397. .HasCollation("utf8_general_ci");
  398. entity.Property(e => e.Sort).HasColumnType("int(11)");
  399. entity.Property(e => e.Status).HasColumnType("int(11)");
  400. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  401. entity.Property(e => e.UpdateMan)
  402. .HasColumnType("varchar(50)")
  403. .HasCharSet("utf8")
  404. .HasCollation("utf8_general_ci");
  405. entity.Property(e => e.Version).HasColumnType("int(11)");
  406. });
  407. modelBuilder.Entity<ActivityPrizeDetail>(entity =>
  408. {
  409. entity.Property(e => e.Id).HasColumnType("int(11)");
  410. entity.Property(e => e.ActRewardAmt).HasColumnType("decimal(18,2)");
  411. entity.Property(e => e.ActivityId).HasColumnType("int(11)");
  412. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  413. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  414. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  415. entity.Property(e => e.CreateMan)
  416. .HasColumnType("varchar(50)")
  417. .HasCharSet("utf8")
  418. .HasCollation("utf8_general_ci");
  419. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  420. entity.Property(e => e.OtherProdCreditTradeAmt).HasColumnType("decimal(18,2)");
  421. entity.Property(e => e.ProfitRate).HasColumnType("decimal(18,2)");
  422. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  423. entity.Property(e => e.SeoDescription)
  424. .HasColumnType("varchar(500)")
  425. .HasCharSet("utf8")
  426. .HasCollation("utf8_general_ci");
  427. entity.Property(e => e.SeoKeyword)
  428. .HasColumnType("varchar(200)")
  429. .HasCharSet("utf8")
  430. .HasCollation("utf8_general_ci");
  431. entity.Property(e => e.SeoTitle)
  432. .HasColumnType("varchar(100)")
  433. .HasCharSet("utf8")
  434. .HasCollation("utf8_general_ci");
  435. entity.Property(e => e.Sort).HasColumnType("int(11)");
  436. entity.Property(e => e.Status).HasColumnType("int(11)");
  437. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  438. entity.Property(e => e.TradeAmt).HasColumnType("decimal(18,2)");
  439. entity.Property(e => e.TradeMonth)
  440. .HasColumnType("varchar(6)")
  441. .HasCharSet("utf8")
  442. .HasCollation("utf8_general_ci");
  443. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  444. entity.Property(e => e.UpdateMan)
  445. .HasColumnType("varchar(50)")
  446. .HasCharSet("utf8")
  447. .HasCollation("utf8_general_ci");
  448. entity.Property(e => e.UserId).HasColumnType("int(11)");
  449. entity.Property(e => e.Version).HasColumnType("int(11)");
  450. });
  451. modelBuilder.Entity<Advertisment>(entity =>
  452. {
  453. entity.Property(e => e.Id).HasColumnType("int(11)");
  454. entity.Property(e => e.ColId)
  455. .HasColumnType("varchar(30)")
  456. .HasCharSet("utf8")
  457. .HasCollation("utf8_general_ci");
  458. entity.Property(e => e.Contents)
  459. .HasColumnType("longtext")
  460. .HasCharSet("utf8")
  461. .HasCollation("utf8_general_ci");
  462. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  463. entity.Property(e => e.CreateMan)
  464. .HasColumnType("varchar(50)")
  465. .HasCharSet("utf8")
  466. .HasCollation("utf8_general_ci");
  467. entity.Property(e => e.PicPath)
  468. .HasColumnType("varchar(200)")
  469. .HasCharSet("utf8")
  470. .HasCollation("utf8_general_ci");
  471. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  472. entity.Property(e => e.SeoDescription)
  473. .HasColumnType("varchar(500)")
  474. .HasCharSet("utf8")
  475. .HasCollation("utf8_general_ci");
  476. entity.Property(e => e.SeoKeyword)
  477. .HasColumnType("varchar(200)")
  478. .HasCharSet("utf8")
  479. .HasCollation("utf8_general_ci");
  480. entity.Property(e => e.SeoTitle)
  481. .HasColumnType("varchar(100)")
  482. .HasCharSet("utf8")
  483. .HasCollation("utf8_general_ci");
  484. entity.Property(e => e.Sort).HasColumnType("int(11)");
  485. entity.Property(e => e.Status).HasColumnType("int(11)");
  486. entity.Property(e => e.Title)
  487. .HasColumnType("varchar(50)")
  488. .HasCharSet("utf8")
  489. .HasCollation("utf8_general_ci");
  490. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  491. entity.Property(e => e.UpdateMan)
  492. .HasColumnType("varchar(50)")
  493. .HasCharSet("utf8")
  494. .HasCollation("utf8_general_ci");
  495. entity.Property(e => e.Url)
  496. .HasColumnType("longtext")
  497. .HasCharSet("utf8")
  498. .HasCollation("utf8_general_ci");
  499. entity.Property(e => e.Version).HasColumnType("int(11)");
  500. });
  501. modelBuilder.Entity<AgentLevelSet>(entity =>
  502. {
  503. entity.Property(e => e.Id).HasColumnType("int(11)");
  504. entity.Property(e => e.AreasProfitPercent).HasColumnType("decimal(18,2)");
  505. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  506. entity.Property(e => e.CreateMan)
  507. .HasColumnType("varchar(50)")
  508. .HasCharSet("utf8")
  509. .HasCollation("utf8_general_ci");
  510. entity.Property(e => e.LevelDiff)
  511. .HasColumnType("bit(1)")
  512. .HasDefaultValueSql("b'0'");
  513. entity.Property(e => e.Name)
  514. .HasColumnType("varchar(50)")
  515. .HasCharSet("utf8")
  516. .HasCollation("utf8_general_ci");
  517. entity.Property(e => e.ProfitPercent).HasColumnType("decimal(18,2)");
  518. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  519. entity.Property(e => e.SeoDescription)
  520. .HasColumnType("varchar(500)")
  521. .HasCharSet("utf8")
  522. .HasCollation("utf8_general_ci");
  523. entity.Property(e => e.SeoKeyword)
  524. .HasColumnType("varchar(200)")
  525. .HasCharSet("utf8")
  526. .HasCollation("utf8_general_ci");
  527. entity.Property(e => e.SeoTitle)
  528. .HasColumnType("varchar(100)")
  529. .HasCharSet("utf8")
  530. .HasCollation("utf8_general_ci");
  531. entity.Property(e => e.Sort).HasColumnType("int(11)");
  532. entity.Property(e => e.Status).HasColumnType("int(11)");
  533. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  534. entity.Property(e => e.UpdateMan)
  535. .HasColumnType("varchar(50)")
  536. .HasCharSet("utf8")
  537. .HasCollation("utf8_general_ci");
  538. entity.Property(e => e.Version).HasColumnType("int(11)");
  539. });
  540. modelBuilder.Entity<AppBottomNavs>(entity =>
  541. {
  542. entity.Property(e => e.Id).HasColumnType("int(11)");
  543. entity.Property(e => e.BgColor)
  544. .HasColumnType("varchar(6)")
  545. .HasCharSet("utf8")
  546. .HasCollation("utf8_general_ci");
  547. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  548. entity.Property(e => e.CreateMan)
  549. .HasColumnType("varchar(50)")
  550. .HasCharSet("utf8")
  551. .HasCollation("utf8_general_ci");
  552. entity.Property(e => e.NoPageHint)
  553. .HasColumnType("varchar(50)")
  554. .HasCharSet("utf8")
  555. .HasCollation("utf8_general_ci");
  556. entity.Property(e => e.NormalIcon)
  557. .HasColumnType("varchar(200)")
  558. .HasCharSet("utf8")
  559. .HasCollation("utf8_general_ci");
  560. entity.Property(e => e.NormalTextColor)
  561. .HasColumnType("varchar(6)")
  562. .HasCharSet("utf8")
  563. .HasCollation("utf8_general_ci");
  564. entity.Property(e => e.PageName)
  565. .HasColumnType("varchar(50)")
  566. .HasCharSet("utf8")
  567. .HasCollation("utf8_general_ci");
  568. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  569. entity.Property(e => e.SelectIcon)
  570. .HasColumnType("varchar(200)")
  571. .HasCharSet("utf8")
  572. .HasCollation("utf8_general_ci");
  573. entity.Property(e => e.SelectTextColor)
  574. .HasColumnType("varchar(6)")
  575. .HasCharSet("utf8")
  576. .HasCollation("utf8_general_ci");
  577. entity.Property(e => e.SeoDescription)
  578. .HasColumnType("varchar(500)")
  579. .HasCharSet("utf8")
  580. .HasCollation("utf8_general_ci");
  581. entity.Property(e => e.SeoKeyword)
  582. .HasColumnType("varchar(200)")
  583. .HasCharSet("utf8")
  584. .HasCollation("utf8_general_ci");
  585. entity.Property(e => e.SeoTitle)
  586. .HasColumnType("varchar(100)")
  587. .HasCharSet("utf8")
  588. .HasCollation("utf8_general_ci");
  589. entity.Property(e => e.Sort).HasColumnType("int(11)");
  590. entity.Property(e => e.Status).HasColumnType("int(11)");
  591. entity.Property(e => e.Title)
  592. .HasColumnType("varchar(10)")
  593. .HasCharSet("utf8")
  594. .HasCollation("utf8_general_ci");
  595. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  596. entity.Property(e => e.UpdateMan)
  597. .HasColumnType("varchar(50)")
  598. .HasCharSet("utf8")
  599. .HasCollation("utf8_general_ci");
  600. entity.Property(e => e.Version).HasColumnType("int(11)");
  601. });
  602. modelBuilder.Entity<AppVersion>(entity =>
  603. {
  604. entity.Property(e => e.Id).HasColumnType("int(11)");
  605. entity.Property(e => e.CancelText)
  606. .HasColumnType("varchar(10)")
  607. .HasCharSet("utf8")
  608. .HasCollation("utf8_general_ci");
  609. entity.Property(e => e.ConfirmText)
  610. .HasColumnType("varchar(10)")
  611. .HasCharSet("utf8")
  612. .HasCollation("utf8_general_ci");
  613. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  614. entity.Property(e => e.CreateMan)
  615. .HasColumnType("varchar(50)")
  616. .HasCharSet("utf8")
  617. .HasCollation("utf8_general_ci");
  618. entity.Property(e => e.DownloadUrl)
  619. .HasColumnType("varchar(500)")
  620. .HasCharSet("utf8")
  621. .HasCollation("utf8_general_ci");
  622. entity.Property(e => e.Info)
  623. .HasColumnType("varchar(200)")
  624. .HasCharSet("utf8")
  625. .HasCollation("utf8_general_ci");
  626. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  627. entity.Property(e => e.SeoDescription)
  628. .HasColumnType("varchar(500)")
  629. .HasCharSet("utf8")
  630. .HasCollation("utf8_general_ci");
  631. entity.Property(e => e.SeoKeyword)
  632. .HasColumnType("varchar(200)")
  633. .HasCharSet("utf8")
  634. .HasCollation("utf8_general_ci");
  635. entity.Property(e => e.SeoTitle)
  636. .HasColumnType("varchar(100)")
  637. .HasCharSet("utf8")
  638. .HasCollation("utf8_general_ci");
  639. entity.Property(e => e.Sort).HasColumnType("int(11)");
  640. entity.Property(e => e.Status).HasColumnType("int(11)");
  641. entity.Property(e => e.TerminalKind)
  642. .HasColumnType("varchar(10)")
  643. .HasCharSet("utf8")
  644. .HasCollation("utf8_general_ci");
  645. entity.Property(e => e.Title)
  646. .HasColumnType("varchar(50)")
  647. .HasCharSet("utf8")
  648. .HasCollation("utf8_general_ci");
  649. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  650. entity.Property(e => e.UpdateMan)
  651. .HasColumnType("varchar(50)")
  652. .HasCharSet("utf8")
  653. .HasCollation("utf8_general_ci");
  654. entity.Property(e => e.Version).HasColumnType("int(11)");
  655. entity.Property(e => e.VersionNum)
  656. .HasColumnType("varchar(20)")
  657. .HasCharSet("utf8")
  658. .HasCollation("utf8_general_ci");
  659. });
  660. modelBuilder.Entity<AppVideo>(entity =>
  661. {
  662. entity.Property(e => e.Id).HasColumnType("int(11)");
  663. entity.Property(e => e.BannerPic)
  664. .HasColumnType("varchar(200)")
  665. .HasCharSet("utf8")
  666. .HasCollation("utf8_general_ci");
  667. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  668. entity.Property(e => e.CreateMan)
  669. .HasColumnType("varchar(50)")
  670. .HasCharSet("utf8")
  671. .HasCollation("utf8_general_ci");
  672. entity.Property(e => e.Name)
  673. .HasColumnType("varchar(50)")
  674. .HasCharSet("utf8")
  675. .HasCollation("utf8_general_ci");
  676. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  677. entity.Property(e => e.Remark)
  678. .HasColumnType("varchar(200)")
  679. .HasCharSet("utf8")
  680. .HasCollation("utf8_general_ci");
  681. entity.Property(e => e.SeoDescription)
  682. .HasColumnType("varchar(500)")
  683. .HasCharSet("utf8")
  684. .HasCollation("utf8_general_ci");
  685. entity.Property(e => e.SeoKeyword)
  686. .HasColumnType("varchar(200)")
  687. .HasCharSet("utf8")
  688. .HasCollation("utf8_general_ci");
  689. entity.Property(e => e.SeoTitle)
  690. .HasColumnType("varchar(100)")
  691. .HasCharSet("utf8")
  692. .HasCollation("utf8_general_ci");
  693. entity.Property(e => e.Sort).HasColumnType("int(11)");
  694. entity.Property(e => e.Status).HasColumnType("int(11)");
  695. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  696. entity.Property(e => e.UpdateMan)
  697. .HasColumnType("varchar(50)")
  698. .HasCharSet("utf8")
  699. .HasCollation("utf8_general_ci");
  700. entity.Property(e => e.Version).HasColumnType("int(11)");
  701. });
  702. modelBuilder.Entity<AppVideoList>(entity =>
  703. {
  704. entity.Property(e => e.Id).HasColumnType("int(11)");
  705. entity.Property(e => e.BgPic)
  706. .HasColumnType("varchar(200)")
  707. .HasCharSet("utf8")
  708. .HasCollation("utf8_general_ci");
  709. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  710. entity.Property(e => e.CreateMan)
  711. .HasColumnType("varchar(50)")
  712. .HasCharSet("utf8")
  713. .HasCollation("utf8_general_ci");
  714. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  715. entity.Property(e => e.Remark)
  716. .HasColumnType("varchar(200)")
  717. .HasCharSet("utf8")
  718. .HasCollation("utf8_general_ci");
  719. entity.Property(e => e.SeoDescription)
  720. .HasColumnType("varchar(500)")
  721. .HasCharSet("utf8")
  722. .HasCollation("utf8_general_ci");
  723. entity.Property(e => e.SeoKeyword)
  724. .HasColumnType("varchar(200)")
  725. .HasCharSet("utf8")
  726. .HasCollation("utf8_general_ci");
  727. entity.Property(e => e.SeoTitle)
  728. .HasColumnType("varchar(100)")
  729. .HasCharSet("utf8")
  730. .HasCollation("utf8_general_ci");
  731. entity.Property(e => e.Sort).HasColumnType("int(11)");
  732. entity.Property(e => e.Status).HasColumnType("int(11)");
  733. entity.Property(e => e.Title)
  734. .HasColumnType("varchar(50)")
  735. .HasCharSet("utf8")
  736. .HasCollation("utf8_general_ci");
  737. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  738. entity.Property(e => e.UpdateMan)
  739. .HasColumnType("varchar(50)")
  740. .HasCharSet("utf8")
  741. .HasCollation("utf8_general_ci");
  742. entity.Property(e => e.Version).HasColumnType("int(11)");
  743. entity.Property(e => e.VideoId).HasColumnType("int(11)");
  744. entity.Property(e => e.VideoUrl)
  745. .HasColumnType("varchar(500)")
  746. .HasCharSet("utf8")
  747. .HasCollation("utf8_general_ci");
  748. });
  749. modelBuilder.Entity<BankInfo>(entity =>
  750. {
  751. entity.Property(e => e.Id).HasColumnType("int(11)");
  752. entity.Property(e => e.BankCode)
  753. .HasColumnType("varchar(16)")
  754. .HasCharSet("utf8")
  755. .HasCollation("utf8_general_ci");
  756. entity.Property(e => e.BankName)
  757. .HasColumnType("varchar(100)")
  758. .HasCharSet("utf8")
  759. .HasCollation("utf8_general_ci");
  760. entity.Property(e => e.BankNameAbbr)
  761. .HasColumnType("varchar(60)")
  762. .HasCharSet("utf8")
  763. .HasCollation("utf8_general_ci");
  764. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  765. entity.Property(e => e.CreateMan)
  766. .HasColumnType("varchar(50)")
  767. .HasCharSet("utf8")
  768. .HasCollation("utf8_general_ci");
  769. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  770. entity.Property(e => e.SeoDescription)
  771. .HasColumnType("varchar(500)")
  772. .HasCharSet("utf8")
  773. .HasCollation("utf8_general_ci");
  774. entity.Property(e => e.SeoKeyword)
  775. .HasColumnType("varchar(200)")
  776. .HasCharSet("utf8")
  777. .HasCollation("utf8_general_ci");
  778. entity.Property(e => e.SeoTitle)
  779. .HasColumnType("varchar(100)")
  780. .HasCharSet("utf8")
  781. .HasCollation("utf8_general_ci");
  782. entity.Property(e => e.Sort).HasColumnType("int(11)");
  783. entity.Property(e => e.Status).HasColumnType("int(11)");
  784. entity.Property(e => e.UnitedBankName)
  785. .HasColumnType("varchar(100)")
  786. .HasCharSet("utf8")
  787. .HasCollation("utf8_general_ci");
  788. entity.Property(e => e.UnitedBankNo)
  789. .HasColumnType("varchar(16)")
  790. .HasCharSet("utf8")
  791. .HasCollation("utf8_general_ci");
  792. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  793. entity.Property(e => e.UpdateMan)
  794. .HasColumnType("varchar(50)")
  795. .HasCharSet("utf8")
  796. .HasCollation("utf8_general_ci");
  797. entity.Property(e => e.Version).HasColumnType("int(11)");
  798. });
  799. modelBuilder.Entity<Col>(entity =>
  800. {
  801. entity.Property(e => e.Id).HasColumnType("int(11)");
  802. entity.Property(e => e.ClassName)
  803. .HasColumnType("varchar(50)")
  804. .HasCharSet("utf8")
  805. .HasCollation("utf8_general_ci");
  806. entity.Property(e => e.ColDetail)
  807. .HasColumnType("varchar(50)")
  808. .HasCharSet("utf8")
  809. .HasCollation("utf8_general_ci");
  810. entity.Property(e => e.ColEnName)
  811. .HasColumnType("varchar(50)")
  812. .HasCharSet("utf8")
  813. .HasCollation("utf8_general_ci");
  814. entity.Property(e => e.ColEnNav)
  815. .HasColumnType("varchar(200)")
  816. .HasCharSet("utf8")
  817. .HasCollation("utf8_general_ci");
  818. entity.Property(e => e.ColId)
  819. .HasColumnType("varchar(30)")
  820. .HasCharSet("utf8")
  821. .HasCollation("utf8_general_ci");
  822. entity.Property(e => e.ColName)
  823. .HasColumnType("varchar(50)")
  824. .HasCharSet("utf8")
  825. .HasCollation("utf8_general_ci");
  826. entity.Property(e => e.ColPicPath)
  827. .HasColumnType("varchar(200)")
  828. .HasCharSet("utf8")
  829. .HasCollation("utf8_general_ci");
  830. entity.Property(e => e.Contents)
  831. .HasColumnType("longtext")
  832. .HasCharSet("utf8")
  833. .HasCollation("utf8_general_ci");
  834. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  835. entity.Property(e => e.CreateMan)
  836. .HasColumnType("varchar(50)")
  837. .HasCharSet("utf8")
  838. .HasCollation("utf8_general_ci");
  839. entity.Property(e => e.DetailTemp)
  840. .HasColumnType("varchar(100)")
  841. .HasCharSet("utf8")
  842. .HasCollation("utf8_general_ci");
  843. entity.Property(e => e.DetailTempM)
  844. .HasColumnType("varchar(100)")
  845. .HasCharSet("utf8")
  846. .HasCollation("utf8_general_ci");
  847. entity.Property(e => e.ListPageCount).HasColumnType("int(11)");
  848. entity.Property(e => e.ListTemp)
  849. .HasColumnType("varchar(100)")
  850. .HasCharSet("utf8")
  851. .HasCollation("utf8_general_ci");
  852. entity.Property(e => e.ListTempM)
  853. .HasColumnType("varchar(100)")
  854. .HasCharSet("utf8")
  855. .HasCollation("utf8_general_ci");
  856. entity.Property(e => e.ParentId).HasColumnType("int(11)");
  857. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  858. entity.Property(e => e.Recommend)
  859. .HasColumnType("bit(1)")
  860. .HasDefaultValueSql("b'0'");
  861. entity.Property(e => e.SeoDescription)
  862. .HasColumnType("varchar(500)")
  863. .HasCharSet("utf8")
  864. .HasCollation("utf8_general_ci");
  865. entity.Property(e => e.SeoKeyword)
  866. .HasColumnType("varchar(200)")
  867. .HasCharSet("utf8")
  868. .HasCollation("utf8_general_ci");
  869. entity.Property(e => e.SeoTitle)
  870. .HasColumnType("varchar(100)")
  871. .HasCharSet("utf8")
  872. .HasCollation("utf8_general_ci");
  873. entity.Property(e => e.Sort).HasColumnType("int(11)");
  874. entity.Property(e => e.Status).HasColumnType("int(11)");
  875. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  876. entity.Property(e => e.UpdateMan)
  877. .HasColumnType("varchar(50)")
  878. .HasCharSet("utf8")
  879. .HasCollation("utf8_general_ci");
  880. entity.Property(e => e.Url)
  881. .HasColumnType("longtext")
  882. .HasCharSet("utf8")
  883. .HasCollation("utf8_general_ci");
  884. entity.Property(e => e.Version).HasColumnType("int(11)");
  885. });
  886. modelBuilder.Entity<ConsumerOpenIds>(entity =>
  887. {
  888. entity.HasKey(e => e.OpenId)
  889. .HasName("PRIMARY");
  890. entity.Property(e => e.OpenId)
  891. .HasColumnType("varchar(50)")
  892. .HasCharSet("utf8")
  893. .HasCollation("utf8_general_ci");
  894. entity.Property(e => e.ConsumerId).HasColumnType("int(11)");
  895. });
  896. modelBuilder.Entity<ConsumerOrderForNo>(entity =>
  897. {
  898. entity.HasKey(e => e.OrderNo)
  899. .HasName("PRIMARY");
  900. entity.Property(e => e.OrderNo)
  901. .HasColumnType("varchar(50)")
  902. .HasCharSet("utf8")
  903. .HasCollation("utf8_general_ci");
  904. entity.Property(e => e.OrderIds).HasColumnType("int(11)");
  905. });
  906. modelBuilder.Entity<ConsumerOrders>(entity =>
  907. {
  908. entity.Property(e => e.Id).HasColumnType("int(11)");
  909. entity.Property(e => e.ConsumerId).HasColumnType("int(11)");
  910. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  911. entity.Property(e => e.CreateMan)
  912. .HasColumnType("varchar(50)")
  913. .HasCharSet("utf8")
  914. .HasCollation("utf8_general_ci");
  915. entity.Property(e => e.CurDivi).HasColumnType("decimal(18,2)");
  916. entity.Property(e => e.IsAct)
  917. .HasColumnType("bit(1)")
  918. .HasDefaultValueSql("b'0'");
  919. entity.Property(e => e.MaxDivi).HasColumnType("decimal(18,2)");
  920. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  921. entity.Property(e => e.OrderNo)
  922. .HasColumnType("varchar(30)")
  923. .HasCharSet("utf8")
  924. .HasCollation("utf8_general_ci");
  925. entity.Property(e => e.PayMode).HasColumnType("int(11)");
  926. entity.Property(e => e.PayMoney).HasColumnType("decimal(18,2)");
  927. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  928. entity.Property(e => e.ReturnMoney).HasColumnType("decimal(18,2)");
  929. entity.Property(e => e.SeoDescription)
  930. .HasColumnType("varchar(500)")
  931. .HasCharSet("utf8")
  932. .HasCollation("utf8_general_ci");
  933. entity.Property(e => e.SeoKeyword)
  934. .HasColumnType("varchar(200)")
  935. .HasCharSet("utf8")
  936. .HasCollation("utf8_general_ci");
  937. entity.Property(e => e.SeoTitle)
  938. .HasColumnType("varchar(100)")
  939. .HasCharSet("utf8")
  940. .HasCollation("utf8_general_ci");
  941. entity.Property(e => e.SnNo)
  942. .HasColumnType("varchar(50)")
  943. .HasCharSet("utf8")
  944. .HasCollation("utf8_general_ci");
  945. entity.Property(e => e.Sort).HasColumnType("int(11)");
  946. entity.Property(e => e.Status).HasColumnType("int(11)");
  947. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  948. entity.Property(e => e.UpdateMan)
  949. .HasColumnType("varchar(50)")
  950. .HasCharSet("utf8")
  951. .HasCollation("utf8_general_ci");
  952. entity.Property(e => e.Version).HasColumnType("int(11)");
  953. });
  954. modelBuilder.Entity<ConsumerProfit>(entity =>
  955. {
  956. entity.Property(e => e.Id).HasColumnType("int(11)");
  957. entity.Property(e => e.ConsumerId).HasColumnType("int(11)");
  958. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  959. entity.Property(e => e.CreateMan)
  960. .HasColumnType("varchar(50)")
  961. .HasCharSet("utf8")
  962. .HasCollation("utf8_general_ci");
  963. entity.Property(e => e.GetMoney).HasColumnType("decimal(18,2)");
  964. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  965. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  966. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  967. entity.Property(e => e.SeoDescription)
  968. .HasColumnType("varchar(500)")
  969. .HasCharSet("utf8")
  970. .HasCollation("utf8_general_ci");
  971. entity.Property(e => e.SeoKeyword)
  972. .HasColumnType("varchar(200)")
  973. .HasCharSet("utf8")
  974. .HasCollation("utf8_general_ci");
  975. entity.Property(e => e.SeoTitle)
  976. .HasColumnType("varchar(100)")
  977. .HasCharSet("utf8")
  978. .HasCollation("utf8_general_ci");
  979. entity.Property(e => e.Sort).HasColumnType("int(11)");
  980. entity.Property(e => e.Status).HasColumnType("int(11)");
  981. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  982. entity.Property(e => e.UpdateMan)
  983. .HasColumnType("varchar(50)")
  984. .HasCharSet("utf8")
  985. .HasCollation("utf8_general_ci");
  986. entity.Property(e => e.Version).HasColumnType("int(11)");
  987. });
  988. modelBuilder.Entity<Consumers>(entity =>
  989. {
  990. entity.Property(e => e.Id).HasColumnType("int(11)");
  991. entity.Property(e => e.AlipayFlag)
  992. .HasColumnType("bit(1)")
  993. .HasDefaultValueSql("b'0'");
  994. entity.Property(e => e.AlipayUserId)
  995. .HasColumnType("varchar(50)")
  996. .HasCharSet("utf8")
  997. .HasCollation("utf8_general_ci");
  998. entity.Property(e => e.CardFlag)
  999. .HasColumnType("bit(1)")
  1000. .HasDefaultValueSql("b'0'");
  1001. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1002. entity.Property(e => e.CreateMan)
  1003. .HasColumnType("varchar(50)")
  1004. .HasCharSet("utf8")
  1005. .HasCollation("utf8_general_ci");
  1006. entity.Property(e => e.CurIntgegral).HasColumnType("int(11)");
  1007. entity.Property(e => e.HeadPhoto)
  1008. .HasColumnType("varchar(2000)")
  1009. .HasCharSet("utf8")
  1010. .HasCollation("utf8_general_ci");
  1011. entity.Property(e => e.LastConsumDate).HasColumnType("datetime");
  1012. entity.Property(e => e.Mobile)
  1013. .HasColumnType("varchar(11)")
  1014. .HasCharSet("utf8")
  1015. .HasCollation("utf8_general_ci");
  1016. entity.Property(e => e.NickName)
  1017. .HasColumnType("varchar(50)")
  1018. .HasCharSet("utf8")
  1019. .HasCollation("utf8_general_ci");
  1020. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1021. entity.Property(e => e.SeoDescription)
  1022. .HasColumnType("varchar(500)")
  1023. .HasCharSet("utf8")
  1024. .HasCollation("utf8_general_ci");
  1025. entity.Property(e => e.SeoKeyword)
  1026. .HasColumnType("varchar(200)")
  1027. .HasCharSet("utf8")
  1028. .HasCollation("utf8_general_ci");
  1029. entity.Property(e => e.SeoTitle)
  1030. .HasColumnType("varchar(100)")
  1031. .HasCharSet("utf8")
  1032. .HasCollation("utf8_general_ci");
  1033. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1034. entity.Property(e => e.Status).HasColumnType("int(11)");
  1035. entity.Property(e => e.TotalAmount).HasColumnType("decimal(18,2)");
  1036. entity.Property(e => e.TotalConsumCount).HasColumnType("int(11)");
  1037. entity.Property(e => e.TotalDividend).HasColumnType("decimal(18,2)");
  1038. entity.Property(e => e.TotalIntegral).HasColumnType("int(11)");
  1039. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1040. entity.Property(e => e.UpdateMan)
  1041. .HasColumnType("varchar(50)")
  1042. .HasCharSet("utf8")
  1043. .HasCollation("utf8_general_ci");
  1044. entity.Property(e => e.Version).HasColumnType("int(11)");
  1045. entity.Property(e => e.WeChatPayFlag)
  1046. .HasColumnType("bit(1)")
  1047. .HasDefaultValueSql("b'0'");
  1048. entity.Property(e => e.WechatOpenId)
  1049. .HasColumnType("varchar(50)")
  1050. .HasCharSet("utf8")
  1051. .HasCollation("utf8_general_ci");
  1052. entity.Property(e => e.WechatUnionid)
  1053. .HasColumnType("varchar(50)")
  1054. .HasCharSet("utf8")
  1055. .HasCollation("utf8_general_ci");
  1056. });
  1057. modelBuilder.Entity<CouponAssignRecords>(entity =>
  1058. {
  1059. entity.Property(e => e.Id).HasColumnType("int(11)");
  1060. entity.Property(e => e.Areas)
  1061. .HasColumnType("varchar(50)")
  1062. .HasCharSet("utf8")
  1063. .HasCollation("utf8_general_ci");
  1064. entity.Property(e => e.CouponIds)
  1065. .HasColumnType("varchar(200)")
  1066. .HasCharSet("utf8")
  1067. .HasCollation("utf8_general_ci");
  1068. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1069. entity.Property(e => e.CreateMan)
  1070. .HasColumnType("varchar(50)")
  1071. .HasCharSet("utf8")
  1072. .HasCollation("utf8_general_ci");
  1073. entity.Property(e => e.CurMoneyMax).HasColumnType("decimal(18,2)");
  1074. entity.Property(e => e.CurMoneyMin).HasColumnType("decimal(18,2)");
  1075. entity.Property(e => e.Mobile)
  1076. .HasColumnType("varchar(11)")
  1077. .HasCharSet("utf8")
  1078. .HasCollation("utf8_general_ci");
  1079. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1080. entity.Property(e => e.SeoDescription)
  1081. .HasColumnType("varchar(500)")
  1082. .HasCharSet("utf8")
  1083. .HasCollation("utf8_general_ci");
  1084. entity.Property(e => e.SeoKeyword)
  1085. .HasColumnType("varchar(200)")
  1086. .HasCharSet("utf8")
  1087. .HasCollation("utf8_general_ci");
  1088. entity.Property(e => e.SeoTitle)
  1089. .HasColumnType("varchar(100)")
  1090. .HasCharSet("utf8")
  1091. .HasCollation("utf8_general_ci");
  1092. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1093. entity.Property(e => e.Status).HasColumnType("int(11)");
  1094. entity.Property(e => e.TotalOrderMoneyMax).HasColumnType("decimal(18,2)");
  1095. entity.Property(e => e.TotalOrderMoneyMin).HasColumnType("decimal(18,2)");
  1096. entity.Property(e => e.TotalUseIntegralMax).HasColumnType("decimal(18,2)");
  1097. entity.Property(e => e.TotalUseIntegralMin).HasColumnType("decimal(18,2)");
  1098. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1099. entity.Property(e => e.UpdateMan)
  1100. .HasColumnType("varchar(50)")
  1101. .HasCharSet("utf8")
  1102. .HasCollation("utf8_general_ci");
  1103. entity.Property(e => e.UserGroupId)
  1104. .HasColumnType("varchar(50)")
  1105. .HasCharSet("utf8")
  1106. .HasCollation("utf8_general_ci");
  1107. entity.Property(e => e.UserMaxLevel).HasColumnType("int(11)");
  1108. entity.Property(e => e.UserMinLevel).HasColumnType("int(11)");
  1109. entity.Property(e => e.Version).HasColumnType("int(11)");
  1110. });
  1111. modelBuilder.Entity<Coupons>(entity =>
  1112. {
  1113. entity.Property(e => e.Id).HasColumnType("int(11)");
  1114. entity.Property(e => e.AndPromotion)
  1115. .HasColumnType("bit(1)")
  1116. .HasDefaultValueSql("b'0'");
  1117. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1118. entity.Property(e => e.CreateMan)
  1119. .HasColumnType("varchar(50)")
  1120. .HasCharSet("utf8")
  1121. .HasCollation("utf8_general_ci");
  1122. entity.Property(e => e.ExpireEndDate).HasColumnType("datetime");
  1123. entity.Property(e => e.ExpireStartDate).HasColumnType("datetime");
  1124. entity.Property(e => e.Explanation)
  1125. .HasColumnType("varchar(200)")
  1126. .HasCharSet("utf8")
  1127. .HasCollation("utf8_general_ci");
  1128. entity.Property(e => e.FullReduceData).HasColumnType("decimal(18,2)");
  1129. entity.Property(e => e.FullReduceMoney).HasColumnType("decimal(18,2)");
  1130. entity.Property(e => e.IsNewUser)
  1131. .HasColumnType("bit(1)")
  1132. .HasDefaultValueSql("b'0'");
  1133. entity.Property(e => e.IsPublic)
  1134. .HasColumnType("bit(1)")
  1135. .HasDefaultValueSql("b'0'");
  1136. entity.Property(e => e.IsReUse)
  1137. .HasColumnType("bit(1)")
  1138. .HasDefaultValueSql("b'0'");
  1139. entity.Property(e => e.IsRepeat)
  1140. .HasColumnType("bit(1)")
  1141. .HasDefaultValueSql("b'0'");
  1142. entity.Property(e => e.IsSuperpose)
  1143. .HasColumnType("bit(1)")
  1144. .HasDefaultValueSql("b'0'");
  1145. entity.Property(e => e.Kind).HasColumnType("int(11)");
  1146. entity.Property(e => e.MerchantId)
  1147. .HasColumnType("varchar(200)")
  1148. .HasCharSet("utf8")
  1149. .HasCollation("utf8_general_ci");
  1150. entity.Property(e => e.Name)
  1151. .HasColumnType("varchar(50)")
  1152. .HasCharSet("utf8")
  1153. .HasCollation("utf8_general_ci");
  1154. entity.Property(e => e.ProductColId)
  1155. .HasColumnType("varchar(200)")
  1156. .HasCharSet("utf8")
  1157. .HasCollation("utf8_general_ci");
  1158. entity.Property(e => e.ProductId)
  1159. .HasColumnType("varchar(500)")
  1160. .HasCharSet("utf8")
  1161. .HasCollation("utf8_general_ci");
  1162. entity.Property(e => e.PublicEndDate).HasColumnType("datetime");
  1163. entity.Property(e => e.PublicMax).HasColumnType("int(11)");
  1164. entity.Property(e => e.PublicMaxByDay).HasColumnType("int(11)");
  1165. entity.Property(e => e.PublicStartDate).HasColumnType("datetime");
  1166. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1167. entity.Property(e => e.RepeatCondition)
  1168. .HasColumnType("varchar(50)")
  1169. .HasCharSet("utf8")
  1170. .HasCollation("utf8_general_ci");
  1171. entity.Property(e => e.RepeatType).HasColumnType("int(11)");
  1172. entity.Property(e => e.SeoDescription)
  1173. .HasColumnType("varchar(500)")
  1174. .HasCharSet("utf8")
  1175. .HasCollation("utf8_general_ci");
  1176. entity.Property(e => e.SeoKeyword)
  1177. .HasColumnType("varchar(200)")
  1178. .HasCharSet("utf8")
  1179. .HasCollation("utf8_general_ci");
  1180. entity.Property(e => e.SeoTitle)
  1181. .HasColumnType("varchar(100)")
  1182. .HasCharSet("utf8")
  1183. .HasCollation("utf8_general_ci");
  1184. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1185. entity.Property(e => e.Status).HasColumnType("int(11)");
  1186. entity.Property(e => e.Stock).HasColumnType("decimal(18,2)");
  1187. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1188. entity.Property(e => e.UpdateMan)
  1189. .HasColumnType("varchar(50)")
  1190. .HasCharSet("utf8")
  1191. .HasCollation("utf8_general_ci");
  1192. entity.Property(e => e.UseEndDate).HasColumnType("datetime");
  1193. entity.Property(e => e.UseStartDate).HasColumnType("datetime");
  1194. entity.Property(e => e.UserMaxLevel).HasColumnType("int(11)");
  1195. entity.Property(e => e.UserMinLevel).HasColumnType("int(11)");
  1196. entity.Property(e => e.Version).HasColumnType("int(11)");
  1197. });
  1198. modelBuilder.Entity<CouponsForUser>(entity =>
  1199. {
  1200. entity.Property(e => e.Id).HasColumnType("int(11)");
  1201. entity.Property(e => e.CouponId).HasColumnType("int(11)");
  1202. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1203. entity.Property(e => e.CreateMan)
  1204. .HasColumnType("varchar(50)")
  1205. .HasCharSet("utf8")
  1206. .HasCollation("utf8_general_ci");
  1207. entity.Property(e => e.IsLock)
  1208. .HasColumnType("bit(1)")
  1209. .HasDefaultValueSql("b'0'");
  1210. entity.Property(e => e.IsUse)
  1211. .HasColumnType("bit(1)")
  1212. .HasDefaultValueSql("b'0'");
  1213. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1214. entity.Property(e => e.SeoDescription)
  1215. .HasColumnType("varchar(500)")
  1216. .HasCharSet("utf8")
  1217. .HasCollation("utf8_general_ci");
  1218. entity.Property(e => e.SeoKeyword)
  1219. .HasColumnType("varchar(200)")
  1220. .HasCharSet("utf8")
  1221. .HasCollation("utf8_general_ci");
  1222. entity.Property(e => e.SeoTitle)
  1223. .HasColumnType("varchar(100)")
  1224. .HasCharSet("utf8")
  1225. .HasCollation("utf8_general_ci");
  1226. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1227. entity.Property(e => e.Status).HasColumnType("int(11)");
  1228. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1229. entity.Property(e => e.UpdateMan)
  1230. .HasColumnType("varchar(50)")
  1231. .HasCharSet("utf8")
  1232. .HasCollation("utf8_general_ci");
  1233. entity.Property(e => e.UseDate).HasColumnType("datetime");
  1234. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1235. entity.Property(e => e.Version).HasColumnType("int(11)");
  1236. });
  1237. modelBuilder.Entity<CustomTagSet>(entity =>
  1238. {
  1239. entity.Property(e => e.Id).HasColumnType("int(11)");
  1240. entity.Property(e => e.Contents)
  1241. .HasColumnType("varchar(500)")
  1242. .HasCharSet("utf8")
  1243. .HasCollation("utf8_general_ci");
  1244. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1245. entity.Property(e => e.CreateMan)
  1246. .HasColumnType("varchar(50)")
  1247. .HasCharSet("utf8")
  1248. .HasCollation("utf8_general_ci");
  1249. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1250. entity.Property(e => e.SeoDescription)
  1251. .HasColumnType("varchar(500)")
  1252. .HasCharSet("utf8")
  1253. .HasCollation("utf8_general_ci");
  1254. entity.Property(e => e.SeoKeyword)
  1255. .HasColumnType("varchar(200)")
  1256. .HasCharSet("utf8")
  1257. .HasCollation("utf8_general_ci");
  1258. entity.Property(e => e.SeoTitle)
  1259. .HasColumnType("varchar(100)")
  1260. .HasCharSet("utf8")
  1261. .HasCollation("utf8_general_ci");
  1262. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1263. entity.Property(e => e.Status).HasColumnType("int(11)");
  1264. entity.Property(e => e.Tags)
  1265. .HasColumnType("varchar(50)")
  1266. .HasCharSet("utf8")
  1267. .HasCollation("utf8_general_ci");
  1268. entity.Property(e => e.Title)
  1269. .HasColumnType("varchar(50)")
  1270. .HasCharSet("utf8")
  1271. .HasCollation("utf8_general_ci");
  1272. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1273. entity.Property(e => e.UpdateMan)
  1274. .HasColumnType("varchar(50)")
  1275. .HasCharSet("utf8")
  1276. .HasCollation("utf8_general_ci");
  1277. entity.Property(e => e.Version).HasColumnType("int(11)");
  1278. });
  1279. modelBuilder.Entity<ErpCompanys>(entity =>
  1280. {
  1281. entity.Property(e => e.Id).HasColumnType("int(11)");
  1282. entity.Property(e => e.Code)
  1283. .HasColumnType("varchar(50)")
  1284. .HasCharSet("utf8")
  1285. .HasCollation("utf8_general_ci");
  1286. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1287. entity.Property(e => e.CreateMan)
  1288. .HasColumnType("varchar(50)")
  1289. .HasCharSet("utf8")
  1290. .HasCollation("utf8_general_ci");
  1291. entity.Property(e => e.Name)
  1292. .HasColumnType("varchar(50)")
  1293. .HasCharSet("utf8")
  1294. .HasCollation("utf8_general_ci");
  1295. entity.Property(e => e.Phone)
  1296. .HasColumnType("varchar(30)")
  1297. .HasCharSet("utf8")
  1298. .HasCollation("utf8_general_ci");
  1299. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1300. entity.Property(e => e.SeoDescription)
  1301. .HasColumnType("varchar(500)")
  1302. .HasCharSet("utf8")
  1303. .HasCollation("utf8_general_ci");
  1304. entity.Property(e => e.SeoKeyword)
  1305. .HasColumnType("varchar(200)")
  1306. .HasCharSet("utf8")
  1307. .HasCollation("utf8_general_ci");
  1308. entity.Property(e => e.SeoTitle)
  1309. .HasColumnType("varchar(100)")
  1310. .HasCharSet("utf8")
  1311. .HasCollation("utf8_general_ci");
  1312. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1313. entity.Property(e => e.Status).HasColumnType("int(11)");
  1314. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1315. entity.Property(e => e.UpdateMan)
  1316. .HasColumnType("varchar(50)")
  1317. .HasCharSet("utf8")
  1318. .HasCollation("utf8_general_ci");
  1319. entity.Property(e => e.Version).HasColumnType("int(11)");
  1320. });
  1321. modelBuilder.Entity<FileUpdateInfo>(entity =>
  1322. {
  1323. entity.Property(e => e.Id).HasColumnType("int(11)");
  1324. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1325. entity.Property(e => e.CreateMan)
  1326. .HasColumnType("varchar(50)")
  1327. .HasCharSet("utf8")
  1328. .HasCollation("utf8_general_ci");
  1329. entity.Property(e => e.FileName)
  1330. .HasColumnType("varchar(50)")
  1331. .HasCharSet("utf8")
  1332. .HasCollation("utf8_general_ci");
  1333. entity.Property(e => e.Path)
  1334. .HasColumnType("varchar(200)")
  1335. .HasCharSet("utf8")
  1336. .HasCollation("utf8_general_ci");
  1337. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1338. entity.Property(e => e.SeoDescription)
  1339. .HasColumnType("varchar(500)")
  1340. .HasCharSet("utf8")
  1341. .HasCollation("utf8_general_ci");
  1342. entity.Property(e => e.SeoKeyword)
  1343. .HasColumnType("varchar(200)")
  1344. .HasCharSet("utf8")
  1345. .HasCollation("utf8_general_ci");
  1346. entity.Property(e => e.SeoTitle)
  1347. .HasColumnType("varchar(100)")
  1348. .HasCharSet("utf8")
  1349. .HasCollation("utf8_general_ci");
  1350. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1351. entity.Property(e => e.Status).HasColumnType("int(11)");
  1352. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1353. entity.Property(e => e.UpdateMan)
  1354. .HasColumnType("varchar(50)")
  1355. .HasCharSet("utf8")
  1356. .HasCollation("utf8_general_ci");
  1357. entity.Property(e => e.Version).HasColumnType("int(11)");
  1358. entity.Property(e => e.VersionNum).HasColumnType("int(11)");
  1359. });
  1360. modelBuilder.Entity<FluxProfitDetail>(entity =>
  1361. {
  1362. entity.Property(e => e.Id).HasColumnType("int(11)");
  1363. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1364. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1365. entity.Property(e => e.CreateMan)
  1366. .HasColumnType("varchar(50)")
  1367. .HasCharSet("utf8")
  1368. .HasCollation("utf8_general_ci");
  1369. entity.Property(e => e.FluxEndDate)
  1370. .HasColumnType("varchar(8)")
  1371. .HasCharSet("utf8")
  1372. .HasCollation("utf8_general_ci");
  1373. entity.Property(e => e.FluxFeeAmt).HasColumnType("decimal(18,2)");
  1374. entity.Property(e => e.FluxOrderNo)
  1375. .HasColumnType("varchar(64)")
  1376. .HasCharSet("utf8")
  1377. .HasCollation("utf8_general_ci");
  1378. entity.Property(e => e.FluxProfitAmt).HasColumnType("decimal(18,2)");
  1379. entity.Property(e => e.FluxStartDate)
  1380. .HasColumnType("varchar(8)")
  1381. .HasCharSet("utf8")
  1382. .HasCollation("utf8_general_ci");
  1383. entity.Property(e => e.MerNo)
  1384. .HasColumnType("varchar(32)")
  1385. .HasCharSet("utf8")
  1386. .HasCollation("utf8_general_ci");
  1387. entity.Property(e => e.MerUserType).HasColumnType("int(11)");
  1388. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  1389. entity.Property(e => e.MerchantUserId).HasColumnType("int(11)");
  1390. entity.Property(e => e.PosType)
  1391. .HasColumnType("varchar(32)")
  1392. .HasCharSet("utf8")
  1393. .HasCollation("utf8_general_ci");
  1394. entity.Property(e => e.ProfitType).HasColumnType("int(11)");
  1395. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1396. entity.Property(e => e.RecordNo)
  1397. .HasColumnType("varchar(32)")
  1398. .HasCharSet("utf8")
  1399. .HasCollation("utf8_general_ci");
  1400. entity.Property(e => e.Remark)
  1401. .HasColumnType("varchar(128)")
  1402. .HasCharSet("utf8")
  1403. .HasCollation("utf8_general_ci");
  1404. entity.Property(e => e.SeoDescription)
  1405. .HasColumnType("varchar(500)")
  1406. .HasCharSet("utf8")
  1407. .HasCollation("utf8_general_ci");
  1408. entity.Property(e => e.SeoKeyword)
  1409. .HasColumnType("varchar(200)")
  1410. .HasCharSet("utf8")
  1411. .HasCollation("utf8_general_ci");
  1412. entity.Property(e => e.SeoTitle)
  1413. .HasColumnType("varchar(100)")
  1414. .HasCharSet("utf8")
  1415. .HasCollation("utf8_general_ci");
  1416. entity.Property(e => e.SnNo)
  1417. .HasColumnType("varchar(32)")
  1418. .HasCharSet("utf8")
  1419. .HasCollation("utf8_general_ci");
  1420. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1421. entity.Property(e => e.Status).HasColumnType("int(11)");
  1422. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  1423. entity.Property(e => e.TradeAmt).HasColumnType("decimal(18,2)");
  1424. entity.Property(e => e.TradeDate)
  1425. .HasColumnType("varchar(8)")
  1426. .HasCharSet("utf8")
  1427. .HasCollation("utf8_general_ci");
  1428. entity.Property(e => e.TradeMonth)
  1429. .HasColumnType("varchar(6)")
  1430. .HasCharSet("utf8")
  1431. .HasCollation("utf8_general_ci");
  1432. entity.Property(e => e.TradeOrderNo)
  1433. .HasColumnType("varchar(64)")
  1434. .HasCharSet("utf8")
  1435. .HasCollation("utf8_general_ci");
  1436. entity.Property(e => e.TradeTime)
  1437. .HasColumnType("varchar(6)")
  1438. .HasCharSet("utf8")
  1439. .HasCollation("utf8_general_ci");
  1440. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1441. entity.Property(e => e.UpdateMan)
  1442. .HasColumnType("varchar(50)")
  1443. .HasCharSet("utf8")
  1444. .HasCollation("utf8_general_ci");
  1445. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1446. entity.Property(e => e.Version).HasColumnType("int(11)");
  1447. });
  1448. modelBuilder.Entity<FluxProfitSummary>(entity =>
  1449. {
  1450. entity.Property(e => e.Id).HasColumnType("int(11)");
  1451. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1452. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  1453. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1454. entity.Property(e => e.CreateMan)
  1455. .HasColumnType("varchar(50)")
  1456. .HasCharSet("utf8")
  1457. .HasCollation("utf8_general_ci");
  1458. entity.Property(e => e.FluxProfitAmt).HasColumnType("decimal(18,2)");
  1459. entity.Property(e => e.FluxTradeNum).HasColumnType("int(11)");
  1460. entity.Property(e => e.MerUserType).HasColumnType("int(11)");
  1461. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1462. entity.Property(e => e.Remark)
  1463. .HasColumnType("varchar(64)")
  1464. .HasCharSet("utf8")
  1465. .HasCollation("utf8_general_ci");
  1466. entity.Property(e => e.SeoDescription)
  1467. .HasColumnType("varchar(500)")
  1468. .HasCharSet("utf8")
  1469. .HasCollation("utf8_general_ci");
  1470. entity.Property(e => e.SeoKeyword)
  1471. .HasColumnType("varchar(200)")
  1472. .HasCharSet("utf8")
  1473. .HasCollation("utf8_general_ci");
  1474. entity.Property(e => e.SeoTitle)
  1475. .HasColumnType("varchar(100)")
  1476. .HasCharSet("utf8")
  1477. .HasCollation("utf8_general_ci");
  1478. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1479. entity.Property(e => e.Status).HasColumnType("int(11)");
  1480. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  1481. entity.Property(e => e.TradeMonth)
  1482. .HasColumnType("varchar(6)")
  1483. .HasCharSet("utf8")
  1484. .HasCollation("utf8_general_ci");
  1485. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1486. entity.Property(e => e.UpdateMan)
  1487. .HasColumnType("varchar(50)")
  1488. .HasCharSet("utf8")
  1489. .HasCollation("utf8_general_ci");
  1490. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1491. entity.Property(e => e.Version).HasColumnType("int(11)");
  1492. });
  1493. modelBuilder.Entity<IndexIconList>(entity =>
  1494. {
  1495. entity.Property(e => e.Id).HasColumnType("int(11)");
  1496. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1497. entity.Property(e => e.CreateMan)
  1498. .HasColumnType("varchar(50)")
  1499. .HasCharSet("utf8")
  1500. .HasCollation("utf8_general_ci");
  1501. entity.Property(e => e.Icon)
  1502. .HasColumnType("varchar(200)")
  1503. .HasCharSet("utf8")
  1504. .HasCollation("utf8_general_ci");
  1505. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1506. entity.Property(e => e.SeoDescription)
  1507. .HasColumnType("varchar(500)")
  1508. .HasCharSet("utf8")
  1509. .HasCollation("utf8_general_ci");
  1510. entity.Property(e => e.SeoKeyword)
  1511. .HasColumnType("varchar(200)")
  1512. .HasCharSet("utf8")
  1513. .HasCollation("utf8_general_ci");
  1514. entity.Property(e => e.SeoTitle)
  1515. .HasColumnType("varchar(100)")
  1516. .HasCharSet("utf8")
  1517. .HasCollation("utf8_general_ci");
  1518. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1519. entity.Property(e => e.Status).HasColumnType("int(11)");
  1520. entity.Property(e => e.Title)
  1521. .HasColumnType("varchar(50)")
  1522. .HasCharSet("utf8")
  1523. .HasCollation("utf8_general_ci");
  1524. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1525. entity.Property(e => e.UpdateMan)
  1526. .HasColumnType("varchar(50)")
  1527. .HasCharSet("utf8")
  1528. .HasCollation("utf8_general_ci");
  1529. entity.Property(e => e.Url)
  1530. .HasColumnType("varchar(50)")
  1531. .HasCharSet("utf8")
  1532. .HasCollation("utf8_general_ci");
  1533. entity.Property(e => e.Version).HasColumnType("int(11)");
  1534. });
  1535. modelBuilder.Entity<KqProductBrand>(entity =>
  1536. {
  1537. entity.Property(e => e.Id).HasColumnType("int(11)");
  1538. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1539. entity.Property(e => e.CreateMan)
  1540. .HasColumnType("varchar(50)")
  1541. .HasCharSet("utf8")
  1542. .HasCollation("utf8_general_ci");
  1543. entity.Property(e => e.Name)
  1544. .HasColumnType("varchar(50)")
  1545. .HasCharSet("utf8")
  1546. .HasCollation("utf8_general_ci");
  1547. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  1548. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1549. entity.Property(e => e.SeoDescription)
  1550. .HasColumnType("varchar(500)")
  1551. .HasCharSet("utf8")
  1552. .HasCollation("utf8_general_ci");
  1553. entity.Property(e => e.SeoKeyword)
  1554. .HasColumnType("varchar(200)")
  1555. .HasCharSet("utf8")
  1556. .HasCollation("utf8_general_ci");
  1557. entity.Property(e => e.SeoTitle)
  1558. .HasColumnType("varchar(100)")
  1559. .HasCharSet("utf8")
  1560. .HasCollation("utf8_general_ci");
  1561. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1562. entity.Property(e => e.Status).HasColumnType("int(11)");
  1563. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1564. entity.Property(e => e.UpdateMan)
  1565. .HasColumnType("varchar(50)")
  1566. .HasCharSet("utf8")
  1567. .HasCollation("utf8_general_ci");
  1568. entity.Property(e => e.Version).HasColumnType("int(11)");
  1569. });
  1570. modelBuilder.Entity<KqProductOrgs>(entity =>
  1571. {
  1572. entity.Property(e => e.Id).HasColumnType("int(11)");
  1573. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1574. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1575. entity.Property(e => e.CreateMan)
  1576. .HasColumnType("varchar(50)")
  1577. .HasCharSet("utf8")
  1578. .HasCollation("utf8_general_ci");
  1579. entity.Property(e => e.Name)
  1580. .HasColumnType("varchar(50)")
  1581. .HasCharSet("utf8")
  1582. .HasCollation("utf8_general_ci");
  1583. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1584. entity.Property(e => e.SeoDescription)
  1585. .HasColumnType("varchar(500)")
  1586. .HasCharSet("utf8")
  1587. .HasCollation("utf8_general_ci");
  1588. entity.Property(e => e.SeoKeyword)
  1589. .HasColumnType("varchar(200)")
  1590. .HasCharSet("utf8")
  1591. .HasCollation("utf8_general_ci");
  1592. entity.Property(e => e.SeoTitle)
  1593. .HasColumnType("varchar(100)")
  1594. .HasCharSet("utf8")
  1595. .HasCollation("utf8_general_ci");
  1596. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1597. entity.Property(e => e.Status).HasColumnType("int(11)");
  1598. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1599. entity.Property(e => e.UpdateMan)
  1600. .HasColumnType("varchar(50)")
  1601. .HasCharSet("utf8")
  1602. .HasCollation("utf8_general_ci");
  1603. entity.Property(e => e.Version).HasColumnType("int(11)");
  1604. });
  1605. modelBuilder.Entity<KqProductRuleSet>(entity =>
  1606. {
  1607. entity.Property(e => e.Id).HasColumnType("int(11)");
  1608. entity.Property(e => e.ActDeposit).HasColumnType("decimal(18,2)");
  1609. entity.Property(e => e.ActEndDate).HasColumnType("datetime");
  1610. entity.Property(e => e.ActFirst).HasColumnType("decimal(18,2)");
  1611. entity.Property(e => e.ActFirstDeposit).HasColumnType("decimal(18,2)");
  1612. entity.Property(e => e.ActPosCount).HasColumnType("int(11)");
  1613. entity.Property(e => e.ActPrize).HasColumnType("decimal(18,2)");
  1614. entity.Property(e => e.ActStartDate).HasColumnType("datetime");
  1615. entity.Property(e => e.ActiveCount).HasColumnType("int(11)");
  1616. entity.Property(e => e.ActivePrice).HasColumnType("decimal(18,2)");
  1617. entity.Property(e => e.BigExtendCycleDays).HasColumnType("int(11)");
  1618. entity.Property(e => e.BigTotalAmount).HasColumnType("decimal(18,2)");
  1619. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1620. entity.Property(e => e.CreateMan)
  1621. .HasColumnType("varchar(50)")
  1622. .HasCharSet("utf8")
  1623. .HasCollation("utf8_general_ci");
  1624. entity.Property(e => e.CycleEndDate).HasColumnType("datetime");
  1625. entity.Property(e => e.CycleIsOther)
  1626. .HasColumnType("bit(1)")
  1627. .HasDefaultValueSql("b'0'");
  1628. entity.Property(e => e.CyclePosDays).HasColumnType("int(11)");
  1629. entity.Property(e => e.CycleStartDate).HasColumnType("datetime");
  1630. entity.Property(e => e.Deposit).HasColumnType("decimal(18,2)");
  1631. entity.Property(e => e.FeeBindDays).HasColumnType("int(11)");
  1632. entity.Property(e => e.FeeFixed).HasColumnType("decimal(18,2)");
  1633. entity.Property(e => e.FeeOfDays).HasColumnType("datetime");
  1634. entity.Property(e => e.FeeRate).HasColumnType("decimal(18,2)");
  1635. entity.Property(e => e.FlowCardDirectProfit).HasColumnType("decimal(18,2)");
  1636. entity.Property(e => e.FlowCardEndDate).HasColumnType("datetime");
  1637. entity.Property(e => e.FlowCardFee).HasColumnType("decimal(18,2)");
  1638. entity.Property(e => e.FlowCardFreeDays).HasColumnType("int(11)");
  1639. entity.Property(e => e.FlowCardStartDate).HasColumnType("datetime");
  1640. entity.Property(e => e.HelpEndDate).HasColumnType("datetime");
  1641. entity.Property(e => e.HelpFee).HasColumnType("decimal(18,2)");
  1642. entity.Property(e => e.HelpMonths).HasColumnType("int(11)");
  1643. entity.Property(e => e.HelpStartDate).HasColumnType("datetime");
  1644. entity.Property(e => e.HelpSteadyFee).HasColumnType("decimal(18,2)");
  1645. entity.Property(e => e.MerStaEndDate).HasColumnType("datetime");
  1646. entity.Property(e => e.MerStaMonths).HasColumnType("int(11)");
  1647. entity.Property(e => e.MerStaProfit).HasColumnType("decimal(18,2)");
  1648. entity.Property(e => e.MerStaStartDate).HasColumnType("datetime");
  1649. entity.Property(e => e.MerStaTradeForMonth).HasColumnType("decimal(18,2)");
  1650. entity.Property(e => e.OpenEndDate).HasColumnType("datetime");
  1651. entity.Property(e => e.OpenStaDays).HasColumnType("int(11)");
  1652. entity.Property(e => e.OpenStaPrize).HasColumnType("decimal(18,2)");
  1653. entity.Property(e => e.OpenStaPrize2).HasColumnType("decimal(18,2)");
  1654. entity.Property(e => e.OpenStaTrade).HasColumnType("decimal(18,2)");
  1655. entity.Property(e => e.OpenStartDate).HasColumnType("datetime");
  1656. entity.Property(e => e.OrgId).HasColumnType("int(11)");
  1657. entity.Property(e => e.PullNewEndDate).HasColumnType("datetime");
  1658. entity.Property(e => e.PullNewExtendDays).HasColumnType("int(11)");
  1659. entity.Property(e => e.PullNewStartDate).HasColumnType("datetime");
  1660. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1661. entity.Property(e => e.SeoDescription)
  1662. .HasColumnType("varchar(500)")
  1663. .HasCharSet("utf8")
  1664. .HasCollation("utf8_general_ci");
  1665. entity.Property(e => e.SeoKeyword)
  1666. .HasColumnType("varchar(200)")
  1667. .HasCharSet("utf8")
  1668. .HasCollation("utf8_general_ci");
  1669. entity.Property(e => e.SeoTitle)
  1670. .HasColumnType("varchar(100)")
  1671. .HasCharSet("utf8")
  1672. .HasCollation("utf8_general_ci");
  1673. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1674. entity.Property(e => e.Status).HasColumnType("int(11)");
  1675. entity.Property(e => e.SubsidyEndDate).HasColumnType("datetime");
  1676. entity.Property(e => e.SubsidyStartDate).HasColumnType("datetime");
  1677. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1678. entity.Property(e => e.UpdateMan)
  1679. .HasColumnType("varchar(50)")
  1680. .HasCharSet("utf8")
  1681. .HasCollation("utf8_general_ci");
  1682. entity.Property(e => e.Version).HasColumnType("int(11)");
  1683. });
  1684. modelBuilder.Entity<KqProducts>(entity =>
  1685. {
  1686. entity.Property(e => e.Id).HasColumnType("int(11)");
  1687. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1688. entity.Property(e => e.CreateMan)
  1689. .HasColumnType("varchar(50)")
  1690. .HasCharSet("utf8")
  1691. .HasCollation("utf8_general_ci");
  1692. entity.Property(e => e.Name)
  1693. .HasColumnType("varchar(50)")
  1694. .HasCharSet("utf8")
  1695. .HasCollation("utf8_general_ci");
  1696. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1697. entity.Property(e => e.SeoDescription)
  1698. .HasColumnType("varchar(500)")
  1699. .HasCharSet("utf8")
  1700. .HasCollation("utf8_general_ci");
  1701. entity.Property(e => e.SeoKeyword)
  1702. .HasColumnType("varchar(200)")
  1703. .HasCharSet("utf8")
  1704. .HasCollation("utf8_general_ci");
  1705. entity.Property(e => e.SeoTitle)
  1706. .HasColumnType("varchar(100)")
  1707. .HasCharSet("utf8")
  1708. .HasCollation("utf8_general_ci");
  1709. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1710. entity.Property(e => e.Status).HasColumnType("int(11)");
  1711. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1712. entity.Property(e => e.UpdateMan)
  1713. .HasColumnType("varchar(50)")
  1714. .HasCharSet("utf8")
  1715. .HasCollation("utf8_general_ci");
  1716. entity.Property(e => e.Version).HasColumnType("int(11)");
  1717. });
  1718. modelBuilder.Entity<MachineApply>(entity =>
  1719. {
  1720. entity.Property(e => e.Id).HasColumnType("int(11)");
  1721. entity.Property(e => e.Address)
  1722. .HasColumnType("varchar(50)")
  1723. .HasCharSet("utf8")
  1724. .HasCollation("utf8_general_ci");
  1725. entity.Property(e => e.ApplyDeviceName)
  1726. .HasColumnType("varchar(32)")
  1727. .HasCharSet("utf8")
  1728. .HasCollation("utf8_general_ci");
  1729. entity.Property(e => e.ApplyDeviceNum).HasColumnType("int(11)");
  1730. entity.Property(e => e.ApplyNo)
  1731. .HasColumnType("varchar(32)")
  1732. .HasCharSet("utf8")
  1733. .HasCollation("utf8_general_ci");
  1734. entity.Property(e => e.ApplyTime).HasColumnType("datetime");
  1735. entity.Property(e => e.Areas)
  1736. .HasColumnType("varchar(30)")
  1737. .HasCharSet("utf8")
  1738. .HasCollation("utf8_general_ci");
  1739. entity.Property(e => e.AuditBy)
  1740. .HasColumnType("varchar(32)")
  1741. .HasCharSet("utf8")
  1742. .HasCollation("utf8_general_ci");
  1743. entity.Property(e => e.AuditRemark)
  1744. .HasColumnType("varchar(128)")
  1745. .HasCharSet("utf8")
  1746. .HasCollation("utf8_general_ci");
  1747. entity.Property(e => e.AuditResult).HasColumnType("int(11)");
  1748. entity.Property(e => e.AuditTime).HasColumnType("datetime");
  1749. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1750. entity.Property(e => e.CompleteTime).HasColumnType("datetime");
  1751. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1752. entity.Property(e => e.CreateMan)
  1753. .HasColumnType("varchar(50)")
  1754. .HasCharSet("utf8")
  1755. .HasCollation("utf8_general_ci");
  1756. entity.Property(e => e.DeliveryType).HasColumnType("int(11)");
  1757. entity.Property(e => e.ExpressName)
  1758. .HasColumnType("varchar(32)")
  1759. .HasCharSet("utf8")
  1760. .HasCollation("utf8_general_ci");
  1761. entity.Property(e => e.ExpressNo)
  1762. .HasColumnType("varchar(32)")
  1763. .HasCharSet("utf8")
  1764. .HasCollation("utf8_general_ci");
  1765. entity.Property(e => e.Mobile)
  1766. .HasColumnType("varchar(11)")
  1767. .HasCharSet("utf8")
  1768. .HasCollation("utf8_general_ci");
  1769. entity.Property(e => e.OrderExpand)
  1770. .HasColumnType("mediumtext")
  1771. .HasCharSet("utf8")
  1772. .HasCollation("utf8_general_ci");
  1773. entity.Property(e => e.ProductName)
  1774. .HasColumnType("varchar(32)")
  1775. .HasCharSet("utf8")
  1776. .HasCollation("utf8_general_ci");
  1777. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1778. entity.Property(e => e.RealName)
  1779. .HasColumnType("varchar(30)")
  1780. .HasCharSet("utf8")
  1781. .HasCollation("utf8_general_ci");
  1782. entity.Property(e => e.Remark)
  1783. .HasColumnType("varchar(64)")
  1784. .HasCharSet("utf8")
  1785. .HasCollation("utf8_general_ci");
  1786. entity.Property(e => e.ReturnOrderNo)
  1787. .HasColumnType("varchar(32)")
  1788. .HasCharSet("utf8")
  1789. .HasCollation("utf8_general_ci");
  1790. entity.Property(e => e.ReturnStatus).HasColumnType("int(11)");
  1791. entity.Property(e => e.SendDate).HasColumnType("datetime");
  1792. entity.Property(e => e.SendSn)
  1793. .HasColumnType("varchar(32)")
  1794. .HasCharSet("utf8")
  1795. .HasCollation("utf8_general_ci");
  1796. entity.Property(e => e.SendStatus).HasColumnType("int(11)");
  1797. entity.Property(e => e.SeoDescription)
  1798. .HasColumnType("varchar(500)")
  1799. .HasCharSet("utf8")
  1800. .HasCollation("utf8_general_ci");
  1801. entity.Property(e => e.SeoKeyword)
  1802. .HasColumnType("varchar(200)")
  1803. .HasCharSet("utf8")
  1804. .HasCollation("utf8_general_ci");
  1805. entity.Property(e => e.SeoTitle)
  1806. .HasColumnType("varchar(100)")
  1807. .HasCharSet("utf8")
  1808. .HasCollation("utf8_general_ci");
  1809. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1810. entity.Property(e => e.Status).HasColumnType("int(11)");
  1811. entity.Property(e => e.StoreAddress)
  1812. .HasColumnType("varchar(50)")
  1813. .HasCharSet("utf8")
  1814. .HasCollation("utf8_general_ci");
  1815. entity.Property(e => e.StoreAreas)
  1816. .HasColumnType("varchar(30)")
  1817. .HasCharSet("utf8")
  1818. .HasCollation("utf8_general_ci");
  1819. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  1820. entity.Property(e => e.StoreManager)
  1821. .HasColumnType("varchar(32)")
  1822. .HasCharSet("utf8")
  1823. .HasCollation("utf8_general_ci");
  1824. entity.Property(e => e.StoreManagerMobile)
  1825. .HasColumnType("varchar(11)")
  1826. .HasCharSet("utf8")
  1827. .HasCollation("utf8_general_ci");
  1828. entity.Property(e => e.StoreName)
  1829. .HasColumnType("varchar(32)")
  1830. .HasCharSet("utf8")
  1831. .HasCollation("utf8_general_ci");
  1832. entity.Property(e => e.StoreType).HasColumnType("int(11)");
  1833. entity.Property(e => e.StoreUserId).HasColumnType("int(11)");
  1834. entity.Property(e => e.SwapActProName)
  1835. .HasColumnType("varchar(32)")
  1836. .HasCharSet("utf8")
  1837. .HasCollation("utf8_general_ci");
  1838. entity.Property(e => e.SwapActProType).HasColumnType("int(11)");
  1839. entity.Property(e => e.SwapSnExpand)
  1840. .HasColumnType("mediumtext")
  1841. .HasCharSet("utf8")
  1842. .HasCollation("utf8_general_ci");
  1843. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  1844. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1845. entity.Property(e => e.UpdateMan)
  1846. .HasColumnType("varchar(50)")
  1847. .HasCharSet("utf8")
  1848. .HasCollation("utf8_general_ci");
  1849. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1850. entity.Property(e => e.Version).HasColumnType("int(11)");
  1851. });
  1852. modelBuilder.Entity<MachineApplyDetail>(entity =>
  1853. {
  1854. entity.Property(e => e.Id).HasColumnType("int(11)");
  1855. entity.Property(e => e.ApplyId).HasColumnType("int(11)");
  1856. entity.Property(e => e.ApplyNo)
  1857. .HasColumnType("varchar(32)")
  1858. .HasCharSet("utf8")
  1859. .HasCollation("utf8_general_ci");
  1860. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1861. entity.Property(e => e.CreateMan)
  1862. .HasColumnType("varchar(50)")
  1863. .HasCharSet("utf8")
  1864. .HasCollation("utf8_general_ci");
  1865. entity.Property(e => e.DeviceDesc)
  1866. .HasColumnType("varchar(32)")
  1867. .HasCharSet("utf8")
  1868. .HasCollation("utf8_general_ci");
  1869. entity.Property(e => e.DeviceModel)
  1870. .HasColumnType("varchar(32)")
  1871. .HasCharSet("utf8")
  1872. .HasCollation("utf8_general_ci");
  1873. entity.Property(e => e.DeviceSnNo)
  1874. .HasColumnType("varchar(32)")
  1875. .HasCharSet("utf8")
  1876. .HasCollation("utf8_general_ci");
  1877. entity.Property(e => e.DeviceStatus).HasColumnType("int(11)");
  1878. entity.Property(e => e.DeviceVendor)
  1879. .HasColumnType("varchar(32)")
  1880. .HasCharSet("utf8")
  1881. .HasCollation("utf8_general_ci");
  1882. entity.Property(e => e.ProductName)
  1883. .HasColumnType("varchar(32)")
  1884. .HasCharSet("utf8")
  1885. .HasCollation("utf8_general_ci");
  1886. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  1887. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1888. entity.Property(e => e.Remark)
  1889. .HasColumnType("varchar(64)")
  1890. .HasCharSet("utf8")
  1891. .HasCollation("utf8_general_ci");
  1892. entity.Property(e => e.SeoDescription)
  1893. .HasColumnType("varchar(500)")
  1894. .HasCharSet("utf8")
  1895. .HasCollation("utf8_general_ci");
  1896. entity.Property(e => e.SeoKeyword)
  1897. .HasColumnType("varchar(200)")
  1898. .HasCharSet("utf8")
  1899. .HasCollation("utf8_general_ci");
  1900. entity.Property(e => e.SeoTitle)
  1901. .HasColumnType("varchar(100)")
  1902. .HasCharSet("utf8")
  1903. .HasCollation("utf8_general_ci");
  1904. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1905. entity.Property(e => e.SourceSnNo)
  1906. .HasColumnType("varchar(32)")
  1907. .HasCharSet("utf8")
  1908. .HasCollation("utf8_general_ci");
  1909. entity.Property(e => e.SourceSnType).HasColumnType("int(11)");
  1910. entity.Property(e => e.Status).HasColumnType("int(11)");
  1911. entity.Property(e => e.UpSrcProName)
  1912. .HasColumnType("varchar(32)")
  1913. .HasCharSet("utf8")
  1914. .HasCollation("utf8_general_ci");
  1915. entity.Property(e => e.UpSrcProType).HasColumnType("int(11)");
  1916. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1917. entity.Property(e => e.UpdateMan)
  1918. .HasColumnType("varchar(50)")
  1919. .HasCharSet("utf8")
  1920. .HasCollation("utf8_general_ci");
  1921. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1922. entity.Property(e => e.Version).HasColumnType("int(11)");
  1923. });
  1924. modelBuilder.Entity<MachineChange>(entity =>
  1925. {
  1926. entity.Property(e => e.Id).HasColumnType("int(11)");
  1927. entity.Property(e => e.AuditBy)
  1928. .HasColumnType("varchar(32)")
  1929. .HasCharSet("utf8")
  1930. .HasCollation("utf8_general_ci");
  1931. entity.Property(e => e.AuditRemark)
  1932. .HasColumnType("varchar(128)")
  1933. .HasCharSet("utf8")
  1934. .HasCollation("utf8_general_ci");
  1935. entity.Property(e => e.AuditResult).HasColumnType("int(11)");
  1936. entity.Property(e => e.AuditTime).HasColumnType("datetime");
  1937. entity.Property(e => e.BackProductName)
  1938. .HasColumnType("varchar(32)")
  1939. .HasCharSet("utf8")
  1940. .HasCollation("utf8_general_ci");
  1941. entity.Property(e => e.BackProductType).HasColumnType("int(11)");
  1942. entity.Property(e => e.BackStoreId).HasColumnType("int(11)");
  1943. entity.Property(e => e.BackStoreName)
  1944. .HasColumnType("varchar(32)")
  1945. .HasCharSet("utf8")
  1946. .HasCollation("utf8_general_ci");
  1947. entity.Property(e => e.BackStoreUserId).HasColumnType("int(11)");
  1948. entity.Property(e => e.ChangeDeviceName)
  1949. .HasColumnType("varchar(32)")
  1950. .HasCharSet("utf8")
  1951. .HasCollation("utf8_general_ci");
  1952. entity.Property(e => e.ChangeDeviceNum).HasColumnType("int(11)");
  1953. entity.Property(e => e.ChangeNo)
  1954. .HasColumnType("varchar(32)")
  1955. .HasCharSet("utf8")
  1956. .HasCollation("utf8_general_ci");
  1957. entity.Property(e => e.ChangeSnExpand)
  1958. .HasColumnType("mediumtext")
  1959. .HasCharSet("utf8")
  1960. .HasCollation("utf8_general_ci");
  1961. entity.Property(e => e.ChangeTime).HasColumnType("datetime");
  1962. entity.Property(e => e.CompleteTime).HasColumnType("datetime");
  1963. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1964. entity.Property(e => e.CreateMan)
  1965. .HasColumnType("varchar(50)")
  1966. .HasCharSet("utf8")
  1967. .HasCollation("utf8_general_ci");
  1968. entity.Property(e => e.OrderExpand)
  1969. .HasColumnType("mediumtext")
  1970. .HasCharSet("utf8")
  1971. .HasCollation("utf8_general_ci");
  1972. entity.Property(e => e.OutProductName)
  1973. .HasColumnType("varchar(32)")
  1974. .HasCharSet("utf8")
  1975. .HasCollation("utf8_general_ci");
  1976. entity.Property(e => e.OutProductType).HasColumnType("int(11)");
  1977. entity.Property(e => e.OutStoreAddress)
  1978. .HasColumnType("varchar(128)")
  1979. .HasCharSet("utf8")
  1980. .HasCollation("utf8_general_ci");
  1981. entity.Property(e => e.OutStoreAreas)
  1982. .HasColumnType("varchar(30)")
  1983. .HasCharSet("utf8")
  1984. .HasCollation("utf8_general_ci");
  1985. entity.Property(e => e.OutStoreId).HasColumnType("int(11)");
  1986. entity.Property(e => e.OutStoreManager)
  1987. .HasColumnType("varchar(32)")
  1988. .HasCharSet("utf8")
  1989. .HasCollation("utf8_general_ci");
  1990. entity.Property(e => e.OutStoreManagerMobile)
  1991. .HasColumnType("varchar(11)")
  1992. .HasCharSet("utf8")
  1993. .HasCollation("utf8_general_ci");
  1994. entity.Property(e => e.OutStoreName)
  1995. .HasColumnType("varchar(32)")
  1996. .HasCharSet("utf8")
  1997. .HasCollation("utf8_general_ci");
  1998. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1999. entity.Property(e => e.Remark)
  2000. .HasColumnType("varchar(64)")
  2001. .HasCharSet("utf8")
  2002. .HasCollation("utf8_general_ci");
  2003. entity.Property(e => e.SeoDescription)
  2004. .HasColumnType("varchar(500)")
  2005. .HasCharSet("utf8")
  2006. .HasCollation("utf8_general_ci");
  2007. entity.Property(e => e.SeoKeyword)
  2008. .HasColumnType("varchar(200)")
  2009. .HasCharSet("utf8")
  2010. .HasCollation("utf8_general_ci");
  2011. entity.Property(e => e.SeoTitle)
  2012. .HasColumnType("varchar(100)")
  2013. .HasCharSet("utf8")
  2014. .HasCollation("utf8_general_ci");
  2015. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2016. entity.Property(e => e.Status).HasColumnType("int(11)");
  2017. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2018. entity.Property(e => e.UpdateMan)
  2019. .HasColumnType("varchar(50)")
  2020. .HasCharSet("utf8")
  2021. .HasCollation("utf8_general_ci");
  2022. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2023. entity.Property(e => e.Version).HasColumnType("int(11)");
  2024. });
  2025. modelBuilder.Entity<MachineChangeDetail>(entity =>
  2026. {
  2027. entity.Property(e => e.Id).HasColumnType("int(11)");
  2028. entity.Property(e => e.BackDeviceStatus).HasColumnType("int(11)");
  2029. entity.Property(e => e.BackProductName)
  2030. .HasColumnType("varchar(32)")
  2031. .HasCharSet("utf8")
  2032. .HasCollation("utf8_general_ci");
  2033. entity.Property(e => e.BackProductType).HasColumnType("int(11)");
  2034. entity.Property(e => e.BackSnNo)
  2035. .HasColumnType("varchar(32)")
  2036. .HasCharSet("utf8")
  2037. .HasCollation("utf8_general_ci");
  2038. entity.Property(e => e.BackSnType).HasColumnType("int(11)");
  2039. entity.Property(e => e.ChangeId).HasColumnType("int(11)");
  2040. entity.Property(e => e.ChangeNo)
  2041. .HasColumnType("varchar(32)")
  2042. .HasCharSet("utf8")
  2043. .HasCollation("utf8_general_ci");
  2044. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2045. entity.Property(e => e.CreateMan)
  2046. .HasColumnType("varchar(50)")
  2047. .HasCharSet("utf8")
  2048. .HasCollation("utf8_general_ci");
  2049. entity.Property(e => e.OutProductName)
  2050. .HasColumnType("varchar(32)")
  2051. .HasCharSet("utf8")
  2052. .HasCollation("utf8_general_ci");
  2053. entity.Property(e => e.OutProductType).HasColumnType("int(11)");
  2054. entity.Property(e => e.OutSnNo)
  2055. .HasColumnType("varchar(32)")
  2056. .HasCharSet("utf8")
  2057. .HasCollation("utf8_general_ci");
  2058. entity.Property(e => e.OutSnType).HasColumnType("int(11)");
  2059. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2060. entity.Property(e => e.Remark)
  2061. .HasColumnType("varchar(64)")
  2062. .HasCharSet("utf8")
  2063. .HasCollation("utf8_general_ci");
  2064. entity.Property(e => e.SeoDescription)
  2065. .HasColumnType("varchar(500)")
  2066. .HasCharSet("utf8")
  2067. .HasCollation("utf8_general_ci");
  2068. entity.Property(e => e.SeoKeyword)
  2069. .HasColumnType("varchar(200)")
  2070. .HasCharSet("utf8")
  2071. .HasCollation("utf8_general_ci");
  2072. entity.Property(e => e.SeoTitle)
  2073. .HasColumnType("varchar(100)")
  2074. .HasCharSet("utf8")
  2075. .HasCollation("utf8_general_ci");
  2076. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2077. entity.Property(e => e.Status).HasColumnType("int(11)");
  2078. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2079. entity.Property(e => e.UpdateMan)
  2080. .HasColumnType("varchar(50)")
  2081. .HasCharSet("utf8")
  2082. .HasCollation("utf8_general_ci");
  2083. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2084. entity.Property(e => e.Version).HasColumnType("int(11)");
  2085. });
  2086. modelBuilder.Entity<MachineForMerNo>(entity =>
  2087. {
  2088. entity.HasKey(e => e.MerNo)
  2089. .HasName("PRIMARY");
  2090. entity.Property(e => e.MerNo)
  2091. .HasColumnType("varchar(50)")
  2092. .HasCharSet("utf8")
  2093. .HasCollation("utf8_general_ci");
  2094. entity.Property(e => e.SnId).HasColumnType("int(11)");
  2095. });
  2096. modelBuilder.Entity<MachineForQrCode>(entity =>
  2097. {
  2098. entity.HasKey(e => e.DataId)
  2099. .HasName("PRIMARY");
  2100. entity.Property(e => e.DataId)
  2101. .HasColumnType("varchar(20)")
  2102. .HasCharSet("utf8")
  2103. .HasCollation("utf8_general_ci");
  2104. entity.Property(e => e.BindDate).HasColumnType("datetime");
  2105. entity.Property(e => e.MachineSnNo)
  2106. .HasColumnType("varchar(50)")
  2107. .HasCharSet("utf8")
  2108. .HasCollation("utf8_general_ci");
  2109. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2110. entity.Property(e => e.SnNo)
  2111. .HasColumnType("varchar(50)")
  2112. .HasCharSet("utf8")
  2113. .HasCollation("utf8_general_ci");
  2114. });
  2115. modelBuilder.Entity<MachineForSnNo>(entity =>
  2116. {
  2117. entity.HasKey(e => e.SnNo)
  2118. .HasName("PRIMARY");
  2119. entity.Property(e => e.SnNo)
  2120. .HasColumnType("varchar(50)")
  2121. .HasCharSet("utf8")
  2122. .HasCollation("utf8_general_ci");
  2123. entity.Property(e => e.SnId).HasColumnType("int(11)");
  2124. });
  2125. modelBuilder.Entity<MachineRenew>(entity =>
  2126. {
  2127. entity.Property(e => e.Id).HasColumnType("int(11)");
  2128. entity.Property(e => e.ApplyDate)
  2129. .HasColumnType("varchar(8)")
  2130. .HasCharSet("utf8")
  2131. .HasCollation("utf8_general_ci");
  2132. entity.Property(e => e.ApplyNo)
  2133. .HasColumnType("varchar(32)")
  2134. .HasCharSet("utf8")
  2135. .HasCollation("utf8_general_ci");
  2136. entity.Property(e => e.AuditDate).HasColumnType("datetime");
  2137. entity.Property(e => e.AuditDesc)
  2138. .HasColumnType("varchar(256)")
  2139. .HasCharSet("utf8")
  2140. .HasCollation("utf8_general_ci");
  2141. entity.Property(e => e.AuditStatus)
  2142. .HasColumnName("audit_status")
  2143. .HasColumnType("int(11)");
  2144. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2145. entity.Property(e => e.CreateMan)
  2146. .HasColumnType("varchar(50)")
  2147. .HasCharSet("utf8")
  2148. .HasCollation("utf8_general_ci");
  2149. entity.Property(e => e.DamagedBrandId).HasColumnType("int(11)");
  2150. entity.Property(e => e.DamagedSnNo)
  2151. .HasColumnType("varchar(32)")
  2152. .HasCharSet("utf8")
  2153. .HasCollation("utf8_general_ci");
  2154. entity.Property(e => e.DamagedSnType).HasColumnType("int(11)");
  2155. entity.Property(e => e.DeliverBrandId).HasColumnType("int(11)");
  2156. entity.Property(e => e.DeliverSnNo)
  2157. .HasColumnType("varchar(32)")
  2158. .HasCharSet("utf8")
  2159. .HasCollation("utf8_general_ci");
  2160. entity.Property(e => e.DemandDesc)
  2161. .HasColumnType("varchar(256)")
  2162. .HasCharSet("utf8")
  2163. .HasCollation("utf8_general_ci");
  2164. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2165. entity.Property(e => e.ReplaceBrandId).HasColumnType("int(11)");
  2166. entity.Property(e => e.ReplaceSnNo)
  2167. .HasColumnType("varchar(32)")
  2168. .HasCharSet("utf8")
  2169. .HasCollation("utf8_general_ci");
  2170. entity.Property(e => e.ReplaceSnType).HasColumnType("int(11)");
  2171. entity.Property(e => e.SeoDescription)
  2172. .HasColumnType("varchar(500)")
  2173. .HasCharSet("utf8")
  2174. .HasCollation("utf8_general_ci");
  2175. entity.Property(e => e.SeoKeyword)
  2176. .HasColumnType("varchar(200)")
  2177. .HasCharSet("utf8")
  2178. .HasCollation("utf8_general_ci");
  2179. entity.Property(e => e.SeoTitle)
  2180. .HasColumnType("varchar(100)")
  2181. .HasCharSet("utf8")
  2182. .HasCollation("utf8_general_ci");
  2183. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2184. entity.Property(e => e.Status).HasColumnType("int(11)");
  2185. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2186. entity.Property(e => e.UpdateMan)
  2187. .HasColumnType("varchar(50)")
  2188. .HasCharSet("utf8")
  2189. .HasCollation("utf8_general_ci");
  2190. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2191. entity.Property(e => e.Version).HasColumnType("int(11)");
  2192. });
  2193. modelBuilder.Entity<MachineReturn>(entity =>
  2194. {
  2195. entity.Property(e => e.Id).HasColumnType("int(11)");
  2196. entity.Property(e => e.ApplyNo)
  2197. .HasColumnType("varchar(32)")
  2198. .HasCharSet("utf8")
  2199. .HasCollation("utf8_general_ci");
  2200. entity.Property(e => e.AuditStatus).HasColumnType("int(11)");
  2201. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  2202. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2203. entity.Property(e => e.CreateMan)
  2204. .HasColumnType("varchar(50)")
  2205. .HasCharSet("utf8")
  2206. .HasCollation("utf8_general_ci");
  2207. entity.Property(e => e.DeviceDesc)
  2208. .HasColumnType("varchar(256)")
  2209. .HasCharSet("utf8")
  2210. .HasCollation("utf8_general_ci");
  2211. entity.Property(e => e.DeviceNum).HasColumnType("int(11)");
  2212. entity.Property(e => e.DeviceSnNos)
  2213. .HasColumnType("mediumtext")
  2214. .HasCharSet("utf8")
  2215. .HasCollation("utf8_general_ci");
  2216. entity.Property(e => e.Operator)
  2217. .HasColumnType("varchar(32)")
  2218. .HasCharSet("utf8")
  2219. .HasCollation("utf8_general_ci");
  2220. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2221. entity.Property(e => e.Remark)
  2222. .HasColumnType("varchar(64)")
  2223. .HasCharSet("utf8")
  2224. .HasCollation("utf8_general_ci");
  2225. entity.Property(e => e.SeoDescription)
  2226. .HasColumnType("varchar(500)")
  2227. .HasCharSet("utf8")
  2228. .HasCollation("utf8_general_ci");
  2229. entity.Property(e => e.SeoKeyword)
  2230. .HasColumnType("varchar(200)")
  2231. .HasCharSet("utf8")
  2232. .HasCollation("utf8_general_ci");
  2233. entity.Property(e => e.SeoTitle)
  2234. .HasColumnType("varchar(100)")
  2235. .HasCharSet("utf8")
  2236. .HasCollation("utf8_general_ci");
  2237. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2238. entity.Property(e => e.Status).HasColumnType("int(11)");
  2239. entity.Property(e => e.ToStoreId).HasColumnType("int(11)");
  2240. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2241. entity.Property(e => e.UpdateMan)
  2242. .HasColumnType("varchar(50)")
  2243. .HasCharSet("utf8")
  2244. .HasCollation("utf8_general_ci");
  2245. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2246. entity.Property(e => e.Version).HasColumnType("int(11)");
  2247. });
  2248. modelBuilder.Entity<MenuRight>(entity =>
  2249. {
  2250. entity.HasKey(e => e.MenuId)
  2251. .HasName("PRIMARY");
  2252. entity.Property(e => e.MenuId)
  2253. .HasColumnType("varchar(50)")
  2254. .HasCharSet("utf8")
  2255. .HasCollation("utf8_general_ci");
  2256. entity.Property(e => e.Name)
  2257. .HasColumnType("varchar(50)")
  2258. .HasCharSet("utf8")
  2259. .HasCollation("utf8_general_ci");
  2260. });
  2261. modelBuilder.Entity<MerchantAddInfo>(entity =>
  2262. {
  2263. entity.Property(e => e.Id).HasColumnType("int(11)");
  2264. entity.Property(e => e.AccountBank)
  2265. .HasColumnType("varchar(30)")
  2266. .HasCharSet("utf8")
  2267. .HasCollation("utf8_general_ci");
  2268. entity.Property(e => e.AccountName)
  2269. .HasColumnType("varchar(50)")
  2270. .HasCharSet("utf8")
  2271. .HasCollation("utf8_general_ci");
  2272. entity.Property(e => e.AccountNumber)
  2273. .HasColumnType("varchar(50)")
  2274. .HasCharSet("utf8")
  2275. .HasCollation("utf8_general_ci");
  2276. entity.Property(e => e.ActivitiesId)
  2277. .HasColumnType("varchar(32)")
  2278. .HasCharSet("utf8")
  2279. .HasCollation("utf8_general_ci");
  2280. entity.Property(e => e.ActivitiesRate)
  2281. .HasColumnType("varchar(20)")
  2282. .HasCharSet("utf8")
  2283. .HasCollation("utf8_general_ci");
  2284. entity.Property(e => e.AppAppid)
  2285. .HasColumnType("varchar(50)")
  2286. .HasCharSet("utf8")
  2287. .HasCollation("utf8_general_ci");
  2288. entity.Property(e => e.AppPics)
  2289. .HasColumnType("varchar(200)")
  2290. .HasCharSet("utf8")
  2291. .HasCollation("utf8_general_ci");
  2292. entity.Property(e => e.AppSubAppid)
  2293. .HasColumnType("varchar(50)")
  2294. .HasCharSet("utf8")
  2295. .HasCollation("utf8_general_ci");
  2296. entity.Property(e => e.ApplymentId)
  2297. .HasColumnType("varchar(50)")
  2298. .HasCharSet("utf8")
  2299. .HasCollation("utf8_general_ci");
  2300. entity.Property(e => e.ApplymentState)
  2301. .HasColumnType("varchar(50)")
  2302. .HasCharSet("utf8")
  2303. .HasCollation("utf8_general_ci");
  2304. entity.Property(e => e.AuditDetail)
  2305. .HasColumnType("mediumtext")
  2306. .HasCharSet("utf8")
  2307. .HasCollation("utf8_general_ci");
  2308. entity.Property(e => e.BankAccountType)
  2309. .HasColumnType("varchar(50)")
  2310. .HasCharSet("utf8")
  2311. .HasCollation("utf8_general_ci");
  2312. entity.Property(e => e.BankAddressCode)
  2313. .HasColumnType("varchar(20)")
  2314. .HasCharSet("utf8")
  2315. .HasCollation("utf8_general_ci");
  2316. entity.Property(e => e.BankBranchId)
  2317. .HasColumnType("varchar(20)")
  2318. .HasCharSet("utf8")
  2319. .HasCollation("utf8_general_ci");
  2320. entity.Property(e => e.BankName)
  2321. .HasColumnType("varchar(50)")
  2322. .HasCharSet("utf8")
  2323. .HasCollation("utf8_general_ci");
  2324. entity.Property(e => e.BizAddressCode)
  2325. .HasColumnType("varchar(30)")
  2326. .HasCharSet("utf8")
  2327. .HasCollation("utf8_general_ci");
  2328. entity.Property(e => e.BizStoreAddress)
  2329. .HasColumnType("varchar(50)")
  2330. .HasCharSet("utf8")
  2331. .HasCollation("utf8_general_ci");
  2332. entity.Property(e => e.BizStoreName)
  2333. .HasColumnType("varchar(50)")
  2334. .HasCharSet("utf8")
  2335. .HasCollation("utf8_general_ci");
  2336. entity.Property(e => e.BizSubAppid)
  2337. .HasColumnType("varchar(32)")
  2338. .HasCharSet("utf8")
  2339. .HasCollation("utf8_general_ci");
  2340. entity.Property(e => e.BusinessCode)
  2341. .HasColumnType("varchar(50)")
  2342. .HasCharSet("utf8")
  2343. .HasCollation("utf8_general_ci");
  2344. entity.Property(e => e.CardPeriodBegin).HasColumnType("datetime");
  2345. entity.Property(e => e.CardPeriodEnd).HasColumnType("datetime");
  2346. entity.Property(e => e.CertCopy)
  2347. .HasColumnType("varchar(200)")
  2348. .HasCharSet("utf8")
  2349. .HasCollation("utf8_general_ci");
  2350. entity.Property(e => e.CertLegalPerson)
  2351. .HasColumnType("varchar(20)")
  2352. .HasCharSet("utf8")
  2353. .HasCollation("utf8_general_ci");
  2354. entity.Property(e => e.CertMerchantName)
  2355. .HasColumnType("varchar(30)")
  2356. .HasCharSet("utf8")
  2357. .HasCollation("utf8_general_ci");
  2358. entity.Property(e => e.CertNumber)
  2359. .HasColumnType("varchar(32)")
  2360. .HasCharSet("utf8")
  2361. .HasCollation("utf8_general_ci");
  2362. entity.Property(e => e.CertType)
  2363. .HasColumnType("varchar(30)")
  2364. .HasCharSet("utf8")
  2365. .HasCollation("utf8_general_ci");
  2366. entity.Property(e => e.CertificateLetterCopy)
  2367. .HasColumnType("varchar(200)")
  2368. .HasCharSet("utf8")
  2369. .HasCollation("utf8_general_ci");
  2370. entity.Property(e => e.CompanyAddress)
  2371. .HasColumnType("varchar(50)")
  2372. .HasCharSet("utf8")
  2373. .HasCollation("utf8_general_ci");
  2374. entity.Property(e => e.ContactEmail)
  2375. .HasColumnType("varchar(50)")
  2376. .HasCharSet("utf8")
  2377. .HasCollation("utf8_general_ci");
  2378. entity.Property(e => e.ContactIdNumber)
  2379. .HasColumnType("varchar(18)")
  2380. .HasCharSet("utf8")
  2381. .HasCollation("utf8_general_ci");
  2382. entity.Property(e => e.ContactName)
  2383. .HasColumnType("varchar(30)")
  2384. .HasCharSet("utf8")
  2385. .HasCollation("utf8_general_ci");
  2386. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2387. entity.Property(e => e.CreateMan)
  2388. .HasColumnType("varchar(50)")
  2389. .HasCharSet("utf8")
  2390. .HasCollation("utf8_general_ci");
  2391. entity.Property(e => e.IdCardCopy)
  2392. .HasColumnType("varchar(200)")
  2393. .HasCharSet("utf8")
  2394. .HasCollation("utf8_general_ci");
  2395. entity.Property(e => e.IdCardName)
  2396. .HasColumnType("varchar(20)")
  2397. .HasCharSet("utf8")
  2398. .HasCollation("utf8_general_ci");
  2399. entity.Property(e => e.IdCardNational)
  2400. .HasColumnType("varchar(200)")
  2401. .HasCharSet("utf8")
  2402. .HasCollation("utf8_general_ci");
  2403. entity.Property(e => e.IdCardNumber)
  2404. .HasColumnType("varchar(18)")
  2405. .HasCharSet("utf8")
  2406. .HasCollation("utf8_general_ci");
  2407. entity.Property(e => e.IdDocType)
  2408. .HasColumnType("varchar(50)")
  2409. .HasCharSet("utf8")
  2410. .HasCollation("utf8_general_ci");
  2411. entity.Property(e => e.IndoorPic)
  2412. .HasColumnType("varchar(200)")
  2413. .HasCharSet("utf8")
  2414. .HasCollation("utf8_general_ci");
  2415. entity.Property(e => e.LegalPerson)
  2416. .HasColumnType("varchar(20)")
  2417. .HasCharSet("utf8")
  2418. .HasCollation("utf8_general_ci");
  2419. entity.Property(e => e.LicenseCopy)
  2420. .HasColumnType("varchar(200)")
  2421. .HasCharSet("utf8")
  2422. .HasCollation("utf8_general_ci");
  2423. entity.Property(e => e.LicenseNumber)
  2424. .HasColumnType("varchar(32)")
  2425. .HasCharSet("utf8")
  2426. .HasCollation("utf8_general_ci");
  2427. entity.Property(e => e.MerchantShortname)
  2428. .HasColumnType("varchar(50)")
  2429. .HasCharSet("utf8")
  2430. .HasCollation("utf8_general_ci");
  2431. entity.Property(e => e.MiniProgramAppid)
  2432. .HasColumnType("varchar(50)")
  2433. .HasCharSet("utf8")
  2434. .HasCollation("utf8_general_ci");
  2435. entity.Property(e => e.MiniProgramPics)
  2436. .HasColumnType("varchar(200)")
  2437. .HasCharSet("utf8")
  2438. .HasCollation("utf8_general_ci");
  2439. entity.Property(e => e.MiniProgramSubAppid)
  2440. .HasColumnType("varchar(50)")
  2441. .HasCharSet("utf8")
  2442. .HasCollation("utf8_general_ci");
  2443. entity.Property(e => e.MobilePhone)
  2444. .HasColumnType("varchar(11)")
  2445. .HasCharSet("utf8")
  2446. .HasCollation("utf8_general_ci");
  2447. entity.Property(e => e.MpAppid)
  2448. .HasColumnType("varchar(50)")
  2449. .HasCharSet("utf8")
  2450. .HasCollation("utf8_general_ci");
  2451. entity.Property(e => e.MpPics)
  2452. .HasColumnType("varchar(200)")
  2453. .HasCharSet("utf8")
  2454. .HasCollation("utf8_general_ci");
  2455. entity.Property(e => e.MpSubAppid)
  2456. .HasColumnType("varchar(50)")
  2457. .HasCharSet("utf8")
  2458. .HasCollation("utf8_general_ci");
  2459. entity.Property(e => e.OpenId)
  2460. .HasColumnType("varchar(50)")
  2461. .HasCharSet("utf8")
  2462. .HasCollation("utf8_general_ci");
  2463. entity.Property(e => e.OrgPeriodBegin).HasColumnType("datetime");
  2464. entity.Property(e => e.OrgPeriodEnd).HasColumnType("datetime");
  2465. entity.Property(e => e.OrganizationCode)
  2466. .HasColumnType("varchar(32)")
  2467. .HasCharSet("utf8")
  2468. .HasCollation("utf8_general_ci");
  2469. entity.Property(e => e.OrganizationCopy)
  2470. .HasColumnType("varchar(200)")
  2471. .HasCharSet("utf8")
  2472. .HasCollation("utf8_general_ci");
  2473. entity.Property(e => e.Owner)
  2474. .HasColumnType("bit(1)")
  2475. .HasDefaultValueSql("b'0'");
  2476. entity.Property(e => e.PeriodBegin).HasColumnType("datetime");
  2477. entity.Property(e => e.PeriodEnd).HasColumnType("datetime");
  2478. entity.Property(e => e.QualificationType)
  2479. .HasColumnType("varchar(30)")
  2480. .HasCharSet("utf8")
  2481. .HasCollation("utf8_general_ci");
  2482. entity.Property(e => e.Qualifications)
  2483. .HasColumnType("varchar(200)")
  2484. .HasCharSet("utf8")
  2485. .HasCollation("utf8_general_ci");
  2486. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2487. entity.Property(e => e.SalesScenesType)
  2488. .HasColumnType("varchar(50)")
  2489. .HasCharSet("utf8")
  2490. .HasCollation("utf8_general_ci");
  2491. entity.Property(e => e.SeoDescription)
  2492. .HasColumnType("varchar(500)")
  2493. .HasCharSet("utf8")
  2494. .HasCollation("utf8_general_ci");
  2495. entity.Property(e => e.SeoKeyword)
  2496. .HasColumnType("varchar(200)")
  2497. .HasCharSet("utf8")
  2498. .HasCollation("utf8_general_ci");
  2499. entity.Property(e => e.SeoTitle)
  2500. .HasColumnType("varchar(100)")
  2501. .HasCharSet("utf8")
  2502. .HasCollation("utf8_general_ci");
  2503. entity.Property(e => e.ServicePhone)
  2504. .HasColumnType("varchar(30)")
  2505. .HasCharSet("utf8")
  2506. .HasCollation("utf8_general_ci");
  2507. entity.Property(e => e.SettlementId)
  2508. .HasColumnType("varchar(3)")
  2509. .HasCharSet("utf8")
  2510. .HasCollation("utf8_general_ci");
  2511. entity.Property(e => e.SignUrl)
  2512. .HasColumnType("varchar(1000)")
  2513. .HasCharSet("utf8")
  2514. .HasCollation("utf8_general_ci");
  2515. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2516. entity.Property(e => e.Status).HasColumnType("int(11)");
  2517. entity.Property(e => e.StoreEntrancePic)
  2518. .HasColumnType("varchar(200)")
  2519. .HasCharSet("utf8")
  2520. .HasCollation("utf8_general_ci");
  2521. entity.Property(e => e.SubCorpId)
  2522. .HasColumnType("varchar(50)")
  2523. .HasCharSet("utf8")
  2524. .HasCollation("utf8_general_ci");
  2525. entity.Property(e => e.SubMchid)
  2526. .HasColumnType("varchar(32)")
  2527. .HasCharSet("utf8")
  2528. .HasCollation("utf8_general_ci");
  2529. entity.Property(e => e.SubjectType)
  2530. .HasColumnType("varchar(50)")
  2531. .HasCharSet("utf8")
  2532. .HasCollation("utf8_general_ci");
  2533. entity.Property(e => e.UboInfoIdCardCopy)
  2534. .HasColumnType("varchar(200)")
  2535. .HasCharSet("utf8")
  2536. .HasCollation("utf8_general_ci");
  2537. entity.Property(e => e.UboInfoIdCardNational)
  2538. .HasColumnType("varchar(200)")
  2539. .HasCharSet("utf8")
  2540. .HasCollation("utf8_general_ci");
  2541. entity.Property(e => e.UboInfoIdDocCopy)
  2542. .HasColumnType("varchar(200)")
  2543. .HasCharSet("utf8")
  2544. .HasCollation("utf8_general_ci");
  2545. entity.Property(e => e.UboInfoIdNumber)
  2546. .HasColumnType("varchar(30)")
  2547. .HasCharSet("utf8")
  2548. .HasCollation("utf8_general_ci");
  2549. entity.Property(e => e.UboInfoIdPeriodBegin).HasColumnType("datetime");
  2550. entity.Property(e => e.UboInfoIdPeriodEnd).HasColumnType("datetime");
  2551. entity.Property(e => e.UboInfoIdType)
  2552. .HasColumnType("varchar(50)")
  2553. .HasCharSet("utf8")
  2554. .HasCollation("utf8_general_ci");
  2555. entity.Property(e => e.UboInfoName)
  2556. .HasColumnType("varchar(20)")
  2557. .HasCharSet("utf8")
  2558. .HasCollation("utf8_general_ci");
  2559. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2560. entity.Property(e => e.UpdateMan)
  2561. .HasColumnType("varchar(50)")
  2562. .HasCharSet("utf8")
  2563. .HasCollation("utf8_general_ci");
  2564. entity.Property(e => e.Version).HasColumnType("int(11)");
  2565. entity.Property(e => e.WebAppId)
  2566. .HasColumnType("varchar(50)")
  2567. .HasCharSet("utf8")
  2568. .HasCollation("utf8_general_ci");
  2569. entity.Property(e => e.WebAuthorisation)
  2570. .HasColumnType("varchar(200)")
  2571. .HasCharSet("utf8")
  2572. .HasCollation("utf8_general_ci");
  2573. entity.Property(e => e.WebDomain)
  2574. .HasColumnType("varchar(50)")
  2575. .HasCharSet("utf8")
  2576. .HasCollation("utf8_general_ci");
  2577. entity.Property(e => e.WeworkPics)
  2578. .HasColumnType("varchar(200)")
  2579. .HasCharSet("utf8")
  2580. .HasCollation("utf8_general_ci");
  2581. });
  2582. modelBuilder.Entity<MerchantAdmin>(entity =>
  2583. {
  2584. entity.Property(e => e.Id).HasColumnType("int(11)");
  2585. entity.Property(e => e.AdminName)
  2586. .HasColumnType("varchar(50)")
  2587. .HasCharSet("utf8")
  2588. .HasCollation("utf8_general_ci");
  2589. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2590. entity.Property(e => e.CreateMan)
  2591. .HasColumnType("varchar(50)")
  2592. .HasCharSet("utf8")
  2593. .HasCollation("utf8_general_ci");
  2594. entity.Property(e => e.Email)
  2595. .HasColumnType("varchar(50)")
  2596. .HasCharSet("utf8")
  2597. .HasCollation("utf8_general_ci");
  2598. entity.Property(e => e.LastLoginDate).HasColumnType("datetime");
  2599. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2600. entity.Property(e => e.Mobile)
  2601. .HasColumnType("varchar(11)")
  2602. .HasCharSet("utf8")
  2603. .HasCollation("utf8_general_ci");
  2604. entity.Property(e => e.Note)
  2605. .HasColumnType("mediumtext")
  2606. .HasCharSet("utf8")
  2607. .HasCollation("utf8_general_ci");
  2608. entity.Property(e => e.Password)
  2609. .HasColumnType("varchar(32)")
  2610. .HasCharSet("utf8")
  2611. .HasCollation("utf8_general_ci");
  2612. entity.Property(e => e.Qq)
  2613. .HasColumnName("QQ")
  2614. .HasColumnType("varchar(20)")
  2615. .HasCharSet("utf8")
  2616. .HasCollation("utf8_general_ci");
  2617. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2618. entity.Property(e => e.RealName)
  2619. .HasColumnType("varchar(50)")
  2620. .HasCharSet("utf8")
  2621. .HasCollation("utf8_general_ci");
  2622. entity.Property(e => e.RightInfo)
  2623. .HasColumnType("varchar(500)")
  2624. .HasCharSet("utf8")
  2625. .HasCollation("utf8_general_ci");
  2626. entity.Property(e => e.SeoDescription)
  2627. .HasColumnType("varchar(500)")
  2628. .HasCharSet("utf8")
  2629. .HasCollation("utf8_general_ci");
  2630. entity.Property(e => e.SeoKeyword)
  2631. .HasColumnType("varchar(200)")
  2632. .HasCharSet("utf8")
  2633. .HasCollation("utf8_general_ci");
  2634. entity.Property(e => e.SeoTitle)
  2635. .HasColumnType("varchar(100)")
  2636. .HasCharSet("utf8")
  2637. .HasCollation("utf8_general_ci");
  2638. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2639. entity.Property(e => e.Status).HasColumnType("int(11)");
  2640. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2641. entity.Property(e => e.UpdateMan)
  2642. .HasColumnType("varchar(50)")
  2643. .HasCharSet("utf8")
  2644. .HasCollation("utf8_general_ci");
  2645. entity.Property(e => e.Version).HasColumnType("int(11)");
  2646. });
  2647. modelBuilder.Entity<MerchantAuth>(entity =>
  2648. {
  2649. entity.Property(e => e.Id).HasColumnType("int(11)");
  2650. entity.Property(e => e.AuthType).HasColumnType("int(11)");
  2651. entity.Property(e => e.BankCardAccount)
  2652. .HasColumnType("varchar(32)")
  2653. .HasCharSet("utf8")
  2654. .HasCollation("utf8_general_ci");
  2655. entity.Property(e => e.BankMobile)
  2656. .HasColumnType("varchar(11)")
  2657. .HasCharSet("utf8")
  2658. .HasCollation("utf8_general_ci");
  2659. entity.Property(e => e.BankName)
  2660. .HasColumnType("varchar(64)")
  2661. .HasCharSet("utf8")
  2662. .HasCollation("utf8_general_ci");
  2663. entity.Property(e => e.ChannelCode)
  2664. .HasColumnType("varchar(16)")
  2665. .HasCharSet("utf8")
  2666. .HasCollation("utf8_general_ci");
  2667. entity.Property(e => e.ChannelName)
  2668. .HasColumnType("varchar(32)")
  2669. .HasCharSet("utf8")
  2670. .HasCollation("utf8_general_ci");
  2671. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2672. entity.Property(e => e.CreateMan)
  2673. .HasColumnType("varchar(50)")
  2674. .HasCharSet("utf8")
  2675. .HasCollation("utf8_general_ci");
  2676. entity.Property(e => e.IdCardNo)
  2677. .HasColumnType("varchar(18)")
  2678. .HasCharSet("utf8")
  2679. .HasCollation("utf8_general_ci");
  2680. entity.Property(e => e.MerNo)
  2681. .HasColumnType("varchar(20)")
  2682. .HasCharSet("utf8")
  2683. .HasCollation("utf8_general_ci");
  2684. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2685. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2686. entity.Property(e => e.RealName)
  2687. .HasColumnType("varchar(16)")
  2688. .HasCharSet("utf8")
  2689. .HasCollation("utf8_general_ci");
  2690. entity.Property(e => e.ReqData)
  2691. .HasColumnType("varchar(2000)")
  2692. .HasCharSet("utf8")
  2693. .HasCollation("utf8_general_ci");
  2694. entity.Property(e => e.RespData)
  2695. .HasColumnType("varchar(2000)")
  2696. .HasCharSet("utf8")
  2697. .HasCollation("utf8_general_ci");
  2698. entity.Property(e => e.ReturnCode)
  2699. .HasColumnType("varchar(30)")
  2700. .HasCharSet("utf8")
  2701. .HasCollation("utf8_general_ci");
  2702. entity.Property(e => e.ReturnMsg)
  2703. .HasColumnType("varchar(512)")
  2704. .HasCharSet("utf8")
  2705. .HasCollation("utf8_general_ci");
  2706. entity.Property(e => e.SeoDescription)
  2707. .HasColumnType("varchar(500)")
  2708. .HasCharSet("utf8")
  2709. .HasCollation("utf8_general_ci");
  2710. entity.Property(e => e.SeoKeyword)
  2711. .HasColumnType("varchar(200)")
  2712. .HasCharSet("utf8")
  2713. .HasCollation("utf8_general_ci");
  2714. entity.Property(e => e.SeoTitle)
  2715. .HasColumnType("varchar(100)")
  2716. .HasCharSet("utf8")
  2717. .HasCollation("utf8_general_ci");
  2718. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2719. entity.Property(e => e.Status).HasColumnType("int(11)");
  2720. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2721. entity.Property(e => e.UpdateMan)
  2722. .HasColumnType("varchar(50)")
  2723. .HasCharSet("utf8")
  2724. .HasCollation("utf8_general_ci");
  2725. entity.Property(e => e.Version).HasColumnType("int(11)");
  2726. });
  2727. modelBuilder.Entity<MerchantClass>(entity =>
  2728. {
  2729. entity.Property(e => e.Id).HasColumnType("int(11)");
  2730. entity.Property(e => e.ColName)
  2731. .HasColumnType("varchar(50)")
  2732. .HasCharSet("utf8")
  2733. .HasCollation("utf8_general_ci");
  2734. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2735. entity.Property(e => e.CreateMan)
  2736. .HasColumnType("varchar(50)")
  2737. .HasCharSet("utf8")
  2738. .HasCollation("utf8_general_ci");
  2739. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2740. entity.Property(e => e.ParentId).HasColumnType("int(11)");
  2741. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2742. entity.Property(e => e.SeoDescription)
  2743. .HasColumnType("varchar(500)")
  2744. .HasCharSet("utf8")
  2745. .HasCollation("utf8_general_ci");
  2746. entity.Property(e => e.SeoKeyword)
  2747. .HasColumnType("varchar(200)")
  2748. .HasCharSet("utf8")
  2749. .HasCollation("utf8_general_ci");
  2750. entity.Property(e => e.SeoTitle)
  2751. .HasColumnType("varchar(100)")
  2752. .HasCharSet("utf8")
  2753. .HasCollation("utf8_general_ci");
  2754. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2755. entity.Property(e => e.Status).HasColumnType("int(11)");
  2756. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2757. entity.Property(e => e.UpdateMan)
  2758. .HasColumnType("varchar(50)")
  2759. .HasCharSet("utf8")
  2760. .HasCollation("utf8_general_ci");
  2761. entity.Property(e => e.Version).HasColumnType("int(11)");
  2762. });
  2763. modelBuilder.Entity<MerchantCol>(entity =>
  2764. {
  2765. entity.Property(e => e.Id).HasColumnType("int(11)");
  2766. entity.Property(e => e.ColDetail)
  2767. .HasColumnType("varchar(50)")
  2768. .HasCharSet("utf8")
  2769. .HasCollation("utf8_general_ci");
  2770. entity.Property(e => e.ColEnName)
  2771. .HasColumnType("varchar(50)")
  2772. .HasCharSet("utf8")
  2773. .HasCollation("utf8_general_ci");
  2774. entity.Property(e => e.ColId)
  2775. .HasColumnType("varchar(30)")
  2776. .HasCharSet("utf8")
  2777. .HasCollation("utf8_general_ci");
  2778. entity.Property(e => e.ColName)
  2779. .HasColumnType("varchar(50)")
  2780. .HasCharSet("utf8")
  2781. .HasCollation("utf8_general_ci");
  2782. entity.Property(e => e.ColPicPath)
  2783. .HasColumnType("varchar(200)")
  2784. .HasCharSet("utf8")
  2785. .HasCollation("utf8_general_ci");
  2786. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2787. entity.Property(e => e.CreateMan)
  2788. .HasColumnType("varchar(50)")
  2789. .HasCharSet("utf8")
  2790. .HasCollation("utf8_general_ci");
  2791. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2792. entity.Property(e => e.ParentId).HasColumnType("int(11)");
  2793. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2794. entity.Property(e => e.Recommend)
  2795. .HasColumnType("bit(1)")
  2796. .HasDefaultValueSql("b'0'");
  2797. entity.Property(e => e.SeoDescription)
  2798. .HasColumnType("varchar(500)")
  2799. .HasCharSet("utf8")
  2800. .HasCollation("utf8_general_ci");
  2801. entity.Property(e => e.SeoKeyword)
  2802. .HasColumnType("varchar(200)")
  2803. .HasCharSet("utf8")
  2804. .HasCollation("utf8_general_ci");
  2805. entity.Property(e => e.SeoTitle)
  2806. .HasColumnType("varchar(100)")
  2807. .HasCharSet("utf8")
  2808. .HasCollation("utf8_general_ci");
  2809. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2810. entity.Property(e => e.Status).HasColumnType("int(11)");
  2811. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2812. entity.Property(e => e.UpdateMan)
  2813. .HasColumnType("varchar(50)")
  2814. .HasCharSet("utf8")
  2815. .HasCollation("utf8_general_ci");
  2816. entity.Property(e => e.Version).HasColumnType("int(11)");
  2817. });
  2818. modelBuilder.Entity<MerchantComment>(entity =>
  2819. {
  2820. entity.Property(e => e.Id).HasColumnType("int(11)");
  2821. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2822. entity.Property(e => e.CreateMan)
  2823. .HasColumnType("varchar(50)")
  2824. .HasCharSet("utf8")
  2825. .HasCollation("utf8_general_ci");
  2826. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2827. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  2828. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2829. entity.Property(e => e.SeoDescription)
  2830. .HasColumnType("varchar(500)")
  2831. .HasCharSet("utf8")
  2832. .HasCollation("utf8_general_ci");
  2833. entity.Property(e => e.SeoKeyword)
  2834. .HasColumnType("varchar(200)")
  2835. .HasCharSet("utf8")
  2836. .HasCollation("utf8_general_ci");
  2837. entity.Property(e => e.SeoTitle)
  2838. .HasColumnType("varchar(100)")
  2839. .HasCharSet("utf8")
  2840. .HasCollation("utf8_general_ci");
  2841. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2842. entity.Property(e => e.StarNum1).HasColumnType("int(11)");
  2843. entity.Property(e => e.StarNum2).HasColumnType("int(11)");
  2844. entity.Property(e => e.StarNum3).HasColumnType("int(11)");
  2845. entity.Property(e => e.Status).HasColumnType("int(11)");
  2846. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2847. entity.Property(e => e.UpdateMan)
  2848. .HasColumnType("varchar(50)")
  2849. .HasCharSet("utf8")
  2850. .HasCollation("utf8_general_ci");
  2851. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2852. entity.Property(e => e.Version).HasColumnType("int(11)");
  2853. });
  2854. modelBuilder.Entity<MerchantForCode>(entity =>
  2855. {
  2856. entity.HasKey(e => e.Code)
  2857. .HasName("PRIMARY");
  2858. entity.Property(e => e.Code)
  2859. .HasColumnType("varchar(30)")
  2860. .HasCharSet("utf8")
  2861. .HasCollation("utf8_general_ci");
  2862. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2863. });
  2864. modelBuilder.Entity<MerchantForMobile>(entity =>
  2865. {
  2866. entity.HasKey(e => e.Mobile)
  2867. .HasName("PRIMARY");
  2868. entity.Property(e => e.Mobile)
  2869. .HasColumnType("varchar(11)")
  2870. .HasCharSet("utf8")
  2871. .HasCollation("utf8_general_ci");
  2872. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2873. });
  2874. modelBuilder.Entity<MerchantForName>(entity =>
  2875. {
  2876. entity.HasKey(e => e.Name)
  2877. .HasName("PRIMARY");
  2878. entity.Property(e => e.Name)
  2879. .HasColumnType("varchar(30)")
  2880. .HasCharSet("utf8")
  2881. .HasCollation("utf8_general_ci");
  2882. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2883. });
  2884. modelBuilder.Entity<MerchantInfo>(entity =>
  2885. {
  2886. entity.Property(e => e.Id).HasColumnType("int(11)");
  2887. entity.Property(e => e.ActivationDate).HasColumnType("datetime");
  2888. entity.Property(e => e.ActivationStatus).HasColumnType("int(11)");
  2889. entity.Property(e => e.Address)
  2890. .HasColumnType("varchar(100)")
  2891. .HasCharSet("utf8")
  2892. .HasCollation("utf8_general_ci");
  2893. entity.Property(e => e.Areas)
  2894. .HasColumnType("varchar(50)")
  2895. .HasCharSet("utf8")
  2896. .HasCollation("utf8_general_ci");
  2897. entity.Property(e => e.BindDate).HasColumnType("datetime");
  2898. entity.Property(e => e.BindStatus).HasColumnType("int(11)");
  2899. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2900. entity.Property(e => e.CreateMan)
  2901. .HasColumnType("varchar(50)")
  2902. .HasCharSet("utf8")
  2903. .HasCollation("utf8_general_ci");
  2904. entity.Property(e => e.IsAuth)
  2905. .HasColumnType("bit(1)")
  2906. .HasDefaultValueSql("b'0'");
  2907. entity.Property(e => e.LastAddConsumerDate).HasColumnType("datetime");
  2908. entity.Property(e => e.LastConsumeDate).HasColumnType("datetime");
  2909. entity.Property(e => e.LoginPwd)
  2910. .HasColumnType("varchar(32)")
  2911. .HasCharSet("utf8")
  2912. .HasCollation("utf8_general_ci");
  2913. entity.Property(e => e.Logo)
  2914. .HasColumnType("varchar(200)")
  2915. .HasCharSet("utf8")
  2916. .HasCollation("utf8_general_ci");
  2917. entity.Property(e => e.Mobile)
  2918. .HasColumnType("varchar(11)")
  2919. .HasCharSet("utf8")
  2920. .HasCollation("utf8_general_ci");
  2921. entity.Property(e => e.Name)
  2922. .HasColumnType("varchar(50)")
  2923. .HasCharSet("utf8")
  2924. .HasCollation("utf8_general_ci");
  2925. entity.Property(e => e.ParentUserNav)
  2926. .HasColumnType("varchar(500)")
  2927. .HasCharSet("utf8")
  2928. .HasCollation("utf8_general_ci");
  2929. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2930. entity.Property(e => e.SeoDescription)
  2931. .HasColumnType("varchar(500)")
  2932. .HasCharSet("utf8")
  2933. .HasCollation("utf8_general_ci");
  2934. entity.Property(e => e.SeoKeyword)
  2935. .HasColumnType("varchar(200)")
  2936. .HasCharSet("utf8")
  2937. .HasCollation("utf8_general_ci");
  2938. entity.Property(e => e.SeoTitle)
  2939. .HasColumnType("varchar(100)")
  2940. .HasCharSet("utf8")
  2941. .HasCollation("utf8_general_ci");
  2942. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2943. entity.Property(e => e.Status).HasColumnType("int(11)");
  2944. entity.Property(e => e.TotalActual).HasColumnType("decimal(18,2)");
  2945. entity.Property(e => e.TotalAmount).HasColumnType("decimal(18,2)");
  2946. entity.Property(e => e.TotalConsumeCount).HasColumnType("int(11)");
  2947. entity.Property(e => e.TotalCustomer).HasColumnType("int(11)");
  2948. entity.Property(e => e.TotalOrder).HasColumnType("int(11)");
  2949. entity.Property(e => e.TotalUser).HasColumnType("int(11)");
  2950. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2951. entity.Property(e => e.UpdateMan)
  2952. .HasColumnType("varchar(50)")
  2953. .HasCharSet("utf8")
  2954. .HasCollation("utf8_general_ci");
  2955. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2956. entity.Property(e => e.Version).HasColumnType("int(11)");
  2957. });
  2958. modelBuilder.Entity<MerchantParamSet>(entity =>
  2959. {
  2960. entity.Property(e => e.Id).HasColumnType("int(11)");
  2961. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2962. entity.Property(e => e.CreateMan)
  2963. .HasColumnType("varchar(50)")
  2964. .HasCharSet("utf8")
  2965. .HasCollation("utf8_general_ci");
  2966. entity.Property(e => e.DiviPercent).HasColumnType("decimal(18,2)");
  2967. entity.Property(e => e.DiviPersons).HasColumnType("int(11)");
  2968. entity.Property(e => e.GetPercent).HasColumnType("decimal(18,2)");
  2969. entity.Property(e => e.IsAll).HasColumnType("int(11)");
  2970. entity.Property(e => e.MinPayMoney).HasColumnType("decimal(18,2)");
  2971. entity.Property(e => e.ProfitDays).HasColumnType("int(11)");
  2972. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2973. entity.Property(e => e.SeoDescription)
  2974. .HasColumnType("varchar(500)")
  2975. .HasCharSet("utf8")
  2976. .HasCollation("utf8_general_ci");
  2977. entity.Property(e => e.SeoKeyword)
  2978. .HasColumnType("varchar(200)")
  2979. .HasCharSet("utf8")
  2980. .HasCollation("utf8_general_ci");
  2981. entity.Property(e => e.SeoTitle)
  2982. .HasColumnType("varchar(100)")
  2983. .HasCharSet("utf8")
  2984. .HasCollation("utf8_general_ci");
  2985. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2986. entity.Property(e => e.Status).HasColumnType("int(11)");
  2987. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2988. entity.Property(e => e.UpdateMan)
  2989. .HasColumnType("varchar(50)")
  2990. .HasCharSet("utf8")
  2991. .HasCollation("utf8_general_ci");
  2992. entity.Property(e => e.Version).HasColumnType("int(11)");
  2993. });
  2994. modelBuilder.Entity<MerchantQrCode>(entity =>
  2995. {
  2996. entity.Property(e => e.Id).HasColumnType("int(11)");
  2997. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2998. entity.Property(e => e.CreateMan)
  2999. .HasColumnType("varchar(50)")
  3000. .HasCharSet("utf8")
  3001. .HasCollation("utf8_general_ci");
  3002. entity.Property(e => e.MachineId).HasColumnType("int(11)");
  3003. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  3004. entity.Property(e => e.QrCodeContent)
  3005. .HasColumnType("varchar(500)")
  3006. .HasCharSet("utf8")
  3007. .HasCollation("utf8_general_ci");
  3008. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3009. entity.Property(e => e.SeoDescription)
  3010. .HasColumnType("varchar(500)")
  3011. .HasCharSet("utf8")
  3012. .HasCollation("utf8_general_ci");
  3013. entity.Property(e => e.SeoKeyword)
  3014. .HasColumnType("varchar(200)")
  3015. .HasCharSet("utf8")
  3016. .HasCollation("utf8_general_ci");
  3017. entity.Property(e => e.SeoTitle)
  3018. .HasColumnType("varchar(100)")
  3019. .HasCharSet("utf8")
  3020. .HasCollation("utf8_general_ci");
  3021. entity.Property(e => e.SnNo)
  3022. .HasColumnType("varchar(50)")
  3023. .HasCharSet("utf8")
  3024. .HasCollation("utf8_general_ci");
  3025. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3026. entity.Property(e => e.Status).HasColumnType("int(11)");
  3027. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3028. entity.Property(e => e.UpdateMan)
  3029. .HasColumnType("varchar(50)")
  3030. .HasCharSet("utf8")
  3031. .HasCollation("utf8_general_ci");
  3032. entity.Property(e => e.Version).HasColumnType("int(11)");
  3033. });
  3034. modelBuilder.Entity<MerchantRebateDetail>(entity =>
  3035. {
  3036. entity.Property(e => e.Id).HasColumnType("int(11)");
  3037. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  3038. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3039. entity.Property(e => e.CreateMan)
  3040. .HasColumnType("varchar(50)")
  3041. .HasCharSet("utf8")
  3042. .HasCollation("utf8_general_ci");
  3043. entity.Property(e => e.CreditRewardAmount).HasColumnType("decimal(18,2)");
  3044. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  3045. entity.Property(e => e.DebitRewardAmount).HasColumnType("decimal(18,2)");
  3046. entity.Property(e => e.DebitTradeAmt).HasColumnType("decimal(18,2)");
  3047. entity.Property(e => e.MerNo)
  3048. .HasColumnType("varchar(32)")
  3049. .HasCharSet("utf8")
  3050. .HasCollation("utf8_general_ci");
  3051. entity.Property(e => e.MerRegTime).HasColumnType("datetime");
  3052. entity.Property(e => e.MerStandardDate).HasColumnType("datetime");
  3053. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  3054. entity.Property(e => e.MmpUserName)
  3055. .HasColumnType("varchar(32)")
  3056. .HasCharSet("utf8")
  3057. .HasCollation("utf8_general_ci");
  3058. entity.Property(e => e.MmpUserNo)
  3059. .HasColumnType("varchar(32)")
  3060. .HasCharSet("utf8")
  3061. .HasCollation("utf8_general_ci");
  3062. entity.Property(e => e.ProductName)
  3063. .HasColumnType("varchar(32)")
  3064. .HasCharSet("utf8")
  3065. .HasCollation("utf8_general_ci");
  3066. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3067. entity.Property(e => e.Remark)
  3068. .HasColumnType("varchar(64)")
  3069. .HasCharSet("utf8")
  3070. .HasCollation("utf8_general_ci");
  3071. entity.Property(e => e.RewardDesc)
  3072. .HasColumnType("varchar(128)")
  3073. .HasCharSet("utf8")
  3074. .HasCollation("utf8_general_ci");
  3075. entity.Property(e => e.SeoDescription)
  3076. .HasColumnType("varchar(500)")
  3077. .HasCharSet("utf8")
  3078. .HasCollation("utf8_general_ci");
  3079. entity.Property(e => e.SeoKeyword)
  3080. .HasColumnType("varchar(200)")
  3081. .HasCharSet("utf8")
  3082. .HasCollation("utf8_general_ci");
  3083. entity.Property(e => e.SeoTitle)
  3084. .HasColumnType("varchar(100)")
  3085. .HasCharSet("utf8")
  3086. .HasCollation("utf8_general_ci");
  3087. entity.Property(e => e.SnNo)
  3088. .HasColumnType("varchar(32)")
  3089. .HasCharSet("utf8")
  3090. .HasCollation("utf8_general_ci");
  3091. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3092. entity.Property(e => e.Status).HasColumnType("int(11)");
  3093. entity.Property(e => e.SyncStatus).HasColumnType("int(11)");
  3094. entity.Property(e => e.TradeDate)
  3095. .HasColumnType("varchar(8)")
  3096. .HasCharSet("utf8")
  3097. .HasCollation("utf8_general_ci");
  3098. entity.Property(e => e.TradeMonth)
  3099. .HasColumnType("varchar(6)")
  3100. .HasCharSet("utf8")
  3101. .HasCollation("utf8_general_ci");
  3102. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3103. entity.Property(e => e.UpdateMan)
  3104. .HasColumnType("varchar(50)")
  3105. .HasCharSet("utf8")
  3106. .HasCollation("utf8_general_ci");
  3107. entity.Property(e => e.Version).HasColumnType("int(11)");
  3108. });
  3109. modelBuilder.Entity<Merchants>(entity =>
  3110. {
  3111. entity.Property(e => e.Id).HasColumnType("int(11)");
  3112. entity.Property(e => e.Address)
  3113. .HasColumnType("varchar(50)")
  3114. .HasCharSet("utf8")
  3115. .HasCollation("utf8_general_ci");
  3116. entity.Property(e => e.Areas)
  3117. .HasColumnType("varchar(30)")
  3118. .HasCharSet("utf8")
  3119. .HasCollation("utf8_general_ci");
  3120. entity.Property(e => e.BusinessLicense)
  3121. .HasColumnType("varchar(200)")
  3122. .HasCharSet("utf8")
  3123. .HasCollation("utf8_general_ci");
  3124. entity.Property(e => e.CommentCount).HasColumnType("int(11)");
  3125. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3126. entity.Property(e => e.CreateMan)
  3127. .HasColumnType("varchar(50)")
  3128. .HasCharSet("utf8")
  3129. .HasCollation("utf8_general_ci");
  3130. entity.Property(e => e.FollowCount).HasColumnType("int(11)");
  3131. entity.Property(e => e.IsAuth)
  3132. .HasColumnType("bit(1)")
  3133. .HasDefaultValueSql("b'0'");
  3134. entity.Property(e => e.IsRecommend)
  3135. .HasColumnType("bit(1)")
  3136. .HasDefaultValueSql("b'0'");
  3137. entity.Property(e => e.LoginPwd)
  3138. .HasColumnType("varchar(32)")
  3139. .HasCharSet("utf8")
  3140. .HasCollation("utf8_general_ci");
  3141. entity.Property(e => e.Logo)
  3142. .HasColumnType("varchar(200)")
  3143. .HasCharSet("utf8")
  3144. .HasCollation("utf8_general_ci");
  3145. entity.Property(e => e.Name)
  3146. .HasColumnType("varchar(50)")
  3147. .HasCharSet("utf8")
  3148. .HasCollation("utf8_general_ci");
  3149. entity.Property(e => e.PayPwd)
  3150. .HasColumnType("varchar(32)")
  3151. .HasCharSet("utf8")
  3152. .HasCollation("utf8_general_ci");
  3153. entity.Property(e => e.Phone)
  3154. .HasColumnType("varchar(30)")
  3155. .HasCharSet("utf8")
  3156. .HasCollation("utf8_general_ci");
  3157. entity.Property(e => e.Principal)
  3158. .HasColumnType("varchar(30)")
  3159. .HasCharSet("utf8")
  3160. .HasCollation("utf8_general_ci");
  3161. entity.Property(e => e.Province)
  3162. .HasColumnType("varchar(20)")
  3163. .HasCharSet("utf8")
  3164. .HasCollation("utf8_general_ci");
  3165. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3166. entity.Property(e => e.SeoDescription)
  3167. .HasColumnType("varchar(500)")
  3168. .HasCharSet("utf8")
  3169. .HasCollation("utf8_general_ci");
  3170. entity.Property(e => e.SeoKeyword)
  3171. .HasColumnType("varchar(200)")
  3172. .HasCharSet("utf8")
  3173. .HasCollation("utf8_general_ci");
  3174. entity.Property(e => e.SeoTitle)
  3175. .HasColumnType("varchar(100)")
  3176. .HasCharSet("utf8")
  3177. .HasCollation("utf8_general_ci");
  3178. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3179. entity.Property(e => e.StarNum1).HasColumnType("decimal(18,2)");
  3180. entity.Property(e => e.StarNum2).HasColumnType("decimal(18,2)");
  3181. entity.Property(e => e.StarNum3).HasColumnType("decimal(18,2)");
  3182. entity.Property(e => e.Status).HasColumnType("int(11)");
  3183. entity.Property(e => e.Title)
  3184. .HasColumnType("varchar(50)")
  3185. .HasCharSet("utf8")
  3186. .HasCollation("utf8_general_ci");
  3187. entity.Property(e => e.Title2)
  3188. .HasColumnType("varchar(50)")
  3189. .HasCharSet("utf8")
  3190. .HasCollation("utf8_general_ci");
  3191. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3192. entity.Property(e => e.UpdateMan)
  3193. .HasColumnType("varchar(50)")
  3194. .HasCharSet("utf8")
  3195. .HasCollation("utf8_general_ci");
  3196. entity.Property(e => e.UserName)
  3197. .HasColumnType("varchar(50)")
  3198. .HasCharSet("utf8")
  3199. .HasCollation("utf8_general_ci");
  3200. entity.Property(e => e.Version).HasColumnType("int(11)");
  3201. });
  3202. modelBuilder.Entity<MobileCodeCheck>(entity =>
  3203. {
  3204. entity.HasKey(e => e.Mobile)
  3205. .HasName("PRIMARY");
  3206. entity.Property(e => e.Mobile)
  3207. .HasColumnType("varchar(11)")
  3208. .HasCharSet("utf8")
  3209. .HasCollation("utf8_general_ci");
  3210. entity.Property(e => e.CheckCode)
  3211. .HasColumnType("varchar(6)")
  3212. .HasCharSet("utf8")
  3213. .HasCollation("utf8_general_ci");
  3214. entity.Property(e => e.CheckCodeTime).HasColumnType("datetime");
  3215. entity.Property(e => e.CheckNo)
  3216. .HasColumnType("varchar(6)")
  3217. .HasCharSet("utf8")
  3218. .HasCollation("utf8_general_ci");
  3219. });
  3220. modelBuilder.Entity<MsgBlackList>(entity =>
  3221. {
  3222. entity.Property(e => e.Id).HasColumnType("int(11)");
  3223. entity.Property(e => e.ColId)
  3224. .HasColumnType("varchar(30)")
  3225. .HasCharSet("utf8")
  3226. .HasCollation("utf8_general_ci");
  3227. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3228. entity.Property(e => e.CreateMan)
  3229. .HasColumnType("varchar(50)")
  3230. .HasCharSet("utf8")
  3231. .HasCollation("utf8_general_ci");
  3232. entity.Property(e => e.Extend)
  3233. .HasColumnType("varchar(2000)")
  3234. .HasCharSet("utf8")
  3235. .HasCollation("utf8_general_ci");
  3236. entity.Property(e => e.Ip)
  3237. .HasColumnType("varchar(64)")
  3238. .HasCharSet("utf8")
  3239. .HasCollation("utf8_general_ci");
  3240. entity.Property(e => e.Mobile)
  3241. .HasColumnType("varchar(11)")
  3242. .HasCharSet("utf8")
  3243. .HasCollation("utf8_general_ci");
  3244. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3245. entity.Property(e => e.Reason)
  3246. .HasColumnType("varchar(512)")
  3247. .HasCharSet("utf8")
  3248. .HasCollation("utf8_general_ci");
  3249. entity.Property(e => e.Remark)
  3250. .HasColumnType("varchar(64)")
  3251. .HasCharSet("utf8")
  3252. .HasCollation("utf8_general_ci");
  3253. entity.Property(e => e.SeoDescription)
  3254. .HasColumnType("varchar(500)")
  3255. .HasCharSet("utf8")
  3256. .HasCollation("utf8_general_ci");
  3257. entity.Property(e => e.SeoKeyword)
  3258. .HasColumnType("varchar(200)")
  3259. .HasCharSet("utf8")
  3260. .HasCollation("utf8_general_ci");
  3261. entity.Property(e => e.SeoTitle)
  3262. .HasColumnType("varchar(100)")
  3263. .HasCharSet("utf8")
  3264. .HasCollation("utf8_general_ci");
  3265. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3266. entity.Property(e => e.Status).HasColumnType("int(11)");
  3267. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  3268. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3269. entity.Property(e => e.UpdateMan)
  3270. .HasColumnType("varchar(50)")
  3271. .HasCharSet("utf8")
  3272. .HasCollation("utf8_general_ci");
  3273. entity.Property(e => e.Version).HasColumnType("int(11)");
  3274. });
  3275. modelBuilder.Entity<MsgPersonal>(entity =>
  3276. {
  3277. entity.Property(e => e.Id).HasColumnType("int(11)");
  3278. entity.Property(e => e.BgPic)
  3279. .HasColumnType("varchar(200)")
  3280. .HasCharSet("utf8")
  3281. .HasCollation("utf8_general_ci");
  3282. entity.Property(e => e.Content)
  3283. .HasColumnType("longtext")
  3284. .HasCharSet("utf8")
  3285. .HasCollation("utf8_general_ci");
  3286. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3287. entity.Property(e => e.CreateMan)
  3288. .HasColumnType("varchar(50)")
  3289. .HasCharSet("utf8")
  3290. .HasCollation("utf8_general_ci");
  3291. entity.Property(e => e.ExtendColumn)
  3292. .HasColumnType("mediumtext")
  3293. .HasCharSet("utf8")
  3294. .HasCollation("utf8_general_ci");
  3295. entity.Property(e => e.MsgType).HasColumnType("int(11)");
  3296. entity.Property(e => e.PushFlag).HasColumnType("int(11)");
  3297. entity.Property(e => e.PushParam)
  3298. .HasColumnType("varchar(255)")
  3299. .HasCharSet("utf8")
  3300. .HasCollation("utf8_general_ci");
  3301. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3302. entity.Property(e => e.ReadFlag)
  3303. .HasColumnType("bit(1)")
  3304. .HasDefaultValueSql("b'0'");
  3305. entity.Property(e => e.Remark)
  3306. .HasColumnType("varchar(255)")
  3307. .HasCharSet("utf8")
  3308. .HasCollation("utf8_general_ci");
  3309. entity.Property(e => e.SeoDescription)
  3310. .HasColumnType("varchar(500)")
  3311. .HasCharSet("utf8")
  3312. .HasCollation("utf8_general_ci");
  3313. entity.Property(e => e.SeoKeyword)
  3314. .HasColumnType("varchar(200)")
  3315. .HasCharSet("utf8")
  3316. .HasCollation("utf8_general_ci");
  3317. entity.Property(e => e.SeoTitle)
  3318. .HasColumnType("varchar(100)")
  3319. .HasCharSet("utf8")
  3320. .HasCollation("utf8_general_ci");
  3321. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3322. entity.Property(e => e.Status).HasColumnType("int(11)");
  3323. entity.Property(e => e.Summary)
  3324. .HasColumnType("varchar(500)")
  3325. .HasCharSet("utf8")
  3326. .HasCollation("utf8_general_ci");
  3327. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  3328. entity.Property(e => e.Title)
  3329. .HasColumnType("varchar(50)")
  3330. .HasCharSet("utf8")
  3331. .HasCollation("utf8_general_ci");
  3332. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3333. entity.Property(e => e.UpdateMan)
  3334. .HasColumnType("varchar(50)")
  3335. .HasCharSet("utf8")
  3336. .HasCollation("utf8_general_ci");
  3337. entity.Property(e => e.Url)
  3338. .HasColumnType("varchar(500)")
  3339. .HasCharSet("utf8")
  3340. .HasCollation("utf8_general_ci");
  3341. entity.Property(e => e.UserId).HasColumnType("int(11)");
  3342. entity.Property(e => e.Version).HasColumnType("int(11)");
  3343. });
  3344. modelBuilder.Entity<MsgPlacard>(entity =>
  3345. {
  3346. entity.Property(e => e.Id).HasColumnType("int(11)");
  3347. entity.Property(e => e.BgPic)
  3348. .HasColumnType("varchar(200)")
  3349. .HasCharSet("utf8")
  3350. .HasCollation("utf8_general_ci");
  3351. entity.Property(e => e.Content)
  3352. .HasColumnType("longtext")
  3353. .HasCharSet("utf8")
  3354. .HasCollation("utf8_general_ci");
  3355. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3356. entity.Property(e => e.CreateMan)
  3357. .HasColumnType("varchar(50)")
  3358. .HasCharSet("utf8")
  3359. .HasCollation("utf8_general_ci");
  3360. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  3361. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  3362. entity.Property(e => e.ExtendColumn)
  3363. .HasColumnType("mediumtext")
  3364. .HasCharSet("utf8")
  3365. .HasCollation("utf8_general_ci");
  3366. entity.Property(e => e.IsTop)
  3367. .HasColumnType("bit(1)")
  3368. .HasDefaultValueSql("b'0'");
  3369. entity.Property(e => e.MsgType).HasColumnType("int(11)");
  3370. entity.Property(e => e.PushFlag).HasColumnType("int(11)");
  3371. entity.Property(e => e.PushParam)
  3372. .HasColumnType("varchar(255)")
  3373. .HasCharSet("utf8")
  3374. .HasCollation("utf8_general_ci");
  3375. entity.Property(e => e.PushTime).HasColumnType("datetime");
  3376. entity.Property(e => e.PushType).HasColumnType("int(11)");
  3377. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3378. entity.Property(e => e.Remark)
  3379. .HasColumnType("varchar(255)")
  3380. .HasCharSet("utf8")
  3381. .HasCollation("utf8_general_ci");
  3382. entity.Property(e => e.SeoDescription)
  3383. .HasColumnType("varchar(500)")
  3384. .HasCharSet("utf8")
  3385. .HasCollation("utf8_general_ci");
  3386. entity.Property(e => e.SeoKeyword)
  3387. .HasColumnType("varchar(200)")
  3388. .HasCharSet("utf8")
  3389. .HasCollation("utf8_general_ci");
  3390. entity.Property(e => e.SeoTitle)
  3391. .HasColumnType("varchar(100)")
  3392. .HasCharSet("utf8")
  3393. .HasCollation("utf8_general_ci");
  3394. entity.Property(e => e.ShowType).HasColumnType("int(11)");
  3395. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3396. entity.Property(e => e.Status).HasColumnType("int(11)");
  3397. entity.Property(e => e.Summary)
  3398. .HasColumnType("varchar(500)")
  3399. .HasCharSet("utf8")
  3400. .HasCollation("utf8_general_ci");
  3401. entity.Property(e => e.Title)
  3402. .HasColumnType("varchar(50)")
  3403. .HasCharSet("utf8")
  3404. .HasCollation("utf8_general_ci");
  3405. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3406. entity.Property(e => e.UpdateMan)
  3407. .HasColumnType("varchar(50)")
  3408. .HasCharSet("utf8")
  3409. .HasCollation("utf8_general_ci");
  3410. entity.Property(e => e.Url)
  3411. .HasColumnType("varchar(500)")
  3412. .HasCharSet("utf8")
  3413. .HasCollation("utf8_general_ci");
  3414. entity.Property(e => e.Version).HasColumnType("int(11)");
  3415. });
  3416. modelBuilder.Entity<MsgPlacardRead>(entity =>
  3417. {
  3418. entity.Property(e => e.Id).HasColumnType("int(11)");
  3419. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3420. entity.Property(e => e.CreateMan)
  3421. .HasColumnType("varchar(50)")
  3422. .HasCharSet("utf8")
  3423. .HasCollation("utf8_general_ci");
  3424. entity.Property(e => e.PlacardId).HasColumnType("int(11)");
  3425. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3426. entity.Property(e => e.ReadFlag)
  3427. .HasColumnType("bit(1)")
  3428. .HasDefaultValueSql("b'0'");
  3429. entity.Property(e => e.Remark)
  3430. .HasColumnType("varchar(255)")
  3431. .HasCharSet("utf8")
  3432. .HasCollation("utf8_general_ci");
  3433. entity.Property(e => e.SeoDescription)
  3434. .HasColumnType("varchar(500)")
  3435. .HasCharSet("utf8")
  3436. .HasCollation("utf8_general_ci");
  3437. entity.Property(e => e.SeoKeyword)
  3438. .HasColumnType("varchar(200)")
  3439. .HasCharSet("utf8")
  3440. .HasCollation("utf8_general_ci");
  3441. entity.Property(e => e.SeoTitle)
  3442. .HasColumnType("varchar(100)")
  3443. .HasCharSet("utf8")
  3444. .HasCollation("utf8_general_ci");
  3445. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3446. entity.Property(e => e.Status).HasColumnType("int(11)");
  3447. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3448. entity.Property(e => e.UpdateMan)
  3449. .HasColumnType("varchar(50)")
  3450. .HasCharSet("utf8")
  3451. .HasCollation("utf8_general_ci");
  3452. entity.Property(e => e.UserId)
  3453. .HasColumnType("varchar(64)")
  3454. .HasCharSet("utf8")
  3455. .HasCollation("utf8_general_ci");
  3456. entity.Property(e => e.Version).HasColumnType("int(11)");
  3457. });
  3458. modelBuilder.Entity<MsgPush>(entity =>
  3459. {
  3460. entity.Property(e => e.Id).HasColumnType("int(11)");
  3461. entity.Property(e => e.AutoPushDate).HasColumnType("datetime");
  3462. entity.Property(e => e.ClientType)
  3463. .HasColumnType("varchar(20)")
  3464. .HasCharSet("utf8")
  3465. .HasCollation("utf8_general_ci");
  3466. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3467. entity.Property(e => e.CreateMan)
  3468. .HasColumnType("varchar(50)")
  3469. .HasCharSet("utf8")
  3470. .HasCollation("utf8_general_ci");
  3471. entity.Property(e => e.Details)
  3472. .HasColumnType("varchar(200)")
  3473. .HasCharSet("utf8")
  3474. .HasCollation("utf8_general_ci");
  3475. entity.Property(e => e.Devices)
  3476. .HasColumnType("mediumtext")
  3477. .HasCharSet("utf8")
  3478. .HasCollation("utf8_general_ci");
  3479. entity.Property(e => e.IsSilent)
  3480. .HasColumnType("bit(1)")
  3481. .HasDefaultValueSql("b'0'");
  3482. entity.Property(e => e.MessageId)
  3483. .HasColumnType("varchar(50)")
  3484. .HasCharSet("utf8")
  3485. .HasCollation("utf8_general_ci");
  3486. entity.Property(e => e.Mobiles)
  3487. .HasColumnType("mediumtext")
  3488. .HasCharSet("utf8")
  3489. .HasCollation("utf8_general_ci");
  3490. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3491. entity.Property(e => e.SeoDescription)
  3492. .HasColumnType("varchar(500)")
  3493. .HasCharSet("utf8")
  3494. .HasCollation("utf8_general_ci");
  3495. entity.Property(e => e.SeoKeyword)
  3496. .HasColumnType("varchar(200)")
  3497. .HasCharSet("utf8")
  3498. .HasCollation("utf8_general_ci");
  3499. entity.Property(e => e.SeoTitle)
  3500. .HasColumnType("varchar(100)")
  3501. .HasCharSet("utf8")
  3502. .HasCollation("utf8_general_ci");
  3503. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3504. entity.Property(e => e.Status).HasColumnType("int(11)");
  3505. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  3506. entity.Property(e => e.Title)
  3507. .HasColumnType("varchar(50)")
  3508. .HasCharSet("utf8")
  3509. .HasCollation("utf8_general_ci");
  3510. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3511. entity.Property(e => e.UpdateMan)
  3512. .HasColumnType("varchar(50)")
  3513. .HasCharSet("utf8")
  3514. .HasCollation("utf8_general_ci");
  3515. entity.Property(e => e.Url)
  3516. .HasColumnType("varchar(500)")
  3517. .HasCharSet("utf8")
  3518. .HasCollation("utf8_general_ci");
  3519. entity.Property(e => e.Version).HasColumnType("int(11)");
  3520. });
  3521. modelBuilder.Entity<MsgSms>(entity =>
  3522. {
  3523. entity.Property(e => e.Id).HasColumnType("int(11)");
  3524. entity.Property(e => e.Code).HasColumnType("int(11)");
  3525. entity.Property(e => e.ColId)
  3526. .HasColumnType("varchar(30)")
  3527. .HasCharSet("utf8")
  3528. .HasCollation("utf8_general_ci");
  3529. entity.Property(e => e.Content)
  3530. .HasColumnType("varchar(200)")
  3531. .HasCharSet("utf8")
  3532. .HasCollation("utf8_general_ci");
  3533. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3534. entity.Property(e => e.CreateMan)
  3535. .HasColumnType("varchar(50)")
  3536. .HasCharSet("utf8")
  3537. .HasCollation("utf8_general_ci");
  3538. entity.Property(e => e.ErrorNum).HasColumnType("int(11)");
  3539. entity.Property(e => e.Ip)
  3540. .HasColumnType("varchar(15)")
  3541. .HasCharSet("utf8")
  3542. .HasCollation("utf8_general_ci");
  3543. entity.Property(e => e.Kind)
  3544. .HasColumnType("varchar(64)")
  3545. .HasCharSet("utf8")
  3546. .HasCollation("utf8_general_ci");
  3547. entity.Property(e => e.Mobile)
  3548. .HasColumnType("varchar(11)")
  3549. .HasCharSet("utf8")
  3550. .HasCollation("utf8_general_ci");
  3551. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3552. entity.Property(e => e.RespCode)
  3553. .HasColumnType("varchar(16)")
  3554. .HasCharSet("utf8")
  3555. .HasCollation("utf8_general_ci");
  3556. entity.Property(e => e.RespContent)
  3557. .HasColumnType("varchar(500)")
  3558. .HasCharSet("utf8")
  3559. .HasCollation("utf8_general_ci");
  3560. entity.Property(e => e.SendStatus).HasColumnType("int(11)");
  3561. entity.Property(e => e.SendTime).HasColumnType("datetime");
  3562. entity.Property(e => e.SendType).HasColumnType("int(11)");
  3563. entity.Property(e => e.SeoDescription)
  3564. .HasColumnType("varchar(500)")
  3565. .HasCharSet("utf8")
  3566. .HasCollation("utf8_general_ci");
  3567. entity.Property(e => e.SeoKeyword)
  3568. .HasColumnType("varchar(200)")
  3569. .HasCharSet("utf8")
  3570. .HasCollation("utf8_general_ci");
  3571. entity.Property(e => e.SeoTitle)
  3572. .HasColumnType("varchar(100)")
  3573. .HasCharSet("utf8")
  3574. .HasCollation("utf8_general_ci");
  3575. entity.Property(e => e.SignName)
  3576. .HasColumnType("varchar(10)")
  3577. .HasCharSet("utf8")
  3578. .HasCollation("utf8_general_ci");
  3579. entity.Property(e => e.SmsType).HasColumnType("int(11)");
  3580. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3581. entity.Property(e => e.Status).HasColumnType("int(11)");
  3582. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  3583. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3584. entity.Property(e => e.UpdateMan)
  3585. .HasColumnType("varchar(50)")
  3586. .HasCharSet("utf8")
  3587. .HasCollation("utf8_general_ci");
  3588. entity.Property(e => e.VerifyCode)
  3589. .HasColumnType("varchar(6)")
  3590. .HasCharSet("utf8")
  3591. .HasCollation("utf8_general_ci");
  3592. entity.Property(e => e.VerifyStatus).HasColumnType("int(11)");
  3593. entity.Property(e => e.Version).HasColumnType("int(11)");
  3594. });
  3595. modelBuilder.Entity<MsgSmsSet>(entity =>
  3596. {
  3597. entity.Property(e => e.Id).HasColumnType("int(11)");
  3598. entity.Property(e => e.AuthPwd)
  3599. .HasColumnType("varchar(50)")
  3600. .HasCharSet("utf8")
  3601. .HasCollation("utf8_general_ci");
  3602. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3603. entity.Property(e => e.CreateMan)
  3604. .HasColumnType("varchar(50)")
  3605. .HasCharSet("utf8")
  3606. .HasCollation("utf8_general_ci");
  3607. entity.Property(e => e.Name)
  3608. .HasColumnType("varchar(50)")
  3609. .HasCharSet("utf8")
  3610. .HasCollation("utf8_general_ci");
  3611. entity.Property(e => e.Params)
  3612. .HasColumnType("varchar(200)")
  3613. .HasCharSet("utf8")
  3614. .HasCollation("utf8_general_ci");
  3615. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3616. entity.Property(e => e.ReqUrl)
  3617. .HasColumnType("varchar(200)")
  3618. .HasCharSet("utf8")
  3619. .HasCollation("utf8_general_ci");
  3620. entity.Property(e => e.SeoDescription)
  3621. .HasColumnType("varchar(500)")
  3622. .HasCharSet("utf8")
  3623. .HasCollation("utf8_general_ci");
  3624. entity.Property(e => e.SeoKeyword)
  3625. .HasColumnType("varchar(200)")
  3626. .HasCharSet("utf8")
  3627. .HasCollation("utf8_general_ci");
  3628. entity.Property(e => e.SeoTitle)
  3629. .HasColumnType("varchar(100)")
  3630. .HasCharSet("utf8")
  3631. .HasCollation("utf8_general_ci");
  3632. entity.Property(e => e.SmsType).HasColumnType("int(11)");
  3633. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3634. entity.Property(e => e.Status).HasColumnType("int(11)");
  3635. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3636. entity.Property(e => e.UpdateMan)
  3637. .HasColumnType("varchar(50)")
  3638. .HasCharSet("utf8")
  3639. .HasCollation("utf8_general_ci");
  3640. entity.Property(e => e.UserName)
  3641. .HasColumnType("varchar(50)")
  3642. .HasCharSet("utf8")
  3643. .HasCollation("utf8_general_ci");
  3644. entity.Property(e => e.Version).HasColumnType("int(11)");
  3645. });
  3646. modelBuilder.Entity<MsgTemplate>(entity =>
  3647. {
  3648. entity.Property(e => e.Id).HasColumnType("int(11)");
  3649. entity.Property(e => e.ColId)
  3650. .HasColumnType("varchar(30)")
  3651. .HasCharSet("utf8")
  3652. .HasCollation("utf8_general_ci");
  3653. entity.Property(e => e.Content)
  3654. .HasColumnType("varchar(200)")
  3655. .HasCharSet("utf8")
  3656. .HasCollation("utf8_general_ci");
  3657. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3658. entity.Property(e => e.CreateMan)
  3659. .HasColumnType("varchar(50)")
  3660. .HasCharSet("utf8")
  3661. .HasCollation("utf8_general_ci");
  3662. entity.Property(e => e.Extend)
  3663. .HasColumnType("varchar(2000)")
  3664. .HasCharSet("utf8")
  3665. .HasCollation("utf8_general_ci");
  3666. entity.Property(e => e.MsgType).HasColumnType("int(11)");
  3667. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3668. entity.Property(e => e.Remark)
  3669. .HasColumnType("varchar(64)")
  3670. .HasCharSet("utf8")
  3671. .HasCollation("utf8_general_ci");
  3672. entity.Property(e => e.SeoDescription)
  3673. .HasColumnType("varchar(500)")
  3674. .HasCharSet("utf8")
  3675. .HasCollation("utf8_general_ci");
  3676. entity.Property(e => e.SeoKeyword)
  3677. .HasColumnType("varchar(200)")
  3678. .HasCharSet("utf8")
  3679. .HasCollation("utf8_general_ci");
  3680. entity.Property(e => e.SeoTitle)
  3681. .HasColumnType("varchar(100)")
  3682. .HasCharSet("utf8")
  3683. .HasCollation("utf8_general_ci");
  3684. entity.Property(e => e.SignName)
  3685. .HasColumnType("varchar(10)")
  3686. .HasCharSet("utf8")
  3687. .HasCollation("utf8_general_ci");
  3688. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3689. entity.Property(e => e.Status).HasColumnType("int(11)");
  3690. entity.Property(e => e.TemplateType).HasColumnType("int(11)");
  3691. entity.Property(e => e.Title)
  3692. .HasColumnType("varchar(50)")
  3693. .HasCharSet("utf8")
  3694. .HasCollation("utf8_general_ci");
  3695. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3696. entity.Property(e => e.UpdateMan)
  3697. .HasColumnType("varchar(50)")
  3698. .HasCharSet("utf8")
  3699. .HasCollation("utf8_general_ci");
  3700. entity.Property(e => e.Version).HasColumnType("int(11)");
  3701. });
  3702. modelBuilder.Entity<OpenBankCityTable>(entity =>
  3703. {
  3704. entity.HasKey(e => e.CityName)
  3705. .HasName("PRIMARY");
  3706. entity.Property(e => e.CityName)
  3707. .HasColumnType("varchar(100)")
  3708. .HasCharSet("utf8")
  3709. .HasCollation("utf8_general_ci");
  3710. entity.Property(e => e.Code)
  3711. .HasColumnType("varchar(20)")
  3712. .HasCharSet("utf8")
  3713. .HasCollation("utf8_general_ci");
  3714. });
  3715. modelBuilder.Entity<OpenBankTable>(entity =>
  3716. {
  3717. entity.HasKey(e => e.BankName)
  3718. .HasName("PRIMARY");
  3719. entity.Property(e => e.BankName)
  3720. .HasColumnType("varchar(200)")
  3721. .HasCharSet("utf8")
  3722. .HasCollation("utf8_general_ci");
  3723. entity.Property(e => e.BankCode)
  3724. .HasColumnType("varchar(50)")
  3725. .HasCharSet("utf8")
  3726. .HasCollation("utf8_general_ci");
  3727. });
  3728. modelBuilder.Entity<OpenReward>(entity =>
  3729. {
  3730. entity.Property(e => e.Id).HasColumnType("int(11)");
  3731. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  3732. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  3733. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3734. entity.Property(e => e.CreateMan)
  3735. .HasColumnType("varchar(50)")
  3736. .HasCharSet("utf8")
  3737. .HasCollation("utf8_general_ci");
  3738. entity.Property(e => e.CreditRewardAmount).HasColumnType("decimal(18,2)");
  3739. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  3740. entity.Property(e => e.DebitRewardAmount).HasColumnType("decimal(18,2)");
  3741. entity.Property(e => e.DebitTradeAmt).HasColumnType("decimal(18,2)");
  3742. entity.Property(e => e.OpenRewardNo)
  3743. .HasColumnType("varchar(32)")
  3744. .HasCharSet("utf8")
  3745. .HasCollation("utf8_general_ci");
  3746. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3747. entity.Property(e => e.Remark)
  3748. .HasColumnType("varchar(128)")
  3749. .HasCharSet("utf8")
  3750. .HasCollation("utf8_general_ci");
  3751. entity.Property(e => e.RewardDesc)
  3752. .HasColumnType("varchar(128)")
  3753. .HasCharSet("utf8")
  3754. .HasCollation("utf8_general_ci");
  3755. entity.Property(e => e.RewardMerCount).HasColumnType("int(11)");
  3756. entity.Property(e => e.RewardType).HasColumnType("int(11)");
  3757. entity.Property(e => e.SeoDescription)
  3758. .HasColumnType("varchar(500)")
  3759. .HasCharSet("utf8")
  3760. .HasCollation("utf8_general_ci");
  3761. entity.Property(e => e.SeoKeyword)
  3762. .HasColumnType("varchar(200)")
  3763. .HasCharSet("utf8")
  3764. .HasCollation("utf8_general_ci");
  3765. entity.Property(e => e.SeoTitle)
  3766. .HasColumnType("varchar(100)")
  3767. .HasCharSet("utf8")
  3768. .HasCollation("utf8_general_ci");
  3769. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3770. entity.Property(e => e.Status).HasColumnType("int(11)");
  3771. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  3772. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  3773. entity.Property(e => e.TradeMonth)
  3774. .HasColumnType("varchar(6)")
  3775. .HasCharSet("utf8")
  3776. .HasCollation("utf8_general_ci");
  3777. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3778. entity.Property(e => e.UpdateMan)
  3779. .HasColumnType("varchar(50)")
  3780. .HasCharSet("utf8")
  3781. .HasCollation("utf8_general_ci");
  3782. entity.Property(e => e.UserId).HasColumnType("int(11)");
  3783. entity.Property(e => e.Version).HasColumnType("int(11)");
  3784. });
  3785. modelBuilder.Entity<OpenRewardDetail>(entity =>
  3786. {
  3787. entity.Property(e => e.Id).HasColumnType("int(11)");
  3788. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  3789. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  3790. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3791. entity.Property(e => e.CreateMan)
  3792. .HasColumnType("varchar(50)")
  3793. .HasCharSet("utf8")
  3794. .HasCollation("utf8_general_ci");
  3795. entity.Property(e => e.CreditRewardAmount).HasColumnType("decimal(18,2)");
  3796. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  3797. entity.Property(e => e.DebitRewardAmount).HasColumnType("decimal(18,2)");
  3798. entity.Property(e => e.DebitTradeAmt).HasColumnType("decimal(18,2)");
  3799. entity.Property(e => e.DirectUserId).HasColumnType("int(11)");
  3800. entity.Property(e => e.MerBuddyType).HasColumnType("int(11)");
  3801. entity.Property(e => e.MerNo)
  3802. .HasColumnType("varchar(32)")
  3803. .HasCharSet("utf8")
  3804. .HasCollation("utf8_general_ci");
  3805. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  3806. entity.Property(e => e.OpenDetailRec)
  3807. .HasColumnType("varchar(32)")
  3808. .HasCharSet("utf8")
  3809. .HasCollation("utf8_general_ci");
  3810. entity.Property(e => e.OpenRewardNo)
  3811. .HasColumnType("varchar(32)")
  3812. .HasCharSet("utf8")
  3813. .HasCollation("utf8_general_ci");
  3814. entity.Property(e => e.ProductName)
  3815. .HasColumnType("varchar(32)")
  3816. .HasCharSet("utf8")
  3817. .HasCollation("utf8_general_ci");
  3818. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3819. entity.Property(e => e.Remark)
  3820. .HasColumnType("varchar(128)")
  3821. .HasCharSet("utf8")
  3822. .HasCollation("utf8_general_ci");
  3823. entity.Property(e => e.RewardDesc)
  3824. .HasColumnType("varchar(128)")
  3825. .HasCharSet("utf8")
  3826. .HasCollation("utf8_general_ci");
  3827. entity.Property(e => e.RewardTips)
  3828. .HasColumnType("varchar(16)")
  3829. .HasCharSet("utf8")
  3830. .HasCollation("utf8_general_ci");
  3831. entity.Property(e => e.RewardType).HasColumnType("int(11)");
  3832. entity.Property(e => e.SeoDescription)
  3833. .HasColumnType("varchar(500)")
  3834. .HasCharSet("utf8")
  3835. .HasCollation("utf8_general_ci");
  3836. entity.Property(e => e.SeoKeyword)
  3837. .HasColumnType("varchar(200)")
  3838. .HasCharSet("utf8")
  3839. .HasCollation("utf8_general_ci");
  3840. entity.Property(e => e.SeoTitle)
  3841. .HasColumnType("varchar(100)")
  3842. .HasCharSet("utf8")
  3843. .HasCollation("utf8_general_ci");
  3844. entity.Property(e => e.SnApplyUserId).HasColumnType("int(11)");
  3845. entity.Property(e => e.SnNo)
  3846. .HasColumnType("varchar(32)")
  3847. .HasCharSet("utf8")
  3848. .HasCollation("utf8_general_ci");
  3849. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  3850. entity.Property(e => e.SnType).HasColumnType("int(11)");
  3851. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3852. entity.Property(e => e.StandardDate).HasColumnType("datetime");
  3853. entity.Property(e => e.Status).HasColumnType("int(11)");
  3854. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  3855. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  3856. entity.Property(e => e.TradeMonth)
  3857. .HasColumnType("varchar(6)")
  3858. .HasCharSet("utf8")
  3859. .HasCollation("utf8_general_ci");
  3860. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3861. entity.Property(e => e.UpdateMan)
  3862. .HasColumnType("varchar(50)")
  3863. .HasCharSet("utf8")
  3864. .HasCollation("utf8_general_ci");
  3865. entity.Property(e => e.UserId).HasColumnType("int(11)");
  3866. entity.Property(e => e.Version).HasColumnType("int(11)");
  3867. });
  3868. modelBuilder.Entity<OpenSnSnapshot>(entity =>
  3869. {
  3870. entity.Property(e => e.Id).HasColumnType("int(11)");
  3871. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  3872. entity.Property(e => e.BuySnNum).HasColumnType("int(11)");
  3873. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3874. entity.Property(e => e.CreateMan)
  3875. .HasColumnType("varchar(50)")
  3876. .HasCharSet("utf8")
  3877. .HasCollation("utf8_general_ci");
  3878. entity.Property(e => e.CreditRewardAmount).HasColumnType("decimal(18,2)");
  3879. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  3880. entity.Property(e => e.DebitRewardAmount).HasColumnType("decimal(18,2)");
  3881. entity.Property(e => e.DebitTradeAmt).HasColumnType("decimal(18,2)");
  3882. entity.Property(e => e.DirectUserId).HasColumnType("int(11)");
  3883. entity.Property(e => e.FailReason)
  3884. .HasColumnType("varchar(128)")
  3885. .HasCharSet("utf8")
  3886. .HasCollation("utf8_general_ci");
  3887. entity.Property(e => e.MerNo)
  3888. .HasColumnType("varchar(32)")
  3889. .HasCharSet("utf8")
  3890. .HasCollation("utf8_general_ci");
  3891. entity.Property(e => e.MerUserType).HasColumnType("int(11)");
  3892. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  3893. entity.Property(e => e.OpenDetailRec)
  3894. .HasColumnType("varchar(32)")
  3895. .HasCharSet("utf8")
  3896. .HasCollation("utf8_general_ci");
  3897. entity.Property(e => e.OpenRewardNo)
  3898. .HasColumnType("varchar(32)")
  3899. .HasCharSet("utf8")
  3900. .HasCollation("utf8_general_ci");
  3901. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3902. entity.Property(e => e.Remark)
  3903. .HasColumnType("varchar(128)")
  3904. .HasCharSet("utf8")
  3905. .HasCollation("utf8_general_ci");
  3906. entity.Property(e => e.RewardAmount).HasColumnType("decimal(18,2)");
  3907. entity.Property(e => e.RewardDesc)
  3908. .HasColumnType("varchar(128)")
  3909. .HasCharSet("utf8")
  3910. .HasCollation("utf8_general_ci");
  3911. entity.Property(e => e.RewardTips)
  3912. .HasColumnType("varchar(16)")
  3913. .HasCharSet("utf8")
  3914. .HasCollation("utf8_general_ci");
  3915. entity.Property(e => e.RewardType).HasColumnType("int(11)");
  3916. entity.Property(e => e.SeoDescription)
  3917. .HasColumnType("varchar(500)")
  3918. .HasCharSet("utf8")
  3919. .HasCollation("utf8_general_ci");
  3920. entity.Property(e => e.SeoKeyword)
  3921. .HasColumnType("varchar(200)")
  3922. .HasCharSet("utf8")
  3923. .HasCollation("utf8_general_ci");
  3924. entity.Property(e => e.SeoTitle)
  3925. .HasColumnType("varchar(100)")
  3926. .HasCharSet("utf8")
  3927. .HasCollation("utf8_general_ci");
  3928. entity.Property(e => e.SnApplyUserId).HasColumnType("int(11)");
  3929. entity.Property(e => e.SnNo)
  3930. .HasColumnType("varchar(32)")
  3931. .HasCharSet("utf8")
  3932. .HasCollation("utf8_general_ci");
  3933. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  3934. entity.Property(e => e.SnType).HasColumnType("int(11)");
  3935. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3936. entity.Property(e => e.StandardDate).HasColumnType("datetime");
  3937. entity.Property(e => e.Status).HasColumnType("int(11)");
  3938. entity.Property(e => e.StdBuySnNum).HasColumnType("int(11)");
  3939. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  3940. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  3941. entity.Property(e => e.TradeMonth)
  3942. .HasColumnType("varchar(6)")
  3943. .HasCharSet("utf8")
  3944. .HasCollation("utf8_general_ci");
  3945. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3946. entity.Property(e => e.UpdateMan)
  3947. .HasColumnType("varchar(50)")
  3948. .HasCharSet("utf8")
  3949. .HasCollation("utf8_general_ci");
  3950. entity.Property(e => e.UserId).HasColumnType("int(11)");
  3951. entity.Property(e => e.UserNav)
  3952. .HasColumnType("varchar(300)")
  3953. .HasCharSet("utf8")
  3954. .HasCollation("utf8_general_ci");
  3955. entity.Property(e => e.Version).HasColumnType("int(11)");
  3956. });
  3957. modelBuilder.Entity<OperateLog>(entity =>
  3958. {
  3959. entity.Property(e => e.Id).HasColumnType("int(11)");
  3960. entity.Property(e => e.AfterOperate)
  3961. .HasColumnType("mediumtext")
  3962. .HasCharSet("utf8")
  3963. .HasCollation("utf8_general_ci");
  3964. entity.Property(e => e.BeforeOperate)
  3965. .HasColumnType("mediumtext")
  3966. .HasCharSet("utf8")
  3967. .HasCollation("utf8_general_ci");
  3968. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3969. entity.Property(e => e.CreateMan)
  3970. .HasColumnType("varchar(50)")
  3971. .HasCharSet("utf8")
  3972. .HasCollation("utf8_general_ci");
  3973. entity.Property(e => e.OpMode)
  3974. .HasColumnType("varchar(30)")
  3975. .HasCharSet("utf8")
  3976. .HasCollation("utf8_general_ci");
  3977. entity.Property(e => e.OperateMan)
  3978. .HasColumnType("varchar(50)")
  3979. .HasCharSet("utf8")
  3980. .HasCollation("utf8_general_ci");
  3981. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3982. entity.Property(e => e.SeoDescription)
  3983. .HasColumnType("varchar(500)")
  3984. .HasCharSet("utf8")
  3985. .HasCollation("utf8_general_ci");
  3986. entity.Property(e => e.SeoKeyword)
  3987. .HasColumnType("varchar(200)")
  3988. .HasCharSet("utf8")
  3989. .HasCollation("utf8_general_ci");
  3990. entity.Property(e => e.SeoTitle)
  3991. .HasColumnType("varchar(100)")
  3992. .HasCharSet("utf8")
  3993. .HasCollation("utf8_general_ci");
  3994. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3995. entity.Property(e => e.Status).HasColumnType("int(11)");
  3996. entity.Property(e => e.TableEnName)
  3997. .HasColumnType("varchar(50)")
  3998. .HasCharSet("utf8")
  3999. .HasCollation("utf8_general_ci");
  4000. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4001. entity.Property(e => e.UpdateMan)
  4002. .HasColumnType("varchar(50)")
  4003. .HasCharSet("utf8")
  4004. .HasCollation("utf8_general_ci");
  4005. entity.Property(e => e.Version).HasColumnType("int(11)");
  4006. });
  4007. modelBuilder.Entity<OperateRightList>(entity =>
  4008. {
  4009. entity.Property(e => e.Id).HasColumnType("int(11)");
  4010. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4011. entity.Property(e => e.CreateMan)
  4012. .HasColumnType("varchar(50)")
  4013. .HasCharSet("utf8")
  4014. .HasCollation("utf8_general_ci");
  4015. entity.Property(e => e.EnName)
  4016. .HasColumnType("varchar(50)")
  4017. .HasCharSet("utf8")
  4018. .HasCollation("utf8_general_ci");
  4019. entity.Property(e => e.Name)
  4020. .HasColumnType("varchar(50)")
  4021. .HasCharSet("utf8")
  4022. .HasCollation("utf8_general_ci");
  4023. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4024. entity.Property(e => e.SeoDescription)
  4025. .HasColumnType("varchar(500)")
  4026. .HasCharSet("utf8")
  4027. .HasCollation("utf8_general_ci");
  4028. entity.Property(e => e.SeoKeyword)
  4029. .HasColumnType("varchar(200)")
  4030. .HasCharSet("utf8")
  4031. .HasCollation("utf8_general_ci");
  4032. entity.Property(e => e.SeoTitle)
  4033. .HasColumnType("varchar(100)")
  4034. .HasCharSet("utf8")
  4035. .HasCollation("utf8_general_ci");
  4036. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4037. entity.Property(e => e.Status).HasColumnType("int(11)");
  4038. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4039. entity.Property(e => e.UpdateMan)
  4040. .HasColumnType("varchar(50)")
  4041. .HasCharSet("utf8")
  4042. .HasCollation("utf8_general_ci");
  4043. entity.Property(e => e.Version).HasColumnType("int(11)");
  4044. });
  4045. modelBuilder.Entity<OrderForNo>(entity =>
  4046. {
  4047. entity.HasKey(e => e.OrderNo)
  4048. .HasName("PRIMARY");
  4049. entity.Property(e => e.OrderNo)
  4050. .HasColumnType("varchar(50)")
  4051. .HasCharSet("utf8")
  4052. .HasCollation("utf8_general_ci");
  4053. entity.Property(e => e.OrderIds)
  4054. .HasColumnType("varchar(50)")
  4055. .HasCharSet("utf8")
  4056. .HasCollation("utf8_general_ci");
  4057. entity.Property(e => e.RspCode).HasColumnType("int(11)");
  4058. entity.Property(e => e.RspMsg)
  4059. .HasColumnType("varchar(500)")
  4060. .HasCharSet("utf8")
  4061. .HasCollation("utf8_general_ci");
  4062. });
  4063. modelBuilder.Entity<OrderProduct>(entity =>
  4064. {
  4065. entity.Property(e => e.Id).HasColumnType("int(11)");
  4066. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4067. entity.Property(e => e.CreateMan)
  4068. .HasColumnType("varchar(50)")
  4069. .HasCharSet("utf8")
  4070. .HasCollation("utf8_general_ci");
  4071. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4072. entity.Property(e => e.NormDetail)
  4073. .HasColumnType("varchar(200)")
  4074. .HasCharSet("utf8")
  4075. .HasCollation("utf8_general_ci");
  4076. entity.Property(e => e.NormId)
  4077. .HasColumnType("varchar(50)")
  4078. .HasCharSet("utf8")
  4079. .HasCollation("utf8_general_ci");
  4080. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  4081. entity.Property(e => e.ProductCode)
  4082. .HasColumnType("varchar(30)")
  4083. .HasCharSet("utf8")
  4084. .HasCollation("utf8_general_ci");
  4085. entity.Property(e => e.ProductCount).HasColumnType("int(11)");
  4086. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  4087. entity.Property(e => e.ProductIntegral).HasColumnType("decimal(18,2)");
  4088. entity.Property(e => e.ProductName)
  4089. .HasColumnType("varchar(100)")
  4090. .HasCharSet("utf8")
  4091. .HasCollation("utf8_general_ci");
  4092. entity.Property(e => e.ProductPhoto)
  4093. .HasColumnType("varchar(200)")
  4094. .HasCharSet("utf8")
  4095. .HasCollation("utf8_general_ci");
  4096. entity.Property(e => e.ProductPrice).HasColumnType("decimal(18,2)");
  4097. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4098. entity.Property(e => e.SeoDescription)
  4099. .HasColumnType("varchar(500)")
  4100. .HasCharSet("utf8")
  4101. .HasCollation("utf8_general_ci");
  4102. entity.Property(e => e.SeoKeyword)
  4103. .HasColumnType("varchar(200)")
  4104. .HasCharSet("utf8")
  4105. .HasCollation("utf8_general_ci");
  4106. entity.Property(e => e.SeoTitle)
  4107. .HasColumnType("varchar(100)")
  4108. .HasCharSet("utf8")
  4109. .HasCollation("utf8_general_ci");
  4110. entity.Property(e => e.SnNos)
  4111. .HasColumnType("mediumtext")
  4112. .HasCharSet("utf8")
  4113. .HasCollation("utf8_general_ci");
  4114. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4115. entity.Property(e => e.Status).HasColumnType("int(11)");
  4116. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  4117. entity.Property(e => e.TotalIntegral).HasColumnType("decimal(18,2)");
  4118. entity.Property(e => e.TotalPrice).HasColumnType("decimal(18,2)");
  4119. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4120. entity.Property(e => e.UpdateMan)
  4121. .HasColumnType("varchar(50)")
  4122. .HasCharSet("utf8")
  4123. .HasCollation("utf8_general_ci");
  4124. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4125. entity.Property(e => e.Version).HasColumnType("int(11)");
  4126. });
  4127. modelBuilder.Entity<OrderRefund>(entity =>
  4128. {
  4129. entity.Property(e => e.Id).HasColumnType("int(11)");
  4130. entity.Property(e => e.Amount).HasColumnType("decimal(18,2)");
  4131. entity.Property(e => e.Contents)
  4132. .HasColumnType("longtext")
  4133. .HasCharSet("utf8")
  4134. .HasCollation("utf8_general_ci");
  4135. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4136. entity.Property(e => e.CreateMan)
  4137. .HasColumnType("varchar(50)")
  4138. .HasCharSet("utf8")
  4139. .HasCollation("utf8_general_ci");
  4140. entity.Property(e => e.ErpCode)
  4141. .HasColumnType("varchar(50)")
  4142. .HasCharSet("utf8")
  4143. .HasCollation("utf8_general_ci");
  4144. entity.Property(e => e.ErpCompany).HasColumnType("int(11)");
  4145. entity.Property(e => e.GoodStatus).HasColumnType("int(11)");
  4146. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4147. entity.Property(e => e.Mobile)
  4148. .HasColumnType("varchar(11)")
  4149. .HasCharSet("utf8")
  4150. .HasCollation("utf8_general_ci");
  4151. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  4152. entity.Property(e => e.Photos)
  4153. .HasColumnType("varchar(500)")
  4154. .HasCharSet("utf8")
  4155. .HasCollation("utf8_general_ci");
  4156. entity.Property(e => e.ProductId)
  4157. .HasColumnType("varchar(50)")
  4158. .HasCharSet("utf8")
  4159. .HasCollation("utf8_general_ci");
  4160. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4161. entity.Property(e => e.Reason).HasColumnType("int(11)");
  4162. entity.Property(e => e.SeoDescription)
  4163. .HasColumnType("varchar(500)")
  4164. .HasCharSet("utf8")
  4165. .HasCollation("utf8_general_ci");
  4166. entity.Property(e => e.SeoKeyword)
  4167. .HasColumnType("varchar(200)")
  4168. .HasCharSet("utf8")
  4169. .HasCollation("utf8_general_ci");
  4170. entity.Property(e => e.SeoTitle)
  4171. .HasColumnType("varchar(100)")
  4172. .HasCharSet("utf8")
  4173. .HasCollation("utf8_general_ci");
  4174. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4175. entity.Property(e => e.Status).HasColumnType("int(11)");
  4176. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4177. entity.Property(e => e.UpdateMan)
  4178. .HasColumnType("varchar(50)")
  4179. .HasCharSet("utf8")
  4180. .HasCollation("utf8_general_ci");
  4181. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4182. entity.Property(e => e.Version).HasColumnType("int(11)");
  4183. });
  4184. modelBuilder.Entity<OrderRefundReason>(entity =>
  4185. {
  4186. entity.Property(e => e.Id).HasColumnType("int(11)");
  4187. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4188. entity.Property(e => e.CreateMan)
  4189. .HasColumnType("varchar(50)")
  4190. .HasCharSet("utf8")
  4191. .HasCollation("utf8_general_ci");
  4192. entity.Property(e => e.Name)
  4193. .HasColumnType("varchar(50)")
  4194. .HasCharSet("utf8")
  4195. .HasCollation("utf8_general_ci");
  4196. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4197. entity.Property(e => e.SeoDescription)
  4198. .HasColumnType("varchar(500)")
  4199. .HasCharSet("utf8")
  4200. .HasCollation("utf8_general_ci");
  4201. entity.Property(e => e.SeoKeyword)
  4202. .HasColumnType("varchar(200)")
  4203. .HasCharSet("utf8")
  4204. .HasCollation("utf8_general_ci");
  4205. entity.Property(e => e.SeoTitle)
  4206. .HasColumnType("varchar(100)")
  4207. .HasCharSet("utf8")
  4208. .HasCollation("utf8_general_ci");
  4209. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4210. entity.Property(e => e.Status).HasColumnType("int(11)");
  4211. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4212. entity.Property(e => e.UpdateMan)
  4213. .HasColumnType("varchar(50)")
  4214. .HasCharSet("utf8")
  4215. .HasCollation("utf8_general_ci");
  4216. entity.Property(e => e.Version).HasColumnType("int(11)");
  4217. });
  4218. modelBuilder.Entity<Orders>(entity =>
  4219. {
  4220. entity.Property(e => e.Id).HasColumnType("int(11)");
  4221. entity.Property(e => e.ActualPay).HasColumnType("decimal(18,2)");
  4222. entity.Property(e => e.Address)
  4223. .HasColumnType("varchar(50)")
  4224. .HasCharSet("utf8")
  4225. .HasCollation("utf8_general_ci");
  4226. entity.Property(e => e.Areas)
  4227. .HasColumnType("varchar(30)")
  4228. .HasCharSet("utf8")
  4229. .HasCollation("utf8_general_ci");
  4230. entity.Property(e => e.AutoConfirmDate).HasColumnType("datetime");
  4231. entity.Property(e => e.BuyCount).HasColumnType("int(11)");
  4232. entity.Property(e => e.ChannelAmount).HasColumnType("decimal(18,2)");
  4233. entity.Property(e => e.ConfirmDate).HasColumnType("datetime");
  4234. entity.Property(e => e.CouponId).HasColumnType("int(11)");
  4235. entity.Property(e => e.CouponMoney).HasColumnType("decimal(18,2)");
  4236. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4237. entity.Property(e => e.CreateMan)
  4238. .HasColumnType("varchar(50)")
  4239. .HasCharSet("utf8")
  4240. .HasCollation("utf8_general_ci");
  4241. entity.Property(e => e.DeliveryType).HasColumnType("int(11)");
  4242. entity.Property(e => e.ErpCode)
  4243. .HasColumnType("varchar(50)")
  4244. .HasCharSet("utf8")
  4245. .HasCollation("utf8_general_ci");
  4246. entity.Property(e => e.ErpMode).HasColumnType("int(11)");
  4247. entity.Property(e => e.ErpName)
  4248. .HasColumnType("varchar(50)")
  4249. .HasCharSet("utf8")
  4250. .HasCollation("utf8_general_ci");
  4251. entity.Property(e => e.ErpPrice).HasColumnType("decimal(18,2)");
  4252. entity.Property(e => e.Integral).HasColumnType("decimal(18,2)");
  4253. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4254. entity.Property(e => e.Mobile)
  4255. .HasColumnType("varchar(11)")
  4256. .HasCharSet("utf8")
  4257. .HasCollation("utf8_general_ci");
  4258. entity.Property(e => e.OrderNo)
  4259. .HasColumnType("varchar(30)")
  4260. .HasCharSet("utf8")
  4261. .HasCollation("utf8_general_ci");
  4262. entity.Property(e => e.PayDate).HasColumnType("datetime");
  4263. entity.Property(e => e.PayMode).HasColumnType("int(11)");
  4264. entity.Property(e => e.PayStatus).HasColumnType("int(11)");
  4265. entity.Property(e => e.PostalCode)
  4266. .HasColumnType("varchar(6)")
  4267. .HasCharSet("utf8")
  4268. .HasCollation("utf8_general_ci");
  4269. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  4270. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4271. entity.Property(e => e.RealName)
  4272. .HasColumnType("varchar(10)")
  4273. .HasCharSet("utf8")
  4274. .HasCollation("utf8_general_ci");
  4275. entity.Property(e => e.RefundActAmount).HasColumnType("decimal(18,2)");
  4276. entity.Property(e => e.RefundFeeAmount).HasColumnType("decimal(18,2)");
  4277. entity.Property(e => e.RefundReason)
  4278. .HasColumnType("varchar(64)")
  4279. .HasCharSet("utf8")
  4280. .HasCollation("utf8_general_ci");
  4281. entity.Property(e => e.RefundStatus).HasColumnType("int(11)");
  4282. entity.Property(e => e.Remark)
  4283. .HasColumnType("varchar(64)")
  4284. .HasCharSet("utf8")
  4285. .HasCollation("utf8_general_ci");
  4286. entity.Property(e => e.ReqData)
  4287. .HasColumnType("varchar(2048)")
  4288. .HasCharSet("utf8")
  4289. .HasCollation("utf8_general_ci");
  4290. entity.Property(e => e.ResData)
  4291. .HasColumnType("varchar(2048)")
  4292. .HasCharSet("utf8")
  4293. .HasCollation("utf8_general_ci");
  4294. entity.Property(e => e.ReturnCode)
  4295. .HasColumnType("varchar(32)")
  4296. .HasCharSet("utf8")
  4297. .HasCollation("utf8_general_ci");
  4298. entity.Property(e => e.ReturnMsg)
  4299. .HasColumnType("varchar(128)")
  4300. .HasCharSet("utf8")
  4301. .HasCollation("utf8_general_ci");
  4302. entity.Property(e => e.SendDate).HasColumnType("datetime");
  4303. entity.Property(e => e.SendStatus).HasColumnType("int(11)");
  4304. entity.Property(e => e.SeoDescription)
  4305. .HasColumnType("varchar(500)")
  4306. .HasCharSet("utf8")
  4307. .HasCollation("utf8_general_ci");
  4308. entity.Property(e => e.SeoKeyword)
  4309. .HasColumnType("varchar(200)")
  4310. .HasCharSet("utf8")
  4311. .HasCollation("utf8_general_ci");
  4312. entity.Property(e => e.SeoTitle)
  4313. .HasColumnType("varchar(100)")
  4314. .HasCharSet("utf8")
  4315. .HasCollation("utf8_general_ci");
  4316. entity.Property(e => e.SnNos)
  4317. .HasColumnType("mediumtext")
  4318. .HasCharSet("utf8")
  4319. .HasCollation("utf8_general_ci");
  4320. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4321. entity.Property(e => e.Status).HasColumnType("int(11)");
  4322. entity.Property(e => e.StoreContact)
  4323. .HasColumnType("varchar(30)")
  4324. .HasCharSet("utf8")
  4325. .HasCollation("utf8_general_ci");
  4326. entity.Property(e => e.StoreContactMobile)
  4327. .HasColumnType("varchar(11)")
  4328. .HasCharSet("utf8")
  4329. .HasCollation("utf8_general_ci");
  4330. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  4331. entity.Property(e => e.StoreType).HasColumnType("int(11)");
  4332. entity.Property(e => e.StoreUserId).HasColumnType("int(11)");
  4333. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  4334. entity.Property(e => e.TotalPrice).HasColumnType("decimal(18,2)");
  4335. entity.Property(e => e.TradeNo)
  4336. .HasColumnType("varchar(50)")
  4337. .HasCharSet("utf8")
  4338. .HasCollation("utf8_general_ci");
  4339. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4340. entity.Property(e => e.UpdateMan)
  4341. .HasColumnType("varchar(50)")
  4342. .HasCharSet("utf8")
  4343. .HasCollation("utf8_general_ci");
  4344. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4345. entity.Property(e => e.UserMessage)
  4346. .HasColumnType("varchar(50)")
  4347. .HasCharSet("utf8")
  4348. .HasCollation("utf8_general_ci");
  4349. entity.Property(e => e.Version).HasColumnType("int(11)");
  4350. });
  4351. modelBuilder.Entity<PageInfo>(entity =>
  4352. {
  4353. entity.Property(e => e.Id).HasColumnType("int(11)");
  4354. entity.Property(e => e.ColId)
  4355. .HasColumnType("varchar(30)")
  4356. .HasCharSet("utf8")
  4357. .HasCollation("utf8_general_ci");
  4358. entity.Property(e => e.Contents)
  4359. .HasColumnType("longtext")
  4360. .HasCharSet("utf8")
  4361. .HasCollation("utf8_general_ci");
  4362. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4363. entity.Property(e => e.CreateMan)
  4364. .HasColumnType("varchar(50)")
  4365. .HasCharSet("utf8")
  4366. .HasCollation("utf8_general_ci");
  4367. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4368. entity.Property(e => e.SeoDescription)
  4369. .HasColumnType("varchar(500)")
  4370. .HasCharSet("utf8")
  4371. .HasCollation("utf8_general_ci");
  4372. entity.Property(e => e.SeoKeyword)
  4373. .HasColumnType("varchar(200)")
  4374. .HasCharSet("utf8")
  4375. .HasCollation("utf8_general_ci");
  4376. entity.Property(e => e.SeoTitle)
  4377. .HasColumnType("varchar(100)")
  4378. .HasCharSet("utf8")
  4379. .HasCollation("utf8_general_ci");
  4380. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4381. entity.Property(e => e.Status).HasColumnType("int(11)");
  4382. entity.Property(e => e.Title)
  4383. .HasColumnType("varchar(200)")
  4384. .HasCharSet("utf8")
  4385. .HasCollation("utf8_general_ci");
  4386. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4387. entity.Property(e => e.UpdateMan)
  4388. .HasColumnType("varchar(50)")
  4389. .HasCharSet("utf8")
  4390. .HasCollation("utf8_general_ci");
  4391. entity.Property(e => e.Version).HasColumnType("int(11)");
  4392. });
  4393. modelBuilder.Entity<PageUpdateInfo>(entity =>
  4394. {
  4395. entity.Property(e => e.Id).HasColumnType("int(11)");
  4396. entity.Property(e => e.BgColor)
  4397. .HasColumnType("varchar(6)")
  4398. .HasCharSet("utf8")
  4399. .HasCollation("utf8_general_ci");
  4400. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4401. entity.Property(e => e.CreateMan)
  4402. .HasColumnType("varchar(50)")
  4403. .HasCharSet("utf8")
  4404. .HasCollation("utf8_general_ci");
  4405. entity.Property(e => e.GotoPages)
  4406. .HasColumnType("varchar(500)")
  4407. .HasCharSet("utf8")
  4408. .HasCollation("utf8_general_ci");
  4409. entity.Property(e => e.IsScrollBar)
  4410. .HasColumnType("bit(1)")
  4411. .HasDefaultValueSql("b'0'");
  4412. entity.Property(e => e.IsSkid)
  4413. .HasColumnType("bit(1)")
  4414. .HasDefaultValueSql("b'0'");
  4415. entity.Property(e => e.LeftAction1)
  4416. .HasColumnType("longtext")
  4417. .HasCharSet("utf8")
  4418. .HasCollation("utf8_general_ci");
  4419. entity.Property(e => e.LeftAction2)
  4420. .HasColumnType("longtext")
  4421. .HasCharSet("utf8")
  4422. .HasCollation("utf8_general_ci");
  4423. entity.Property(e => e.LeftBtn1)
  4424. .HasColumnType("varchar(100)")
  4425. .HasCharSet("utf8")
  4426. .HasCollation("utf8_general_ci");
  4427. entity.Property(e => e.LeftBtn2)
  4428. .HasColumnType("varchar(50)")
  4429. .HasCharSet("utf8")
  4430. .HasCollation("utf8_general_ci");
  4431. entity.Property(e => e.ModulePath)
  4432. .HasColumnType("varchar(200)")
  4433. .HasCharSet("utf8")
  4434. .HasCollation("utf8_general_ci");
  4435. entity.Property(e => e.ModuleVersion).HasColumnType("int(11)");
  4436. entity.Property(e => e.MustUpdate)
  4437. .HasColumnType("bit(1)")
  4438. .HasDefaultValueSql("b'0'");
  4439. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4440. entity.Property(e => e.RightAction1)
  4441. .HasColumnType("longtext")
  4442. .HasCharSet("utf8")
  4443. .HasCollation("utf8_general_ci");
  4444. entity.Property(e => e.RightAction2)
  4445. .HasColumnType("longtext")
  4446. .HasCharSet("utf8")
  4447. .HasCollation("utf8_general_ci");
  4448. entity.Property(e => e.RightBtn1)
  4449. .HasColumnType("varchar(50)")
  4450. .HasCharSet("utf8")
  4451. .HasCollation("utf8_general_ci");
  4452. entity.Property(e => e.RightBtn2)
  4453. .HasColumnType("varchar(50)")
  4454. .HasCharSet("utf8")
  4455. .HasCollation("utf8_general_ci");
  4456. entity.Property(e => e.SeoDescription)
  4457. .HasColumnType("varchar(500)")
  4458. .HasCharSet("utf8")
  4459. .HasCollation("utf8_general_ci");
  4460. entity.Property(e => e.SeoKeyword)
  4461. .HasColumnType("varchar(200)")
  4462. .HasCharSet("utf8")
  4463. .HasCollation("utf8_general_ci");
  4464. entity.Property(e => e.SeoTitle)
  4465. .HasColumnType("varchar(100)")
  4466. .HasCharSet("utf8")
  4467. .HasCollation("utf8_general_ci");
  4468. entity.Property(e => e.ShowTitle)
  4469. .HasColumnType("bit(1)")
  4470. .HasDefaultValueSql("b'0'");
  4471. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4472. entity.Property(e => e.Status).HasColumnType("int(11)");
  4473. entity.Property(e => e.StatusBarStyle)
  4474. .HasColumnType("varchar(10)")
  4475. .HasCharSet("utf8")
  4476. .HasCollation("utf8_general_ci");
  4477. entity.Property(e => e.TextColor)
  4478. .HasColumnType("varchar(6)")
  4479. .HasCharSet("utf8")
  4480. .HasCollation("utf8_general_ci");
  4481. entity.Property(e => e.Title)
  4482. .HasColumnType("varchar(50)")
  4483. .HasCharSet("utf8")
  4484. .HasCollation("utf8_general_ci");
  4485. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4486. entity.Property(e => e.UpdateMan)
  4487. .HasColumnType("varchar(50)")
  4488. .HasCharSet("utf8")
  4489. .HasCollation("utf8_general_ci");
  4490. entity.Property(e => e.Version).HasColumnType("int(11)");
  4491. });
  4492. modelBuilder.Entity<PosMachines>(entity =>
  4493. {
  4494. entity.Property(e => e.Id).HasColumnType("int(11)");
  4495. entity.Property(e => e.ActivationState).HasColumnType("int(11)");
  4496. entity.Property(e => e.ActivationTime).HasColumnType("datetime");
  4497. entity.Property(e => e.ActivityList)
  4498. .HasColumnType("varchar(200)")
  4499. .HasCharSet("utf8")
  4500. .HasCollation("utf8_general_ci");
  4501. entity.Property(e => e.BatchNo)
  4502. .HasColumnType("varchar(32)")
  4503. .HasCharSet("utf8")
  4504. .HasCollation("utf8_general_ci");
  4505. entity.Property(e => e.BindMerchantId).HasColumnType("int(11)");
  4506. entity.Property(e => e.BindingState).HasColumnType("int(11)");
  4507. entity.Property(e => e.BindingTime).HasColumnType("datetime");
  4508. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  4509. entity.Property(e => e.BuyUserId).HasColumnType("int(11)");
  4510. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4511. entity.Property(e => e.CreateMan)
  4512. .HasColumnType("varchar(50)")
  4513. .HasCharSet("utf8")
  4514. .HasCollation("utf8_general_ci");
  4515. entity.Property(e => e.CreditTrade).HasColumnType("decimal(18,2)");
  4516. entity.Property(e => e.DebitCardTrade).HasColumnType("decimal(18,2)");
  4517. entity.Property(e => e.Detail)
  4518. .HasColumnType("longtext")
  4519. .HasCharSet("utf8")
  4520. .HasCollation("utf8_general_ci");
  4521. entity.Property(e => e.DeviceKind)
  4522. .HasColumnType("varchar(32)")
  4523. .HasCharSet("utf8")
  4524. .HasCollation("utf8_general_ci");
  4525. entity.Property(e => e.DeviceName)
  4526. .HasColumnType("varchar(32)")
  4527. .HasCharSet("utf8")
  4528. .HasCollation("utf8_general_ci");
  4529. entity.Property(e => e.DeviceType)
  4530. .HasColumnType("varchar(20)")
  4531. .HasCharSet("utf8")
  4532. .HasCollation("utf8_general_ci");
  4533. entity.Property(e => e.IsPurchase)
  4534. .HasColumnType("bit(1)")
  4535. .HasDefaultValueSql("b'0'");
  4536. entity.Property(e => e.IsVip)
  4537. .HasColumnType("bit(1)")
  4538. .HasDefaultValueSql("b'0'");
  4539. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  4540. entity.Property(e => e.PosSn)
  4541. .HasColumnType("varchar(50)")
  4542. .HasCharSet("utf8")
  4543. .HasCollation("utf8_general_ci");
  4544. entity.Property(e => e.PosSnType).HasColumnType("int(11)");
  4545. entity.Property(e => e.PrizeParams)
  4546. .HasColumnType("varchar(200)")
  4547. .HasCharSet("utf8")
  4548. .HasCollation("utf8_general_ci");
  4549. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4550. entity.Property(e => e.RecycBackCount).HasColumnType("int(11)");
  4551. entity.Property(e => e.RecycEndDate).HasColumnType("datetime");
  4552. entity.Property(e => e.ScanQrTrade).HasColumnType("decimal(18,2)");
  4553. entity.Property(e => e.SeoDescription)
  4554. .HasColumnType("varchar(500)")
  4555. .HasCharSet("utf8")
  4556. .HasCollation("utf8_general_ci");
  4557. entity.Property(e => e.SeoKeyword)
  4558. .HasColumnType("varchar(200)")
  4559. .HasCharSet("utf8")
  4560. .HasCollation("utf8_general_ci");
  4561. entity.Property(e => e.SeoTitle)
  4562. .HasColumnType("varchar(100)")
  4563. .HasCharSet("utf8")
  4564. .HasCollation("utf8_general_ci");
  4565. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4566. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  4567. entity.Property(e => e.Status).HasColumnType("int(11)");
  4568. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  4569. entity.Property(e => e.TransferTime).HasColumnType("datetime");
  4570. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4571. entity.Property(e => e.UpdateMan)
  4572. .HasColumnType("varchar(50)")
  4573. .HasCharSet("utf8")
  4574. .HasCollation("utf8_general_ci");
  4575. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4576. entity.Property(e => e.UserNav)
  4577. .HasColumnType("longtext")
  4578. .HasCharSet("utf8")
  4579. .HasCollation("utf8_general_ci");
  4580. entity.Property(e => e.Version).HasColumnType("int(11)");
  4581. });
  4582. modelBuilder.Entity<PosMachinesTwo>(entity =>
  4583. {
  4584. entity.Property(e => e.Id).HasColumnType("int(11)");
  4585. entity.Property(e => e.ActivationState).HasColumnType("int(11)");
  4586. entity.Property(e => e.ActivationTime).HasColumnType("datetime");
  4587. entity.Property(e => e.ActivityList)
  4588. .HasColumnType("varchar(200)")
  4589. .HasCharSet("utf8")
  4590. .HasCollation("utf8_general_ci");
  4591. entity.Property(e => e.BatchNo)
  4592. .HasColumnType("varchar(32)")
  4593. .HasCharSet("utf8")
  4594. .HasCollation("utf8_general_ci");
  4595. entity.Property(e => e.BindMerchantId).HasColumnType("int(11)");
  4596. entity.Property(e => e.BindingState).HasColumnType("int(11)");
  4597. entity.Property(e => e.BindingTime).HasColumnType("datetime");
  4598. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  4599. entity.Property(e => e.BuyUserId).HasColumnType("int(11)");
  4600. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4601. entity.Property(e => e.CreditTrade).HasColumnType("decimal(18,2)");
  4602. entity.Property(e => e.DebitCardTrade).HasColumnType("decimal(18,2)");
  4603. entity.Property(e => e.Detail)
  4604. .HasColumnType("longtext")
  4605. .HasCharSet("utf8")
  4606. .HasCollation("utf8_general_ci");
  4607. entity.Property(e => e.DeviceKind)
  4608. .HasColumnType("varchar(32)")
  4609. .HasCharSet("utf8")
  4610. .HasCollation("utf8_general_ci");
  4611. entity.Property(e => e.DeviceName)
  4612. .HasColumnType("varchar(32)")
  4613. .HasCharSet("utf8")
  4614. .HasCollation("utf8_general_ci");
  4615. entity.Property(e => e.DeviceType)
  4616. .HasColumnType("varchar(20)")
  4617. .HasCharSet("utf8")
  4618. .HasCollation("utf8_general_ci");
  4619. entity.Property(e => e.IsPurchase).HasColumnType("int(11)");
  4620. entity.Property(e => e.IsVip)
  4621. .HasColumnType("bit(1)")
  4622. .HasDefaultValueSql("b'0'");
  4623. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  4624. entity.Property(e => e.PosSn)
  4625. .HasColumnType("varchar(50)")
  4626. .HasCharSet("utf8")
  4627. .HasCollation("utf8_general_ci");
  4628. entity.Property(e => e.PosSnType).HasColumnType("int(11)");
  4629. entity.Property(e => e.PrizeParams)
  4630. .HasColumnType("varchar(200)")
  4631. .HasCharSet("utf8")
  4632. .HasCollation("utf8_general_ci");
  4633. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4634. entity.Property(e => e.RecycBackCount).HasColumnType("int(11)");
  4635. entity.Property(e => e.RecycEndDate).HasColumnType("datetime");
  4636. entity.Property(e => e.ScanQrTrade).HasColumnType("decimal(18,2)");
  4637. entity.Property(e => e.SeoDescription)
  4638. .HasColumnType("varchar(500)")
  4639. .HasCharSet("utf8")
  4640. .HasCollation("utf8_general_ci");
  4641. entity.Property(e => e.SeoKeyword)
  4642. .HasColumnType("varchar(200)")
  4643. .HasCharSet("utf8")
  4644. .HasCollation("utf8_general_ci");
  4645. entity.Property(e => e.SeoTitle)
  4646. .HasColumnType("varchar(100)")
  4647. .HasCharSet("utf8")
  4648. .HasCollation("utf8_general_ci");
  4649. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4650. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  4651. entity.Property(e => e.Status).HasColumnType("int(11)");
  4652. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  4653. entity.Property(e => e.TransferTime).HasColumnType("datetime");
  4654. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4655. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4656. entity.Property(e => e.UserNav)
  4657. .HasColumnType("longtext")
  4658. .HasCharSet("utf8")
  4659. .HasCollation("utf8_general_ci");
  4660. });
  4661. modelBuilder.Entity<PosMerchantInfo>(entity =>
  4662. {
  4663. entity.Property(e => e.Id).HasColumnType("int(11)");
  4664. entity.Property(e => e.ActType).HasColumnType("int(11)");
  4665. entity.Property(e => e.ActTypeDesc)
  4666. .HasColumnType("varchar(64)")
  4667. .HasCharSet("utf8")
  4668. .HasCollation("utf8_general_ci");
  4669. entity.Property(e => e.ActiveStatus).HasColumnType("int(11)");
  4670. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  4671. entity.Property(e => e.City)
  4672. .HasColumnType("varchar(32)")
  4673. .HasCharSet("utf8")
  4674. .HasCollation("utf8_general_ci");
  4675. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4676. entity.Property(e => e.DirectUserId).HasColumnType("int(11)");
  4677. entity.Property(e => e.KqMerNo)
  4678. .HasColumnType("varchar(32)")
  4679. .HasCharSet("utf8")
  4680. .HasCollation("utf8_general_ci");
  4681. entity.Property(e => e.KqRegTime).HasColumnType("datetime");
  4682. entity.Property(e => e.KqSnNo)
  4683. .HasColumnType("varchar(32)")
  4684. .HasCharSet("utf8")
  4685. .HasCollation("utf8_general_ci");
  4686. entity.Property(e => e.MatchTime).HasColumnType("datetime");
  4687. entity.Property(e => e.MerIdcardNo)
  4688. .HasColumnType("varchar(18)")
  4689. .HasCharSet("utf8")
  4690. .HasCollation("utf8_general_ci");
  4691. entity.Property(e => e.MerRealName)
  4692. .HasColumnType("varchar(16)")
  4693. .HasCharSet("utf8")
  4694. .HasCollation("utf8_general_ci");
  4695. entity.Property(e => e.MerStandardDate).HasColumnType("datetime");
  4696. entity.Property(e => e.MerStatus).HasColumnType("int(11)");
  4697. entity.Property(e => e.MerUserId).HasColumnType("int(11)");
  4698. entity.Property(e => e.MerUserType).HasColumnType("int(11)");
  4699. entity.Property(e => e.MerchantMobile)
  4700. .HasColumnType("varchar(11)")
  4701. .HasCharSet("utf8")
  4702. .HasCollation("utf8_general_ci");
  4703. entity.Property(e => e.MerchantName)
  4704. .HasColumnType("varchar(32)")
  4705. .HasCharSet("utf8")
  4706. .HasCollation("utf8_general_ci");
  4707. entity.Property(e => e.MerchantNo)
  4708. .HasColumnType("varchar(16)")
  4709. .HasCharSet("utf8")
  4710. .HasCollation("utf8_general_ci");
  4711. entity.Property(e => e.MgrName)
  4712. .HasColumnType("varchar(32)")
  4713. .HasCharSet("utf8")
  4714. .HasCollation("utf8_general_ci");
  4715. entity.Property(e => e.MgrNo)
  4716. .HasColumnType("varchar(16)")
  4717. .HasCharSet("utf8")
  4718. .HasCollation("utf8_general_ci");
  4719. entity.Property(e => e.Province)
  4720. .HasColumnType("varchar(32)")
  4721. .HasCharSet("utf8")
  4722. .HasCollation("utf8_general_ci");
  4723. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4724. entity.Property(e => e.RebateQual).HasColumnType("int(11)");
  4725. entity.Property(e => e.Remark)
  4726. .HasColumnType("varchar(64)")
  4727. .HasCharSet("utf8")
  4728. .HasCollation("utf8_general_ci");
  4729. entity.Property(e => e.SeoDescription)
  4730. .HasColumnType("varchar(500)")
  4731. .HasCharSet("utf8")
  4732. .HasCollation("utf8_general_ci");
  4733. entity.Property(e => e.SeoKeyword)
  4734. .HasColumnType("varchar(200)")
  4735. .HasCharSet("utf8")
  4736. .HasCollation("utf8_general_ci");
  4737. entity.Property(e => e.SeoTitle)
  4738. .HasColumnType("varchar(100)")
  4739. .HasCharSet("utf8")
  4740. .HasCollation("utf8_general_ci");
  4741. entity.Property(e => e.SnApplyUserId).HasColumnType("int(11)");
  4742. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  4743. entity.Property(e => e.SnType).HasColumnType("int(11)");
  4744. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4745. entity.Property(e => e.Status).HasColumnType("int(11)");
  4746. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  4747. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4748. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4749. });
  4750. modelBuilder.Entity<ProductComment>(entity =>
  4751. {
  4752. entity.Property(e => e.Id).HasColumnType("int(11)");
  4753. entity.Property(e => e.AgreeCount).HasColumnType("int(11)");
  4754. entity.Property(e => e.BackCount).HasColumnType("int(11)");
  4755. entity.Property(e => e.Contents)
  4756. .HasColumnType("varchar(200)")
  4757. .HasCharSet("utf8")
  4758. .HasCollation("utf8_general_ci");
  4759. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4760. entity.Property(e => e.CreateMan)
  4761. .HasColumnType("varchar(50)")
  4762. .HasCharSet("utf8")
  4763. .HasCollation("utf8_general_ci");
  4764. entity.Property(e => e.HasPhoto)
  4765. .HasColumnType("bit(1)")
  4766. .HasDefaultValueSql("b'0'");
  4767. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4768. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  4769. entity.Property(e => e.PhotoList)
  4770. .HasColumnType("mediumtext")
  4771. .HasCharSet("utf8")
  4772. .HasCollation("utf8_general_ci");
  4773. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  4774. entity.Property(e => e.ProductNormId).HasColumnType("int(11)");
  4775. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4776. entity.Property(e => e.SeoDescription)
  4777. .HasColumnType("varchar(500)")
  4778. .HasCharSet("utf8")
  4779. .HasCollation("utf8_general_ci");
  4780. entity.Property(e => e.SeoKeyword)
  4781. .HasColumnType("varchar(200)")
  4782. .HasCharSet("utf8")
  4783. .HasCollation("utf8_general_ci");
  4784. entity.Property(e => e.SeoTitle)
  4785. .HasColumnType("varchar(100)")
  4786. .HasCharSet("utf8")
  4787. .HasCollation("utf8_general_ci");
  4788. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4789. entity.Property(e => e.StarNum).HasColumnType("int(11)");
  4790. entity.Property(e => e.Status).HasColumnType("int(11)");
  4791. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4792. entity.Property(e => e.UpdateMan)
  4793. .HasColumnType("varchar(50)")
  4794. .HasCharSet("utf8")
  4795. .HasCollation("utf8_general_ci");
  4796. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4797. entity.Property(e => e.Version).HasColumnType("int(11)");
  4798. });
  4799. modelBuilder.Entity<ProductCommentAgree>(entity =>
  4800. {
  4801. entity.Property(e => e.Id).HasColumnType("int(11)");
  4802. entity.Property(e => e.ProductCommentId).HasColumnType("int(11)");
  4803. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4804. });
  4805. modelBuilder.Entity<ProductFareAreas>(entity =>
  4806. {
  4807. entity.Property(e => e.Id).HasColumnType("int(11)");
  4808. entity.Property(e => e.Areas)
  4809. .HasColumnType("longtext")
  4810. .HasCharSet("utf8")
  4811. .HasCollation("utf8_general_ci");
  4812. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4813. entity.Property(e => e.CreateMan)
  4814. .HasColumnType("varchar(50)")
  4815. .HasCharSet("utf8")
  4816. .HasCollation("utf8_general_ci");
  4817. entity.Property(e => e.FirstAmount).HasColumnType("decimal(18,2)");
  4818. entity.Property(e => e.FirstFee).HasColumnType("decimal(18,2)");
  4819. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4820. entity.Property(e => e.MoreAmount).HasColumnType("decimal(18,2)");
  4821. entity.Property(e => e.MoreFee).HasColumnType("decimal(18,2)");
  4822. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4823. entity.Property(e => e.SeoDescription)
  4824. .HasColumnType("varchar(500)")
  4825. .HasCharSet("utf8")
  4826. .HasCollation("utf8_general_ci");
  4827. entity.Property(e => e.SeoKeyword)
  4828. .HasColumnType("varchar(200)")
  4829. .HasCharSet("utf8")
  4830. .HasCollation("utf8_general_ci");
  4831. entity.Property(e => e.SeoTitle)
  4832. .HasColumnType("varchar(100)")
  4833. .HasCharSet("utf8")
  4834. .HasCollation("utf8_general_ci");
  4835. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4836. entity.Property(e => e.Status).HasColumnType("int(11)");
  4837. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  4838. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4839. entity.Property(e => e.UpdateMan)
  4840. .HasColumnType("varchar(50)")
  4841. .HasCharSet("utf8")
  4842. .HasCollation("utf8_general_ci");
  4843. entity.Property(e => e.Version).HasColumnType("int(11)");
  4844. });
  4845. modelBuilder.Entity<ProductFareTemp>(entity =>
  4846. {
  4847. entity.Property(e => e.Id).HasColumnType("int(11)");
  4848. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4849. entity.Property(e => e.CreateMan)
  4850. .HasColumnType("varchar(50)")
  4851. .HasCharSet("utf8")
  4852. .HasCollation("utf8_general_ci");
  4853. entity.Property(e => e.FirstAmount).HasColumnType("decimal(18,2)");
  4854. entity.Property(e => e.FirstFee).HasColumnType("decimal(18,2)");
  4855. entity.Property(e => e.IsFree)
  4856. .HasColumnType("bit(1)")
  4857. .HasDefaultValueSql("b'0'");
  4858. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4859. entity.Property(e => e.MeterMode).HasColumnType("int(11)");
  4860. entity.Property(e => e.MoreAmount).HasColumnType("decimal(18,2)");
  4861. entity.Property(e => e.MoreFee).HasColumnType("decimal(18,2)");
  4862. entity.Property(e => e.Name)
  4863. .HasColumnType("varchar(50)")
  4864. .HasCharSet("utf8")
  4865. .HasCollation("utf8_general_ci");
  4866. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4867. entity.Property(e => e.SendAddress)
  4868. .HasColumnType("varchar(50)")
  4869. .HasCharSet("utf8")
  4870. .HasCollation("utf8_general_ci");
  4871. entity.Property(e => e.SendAreas)
  4872. .HasColumnType("varchar(30)")
  4873. .HasCharSet("utf8")
  4874. .HasCollation("utf8_general_ci");
  4875. entity.Property(e => e.SendDate).HasColumnType("int(11)");
  4876. entity.Property(e => e.SeoDescription)
  4877. .HasColumnType("varchar(500)")
  4878. .HasCharSet("utf8")
  4879. .HasCollation("utf8_general_ci");
  4880. entity.Property(e => e.SeoKeyword)
  4881. .HasColumnType("varchar(200)")
  4882. .HasCharSet("utf8")
  4883. .HasCollation("utf8_general_ci");
  4884. entity.Property(e => e.SeoTitle)
  4885. .HasColumnType("varchar(100)")
  4886. .HasCharSet("utf8")
  4887. .HasCollation("utf8_general_ci");
  4888. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4889. entity.Property(e => e.Status).HasColumnType("int(11)");
  4890. entity.Property(e => e.TransportMode).HasColumnType("int(11)");
  4891. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4892. entity.Property(e => e.UpdateMan)
  4893. .HasColumnType("varchar(50)")
  4894. .HasCharSet("utf8")
  4895. .HasCollation("utf8_general_ci");
  4896. entity.Property(e => e.Version).HasColumnType("int(11)");
  4897. });
  4898. modelBuilder.Entity<ProductKeys>(entity =>
  4899. {
  4900. entity.HasKey(e => e.Name)
  4901. .HasName("PRIMARY");
  4902. entity.Property(e => e.Name)
  4903. .HasColumnType("varchar(10)")
  4904. .HasCharSet("utf8")
  4905. .HasCollation("utf8_general_ci");
  4906. entity.Property(e => e.ColIds)
  4907. .HasColumnType("longtext")
  4908. .HasCharSet("utf8")
  4909. .HasCollation("utf8_general_ci");
  4910. entity.Property(e => e.ProductIds)
  4911. .HasColumnType("longtext")
  4912. .HasCharSet("utf8")
  4913. .HasCollation("utf8_general_ci");
  4914. });
  4915. modelBuilder.Entity<ProductNorm>(entity =>
  4916. {
  4917. entity.Property(e => e.Id).HasColumnType("int(11)");
  4918. entity.Property(e => e.BuyCount).HasColumnType("int(11)");
  4919. entity.Property(e => e.Code)
  4920. .HasColumnType("varchar(50)")
  4921. .HasCharSet("utf8")
  4922. .HasCollation("utf8_general_ci");
  4923. entity.Property(e => e.ColName)
  4924. .HasColumnType("varchar(50)")
  4925. .HasCharSet("utf8")
  4926. .HasCollation("utf8_general_ci");
  4927. entity.Property(e => e.CostPrice).HasColumnType("decimal(18,2)");
  4928. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4929. entity.Property(e => e.CreateMan)
  4930. .HasColumnType("varchar(50)")
  4931. .HasCharSet("utf8")
  4932. .HasCollation("utf8_general_ci");
  4933. entity.Property(e => e.IdList)
  4934. .HasColumnType("varchar(50)")
  4935. .HasCharSet("utf8")
  4936. .HasCollation("utf8_general_ci");
  4937. entity.Property(e => e.Integral).HasColumnType("decimal(18,2)");
  4938. entity.Property(e => e.LimitCount).HasColumnType("int(11)");
  4939. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4940. entity.Property(e => e.Price).HasColumnType("decimal(18,2)");
  4941. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  4942. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4943. entity.Property(e => e.SeoDescription)
  4944. .HasColumnType("varchar(500)")
  4945. .HasCharSet("utf8")
  4946. .HasCollation("utf8_general_ci");
  4947. entity.Property(e => e.SeoKeyword)
  4948. .HasColumnType("varchar(200)")
  4949. .HasCharSet("utf8")
  4950. .HasCollation("utf8_general_ci");
  4951. entity.Property(e => e.SeoTitle)
  4952. .HasColumnType("varchar(100)")
  4953. .HasCharSet("utf8")
  4954. .HasCollation("utf8_general_ci");
  4955. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4956. entity.Property(e => e.Status).HasColumnType("int(11)");
  4957. entity.Property(e => e.Stock).HasColumnType("int(11)");
  4958. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4959. entity.Property(e => e.UpdateMan)
  4960. .HasColumnType("varchar(50)")
  4961. .HasCharSet("utf8")
  4962. .HasCollation("utf8_general_ci");
  4963. entity.Property(e => e.UserIntegral).HasColumnType("decimal(18,2)");
  4964. entity.Property(e => e.UserPrice).HasColumnType("decimal(18,2)");
  4965. entity.Property(e => e.Version).HasColumnType("int(11)");
  4966. });
  4967. modelBuilder.Entity<ProductNormItem>(entity =>
  4968. {
  4969. entity.Property(e => e.Id).HasColumnType("int(11)");
  4970. entity.Property(e => e.ColName)
  4971. .HasColumnType("varchar(50)")
  4972. .HasCharSet("utf8")
  4973. .HasCollation("utf8_general_ci");
  4974. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4975. entity.Property(e => e.CreateMan)
  4976. .HasColumnType("varchar(50)")
  4977. .HasCharSet("utf8")
  4978. .HasCollation("utf8_general_ci");
  4979. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4980. entity.Property(e => e.ParentId).HasColumnType("int(11)");
  4981. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  4982. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4983. entity.Property(e => e.SeoDescription)
  4984. .HasColumnType("varchar(500)")
  4985. .HasCharSet("utf8")
  4986. .HasCollation("utf8_general_ci");
  4987. entity.Property(e => e.SeoKeyword)
  4988. .HasColumnType("varchar(200)")
  4989. .HasCharSet("utf8")
  4990. .HasCollation("utf8_general_ci");
  4991. entity.Property(e => e.SeoTitle)
  4992. .HasColumnType("varchar(100)")
  4993. .HasCharSet("utf8")
  4994. .HasCollation("utf8_general_ci");
  4995. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4996. entity.Property(e => e.Status).HasColumnType("int(11)");
  4997. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4998. entity.Property(e => e.UpdateMan)
  4999. .HasColumnType("varchar(50)")
  5000. .HasCharSet("utf8")
  5001. .HasCollation("utf8_general_ci");
  5002. entity.Property(e => e.Version).HasColumnType("int(11)");
  5003. });
  5004. modelBuilder.Entity<ProductNormTemp>(entity =>
  5005. {
  5006. entity.Property(e => e.Id).HasColumnType("int(11)");
  5007. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5008. entity.Property(e => e.CreateMan)
  5009. .HasColumnType("varchar(50)")
  5010. .HasCharSet("utf8")
  5011. .HasCollation("utf8_general_ci");
  5012. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5013. entity.Property(e => e.Name)
  5014. .HasColumnType("varchar(50)")
  5015. .HasCharSet("utf8")
  5016. .HasCollation("utf8_general_ci");
  5017. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5018. entity.Property(e => e.SeoDescription)
  5019. .HasColumnType("varchar(500)")
  5020. .HasCharSet("utf8")
  5021. .HasCollation("utf8_general_ci");
  5022. entity.Property(e => e.SeoKeyword)
  5023. .HasColumnType("varchar(200)")
  5024. .HasCharSet("utf8")
  5025. .HasCollation("utf8_general_ci");
  5026. entity.Property(e => e.SeoTitle)
  5027. .HasColumnType("varchar(100)")
  5028. .HasCharSet("utf8")
  5029. .HasCollation("utf8_general_ci");
  5030. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5031. entity.Property(e => e.Status).HasColumnType("int(11)");
  5032. entity.Property(e => e.TempJsonData)
  5033. .HasColumnType("longtext")
  5034. .HasCharSet("utf8")
  5035. .HasCollation("utf8_general_ci");
  5036. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5037. entity.Property(e => e.UpdateMan)
  5038. .HasColumnType("varchar(50)")
  5039. .HasCharSet("utf8")
  5040. .HasCollation("utf8_general_ci");
  5041. entity.Property(e => e.Version).HasColumnType("int(11)");
  5042. });
  5043. modelBuilder.Entity<Products>(entity =>
  5044. {
  5045. entity.Property(e => e.Id).HasColumnType("int(11)");
  5046. entity.Property(e => e.BuyCount).HasColumnType("int(11)");
  5047. entity.Property(e => e.ColId)
  5048. .HasColumnType("varchar(30)")
  5049. .HasCharSet("utf8")
  5050. .HasCollation("utf8_general_ci");
  5051. entity.Property(e => e.CommentCount).HasColumnType("int(11)");
  5052. entity.Property(e => e.Contents)
  5053. .HasColumnType("longtext")
  5054. .HasCharSet("utf8")
  5055. .HasCollation("utf8_general_ci");
  5056. entity.Property(e => e.CostPrice).HasColumnType("decimal(18,2)");
  5057. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5058. entity.Property(e => e.CreateMan)
  5059. .HasColumnType("varchar(50)")
  5060. .HasCharSet("utf8")
  5061. .HasCollation("utf8_general_ci");
  5062. entity.Property(e => e.DetailPicPath)
  5063. .HasColumnType("varchar(500)")
  5064. .HasCharSet("utf8")
  5065. .HasCollation("utf8_general_ci");
  5066. entity.Property(e => e.Details)
  5067. .HasColumnType("longtext")
  5068. .HasCharSet("utf8")
  5069. .HasCollation("utf8_general_ci");
  5070. entity.Property(e => e.EndDate).HasColumnType("datetime");
  5071. entity.Property(e => e.FareTemplateId).HasColumnType("int(11)");
  5072. entity.Property(e => e.GoodPercent).HasColumnType("decimal(18,2)");
  5073. entity.Property(e => e.Integral).HasColumnType("decimal(18,2)");
  5074. entity.Property(e => e.IsLimit)
  5075. .HasColumnType("bit(1)")
  5076. .HasDefaultValueSql("b'0'");
  5077. entity.Property(e => e.IsRecommend)
  5078. .HasColumnType("bit(1)")
  5079. .HasDefaultValueSql("b'0'");
  5080. entity.Property(e => e.IsRecommend2)
  5081. .HasColumnType("bit(1)")
  5082. .HasDefaultValueSql("b'0'");
  5083. entity.Property(e => e.IsRecommend3)
  5084. .HasColumnType("bit(1)")
  5085. .HasDefaultValueSql("b'0'");
  5086. entity.Property(e => e.KeyWord)
  5087. .HasColumnType("varchar(500)")
  5088. .HasCharSet("utf8")
  5089. .HasCollation("utf8_general_ci");
  5090. entity.Property(e => e.LimitCount).HasColumnType("int(11)");
  5091. entity.Property(e => e.LinkUrl)
  5092. .HasColumnType("varchar(500)")
  5093. .HasCharSet("utf8")
  5094. .HasCollation("utf8_general_ci");
  5095. entity.Property(e => e.ListPicPath)
  5096. .HasColumnType("varchar(200)")
  5097. .HasCharSet("utf8")
  5098. .HasCollation("utf8_general_ci");
  5099. entity.Property(e => e.MemberPrice).HasColumnType("decimal(18,2)");
  5100. entity.Property(e => e.MerchantClassId).HasColumnType("int(11)");
  5101. entity.Property(e => e.MerchantColId)
  5102. .HasColumnType("varchar(30)")
  5103. .HasCharSet("utf8")
  5104. .HasCollation("utf8_general_ci");
  5105. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5106. entity.Property(e => e.MonthSale).HasColumnType("int(11)");
  5107. entity.Property(e => e.NormIds)
  5108. .HasColumnType("varchar(100)")
  5109. .HasCharSet("utf8")
  5110. .HasCollation("utf8_general_ci");
  5111. entity.Property(e => e.NormJson)
  5112. .HasColumnType("longtext")
  5113. .HasCharSet("utf8")
  5114. .HasCollation("utf8_general_ci");
  5115. entity.Property(e => e.Price).HasColumnType("decimal(18,2)");
  5116. entity.Property(e => e.ProductCode)
  5117. .HasColumnType("varchar(30)")
  5118. .HasCharSet("utf8")
  5119. .HasCollation("utf8_general_ci");
  5120. entity.Property(e => e.ProductName)
  5121. .HasColumnType("varchar(100)")
  5122. .HasCharSet("utf8")
  5123. .HasCollation("utf8_general_ci");
  5124. entity.Property(e => e.PublishDate).HasColumnType("datetime");
  5125. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5126. entity.Property(e => e.SeoDescription)
  5127. .HasColumnType("varchar(500)")
  5128. .HasCharSet("utf8")
  5129. .HasCollation("utf8_general_ci");
  5130. entity.Property(e => e.SeoKeyword)
  5131. .HasColumnType("varchar(200)")
  5132. .HasCharSet("utf8")
  5133. .HasCollation("utf8_general_ci");
  5134. entity.Property(e => e.SeoTitle)
  5135. .HasColumnType("varchar(100)")
  5136. .HasCharSet("utf8")
  5137. .HasCollation("utf8_general_ci");
  5138. entity.Property(e => e.ShareDetail)
  5139. .HasColumnType("varchar(200)")
  5140. .HasCharSet("utf8")
  5141. .HasCollation("utf8_general_ci");
  5142. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5143. entity.Property(e => e.SourcePrice).HasColumnType("decimal(18,2)");
  5144. entity.Property(e => e.StartDate).HasColumnType("datetime");
  5145. entity.Property(e => e.Status).HasColumnType("int(11)");
  5146. entity.Property(e => e.Stock).HasColumnType("int(11)");
  5147. entity.Property(e => e.Title)
  5148. .HasColumnType("varchar(50)")
  5149. .HasCharSet("utf8")
  5150. .HasCollation("utf8_general_ci");
  5151. entity.Property(e => e.Title2)
  5152. .HasColumnType("varchar(50)")
  5153. .HasCharSet("utf8")
  5154. .HasCollation("utf8_general_ci");
  5155. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5156. entity.Property(e => e.UpdateMan)
  5157. .HasColumnType("varchar(50)")
  5158. .HasCharSet("utf8")
  5159. .HasCollation("utf8_general_ci");
  5160. entity.Property(e => e.UserIntegral).HasColumnType("decimal(18,2)");
  5161. entity.Property(e => e.Version).HasColumnType("int(11)");
  5162. });
  5163. modelBuilder.Entity<ProfitObjectActivations>(entity =>
  5164. {
  5165. entity.Property(e => e.Id).HasColumnType("int(11)");
  5166. entity.Property(e => e.Code)
  5167. .HasColumnType("varchar(32)")
  5168. .HasCharSet("utf8")
  5169. .HasCollation("utf8_general_ci");
  5170. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5171. entity.Property(e => e.CreateMan)
  5172. .HasColumnType("varchar(50)")
  5173. .HasCharSet("utf8")
  5174. .HasCollation("utf8_general_ci");
  5175. entity.Property(e => e.EndDate).HasColumnType("datetime");
  5176. entity.Property(e => e.ExpiredNumber).HasColumnType("decimal(18,6)");
  5177. entity.Property(e => e.LimitCustomerDate).HasColumnType("datetime");
  5178. entity.Property(e => e.LimitDateKind).HasColumnType("int(11)");
  5179. entity.Property(e => e.LimitDateVal).HasColumnType("int(11)");
  5180. entity.Property(e => e.MachineCount).HasColumnType("int(11)");
  5181. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5182. entity.Property(e => e.ProfitNumber).HasColumnType("decimal(18,6)");
  5183. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5184. entity.Property(e => e.SeoDescription)
  5185. .HasColumnType("varchar(500)")
  5186. .HasCharSet("utf8")
  5187. .HasCollation("utf8_general_ci");
  5188. entity.Property(e => e.SeoKeyword)
  5189. .HasColumnType("varchar(200)")
  5190. .HasCharSet("utf8")
  5191. .HasCollation("utf8_general_ci");
  5192. entity.Property(e => e.SeoTitle)
  5193. .HasColumnType("varchar(100)")
  5194. .HasCharSet("utf8")
  5195. .HasCollation("utf8_general_ci");
  5196. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5197. entity.Property(e => e.StartDate).HasColumnType("datetime");
  5198. entity.Property(e => e.Status).HasColumnType("int(11)");
  5199. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5200. entity.Property(e => e.UpdateMan)
  5201. .HasColumnType("varchar(50)")
  5202. .HasCharSet("utf8")
  5203. .HasCollation("utf8_general_ci");
  5204. entity.Property(e => e.Version).HasColumnType("int(11)");
  5205. });
  5206. modelBuilder.Entity<ProfitObjectContinueFloors>(entity =>
  5207. {
  5208. entity.Property(e => e.Id).HasColumnType("int(11)");
  5209. entity.Property(e => e.AddProfitVal).HasColumnType("decimal(18,6)");
  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.FloorNumber).HasColumnType("int(11)");
  5216. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5217. entity.Property(e => e.Percents).HasColumnType("decimal(18,6)");
  5218. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5219. entity.Property(e => e.SeoDescription)
  5220. .HasColumnType("varchar(500)")
  5221. .HasCharSet("utf8")
  5222. .HasCollation("utf8_general_ci");
  5223. entity.Property(e => e.SeoKeyword)
  5224. .HasColumnType("varchar(200)")
  5225. .HasCharSet("utf8")
  5226. .HasCollation("utf8_general_ci");
  5227. entity.Property(e => e.SeoTitle)
  5228. .HasColumnType("varchar(100)")
  5229. .HasCharSet("utf8")
  5230. .HasCollation("utf8_general_ci");
  5231. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5232. entity.Property(e => e.Status).HasColumnType("int(11)");
  5233. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5234. entity.Property(e => e.UpdateMan)
  5235. .HasColumnType("varchar(50)")
  5236. .HasCharSet("utf8")
  5237. .HasCollation("utf8_general_ci");
  5238. entity.Property(e => e.Version).HasColumnType("int(11)");
  5239. });
  5240. modelBuilder.Entity<ProfitObjectFloors>(entity =>
  5241. {
  5242. entity.Property(e => e.Id).HasColumnType("int(11)");
  5243. entity.Property(e => e.AddProfitVal).HasColumnType("decimal(18,6)");
  5244. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5245. entity.Property(e => e.CreateMan)
  5246. .HasColumnType("varchar(50)")
  5247. .HasCharSet("utf8")
  5248. .HasCollation("utf8_general_ci");
  5249. entity.Property(e => e.FloorDiff)
  5250. .HasColumnType("bit(1)")
  5251. .HasDefaultValueSql("b'0'");
  5252. entity.Property(e => e.FloorNumber).HasColumnType("int(11)");
  5253. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5254. entity.Property(e => e.Percents).HasColumnType("decimal(18,6)");
  5255. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5256. entity.Property(e => e.SeoDescription)
  5257. .HasColumnType("varchar(500)")
  5258. .HasCharSet("utf8")
  5259. .HasCollation("utf8_general_ci");
  5260. entity.Property(e => e.SeoKeyword)
  5261. .HasColumnType("varchar(200)")
  5262. .HasCharSet("utf8")
  5263. .HasCollation("utf8_general_ci");
  5264. entity.Property(e => e.SeoTitle)
  5265. .HasColumnType("varchar(100)")
  5266. .HasCharSet("utf8")
  5267. .HasCollation("utf8_general_ci");
  5268. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5269. entity.Property(e => e.Status).HasColumnType("int(11)");
  5270. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5271. entity.Property(e => e.UpdateMan)
  5272. .HasColumnType("varchar(50)")
  5273. .HasCharSet("utf8")
  5274. .HasCollation("utf8_general_ci");
  5275. entity.Property(e => e.Version).HasColumnType("int(11)");
  5276. });
  5277. modelBuilder.Entity<ProfitObjectLevelKinds>(entity =>
  5278. {
  5279. entity.Property(e => e.Id).HasColumnType("int(11)");
  5280. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5281. entity.Property(e => e.CreateMan)
  5282. .HasColumnType("varchar(50)")
  5283. .HasCharSet("utf8")
  5284. .HasCollation("utf8_general_ci");
  5285. entity.Property(e => e.Name)
  5286. .HasColumnType("varchar(50)")
  5287. .HasCharSet("utf8")
  5288. .HasCollation("utf8_general_ci");
  5289. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5290. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5291. entity.Property(e => e.SeoDescription)
  5292. .HasColumnType("varchar(500)")
  5293. .HasCharSet("utf8")
  5294. .HasCollation("utf8_general_ci");
  5295. entity.Property(e => e.SeoKeyword)
  5296. .HasColumnType("varchar(200)")
  5297. .HasCharSet("utf8")
  5298. .HasCollation("utf8_general_ci");
  5299. entity.Property(e => e.SeoTitle)
  5300. .HasColumnType("varchar(100)")
  5301. .HasCharSet("utf8")
  5302. .HasCollation("utf8_general_ci");
  5303. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5304. entity.Property(e => e.Status).HasColumnType("int(11)");
  5305. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5306. entity.Property(e => e.UpdateMan)
  5307. .HasColumnType("varchar(50)")
  5308. .HasCharSet("utf8")
  5309. .HasCollation("utf8_general_ci");
  5310. entity.Property(e => e.Version).HasColumnType("int(11)");
  5311. });
  5312. modelBuilder.Entity<ProfitObjectLevels>(entity =>
  5313. {
  5314. entity.Property(e => e.Id).HasColumnType("int(11)");
  5315. entity.Property(e => e.AddProfitVal).HasColumnType("decimal(18,6)");
  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.DebitAddProfitVal).HasColumnType("decimal(18,2)");
  5322. entity.Property(e => e.DebitPercents).HasColumnType("decimal(18,2)");
  5323. entity.Property(e => e.KindId).HasColumnType("int(11)");
  5324. entity.Property(e => e.LevelDiff)
  5325. .HasColumnType("bit(1)")
  5326. .HasDefaultValueSql("b'0'");
  5327. entity.Property(e => e.LevelNumber).HasColumnType("int(11)");
  5328. entity.Property(e => e.Name)
  5329. .HasColumnType("varchar(50)")
  5330. .HasCharSet("utf8")
  5331. .HasCollation("utf8_general_ci");
  5332. entity.Property(e => e.Percents).HasColumnType("decimal(18,6)");
  5333. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5334. entity.Property(e => e.SeoDescription)
  5335. .HasColumnType("varchar(500)")
  5336. .HasCharSet("utf8")
  5337. .HasCollation("utf8_general_ci");
  5338. entity.Property(e => e.SeoKeyword)
  5339. .HasColumnType("varchar(200)")
  5340. .HasCharSet("utf8")
  5341. .HasCollation("utf8_general_ci");
  5342. entity.Property(e => e.SeoTitle)
  5343. .HasColumnType("varchar(100)")
  5344. .HasCharSet("utf8")
  5345. .HasCollation("utf8_general_ci");
  5346. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5347. entity.Property(e => e.Status).HasColumnType("int(11)");
  5348. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5349. entity.Property(e => e.UpdateMan)
  5350. .HasColumnType("varchar(50)")
  5351. .HasCharSet("utf8")
  5352. .HasCollation("utf8_general_ci");
  5353. entity.Property(e => e.Version).HasColumnType("int(11)");
  5354. });
  5355. modelBuilder.Entity<ProfitObjects>(entity =>
  5356. {
  5357. entity.Property(e => e.Id).HasColumnType("int(11)");
  5358. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5359. entity.Property(e => e.CreateMan)
  5360. .HasColumnType("varchar(50)")
  5361. .HasCharSet("utf8")
  5362. .HasCollation("utf8_general_ci");
  5363. entity.Property(e => e.EndDate).HasColumnType("datetime");
  5364. entity.Property(e => e.MaxFloor).HasColumnType("int(11)");
  5365. entity.Property(e => e.MaxLevel).HasColumnType("int(11)");
  5366. entity.Property(e => e.MaxLevelContinue)
  5367. .HasColumnType("bit(1)")
  5368. .HasDefaultValueSql("b'0'");
  5369. entity.Property(e => e.MinProfitVal).HasColumnType("decimal(18,5)");
  5370. entity.Property(e => e.Name)
  5371. .HasColumnType("varchar(50)")
  5372. .HasCharSet("utf8")
  5373. .HasCollation("utf8_general_ci");
  5374. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5375. entity.Property(e => e.SeoDescription)
  5376. .HasColumnType("varchar(500)")
  5377. .HasCharSet("utf8")
  5378. .HasCollation("utf8_general_ci");
  5379. entity.Property(e => e.SeoKeyword)
  5380. .HasColumnType("varchar(200)")
  5381. .HasCharSet("utf8")
  5382. .HasCollation("utf8_general_ci");
  5383. entity.Property(e => e.SeoTitle)
  5384. .HasColumnType("varchar(100)")
  5385. .HasCharSet("utf8")
  5386. .HasCollation("utf8_general_ci");
  5387. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5388. entity.Property(e => e.StartDate).HasColumnType("datetime");
  5389. entity.Property(e => e.Status).HasColumnType("int(11)");
  5390. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5391. entity.Property(e => e.UpdateMan)
  5392. .HasColumnType("varchar(50)")
  5393. .HasCharSet("utf8")
  5394. .HasCollation("utf8_general_ci");
  5395. entity.Property(e => e.Version).HasColumnType("int(11)");
  5396. });
  5397. modelBuilder.Entity<ProfitObjectsActiveCheck>(entity =>
  5398. {
  5399. entity.HasKey(e => e.CheckData)
  5400. .HasName("PRIMARY");
  5401. entity.Property(e => e.CheckData)
  5402. .HasColumnType("varchar(100)")
  5403. .HasCharSet("utf8")
  5404. .HasCollation("utf8_general_ci");
  5405. });
  5406. modelBuilder.Entity<ProfitObjectsActiveParams>(entity =>
  5407. {
  5408. entity.Property(e => e.Id).HasColumnType("int(11)");
  5409. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5410. entity.Property(e => e.CreateMan)
  5411. .HasColumnType("varchar(50)")
  5412. .HasCharSet("utf8")
  5413. .HasCollation("utf8_general_ci");
  5414. entity.Property(e => e.Name)
  5415. .HasColumnType("varchar(50)")
  5416. .HasCharSet("utf8")
  5417. .HasCollation("utf8_general_ci");
  5418. entity.Property(e => e.ProfitObjectsActiveId).HasColumnType("int(11)");
  5419. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5420. entity.Property(e => e.Remark)
  5421. .HasColumnType("varchar(200)")
  5422. .HasCharSet("utf8")
  5423. .HasCollation("utf8_general_ci");
  5424. entity.Property(e => e.SeoDescription)
  5425. .HasColumnType("varchar(500)")
  5426. .HasCharSet("utf8")
  5427. .HasCollation("utf8_general_ci");
  5428. entity.Property(e => e.SeoKeyword)
  5429. .HasColumnType("varchar(200)")
  5430. .HasCharSet("utf8")
  5431. .HasCollation("utf8_general_ci");
  5432. entity.Property(e => e.SeoTitle)
  5433. .HasColumnType("varchar(100)")
  5434. .HasCharSet("utf8")
  5435. .HasCollation("utf8_general_ci");
  5436. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5437. entity.Property(e => e.Status).HasColumnType("int(11)");
  5438. entity.Property(e => e.TextValue)
  5439. .HasColumnType("varchar(20)")
  5440. .HasCharSet("utf8")
  5441. .HasCollation("utf8_general_ci");
  5442. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5443. entity.Property(e => e.UpdateMan)
  5444. .HasColumnType("varchar(50)")
  5445. .HasCharSet("utf8")
  5446. .HasCollation("utf8_general_ci");
  5447. entity.Property(e => e.Version).HasColumnType("int(11)");
  5448. });
  5449. modelBuilder.Entity<ProfitObjectsActives>(entity =>
  5450. {
  5451. entity.Property(e => e.Id).HasColumnType("int(11)");
  5452. entity.Property(e => e.CardType).HasColumnType("int(11)");
  5453. entity.Property(e => e.Code)
  5454. .HasColumnType("varchar(50)")
  5455. .HasCharSet("utf8")
  5456. .HasCollation("utf8_general_ci");
  5457. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5458. entity.Property(e => e.CreateMan)
  5459. .HasColumnType("varchar(50)")
  5460. .HasCharSet("utf8")
  5461. .HasCollation("utf8_general_ci");
  5462. entity.Property(e => e.EndDate).HasColumnType("datetime");
  5463. entity.Property(e => e.FinishNumber).HasColumnType("decimal(18,6)");
  5464. entity.Property(e => e.LimitCustomerDate).HasColumnType("datetime");
  5465. entity.Property(e => e.LimitDateKind).HasColumnType("int(11)");
  5466. entity.Property(e => e.LimitDateVal).HasColumnType("int(11)");
  5467. entity.Property(e => e.MachineCount).HasColumnType("int(11)");
  5468. entity.Property(e => e.Name)
  5469. .HasColumnType("varchar(50)")
  5470. .HasCharSet("utf8")
  5471. .HasCollation("utf8_general_ci");
  5472. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5473. entity.Property(e => e.ProfitNumber).HasColumnType("decimal(18,6)");
  5474. entity.Property(e => e.ProfitNumber2).HasColumnType("decimal(18,2)");
  5475. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5476. entity.Property(e => e.SeoDescription)
  5477. .HasColumnType("varchar(500)")
  5478. .HasCharSet("utf8")
  5479. .HasCollation("utf8_general_ci");
  5480. entity.Property(e => e.SeoKeyword)
  5481. .HasColumnType("varchar(200)")
  5482. .HasCharSet("utf8")
  5483. .HasCollation("utf8_general_ci");
  5484. entity.Property(e => e.SeoTitle)
  5485. .HasColumnType("varchar(100)")
  5486. .HasCharSet("utf8")
  5487. .HasCollation("utf8_general_ci");
  5488. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5489. entity.Property(e => e.StartDate).HasColumnType("datetime");
  5490. entity.Property(e => e.Status).HasColumnType("int(11)");
  5491. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5492. entity.Property(e => e.UpdateMan)
  5493. .HasColumnType("varchar(50)")
  5494. .HasCharSet("utf8")
  5495. .HasCollation("utf8_general_ci");
  5496. entity.Property(e => e.Version).HasColumnType("int(11)");
  5497. });
  5498. modelBuilder.Entity<ProfitObjectsActivesForId>(entity =>
  5499. {
  5500. entity.HasKey(e => e.Name)
  5501. .HasName("PRIMARY");
  5502. entity.Property(e => e.Name)
  5503. .HasColumnType("varchar(50)")
  5504. .HasCharSet("utf8")
  5505. .HasCollation("utf8_general_ci");
  5506. entity.Property(e => e.ActivityId).HasColumnType("int(11)");
  5507. });
  5508. modelBuilder.Entity<ProfitObjectsRule>(entity =>
  5509. {
  5510. entity.Property(e => e.Id).HasColumnType("int(11)");
  5511. entity.Property(e => e.Code)
  5512. .HasColumnType("varchar(50)")
  5513. .HasCharSet("utf8")
  5514. .HasCollation("utf8_general_ci");
  5515. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5516. entity.Property(e => e.CreateMan)
  5517. .HasColumnType("varchar(50)")
  5518. .HasCharSet("utf8")
  5519. .HasCollation("utf8_general_ci");
  5520. entity.Property(e => e.EndDate).HasColumnType("datetime");
  5521. entity.Property(e => e.Name)
  5522. .HasColumnType("varchar(50)")
  5523. .HasCharSet("utf8")
  5524. .HasCollation("utf8_general_ci");
  5525. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5526. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5527. entity.Property(e => e.SeoDescription)
  5528. .HasColumnType("varchar(500)")
  5529. .HasCharSet("utf8")
  5530. .HasCollation("utf8_general_ci");
  5531. entity.Property(e => e.SeoKeyword)
  5532. .HasColumnType("varchar(200)")
  5533. .HasCharSet("utf8")
  5534. .HasCollation("utf8_general_ci");
  5535. entity.Property(e => e.SeoTitle)
  5536. .HasColumnType("varchar(100)")
  5537. .HasCharSet("utf8")
  5538. .HasCollation("utf8_general_ci");
  5539. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5540. entity.Property(e => e.StartDate).HasColumnType("datetime");
  5541. entity.Property(e => e.Status).HasColumnType("int(11)");
  5542. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5543. entity.Property(e => e.UpdateMan)
  5544. .HasColumnType("varchar(50)")
  5545. .HasCharSet("utf8")
  5546. .HasCollation("utf8_general_ci");
  5547. entity.Property(e => e.Version).HasColumnType("int(11)");
  5548. });
  5549. modelBuilder.Entity<ProfitObjectsRuleDetails>(entity =>
  5550. {
  5551. entity.Property(e => e.Id).HasColumnType("int(11)");
  5552. entity.Property(e => e.Code)
  5553. .HasColumnType("varchar(50)")
  5554. .HasCharSet("utf8")
  5555. .HasCollation("utf8_general_ci");
  5556. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5557. entity.Property(e => e.CreateMan)
  5558. .HasColumnType("varchar(50)")
  5559. .HasCharSet("utf8")
  5560. .HasCollation("utf8_general_ci");
  5561. entity.Property(e => e.DataValue)
  5562. .HasColumnType("varchar(50)")
  5563. .HasCharSet("utf8")
  5564. .HasCollation("utf8_general_ci");
  5565. entity.Property(e => e.Name)
  5566. .HasColumnType("varchar(50)")
  5567. .HasCharSet("utf8")
  5568. .HasCollation("utf8_general_ci");
  5569. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5570. entity.Property(e => e.RuleId).HasColumnType("int(11)");
  5571. entity.Property(e => e.SeoDescription)
  5572. .HasColumnType("varchar(500)")
  5573. .HasCharSet("utf8")
  5574. .HasCollation("utf8_general_ci");
  5575. entity.Property(e => e.SeoKeyword)
  5576. .HasColumnType("varchar(200)")
  5577. .HasCharSet("utf8")
  5578. .HasCollation("utf8_general_ci");
  5579. entity.Property(e => e.SeoTitle)
  5580. .HasColumnType("varchar(100)")
  5581. .HasCharSet("utf8")
  5582. .HasCollation("utf8_general_ci");
  5583. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5584. entity.Property(e => e.Status).HasColumnType("int(11)");
  5585. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5586. entity.Property(e => e.UpdateMan)
  5587. .HasColumnType("varchar(50)")
  5588. .HasCharSet("utf8")
  5589. .HasCollation("utf8_general_ci");
  5590. entity.Property(e => e.Version).HasColumnType("int(11)");
  5591. });
  5592. modelBuilder.Entity<ProfitReceiveRecord>(entity =>
  5593. {
  5594. entity.Property(e => e.Id).HasColumnType("int(11)");
  5595. entity.Property(e => e.Account)
  5596. .HasColumnType("varchar(32)")
  5597. .HasCharSet("utf8")
  5598. .HasCollation("utf8_general_ci");
  5599. entity.Property(e => e.Amount).HasColumnType("decimal(18,2)");
  5600. entity.Property(e => e.AppId)
  5601. .HasColumnType("varchar(32)")
  5602. .HasCharSet("utf8")
  5603. .HasCollation("utf8_general_ci");
  5604. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5605. entity.Property(e => e.CreateMan)
  5606. .HasColumnType("varchar(50)")
  5607. .HasCharSet("utf8")
  5608. .HasCollation("utf8_general_ci");
  5609. entity.Property(e => e.CustomRelation)
  5610. .HasColumnType("varchar(10)")
  5611. .HasCharSet("utf8")
  5612. .HasCollation("utf8_general_ci");
  5613. entity.Property(e => e.Description)
  5614. .HasColumnType("varchar(50)")
  5615. .HasCharSet("utf8")
  5616. .HasCollation("utf8_general_ci");
  5617. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5618. entity.Property(e => e.Name)
  5619. .HasColumnType("varchar(32)")
  5620. .HasCharSet("utf8")
  5621. .HasCollation("utf8_general_ci");
  5622. entity.Property(e => e.OrderId)
  5623. .HasColumnType("varchar(32)")
  5624. .HasCharSet("utf8")
  5625. .HasCollation("utf8_general_ci");
  5626. entity.Property(e => e.OutOrderNo)
  5627. .HasColumnType("varchar(32)")
  5628. .HasCharSet("utf8")
  5629. .HasCollation("utf8_general_ci");
  5630. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5631. entity.Property(e => e.RelationType)
  5632. .HasColumnType("varchar(30)")
  5633. .HasCharSet("utf8")
  5634. .HasCollation("utf8_general_ci");
  5635. entity.Property(e => e.SeoDescription)
  5636. .HasColumnType("varchar(500)")
  5637. .HasCharSet("utf8")
  5638. .HasCollation("utf8_general_ci");
  5639. entity.Property(e => e.SeoKeyword)
  5640. .HasColumnType("varchar(200)")
  5641. .HasCharSet("utf8")
  5642. .HasCollation("utf8_general_ci");
  5643. entity.Property(e => e.SeoTitle)
  5644. .HasColumnType("varchar(100)")
  5645. .HasCharSet("utf8")
  5646. .HasCollation("utf8_general_ci");
  5647. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5648. entity.Property(e => e.State)
  5649. .HasColumnType("varchar(20)")
  5650. .HasCharSet("utf8")
  5651. .HasCollation("utf8_general_ci");
  5652. entity.Property(e => e.Status).HasColumnType("int(11)");
  5653. entity.Property(e => e.SubAppId)
  5654. .HasColumnType("varchar(32)")
  5655. .HasCharSet("utf8")
  5656. .HasCollation("utf8_general_ci");
  5657. entity.Property(e => e.SubMchid)
  5658. .HasColumnType("varchar(32)")
  5659. .HasCharSet("utf8")
  5660. .HasCollation("utf8_general_ci");
  5661. entity.Property(e => e.TransactionId)
  5662. .HasColumnType("varchar(32)")
  5663. .HasCharSet("utf8")
  5664. .HasCollation("utf8_general_ci");
  5665. entity.Property(e => e.Type)
  5666. .HasColumnType("varchar(30)")
  5667. .HasCharSet("utf8")
  5668. .HasCollation("utf8_general_ci");
  5669. entity.Property(e => e.UnfreezeUnsplit)
  5670. .HasColumnType("bit(1)")
  5671. .HasDefaultValueSql("b'0'");
  5672. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5673. entity.Property(e => e.UpdateMan)
  5674. .HasColumnType("varchar(50)")
  5675. .HasCharSet("utf8")
  5676. .HasCollation("utf8_general_ci");
  5677. entity.Property(e => e.Version).HasColumnType("int(11)");
  5678. });
  5679. modelBuilder.Entity<ProfitReceives>(entity =>
  5680. {
  5681. entity.Property(e => e.Id).HasColumnType("int(11)");
  5682. entity.Property(e => e.Account)
  5683. .HasColumnType("varchar(32)")
  5684. .HasCharSet("utf8")
  5685. .HasCollation("utf8_general_ci");
  5686. entity.Property(e => e.AppId)
  5687. .HasColumnType("varchar(32)")
  5688. .HasCharSet("utf8")
  5689. .HasCollation("utf8_general_ci");
  5690. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5691. entity.Property(e => e.CreateMan)
  5692. .HasColumnType("varchar(50)")
  5693. .HasCharSet("utf8")
  5694. .HasCollation("utf8_general_ci");
  5695. entity.Property(e => e.CustomRelation)
  5696. .HasColumnType("varchar(10)")
  5697. .HasCharSet("utf8")
  5698. .HasCollation("utf8_general_ci");
  5699. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5700. entity.Property(e => e.Name)
  5701. .HasColumnType("varchar(32)")
  5702. .HasCharSet("utf8")
  5703. .HasCollation("utf8_general_ci");
  5704. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5705. entity.Property(e => e.RelationType)
  5706. .HasColumnType("varchar(30)")
  5707. .HasCharSet("utf8")
  5708. .HasCollation("utf8_general_ci");
  5709. entity.Property(e => e.SeoDescription)
  5710. .HasColumnType("varchar(500)")
  5711. .HasCharSet("utf8")
  5712. .HasCollation("utf8_general_ci");
  5713. entity.Property(e => e.SeoKeyword)
  5714. .HasColumnType("varchar(200)")
  5715. .HasCharSet("utf8")
  5716. .HasCollation("utf8_general_ci");
  5717. entity.Property(e => e.SeoTitle)
  5718. .HasColumnType("varchar(100)")
  5719. .HasCharSet("utf8")
  5720. .HasCollation("utf8_general_ci");
  5721. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5722. entity.Property(e => e.Status).HasColumnType("int(11)");
  5723. entity.Property(e => e.SubAppId)
  5724. .HasColumnType("varchar(32)")
  5725. .HasCharSet("utf8")
  5726. .HasCollation("utf8_general_ci");
  5727. entity.Property(e => e.SubMchid)
  5728. .HasColumnType("varchar(32)")
  5729. .HasCharSet("utf8")
  5730. .HasCollation("utf8_general_ci");
  5731. entity.Property(e => e.Type)
  5732. .HasColumnType("varchar(30)")
  5733. .HasCharSet("utf8")
  5734. .HasCollation("utf8_general_ci");
  5735. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5736. entity.Property(e => e.UpdateMan)
  5737. .HasColumnType("varchar(50)")
  5738. .HasCharSet("utf8")
  5739. .HasCollation("utf8_general_ci");
  5740. entity.Property(e => e.Version).HasColumnType("int(11)");
  5741. });
  5742. modelBuilder.Entity<ProfitRecord>(entity =>
  5743. {
  5744. entity.Property(e => e.Id).HasColumnType("int(11)");
  5745. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  5746. entity.Property(e => e.CapFlag).HasColumnType("int(11)");
  5747. entity.Property(e => e.ClearDate).HasColumnType("datetime");
  5748. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5749. entity.Property(e => e.CreateMan)
  5750. .HasColumnType("varchar(50)")
  5751. .HasCharSet("utf8")
  5752. .HasCollation("utf8_general_ci");
  5753. entity.Property(e => e.DirectFlag)
  5754. .HasColumnType("bit(1)")
  5755. .HasDefaultValueSql("b'0'");
  5756. entity.Property(e => e.HelpMonthCount).HasColumnType("int(11)");
  5757. entity.Property(e => e.MerBuddyType).HasColumnType("int(11)");
  5758. entity.Property(e => e.MerHelpFlag)
  5759. .HasColumnType("bit(1)")
  5760. .HasDefaultValueSql("b'0'");
  5761. entity.Property(e => e.MerNo)
  5762. .HasColumnType("varchar(32)")
  5763. .HasCharSet("utf8")
  5764. .HasCollation("utf8_general_ci");
  5765. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5766. entity.Property(e => e.ParentNav)
  5767. .HasColumnType("varchar(1000)")
  5768. .HasCharSet("utf8")
  5769. .HasCollation("utf8_general_ci");
  5770. entity.Property(e => e.ProfitAmount).HasColumnType("decimal(18,2)");
  5771. entity.Property(e => e.QrPayFlag).HasColumnType("int(11)");
  5772. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5773. entity.Property(e => e.Remark)
  5774. .HasColumnType("varchar(64)")
  5775. .HasCharSet("utf8")
  5776. .HasCollation("utf8_general_ci");
  5777. entity.Property(e => e.SeoDescription)
  5778. .HasColumnType("varchar(500)")
  5779. .HasCharSet("utf8")
  5780. .HasCollation("utf8_general_ci");
  5781. entity.Property(e => e.SeoKeyword)
  5782. .HasColumnType("varchar(200)")
  5783. .HasCharSet("utf8")
  5784. .HasCollation("utf8_general_ci");
  5785. entity.Property(e => e.SeoTitle)
  5786. .HasColumnType("varchar(100)")
  5787. .HasCharSet("utf8")
  5788. .HasCollation("utf8_general_ci");
  5789. entity.Property(e => e.SnNo)
  5790. .HasColumnType("varchar(32)")
  5791. .HasCharSet("utf8")
  5792. .HasCollation("utf8_general_ci");
  5793. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5794. entity.Property(e => e.Status).HasColumnType("int(11)");
  5795. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  5796. entity.Property(e => e.TradeId).HasColumnType("int(11)");
  5797. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5798. entity.Property(e => e.UpdateMan)
  5799. .HasColumnType("varchar(50)")
  5800. .HasCharSet("utf8")
  5801. .HasCollation("utf8_general_ci");
  5802. entity.Property(e => e.UserId).HasColumnType("int(11)");
  5803. entity.Property(e => e.Version).HasColumnType("int(11)");
  5804. });
  5805. modelBuilder.Entity<ProfitRewardRecord>(entity =>
  5806. {
  5807. entity.Property(e => e.Id).HasColumnType("int(11)");
  5808. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  5809. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  5810. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5811. entity.Property(e => e.CreateMan)
  5812. .HasColumnType("varchar(50)")
  5813. .HasCharSet("utf8")
  5814. .HasCollation("utf8_general_ci");
  5815. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  5816. entity.Property(e => e.CreditTradeProfit).HasColumnType("decimal(18,2)");
  5817. entity.Property(e => e.DebitCapSingleReward).HasColumnType("decimal(18,2)");
  5818. entity.Property(e => e.DebitCapTradeAmt).HasColumnType("decimal(18,2)");
  5819. entity.Property(e => e.DebitCapTradeNum).HasColumnType("int(11)");
  5820. entity.Property(e => e.DebitNonCapTradeAmt).HasColumnType("decimal(18,2)");
  5821. entity.Property(e => e.DebitNonTradeCapProfit).HasColumnType("decimal(18,2)");
  5822. entity.Property(e => e.DebitTradeCapProfit).HasColumnType("decimal(18,2)");
  5823. entity.Property(e => e.HelpCreditAddOrSubRate).HasColumnType("decimal(18,2)");
  5824. entity.Property(e => e.HelpCreditProfitRate).HasColumnType("decimal(18,2)");
  5825. entity.Property(e => e.HelpCreditProfitStandardRate).HasColumnType("decimal(18,2)");
  5826. entity.Property(e => e.HelpCreditTradeAmt).HasColumnType("decimal(18,2)");
  5827. entity.Property(e => e.HelpCreditTradeProfit).HasColumnType("decimal(18,2)");
  5828. entity.Property(e => e.HelpDebitAddOrSubRate).HasColumnType("decimal(18,2)");
  5829. entity.Property(e => e.HelpDebitNonCapTradeAmt).HasColumnType("decimal(18,2)");
  5830. entity.Property(e => e.HelpDebitNonTradeCapProfit).HasColumnType("decimal(18,2)");
  5831. entity.Property(e => e.HelpDebitProfitRate).HasColumnType("decimal(18,2)");
  5832. entity.Property(e => e.HelpDebitProfitStandardRate).HasColumnType("decimal(18,2)");
  5833. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5834. entity.Property(e => e.NonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  5835. entity.Property(e => e.NonQrCreditTradeProfit).HasColumnType("decimal(18,2)");
  5836. entity.Property(e => e.NonQrDebitNonTradeCapProfit).HasColumnType("decimal(18,2)");
  5837. entity.Property(e => e.NonQrDebitNotCapTradeAmt).HasColumnType("decimal(18,2)");
  5838. entity.Property(e => e.NotHelpCreditAddOrSubRate).HasColumnType("decimal(18,2)");
  5839. entity.Property(e => e.NotHelpCreditProfitRate).HasColumnType("decimal(18,2)");
  5840. entity.Property(e => e.NotHelpCreditProfitStandardRate).HasColumnType("decimal(18,2)");
  5841. entity.Property(e => e.NotHelpCreditTradeAmt).HasColumnType("decimal(18,2)");
  5842. entity.Property(e => e.NotHelpCreditTradeProfit).HasColumnType("decimal(18,2)");
  5843. entity.Property(e => e.NotHelpDebitAddOrSubRate).HasColumnType("decimal(18,2)");
  5844. entity.Property(e => e.NotHelpDebitNonCapTradeAmt).HasColumnType("decimal(18,2)");
  5845. entity.Property(e => e.NotHelpDebitNonTradeCapProfit).HasColumnType("decimal(18,2)");
  5846. entity.Property(e => e.NotHelpDebitProfitRate).HasColumnType("decimal(18,2)");
  5847. entity.Property(e => e.NotHelpDebitProfitStandardRate).HasColumnType("decimal(18,2)");
  5848. entity.Property(e => e.OtherCreditTradeAmt).HasColumnType("decimal(18,2)");
  5849. entity.Property(e => e.OtherDebitNotCapTradeAmt).HasColumnType("decimal(18,2)");
  5850. entity.Property(e => e.OtherTradeAmt).HasColumnType("decimal(18,2)");
  5851. entity.Property(e => e.ProfitType).HasColumnType("int(11)");
  5852. entity.Property(e => e.QrCreditAddOrSubRate).HasColumnType("decimal(18,2)");
  5853. entity.Property(e => e.QrCreditProfitRate).HasColumnType("decimal(18,2)");
  5854. entity.Property(e => e.QrCreditProfitStandardRate).HasColumnType("decimal(18,2)");
  5855. entity.Property(e => e.QrCreditTradeAmt).HasColumnType("decimal(18,2)");
  5856. entity.Property(e => e.QrCreditTradeProfit).HasColumnType("decimal(18,2)");
  5857. entity.Property(e => e.QrDebitAddOrSubRate).HasColumnType("decimal(18,2)");
  5858. entity.Property(e => e.QrDebitNonTradeCapProfit).HasColumnType("decimal(18,2)");
  5859. entity.Property(e => e.QrDebitNotCapTradeAmt).HasColumnType("decimal(18,2)");
  5860. entity.Property(e => e.QrDebitProfitRate).HasColumnType("decimal(18,2)");
  5861. entity.Property(e => e.QrDebitProfitStandardRate).HasColumnType("decimal(18,2)");
  5862. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5863. entity.Property(e => e.RecordNo)
  5864. .HasColumnType("varchar(32)")
  5865. .HasCharSet("utf8")
  5866. .HasCollation("utf8_general_ci");
  5867. entity.Property(e => e.Remark)
  5868. .HasColumnType("varchar(64)")
  5869. .HasCharSet("utf8")
  5870. .HasCollation("utf8_general_ci");
  5871. entity.Property(e => e.SeoDescription)
  5872. .HasColumnType("varchar(500)")
  5873. .HasCharSet("utf8")
  5874. .HasCollation("utf8_general_ci");
  5875. entity.Property(e => e.SeoKeyword)
  5876. .HasColumnType("varchar(200)")
  5877. .HasCharSet("utf8")
  5878. .HasCollation("utf8_general_ci");
  5879. entity.Property(e => e.SeoTitle)
  5880. .HasColumnType("varchar(100)")
  5881. .HasCharSet("utf8")
  5882. .HasCollation("utf8_general_ci");
  5883. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5884. entity.Property(e => e.Status).HasColumnType("int(11)");
  5885. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  5886. entity.Property(e => e.TradeAmt).HasColumnType("decimal(18,2)");
  5887. entity.Property(e => e.TradeMonth)
  5888. .HasColumnType("varchar(6)")
  5889. .HasCharSet("utf8")
  5890. .HasCollation("utf8_general_ci");
  5891. entity.Property(e => e.TradeProfit).HasColumnType("decimal(18,2)");
  5892. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5893. entity.Property(e => e.UpdateMan)
  5894. .HasColumnType("varchar(50)")
  5895. .HasCharSet("utf8")
  5896. .HasCollation("utf8_general_ci");
  5897. entity.Property(e => e.UserId).HasColumnType("int(11)");
  5898. entity.Property(e => e.Version).HasColumnType("int(11)");
  5899. });
  5900. modelBuilder.Entity<ProfitSubsidyDetail>(entity =>
  5901. {
  5902. entity.Property(e => e.Id).HasColumnType("int(11)");
  5903. entity.Property(e => e.BelongUserId).HasColumnType("int(11)");
  5904. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  5905. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5906. entity.Property(e => e.CreateMan)
  5907. .HasColumnType("varchar(50)")
  5908. .HasCharSet("utf8")
  5909. .HasCollation("utf8_general_ci");
  5910. entity.Property(e => e.CreditProfitRate).HasColumnType("decimal(18,2)");
  5911. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  5912. entity.Property(e => e.MerHelpFlag)
  5913. .HasColumnType("bit(1)")
  5914. .HasDefaultValueSql("b'0'");
  5915. entity.Property(e => e.MerNo)
  5916. .HasColumnType("varchar(32)")
  5917. .HasCharSet("utf8")
  5918. .HasCollation("utf8_general_ci");
  5919. entity.Property(e => e.MerRegTime).HasColumnType("datetime");
  5920. entity.Property(e => e.MerStandardDate).HasColumnType("datetime");
  5921. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5922. entity.Property(e => e.NonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  5923. entity.Property(e => e.ProductName)
  5924. .HasColumnType("varchar(16)")
  5925. .HasCharSet("utf8")
  5926. .HasCollation("utf8_general_ci");
  5927. entity.Property(e => e.QrCreditTradeAmt).HasColumnType("decimal(18,2)");
  5928. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5929. entity.Property(e => e.RecordNo)
  5930. .HasColumnType("varchar(32)")
  5931. .HasCharSet("utf8")
  5932. .HasCollation("utf8_general_ci");
  5933. entity.Property(e => e.Remark)
  5934. .HasColumnType("varchar(64)")
  5935. .HasCharSet("utf8")
  5936. .HasCollation("utf8_general_ci");
  5937. entity.Property(e => e.SeoDescription)
  5938. .HasColumnType("varchar(500)")
  5939. .HasCharSet("utf8")
  5940. .HasCollation("utf8_general_ci");
  5941. entity.Property(e => e.SeoKeyword)
  5942. .HasColumnType("varchar(200)")
  5943. .HasCharSet("utf8")
  5944. .HasCollation("utf8_general_ci");
  5945. entity.Property(e => e.SeoTitle)
  5946. .HasColumnType("varchar(100)")
  5947. .HasCharSet("utf8")
  5948. .HasCollation("utf8_general_ci");
  5949. entity.Property(e => e.SnNo)
  5950. .HasColumnType("varchar(32)")
  5951. .HasCharSet("utf8")
  5952. .HasCollation("utf8_general_ci");
  5953. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5954. entity.Property(e => e.Status).HasColumnType("int(11)");
  5955. entity.Property(e => e.SubsidyProfit).HasColumnType("decimal(18,2)");
  5956. entity.Property(e => e.SubsidyProfitRate).HasColumnType("decimal(18,2)");
  5957. entity.Property(e => e.SubsidyType).HasColumnType("int(11)");
  5958. entity.Property(e => e.SubsidyUserId).HasColumnType("int(11)");
  5959. entity.Property(e => e.TradeMonth)
  5960. .HasColumnType("varchar(6)")
  5961. .HasCharSet("utf8")
  5962. .HasCollation("utf8_general_ci");
  5963. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5964. entity.Property(e => e.UpdateMan)
  5965. .HasColumnType("varchar(50)")
  5966. .HasCharSet("utf8")
  5967. .HasCollation("utf8_general_ci");
  5968. entity.Property(e => e.Version).HasColumnType("int(11)");
  5969. });
  5970. modelBuilder.Entity<PublicAccountSet>(entity =>
  5971. {
  5972. entity.Property(e => e.Id).HasColumnType("int(11)");
  5973. entity.Property(e => e.AlipayAppId)
  5974. .HasColumnType("varchar(50)")
  5975. .HasCharSet("utf8")
  5976. .HasCollation("utf8_general_ci");
  5977. entity.Property(e => e.AlipayPartnerId)
  5978. .HasColumnType("varchar(50)")
  5979. .HasCharSet("utf8")
  5980. .HasCollation("utf8_general_ci");
  5981. entity.Property(e => e.AlipayPrivateKey)
  5982. .HasColumnType("mediumtext")
  5983. .HasCharSet("utf8")
  5984. .HasCollation("utf8_general_ci");
  5985. entity.Property(e => e.AlipayPublicKey)
  5986. .HasColumnType("mediumtext")
  5987. .HasCharSet("utf8")
  5988. .HasCollation("utf8_general_ci");
  5989. entity.Property(e => e.AliyunAccessKeyId)
  5990. .HasColumnType("varchar(50)")
  5991. .HasCharSet("utf8")
  5992. .HasCollation("utf8_general_ci");
  5993. entity.Property(e => e.AliyunAccessKeySecret)
  5994. .HasColumnType("varchar(50)")
  5995. .HasCharSet("utf8")
  5996. .HasCollation("utf8_general_ci");
  5997. entity.Property(e => e.AliyunAndroidActivity)
  5998. .HasColumnType("varchar(100)")
  5999. .HasCharSet("utf8")
  6000. .HasCollation("utf8_general_ci");
  6001. entity.Property(e => e.AliyunAndroidNotifyTitle)
  6002. .HasColumnType("varchar(20)")
  6003. .HasCharSet("utf8")
  6004. .HasCollation("utf8_general_ci");
  6005. entity.Property(e => e.AliyunPushAndroidAppId)
  6006. .HasColumnType("varchar(50)")
  6007. .HasCharSet("utf8")
  6008. .HasCollation("utf8_general_ci");
  6009. entity.Property(e => e.AliyunPushAndroidAppSecret)
  6010. .HasColumnType("varchar(50)")
  6011. .HasCharSet("utf8")
  6012. .HasCollation("utf8_general_ci");
  6013. entity.Property(e => e.AliyunPushIosAppId)
  6014. .HasColumnType("varchar(500)")
  6015. .HasCharSet("utf8")
  6016. .HasCollation("utf8_general_ci");
  6017. entity.Property(e => e.AliyunPushIosAppSecret)
  6018. .HasColumnType("varchar(50)")
  6019. .HasCharSet("utf8")
  6020. .HasCollation("utf8_general_ci");
  6021. entity.Property(e => e.AliyunRegionId)
  6022. .HasColumnType("varchar(30)")
  6023. .HasCharSet("utf8")
  6024. .HasCollation("utf8_general_ci");
  6025. entity.Property(e => e.ErpApiUrl)
  6026. .HasColumnType("varchar(200)")
  6027. .HasCharSet("utf8")
  6028. .HasCollation("utf8_general_ci");
  6029. entity.Property(e => e.ErpAppCode)
  6030. .HasColumnType("varchar(100)")
  6031. .HasCharSet("utf8")
  6032. .HasCollation("utf8_general_ci");
  6033. entity.Property(e => e.MeiQiaAppKey)
  6034. .HasColumnType("varchar(50)")
  6035. .HasCharSet("utf8")
  6036. .HasCollation("utf8_general_ci");
  6037. entity.Property(e => e.MobAppKey)
  6038. .HasColumnType("varchar(50)")
  6039. .HasCharSet("utf8")
  6040. .HasCollation("utf8_general_ci");
  6041. entity.Property(e => e.MobAppSecret)
  6042. .HasColumnType("varchar(50)")
  6043. .HasCharSet("utf8")
  6044. .HasCollation("utf8_general_ci");
  6045. entity.Property(e => e.QqAndroidAppId)
  6046. .HasColumnType("varchar(50)")
  6047. .HasCharSet("utf8")
  6048. .HasCollation("utf8_general_ci");
  6049. entity.Property(e => e.QqAndroidAppKey)
  6050. .HasColumnType("varchar(50)")
  6051. .HasCharSet("utf8")
  6052. .HasCollation("utf8_general_ci");
  6053. entity.Property(e => e.QqIosAppId)
  6054. .HasColumnType("varchar(50)")
  6055. .HasCharSet("utf8")
  6056. .HasCollation("utf8_general_ci");
  6057. entity.Property(e => e.QqIosAppKey)
  6058. .HasColumnType("varchar(50)")
  6059. .HasCharSet("utf8")
  6060. .HasCollation("utf8_general_ci");
  6061. entity.Property(e => e.ServerIp)
  6062. .HasColumnType("varchar(15)")
  6063. .HasCharSet("utf8")
  6064. .HasCollation("utf8_general_ci");
  6065. entity.Property(e => e.SmsApiDefaultTemplate)
  6066. .HasColumnType("varchar(200)")
  6067. .HasCharSet("utf8")
  6068. .HasCollation("utf8_general_ci");
  6069. entity.Property(e => e.SmsApiPwd)
  6070. .HasColumnType("varchar(50)")
  6071. .HasCharSet("utf8")
  6072. .HasCollation("utf8_general_ci");
  6073. entity.Property(e => e.SmsApiSign)
  6074. .HasColumnType("varchar(10)")
  6075. .HasCharSet("utf8")
  6076. .HasCollation("utf8_general_ci");
  6077. entity.Property(e => e.SmsApiUserId)
  6078. .HasColumnType("varchar(50)")
  6079. .HasCharSet("utf8")
  6080. .HasCollation("utf8_general_ci");
  6081. entity.Property(e => e.WeChatAppId)
  6082. .HasColumnType("varchar(50)")
  6083. .HasCharSet("utf8")
  6084. .HasCollation("utf8_general_ci");
  6085. entity.Property(e => e.WeChatAppSecret)
  6086. .HasColumnType("varchar(50)")
  6087. .HasCharSet("utf8")
  6088. .HasCollation("utf8_general_ci");
  6089. entity.Property(e => e.WeChatMchId)
  6090. .HasColumnType("varchar(20)")
  6091. .HasCharSet("utf8")
  6092. .HasCollation("utf8_general_ci");
  6093. entity.Property(e => e.WeChatMiniAppId)
  6094. .HasColumnType("varchar(50)")
  6095. .HasCharSet("utf8")
  6096. .HasCollation("utf8_general_ci");
  6097. entity.Property(e => e.WeChatMiniAppSecret)
  6098. .HasColumnType("varchar(50)")
  6099. .HasCharSet("utf8")
  6100. .HasCollation("utf8_general_ci");
  6101. entity.Property(e => e.WeChatOpenAppId)
  6102. .HasColumnType("varchar(50)")
  6103. .HasCharSet("utf8")
  6104. .HasCollation("utf8_general_ci");
  6105. entity.Property(e => e.WeChatOpenAppSecret)
  6106. .HasColumnType("varchar(50)")
  6107. .HasCharSet("utf8")
  6108. .HasCollation("utf8_general_ci");
  6109. entity.Property(e => e.WeChatPayKey)
  6110. .HasColumnType("varchar(50)")
  6111. .HasCharSet("utf8")
  6112. .HasCollation("utf8_general_ci");
  6113. });
  6114. modelBuilder.Entity<PullNewAct>(entity =>
  6115. {
  6116. entity.Property(e => e.Id).HasColumnType("int(11)");
  6117. entity.Property(e => e.ActEffectEndDate).HasColumnType("datetime");
  6118. entity.Property(e => e.ActEffectStartDate).HasColumnType("datetime");
  6119. entity.Property(e => e.ActStdCond)
  6120. .HasColumnType("varchar(32)")
  6121. .HasCharSet("utf8")
  6122. .HasCollation("utf8_general_ci");
  6123. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6124. entity.Property(e => e.CreateMan)
  6125. .HasColumnType("varchar(50)")
  6126. .HasCharSet("utf8")
  6127. .HasCollation("utf8_general_ci");
  6128. entity.Property(e => e.ProductName)
  6129. .HasColumnType("varchar(32)")
  6130. .HasCharSet("utf8")
  6131. .HasCollation("utf8_general_ci");
  6132. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  6133. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6134. entity.Property(e => e.Remark)
  6135. .HasColumnType("varchar(128)")
  6136. .HasCharSet("utf8")
  6137. .HasCollation("utf8_general_ci");
  6138. entity.Property(e => e.SeoDescription)
  6139. .HasColumnType("varchar(500)")
  6140. .HasCharSet("utf8")
  6141. .HasCollation("utf8_general_ci");
  6142. entity.Property(e => e.SeoKeyword)
  6143. .HasColumnType("varchar(200)")
  6144. .HasCharSet("utf8")
  6145. .HasCollation("utf8_general_ci");
  6146. entity.Property(e => e.SeoTitle)
  6147. .HasColumnType("varchar(100)")
  6148. .HasCharSet("utf8")
  6149. .HasCollation("utf8_general_ci");
  6150. entity.Property(e => e.SnDelayDay).HasColumnType("int(11)");
  6151. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6152. entity.Property(e => e.Status).HasColumnType("int(11)");
  6153. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6154. entity.Property(e => e.UpdateMan)
  6155. .HasColumnType("varchar(50)")
  6156. .HasCharSet("utf8")
  6157. .HasCollation("utf8_general_ci");
  6158. entity.Property(e => e.Version).HasColumnType("int(11)");
  6159. });
  6160. modelBuilder.Entity<PullNewDetail>(entity =>
  6161. {
  6162. entity.Property(e => e.Id).HasColumnType("int(11)");
  6163. entity.Property(e => e.BizStatus).HasColumnType("int(11)");
  6164. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6165. entity.Property(e => e.CreateMan)
  6166. .HasColumnType("varchar(50)")
  6167. .HasCharSet("utf8")
  6168. .HasCollation("utf8_general_ci");
  6169. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6170. entity.Property(e => e.RecMallBrandId).HasColumnType("int(11)");
  6171. entity.Property(e => e.RecMallOrder)
  6172. .HasColumnType("varchar(32)")
  6173. .HasCharSet("utf8")
  6174. .HasCollation("utf8_general_ci");
  6175. entity.Property(e => e.RecMallOrderTime).HasColumnType("datetime");
  6176. entity.Property(e => e.RecMallProductName)
  6177. .HasColumnType("varchar(32)")
  6178. .HasCharSet("utf8")
  6179. .HasCollation("utf8_general_ci");
  6180. entity.Property(e => e.RecMallProductNum).HasColumnType("int(11)");
  6181. entity.Property(e => e.RecMallSendTime).HasColumnType("datetime");
  6182. entity.Property(e => e.RecUserId).HasColumnType("int(11)");
  6183. entity.Property(e => e.RecUserType).HasColumnType("int(11)");
  6184. entity.Property(e => e.RegDate).HasColumnType("datetime");
  6185. entity.Property(e => e.Remark)
  6186. .HasColumnType("varchar(64)")
  6187. .HasCharSet("utf8")
  6188. .HasCollation("utf8_general_ci");
  6189. entity.Property(e => e.RewardStatus).HasColumnType("int(11)");
  6190. entity.Property(e => e.SeoDescription)
  6191. .HasColumnType("varchar(500)")
  6192. .HasCharSet("utf8")
  6193. .HasCollation("utf8_general_ci");
  6194. entity.Property(e => e.SeoKeyword)
  6195. .HasColumnType("varchar(200)")
  6196. .HasCharSet("utf8")
  6197. .HasCollation("utf8_general_ci");
  6198. entity.Property(e => e.SeoTitle)
  6199. .HasColumnType("varchar(100)")
  6200. .HasCharSet("utf8")
  6201. .HasCollation("utf8_general_ci");
  6202. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6203. entity.Property(e => e.StatDate)
  6204. .HasColumnType("varchar(8)")
  6205. .HasCharSet("utf8")
  6206. .HasCollation("utf8_general_ci");
  6207. entity.Property(e => e.StatMonth)
  6208. .HasColumnType("varchar(6)")
  6209. .HasCharSet("utf8")
  6210. .HasCollation("utf8_general_ci");
  6211. entity.Property(e => e.StatType).HasColumnType("int(11)");
  6212. entity.Property(e => e.Status).HasColumnType("int(11)");
  6213. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6214. entity.Property(e => e.UpdateMan)
  6215. .HasColumnType("varchar(50)")
  6216. .HasCharSet("utf8")
  6217. .HasCollation("utf8_general_ci");
  6218. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6219. entity.Property(e => e.Version).HasColumnType("int(11)");
  6220. });
  6221. modelBuilder.Entity<PullnewSummary>(entity =>
  6222. {
  6223. entity.Property(e => e.Id).HasColumnType("int(11)");
  6224. entity.Property(e => e.BizSnDelayDay).HasColumnType("int(11)");
  6225. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6226. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6227. entity.Property(e => e.CreateMan)
  6228. .HasColumnType("varchar(50)")
  6229. .HasCharSet("utf8")
  6230. .HasCollation("utf8_general_ci");
  6231. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6232. entity.Property(e => e.RecUserAuthNum).HasColumnType("int(11)");
  6233. entity.Property(e => e.RecUserDeliveryStdNum).HasColumnType("int(11)");
  6234. entity.Property(e => e.Remark)
  6235. .HasColumnType("varchar(64)")
  6236. .HasCharSet("utf8")
  6237. .HasCollation("utf8_general_ci");
  6238. entity.Property(e => e.RuleSnDelayDay).HasColumnType("int(11)");
  6239. entity.Property(e => e.SeoDescription)
  6240. .HasColumnType("varchar(500)")
  6241. .HasCharSet("utf8")
  6242. .HasCollation("utf8_general_ci");
  6243. entity.Property(e => e.SeoKeyword)
  6244. .HasColumnType("varchar(200)")
  6245. .HasCharSet("utf8")
  6246. .HasCollation("utf8_general_ci");
  6247. entity.Property(e => e.SeoTitle)
  6248. .HasColumnType("varchar(100)")
  6249. .HasCharSet("utf8")
  6250. .HasCollation("utf8_general_ci");
  6251. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6252. entity.Property(e => e.StatDate)
  6253. .HasColumnType("varchar(8)")
  6254. .HasCharSet("utf8")
  6255. .HasCollation("utf8_general_ci");
  6256. entity.Property(e => e.StatMonth)
  6257. .HasColumnType("varchar(6)")
  6258. .HasCharSet("utf8")
  6259. .HasCollation("utf8_general_ci");
  6260. entity.Property(e => e.Status).HasColumnType("int(11)");
  6261. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6262. entity.Property(e => e.UpdateMan)
  6263. .HasColumnType("varchar(50)")
  6264. .HasCharSet("utf8")
  6265. .HasCollation("utf8_general_ci");
  6266. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6267. entity.Property(e => e.Version).HasColumnType("int(11)");
  6268. });
  6269. modelBuilder.Entity<RightDic>(entity =>
  6270. {
  6271. entity.Property(e => e.Id)
  6272. .HasColumnName("ID")
  6273. .HasColumnType("varchar(50)")
  6274. .HasCharSet("utf8")
  6275. .HasCollation("utf8_general_ci");
  6276. entity.Property(e => e.Icon)
  6277. .HasColumnType("varchar(50)")
  6278. .HasCharSet("utf8")
  6279. .HasCollation("utf8_general_ci");
  6280. entity.Property(e => e.MainDataList)
  6281. .HasColumnType("bit(1)")
  6282. .HasDefaultValueSql("b'0'");
  6283. entity.Property(e => e.MainMenu)
  6284. .HasColumnType("bit(1)")
  6285. .HasDefaultValueSql("b'0'");
  6286. entity.Property(e => e.MainStat)
  6287. .HasColumnType("bit(1)")
  6288. .HasDefaultValueSql("b'0'");
  6289. entity.Property(e => e.Name)
  6290. .HasColumnType("varchar(50)")
  6291. .HasCharSet("utf8")
  6292. .HasCollation("utf8_general_ci");
  6293. entity.Property(e => e.OtherRight)
  6294. .HasColumnType("varchar(500)")
  6295. .HasCharSet("utf8")
  6296. .HasCollation("utf8_general_ci");
  6297. entity.Property(e => e.RightLevel).HasColumnType("int(11)");
  6298. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6299. entity.Property(e => e.Url)
  6300. .HasColumnType("varchar(200)")
  6301. .HasCharSet("utf8")
  6302. .HasCollation("utf8_general_ci");
  6303. });
  6304. modelBuilder.Entity<ServiceCenter>(entity =>
  6305. {
  6306. entity.Property(e => e.Id).HasColumnType("int(11)");
  6307. entity.Property(e => e.CategoryId).HasColumnType("int(11)");
  6308. entity.Property(e => e.Content)
  6309. .HasColumnType("longtext")
  6310. .HasCharSet("utf8")
  6311. .HasCollation("utf8_general_ci");
  6312. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6313. entity.Property(e => e.CreateMan)
  6314. .HasColumnType("varchar(50)")
  6315. .HasCharSet("utf8")
  6316. .HasCollation("utf8_general_ci");
  6317. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6318. entity.Property(e => e.SeoDescription)
  6319. .HasColumnType("varchar(500)")
  6320. .HasCharSet("utf8")
  6321. .HasCollation("utf8_general_ci");
  6322. entity.Property(e => e.SeoKeyword)
  6323. .HasColumnType("varchar(200)")
  6324. .HasCharSet("utf8")
  6325. .HasCollation("utf8_general_ci");
  6326. entity.Property(e => e.SeoTitle)
  6327. .HasColumnType("varchar(100)")
  6328. .HasCharSet("utf8")
  6329. .HasCollation("utf8_general_ci");
  6330. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6331. entity.Property(e => e.Status).HasColumnType("int(11)");
  6332. entity.Property(e => e.SubTitle)
  6333. .HasColumnType("varchar(50)")
  6334. .HasCharSet("utf8")
  6335. .HasCollation("utf8_general_ci");
  6336. entity.Property(e => e.Title)
  6337. .HasColumnType("varchar(50)")
  6338. .HasCharSet("utf8")
  6339. .HasCollation("utf8_general_ci");
  6340. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6341. entity.Property(e => e.UpdateMan)
  6342. .HasColumnType("varchar(50)")
  6343. .HasCharSet("utf8")
  6344. .HasCollation("utf8_general_ci");
  6345. entity.Property(e => e.Version).HasColumnType("int(11)");
  6346. });
  6347. modelBuilder.Entity<StoreBalance>(entity =>
  6348. {
  6349. entity.Property(e => e.Id).HasColumnType("int(11)");
  6350. entity.Property(e => e.AfterLaveNum).HasColumnType("int(11)");
  6351. entity.Property(e => e.AfterOutNum).HasColumnType("int(11)");
  6352. entity.Property(e => e.AfterTotalNum).HasColumnType("int(11)");
  6353. entity.Property(e => e.BeforeLaveNum).HasColumnType("int(11)");
  6354. entity.Property(e => e.BeforeOutNum).HasColumnType("int(11)");
  6355. entity.Property(e => e.BeforeTotalNum).HasColumnType("int(11)");
  6356. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6357. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6358. entity.Property(e => e.CreateMan)
  6359. .HasColumnType("varchar(50)")
  6360. .HasCharSet("utf8")
  6361. .HasCollation("utf8_general_ci");
  6362. entity.Property(e => e.OpStoreNum).HasColumnType("int(11)");
  6363. entity.Property(e => e.OpSymbol)
  6364. .HasColumnType("varchar(1)")
  6365. .HasCharSet("utf8")
  6366. .HasCollation("utf8_general_ci");
  6367. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6368. entity.Property(e => e.SeoDescription)
  6369. .HasColumnType("varchar(500)")
  6370. .HasCharSet("utf8")
  6371. .HasCollation("utf8_general_ci");
  6372. entity.Property(e => e.SeoKeyword)
  6373. .HasColumnType("varchar(200)")
  6374. .HasCharSet("utf8")
  6375. .HasCollation("utf8_general_ci");
  6376. entity.Property(e => e.SeoTitle)
  6377. .HasColumnType("varchar(100)")
  6378. .HasCharSet("utf8")
  6379. .HasCollation("utf8_general_ci");
  6380. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6381. entity.Property(e => e.Status).HasColumnType("int(11)");
  6382. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  6383. entity.Property(e => e.TransRecordNo)
  6384. .HasColumnType("varchar(32)")
  6385. .HasCharSet("utf8")
  6386. .HasCollation("utf8_general_ci");
  6387. entity.Property(e => e.TransType).HasColumnType("int(11)");
  6388. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6389. entity.Property(e => e.UpdateMan)
  6390. .HasColumnType("varchar(50)")
  6391. .HasCharSet("utf8")
  6392. .HasCollation("utf8_general_ci");
  6393. entity.Property(e => e.Version).HasColumnType("int(11)");
  6394. });
  6395. modelBuilder.Entity<StoreChangeHistory>(entity =>
  6396. {
  6397. entity.Property(e => e.Id).HasColumnType("int(11)");
  6398. entity.Property(e => e.BizBatchNo)
  6399. .HasColumnType("varchar(32)")
  6400. .HasCharSet("utf8")
  6401. .HasCollation("utf8_general_ci");
  6402. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6403. entity.Property(e => e.ChangeRecordNo)
  6404. .HasColumnType("varchar(32)")
  6405. .HasCharSet("utf8")
  6406. .HasCollation("utf8_general_ci");
  6407. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6408. entity.Property(e => e.CreateMan)
  6409. .HasColumnType("varchar(50)")
  6410. .HasCharSet("utf8")
  6411. .HasCollation("utf8_general_ci");
  6412. entity.Property(e => e.DeviceModel)
  6413. .HasColumnType("varchar(32)")
  6414. .HasCharSet("utf8")
  6415. .HasCollation("utf8_general_ci");
  6416. entity.Property(e => e.DeviceType)
  6417. .HasColumnType("varchar(32)")
  6418. .HasCharSet("utf8")
  6419. .HasCollation("utf8_general_ci");
  6420. entity.Property(e => e.DeviceVendor)
  6421. .HasColumnType("varchar(32)")
  6422. .HasCharSet("utf8")
  6423. .HasCollation("utf8_general_ci");
  6424. entity.Property(e => e.FromDate).HasColumnType("datetime");
  6425. entity.Property(e => e.FromRemark)
  6426. .HasColumnType("varchar(64)")
  6427. .HasCharSet("utf8")
  6428. .HasCollation("utf8_general_ci");
  6429. entity.Property(e => e.FromUserId).HasColumnType("int(11)");
  6430. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6431. entity.Property(e => e.SeoDescription)
  6432. .HasColumnType("varchar(500)")
  6433. .HasCharSet("utf8")
  6434. .HasCollation("utf8_general_ci");
  6435. entity.Property(e => e.SeoKeyword)
  6436. .HasColumnType("varchar(200)")
  6437. .HasCharSet("utf8")
  6438. .HasCollation("utf8_general_ci");
  6439. entity.Property(e => e.SeoTitle)
  6440. .HasColumnType("varchar(100)")
  6441. .HasCharSet("utf8")
  6442. .HasCollation("utf8_general_ci");
  6443. entity.Property(e => e.SnNo)
  6444. .HasColumnType("varchar(32)")
  6445. .HasCharSet("utf8")
  6446. .HasCollation("utf8_general_ci");
  6447. entity.Property(e => e.SnType).HasColumnType("int(11)");
  6448. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6449. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  6450. entity.Property(e => e.Status).HasColumnType("int(11)");
  6451. entity.Property(e => e.StockOpDirect).HasColumnType("int(11)");
  6452. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  6453. entity.Property(e => e.ToDate).HasColumnType("datetime");
  6454. entity.Property(e => e.ToRemark)
  6455. .HasColumnType("varchar(64)")
  6456. .HasCharSet("utf8")
  6457. .HasCollation("utf8_general_ci");
  6458. entity.Property(e => e.ToStoreId).HasColumnType("int(11)");
  6459. entity.Property(e => e.ToUserId).HasColumnType("int(11)");
  6460. entity.Property(e => e.TransType).HasColumnType("int(11)");
  6461. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6462. entity.Property(e => e.UpdateMan)
  6463. .HasColumnType("varchar(50)")
  6464. .HasCharSet("utf8")
  6465. .HasCollation("utf8_general_ci");
  6466. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6467. entity.Property(e => e.Version).HasColumnType("int(11)");
  6468. });
  6469. modelBuilder.Entity<StoreForCode>(entity =>
  6470. {
  6471. entity.HasKey(e => e.Code)
  6472. .HasName("PRIMARY");
  6473. entity.Property(e => e.Code)
  6474. .HasColumnType("varchar(30)")
  6475. .HasCharSet("utf8")
  6476. .HasCollation("utf8_general_ci");
  6477. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  6478. });
  6479. modelBuilder.Entity<StoreForName>(entity =>
  6480. {
  6481. entity.HasKey(e => e.Name)
  6482. .HasName("PRIMARY");
  6483. entity.Property(e => e.Name)
  6484. .HasColumnType("varchar(30)")
  6485. .HasCharSet("utf8")
  6486. .HasCollation("utf8_general_ci");
  6487. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  6488. });
  6489. modelBuilder.Entity<StoreHouse>(entity =>
  6490. {
  6491. entity.Property(e => e.Id).HasColumnType("int(11)");
  6492. entity.Property(e => e.Address)
  6493. .HasColumnType("varchar(128)")
  6494. .HasCharSet("utf8")
  6495. .HasCollation("utf8_general_ci");
  6496. entity.Property(e => e.Areas)
  6497. .HasColumnType("varchar(30)")
  6498. .HasCharSet("utf8")
  6499. .HasCollation("utf8_general_ci");
  6500. entity.Property(e => e.BrandId)
  6501. .HasColumnType("varchar(30)")
  6502. .HasCharSet("utf8")
  6503. .HasCollation("utf8_general_ci");
  6504. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6505. entity.Property(e => e.CreateMan)
  6506. .HasColumnType("varchar(50)")
  6507. .HasCharSet("utf8")
  6508. .HasCollation("utf8_general_ci");
  6509. entity.Property(e => e.LaveNum).HasColumnType("int(11)");
  6510. entity.Property(e => e.LimitTopUserId)
  6511. .HasColumnType("varchar(100)")
  6512. .HasCharSet("utf8")
  6513. .HasCollation("utf8_general_ci");
  6514. entity.Property(e => e.ManageMobile)
  6515. .HasColumnType("varchar(11)")
  6516. .HasCharSet("utf8")
  6517. .HasCollation("utf8_general_ci");
  6518. entity.Property(e => e.ManageUserId).HasColumnType("int(11)");
  6519. entity.Property(e => e.ManagerEmail)
  6520. .HasColumnType("varchar(32)")
  6521. .HasCharSet("utf8")
  6522. .HasCollation("utf8_general_ci");
  6523. entity.Property(e => e.OutNum).HasColumnType("int(11)");
  6524. entity.Property(e => e.ParentNav)
  6525. .HasColumnType("longtext")
  6526. .HasCharSet("utf8")
  6527. .HasCollation("utf8_general_ci");
  6528. entity.Property(e => e.ParentStoreId).HasColumnType("int(11)");
  6529. entity.Property(e => e.ProductName)
  6530. .HasColumnType("varchar(32)")
  6531. .HasCharSet("utf8")
  6532. .HasCollation("utf8_general_ci");
  6533. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6534. entity.Property(e => e.Remark)
  6535. .HasColumnType("varchar(128)")
  6536. .HasCharSet("utf8")
  6537. .HasCollation("utf8_general_ci");
  6538. entity.Property(e => e.SeoDescription)
  6539. .HasColumnType("varchar(500)")
  6540. .HasCharSet("utf8")
  6541. .HasCollation("utf8_general_ci");
  6542. entity.Property(e => e.SeoKeyword)
  6543. .HasColumnType("varchar(200)")
  6544. .HasCharSet("utf8")
  6545. .HasCollation("utf8_general_ci");
  6546. entity.Property(e => e.SeoTitle)
  6547. .HasColumnType("varchar(100)")
  6548. .HasCharSet("utf8")
  6549. .HasCollation("utf8_general_ci");
  6550. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6551. entity.Property(e => e.Status).HasColumnType("int(11)");
  6552. entity.Property(e => e.StoreKind).HasColumnType("int(11)");
  6553. entity.Property(e => e.StoreName)
  6554. .HasColumnType("varchar(32)")
  6555. .HasCharSet("utf8")
  6556. .HasCollation("utf8_general_ci");
  6557. entity.Property(e => e.StoreNo)
  6558. .HasColumnType("varchar(16)")
  6559. .HasCharSet("utf8")
  6560. .HasCollation("utf8_general_ci");
  6561. entity.Property(e => e.StoreStatus).HasColumnType("int(11)");
  6562. entity.Property(e => e.StoreType).HasColumnType("int(11)");
  6563. entity.Property(e => e.TotalNum).HasColumnType("int(11)");
  6564. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6565. entity.Property(e => e.UpdateMan)
  6566. .HasColumnType("varchar(50)")
  6567. .HasCharSet("utf8")
  6568. .HasCollation("utf8_general_ci");
  6569. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6570. entity.Property(e => e.Version).HasColumnType("int(11)");
  6571. });
  6572. modelBuilder.Entity<StoreMallOrderSummary>(entity =>
  6573. {
  6574. entity.Property(e => e.Id).HasColumnType("int(11)");
  6575. entity.Property(e => e.AgentStoreId).HasColumnType("int(11)");
  6576. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6577. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6578. entity.Property(e => e.CreateMan)
  6579. .HasColumnType("varchar(50)")
  6580. .HasCharSet("utf8")
  6581. .HasCollation("utf8_general_ci");
  6582. entity.Property(e => e.OrderAmt).HasColumnType("int(11)");
  6583. entity.Property(e => e.OrderNum).HasColumnType("int(11)");
  6584. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6585. entity.Property(e => e.RefundAmt).HasColumnType("decimal(18,2)");
  6586. entity.Property(e => e.RefundOrderNum).HasColumnType("int(11)");
  6587. entity.Property(e => e.Remark)
  6588. .HasColumnType("varchar(64)")
  6589. .HasCharSet("utf8")
  6590. .HasCollation("utf8_general_ci");
  6591. entity.Property(e => e.SeoDescription)
  6592. .HasColumnType("varchar(500)")
  6593. .HasCharSet("utf8")
  6594. .HasCollation("utf8_general_ci");
  6595. entity.Property(e => e.SeoKeyword)
  6596. .HasColumnType("varchar(200)")
  6597. .HasCharSet("utf8")
  6598. .HasCollation("utf8_general_ci");
  6599. entity.Property(e => e.SeoTitle)
  6600. .HasColumnType("varchar(100)")
  6601. .HasCharSet("utf8")
  6602. .HasCollation("utf8_general_ci");
  6603. entity.Property(e => e.SettleAmt).HasColumnType("decimal(18,2)");
  6604. entity.Property(e => e.SettleStatus).HasColumnType("int(11)");
  6605. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6606. entity.Property(e => e.Status).HasColumnType("int(11)");
  6607. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  6608. entity.Property(e => e.TradeMonth)
  6609. .HasColumnType("varchar(6)")
  6610. .HasCharSet("utf8")
  6611. .HasCollation("utf8_general_ci");
  6612. entity.Property(e => e.UnitPrice).HasColumnType("decimal(18,2)");
  6613. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6614. entity.Property(e => e.UpdateMan)
  6615. .HasColumnType("varchar(50)")
  6616. .HasCharSet("utf8")
  6617. .HasCollation("utf8_general_ci");
  6618. entity.Property(e => e.Version).HasColumnType("int(11)");
  6619. });
  6620. modelBuilder.Entity<StoreSnActivateSummary>(entity =>
  6621. {
  6622. entity.Property(e => e.Id).HasColumnType("int(11)");
  6623. entity.Property(e => e.ActivateNum).HasColumnType("int(11)");
  6624. entity.Property(e => e.AgentStoreId).HasColumnType("int(11)");
  6625. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6626. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6627. entity.Property(e => e.CreateMan)
  6628. .HasColumnType("varchar(50)")
  6629. .HasCharSet("utf8")
  6630. .HasCollation("utf8_general_ci");
  6631. entity.Property(e => e.EffectActNum).HasColumnType("int(11)");
  6632. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6633. entity.Property(e => e.RejectActNum).HasColumnType("int(11)");
  6634. entity.Property(e => e.Remark)
  6635. .HasColumnType("varchar(64)")
  6636. .HasCharSet("utf8")
  6637. .HasCollation("utf8_general_ci");
  6638. entity.Property(e => e.SeoDescription)
  6639. .HasColumnType("varchar(500)")
  6640. .HasCharSet("utf8")
  6641. .HasCollation("utf8_general_ci");
  6642. entity.Property(e => e.SeoKeyword)
  6643. .HasColumnType("varchar(200)")
  6644. .HasCharSet("utf8")
  6645. .HasCollation("utf8_general_ci");
  6646. entity.Property(e => e.SeoTitle)
  6647. .HasColumnType("varchar(100)")
  6648. .HasCharSet("utf8")
  6649. .HasCollation("utf8_general_ci");
  6650. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6651. entity.Property(e => e.Status).HasColumnType("int(11)");
  6652. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  6653. entity.Property(e => e.TradeDate)
  6654. .HasColumnType("varchar(8)")
  6655. .HasCharSet("utf8")
  6656. .HasCollation("utf8_general_ci");
  6657. entity.Property(e => e.TradeMonth)
  6658. .HasColumnType("varchar(6)")
  6659. .HasCharSet("utf8")
  6660. .HasCollation("utf8_general_ci");
  6661. entity.Property(e => e.TransferActNum).HasColumnType("int(11)");
  6662. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6663. entity.Property(e => e.UpdateMan)
  6664. .HasColumnType("varchar(50)")
  6665. .HasCharSet("utf8")
  6666. .HasCollation("utf8_general_ci");
  6667. entity.Property(e => e.UserApplyNum).HasColumnType("int(11)");
  6668. entity.Property(e => e.Version).HasColumnType("int(11)");
  6669. });
  6670. modelBuilder.Entity<StoreStockChange>(entity =>
  6671. {
  6672. entity.Property(e => e.Id).HasColumnType("int(11)");
  6673. entity.Property(e => e.ActRewardUserId).HasColumnType("int(11)");
  6674. entity.Property(e => e.ActiveStatus).HasColumnType("int(11)");
  6675. entity.Property(e => e.BindMerchant).HasColumnType("int(11)");
  6676. entity.Property(e => e.BindStatus).HasColumnType("int(11)");
  6677. entity.Property(e => e.BizBatchNo)
  6678. .HasColumnType("varchar(32)")
  6679. .HasCharSet("utf8")
  6680. .HasCollation("utf8_general_ci");
  6681. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6682. entity.Property(e => e.BrandType)
  6683. .HasColumnType("varchar(10)")
  6684. .HasCharSet("utf8")
  6685. .HasCollation("utf8_general_ci");
  6686. entity.Property(e => e.ChangeNo)
  6687. .HasColumnType("varchar(32)")
  6688. .HasCharSet("utf8")
  6689. .HasCollation("utf8_general_ci");
  6690. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6691. entity.Property(e => e.CreateMan)
  6692. .HasColumnType("varchar(50)")
  6693. .HasCharSet("utf8")
  6694. .HasCollation("utf8_general_ci");
  6695. entity.Property(e => e.DeviceModel)
  6696. .HasColumnType("varchar(32)")
  6697. .HasCharSet("utf8")
  6698. .HasCollation("utf8_general_ci");
  6699. entity.Property(e => e.DeviceType)
  6700. .HasColumnType("varchar(32)")
  6701. .HasCharSet("utf8")
  6702. .HasCollation("utf8_general_ci");
  6703. entity.Property(e => e.DeviceVendor)
  6704. .HasColumnType("varchar(32)")
  6705. .HasCharSet("utf8")
  6706. .HasCollation("utf8_general_ci");
  6707. entity.Property(e => e.ExpressNo)
  6708. .HasColumnType("varchar(32)")
  6709. .HasCharSet("utf8")
  6710. .HasCollation("utf8_general_ci");
  6711. entity.Property(e => e.FromDate).HasColumnType("datetime");
  6712. entity.Property(e => e.FromRemark)
  6713. .HasColumnType("varchar(64)")
  6714. .HasCharSet("utf8")
  6715. .HasCollation("utf8_general_ci");
  6716. entity.Property(e => e.FromUserId).HasColumnType("int(11)");
  6717. entity.Property(e => e.ProductName)
  6718. .HasColumnType("varchar(32)")
  6719. .HasCharSet("utf8")
  6720. .HasCollation("utf8_general_ci");
  6721. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6722. entity.Property(e => e.SeoDescription)
  6723. .HasColumnType("varchar(500)")
  6724. .HasCharSet("utf8")
  6725. .HasCollation("utf8_general_ci");
  6726. entity.Property(e => e.SeoKeyword)
  6727. .HasColumnType("varchar(200)")
  6728. .HasCharSet("utf8")
  6729. .HasCollation("utf8_general_ci");
  6730. entity.Property(e => e.SeoTitle)
  6731. .HasColumnType("varchar(100)")
  6732. .HasCharSet("utf8")
  6733. .HasCollation("utf8_general_ci");
  6734. entity.Property(e => e.SnNo)
  6735. .HasColumnType("varchar(32)")
  6736. .HasCharSet("utf8")
  6737. .HasCollation("utf8_general_ci");
  6738. entity.Property(e => e.SnStatus).HasColumnType("int(11)");
  6739. entity.Property(e => e.SnType).HasColumnType("int(11)");
  6740. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6741. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  6742. entity.Property(e => e.Status).HasColumnType("int(11)");
  6743. entity.Property(e => e.StockOpDirect).HasColumnType("int(11)");
  6744. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  6745. entity.Property(e => e.ToDate).HasColumnType("datetime");
  6746. entity.Property(e => e.ToRemark)
  6747. .HasColumnType("varchar(64)")
  6748. .HasCharSet("utf8")
  6749. .HasCollation("utf8_general_ci");
  6750. entity.Property(e => e.ToStoreId).HasColumnType("int(11)");
  6751. entity.Property(e => e.ToUserId).HasColumnType("int(11)");
  6752. entity.Property(e => e.TransType).HasColumnType("int(11)");
  6753. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6754. entity.Property(e => e.UpdateMan)
  6755. .HasColumnType("varchar(50)")
  6756. .HasCharSet("utf8")
  6757. .HasCollation("utf8_general_ci");
  6758. entity.Property(e => e.Version).HasColumnType("int(11)");
  6759. });
  6760. modelBuilder.Entity<StoreSwapSn>(entity =>
  6761. {
  6762. entity.Property(e => e.Id).HasColumnType("int(11)");
  6763. entity.Property(e => e.ActType).HasColumnType("int(11)");
  6764. entity.Property(e => e.ActTypeDesc)
  6765. .HasColumnType("varchar(64)")
  6766. .HasCharSet("utf8")
  6767. .HasCollation("utf8_general_ci");
  6768. entity.Property(e => e.BizStatus).HasColumnType("int(11)");
  6769. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6770. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6771. entity.Property(e => e.CreateMan)
  6772. .HasColumnType("varchar(50)")
  6773. .HasCharSet("utf8")
  6774. .HasCollation("utf8_general_ci");
  6775. entity.Property(e => e.PosType)
  6776. .HasColumnType("varchar(32)")
  6777. .HasCharSet("utf8")
  6778. .HasCollation("utf8_general_ci");
  6779. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6780. entity.Property(e => e.Remark)
  6781. .HasColumnType("varchar(128)")
  6782. .HasCharSet("utf8")
  6783. .HasCollation("utf8_general_ci");
  6784. entity.Property(e => e.RiskStatus).HasColumnType("int(11)");
  6785. entity.Property(e => e.SeoDescription)
  6786. .HasColumnType("varchar(500)")
  6787. .HasCharSet("utf8")
  6788. .HasCollation("utf8_general_ci");
  6789. entity.Property(e => e.SeoKeyword)
  6790. .HasColumnType("varchar(200)")
  6791. .HasCharSet("utf8")
  6792. .HasCollation("utf8_general_ci");
  6793. entity.Property(e => e.SeoTitle)
  6794. .HasColumnType("varchar(100)")
  6795. .HasCharSet("utf8")
  6796. .HasCollation("utf8_general_ci");
  6797. entity.Property(e => e.SnNo)
  6798. .HasColumnType("varchar(32)")
  6799. .HasCharSet("utf8")
  6800. .HasCollation("utf8_general_ci");
  6801. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  6802. entity.Property(e => e.SnType).HasColumnType("int(11)");
  6803. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6804. entity.Property(e => e.StandardDate).HasColumnType("datetime");
  6805. entity.Property(e => e.Status).HasColumnType("int(11)");
  6806. entity.Property(e => e.SwapApplyDate).HasColumnType("datetime");
  6807. entity.Property(e => e.SwapApplyOrderNo)
  6808. .HasColumnType("varchar(32)")
  6809. .HasCharSet("utf8")
  6810. .HasCollation("utf8_general_ci");
  6811. entity.Property(e => e.SwapExtProductTypes)
  6812. .HasColumnType("varchar(16)")
  6813. .HasCharSet("utf8")
  6814. .HasCollation("utf8_general_ci");
  6815. entity.Property(e => e.SwapSnNo)
  6816. .HasColumnType("varchar(32)")
  6817. .HasCharSet("utf8")
  6818. .HasCollation("utf8_general_ci");
  6819. entity.Property(e => e.SwapStatus).HasColumnType("int(11)");
  6820. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6821. entity.Property(e => e.UpdateMan)
  6822. .HasColumnType("varchar(50)")
  6823. .HasCharSet("utf8")
  6824. .HasCollation("utf8_general_ci");
  6825. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6826. entity.Property(e => e.Version).HasColumnType("int(11)");
  6827. });
  6828. modelBuilder.Entity<SysAdmin>(entity =>
  6829. {
  6830. entity.Property(e => e.Id).HasColumnType("int(11)");
  6831. entity.Property(e => e.AdminName)
  6832. .HasColumnType("varchar(50)")
  6833. .HasCharSet("utf8")
  6834. .HasCollation("utf8_general_ci");
  6835. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6836. entity.Property(e => e.CreateMan)
  6837. .HasColumnType("varchar(50)")
  6838. .HasCharSet("utf8")
  6839. .HasCollation("utf8_general_ci");
  6840. entity.Property(e => e.LastLoginDate).HasColumnType("datetime");
  6841. entity.Property(e => e.Password)
  6842. .HasColumnType("varchar(32)")
  6843. .HasCharSet("utf8")
  6844. .HasCollation("utf8_general_ci");
  6845. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6846. entity.Property(e => e.RealName)
  6847. .HasColumnType("varchar(50)")
  6848. .HasCharSet("utf8")
  6849. .HasCollation("utf8_general_ci");
  6850. entity.Property(e => e.Role)
  6851. .HasColumnType("varchar(30)")
  6852. .HasCharSet("utf8")
  6853. .HasCollation("utf8_general_ci");
  6854. entity.Property(e => e.SeoDescription)
  6855. .HasColumnType("varchar(500)")
  6856. .HasCharSet("utf8")
  6857. .HasCollation("utf8_general_ci");
  6858. entity.Property(e => e.SeoKeyword)
  6859. .HasColumnType("varchar(200)")
  6860. .HasCharSet("utf8")
  6861. .HasCollation("utf8_general_ci");
  6862. entity.Property(e => e.SeoTitle)
  6863. .HasColumnType("varchar(100)")
  6864. .HasCharSet("utf8")
  6865. .HasCollation("utf8_general_ci");
  6866. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6867. entity.Property(e => e.Status).HasColumnType("int(11)");
  6868. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6869. entity.Property(e => e.UpdateMan)
  6870. .HasColumnType("varchar(50)")
  6871. .HasCharSet("utf8")
  6872. .HasCollation("utf8_general_ci");
  6873. entity.Property(e => e.Version).HasColumnType("int(11)");
  6874. });
  6875. modelBuilder.Entity<SysAdminRole>(entity =>
  6876. {
  6877. entity.Property(e => e.Id).HasColumnType("int(11)");
  6878. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6879. entity.Property(e => e.CreateMan)
  6880. .HasColumnType("varchar(50)")
  6881. .HasCharSet("utf8")
  6882. .HasCollation("utf8_general_ci");
  6883. entity.Property(e => e.Details)
  6884. .HasColumnType("longtext")
  6885. .HasCharSet("utf8")
  6886. .HasCollation("utf8_general_ci");
  6887. entity.Property(e => e.Name)
  6888. .HasColumnType("varchar(50)")
  6889. .HasCharSet("utf8")
  6890. .HasCollation("utf8_general_ci");
  6891. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6892. entity.Property(e => e.RightInfo)
  6893. .HasColumnType("longtext")
  6894. .HasCharSet("utf8")
  6895. .HasCollation("utf8_general_ci");
  6896. entity.Property(e => e.SeoDescription)
  6897. .HasColumnType("varchar(500)")
  6898. .HasCharSet("utf8")
  6899. .HasCollation("utf8_general_ci");
  6900. entity.Property(e => e.SeoKeyword)
  6901. .HasColumnType("varchar(200)")
  6902. .HasCharSet("utf8")
  6903. .HasCollation("utf8_general_ci");
  6904. entity.Property(e => e.SeoTitle)
  6905. .HasColumnType("varchar(100)")
  6906. .HasCharSet("utf8")
  6907. .HasCollation("utf8_general_ci");
  6908. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6909. entity.Property(e => e.Status).HasColumnType("int(11)");
  6910. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6911. entity.Property(e => e.UpdateMan)
  6912. .HasColumnType("varchar(50)")
  6913. .HasCharSet("utf8")
  6914. .HasCollation("utf8_general_ci");
  6915. entity.Property(e => e.Version).HasColumnType("int(11)");
  6916. });
  6917. modelBuilder.Entity<SysLog>(entity =>
  6918. {
  6919. entity.Property(e => e.Id).HasColumnType("int(11)");
  6920. entity.Property(e => e.Contents)
  6921. .HasColumnType("varchar(200)")
  6922. .HasCharSet("utf8")
  6923. .HasCollation("utf8_general_ci");
  6924. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6925. entity.Property(e => e.CreateMan)
  6926. .HasColumnType("varchar(50)")
  6927. .HasCharSet("utf8")
  6928. .HasCollation("utf8_general_ci");
  6929. });
  6930. modelBuilder.Entity<SysRechargeRecord>(entity =>
  6931. {
  6932. entity.Property(e => e.Id).HasColumnType("int(11)");
  6933. entity.Property(e => e.Amount).HasColumnType("decimal(18,2)");
  6934. entity.Property(e => e.BatchCode)
  6935. .HasColumnType("varchar(32)")
  6936. .HasCharSet("utf8")
  6937. .HasCollation("utf8_general_ci");
  6938. entity.Property(e => e.BizTime).HasColumnType("datetime");
  6939. entity.Property(e => e.BizType).HasColumnType("int(11)");
  6940. entity.Property(e => e.ClientIp)
  6941. .HasColumnType("varchar(15)")
  6942. .HasCharSet("utf8")
  6943. .HasCollation("utf8_general_ci");
  6944. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6945. entity.Property(e => e.CreateMan)
  6946. .HasColumnType("varchar(50)")
  6947. .HasCharSet("utf8")
  6948. .HasCollation("utf8_general_ci");
  6949. entity.Property(e => e.PartnerTradeNo)
  6950. .HasColumnType("varchar(32)")
  6951. .HasCharSet("utf8")
  6952. .HasCollation("utf8_general_ci");
  6953. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  6954. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6955. entity.Property(e => e.RechargeRecNo)
  6956. .HasColumnType("varchar(32)")
  6957. .HasCharSet("utf8")
  6958. .HasCollation("utf8_general_ci");
  6959. entity.Property(e => e.SeoDescription)
  6960. .HasColumnType("varchar(500)")
  6961. .HasCharSet("utf8")
  6962. .HasCollation("utf8_general_ci");
  6963. entity.Property(e => e.SeoKeyword)
  6964. .HasColumnType("varchar(200)")
  6965. .HasCharSet("utf8")
  6966. .HasCollation("utf8_general_ci");
  6967. entity.Property(e => e.SeoTitle)
  6968. .HasColumnType("varchar(100)")
  6969. .HasCharSet("utf8")
  6970. .HasCollation("utf8_general_ci");
  6971. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6972. entity.Property(e => e.Status).HasColumnType("int(11)");
  6973. entity.Property(e => e.SyncStatus).HasColumnType("int(11)");
  6974. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6975. entity.Property(e => e.UpdateMan)
  6976. .HasColumnType("varchar(50)")
  6977. .HasCharSet("utf8")
  6978. .HasCollation("utf8_general_ci");
  6979. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6980. entity.Property(e => e.Version).HasColumnType("int(11)");
  6981. });
  6982. modelBuilder.Entity<SystemSet>(entity =>
  6983. {
  6984. entity.Property(e => e.Id).HasColumnType("int(11)");
  6985. entity.Property(e => e.Address)
  6986. .HasColumnType("varchar(100)")
  6987. .HasCharSet("utf8")
  6988. .HasCollation("utf8_general_ci");
  6989. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6990. entity.Property(e => e.CreateMan)
  6991. .HasColumnType("varchar(50)")
  6992. .HasCharSet("utf8")
  6993. .HasCollation("utf8_general_ci");
  6994. entity.Property(e => e.IndexDescription)
  6995. .HasColumnType("longtext")
  6996. .HasCharSet("utf8")
  6997. .HasCollation("utf8_general_ci");
  6998. entity.Property(e => e.IndexKeyword)
  6999. .HasColumnType("varchar(200)")
  7000. .HasCharSet("utf8")
  7001. .HasCollation("utf8_general_ci");
  7002. entity.Property(e => e.Logo)
  7003. .HasColumnType("varchar(200)")
  7004. .HasCharSet("utf8")
  7005. .HasCollation("utf8_general_ci");
  7006. entity.Property(e => e.Phone)
  7007. .HasColumnType("varchar(100)")
  7008. .HasCharSet("utf8")
  7009. .HasCollation("utf8_general_ci");
  7010. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7011. entity.Property(e => e.RightInfo)
  7012. .HasColumnType("longtext")
  7013. .HasCharSet("utf8")
  7014. .HasCollation("utf8_general_ci");
  7015. entity.Property(e => e.SeoDescription)
  7016. .HasColumnType("varchar(500)")
  7017. .HasCharSet("utf8")
  7018. .HasCollation("utf8_general_ci");
  7019. entity.Property(e => e.SeoKeyword)
  7020. .HasColumnType("varchar(200)")
  7021. .HasCharSet("utf8")
  7022. .HasCollation("utf8_general_ci");
  7023. entity.Property(e => e.SeoTitle)
  7024. .HasColumnType("varchar(100)")
  7025. .HasCharSet("utf8")
  7026. .HasCollation("utf8_general_ci");
  7027. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7028. entity.Property(e => e.StartAdPhoto)
  7029. .HasColumnType("varchar(200)")
  7030. .HasCharSet("utf8")
  7031. .HasCollation("utf8_general_ci");
  7032. entity.Property(e => e.Status).HasColumnType("int(11)");
  7033. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7034. entity.Property(e => e.UpdateMan)
  7035. .HasColumnType("varchar(50)")
  7036. .HasCharSet("utf8")
  7037. .HasCollation("utf8_general_ci");
  7038. entity.Property(e => e.UploadAutoWater)
  7039. .HasColumnType("bit(1)")
  7040. .HasDefaultValueSql("b'0'");
  7041. entity.Property(e => e.UploadAutoZoom)
  7042. .HasColumnType("bit(1)")
  7043. .HasDefaultValueSql("b'0'");
  7044. entity.Property(e => e.UploadAutoZoomHeight).HasColumnType("int(11)");
  7045. entity.Property(e => e.UploadAutoZoomQuality).HasColumnType("int(11)");
  7046. entity.Property(e => e.UploadAutoZoomWidth).HasColumnType("int(11)");
  7047. entity.Property(e => e.UploadExt)
  7048. .HasColumnType("varchar(100)")
  7049. .HasCharSet("utf8")
  7050. .HasCollation("utf8_general_ci");
  7051. entity.Property(e => e.UploadMaxSize).HasColumnType("int(11)");
  7052. entity.Property(e => e.UploadOss)
  7053. .HasColumnType("bit(1)")
  7054. .HasDefaultValueSql("b'0'");
  7055. entity.Property(e => e.UploadWaterPath)
  7056. .HasColumnType("varchar(200)")
  7057. .HasCharSet("utf8")
  7058. .HasCollation("utf8_general_ci");
  7059. entity.Property(e => e.UploadWaterPosition)
  7060. .HasColumnType("varchar(15)")
  7061. .HasCharSet("utf8")
  7062. .HasCollation("utf8_general_ci");
  7063. entity.Property(e => e.Version).HasColumnType("int(11)");
  7064. entity.Property(e => e.WebName)
  7065. .HasColumnType("varchar(50)")
  7066. .HasCharSet("utf8")
  7067. .HasCollation("utf8_general_ci");
  7068. entity.Property(e => e.WebStatCode)
  7069. .HasColumnType("longtext")
  7070. .HasCharSet("utf8")
  7071. .HasCollation("utf8_general_ci");
  7072. entity.Property(e => e.WebUrl)
  7073. .HasColumnType("varchar(200)")
  7074. .HasCharSet("utf8")
  7075. .HasCollation("utf8_general_ci");
  7076. });
  7077. modelBuilder.Entity<TeamApply>(entity =>
  7078. {
  7079. entity.Property(e => e.Id).HasColumnType("int(11)");
  7080. entity.Property(e => e.Areas)
  7081. .HasColumnType("varchar(30)")
  7082. .HasCharSet("utf8")
  7083. .HasCollation("utf8_general_ci");
  7084. entity.Property(e => e.AuditRemark)
  7085. .HasColumnType("varchar(64)")
  7086. .HasCharSet("utf8")
  7087. .HasCollation("utf8_general_ci");
  7088. entity.Property(e => e.AuditResult).HasColumnType("int(11)");
  7089. entity.Property(e => e.AuditTime).HasColumnType("datetime");
  7090. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7091. entity.Property(e => e.CreateMan)
  7092. .HasColumnType("varchar(50)")
  7093. .HasCharSet("utf8")
  7094. .HasCollation("utf8_general_ci");
  7095. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  7096. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  7097. entity.Property(e => e.EnterEndDate).HasColumnType("datetime");
  7098. entity.Property(e => e.EnterStartDate).HasColumnType("datetime");
  7099. entity.Property(e => e.ManagerName)
  7100. .HasColumnType("varchar(32)")
  7101. .HasCharSet("utf8")
  7102. .HasCollation("utf8_general_ci");
  7103. entity.Property(e => e.ManagerNo)
  7104. .HasColumnType("varchar(32)")
  7105. .HasCharSet("utf8")
  7106. .HasCollation("utf8_general_ci");
  7107. entity.Property(e => e.MaxUserNum).HasColumnType("int(11)");
  7108. entity.Property(e => e.MinUserNum).HasColumnType("int(11)");
  7109. entity.Property(e => e.NotifyFlag).HasColumnType("int(11)");
  7110. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7111. entity.Property(e => e.Remark)
  7112. .HasColumnType("varchar(64)")
  7113. .HasCharSet("utf8")
  7114. .HasCollation("utf8_general_ci");
  7115. entity.Property(e => e.SeoDescription)
  7116. .HasColumnType("varchar(500)")
  7117. .HasCharSet("utf8")
  7118. .HasCollation("utf8_general_ci");
  7119. entity.Property(e => e.SeoKeyword)
  7120. .HasColumnType("varchar(200)")
  7121. .HasCharSet("utf8")
  7122. .HasCollation("utf8_general_ci");
  7123. entity.Property(e => e.SeoTitle)
  7124. .HasColumnType("varchar(100)")
  7125. .HasCharSet("utf8")
  7126. .HasCollation("utf8_general_ci");
  7127. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7128. entity.Property(e => e.Status).HasColumnType("int(11)");
  7129. entity.Property(e => e.TeamName)
  7130. .HasColumnType("varchar(32)")
  7131. .HasCharSet("utf8")
  7132. .HasCollation("utf8_general_ci");
  7133. entity.Property(e => e.TeamNo)
  7134. .HasColumnType("varchar(32)")
  7135. .HasCharSet("utf8")
  7136. .HasCollation("utf8_general_ci");
  7137. entity.Property(e => e.TeamStatus).HasColumnType("int(11)");
  7138. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7139. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7140. entity.Property(e => e.UpdateMan)
  7141. .HasColumnType("varchar(50)")
  7142. .HasCharSet("utf8")
  7143. .HasCollation("utf8_general_ci");
  7144. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7145. entity.Property(e => e.Version).HasColumnType("int(11)");
  7146. entity.Property(e => e.WatchWord)
  7147. .HasColumnType("varchar(32)")
  7148. .HasCharSet("utf8")
  7149. .HasCollation("utf8_general_ci");
  7150. });
  7151. modelBuilder.Entity<TeamApplyForTeamName>(entity =>
  7152. {
  7153. entity.HasKey(e => e.TeamName)
  7154. .HasName("PRIMARY");
  7155. entity.Property(e => e.TeamName)
  7156. .HasColumnType("varchar(32)")
  7157. .HasCharSet("utf8")
  7158. .HasCollation("utf8_general_ci");
  7159. entity.Property(e => e.TeamId).HasColumnType("int(11)");
  7160. });
  7161. modelBuilder.Entity<TeamApplyForTeamNo>(entity =>
  7162. {
  7163. entity.HasKey(e => e.TeamNo)
  7164. .HasName("PRIMARY");
  7165. entity.Property(e => e.TeamNo)
  7166. .HasColumnType("varchar(32)")
  7167. .HasCharSet("utf8")
  7168. .HasCollation("utf8_general_ci");
  7169. entity.Property(e => e.TeamId).HasColumnType("int(11)");
  7170. });
  7171. modelBuilder.Entity<TeamBlackList>(entity =>
  7172. {
  7173. entity.Property(e => e.Id).HasColumnType("int(11)");
  7174. entity.Property(e => e.BlackStatus).HasColumnType("int(11)");
  7175. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7176. entity.Property(e => e.CreateMan)
  7177. .HasColumnType("varchar(50)")
  7178. .HasCharSet("utf8")
  7179. .HasCollation("utf8_general_ci");
  7180. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  7181. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  7182. entity.Property(e => e.ManagerName)
  7183. .HasColumnType("varchar(32)")
  7184. .HasCharSet("utf8")
  7185. .HasCollation("utf8_general_ci");
  7186. entity.Property(e => e.ManagerNo)
  7187. .HasColumnType("varchar(32)")
  7188. .HasCharSet("utf8")
  7189. .HasCollation("utf8_general_ci");
  7190. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7191. entity.Property(e => e.Remark)
  7192. .HasColumnType("varchar(64)")
  7193. .HasCharSet("utf8")
  7194. .HasCollation("utf8_general_ci");
  7195. entity.Property(e => e.SeoDescription)
  7196. .HasColumnType("varchar(500)")
  7197. .HasCharSet("utf8")
  7198. .HasCollation("utf8_general_ci");
  7199. entity.Property(e => e.SeoKeyword)
  7200. .HasColumnType("varchar(200)")
  7201. .HasCharSet("utf8")
  7202. .HasCollation("utf8_general_ci");
  7203. entity.Property(e => e.SeoTitle)
  7204. .HasColumnType("varchar(100)")
  7205. .HasCharSet("utf8")
  7206. .HasCollation("utf8_general_ci");
  7207. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7208. entity.Property(e => e.Status).HasColumnType("int(11)");
  7209. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7210. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7211. entity.Property(e => e.UpdateMan)
  7212. .HasColumnType("varchar(50)")
  7213. .HasCharSet("utf8")
  7214. .HasCollation("utf8_general_ci");
  7215. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7216. entity.Property(e => e.Version).HasColumnType("int(11)");
  7217. });
  7218. modelBuilder.Entity<TeamConfig>(entity =>
  7219. {
  7220. entity.Property(e => e.Id).HasColumnType("int(11)");
  7221. entity.Property(e => e.BlacklistCycle).HasColumnType("int(11)");
  7222. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7223. entity.Property(e => e.CreateMan)
  7224. .HasColumnType("varchar(50)")
  7225. .HasCharSet("utf8")
  7226. .HasCollation("utf8_general_ci");
  7227. entity.Property(e => e.EnterEndMin).HasColumnType("int(11)");
  7228. entity.Property(e => e.LimitBuddyNo)
  7229. .HasColumnType("varchar(128)")
  7230. .HasCharSet("utf8")
  7231. .HasCollation("utf8_general_ci");
  7232. entity.Property(e => e.MaxCycleNum).HasColumnType("int(11)");
  7233. entity.Property(e => e.MaxStartDayLimit).HasColumnType("int(11)");
  7234. entity.Property(e => e.MaxUserNum).HasColumnType("int(11)");
  7235. entity.Property(e => e.MinCycleNum).HasColumnType("int(11)");
  7236. entity.Property(e => e.MinStartDayLimit).HasColumnType("int(11)");
  7237. entity.Property(e => e.MinUserNum).HasColumnType("int(11)");
  7238. entity.Property(e => e.OverlineStatus)
  7239. .HasColumnType("bit(1)")
  7240. .HasDefaultValueSql("b'0'");
  7241. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7242. entity.Property(e => e.Remark)
  7243. .HasColumnType("varchar(64)")
  7244. .HasCharSet("utf8")
  7245. .HasCollation("utf8_general_ci");
  7246. entity.Property(e => e.SeoDescription)
  7247. .HasColumnType("varchar(500)")
  7248. .HasCharSet("utf8")
  7249. .HasCollation("utf8_general_ci");
  7250. entity.Property(e => e.SeoKeyword)
  7251. .HasColumnType("varchar(200)")
  7252. .HasCharSet("utf8")
  7253. .HasCollation("utf8_general_ci");
  7254. entity.Property(e => e.SeoTitle)
  7255. .HasColumnType("varchar(100)")
  7256. .HasCharSet("utf8")
  7257. .HasCollation("utf8_general_ci");
  7258. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7259. entity.Property(e => e.Status).HasColumnType("int(11)");
  7260. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7261. entity.Property(e => e.UpdateMan)
  7262. .HasColumnType("varchar(50)")
  7263. .HasCharSet("utf8")
  7264. .HasCollation("utf8_general_ci");
  7265. entity.Property(e => e.Version).HasColumnType("int(11)");
  7266. });
  7267. modelBuilder.Entity<TeamDayTop>(entity =>
  7268. {
  7269. entity.Property(e => e.Id).HasColumnType("int(11)");
  7270. entity.Property(e => e.ActMerNum).HasColumnType("int(11)");
  7271. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  7272. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7273. entity.Property(e => e.CreateMan)
  7274. .HasColumnType("varchar(50)")
  7275. .HasCharSet("utf8")
  7276. .HasCollation("utf8_general_ci");
  7277. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7278. entity.Property(e => e.Remark)
  7279. .HasColumnType("varchar(64)")
  7280. .HasCharSet("utf8")
  7281. .HasCollation("utf8_general_ci");
  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.StatDate)
  7296. .HasColumnType("varchar(8)")
  7297. .HasCharSet("utf8")
  7298. .HasCollation("utf8_general_ci");
  7299. entity.Property(e => e.StatMonth)
  7300. .HasColumnType("varchar(6)")
  7301. .HasCharSet("utf8")
  7302. .HasCollation("utf8_general_ci");
  7303. entity.Property(e => e.Status).HasColumnType("int(11)");
  7304. entity.Property(e => e.TeamActMerNum).HasColumnType("int(11)");
  7305. entity.Property(e => e.TeamEndDate).HasColumnType("datetime");
  7306. entity.Property(e => e.TeamId).HasColumnType("int(11)");
  7307. entity.Property(e => e.TeamStartDate).HasColumnType("datetime");
  7308. entity.Property(e => e.TeamUserId).HasColumnType("int(11)");
  7309. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7310. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7311. entity.Property(e => e.UpdateMan)
  7312. .HasColumnType("varchar(50)")
  7313. .HasCharSet("utf8")
  7314. .HasCollation("utf8_general_ci");
  7315. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7316. entity.Property(e => e.Version).HasColumnType("int(11)");
  7317. });
  7318. modelBuilder.Entity<TeamOfferApply>(entity =>
  7319. {
  7320. entity.Property(e => e.Id).HasColumnType("int(11)");
  7321. entity.Property(e => e.Areas)
  7322. .HasColumnType("varchar(30)")
  7323. .HasCharSet("utf8")
  7324. .HasCollation("utf8_general_ci");
  7325. entity.Property(e => e.AuditRemark)
  7326. .HasColumnType("varchar(64)")
  7327. .HasCharSet("utf8")
  7328. .HasCollation("utf8_general_ci");
  7329. entity.Property(e => e.AuditResult).HasColumnType("int(11)");
  7330. entity.Property(e => e.AuditTime).HasColumnType("datetime");
  7331. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7332. entity.Property(e => e.CreateMan)
  7333. .HasColumnType("varchar(50)")
  7334. .HasCharSet("utf8")
  7335. .HasCollation("utf8_general_ci");
  7336. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  7337. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  7338. entity.Property(e => e.EnterDate).HasColumnType("datetime");
  7339. entity.Property(e => e.ManagerName)
  7340. .HasColumnType("varchar(32)")
  7341. .HasCharSet("utf8")
  7342. .HasCollation("utf8_general_ci");
  7343. entity.Property(e => e.ManagerNo)
  7344. .HasColumnType("varchar(32)")
  7345. .HasCharSet("utf8")
  7346. .HasCollation("utf8_general_ci");
  7347. entity.Property(e => e.NotifyFlag).HasColumnType("int(11)");
  7348. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7349. entity.Property(e => e.Remark)
  7350. .HasColumnType("varchar(64)")
  7351. .HasCharSet("utf8")
  7352. .HasCollation("utf8_general_ci");
  7353. entity.Property(e => e.SeoDescription)
  7354. .HasColumnType("varchar(500)")
  7355. .HasCharSet("utf8")
  7356. .HasCollation("utf8_general_ci");
  7357. entity.Property(e => e.SeoKeyword)
  7358. .HasColumnType("varchar(200)")
  7359. .HasCharSet("utf8")
  7360. .HasCollation("utf8_general_ci");
  7361. entity.Property(e => e.SeoTitle)
  7362. .HasColumnType("varchar(100)")
  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.TeamApplyStatus).HasColumnType("int(11)");
  7368. entity.Property(e => e.TeamId).HasColumnType("int(11)");
  7369. entity.Property(e => e.TeamLeader).HasColumnType("int(11)");
  7370. entity.Property(e => e.TeamStatus).HasColumnType("int(11)");
  7371. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7372. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7373. entity.Property(e => e.UpdateMan)
  7374. .HasColumnType("varchar(50)")
  7375. .HasCharSet("utf8")
  7376. .HasCollation("utf8_general_ci");
  7377. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7378. entity.Property(e => e.Version).HasColumnType("int(11)");
  7379. });
  7380. modelBuilder.Entity<TeamPersonDayTop>(entity =>
  7381. {
  7382. entity.Property(e => e.Id).HasColumnType("int(11)");
  7383. entity.Property(e => e.ActMerNum).HasColumnType("int(11)");
  7384. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  7385. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7386. entity.Property(e => e.CreateMan)
  7387. .HasColumnType("varchar(50)")
  7388. .HasCharSet("utf8")
  7389. .HasCollation("utf8_general_ci");
  7390. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7391. entity.Property(e => e.Remark)
  7392. .HasColumnType("varchar(64)")
  7393. .HasCharSet("utf8")
  7394. .HasCollation("utf8_general_ci");
  7395. entity.Property(e => e.SeoDescription)
  7396. .HasColumnType("varchar(500)")
  7397. .HasCharSet("utf8")
  7398. .HasCollation("utf8_general_ci");
  7399. entity.Property(e => e.SeoKeyword)
  7400. .HasColumnType("varchar(200)")
  7401. .HasCharSet("utf8")
  7402. .HasCollation("utf8_general_ci");
  7403. entity.Property(e => e.SeoTitle)
  7404. .HasColumnType("varchar(100)")
  7405. .HasCharSet("utf8")
  7406. .HasCollation("utf8_general_ci");
  7407. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7408. entity.Property(e => e.StatDate)
  7409. .HasColumnType("varchar(8)")
  7410. .HasCharSet("utf8")
  7411. .HasCollation("utf8_general_ci");
  7412. entity.Property(e => e.StatMonth)
  7413. .HasColumnType("varchar(6)")
  7414. .HasCharSet("utf8")
  7415. .HasCollation("utf8_general_ci");
  7416. entity.Property(e => e.Status).HasColumnType("int(11)");
  7417. entity.Property(e => e.TeamActMerNum).HasColumnType("int(11)");
  7418. entity.Property(e => e.TeamEndDate).HasColumnType("datetime");
  7419. entity.Property(e => e.TeamId).HasColumnType("int(11)");
  7420. entity.Property(e => e.TeamStartDate).HasColumnType("datetime");
  7421. entity.Property(e => e.TeamUserId).HasColumnType("int(11)");
  7422. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7423. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7424. entity.Property(e => e.UpdateMan)
  7425. .HasColumnType("varchar(50)")
  7426. .HasCharSet("utf8")
  7427. .HasCollation("utf8_general_ci");
  7428. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7429. entity.Property(e => e.Version).HasColumnType("int(11)");
  7430. });
  7431. modelBuilder.Entity<TradeDaySummary>(entity =>
  7432. {
  7433. entity.Property(e => e.Id).HasColumnType("int(11)");
  7434. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  7435. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7436. entity.Property(e => e.CreateMan)
  7437. .HasColumnType("varchar(50)")
  7438. .HasCharSet("utf8")
  7439. .HasCollation("utf8_general_ci");
  7440. entity.Property(e => e.HelpDirectCreditTradeAmt).HasColumnType("decimal(18,2)");
  7441. entity.Property(e => e.HelpDirectDebitCapNum).HasColumnType("decimal(18,2)");
  7442. entity.Property(e => e.HelpDirectDebitCapTradeAmt).HasColumnType("decimal(18,2)");
  7443. entity.Property(e => e.HelpDirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  7444. entity.Property(e => e.HelpDirectNonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7445. entity.Property(e => e.HelpDirectNonQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7446. entity.Property(e => e.HelpDirectQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7447. entity.Property(e => e.HelpDirectQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7448. entity.Property(e => e.HelpDirectTradeAmt).HasColumnType("decimal(18,2)");
  7449. entity.Property(e => e.HelpNonDirectCreditTradeAmt).HasColumnType("decimal(18,2)");
  7450. entity.Property(e => e.HelpNonDirectDebitCapNum).HasColumnType("decimal(18,2)");
  7451. entity.Property(e => e.HelpNonDirectDebitCapTradeAmt).HasColumnType("decimal(18,2)");
  7452. entity.Property(e => e.HelpNonDirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  7453. entity.Property(e => e.HelpNonDirectNonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7454. entity.Property(e => e.HelpNonDirectNonQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7455. entity.Property(e => e.HelpNonDirectQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7456. entity.Property(e => e.HelpNonDirectQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7457. entity.Property(e => e.HelpNonDirectTradeAmt).HasColumnType("decimal(18,2)");
  7458. entity.Property(e => e.MgrName)
  7459. .HasColumnType("varchar(32)")
  7460. .HasCharSet("utf8")
  7461. .HasCollation("utf8_general_ci");
  7462. entity.Property(e => e.MgrNo)
  7463. .HasColumnType("varchar(16)")
  7464. .HasCharSet("utf8")
  7465. .HasCollation("utf8_general_ci");
  7466. entity.Property(e => e.NotHelpDirectCreditTradeAmt).HasColumnType("decimal(18,2)");
  7467. entity.Property(e => e.NotHelpDirectDebitCapNum).HasColumnType("int(11)");
  7468. entity.Property(e => e.NotHelpDirectDebitCapTradeAmt).HasColumnType("decimal(18,2)");
  7469. entity.Property(e => e.NotHelpDirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  7470. entity.Property(e => e.NotHelpDirectNonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7471. entity.Property(e => e.NotHelpDirectNonQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7472. entity.Property(e => e.NotHelpDirectQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7473. entity.Property(e => e.NotHelpDirectQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7474. entity.Property(e => e.NotHelpDirectTradeAmt).HasColumnType("decimal(18,2)");
  7475. entity.Property(e => e.NotHelpNonDirectCreditTradeAmt).HasColumnType("decimal(18,2)");
  7476. entity.Property(e => e.NotHelpNonDirectDebitCapNum).HasColumnType("int(11)");
  7477. entity.Property(e => e.NotHelpNonDirectDebitCapTradeAmt).HasColumnType("decimal(18,2)");
  7478. entity.Property(e => e.NotHelpNonDirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  7479. entity.Property(e => e.NotHelpNonDirectNonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7480. entity.Property(e => e.NotHelpNonDirectNonQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7481. entity.Property(e => e.NotHelpNonDirectQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7482. entity.Property(e => e.NotHelpNonDirectQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7483. entity.Property(e => e.NotHelpNonDirectTradeAmt).HasColumnType("decimal(18,2)");
  7484. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7485. entity.Property(e => e.SeoDescription)
  7486. .HasColumnType("varchar(500)")
  7487. .HasCharSet("utf8")
  7488. .HasCollation("utf8_general_ci");
  7489. entity.Property(e => e.SeoKeyword)
  7490. .HasColumnType("varchar(200)")
  7491. .HasCharSet("utf8")
  7492. .HasCollation("utf8_general_ci");
  7493. entity.Property(e => e.SeoTitle)
  7494. .HasColumnType("varchar(100)")
  7495. .HasCharSet("utf8")
  7496. .HasCollation("utf8_general_ci");
  7497. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7498. entity.Property(e => e.Status).HasColumnType("int(11)");
  7499. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7500. entity.Property(e => e.TradeDate)
  7501. .HasColumnType("varchar(8)")
  7502. .HasCharSet("utf8")
  7503. .HasCollation("utf8_general_ci");
  7504. entity.Property(e => e.TradeMonth)
  7505. .HasColumnType("varchar(6)")
  7506. .HasCharSet("utf8")
  7507. .HasCollation("utf8_general_ci");
  7508. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7509. entity.Property(e => e.UpdateMan)
  7510. .HasColumnType("varchar(50)")
  7511. .HasCharSet("utf8")
  7512. .HasCollation("utf8_general_ci");
  7513. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7514. entity.Property(e => e.Version).HasColumnType("int(11)");
  7515. });
  7516. modelBuilder.Entity<TradeRecord>(entity =>
  7517. {
  7518. entity.Property(e => e.Id).HasColumnType("int(11)");
  7519. entity.Property(e => e.BankCardType).HasColumnType("int(11)");
  7520. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  7521. entity.Property(e => e.CapFlag).HasColumnType("int(11)");
  7522. entity.Property(e => e.ClearDate).HasColumnType("datetime");
  7523. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7524. entity.Property(e => e.CreateMan)
  7525. .HasColumnType("varchar(50)")
  7526. .HasCharSet("utf8")
  7527. .HasCollation("utf8_general_ci");
  7528. entity.Property(e => e.DirectFlag)
  7529. .HasColumnType("bit(1)")
  7530. .HasDefaultValueSql("b'0'");
  7531. entity.Property(e => e.HelpMonthCount).HasColumnType("int(11)");
  7532. entity.Property(e => e.MerBuddyType).HasColumnType("int(11)");
  7533. entity.Property(e => e.MerHelpFlag)
  7534. .HasColumnType("bit(1)")
  7535. .HasDefaultValueSql("b'0'");
  7536. entity.Property(e => e.MerNo)
  7537. .HasColumnType("varchar(32)")
  7538. .HasCharSet("utf8")
  7539. .HasCollation("utf8_general_ci");
  7540. entity.Property(e => e.MerUserId).HasColumnType("int(11)");
  7541. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  7542. entity.Property(e => e.QrPayFlag).HasColumnType("int(11)");
  7543. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7544. entity.Property(e => e.RecordNo)
  7545. .HasColumnType("varchar(32)")
  7546. .HasCharSet("utf8")
  7547. .HasCollation("utf8_general_ci");
  7548. entity.Property(e => e.Remark)
  7549. .HasColumnType("varchar(64)")
  7550. .HasCharSet("utf8")
  7551. .HasCollation("utf8_general_ci");
  7552. entity.Property(e => e.SeoDescription)
  7553. .HasColumnType("varchar(500)")
  7554. .HasCharSet("utf8")
  7555. .HasCollation("utf8_general_ci");
  7556. entity.Property(e => e.SeoKeyword)
  7557. .HasColumnType("varchar(200)")
  7558. .HasCharSet("utf8")
  7559. .HasCollation("utf8_general_ci");
  7560. entity.Property(e => e.SeoTitle)
  7561. .HasColumnType("varchar(100)")
  7562. .HasCharSet("utf8")
  7563. .HasCollation("utf8_general_ci");
  7564. entity.Property(e => e.SnNo)
  7565. .HasColumnType("varchar(32)")
  7566. .HasCharSet("utf8")
  7567. .HasCollation("utf8_general_ci");
  7568. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7569. entity.Property(e => e.Status).HasColumnType("int(11)");
  7570. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7571. entity.Property(e => e.TradeAmount).HasColumnType("decimal(18,2)");
  7572. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  7573. entity.Property(e => e.TradeSerialNo)
  7574. .HasColumnType("varchar(48)")
  7575. .HasCharSet("utf8")
  7576. .HasCollation("utf8_general_ci");
  7577. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7578. entity.Property(e => e.UpdateMan)
  7579. .HasColumnType("varchar(50)")
  7580. .HasCharSet("utf8")
  7581. .HasCollation("utf8_general_ci");
  7582. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7583. entity.Property(e => e.Version).HasColumnType("int(11)");
  7584. });
  7585. modelBuilder.Entity<UploadParams>(entity =>
  7586. {
  7587. entity.Property(e => e.Id).HasColumnType("int(11)");
  7588. entity.Property(e => e.ColumnEnName)
  7589. .HasColumnType("varchar(50)")
  7590. .HasCharSet("utf8")
  7591. .HasCollation("utf8_general_ci");
  7592. entity.Property(e => e.ColumnName)
  7593. .HasColumnType("varchar(50)")
  7594. .HasCharSet("utf8")
  7595. .HasCollation("utf8_general_ci");
  7596. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7597. entity.Property(e => e.CreateMan)
  7598. .HasColumnType("varchar(50)")
  7599. .HasCharSet("utf8")
  7600. .HasCollation("utf8_general_ci");
  7601. entity.Property(e => e.ParamString)
  7602. .HasColumnType("varchar(200)")
  7603. .HasCharSet("utf8")
  7604. .HasCollation("utf8_general_ci");
  7605. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7606. entity.Property(e => e.SeoDescription)
  7607. .HasColumnType("varchar(500)")
  7608. .HasCharSet("utf8")
  7609. .HasCollation("utf8_general_ci");
  7610. entity.Property(e => e.SeoKeyword)
  7611. .HasColumnType("varchar(200)")
  7612. .HasCharSet("utf8")
  7613. .HasCollation("utf8_general_ci");
  7614. entity.Property(e => e.SeoTitle)
  7615. .HasColumnType("varchar(100)")
  7616. .HasCharSet("utf8")
  7617. .HasCollation("utf8_general_ci");
  7618. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7619. entity.Property(e => e.Status).HasColumnType("int(11)");
  7620. entity.Property(e => e.TableEnName)
  7621. .HasColumnType("varchar(50)")
  7622. .HasCharSet("utf8")
  7623. .HasCollation("utf8_general_ci");
  7624. entity.Property(e => e.TableName)
  7625. .HasColumnType("varchar(50)")
  7626. .HasCharSet("utf8")
  7627. .HasCollation("utf8_general_ci");
  7628. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7629. entity.Property(e => e.UpdateMan)
  7630. .HasColumnType("varchar(50)")
  7631. .HasCharSet("utf8")
  7632. .HasCollation("utf8_general_ci");
  7633. entity.Property(e => e.Version).HasColumnType("int(11)");
  7634. });
  7635. modelBuilder.Entity<UserAccount>(entity =>
  7636. {
  7637. entity.Property(e => e.Id).HasColumnType("int(11)");
  7638. entity.Property(e => e.AccountStatus).HasColumnType("int(11)");
  7639. entity.Property(e => e.BalanceAmount).HasColumnType("decimal(18,2)");
  7640. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7641. entity.Property(e => e.CreateMan)
  7642. .HasColumnType("varchar(50)")
  7643. .HasCharSet("utf8")
  7644. .HasCollation("utf8_general_ci");
  7645. entity.Property(e => e.FreezeAmount).HasColumnType("decimal(18,2)");
  7646. entity.Property(e => e.LockStatus).HasColumnType("int(11)");
  7647. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7648. entity.Property(e => e.SeoDescription)
  7649. .HasColumnType("varchar(500)")
  7650. .HasCharSet("utf8")
  7651. .HasCollation("utf8_general_ci");
  7652. entity.Property(e => e.SeoKeyword)
  7653. .HasColumnType("varchar(200)")
  7654. .HasCharSet("utf8")
  7655. .HasCollation("utf8_general_ci");
  7656. entity.Property(e => e.SeoTitle)
  7657. .HasColumnType("varchar(100)")
  7658. .HasCharSet("utf8")
  7659. .HasCollation("utf8_general_ci");
  7660. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7661. entity.Property(e => e.Status).HasColumnType("int(11)");
  7662. entity.Property(e => e.TeamTotalOverProfit).HasColumnType("decimal(18,2)");
  7663. entity.Property(e => e.TeamTotalProfit).HasColumnType("decimal(18,2)");
  7664. entity.Property(e => e.TeamTotalServiceProfit).HasColumnType("decimal(18,2)");
  7665. entity.Property(e => e.TotalAmount).HasColumnType("decimal(18,2)");
  7666. entity.Property(e => e.TotalOverProfit).HasColumnType("decimal(18,2)");
  7667. entity.Property(e => e.TotalProfit).HasColumnType("decimal(18,2)");
  7668. entity.Property(e => e.TotalServiceProfit).HasColumnType("decimal(18,2)");
  7669. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7670. entity.Property(e => e.UpdateMan)
  7671. .HasColumnType("varchar(50)")
  7672. .HasCharSet("utf8")
  7673. .HasCollation("utf8_general_ci");
  7674. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7675. entity.Property(e => e.UserProperty).HasColumnType("int(11)");
  7676. entity.Property(e => e.UserType).HasColumnType("int(11)");
  7677. entity.Property(e => e.Version).HasColumnType("int(11)");
  7678. entity.Property(e => e.WithdrawAmount).HasColumnType("decimal(18,2)");
  7679. });
  7680. modelBuilder.Entity<UserAccountRecord>(entity =>
  7681. {
  7682. entity.Property(e => e.Id).HasColumnType("int(11)");
  7683. entity.Property(e => e.AfterBalanceAmount).HasColumnType("decimal(18,2)");
  7684. entity.Property(e => e.AfterFreezeAmount).HasColumnType("decimal(18,2)");
  7685. entity.Property(e => e.AfterTotalAmount).HasColumnType("decimal(18,2)");
  7686. entity.Property(e => e.BeforeBalanceAmount).HasColumnType("decimal(18,2)");
  7687. entity.Property(e => e.BeforeFreezeAmount).HasColumnType("decimal(18,2)");
  7688. entity.Property(e => e.BeforeTotalAmount).HasColumnType("decimal(18,2)");
  7689. entity.Property(e => e.ChangeAmount).HasColumnType("decimal(18,2)");
  7690. entity.Property(e => e.ChangeType).HasColumnType("int(11)");
  7691. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7692. entity.Property(e => e.CreateMan)
  7693. .HasColumnType("varchar(50)")
  7694. .HasCharSet("utf8")
  7695. .HasCollation("utf8_general_ci");
  7696. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  7697. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7698. entity.Property(e => e.Remark)
  7699. .HasColumnType("varchar(64)")
  7700. .HasCharSet("utf8")
  7701. .HasCollation("utf8_general_ci");
  7702. entity.Property(e => e.SeoDescription)
  7703. .HasColumnType("varchar(500)")
  7704. .HasCharSet("utf8")
  7705. .HasCollation("utf8_general_ci");
  7706. entity.Property(e => e.SeoKeyword)
  7707. .HasColumnType("varchar(200)")
  7708. .HasCharSet("utf8")
  7709. .HasCollation("utf8_general_ci");
  7710. entity.Property(e => e.SeoTitle)
  7711. .HasColumnType("varchar(100)")
  7712. .HasCharSet("utf8")
  7713. .HasCollation("utf8_general_ci");
  7714. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7715. entity.Property(e => e.Status).HasColumnType("int(11)");
  7716. entity.Property(e => e.TransRecordNo)
  7717. .HasColumnType("varchar(32)")
  7718. .HasCharSet("utf8")
  7719. .HasCollation("utf8_general_ci");
  7720. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7721. entity.Property(e => e.UpdateMan)
  7722. .HasColumnType("varchar(50)")
  7723. .HasCharSet("utf8")
  7724. .HasCollation("utf8_general_ci");
  7725. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7726. entity.Property(e => e.Version).HasColumnType("int(11)");
  7727. });
  7728. modelBuilder.Entity<UserAddress>(entity =>
  7729. {
  7730. entity.Property(e => e.Id).HasColumnType("int(11)");
  7731. entity.Property(e => e.Address)
  7732. .HasColumnType("varchar(100)")
  7733. .HasCharSet("utf8")
  7734. .HasCollation("utf8_general_ci");
  7735. entity.Property(e => e.Areas)
  7736. .HasColumnType("varchar(30)")
  7737. .HasCharSet("utf8")
  7738. .HasCollation("utf8_general_ci");
  7739. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7740. entity.Property(e => e.CreateMan)
  7741. .HasColumnType("varchar(50)")
  7742. .HasCharSet("utf8")
  7743. .HasCollation("utf8_general_ci");
  7744. entity.Property(e => e.IsDefault)
  7745. .HasColumnType("bit(1)")
  7746. .HasDefaultValueSql("b'0'");
  7747. entity.Property(e => e.Mobile)
  7748. .HasColumnType("varchar(11)")
  7749. .HasCharSet("utf8")
  7750. .HasCollation("utf8_general_ci");
  7751. entity.Property(e => e.PostalCode)
  7752. .HasColumnType("varchar(6)")
  7753. .HasCharSet("utf8")
  7754. .HasCollation("utf8_general_ci");
  7755. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7756. entity.Property(e => e.RealName)
  7757. .HasColumnType("varchar(10)")
  7758. .HasCharSet("utf8")
  7759. .HasCollation("utf8_general_ci");
  7760. entity.Property(e => e.SeoDescription)
  7761. .HasColumnType("varchar(500)")
  7762. .HasCharSet("utf8")
  7763. .HasCollation("utf8_general_ci");
  7764. entity.Property(e => e.SeoKeyword)
  7765. .HasColumnType("varchar(200)")
  7766. .HasCharSet("utf8")
  7767. .HasCollation("utf8_general_ci");
  7768. entity.Property(e => e.SeoTitle)
  7769. .HasColumnType("varchar(100)")
  7770. .HasCharSet("utf8")
  7771. .HasCollation("utf8_general_ci");
  7772. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7773. entity.Property(e => e.Status).HasColumnType("int(11)");
  7774. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7775. entity.Property(e => e.UpdateMan)
  7776. .HasColumnType("varchar(50)")
  7777. .HasCharSet("utf8")
  7778. .HasCollation("utf8_general_ci");
  7779. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7780. entity.Property(e => e.Version).HasColumnType("int(11)");
  7781. });
  7782. modelBuilder.Entity<UserAuthRecord>(entity =>
  7783. {
  7784. entity.Property(e => e.Id).HasColumnType("int(11)");
  7785. entity.Property(e => e.AuthType).HasColumnType("int(11)");
  7786. entity.Property(e => e.BankCardAccount)
  7787. .HasColumnType("varchar(32)")
  7788. .HasCharSet("utf8")
  7789. .HasCollation("utf8_general_ci");
  7790. entity.Property(e => e.BankMobile)
  7791. .HasColumnType("varchar(11)")
  7792. .HasCharSet("utf8")
  7793. .HasCollation("utf8_general_ci");
  7794. entity.Property(e => e.BankName)
  7795. .HasColumnType("varchar(64)")
  7796. .HasCharSet("utf8")
  7797. .HasCollation("utf8_general_ci");
  7798. entity.Property(e => e.ChannelCode)
  7799. .HasColumnType("varchar(16)")
  7800. .HasCharSet("utf8")
  7801. .HasCollation("utf8_general_ci");
  7802. entity.Property(e => e.ChannelName)
  7803. .HasColumnType("varchar(32)")
  7804. .HasCharSet("utf8")
  7805. .HasCollation("utf8_general_ci");
  7806. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7807. entity.Property(e => e.CreateMan)
  7808. .HasColumnType("varchar(50)")
  7809. .HasCharSet("utf8")
  7810. .HasCollation("utf8_general_ci");
  7811. entity.Property(e => e.IdcardNo)
  7812. .HasColumnType("varchar(18)")
  7813. .HasCharSet("utf8")
  7814. .HasCollation("utf8_general_ci");
  7815. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7816. entity.Property(e => e.RealName)
  7817. .HasColumnType("varchar(32)")
  7818. .HasCharSet("utf8")
  7819. .HasCollation("utf8_general_ci");
  7820. entity.Property(e => e.ReqData)
  7821. .HasColumnType("varchar(2048)")
  7822. .HasCharSet("utf8")
  7823. .HasCollation("utf8_general_ci");
  7824. entity.Property(e => e.ResData)
  7825. .HasColumnType("varchar(2048)")
  7826. .HasCharSet("utf8")
  7827. .HasCollation("utf8_general_ci");
  7828. entity.Property(e => e.ReturnCode)
  7829. .HasColumnType("varchar(32)")
  7830. .HasCharSet("utf8")
  7831. .HasCollation("utf8_general_ci");
  7832. entity.Property(e => e.ReturnMsg)
  7833. .HasColumnType("varchar(128)")
  7834. .HasCharSet("utf8")
  7835. .HasCollation("utf8_general_ci");
  7836. entity.Property(e => e.SeoDescription)
  7837. .HasColumnType("varchar(500)")
  7838. .HasCharSet("utf8")
  7839. .HasCollation("utf8_general_ci");
  7840. entity.Property(e => e.SeoKeyword)
  7841. .HasColumnType("varchar(200)")
  7842. .HasCharSet("utf8")
  7843. .HasCollation("utf8_general_ci");
  7844. entity.Property(e => e.SeoTitle)
  7845. .HasColumnType("varchar(100)")
  7846. .HasCharSet("utf8")
  7847. .HasCollation("utf8_general_ci");
  7848. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7849. entity.Property(e => e.Status).HasColumnType("int(11)");
  7850. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7851. entity.Property(e => e.UpdateMan)
  7852. .HasColumnType("varchar(50)")
  7853. .HasCharSet("utf8")
  7854. .HasCollation("utf8_general_ci");
  7855. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7856. entity.Property(e => e.Version).HasColumnType("int(11)");
  7857. });
  7858. modelBuilder.Entity<UserBack>(entity =>
  7859. {
  7860. entity.Property(e => e.Id).HasColumnType("int(11)");
  7861. entity.Property(e => e.BackKind).HasColumnType("int(11)");
  7862. entity.Property(e => e.BackStatus).HasColumnType("int(11)");
  7863. entity.Property(e => e.Content)
  7864. .HasColumnType("varchar(100)")
  7865. .HasCharSet("utf8")
  7866. .HasCollation("utf8_general_ci");
  7867. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7868. entity.Property(e => e.CreateMan)
  7869. .HasColumnType("varchar(50)")
  7870. .HasCharSet("utf8")
  7871. .HasCollation("utf8_general_ci");
  7872. entity.Property(e => e.IsPhoneCallBack)
  7873. .HasColumnType("bit(1)")
  7874. .HasDefaultValueSql("b'0'");
  7875. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7876. entity.Property(e => e.ReplyContent)
  7877. .HasColumnType("mediumtext")
  7878. .HasCharSet("utf8")
  7879. .HasCollation("utf8_general_ci");
  7880. entity.Property(e => e.SeoDescription)
  7881. .HasColumnType("varchar(500)")
  7882. .HasCharSet("utf8")
  7883. .HasCollation("utf8_general_ci");
  7884. entity.Property(e => e.SeoKeyword)
  7885. .HasColumnType("varchar(200)")
  7886. .HasCharSet("utf8")
  7887. .HasCollation("utf8_general_ci");
  7888. entity.Property(e => e.SeoTitle)
  7889. .HasColumnType("varchar(100)")
  7890. .HasCharSet("utf8")
  7891. .HasCollation("utf8_general_ci");
  7892. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7893. entity.Property(e => e.Status).HasColumnType("int(11)");
  7894. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7895. entity.Property(e => e.UpdateMan)
  7896. .HasColumnType("varchar(50)")
  7897. .HasCharSet("utf8")
  7898. .HasCollation("utf8_general_ci");
  7899. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7900. entity.Property(e => e.Version).HasColumnType("int(11)");
  7901. });
  7902. modelBuilder.Entity<UserBackKind>(entity =>
  7903. {
  7904. entity.Property(e => e.Id).HasColumnType("int(11)");
  7905. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7906. entity.Property(e => e.CreateMan)
  7907. .HasColumnType("varchar(50)")
  7908. .HasCharSet("utf8")
  7909. .HasCollation("utf8_general_ci");
  7910. entity.Property(e => e.Name)
  7911. .HasColumnType("varchar(50)")
  7912. .HasCharSet("utf8")
  7913. .HasCollation("utf8_general_ci");
  7914. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7915. entity.Property(e => e.SeoDescription)
  7916. .HasColumnType("varchar(500)")
  7917. .HasCharSet("utf8")
  7918. .HasCollation("utf8_general_ci");
  7919. entity.Property(e => e.SeoKeyword)
  7920. .HasColumnType("varchar(200)")
  7921. .HasCharSet("utf8")
  7922. .HasCollation("utf8_general_ci");
  7923. entity.Property(e => e.SeoTitle)
  7924. .HasColumnType("varchar(100)")
  7925. .HasCharSet("utf8")
  7926. .HasCollation("utf8_general_ci");
  7927. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7928. entity.Property(e => e.Status).HasColumnType("int(11)");
  7929. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7930. entity.Property(e => e.UpdateMan)
  7931. .HasColumnType("varchar(50)")
  7932. .HasCharSet("utf8")
  7933. .HasCollation("utf8_general_ci");
  7934. entity.Property(e => e.Version).HasColumnType("int(11)");
  7935. });
  7936. modelBuilder.Entity<UserBalanceTop>(entity =>
  7937. {
  7938. entity.Property(e => e.Id).HasColumnType("int(11)");
  7939. entity.Property(e => e.Balance).HasColumnType("decimal(18,2)");
  7940. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7941. entity.Property(e => e.CreateMan)
  7942. .HasColumnType("varchar(50)")
  7943. .HasCharSet("utf8")
  7944. .HasCollation("utf8_general_ci");
  7945. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7946. entity.Property(e => e.SeoDescription)
  7947. .HasColumnType("varchar(500)")
  7948. .HasCharSet("utf8")
  7949. .HasCollation("utf8_general_ci");
  7950. entity.Property(e => e.SeoKeyword)
  7951. .HasColumnType("varchar(200)")
  7952. .HasCharSet("utf8")
  7953. .HasCollation("utf8_general_ci");
  7954. entity.Property(e => e.SeoTitle)
  7955. .HasColumnType("varchar(100)")
  7956. .HasCharSet("utf8")
  7957. .HasCollation("utf8_general_ci");
  7958. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7959. entity.Property(e => e.StatDate)
  7960. .HasColumnType("varchar(8)")
  7961. .HasCharSet("utf8")
  7962. .HasCollation("utf8_general_ci");
  7963. entity.Property(e => e.StatMonth)
  7964. .HasColumnType("varchar(6)")
  7965. .HasCharSet("utf8")
  7966. .HasCollation("utf8_general_ci");
  7967. entity.Property(e => e.Status).HasColumnType("int(11)");
  7968. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7969. entity.Property(e => e.UpdateMan)
  7970. .HasColumnType("varchar(50)")
  7971. .HasCharSet("utf8")
  7972. .HasCollation("utf8_general_ci");
  7973. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7974. entity.Property(e => e.Version).HasColumnType("int(11)");
  7975. });
  7976. modelBuilder.Entity<UserCar>(entity =>
  7977. {
  7978. entity.Property(e => e.Id).HasColumnType("int(11)");
  7979. entity.Property(e => e.BuyCount).HasColumnType("int(11)");
  7980. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7981. entity.Property(e => e.CreateMan)
  7982. .HasColumnType("varchar(50)")
  7983. .HasCharSet("utf8")
  7984. .HasCollation("utf8_general_ci");
  7985. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  7986. entity.Property(e => e.NormId).HasColumnType("int(11)");
  7987. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  7988. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7989. entity.Property(e => e.SeoDescription)
  7990. .HasColumnType("varchar(500)")
  7991. .HasCharSet("utf8")
  7992. .HasCollation("utf8_general_ci");
  7993. entity.Property(e => e.SeoKeyword)
  7994. .HasColumnType("varchar(200)")
  7995. .HasCharSet("utf8")
  7996. .HasCollation("utf8_general_ci");
  7997. entity.Property(e => e.SeoTitle)
  7998. .HasColumnType("varchar(100)")
  7999. .HasCharSet("utf8")
  8000. .HasCollation("utf8_general_ci");
  8001. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8002. entity.Property(e => e.Status).HasColumnType("int(11)");
  8003. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8004. entity.Property(e => e.UpdateMan)
  8005. .HasColumnType("varchar(50)")
  8006. .HasCharSet("utf8")
  8007. .HasCollation("utf8_general_ci");
  8008. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8009. entity.Property(e => e.Version).HasColumnType("int(11)");
  8010. });
  8011. modelBuilder.Entity<UserCardForWeChat>(entity =>
  8012. {
  8013. entity.Property(e => e.Id).HasColumnType("int(11)");
  8014. entity.Property(e => e.BrandName)
  8015. .HasColumnType("varchar(12)")
  8016. .HasCharSet("utf8")
  8017. .HasCollation("utf8_general_ci");
  8018. entity.Property(e => e.CardId)
  8019. .HasColumnType("varchar(50)")
  8020. .HasCharSet("utf8")
  8021. .HasCollation("utf8_general_ci");
  8022. entity.Property(e => e.CardType)
  8023. .HasColumnType("varchar(30)")
  8024. .HasCharSet("utf8")
  8025. .HasCollation("utf8_general_ci");
  8026. entity.Property(e => e.CodeType)
  8027. .HasColumnType("varchar(50)")
  8028. .HasCharSet("utf8")
  8029. .HasCollation("utf8_general_ci");
  8030. entity.Property(e => e.Color)
  8031. .HasColumnType("varchar(20)")
  8032. .HasCharSet("utf8")
  8033. .HasCollation("utf8_general_ci");
  8034. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8035. entity.Property(e => e.CreateMan)
  8036. .HasColumnType("varchar(50)")
  8037. .HasCharSet("utf8")
  8038. .HasCollation("utf8_general_ci");
  8039. entity.Property(e => e.DateType)
  8040. .HasColumnType("varchar(50)")
  8041. .HasCharSet("utf8")
  8042. .HasCollation("utf8_general_ci");
  8043. entity.Property(e => e.Description)
  8044. .HasColumnType("varchar(1024)")
  8045. .HasCharSet("utf8")
  8046. .HasCollation("utf8_general_ci");
  8047. entity.Property(e => e.EnterName)
  8048. .HasColumnType("varchar(15)")
  8049. .HasCharSet("utf8")
  8050. .HasCollation("utf8_general_ci");
  8051. entity.Property(e => e.EnterTips)
  8052. .HasColumnType("varchar(6)")
  8053. .HasCharSet("utf8")
  8054. .HasCollation("utf8_general_ci");
  8055. entity.Property(e => e.EnterUrl)
  8056. .HasColumnType("varchar(200)")
  8057. .HasCharSet("utf8")
  8058. .HasCollation("utf8_general_ci");
  8059. entity.Property(e => e.LogoUrl)
  8060. .HasColumnType("varchar(200)")
  8061. .HasCharSet("utf8")
  8062. .HasCollation("utf8_general_ci");
  8063. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  8064. entity.Property(e => e.Notice)
  8065. .HasColumnType("varchar(16)")
  8066. .HasCharSet("utf8")
  8067. .HasCollation("utf8_general_ci");
  8068. entity.Property(e => e.Prerogative)
  8069. .HasColumnType("varchar(1024)")
  8070. .HasCharSet("utf8")
  8071. .HasCollation("utf8_general_ci");
  8072. entity.Property(e => e.Quantity).HasColumnType("int(11)");
  8073. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8074. entity.Property(e => e.SeoDescription)
  8075. .HasColumnType("varchar(500)")
  8076. .HasCharSet("utf8")
  8077. .HasCollation("utf8_general_ci");
  8078. entity.Property(e => e.SeoKeyword)
  8079. .HasColumnType("varchar(200)")
  8080. .HasCharSet("utf8")
  8081. .HasCollation("utf8_general_ci");
  8082. entity.Property(e => e.SeoTitle)
  8083. .HasColumnType("varchar(100)")
  8084. .HasCharSet("utf8")
  8085. .HasCollation("utf8_general_ci");
  8086. entity.Property(e => e.Sku)
  8087. .HasColumnType("mediumtext")
  8088. .HasCharSet("utf8")
  8089. .HasCollation("utf8_general_ci");
  8090. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8091. entity.Property(e => e.Status).HasColumnType("int(11)");
  8092. entity.Property(e => e.SupplyBalance)
  8093. .HasColumnType("bit(1)")
  8094. .HasDefaultValueSql("b'0'");
  8095. entity.Property(e => e.SupplyBonus)
  8096. .HasColumnType("bit(1)")
  8097. .HasDefaultValueSql("b'0'");
  8098. entity.Property(e => e.Title)
  8099. .HasColumnType("varchar(9)")
  8100. .HasCharSet("utf8")
  8101. .HasCollation("utf8_general_ci");
  8102. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8103. entity.Property(e => e.UpdateMan)
  8104. .HasColumnType("varchar(50)")
  8105. .HasCharSet("utf8")
  8106. .HasCollation("utf8_general_ci");
  8107. entity.Property(e => e.Version).HasColumnType("int(11)");
  8108. });
  8109. modelBuilder.Entity<UserCardRecord>(entity =>
  8110. {
  8111. entity.Property(e => e.Id).HasColumnType("int(11)");
  8112. entity.Property(e => e.CardId).HasColumnType("int(11)");
  8113. entity.Property(e => e.ConsumerId).HasColumnType("int(11)");
  8114. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8115. entity.Property(e => e.CreateMan)
  8116. .HasColumnType("varchar(50)")
  8117. .HasCharSet("utf8")
  8118. .HasCollation("utf8_general_ci");
  8119. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  8120. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8121. entity.Property(e => e.SeoDescription)
  8122. .HasColumnType("varchar(500)")
  8123. .HasCharSet("utf8")
  8124. .HasCollation("utf8_general_ci");
  8125. entity.Property(e => e.SeoKeyword)
  8126. .HasColumnType("varchar(200)")
  8127. .HasCharSet("utf8")
  8128. .HasCollation("utf8_general_ci");
  8129. entity.Property(e => e.SeoTitle)
  8130. .HasColumnType("varchar(100)")
  8131. .HasCharSet("utf8")
  8132. .HasCollation("utf8_general_ci");
  8133. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8134. entity.Property(e => e.Status).HasColumnType("int(11)");
  8135. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8136. entity.Property(e => e.UpdateMan)
  8137. .HasColumnType("varchar(50)")
  8138. .HasCharSet("utf8")
  8139. .HasCollation("utf8_general_ci");
  8140. entity.Property(e => e.Version).HasColumnType("int(11)");
  8141. });
  8142. modelBuilder.Entity<UserCashRecord>(entity =>
  8143. {
  8144. entity.Property(e => e.Id).HasColumnType("int(11)");
  8145. entity.Property(e => e.ActualTradeAmount).HasColumnType("decimal(18,2)");
  8146. entity.Property(e => e.CashOrderNo)
  8147. .HasColumnType("varchar(32)")
  8148. .HasCharSet("utf8")
  8149. .HasCollation("utf8_general_ci");
  8150. entity.Property(e => e.ChanelName)
  8151. .HasColumnType("varchar(32)")
  8152. .HasCharSet("utf8")
  8153. .HasCollation("utf8_general_ci");
  8154. entity.Property(e => e.ChannelCode)
  8155. .HasColumnType("varchar(16)")
  8156. .HasCharSet("utf8")
  8157. .HasCollation("utf8_general_ci");
  8158. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8159. entity.Property(e => e.CreateMan)
  8160. .HasColumnType("varchar(50)")
  8161. .HasCharSet("utf8")
  8162. .HasCollation("utf8_general_ci");
  8163. entity.Property(e => e.IdCardNo)
  8164. .HasColumnType("varchar(18)")
  8165. .HasCharSet("utf8")
  8166. .HasCollation("utf8_general_ci");
  8167. entity.Property(e => e.Ip)
  8168. .HasColumnType("varchar(15)")
  8169. .HasCharSet("utf8")
  8170. .HasCollation("utf8_general_ci");
  8171. entity.Property(e => e.ManageFee).HasColumnType("decimal(18,2)");
  8172. entity.Property(e => e.MediaSource)
  8173. .HasColumnType("varchar(16)")
  8174. .HasCharSet("utf8")
  8175. .HasCollation("utf8_general_ci");
  8176. entity.Property(e => e.PayTradeNo)
  8177. .HasColumnType("varchar(32)")
  8178. .HasCharSet("utf8")
  8179. .HasCollation("utf8_general_ci");
  8180. entity.Property(e => e.PaymentDate).HasColumnType("datetime");
  8181. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8182. entity.Property(e => e.Remark)
  8183. .HasColumnType("varchar(128)")
  8184. .HasCharSet("utf8")
  8185. .HasCollation("utf8_general_ci");
  8186. entity.Property(e => e.ReqData)
  8187. .HasColumnType("varchar(2048)")
  8188. .HasCharSet("utf8")
  8189. .HasCollation("utf8_general_ci");
  8190. entity.Property(e => e.ResData)
  8191. .HasColumnType("varchar(2048)")
  8192. .HasCharSet("utf8")
  8193. .HasCollation("utf8_general_ci");
  8194. entity.Property(e => e.ReturnCode)
  8195. .HasColumnType("varchar(32)")
  8196. .HasCharSet("utf8")
  8197. .HasCollation("utf8_general_ci");
  8198. entity.Property(e => e.ReturnMsg)
  8199. .HasColumnType("varchar(128)")
  8200. .HasCharSet("utf8")
  8201. .HasCollation("utf8_general_ci");
  8202. entity.Property(e => e.SeoDescription)
  8203. .HasColumnType("varchar(500)")
  8204. .HasCharSet("utf8")
  8205. .HasCollation("utf8_general_ci");
  8206. entity.Property(e => e.SeoKeyword)
  8207. .HasColumnType("varchar(200)")
  8208. .HasCharSet("utf8")
  8209. .HasCollation("utf8_general_ci");
  8210. entity.Property(e => e.SeoTitle)
  8211. .HasColumnType("varchar(100)")
  8212. .HasCharSet("utf8")
  8213. .HasCollation("utf8_general_ci");
  8214. entity.Property(e => e.SettleBankCardNo)
  8215. .HasColumnType("varchar(32)")
  8216. .HasCharSet("utf8")
  8217. .HasCollation("utf8_general_ci");
  8218. entity.Property(e => e.SettleBankName)
  8219. .HasColumnType("varchar(64)")
  8220. .HasCharSet("utf8")
  8221. .HasCollation("utf8_general_ci");
  8222. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8223. entity.Property(e => e.Status).HasColumnType("int(11)");
  8224. entity.Property(e => e.TradeAmount).HasColumnType("decimal(18,2)");
  8225. entity.Property(e => e.TradeFee).HasColumnType("decimal(18,2)");
  8226. entity.Property(e => e.TradeType).HasColumnType("int(11)");
  8227. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8228. entity.Property(e => e.UpdateMan)
  8229. .HasColumnType("varchar(50)")
  8230. .HasCharSet("utf8")
  8231. .HasCollation("utf8_general_ci");
  8232. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8233. entity.Property(e => e.Version).HasColumnType("int(11)");
  8234. });
  8235. modelBuilder.Entity<UserCenterIconList>(entity =>
  8236. {
  8237. entity.Property(e => e.Id).HasColumnType("int(11)");
  8238. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8239. entity.Property(e => e.CreateMan)
  8240. .HasColumnType("varchar(50)")
  8241. .HasCharSet("utf8")
  8242. .HasCollation("utf8_general_ci");
  8243. entity.Property(e => e.Icon)
  8244. .HasColumnType("varchar(200)")
  8245. .HasCharSet("utf8")
  8246. .HasCollation("utf8_general_ci");
  8247. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8248. entity.Property(e => e.SeoDescription)
  8249. .HasColumnType("varchar(500)")
  8250. .HasCharSet("utf8")
  8251. .HasCollation("utf8_general_ci");
  8252. entity.Property(e => e.SeoKeyword)
  8253. .HasColumnType("varchar(200)")
  8254. .HasCharSet("utf8")
  8255. .HasCollation("utf8_general_ci");
  8256. entity.Property(e => e.SeoTitle)
  8257. .HasColumnType("varchar(100)")
  8258. .HasCharSet("utf8")
  8259. .HasCollation("utf8_general_ci");
  8260. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8261. entity.Property(e => e.Status).HasColumnType("int(11)");
  8262. entity.Property(e => e.Title)
  8263. .HasColumnType("varchar(50)")
  8264. .HasCharSet("utf8")
  8265. .HasCollation("utf8_general_ci");
  8266. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8267. entity.Property(e => e.UpdateMan)
  8268. .HasColumnType("varchar(50)")
  8269. .HasCharSet("utf8")
  8270. .HasCollation("utf8_general_ci");
  8271. entity.Property(e => e.Url)
  8272. .HasColumnType("varchar(50)")
  8273. .HasCharSet("utf8")
  8274. .HasCollation("utf8_general_ci");
  8275. entity.Property(e => e.Version).HasColumnType("int(11)");
  8276. });
  8277. modelBuilder.Entity<UserCollection>(entity =>
  8278. {
  8279. entity.Property(e => e.Id).HasColumnType("int(11)");
  8280. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8281. entity.Property(e => e.CreateMan)
  8282. .HasColumnType("varchar(50)")
  8283. .HasCharSet("utf8")
  8284. .HasCollation("utf8_general_ci");
  8285. entity.Property(e => e.DataId).HasColumnType("int(11)");
  8286. entity.Property(e => e.Kind).HasColumnType("int(11)");
  8287. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8288. entity.Property(e => e.SeoDescription)
  8289. .HasColumnType("varchar(500)")
  8290. .HasCharSet("utf8")
  8291. .HasCollation("utf8_general_ci");
  8292. entity.Property(e => e.SeoKeyword)
  8293. .HasColumnType("varchar(200)")
  8294. .HasCharSet("utf8")
  8295. .HasCollation("utf8_general_ci");
  8296. entity.Property(e => e.SeoTitle)
  8297. .HasColumnType("varchar(100)")
  8298. .HasCharSet("utf8")
  8299. .HasCollation("utf8_general_ci");
  8300. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8301. entity.Property(e => e.Status).HasColumnType("int(11)");
  8302. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8303. entity.Property(e => e.UpdateMan)
  8304. .HasColumnType("varchar(50)")
  8305. .HasCharSet("utf8")
  8306. .HasCollation("utf8_general_ci");
  8307. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8308. entity.Property(e => e.Version).HasColumnType("int(11)");
  8309. });
  8310. modelBuilder.Entity<UserData>(entity =>
  8311. {
  8312. entity.HasKey(e => e.UserId)
  8313. .HasName("PRIMARY");
  8314. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8315. entity.Property(e => e.ActiveRewardAmount).HasColumnType("decimal(18,2)");
  8316. entity.Property(e => e.CashFreezeAmt).HasColumnType("decimal(18,2)");
  8317. entity.Property(e => e.CollectionCount).HasColumnType("int(11)");
  8318. entity.Property(e => e.Coupons).HasColumnType("decimal(18,2)");
  8319. entity.Property(e => e.CurMoney).HasColumnType("decimal(18,2)");
  8320. entity.Property(e => e.FansCount).HasColumnType("int(11)");
  8321. entity.Property(e => e.FollowCount).HasColumnType("int(11)");
  8322. entity.Property(e => e.GrowthValue).HasColumnType("int(11)");
  8323. entity.Property(e => e.Integral).HasColumnType("decimal(18,2)");
  8324. entity.Property(e => e.MachineCount).HasColumnType("int(11)");
  8325. entity.Property(e => e.ProfitRewardRate).HasColumnType("decimal(18,2)");
  8326. entity.Property(e => e.SettleAmount).HasColumnType("decimal(18,2)");
  8327. entity.Property(e => e.ToCommentOrderCount).HasColumnType("int(11)");
  8328. entity.Property(e => e.ToPayOrderCount).HasColumnType("int(11)");
  8329. entity.Property(e => e.ToReceiveOrderCount).HasColumnType("int(11)");
  8330. entity.Property(e => e.ToRefundOrderCount).HasColumnType("int(11)");
  8331. entity.Property(e => e.ToSendOrderCount).HasColumnType("int(11)");
  8332. entity.Property(e => e.TotalOrderMoney).HasColumnType("decimal(18,2)");
  8333. entity.Property(e => e.TotalUseIntegral).HasColumnType("decimal(18,2)");
  8334. });
  8335. modelBuilder.Entity<UserDetail>(entity =>
  8336. {
  8337. entity.Property(e => e.Id).HasColumnType("int(11)");
  8338. entity.Property(e => e.AddMan).HasColumnType("int(11)");
  8339. entity.Property(e => e.Birthday).HasColumnType("datetime");
  8340. entity.Property(e => e.CardAddAddress).HasColumnType("int(11)");
  8341. entity.Property(e => e.CardExpireDate).HasColumnType("datetime");
  8342. entity.Property(e => e.EduLevel).HasColumnType("int(11)");
  8343. entity.Property(e => e.Email)
  8344. .HasColumnType("varchar(50)")
  8345. .HasCharSet("utf8")
  8346. .HasCollation("utf8_general_ci");
  8347. entity.Property(e => e.FamilyIncome).HasColumnType("int(11)");
  8348. entity.Property(e => e.Interests)
  8349. .HasColumnType("varchar(200)")
  8350. .HasCharSet("utf8")
  8351. .HasCollation("utf8_general_ci");
  8352. entity.Property(e => e.Note)
  8353. .HasColumnType("longtext")
  8354. .HasCharSet("utf8")
  8355. .HasCollation("utf8_general_ci");
  8356. entity.Property(e => e.OfficePhone)
  8357. .HasColumnType("varchar(50)")
  8358. .HasCharSet("utf8")
  8359. .HasCollation("utf8_general_ci");
  8360. entity.Property(e => e.PostalCode)
  8361. .HasColumnType("varchar(6)")
  8362. .HasCharSet("utf8")
  8363. .HasCollation("utf8_general_ci");
  8364. entity.Property(e => e.PrivatePhone)
  8365. .HasColumnType("varchar(50)")
  8366. .HasCharSet("utf8")
  8367. .HasCollation("utf8_general_ci");
  8368. entity.Property(e => e.ToShopDate).HasColumnType("datetime");
  8369. entity.Property(e => e.TrafficTool).HasColumnType("int(11)");
  8370. entity.Property(e => e.UpdateMan).HasColumnType("int(11)");
  8371. entity.Property(e => e.UserJob).HasColumnType("int(11)");
  8372. });
  8373. modelBuilder.Entity<UserFamilyMember>(entity =>
  8374. {
  8375. entity.Property(e => e.Id).HasColumnType("int(11)");
  8376. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8377. entity.Property(e => e.CreateMan)
  8378. .HasColumnType("varchar(50)")
  8379. .HasCharSet("utf8")
  8380. .HasCollation("utf8_general_ci");
  8381. entity.Property(e => e.IdCardNo)
  8382. .HasColumnType("varchar(18)")
  8383. .HasCharSet("utf8")
  8384. .HasCollation("utf8_general_ci");
  8385. entity.Property(e => e.Job).HasColumnType("int(11)");
  8386. entity.Property(e => e.MemberKind).HasColumnType("int(11)");
  8387. entity.Property(e => e.Mobile)
  8388. .HasColumnType("varchar(11)")
  8389. .HasCharSet("utf8")
  8390. .HasCollation("utf8_general_ci");
  8391. entity.Property(e => e.Name)
  8392. .HasColumnType("varchar(20)")
  8393. .HasCharSet("utf8")
  8394. .HasCollation("utf8_general_ci");
  8395. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8396. entity.Property(e => e.SeoDescription)
  8397. .HasColumnType("varchar(500)")
  8398. .HasCharSet("utf8")
  8399. .HasCollation("utf8_general_ci");
  8400. entity.Property(e => e.SeoKeyword)
  8401. .HasColumnType("varchar(200)")
  8402. .HasCharSet("utf8")
  8403. .HasCollation("utf8_general_ci");
  8404. entity.Property(e => e.SeoTitle)
  8405. .HasColumnType("varchar(100)")
  8406. .HasCharSet("utf8")
  8407. .HasCollation("utf8_general_ci");
  8408. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8409. entity.Property(e => e.Status).HasColumnType("int(11)");
  8410. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8411. entity.Property(e => e.UpdateMan)
  8412. .HasColumnType("varchar(50)")
  8413. .HasCharSet("utf8")
  8414. .HasCollation("utf8_general_ci");
  8415. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8416. entity.Property(e => e.Version).HasColumnType("int(11)");
  8417. });
  8418. modelBuilder.Entity<UserForMakerCode>(entity =>
  8419. {
  8420. entity.HasKey(e => e.MakerCode)
  8421. .HasName("PRIMARY");
  8422. entity.Property(e => e.MakerCode)
  8423. .HasColumnType("varchar(30)")
  8424. .HasCharSet("utf8")
  8425. .HasCollation("utf8_general_ci");
  8426. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8427. });
  8428. modelBuilder.Entity<UserForMobile>(entity =>
  8429. {
  8430. entity.HasKey(e => e.Mobile)
  8431. .HasName("PRIMARY");
  8432. entity.Property(e => e.Mobile)
  8433. .HasColumnType("varchar(11)")
  8434. .HasCharSet("utf8")
  8435. .HasCollation("utf8_general_ci");
  8436. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8437. });
  8438. modelBuilder.Entity<UserForRealName>(entity =>
  8439. {
  8440. entity.HasKey(e => e.RealName)
  8441. .HasName("PRIMARY");
  8442. entity.Property(e => e.RealName)
  8443. .HasColumnType("varchar(30)")
  8444. .HasCharSet("utf8")
  8445. .HasCollation("utf8_general_ci");
  8446. entity.Property(e => e.UserId)
  8447. .HasColumnType("varchar(100)")
  8448. .HasCharSet("utf8")
  8449. .HasCollation("utf8_general_ci");
  8450. });
  8451. modelBuilder.Entity<UserFriend>(entity =>
  8452. {
  8453. entity.Property(e => e.Id).HasColumnType("int(11)");
  8454. entity.Property(e => e.FriendId).HasColumnType("int(11)");
  8455. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8456. });
  8457. modelBuilder.Entity<UserGroup>(entity =>
  8458. {
  8459. entity.Property(e => e.Id).HasColumnType("int(11)");
  8460. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8461. entity.Property(e => e.CreateMan)
  8462. .HasColumnType("varchar(50)")
  8463. .HasCharSet("utf8")
  8464. .HasCollation("utf8_general_ci");
  8465. entity.Property(e => e.Details)
  8466. .HasColumnType("varchar(200)")
  8467. .HasCharSet("utf8")
  8468. .HasCollation("utf8_general_ci");
  8469. entity.Property(e => e.Name)
  8470. .HasColumnType("varchar(20)")
  8471. .HasCharSet("utf8")
  8472. .HasCollation("utf8_general_ci");
  8473. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8474. entity.Property(e => e.SeoDescription)
  8475. .HasColumnType("varchar(500)")
  8476. .HasCharSet("utf8")
  8477. .HasCollation("utf8_general_ci");
  8478. entity.Property(e => e.SeoKeyword)
  8479. .HasColumnType("varchar(200)")
  8480. .HasCharSet("utf8")
  8481. .HasCollation("utf8_general_ci");
  8482. entity.Property(e => e.SeoTitle)
  8483. .HasColumnType("varchar(100)")
  8484. .HasCharSet("utf8")
  8485. .HasCollation("utf8_general_ci");
  8486. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8487. entity.Property(e => e.Status).HasColumnType("int(11)");
  8488. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8489. entity.Property(e => e.UpdateMan)
  8490. .HasColumnType("varchar(50)")
  8491. .HasCharSet("utf8")
  8492. .HasCollation("utf8_general_ci");
  8493. entity.Property(e => e.Version).HasColumnType("int(11)");
  8494. });
  8495. modelBuilder.Entity<UserLevelSet>(entity =>
  8496. {
  8497. entity.Property(e => e.Id).HasColumnType("int(11)");
  8498. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8499. entity.Property(e => e.CreateMan)
  8500. .HasColumnType("varchar(50)")
  8501. .HasCharSet("utf8")
  8502. .HasCollation("utf8_general_ci");
  8503. entity.Property(e => e.Details)
  8504. .HasColumnType("varchar(200)")
  8505. .HasCharSet("utf8")
  8506. .HasCollation("utf8_general_ci");
  8507. entity.Property(e => e.Name)
  8508. .HasColumnType("varchar(20)")
  8509. .HasCharSet("utf8")
  8510. .HasCollation("utf8_general_ci");
  8511. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8512. entity.Property(e => e.SeoDescription)
  8513. .HasColumnType("varchar(500)")
  8514. .HasCharSet("utf8")
  8515. .HasCollation("utf8_general_ci");
  8516. entity.Property(e => e.SeoKeyword)
  8517. .HasColumnType("varchar(200)")
  8518. .HasCharSet("utf8")
  8519. .HasCollation("utf8_general_ci");
  8520. entity.Property(e => e.SeoTitle)
  8521. .HasColumnType("varchar(100)")
  8522. .HasCharSet("utf8")
  8523. .HasCollation("utf8_general_ci");
  8524. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8525. entity.Property(e => e.Status).HasColumnType("int(11)");
  8526. entity.Property(e => e.UpLevelDays).HasColumnType("int(11)");
  8527. entity.Property(e => e.UpLevelGrowth).HasColumnType("int(11)");
  8528. entity.Property(e => e.UpLevelIntegral).HasColumnType("decimal(10,0)");
  8529. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8530. entity.Property(e => e.UpdateMan)
  8531. .HasColumnType("varchar(50)")
  8532. .HasCharSet("utf8")
  8533. .HasCollation("utf8_general_ci");
  8534. entity.Property(e => e.Version).HasColumnType("int(11)");
  8535. });
  8536. modelBuilder.Entity<UserLoginRecord>(entity =>
  8537. {
  8538. entity.Property(e => e.Id).HasColumnType("int(11)");
  8539. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8540. entity.Property(e => e.CreateMan)
  8541. .HasColumnType("varchar(50)")
  8542. .HasCharSet("utf8")
  8543. .HasCollation("utf8_general_ci");
  8544. entity.Property(e => e.Kind).HasColumnType("int(11)");
  8545. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8546. entity.Property(e => e.SeoDescription)
  8547. .HasColumnType("varchar(500)")
  8548. .HasCharSet("utf8")
  8549. .HasCollation("utf8_general_ci");
  8550. entity.Property(e => e.SeoKeyword)
  8551. .HasColumnType("varchar(200)")
  8552. .HasCharSet("utf8")
  8553. .HasCollation("utf8_general_ci");
  8554. entity.Property(e => e.SeoTitle)
  8555. .HasColumnType("varchar(100)")
  8556. .HasCharSet("utf8")
  8557. .HasCollation("utf8_general_ci");
  8558. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8559. entity.Property(e => e.Status).HasColumnType("int(11)");
  8560. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8561. entity.Property(e => e.UpdateMan)
  8562. .HasColumnType("varchar(50)")
  8563. .HasCharSet("utf8")
  8564. .HasCollation("utf8_general_ci");
  8565. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8566. entity.Property(e => e.Version).HasColumnType("int(11)");
  8567. });
  8568. modelBuilder.Entity<UserMachineData>(entity =>
  8569. {
  8570. entity.HasKey(e => e.IdBrand)
  8571. .HasName("PRIMARY");
  8572. entity.Property(e => e.IdBrand)
  8573. .HasColumnType("varchar(50)")
  8574. .HasCharSet("utf8")
  8575. .HasCollation("utf8_general_ci");
  8576. entity.Property(e => e.ActProfit).HasColumnType("decimal(18,2)");
  8577. entity.Property(e => e.BindCount).HasColumnType("int(11)");
  8578. entity.Property(e => e.DividendsProfit).HasColumnType("decimal(18,2)");
  8579. entity.Property(e => e.FluxProfit).HasColumnType("decimal(18,2)");
  8580. entity.Property(e => e.OpenProfit).HasColumnType("decimal(18,2)");
  8581. entity.Property(e => e.OtherProfit).HasColumnType("decimal(18,2)");
  8582. entity.Property(e => e.TotalMachineCount).HasColumnType("int(11)");
  8583. entity.Property(e => e.TradeProfit).HasColumnType("decimal(18,2)");
  8584. entity.Property(e => e.UnBindCount).HasColumnType("int(11)");
  8585. });
  8586. modelBuilder.Entity<UserMallLargeSn>(entity =>
  8587. {
  8588. entity.Property(e => e.Id).HasColumnType("int(11)");
  8589. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  8590. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8591. entity.Property(e => e.CreateMan)
  8592. .HasColumnType("varchar(50)")
  8593. .HasCharSet("utf8")
  8594. .HasCollation("utf8_general_ci");
  8595. entity.Property(e => e.OrderAmount).HasColumnType("decimal(18,2)");
  8596. entity.Property(e => e.OrderNo)
  8597. .HasColumnType("varchar(32)")
  8598. .HasCharSet("utf8")
  8599. .HasCollation("utf8_general_ci");
  8600. entity.Property(e => e.OrderNum).HasColumnType("int(11)");
  8601. entity.Property(e => e.ProductName)
  8602. .HasColumnType("varchar(32)")
  8603. .HasCharSet("utf8")
  8604. .HasCollation("utf8_general_ci");
  8605. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8606. entity.Property(e => e.Remark)
  8607. .HasColumnType("varchar(64)")
  8608. .HasCharSet("utf8")
  8609. .HasCollation("utf8_general_ci");
  8610. entity.Property(e => e.RuleOrderAmt).HasColumnType("decimal(18,2)");
  8611. entity.Property(e => e.SeoDescription)
  8612. .HasColumnType("varchar(500)")
  8613. .HasCharSet("utf8")
  8614. .HasCollation("utf8_general_ci");
  8615. entity.Property(e => e.SeoKeyword)
  8616. .HasColumnType("varchar(200)")
  8617. .HasCharSet("utf8")
  8618. .HasCollation("utf8_general_ci");
  8619. entity.Property(e => e.SeoTitle)
  8620. .HasColumnType("varchar(100)")
  8621. .HasCharSet("utf8")
  8622. .HasCollation("utf8_general_ci");
  8623. entity.Property(e => e.SnNo)
  8624. .HasColumnType("varchar(32)")
  8625. .HasCharSet("utf8")
  8626. .HasCollation("utf8_general_ci");
  8627. entity.Property(e => e.SnShipDate).HasColumnType("datetime");
  8628. entity.Property(e => e.SnStatus).HasColumnType("int(11)");
  8629. entity.Property(e => e.SnType).HasColumnType("int(11)");
  8630. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8631. entity.Property(e => e.Status).HasColumnType("int(11)");
  8632. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  8633. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8634. entity.Property(e => e.UpdateMan)
  8635. .HasColumnType("varchar(50)")
  8636. .HasCharSet("utf8")
  8637. .HasCollation("utf8_general_ci");
  8638. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8639. entity.Property(e => e.Version).HasColumnType("int(11)");
  8640. });
  8641. modelBuilder.Entity<UserOfflineSignInRecords>(entity =>
  8642. {
  8643. entity.Property(e => e.Id).HasColumnType("int(11)");
  8644. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8645. entity.Property(e => e.CreateMan)
  8646. .HasColumnType("varchar(50)")
  8647. .HasCharSet("utf8")
  8648. .HasCollation("utf8_general_ci");
  8649. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  8650. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8651. entity.Property(e => e.SeoDescription)
  8652. .HasColumnType("varchar(500)")
  8653. .HasCharSet("utf8")
  8654. .HasCollation("utf8_general_ci");
  8655. entity.Property(e => e.SeoKeyword)
  8656. .HasColumnType("varchar(200)")
  8657. .HasCharSet("utf8")
  8658. .HasCollation("utf8_general_ci");
  8659. entity.Property(e => e.SeoTitle)
  8660. .HasColumnType("varchar(100)")
  8661. .HasCharSet("utf8")
  8662. .HasCollation("utf8_general_ci");
  8663. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8664. entity.Property(e => e.Status).HasColumnType("int(11)");
  8665. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8666. entity.Property(e => e.UpdateMan)
  8667. .HasColumnType("varchar(50)")
  8668. .HasCharSet("utf8")
  8669. .HasCollation("utf8_general_ci");
  8670. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8671. entity.Property(e => e.Version).HasColumnType("int(11)");
  8672. });
  8673. modelBuilder.Entity<UserProfit>(entity =>
  8674. {
  8675. entity.Property(e => e.Id).HasColumnType("int(11)");
  8676. entity.Property(e => e.AddOrSubRate).HasColumnType("decimal(18,2)");
  8677. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  8678. entity.Property(e => e.CardType)
  8679. .HasColumnType("varchar(10)")
  8680. .HasCharSet("utf8")
  8681. .HasCollation("utf8_general_ci");
  8682. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8683. entity.Property(e => e.CreateMan)
  8684. .HasColumnType("varchar(50)")
  8685. .HasCharSet("utf8")
  8686. .HasCollation("utf8_general_ci");
  8687. entity.Property(e => e.HelpAddOrSubRate).HasColumnType("decimal(18,2)");
  8688. entity.Property(e => e.HelpProfitPercent).HasColumnType("decimal(18,2)");
  8689. entity.Property(e => e.HelpProfitRate).HasColumnType("decimal(18,2)");
  8690. entity.Property(e => e.HelpProfitRateBase).HasColumnType("decimal(18,2)");
  8691. entity.Property(e => e.ProfitPercent).HasColumnType("decimal(18,2)");
  8692. entity.Property(e => e.ProfitRate).HasColumnType("decimal(18,2)");
  8693. entity.Property(e => e.ProfitRateBase).HasColumnType("decimal(18,2)");
  8694. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8695. entity.Property(e => e.Remark)
  8696. .HasColumnType("varchar(64)")
  8697. .HasCharSet("utf8")
  8698. .HasCollation("utf8_general_ci");
  8699. entity.Property(e => e.SeoDescription)
  8700. .HasColumnType("varchar(500)")
  8701. .HasCharSet("utf8")
  8702. .HasCollation("utf8_general_ci");
  8703. entity.Property(e => e.SeoKeyword)
  8704. .HasColumnType("varchar(200)")
  8705. .HasCharSet("utf8")
  8706. .HasCollation("utf8_general_ci");
  8707. entity.Property(e => e.SeoTitle)
  8708. .HasColumnType("varchar(100)")
  8709. .HasCharSet("utf8")
  8710. .HasCollation("utf8_general_ci");
  8711. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8712. entity.Property(e => e.Status).HasColumnType("int(11)");
  8713. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  8714. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8715. entity.Property(e => e.UpdateMan)
  8716. .HasColumnType("varchar(50)")
  8717. .HasCharSet("utf8")
  8718. .HasCollation("utf8_general_ci");
  8719. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8720. entity.Property(e => e.Version).HasColumnType("int(11)");
  8721. });
  8722. modelBuilder.Entity<UserProfitSet>(entity =>
  8723. {
  8724. entity.Property(e => e.Id).HasColumnType("int(11)");
  8725. entity.Property(e => e.AddOrSubRate).HasColumnType("decimal(18,2)");
  8726. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  8727. entity.Property(e => e.CardType).HasColumnType("int(11)");
  8728. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8729. entity.Property(e => e.CreateMan)
  8730. .HasColumnType("varchar(50)")
  8731. .HasCharSet("utf8")
  8732. .HasCollation("utf8_general_ci");
  8733. entity.Property(e => e.HelpFlag).HasColumnType("int(11)");
  8734. entity.Property(e => e.ProfitPercent).HasColumnType("decimal(18,2)");
  8735. entity.Property(e => e.ProfitRate).HasColumnType("decimal(18,2)");
  8736. entity.Property(e => e.ProfitRateBase).HasColumnType("decimal(18,2)");
  8737. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8738. entity.Property(e => e.Remark)
  8739. .HasColumnType("varchar(64)")
  8740. .HasCharSet("utf8")
  8741. .HasCollation("utf8_general_ci");
  8742. entity.Property(e => e.SeoDescription)
  8743. .HasColumnType("varchar(500)")
  8744. .HasCharSet("utf8")
  8745. .HasCollation("utf8_general_ci");
  8746. entity.Property(e => e.SeoKeyword)
  8747. .HasColumnType("varchar(200)")
  8748. .HasCharSet("utf8")
  8749. .HasCollation("utf8_general_ci");
  8750. entity.Property(e => e.SeoTitle)
  8751. .HasColumnType("varchar(100)")
  8752. .HasCharSet("utf8")
  8753. .HasCollation("utf8_general_ci");
  8754. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8755. entity.Property(e => e.Status).HasColumnType("int(11)");
  8756. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  8757. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8758. entity.Property(e => e.UpdateMan)
  8759. .HasColumnType("varchar(50)")
  8760. .HasCharSet("utf8")
  8761. .HasCollation("utf8_general_ci");
  8762. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8763. entity.Property(e => e.Version).HasColumnType("int(11)");
  8764. });
  8765. modelBuilder.Entity<UserProfitSubsidySummary>(entity =>
  8766. {
  8767. entity.Property(e => e.Id).HasColumnType("int(11)");
  8768. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  8769. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  8770. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8771. entity.Property(e => e.CreateMan)
  8772. .HasColumnType("varchar(50)")
  8773. .HasCharSet("utf8")
  8774. .HasCollation("utf8_general_ci");
  8775. entity.Property(e => e.MgrName)
  8776. .HasColumnType("varchar(32)")
  8777. .HasCharSet("utf8")
  8778. .HasCollation("utf8_general_ci");
  8779. entity.Property(e => e.MgrNo)
  8780. .HasColumnType("varchar(16)")
  8781. .HasCharSet("utf8")
  8782. .HasCollation("utf8_general_ci");
  8783. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8784. entity.Property(e => e.SeoDescription)
  8785. .HasColumnType("varchar(500)")
  8786. .HasCharSet("utf8")
  8787. .HasCollation("utf8_general_ci");
  8788. entity.Property(e => e.SeoKeyword)
  8789. .HasColumnType("varchar(200)")
  8790. .HasCharSet("utf8")
  8791. .HasCollation("utf8_general_ci");
  8792. entity.Property(e => e.SeoTitle)
  8793. .HasColumnType("varchar(100)")
  8794. .HasCharSet("utf8")
  8795. .HasCollation("utf8_general_ci");
  8796. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8797. entity.Property(e => e.Status).HasColumnType("int(11)");
  8798. entity.Property(e => e.SubsidyDirectProfit).HasColumnType("decimal(18,2)");
  8799. entity.Property(e => e.SubsidyJuniorProfit).HasColumnType("decimal(18,2)");
  8800. entity.Property(e => e.SubsidyTotalProfit).HasColumnType("decimal(18,2)");
  8801. entity.Property(e => e.TradeMonth)
  8802. .HasColumnType("varchar(6)")
  8803. .HasCharSet("utf8")
  8804. .HasCollation("utf8_general_ci");
  8805. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8806. entity.Property(e => e.UpdateMan)
  8807. .HasColumnType("varchar(50)")
  8808. .HasCharSet("utf8")
  8809. .HasCollation("utf8_general_ci");
  8810. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8811. entity.Property(e => e.Version).HasColumnType("int(11)");
  8812. });
  8813. modelBuilder.Entity<UserRank>(entity =>
  8814. {
  8815. entity.Property(e => e.Id).HasColumnType("int(11)");
  8816. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8817. entity.Property(e => e.CreateMan)
  8818. .HasColumnType("varchar(50)")
  8819. .HasCharSet("utf8")
  8820. .HasCollation("utf8_general_ci");
  8821. entity.Property(e => e.ExceedVal).HasColumnType("int(11)");
  8822. entity.Property(e => e.NextRank).HasColumnType("int(11)");
  8823. entity.Property(e => e.OperateDate).HasColumnType("datetime");
  8824. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8825. entity.Property(e => e.Rank).HasColumnType("int(11)");
  8826. entity.Property(e => e.SeoDescription)
  8827. .HasColumnType("varchar(500)")
  8828. .HasCharSet("utf8")
  8829. .HasCollation("utf8_general_ci");
  8830. entity.Property(e => e.SeoKeyword)
  8831. .HasColumnType("varchar(200)")
  8832. .HasCharSet("utf8")
  8833. .HasCollation("utf8_general_ci");
  8834. entity.Property(e => e.SeoTitle)
  8835. .HasColumnType("varchar(100)")
  8836. .HasCharSet("utf8")
  8837. .HasCollation("utf8_general_ci");
  8838. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8839. entity.Property(e => e.StatMonth).HasColumnType("int(11)");
  8840. entity.Property(e => e.StatYear).HasColumnType("int(11)");
  8841. entity.Property(e => e.Status).HasColumnType("int(11)");
  8842. entity.Property(e => e.TradeAmt).HasColumnType("decimal(18,2)");
  8843. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8844. entity.Property(e => e.UpdateMan)
  8845. .HasColumnType("varchar(50)")
  8846. .HasCharSet("utf8")
  8847. .HasCollation("utf8_general_ci");
  8848. entity.Property(e => e.UpgradeFlag)
  8849. .HasColumnType("bit(1)")
  8850. .HasDefaultValueSql("b'0'");
  8851. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8852. entity.Property(e => e.Version).HasColumnType("int(11)");
  8853. entity.Property(e => e.WhiteRank).HasColumnType("int(11)");
  8854. });
  8855. modelBuilder.Entity<UserRankWhite>(entity =>
  8856. {
  8857. entity.Property(e => e.Id).HasColumnType("int(11)");
  8858. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8859. entity.Property(e => e.CreateMan)
  8860. .HasColumnType("varchar(50)")
  8861. .HasCharSet("utf8")
  8862. .HasCollation("utf8_general_ci");
  8863. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8864. entity.Property(e => e.Rank).HasColumnType("int(11)");
  8865. entity.Property(e => e.SeoDescription)
  8866. .HasColumnType("varchar(500)")
  8867. .HasCharSet("utf8")
  8868. .HasCollation("utf8_general_ci");
  8869. entity.Property(e => e.SeoKeyword)
  8870. .HasColumnType("varchar(200)")
  8871. .HasCharSet("utf8")
  8872. .HasCollation("utf8_general_ci");
  8873. entity.Property(e => e.SeoTitle)
  8874. .HasColumnType("varchar(100)")
  8875. .HasCharSet("utf8")
  8876. .HasCollation("utf8_general_ci");
  8877. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8878. entity.Property(e => e.Status).HasColumnType("int(11)");
  8879. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8880. entity.Property(e => e.UpdateMan)
  8881. .HasColumnType("varchar(50)")
  8882. .HasCharSet("utf8")
  8883. .HasCollation("utf8_general_ci");
  8884. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8885. entity.Property(e => e.Version).HasColumnType("int(11)");
  8886. });
  8887. modelBuilder.Entity<UserRebateDetail>(entity =>
  8888. {
  8889. entity.Property(e => e.Id).HasColumnType("int(11)");
  8890. entity.Property(e => e.ChannelMerNo)
  8891. .HasColumnType("varchar(32)")
  8892. .HasCharSet("utf8")
  8893. .HasCollation("utf8_general_ci");
  8894. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8895. entity.Property(e => e.CreateMan)
  8896. .HasColumnType("varchar(50)")
  8897. .HasCharSet("utf8")
  8898. .HasCollation("utf8_general_ci");
  8899. entity.Property(e => e.CreditRewardAmount).HasColumnType("decimal(18,2)");
  8900. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  8901. entity.Property(e => e.DebitRewardAmount).HasColumnType("decimal(18,2)");
  8902. entity.Property(e => e.DebitTradeAmt).HasColumnType("decimal(18,2)");
  8903. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  8904. entity.Property(e => e.MgrName)
  8905. .HasColumnType("varchar(32)")
  8906. .HasCharSet("utf8")
  8907. .HasCollation("utf8_general_ci");
  8908. entity.Property(e => e.MgrNo)
  8909. .HasColumnType("varchar(16)")
  8910. .HasCharSet("utf8")
  8911. .HasCollation("utf8_general_ci");
  8912. entity.Property(e => e.ProductName)
  8913. .HasColumnType("varchar(32)")
  8914. .HasCharSet("utf8")
  8915. .HasCollation("utf8_general_ci");
  8916. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  8917. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8918. entity.Property(e => e.RebateMonthCount).HasColumnType("int(11)");
  8919. entity.Property(e => e.RebateRewardNo)
  8920. .HasColumnType("varchar(32)")
  8921. .HasCharSet("utf8")
  8922. .HasCollation("utf8_general_ci");
  8923. entity.Property(e => e.RebateType).HasColumnType("int(11)");
  8924. entity.Property(e => e.Remark)
  8925. .HasColumnType("varchar(64)")
  8926. .HasCharSet("utf8")
  8927. .HasCollation("utf8_general_ci");
  8928. entity.Property(e => e.SeoDescription)
  8929. .HasColumnType("varchar(500)")
  8930. .HasCharSet("utf8")
  8931. .HasCollation("utf8_general_ci");
  8932. entity.Property(e => e.SeoKeyword)
  8933. .HasColumnType("varchar(200)")
  8934. .HasCharSet("utf8")
  8935. .HasCollation("utf8_general_ci");
  8936. entity.Property(e => e.SeoTitle)
  8937. .HasColumnType("varchar(100)")
  8938. .HasCharSet("utf8")
  8939. .HasCollation("utf8_general_ci");
  8940. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8941. entity.Property(e => e.Status).HasColumnType("int(11)");
  8942. entity.Property(e => e.TradeDate)
  8943. .HasColumnType("varchar(8)")
  8944. .HasCharSet("utf8")
  8945. .HasCollation("utf8_general_ci");
  8946. entity.Property(e => e.TradeMonth)
  8947. .HasColumnType("varchar(6)")
  8948. .HasCharSet("utf8")
  8949. .HasCollation("utf8_general_ci");
  8950. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8951. entity.Property(e => e.UpdateMan)
  8952. .HasColumnType("varchar(50)")
  8953. .HasCharSet("utf8")
  8954. .HasCollation("utf8_general_ci");
  8955. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8956. entity.Property(e => e.Version).HasColumnType("int(11)");
  8957. });
  8958. modelBuilder.Entity<UserSnActInfo>(entity =>
  8959. {
  8960. entity.Property(e => e.Id).HasColumnType("int(11)");
  8961. entity.Property(e => e.ActUserId).HasColumnType("int(11)");
  8962. entity.Property(e => e.ActiveStatus).HasColumnType("int(11)");
  8963. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  8964. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8965. entity.Property(e => e.CreateMan)
  8966. .HasColumnType("varchar(50)")
  8967. .HasCharSet("utf8")
  8968. .HasCollation("utf8_general_ci");
  8969. entity.Property(e => e.EffectEndActDate)
  8970. .HasColumnType("varchar(8)")
  8971. .HasCharSet("utf8")
  8972. .HasCollation("utf8_general_ci");
  8973. entity.Property(e => e.EffectEndCycleDate)
  8974. .HasColumnType("varchar(8)")
  8975. .HasCharSet("utf8")
  8976. .HasCollation("utf8_general_ci");
  8977. entity.Property(e => e.EffectStartActDate)
  8978. .HasColumnType("varchar(8)")
  8979. .HasCharSet("utf8")
  8980. .HasCollation("utf8_general_ci");
  8981. entity.Property(e => e.EffectStartCycleDate)
  8982. .HasColumnType("varchar(8)")
  8983. .HasCharSet("utf8")
  8984. .HasCollation("utf8_general_ci");
  8985. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8986. entity.Property(e => e.Remark)
  8987. .HasColumnType("varchar(128)")
  8988. .HasCharSet("utf8")
  8989. .HasCollation("utf8_general_ci");
  8990. entity.Property(e => e.SeoDescription)
  8991. .HasColumnType("varchar(500)")
  8992. .HasCharSet("utf8")
  8993. .HasCollation("utf8_general_ci");
  8994. entity.Property(e => e.SeoKeyword)
  8995. .HasColumnType("varchar(200)")
  8996. .HasCharSet("utf8")
  8997. .HasCollation("utf8_general_ci");
  8998. entity.Property(e => e.SeoTitle)
  8999. .HasColumnType("varchar(100)")
  9000. .HasCharSet("utf8")
  9001. .HasCollation("utf8_general_ci");
  9002. entity.Property(e => e.SnNo)
  9003. .HasColumnType("varchar(32)")
  9004. .HasCharSet("utf8")
  9005. .HasCollation("utf8_general_ci");
  9006. entity.Property(e => e.SnShipDate).HasColumnType("datetime");
  9007. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  9008. entity.Property(e => e.SnType).HasColumnType("int(11)");
  9009. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9010. entity.Property(e => e.SourceShipDate).HasColumnType("datetime");
  9011. entity.Property(e => e.SourceSnNo)
  9012. .HasColumnType("varchar(32)")
  9013. .HasCharSet("utf8")
  9014. .HasCollation("utf8_general_ci");
  9015. entity.Property(e => e.SourceSnType).HasColumnType("int(11)");
  9016. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  9017. entity.Property(e => e.StandardDate)
  9018. .HasColumnType("varchar(8)")
  9019. .HasCharSet("utf8")
  9020. .HasCollation("utf8_general_ci");
  9021. entity.Property(e => e.Status).HasColumnType("int(11)");
  9022. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9023. entity.Property(e => e.UpdateMan)
  9024. .HasColumnType("varchar(50)")
  9025. .HasCharSet("utf8")
  9026. .HasCollation("utf8_general_ci");
  9027. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9028. entity.Property(e => e.Version).HasColumnType("int(11)");
  9029. });
  9030. modelBuilder.Entity<UserSnDelayChange>(entity =>
  9031. {
  9032. entity.Property(e => e.Id).HasColumnType("int(11)");
  9033. entity.Property(e => e.ActivityRuleId).HasColumnType("int(11)");
  9034. entity.Property(e => e.AfterEndCycleDate)
  9035. .HasColumnType("varchar(8)")
  9036. .HasCharSet("utf8")
  9037. .HasCollation("utf8_general_ci");
  9038. entity.Property(e => e.BeforeEndCycleDate)
  9039. .HasColumnType("varchar(8)")
  9040. .HasCharSet("utf8")
  9041. .HasCollation("utf8_general_ci");
  9042. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9043. entity.Property(e => e.ChangeRecordNo)
  9044. .HasColumnType("varchar(32)")
  9045. .HasCharSet("utf8")
  9046. .HasCollation("utf8_general_ci");
  9047. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9048. entity.Property(e => e.CreateMan)
  9049. .HasColumnType("varchar(50)")
  9050. .HasCharSet("utf8")
  9051. .HasCollation("utf8_general_ci");
  9052. entity.Property(e => e.InitCycleDate)
  9053. .HasColumnType("varchar(8)")
  9054. .HasCharSet("utf8")
  9055. .HasCollation("utf8_general_ci");
  9056. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9057. entity.Property(e => e.RecUserId).HasColumnType("int(11)");
  9058. entity.Property(e => e.Remark)
  9059. .HasColumnType("varchar(128)")
  9060. .HasCharSet("utf8")
  9061. .HasCollation("utf8_general_ci");
  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.SnDelayDay).HasColumnType("int(11)");
  9075. entity.Property(e => e.SnNo)
  9076. .HasColumnType("varchar(32)")
  9077. .HasCharSet("utf8")
  9078. .HasCollation("utf8_general_ci");
  9079. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  9080. entity.Property(e => e.SnType).HasColumnType("int(11)");
  9081. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9082. entity.Property(e => e.SourceSnNo)
  9083. .HasColumnType("varchar(32)")
  9084. .HasCharSet("utf8")
  9085. .HasCollation("utf8_general_ci");
  9086. entity.Property(e => e.SourceSnShipDate).HasColumnType("datetime");
  9087. entity.Property(e => e.SourceSnType).HasColumnType("int(11)");
  9088. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  9089. entity.Property(e => e.Status).HasColumnType("int(11)");
  9090. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9091. entity.Property(e => e.UpdateMan)
  9092. .HasColumnType("varchar(50)")
  9093. .HasCharSet("utf8")
  9094. .HasCollation("utf8_general_ci");
  9095. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9096. entity.Property(e => e.Version).HasColumnType("int(11)");
  9097. });
  9098. modelBuilder.Entity<UserStoreChange>(entity =>
  9099. {
  9100. entity.Property(e => e.Id).HasColumnType("int(11)");
  9101. entity.Property(e => e.ActRewardUserId).HasColumnType("int(11)");
  9102. entity.Property(e => e.ActiveStatus).HasColumnType("int(11)");
  9103. entity.Property(e => e.BindMerchantId).HasColumnType("int(11)");
  9104. entity.Property(e => e.BindStatus).HasColumnType("int(11)");
  9105. entity.Property(e => e.BizBatchNo)
  9106. .HasColumnType("varchar(32)")
  9107. .HasCharSet("utf8")
  9108. .HasCollation("utf8_general_ci");
  9109. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9110. entity.Property(e => e.BrandType)
  9111. .HasColumnType("varchar(10)")
  9112. .HasCharSet("utf8")
  9113. .HasCollation("utf8_general_ci");
  9114. entity.Property(e => e.ChangeRecordNo)
  9115. .HasColumnType("varchar(32)")
  9116. .HasCharSet("utf8")
  9117. .HasCollation("utf8_general_ci");
  9118. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9119. entity.Property(e => e.CreateMan)
  9120. .HasColumnType("varchar(50)")
  9121. .HasCharSet("utf8")
  9122. .HasCollation("utf8_general_ci");
  9123. entity.Property(e => e.DeviceModel)
  9124. .HasColumnType("varchar(32)")
  9125. .HasCharSet("utf8")
  9126. .HasCollation("utf8_general_ci");
  9127. entity.Property(e => e.DeviceType)
  9128. .HasColumnType("varchar(32)")
  9129. .HasCharSet("utf8")
  9130. .HasCollation("utf8_general_ci");
  9131. entity.Property(e => e.DeviceVendor)
  9132. .HasColumnType("varchar(32)")
  9133. .HasCharSet("utf8")
  9134. .HasCollation("utf8_general_ci");
  9135. entity.Property(e => e.FromDate).HasColumnType("datetime");
  9136. entity.Property(e => e.FromRemark)
  9137. .HasColumnType("varchar(64)")
  9138. .HasCharSet("utf8")
  9139. .HasCollation("utf8_general_ci");
  9140. entity.Property(e => e.FromUserId).HasColumnType("int(11)");
  9141. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9142. entity.Property(e => e.SeoDescription)
  9143. .HasColumnType("varchar(500)")
  9144. .HasCharSet("utf8")
  9145. .HasCollation("utf8_general_ci");
  9146. entity.Property(e => e.SeoKeyword)
  9147. .HasColumnType("varchar(200)")
  9148. .HasCharSet("utf8")
  9149. .HasCollation("utf8_general_ci");
  9150. entity.Property(e => e.SeoTitle)
  9151. .HasColumnType("varchar(100)")
  9152. .HasCharSet("utf8")
  9153. .HasCollation("utf8_general_ci");
  9154. entity.Property(e => e.SnNo)
  9155. .HasColumnType("varchar(32)")
  9156. .HasCharSet("utf8")
  9157. .HasCollation("utf8_general_ci");
  9158. entity.Property(e => e.SnStatus).HasColumnType("int(11)");
  9159. entity.Property(e => e.SnType).HasColumnType("int(11)");
  9160. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9161. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  9162. entity.Property(e => e.Status).HasColumnType("int(11)");
  9163. entity.Property(e => e.StockOpDirect).HasColumnType("int(11)");
  9164. entity.Property(e => e.ToDate).HasColumnType("datetime");
  9165. entity.Property(e => e.ToRemark)
  9166. .HasColumnType("varchar(64)")
  9167. .HasCharSet("utf8")
  9168. .HasCollation("utf8_general_ci");
  9169. entity.Property(e => e.ToStoreId).HasColumnType("int(11)");
  9170. entity.Property(e => e.ToUserId).HasColumnType("int(11)");
  9171. entity.Property(e => e.TransType).HasColumnType("int(11)");
  9172. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9173. entity.Property(e => e.UpdateMan)
  9174. .HasColumnType("varchar(50)")
  9175. .HasCharSet("utf8")
  9176. .HasCollation("utf8_general_ci");
  9177. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9178. entity.Property(e => e.Version).HasColumnType("int(11)");
  9179. });
  9180. modelBuilder.Entity<UserSwapDetail>(entity =>
  9181. {
  9182. entity.Property(e => e.Id).HasColumnType("int(11)");
  9183. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9184. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9185. entity.Property(e => e.CreateMan)
  9186. .HasColumnType("varchar(50)")
  9187. .HasCharSet("utf8")
  9188. .HasCollation("utf8_general_ci");
  9189. entity.Property(e => e.DirectSnTradeAmt).HasColumnType("decimal(18,2)");
  9190. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9191. entity.Property(e => e.RecordNo)
  9192. .HasColumnType("varchar(32)")
  9193. .HasCharSet("utf8")
  9194. .HasCollation("utf8_general_ci");
  9195. entity.Property(e => e.Remark)
  9196. .HasColumnType("varchar(64)")
  9197. .HasCharSet("utf8")
  9198. .HasCollation("utf8_general_ci");
  9199. entity.Property(e => e.RiskResult).HasColumnType("int(11)");
  9200. entity.Property(e => e.SeoDescription)
  9201. .HasColumnType("varchar(500)")
  9202. .HasCharSet("utf8")
  9203. .HasCollation("utf8_general_ci");
  9204. entity.Property(e => e.SeoKeyword)
  9205. .HasColumnType("varchar(200)")
  9206. .HasCharSet("utf8")
  9207. .HasCollation("utf8_general_ci");
  9208. entity.Property(e => e.SeoTitle)
  9209. .HasColumnType("varchar(100)")
  9210. .HasCharSet("utf8")
  9211. .HasCollation("utf8_general_ci");
  9212. entity.Property(e => e.SnNo)
  9213. .HasColumnType("varchar(32)")
  9214. .HasCharSet("utf8")
  9215. .HasCollation("utf8_general_ci");
  9216. entity.Property(e => e.SnType).HasColumnType("int(11)");
  9217. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9218. entity.Property(e => e.SourceSnNo)
  9219. .HasColumnType("varchar(32)")
  9220. .HasCharSet("utf8")
  9221. .HasCollation("utf8_general_ci");
  9222. entity.Property(e => e.SourceSnType).HasColumnType("int(11)");
  9223. entity.Property(e => e.Status).HasColumnType("int(11)");
  9224. entity.Property(e => e.SwapExtProductTypes)
  9225. .HasColumnType("varchar(16)")
  9226. .HasCharSet("utf8")
  9227. .HasCollation("utf8_general_ci");
  9228. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  9229. entity.Property(e => e.TradeDate)
  9230. .HasColumnType("varchar(8)")
  9231. .HasCharSet("utf8")
  9232. .HasCollation("utf8_general_ci");
  9233. entity.Property(e => e.TradeMonth)
  9234. .HasColumnType("varchar(6)")
  9235. .HasCharSet("utf8")
  9236. .HasCollation("utf8_general_ci");
  9237. entity.Property(e => e.UpSourceSnNo)
  9238. .HasColumnType("varchar(32)")
  9239. .HasCharSet("utf8")
  9240. .HasCollation("utf8_general_ci");
  9241. entity.Property(e => e.UpSourceSnType).HasColumnType("int(11)");
  9242. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9243. entity.Property(e => e.UpdateMan)
  9244. .HasColumnType("varchar(50)")
  9245. .HasCharSet("utf8")
  9246. .HasCollation("utf8_general_ci");
  9247. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9248. entity.Property(e => e.Version).HasColumnType("int(11)");
  9249. });
  9250. modelBuilder.Entity<UserSwapSummary>(entity =>
  9251. {
  9252. entity.Property(e => e.Id).HasColumnType("int(11)");
  9253. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9254. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9255. entity.Property(e => e.CreateMan)
  9256. .HasColumnType("varchar(50)")
  9257. .HasCharSet("utf8")
  9258. .HasCollation("utf8_general_ci");
  9259. entity.Property(e => e.DirAvgTradeAmt).HasColumnType("decimal(18,2)");
  9260. entity.Property(e => e.DirectActMerCount).HasColumnType("int(11)");
  9261. entity.Property(e => e.DirectTradeAmt).HasColumnType("decimal(18,2)");
  9262. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9263. entity.Property(e => e.RiskStatus).HasColumnType("int(11)");
  9264. entity.Property(e => e.RuleId).HasColumnType("int(11)");
  9265. entity.Property(e => e.SeoDescription)
  9266. .HasColumnType("varchar(500)")
  9267. .HasCharSet("utf8")
  9268. .HasCollation("utf8_general_ci");
  9269. entity.Property(e => e.SeoKeyword)
  9270. .HasColumnType("varchar(200)")
  9271. .HasCharSet("utf8")
  9272. .HasCollation("utf8_general_ci");
  9273. entity.Property(e => e.SeoTitle)
  9274. .HasColumnType("varchar(100)")
  9275. .HasCharSet("utf8")
  9276. .HasCollation("utf8_general_ci");
  9277. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9278. entity.Property(e => e.Status).HasColumnType("int(11)");
  9279. entity.Property(e => e.SwapExtProductTypes)
  9280. .HasColumnType("varchar(16)")
  9281. .HasCharSet("utf8")
  9282. .HasCollation("utf8_general_ci");
  9283. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  9284. entity.Property(e => e.TradeMonth)
  9285. .HasColumnType("varchar(6)")
  9286. .HasCharSet("utf8")
  9287. .HasCollation("utf8_general_ci");
  9288. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9289. entity.Property(e => e.UpdateMan)
  9290. .HasColumnType("varchar(50)")
  9291. .HasCharSet("utf8")
  9292. .HasCollation("utf8_general_ci");
  9293. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9294. entity.Property(e => e.Version).HasColumnType("int(11)");
  9295. });
  9296. modelBuilder.Entity<UserSwapWhite>(entity =>
  9297. {
  9298. entity.Property(e => e.Id).HasColumnType("int(11)");
  9299. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9300. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9301. entity.Property(e => e.CreateMan)
  9302. .HasColumnType("varchar(50)")
  9303. .HasCharSet("utf8")
  9304. .HasCollation("utf8_general_ci");
  9305. entity.Property(e => e.EndEffectTime).HasColumnType("datetime");
  9306. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9307. entity.Property(e => e.Remark)
  9308. .HasColumnType("varchar(64)")
  9309. .HasCharSet("utf8")
  9310. .HasCollation("utf8_general_ci");
  9311. entity.Property(e => e.RiskType).HasColumnType("int(11)");
  9312. entity.Property(e => e.SeoDescription)
  9313. .HasColumnType("varchar(500)")
  9314. .HasCharSet("utf8")
  9315. .HasCollation("utf8_general_ci");
  9316. entity.Property(e => e.SeoKeyword)
  9317. .HasColumnType("varchar(200)")
  9318. .HasCharSet("utf8")
  9319. .HasCollation("utf8_general_ci");
  9320. entity.Property(e => e.SeoTitle)
  9321. .HasColumnType("varchar(100)")
  9322. .HasCharSet("utf8")
  9323. .HasCollation("utf8_general_ci");
  9324. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9325. entity.Property(e => e.StartEffectTime).HasColumnType("datetime");
  9326. entity.Property(e => e.Status).HasColumnType("int(11)");
  9327. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9328. entity.Property(e => e.UpdateMan)
  9329. .HasColumnType("varchar(50)")
  9330. .HasCharSet("utf8")
  9331. .HasCollation("utf8_general_ci");
  9332. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9333. entity.Property(e => e.Version).HasColumnType("int(11)");
  9334. });
  9335. modelBuilder.Entity<UserTradeDaySummary>(entity =>
  9336. {
  9337. entity.Property(e => e.Id).HasColumnType("int(11)");
  9338. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9339. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9340. entity.Property(e => e.CreateMan)
  9341. .HasColumnType("varchar(50)")
  9342. .HasCharSet("utf8")
  9343. .HasCollation("utf8_general_ci");
  9344. entity.Property(e => e.DirectDebitCapNum).HasColumnType("int(11)");
  9345. entity.Property(e => e.DirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  9346. entity.Property(e => e.DirectTradeAmt).HasColumnType("decimal(18,2)");
  9347. entity.Property(e => e.NonDirectDebitCapNum).HasColumnType("int(11)");
  9348. entity.Property(e => e.NonDirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  9349. entity.Property(e => e.NonDirectTradeAmt).HasColumnType("decimal(18,2)");
  9350. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9351. entity.Property(e => e.Remark)
  9352. .HasColumnType("varchar(64)")
  9353. .HasCharSet("utf8")
  9354. .HasCollation("utf8_general_ci");
  9355. entity.Property(e => e.SeoDescription)
  9356. .HasColumnType("varchar(500)")
  9357. .HasCharSet("utf8")
  9358. .HasCollation("utf8_general_ci");
  9359. entity.Property(e => e.SeoKeyword)
  9360. .HasColumnType("varchar(200)")
  9361. .HasCharSet("utf8")
  9362. .HasCollation("utf8_general_ci");
  9363. entity.Property(e => e.SeoTitle)
  9364. .HasColumnType("varchar(100)")
  9365. .HasCharSet("utf8")
  9366. .HasCollation("utf8_general_ci");
  9367. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9368. entity.Property(e => e.Status).HasColumnType("int(11)");
  9369. entity.Property(e => e.TradeDate)
  9370. .HasColumnType("varchar(8)")
  9371. .HasCharSet("utf8")
  9372. .HasCollation("utf8_general_ci");
  9373. entity.Property(e => e.TradeMonth)
  9374. .HasColumnType("varchar(6)")
  9375. .HasCharSet("utf8")
  9376. .HasCollation("utf8_general_ci");
  9377. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9378. entity.Property(e => e.UpdateMan)
  9379. .HasColumnType("varchar(50)")
  9380. .HasCharSet("utf8")
  9381. .HasCollation("utf8_general_ci");
  9382. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9383. entity.Property(e => e.Version).HasColumnType("int(11)");
  9384. });
  9385. modelBuilder.Entity<UserTradeMonthSummary>(entity =>
  9386. {
  9387. entity.Property(e => e.Id).HasColumnType("int(11)");
  9388. entity.Property(e => e.ActiveBuddyMerStatus).HasColumnType("int(11)");
  9389. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9390. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9391. entity.Property(e => e.CreateMan)
  9392. .HasColumnType("varchar(50)")
  9393. .HasCharSet("utf8")
  9394. .HasCollation("utf8_general_ci");
  9395. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  9396. entity.Property(e => e.DebitCapTradeAmt).HasColumnType("decimal(18,2)");
  9397. entity.Property(e => e.DebitCapTradeNum).HasColumnType("int(11)");
  9398. entity.Property(e => e.DebitNotCapTradeAmt).HasColumnType("decimal(18,2)");
  9399. entity.Property(e => e.MallPosOrderStatus).HasColumnType("int(11)");
  9400. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9401. entity.Property(e => e.Remark)
  9402. .HasColumnType("varchar(64)")
  9403. .HasCharSet("utf8")
  9404. .HasCollation("utf8_general_ci");
  9405. entity.Property(e => e.SeoDescription)
  9406. .HasColumnType("varchar(500)")
  9407. .HasCharSet("utf8")
  9408. .HasCollation("utf8_general_ci");
  9409. entity.Property(e => e.SeoKeyword)
  9410. .HasColumnType("varchar(200)")
  9411. .HasCharSet("utf8")
  9412. .HasCollation("utf8_general_ci");
  9413. entity.Property(e => e.SeoTitle)
  9414. .HasColumnType("varchar(100)")
  9415. .HasCharSet("utf8")
  9416. .HasCollation("utf8_general_ci");
  9417. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9418. entity.Property(e => e.StatType).HasColumnType("int(11)");
  9419. entity.Property(e => e.Status).HasColumnType("int(11)");
  9420. entity.Property(e => e.TradeAmt).HasColumnType("decimal(18,2)");
  9421. entity.Property(e => e.TradeMonth)
  9422. .HasColumnType("varchar(6)")
  9423. .HasCharSet("utf8")
  9424. .HasCollation("utf8_general_ci");
  9425. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9426. entity.Property(e => e.UpdateMan)
  9427. .HasColumnType("varchar(50)")
  9428. .HasCharSet("utf8")
  9429. .HasCollation("utf8_general_ci");
  9430. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9431. entity.Property(e => e.Version).HasColumnType("int(11)");
  9432. });
  9433. modelBuilder.Entity<Users>(entity =>
  9434. {
  9435. entity.Property(e => e.Id).HasColumnType("int(11)");
  9436. entity.Property(e => e.AccessToken)
  9437. .HasColumnType("varchar(64)")
  9438. .HasCharSet("utf8")
  9439. .HasCollation("utf8_general_ci");
  9440. entity.Property(e => e.ActiveRewardAmount).HasColumnType("decimal(18,2)");
  9441. entity.Property(e => e.Address)
  9442. .HasColumnType("varchar(50)")
  9443. .HasCharSet("utf8")
  9444. .HasCollation("utf8_general_ci");
  9445. entity.Property(e => e.AgentAreas)
  9446. .HasColumnType("varchar(50)")
  9447. .HasCharSet("utf8")
  9448. .HasCollation("utf8_general_ci");
  9449. entity.Property(e => e.AgentLevel).HasColumnType("int(11)");
  9450. entity.Property(e => e.AlipayUserId)
  9451. .HasColumnType("varchar(50)")
  9452. .HasCharSet("utf8")
  9453. .HasCollation("utf8_general_ci");
  9454. entity.Property(e => e.Areas)
  9455. .HasColumnType("varchar(30)")
  9456. .HasCharSet("utf8")
  9457. .HasCollation("utf8_general_ci");
  9458. entity.Property(e => e.AuditStatus).HasColumnType("int(11)");
  9459. entity.Property(e => e.AuthDate).HasColumnType("datetime");
  9460. entity.Property(e => e.AuthFlag)
  9461. .HasColumnType("bit(1)")
  9462. .HasDefaultValueSql("b'0'");
  9463. entity.Property(e => e.BankCardPositiveImage)
  9464. .HasColumnType("varchar(200)")
  9465. .HasCharSet("utf8")
  9466. .HasCollation("utf8_general_ci");
  9467. entity.Property(e => e.CarIds)
  9468. .HasColumnType("varchar(100)")
  9469. .HasCharSet("utf8")
  9470. .HasCollation("utf8_general_ci");
  9471. entity.Property(e => e.CardNo)
  9472. .HasColumnType("varchar(30)")
  9473. .HasCharSet("utf8")
  9474. .HasCollation("utf8_general_ci");
  9475. entity.Property(e => e.CardRecCode)
  9476. .HasColumnType("varchar(200)")
  9477. .HasCharSet("utf8")
  9478. .HasCollation("utf8_general_ci");
  9479. entity.Property(e => e.CashFreezeAmt).HasColumnType("decimal(18,2)");
  9480. entity.Property(e => e.CertFrontImage)
  9481. .HasColumnType("varchar(200)")
  9482. .HasCharSet("utf8")
  9483. .HasCollation("utf8_general_ci");
  9484. entity.Property(e => e.CertId)
  9485. .HasColumnType("varchar(18)")
  9486. .HasCharSet("utf8")
  9487. .HasCollation("utf8_general_ci");
  9488. entity.Property(e => e.CertReverseImage)
  9489. .HasColumnType("varchar(200)")
  9490. .HasCharSet("utf8")
  9491. .HasCollation("utf8_general_ci");
  9492. entity.Property(e => e.CertValidEndDate).HasColumnType("datetime");
  9493. entity.Property(e => e.CertValidStartDate).HasColumnType("datetime");
  9494. entity.Property(e => e.CitySetDate).HasColumnType("datetime");
  9495. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9496. entity.Property(e => e.CreateMan)
  9497. .HasColumnType("varchar(50)")
  9498. .HasCharSet("utf8")
  9499. .HasCollation("utf8_general_ci");
  9500. entity.Property(e => e.DeviceId)
  9501. .HasColumnType("varchar(128)")
  9502. .HasCharSet("utf8")
  9503. .HasCollation("utf8_general_ci");
  9504. entity.Property(e => e.DeviceToken)
  9505. .HasColumnType("varchar(64)")
  9506. .HasCharSet("utf8")
  9507. .HasCollation("utf8_general_ci");
  9508. entity.Property(e => e.ExpiredDate).HasColumnType("datetime");
  9509. entity.Property(e => e.GroupId)
  9510. .HasColumnType("varchar(200)")
  9511. .HasCharSet("utf8")
  9512. .HasCollation("utf8_general_ci");
  9513. entity.Property(e => e.HandCertImage)
  9514. .HasColumnType("varchar(200)")
  9515. .HasCharSet("utf8")
  9516. .HasCollation("utf8_general_ci");
  9517. entity.Property(e => e.HandPwd)
  9518. .HasColumnType("varchar(32)")
  9519. .HasCharSet("utf8")
  9520. .HasCollation("utf8_general_ci");
  9521. entity.Property(e => e.HeadPhoto)
  9522. .HasColumnType("varchar(2000)")
  9523. .HasCharSet("utf8")
  9524. .HasCollation("utf8_general_ci");
  9525. entity.Property(e => e.IdCardEndNo)
  9526. .HasColumnType("varchar(4)")
  9527. .HasCharSet("utf8")
  9528. .HasCollation("utf8_general_ci");
  9529. entity.Property(e => e.IsNewUser)
  9530. .HasColumnType("bit(1)")
  9531. .HasDefaultValueSql("b'0'");
  9532. entity.Property(e => e.LockStatus)
  9533. .HasColumnType("bit(1)")
  9534. .HasDefaultValueSql("b'0'");
  9535. entity.Property(e => e.LoginPwd)
  9536. .HasColumnType("varchar(32)")
  9537. .HasCharSet("utf8")
  9538. .HasCollation("utf8_general_ci");
  9539. entity.Property(e => e.LoginStatus).HasColumnType("int(11)");
  9540. entity.Property(e => e.MakerCode)
  9541. .HasColumnType("varchar(32)")
  9542. .HasCharSet("utf8")
  9543. .HasCollation("utf8_general_ci");
  9544. entity.Property(e => e.MerchantDate).HasColumnType("datetime");
  9545. entity.Property(e => e.MerchantType).HasColumnType("int(11)");
  9546. entity.Property(e => e.Mobile)
  9547. .HasColumnType("varchar(11)")
  9548. .HasCharSet("utf8")
  9549. .HasCollation("utf8_general_ci");
  9550. entity.Property(e => e.NickName)
  9551. .HasColumnType("varchar(300)")
  9552. .HasCharSet("utf8")
  9553. .HasCollation("utf8_general_ci");
  9554. entity.Property(e => e.OpenId)
  9555. .HasColumnType("varchar(50)")
  9556. .HasCharSet("utf8")
  9557. .HasCollation("utf8_general_ci");
  9558. entity.Property(e => e.ParentNav)
  9559. .HasColumnType("longtext")
  9560. .HasCharSet("utf8")
  9561. .HasCollation("utf8_general_ci");
  9562. entity.Property(e => e.ParentUserId).HasColumnType("int(11)");
  9563. entity.Property(e => e.PayPwd)
  9564. .HasColumnType("varchar(32)")
  9565. .HasCharSet("utf8")
  9566. .HasCollation("utf8_general_ci");
  9567. entity.Property(e => e.ProfitRewardRate).HasColumnType("decimal(18,2)");
  9568. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9569. entity.Property(e => e.RealName)
  9570. .HasColumnType("varchar(30)")
  9571. .HasCharSet("utf8")
  9572. .HasCollation("utf8_general_ci");
  9573. entity.Property(e => e.ReferenceCode)
  9574. .HasColumnType("varchar(200)")
  9575. .HasCharSet("utf8")
  9576. .HasCollation("utf8_general_ci");
  9577. entity.Property(e => e.ReferenceQrCode)
  9578. .HasColumnType("varchar(200)")
  9579. .HasCharSet("utf8")
  9580. .HasCollation("utf8_general_ci");
  9581. entity.Property(e => e.ReferralUserId).HasColumnType("int(11)");
  9582. entity.Property(e => e.Remark)
  9583. .HasColumnType("mediumtext")
  9584. .HasCharSet("utf8")
  9585. .HasCollation("utf8_general_ci");
  9586. entity.Property(e => e.RiskFlag)
  9587. .HasColumnType("bit(1)")
  9588. .HasDefaultValueSql("b'0'");
  9589. entity.Property(e => e.RiskRemark)
  9590. .HasColumnType("varchar(64)")
  9591. .HasCharSet("utf8")
  9592. .HasCollation("utf8_general_ci");
  9593. entity.Property(e => e.RreezeRemark)
  9594. .HasColumnType("varchar(64)")
  9595. .HasCharSet("utf8")
  9596. .HasCollation("utf8_general_ci");
  9597. entity.Property(e => e.SeoDescription)
  9598. .HasColumnType("varchar(500)")
  9599. .HasCharSet("utf8")
  9600. .HasCollation("utf8_general_ci");
  9601. entity.Property(e => e.SeoKeyword)
  9602. .HasColumnType("varchar(200)")
  9603. .HasCharSet("utf8")
  9604. .HasCollation("utf8_general_ci");
  9605. entity.Property(e => e.SeoTitle)
  9606. .HasColumnType("varchar(100)")
  9607. .HasCharSet("utf8")
  9608. .HasCollation("utf8_general_ci");
  9609. entity.Property(e => e.SettleAmount).HasColumnType("decimal(18,2)");
  9610. entity.Property(e => e.SettleBankCardName)
  9611. .HasColumnType("varchar(20)")
  9612. .HasCharSet("utf8")
  9613. .HasCollation("utf8_general_ci");
  9614. entity.Property(e => e.SettleBankCardNo)
  9615. .HasColumnType("varchar(32)")
  9616. .HasCharSet("utf8")
  9617. .HasCollation("utf8_general_ci");
  9618. entity.Property(e => e.SettleBankName)
  9619. .HasColumnType("varchar(32)")
  9620. .HasCharSet("utf8")
  9621. .HasCollation("utf8_general_ci");
  9622. entity.Property(e => e.SettleRemark)
  9623. .HasColumnType("varchar(64)")
  9624. .HasCharSet("utf8")
  9625. .HasCollation("utf8_general_ci");
  9626. entity.Property(e => e.Sex).HasColumnType("int(11)");
  9627. entity.Property(e => e.SignImgUrl)
  9628. .HasColumnType("varchar(200)")
  9629. .HasCharSet("utf8")
  9630. .HasCollation("utf8_general_ci");
  9631. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9632. entity.Property(e => e.Status).HasColumnType("int(11)");
  9633. entity.Property(e => e.Tags)
  9634. .HasColumnType("varchar(200)")
  9635. .HasCharSet("utf8")
  9636. .HasCollation("utf8_general_ci");
  9637. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9638. entity.Property(e => e.UpdateMan)
  9639. .HasColumnType("varchar(50)")
  9640. .HasCharSet("utf8")
  9641. .HasCollation("utf8_general_ci");
  9642. entity.Property(e => e.UserLevel).HasColumnType("int(11)");
  9643. entity.Property(e => e.UserProperty).HasColumnType("int(11)");
  9644. entity.Property(e => e.UserType).HasColumnType("int(11)");
  9645. entity.Property(e => e.Version).HasColumnType("int(11)");
  9646. });
  9647. OnModelCreatingPartial(modelBuilder);
  9648. }
  9649. partial void OnModelCreatingPartial(ModelBuilder modelBuilder);
  9650. }
  9651. }