WebCMSEntities.cs 565 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800
  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<ActivityRedPackageJoins> ActivityRedPackageJoins { get; set; }
  20. public virtual DbSet<ActivityRedPackageStock> ActivityRedPackageStock { get; set; }
  21. public virtual DbSet<ActivityRedPackageTop10> ActivityRedPackageTop10 { get; set; }
  22. public virtual DbSet<Advertisment> Advertisment { get; set; }
  23. public virtual DbSet<AgentLevelSet> AgentLevelSet { get; set; }
  24. public virtual DbSet<AppBottomNavs> AppBottomNavs { get; set; }
  25. public virtual DbSet<AppVersion> AppVersion { get; set; }
  26. public virtual DbSet<AppVideo> AppVideo { get; set; }
  27. public virtual DbSet<AppVideoList> AppVideoList { get; set; }
  28. public virtual DbSet<BankInfo> BankInfo { get; set; }
  29. public virtual DbSet<Col> Col { get; set; }
  30. public virtual DbSet<ConsumerOpenIds> ConsumerOpenIds { get; set; }
  31. public virtual DbSet<ConsumerOrderForNo> ConsumerOrderForNo { get; set; }
  32. public virtual DbSet<ConsumerOrders> ConsumerOrders { get; set; }
  33. public virtual DbSet<ConsumerProfit> ConsumerProfit { get; set; }
  34. public virtual DbSet<Consumers> Consumers { get; set; }
  35. public virtual DbSet<CouponAssignRecords> CouponAssignRecords { get; set; }
  36. public virtual DbSet<Coupons> Coupons { get; set; }
  37. public virtual DbSet<CouponsForUser> CouponsForUser { get; set; }
  38. public virtual DbSet<CustomTagSet> CustomTagSet { get; set; }
  39. public virtual DbSet<ErpCompanys> ErpCompanys { get; set; }
  40. public virtual DbSet<FileUpdateInfo> FileUpdateInfo { get; set; }
  41. public virtual DbSet<FluxProfitDetail> FluxProfitDetail { get; set; }
  42. public virtual DbSet<FluxProfitSummary> FluxProfitSummary { get; set; }
  43. public virtual DbSet<IndexIconList> IndexIconList { get; set; }
  44. public virtual DbSet<KqProductBrand> KqProductBrand { get; set; }
  45. public virtual DbSet<KqProductOrgs> KqProductOrgs { get; set; }
  46. public virtual DbSet<KqProductRuleSet> KqProductRuleSet { get; set; }
  47. public virtual DbSet<KqProducts> KqProducts { get; set; }
  48. public virtual DbSet<LeaderReserveRecord> LeaderReserveRecord { get; set; }
  49. public virtual DbSet<MachineApply> MachineApply { get; set; }
  50. public virtual DbSet<MachineApplyDetail> MachineApplyDetail { get; set; }
  51. public virtual DbSet<MachineChange> MachineChange { get; set; }
  52. public virtual DbSet<MachineChangeDetail> MachineChangeDetail { get; set; }
  53. public virtual DbSet<MachineForMerNo> MachineForMerNo { get; set; }
  54. public virtual DbSet<MachineForQrCode> MachineForQrCode { get; set; }
  55. public virtual DbSet<MachineForSnNo> MachineForSnNo { get; set; }
  56. public virtual DbSet<MachineRenew> MachineRenew { get; set; }
  57. public virtual DbSet<MachineReturn> MachineReturn { get; set; }
  58. public virtual DbSet<MachineUnBind> MachineUnBind { get; set; }
  59. public virtual DbSet<MenuRight> MenuRight { get; set; }
  60. public virtual DbSet<MerchantAddInfo> MerchantAddInfo { get; set; }
  61. public virtual DbSet<MerchantAdmin> MerchantAdmin { get; set; }
  62. public virtual DbSet<MerchantAuth> MerchantAuth { get; set; }
  63. public virtual DbSet<MerchantClass> MerchantClass { get; set; }
  64. public virtual DbSet<MerchantCol> MerchantCol { get; set; }
  65. public virtual DbSet<MerchantComment> MerchantComment { get; set; }
  66. public virtual DbSet<MerchantDepositReturns> MerchantDepositReturns { get; set; }
  67. public virtual DbSet<MerchantForCode> MerchantForCode { get; set; }
  68. public virtual DbSet<MerchantForMobile> MerchantForMobile { get; set; }
  69. public virtual DbSet<MerchantForName> MerchantForName { get; set; }
  70. public virtual DbSet<MerchantInfo> MerchantInfo { get; set; }
  71. public virtual DbSet<MerchantParamSet> MerchantParamSet { get; set; }
  72. public virtual DbSet<MerchantQrCode> MerchantQrCode { get; set; }
  73. public virtual DbSet<MerchantRebateDetail> MerchantRebateDetail { get; set; }
  74. public virtual DbSet<Merchants> Merchants { get; set; }
  75. public virtual DbSet<MobileCodeCheck> MobileCodeCheck { get; set; }
  76. public virtual DbSet<MsgBlackList> MsgBlackList { get; set; }
  77. public virtual DbSet<MsgPersonal> MsgPersonal { get; set; }
  78. public virtual DbSet<MsgPlacard> MsgPlacard { get; set; }
  79. public virtual DbSet<MsgPlacardRead> MsgPlacardRead { get; set; }
  80. public virtual DbSet<MsgPush> MsgPush { get; set; }
  81. public virtual DbSet<MsgSms> MsgSms { get; set; }
  82. public virtual DbSet<MsgSmsSet> MsgSmsSet { get; set; }
  83. public virtual DbSet<MsgTemplate> MsgTemplate { get; set; }
  84. public virtual DbSet<OpenBankCityTable> OpenBankCityTable { get; set; }
  85. public virtual DbSet<OpenBankTable> OpenBankTable { get; set; }
  86. public virtual DbSet<OpenReward> OpenReward { get; set; }
  87. public virtual DbSet<OpenRewardDetail> OpenRewardDetail { get; set; }
  88. public virtual DbSet<OpenSnSnapshot> OpenSnSnapshot { get; set; }
  89. public virtual DbSet<OperateLog> OperateLog { get; set; }
  90. public virtual DbSet<OperateRightList> OperateRightList { get; set; }
  91. public virtual DbSet<OrderForNo> OrderForNo { get; set; }
  92. public virtual DbSet<OrderProduct> OrderProduct { get; set; }
  93. public virtual DbSet<OrderRefund> OrderRefund { get; set; }
  94. public virtual DbSet<OrderRefundReason> OrderRefundReason { get; set; }
  95. public virtual DbSet<Orders> Orders { get; set; }
  96. public virtual DbSet<PageInfo> PageInfo { get; set; }
  97. public virtual DbSet<PageUpdateInfo> PageUpdateInfo { get; set; }
  98. public virtual DbSet<PosCouponForUser> PosCouponForUser { get; set; }
  99. public virtual DbSet<PosCouponOrders> PosCouponOrders { get; set; }
  100. public virtual DbSet<PosCouponRecord> PosCouponRecord { get; set; }
  101. public virtual DbSet<PosCoupons> PosCoupons { get; set; }
  102. public virtual DbSet<PosMachines> PosMachines { get; set; }
  103. public virtual DbSet<PosMachinesTwo> PosMachinesTwo { get; set; }
  104. public virtual DbSet<PosMerchantInfo> PosMerchantInfo { get; set; }
  105. public virtual DbSet<PosMerchantOtherInfo> PosMerchantOtherInfo { get; set; }
  106. public virtual DbSet<PosMerchantTradeSummay> PosMerchantTradeSummay { get; set; }
  107. public virtual DbSet<PreSendStockDetail> PreSendStockDetail { get; set; }
  108. public virtual DbSet<ProductComment> ProductComment { get; set; }
  109. public virtual DbSet<ProductCommentAgree> ProductCommentAgree { get; set; }
  110. public virtual DbSet<ProductFareAreas> ProductFareAreas { get; set; }
  111. public virtual DbSet<ProductFareTemp> ProductFareTemp { get; set; }
  112. public virtual DbSet<ProductKeys> ProductKeys { get; set; }
  113. public virtual DbSet<ProductNorm> ProductNorm { get; set; }
  114. public virtual DbSet<ProductNormItem> ProductNormItem { get; set; }
  115. public virtual DbSet<ProductNormTemp> ProductNormTemp { get; set; }
  116. public virtual DbSet<Products> Products { get; set; }
  117. public virtual DbSet<ProfitObjectActivations> ProfitObjectActivations { get; set; }
  118. public virtual DbSet<ProfitObjectContinueFloors> ProfitObjectContinueFloors { get; set; }
  119. public virtual DbSet<ProfitObjectFloors> ProfitObjectFloors { get; set; }
  120. public virtual DbSet<ProfitObjectLevelKinds> ProfitObjectLevelKinds { get; set; }
  121. public virtual DbSet<ProfitObjectLevels> ProfitObjectLevels { get; set; }
  122. public virtual DbSet<ProfitObjects> ProfitObjects { get; set; }
  123. public virtual DbSet<ProfitObjectsActiveCheck> ProfitObjectsActiveCheck { get; set; }
  124. public virtual DbSet<ProfitObjectsActiveParams> ProfitObjectsActiveParams { get; set; }
  125. public virtual DbSet<ProfitObjectsActives> ProfitObjectsActives { get; set; }
  126. public virtual DbSet<ProfitObjectsActivesForId> ProfitObjectsActivesForId { get; set; }
  127. public virtual DbSet<ProfitObjectsRule> ProfitObjectsRule { get; set; }
  128. public virtual DbSet<ProfitObjectsRuleDetails> ProfitObjectsRuleDetails { get; set; }
  129. public virtual DbSet<ProfitReceiveRecord> ProfitReceiveRecord { get; set; }
  130. public virtual DbSet<ProfitReceives> ProfitReceives { get; set; }
  131. public virtual DbSet<ProfitRecord> ProfitRecord { get; set; }
  132. public virtual DbSet<ProfitRewardRecord> ProfitRewardRecord { get; set; }
  133. public virtual DbSet<ProfitSubsidyDetail> ProfitSubsidyDetail { get; set; }
  134. public virtual DbSet<ProfitSubsidyDetail04> ProfitSubsidyDetail04 { get; set; }
  135. public virtual DbSet<PublicAccountSet> PublicAccountSet { get; set; }
  136. public virtual DbSet<PullNewAct> PullNewAct { get; set; }
  137. public virtual DbSet<PullNewDetail> PullNewDetail { get; set; }
  138. public virtual DbSet<PullnewSummary> PullnewSummary { get; set; }
  139. public virtual DbSet<RecommendDirectUser> RecommendDirectUser { get; set; }
  140. public virtual DbSet<RecommendTradeSummary> RecommendTradeSummary { get; set; }
  141. public virtual DbSet<RightDic> RightDic { get; set; }
  142. public virtual DbSet<ServiceCenter> ServiceCenter { get; set; }
  143. public virtual DbSet<SetMerchantTypeRecord> SetMerchantTypeRecord { get; set; }
  144. public virtual DbSet<SmallStoreHouse> SmallStoreHouse { get; set; }
  145. public virtual DbSet<SpOrderNos> SpOrderNos { get; set; }
  146. public virtual DbSet<StoreBalance> StoreBalance { get; set; }
  147. public virtual DbSet<StoreChangeHistory> StoreChangeHistory { get; set; }
  148. public virtual DbSet<StoreForCode> StoreForCode { get; set; }
  149. public virtual DbSet<StoreForName> StoreForName { get; set; }
  150. public virtual DbSet<StoreHouse> StoreHouse { get; set; }
  151. public virtual DbSet<StoreHouseAmountRecord> StoreHouseAmountRecord { get; set; }
  152. public virtual DbSet<StoreMachineApply> StoreMachineApply { get; set; }
  153. public virtual DbSet<StoreMallOrderSummary> StoreMallOrderSummary { get; set; }
  154. public virtual DbSet<StoreSnActivateSummary> StoreSnActivateSummary { get; set; }
  155. public virtual DbSet<StoreStockChange> StoreStockChange { get; set; }
  156. public virtual DbSet<StoreSwapSn> StoreSwapSn { get; set; }
  157. public virtual DbSet<SysAdmin> SysAdmin { get; set; }
  158. public virtual DbSet<SysAdminRole> SysAdminRole { get; set; }
  159. public virtual DbSet<SysLog> SysLog { get; set; }
  160. public virtual DbSet<SysRechargeRecord> SysRechargeRecord { get; set; }
  161. public virtual DbSet<SystemSet> SystemSet { get; set; }
  162. public virtual DbSet<TeamApply> TeamApply { get; set; }
  163. public virtual DbSet<TeamApplyForTeamName> TeamApplyForTeamName { get; set; }
  164. public virtual DbSet<TeamApplyForTeamNo> TeamApplyForTeamNo { get; set; }
  165. public virtual DbSet<TeamBlackList> TeamBlackList { get; set; }
  166. public virtual DbSet<TeamConfig> TeamConfig { get; set; }
  167. public virtual DbSet<TeamDayTop> TeamDayTop { get; set; }
  168. public virtual DbSet<TeamOfferApply> TeamOfferApply { get; set; }
  169. public virtual DbSet<TeamPersonDayTop> TeamPersonDayTop { get; set; }
  170. public virtual DbSet<TmpCert> TmpCert { get; set; }
  171. public virtual DbSet<TmpTradeNo> TmpTradeNo { get; set; }
  172. public virtual DbSet<TradeDaySummary> TradeDaySummary { get; set; }
  173. public virtual DbSet<TradeRecord> TradeRecord { get; set; }
  174. public virtual DbSet<TradeRecordTest> TradeRecordTest { get; set; }
  175. public virtual DbSet<UploadParams> UploadParams { get; set; }
  176. public virtual DbSet<UserAccount> UserAccount { get; set; }
  177. public virtual DbSet<UserAccountRecord> UserAccountRecord { get; set; }
  178. public virtual DbSet<UserAddress> UserAddress { get; set; }
  179. public virtual DbSet<UserAuthRecord> UserAuthRecord { get; set; }
  180. public virtual DbSet<UserBack> UserBack { get; set; }
  181. public virtual DbSet<UserBackKind> UserBackKind { get; set; }
  182. public virtual DbSet<UserBalanceTop> UserBalanceTop { get; set; }
  183. public virtual DbSet<UserCar> UserCar { get; set; }
  184. public virtual DbSet<UserCardForWeChat> UserCardForWeChat { get; set; }
  185. public virtual DbSet<UserCardRecord> UserCardRecord { get; set; }
  186. public virtual DbSet<UserCashRecord> UserCashRecord { get; set; }
  187. public virtual DbSet<UserCenterIconList> UserCenterIconList { get; set; }
  188. public virtual DbSet<UserCollection> UserCollection { get; set; }
  189. public virtual DbSet<UserData> UserData { get; set; }
  190. public virtual DbSet<UserDetail> UserDetail { get; set; }
  191. public virtual DbSet<UserFamilyMember> UserFamilyMember { get; set; }
  192. public virtual DbSet<UserForMakerCode> UserForMakerCode { get; set; }
  193. public virtual DbSet<UserForMobile> UserForMobile { get; set; }
  194. public virtual DbSet<UserForRealName> UserForRealName { get; set; }
  195. public virtual DbSet<UserFriend> UserFriend { get; set; }
  196. public virtual DbSet<UserGroup> UserGroup { get; set; }
  197. public virtual DbSet<UserLevelSet> UserLevelSet { get; set; }
  198. public virtual DbSet<UserLoginRecord> UserLoginRecord { get; set; }
  199. public virtual DbSet<UserMachineData> UserMachineData { get; set; }
  200. public virtual DbSet<UserMallLargeSn> UserMallLargeSn { get; set; }
  201. public virtual DbSet<UserOfflineSignInRecords> UserOfflineSignInRecords { get; set; }
  202. public virtual DbSet<UserProfit> UserProfit { get; set; }
  203. public virtual DbSet<UserProfitSet> UserProfitSet { get; set; }
  204. public virtual DbSet<UserProfitSubsidySummary> UserProfitSubsidySummary { get; set; }
  205. public virtual DbSet<UserRank> UserRank { get; set; }
  206. public virtual DbSet<UserRankWhite> UserRankWhite { get; set; }
  207. public virtual DbSet<UserRebateDetail> UserRebateDetail { get; set; }
  208. public virtual DbSet<UserSnActInfo> UserSnActInfo { get; set; }
  209. public virtual DbSet<UserSnDelayChange> UserSnDelayChange { get; set; }
  210. public virtual DbSet<UserStoreChange> UserStoreChange { get; set; }
  211. public virtual DbSet<UserSwapDetail> UserSwapDetail { get; set; }
  212. public virtual DbSet<UserSwapSummary> UserSwapSummary { get; set; }
  213. public virtual DbSet<UserSwapWhite> UserSwapWhite { get; set; }
  214. public virtual DbSet<UserTradeDaySummary> UserTradeDaySummary { get; set; }
  215. public virtual DbSet<UserTradeMonthSummary> UserTradeMonthSummary { get; set; }
  216. public virtual DbSet<Users> Users { get; set; }
  217. protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
  218. {
  219. if (!optionsBuilder.IsConfigured)
  220. {
  221. optionsBuilder.UseMySql(Library.ConfigurationManager.AppSettings["SqlConnStr"].ToString(), x => x.ServerVersion("5.7.17-mysql"));
  222. }
  223. }
  224. protected override void OnModelCreating(ModelBuilder modelBuilder)
  225. {
  226. modelBuilder.Entity<ActiveReward>(entity =>
  227. {
  228. entity.Property(e => e.Id).HasColumnType("int(11)");
  229. entity.Property(e => e.ActDate).HasColumnType("datetime");
  230. entity.Property(e => e.ActType).HasColumnType("int(11)");
  231. entity.Property(e => e.ActTypeDesc)
  232. .HasColumnType("varchar(64)")
  233. .HasCharSet("utf8")
  234. .HasCollation("utf8_general_ci");
  235. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  236. entity.Property(e => e.City)
  237. .HasColumnType("varchar(32)")
  238. .HasCharSet("utf8")
  239. .HasCollation("utf8_general_ci");
  240. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  241. entity.Property(e => e.CreateMan)
  242. .HasColumnType("varchar(50)")
  243. .HasCharSet("utf8")
  244. .HasCollation("utf8_general_ci");
  245. entity.Property(e => e.DirectBuddyNo).HasColumnType("int(11)");
  246. entity.Property(e => e.DivideAmount).HasColumnType("decimal(18,2)");
  247. entity.Property(e => e.KqMerNo)
  248. .HasColumnType("varchar(32)")
  249. .HasCharSet("utf8")
  250. .HasCollation("utf8_general_ci");
  251. entity.Property(e => e.KqSnNo)
  252. .HasColumnType("varchar(32)")
  253. .HasCharSet("utf8")
  254. .HasCollation("utf8_general_ci");
  255. entity.Property(e => e.MerUserId).HasColumnType("int(11)");
  256. entity.Property(e => e.MerUserNav)
  257. .HasColumnType("varchar(200)")
  258. .HasCharSet("utf8")
  259. .HasCollation("utf8_general_ci");
  260. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  261. entity.Property(e => e.ParentParentUserId).HasColumnType("int(11)");
  262. entity.Property(e => e.ParentUserId).HasColumnType("int(11)");
  263. entity.Property(e => e.Province)
  264. .HasColumnType("varchar(32)")
  265. .HasCharSet("utf8")
  266. .HasCollation("utf8_general_ci");
  267. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  268. entity.Property(e => e.Remark)
  269. .HasColumnType("varchar(64)")
  270. .HasCharSet("utf8")
  271. .HasCollation("utf8_general_ci");
  272. entity.Property(e => e.RewardAmount).HasColumnType("decimal(18,2)");
  273. entity.Property(e => e.RewardRef).HasColumnType("int(11)");
  274. entity.Property(e => e.RewardSourceUserId).HasColumnType("int(11)");
  275. entity.Property(e => e.RewardTips)
  276. .HasColumnType("varchar(16)")
  277. .HasCharSet("utf8")
  278. .HasCollation("utf8_general_ci");
  279. entity.Property(e => e.RuleRewardAmount).HasColumnType("decimal(18,2)");
  280. entity.Property(e => e.SeoDescription)
  281. .HasColumnType("varchar(500)")
  282. .HasCharSet("utf8")
  283. .HasCollation("utf8_general_ci");
  284. entity.Property(e => e.SeoKeyword)
  285. .HasColumnType("varchar(200)")
  286. .HasCharSet("utf8")
  287. .HasCollation("utf8_general_ci");
  288. entity.Property(e => e.SeoTitle)
  289. .HasColumnType("varchar(100)")
  290. .HasCharSet("utf8")
  291. .HasCollation("utf8_general_ci");
  292. entity.Property(e => e.SnApplyUserId).HasColumnType("int(11)");
  293. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  294. entity.Property(e => e.SnType).HasColumnType("int(11)");
  295. entity.Property(e => e.Sort).HasColumnType("int(11)");
  296. entity.Property(e => e.StandardDate).HasColumnType("datetime");
  297. entity.Property(e => e.Status).HasColumnType("int(11)");
  298. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  299. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  300. entity.Property(e => e.UpdateMan)
  301. .HasColumnType("varchar(50)")
  302. .HasCharSet("utf8")
  303. .HasCollation("utf8_general_ci");
  304. entity.Property(e => e.UserId).HasColumnType("int(11)");
  305. entity.Property(e => e.UserNav)
  306. .HasColumnType("varchar(200)")
  307. .HasCharSet("utf8")
  308. .HasCollation("utf8_general_ci");
  309. entity.Property(e => e.Version).HasColumnType("int(11)");
  310. });
  311. modelBuilder.Entity<ActivityEnrolRecord>(entity =>
  312. {
  313. entity.Property(e => e.Id).HasColumnType("int(11)");
  314. entity.Property(e => e.ActId).HasColumnType("int(11)");
  315. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  316. entity.Property(e => e.CreateMan)
  317. .HasColumnType("varchar(50)")
  318. .HasCharSet("utf8")
  319. .HasCollation("utf8_general_ci");
  320. entity.Property(e => e.EffectEndTime)
  321. .HasColumnType("varchar(8)")
  322. .HasCharSet("utf8")
  323. .HasCollation("utf8_general_ci");
  324. entity.Property(e => e.EffectStartTime)
  325. .HasColumnType("varchar(8)")
  326. .HasCharSet("utf8")
  327. .HasCollation("utf8_general_ci");
  328. entity.Property(e => e.EnrolMonth)
  329. .HasColumnType("varchar(80)")
  330. .HasCharSet("utf8")
  331. .HasCollation("utf8_general_ci");
  332. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  333. entity.Property(e => e.SeoDescription)
  334. .HasColumnType("varchar(500)")
  335. .HasCharSet("utf8")
  336. .HasCollation("utf8_general_ci");
  337. entity.Property(e => e.SeoKeyword)
  338. .HasColumnType("varchar(200)")
  339. .HasCharSet("utf8")
  340. .HasCollation("utf8_general_ci");
  341. entity.Property(e => e.SeoTitle)
  342. .HasColumnType("varchar(100)")
  343. .HasCharSet("utf8")
  344. .HasCollation("utf8_general_ci");
  345. entity.Property(e => e.Sort).HasColumnType("int(11)");
  346. entity.Property(e => e.Status).HasColumnType("int(11)");
  347. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  348. entity.Property(e => e.UpdateMan)
  349. .HasColumnType("varchar(50)")
  350. .HasCharSet("utf8")
  351. .HasCollation("utf8_general_ci");
  352. entity.Property(e => e.UserId).HasColumnType("int(11)");
  353. entity.Property(e => e.Version).HasColumnType("int(11)");
  354. });
  355. modelBuilder.Entity<ActivityInfo>(entity =>
  356. {
  357. entity.Property(e => e.Id).HasColumnType("int(11)");
  358. entity.Property(e => e.ActBanner)
  359. .HasColumnType("varchar(200)")
  360. .HasCharSet("utf8")
  361. .HasCollation("utf8_general_ci");
  362. entity.Property(e => e.ActCode)
  363. .HasColumnType("varchar(32)")
  364. .HasCharSet("utf8")
  365. .HasCollation("utf8_general_ci");
  366. entity.Property(e => e.ActContent)
  367. .HasColumnType("longtext")
  368. .HasCharSet("utf8")
  369. .HasCollation("utf8_general_ci");
  370. entity.Property(e => e.ActName)
  371. .HasColumnType("varchar(128)")
  372. .HasCharSet("utf8")
  373. .HasCollation("utf8_general_ci");
  374. entity.Property(e => e.ActReferUrl)
  375. .HasColumnType("varchar(255)")
  376. .HasCharSet("utf8")
  377. .HasCollation("utf8_general_ci");
  378. entity.Property(e => e.ActType).HasColumnType("int(11)");
  379. entity.Property(e => e.BrandId)
  380. .HasColumnType("varchar(100)")
  381. .HasCharSet("utf8")
  382. .HasCollation("utf8_general_ci");
  383. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  384. entity.Property(e => e.CreateMan)
  385. .HasColumnType("varchar(50)")
  386. .HasCharSet("utf8")
  387. .HasCollation("utf8_general_ci");
  388. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  389. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  390. entity.Property(e => e.EnrolEndDate).HasColumnType("datetime");
  391. entity.Property(e => e.EnrolEndTime)
  392. .HasColumnType("varchar(8)")
  393. .HasCharSet("utf8")
  394. .HasCollation("utf8_general_ci");
  395. entity.Property(e => e.EnrolStartDate).HasColumnType("datetime");
  396. entity.Property(e => e.EnrolStartTime)
  397. .HasColumnType("varchar(8)")
  398. .HasCharSet("utf8")
  399. .HasCollation("utf8_general_ci");
  400. entity.Property(e => e.IsTop).HasColumnType("int(11)");
  401. entity.Property(e => e.LimitTopBuddy)
  402. .HasColumnType("varchar(255)")
  403. .HasCharSet("utf8")
  404. .HasCollation("utf8_general_ci");
  405. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  406. entity.Property(e => e.Remark)
  407. .HasColumnType("varchar(128)")
  408. .HasCharSet("utf8")
  409. .HasCollation("utf8_general_ci");
  410. entity.Property(e => e.SeoDescription)
  411. .HasColumnType("varchar(500)")
  412. .HasCharSet("utf8")
  413. .HasCollation("utf8_general_ci");
  414. entity.Property(e => e.SeoKeyword)
  415. .HasColumnType("varchar(200)")
  416. .HasCharSet("utf8")
  417. .HasCollation("utf8_general_ci");
  418. entity.Property(e => e.SeoTitle)
  419. .HasColumnType("varchar(100)")
  420. .HasCharSet("utf8")
  421. .HasCollation("utf8_general_ci");
  422. entity.Property(e => e.Sort).HasColumnType("int(11)");
  423. entity.Property(e => e.Status).HasColumnType("int(11)");
  424. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  425. entity.Property(e => e.UpdateMan)
  426. .HasColumnType("varchar(50)")
  427. .HasCharSet("utf8")
  428. .HasCollation("utf8_general_ci");
  429. entity.Property(e => e.Version).HasColumnType("int(11)");
  430. });
  431. modelBuilder.Entity<ActivityPrizeDetail>(entity =>
  432. {
  433. entity.Property(e => e.Id).HasColumnType("int(11)");
  434. entity.Property(e => e.ActRewardAmt).HasColumnType("decimal(18,2)");
  435. entity.Property(e => e.ActivityId).HasColumnType("int(11)");
  436. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  437. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  438. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  439. entity.Property(e => e.CreateMan)
  440. .HasColumnType("varchar(50)")
  441. .HasCharSet("utf8")
  442. .HasCollation("utf8_general_ci");
  443. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  444. entity.Property(e => e.OtherProdCreditTradeAmt).HasColumnType("decimal(18,2)");
  445. entity.Property(e => e.ProfitRate).HasColumnType("decimal(18,2)");
  446. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  447. entity.Property(e => e.SeoDescription)
  448. .HasColumnType("varchar(500)")
  449. .HasCharSet("utf8")
  450. .HasCollation("utf8_general_ci");
  451. entity.Property(e => e.SeoKeyword)
  452. .HasColumnType("varchar(200)")
  453. .HasCharSet("utf8")
  454. .HasCollation("utf8_general_ci");
  455. entity.Property(e => e.SeoTitle)
  456. .HasColumnType("varchar(100)")
  457. .HasCharSet("utf8")
  458. .HasCollation("utf8_general_ci");
  459. entity.Property(e => e.Sort).HasColumnType("int(11)");
  460. entity.Property(e => e.Status).HasColumnType("int(11)");
  461. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  462. entity.Property(e => e.TradeAmt).HasColumnType("decimal(18,2)");
  463. entity.Property(e => e.TradeMonth)
  464. .HasColumnType("varchar(6)")
  465. .HasCharSet("utf8")
  466. .HasCollation("utf8_general_ci");
  467. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  468. entity.Property(e => e.UpdateMan)
  469. .HasColumnType("varchar(50)")
  470. .HasCharSet("utf8")
  471. .HasCollation("utf8_general_ci");
  472. entity.Property(e => e.UserId).HasColumnType("int(11)");
  473. entity.Property(e => e.Version).HasColumnType("int(11)");
  474. });
  475. modelBuilder.Entity<ActivityRedPackageJoins>(entity =>
  476. {
  477. entity.Property(e => e.Id).HasColumnType("int(11)");
  478. entity.Property(e => e.ActivityDate)
  479. .HasColumnType("varchar(8)")
  480. .HasCharSet("utf8")
  481. .HasCollation("utf8_general_ci");
  482. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  483. entity.Property(e => e.CreateMan)
  484. .HasColumnType("varchar(50)")
  485. .HasCharSet("utf8")
  486. .HasCollation("utf8_general_ci");
  487. entity.Property(e => e.PrizeAmt).HasColumnType("decimal(18,2)");
  488. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  489. entity.Property(e => e.SeoDescription)
  490. .HasColumnType("varchar(500)")
  491. .HasCharSet("utf8")
  492. .HasCollation("utf8_general_ci");
  493. entity.Property(e => e.SeoKeyword)
  494. .HasColumnType("varchar(200)")
  495. .HasCharSet("utf8")
  496. .HasCollation("utf8_general_ci");
  497. entity.Property(e => e.SeoTitle)
  498. .HasColumnType("varchar(100)")
  499. .HasCharSet("utf8")
  500. .HasCollation("utf8_general_ci");
  501. entity.Property(e => e.Sort).HasColumnType("int(11)");
  502. entity.Property(e => e.Status).HasColumnType("int(11)");
  503. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  504. entity.Property(e => e.UpdateMan)
  505. .HasColumnType("varchar(50)")
  506. .HasCharSet("utf8")
  507. .HasCollation("utf8_general_ci");
  508. entity.Property(e => e.UserId).HasColumnType("int(11)");
  509. entity.Property(e => e.Version).HasColumnType("int(11)");
  510. });
  511. modelBuilder.Entity<ActivityRedPackageStock>(entity =>
  512. {
  513. entity.Property(e => e.Id).HasColumnType("int(11)");
  514. entity.Property(e => e.ActivityDate)
  515. .HasColumnType("varchar(8)")
  516. .HasCharSet("utf8")
  517. .HasCollation("utf8_general_ci");
  518. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  519. entity.Property(e => e.CreateMan)
  520. .HasColumnType("varchar(50)")
  521. .HasCharSet("utf8")
  522. .HasCollation("utf8_general_ci");
  523. entity.Property(e => e.PrizeAmt).HasColumnType("decimal(18,2)");
  524. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  525. entity.Property(e => e.SeoDescription)
  526. .HasColumnType("varchar(500)")
  527. .HasCharSet("utf8")
  528. .HasCollation("utf8_general_ci");
  529. entity.Property(e => e.SeoKeyword)
  530. .HasColumnType("varchar(200)")
  531. .HasCharSet("utf8")
  532. .HasCollation("utf8_general_ci");
  533. entity.Property(e => e.SeoTitle)
  534. .HasColumnType("varchar(100)")
  535. .HasCharSet("utf8")
  536. .HasCollation("utf8_general_ci");
  537. entity.Property(e => e.Sort).HasColumnType("int(11)");
  538. entity.Property(e => e.Status).HasColumnType("int(11)");
  539. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  540. entity.Property(e => e.UpdateMan)
  541. .HasColumnType("varchar(50)")
  542. .HasCharSet("utf8")
  543. .HasCollation("utf8_general_ci");
  544. entity.Property(e => e.UserId).HasColumnType("int(11)");
  545. entity.Property(e => e.Version).HasColumnType("int(11)");
  546. });
  547. modelBuilder.Entity<ActivityRedPackageTop10>(entity =>
  548. {
  549. entity.Property(e => e.Id).HasColumnType("int(11)");
  550. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  551. entity.Property(e => e.CreateMan)
  552. .HasColumnType("varchar(50)")
  553. .HasCharSet("utf8")
  554. .HasCollation("utf8_general_ci");
  555. entity.Property(e => e.Kind).HasColumnType("int(11)");
  556. entity.Property(e => e.PrizeAmt).HasColumnType("decimal(18,2)");
  557. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  558. entity.Property(e => e.SeoDescription)
  559. .HasColumnType("varchar(500)")
  560. .HasCharSet("utf8")
  561. .HasCollation("utf8_general_ci");
  562. entity.Property(e => e.SeoKeyword)
  563. .HasColumnType("varchar(200)")
  564. .HasCharSet("utf8")
  565. .HasCollation("utf8_general_ci");
  566. entity.Property(e => e.SeoTitle)
  567. .HasColumnType("varchar(100)")
  568. .HasCharSet("utf8")
  569. .HasCollation("utf8_general_ci");
  570. entity.Property(e => e.Sort).HasColumnType("int(11)");
  571. entity.Property(e => e.Status).HasColumnType("int(11)");
  572. entity.Property(e => e.TimeNum).HasColumnType("int(11)");
  573. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  574. entity.Property(e => e.UpdateMan)
  575. .HasColumnType("varchar(50)")
  576. .HasCharSet("utf8")
  577. .HasCollation("utf8_general_ci");
  578. entity.Property(e => e.UserId).HasColumnType("int(11)");
  579. entity.Property(e => e.Version).HasColumnType("int(11)");
  580. });
  581. modelBuilder.Entity<Advertisment>(entity =>
  582. {
  583. entity.Property(e => e.Id).HasColumnType("int(11)");
  584. entity.Property(e => e.ColId)
  585. .HasColumnType("varchar(30)")
  586. .HasCharSet("utf8")
  587. .HasCollation("utf8_general_ci");
  588. entity.Property(e => e.Contents)
  589. .HasColumnType("longtext")
  590. .HasCharSet("utf8")
  591. .HasCollation("utf8_general_ci");
  592. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  593. entity.Property(e => e.CreateMan)
  594. .HasColumnType("varchar(50)")
  595. .HasCharSet("utf8")
  596. .HasCollation("utf8_general_ci");
  597. entity.Property(e => e.PicPath)
  598. .HasColumnType("varchar(200)")
  599. .HasCharSet("utf8")
  600. .HasCollation("utf8_general_ci");
  601. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  602. entity.Property(e => e.SeoDescription)
  603. .HasColumnType("varchar(500)")
  604. .HasCharSet("utf8")
  605. .HasCollation("utf8_general_ci");
  606. entity.Property(e => e.SeoKeyword)
  607. .HasColumnType("varchar(200)")
  608. .HasCharSet("utf8")
  609. .HasCollation("utf8_general_ci");
  610. entity.Property(e => e.SeoTitle)
  611. .HasColumnType("varchar(100)")
  612. .HasCharSet("utf8")
  613. .HasCollation("utf8_general_ci");
  614. entity.Property(e => e.Sort).HasColumnType("int(11)");
  615. entity.Property(e => e.Status).HasColumnType("int(11)");
  616. entity.Property(e => e.Title)
  617. .HasColumnType("varchar(50)")
  618. .HasCharSet("utf8")
  619. .HasCollation("utf8_general_ci");
  620. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  621. entity.Property(e => e.UpdateMan)
  622. .HasColumnType("varchar(50)")
  623. .HasCharSet("utf8")
  624. .HasCollation("utf8_general_ci");
  625. entity.Property(e => e.Url)
  626. .HasColumnType("longtext")
  627. .HasCharSet("utf8")
  628. .HasCollation("utf8_general_ci");
  629. entity.Property(e => e.Version).HasColumnType("int(11)");
  630. });
  631. modelBuilder.Entity<AgentLevelSet>(entity =>
  632. {
  633. entity.Property(e => e.Id).HasColumnType("int(11)");
  634. entity.Property(e => e.AreasProfitPercent).HasColumnType("decimal(18,2)");
  635. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  636. entity.Property(e => e.CreateMan)
  637. .HasColumnType("varchar(50)")
  638. .HasCharSet("utf8")
  639. .HasCollation("utf8_general_ci");
  640. entity.Property(e => e.LevelDiff)
  641. .HasColumnType("bit(1)")
  642. .HasDefaultValueSql("b'0'");
  643. entity.Property(e => e.Name)
  644. .HasColumnType("varchar(50)")
  645. .HasCharSet("utf8")
  646. .HasCollation("utf8_general_ci");
  647. entity.Property(e => e.ProfitPercent).HasColumnType("decimal(18,2)");
  648. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  649. entity.Property(e => e.SeoDescription)
  650. .HasColumnType("varchar(500)")
  651. .HasCharSet("utf8")
  652. .HasCollation("utf8_general_ci");
  653. entity.Property(e => e.SeoKeyword)
  654. .HasColumnType("varchar(200)")
  655. .HasCharSet("utf8")
  656. .HasCollation("utf8_general_ci");
  657. entity.Property(e => e.SeoTitle)
  658. .HasColumnType("varchar(100)")
  659. .HasCharSet("utf8")
  660. .HasCollation("utf8_general_ci");
  661. entity.Property(e => e.Sort).HasColumnType("int(11)");
  662. entity.Property(e => e.Status).HasColumnType("int(11)");
  663. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  664. entity.Property(e => e.UpdateMan)
  665. .HasColumnType("varchar(50)")
  666. .HasCharSet("utf8")
  667. .HasCollation("utf8_general_ci");
  668. entity.Property(e => e.Version).HasColumnType("int(11)");
  669. });
  670. modelBuilder.Entity<AppBottomNavs>(entity =>
  671. {
  672. entity.Property(e => e.Id).HasColumnType("int(11)");
  673. entity.Property(e => e.BgColor)
  674. .HasColumnType("varchar(6)")
  675. .HasCharSet("utf8")
  676. .HasCollation("utf8_general_ci");
  677. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  678. entity.Property(e => e.CreateMan)
  679. .HasColumnType("varchar(50)")
  680. .HasCharSet("utf8")
  681. .HasCollation("utf8_general_ci");
  682. entity.Property(e => e.NoPageHint)
  683. .HasColumnType("varchar(50)")
  684. .HasCharSet("utf8")
  685. .HasCollation("utf8_general_ci");
  686. entity.Property(e => e.NormalIcon)
  687. .HasColumnType("varchar(200)")
  688. .HasCharSet("utf8")
  689. .HasCollation("utf8_general_ci");
  690. entity.Property(e => e.NormalTextColor)
  691. .HasColumnType("varchar(6)")
  692. .HasCharSet("utf8")
  693. .HasCollation("utf8_general_ci");
  694. entity.Property(e => e.PageName)
  695. .HasColumnType("varchar(50)")
  696. .HasCharSet("utf8")
  697. .HasCollation("utf8_general_ci");
  698. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  699. entity.Property(e => e.SelectIcon)
  700. .HasColumnType("varchar(200)")
  701. .HasCharSet("utf8")
  702. .HasCollation("utf8_general_ci");
  703. entity.Property(e => e.SelectTextColor)
  704. .HasColumnType("varchar(6)")
  705. .HasCharSet("utf8")
  706. .HasCollation("utf8_general_ci");
  707. entity.Property(e => e.SeoDescription)
  708. .HasColumnType("varchar(500)")
  709. .HasCharSet("utf8")
  710. .HasCollation("utf8_general_ci");
  711. entity.Property(e => e.SeoKeyword)
  712. .HasColumnType("varchar(200)")
  713. .HasCharSet("utf8")
  714. .HasCollation("utf8_general_ci");
  715. entity.Property(e => e.SeoTitle)
  716. .HasColumnType("varchar(100)")
  717. .HasCharSet("utf8")
  718. .HasCollation("utf8_general_ci");
  719. entity.Property(e => e.Sort).HasColumnType("int(11)");
  720. entity.Property(e => e.Status).HasColumnType("int(11)");
  721. entity.Property(e => e.Title)
  722. .HasColumnType("varchar(10)")
  723. .HasCharSet("utf8")
  724. .HasCollation("utf8_general_ci");
  725. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  726. entity.Property(e => e.UpdateMan)
  727. .HasColumnType("varchar(50)")
  728. .HasCharSet("utf8")
  729. .HasCollation("utf8_general_ci");
  730. entity.Property(e => e.Version).HasColumnType("int(11)");
  731. });
  732. modelBuilder.Entity<AppVersion>(entity =>
  733. {
  734. entity.Property(e => e.Id).HasColumnType("int(11)");
  735. entity.Property(e => e.CancelText)
  736. .HasColumnType("varchar(10)")
  737. .HasCharSet("utf8")
  738. .HasCollation("utf8_general_ci");
  739. entity.Property(e => e.ConfirmText)
  740. .HasColumnType("varchar(10)")
  741. .HasCharSet("utf8")
  742. .HasCollation("utf8_general_ci");
  743. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  744. entity.Property(e => e.CreateMan)
  745. .HasColumnType("varchar(50)")
  746. .HasCharSet("utf8")
  747. .HasCollation("utf8_general_ci");
  748. entity.Property(e => e.DownloadUrl)
  749. .HasColumnType("varchar(500)")
  750. .HasCharSet("utf8")
  751. .HasCollation("utf8_general_ci");
  752. entity.Property(e => e.Info)
  753. .HasColumnType("varchar(200)")
  754. .HasCharSet("utf8")
  755. .HasCollation("utf8_general_ci");
  756. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  757. entity.Property(e => e.SeoDescription)
  758. .HasColumnType("varchar(500)")
  759. .HasCharSet("utf8")
  760. .HasCollation("utf8_general_ci");
  761. entity.Property(e => e.SeoKeyword)
  762. .HasColumnType("varchar(200)")
  763. .HasCharSet("utf8")
  764. .HasCollation("utf8_general_ci");
  765. entity.Property(e => e.SeoTitle)
  766. .HasColumnType("varchar(100)")
  767. .HasCharSet("utf8")
  768. .HasCollation("utf8_general_ci");
  769. entity.Property(e => e.Sort).HasColumnType("int(11)");
  770. entity.Property(e => e.Status).HasColumnType("int(11)");
  771. entity.Property(e => e.TerminalKind)
  772. .HasColumnType("varchar(10)")
  773. .HasCharSet("utf8")
  774. .HasCollation("utf8_general_ci");
  775. entity.Property(e => e.Title)
  776. .HasColumnType("varchar(50)")
  777. .HasCharSet("utf8")
  778. .HasCollation("utf8_general_ci");
  779. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  780. entity.Property(e => e.UpdateMan)
  781. .HasColumnType("varchar(50)")
  782. .HasCharSet("utf8")
  783. .HasCollation("utf8_general_ci");
  784. entity.Property(e => e.Version).HasColumnType("int(11)");
  785. entity.Property(e => e.VersionNum)
  786. .HasColumnType("varchar(20)")
  787. .HasCharSet("utf8")
  788. .HasCollation("utf8_general_ci");
  789. });
  790. modelBuilder.Entity<AppVideo>(entity =>
  791. {
  792. entity.Property(e => e.Id).HasColumnType("int(11)");
  793. entity.Property(e => e.BannerPic)
  794. .HasColumnType("varchar(200)")
  795. .HasCharSet("utf8")
  796. .HasCollation("utf8_general_ci");
  797. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  798. entity.Property(e => e.CreateMan)
  799. .HasColumnType("varchar(50)")
  800. .HasCharSet("utf8")
  801. .HasCollation("utf8_general_ci");
  802. entity.Property(e => e.Name)
  803. .HasColumnType("varchar(50)")
  804. .HasCharSet("utf8")
  805. .HasCollation("utf8_general_ci");
  806. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  807. entity.Property(e => e.Remark)
  808. .HasColumnType("varchar(200)")
  809. .HasCharSet("utf8")
  810. .HasCollation("utf8_general_ci");
  811. entity.Property(e => e.SeoDescription)
  812. .HasColumnType("varchar(500)")
  813. .HasCharSet("utf8")
  814. .HasCollation("utf8_general_ci");
  815. entity.Property(e => e.SeoKeyword)
  816. .HasColumnType("varchar(200)")
  817. .HasCharSet("utf8")
  818. .HasCollation("utf8_general_ci");
  819. entity.Property(e => e.SeoTitle)
  820. .HasColumnType("varchar(100)")
  821. .HasCharSet("utf8")
  822. .HasCollation("utf8_general_ci");
  823. entity.Property(e => e.Sort).HasColumnType("int(11)");
  824. entity.Property(e => e.Status).HasColumnType("int(11)");
  825. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  826. entity.Property(e => e.UpdateMan)
  827. .HasColumnType("varchar(50)")
  828. .HasCharSet("utf8")
  829. .HasCollation("utf8_general_ci");
  830. entity.Property(e => e.Version).HasColumnType("int(11)");
  831. });
  832. modelBuilder.Entity<AppVideoList>(entity =>
  833. {
  834. entity.Property(e => e.Id).HasColumnType("int(11)");
  835. entity.Property(e => e.BgPic)
  836. .HasColumnType("varchar(200)")
  837. .HasCharSet("utf8")
  838. .HasCollation("utf8_general_ci");
  839. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  840. entity.Property(e => e.CreateMan)
  841. .HasColumnType("varchar(50)")
  842. .HasCharSet("utf8")
  843. .HasCollation("utf8_general_ci");
  844. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  845. entity.Property(e => e.Remark)
  846. .HasColumnType("varchar(200)")
  847. .HasCharSet("utf8")
  848. .HasCollation("utf8_general_ci");
  849. entity.Property(e => e.SeoDescription)
  850. .HasColumnType("varchar(500)")
  851. .HasCharSet("utf8")
  852. .HasCollation("utf8_general_ci");
  853. entity.Property(e => e.SeoKeyword)
  854. .HasColumnType("varchar(200)")
  855. .HasCharSet("utf8")
  856. .HasCollation("utf8_general_ci");
  857. entity.Property(e => e.SeoTitle)
  858. .HasColumnType("varchar(100)")
  859. .HasCharSet("utf8")
  860. .HasCollation("utf8_general_ci");
  861. entity.Property(e => e.Sort).HasColumnType("int(11)");
  862. entity.Property(e => e.Status).HasColumnType("int(11)");
  863. entity.Property(e => e.Title)
  864. .HasColumnType("varchar(50)")
  865. .HasCharSet("utf8")
  866. .HasCollation("utf8_general_ci");
  867. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  868. entity.Property(e => e.UpdateMan)
  869. .HasColumnType("varchar(50)")
  870. .HasCharSet("utf8")
  871. .HasCollation("utf8_general_ci");
  872. entity.Property(e => e.Version).HasColumnType("int(11)");
  873. entity.Property(e => e.VideoId).HasColumnType("int(11)");
  874. entity.Property(e => e.VideoUrl)
  875. .HasColumnType("varchar(500)")
  876. .HasCharSet("utf8")
  877. .HasCollation("utf8_general_ci");
  878. });
  879. modelBuilder.Entity<BankInfo>(entity =>
  880. {
  881. entity.Property(e => e.Id).HasColumnType("int(11)");
  882. entity.Property(e => e.BankCode)
  883. .HasColumnType("varchar(16)")
  884. .HasCharSet("utf8")
  885. .HasCollation("utf8_general_ci");
  886. entity.Property(e => e.BankName)
  887. .HasColumnType("varchar(100)")
  888. .HasCharSet("utf8")
  889. .HasCollation("utf8_general_ci");
  890. entity.Property(e => e.BankNameAbbr)
  891. .HasColumnType("varchar(60)")
  892. .HasCharSet("utf8")
  893. .HasCollation("utf8_general_ci");
  894. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  895. entity.Property(e => e.CreateMan)
  896. .HasColumnType("varchar(50)")
  897. .HasCharSet("utf8")
  898. .HasCollation("utf8_general_ci");
  899. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  900. entity.Property(e => e.SeoDescription)
  901. .HasColumnType("varchar(500)")
  902. .HasCharSet("utf8")
  903. .HasCollation("utf8_general_ci");
  904. entity.Property(e => e.SeoKeyword)
  905. .HasColumnType("varchar(200)")
  906. .HasCharSet("utf8")
  907. .HasCollation("utf8_general_ci");
  908. entity.Property(e => e.SeoTitle)
  909. .HasColumnType("varchar(100)")
  910. .HasCharSet("utf8")
  911. .HasCollation("utf8_general_ci");
  912. entity.Property(e => e.Sort).HasColumnType("int(11)");
  913. entity.Property(e => e.Status).HasColumnType("int(11)");
  914. entity.Property(e => e.UnitedBankName)
  915. .HasColumnType("varchar(100)")
  916. .HasCharSet("utf8")
  917. .HasCollation("utf8_general_ci");
  918. entity.Property(e => e.UnitedBankNo)
  919. .HasColumnType("varchar(16)")
  920. .HasCharSet("utf8")
  921. .HasCollation("utf8_general_ci");
  922. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  923. entity.Property(e => e.UpdateMan)
  924. .HasColumnType("varchar(50)")
  925. .HasCharSet("utf8")
  926. .HasCollation("utf8_general_ci");
  927. entity.Property(e => e.Version).HasColumnType("int(11)");
  928. });
  929. modelBuilder.Entity<Col>(entity =>
  930. {
  931. entity.Property(e => e.Id).HasColumnType("int(11)");
  932. entity.Property(e => e.ClassName)
  933. .HasColumnType("varchar(50)")
  934. .HasCharSet("utf8")
  935. .HasCollation("utf8_general_ci");
  936. entity.Property(e => e.ColDetail)
  937. .HasColumnType("varchar(50)")
  938. .HasCharSet("utf8")
  939. .HasCollation("utf8_general_ci");
  940. entity.Property(e => e.ColEnName)
  941. .HasColumnType("varchar(50)")
  942. .HasCharSet("utf8")
  943. .HasCollation("utf8_general_ci");
  944. entity.Property(e => e.ColEnNav)
  945. .HasColumnType("varchar(200)")
  946. .HasCharSet("utf8")
  947. .HasCollation("utf8_general_ci");
  948. entity.Property(e => e.ColId)
  949. .HasColumnType("varchar(30)")
  950. .HasCharSet("utf8")
  951. .HasCollation("utf8_general_ci");
  952. entity.Property(e => e.ColName)
  953. .HasColumnType("varchar(50)")
  954. .HasCharSet("utf8")
  955. .HasCollation("utf8_general_ci");
  956. entity.Property(e => e.ColPicPath)
  957. .HasColumnType("varchar(200)")
  958. .HasCharSet("utf8")
  959. .HasCollation("utf8_general_ci");
  960. entity.Property(e => e.Contents)
  961. .HasColumnType("longtext")
  962. .HasCharSet("utf8")
  963. .HasCollation("utf8_general_ci");
  964. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  965. entity.Property(e => e.CreateMan)
  966. .HasColumnType("varchar(50)")
  967. .HasCharSet("utf8")
  968. .HasCollation("utf8_general_ci");
  969. entity.Property(e => e.DetailTemp)
  970. .HasColumnType("varchar(100)")
  971. .HasCharSet("utf8")
  972. .HasCollation("utf8_general_ci");
  973. entity.Property(e => e.DetailTempM)
  974. .HasColumnType("varchar(100)")
  975. .HasCharSet("utf8")
  976. .HasCollation("utf8_general_ci");
  977. entity.Property(e => e.ListPageCount).HasColumnType("int(11)");
  978. entity.Property(e => e.ListTemp)
  979. .HasColumnType("varchar(100)")
  980. .HasCharSet("utf8")
  981. .HasCollation("utf8_general_ci");
  982. entity.Property(e => e.ListTempM)
  983. .HasColumnType("varchar(100)")
  984. .HasCharSet("utf8")
  985. .HasCollation("utf8_general_ci");
  986. entity.Property(e => e.ParentId).HasColumnType("int(11)");
  987. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  988. entity.Property(e => e.Recommend)
  989. .HasColumnType("bit(1)")
  990. .HasDefaultValueSql("b'0'");
  991. entity.Property(e => e.SeoDescription)
  992. .HasColumnType("varchar(500)")
  993. .HasCharSet("utf8")
  994. .HasCollation("utf8_general_ci");
  995. entity.Property(e => e.SeoKeyword)
  996. .HasColumnType("varchar(200)")
  997. .HasCharSet("utf8")
  998. .HasCollation("utf8_general_ci");
  999. entity.Property(e => e.SeoTitle)
  1000. .HasColumnType("varchar(100)")
  1001. .HasCharSet("utf8")
  1002. .HasCollation("utf8_general_ci");
  1003. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1004. entity.Property(e => e.Status).HasColumnType("int(11)");
  1005. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1006. entity.Property(e => e.UpdateMan)
  1007. .HasColumnType("varchar(50)")
  1008. .HasCharSet("utf8")
  1009. .HasCollation("utf8_general_ci");
  1010. entity.Property(e => e.Url)
  1011. .HasColumnType("longtext")
  1012. .HasCharSet("utf8")
  1013. .HasCollation("utf8_general_ci");
  1014. entity.Property(e => e.Version).HasColumnType("int(11)");
  1015. });
  1016. modelBuilder.Entity<ConsumerOpenIds>(entity =>
  1017. {
  1018. entity.HasKey(e => e.OpenId)
  1019. .HasName("PRIMARY");
  1020. entity.Property(e => e.OpenId)
  1021. .HasColumnType("varchar(50)")
  1022. .HasCharSet("utf8")
  1023. .HasCollation("utf8_general_ci");
  1024. entity.Property(e => e.ConsumerId).HasColumnType("int(11)");
  1025. });
  1026. modelBuilder.Entity<ConsumerOrderForNo>(entity =>
  1027. {
  1028. entity.HasKey(e => e.OrderNo)
  1029. .HasName("PRIMARY");
  1030. entity.Property(e => e.OrderNo)
  1031. .HasColumnType("varchar(50)")
  1032. .HasCharSet("utf8")
  1033. .HasCollation("utf8_general_ci");
  1034. entity.Property(e => e.OrderIds).HasColumnType("int(11)");
  1035. });
  1036. modelBuilder.Entity<ConsumerOrders>(entity =>
  1037. {
  1038. entity.Property(e => e.Id).HasColumnType("int(11)");
  1039. entity.Property(e => e.ConsumerId).HasColumnType("int(11)");
  1040. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1041. entity.Property(e => e.CreateMan)
  1042. .HasColumnType("varchar(50)")
  1043. .HasCharSet("utf8")
  1044. .HasCollation("utf8_general_ci");
  1045. entity.Property(e => e.CurDivi).HasColumnType("decimal(18,2)");
  1046. entity.Property(e => e.IsAct)
  1047. .HasColumnType("bit(1)")
  1048. .HasDefaultValueSql("b'0'");
  1049. entity.Property(e => e.MaxDivi).HasColumnType("decimal(18,2)");
  1050. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  1051. entity.Property(e => e.OrderNo)
  1052. .HasColumnType("varchar(30)")
  1053. .HasCharSet("utf8")
  1054. .HasCollation("utf8_general_ci");
  1055. entity.Property(e => e.PayMode).HasColumnType("int(11)");
  1056. entity.Property(e => e.PayMoney).HasColumnType("decimal(18,2)");
  1057. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1058. entity.Property(e => e.ReturnMoney).HasColumnType("decimal(18,2)");
  1059. entity.Property(e => e.SeoDescription)
  1060. .HasColumnType("varchar(500)")
  1061. .HasCharSet("utf8")
  1062. .HasCollation("utf8_general_ci");
  1063. entity.Property(e => e.SeoKeyword)
  1064. .HasColumnType("varchar(200)")
  1065. .HasCharSet("utf8")
  1066. .HasCollation("utf8_general_ci");
  1067. entity.Property(e => e.SeoTitle)
  1068. .HasColumnType("varchar(100)")
  1069. .HasCharSet("utf8")
  1070. .HasCollation("utf8_general_ci");
  1071. entity.Property(e => e.SnNo)
  1072. .HasColumnType("varchar(50)")
  1073. .HasCharSet("utf8")
  1074. .HasCollation("utf8_general_ci");
  1075. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1076. entity.Property(e => e.Status).HasColumnType("int(11)");
  1077. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1078. entity.Property(e => e.UpdateMan)
  1079. .HasColumnType("varchar(50)")
  1080. .HasCharSet("utf8")
  1081. .HasCollation("utf8_general_ci");
  1082. entity.Property(e => e.Version).HasColumnType("int(11)");
  1083. });
  1084. modelBuilder.Entity<ConsumerProfit>(entity =>
  1085. {
  1086. entity.Property(e => e.Id).HasColumnType("int(11)");
  1087. entity.Property(e => e.ConsumerId).HasColumnType("int(11)");
  1088. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1089. entity.Property(e => e.CreateMan)
  1090. .HasColumnType("varchar(50)")
  1091. .HasCharSet("utf8")
  1092. .HasCollation("utf8_general_ci");
  1093. entity.Property(e => e.GetMoney).HasColumnType("decimal(18,2)");
  1094. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  1095. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  1096. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1097. entity.Property(e => e.SeoDescription)
  1098. .HasColumnType("varchar(500)")
  1099. .HasCharSet("utf8")
  1100. .HasCollation("utf8_general_ci");
  1101. entity.Property(e => e.SeoKeyword)
  1102. .HasColumnType("varchar(200)")
  1103. .HasCharSet("utf8")
  1104. .HasCollation("utf8_general_ci");
  1105. entity.Property(e => e.SeoTitle)
  1106. .HasColumnType("varchar(100)")
  1107. .HasCharSet("utf8")
  1108. .HasCollation("utf8_general_ci");
  1109. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1110. entity.Property(e => e.Status).HasColumnType("int(11)");
  1111. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1112. entity.Property(e => e.UpdateMan)
  1113. .HasColumnType("varchar(50)")
  1114. .HasCharSet("utf8")
  1115. .HasCollation("utf8_general_ci");
  1116. entity.Property(e => e.Version).HasColumnType("int(11)");
  1117. });
  1118. modelBuilder.Entity<Consumers>(entity =>
  1119. {
  1120. entity.Property(e => e.Id).HasColumnType("int(11)");
  1121. entity.Property(e => e.AlipayFlag)
  1122. .HasColumnType("bit(1)")
  1123. .HasDefaultValueSql("b'0'");
  1124. entity.Property(e => e.AlipayUserId)
  1125. .HasColumnType("varchar(50)")
  1126. .HasCharSet("utf8")
  1127. .HasCollation("utf8_general_ci");
  1128. entity.Property(e => e.CardFlag)
  1129. .HasColumnType("bit(1)")
  1130. .HasDefaultValueSql("b'0'");
  1131. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1132. entity.Property(e => e.CreateMan)
  1133. .HasColumnType("varchar(50)")
  1134. .HasCharSet("utf8")
  1135. .HasCollation("utf8_general_ci");
  1136. entity.Property(e => e.CurIntgegral).HasColumnType("int(11)");
  1137. entity.Property(e => e.HeadPhoto)
  1138. .HasColumnType("varchar(2000)")
  1139. .HasCharSet("utf8")
  1140. .HasCollation("utf8_general_ci");
  1141. entity.Property(e => e.LastConsumDate).HasColumnType("datetime");
  1142. entity.Property(e => e.Mobile)
  1143. .HasColumnType("varchar(11)")
  1144. .HasCharSet("utf8")
  1145. .HasCollation("utf8_general_ci");
  1146. entity.Property(e => e.NickName)
  1147. .HasColumnType("varchar(50)")
  1148. .HasCharSet("utf8")
  1149. .HasCollation("utf8_general_ci");
  1150. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1151. entity.Property(e => e.SeoDescription)
  1152. .HasColumnType("varchar(500)")
  1153. .HasCharSet("utf8")
  1154. .HasCollation("utf8_general_ci");
  1155. entity.Property(e => e.SeoKeyword)
  1156. .HasColumnType("varchar(200)")
  1157. .HasCharSet("utf8")
  1158. .HasCollation("utf8_general_ci");
  1159. entity.Property(e => e.SeoTitle)
  1160. .HasColumnType("varchar(100)")
  1161. .HasCharSet("utf8")
  1162. .HasCollation("utf8_general_ci");
  1163. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1164. entity.Property(e => e.Status).HasColumnType("int(11)");
  1165. entity.Property(e => e.TotalAmount).HasColumnType("decimal(18,2)");
  1166. entity.Property(e => e.TotalConsumCount).HasColumnType("int(11)");
  1167. entity.Property(e => e.TotalDividend).HasColumnType("decimal(18,2)");
  1168. entity.Property(e => e.TotalIntegral).HasColumnType("int(11)");
  1169. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1170. entity.Property(e => e.UpdateMan)
  1171. .HasColumnType("varchar(50)")
  1172. .HasCharSet("utf8")
  1173. .HasCollation("utf8_general_ci");
  1174. entity.Property(e => e.Version).HasColumnType("int(11)");
  1175. entity.Property(e => e.WeChatPayFlag)
  1176. .HasColumnType("bit(1)")
  1177. .HasDefaultValueSql("b'0'");
  1178. entity.Property(e => e.WechatOpenId)
  1179. .HasColumnType("varchar(50)")
  1180. .HasCharSet("utf8")
  1181. .HasCollation("utf8_general_ci");
  1182. entity.Property(e => e.WechatUnionid)
  1183. .HasColumnType("varchar(50)")
  1184. .HasCharSet("utf8")
  1185. .HasCollation("utf8_general_ci");
  1186. });
  1187. modelBuilder.Entity<CouponAssignRecords>(entity =>
  1188. {
  1189. entity.Property(e => e.Id).HasColumnType("int(11)");
  1190. entity.Property(e => e.Areas)
  1191. .HasColumnType("varchar(50)")
  1192. .HasCharSet("utf8")
  1193. .HasCollation("utf8_general_ci");
  1194. entity.Property(e => e.CouponIds)
  1195. .HasColumnType("varchar(200)")
  1196. .HasCharSet("utf8")
  1197. .HasCollation("utf8_general_ci");
  1198. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1199. entity.Property(e => e.CreateMan)
  1200. .HasColumnType("varchar(50)")
  1201. .HasCharSet("utf8")
  1202. .HasCollation("utf8_general_ci");
  1203. entity.Property(e => e.CurMoneyMax).HasColumnType("decimal(18,2)");
  1204. entity.Property(e => e.CurMoneyMin).HasColumnType("decimal(18,2)");
  1205. entity.Property(e => e.Mobile)
  1206. .HasColumnType("varchar(11)")
  1207. .HasCharSet("utf8")
  1208. .HasCollation("utf8_general_ci");
  1209. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1210. entity.Property(e => e.SeoDescription)
  1211. .HasColumnType("varchar(500)")
  1212. .HasCharSet("utf8")
  1213. .HasCollation("utf8_general_ci");
  1214. entity.Property(e => e.SeoKeyword)
  1215. .HasColumnType("varchar(200)")
  1216. .HasCharSet("utf8")
  1217. .HasCollation("utf8_general_ci");
  1218. entity.Property(e => e.SeoTitle)
  1219. .HasColumnType("varchar(100)")
  1220. .HasCharSet("utf8")
  1221. .HasCollation("utf8_general_ci");
  1222. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1223. entity.Property(e => e.Status).HasColumnType("int(11)");
  1224. entity.Property(e => e.TotalOrderMoneyMax).HasColumnType("decimal(18,2)");
  1225. entity.Property(e => e.TotalOrderMoneyMin).HasColumnType("decimal(18,2)");
  1226. entity.Property(e => e.TotalUseIntegralMax).HasColumnType("decimal(18,2)");
  1227. entity.Property(e => e.TotalUseIntegralMin).HasColumnType("decimal(18,2)");
  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.UserGroupId)
  1234. .HasColumnType("varchar(50)")
  1235. .HasCharSet("utf8")
  1236. .HasCollation("utf8_general_ci");
  1237. entity.Property(e => e.UserMaxLevel).HasColumnType("int(11)");
  1238. entity.Property(e => e.UserMinLevel).HasColumnType("int(11)");
  1239. entity.Property(e => e.Version).HasColumnType("int(11)");
  1240. });
  1241. modelBuilder.Entity<Coupons>(entity =>
  1242. {
  1243. entity.Property(e => e.Id).HasColumnType("int(11)");
  1244. entity.Property(e => e.AndPromotion)
  1245. .HasColumnType("bit(1)")
  1246. .HasDefaultValueSql("b'0'");
  1247. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1248. entity.Property(e => e.CreateMan)
  1249. .HasColumnType("varchar(50)")
  1250. .HasCharSet("utf8")
  1251. .HasCollation("utf8_general_ci");
  1252. entity.Property(e => e.ExpireEndDate).HasColumnType("datetime");
  1253. entity.Property(e => e.ExpireStartDate).HasColumnType("datetime");
  1254. entity.Property(e => e.Explanation)
  1255. .HasColumnType("varchar(200)")
  1256. .HasCharSet("utf8")
  1257. .HasCollation("utf8_general_ci");
  1258. entity.Property(e => e.FullReduceData).HasColumnType("decimal(18,2)");
  1259. entity.Property(e => e.FullReduceMoney).HasColumnType("decimal(18,2)");
  1260. entity.Property(e => e.IsNewUser)
  1261. .HasColumnType("bit(1)")
  1262. .HasDefaultValueSql("b'0'");
  1263. entity.Property(e => e.IsPublic)
  1264. .HasColumnType("bit(1)")
  1265. .HasDefaultValueSql("b'0'");
  1266. entity.Property(e => e.IsReUse)
  1267. .HasColumnType("bit(1)")
  1268. .HasDefaultValueSql("b'0'");
  1269. entity.Property(e => e.IsRepeat)
  1270. .HasColumnType("bit(1)")
  1271. .HasDefaultValueSql("b'0'");
  1272. entity.Property(e => e.IsSuperpose)
  1273. .HasColumnType("bit(1)")
  1274. .HasDefaultValueSql("b'0'");
  1275. entity.Property(e => e.Kind).HasColumnType("int(11)");
  1276. entity.Property(e => e.MerchantId)
  1277. .HasColumnType("varchar(200)")
  1278. .HasCharSet("utf8")
  1279. .HasCollation("utf8_general_ci");
  1280. entity.Property(e => e.Name)
  1281. .HasColumnType("varchar(50)")
  1282. .HasCharSet("utf8")
  1283. .HasCollation("utf8_general_ci");
  1284. entity.Property(e => e.ProductColId)
  1285. .HasColumnType("varchar(200)")
  1286. .HasCharSet("utf8")
  1287. .HasCollation("utf8_general_ci");
  1288. entity.Property(e => e.ProductId)
  1289. .HasColumnType("varchar(500)")
  1290. .HasCharSet("utf8")
  1291. .HasCollation("utf8_general_ci");
  1292. entity.Property(e => e.PublicEndDate).HasColumnType("datetime");
  1293. entity.Property(e => e.PublicMax).HasColumnType("int(11)");
  1294. entity.Property(e => e.PublicMaxByDay).HasColumnType("int(11)");
  1295. entity.Property(e => e.PublicStartDate).HasColumnType("datetime");
  1296. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1297. entity.Property(e => e.RepeatCondition)
  1298. .HasColumnType("varchar(50)")
  1299. .HasCharSet("utf8")
  1300. .HasCollation("utf8_general_ci");
  1301. entity.Property(e => e.RepeatType).HasColumnType("int(11)");
  1302. entity.Property(e => e.SeoDescription)
  1303. .HasColumnType("varchar(500)")
  1304. .HasCharSet("utf8")
  1305. .HasCollation("utf8_general_ci");
  1306. entity.Property(e => e.SeoKeyword)
  1307. .HasColumnType("varchar(200)")
  1308. .HasCharSet("utf8")
  1309. .HasCollation("utf8_general_ci");
  1310. entity.Property(e => e.SeoTitle)
  1311. .HasColumnType("varchar(100)")
  1312. .HasCharSet("utf8")
  1313. .HasCollation("utf8_general_ci");
  1314. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1315. entity.Property(e => e.Status).HasColumnType("int(11)");
  1316. entity.Property(e => e.Stock).HasColumnType("decimal(18,2)");
  1317. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1318. entity.Property(e => e.UpdateMan)
  1319. .HasColumnType("varchar(50)")
  1320. .HasCharSet("utf8")
  1321. .HasCollation("utf8_general_ci");
  1322. entity.Property(e => e.UseEndDate).HasColumnType("datetime");
  1323. entity.Property(e => e.UseStartDate).HasColumnType("datetime");
  1324. entity.Property(e => e.UserMaxLevel).HasColumnType("int(11)");
  1325. entity.Property(e => e.UserMinLevel).HasColumnType("int(11)");
  1326. entity.Property(e => e.Version).HasColumnType("int(11)");
  1327. });
  1328. modelBuilder.Entity<CouponsForUser>(entity =>
  1329. {
  1330. entity.Property(e => e.Id).HasColumnType("int(11)");
  1331. entity.Property(e => e.CouponId).HasColumnType("int(11)");
  1332. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1333. entity.Property(e => e.CreateMan)
  1334. .HasColumnType("varchar(50)")
  1335. .HasCharSet("utf8")
  1336. .HasCollation("utf8_general_ci");
  1337. entity.Property(e => e.IsLock)
  1338. .HasColumnType("bit(1)")
  1339. .HasDefaultValueSql("b'0'");
  1340. entity.Property(e => e.IsUse)
  1341. .HasColumnType("bit(1)")
  1342. .HasDefaultValueSql("b'0'");
  1343. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1344. entity.Property(e => e.SeoDescription)
  1345. .HasColumnType("varchar(500)")
  1346. .HasCharSet("utf8")
  1347. .HasCollation("utf8_general_ci");
  1348. entity.Property(e => e.SeoKeyword)
  1349. .HasColumnType("varchar(200)")
  1350. .HasCharSet("utf8")
  1351. .HasCollation("utf8_general_ci");
  1352. entity.Property(e => e.SeoTitle)
  1353. .HasColumnType("varchar(100)")
  1354. .HasCharSet("utf8")
  1355. .HasCollation("utf8_general_ci");
  1356. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1357. entity.Property(e => e.Status).HasColumnType("int(11)");
  1358. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1359. entity.Property(e => e.UpdateMan)
  1360. .HasColumnType("varchar(50)")
  1361. .HasCharSet("utf8")
  1362. .HasCollation("utf8_general_ci");
  1363. entity.Property(e => e.UseDate).HasColumnType("datetime");
  1364. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1365. entity.Property(e => e.Version).HasColumnType("int(11)");
  1366. });
  1367. modelBuilder.Entity<CustomTagSet>(entity =>
  1368. {
  1369. entity.Property(e => e.Id).HasColumnType("int(11)");
  1370. entity.Property(e => e.Contents)
  1371. .HasColumnType("varchar(500)")
  1372. .HasCharSet("utf8")
  1373. .HasCollation("utf8_general_ci");
  1374. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1375. entity.Property(e => e.CreateMan)
  1376. .HasColumnType("varchar(50)")
  1377. .HasCharSet("utf8")
  1378. .HasCollation("utf8_general_ci");
  1379. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1380. entity.Property(e => e.SeoDescription)
  1381. .HasColumnType("varchar(500)")
  1382. .HasCharSet("utf8")
  1383. .HasCollation("utf8_general_ci");
  1384. entity.Property(e => e.SeoKeyword)
  1385. .HasColumnType("varchar(200)")
  1386. .HasCharSet("utf8")
  1387. .HasCollation("utf8_general_ci");
  1388. entity.Property(e => e.SeoTitle)
  1389. .HasColumnType("varchar(100)")
  1390. .HasCharSet("utf8")
  1391. .HasCollation("utf8_general_ci");
  1392. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1393. entity.Property(e => e.Status).HasColumnType("int(11)");
  1394. entity.Property(e => e.Tags)
  1395. .HasColumnType("varchar(50)")
  1396. .HasCharSet("utf8")
  1397. .HasCollation("utf8_general_ci");
  1398. entity.Property(e => e.Title)
  1399. .HasColumnType("varchar(50)")
  1400. .HasCharSet("utf8")
  1401. .HasCollation("utf8_general_ci");
  1402. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1403. entity.Property(e => e.UpdateMan)
  1404. .HasColumnType("varchar(50)")
  1405. .HasCharSet("utf8")
  1406. .HasCollation("utf8_general_ci");
  1407. entity.Property(e => e.Version).HasColumnType("int(11)");
  1408. });
  1409. modelBuilder.Entity<ErpCompanys>(entity =>
  1410. {
  1411. entity.Property(e => e.Id).HasColumnType("int(11)");
  1412. entity.Property(e => e.Code)
  1413. .HasColumnType("varchar(50)")
  1414. .HasCharSet("utf8")
  1415. .HasCollation("utf8_general_ci");
  1416. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1417. entity.Property(e => e.CreateMan)
  1418. .HasColumnType("varchar(50)")
  1419. .HasCharSet("utf8")
  1420. .HasCollation("utf8_general_ci");
  1421. entity.Property(e => e.Name)
  1422. .HasColumnType("varchar(50)")
  1423. .HasCharSet("utf8")
  1424. .HasCollation("utf8_general_ci");
  1425. entity.Property(e => e.Phone)
  1426. .HasColumnType("varchar(30)")
  1427. .HasCharSet("utf8")
  1428. .HasCollation("utf8_general_ci");
  1429. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1430. entity.Property(e => e.SeoDescription)
  1431. .HasColumnType("varchar(500)")
  1432. .HasCharSet("utf8")
  1433. .HasCollation("utf8_general_ci");
  1434. entity.Property(e => e.SeoKeyword)
  1435. .HasColumnType("varchar(200)")
  1436. .HasCharSet("utf8")
  1437. .HasCollation("utf8_general_ci");
  1438. entity.Property(e => e.SeoTitle)
  1439. .HasColumnType("varchar(100)")
  1440. .HasCharSet("utf8")
  1441. .HasCollation("utf8_general_ci");
  1442. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1443. entity.Property(e => e.Status).HasColumnType("int(11)");
  1444. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1445. entity.Property(e => e.UpdateMan)
  1446. .HasColumnType("varchar(50)")
  1447. .HasCharSet("utf8")
  1448. .HasCollation("utf8_general_ci");
  1449. entity.Property(e => e.Version).HasColumnType("int(11)");
  1450. });
  1451. modelBuilder.Entity<FileUpdateInfo>(entity =>
  1452. {
  1453. entity.Property(e => e.Id).HasColumnType("int(11)");
  1454. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1455. entity.Property(e => e.CreateMan)
  1456. .HasColumnType("varchar(50)")
  1457. .HasCharSet("utf8")
  1458. .HasCollation("utf8_general_ci");
  1459. entity.Property(e => e.FileName)
  1460. .HasColumnType("varchar(50)")
  1461. .HasCharSet("utf8")
  1462. .HasCollation("utf8_general_ci");
  1463. entity.Property(e => e.Path)
  1464. .HasColumnType("varchar(200)")
  1465. .HasCharSet("utf8")
  1466. .HasCollation("utf8_general_ci");
  1467. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1468. entity.Property(e => e.SeoDescription)
  1469. .HasColumnType("varchar(500)")
  1470. .HasCharSet("utf8")
  1471. .HasCollation("utf8_general_ci");
  1472. entity.Property(e => e.SeoKeyword)
  1473. .HasColumnType("varchar(200)")
  1474. .HasCharSet("utf8")
  1475. .HasCollation("utf8_general_ci");
  1476. entity.Property(e => e.SeoTitle)
  1477. .HasColumnType("varchar(100)")
  1478. .HasCharSet("utf8")
  1479. .HasCollation("utf8_general_ci");
  1480. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1481. entity.Property(e => e.Status).HasColumnType("int(11)");
  1482. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1483. entity.Property(e => e.UpdateMan)
  1484. .HasColumnType("varchar(50)")
  1485. .HasCharSet("utf8")
  1486. .HasCollation("utf8_general_ci");
  1487. entity.Property(e => e.Version).HasColumnType("int(11)");
  1488. entity.Property(e => e.VersionNum).HasColumnType("int(11)");
  1489. });
  1490. modelBuilder.Entity<FluxProfitDetail>(entity =>
  1491. {
  1492. entity.Property(e => e.Id).HasColumnType("int(11)");
  1493. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1494. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1495. entity.Property(e => e.CreateMan)
  1496. .HasColumnType("varchar(50)")
  1497. .HasCharSet("utf8")
  1498. .HasCollation("utf8_general_ci");
  1499. entity.Property(e => e.FluxEndDate)
  1500. .HasColumnType("varchar(8)")
  1501. .HasCharSet("utf8")
  1502. .HasCollation("utf8_general_ci");
  1503. entity.Property(e => e.FluxFeeAmt).HasColumnType("decimal(18,2)");
  1504. entity.Property(e => e.FluxOrderNo)
  1505. .HasColumnType("varchar(64)")
  1506. .HasCharSet("utf8")
  1507. .HasCollation("utf8_general_ci");
  1508. entity.Property(e => e.FluxProfitAmt).HasColumnType("decimal(18,2)");
  1509. entity.Property(e => e.FluxStartDate)
  1510. .HasColumnType("varchar(8)")
  1511. .HasCharSet("utf8")
  1512. .HasCollation("utf8_general_ci");
  1513. entity.Property(e => e.MerNo)
  1514. .HasColumnType("varchar(32)")
  1515. .HasCharSet("utf8")
  1516. .HasCollation("utf8_general_ci");
  1517. entity.Property(e => e.MerUserType).HasColumnType("int(11)");
  1518. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  1519. entity.Property(e => e.MerchantUserId).HasColumnType("int(11)");
  1520. entity.Property(e => e.PosType)
  1521. .HasColumnType("varchar(32)")
  1522. .HasCharSet("utf8")
  1523. .HasCollation("utf8_general_ci");
  1524. entity.Property(e => e.ProfitType).HasColumnType("int(11)");
  1525. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1526. entity.Property(e => e.RecordNo)
  1527. .HasColumnType("varchar(32)")
  1528. .HasCharSet("utf8")
  1529. .HasCollation("utf8_general_ci");
  1530. entity.Property(e => e.Remark)
  1531. .HasColumnType("varchar(128)")
  1532. .HasCharSet("utf8")
  1533. .HasCollation("utf8_general_ci");
  1534. entity.Property(e => e.SeoDescription)
  1535. .HasColumnType("varchar(500)")
  1536. .HasCharSet("utf8")
  1537. .HasCollation("utf8_general_ci");
  1538. entity.Property(e => e.SeoKeyword)
  1539. .HasColumnType("varchar(200)")
  1540. .HasCharSet("utf8")
  1541. .HasCollation("utf8_general_ci");
  1542. entity.Property(e => e.SeoTitle)
  1543. .HasColumnType("varchar(100)")
  1544. .HasCharSet("utf8")
  1545. .HasCollation("utf8_general_ci");
  1546. entity.Property(e => e.SnNo)
  1547. .HasColumnType("varchar(32)")
  1548. .HasCharSet("utf8")
  1549. .HasCollation("utf8_general_ci");
  1550. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1551. entity.Property(e => e.Status).HasColumnType("int(11)");
  1552. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  1553. entity.Property(e => e.TradeAmt).HasColumnType("decimal(18,2)");
  1554. entity.Property(e => e.TradeDate)
  1555. .HasColumnType("varchar(8)")
  1556. .HasCharSet("utf8")
  1557. .HasCollation("utf8_general_ci");
  1558. entity.Property(e => e.TradeMonth)
  1559. .HasColumnType("varchar(6)")
  1560. .HasCharSet("utf8")
  1561. .HasCollation("utf8_general_ci");
  1562. entity.Property(e => e.TradeOrderNo)
  1563. .HasColumnType("varchar(64)")
  1564. .HasCharSet("utf8")
  1565. .HasCollation("utf8_general_ci");
  1566. entity.Property(e => e.TradeTime)
  1567. .HasColumnType("varchar(6)")
  1568. .HasCharSet("utf8")
  1569. .HasCollation("utf8_general_ci");
  1570. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1571. entity.Property(e => e.UpdateMan)
  1572. .HasColumnType("varchar(50)")
  1573. .HasCharSet("utf8")
  1574. .HasCollation("utf8_general_ci");
  1575. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1576. entity.Property(e => e.Version).HasColumnType("int(11)");
  1577. });
  1578. modelBuilder.Entity<FluxProfitSummary>(entity =>
  1579. {
  1580. entity.Property(e => e.Id).HasColumnType("int(11)");
  1581. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1582. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  1583. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1584. entity.Property(e => e.CreateMan)
  1585. .HasColumnType("varchar(50)")
  1586. .HasCharSet("utf8")
  1587. .HasCollation("utf8_general_ci");
  1588. entity.Property(e => e.FluxProfitAmt).HasColumnType("decimal(18,2)");
  1589. entity.Property(e => e.FluxTradeNum).HasColumnType("int(11)");
  1590. entity.Property(e => e.MerUserType).HasColumnType("int(11)");
  1591. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1592. entity.Property(e => e.Remark)
  1593. .HasColumnType("varchar(64)")
  1594. .HasCharSet("utf8")
  1595. .HasCollation("utf8_general_ci");
  1596. entity.Property(e => e.SeoDescription)
  1597. .HasColumnType("varchar(500)")
  1598. .HasCharSet("utf8")
  1599. .HasCollation("utf8_general_ci");
  1600. entity.Property(e => e.SeoKeyword)
  1601. .HasColumnType("varchar(200)")
  1602. .HasCharSet("utf8")
  1603. .HasCollation("utf8_general_ci");
  1604. entity.Property(e => e.SeoTitle)
  1605. .HasColumnType("varchar(100)")
  1606. .HasCharSet("utf8")
  1607. .HasCollation("utf8_general_ci");
  1608. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1609. entity.Property(e => e.Status).HasColumnType("int(11)");
  1610. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  1611. entity.Property(e => e.TradeMonth)
  1612. .HasColumnType("varchar(6)")
  1613. .HasCharSet("utf8")
  1614. .HasCollation("utf8_general_ci");
  1615. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1616. entity.Property(e => e.UpdateMan)
  1617. .HasColumnType("varchar(50)")
  1618. .HasCharSet("utf8")
  1619. .HasCollation("utf8_general_ci");
  1620. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1621. entity.Property(e => e.Version).HasColumnType("int(11)");
  1622. });
  1623. modelBuilder.Entity<IndexIconList>(entity =>
  1624. {
  1625. entity.Property(e => e.Id).HasColumnType("int(11)");
  1626. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1627. entity.Property(e => e.CreateMan)
  1628. .HasColumnType("varchar(50)")
  1629. .HasCharSet("utf8")
  1630. .HasCollation("utf8_general_ci");
  1631. entity.Property(e => e.Icon)
  1632. .HasColumnType("varchar(200)")
  1633. .HasCharSet("utf8")
  1634. .HasCollation("utf8_general_ci");
  1635. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1636. entity.Property(e => e.SeoDescription)
  1637. .HasColumnType("varchar(500)")
  1638. .HasCharSet("utf8")
  1639. .HasCollation("utf8_general_ci");
  1640. entity.Property(e => e.SeoKeyword)
  1641. .HasColumnType("varchar(200)")
  1642. .HasCharSet("utf8")
  1643. .HasCollation("utf8_general_ci");
  1644. entity.Property(e => e.SeoTitle)
  1645. .HasColumnType("varchar(100)")
  1646. .HasCharSet("utf8")
  1647. .HasCollation("utf8_general_ci");
  1648. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1649. entity.Property(e => e.Status).HasColumnType("int(11)");
  1650. entity.Property(e => e.Title)
  1651. .HasColumnType("varchar(50)")
  1652. .HasCharSet("utf8")
  1653. .HasCollation("utf8_general_ci");
  1654. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1655. entity.Property(e => e.UpdateMan)
  1656. .HasColumnType("varchar(50)")
  1657. .HasCharSet("utf8")
  1658. .HasCollation("utf8_general_ci");
  1659. entity.Property(e => e.Url)
  1660. .HasColumnType("varchar(50)")
  1661. .HasCharSet("utf8")
  1662. .HasCollation("utf8_general_ci");
  1663. entity.Property(e => e.Version).HasColumnType("int(11)");
  1664. });
  1665. modelBuilder.Entity<KqProductBrand>(entity =>
  1666. {
  1667. entity.Property(e => e.Id).HasColumnType("int(11)");
  1668. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1669. entity.Property(e => e.CreateMan)
  1670. .HasColumnType("varchar(50)")
  1671. .HasCharSet("utf8")
  1672. .HasCollation("utf8_general_ci");
  1673. entity.Property(e => e.Name)
  1674. .HasColumnType("varchar(50)")
  1675. .HasCharSet("utf8")
  1676. .HasCollation("utf8_general_ci");
  1677. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  1678. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1679. entity.Property(e => e.SeoDescription)
  1680. .HasColumnType("varchar(500)")
  1681. .HasCharSet("utf8")
  1682. .HasCollation("utf8_general_ci");
  1683. entity.Property(e => e.SeoKeyword)
  1684. .HasColumnType("varchar(200)")
  1685. .HasCharSet("utf8")
  1686. .HasCollation("utf8_general_ci");
  1687. entity.Property(e => e.SeoTitle)
  1688. .HasColumnType("varchar(100)")
  1689. .HasCharSet("utf8")
  1690. .HasCollation("utf8_general_ci");
  1691. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1692. entity.Property(e => e.Status).HasColumnType("int(11)");
  1693. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1694. entity.Property(e => e.UpdateMan)
  1695. .HasColumnType("varchar(50)")
  1696. .HasCharSet("utf8")
  1697. .HasCollation("utf8_general_ci");
  1698. entity.Property(e => e.Version).HasColumnType("int(11)");
  1699. });
  1700. modelBuilder.Entity<KqProductOrgs>(entity =>
  1701. {
  1702. entity.Property(e => e.Id).HasColumnType("int(11)");
  1703. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1704. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1705. entity.Property(e => e.CreateMan)
  1706. .HasColumnType("varchar(50)")
  1707. .HasCharSet("utf8")
  1708. .HasCollation("utf8_general_ci");
  1709. entity.Property(e => e.Name)
  1710. .HasColumnType("varchar(50)")
  1711. .HasCharSet("utf8")
  1712. .HasCollation("utf8_general_ci");
  1713. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1714. entity.Property(e => e.SeoDescription)
  1715. .HasColumnType("varchar(500)")
  1716. .HasCharSet("utf8")
  1717. .HasCollation("utf8_general_ci");
  1718. entity.Property(e => e.SeoKeyword)
  1719. .HasColumnType("varchar(200)")
  1720. .HasCharSet("utf8")
  1721. .HasCollation("utf8_general_ci");
  1722. entity.Property(e => e.SeoTitle)
  1723. .HasColumnType("varchar(100)")
  1724. .HasCharSet("utf8")
  1725. .HasCollation("utf8_general_ci");
  1726. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1727. entity.Property(e => e.Status).HasColumnType("int(11)");
  1728. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1729. entity.Property(e => e.UpdateMan)
  1730. .HasColumnType("varchar(50)")
  1731. .HasCharSet("utf8")
  1732. .HasCollation("utf8_general_ci");
  1733. entity.Property(e => e.Version).HasColumnType("int(11)");
  1734. });
  1735. modelBuilder.Entity<KqProductRuleSet>(entity =>
  1736. {
  1737. entity.Property(e => e.Id).HasColumnType("int(11)");
  1738. entity.Property(e => e.ActDeposit).HasColumnType("decimal(18,2)");
  1739. entity.Property(e => e.ActEndDate).HasColumnType("datetime");
  1740. entity.Property(e => e.ActFirst).HasColumnType("decimal(18,2)");
  1741. entity.Property(e => e.ActFirstDeposit).HasColumnType("decimal(18,2)");
  1742. entity.Property(e => e.ActPosCount).HasColumnType("int(11)");
  1743. entity.Property(e => e.ActPrize).HasColumnType("decimal(18,2)");
  1744. entity.Property(e => e.ActStartDate).HasColumnType("datetime");
  1745. entity.Property(e => e.ActiveCount).HasColumnType("int(11)");
  1746. entity.Property(e => e.ActivePrice).HasColumnType("decimal(18,2)");
  1747. entity.Property(e => e.BigExtendCycleDays).HasColumnType("int(11)");
  1748. entity.Property(e => e.BigTotalAmount).HasColumnType("decimal(18,2)");
  1749. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1750. entity.Property(e => e.CreateMan)
  1751. .HasColumnType("varchar(50)")
  1752. .HasCharSet("utf8")
  1753. .HasCollation("utf8_general_ci");
  1754. entity.Property(e => e.CycleEndDate).HasColumnType("datetime");
  1755. entity.Property(e => e.CycleIsOther)
  1756. .HasColumnType("bit(1)")
  1757. .HasDefaultValueSql("b'0'");
  1758. entity.Property(e => e.CyclePosDays).HasColumnType("int(11)");
  1759. entity.Property(e => e.CycleStartDate).HasColumnType("datetime");
  1760. entity.Property(e => e.Deposit).HasColumnType("decimal(18,2)");
  1761. entity.Property(e => e.FeeBindDays).HasColumnType("int(11)");
  1762. entity.Property(e => e.FeeFixed).HasColumnType("decimal(18,2)");
  1763. entity.Property(e => e.FeeOfDays).HasColumnType("datetime");
  1764. entity.Property(e => e.FeeRate).HasColumnType("decimal(18,2)");
  1765. entity.Property(e => e.FlowCardDirectProfit).HasColumnType("decimal(18,2)");
  1766. entity.Property(e => e.FlowCardEndDate).HasColumnType("datetime");
  1767. entity.Property(e => e.FlowCardFee).HasColumnType("decimal(18,2)");
  1768. entity.Property(e => e.FlowCardFreeDays).HasColumnType("int(11)");
  1769. entity.Property(e => e.FlowCardStartDate).HasColumnType("datetime");
  1770. entity.Property(e => e.HelpEndDate).HasColumnType("datetime");
  1771. entity.Property(e => e.HelpFee).HasColumnType("decimal(18,2)");
  1772. entity.Property(e => e.HelpMonths).HasColumnType("int(11)");
  1773. entity.Property(e => e.HelpStartDate).HasColumnType("datetime");
  1774. entity.Property(e => e.HelpSteadyFee).HasColumnType("decimal(18,2)");
  1775. entity.Property(e => e.MerStaEndDate).HasColumnType("datetime");
  1776. entity.Property(e => e.MerStaMonths).HasColumnType("int(11)");
  1777. entity.Property(e => e.MerStaProfit).HasColumnType("decimal(18,2)");
  1778. entity.Property(e => e.MerStaStartDate).HasColumnType("datetime");
  1779. entity.Property(e => e.MerStaTradeForMonth).HasColumnType("decimal(18,2)");
  1780. entity.Property(e => e.OpenEndDate).HasColumnType("datetime");
  1781. entity.Property(e => e.OpenStaDays).HasColumnType("int(11)");
  1782. entity.Property(e => e.OpenStaPrize).HasColumnType("decimal(18,2)");
  1783. entity.Property(e => e.OpenStaPrize2).HasColumnType("decimal(18,2)");
  1784. entity.Property(e => e.OpenStaTrade).HasColumnType("decimal(18,2)");
  1785. entity.Property(e => e.OpenStartDate).HasColumnType("datetime");
  1786. entity.Property(e => e.OrgId).HasColumnType("int(11)");
  1787. entity.Property(e => e.PullNewEndDate).HasColumnType("datetime");
  1788. entity.Property(e => e.PullNewExtendDays).HasColumnType("int(11)");
  1789. entity.Property(e => e.PullNewStartDate).HasColumnType("datetime");
  1790. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1791. entity.Property(e => e.SeoDescription)
  1792. .HasColumnType("varchar(500)")
  1793. .HasCharSet("utf8")
  1794. .HasCollation("utf8_general_ci");
  1795. entity.Property(e => e.SeoKeyword)
  1796. .HasColumnType("varchar(200)")
  1797. .HasCharSet("utf8")
  1798. .HasCollation("utf8_general_ci");
  1799. entity.Property(e => e.SeoTitle)
  1800. .HasColumnType("varchar(100)")
  1801. .HasCharSet("utf8")
  1802. .HasCollation("utf8_general_ci");
  1803. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1804. entity.Property(e => e.Status).HasColumnType("int(11)");
  1805. entity.Property(e => e.SubsidyEndDate).HasColumnType("datetime");
  1806. entity.Property(e => e.SubsidyStartDate).HasColumnType("datetime");
  1807. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1808. entity.Property(e => e.UpdateMan)
  1809. .HasColumnType("varchar(50)")
  1810. .HasCharSet("utf8")
  1811. .HasCollation("utf8_general_ci");
  1812. entity.Property(e => e.Version).HasColumnType("int(11)");
  1813. });
  1814. modelBuilder.Entity<KqProducts>(entity =>
  1815. {
  1816. entity.Property(e => e.Id).HasColumnType("int(11)");
  1817. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1818. entity.Property(e => e.CreateMan)
  1819. .HasColumnType("varchar(50)")
  1820. .HasCharSet("utf8")
  1821. .HasCollation("utf8_general_ci");
  1822. entity.Property(e => e.Name)
  1823. .HasColumnType("varchar(50)")
  1824. .HasCharSet("utf8")
  1825. .HasCollation("utf8_general_ci");
  1826. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1827. entity.Property(e => e.SeoDescription)
  1828. .HasColumnType("varchar(500)")
  1829. .HasCharSet("utf8")
  1830. .HasCollation("utf8_general_ci");
  1831. entity.Property(e => e.SeoKeyword)
  1832. .HasColumnType("varchar(200)")
  1833. .HasCharSet("utf8")
  1834. .HasCollation("utf8_general_ci");
  1835. entity.Property(e => e.SeoTitle)
  1836. .HasColumnType("varchar(100)")
  1837. .HasCharSet("utf8")
  1838. .HasCollation("utf8_general_ci");
  1839. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1840. entity.Property(e => e.Status).HasColumnType("int(11)");
  1841. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1842. entity.Property(e => e.UpdateMan)
  1843. .HasColumnType("varchar(50)")
  1844. .HasCharSet("utf8")
  1845. .HasCollation("utf8_general_ci");
  1846. entity.Property(e => e.Version).HasColumnType("int(11)");
  1847. });
  1848. modelBuilder.Entity<LeaderReserveRecord>(entity =>
  1849. {
  1850. entity.Property(e => e.Id).HasColumnType("int(11)");
  1851. entity.Property(e => e.AfterAmt).HasColumnType("decimal(18,2)");
  1852. entity.Property(e => e.BeforeAmt).HasColumnType("decimal(18,2)");
  1853. entity.Property(e => e.ChangeAmt).HasColumnType("decimal(18,2)");
  1854. entity.Property(e => e.ChangeType).HasColumnType("int(11)");
  1855. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1856. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  1857. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1858. entity.Property(e => e.Remark)
  1859. .HasColumnType("varchar(200)")
  1860. .HasCharSet("utf8")
  1861. .HasCollation("utf8_general_ci");
  1862. entity.Property(e => e.SeoDescription)
  1863. .HasColumnType("varchar(500)")
  1864. .HasCharSet("utf8")
  1865. .HasCollation("utf8_general_ci");
  1866. entity.Property(e => e.SeoKeyword)
  1867. .HasColumnType("varchar(200)")
  1868. .HasCharSet("utf8")
  1869. .HasCollation("utf8_general_ci");
  1870. entity.Property(e => e.SeoTitle)
  1871. .HasColumnType("varchar(100)")
  1872. .HasCharSet("utf8")
  1873. .HasCollation("utf8_general_ci");
  1874. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1875. entity.Property(e => e.SourceUserId).HasColumnType("int(11)");
  1876. entity.Property(e => e.Status).HasColumnType("int(11)");
  1877. entity.Property(e => e.TradeDate)
  1878. .HasColumnType("varchar(8)")
  1879. .HasCharSet("utf8")
  1880. .HasCollation("utf8_general_ci");
  1881. entity.Property(e => e.TradeMonth)
  1882. .HasColumnType("varchar(6)")
  1883. .HasCharSet("utf8")
  1884. .HasCollation("utf8_general_ci");
  1885. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1886. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1887. });
  1888. modelBuilder.Entity<MachineApply>(entity =>
  1889. {
  1890. entity.Property(e => e.Id).HasColumnType("int(11)");
  1891. entity.Property(e => e.Address)
  1892. .HasColumnType("varchar(50)")
  1893. .HasCharSet("utf8")
  1894. .HasCollation("utf8_general_ci");
  1895. entity.Property(e => e.ApplyDeviceName)
  1896. .HasColumnType("varchar(32)")
  1897. .HasCharSet("utf8")
  1898. .HasCollation("utf8_general_ci");
  1899. entity.Property(e => e.ApplyDeviceNum).HasColumnType("int(11)");
  1900. entity.Property(e => e.ApplyNo)
  1901. .HasColumnType("varchar(32)")
  1902. .HasCharSet("utf8")
  1903. .HasCollation("utf8_general_ci");
  1904. entity.Property(e => e.ApplyTime).HasColumnType("datetime");
  1905. entity.Property(e => e.Areas)
  1906. .HasColumnType("varchar(30)")
  1907. .HasCharSet("utf8")
  1908. .HasCollation("utf8_general_ci");
  1909. entity.Property(e => e.AuditBy)
  1910. .HasColumnType("varchar(32)")
  1911. .HasCharSet("utf8")
  1912. .HasCollation("utf8_general_ci");
  1913. entity.Property(e => e.AuditRemark)
  1914. .HasColumnType("varchar(128)")
  1915. .HasCharSet("utf8")
  1916. .HasCollation("utf8_general_ci");
  1917. entity.Property(e => e.AuditResult).HasColumnType("int(11)");
  1918. entity.Property(e => e.AuditTime).HasColumnType("datetime");
  1919. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1920. entity.Property(e => e.CompleteTime).HasColumnType("datetime");
  1921. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1922. entity.Property(e => e.CreateMan)
  1923. .HasColumnType("varchar(50)")
  1924. .HasCharSet("utf8")
  1925. .HasCollation("utf8_general_ci");
  1926. entity.Property(e => e.DeliveryType).HasColumnType("int(11)");
  1927. entity.Property(e => e.ExpressName)
  1928. .HasColumnType("varchar(32)")
  1929. .HasCharSet("utf8")
  1930. .HasCollation("utf8_general_ci");
  1931. entity.Property(e => e.ExpressNo)
  1932. .HasColumnType("varchar(32)")
  1933. .HasCharSet("utf8")
  1934. .HasCollation("utf8_general_ci");
  1935. entity.Property(e => e.Mobile)
  1936. .HasColumnType("varchar(11)")
  1937. .HasCharSet("utf8")
  1938. .HasCollation("utf8_general_ci");
  1939. entity.Property(e => e.OrderExpand)
  1940. .HasColumnType("mediumtext")
  1941. .HasCharSet("utf8")
  1942. .HasCollation("utf8_general_ci");
  1943. entity.Property(e => e.ProductName)
  1944. .HasColumnType("varchar(32)")
  1945. .HasCharSet("utf8")
  1946. .HasCollation("utf8_general_ci");
  1947. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1948. entity.Property(e => e.RealName)
  1949. .HasColumnType("varchar(30)")
  1950. .HasCharSet("utf8")
  1951. .HasCollation("utf8_general_ci");
  1952. entity.Property(e => e.Remark)
  1953. .HasColumnType("varchar(64)")
  1954. .HasCharSet("utf8")
  1955. .HasCollation("utf8_general_ci");
  1956. entity.Property(e => e.ReturnOrderNo)
  1957. .HasColumnType("varchar(32)")
  1958. .HasCharSet("utf8")
  1959. .HasCollation("utf8_general_ci");
  1960. entity.Property(e => e.ReturnStatus).HasColumnType("int(11)");
  1961. entity.Property(e => e.SendDate).HasColumnType("datetime");
  1962. entity.Property(e => e.SendSn)
  1963. .HasColumnType("varchar(32)")
  1964. .HasCharSet("utf8")
  1965. .HasCollation("utf8_general_ci");
  1966. entity.Property(e => e.SendStatus).HasColumnType("int(11)");
  1967. entity.Property(e => e.SeoDescription)
  1968. .HasColumnType("varchar(500)")
  1969. .HasCharSet("utf8")
  1970. .HasCollation("utf8_general_ci");
  1971. entity.Property(e => e.SeoKeyword)
  1972. .HasColumnType("varchar(200)")
  1973. .HasCharSet("utf8")
  1974. .HasCollation("utf8_general_ci");
  1975. entity.Property(e => e.SeoTitle)
  1976. .HasColumnType("varchar(100)")
  1977. .HasCharSet("utf8")
  1978. .HasCollation("utf8_general_ci");
  1979. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1980. entity.Property(e => e.Status).HasColumnType("int(11)");
  1981. entity.Property(e => e.StoreAddress)
  1982. .HasColumnType("varchar(50)")
  1983. .HasCharSet("utf8")
  1984. .HasCollation("utf8_general_ci");
  1985. entity.Property(e => e.StoreAreas)
  1986. .HasColumnType("varchar(30)")
  1987. .HasCharSet("utf8")
  1988. .HasCollation("utf8_general_ci");
  1989. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  1990. entity.Property(e => e.StoreManager)
  1991. .HasColumnType("varchar(32)")
  1992. .HasCharSet("utf8")
  1993. .HasCollation("utf8_general_ci");
  1994. entity.Property(e => e.StoreManagerMobile)
  1995. .HasColumnType("varchar(11)")
  1996. .HasCharSet("utf8")
  1997. .HasCollation("utf8_general_ci");
  1998. entity.Property(e => e.StoreName)
  1999. .HasColumnType("varchar(32)")
  2000. .HasCharSet("utf8")
  2001. .HasCollation("utf8_general_ci");
  2002. entity.Property(e => e.StoreType).HasColumnType("int(11)");
  2003. entity.Property(e => e.StoreUserId).HasColumnType("int(11)");
  2004. entity.Property(e => e.SwapActProName)
  2005. .HasColumnType("varchar(32)")
  2006. .HasCharSet("utf8")
  2007. .HasCollation("utf8_general_ci");
  2008. entity.Property(e => e.SwapActProType).HasColumnType("int(11)");
  2009. entity.Property(e => e.SwapSnExpand)
  2010. .HasColumnType("mediumtext")
  2011. .HasCharSet("utf8")
  2012. .HasCollation("utf8_general_ci");
  2013. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  2014. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2015. entity.Property(e => e.UpdateMan)
  2016. .HasColumnType("varchar(50)")
  2017. .HasCharSet("utf8")
  2018. .HasCollation("utf8_general_ci");
  2019. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2020. entity.Property(e => e.Version).HasColumnType("int(11)");
  2021. });
  2022. modelBuilder.Entity<MachineApplyDetail>(entity =>
  2023. {
  2024. entity.Property(e => e.Id).HasColumnType("int(11)");
  2025. entity.Property(e => e.ApplyId).HasColumnType("int(11)");
  2026. entity.Property(e => e.ApplyNo)
  2027. .HasColumnType("varchar(32)")
  2028. .HasCharSet("utf8")
  2029. .HasCollation("utf8_general_ci");
  2030. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2031. entity.Property(e => e.CreateMan)
  2032. .HasColumnType("varchar(50)")
  2033. .HasCharSet("utf8")
  2034. .HasCollation("utf8_general_ci");
  2035. entity.Property(e => e.DeviceDesc)
  2036. .HasColumnType("varchar(32)")
  2037. .HasCharSet("utf8")
  2038. .HasCollation("utf8_general_ci");
  2039. entity.Property(e => e.DeviceModel)
  2040. .HasColumnType("varchar(32)")
  2041. .HasCharSet("utf8")
  2042. .HasCollation("utf8_general_ci");
  2043. entity.Property(e => e.DeviceSnNo)
  2044. .HasColumnType("varchar(32)")
  2045. .HasCharSet("utf8")
  2046. .HasCollation("utf8_general_ci");
  2047. entity.Property(e => e.DeviceStatus).HasColumnType("int(11)");
  2048. entity.Property(e => e.DeviceVendor)
  2049. .HasColumnType("varchar(32)")
  2050. .HasCharSet("utf8")
  2051. .HasCollation("utf8_general_ci");
  2052. entity.Property(e => e.ProductName)
  2053. .HasColumnType("varchar(32)")
  2054. .HasCharSet("utf8")
  2055. .HasCollation("utf8_general_ci");
  2056. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  2057. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2058. entity.Property(e => e.Remark)
  2059. .HasColumnType("varchar(64)")
  2060. .HasCharSet("utf8")
  2061. .HasCollation("utf8_general_ci");
  2062. entity.Property(e => e.SeoDescription)
  2063. .HasColumnType("varchar(500)")
  2064. .HasCharSet("utf8")
  2065. .HasCollation("utf8_general_ci");
  2066. entity.Property(e => e.SeoKeyword)
  2067. .HasColumnType("varchar(200)")
  2068. .HasCharSet("utf8")
  2069. .HasCollation("utf8_general_ci");
  2070. entity.Property(e => e.SeoTitle)
  2071. .HasColumnType("varchar(100)")
  2072. .HasCharSet("utf8")
  2073. .HasCollation("utf8_general_ci");
  2074. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2075. entity.Property(e => e.SourceSnNo)
  2076. .HasColumnType("varchar(32)")
  2077. .HasCharSet("utf8")
  2078. .HasCollation("utf8_general_ci");
  2079. entity.Property(e => e.SourceSnType).HasColumnType("int(11)");
  2080. entity.Property(e => e.Status).HasColumnType("int(11)");
  2081. entity.Property(e => e.UpSrcProName)
  2082. .HasColumnType("varchar(32)")
  2083. .HasCharSet("utf8")
  2084. .HasCollation("utf8_general_ci");
  2085. entity.Property(e => e.UpSrcProType).HasColumnType("int(11)");
  2086. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2087. entity.Property(e => e.UpdateMan)
  2088. .HasColumnType("varchar(50)")
  2089. .HasCharSet("utf8")
  2090. .HasCollation("utf8_general_ci");
  2091. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2092. entity.Property(e => e.Version).HasColumnType("int(11)");
  2093. });
  2094. modelBuilder.Entity<MachineChange>(entity =>
  2095. {
  2096. entity.Property(e => e.Id).HasColumnType("int(11)");
  2097. entity.Property(e => e.AuditBy)
  2098. .HasColumnType("varchar(32)")
  2099. .HasCharSet("utf8")
  2100. .HasCollation("utf8_general_ci");
  2101. entity.Property(e => e.AuditRemark)
  2102. .HasColumnType("varchar(128)")
  2103. .HasCharSet("utf8")
  2104. .HasCollation("utf8_general_ci");
  2105. entity.Property(e => e.AuditResult).HasColumnType("int(11)");
  2106. entity.Property(e => e.AuditTime).HasColumnType("datetime");
  2107. entity.Property(e => e.BackProductName)
  2108. .HasColumnType("varchar(32)")
  2109. .HasCharSet("utf8")
  2110. .HasCollation("utf8_general_ci");
  2111. entity.Property(e => e.BackProductType).HasColumnType("int(11)");
  2112. entity.Property(e => e.BackStoreId).HasColumnType("int(11)");
  2113. entity.Property(e => e.BackStoreName)
  2114. .HasColumnType("varchar(32)")
  2115. .HasCharSet("utf8")
  2116. .HasCollation("utf8_general_ci");
  2117. entity.Property(e => e.BackStoreUserId).HasColumnType("int(11)");
  2118. entity.Property(e => e.ChangeDeviceName)
  2119. .HasColumnType("varchar(32)")
  2120. .HasCharSet("utf8")
  2121. .HasCollation("utf8_general_ci");
  2122. entity.Property(e => e.ChangeDeviceNum).HasColumnType("int(11)");
  2123. entity.Property(e => e.ChangeNo)
  2124. .HasColumnType("varchar(32)")
  2125. .HasCharSet("utf8")
  2126. .HasCollation("utf8_general_ci");
  2127. entity.Property(e => e.ChangeSnExpand)
  2128. .HasColumnType("mediumtext")
  2129. .HasCharSet("utf8")
  2130. .HasCollation("utf8_general_ci");
  2131. entity.Property(e => e.ChangeTime).HasColumnType("datetime");
  2132. entity.Property(e => e.CompleteTime).HasColumnType("datetime");
  2133. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2134. entity.Property(e => e.CreateMan)
  2135. .HasColumnType("varchar(50)")
  2136. .HasCharSet("utf8")
  2137. .HasCollation("utf8_general_ci");
  2138. entity.Property(e => e.OrderExpand)
  2139. .HasColumnType("mediumtext")
  2140. .HasCharSet("utf8")
  2141. .HasCollation("utf8_general_ci");
  2142. entity.Property(e => e.OutProductName)
  2143. .HasColumnType("varchar(32)")
  2144. .HasCharSet("utf8")
  2145. .HasCollation("utf8_general_ci");
  2146. entity.Property(e => e.OutProductType).HasColumnType("int(11)");
  2147. entity.Property(e => e.OutStoreAddress)
  2148. .HasColumnType("varchar(128)")
  2149. .HasCharSet("utf8")
  2150. .HasCollation("utf8_general_ci");
  2151. entity.Property(e => e.OutStoreAreas)
  2152. .HasColumnType("varchar(30)")
  2153. .HasCharSet("utf8")
  2154. .HasCollation("utf8_general_ci");
  2155. entity.Property(e => e.OutStoreId).HasColumnType("int(11)");
  2156. entity.Property(e => e.OutStoreManager)
  2157. .HasColumnType("varchar(32)")
  2158. .HasCharSet("utf8")
  2159. .HasCollation("utf8_general_ci");
  2160. entity.Property(e => e.OutStoreManagerMobile)
  2161. .HasColumnType("varchar(11)")
  2162. .HasCharSet("utf8")
  2163. .HasCollation("utf8_general_ci");
  2164. entity.Property(e => e.OutStoreName)
  2165. .HasColumnType("varchar(32)")
  2166. .HasCharSet("utf8")
  2167. .HasCollation("utf8_general_ci");
  2168. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2169. entity.Property(e => e.Remark)
  2170. .HasColumnType("varchar(64)")
  2171. .HasCharSet("utf8")
  2172. .HasCollation("utf8_general_ci");
  2173. entity.Property(e => e.SeoDescription)
  2174. .HasColumnType("varchar(500)")
  2175. .HasCharSet("utf8")
  2176. .HasCollation("utf8_general_ci");
  2177. entity.Property(e => e.SeoKeyword)
  2178. .HasColumnType("varchar(200)")
  2179. .HasCharSet("utf8")
  2180. .HasCollation("utf8_general_ci");
  2181. entity.Property(e => e.SeoTitle)
  2182. .HasColumnType("varchar(100)")
  2183. .HasCharSet("utf8")
  2184. .HasCollation("utf8_general_ci");
  2185. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2186. entity.Property(e => e.Status).HasColumnType("int(11)");
  2187. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2188. entity.Property(e => e.UpdateMan)
  2189. .HasColumnType("varchar(50)")
  2190. .HasCharSet("utf8")
  2191. .HasCollation("utf8_general_ci");
  2192. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2193. entity.Property(e => e.Version).HasColumnType("int(11)");
  2194. });
  2195. modelBuilder.Entity<MachineChangeDetail>(entity =>
  2196. {
  2197. entity.Property(e => e.Id).HasColumnType("int(11)");
  2198. entity.Property(e => e.BackDeviceStatus).HasColumnType("int(11)");
  2199. entity.Property(e => e.BackProductName)
  2200. .HasColumnType("varchar(32)")
  2201. .HasCharSet("utf8")
  2202. .HasCollation("utf8_general_ci");
  2203. entity.Property(e => e.BackProductType).HasColumnType("int(11)");
  2204. entity.Property(e => e.BackSnNo)
  2205. .HasColumnType("varchar(32)")
  2206. .HasCharSet("utf8")
  2207. .HasCollation("utf8_general_ci");
  2208. entity.Property(e => e.BackSnType).HasColumnType("int(11)");
  2209. entity.Property(e => e.ChangeId).HasColumnType("int(11)");
  2210. entity.Property(e => e.ChangeNo)
  2211. .HasColumnType("varchar(32)")
  2212. .HasCharSet("utf8")
  2213. .HasCollation("utf8_general_ci");
  2214. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2215. entity.Property(e => e.CreateMan)
  2216. .HasColumnType("varchar(50)")
  2217. .HasCharSet("utf8")
  2218. .HasCollation("utf8_general_ci");
  2219. entity.Property(e => e.OutProductName)
  2220. .HasColumnType("varchar(32)")
  2221. .HasCharSet("utf8")
  2222. .HasCollation("utf8_general_ci");
  2223. entity.Property(e => e.OutProductType).HasColumnType("int(11)");
  2224. entity.Property(e => e.OutSnNo)
  2225. .HasColumnType("varchar(32)")
  2226. .HasCharSet("utf8")
  2227. .HasCollation("utf8_general_ci");
  2228. entity.Property(e => e.OutSnType).HasColumnType("int(11)");
  2229. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2230. entity.Property(e => e.Remark)
  2231. .HasColumnType("varchar(64)")
  2232. .HasCharSet("utf8")
  2233. .HasCollation("utf8_general_ci");
  2234. entity.Property(e => e.SeoDescription)
  2235. .HasColumnType("varchar(500)")
  2236. .HasCharSet("utf8")
  2237. .HasCollation("utf8_general_ci");
  2238. entity.Property(e => e.SeoKeyword)
  2239. .HasColumnType("varchar(200)")
  2240. .HasCharSet("utf8")
  2241. .HasCollation("utf8_general_ci");
  2242. entity.Property(e => e.SeoTitle)
  2243. .HasColumnType("varchar(100)")
  2244. .HasCharSet("utf8")
  2245. .HasCollation("utf8_general_ci");
  2246. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2247. entity.Property(e => e.Status).HasColumnType("int(11)");
  2248. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2249. entity.Property(e => e.UpdateMan)
  2250. .HasColumnType("varchar(50)")
  2251. .HasCharSet("utf8")
  2252. .HasCollation("utf8_general_ci");
  2253. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2254. entity.Property(e => e.Version).HasColumnType("int(11)");
  2255. });
  2256. modelBuilder.Entity<MachineForMerNo>(entity =>
  2257. {
  2258. entity.HasKey(e => e.MerNo)
  2259. .HasName("PRIMARY");
  2260. entity.Property(e => e.MerNo)
  2261. .HasColumnType("varchar(50)")
  2262. .HasCharSet("utf8")
  2263. .HasCollation("utf8_general_ci");
  2264. entity.Property(e => e.SnId).HasColumnType("int(11)");
  2265. });
  2266. modelBuilder.Entity<MachineForQrCode>(entity =>
  2267. {
  2268. entity.HasKey(e => e.DataId)
  2269. .HasName("PRIMARY");
  2270. entity.Property(e => e.DataId)
  2271. .HasColumnType("varchar(20)")
  2272. .HasCharSet("utf8")
  2273. .HasCollation("utf8_general_ci");
  2274. entity.Property(e => e.BindDate).HasColumnType("datetime");
  2275. entity.Property(e => e.MachineSnNo)
  2276. .HasColumnType("varchar(50)")
  2277. .HasCharSet("utf8")
  2278. .HasCollation("utf8_general_ci");
  2279. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2280. entity.Property(e => e.SnNo)
  2281. .HasColumnType("varchar(50)")
  2282. .HasCharSet("utf8")
  2283. .HasCollation("utf8_general_ci");
  2284. });
  2285. modelBuilder.Entity<MachineForSnNo>(entity =>
  2286. {
  2287. entity.HasKey(e => e.SnNo)
  2288. .HasName("PRIMARY");
  2289. entity.Property(e => e.SnNo)
  2290. .HasColumnType("varchar(50)")
  2291. .HasCharSet("utf8")
  2292. .HasCollation("utf8_general_ci");
  2293. entity.Property(e => e.SnId).HasColumnType("int(11)");
  2294. });
  2295. modelBuilder.Entity<MachineRenew>(entity =>
  2296. {
  2297. entity.Property(e => e.Id).HasColumnType("int(11)");
  2298. entity.Property(e => e.ApplyDate)
  2299. .HasColumnType("varchar(8)")
  2300. .HasCharSet("utf8")
  2301. .HasCollation("utf8_general_ci");
  2302. entity.Property(e => e.ApplyNo)
  2303. .HasColumnType("varchar(32)")
  2304. .HasCharSet("utf8")
  2305. .HasCollation("utf8_general_ci");
  2306. entity.Property(e => e.AuditDate).HasColumnType("datetime");
  2307. entity.Property(e => e.AuditDesc)
  2308. .HasColumnType("varchar(256)")
  2309. .HasCharSet("utf8")
  2310. .HasCollation("utf8_general_ci");
  2311. entity.Property(e => e.AuditStatus)
  2312. .HasColumnName("audit_status")
  2313. .HasColumnType("int(11)");
  2314. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2315. entity.Property(e => e.CreateMan)
  2316. .HasColumnType("varchar(50)")
  2317. .HasCharSet("utf8")
  2318. .HasCollation("utf8_general_ci");
  2319. entity.Property(e => e.DamagedBrandId).HasColumnType("int(11)");
  2320. entity.Property(e => e.DamagedSnNo)
  2321. .HasColumnType("varchar(32)")
  2322. .HasCharSet("utf8")
  2323. .HasCollation("utf8_general_ci");
  2324. entity.Property(e => e.DamagedSnType).HasColumnType("int(11)");
  2325. entity.Property(e => e.DeliverBrandId).HasColumnType("int(11)");
  2326. entity.Property(e => e.DeliverSnNo)
  2327. .HasColumnType("varchar(32)")
  2328. .HasCharSet("utf8")
  2329. .HasCollation("utf8_general_ci");
  2330. entity.Property(e => e.DemandDesc)
  2331. .HasColumnType("varchar(256)")
  2332. .HasCharSet("utf8")
  2333. .HasCollation("utf8_general_ci");
  2334. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2335. entity.Property(e => e.ReplaceBrandId).HasColumnType("int(11)");
  2336. entity.Property(e => e.ReplaceSnNo)
  2337. .HasColumnType("varchar(32)")
  2338. .HasCharSet("utf8")
  2339. .HasCollation("utf8_general_ci");
  2340. entity.Property(e => e.ReplaceSnType).HasColumnType("int(11)");
  2341. entity.Property(e => e.SeoDescription)
  2342. .HasColumnType("varchar(500)")
  2343. .HasCharSet("utf8")
  2344. .HasCollation("utf8_general_ci");
  2345. entity.Property(e => e.SeoKeyword)
  2346. .HasColumnType("varchar(200)")
  2347. .HasCharSet("utf8")
  2348. .HasCollation("utf8_general_ci");
  2349. entity.Property(e => e.SeoTitle)
  2350. .HasColumnType("varchar(100)")
  2351. .HasCharSet("utf8")
  2352. .HasCollation("utf8_general_ci");
  2353. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2354. entity.Property(e => e.Status).HasColumnType("int(11)");
  2355. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2356. entity.Property(e => e.UpdateMan)
  2357. .HasColumnType("varchar(50)")
  2358. .HasCharSet("utf8")
  2359. .HasCollation("utf8_general_ci");
  2360. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2361. entity.Property(e => e.Version).HasColumnType("int(11)");
  2362. });
  2363. modelBuilder.Entity<MachineReturn>(entity =>
  2364. {
  2365. entity.Property(e => e.Id).HasColumnType("int(11)");
  2366. entity.Property(e => e.ApplyNo)
  2367. .HasColumnType("varchar(32)")
  2368. .HasCharSet("utf8")
  2369. .HasCollation("utf8_general_ci");
  2370. entity.Property(e => e.AuditStatus).HasColumnType("int(11)");
  2371. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  2372. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2373. entity.Property(e => e.CreateMan)
  2374. .HasColumnType("varchar(50)")
  2375. .HasCharSet("utf8")
  2376. .HasCollation("utf8_general_ci");
  2377. entity.Property(e => e.DeviceDesc)
  2378. .HasColumnType("varchar(256)")
  2379. .HasCharSet("utf8")
  2380. .HasCollation("utf8_general_ci");
  2381. entity.Property(e => e.DeviceNum).HasColumnType("int(11)");
  2382. entity.Property(e => e.DeviceSnNos)
  2383. .HasColumnType("mediumtext")
  2384. .HasCharSet("utf8")
  2385. .HasCollation("utf8_general_ci");
  2386. entity.Property(e => e.Operator)
  2387. .HasColumnType("varchar(32)")
  2388. .HasCharSet("utf8")
  2389. .HasCollation("utf8_general_ci");
  2390. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2391. entity.Property(e => e.Remark)
  2392. .HasColumnType("varchar(64)")
  2393. .HasCharSet("utf8")
  2394. .HasCollation("utf8_general_ci");
  2395. entity.Property(e => e.SeoDescription)
  2396. .HasColumnType("varchar(500)")
  2397. .HasCharSet("utf8")
  2398. .HasCollation("utf8_general_ci");
  2399. entity.Property(e => e.SeoKeyword)
  2400. .HasColumnType("varchar(200)")
  2401. .HasCharSet("utf8")
  2402. .HasCollation("utf8_general_ci");
  2403. entity.Property(e => e.SeoTitle)
  2404. .HasColumnType("varchar(100)")
  2405. .HasCharSet("utf8")
  2406. .HasCollation("utf8_general_ci");
  2407. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2408. entity.Property(e => e.Status).HasColumnType("int(11)");
  2409. entity.Property(e => e.ToStoreId).HasColumnType("int(11)");
  2410. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2411. entity.Property(e => e.UpdateMan)
  2412. .HasColumnType("varchar(50)")
  2413. .HasCharSet("utf8")
  2414. .HasCollation("utf8_general_ci");
  2415. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2416. entity.Property(e => e.Version).HasColumnType("int(11)");
  2417. });
  2418. modelBuilder.Entity<MachineUnBind>(entity =>
  2419. {
  2420. entity.Property(e => e.Id).HasColumnType("int(11)");
  2421. entity.Property(e => e.ApplyNo)
  2422. .HasColumnType("varchar(32)")
  2423. .HasCharSet("utf8")
  2424. .HasCollation("utf8_general_ci");
  2425. entity.Property(e => e.AuditDate).HasColumnType("datetime");
  2426. entity.Property(e => e.AuditDesc)
  2427. .HasColumnType("varchar(256)")
  2428. .HasCharSet("utf8")
  2429. .HasCollation("utf8_general_ci");
  2430. entity.Property(e => e.AuditStatus).HasColumnType("int(11)");
  2431. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  2432. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2433. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2434. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2435. entity.Property(e => e.SeoDescription)
  2436. .HasColumnType("varchar(500)")
  2437. .HasCharSet("utf8")
  2438. .HasCollation("utf8_general_ci");
  2439. entity.Property(e => e.SeoKeyword)
  2440. .HasColumnType("varchar(200)")
  2441. .HasCharSet("utf8")
  2442. .HasCollation("utf8_general_ci");
  2443. entity.Property(e => e.SeoTitle)
  2444. .HasColumnType("varchar(100)")
  2445. .HasCharSet("utf8")
  2446. .HasCollation("utf8_general_ci");
  2447. entity.Property(e => e.SnNo)
  2448. .HasColumnType("varchar(32)")
  2449. .HasCharSet("utf8")
  2450. .HasCollation("utf8_general_ci");
  2451. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2452. entity.Property(e => e.Status).HasColumnType("int(11)");
  2453. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2454. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2455. });
  2456. modelBuilder.Entity<MenuRight>(entity =>
  2457. {
  2458. entity.HasKey(e => e.MenuId)
  2459. .HasName("PRIMARY");
  2460. entity.Property(e => e.MenuId)
  2461. .HasColumnType("varchar(50)")
  2462. .HasCharSet("utf8")
  2463. .HasCollation("utf8_general_ci");
  2464. entity.Property(e => e.Name)
  2465. .HasColumnType("varchar(50)")
  2466. .HasCharSet("utf8")
  2467. .HasCollation("utf8_general_ci");
  2468. });
  2469. modelBuilder.Entity<MerchantAddInfo>(entity =>
  2470. {
  2471. entity.Property(e => e.Id).HasColumnType("int(11)");
  2472. entity.Property(e => e.AccountBank)
  2473. .HasColumnType("varchar(30)")
  2474. .HasCharSet("utf8")
  2475. .HasCollation("utf8_general_ci");
  2476. entity.Property(e => e.AccountName)
  2477. .HasColumnType("varchar(50)")
  2478. .HasCharSet("utf8")
  2479. .HasCollation("utf8_general_ci");
  2480. entity.Property(e => e.AccountNumber)
  2481. .HasColumnType("varchar(50)")
  2482. .HasCharSet("utf8")
  2483. .HasCollation("utf8_general_ci");
  2484. entity.Property(e => e.ActivitiesId)
  2485. .HasColumnType("varchar(32)")
  2486. .HasCharSet("utf8")
  2487. .HasCollation("utf8_general_ci");
  2488. entity.Property(e => e.ActivitiesRate)
  2489. .HasColumnType("varchar(20)")
  2490. .HasCharSet("utf8")
  2491. .HasCollation("utf8_general_ci");
  2492. entity.Property(e => e.AppAppid)
  2493. .HasColumnType("varchar(50)")
  2494. .HasCharSet("utf8")
  2495. .HasCollation("utf8_general_ci");
  2496. entity.Property(e => e.AppPics)
  2497. .HasColumnType("varchar(200)")
  2498. .HasCharSet("utf8")
  2499. .HasCollation("utf8_general_ci");
  2500. entity.Property(e => e.AppSubAppid)
  2501. .HasColumnType("varchar(50)")
  2502. .HasCharSet("utf8")
  2503. .HasCollation("utf8_general_ci");
  2504. entity.Property(e => e.ApplymentId)
  2505. .HasColumnType("varchar(50)")
  2506. .HasCharSet("utf8")
  2507. .HasCollation("utf8_general_ci");
  2508. entity.Property(e => e.ApplymentState)
  2509. .HasColumnType("varchar(50)")
  2510. .HasCharSet("utf8")
  2511. .HasCollation("utf8_general_ci");
  2512. entity.Property(e => e.AuditDetail)
  2513. .HasColumnType("mediumtext")
  2514. .HasCharSet("utf8")
  2515. .HasCollation("utf8_general_ci");
  2516. entity.Property(e => e.BankAccountType)
  2517. .HasColumnType("varchar(50)")
  2518. .HasCharSet("utf8")
  2519. .HasCollation("utf8_general_ci");
  2520. entity.Property(e => e.BankAddressCode)
  2521. .HasColumnType("varchar(20)")
  2522. .HasCharSet("utf8")
  2523. .HasCollation("utf8_general_ci");
  2524. entity.Property(e => e.BankBranchId)
  2525. .HasColumnType("varchar(20)")
  2526. .HasCharSet("utf8")
  2527. .HasCollation("utf8_general_ci");
  2528. entity.Property(e => e.BankName)
  2529. .HasColumnType("varchar(50)")
  2530. .HasCharSet("utf8")
  2531. .HasCollation("utf8_general_ci");
  2532. entity.Property(e => e.BizAddressCode)
  2533. .HasColumnType("varchar(30)")
  2534. .HasCharSet("utf8")
  2535. .HasCollation("utf8_general_ci");
  2536. entity.Property(e => e.BizStoreAddress)
  2537. .HasColumnType("varchar(50)")
  2538. .HasCharSet("utf8")
  2539. .HasCollation("utf8_general_ci");
  2540. entity.Property(e => e.BizStoreName)
  2541. .HasColumnType("varchar(50)")
  2542. .HasCharSet("utf8")
  2543. .HasCollation("utf8_general_ci");
  2544. entity.Property(e => e.BizSubAppid)
  2545. .HasColumnType("varchar(32)")
  2546. .HasCharSet("utf8")
  2547. .HasCollation("utf8_general_ci");
  2548. entity.Property(e => e.BusinessCode)
  2549. .HasColumnType("varchar(50)")
  2550. .HasCharSet("utf8")
  2551. .HasCollation("utf8_general_ci");
  2552. entity.Property(e => e.CardPeriodBegin).HasColumnType("datetime");
  2553. entity.Property(e => e.CardPeriodEnd).HasColumnType("datetime");
  2554. entity.Property(e => e.CertCopy)
  2555. .HasColumnType("varchar(200)")
  2556. .HasCharSet("utf8")
  2557. .HasCollation("utf8_general_ci");
  2558. entity.Property(e => e.CertLegalPerson)
  2559. .HasColumnType("varchar(20)")
  2560. .HasCharSet("utf8")
  2561. .HasCollation("utf8_general_ci");
  2562. entity.Property(e => e.CertMerchantName)
  2563. .HasColumnType("varchar(30)")
  2564. .HasCharSet("utf8")
  2565. .HasCollation("utf8_general_ci");
  2566. entity.Property(e => e.CertNumber)
  2567. .HasColumnType("varchar(32)")
  2568. .HasCharSet("utf8")
  2569. .HasCollation("utf8_general_ci");
  2570. entity.Property(e => e.CertType)
  2571. .HasColumnType("varchar(30)")
  2572. .HasCharSet("utf8")
  2573. .HasCollation("utf8_general_ci");
  2574. entity.Property(e => e.CertificateLetterCopy)
  2575. .HasColumnType("varchar(200)")
  2576. .HasCharSet("utf8")
  2577. .HasCollation("utf8_general_ci");
  2578. entity.Property(e => e.CompanyAddress)
  2579. .HasColumnType("varchar(50)")
  2580. .HasCharSet("utf8")
  2581. .HasCollation("utf8_general_ci");
  2582. entity.Property(e => e.ContactEmail)
  2583. .HasColumnType("varchar(50)")
  2584. .HasCharSet("utf8")
  2585. .HasCollation("utf8_general_ci");
  2586. entity.Property(e => e.ContactIdNumber)
  2587. .HasColumnType("varchar(18)")
  2588. .HasCharSet("utf8")
  2589. .HasCollation("utf8_general_ci");
  2590. entity.Property(e => e.ContactName)
  2591. .HasColumnType("varchar(30)")
  2592. .HasCharSet("utf8")
  2593. .HasCollation("utf8_general_ci");
  2594. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2595. entity.Property(e => e.CreateMan)
  2596. .HasColumnType("varchar(50)")
  2597. .HasCharSet("utf8")
  2598. .HasCollation("utf8_general_ci");
  2599. entity.Property(e => e.IdCardCopy)
  2600. .HasColumnType("varchar(200)")
  2601. .HasCharSet("utf8")
  2602. .HasCollation("utf8_general_ci");
  2603. entity.Property(e => e.IdCardName)
  2604. .HasColumnType("varchar(20)")
  2605. .HasCharSet("utf8")
  2606. .HasCollation("utf8_general_ci");
  2607. entity.Property(e => e.IdCardNational)
  2608. .HasColumnType("varchar(200)")
  2609. .HasCharSet("utf8")
  2610. .HasCollation("utf8_general_ci");
  2611. entity.Property(e => e.IdCardNumber)
  2612. .HasColumnType("varchar(18)")
  2613. .HasCharSet("utf8")
  2614. .HasCollation("utf8_general_ci");
  2615. entity.Property(e => e.IdDocType)
  2616. .HasColumnType("varchar(50)")
  2617. .HasCharSet("utf8")
  2618. .HasCollation("utf8_general_ci");
  2619. entity.Property(e => e.IndoorPic)
  2620. .HasColumnType("varchar(200)")
  2621. .HasCharSet("utf8")
  2622. .HasCollation("utf8_general_ci");
  2623. entity.Property(e => e.LegalPerson)
  2624. .HasColumnType("varchar(20)")
  2625. .HasCharSet("utf8")
  2626. .HasCollation("utf8_general_ci");
  2627. entity.Property(e => e.LicenseCopy)
  2628. .HasColumnType("varchar(200)")
  2629. .HasCharSet("utf8")
  2630. .HasCollation("utf8_general_ci");
  2631. entity.Property(e => e.LicenseNumber)
  2632. .HasColumnType("varchar(32)")
  2633. .HasCharSet("utf8")
  2634. .HasCollation("utf8_general_ci");
  2635. entity.Property(e => e.MerchantShortname)
  2636. .HasColumnType("varchar(50)")
  2637. .HasCharSet("utf8")
  2638. .HasCollation("utf8_general_ci");
  2639. entity.Property(e => e.MiniProgramAppid)
  2640. .HasColumnType("varchar(50)")
  2641. .HasCharSet("utf8")
  2642. .HasCollation("utf8_general_ci");
  2643. entity.Property(e => e.MiniProgramPics)
  2644. .HasColumnType("varchar(200)")
  2645. .HasCharSet("utf8")
  2646. .HasCollation("utf8_general_ci");
  2647. entity.Property(e => e.MiniProgramSubAppid)
  2648. .HasColumnType("varchar(50)")
  2649. .HasCharSet("utf8")
  2650. .HasCollation("utf8_general_ci");
  2651. entity.Property(e => e.MobilePhone)
  2652. .HasColumnType("varchar(11)")
  2653. .HasCharSet("utf8")
  2654. .HasCollation("utf8_general_ci");
  2655. entity.Property(e => e.MpAppid)
  2656. .HasColumnType("varchar(50)")
  2657. .HasCharSet("utf8")
  2658. .HasCollation("utf8_general_ci");
  2659. entity.Property(e => e.MpPics)
  2660. .HasColumnType("varchar(200)")
  2661. .HasCharSet("utf8")
  2662. .HasCollation("utf8_general_ci");
  2663. entity.Property(e => e.MpSubAppid)
  2664. .HasColumnType("varchar(50)")
  2665. .HasCharSet("utf8")
  2666. .HasCollation("utf8_general_ci");
  2667. entity.Property(e => e.OpenId)
  2668. .HasColumnType("varchar(50)")
  2669. .HasCharSet("utf8")
  2670. .HasCollation("utf8_general_ci");
  2671. entity.Property(e => e.OrgPeriodBegin).HasColumnType("datetime");
  2672. entity.Property(e => e.OrgPeriodEnd).HasColumnType("datetime");
  2673. entity.Property(e => e.OrganizationCode)
  2674. .HasColumnType("varchar(32)")
  2675. .HasCharSet("utf8")
  2676. .HasCollation("utf8_general_ci");
  2677. entity.Property(e => e.OrganizationCopy)
  2678. .HasColumnType("varchar(200)")
  2679. .HasCharSet("utf8")
  2680. .HasCollation("utf8_general_ci");
  2681. entity.Property(e => e.Owner)
  2682. .HasColumnType("bit(1)")
  2683. .HasDefaultValueSql("b'0'");
  2684. entity.Property(e => e.PeriodBegin).HasColumnType("datetime");
  2685. entity.Property(e => e.PeriodEnd).HasColumnType("datetime");
  2686. entity.Property(e => e.QualificationType)
  2687. .HasColumnType("varchar(30)")
  2688. .HasCharSet("utf8")
  2689. .HasCollation("utf8_general_ci");
  2690. entity.Property(e => e.Qualifications)
  2691. .HasColumnType("varchar(200)")
  2692. .HasCharSet("utf8")
  2693. .HasCollation("utf8_general_ci");
  2694. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2695. entity.Property(e => e.SalesScenesType)
  2696. .HasColumnType("varchar(50)")
  2697. .HasCharSet("utf8")
  2698. .HasCollation("utf8_general_ci");
  2699. entity.Property(e => e.SeoDescription)
  2700. .HasColumnType("varchar(500)")
  2701. .HasCharSet("utf8")
  2702. .HasCollation("utf8_general_ci");
  2703. entity.Property(e => e.SeoKeyword)
  2704. .HasColumnType("varchar(200)")
  2705. .HasCharSet("utf8")
  2706. .HasCollation("utf8_general_ci");
  2707. entity.Property(e => e.SeoTitle)
  2708. .HasColumnType("varchar(100)")
  2709. .HasCharSet("utf8")
  2710. .HasCollation("utf8_general_ci");
  2711. entity.Property(e => e.ServicePhone)
  2712. .HasColumnType("varchar(30)")
  2713. .HasCharSet("utf8")
  2714. .HasCollation("utf8_general_ci");
  2715. entity.Property(e => e.SettlementId)
  2716. .HasColumnType("varchar(3)")
  2717. .HasCharSet("utf8")
  2718. .HasCollation("utf8_general_ci");
  2719. entity.Property(e => e.SignUrl)
  2720. .HasColumnType("varchar(1000)")
  2721. .HasCharSet("utf8")
  2722. .HasCollation("utf8_general_ci");
  2723. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2724. entity.Property(e => e.Status).HasColumnType("int(11)");
  2725. entity.Property(e => e.StoreEntrancePic)
  2726. .HasColumnType("varchar(200)")
  2727. .HasCharSet("utf8")
  2728. .HasCollation("utf8_general_ci");
  2729. entity.Property(e => e.SubCorpId)
  2730. .HasColumnType("varchar(50)")
  2731. .HasCharSet("utf8")
  2732. .HasCollation("utf8_general_ci");
  2733. entity.Property(e => e.SubMchid)
  2734. .HasColumnType("varchar(32)")
  2735. .HasCharSet("utf8")
  2736. .HasCollation("utf8_general_ci");
  2737. entity.Property(e => e.SubjectType)
  2738. .HasColumnType("varchar(50)")
  2739. .HasCharSet("utf8")
  2740. .HasCollation("utf8_general_ci");
  2741. entity.Property(e => e.UboInfoIdCardCopy)
  2742. .HasColumnType("varchar(200)")
  2743. .HasCharSet("utf8")
  2744. .HasCollation("utf8_general_ci");
  2745. entity.Property(e => e.UboInfoIdCardNational)
  2746. .HasColumnType("varchar(200)")
  2747. .HasCharSet("utf8")
  2748. .HasCollation("utf8_general_ci");
  2749. entity.Property(e => e.UboInfoIdDocCopy)
  2750. .HasColumnType("varchar(200)")
  2751. .HasCharSet("utf8")
  2752. .HasCollation("utf8_general_ci");
  2753. entity.Property(e => e.UboInfoIdNumber)
  2754. .HasColumnType("varchar(30)")
  2755. .HasCharSet("utf8")
  2756. .HasCollation("utf8_general_ci");
  2757. entity.Property(e => e.UboInfoIdPeriodBegin).HasColumnType("datetime");
  2758. entity.Property(e => e.UboInfoIdPeriodEnd).HasColumnType("datetime");
  2759. entity.Property(e => e.UboInfoIdType)
  2760. .HasColumnType("varchar(50)")
  2761. .HasCharSet("utf8")
  2762. .HasCollation("utf8_general_ci");
  2763. entity.Property(e => e.UboInfoName)
  2764. .HasColumnType("varchar(20)")
  2765. .HasCharSet("utf8")
  2766. .HasCollation("utf8_general_ci");
  2767. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2768. entity.Property(e => e.UpdateMan)
  2769. .HasColumnType("varchar(50)")
  2770. .HasCharSet("utf8")
  2771. .HasCollation("utf8_general_ci");
  2772. entity.Property(e => e.Version).HasColumnType("int(11)");
  2773. entity.Property(e => e.WebAppId)
  2774. .HasColumnType("varchar(50)")
  2775. .HasCharSet("utf8")
  2776. .HasCollation("utf8_general_ci");
  2777. entity.Property(e => e.WebAuthorisation)
  2778. .HasColumnType("varchar(200)")
  2779. .HasCharSet("utf8")
  2780. .HasCollation("utf8_general_ci");
  2781. entity.Property(e => e.WebDomain)
  2782. .HasColumnType("varchar(50)")
  2783. .HasCharSet("utf8")
  2784. .HasCollation("utf8_general_ci");
  2785. entity.Property(e => e.WeworkPics)
  2786. .HasColumnType("varchar(200)")
  2787. .HasCharSet("utf8")
  2788. .HasCollation("utf8_general_ci");
  2789. });
  2790. modelBuilder.Entity<MerchantAdmin>(entity =>
  2791. {
  2792. entity.Property(e => e.Id).HasColumnType("int(11)");
  2793. entity.Property(e => e.AdminName)
  2794. .HasColumnType("varchar(50)")
  2795. .HasCharSet("utf8")
  2796. .HasCollation("utf8_general_ci");
  2797. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2798. entity.Property(e => e.CreateMan)
  2799. .HasColumnType("varchar(50)")
  2800. .HasCharSet("utf8")
  2801. .HasCollation("utf8_general_ci");
  2802. entity.Property(e => e.Email)
  2803. .HasColumnType("varchar(50)")
  2804. .HasCharSet("utf8")
  2805. .HasCollation("utf8_general_ci");
  2806. entity.Property(e => e.LastLoginDate).HasColumnType("datetime");
  2807. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2808. entity.Property(e => e.Mobile)
  2809. .HasColumnType("varchar(11)")
  2810. .HasCharSet("utf8")
  2811. .HasCollation("utf8_general_ci");
  2812. entity.Property(e => e.Note)
  2813. .HasColumnType("mediumtext")
  2814. .HasCharSet("utf8")
  2815. .HasCollation("utf8_general_ci");
  2816. entity.Property(e => e.Password)
  2817. .HasColumnType("varchar(32)")
  2818. .HasCharSet("utf8")
  2819. .HasCollation("utf8_general_ci");
  2820. entity.Property(e => e.Qq)
  2821. .HasColumnName("QQ")
  2822. .HasColumnType("varchar(20)")
  2823. .HasCharSet("utf8")
  2824. .HasCollation("utf8_general_ci");
  2825. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2826. entity.Property(e => e.RealName)
  2827. .HasColumnType("varchar(50)")
  2828. .HasCharSet("utf8")
  2829. .HasCollation("utf8_general_ci");
  2830. entity.Property(e => e.RightInfo)
  2831. .HasColumnType("varchar(500)")
  2832. .HasCharSet("utf8")
  2833. .HasCollation("utf8_general_ci");
  2834. entity.Property(e => e.SeoDescription)
  2835. .HasColumnType("varchar(500)")
  2836. .HasCharSet("utf8")
  2837. .HasCollation("utf8_general_ci");
  2838. entity.Property(e => e.SeoKeyword)
  2839. .HasColumnType("varchar(200)")
  2840. .HasCharSet("utf8")
  2841. .HasCollation("utf8_general_ci");
  2842. entity.Property(e => e.SeoTitle)
  2843. .HasColumnType("varchar(100)")
  2844. .HasCharSet("utf8")
  2845. .HasCollation("utf8_general_ci");
  2846. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2847. entity.Property(e => e.Status).HasColumnType("int(11)");
  2848. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2849. entity.Property(e => e.UpdateMan)
  2850. .HasColumnType("varchar(50)")
  2851. .HasCharSet("utf8")
  2852. .HasCollation("utf8_general_ci");
  2853. entity.Property(e => e.Version).HasColumnType("int(11)");
  2854. });
  2855. modelBuilder.Entity<MerchantAuth>(entity =>
  2856. {
  2857. entity.Property(e => e.Id).HasColumnType("int(11)");
  2858. entity.Property(e => e.AuthType).HasColumnType("int(11)");
  2859. entity.Property(e => e.BankCardAccount)
  2860. .HasColumnType("varchar(32)")
  2861. .HasCharSet("utf8")
  2862. .HasCollation("utf8_general_ci");
  2863. entity.Property(e => e.BankMobile)
  2864. .HasColumnType("varchar(11)")
  2865. .HasCharSet("utf8")
  2866. .HasCollation("utf8_general_ci");
  2867. entity.Property(e => e.BankName)
  2868. .HasColumnType("varchar(64)")
  2869. .HasCharSet("utf8")
  2870. .HasCollation("utf8_general_ci");
  2871. entity.Property(e => e.ChannelCode)
  2872. .HasColumnType("varchar(16)")
  2873. .HasCharSet("utf8")
  2874. .HasCollation("utf8_general_ci");
  2875. entity.Property(e => e.ChannelName)
  2876. .HasColumnType("varchar(32)")
  2877. .HasCharSet("utf8")
  2878. .HasCollation("utf8_general_ci");
  2879. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2880. entity.Property(e => e.CreateMan)
  2881. .HasColumnType("varchar(50)")
  2882. .HasCharSet("utf8")
  2883. .HasCollation("utf8_general_ci");
  2884. entity.Property(e => e.IdCardNo)
  2885. .HasColumnType("varchar(18)")
  2886. .HasCharSet("utf8")
  2887. .HasCollation("utf8_general_ci");
  2888. entity.Property(e => e.MerNo)
  2889. .HasColumnType("varchar(20)")
  2890. .HasCharSet("utf8")
  2891. .HasCollation("utf8_general_ci");
  2892. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2893. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2894. entity.Property(e => e.RealName)
  2895. .HasColumnType("varchar(16)")
  2896. .HasCharSet("utf8")
  2897. .HasCollation("utf8_general_ci");
  2898. entity.Property(e => e.ReqData)
  2899. .HasColumnType("varchar(2000)")
  2900. .HasCharSet("utf8")
  2901. .HasCollation("utf8_general_ci");
  2902. entity.Property(e => e.RespData)
  2903. .HasColumnType("varchar(2000)")
  2904. .HasCharSet("utf8")
  2905. .HasCollation("utf8_general_ci");
  2906. entity.Property(e => e.ReturnCode)
  2907. .HasColumnType("varchar(30)")
  2908. .HasCharSet("utf8")
  2909. .HasCollation("utf8_general_ci");
  2910. entity.Property(e => e.ReturnMsg)
  2911. .HasColumnType("varchar(512)")
  2912. .HasCharSet("utf8")
  2913. .HasCollation("utf8_general_ci");
  2914. entity.Property(e => e.SeoDescription)
  2915. .HasColumnType("varchar(500)")
  2916. .HasCharSet("utf8")
  2917. .HasCollation("utf8_general_ci");
  2918. entity.Property(e => e.SeoKeyword)
  2919. .HasColumnType("varchar(200)")
  2920. .HasCharSet("utf8")
  2921. .HasCollation("utf8_general_ci");
  2922. entity.Property(e => e.SeoTitle)
  2923. .HasColumnType("varchar(100)")
  2924. .HasCharSet("utf8")
  2925. .HasCollation("utf8_general_ci");
  2926. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2927. entity.Property(e => e.Status).HasColumnType("int(11)");
  2928. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2929. entity.Property(e => e.UpdateMan)
  2930. .HasColumnType("varchar(50)")
  2931. .HasCharSet("utf8")
  2932. .HasCollation("utf8_general_ci");
  2933. entity.Property(e => e.Version).HasColumnType("int(11)");
  2934. });
  2935. modelBuilder.Entity<MerchantClass>(entity =>
  2936. {
  2937. entity.Property(e => e.Id).HasColumnType("int(11)");
  2938. entity.Property(e => e.ColName)
  2939. .HasColumnType("varchar(50)")
  2940. .HasCharSet("utf8")
  2941. .HasCollation("utf8_general_ci");
  2942. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2943. entity.Property(e => e.CreateMan)
  2944. .HasColumnType("varchar(50)")
  2945. .HasCharSet("utf8")
  2946. .HasCollation("utf8_general_ci");
  2947. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2948. entity.Property(e => e.ParentId).HasColumnType("int(11)");
  2949. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2950. entity.Property(e => e.SeoDescription)
  2951. .HasColumnType("varchar(500)")
  2952. .HasCharSet("utf8")
  2953. .HasCollation("utf8_general_ci");
  2954. entity.Property(e => e.SeoKeyword)
  2955. .HasColumnType("varchar(200)")
  2956. .HasCharSet("utf8")
  2957. .HasCollation("utf8_general_ci");
  2958. entity.Property(e => e.SeoTitle)
  2959. .HasColumnType("varchar(100)")
  2960. .HasCharSet("utf8")
  2961. .HasCollation("utf8_general_ci");
  2962. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2963. entity.Property(e => e.Status).HasColumnType("int(11)");
  2964. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2965. entity.Property(e => e.UpdateMan)
  2966. .HasColumnType("varchar(50)")
  2967. .HasCharSet("utf8")
  2968. .HasCollation("utf8_general_ci");
  2969. entity.Property(e => e.Version).HasColumnType("int(11)");
  2970. });
  2971. modelBuilder.Entity<MerchantCol>(entity =>
  2972. {
  2973. entity.Property(e => e.Id).HasColumnType("int(11)");
  2974. entity.Property(e => e.ColDetail)
  2975. .HasColumnType("varchar(50)")
  2976. .HasCharSet("utf8")
  2977. .HasCollation("utf8_general_ci");
  2978. entity.Property(e => e.ColEnName)
  2979. .HasColumnType("varchar(50)")
  2980. .HasCharSet("utf8")
  2981. .HasCollation("utf8_general_ci");
  2982. entity.Property(e => e.ColId)
  2983. .HasColumnType("varchar(30)")
  2984. .HasCharSet("utf8")
  2985. .HasCollation("utf8_general_ci");
  2986. entity.Property(e => e.ColName)
  2987. .HasColumnType("varchar(50)")
  2988. .HasCharSet("utf8")
  2989. .HasCollation("utf8_general_ci");
  2990. entity.Property(e => e.ColPicPath)
  2991. .HasColumnType("varchar(200)")
  2992. .HasCharSet("utf8")
  2993. .HasCollation("utf8_general_ci");
  2994. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2995. entity.Property(e => e.CreateMan)
  2996. .HasColumnType("varchar(50)")
  2997. .HasCharSet("utf8")
  2998. .HasCollation("utf8_general_ci");
  2999. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  3000. entity.Property(e => e.ParentId).HasColumnType("int(11)");
  3001. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3002. entity.Property(e => e.Recommend)
  3003. .HasColumnType("bit(1)")
  3004. .HasDefaultValueSql("b'0'");
  3005. entity.Property(e => e.SeoDescription)
  3006. .HasColumnType("varchar(500)")
  3007. .HasCharSet("utf8")
  3008. .HasCollation("utf8_general_ci");
  3009. entity.Property(e => e.SeoKeyword)
  3010. .HasColumnType("varchar(200)")
  3011. .HasCharSet("utf8")
  3012. .HasCollation("utf8_general_ci");
  3013. entity.Property(e => e.SeoTitle)
  3014. .HasColumnType("varchar(100)")
  3015. .HasCharSet("utf8")
  3016. .HasCollation("utf8_general_ci");
  3017. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3018. entity.Property(e => e.Status).HasColumnType("int(11)");
  3019. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3020. entity.Property(e => e.UpdateMan)
  3021. .HasColumnType("varchar(50)")
  3022. .HasCharSet("utf8")
  3023. .HasCollation("utf8_general_ci");
  3024. entity.Property(e => e.Version).HasColumnType("int(11)");
  3025. });
  3026. modelBuilder.Entity<MerchantComment>(entity =>
  3027. {
  3028. entity.Property(e => e.Id).HasColumnType("int(11)");
  3029. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3030. entity.Property(e => e.CreateMan)
  3031. .HasColumnType("varchar(50)")
  3032. .HasCharSet("utf8")
  3033. .HasCollation("utf8_general_ci");
  3034. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  3035. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  3036. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3037. entity.Property(e => e.SeoDescription)
  3038. .HasColumnType("varchar(500)")
  3039. .HasCharSet("utf8")
  3040. .HasCollation("utf8_general_ci");
  3041. entity.Property(e => e.SeoKeyword)
  3042. .HasColumnType("varchar(200)")
  3043. .HasCharSet("utf8")
  3044. .HasCollation("utf8_general_ci");
  3045. entity.Property(e => e.SeoTitle)
  3046. .HasColumnType("varchar(100)")
  3047. .HasCharSet("utf8")
  3048. .HasCollation("utf8_general_ci");
  3049. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3050. entity.Property(e => e.StarNum1).HasColumnType("int(11)");
  3051. entity.Property(e => e.StarNum2).HasColumnType("int(11)");
  3052. entity.Property(e => e.StarNum3).HasColumnType("int(11)");
  3053. entity.Property(e => e.Status).HasColumnType("int(11)");
  3054. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3055. entity.Property(e => e.UpdateMan)
  3056. .HasColumnType("varchar(50)")
  3057. .HasCharSet("utf8")
  3058. .HasCollation("utf8_general_ci");
  3059. entity.Property(e => e.UserId).HasColumnType("int(11)");
  3060. entity.Property(e => e.Version).HasColumnType("int(11)");
  3061. });
  3062. modelBuilder.Entity<MerchantDepositReturns>(entity =>
  3063. {
  3064. entity.Property(e => e.Id).HasColumnType("int(11)");
  3065. entity.Property(e => e.AlipayAccountNo)
  3066. .HasColumnType("varchar(50)")
  3067. .HasCharSet("utf8")
  3068. .HasCollation("utf8_general_ci");
  3069. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3070. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  3071. entity.Property(e => e.OperateMan)
  3072. .HasColumnType("varchar(50)")
  3073. .HasCharSet("utf8")
  3074. .HasCollation("utf8_general_ci");
  3075. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3076. entity.Property(e => e.ReturnAmount).HasColumnType("decimal(18,2)");
  3077. entity.Property(e => e.SeoDescription)
  3078. .HasColumnType("varchar(500)")
  3079. .HasCharSet("utf8")
  3080. .HasCollation("utf8_general_ci");
  3081. entity.Property(e => e.SeoKeyword)
  3082. .HasColumnType("varchar(200)")
  3083. .HasCharSet("utf8")
  3084. .HasCollation("utf8_general_ci");
  3085. entity.Property(e => e.SeoTitle)
  3086. .HasColumnType("varchar(100)")
  3087. .HasCharSet("utf8")
  3088. .HasCollation("utf8_general_ci");
  3089. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3090. entity.Property(e => e.Status).HasColumnType("int(11)");
  3091. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3092. entity.Property(e => e.UserId).HasColumnType("int(11)");
  3093. });
  3094. modelBuilder.Entity<MerchantForCode>(entity =>
  3095. {
  3096. entity.HasKey(e => e.Code)
  3097. .HasName("PRIMARY");
  3098. entity.Property(e => e.Code)
  3099. .HasColumnType("varchar(30)")
  3100. .HasCharSet("utf8")
  3101. .HasCollation("utf8_general_ci");
  3102. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  3103. });
  3104. modelBuilder.Entity<MerchantForMobile>(entity =>
  3105. {
  3106. entity.HasKey(e => e.Mobile)
  3107. .HasName("PRIMARY");
  3108. entity.Property(e => e.Mobile)
  3109. .HasColumnType("varchar(11)")
  3110. .HasCharSet("utf8")
  3111. .HasCollation("utf8_general_ci");
  3112. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  3113. });
  3114. modelBuilder.Entity<MerchantForName>(entity =>
  3115. {
  3116. entity.HasKey(e => e.Name)
  3117. .HasName("PRIMARY");
  3118. entity.Property(e => e.Name)
  3119. .HasColumnType("varchar(30)")
  3120. .HasCharSet("utf8")
  3121. .HasCollation("utf8_general_ci");
  3122. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  3123. });
  3124. modelBuilder.Entity<MerchantInfo>(entity =>
  3125. {
  3126. entity.Property(e => e.Id).HasColumnType("int(11)");
  3127. entity.Property(e => e.ActivationDate).HasColumnType("datetime");
  3128. entity.Property(e => e.ActivationStatus).HasColumnType("int(11)");
  3129. entity.Property(e => e.Address)
  3130. .HasColumnType("varchar(100)")
  3131. .HasCharSet("utf8")
  3132. .HasCollation("utf8_general_ci");
  3133. entity.Property(e => e.Areas)
  3134. .HasColumnType("varchar(50)")
  3135. .HasCharSet("utf8")
  3136. .HasCollation("utf8_general_ci");
  3137. entity.Property(e => e.BindDate).HasColumnType("datetime");
  3138. entity.Property(e => e.BindStatus).HasColumnType("int(11)");
  3139. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3140. entity.Property(e => e.CreateMan)
  3141. .HasColumnType("varchar(50)")
  3142. .HasCharSet("utf8")
  3143. .HasCollation("utf8_general_ci");
  3144. entity.Property(e => e.IsAuth)
  3145. .HasColumnType("bit(1)")
  3146. .HasDefaultValueSql("b'0'");
  3147. entity.Property(e => e.LastAddConsumerDate).HasColumnType("datetime");
  3148. entity.Property(e => e.LastConsumeDate).HasColumnType("datetime");
  3149. entity.Property(e => e.LoginPwd)
  3150. .HasColumnType("varchar(32)")
  3151. .HasCharSet("utf8")
  3152. .HasCollation("utf8_general_ci");
  3153. entity.Property(e => e.Logo)
  3154. .HasColumnType("varchar(200)")
  3155. .HasCharSet("utf8")
  3156. .HasCollation("utf8_general_ci");
  3157. entity.Property(e => e.Mobile)
  3158. .HasColumnType("varchar(11)")
  3159. .HasCharSet("utf8")
  3160. .HasCollation("utf8_general_ci");
  3161. entity.Property(e => e.Name)
  3162. .HasColumnType("varchar(50)")
  3163. .HasCharSet("utf8")
  3164. .HasCollation("utf8_general_ci");
  3165. entity.Property(e => e.ParentUserNav)
  3166. .HasColumnType("varchar(500)")
  3167. .HasCharSet("utf8")
  3168. .HasCollation("utf8_general_ci");
  3169. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3170. entity.Property(e => e.SeoDescription)
  3171. .HasColumnType("varchar(500)")
  3172. .HasCharSet("utf8")
  3173. .HasCollation("utf8_general_ci");
  3174. entity.Property(e => e.SeoKeyword)
  3175. .HasColumnType("varchar(200)")
  3176. .HasCharSet("utf8")
  3177. .HasCollation("utf8_general_ci");
  3178. entity.Property(e => e.SeoTitle)
  3179. .HasColumnType("varchar(100)")
  3180. .HasCharSet("utf8")
  3181. .HasCollation("utf8_general_ci");
  3182. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3183. entity.Property(e => e.Status).HasColumnType("int(11)");
  3184. entity.Property(e => e.TotalActual).HasColumnType("decimal(18,2)");
  3185. entity.Property(e => e.TotalAmount).HasColumnType("decimal(18,2)");
  3186. entity.Property(e => e.TotalConsumeCount).HasColumnType("int(11)");
  3187. entity.Property(e => e.TotalCustomer).HasColumnType("int(11)");
  3188. entity.Property(e => e.TotalOrder).HasColumnType("int(11)");
  3189. entity.Property(e => e.TotalUser).HasColumnType("int(11)");
  3190. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3191. entity.Property(e => e.UpdateMan)
  3192. .HasColumnType("varchar(50)")
  3193. .HasCharSet("utf8")
  3194. .HasCollation("utf8_general_ci");
  3195. entity.Property(e => e.UserId).HasColumnType("int(11)");
  3196. entity.Property(e => e.Version).HasColumnType("int(11)");
  3197. });
  3198. modelBuilder.Entity<MerchantParamSet>(entity =>
  3199. {
  3200. entity.Property(e => e.Id).HasColumnType("int(11)");
  3201. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3202. entity.Property(e => e.CreateMan)
  3203. .HasColumnType("varchar(50)")
  3204. .HasCharSet("utf8")
  3205. .HasCollation("utf8_general_ci");
  3206. entity.Property(e => e.DiviPercent).HasColumnType("decimal(18,2)");
  3207. entity.Property(e => e.DiviPersons).HasColumnType("int(11)");
  3208. entity.Property(e => e.GetPercent).HasColumnType("decimal(18,2)");
  3209. entity.Property(e => e.IsAll).HasColumnType("int(11)");
  3210. entity.Property(e => e.MinPayMoney).HasColumnType("decimal(18,2)");
  3211. entity.Property(e => e.ProfitDays).HasColumnType("int(11)");
  3212. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3213. entity.Property(e => e.SeoDescription)
  3214. .HasColumnType("varchar(500)")
  3215. .HasCharSet("utf8")
  3216. .HasCollation("utf8_general_ci");
  3217. entity.Property(e => e.SeoKeyword)
  3218. .HasColumnType("varchar(200)")
  3219. .HasCharSet("utf8")
  3220. .HasCollation("utf8_general_ci");
  3221. entity.Property(e => e.SeoTitle)
  3222. .HasColumnType("varchar(100)")
  3223. .HasCharSet("utf8")
  3224. .HasCollation("utf8_general_ci");
  3225. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3226. entity.Property(e => e.Status).HasColumnType("int(11)");
  3227. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3228. entity.Property(e => e.UpdateMan)
  3229. .HasColumnType("varchar(50)")
  3230. .HasCharSet("utf8")
  3231. .HasCollation("utf8_general_ci");
  3232. entity.Property(e => e.Version).HasColumnType("int(11)");
  3233. });
  3234. modelBuilder.Entity<MerchantQrCode>(entity =>
  3235. {
  3236. entity.Property(e => e.Id).HasColumnType("int(11)");
  3237. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3238. entity.Property(e => e.CreateMan)
  3239. .HasColumnType("varchar(50)")
  3240. .HasCharSet("utf8")
  3241. .HasCollation("utf8_general_ci");
  3242. entity.Property(e => e.MachineId).HasColumnType("int(11)");
  3243. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  3244. entity.Property(e => e.QrCodeContent)
  3245. .HasColumnType("varchar(500)")
  3246. .HasCharSet("utf8")
  3247. .HasCollation("utf8_general_ci");
  3248. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3249. entity.Property(e => e.SeoDescription)
  3250. .HasColumnType("varchar(500)")
  3251. .HasCharSet("utf8")
  3252. .HasCollation("utf8_general_ci");
  3253. entity.Property(e => e.SeoKeyword)
  3254. .HasColumnType("varchar(200)")
  3255. .HasCharSet("utf8")
  3256. .HasCollation("utf8_general_ci");
  3257. entity.Property(e => e.SeoTitle)
  3258. .HasColumnType("varchar(100)")
  3259. .HasCharSet("utf8")
  3260. .HasCollation("utf8_general_ci");
  3261. entity.Property(e => e.SnNo)
  3262. .HasColumnType("varchar(50)")
  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.UpdateDate).HasColumnType("datetime");
  3268. entity.Property(e => e.UpdateMan)
  3269. .HasColumnType("varchar(50)")
  3270. .HasCharSet("utf8")
  3271. .HasCollation("utf8_general_ci");
  3272. entity.Property(e => e.Version).HasColumnType("int(11)");
  3273. });
  3274. modelBuilder.Entity<MerchantRebateDetail>(entity =>
  3275. {
  3276. entity.Property(e => e.Id).HasColumnType("int(11)");
  3277. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  3278. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3279. entity.Property(e => e.CreateMan)
  3280. .HasColumnType("varchar(50)")
  3281. .HasCharSet("utf8")
  3282. .HasCollation("utf8_general_ci");
  3283. entity.Property(e => e.CreditRewardAmount).HasColumnType("decimal(18,2)");
  3284. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  3285. entity.Property(e => e.DebitRewardAmount).HasColumnType("decimal(18,2)");
  3286. entity.Property(e => e.DebitTradeAmt).HasColumnType("decimal(18,2)");
  3287. entity.Property(e => e.MerNo)
  3288. .HasColumnType("varchar(32)")
  3289. .HasCharSet("utf8")
  3290. .HasCollation("utf8_general_ci");
  3291. entity.Property(e => e.MerRegTime).HasColumnType("datetime");
  3292. entity.Property(e => e.MerStandardDate).HasColumnType("datetime");
  3293. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  3294. entity.Property(e => e.MmpUserName)
  3295. .HasColumnType("varchar(32)")
  3296. .HasCharSet("utf8")
  3297. .HasCollation("utf8_general_ci");
  3298. entity.Property(e => e.MmpUserNo)
  3299. .HasColumnType("varchar(32)")
  3300. .HasCharSet("utf8")
  3301. .HasCollation("utf8_general_ci");
  3302. entity.Property(e => e.ProductName)
  3303. .HasColumnType("varchar(32)")
  3304. .HasCharSet("utf8")
  3305. .HasCollation("utf8_general_ci");
  3306. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3307. entity.Property(e => e.Remark)
  3308. .HasColumnType("varchar(64)")
  3309. .HasCharSet("utf8")
  3310. .HasCollation("utf8_general_ci");
  3311. entity.Property(e => e.RewardDesc)
  3312. .HasColumnType("varchar(128)")
  3313. .HasCharSet("utf8")
  3314. .HasCollation("utf8_general_ci");
  3315. entity.Property(e => e.SeoDescription)
  3316. .HasColumnType("varchar(500)")
  3317. .HasCharSet("utf8")
  3318. .HasCollation("utf8_general_ci");
  3319. entity.Property(e => e.SeoKeyword)
  3320. .HasColumnType("varchar(200)")
  3321. .HasCharSet("utf8")
  3322. .HasCollation("utf8_general_ci");
  3323. entity.Property(e => e.SeoTitle)
  3324. .HasColumnType("varchar(100)")
  3325. .HasCharSet("utf8")
  3326. .HasCollation("utf8_general_ci");
  3327. entity.Property(e => e.SnNo)
  3328. .HasColumnType("varchar(32)")
  3329. .HasCharSet("utf8")
  3330. .HasCollation("utf8_general_ci");
  3331. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3332. entity.Property(e => e.Status).HasColumnType("int(11)");
  3333. entity.Property(e => e.SyncStatus).HasColumnType("int(11)");
  3334. entity.Property(e => e.TradeDate)
  3335. .HasColumnType("varchar(8)")
  3336. .HasCharSet("utf8")
  3337. .HasCollation("utf8_general_ci");
  3338. entity.Property(e => e.TradeMonth)
  3339. .HasColumnType("varchar(6)")
  3340. .HasCharSet("utf8")
  3341. .HasCollation("utf8_general_ci");
  3342. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3343. entity.Property(e => e.UpdateMan)
  3344. .HasColumnType("varchar(50)")
  3345. .HasCharSet("utf8")
  3346. .HasCollation("utf8_general_ci");
  3347. entity.Property(e => e.Version).HasColumnType("int(11)");
  3348. });
  3349. modelBuilder.Entity<Merchants>(entity =>
  3350. {
  3351. entity.Property(e => e.Id).HasColumnType("int(11)");
  3352. entity.Property(e => e.Address)
  3353. .HasColumnType("varchar(50)")
  3354. .HasCharSet("utf8")
  3355. .HasCollation("utf8_general_ci");
  3356. entity.Property(e => e.Areas)
  3357. .HasColumnType("varchar(30)")
  3358. .HasCharSet("utf8")
  3359. .HasCollation("utf8_general_ci");
  3360. entity.Property(e => e.BusinessLicense)
  3361. .HasColumnType("varchar(200)")
  3362. .HasCharSet("utf8")
  3363. .HasCollation("utf8_general_ci");
  3364. entity.Property(e => e.CommentCount).HasColumnType("int(11)");
  3365. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3366. entity.Property(e => e.CreateMan)
  3367. .HasColumnType("varchar(50)")
  3368. .HasCharSet("utf8")
  3369. .HasCollation("utf8_general_ci");
  3370. entity.Property(e => e.FollowCount).HasColumnType("int(11)");
  3371. entity.Property(e => e.IsAuth)
  3372. .HasColumnType("bit(1)")
  3373. .HasDefaultValueSql("b'0'");
  3374. entity.Property(e => e.IsRecommend)
  3375. .HasColumnType("bit(1)")
  3376. .HasDefaultValueSql("b'0'");
  3377. entity.Property(e => e.LoginPwd)
  3378. .HasColumnType("varchar(32)")
  3379. .HasCharSet("utf8")
  3380. .HasCollation("utf8_general_ci");
  3381. entity.Property(e => e.Logo)
  3382. .HasColumnType("varchar(200)")
  3383. .HasCharSet("utf8")
  3384. .HasCollation("utf8_general_ci");
  3385. entity.Property(e => e.Name)
  3386. .HasColumnType("varchar(50)")
  3387. .HasCharSet("utf8")
  3388. .HasCollation("utf8_general_ci");
  3389. entity.Property(e => e.PayPwd)
  3390. .HasColumnType("varchar(32)")
  3391. .HasCharSet("utf8")
  3392. .HasCollation("utf8_general_ci");
  3393. entity.Property(e => e.Phone)
  3394. .HasColumnType("varchar(30)")
  3395. .HasCharSet("utf8")
  3396. .HasCollation("utf8_general_ci");
  3397. entity.Property(e => e.Principal)
  3398. .HasColumnType("varchar(30)")
  3399. .HasCharSet("utf8")
  3400. .HasCollation("utf8_general_ci");
  3401. entity.Property(e => e.Province)
  3402. .HasColumnType("varchar(20)")
  3403. .HasCharSet("utf8")
  3404. .HasCollation("utf8_general_ci");
  3405. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3406. entity.Property(e => e.SeoDescription)
  3407. .HasColumnType("varchar(500)")
  3408. .HasCharSet("utf8")
  3409. .HasCollation("utf8_general_ci");
  3410. entity.Property(e => e.SeoKeyword)
  3411. .HasColumnType("varchar(200)")
  3412. .HasCharSet("utf8")
  3413. .HasCollation("utf8_general_ci");
  3414. entity.Property(e => e.SeoTitle)
  3415. .HasColumnType("varchar(100)")
  3416. .HasCharSet("utf8")
  3417. .HasCollation("utf8_general_ci");
  3418. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3419. entity.Property(e => e.StarNum1).HasColumnType("decimal(18,2)");
  3420. entity.Property(e => e.StarNum2).HasColumnType("decimal(18,2)");
  3421. entity.Property(e => e.StarNum3).HasColumnType("decimal(18,2)");
  3422. entity.Property(e => e.Status).HasColumnType("int(11)");
  3423. entity.Property(e => e.Title)
  3424. .HasColumnType("varchar(50)")
  3425. .HasCharSet("utf8")
  3426. .HasCollation("utf8_general_ci");
  3427. entity.Property(e => e.Title2)
  3428. .HasColumnType("varchar(50)")
  3429. .HasCharSet("utf8")
  3430. .HasCollation("utf8_general_ci");
  3431. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3432. entity.Property(e => e.UpdateMan)
  3433. .HasColumnType("varchar(50)")
  3434. .HasCharSet("utf8")
  3435. .HasCollation("utf8_general_ci");
  3436. entity.Property(e => e.UserName)
  3437. .HasColumnType("varchar(50)")
  3438. .HasCharSet("utf8")
  3439. .HasCollation("utf8_general_ci");
  3440. entity.Property(e => e.Version).HasColumnType("int(11)");
  3441. });
  3442. modelBuilder.Entity<MobileCodeCheck>(entity =>
  3443. {
  3444. entity.HasKey(e => e.Mobile)
  3445. .HasName("PRIMARY");
  3446. entity.Property(e => e.Mobile)
  3447. .HasColumnType("varchar(11)")
  3448. .HasCharSet("utf8")
  3449. .HasCollation("utf8_general_ci");
  3450. entity.Property(e => e.CheckCode)
  3451. .HasColumnType("varchar(6)")
  3452. .HasCharSet("utf8")
  3453. .HasCollation("utf8_general_ci");
  3454. entity.Property(e => e.CheckCodeTime).HasColumnType("datetime");
  3455. entity.Property(e => e.CheckNo)
  3456. .HasColumnType("varchar(6)")
  3457. .HasCharSet("utf8")
  3458. .HasCollation("utf8_general_ci");
  3459. });
  3460. modelBuilder.Entity<MsgBlackList>(entity =>
  3461. {
  3462. entity.Property(e => e.Id).HasColumnType("int(11)");
  3463. entity.Property(e => e.ColId)
  3464. .HasColumnType("varchar(30)")
  3465. .HasCharSet("utf8")
  3466. .HasCollation("utf8_general_ci");
  3467. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3468. entity.Property(e => e.CreateMan)
  3469. .HasColumnType("varchar(50)")
  3470. .HasCharSet("utf8")
  3471. .HasCollation("utf8_general_ci");
  3472. entity.Property(e => e.Extend)
  3473. .HasColumnType("varchar(2000)")
  3474. .HasCharSet("utf8")
  3475. .HasCollation("utf8_general_ci");
  3476. entity.Property(e => e.Ip)
  3477. .HasColumnType("varchar(64)")
  3478. .HasCharSet("utf8")
  3479. .HasCollation("utf8_general_ci");
  3480. entity.Property(e => e.Mobile)
  3481. .HasColumnType("varchar(11)")
  3482. .HasCharSet("utf8")
  3483. .HasCollation("utf8_general_ci");
  3484. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3485. entity.Property(e => e.Reason)
  3486. .HasColumnType("varchar(512)")
  3487. .HasCharSet("utf8")
  3488. .HasCollation("utf8_general_ci");
  3489. entity.Property(e => e.Remark)
  3490. .HasColumnType("varchar(64)")
  3491. .HasCharSet("utf8")
  3492. .HasCollation("utf8_general_ci");
  3493. entity.Property(e => e.SeoDescription)
  3494. .HasColumnType("varchar(500)")
  3495. .HasCharSet("utf8")
  3496. .HasCollation("utf8_general_ci");
  3497. entity.Property(e => e.SeoKeyword)
  3498. .HasColumnType("varchar(200)")
  3499. .HasCharSet("utf8")
  3500. .HasCollation("utf8_general_ci");
  3501. entity.Property(e => e.SeoTitle)
  3502. .HasColumnType("varchar(100)")
  3503. .HasCharSet("utf8")
  3504. .HasCollation("utf8_general_ci");
  3505. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3506. entity.Property(e => e.Status).HasColumnType("int(11)");
  3507. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  3508. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3509. entity.Property(e => e.UpdateMan)
  3510. .HasColumnType("varchar(50)")
  3511. .HasCharSet("utf8")
  3512. .HasCollation("utf8_general_ci");
  3513. entity.Property(e => e.Version).HasColumnType("int(11)");
  3514. });
  3515. modelBuilder.Entity<MsgPersonal>(entity =>
  3516. {
  3517. entity.Property(e => e.Id).HasColumnType("int(11)");
  3518. entity.Property(e => e.BgPic)
  3519. .HasColumnType("varchar(200)")
  3520. .HasCharSet("utf8")
  3521. .HasCollation("utf8_general_ci");
  3522. entity.Property(e => e.Content)
  3523. .HasColumnType("longtext")
  3524. .HasCharSet("utf8")
  3525. .HasCollation("utf8_general_ci");
  3526. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3527. entity.Property(e => e.CreateMan)
  3528. .HasColumnType("varchar(50)")
  3529. .HasCharSet("utf8")
  3530. .HasCollation("utf8_general_ci");
  3531. entity.Property(e => e.ExtendColumn)
  3532. .HasColumnType("mediumtext")
  3533. .HasCharSet("utf8")
  3534. .HasCollation("utf8_general_ci");
  3535. entity.Property(e => e.MsgType).HasColumnType("int(11)");
  3536. entity.Property(e => e.PushFlag).HasColumnType("int(11)");
  3537. entity.Property(e => e.PushParam)
  3538. .HasColumnType("varchar(255)")
  3539. .HasCharSet("utf8")
  3540. .HasCollation("utf8_general_ci");
  3541. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3542. entity.Property(e => e.ReadFlag)
  3543. .HasColumnType("bit(1)")
  3544. .HasDefaultValueSql("b'0'");
  3545. entity.Property(e => e.Remark)
  3546. .HasColumnType("varchar(255)")
  3547. .HasCharSet("utf8")
  3548. .HasCollation("utf8_general_ci");
  3549. entity.Property(e => e.SeoDescription)
  3550. .HasColumnType("varchar(500)")
  3551. .HasCharSet("utf8")
  3552. .HasCollation("utf8_general_ci");
  3553. entity.Property(e => e.SeoKeyword)
  3554. .HasColumnType("varchar(200)")
  3555. .HasCharSet("utf8")
  3556. .HasCollation("utf8_general_ci");
  3557. entity.Property(e => e.SeoTitle)
  3558. .HasColumnType("varchar(100)")
  3559. .HasCharSet("utf8")
  3560. .HasCollation("utf8_general_ci");
  3561. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3562. entity.Property(e => e.Status).HasColumnType("int(11)");
  3563. entity.Property(e => e.Summary)
  3564. .HasColumnType("varchar(500)")
  3565. .HasCharSet("utf8")
  3566. .HasCollation("utf8_general_ci");
  3567. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  3568. entity.Property(e => e.Title)
  3569. .HasColumnType("varchar(50)")
  3570. .HasCharSet("utf8")
  3571. .HasCollation("utf8_general_ci");
  3572. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3573. entity.Property(e => e.UpdateMan)
  3574. .HasColumnType("varchar(50)")
  3575. .HasCharSet("utf8")
  3576. .HasCollation("utf8_general_ci");
  3577. entity.Property(e => e.Url)
  3578. .HasColumnType("varchar(500)")
  3579. .HasCharSet("utf8")
  3580. .HasCollation("utf8_general_ci");
  3581. entity.Property(e => e.UserId).HasColumnType("int(11)");
  3582. entity.Property(e => e.Version).HasColumnType("int(11)");
  3583. });
  3584. modelBuilder.Entity<MsgPlacard>(entity =>
  3585. {
  3586. entity.Property(e => e.Id).HasColumnType("int(11)");
  3587. entity.Property(e => e.BgPic)
  3588. .HasColumnType("varchar(200)")
  3589. .HasCharSet("utf8")
  3590. .HasCollation("utf8_general_ci");
  3591. entity.Property(e => e.Content)
  3592. .HasColumnType("longtext")
  3593. .HasCharSet("utf8")
  3594. .HasCollation("utf8_general_ci");
  3595. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3596. entity.Property(e => e.CreateMan)
  3597. .HasColumnType("varchar(50)")
  3598. .HasCharSet("utf8")
  3599. .HasCollation("utf8_general_ci");
  3600. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  3601. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  3602. entity.Property(e => e.ExtendColumn)
  3603. .HasColumnType("mediumtext")
  3604. .HasCharSet("utf8")
  3605. .HasCollation("utf8_general_ci");
  3606. entity.Property(e => e.IsTop)
  3607. .HasColumnType("bit(1)")
  3608. .HasDefaultValueSql("b'0'");
  3609. entity.Property(e => e.MsgType).HasColumnType("int(11)");
  3610. entity.Property(e => e.PushFlag).HasColumnType("int(11)");
  3611. entity.Property(e => e.PushParam)
  3612. .HasColumnType("varchar(255)")
  3613. .HasCharSet("utf8")
  3614. .HasCollation("utf8_general_ci");
  3615. entity.Property(e => e.PushTime).HasColumnType("datetime");
  3616. entity.Property(e => e.PushType).HasColumnType("int(11)");
  3617. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3618. entity.Property(e => e.Remark)
  3619. .HasColumnType("varchar(255)")
  3620. .HasCharSet("utf8")
  3621. .HasCollation("utf8_general_ci");
  3622. entity.Property(e => e.SeoDescription)
  3623. .HasColumnType("varchar(500)")
  3624. .HasCharSet("utf8")
  3625. .HasCollation("utf8_general_ci");
  3626. entity.Property(e => e.SeoKeyword)
  3627. .HasColumnType("varchar(200)")
  3628. .HasCharSet("utf8")
  3629. .HasCollation("utf8_general_ci");
  3630. entity.Property(e => e.SeoTitle)
  3631. .HasColumnType("varchar(100)")
  3632. .HasCharSet("utf8")
  3633. .HasCollation("utf8_general_ci");
  3634. entity.Property(e => e.ShowType).HasColumnType("int(11)");
  3635. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3636. entity.Property(e => e.Status).HasColumnType("int(11)");
  3637. entity.Property(e => e.Summary)
  3638. .HasColumnType("varchar(500)")
  3639. .HasCharSet("utf8")
  3640. .HasCollation("utf8_general_ci");
  3641. entity.Property(e => e.Title)
  3642. .HasColumnType("varchar(50)")
  3643. .HasCharSet("utf8")
  3644. .HasCollation("utf8_general_ci");
  3645. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3646. entity.Property(e => e.UpdateMan)
  3647. .HasColumnType("varchar(50)")
  3648. .HasCharSet("utf8")
  3649. .HasCollation("utf8_general_ci");
  3650. entity.Property(e => e.Url)
  3651. .HasColumnType("varchar(500)")
  3652. .HasCharSet("utf8")
  3653. .HasCollation("utf8_general_ci");
  3654. entity.Property(e => e.Version).HasColumnType("int(11)");
  3655. });
  3656. modelBuilder.Entity<MsgPlacardRead>(entity =>
  3657. {
  3658. entity.Property(e => e.Id).HasColumnType("int(11)");
  3659. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3660. entity.Property(e => e.CreateMan)
  3661. .HasColumnType("varchar(50)")
  3662. .HasCharSet("utf8")
  3663. .HasCollation("utf8_general_ci");
  3664. entity.Property(e => e.PlacardId).HasColumnType("int(11)");
  3665. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3666. entity.Property(e => e.ReadFlag)
  3667. .HasColumnType("bit(1)")
  3668. .HasDefaultValueSql("b'0'");
  3669. entity.Property(e => e.Remark)
  3670. .HasColumnType("varchar(255)")
  3671. .HasCharSet("utf8")
  3672. .HasCollation("utf8_general_ci");
  3673. entity.Property(e => e.SeoDescription)
  3674. .HasColumnType("varchar(500)")
  3675. .HasCharSet("utf8")
  3676. .HasCollation("utf8_general_ci");
  3677. entity.Property(e => e.SeoKeyword)
  3678. .HasColumnType("varchar(200)")
  3679. .HasCharSet("utf8")
  3680. .HasCollation("utf8_general_ci");
  3681. entity.Property(e => e.SeoTitle)
  3682. .HasColumnType("varchar(100)")
  3683. .HasCharSet("utf8")
  3684. .HasCollation("utf8_general_ci");
  3685. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3686. entity.Property(e => e.Status).HasColumnType("int(11)");
  3687. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3688. entity.Property(e => e.UpdateMan)
  3689. .HasColumnType("varchar(50)")
  3690. .HasCharSet("utf8")
  3691. .HasCollation("utf8_general_ci");
  3692. entity.Property(e => e.UserId)
  3693. .HasColumnType("varchar(64)")
  3694. .HasCharSet("utf8")
  3695. .HasCollation("utf8_general_ci");
  3696. entity.Property(e => e.Version).HasColumnType("int(11)");
  3697. });
  3698. modelBuilder.Entity<MsgPush>(entity =>
  3699. {
  3700. entity.Property(e => e.Id).HasColumnType("int(11)");
  3701. entity.Property(e => e.AutoPushDate).HasColumnType("datetime");
  3702. entity.Property(e => e.ClientType)
  3703. .HasColumnType("varchar(20)")
  3704. .HasCharSet("utf8")
  3705. .HasCollation("utf8_general_ci");
  3706. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3707. entity.Property(e => e.CreateMan)
  3708. .HasColumnType("varchar(50)")
  3709. .HasCharSet("utf8")
  3710. .HasCollation("utf8_general_ci");
  3711. entity.Property(e => e.Details)
  3712. .HasColumnType("varchar(200)")
  3713. .HasCharSet("utf8")
  3714. .HasCollation("utf8_general_ci");
  3715. entity.Property(e => e.Devices)
  3716. .HasColumnType("mediumtext")
  3717. .HasCharSet("utf8")
  3718. .HasCollation("utf8_general_ci");
  3719. entity.Property(e => e.IsSilent)
  3720. .HasColumnType("bit(1)")
  3721. .HasDefaultValueSql("b'0'");
  3722. entity.Property(e => e.MessageId)
  3723. .HasColumnType("varchar(50)")
  3724. .HasCharSet("utf8")
  3725. .HasCollation("utf8_general_ci");
  3726. entity.Property(e => e.Mobiles)
  3727. .HasColumnType("mediumtext")
  3728. .HasCharSet("utf8")
  3729. .HasCollation("utf8_general_ci");
  3730. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3731. entity.Property(e => e.SeoDescription)
  3732. .HasColumnType("varchar(500)")
  3733. .HasCharSet("utf8")
  3734. .HasCollation("utf8_general_ci");
  3735. entity.Property(e => e.SeoKeyword)
  3736. .HasColumnType("varchar(200)")
  3737. .HasCharSet("utf8")
  3738. .HasCollation("utf8_general_ci");
  3739. entity.Property(e => e.SeoTitle)
  3740. .HasColumnType("varchar(100)")
  3741. .HasCharSet("utf8")
  3742. .HasCollation("utf8_general_ci");
  3743. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3744. entity.Property(e => e.Status).HasColumnType("int(11)");
  3745. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  3746. entity.Property(e => e.Title)
  3747. .HasColumnType("varchar(50)")
  3748. .HasCharSet("utf8")
  3749. .HasCollation("utf8_general_ci");
  3750. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3751. entity.Property(e => e.UpdateMan)
  3752. .HasColumnType("varchar(50)")
  3753. .HasCharSet("utf8")
  3754. .HasCollation("utf8_general_ci");
  3755. entity.Property(e => e.Url)
  3756. .HasColumnType("varchar(500)")
  3757. .HasCharSet("utf8")
  3758. .HasCollation("utf8_general_ci");
  3759. entity.Property(e => e.Version).HasColumnType("int(11)");
  3760. });
  3761. modelBuilder.Entity<MsgSms>(entity =>
  3762. {
  3763. entity.Property(e => e.Id).HasColumnType("int(11)");
  3764. entity.Property(e => e.Code).HasColumnType("int(11)");
  3765. entity.Property(e => e.ColId)
  3766. .HasColumnType("varchar(30)")
  3767. .HasCharSet("utf8")
  3768. .HasCollation("utf8_general_ci");
  3769. entity.Property(e => e.Content)
  3770. .HasColumnType("varchar(200)")
  3771. .HasCharSet("utf8")
  3772. .HasCollation("utf8_general_ci");
  3773. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3774. entity.Property(e => e.CreateMan)
  3775. .HasColumnType("varchar(50)")
  3776. .HasCharSet("utf8")
  3777. .HasCollation("utf8_general_ci");
  3778. entity.Property(e => e.ErrorNum).HasColumnType("int(11)");
  3779. entity.Property(e => e.Ip)
  3780. .HasColumnType("varchar(15)")
  3781. .HasCharSet("utf8")
  3782. .HasCollation("utf8_general_ci");
  3783. entity.Property(e => e.Kind)
  3784. .HasColumnType("varchar(64)")
  3785. .HasCharSet("utf8")
  3786. .HasCollation("utf8_general_ci");
  3787. entity.Property(e => e.Mobile)
  3788. .HasColumnType("varchar(11)")
  3789. .HasCharSet("utf8")
  3790. .HasCollation("utf8_general_ci");
  3791. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3792. entity.Property(e => e.RespCode)
  3793. .HasColumnType("varchar(16)")
  3794. .HasCharSet("utf8")
  3795. .HasCollation("utf8_general_ci");
  3796. entity.Property(e => e.RespContent)
  3797. .HasColumnType("varchar(500)")
  3798. .HasCharSet("utf8")
  3799. .HasCollation("utf8_general_ci");
  3800. entity.Property(e => e.SendStatus).HasColumnType("int(11)");
  3801. entity.Property(e => e.SendTime).HasColumnType("datetime");
  3802. entity.Property(e => e.SendType).HasColumnType("int(11)");
  3803. entity.Property(e => e.SeoDescription)
  3804. .HasColumnType("varchar(500)")
  3805. .HasCharSet("utf8")
  3806. .HasCollation("utf8_general_ci");
  3807. entity.Property(e => e.SeoKeyword)
  3808. .HasColumnType("varchar(200)")
  3809. .HasCharSet("utf8")
  3810. .HasCollation("utf8_general_ci");
  3811. entity.Property(e => e.SeoTitle)
  3812. .HasColumnType("varchar(100)")
  3813. .HasCharSet("utf8")
  3814. .HasCollation("utf8_general_ci");
  3815. entity.Property(e => e.SignName)
  3816. .HasColumnType("varchar(10)")
  3817. .HasCharSet("utf8")
  3818. .HasCollation("utf8_general_ci");
  3819. entity.Property(e => e.SmsType).HasColumnType("int(11)");
  3820. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3821. entity.Property(e => e.Status).HasColumnType("int(11)");
  3822. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  3823. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3824. entity.Property(e => e.UpdateMan)
  3825. .HasColumnType("varchar(50)")
  3826. .HasCharSet("utf8")
  3827. .HasCollation("utf8_general_ci");
  3828. entity.Property(e => e.VerifyCode)
  3829. .HasColumnType("varchar(6)")
  3830. .HasCharSet("utf8")
  3831. .HasCollation("utf8_general_ci");
  3832. entity.Property(e => e.VerifyStatus).HasColumnType("int(11)");
  3833. entity.Property(e => e.Version).HasColumnType("int(11)");
  3834. });
  3835. modelBuilder.Entity<MsgSmsSet>(entity =>
  3836. {
  3837. entity.Property(e => e.Id).HasColumnType("int(11)");
  3838. entity.Property(e => e.AuthPwd)
  3839. .HasColumnType("varchar(50)")
  3840. .HasCharSet("utf8")
  3841. .HasCollation("utf8_general_ci");
  3842. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3843. entity.Property(e => e.CreateMan)
  3844. .HasColumnType("varchar(50)")
  3845. .HasCharSet("utf8")
  3846. .HasCollation("utf8_general_ci");
  3847. entity.Property(e => e.Name)
  3848. .HasColumnType("varchar(50)")
  3849. .HasCharSet("utf8")
  3850. .HasCollation("utf8_general_ci");
  3851. entity.Property(e => e.Params)
  3852. .HasColumnType("varchar(200)")
  3853. .HasCharSet("utf8")
  3854. .HasCollation("utf8_general_ci");
  3855. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3856. entity.Property(e => e.ReqUrl)
  3857. .HasColumnType("varchar(200)")
  3858. .HasCharSet("utf8")
  3859. .HasCollation("utf8_general_ci");
  3860. entity.Property(e => e.SeoDescription)
  3861. .HasColumnType("varchar(500)")
  3862. .HasCharSet("utf8")
  3863. .HasCollation("utf8_general_ci");
  3864. entity.Property(e => e.SeoKeyword)
  3865. .HasColumnType("varchar(200)")
  3866. .HasCharSet("utf8")
  3867. .HasCollation("utf8_general_ci");
  3868. entity.Property(e => e.SeoTitle)
  3869. .HasColumnType("varchar(100)")
  3870. .HasCharSet("utf8")
  3871. .HasCollation("utf8_general_ci");
  3872. entity.Property(e => e.SmsType).HasColumnType("int(11)");
  3873. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3874. entity.Property(e => e.Status).HasColumnType("int(11)");
  3875. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3876. entity.Property(e => e.UpdateMan)
  3877. .HasColumnType("varchar(50)")
  3878. .HasCharSet("utf8")
  3879. .HasCollation("utf8_general_ci");
  3880. entity.Property(e => e.UserName)
  3881. .HasColumnType("varchar(50)")
  3882. .HasCharSet("utf8")
  3883. .HasCollation("utf8_general_ci");
  3884. entity.Property(e => e.Version).HasColumnType("int(11)");
  3885. });
  3886. modelBuilder.Entity<MsgTemplate>(entity =>
  3887. {
  3888. entity.Property(e => e.Id).HasColumnType("int(11)");
  3889. entity.Property(e => e.ColId)
  3890. .HasColumnType("varchar(30)")
  3891. .HasCharSet("utf8")
  3892. .HasCollation("utf8_general_ci");
  3893. entity.Property(e => e.Content)
  3894. .HasColumnType("varchar(200)")
  3895. .HasCharSet("utf8")
  3896. .HasCollation("utf8_general_ci");
  3897. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3898. entity.Property(e => e.CreateMan)
  3899. .HasColumnType("varchar(50)")
  3900. .HasCharSet("utf8")
  3901. .HasCollation("utf8_general_ci");
  3902. entity.Property(e => e.Extend)
  3903. .HasColumnType("varchar(2000)")
  3904. .HasCharSet("utf8")
  3905. .HasCollation("utf8_general_ci");
  3906. entity.Property(e => e.MsgType).HasColumnType("int(11)");
  3907. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3908. entity.Property(e => e.Remark)
  3909. .HasColumnType("varchar(64)")
  3910. .HasCharSet("utf8")
  3911. .HasCollation("utf8_general_ci");
  3912. entity.Property(e => e.SeoDescription)
  3913. .HasColumnType("varchar(500)")
  3914. .HasCharSet("utf8")
  3915. .HasCollation("utf8_general_ci");
  3916. entity.Property(e => e.SeoKeyword)
  3917. .HasColumnType("varchar(200)")
  3918. .HasCharSet("utf8")
  3919. .HasCollation("utf8_general_ci");
  3920. entity.Property(e => e.SeoTitle)
  3921. .HasColumnType("varchar(100)")
  3922. .HasCharSet("utf8")
  3923. .HasCollation("utf8_general_ci");
  3924. entity.Property(e => e.SignName)
  3925. .HasColumnType("varchar(10)")
  3926. .HasCharSet("utf8")
  3927. .HasCollation("utf8_general_ci");
  3928. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3929. entity.Property(e => e.Status).HasColumnType("int(11)");
  3930. entity.Property(e => e.TemplateType).HasColumnType("int(11)");
  3931. entity.Property(e => e.Title)
  3932. .HasColumnType("varchar(50)")
  3933. .HasCharSet("utf8")
  3934. .HasCollation("utf8_general_ci");
  3935. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3936. entity.Property(e => e.UpdateMan)
  3937. .HasColumnType("varchar(50)")
  3938. .HasCharSet("utf8")
  3939. .HasCollation("utf8_general_ci");
  3940. entity.Property(e => e.Version).HasColumnType("int(11)");
  3941. });
  3942. modelBuilder.Entity<OpenBankCityTable>(entity =>
  3943. {
  3944. entity.HasKey(e => e.CityName)
  3945. .HasName("PRIMARY");
  3946. entity.Property(e => e.CityName)
  3947. .HasColumnType("varchar(100)")
  3948. .HasCharSet("utf8")
  3949. .HasCollation("utf8_general_ci");
  3950. entity.Property(e => e.Code)
  3951. .HasColumnType("varchar(20)")
  3952. .HasCharSet("utf8")
  3953. .HasCollation("utf8_general_ci");
  3954. });
  3955. modelBuilder.Entity<OpenBankTable>(entity =>
  3956. {
  3957. entity.HasKey(e => e.BankName)
  3958. .HasName("PRIMARY");
  3959. entity.Property(e => e.BankName)
  3960. .HasColumnType("varchar(200)")
  3961. .HasCharSet("utf8")
  3962. .HasCollation("utf8_general_ci");
  3963. entity.Property(e => e.BankCode)
  3964. .HasColumnType("varchar(50)")
  3965. .HasCharSet("utf8")
  3966. .HasCollation("utf8_general_ci");
  3967. });
  3968. modelBuilder.Entity<OpenReward>(entity =>
  3969. {
  3970. entity.Property(e => e.Id).HasColumnType("int(11)");
  3971. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  3972. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  3973. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3974. entity.Property(e => e.CreateMan)
  3975. .HasColumnType("varchar(50)")
  3976. .HasCharSet("utf8")
  3977. .HasCollation("utf8_general_ci");
  3978. entity.Property(e => e.CreditRewardAmount).HasColumnType("decimal(18,2)");
  3979. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  3980. entity.Property(e => e.DebitRewardAmount).HasColumnType("decimal(18,2)");
  3981. entity.Property(e => e.DebitTradeAmt).HasColumnType("decimal(18,2)");
  3982. entity.Property(e => e.OpenRewardNo)
  3983. .HasColumnType("varchar(32)")
  3984. .HasCharSet("utf8")
  3985. .HasCollation("utf8_general_ci");
  3986. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3987. entity.Property(e => e.Remark)
  3988. .HasColumnType("varchar(128)")
  3989. .HasCharSet("utf8")
  3990. .HasCollation("utf8_general_ci");
  3991. entity.Property(e => e.RewardDesc)
  3992. .HasColumnType("varchar(128)")
  3993. .HasCharSet("utf8")
  3994. .HasCollation("utf8_general_ci");
  3995. entity.Property(e => e.RewardMerCount).HasColumnType("int(11)");
  3996. entity.Property(e => e.RewardType).HasColumnType("int(11)");
  3997. entity.Property(e => e.SeoDescription)
  3998. .HasColumnType("varchar(500)")
  3999. .HasCharSet("utf8")
  4000. .HasCollation("utf8_general_ci");
  4001. entity.Property(e => e.SeoKeyword)
  4002. .HasColumnType("varchar(200)")
  4003. .HasCharSet("utf8")
  4004. .HasCollation("utf8_general_ci");
  4005. entity.Property(e => e.SeoTitle)
  4006. .HasColumnType("varchar(100)")
  4007. .HasCharSet("utf8")
  4008. .HasCollation("utf8_general_ci");
  4009. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4010. entity.Property(e => e.Status).HasColumnType("int(11)");
  4011. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  4012. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  4013. entity.Property(e => e.TradeMonth)
  4014. .HasColumnType("varchar(6)")
  4015. .HasCharSet("utf8")
  4016. .HasCollation("utf8_general_ci");
  4017. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4018. entity.Property(e => e.UpdateMan)
  4019. .HasColumnType("varchar(50)")
  4020. .HasCharSet("utf8")
  4021. .HasCollation("utf8_general_ci");
  4022. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4023. entity.Property(e => e.Version).HasColumnType("int(11)");
  4024. });
  4025. modelBuilder.Entity<OpenRewardDetail>(entity =>
  4026. {
  4027. entity.Property(e => e.Id).HasColumnType("int(11)");
  4028. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  4029. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  4030. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4031. entity.Property(e => e.CreateMan)
  4032. .HasColumnType("varchar(50)")
  4033. .HasCharSet("utf8")
  4034. .HasCollation("utf8_general_ci");
  4035. entity.Property(e => e.CreditRewardAmount).HasColumnType("decimal(18,2)");
  4036. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  4037. entity.Property(e => e.DebitRewardAmount).HasColumnType("decimal(18,2)");
  4038. entity.Property(e => e.DebitTradeAmt).HasColumnType("decimal(18,2)");
  4039. entity.Property(e => e.DirectUserId).HasColumnType("int(11)");
  4040. entity.Property(e => e.MerBuddyType).HasColumnType("int(11)");
  4041. entity.Property(e => e.MerNo)
  4042. .HasColumnType("varchar(32)")
  4043. .HasCharSet("utf8")
  4044. .HasCollation("utf8_general_ci");
  4045. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4046. entity.Property(e => e.OpenDetailRec)
  4047. .HasColumnType("varchar(32)")
  4048. .HasCharSet("utf8")
  4049. .HasCollation("utf8_general_ci");
  4050. entity.Property(e => e.OpenRewardNo)
  4051. .HasColumnType("varchar(32)")
  4052. .HasCharSet("utf8")
  4053. .HasCollation("utf8_general_ci");
  4054. entity.Property(e => e.ProductName)
  4055. .HasColumnType("varchar(32)")
  4056. .HasCharSet("utf8")
  4057. .HasCollation("utf8_general_ci");
  4058. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4059. entity.Property(e => e.Remark)
  4060. .HasColumnType("varchar(128)")
  4061. .HasCharSet("utf8")
  4062. .HasCollation("utf8_general_ci");
  4063. entity.Property(e => e.RewardDesc)
  4064. .HasColumnType("varchar(128)")
  4065. .HasCharSet("utf8")
  4066. .HasCollation("utf8_general_ci");
  4067. entity.Property(e => e.RewardTips)
  4068. .HasColumnType("varchar(16)")
  4069. .HasCharSet("utf8")
  4070. .HasCollation("utf8_general_ci");
  4071. entity.Property(e => e.RewardType).HasColumnType("int(11)");
  4072. entity.Property(e => e.SeoDescription)
  4073. .HasColumnType("varchar(500)")
  4074. .HasCharSet("utf8")
  4075. .HasCollation("utf8_general_ci");
  4076. entity.Property(e => e.SeoKeyword)
  4077. .HasColumnType("varchar(200)")
  4078. .HasCharSet("utf8")
  4079. .HasCollation("utf8_general_ci");
  4080. entity.Property(e => e.SeoTitle)
  4081. .HasColumnType("varchar(100)")
  4082. .HasCharSet("utf8")
  4083. .HasCollation("utf8_general_ci");
  4084. entity.Property(e => e.SnApplyUserId).HasColumnType("int(11)");
  4085. entity.Property(e => e.SnNo)
  4086. .HasColumnType("varchar(32)")
  4087. .HasCharSet("utf8")
  4088. .HasCollation("utf8_general_ci");
  4089. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  4090. entity.Property(e => e.SnType).HasColumnType("int(11)");
  4091. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4092. entity.Property(e => e.StandardDate).HasColumnType("datetime");
  4093. entity.Property(e => e.Status).HasColumnType("int(11)");
  4094. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  4095. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  4096. entity.Property(e => e.TradeMonth)
  4097. .HasColumnType("varchar(6)")
  4098. .HasCharSet("utf8")
  4099. .HasCollation("utf8_general_ci");
  4100. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4101. entity.Property(e => e.UpdateMan)
  4102. .HasColumnType("varchar(50)")
  4103. .HasCharSet("utf8")
  4104. .HasCollation("utf8_general_ci");
  4105. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4106. entity.Property(e => e.Version).HasColumnType("int(11)");
  4107. });
  4108. modelBuilder.Entity<OpenSnSnapshot>(entity =>
  4109. {
  4110. entity.Property(e => e.Id).HasColumnType("int(11)");
  4111. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  4112. entity.Property(e => e.BuySnNum).HasColumnType("int(11)");
  4113. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4114. entity.Property(e => e.CreateMan)
  4115. .HasColumnType("varchar(50)")
  4116. .HasCharSet("utf8")
  4117. .HasCollation("utf8_general_ci");
  4118. entity.Property(e => e.CreditRewardAmount).HasColumnType("decimal(18,2)");
  4119. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  4120. entity.Property(e => e.DebitRewardAmount).HasColumnType("decimal(18,2)");
  4121. entity.Property(e => e.DebitTradeAmt).HasColumnType("decimal(18,2)");
  4122. entity.Property(e => e.DirectUserId).HasColumnType("int(11)");
  4123. entity.Property(e => e.FailReason)
  4124. .HasColumnType("varchar(128)")
  4125. .HasCharSet("utf8")
  4126. .HasCollation("utf8_general_ci");
  4127. entity.Property(e => e.MerNo)
  4128. .HasColumnType("varchar(32)")
  4129. .HasCharSet("utf8")
  4130. .HasCollation("utf8_general_ci");
  4131. entity.Property(e => e.MerUserType).HasColumnType("int(11)");
  4132. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4133. entity.Property(e => e.OpenDetailRec)
  4134. .HasColumnType("varchar(32)")
  4135. .HasCharSet("utf8")
  4136. .HasCollation("utf8_general_ci");
  4137. entity.Property(e => e.OpenRewardNo)
  4138. .HasColumnType("varchar(32)")
  4139. .HasCharSet("utf8")
  4140. .HasCollation("utf8_general_ci");
  4141. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4142. entity.Property(e => e.Remark)
  4143. .HasColumnType("varchar(128)")
  4144. .HasCharSet("utf8")
  4145. .HasCollation("utf8_general_ci");
  4146. entity.Property(e => e.RewardAmount).HasColumnType("decimal(18,2)");
  4147. entity.Property(e => e.RewardDesc)
  4148. .HasColumnType("varchar(128)")
  4149. .HasCharSet("utf8")
  4150. .HasCollation("utf8_general_ci");
  4151. entity.Property(e => e.RewardTips)
  4152. .HasColumnType("varchar(16)")
  4153. .HasCharSet("utf8")
  4154. .HasCollation("utf8_general_ci");
  4155. entity.Property(e => e.RewardType).HasColumnType("int(11)");
  4156. entity.Property(e => e.SeoDescription)
  4157. .HasColumnType("varchar(500)")
  4158. .HasCharSet("utf8")
  4159. .HasCollation("utf8_general_ci");
  4160. entity.Property(e => e.SeoKeyword)
  4161. .HasColumnType("varchar(200)")
  4162. .HasCharSet("utf8")
  4163. .HasCollation("utf8_general_ci");
  4164. entity.Property(e => e.SeoTitle)
  4165. .HasColumnType("varchar(100)")
  4166. .HasCharSet("utf8")
  4167. .HasCollation("utf8_general_ci");
  4168. entity.Property(e => e.SnApplyUserId).HasColumnType("int(11)");
  4169. entity.Property(e => e.SnNo)
  4170. .HasColumnType("varchar(32)")
  4171. .HasCharSet("utf8")
  4172. .HasCollation("utf8_general_ci");
  4173. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  4174. entity.Property(e => e.SnType).HasColumnType("int(11)");
  4175. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4176. entity.Property(e => e.StandardDate).HasColumnType("datetime");
  4177. entity.Property(e => e.Status).HasColumnType("int(11)");
  4178. entity.Property(e => e.StdBuySnNum).HasColumnType("int(11)");
  4179. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  4180. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  4181. entity.Property(e => e.TradeMonth)
  4182. .HasColumnType("varchar(6)")
  4183. .HasCharSet("utf8")
  4184. .HasCollation("utf8_general_ci");
  4185. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4186. entity.Property(e => e.UpdateMan)
  4187. .HasColumnType("varchar(50)")
  4188. .HasCharSet("utf8")
  4189. .HasCollation("utf8_general_ci");
  4190. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4191. entity.Property(e => e.UserNav)
  4192. .HasColumnType("varchar(300)")
  4193. .HasCharSet("utf8")
  4194. .HasCollation("utf8_general_ci");
  4195. entity.Property(e => e.Version).HasColumnType("int(11)");
  4196. });
  4197. modelBuilder.Entity<OperateLog>(entity =>
  4198. {
  4199. entity.Property(e => e.Id).HasColumnType("int(11)");
  4200. entity.Property(e => e.AfterOperate)
  4201. .HasColumnType("mediumtext")
  4202. .HasCharSet("utf8")
  4203. .HasCollation("utf8_general_ci");
  4204. entity.Property(e => e.BeforeOperate)
  4205. .HasColumnType("mediumtext")
  4206. .HasCharSet("utf8")
  4207. .HasCollation("utf8_general_ci");
  4208. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4209. entity.Property(e => e.CreateMan)
  4210. .HasColumnType("varchar(50)")
  4211. .HasCharSet("utf8")
  4212. .HasCollation("utf8_general_ci");
  4213. entity.Property(e => e.OpMode)
  4214. .HasColumnType("varchar(30)")
  4215. .HasCharSet("utf8")
  4216. .HasCollation("utf8_general_ci");
  4217. entity.Property(e => e.OperateMan)
  4218. .HasColumnType("varchar(50)")
  4219. .HasCharSet("utf8")
  4220. .HasCollation("utf8_general_ci");
  4221. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4222. entity.Property(e => e.SeoDescription)
  4223. .HasColumnType("varchar(500)")
  4224. .HasCharSet("utf8")
  4225. .HasCollation("utf8_general_ci");
  4226. entity.Property(e => e.SeoKeyword)
  4227. .HasColumnType("varchar(200)")
  4228. .HasCharSet("utf8")
  4229. .HasCollation("utf8_general_ci");
  4230. entity.Property(e => e.SeoTitle)
  4231. .HasColumnType("varchar(100)")
  4232. .HasCharSet("utf8")
  4233. .HasCollation("utf8_general_ci");
  4234. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4235. entity.Property(e => e.Status).HasColumnType("int(11)");
  4236. entity.Property(e => e.TableEnName)
  4237. .HasColumnType("varchar(50)")
  4238. .HasCharSet("utf8")
  4239. .HasCollation("utf8_general_ci");
  4240. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4241. entity.Property(e => e.UpdateMan)
  4242. .HasColumnType("varchar(50)")
  4243. .HasCharSet("utf8")
  4244. .HasCollation("utf8_general_ci");
  4245. entity.Property(e => e.Version).HasColumnType("int(11)");
  4246. });
  4247. modelBuilder.Entity<OperateRightList>(entity =>
  4248. {
  4249. entity.Property(e => e.Id).HasColumnType("int(11)");
  4250. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4251. entity.Property(e => e.CreateMan)
  4252. .HasColumnType("varchar(50)")
  4253. .HasCharSet("utf8")
  4254. .HasCollation("utf8_general_ci");
  4255. entity.Property(e => e.EnName)
  4256. .HasColumnType("varchar(50)")
  4257. .HasCharSet("utf8")
  4258. .HasCollation("utf8_general_ci");
  4259. entity.Property(e => e.Name)
  4260. .HasColumnType("varchar(50)")
  4261. .HasCharSet("utf8")
  4262. .HasCollation("utf8_general_ci");
  4263. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4264. entity.Property(e => e.SeoDescription)
  4265. .HasColumnType("varchar(500)")
  4266. .HasCharSet("utf8")
  4267. .HasCollation("utf8_general_ci");
  4268. entity.Property(e => e.SeoKeyword)
  4269. .HasColumnType("varchar(200)")
  4270. .HasCharSet("utf8")
  4271. .HasCollation("utf8_general_ci");
  4272. entity.Property(e => e.SeoTitle)
  4273. .HasColumnType("varchar(100)")
  4274. .HasCharSet("utf8")
  4275. .HasCollation("utf8_general_ci");
  4276. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4277. entity.Property(e => e.Status).HasColumnType("int(11)");
  4278. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4279. entity.Property(e => e.UpdateMan)
  4280. .HasColumnType("varchar(50)")
  4281. .HasCharSet("utf8")
  4282. .HasCollation("utf8_general_ci");
  4283. entity.Property(e => e.Version).HasColumnType("int(11)");
  4284. });
  4285. modelBuilder.Entity<OrderForNo>(entity =>
  4286. {
  4287. entity.HasKey(e => e.OrderNo)
  4288. .HasName("PRIMARY");
  4289. entity.Property(e => e.OrderNo)
  4290. .HasColumnType("varchar(50)")
  4291. .HasCharSet("utf8")
  4292. .HasCollation("utf8_general_ci");
  4293. entity.Property(e => e.OrderIds)
  4294. .HasColumnType("varchar(50)")
  4295. .HasCharSet("utf8")
  4296. .HasCollation("utf8_general_ci");
  4297. entity.Property(e => e.RspCode).HasColumnType("int(11)");
  4298. entity.Property(e => e.RspMsg)
  4299. .HasColumnType("varchar(500)")
  4300. .HasCharSet("utf8")
  4301. .HasCollation("utf8_general_ci");
  4302. });
  4303. modelBuilder.Entity<OrderProduct>(entity =>
  4304. {
  4305. entity.Property(e => e.Id).HasColumnType("int(11)");
  4306. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4307. entity.Property(e => e.CreateMan)
  4308. .HasColumnType("varchar(50)")
  4309. .HasCharSet("utf8")
  4310. .HasCollation("utf8_general_ci");
  4311. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4312. entity.Property(e => e.NormDetail)
  4313. .HasColumnType("varchar(200)")
  4314. .HasCharSet("utf8")
  4315. .HasCollation("utf8_general_ci");
  4316. entity.Property(e => e.NormId)
  4317. .HasColumnType("varchar(50)")
  4318. .HasCharSet("utf8")
  4319. .HasCollation("utf8_general_ci");
  4320. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  4321. entity.Property(e => e.ProductCode)
  4322. .HasColumnType("varchar(30)")
  4323. .HasCharSet("utf8")
  4324. .HasCollation("utf8_general_ci");
  4325. entity.Property(e => e.ProductCount).HasColumnType("int(11)");
  4326. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  4327. entity.Property(e => e.ProductIntegral).HasColumnType("decimal(18,2)");
  4328. entity.Property(e => e.ProductName)
  4329. .HasColumnType("varchar(100)")
  4330. .HasCharSet("utf8")
  4331. .HasCollation("utf8_general_ci");
  4332. entity.Property(e => e.ProductPhoto)
  4333. .HasColumnType("varchar(200)")
  4334. .HasCharSet("utf8")
  4335. .HasCollation("utf8_general_ci");
  4336. entity.Property(e => e.ProductPrice).HasColumnType("decimal(18,2)");
  4337. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4338. entity.Property(e => e.SeoDescription)
  4339. .HasColumnType("varchar(500)")
  4340. .HasCharSet("utf8")
  4341. .HasCollation("utf8_general_ci");
  4342. entity.Property(e => e.SeoKeyword)
  4343. .HasColumnType("varchar(200)")
  4344. .HasCharSet("utf8")
  4345. .HasCollation("utf8_general_ci");
  4346. entity.Property(e => e.SeoTitle)
  4347. .HasColumnType("varchar(100)")
  4348. .HasCharSet("utf8")
  4349. .HasCollation("utf8_general_ci");
  4350. entity.Property(e => e.SnNos)
  4351. .HasColumnType("mediumtext")
  4352. .HasCharSet("utf8")
  4353. .HasCollation("utf8_general_ci");
  4354. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4355. entity.Property(e => e.Status).HasColumnType("int(11)");
  4356. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  4357. entity.Property(e => e.TotalIntegral).HasColumnType("decimal(18,2)");
  4358. entity.Property(e => e.TotalPrice).HasColumnType("decimal(18,2)");
  4359. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4360. entity.Property(e => e.UpdateMan)
  4361. .HasColumnType("varchar(50)")
  4362. .HasCharSet("utf8")
  4363. .HasCollation("utf8_general_ci");
  4364. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4365. entity.Property(e => e.Version).HasColumnType("int(11)");
  4366. });
  4367. modelBuilder.Entity<OrderRefund>(entity =>
  4368. {
  4369. entity.Property(e => e.Id).HasColumnType("int(11)");
  4370. entity.Property(e => e.Amount).HasColumnType("decimal(18,2)");
  4371. entity.Property(e => e.Contents)
  4372. .HasColumnType("longtext")
  4373. .HasCharSet("utf8")
  4374. .HasCollation("utf8_general_ci");
  4375. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4376. entity.Property(e => e.CreateMan)
  4377. .HasColumnType("varchar(50)")
  4378. .HasCharSet("utf8")
  4379. .HasCollation("utf8_general_ci");
  4380. entity.Property(e => e.ErpCode)
  4381. .HasColumnType("varchar(50)")
  4382. .HasCharSet("utf8")
  4383. .HasCollation("utf8_general_ci");
  4384. entity.Property(e => e.ErpCompany).HasColumnType("int(11)");
  4385. entity.Property(e => e.GoodStatus).HasColumnType("int(11)");
  4386. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4387. entity.Property(e => e.Mobile)
  4388. .HasColumnType("varchar(11)")
  4389. .HasCharSet("utf8")
  4390. .HasCollation("utf8_general_ci");
  4391. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  4392. entity.Property(e => e.Photos)
  4393. .HasColumnType("varchar(500)")
  4394. .HasCharSet("utf8")
  4395. .HasCollation("utf8_general_ci");
  4396. entity.Property(e => e.ProductId)
  4397. .HasColumnType("varchar(50)")
  4398. .HasCharSet("utf8")
  4399. .HasCollation("utf8_general_ci");
  4400. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4401. entity.Property(e => e.Reason).HasColumnType("int(11)");
  4402. entity.Property(e => e.SeoDescription)
  4403. .HasColumnType("varchar(500)")
  4404. .HasCharSet("utf8")
  4405. .HasCollation("utf8_general_ci");
  4406. entity.Property(e => e.SeoKeyword)
  4407. .HasColumnType("varchar(200)")
  4408. .HasCharSet("utf8")
  4409. .HasCollation("utf8_general_ci");
  4410. entity.Property(e => e.SeoTitle)
  4411. .HasColumnType("varchar(100)")
  4412. .HasCharSet("utf8")
  4413. .HasCollation("utf8_general_ci");
  4414. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4415. entity.Property(e => e.Status).HasColumnType("int(11)");
  4416. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4417. entity.Property(e => e.UpdateMan)
  4418. .HasColumnType("varchar(50)")
  4419. .HasCharSet("utf8")
  4420. .HasCollation("utf8_general_ci");
  4421. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4422. entity.Property(e => e.Version).HasColumnType("int(11)");
  4423. });
  4424. modelBuilder.Entity<OrderRefundReason>(entity =>
  4425. {
  4426. entity.Property(e => e.Id).HasColumnType("int(11)");
  4427. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4428. entity.Property(e => e.CreateMan)
  4429. .HasColumnType("varchar(50)")
  4430. .HasCharSet("utf8")
  4431. .HasCollation("utf8_general_ci");
  4432. entity.Property(e => e.Name)
  4433. .HasColumnType("varchar(50)")
  4434. .HasCharSet("utf8")
  4435. .HasCollation("utf8_general_ci");
  4436. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4437. entity.Property(e => e.SeoDescription)
  4438. .HasColumnType("varchar(500)")
  4439. .HasCharSet("utf8")
  4440. .HasCollation("utf8_general_ci");
  4441. entity.Property(e => e.SeoKeyword)
  4442. .HasColumnType("varchar(200)")
  4443. .HasCharSet("utf8")
  4444. .HasCollation("utf8_general_ci");
  4445. entity.Property(e => e.SeoTitle)
  4446. .HasColumnType("varchar(100)")
  4447. .HasCharSet("utf8")
  4448. .HasCollation("utf8_general_ci");
  4449. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4450. entity.Property(e => e.Status).HasColumnType("int(11)");
  4451. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4452. entity.Property(e => e.UpdateMan)
  4453. .HasColumnType("varchar(50)")
  4454. .HasCharSet("utf8")
  4455. .HasCollation("utf8_general_ci");
  4456. entity.Property(e => e.Version).HasColumnType("int(11)");
  4457. });
  4458. modelBuilder.Entity<Orders>(entity =>
  4459. {
  4460. entity.Property(e => e.Id).HasColumnType("int(11)");
  4461. entity.Property(e => e.ActualPay).HasColumnType("decimal(18,2)");
  4462. entity.Property(e => e.Address)
  4463. .HasColumnType("varchar(50)")
  4464. .HasCharSet("utf8")
  4465. .HasCollation("utf8_general_ci");
  4466. entity.Property(e => e.Areas)
  4467. .HasColumnType("varchar(30)")
  4468. .HasCharSet("utf8")
  4469. .HasCollation("utf8_general_ci");
  4470. entity.Property(e => e.AutoConfirmDate).HasColumnType("datetime");
  4471. entity.Property(e => e.BuyCount).HasColumnType("int(11)");
  4472. entity.Property(e => e.ChannelAmount).HasColumnType("decimal(18,2)");
  4473. entity.Property(e => e.ConfirmDate).HasColumnType("datetime");
  4474. entity.Property(e => e.CouponId).HasColumnType("int(11)");
  4475. entity.Property(e => e.CouponMoney).HasColumnType("decimal(18,2)");
  4476. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4477. entity.Property(e => e.CreateMan)
  4478. .HasColumnType("varchar(50)")
  4479. .HasCharSet("utf8")
  4480. .HasCollation("utf8_general_ci");
  4481. entity.Property(e => e.DeliveryType).HasColumnType("int(11)");
  4482. entity.Property(e => e.ErpCode)
  4483. .HasColumnType("varchar(50)")
  4484. .HasCharSet("utf8")
  4485. .HasCollation("utf8_general_ci");
  4486. entity.Property(e => e.ErpMode).HasColumnType("int(11)");
  4487. entity.Property(e => e.ErpName)
  4488. .HasColumnType("varchar(50)")
  4489. .HasCharSet("utf8")
  4490. .HasCollation("utf8_general_ci");
  4491. entity.Property(e => e.ErpPrice).HasColumnType("decimal(18,2)");
  4492. entity.Property(e => e.Integral).HasColumnType("decimal(18,2)");
  4493. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4494. entity.Property(e => e.Mobile)
  4495. .HasColumnType("varchar(11)")
  4496. .HasCharSet("utf8")
  4497. .HasCollation("utf8_general_ci");
  4498. entity.Property(e => e.OrderNo)
  4499. .HasColumnType("varchar(30)")
  4500. .HasCharSet("utf8")
  4501. .HasCollation("utf8_general_ci");
  4502. entity.Property(e => e.ParentOrderId).HasColumnType("int(11)");
  4503. entity.Property(e => e.PayDate).HasColumnType("datetime");
  4504. entity.Property(e => e.PayMode).HasColumnType("int(11)");
  4505. entity.Property(e => e.PayStatus).HasColumnType("int(11)");
  4506. entity.Property(e => e.PostalCode)
  4507. .HasColumnType("varchar(6)")
  4508. .HasCharSet("utf8")
  4509. .HasCollation("utf8_general_ci");
  4510. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  4511. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4512. entity.Property(e => e.RealName)
  4513. .HasColumnType("varchar(10)")
  4514. .HasCharSet("utf8")
  4515. .HasCollation("utf8_general_ci");
  4516. entity.Property(e => e.RefundActAmount).HasColumnType("decimal(18,2)");
  4517. entity.Property(e => e.RefundFeeAmount).HasColumnType("decimal(18,2)");
  4518. entity.Property(e => e.RefundReason)
  4519. .HasColumnType("varchar(64)")
  4520. .HasCharSet("utf8")
  4521. .HasCollation("utf8_general_ci");
  4522. entity.Property(e => e.RefundStatus).HasColumnType("int(11)");
  4523. entity.Property(e => e.Remark)
  4524. .HasColumnType("varchar(64)")
  4525. .HasCharSet("utf8")
  4526. .HasCollation("utf8_general_ci");
  4527. entity.Property(e => e.ReqData)
  4528. .HasColumnType("varchar(2048)")
  4529. .HasCharSet("utf8")
  4530. .HasCollation("utf8_general_ci");
  4531. entity.Property(e => e.ResData)
  4532. .HasColumnType("varchar(2048)")
  4533. .HasCharSet("utf8")
  4534. .HasCollation("utf8_general_ci");
  4535. entity.Property(e => e.ReturnCode)
  4536. .HasColumnType("varchar(32)")
  4537. .HasCharSet("utf8")
  4538. .HasCollation("utf8_general_ci");
  4539. entity.Property(e => e.ReturnMsg)
  4540. .HasColumnType("varchar(128)")
  4541. .HasCharSet("utf8")
  4542. .HasCollation("utf8_general_ci");
  4543. entity.Property(e => e.SendDate).HasColumnType("datetime");
  4544. entity.Property(e => e.SendStatus).HasColumnType("int(11)");
  4545. entity.Property(e => e.SeoDescription)
  4546. .HasColumnType("varchar(500)")
  4547. .HasCharSet("utf8")
  4548. .HasCollation("utf8_general_ci");
  4549. entity.Property(e => e.SeoKeyword)
  4550. .HasColumnType("varchar(200)")
  4551. .HasCharSet("utf8")
  4552. .HasCollation("utf8_general_ci");
  4553. entity.Property(e => e.SeoTitle)
  4554. .HasColumnType("varchar(100)")
  4555. .HasCharSet("utf8")
  4556. .HasCollation("utf8_general_ci");
  4557. entity.Property(e => e.SnNos)
  4558. .HasColumnType("mediumtext")
  4559. .HasCharSet("utf8")
  4560. .HasCollation("utf8_general_ci");
  4561. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4562. entity.Property(e => e.Status).HasColumnType("int(11)");
  4563. entity.Property(e => e.StoreContact)
  4564. .HasColumnType("varchar(30)")
  4565. .HasCharSet("utf8")
  4566. .HasCollation("utf8_general_ci");
  4567. entity.Property(e => e.StoreContactMobile)
  4568. .HasColumnType("varchar(11)")
  4569. .HasCharSet("utf8")
  4570. .HasCollation("utf8_general_ci");
  4571. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  4572. entity.Property(e => e.StoreType).HasColumnType("int(11)");
  4573. entity.Property(e => e.StoreUserId).HasColumnType("int(11)");
  4574. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  4575. entity.Property(e => e.TotalPrice).HasColumnType("decimal(18,2)");
  4576. entity.Property(e => e.TradeNo)
  4577. .HasColumnType("varchar(50)")
  4578. .HasCharSet("utf8")
  4579. .HasCollation("utf8_general_ci");
  4580. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4581. entity.Property(e => e.UpdateMan)
  4582. .HasColumnType("varchar(50)")
  4583. .HasCharSet("utf8")
  4584. .HasCollation("utf8_general_ci");
  4585. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4586. entity.Property(e => e.UserMessage)
  4587. .HasColumnType("varchar(50)")
  4588. .HasCharSet("utf8")
  4589. .HasCollation("utf8_general_ci");
  4590. entity.Property(e => e.Version).HasColumnType("int(11)");
  4591. });
  4592. modelBuilder.Entity<PageInfo>(entity =>
  4593. {
  4594. entity.Property(e => e.Id).HasColumnType("int(11)");
  4595. entity.Property(e => e.ColId)
  4596. .HasColumnType("varchar(30)")
  4597. .HasCharSet("utf8")
  4598. .HasCollation("utf8_general_ci");
  4599. entity.Property(e => e.Contents)
  4600. .HasColumnType("longtext")
  4601. .HasCharSet("utf8")
  4602. .HasCollation("utf8_general_ci");
  4603. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4604. entity.Property(e => e.CreateMan)
  4605. .HasColumnType("varchar(50)")
  4606. .HasCharSet("utf8")
  4607. .HasCollation("utf8_general_ci");
  4608. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4609. entity.Property(e => e.SeoDescription)
  4610. .HasColumnType("varchar(500)")
  4611. .HasCharSet("utf8")
  4612. .HasCollation("utf8_general_ci");
  4613. entity.Property(e => e.SeoKeyword)
  4614. .HasColumnType("varchar(200)")
  4615. .HasCharSet("utf8")
  4616. .HasCollation("utf8_general_ci");
  4617. entity.Property(e => e.SeoTitle)
  4618. .HasColumnType("varchar(100)")
  4619. .HasCharSet("utf8")
  4620. .HasCollation("utf8_general_ci");
  4621. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4622. entity.Property(e => e.Status).HasColumnType("int(11)");
  4623. entity.Property(e => e.Title)
  4624. .HasColumnType("varchar(200)")
  4625. .HasCharSet("utf8")
  4626. .HasCollation("utf8_general_ci");
  4627. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4628. entity.Property(e => e.UpdateMan)
  4629. .HasColumnType("varchar(50)")
  4630. .HasCharSet("utf8")
  4631. .HasCollation("utf8_general_ci");
  4632. entity.Property(e => e.Version).HasColumnType("int(11)");
  4633. });
  4634. modelBuilder.Entity<PageUpdateInfo>(entity =>
  4635. {
  4636. entity.Property(e => e.Id).HasColumnType("int(11)");
  4637. entity.Property(e => e.BgColor)
  4638. .HasColumnType("varchar(6)")
  4639. .HasCharSet("utf8")
  4640. .HasCollation("utf8_general_ci");
  4641. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4642. entity.Property(e => e.CreateMan)
  4643. .HasColumnType("varchar(50)")
  4644. .HasCharSet("utf8")
  4645. .HasCollation("utf8_general_ci");
  4646. entity.Property(e => e.GotoPages)
  4647. .HasColumnType("varchar(500)")
  4648. .HasCharSet("utf8")
  4649. .HasCollation("utf8_general_ci");
  4650. entity.Property(e => e.IsScrollBar)
  4651. .HasColumnType("bit(1)")
  4652. .HasDefaultValueSql("b'0'");
  4653. entity.Property(e => e.IsSkid)
  4654. .HasColumnType("bit(1)")
  4655. .HasDefaultValueSql("b'0'");
  4656. entity.Property(e => e.LeftAction1)
  4657. .HasColumnType("longtext")
  4658. .HasCharSet("utf8")
  4659. .HasCollation("utf8_general_ci");
  4660. entity.Property(e => e.LeftAction2)
  4661. .HasColumnType("longtext")
  4662. .HasCharSet("utf8")
  4663. .HasCollation("utf8_general_ci");
  4664. entity.Property(e => e.LeftBtn1)
  4665. .HasColumnType("varchar(100)")
  4666. .HasCharSet("utf8")
  4667. .HasCollation("utf8_general_ci");
  4668. entity.Property(e => e.LeftBtn2)
  4669. .HasColumnType("varchar(50)")
  4670. .HasCharSet("utf8")
  4671. .HasCollation("utf8_general_ci");
  4672. entity.Property(e => e.ModulePath)
  4673. .HasColumnType("varchar(200)")
  4674. .HasCharSet("utf8")
  4675. .HasCollation("utf8_general_ci");
  4676. entity.Property(e => e.ModuleVersion).HasColumnType("int(11)");
  4677. entity.Property(e => e.MustUpdate)
  4678. .HasColumnType("bit(1)")
  4679. .HasDefaultValueSql("b'0'");
  4680. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4681. entity.Property(e => e.RightAction1)
  4682. .HasColumnType("longtext")
  4683. .HasCharSet("utf8")
  4684. .HasCollation("utf8_general_ci");
  4685. entity.Property(e => e.RightAction2)
  4686. .HasColumnType("longtext")
  4687. .HasCharSet("utf8")
  4688. .HasCollation("utf8_general_ci");
  4689. entity.Property(e => e.RightBtn1)
  4690. .HasColumnType("varchar(50)")
  4691. .HasCharSet("utf8")
  4692. .HasCollation("utf8_general_ci");
  4693. entity.Property(e => e.RightBtn2)
  4694. .HasColumnType("varchar(50)")
  4695. .HasCharSet("utf8")
  4696. .HasCollation("utf8_general_ci");
  4697. entity.Property(e => e.SeoDescription)
  4698. .HasColumnType("varchar(500)")
  4699. .HasCharSet("utf8")
  4700. .HasCollation("utf8_general_ci");
  4701. entity.Property(e => e.SeoKeyword)
  4702. .HasColumnType("varchar(200)")
  4703. .HasCharSet("utf8")
  4704. .HasCollation("utf8_general_ci");
  4705. entity.Property(e => e.SeoTitle)
  4706. .HasColumnType("varchar(100)")
  4707. .HasCharSet("utf8")
  4708. .HasCollation("utf8_general_ci");
  4709. entity.Property(e => e.ShowTitle)
  4710. .HasColumnType("bit(1)")
  4711. .HasDefaultValueSql("b'0'");
  4712. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4713. entity.Property(e => e.Status).HasColumnType("int(11)");
  4714. entity.Property(e => e.StatusBarStyle)
  4715. .HasColumnType("varchar(10)")
  4716. .HasCharSet("utf8")
  4717. .HasCollation("utf8_general_ci");
  4718. entity.Property(e => e.TextColor)
  4719. .HasColumnType("varchar(6)")
  4720. .HasCharSet("utf8")
  4721. .HasCollation("utf8_general_ci");
  4722. entity.Property(e => e.Title)
  4723. .HasColumnType("varchar(50)")
  4724. .HasCharSet("utf8")
  4725. .HasCollation("utf8_general_ci");
  4726. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4727. entity.Property(e => e.UpdateMan)
  4728. .HasColumnType("varchar(50)")
  4729. .HasCharSet("utf8")
  4730. .HasCollation("utf8_general_ci");
  4731. entity.Property(e => e.Version).HasColumnType("int(11)");
  4732. });
  4733. modelBuilder.Entity<PosCouponForUser>(entity =>
  4734. {
  4735. entity.Property(e => e.Id).HasColumnType("int(11)");
  4736. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4737. entity.Property(e => e.OutNum).HasColumnType("int(11)");
  4738. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4739. entity.Property(e => e.SeoDescription)
  4740. .HasColumnType("varchar(500)")
  4741. .HasCharSet("utf8")
  4742. .HasCollation("utf8_general_ci");
  4743. entity.Property(e => e.SeoKeyword)
  4744. .HasColumnType("varchar(200)")
  4745. .HasCharSet("utf8")
  4746. .HasCollation("utf8_general_ci");
  4747. entity.Property(e => e.SeoTitle)
  4748. .HasColumnType("varchar(100)")
  4749. .HasCharSet("utf8")
  4750. .HasCollation("utf8_general_ci");
  4751. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4752. entity.Property(e => e.Status).HasColumnType("int(11)");
  4753. entity.Property(e => e.StockNum).HasColumnType("int(11)");
  4754. entity.Property(e => e.TotalNum).HasColumnType("int(11)");
  4755. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4756. });
  4757. modelBuilder.Entity<PosCouponOrders>(entity =>
  4758. {
  4759. entity.Property(e => e.Id).HasColumnType("int(11)");
  4760. entity.Property(e => e.AfterOut).HasColumnType("int(11)");
  4761. entity.Property(e => e.AfterStock).HasColumnType("int(11)");
  4762. entity.Property(e => e.AfterTotal).HasColumnType("int(11)");
  4763. entity.Property(e => e.BeforeOut).HasColumnType("int(11)");
  4764. entity.Property(e => e.BeforeStock).HasColumnType("int(11)");
  4765. entity.Property(e => e.BeforeTotal).HasColumnType("int(11)");
  4766. entity.Property(e => e.ChangeCount).HasColumnType("int(11)");
  4767. entity.Property(e => e.ChangeKind).HasColumnType("int(11)");
  4768. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4769. entity.Property(e => e.FromUserId).HasColumnType("int(11)");
  4770. entity.Property(e => e.OrderNo)
  4771. .HasColumnType("varchar(50)")
  4772. .HasCharSet("utf8")
  4773. .HasCollation("utf8_general_ci");
  4774. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4775. entity.Property(e => e.SeoDescription)
  4776. .HasColumnType("varchar(500)")
  4777. .HasCharSet("utf8")
  4778. .HasCollation("utf8_general_ci");
  4779. entity.Property(e => e.SeoKeyword)
  4780. .HasColumnType("varchar(200)")
  4781. .HasCharSet("utf8")
  4782. .HasCollation("utf8_general_ci");
  4783. entity.Property(e => e.SeoTitle)
  4784. .HasColumnType("varchar(100)")
  4785. .HasCharSet("utf8")
  4786. .HasCollation("utf8_general_ci");
  4787. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4788. entity.Property(e => e.Status).HasColumnType("int(11)");
  4789. entity.Property(e => e.ToUserId).HasColumnType("int(11)");
  4790. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4791. });
  4792. modelBuilder.Entity<PosCouponRecord>(entity =>
  4793. {
  4794. entity.Property(e => e.Id).HasColumnType("int(11)");
  4795. entity.Property(e => e.ChangeKind).HasColumnType("int(11)");
  4796. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4797. entity.Property(e => e.FromUserId).HasColumnType("int(11)");
  4798. entity.Property(e => e.OrderNo)
  4799. .HasColumnType("varchar(50)")
  4800. .HasCharSet("utf8")
  4801. .HasCollation("utf8_general_ci");
  4802. entity.Property(e => e.PosCouponId).HasColumnType("int(11)");
  4803. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4804. entity.Property(e => e.SeoDescription)
  4805. .HasColumnType("varchar(500)")
  4806. .HasCharSet("utf8")
  4807. .HasCollation("utf8_general_ci");
  4808. entity.Property(e => e.SeoKeyword)
  4809. .HasColumnType("varchar(200)")
  4810. .HasCharSet("utf8")
  4811. .HasCollation("utf8_general_ci");
  4812. entity.Property(e => e.SeoTitle)
  4813. .HasColumnType("varchar(100)")
  4814. .HasCharSet("utf8")
  4815. .HasCollation("utf8_general_ci");
  4816. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4817. entity.Property(e => e.Status).HasColumnType("int(11)");
  4818. entity.Property(e => e.ToUserId).HasColumnType("int(11)");
  4819. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4820. });
  4821. modelBuilder.Entity<PosCoupons>(entity =>
  4822. {
  4823. entity.Property(e => e.Id).HasColumnType("int(11)");
  4824. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4825. entity.Property(e => e.ExchangeCode)
  4826. .HasColumnType("varchar(10)")
  4827. .HasCharSet("utf8")
  4828. .HasCollation("utf8_general_ci");
  4829. entity.Property(e => e.IsLock)
  4830. .HasColumnType("bit(1)")
  4831. .HasDefaultValueSql("b'0'");
  4832. entity.Property(e => e.IsUse)
  4833. .HasColumnType("bit(1)")
  4834. .HasDefaultValueSql("b'0'");
  4835. entity.Property(e => e.LeaderUserId).HasColumnType("int(11)");
  4836. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4837. entity.Property(e => e.SeoDescription)
  4838. .HasColumnType("varchar(500)")
  4839. .HasCharSet("utf8")
  4840. .HasCollation("utf8_general_ci");
  4841. entity.Property(e => e.SeoKeyword)
  4842. .HasColumnType("varchar(200)")
  4843. .HasCharSet("utf8")
  4844. .HasCollation("utf8_general_ci");
  4845. entity.Property(e => e.SeoTitle)
  4846. .HasColumnType("varchar(100)")
  4847. .HasCharSet("utf8")
  4848. .HasCollation("utf8_general_ci");
  4849. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4850. entity.Property(e => e.Status).HasColumnType("int(11)");
  4851. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4852. entity.Property(e => e.UseDate).HasColumnType("datetime");
  4853. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4854. });
  4855. modelBuilder.Entity<PosMachines>(entity =>
  4856. {
  4857. entity.Property(e => e.Id).HasColumnType("int(11)");
  4858. entity.Property(e => e.ActivationState).HasColumnType("int(11)");
  4859. entity.Property(e => e.ActivationTime).HasColumnType("datetime");
  4860. entity.Property(e => e.ActivityList)
  4861. .HasColumnType("varchar(200)")
  4862. .HasCharSet("utf8")
  4863. .HasCollation("utf8_general_ci");
  4864. entity.Property(e => e.BatchNo)
  4865. .HasColumnType("varchar(32)")
  4866. .HasCharSet("utf8")
  4867. .HasCollation("utf8_general_ci");
  4868. entity.Property(e => e.BindMerchantId).HasColumnType("int(11)");
  4869. entity.Property(e => e.BindingState).HasColumnType("int(11)");
  4870. entity.Property(e => e.BindingTime).HasColumnType("datetime");
  4871. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  4872. entity.Property(e => e.BuyUserId).HasColumnType("int(11)");
  4873. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4874. entity.Property(e => e.CreateMan)
  4875. .HasColumnType("varchar(50)")
  4876. .HasCharSet("utf8")
  4877. .HasCollation("utf8_general_ci");
  4878. entity.Property(e => e.CreditTrade).HasColumnType("decimal(18,2)");
  4879. entity.Property(e => e.DebitCardTrade).HasColumnType("decimal(18,2)");
  4880. entity.Property(e => e.Detail)
  4881. .HasColumnType("longtext")
  4882. .HasCharSet("utf8")
  4883. .HasCollation("utf8_general_ci");
  4884. entity.Property(e => e.DeviceKind)
  4885. .HasColumnType("varchar(32)")
  4886. .HasCharSet("utf8")
  4887. .HasCollation("utf8_general_ci");
  4888. entity.Property(e => e.DeviceName)
  4889. .HasColumnType("varchar(32)")
  4890. .HasCharSet("utf8")
  4891. .HasCollation("utf8_general_ci");
  4892. entity.Property(e => e.DeviceType)
  4893. .HasColumnType("varchar(20)")
  4894. .HasCharSet("utf8")
  4895. .HasCollation("utf8_general_ci");
  4896. entity.Property(e => e.IsPurchase)
  4897. .HasColumnType("bit(1)")
  4898. .HasDefaultValueSql("b'0'");
  4899. entity.Property(e => e.IsVip)
  4900. .HasColumnType("bit(1)")
  4901. .HasDefaultValueSql("b'0'");
  4902. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  4903. entity.Property(e => e.PosSn)
  4904. .HasColumnType("varchar(50)")
  4905. .HasCharSet("utf8")
  4906. .HasCollation("utf8_general_ci");
  4907. entity.Property(e => e.PosSnType).HasColumnType("int(11)");
  4908. entity.Property(e => e.PrizeParams)
  4909. .HasColumnType("varchar(200)")
  4910. .HasCharSet("utf8")
  4911. .HasCollation("utf8_general_ci");
  4912. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4913. entity.Property(e => e.RecycBackCount).HasColumnType("int(11)");
  4914. entity.Property(e => e.RecycEndDate).HasColumnType("datetime");
  4915. entity.Property(e => e.ScanQrTrade).HasColumnType("decimal(18,2)");
  4916. entity.Property(e => e.SeoDescription)
  4917. .HasColumnType("varchar(500)")
  4918. .HasCharSet("utf8")
  4919. .HasCollation("utf8_general_ci");
  4920. entity.Property(e => e.SeoKeyword)
  4921. .HasColumnType("varchar(200)")
  4922. .HasCharSet("utf8")
  4923. .HasCollation("utf8_general_ci");
  4924. entity.Property(e => e.SeoTitle)
  4925. .HasColumnType("varchar(100)")
  4926. .HasCharSet("utf8")
  4927. .HasCollation("utf8_general_ci");
  4928. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4929. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  4930. entity.Property(e => e.Status).HasColumnType("int(11)");
  4931. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  4932. entity.Property(e => e.TransferTime).HasColumnType("datetime");
  4933. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4934. entity.Property(e => e.UpdateMan)
  4935. .HasColumnType("varchar(50)")
  4936. .HasCharSet("utf8")
  4937. .HasCollation("utf8_general_ci");
  4938. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4939. entity.Property(e => e.UserNav)
  4940. .HasColumnType("longtext")
  4941. .HasCharSet("utf8")
  4942. .HasCollation("utf8_general_ci");
  4943. entity.Property(e => e.Version).HasColumnType("int(11)");
  4944. });
  4945. modelBuilder.Entity<PosMachinesTwo>(entity =>
  4946. {
  4947. entity.Property(e => e.Id).HasColumnType("int(11)");
  4948. entity.Property(e => e.ActivationState).HasColumnType("int(11)");
  4949. entity.Property(e => e.ActivationTime).HasColumnType("datetime");
  4950. entity.Property(e => e.ActivityList)
  4951. .HasColumnType("varchar(200)")
  4952. .HasCharSet("utf8")
  4953. .HasCollation("utf8_general_ci");
  4954. entity.Property(e => e.BatchNo)
  4955. .HasColumnType("varchar(32)")
  4956. .HasCharSet("utf8")
  4957. .HasCollation("utf8_general_ci");
  4958. entity.Property(e => e.BindMerchantId).HasColumnType("int(11)");
  4959. entity.Property(e => e.BindingState).HasColumnType("int(11)");
  4960. entity.Property(e => e.BindingTime).HasColumnType("datetime");
  4961. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  4962. entity.Property(e => e.BuyUserId).HasColumnType("int(11)");
  4963. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4964. entity.Property(e => e.CreditTrade).HasColumnType("decimal(18,2)");
  4965. entity.Property(e => e.DebitCardTrade).HasColumnType("decimal(18,2)");
  4966. entity.Property(e => e.Detail)
  4967. .HasColumnType("longtext")
  4968. .HasCharSet("utf8")
  4969. .HasCollation("utf8_general_ci");
  4970. entity.Property(e => e.DeviceKind)
  4971. .HasColumnType("varchar(32)")
  4972. .HasCharSet("utf8")
  4973. .HasCollation("utf8_general_ci");
  4974. entity.Property(e => e.DeviceName)
  4975. .HasColumnType("varchar(32)")
  4976. .HasCharSet("utf8")
  4977. .HasCollation("utf8_general_ci");
  4978. entity.Property(e => e.DeviceType)
  4979. .HasColumnType("varchar(20)")
  4980. .HasCharSet("utf8")
  4981. .HasCollation("utf8_general_ci");
  4982. entity.Property(e => e.IsFirst).HasColumnType("int(11)");
  4983. entity.Property(e => e.IsPurchase).HasColumnType("int(11)");
  4984. entity.Property(e => e.IsVip)
  4985. .HasColumnType("bit(1)")
  4986. .HasDefaultValueSql("b'0'");
  4987. entity.Property(e => e.LeaderUserId).HasColumnType("int(11)");
  4988. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  4989. entity.Property(e => e.PosSn)
  4990. .HasColumnType("varchar(50)")
  4991. .HasCharSet("utf8")
  4992. .HasCollation("utf8_general_ci");
  4993. entity.Property(e => e.PosSnType).HasColumnType("int(11)");
  4994. entity.Property(e => e.PreUserId).HasColumnType("int(11)");
  4995. entity.Property(e => e.PrizeParams)
  4996. .HasColumnType("varchar(200)")
  4997. .HasCharSet("utf8")
  4998. .HasCollation("utf8_general_ci");
  4999. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5000. entity.Property(e => e.RecycBackCount).HasColumnType("int(11)");
  5001. entity.Property(e => e.RecycEndDate).HasColumnType("datetime");
  5002. entity.Property(e => e.ScanQrTrade).HasColumnType("decimal(18,2)");
  5003. entity.Property(e => e.SeoDescription)
  5004. .HasColumnType("varchar(500)")
  5005. .HasCharSet("utf8")
  5006. .HasCollation("utf8_general_ci");
  5007. entity.Property(e => e.SeoKeyword)
  5008. .HasColumnType("varchar(200)")
  5009. .HasCharSet("utf8")
  5010. .HasCollation("utf8_general_ci");
  5011. entity.Property(e => e.SeoTitle)
  5012. .HasColumnType("varchar(100)")
  5013. .HasCharSet("utf8")
  5014. .HasCollation("utf8_general_ci");
  5015. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5016. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  5017. entity.Property(e => e.Status).HasColumnType("int(11)");
  5018. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  5019. entity.Property(e => e.TransferTime).HasColumnType("datetime");
  5020. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5021. entity.Property(e => e.UserId).HasColumnType("int(11)");
  5022. entity.Property(e => e.UserNav)
  5023. .HasColumnType("longtext")
  5024. .HasCharSet("utf8")
  5025. .HasCollation("utf8_general_ci");
  5026. });
  5027. modelBuilder.Entity<PosMerchantInfo>(entity =>
  5028. {
  5029. entity.Property(e => e.Id).HasColumnType("int(11)");
  5030. entity.Property(e => e.ActType).HasColumnType("int(11)");
  5031. entity.Property(e => e.ActTypeDesc)
  5032. .HasColumnType("varchar(64)")
  5033. .HasCharSet("utf8")
  5034. .HasCollation("utf8_general_ci");
  5035. entity.Property(e => e.ActiveStatus).HasColumnType("int(11)");
  5036. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  5037. entity.Property(e => e.City)
  5038. .HasColumnType("varchar(32)")
  5039. .HasCharSet("utf8")
  5040. .HasCollation("utf8_general_ci");
  5041. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5042. entity.Property(e => e.DirectUserId).HasColumnType("int(11)");
  5043. entity.Property(e => e.KqMerNo)
  5044. .HasColumnType("varchar(32)")
  5045. .HasCharSet("utf8")
  5046. .HasCollation("utf8_general_ci");
  5047. entity.Property(e => e.KqRegTime).HasColumnType("datetime");
  5048. entity.Property(e => e.KqSnNo)
  5049. .HasColumnType("varchar(32)")
  5050. .HasCharSet("utf8")
  5051. .HasCollation("utf8_general_ci");
  5052. entity.Property(e => e.MatchTime).HasColumnType("datetime");
  5053. entity.Property(e => e.MerIdcardNo)
  5054. .HasColumnType("varchar(18)")
  5055. .HasCharSet("utf8")
  5056. .HasCollation("utf8_general_ci");
  5057. entity.Property(e => e.MerRealName)
  5058. .HasColumnType("varchar(16)")
  5059. .HasCharSet("utf8")
  5060. .HasCollation("utf8_general_ci");
  5061. entity.Property(e => e.MerStandardDate).HasColumnType("datetime");
  5062. entity.Property(e => e.MerStatus).HasColumnType("int(11)");
  5063. entity.Property(e => e.MerUserId).HasColumnType("int(11)");
  5064. entity.Property(e => e.MerUserType).HasColumnType("int(11)");
  5065. entity.Property(e => e.MerchantMobile)
  5066. .HasColumnType("varchar(11)")
  5067. .HasCharSet("utf8")
  5068. .HasCollation("utf8_general_ci");
  5069. entity.Property(e => e.MerchantName)
  5070. .HasColumnType("varchar(32)")
  5071. .HasCharSet("utf8")
  5072. .HasCollation("utf8_general_ci");
  5073. entity.Property(e => e.MerchantNo)
  5074. .HasColumnType("varchar(16)")
  5075. .HasCharSet("utf8")
  5076. .HasCollation("utf8_general_ci");
  5077. entity.Property(e => e.MgrName)
  5078. .HasColumnType("varchar(32)")
  5079. .HasCharSet("utf8")
  5080. .HasCollation("utf8_general_ci");
  5081. entity.Property(e => e.MgrNo)
  5082. .HasColumnType("varchar(16)")
  5083. .HasCharSet("utf8")
  5084. .HasCollation("utf8_general_ci");
  5085. entity.Property(e => e.Province)
  5086. .HasColumnType("varchar(32)")
  5087. .HasCharSet("utf8")
  5088. .HasCollation("utf8_general_ci");
  5089. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5090. entity.Property(e => e.RebateQual).HasColumnType("int(11)");
  5091. entity.Property(e => e.Remark)
  5092. .HasColumnType("varchar(64)")
  5093. .HasCharSet("utf8")
  5094. .HasCollation("utf8_general_ci");
  5095. entity.Property(e => e.SeoDescription)
  5096. .HasColumnType("varchar(500)")
  5097. .HasCharSet("utf8")
  5098. .HasCollation("utf8_general_ci");
  5099. entity.Property(e => e.SeoKeyword)
  5100. .HasColumnType("varchar(200)")
  5101. .HasCharSet("utf8")
  5102. .HasCollation("utf8_general_ci");
  5103. entity.Property(e => e.SeoTitle)
  5104. .HasColumnType("varchar(100)")
  5105. .HasCharSet("utf8")
  5106. .HasCollation("utf8_general_ci");
  5107. entity.Property(e => e.SnApplyUserId).HasColumnType("int(11)");
  5108. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  5109. entity.Property(e => e.SnType).HasColumnType("int(11)");
  5110. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5111. entity.Property(e => e.Status).HasColumnType("int(11)");
  5112. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  5113. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5114. entity.Property(e => e.UserId).HasColumnType("int(11)");
  5115. });
  5116. modelBuilder.Entity<PosMerchantOtherInfo>(entity =>
  5117. {
  5118. entity.HasKey(e => e.CertId)
  5119. .HasName("PRIMARY");
  5120. entity.Property(e => e.CertId)
  5121. .HasColumnType("varchar(18)")
  5122. .HasCharSet("utf8")
  5123. .HasCollation("utf8_general_ci");
  5124. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  5125. entity.Property(e => e.MerNo)
  5126. .HasColumnType("varchar(50)")
  5127. .HasCharSet("utf8")
  5128. .HasCollation("utf8_general_ci");
  5129. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5130. entity.Property(e => e.PrizeFlag1).HasColumnType("int(11)");
  5131. entity.Property(e => e.PrizeFlag2).HasColumnType("int(11)");
  5132. entity.Property(e => e.PrizeFlag3).HasColumnType("int(11)");
  5133. entity.Property(e => e.PrizeFlag4).HasColumnType("int(11)");
  5134. entity.Property(e => e.RealName)
  5135. .HasColumnType("varchar(30)")
  5136. .HasCharSet("utf8")
  5137. .HasCollation("utf8_general_ci");
  5138. });
  5139. modelBuilder.Entity<PosMerchantTradeSummay>(entity =>
  5140. {
  5141. entity.Property(e => e.Id).HasColumnType("int(11)");
  5142. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  5143. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5144. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5145. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5146. entity.Property(e => e.SeoDescription)
  5147. .HasColumnType("varchar(500)")
  5148. .HasCharSet("utf8")
  5149. .HasCollation("utf8_general_ci");
  5150. entity.Property(e => e.SeoKeyword)
  5151. .HasColumnType("varchar(200)")
  5152. .HasCharSet("utf8")
  5153. .HasCollation("utf8_general_ci");
  5154. entity.Property(e => e.SeoTitle)
  5155. .HasColumnType("varchar(100)")
  5156. .HasCharSet("utf8")
  5157. .HasCollation("utf8_general_ci");
  5158. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5159. entity.Property(e => e.Status).HasColumnType("int(11)");
  5160. entity.Property(e => e.TradeAmount).HasColumnType("decimal(18,2)");
  5161. entity.Property(e => e.TradeDate)
  5162. .HasColumnType("varchar(8)")
  5163. .HasCharSet("utf8")
  5164. .HasCollation("utf8_general_ci");
  5165. entity.Property(e => e.TradeMonth)
  5166. .HasColumnType("varchar(6)")
  5167. .HasCharSet("utf8")
  5168. .HasCollation("utf8_general_ci");
  5169. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5170. });
  5171. modelBuilder.Entity<PreSendStockDetail>(entity =>
  5172. {
  5173. entity.Property(e => e.Id).HasColumnType("int(11)");
  5174. entity.Property(e => e.ApplyDate).HasColumnType("datetime");
  5175. entity.Property(e => e.ApplyFlag)
  5176. .HasColumnType("bit(1)")
  5177. .HasDefaultValueSql("b'0'");
  5178. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  5179. entity.Property(e => e.CancelDate).HasColumnType("datetime");
  5180. entity.Property(e => e.CancelFlag)
  5181. .HasColumnType("bit(1)")
  5182. .HasDefaultValueSql("b'0'");
  5183. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5184. entity.Property(e => e.FromStoreId).HasColumnType("int(11)");
  5185. entity.Property(e => e.FromUserId).HasColumnType("int(11)");
  5186. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5187. entity.Property(e => e.SeoDescription)
  5188. .HasColumnType("varchar(500)")
  5189. .HasCharSet("utf8")
  5190. .HasCollation("utf8_general_ci");
  5191. entity.Property(e => e.SeoKeyword)
  5192. .HasColumnType("varchar(200)")
  5193. .HasCharSet("utf8")
  5194. .HasCollation("utf8_general_ci");
  5195. entity.Property(e => e.SeoTitle)
  5196. .HasColumnType("varchar(100)")
  5197. .HasCharSet("utf8")
  5198. .HasCollation("utf8_general_ci");
  5199. entity.Property(e => e.SnId).HasColumnType("int(11)");
  5200. entity.Property(e => e.SnNo)
  5201. .HasColumnType("varchar(32)")
  5202. .HasCharSet("utf8")
  5203. .HasCollation("utf8_general_ci");
  5204. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5205. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  5206. entity.Property(e => e.Status).HasColumnType("int(11)");
  5207. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  5208. entity.Property(e => e.ToRemark)
  5209. .HasColumnType("varchar(64)")
  5210. .HasCharSet("utf8")
  5211. .HasCollation("utf8_general_ci");
  5212. entity.Property(e => e.ToStoreId).HasColumnType("int(11)");
  5213. entity.Property(e => e.ToUserId).HasColumnType("int(11)");
  5214. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5215. });
  5216. modelBuilder.Entity<ProductComment>(entity =>
  5217. {
  5218. entity.Property(e => e.Id).HasColumnType("int(11)");
  5219. entity.Property(e => e.AgreeCount).HasColumnType("int(11)");
  5220. entity.Property(e => e.BackCount).HasColumnType("int(11)");
  5221. entity.Property(e => e.Contents)
  5222. .HasColumnType("varchar(200)")
  5223. .HasCharSet("utf8")
  5224. .HasCollation("utf8_general_ci");
  5225. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5226. entity.Property(e => e.CreateMan)
  5227. .HasColumnType("varchar(50)")
  5228. .HasCharSet("utf8")
  5229. .HasCollation("utf8_general_ci");
  5230. entity.Property(e => e.HasPhoto)
  5231. .HasColumnType("bit(1)")
  5232. .HasDefaultValueSql("b'0'");
  5233. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5234. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  5235. entity.Property(e => e.PhotoList)
  5236. .HasColumnType("mediumtext")
  5237. .HasCharSet("utf8")
  5238. .HasCollation("utf8_general_ci");
  5239. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  5240. entity.Property(e => e.ProductNormId).HasColumnType("int(11)");
  5241. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5242. entity.Property(e => e.SeoDescription)
  5243. .HasColumnType("varchar(500)")
  5244. .HasCharSet("utf8")
  5245. .HasCollation("utf8_general_ci");
  5246. entity.Property(e => e.SeoKeyword)
  5247. .HasColumnType("varchar(200)")
  5248. .HasCharSet("utf8")
  5249. .HasCollation("utf8_general_ci");
  5250. entity.Property(e => e.SeoTitle)
  5251. .HasColumnType("varchar(100)")
  5252. .HasCharSet("utf8")
  5253. .HasCollation("utf8_general_ci");
  5254. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5255. entity.Property(e => e.StarNum).HasColumnType("int(11)");
  5256. entity.Property(e => e.Status).HasColumnType("int(11)");
  5257. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5258. entity.Property(e => e.UpdateMan)
  5259. .HasColumnType("varchar(50)")
  5260. .HasCharSet("utf8")
  5261. .HasCollation("utf8_general_ci");
  5262. entity.Property(e => e.UserId).HasColumnType("int(11)");
  5263. entity.Property(e => e.Version).HasColumnType("int(11)");
  5264. });
  5265. modelBuilder.Entity<ProductCommentAgree>(entity =>
  5266. {
  5267. entity.Property(e => e.Id).HasColumnType("int(11)");
  5268. entity.Property(e => e.ProductCommentId).HasColumnType("int(11)");
  5269. entity.Property(e => e.UserId).HasColumnType("int(11)");
  5270. });
  5271. modelBuilder.Entity<ProductFareAreas>(entity =>
  5272. {
  5273. entity.Property(e => e.Id).HasColumnType("int(11)");
  5274. entity.Property(e => e.Areas)
  5275. .HasColumnType("longtext")
  5276. .HasCharSet("utf8")
  5277. .HasCollation("utf8_general_ci");
  5278. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5279. entity.Property(e => e.CreateMan)
  5280. .HasColumnType("varchar(50)")
  5281. .HasCharSet("utf8")
  5282. .HasCollation("utf8_general_ci");
  5283. entity.Property(e => e.FirstAmount).HasColumnType("decimal(18,2)");
  5284. entity.Property(e => e.FirstFee).HasColumnType("decimal(18,2)");
  5285. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5286. entity.Property(e => e.MoreAmount).HasColumnType("decimal(18,2)");
  5287. entity.Property(e => e.MoreFee).HasColumnType("decimal(18,2)");
  5288. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5289. entity.Property(e => e.SeoDescription)
  5290. .HasColumnType("varchar(500)")
  5291. .HasCharSet("utf8")
  5292. .HasCollation("utf8_general_ci");
  5293. entity.Property(e => e.SeoKeyword)
  5294. .HasColumnType("varchar(200)")
  5295. .HasCharSet("utf8")
  5296. .HasCollation("utf8_general_ci");
  5297. entity.Property(e => e.SeoTitle)
  5298. .HasColumnType("varchar(100)")
  5299. .HasCharSet("utf8")
  5300. .HasCollation("utf8_general_ci");
  5301. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5302. entity.Property(e => e.Status).HasColumnType("int(11)");
  5303. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  5304. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5305. entity.Property(e => e.UpdateMan)
  5306. .HasColumnType("varchar(50)")
  5307. .HasCharSet("utf8")
  5308. .HasCollation("utf8_general_ci");
  5309. entity.Property(e => e.Version).HasColumnType("int(11)");
  5310. });
  5311. modelBuilder.Entity<ProductFareTemp>(entity =>
  5312. {
  5313. entity.Property(e => e.Id).HasColumnType("int(11)");
  5314. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5315. entity.Property(e => e.CreateMan)
  5316. .HasColumnType("varchar(50)")
  5317. .HasCharSet("utf8")
  5318. .HasCollation("utf8_general_ci");
  5319. entity.Property(e => e.FirstAmount).HasColumnType("decimal(18,2)");
  5320. entity.Property(e => e.FirstFee).HasColumnType("decimal(18,2)");
  5321. entity.Property(e => e.IsFree)
  5322. .HasColumnType("bit(1)")
  5323. .HasDefaultValueSql("b'0'");
  5324. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5325. entity.Property(e => e.MeterMode).HasColumnType("int(11)");
  5326. entity.Property(e => e.MoreAmount).HasColumnType("decimal(18,2)");
  5327. entity.Property(e => e.MoreFee).HasColumnType("decimal(18,2)");
  5328. entity.Property(e => e.Name)
  5329. .HasColumnType("varchar(50)")
  5330. .HasCharSet("utf8")
  5331. .HasCollation("utf8_general_ci");
  5332. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5333. entity.Property(e => e.SendAddress)
  5334. .HasColumnType("varchar(50)")
  5335. .HasCharSet("utf8")
  5336. .HasCollation("utf8_general_ci");
  5337. entity.Property(e => e.SendAreas)
  5338. .HasColumnType("varchar(30)")
  5339. .HasCharSet("utf8")
  5340. .HasCollation("utf8_general_ci");
  5341. entity.Property(e => e.SendDate).HasColumnType("int(11)");
  5342. entity.Property(e => e.SeoDescription)
  5343. .HasColumnType("varchar(500)")
  5344. .HasCharSet("utf8")
  5345. .HasCollation("utf8_general_ci");
  5346. entity.Property(e => e.SeoKeyword)
  5347. .HasColumnType("varchar(200)")
  5348. .HasCharSet("utf8")
  5349. .HasCollation("utf8_general_ci");
  5350. entity.Property(e => e.SeoTitle)
  5351. .HasColumnType("varchar(100)")
  5352. .HasCharSet("utf8")
  5353. .HasCollation("utf8_general_ci");
  5354. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5355. entity.Property(e => e.Status).HasColumnType("int(11)");
  5356. entity.Property(e => e.TransportMode).HasColumnType("int(11)");
  5357. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5358. entity.Property(e => e.UpdateMan)
  5359. .HasColumnType("varchar(50)")
  5360. .HasCharSet("utf8")
  5361. .HasCollation("utf8_general_ci");
  5362. entity.Property(e => e.Version).HasColumnType("int(11)");
  5363. });
  5364. modelBuilder.Entity<ProductKeys>(entity =>
  5365. {
  5366. entity.HasKey(e => e.Name)
  5367. .HasName("PRIMARY");
  5368. entity.Property(e => e.Name)
  5369. .HasColumnType("varchar(10)")
  5370. .HasCharSet("utf8")
  5371. .HasCollation("utf8_general_ci");
  5372. entity.Property(e => e.ColIds)
  5373. .HasColumnType("longtext")
  5374. .HasCharSet("utf8")
  5375. .HasCollation("utf8_general_ci");
  5376. entity.Property(e => e.ProductIds)
  5377. .HasColumnType("longtext")
  5378. .HasCharSet("utf8")
  5379. .HasCollation("utf8_general_ci");
  5380. });
  5381. modelBuilder.Entity<ProductNorm>(entity =>
  5382. {
  5383. entity.Property(e => e.Id).HasColumnType("int(11)");
  5384. entity.Property(e => e.BuyCount).HasColumnType("int(11)");
  5385. entity.Property(e => e.Code)
  5386. .HasColumnType("varchar(50)")
  5387. .HasCharSet("utf8")
  5388. .HasCollation("utf8_general_ci");
  5389. entity.Property(e => e.ColName)
  5390. .HasColumnType("varchar(50)")
  5391. .HasCharSet("utf8")
  5392. .HasCollation("utf8_general_ci");
  5393. entity.Property(e => e.CostPrice).HasColumnType("decimal(18,2)");
  5394. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5395. entity.Property(e => e.CreateMan)
  5396. .HasColumnType("varchar(50)")
  5397. .HasCharSet("utf8")
  5398. .HasCollation("utf8_general_ci");
  5399. entity.Property(e => e.IdList)
  5400. .HasColumnType("varchar(50)")
  5401. .HasCharSet("utf8")
  5402. .HasCollation("utf8_general_ci");
  5403. entity.Property(e => e.Integral).HasColumnType("decimal(18,2)");
  5404. entity.Property(e => e.LimitCount).HasColumnType("int(11)");
  5405. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5406. entity.Property(e => e.Price).HasColumnType("decimal(18,2)");
  5407. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  5408. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5409. entity.Property(e => e.SeoDescription)
  5410. .HasColumnType("varchar(500)")
  5411. .HasCharSet("utf8")
  5412. .HasCollation("utf8_general_ci");
  5413. entity.Property(e => e.SeoKeyword)
  5414. .HasColumnType("varchar(200)")
  5415. .HasCharSet("utf8")
  5416. .HasCollation("utf8_general_ci");
  5417. entity.Property(e => e.SeoTitle)
  5418. .HasColumnType("varchar(100)")
  5419. .HasCharSet("utf8")
  5420. .HasCollation("utf8_general_ci");
  5421. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5422. entity.Property(e => e.Status).HasColumnType("int(11)");
  5423. entity.Property(e => e.Stock).HasColumnType("int(11)");
  5424. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5425. entity.Property(e => e.UpdateMan)
  5426. .HasColumnType("varchar(50)")
  5427. .HasCharSet("utf8")
  5428. .HasCollation("utf8_general_ci");
  5429. entity.Property(e => e.UserIntegral).HasColumnType("decimal(18,2)");
  5430. entity.Property(e => e.UserPrice).HasColumnType("decimal(18,2)");
  5431. entity.Property(e => e.Version).HasColumnType("int(11)");
  5432. });
  5433. modelBuilder.Entity<ProductNormItem>(entity =>
  5434. {
  5435. entity.Property(e => e.Id).HasColumnType("int(11)");
  5436. entity.Property(e => e.ColName)
  5437. .HasColumnType("varchar(50)")
  5438. .HasCharSet("utf8")
  5439. .HasCollation("utf8_general_ci");
  5440. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5441. entity.Property(e => e.CreateMan)
  5442. .HasColumnType("varchar(50)")
  5443. .HasCharSet("utf8")
  5444. .HasCollation("utf8_general_ci");
  5445. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5446. entity.Property(e => e.ParentId).HasColumnType("int(11)");
  5447. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  5448. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5449. entity.Property(e => e.SeoDescription)
  5450. .HasColumnType("varchar(500)")
  5451. .HasCharSet("utf8")
  5452. .HasCollation("utf8_general_ci");
  5453. entity.Property(e => e.SeoKeyword)
  5454. .HasColumnType("varchar(200)")
  5455. .HasCharSet("utf8")
  5456. .HasCollation("utf8_general_ci");
  5457. entity.Property(e => e.SeoTitle)
  5458. .HasColumnType("varchar(100)")
  5459. .HasCharSet("utf8")
  5460. .HasCollation("utf8_general_ci");
  5461. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5462. entity.Property(e => e.Status).HasColumnType("int(11)");
  5463. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5464. entity.Property(e => e.UpdateMan)
  5465. .HasColumnType("varchar(50)")
  5466. .HasCharSet("utf8")
  5467. .HasCollation("utf8_general_ci");
  5468. entity.Property(e => e.Version).HasColumnType("int(11)");
  5469. });
  5470. modelBuilder.Entity<ProductNormTemp>(entity =>
  5471. {
  5472. entity.Property(e => e.Id).HasColumnType("int(11)");
  5473. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5474. entity.Property(e => e.CreateMan)
  5475. .HasColumnType("varchar(50)")
  5476. .HasCharSet("utf8")
  5477. .HasCollation("utf8_general_ci");
  5478. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5479. entity.Property(e => e.Name)
  5480. .HasColumnType("varchar(50)")
  5481. .HasCharSet("utf8")
  5482. .HasCollation("utf8_general_ci");
  5483. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5484. entity.Property(e => e.SeoDescription)
  5485. .HasColumnType("varchar(500)")
  5486. .HasCharSet("utf8")
  5487. .HasCollation("utf8_general_ci");
  5488. entity.Property(e => e.SeoKeyword)
  5489. .HasColumnType("varchar(200)")
  5490. .HasCharSet("utf8")
  5491. .HasCollation("utf8_general_ci");
  5492. entity.Property(e => e.SeoTitle)
  5493. .HasColumnType("varchar(100)")
  5494. .HasCharSet("utf8")
  5495. .HasCollation("utf8_general_ci");
  5496. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5497. entity.Property(e => e.Status).HasColumnType("int(11)");
  5498. entity.Property(e => e.TempJsonData)
  5499. .HasColumnType("longtext")
  5500. .HasCharSet("utf8")
  5501. .HasCollation("utf8_general_ci");
  5502. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5503. entity.Property(e => e.UpdateMan)
  5504. .HasColumnType("varchar(50)")
  5505. .HasCharSet("utf8")
  5506. .HasCollation("utf8_general_ci");
  5507. entity.Property(e => e.Version).HasColumnType("int(11)");
  5508. });
  5509. modelBuilder.Entity<Products>(entity =>
  5510. {
  5511. entity.Property(e => e.Id).HasColumnType("int(11)");
  5512. entity.Property(e => e.BuyCount).HasColumnType("int(11)");
  5513. entity.Property(e => e.ColId)
  5514. .HasColumnType("varchar(30)")
  5515. .HasCharSet("utf8")
  5516. .HasCollation("utf8_general_ci");
  5517. entity.Property(e => e.CommentCount).HasColumnType("int(11)");
  5518. entity.Property(e => e.Contents)
  5519. .HasColumnType("longtext")
  5520. .HasCharSet("utf8")
  5521. .HasCollation("utf8_general_ci");
  5522. entity.Property(e => e.CostPrice).HasColumnType("decimal(18,2)");
  5523. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5524. entity.Property(e => e.CreateMan)
  5525. .HasColumnType("varchar(50)")
  5526. .HasCharSet("utf8")
  5527. .HasCollation("utf8_general_ci");
  5528. entity.Property(e => e.DetailPicPath)
  5529. .HasColumnType("varchar(500)")
  5530. .HasCharSet("utf8")
  5531. .HasCollation("utf8_general_ci");
  5532. entity.Property(e => e.Details)
  5533. .HasColumnType("longtext")
  5534. .HasCharSet("utf8")
  5535. .HasCollation("utf8_general_ci");
  5536. entity.Property(e => e.EndDate).HasColumnType("datetime");
  5537. entity.Property(e => e.FareTemplateId).HasColumnType("int(11)");
  5538. entity.Property(e => e.GoodPercent).HasColumnType("decimal(18,2)");
  5539. entity.Property(e => e.Integral).HasColumnType("decimal(18,2)");
  5540. entity.Property(e => e.IsLimit)
  5541. .HasColumnType("bit(1)")
  5542. .HasDefaultValueSql("b'0'");
  5543. entity.Property(e => e.IsRecommend)
  5544. .HasColumnType("bit(1)")
  5545. .HasDefaultValueSql("b'0'");
  5546. entity.Property(e => e.IsRecommend2)
  5547. .HasColumnType("bit(1)")
  5548. .HasDefaultValueSql("b'0'");
  5549. entity.Property(e => e.IsRecommend3)
  5550. .HasColumnType("bit(1)")
  5551. .HasDefaultValueSql("b'0'");
  5552. entity.Property(e => e.KeyWord)
  5553. .HasColumnType("varchar(500)")
  5554. .HasCharSet("utf8")
  5555. .HasCollation("utf8_general_ci");
  5556. entity.Property(e => e.LimitCount).HasColumnType("int(11)");
  5557. entity.Property(e => e.LinkUrl)
  5558. .HasColumnType("varchar(500)")
  5559. .HasCharSet("utf8")
  5560. .HasCollation("utf8_general_ci");
  5561. entity.Property(e => e.ListPicPath)
  5562. .HasColumnType("varchar(200)")
  5563. .HasCharSet("utf8")
  5564. .HasCollation("utf8_general_ci");
  5565. entity.Property(e => e.MemberPrice).HasColumnType("decimal(18,2)");
  5566. entity.Property(e => e.MerchantClassId).HasColumnType("int(11)");
  5567. entity.Property(e => e.MerchantColId)
  5568. .HasColumnType("varchar(30)")
  5569. .HasCharSet("utf8")
  5570. .HasCollation("utf8_general_ci");
  5571. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5572. entity.Property(e => e.MonthSale).HasColumnType("int(11)");
  5573. entity.Property(e => e.NormIds)
  5574. .HasColumnType("varchar(100)")
  5575. .HasCharSet("utf8")
  5576. .HasCollation("utf8_general_ci");
  5577. entity.Property(e => e.NormJson)
  5578. .HasColumnType("longtext")
  5579. .HasCharSet("utf8")
  5580. .HasCollation("utf8_general_ci");
  5581. entity.Property(e => e.Price).HasColumnType("decimal(18,2)");
  5582. entity.Property(e => e.ProductCode)
  5583. .HasColumnType("varchar(30)")
  5584. .HasCharSet("utf8")
  5585. .HasCollation("utf8_general_ci");
  5586. entity.Property(e => e.ProductName)
  5587. .HasColumnType("varchar(100)")
  5588. .HasCharSet("utf8")
  5589. .HasCollation("utf8_general_ci");
  5590. entity.Property(e => e.PublishDate).HasColumnType("datetime");
  5591. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5592. entity.Property(e => e.SeoDescription)
  5593. .HasColumnType("varchar(500)")
  5594. .HasCharSet("utf8")
  5595. .HasCollation("utf8_general_ci");
  5596. entity.Property(e => e.SeoKeyword)
  5597. .HasColumnType("varchar(200)")
  5598. .HasCharSet("utf8")
  5599. .HasCollation("utf8_general_ci");
  5600. entity.Property(e => e.SeoTitle)
  5601. .HasColumnType("varchar(100)")
  5602. .HasCharSet("utf8")
  5603. .HasCollation("utf8_general_ci");
  5604. entity.Property(e => e.ShareDetail)
  5605. .HasColumnType("varchar(200)")
  5606. .HasCharSet("utf8")
  5607. .HasCollation("utf8_general_ci");
  5608. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5609. entity.Property(e => e.SourcePrice).HasColumnType("decimal(18,2)");
  5610. entity.Property(e => e.StartDate).HasColumnType("datetime");
  5611. entity.Property(e => e.Status).HasColumnType("int(11)");
  5612. entity.Property(e => e.Stock).HasColumnType("int(11)");
  5613. entity.Property(e => e.Title)
  5614. .HasColumnType("varchar(50)")
  5615. .HasCharSet("utf8")
  5616. .HasCollation("utf8_general_ci");
  5617. entity.Property(e => e.Title2)
  5618. .HasColumnType("varchar(50)")
  5619. .HasCharSet("utf8")
  5620. .HasCollation("utf8_general_ci");
  5621. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5622. entity.Property(e => e.UpdateMan)
  5623. .HasColumnType("varchar(50)")
  5624. .HasCharSet("utf8")
  5625. .HasCollation("utf8_general_ci");
  5626. entity.Property(e => e.UserIntegral).HasColumnType("decimal(18,2)");
  5627. entity.Property(e => e.Version).HasColumnType("int(11)");
  5628. });
  5629. modelBuilder.Entity<ProfitObjectActivations>(entity =>
  5630. {
  5631. entity.Property(e => e.Id).HasColumnType("int(11)");
  5632. entity.Property(e => e.Code)
  5633. .HasColumnType("varchar(32)")
  5634. .HasCharSet("utf8")
  5635. .HasCollation("utf8_general_ci");
  5636. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5637. entity.Property(e => e.CreateMan)
  5638. .HasColumnType("varchar(50)")
  5639. .HasCharSet("utf8")
  5640. .HasCollation("utf8_general_ci");
  5641. entity.Property(e => e.EndDate).HasColumnType("datetime");
  5642. entity.Property(e => e.ExpiredNumber).HasColumnType("decimal(18,6)");
  5643. entity.Property(e => e.LimitCustomerDate).HasColumnType("datetime");
  5644. entity.Property(e => e.LimitDateKind).HasColumnType("int(11)");
  5645. entity.Property(e => e.LimitDateVal).HasColumnType("int(11)");
  5646. entity.Property(e => e.MachineCount).HasColumnType("int(11)");
  5647. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5648. entity.Property(e => e.ProfitNumber).HasColumnType("decimal(18,6)");
  5649. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5650. entity.Property(e => e.SeoDescription)
  5651. .HasColumnType("varchar(500)")
  5652. .HasCharSet("utf8")
  5653. .HasCollation("utf8_general_ci");
  5654. entity.Property(e => e.SeoKeyword)
  5655. .HasColumnType("varchar(200)")
  5656. .HasCharSet("utf8")
  5657. .HasCollation("utf8_general_ci");
  5658. entity.Property(e => e.SeoTitle)
  5659. .HasColumnType("varchar(100)")
  5660. .HasCharSet("utf8")
  5661. .HasCollation("utf8_general_ci");
  5662. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5663. entity.Property(e => e.StartDate).HasColumnType("datetime");
  5664. entity.Property(e => e.Status).HasColumnType("int(11)");
  5665. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5666. entity.Property(e => e.UpdateMan)
  5667. .HasColumnType("varchar(50)")
  5668. .HasCharSet("utf8")
  5669. .HasCollation("utf8_general_ci");
  5670. entity.Property(e => e.Version).HasColumnType("int(11)");
  5671. });
  5672. modelBuilder.Entity<ProfitObjectContinueFloors>(entity =>
  5673. {
  5674. entity.Property(e => e.Id).HasColumnType("int(11)");
  5675. entity.Property(e => e.AddProfitVal).HasColumnType("decimal(18,6)");
  5676. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5677. entity.Property(e => e.CreateMan)
  5678. .HasColumnType("varchar(50)")
  5679. .HasCharSet("utf8")
  5680. .HasCollation("utf8_general_ci");
  5681. entity.Property(e => e.FloorNumber).HasColumnType("int(11)");
  5682. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5683. entity.Property(e => e.Percents).HasColumnType("decimal(18,6)");
  5684. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5685. entity.Property(e => e.SeoDescription)
  5686. .HasColumnType("varchar(500)")
  5687. .HasCharSet("utf8")
  5688. .HasCollation("utf8_general_ci");
  5689. entity.Property(e => e.SeoKeyword)
  5690. .HasColumnType("varchar(200)")
  5691. .HasCharSet("utf8")
  5692. .HasCollation("utf8_general_ci");
  5693. entity.Property(e => e.SeoTitle)
  5694. .HasColumnType("varchar(100)")
  5695. .HasCharSet("utf8")
  5696. .HasCollation("utf8_general_ci");
  5697. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5698. entity.Property(e => e.Status).HasColumnType("int(11)");
  5699. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5700. entity.Property(e => e.UpdateMan)
  5701. .HasColumnType("varchar(50)")
  5702. .HasCharSet("utf8")
  5703. .HasCollation("utf8_general_ci");
  5704. entity.Property(e => e.Version).HasColumnType("int(11)");
  5705. });
  5706. modelBuilder.Entity<ProfitObjectFloors>(entity =>
  5707. {
  5708. entity.Property(e => e.Id).HasColumnType("int(11)");
  5709. entity.Property(e => e.AddProfitVal).HasColumnType("decimal(18,6)");
  5710. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5711. entity.Property(e => e.CreateMan)
  5712. .HasColumnType("varchar(50)")
  5713. .HasCharSet("utf8")
  5714. .HasCollation("utf8_general_ci");
  5715. entity.Property(e => e.FloorDiff)
  5716. .HasColumnType("bit(1)")
  5717. .HasDefaultValueSql("b'0'");
  5718. entity.Property(e => e.FloorNumber).HasColumnType("int(11)");
  5719. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5720. entity.Property(e => e.Percents).HasColumnType("decimal(18,6)");
  5721. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5722. entity.Property(e => e.SeoDescription)
  5723. .HasColumnType("varchar(500)")
  5724. .HasCharSet("utf8")
  5725. .HasCollation("utf8_general_ci");
  5726. entity.Property(e => e.SeoKeyword)
  5727. .HasColumnType("varchar(200)")
  5728. .HasCharSet("utf8")
  5729. .HasCollation("utf8_general_ci");
  5730. entity.Property(e => e.SeoTitle)
  5731. .HasColumnType("varchar(100)")
  5732. .HasCharSet("utf8")
  5733. .HasCollation("utf8_general_ci");
  5734. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5735. entity.Property(e => e.Status).HasColumnType("int(11)");
  5736. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5737. entity.Property(e => e.UpdateMan)
  5738. .HasColumnType("varchar(50)")
  5739. .HasCharSet("utf8")
  5740. .HasCollation("utf8_general_ci");
  5741. entity.Property(e => e.Version).HasColumnType("int(11)");
  5742. });
  5743. modelBuilder.Entity<ProfitObjectLevelKinds>(entity =>
  5744. {
  5745. entity.Property(e => e.Id).HasColumnType("int(11)");
  5746. entity.Property(e => e.BankCardType).HasColumnType("int(11)");
  5747. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5748. entity.Property(e => e.CreateMan)
  5749. .HasColumnType("varchar(50)")
  5750. .HasCharSet("utf8")
  5751. .HasCollation("utf8_general_ci");
  5752. entity.Property(e => e.IsHelp)
  5753. .HasColumnType("bit(1)")
  5754. .HasDefaultValueSql("b'0'");
  5755. entity.Property(e => e.Name)
  5756. .HasColumnType("varchar(50)")
  5757. .HasCharSet("utf8")
  5758. .HasCollation("utf8_general_ci");
  5759. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5760. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5761. entity.Property(e => e.SeoDescription)
  5762. .HasColumnType("varchar(500)")
  5763. .HasCharSet("utf8")
  5764. .HasCollation("utf8_general_ci");
  5765. entity.Property(e => e.SeoKeyword)
  5766. .HasColumnType("varchar(200)")
  5767. .HasCharSet("utf8")
  5768. .HasCollation("utf8_general_ci");
  5769. entity.Property(e => e.SeoTitle)
  5770. .HasColumnType("varchar(100)")
  5771. .HasCharSet("utf8")
  5772. .HasCollation("utf8_general_ci");
  5773. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5774. entity.Property(e => e.Status).HasColumnType("int(11)");
  5775. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5776. entity.Property(e => e.UpdateMan)
  5777. .HasColumnType("varchar(50)")
  5778. .HasCharSet("utf8")
  5779. .HasCollation("utf8_general_ci");
  5780. entity.Property(e => e.Version).HasColumnType("int(11)");
  5781. });
  5782. modelBuilder.Entity<ProfitObjectLevels>(entity =>
  5783. {
  5784. entity.Property(e => e.Id).HasColumnType("int(11)");
  5785. entity.Property(e => e.AddProfitVal).HasColumnType("decimal(18,6)");
  5786. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5787. entity.Property(e => e.CreateMan)
  5788. .HasColumnType("varchar(50)")
  5789. .HasCharSet("utf8")
  5790. .HasCollation("utf8_general_ci");
  5791. entity.Property(e => e.DebitAddProfitVal).HasColumnType("decimal(18,2)");
  5792. entity.Property(e => e.DebitPercents).HasColumnType("decimal(18,2)");
  5793. entity.Property(e => e.KindId).HasColumnType("int(11)");
  5794. entity.Property(e => e.LevelDiff)
  5795. .HasColumnType("bit(1)")
  5796. .HasDefaultValueSql("b'0'");
  5797. entity.Property(e => e.LevelNumber).HasColumnType("int(11)");
  5798. entity.Property(e => e.Name)
  5799. .HasColumnType("varchar(50)")
  5800. .HasCharSet("utf8")
  5801. .HasCollation("utf8_general_ci");
  5802. entity.Property(e => e.Percents).HasColumnType("decimal(18,6)");
  5803. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5804. entity.Property(e => e.SeoDescription)
  5805. .HasColumnType("varchar(500)")
  5806. .HasCharSet("utf8")
  5807. .HasCollation("utf8_general_ci");
  5808. entity.Property(e => e.SeoKeyword)
  5809. .HasColumnType("varchar(200)")
  5810. .HasCharSet("utf8")
  5811. .HasCollation("utf8_general_ci");
  5812. entity.Property(e => e.SeoTitle)
  5813. .HasColumnType("varchar(100)")
  5814. .HasCharSet("utf8")
  5815. .HasCollation("utf8_general_ci");
  5816. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5817. entity.Property(e => e.Status).HasColumnType("int(11)");
  5818. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5819. entity.Property(e => e.UpdateMan)
  5820. .HasColumnType("varchar(50)")
  5821. .HasCharSet("utf8")
  5822. .HasCollation("utf8_general_ci");
  5823. entity.Property(e => e.Version).HasColumnType("int(11)");
  5824. });
  5825. modelBuilder.Entity<ProfitObjects>(entity =>
  5826. {
  5827. entity.Property(e => e.Id).HasColumnType("int(11)");
  5828. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5829. entity.Property(e => e.CreateMan)
  5830. .HasColumnType("varchar(50)")
  5831. .HasCharSet("utf8")
  5832. .HasCollation("utf8_general_ci");
  5833. entity.Property(e => e.EndDate).HasColumnType("datetime");
  5834. entity.Property(e => e.MaxFloor).HasColumnType("int(11)");
  5835. entity.Property(e => e.MaxLevel).HasColumnType("int(11)");
  5836. entity.Property(e => e.MaxLevelContinue)
  5837. .HasColumnType("bit(1)")
  5838. .HasDefaultValueSql("b'0'");
  5839. entity.Property(e => e.MinProfitVal).HasColumnType("decimal(18,5)");
  5840. entity.Property(e => e.Name)
  5841. .HasColumnType("varchar(50)")
  5842. .HasCharSet("utf8")
  5843. .HasCollation("utf8_general_ci");
  5844. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5845. entity.Property(e => e.SeoDescription)
  5846. .HasColumnType("varchar(500)")
  5847. .HasCharSet("utf8")
  5848. .HasCollation("utf8_general_ci");
  5849. entity.Property(e => e.SeoKeyword)
  5850. .HasColumnType("varchar(200)")
  5851. .HasCharSet("utf8")
  5852. .HasCollation("utf8_general_ci");
  5853. entity.Property(e => e.SeoTitle)
  5854. .HasColumnType("varchar(100)")
  5855. .HasCharSet("utf8")
  5856. .HasCollation("utf8_general_ci");
  5857. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5858. entity.Property(e => e.StartDate).HasColumnType("datetime");
  5859. entity.Property(e => e.Status).HasColumnType("int(11)");
  5860. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5861. entity.Property(e => e.UpdateMan)
  5862. .HasColumnType("varchar(50)")
  5863. .HasCharSet("utf8")
  5864. .HasCollation("utf8_general_ci");
  5865. entity.Property(e => e.Version).HasColumnType("int(11)");
  5866. });
  5867. modelBuilder.Entity<ProfitObjectsActiveCheck>(entity =>
  5868. {
  5869. entity.HasKey(e => e.CheckData)
  5870. .HasName("PRIMARY");
  5871. entity.Property(e => e.CheckData)
  5872. .HasColumnType("varchar(100)")
  5873. .HasCharSet("utf8")
  5874. .HasCollation("utf8_general_ci");
  5875. });
  5876. modelBuilder.Entity<ProfitObjectsActiveParams>(entity =>
  5877. {
  5878. entity.Property(e => e.Id).HasColumnType("int(11)");
  5879. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5880. entity.Property(e => e.CreateMan)
  5881. .HasColumnType("varchar(50)")
  5882. .HasCharSet("utf8")
  5883. .HasCollation("utf8_general_ci");
  5884. entity.Property(e => e.Name)
  5885. .HasColumnType("varchar(50)")
  5886. .HasCharSet("utf8")
  5887. .HasCollation("utf8_general_ci");
  5888. entity.Property(e => e.ProfitObjectsActiveId).HasColumnType("int(11)");
  5889. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5890. entity.Property(e => e.Remark)
  5891. .HasColumnType("varchar(200)")
  5892. .HasCharSet("utf8")
  5893. .HasCollation("utf8_general_ci");
  5894. entity.Property(e => e.SeoDescription)
  5895. .HasColumnType("varchar(500)")
  5896. .HasCharSet("utf8")
  5897. .HasCollation("utf8_general_ci");
  5898. entity.Property(e => e.SeoKeyword)
  5899. .HasColumnType("varchar(200)")
  5900. .HasCharSet("utf8")
  5901. .HasCollation("utf8_general_ci");
  5902. entity.Property(e => e.SeoTitle)
  5903. .HasColumnType("varchar(100)")
  5904. .HasCharSet("utf8")
  5905. .HasCollation("utf8_general_ci");
  5906. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5907. entity.Property(e => e.Status).HasColumnType("int(11)");
  5908. entity.Property(e => e.TextValue)
  5909. .HasColumnType("varchar(20)")
  5910. .HasCharSet("utf8")
  5911. .HasCollation("utf8_general_ci");
  5912. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5913. entity.Property(e => e.UpdateMan)
  5914. .HasColumnType("varchar(50)")
  5915. .HasCharSet("utf8")
  5916. .HasCollation("utf8_general_ci");
  5917. entity.Property(e => e.Version).HasColumnType("int(11)");
  5918. });
  5919. modelBuilder.Entity<ProfitObjectsActives>(entity =>
  5920. {
  5921. entity.Property(e => e.Id).HasColumnType("int(11)");
  5922. entity.Property(e => e.CardType).HasColumnType("int(11)");
  5923. entity.Property(e => e.Code)
  5924. .HasColumnType("varchar(50)")
  5925. .HasCharSet("utf8")
  5926. .HasCollation("utf8_general_ci");
  5927. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5928. entity.Property(e => e.CreateMan)
  5929. .HasColumnType("varchar(50)")
  5930. .HasCharSet("utf8")
  5931. .HasCollation("utf8_general_ci");
  5932. entity.Property(e => e.EndDate).HasColumnType("datetime");
  5933. entity.Property(e => e.FinishNumber).HasColumnType("decimal(18,6)");
  5934. entity.Property(e => e.LimitCustomerDate).HasColumnType("datetime");
  5935. entity.Property(e => e.LimitDateKind).HasColumnType("int(11)");
  5936. entity.Property(e => e.LimitDateVal).HasColumnType("int(11)");
  5937. entity.Property(e => e.MachineCount).HasColumnType("int(11)");
  5938. entity.Property(e => e.Name)
  5939. .HasColumnType("varchar(50)")
  5940. .HasCharSet("utf8")
  5941. .HasCollation("utf8_general_ci");
  5942. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5943. entity.Property(e => e.ProfitNumber).HasColumnType("decimal(18,6)");
  5944. entity.Property(e => e.ProfitNumber2).HasColumnType("decimal(18,2)");
  5945. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5946. entity.Property(e => e.SeoDescription)
  5947. .HasColumnType("varchar(500)")
  5948. .HasCharSet("utf8")
  5949. .HasCollation("utf8_general_ci");
  5950. entity.Property(e => e.SeoKeyword)
  5951. .HasColumnType("varchar(200)")
  5952. .HasCharSet("utf8")
  5953. .HasCollation("utf8_general_ci");
  5954. entity.Property(e => e.SeoTitle)
  5955. .HasColumnType("varchar(100)")
  5956. .HasCharSet("utf8")
  5957. .HasCollation("utf8_general_ci");
  5958. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5959. entity.Property(e => e.StartDate).HasColumnType("datetime");
  5960. entity.Property(e => e.Status).HasColumnType("int(11)");
  5961. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5962. entity.Property(e => e.UpdateMan)
  5963. .HasColumnType("varchar(50)")
  5964. .HasCharSet("utf8")
  5965. .HasCollation("utf8_general_ci");
  5966. entity.Property(e => e.Version).HasColumnType("int(11)");
  5967. });
  5968. modelBuilder.Entity<ProfitObjectsActivesForId>(entity =>
  5969. {
  5970. entity.HasKey(e => e.Name)
  5971. .HasName("PRIMARY");
  5972. entity.Property(e => e.Name)
  5973. .HasColumnType("varchar(50)")
  5974. .HasCharSet("utf8")
  5975. .HasCollation("utf8_general_ci");
  5976. entity.Property(e => e.ActivityId).HasColumnType("int(11)");
  5977. });
  5978. modelBuilder.Entity<ProfitObjectsRule>(entity =>
  5979. {
  5980. entity.Property(e => e.Id).HasColumnType("int(11)");
  5981. entity.Property(e => e.Code)
  5982. .HasColumnType("varchar(50)")
  5983. .HasCharSet("utf8")
  5984. .HasCollation("utf8_general_ci");
  5985. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5986. entity.Property(e => e.CreateMan)
  5987. .HasColumnType("varchar(50)")
  5988. .HasCharSet("utf8")
  5989. .HasCollation("utf8_general_ci");
  5990. entity.Property(e => e.EndDate).HasColumnType("datetime");
  5991. entity.Property(e => e.Name)
  5992. .HasColumnType("varchar(50)")
  5993. .HasCharSet("utf8")
  5994. .HasCollation("utf8_general_ci");
  5995. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5996. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5997. entity.Property(e => e.SeoDescription)
  5998. .HasColumnType("varchar(500)")
  5999. .HasCharSet("utf8")
  6000. .HasCollation("utf8_general_ci");
  6001. entity.Property(e => e.SeoKeyword)
  6002. .HasColumnType("varchar(200)")
  6003. .HasCharSet("utf8")
  6004. .HasCollation("utf8_general_ci");
  6005. entity.Property(e => e.SeoTitle)
  6006. .HasColumnType("varchar(100)")
  6007. .HasCharSet("utf8")
  6008. .HasCollation("utf8_general_ci");
  6009. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6010. entity.Property(e => e.StartDate).HasColumnType("datetime");
  6011. entity.Property(e => e.Status).HasColumnType("int(11)");
  6012. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6013. entity.Property(e => e.UpdateMan)
  6014. .HasColumnType("varchar(50)")
  6015. .HasCharSet("utf8")
  6016. .HasCollation("utf8_general_ci");
  6017. entity.Property(e => e.Version).HasColumnType("int(11)");
  6018. });
  6019. modelBuilder.Entity<ProfitObjectsRuleDetails>(entity =>
  6020. {
  6021. entity.Property(e => e.Id).HasColumnType("int(11)");
  6022. entity.Property(e => e.Code)
  6023. .HasColumnType("varchar(50)")
  6024. .HasCharSet("utf8")
  6025. .HasCollation("utf8_general_ci");
  6026. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6027. entity.Property(e => e.CreateMan)
  6028. .HasColumnType("varchar(50)")
  6029. .HasCharSet("utf8")
  6030. .HasCollation("utf8_general_ci");
  6031. entity.Property(e => e.DataValue)
  6032. .HasColumnType("varchar(50)")
  6033. .HasCharSet("utf8")
  6034. .HasCollation("utf8_general_ci");
  6035. entity.Property(e => e.Name)
  6036. .HasColumnType("varchar(50)")
  6037. .HasCharSet("utf8")
  6038. .HasCollation("utf8_general_ci");
  6039. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6040. entity.Property(e => e.RuleId).HasColumnType("int(11)");
  6041. entity.Property(e => e.SeoDescription)
  6042. .HasColumnType("varchar(500)")
  6043. .HasCharSet("utf8")
  6044. .HasCollation("utf8_general_ci");
  6045. entity.Property(e => e.SeoKeyword)
  6046. .HasColumnType("varchar(200)")
  6047. .HasCharSet("utf8")
  6048. .HasCollation("utf8_general_ci");
  6049. entity.Property(e => e.SeoTitle)
  6050. .HasColumnType("varchar(100)")
  6051. .HasCharSet("utf8")
  6052. .HasCollation("utf8_general_ci");
  6053. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6054. entity.Property(e => e.Status).HasColumnType("int(11)");
  6055. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6056. entity.Property(e => e.UpdateMan)
  6057. .HasColumnType("varchar(50)")
  6058. .HasCharSet("utf8")
  6059. .HasCollation("utf8_general_ci");
  6060. entity.Property(e => e.Version).HasColumnType("int(11)");
  6061. });
  6062. modelBuilder.Entity<ProfitReceiveRecord>(entity =>
  6063. {
  6064. entity.Property(e => e.Id).HasColumnType("int(11)");
  6065. entity.Property(e => e.Account)
  6066. .HasColumnType("varchar(32)")
  6067. .HasCharSet("utf8")
  6068. .HasCollation("utf8_general_ci");
  6069. entity.Property(e => e.Amount).HasColumnType("decimal(18,2)");
  6070. entity.Property(e => e.AppId)
  6071. .HasColumnType("varchar(32)")
  6072. .HasCharSet("utf8")
  6073. .HasCollation("utf8_general_ci");
  6074. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6075. entity.Property(e => e.CreateMan)
  6076. .HasColumnType("varchar(50)")
  6077. .HasCharSet("utf8")
  6078. .HasCollation("utf8_general_ci");
  6079. entity.Property(e => e.CustomRelation)
  6080. .HasColumnType("varchar(10)")
  6081. .HasCharSet("utf8")
  6082. .HasCollation("utf8_general_ci");
  6083. entity.Property(e => e.Description)
  6084. .HasColumnType("varchar(50)")
  6085. .HasCharSet("utf8")
  6086. .HasCollation("utf8_general_ci");
  6087. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  6088. entity.Property(e => e.Name)
  6089. .HasColumnType("varchar(32)")
  6090. .HasCharSet("utf8")
  6091. .HasCollation("utf8_general_ci");
  6092. entity.Property(e => e.OrderId)
  6093. .HasColumnType("varchar(32)")
  6094. .HasCharSet("utf8")
  6095. .HasCollation("utf8_general_ci");
  6096. entity.Property(e => e.OutOrderNo)
  6097. .HasColumnType("varchar(32)")
  6098. .HasCharSet("utf8")
  6099. .HasCollation("utf8_general_ci");
  6100. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6101. entity.Property(e => e.RelationType)
  6102. .HasColumnType("varchar(30)")
  6103. .HasCharSet("utf8")
  6104. .HasCollation("utf8_general_ci");
  6105. entity.Property(e => e.SeoDescription)
  6106. .HasColumnType("varchar(500)")
  6107. .HasCharSet("utf8")
  6108. .HasCollation("utf8_general_ci");
  6109. entity.Property(e => e.SeoKeyword)
  6110. .HasColumnType("varchar(200)")
  6111. .HasCharSet("utf8")
  6112. .HasCollation("utf8_general_ci");
  6113. entity.Property(e => e.SeoTitle)
  6114. .HasColumnType("varchar(100)")
  6115. .HasCharSet("utf8")
  6116. .HasCollation("utf8_general_ci");
  6117. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6118. entity.Property(e => e.State)
  6119. .HasColumnType("varchar(20)")
  6120. .HasCharSet("utf8")
  6121. .HasCollation("utf8_general_ci");
  6122. entity.Property(e => e.Status).HasColumnType("int(11)");
  6123. entity.Property(e => e.SubAppId)
  6124. .HasColumnType("varchar(32)")
  6125. .HasCharSet("utf8")
  6126. .HasCollation("utf8_general_ci");
  6127. entity.Property(e => e.SubMchid)
  6128. .HasColumnType("varchar(32)")
  6129. .HasCharSet("utf8")
  6130. .HasCollation("utf8_general_ci");
  6131. entity.Property(e => e.TransactionId)
  6132. .HasColumnType("varchar(32)")
  6133. .HasCharSet("utf8")
  6134. .HasCollation("utf8_general_ci");
  6135. entity.Property(e => e.Type)
  6136. .HasColumnType("varchar(30)")
  6137. .HasCharSet("utf8")
  6138. .HasCollation("utf8_general_ci");
  6139. entity.Property(e => e.UnfreezeUnsplit)
  6140. .HasColumnType("bit(1)")
  6141. .HasDefaultValueSql("b'0'");
  6142. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6143. entity.Property(e => e.UpdateMan)
  6144. .HasColumnType("varchar(50)")
  6145. .HasCharSet("utf8")
  6146. .HasCollation("utf8_general_ci");
  6147. entity.Property(e => e.Version).HasColumnType("int(11)");
  6148. });
  6149. modelBuilder.Entity<ProfitReceives>(entity =>
  6150. {
  6151. entity.Property(e => e.Id).HasColumnType("int(11)");
  6152. entity.Property(e => e.Account)
  6153. .HasColumnType("varchar(32)")
  6154. .HasCharSet("utf8")
  6155. .HasCollation("utf8_general_ci");
  6156. entity.Property(e => e.AppId)
  6157. .HasColumnType("varchar(32)")
  6158. .HasCharSet("utf8")
  6159. .HasCollation("utf8_general_ci");
  6160. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6161. entity.Property(e => e.CreateMan)
  6162. .HasColumnType("varchar(50)")
  6163. .HasCharSet("utf8")
  6164. .HasCollation("utf8_general_ci");
  6165. entity.Property(e => e.CustomRelation)
  6166. .HasColumnType("varchar(10)")
  6167. .HasCharSet("utf8")
  6168. .HasCollation("utf8_general_ci");
  6169. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  6170. entity.Property(e => e.Name)
  6171. .HasColumnType("varchar(32)")
  6172. .HasCharSet("utf8")
  6173. .HasCollation("utf8_general_ci");
  6174. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6175. entity.Property(e => e.RelationType)
  6176. .HasColumnType("varchar(30)")
  6177. .HasCharSet("utf8")
  6178. .HasCollation("utf8_general_ci");
  6179. entity.Property(e => e.SeoDescription)
  6180. .HasColumnType("varchar(500)")
  6181. .HasCharSet("utf8")
  6182. .HasCollation("utf8_general_ci");
  6183. entity.Property(e => e.SeoKeyword)
  6184. .HasColumnType("varchar(200)")
  6185. .HasCharSet("utf8")
  6186. .HasCollation("utf8_general_ci");
  6187. entity.Property(e => e.SeoTitle)
  6188. .HasColumnType("varchar(100)")
  6189. .HasCharSet("utf8")
  6190. .HasCollation("utf8_general_ci");
  6191. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6192. entity.Property(e => e.Status).HasColumnType("int(11)");
  6193. entity.Property(e => e.SubAppId)
  6194. .HasColumnType("varchar(32)")
  6195. .HasCharSet("utf8")
  6196. .HasCollation("utf8_general_ci");
  6197. entity.Property(e => e.SubMchid)
  6198. .HasColumnType("varchar(32)")
  6199. .HasCharSet("utf8")
  6200. .HasCollation("utf8_general_ci");
  6201. entity.Property(e => e.Type)
  6202. .HasColumnType("varchar(30)")
  6203. .HasCharSet("utf8")
  6204. .HasCollation("utf8_general_ci");
  6205. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6206. entity.Property(e => e.UpdateMan)
  6207. .HasColumnType("varchar(50)")
  6208. .HasCharSet("utf8")
  6209. .HasCollation("utf8_general_ci");
  6210. entity.Property(e => e.Version).HasColumnType("int(11)");
  6211. });
  6212. modelBuilder.Entity<ProfitRecord>(entity =>
  6213. {
  6214. entity.Property(e => e.Id).HasColumnType("int(11)");
  6215. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6216. entity.Property(e => e.CapFlag).HasColumnType("int(11)");
  6217. entity.Property(e => e.ClearDate).HasColumnType("datetime");
  6218. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6219. entity.Property(e => e.CreateMan)
  6220. .HasColumnType("varchar(50)")
  6221. .HasCharSet("utf8")
  6222. .HasCollation("utf8_general_ci");
  6223. entity.Property(e => e.DirectFlag)
  6224. .HasColumnType("bit(1)")
  6225. .HasDefaultValueSql("b'0'");
  6226. entity.Property(e => e.HelpMonthCount).HasColumnType("int(11)");
  6227. entity.Property(e => e.MerBuddyType).HasColumnType("int(11)");
  6228. entity.Property(e => e.MerHelpFlag)
  6229. .HasColumnType("bit(1)")
  6230. .HasDefaultValueSql("b'0'");
  6231. entity.Property(e => e.MerNo)
  6232. .HasColumnType("varchar(32)")
  6233. .HasCharSet("utf8")
  6234. .HasCollation("utf8_general_ci");
  6235. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  6236. entity.Property(e => e.ParentNav)
  6237. .HasColumnType("varchar(1000)")
  6238. .HasCharSet("utf8")
  6239. .HasCollation("utf8_general_ci");
  6240. entity.Property(e => e.ProfitAmount).HasColumnType("decimal(18,2)");
  6241. entity.Property(e => e.QrPayFlag).HasColumnType("int(11)");
  6242. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6243. entity.Property(e => e.Remark)
  6244. .HasColumnType("varchar(64)")
  6245. .HasCharSet("utf8")
  6246. .HasCollation("utf8_general_ci");
  6247. entity.Property(e => e.SeoDescription)
  6248. .HasColumnType("varchar(500)")
  6249. .HasCharSet("utf8")
  6250. .HasCollation("utf8_general_ci");
  6251. entity.Property(e => e.SeoKeyword)
  6252. .HasColumnType("varchar(200)")
  6253. .HasCharSet("utf8")
  6254. .HasCollation("utf8_general_ci");
  6255. entity.Property(e => e.SeoTitle)
  6256. .HasColumnType("varchar(100)")
  6257. .HasCharSet("utf8")
  6258. .HasCollation("utf8_general_ci");
  6259. entity.Property(e => e.SnNo)
  6260. .HasColumnType("varchar(32)")
  6261. .HasCharSet("utf8")
  6262. .HasCollation("utf8_general_ci");
  6263. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6264. entity.Property(e => e.Status).HasColumnType("int(11)");
  6265. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  6266. entity.Property(e => e.TradeId).HasColumnType("int(11)");
  6267. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6268. entity.Property(e => e.UpdateMan)
  6269. .HasColumnType("varchar(50)")
  6270. .HasCharSet("utf8")
  6271. .HasCollation("utf8_general_ci");
  6272. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6273. entity.Property(e => e.Version).HasColumnType("int(11)");
  6274. });
  6275. modelBuilder.Entity<ProfitRewardRecord>(entity =>
  6276. {
  6277. entity.Property(e => e.Id).HasColumnType("int(11)");
  6278. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6279. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  6280. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6281. entity.Property(e => e.CreateMan)
  6282. .HasColumnType("varchar(50)")
  6283. .HasCharSet("utf8")
  6284. .HasCollation("utf8_general_ci");
  6285. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  6286. entity.Property(e => e.CreditTradeProfit).HasColumnType("decimal(18,2)");
  6287. entity.Property(e => e.DebitCapSingleReward).HasColumnType("decimal(18,2)");
  6288. entity.Property(e => e.DebitCapTradeAmt).HasColumnType("decimal(18,2)");
  6289. entity.Property(e => e.DebitCapTradeNum).HasColumnType("int(11)");
  6290. entity.Property(e => e.DebitNonCapTradeAmt).HasColumnType("decimal(18,2)");
  6291. entity.Property(e => e.DebitNonTradeCapProfit).HasColumnType("decimal(18,2)");
  6292. entity.Property(e => e.DebitTradeCapProfit).HasColumnType("decimal(18,2)");
  6293. entity.Property(e => e.HelpCreditAddOrSubRate).HasColumnType("decimal(18,2)");
  6294. entity.Property(e => e.HelpCreditProfitRate).HasColumnType("decimal(18,2)");
  6295. entity.Property(e => e.HelpCreditProfitStandardRate).HasColumnType("decimal(18,2)");
  6296. entity.Property(e => e.HelpCreditTradeAmt).HasColumnType("decimal(18,2)");
  6297. entity.Property(e => e.HelpCreditTradeProfit).HasColumnType("decimal(18,2)");
  6298. entity.Property(e => e.HelpDebitAddOrSubRate).HasColumnType("decimal(18,2)");
  6299. entity.Property(e => e.HelpDebitNonCapTradeAmt).HasColumnType("decimal(18,2)");
  6300. entity.Property(e => e.HelpDebitNonTradeCapProfit).HasColumnType("decimal(18,2)");
  6301. entity.Property(e => e.HelpDebitProfitRate).HasColumnType("decimal(18,2)");
  6302. entity.Property(e => e.HelpDebitProfitStandardRate).HasColumnType("decimal(18,2)");
  6303. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  6304. entity.Property(e => e.NonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  6305. entity.Property(e => e.NonQrCreditTradeProfit).HasColumnType("decimal(18,2)");
  6306. entity.Property(e => e.NonQrDebitNonTradeCapProfit).HasColumnType("decimal(18,2)");
  6307. entity.Property(e => e.NonQrDebitNotCapTradeAmt).HasColumnType("decimal(18,2)");
  6308. entity.Property(e => e.NotHelpCreditAddOrSubRate).HasColumnType("decimal(18,2)");
  6309. entity.Property(e => e.NotHelpCreditProfitRate).HasColumnType("decimal(18,2)");
  6310. entity.Property(e => e.NotHelpCreditProfitStandardRate).HasColumnType("decimal(18,2)");
  6311. entity.Property(e => e.NotHelpCreditTradeAmt).HasColumnType("decimal(18,2)");
  6312. entity.Property(e => e.NotHelpCreditTradeProfit).HasColumnType("decimal(18,2)");
  6313. entity.Property(e => e.NotHelpDebitAddOrSubRate).HasColumnType("decimal(18,2)");
  6314. entity.Property(e => e.NotHelpDebitNonCapTradeAmt).HasColumnType("decimal(18,2)");
  6315. entity.Property(e => e.NotHelpDebitNonTradeCapProfit).HasColumnType("decimal(18,2)");
  6316. entity.Property(e => e.NotHelpDebitProfitRate).HasColumnType("decimal(18,2)");
  6317. entity.Property(e => e.NotHelpDebitProfitStandardRate).HasColumnType("decimal(18,2)");
  6318. entity.Property(e => e.OtherCreditTradeAmt).HasColumnType("decimal(18,2)");
  6319. entity.Property(e => e.OtherDebitNotCapTradeAmt).HasColumnType("decimal(18,2)");
  6320. entity.Property(e => e.OtherTradeAmt).HasColumnType("decimal(18,2)");
  6321. entity.Property(e => e.ProfitType).HasColumnType("int(11)");
  6322. entity.Property(e => e.QrCreditAddOrSubRate).HasColumnType("decimal(18,2)");
  6323. entity.Property(e => e.QrCreditProfitRate).HasColumnType("decimal(18,2)");
  6324. entity.Property(e => e.QrCreditProfitStandardRate).HasColumnType("decimal(18,2)");
  6325. entity.Property(e => e.QrCreditTradeAmt).HasColumnType("decimal(18,2)");
  6326. entity.Property(e => e.QrCreditTradeProfit).HasColumnType("decimal(18,2)");
  6327. entity.Property(e => e.QrDebitAddOrSubRate).HasColumnType("decimal(18,2)");
  6328. entity.Property(e => e.QrDebitNonTradeCapProfit).HasColumnType("decimal(18,2)");
  6329. entity.Property(e => e.QrDebitNotCapTradeAmt).HasColumnType("decimal(18,2)");
  6330. entity.Property(e => e.QrDebitProfitRate).HasColumnType("decimal(18,2)");
  6331. entity.Property(e => e.QrDebitProfitStandardRate).HasColumnType("decimal(18,2)");
  6332. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6333. entity.Property(e => e.RecordNo)
  6334. .HasColumnType("varchar(32)")
  6335. .HasCharSet("utf8")
  6336. .HasCollation("utf8_general_ci");
  6337. entity.Property(e => e.Remark)
  6338. .HasColumnType("varchar(64)")
  6339. .HasCharSet("utf8")
  6340. .HasCollation("utf8_general_ci");
  6341. entity.Property(e => e.SeoDescription)
  6342. .HasColumnType("varchar(500)")
  6343. .HasCharSet("utf8")
  6344. .HasCollation("utf8_general_ci");
  6345. entity.Property(e => e.SeoKeyword)
  6346. .HasColumnType("varchar(200)")
  6347. .HasCharSet("utf8")
  6348. .HasCollation("utf8_general_ci");
  6349. entity.Property(e => e.SeoTitle)
  6350. .HasColumnType("varchar(100)")
  6351. .HasCharSet("utf8")
  6352. .HasCollation("utf8_general_ci");
  6353. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6354. entity.Property(e => e.Status).HasColumnType("int(11)");
  6355. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  6356. entity.Property(e => e.TradeAmt).HasColumnType("decimal(18,2)");
  6357. entity.Property(e => e.TradeMonth)
  6358. .HasColumnType("varchar(6)")
  6359. .HasCharSet("utf8")
  6360. .HasCollation("utf8_general_ci");
  6361. entity.Property(e => e.TradeProfit).HasColumnType("decimal(18,2)");
  6362. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6363. entity.Property(e => e.UpdateMan)
  6364. .HasColumnType("varchar(50)")
  6365. .HasCharSet("utf8")
  6366. .HasCollation("utf8_general_ci");
  6367. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6368. entity.Property(e => e.Version).HasColumnType("int(11)");
  6369. });
  6370. modelBuilder.Entity<ProfitSubsidyDetail>(entity =>
  6371. {
  6372. entity.Property(e => e.Id).HasColumnType("int(11)");
  6373. entity.Property(e => e.BelongUserId).HasColumnType("int(11)");
  6374. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6375. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6376. entity.Property(e => e.CreateMan)
  6377. .HasColumnType("varchar(50)")
  6378. .HasCharSet("utf8")
  6379. .HasCollation("utf8_general_ci");
  6380. entity.Property(e => e.CreditProfitRate).HasColumnType("decimal(18,2)");
  6381. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  6382. entity.Property(e => e.MerHelpFlag)
  6383. .HasColumnType("bit(1)")
  6384. .HasDefaultValueSql("b'0'");
  6385. entity.Property(e => e.MerNo)
  6386. .HasColumnType("varchar(32)")
  6387. .HasCharSet("utf8")
  6388. .HasCollation("utf8_general_ci");
  6389. entity.Property(e => e.MerRegTime).HasColumnType("datetime");
  6390. entity.Property(e => e.MerStandardDate).HasColumnType("datetime");
  6391. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  6392. entity.Property(e => e.NonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  6393. entity.Property(e => e.ProductName)
  6394. .HasColumnType("varchar(16)")
  6395. .HasCharSet("utf8")
  6396. .HasCollation("utf8_general_ci");
  6397. entity.Property(e => e.QrCreditTradeAmt).HasColumnType("decimal(18,2)");
  6398. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6399. entity.Property(e => e.RecordNo)
  6400. .HasColumnType("varchar(32)")
  6401. .HasCharSet("utf8")
  6402. .HasCollation("utf8_general_ci");
  6403. entity.Property(e => e.Remark)
  6404. .HasColumnType("varchar(64)")
  6405. .HasCharSet("utf8")
  6406. .HasCollation("utf8_general_ci");
  6407. entity.Property(e => e.SeoDescription)
  6408. .HasColumnType("varchar(500)")
  6409. .HasCharSet("utf8")
  6410. .HasCollation("utf8_general_ci");
  6411. entity.Property(e => e.SeoKeyword)
  6412. .HasColumnType("varchar(200)")
  6413. .HasCharSet("utf8")
  6414. .HasCollation("utf8_general_ci");
  6415. entity.Property(e => e.SeoTitle)
  6416. .HasColumnType("varchar(100)")
  6417. .HasCharSet("utf8")
  6418. .HasCollation("utf8_general_ci");
  6419. entity.Property(e => e.SnNo)
  6420. .HasColumnType("varchar(32)")
  6421. .HasCharSet("utf8")
  6422. .HasCollation("utf8_general_ci");
  6423. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6424. entity.Property(e => e.Status).HasColumnType("int(11)");
  6425. entity.Property(e => e.SubsidyProfit).HasColumnType("decimal(18,2)");
  6426. entity.Property(e => e.SubsidyProfitRate).HasColumnType("decimal(18,2)");
  6427. entity.Property(e => e.SubsidyType).HasColumnType("int(11)");
  6428. entity.Property(e => e.SubsidyUserId).HasColumnType("int(11)");
  6429. entity.Property(e => e.TradeMonth)
  6430. .HasColumnType("varchar(6)")
  6431. .HasCharSet("utf8")
  6432. .HasCollation("utf8_general_ci");
  6433. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6434. entity.Property(e => e.UpdateMan)
  6435. .HasColumnType("varchar(50)")
  6436. .HasCharSet("utf8")
  6437. .HasCollation("utf8_general_ci");
  6438. entity.Property(e => e.Version).HasColumnType("int(11)");
  6439. });
  6440. modelBuilder.Entity<ProfitSubsidyDetail04>(entity =>
  6441. {
  6442. entity.Property(e => e.Id).HasColumnType("int(11)");
  6443. entity.Property(e => e.BelongUserId).HasColumnType("int(11)");
  6444. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6445. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6446. entity.Property(e => e.CreateMan)
  6447. .HasColumnType("varchar(50)")
  6448. .HasCharSet("utf8")
  6449. .HasCollation("utf8_general_ci");
  6450. entity.Property(e => e.CreditProfitRate).HasColumnType("decimal(18,2)");
  6451. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  6452. entity.Property(e => e.MerHelpFlag)
  6453. .HasColumnType("bit(1)")
  6454. .HasDefaultValueSql("b'0'");
  6455. entity.Property(e => e.MerNo)
  6456. .HasColumnType("varchar(32)")
  6457. .HasCharSet("utf8")
  6458. .HasCollation("utf8_general_ci");
  6459. entity.Property(e => e.MerRegTime).HasColumnType("datetime");
  6460. entity.Property(e => e.MerStandardDate).HasColumnType("datetime");
  6461. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  6462. entity.Property(e => e.NonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  6463. entity.Property(e => e.ProductName)
  6464. .HasColumnType("varchar(16)")
  6465. .HasCharSet("utf8")
  6466. .HasCollation("utf8_general_ci");
  6467. entity.Property(e => e.QrCreditTradeAmt).HasColumnType("decimal(18,2)");
  6468. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6469. entity.Property(e => e.RecordNo)
  6470. .HasColumnType("varchar(32)")
  6471. .HasCharSet("utf8")
  6472. .HasCollation("utf8_general_ci");
  6473. entity.Property(e => e.Remark)
  6474. .HasColumnType("varchar(64)")
  6475. .HasCharSet("utf8")
  6476. .HasCollation("utf8_general_ci");
  6477. entity.Property(e => e.SeoDescription)
  6478. .HasColumnType("varchar(500)")
  6479. .HasCharSet("utf8")
  6480. .HasCollation("utf8_general_ci");
  6481. entity.Property(e => e.SeoKeyword)
  6482. .HasColumnType("varchar(200)")
  6483. .HasCharSet("utf8")
  6484. .HasCollation("utf8_general_ci");
  6485. entity.Property(e => e.SeoTitle)
  6486. .HasColumnType("varchar(100)")
  6487. .HasCharSet("utf8")
  6488. .HasCollation("utf8_general_ci");
  6489. entity.Property(e => e.SnNo)
  6490. .HasColumnType("varchar(32)")
  6491. .HasCharSet("utf8")
  6492. .HasCollation("utf8_general_ci");
  6493. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6494. entity.Property(e => e.Status).HasColumnType("int(11)");
  6495. entity.Property(e => e.SubsidyProfit).HasColumnType("decimal(18,2)");
  6496. entity.Property(e => e.SubsidyProfitRate).HasColumnType("decimal(18,2)");
  6497. entity.Property(e => e.SubsidyType).HasColumnType("int(11)");
  6498. entity.Property(e => e.SubsidyUserId).HasColumnType("int(11)");
  6499. entity.Property(e => e.TradeMonth)
  6500. .HasColumnType("varchar(6)")
  6501. .HasCharSet("utf8")
  6502. .HasCollation("utf8_general_ci");
  6503. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6504. entity.Property(e => e.UpdateMan)
  6505. .HasColumnType("varchar(50)")
  6506. .HasCharSet("utf8")
  6507. .HasCollation("utf8_general_ci");
  6508. entity.Property(e => e.Version).HasColumnType("int(11)");
  6509. });
  6510. modelBuilder.Entity<PublicAccountSet>(entity =>
  6511. {
  6512. entity.Property(e => e.Id).HasColumnType("int(11)");
  6513. entity.Property(e => e.AlipayAppId)
  6514. .HasColumnType("varchar(50)")
  6515. .HasCharSet("utf8")
  6516. .HasCollation("utf8_general_ci");
  6517. entity.Property(e => e.AlipayPartnerId)
  6518. .HasColumnType("varchar(50)")
  6519. .HasCharSet("utf8")
  6520. .HasCollation("utf8_general_ci");
  6521. entity.Property(e => e.AlipayPrivateKey)
  6522. .HasColumnType("mediumtext")
  6523. .HasCharSet("utf8")
  6524. .HasCollation("utf8_general_ci");
  6525. entity.Property(e => e.AlipayPublicKey)
  6526. .HasColumnType("mediumtext")
  6527. .HasCharSet("utf8")
  6528. .HasCollation("utf8_general_ci");
  6529. entity.Property(e => e.AliyunAccessKeyId)
  6530. .HasColumnType("varchar(50)")
  6531. .HasCharSet("utf8")
  6532. .HasCollation("utf8_general_ci");
  6533. entity.Property(e => e.AliyunAccessKeySecret)
  6534. .HasColumnType("varchar(50)")
  6535. .HasCharSet("utf8")
  6536. .HasCollation("utf8_general_ci");
  6537. entity.Property(e => e.AliyunAndroidActivity)
  6538. .HasColumnType("varchar(100)")
  6539. .HasCharSet("utf8")
  6540. .HasCollation("utf8_general_ci");
  6541. entity.Property(e => e.AliyunAndroidNotifyTitle)
  6542. .HasColumnType("varchar(20)")
  6543. .HasCharSet("utf8")
  6544. .HasCollation("utf8_general_ci");
  6545. entity.Property(e => e.AliyunPushAndroidAppId)
  6546. .HasColumnType("varchar(50)")
  6547. .HasCharSet("utf8")
  6548. .HasCollation("utf8_general_ci");
  6549. entity.Property(e => e.AliyunPushAndroidAppSecret)
  6550. .HasColumnType("varchar(50)")
  6551. .HasCharSet("utf8")
  6552. .HasCollation("utf8_general_ci");
  6553. entity.Property(e => e.AliyunPushIosAppId)
  6554. .HasColumnType("varchar(500)")
  6555. .HasCharSet("utf8")
  6556. .HasCollation("utf8_general_ci");
  6557. entity.Property(e => e.AliyunPushIosAppSecret)
  6558. .HasColumnType("varchar(50)")
  6559. .HasCharSet("utf8")
  6560. .HasCollation("utf8_general_ci");
  6561. entity.Property(e => e.AliyunRegionId)
  6562. .HasColumnType("varchar(30)")
  6563. .HasCharSet("utf8")
  6564. .HasCollation("utf8_general_ci");
  6565. entity.Property(e => e.ErpApiUrl)
  6566. .HasColumnType("varchar(200)")
  6567. .HasCharSet("utf8")
  6568. .HasCollation("utf8_general_ci");
  6569. entity.Property(e => e.ErpAppCode)
  6570. .HasColumnType("varchar(100)")
  6571. .HasCharSet("utf8")
  6572. .HasCollation("utf8_general_ci");
  6573. entity.Property(e => e.MeiQiaAppKey)
  6574. .HasColumnType("varchar(50)")
  6575. .HasCharSet("utf8")
  6576. .HasCollation("utf8_general_ci");
  6577. entity.Property(e => e.MobAppKey)
  6578. .HasColumnType("varchar(50)")
  6579. .HasCharSet("utf8")
  6580. .HasCollation("utf8_general_ci");
  6581. entity.Property(e => e.MobAppSecret)
  6582. .HasColumnType("varchar(50)")
  6583. .HasCharSet("utf8")
  6584. .HasCollation("utf8_general_ci");
  6585. entity.Property(e => e.QqAndroidAppId)
  6586. .HasColumnType("varchar(50)")
  6587. .HasCharSet("utf8")
  6588. .HasCollation("utf8_general_ci");
  6589. entity.Property(e => e.QqAndroidAppKey)
  6590. .HasColumnType("varchar(50)")
  6591. .HasCharSet("utf8")
  6592. .HasCollation("utf8_general_ci");
  6593. entity.Property(e => e.QqIosAppId)
  6594. .HasColumnType("varchar(50)")
  6595. .HasCharSet("utf8")
  6596. .HasCollation("utf8_general_ci");
  6597. entity.Property(e => e.QqIosAppKey)
  6598. .HasColumnType("varchar(50)")
  6599. .HasCharSet("utf8")
  6600. .HasCollation("utf8_general_ci");
  6601. entity.Property(e => e.ServerIp)
  6602. .HasColumnType("varchar(15)")
  6603. .HasCharSet("utf8")
  6604. .HasCollation("utf8_general_ci");
  6605. entity.Property(e => e.SmsApiDefaultTemplate)
  6606. .HasColumnType("varchar(200)")
  6607. .HasCharSet("utf8")
  6608. .HasCollation("utf8_general_ci");
  6609. entity.Property(e => e.SmsApiPwd)
  6610. .HasColumnType("varchar(50)")
  6611. .HasCharSet("utf8")
  6612. .HasCollation("utf8_general_ci");
  6613. entity.Property(e => e.SmsApiSign)
  6614. .HasColumnType("varchar(10)")
  6615. .HasCharSet("utf8")
  6616. .HasCollation("utf8_general_ci");
  6617. entity.Property(e => e.SmsApiUserId)
  6618. .HasColumnType("varchar(50)")
  6619. .HasCharSet("utf8")
  6620. .HasCollation("utf8_general_ci");
  6621. entity.Property(e => e.WeChatAppId)
  6622. .HasColumnType("varchar(50)")
  6623. .HasCharSet("utf8")
  6624. .HasCollation("utf8_general_ci");
  6625. entity.Property(e => e.WeChatAppSecret)
  6626. .HasColumnType("varchar(50)")
  6627. .HasCharSet("utf8")
  6628. .HasCollation("utf8_general_ci");
  6629. entity.Property(e => e.WeChatMchId)
  6630. .HasColumnType("varchar(20)")
  6631. .HasCharSet("utf8")
  6632. .HasCollation("utf8_general_ci");
  6633. entity.Property(e => e.WeChatMiniAppId)
  6634. .HasColumnType("varchar(50)")
  6635. .HasCharSet("utf8")
  6636. .HasCollation("utf8_general_ci");
  6637. entity.Property(e => e.WeChatMiniAppSecret)
  6638. .HasColumnType("varchar(50)")
  6639. .HasCharSet("utf8")
  6640. .HasCollation("utf8_general_ci");
  6641. entity.Property(e => e.WeChatOpenAppId)
  6642. .HasColumnType("varchar(50)")
  6643. .HasCharSet("utf8")
  6644. .HasCollation("utf8_general_ci");
  6645. entity.Property(e => e.WeChatOpenAppSecret)
  6646. .HasColumnType("varchar(50)")
  6647. .HasCharSet("utf8")
  6648. .HasCollation("utf8_general_ci");
  6649. entity.Property(e => e.WeChatPayKey)
  6650. .HasColumnType("varchar(50)")
  6651. .HasCharSet("utf8")
  6652. .HasCollation("utf8_general_ci");
  6653. });
  6654. modelBuilder.Entity<PullNewAct>(entity =>
  6655. {
  6656. entity.Property(e => e.Id).HasColumnType("int(11)");
  6657. entity.Property(e => e.ActEffectEndDate).HasColumnType("datetime");
  6658. entity.Property(e => e.ActEffectStartDate).HasColumnType("datetime");
  6659. entity.Property(e => e.ActStdCond)
  6660. .HasColumnType("varchar(32)")
  6661. .HasCharSet("utf8")
  6662. .HasCollation("utf8_general_ci");
  6663. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6664. entity.Property(e => e.CreateMan)
  6665. .HasColumnType("varchar(50)")
  6666. .HasCharSet("utf8")
  6667. .HasCollation("utf8_general_ci");
  6668. entity.Property(e => e.ProductName)
  6669. .HasColumnType("varchar(32)")
  6670. .HasCharSet("utf8")
  6671. .HasCollation("utf8_general_ci");
  6672. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  6673. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6674. entity.Property(e => e.Remark)
  6675. .HasColumnType("varchar(128)")
  6676. .HasCharSet("utf8")
  6677. .HasCollation("utf8_general_ci");
  6678. entity.Property(e => e.SeoDescription)
  6679. .HasColumnType("varchar(500)")
  6680. .HasCharSet("utf8")
  6681. .HasCollation("utf8_general_ci");
  6682. entity.Property(e => e.SeoKeyword)
  6683. .HasColumnType("varchar(200)")
  6684. .HasCharSet("utf8")
  6685. .HasCollation("utf8_general_ci");
  6686. entity.Property(e => e.SeoTitle)
  6687. .HasColumnType("varchar(100)")
  6688. .HasCharSet("utf8")
  6689. .HasCollation("utf8_general_ci");
  6690. entity.Property(e => e.SnDelayDay).HasColumnType("int(11)");
  6691. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6692. entity.Property(e => e.Status).HasColumnType("int(11)");
  6693. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6694. entity.Property(e => e.UpdateMan)
  6695. .HasColumnType("varchar(50)")
  6696. .HasCharSet("utf8")
  6697. .HasCollation("utf8_general_ci");
  6698. entity.Property(e => e.Version).HasColumnType("int(11)");
  6699. });
  6700. modelBuilder.Entity<PullNewDetail>(entity =>
  6701. {
  6702. entity.Property(e => e.Id).HasColumnType("int(11)");
  6703. entity.Property(e => e.BizStatus).HasColumnType("int(11)");
  6704. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6705. entity.Property(e => e.CreateMan)
  6706. .HasColumnType("varchar(50)")
  6707. .HasCharSet("utf8")
  6708. .HasCollation("utf8_general_ci");
  6709. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6710. entity.Property(e => e.RecMallBrandId).HasColumnType("int(11)");
  6711. entity.Property(e => e.RecMallOrder)
  6712. .HasColumnType("varchar(32)")
  6713. .HasCharSet("utf8")
  6714. .HasCollation("utf8_general_ci");
  6715. entity.Property(e => e.RecMallOrderTime).HasColumnType("datetime");
  6716. entity.Property(e => e.RecMallProductName)
  6717. .HasColumnType("varchar(32)")
  6718. .HasCharSet("utf8")
  6719. .HasCollation("utf8_general_ci");
  6720. entity.Property(e => e.RecMallProductNum).HasColumnType("int(11)");
  6721. entity.Property(e => e.RecMallSendTime).HasColumnType("datetime");
  6722. entity.Property(e => e.RecUserId).HasColumnType("int(11)");
  6723. entity.Property(e => e.RecUserType).HasColumnType("int(11)");
  6724. entity.Property(e => e.RegDate).HasColumnType("datetime");
  6725. entity.Property(e => e.Remark)
  6726. .HasColumnType("varchar(64)")
  6727. .HasCharSet("utf8")
  6728. .HasCollation("utf8_general_ci");
  6729. entity.Property(e => e.RewardStatus).HasColumnType("int(11)");
  6730. entity.Property(e => e.SeoDescription)
  6731. .HasColumnType("varchar(500)")
  6732. .HasCharSet("utf8")
  6733. .HasCollation("utf8_general_ci");
  6734. entity.Property(e => e.SeoKeyword)
  6735. .HasColumnType("varchar(200)")
  6736. .HasCharSet("utf8")
  6737. .HasCollation("utf8_general_ci");
  6738. entity.Property(e => e.SeoTitle)
  6739. .HasColumnType("varchar(100)")
  6740. .HasCharSet("utf8")
  6741. .HasCollation("utf8_general_ci");
  6742. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6743. entity.Property(e => e.StatDate)
  6744. .HasColumnType("varchar(8)")
  6745. .HasCharSet("utf8")
  6746. .HasCollation("utf8_general_ci");
  6747. entity.Property(e => e.StatMonth)
  6748. .HasColumnType("varchar(6)")
  6749. .HasCharSet("utf8")
  6750. .HasCollation("utf8_general_ci");
  6751. entity.Property(e => e.StatType).HasColumnType("int(11)");
  6752. entity.Property(e => e.Status).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.UserId).HasColumnType("int(11)");
  6759. entity.Property(e => e.Version).HasColumnType("int(11)");
  6760. });
  6761. modelBuilder.Entity<PullnewSummary>(entity =>
  6762. {
  6763. entity.Property(e => e.Id).HasColumnType("int(11)");
  6764. entity.Property(e => e.BizSnDelayDay).HasColumnType("int(11)");
  6765. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6766. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6767. entity.Property(e => e.CreateMan)
  6768. .HasColumnType("varchar(50)")
  6769. .HasCharSet("utf8")
  6770. .HasCollation("utf8_general_ci");
  6771. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6772. entity.Property(e => e.RecUserAuthNum).HasColumnType("int(11)");
  6773. entity.Property(e => e.RecUserDeliveryStdNum).HasColumnType("int(11)");
  6774. entity.Property(e => e.Remark)
  6775. .HasColumnType("varchar(64)")
  6776. .HasCharSet("utf8")
  6777. .HasCollation("utf8_general_ci");
  6778. entity.Property(e => e.RuleSnDelayDay).HasColumnType("int(11)");
  6779. entity.Property(e => e.SeoDescription)
  6780. .HasColumnType("varchar(500)")
  6781. .HasCharSet("utf8")
  6782. .HasCollation("utf8_general_ci");
  6783. entity.Property(e => e.SeoKeyword)
  6784. .HasColumnType("varchar(200)")
  6785. .HasCharSet("utf8")
  6786. .HasCollation("utf8_general_ci");
  6787. entity.Property(e => e.SeoTitle)
  6788. .HasColumnType("varchar(100)")
  6789. .HasCharSet("utf8")
  6790. .HasCollation("utf8_general_ci");
  6791. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6792. entity.Property(e => e.StatDate)
  6793. .HasColumnType("varchar(8)")
  6794. .HasCharSet("utf8")
  6795. .HasCollation("utf8_general_ci");
  6796. entity.Property(e => e.StatMonth)
  6797. .HasColumnType("varchar(6)")
  6798. .HasCharSet("utf8")
  6799. .HasCollation("utf8_general_ci");
  6800. entity.Property(e => e.Status).HasColumnType("int(11)");
  6801. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6802. entity.Property(e => e.UpdateMan)
  6803. .HasColumnType("varchar(50)")
  6804. .HasCharSet("utf8")
  6805. .HasCollation("utf8_general_ci");
  6806. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6807. entity.Property(e => e.Version).HasColumnType("int(11)");
  6808. });
  6809. modelBuilder.Entity<RecommendDirectUser>(entity =>
  6810. {
  6811. entity.Property(e => e.Id).HasColumnType("int(11)");
  6812. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6813. entity.Property(e => e.DirectUserId).HasColumnType("int(11)");
  6814. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6815. entity.Property(e => e.SeoDescription)
  6816. .HasColumnType("varchar(500)")
  6817. .HasCharSet("utf8")
  6818. .HasCollation("utf8_general_ci");
  6819. entity.Property(e => e.SeoKeyword)
  6820. .HasColumnType("varchar(200)")
  6821. .HasCharSet("utf8")
  6822. .HasCollation("utf8_general_ci");
  6823. entity.Property(e => e.SeoTitle)
  6824. .HasColumnType("varchar(100)")
  6825. .HasCharSet("utf8")
  6826. .HasCollation("utf8_general_ci");
  6827. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6828. entity.Property(e => e.Status).HasColumnType("int(11)");
  6829. entity.Property(e => e.TradeMonth)
  6830. .HasColumnType("varchar(6)")
  6831. .HasCharSet("utf8")
  6832. .HasCollation("utf8_general_ci");
  6833. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6834. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6835. });
  6836. modelBuilder.Entity<RecommendTradeSummary>(entity =>
  6837. {
  6838. entity.Property(e => e.Id).HasColumnType("int(11)");
  6839. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6840. entity.Property(e => e.PosSn)
  6841. .HasColumnType("varchar(50)")
  6842. .HasCharSet("utf8")
  6843. .HasCollation("utf8_general_ci");
  6844. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6845. entity.Property(e => e.SeoDescription)
  6846. .HasColumnType("varchar(500)")
  6847. .HasCharSet("utf8")
  6848. .HasCollation("utf8_general_ci");
  6849. entity.Property(e => e.SeoKeyword)
  6850. .HasColumnType("varchar(200)")
  6851. .HasCharSet("utf8")
  6852. .HasCollation("utf8_general_ci");
  6853. entity.Property(e => e.SeoTitle)
  6854. .HasColumnType("varchar(100)")
  6855. .HasCharSet("utf8")
  6856. .HasCollation("utf8_general_ci");
  6857. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6858. entity.Property(e => e.Status).HasColumnType("int(11)");
  6859. entity.Property(e => e.TradeAmount).HasColumnType("decimal(18,2)");
  6860. entity.Property(e => e.TradeMonth)
  6861. .HasColumnType("varchar(6)")
  6862. .HasCharSet("utf8")
  6863. .HasCollation("utf8_general_ci");
  6864. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6865. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6866. });
  6867. modelBuilder.Entity<RightDic>(entity =>
  6868. {
  6869. entity.Property(e => e.Id)
  6870. .HasColumnName("ID")
  6871. .HasColumnType("varchar(50)")
  6872. .HasCharSet("utf8")
  6873. .HasCollation("utf8_general_ci");
  6874. entity.Property(e => e.Icon)
  6875. .HasColumnType("varchar(50)")
  6876. .HasCharSet("utf8")
  6877. .HasCollation("utf8_general_ci");
  6878. entity.Property(e => e.MainDataList)
  6879. .HasColumnType("bit(1)")
  6880. .HasDefaultValueSql("b'0'");
  6881. entity.Property(e => e.MainMenu)
  6882. .HasColumnType("bit(1)")
  6883. .HasDefaultValueSql("b'0'");
  6884. entity.Property(e => e.MainStat)
  6885. .HasColumnType("bit(1)")
  6886. .HasDefaultValueSql("b'0'");
  6887. entity.Property(e => e.Name)
  6888. .HasColumnType("varchar(50)")
  6889. .HasCharSet("utf8")
  6890. .HasCollation("utf8_general_ci");
  6891. entity.Property(e => e.OtherRight)
  6892. .HasColumnType("varchar(500)")
  6893. .HasCharSet("utf8")
  6894. .HasCollation("utf8_general_ci");
  6895. entity.Property(e => e.RightLevel).HasColumnType("int(11)");
  6896. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6897. entity.Property(e => e.Url)
  6898. .HasColumnType("varchar(200)")
  6899. .HasCharSet("utf8")
  6900. .HasCollation("utf8_general_ci");
  6901. });
  6902. modelBuilder.Entity<ServiceCenter>(entity =>
  6903. {
  6904. entity.Property(e => e.Id).HasColumnType("int(11)");
  6905. entity.Property(e => e.CategoryId).HasColumnType("int(11)");
  6906. entity.Property(e => e.Content)
  6907. .HasColumnType("longtext")
  6908. .HasCharSet("utf8")
  6909. .HasCollation("utf8_general_ci");
  6910. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6911. entity.Property(e => e.CreateMan)
  6912. .HasColumnType("varchar(50)")
  6913. .HasCharSet("utf8")
  6914. .HasCollation("utf8_general_ci");
  6915. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6916. entity.Property(e => e.SeoDescription)
  6917. .HasColumnType("varchar(500)")
  6918. .HasCharSet("utf8")
  6919. .HasCollation("utf8_general_ci");
  6920. entity.Property(e => e.SeoKeyword)
  6921. .HasColumnType("varchar(200)")
  6922. .HasCharSet("utf8")
  6923. .HasCollation("utf8_general_ci");
  6924. entity.Property(e => e.SeoTitle)
  6925. .HasColumnType("varchar(100)")
  6926. .HasCharSet("utf8")
  6927. .HasCollation("utf8_general_ci");
  6928. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6929. entity.Property(e => e.Status).HasColumnType("int(11)");
  6930. entity.Property(e => e.SubTitle)
  6931. .HasColumnType("varchar(50)")
  6932. .HasCharSet("utf8")
  6933. .HasCollation("utf8_general_ci");
  6934. entity.Property(e => e.Title)
  6935. .HasColumnType("varchar(50)")
  6936. .HasCharSet("utf8")
  6937. .HasCollation("utf8_general_ci");
  6938. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6939. entity.Property(e => e.UpdateMan)
  6940. .HasColumnType("varchar(50)")
  6941. .HasCharSet("utf8")
  6942. .HasCollation("utf8_general_ci");
  6943. entity.Property(e => e.Version).HasColumnType("int(11)");
  6944. });
  6945. modelBuilder.Entity<SetMerchantTypeRecord>(entity =>
  6946. {
  6947. entity.Property(e => e.Id).HasColumnType("int(11)");
  6948. entity.Property(e => e.ActDate).HasColumnType("datetime");
  6949. entity.Property(e => e.ActStatus)
  6950. .HasColumnType("bit(1)")
  6951. .HasDefaultValueSql("b'0'");
  6952. entity.Property(e => e.BindDate).HasColumnType("datetime");
  6953. entity.Property(e => e.BindStatus)
  6954. .HasColumnType("bit(1)")
  6955. .HasDefaultValueSql("b'0'");
  6956. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6957. entity.Property(e => e.CreditAmount).HasColumnType("decimal(18,2)");
  6958. entity.Property(e => e.FromUserId).HasColumnType("int(11)");
  6959. entity.Property(e => e.IsRecyc)
  6960. .HasColumnType("bit(1)")
  6961. .HasDefaultValueSql("b'0'");
  6962. entity.Property(e => e.MerNo)
  6963. .HasColumnType("varchar(50)")
  6964. .HasCharSet("utf8")
  6965. .HasCollation("utf8_general_ci");
  6966. entity.Property(e => e.Note)
  6967. .HasColumnType("varchar(50)")
  6968. .HasCharSet("utf8")
  6969. .HasCollation("utf8_general_ci");
  6970. entity.Property(e => e.PosSn)
  6971. .HasColumnType("varchar(50)")
  6972. .HasCharSet("utf8")
  6973. .HasCollation("utf8_general_ci");
  6974. entity.Property(e => e.PosSnType).HasColumnType("int(11)");
  6975. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6976. entity.Property(e => e.SeoDescription)
  6977. .HasColumnType("varchar(500)")
  6978. .HasCharSet("utf8")
  6979. .HasCollation("utf8_general_ci");
  6980. entity.Property(e => e.SeoKeyword)
  6981. .HasColumnType("varchar(200)")
  6982. .HasCharSet("utf8")
  6983. .HasCollation("utf8_general_ci");
  6984. entity.Property(e => e.SeoTitle)
  6985. .HasColumnType("varchar(100)")
  6986. .HasCharSet("utf8")
  6987. .HasCollation("utf8_general_ci");
  6988. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6989. entity.Property(e => e.Status).HasColumnType("int(11)");
  6990. entity.Property(e => e.ToUserId).HasColumnType("int(11)");
  6991. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6992. });
  6993. modelBuilder.Entity<SmallStoreHouse>(entity =>
  6994. {
  6995. entity.Property(e => e.Id).HasColumnType("int(11)");
  6996. entity.Property(e => e.BrandId)
  6997. .HasColumnType("varchar(30)")
  6998. .HasCharSet("utf8")
  6999. .HasCollation("utf8_general_ci");
  7000. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7001. entity.Property(e => e.FromStoreId).HasColumnType("int(11)");
  7002. entity.Property(e => e.LaveNum).HasColumnType("int(11)");
  7003. entity.Property(e => e.Mobile)
  7004. .HasColumnType("varchar(11)")
  7005. .HasCharSet("utf8")
  7006. .HasCollation("utf8_general_ci");
  7007. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7008. entity.Property(e => e.Remark)
  7009. .HasColumnType("varchar(128)")
  7010. .HasCharSet("utf8")
  7011. .HasCollation("utf8_general_ci");
  7012. entity.Property(e => e.SeoDescription)
  7013. .HasColumnType("varchar(500)")
  7014. .HasCharSet("utf8")
  7015. .HasCollation("utf8_general_ci");
  7016. entity.Property(e => e.SeoKeyword)
  7017. .HasColumnType("varchar(200)")
  7018. .HasCharSet("utf8")
  7019. .HasCollation("utf8_general_ci");
  7020. entity.Property(e => e.SeoTitle)
  7021. .HasColumnType("varchar(100)")
  7022. .HasCharSet("utf8")
  7023. .HasCollation("utf8_general_ci");
  7024. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7025. entity.Property(e => e.Status).HasColumnType("int(11)");
  7026. entity.Property(e => e.StoreName)
  7027. .HasColumnType("varchar(32)")
  7028. .HasCharSet("utf8")
  7029. .HasCollation("utf8_general_ci");
  7030. entity.Property(e => e.StoreNo)
  7031. .HasColumnType("varchar(16)")
  7032. .HasCharSet("utf8")
  7033. .HasCollation("utf8_general_ci");
  7034. entity.Property(e => e.TotalNum).HasColumnType("int(11)");
  7035. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7036. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7037. });
  7038. modelBuilder.Entity<SpOrderNos>(entity =>
  7039. {
  7040. entity.HasKey(e => e.OrderNo)
  7041. .HasName("PRIMARY");
  7042. entity.Property(e => e.OrderNo)
  7043. .HasColumnType("varchar(50)")
  7044. .HasCharSet("utf8")
  7045. .HasCollation("utf8_general_ci");
  7046. });
  7047. modelBuilder.Entity<StoreBalance>(entity =>
  7048. {
  7049. entity.Property(e => e.Id).HasColumnType("int(11)");
  7050. entity.Property(e => e.AfterLaveNum).HasColumnType("int(11)");
  7051. entity.Property(e => e.AfterOutNum).HasColumnType("int(11)");
  7052. entity.Property(e => e.AfterTotalNum).HasColumnType("int(11)");
  7053. entity.Property(e => e.BeforeLaveNum).HasColumnType("int(11)");
  7054. entity.Property(e => e.BeforeOutNum).HasColumnType("int(11)");
  7055. entity.Property(e => e.BeforeTotalNum).HasColumnType("int(11)");
  7056. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  7057. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7058. entity.Property(e => e.CreateMan)
  7059. .HasColumnType("varchar(50)")
  7060. .HasCharSet("utf8")
  7061. .HasCollation("utf8_general_ci");
  7062. entity.Property(e => e.OpStoreNum).HasColumnType("int(11)");
  7063. entity.Property(e => e.OpSymbol)
  7064. .HasColumnType("varchar(1)")
  7065. .HasCharSet("utf8")
  7066. .HasCollation("utf8_general_ci");
  7067. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7068. entity.Property(e => e.SeoDescription)
  7069. .HasColumnType("varchar(500)")
  7070. .HasCharSet("utf8")
  7071. .HasCollation("utf8_general_ci");
  7072. entity.Property(e => e.SeoKeyword)
  7073. .HasColumnType("varchar(200)")
  7074. .HasCharSet("utf8")
  7075. .HasCollation("utf8_general_ci");
  7076. entity.Property(e => e.SeoTitle)
  7077. .HasColumnType("varchar(100)")
  7078. .HasCharSet("utf8")
  7079. .HasCollation("utf8_general_ci");
  7080. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7081. entity.Property(e => e.Status).HasColumnType("int(11)");
  7082. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  7083. entity.Property(e => e.TransRecordNo)
  7084. .HasColumnType("varchar(32)")
  7085. .HasCharSet("utf8")
  7086. .HasCollation("utf8_general_ci");
  7087. entity.Property(e => e.TransType).HasColumnType("int(11)");
  7088. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7089. entity.Property(e => e.UpdateMan)
  7090. .HasColumnType("varchar(50)")
  7091. .HasCharSet("utf8")
  7092. .HasCollation("utf8_general_ci");
  7093. entity.Property(e => e.Version).HasColumnType("int(11)");
  7094. });
  7095. modelBuilder.Entity<StoreChangeHistory>(entity =>
  7096. {
  7097. entity.Property(e => e.Id).HasColumnType("int(11)");
  7098. entity.Property(e => e.BizBatchNo)
  7099. .HasColumnType("varchar(32)")
  7100. .HasCharSet("utf8")
  7101. .HasCollation("utf8_general_ci");
  7102. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  7103. entity.Property(e => e.ChangeRecordNo)
  7104. .HasColumnType("varchar(32)")
  7105. .HasCharSet("utf8")
  7106. .HasCollation("utf8_general_ci");
  7107. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7108. entity.Property(e => e.CreateMan)
  7109. .HasColumnType("varchar(50)")
  7110. .HasCharSet("utf8")
  7111. .HasCollation("utf8_general_ci");
  7112. entity.Property(e => e.DeviceModel)
  7113. .HasColumnType("varchar(32)")
  7114. .HasCharSet("utf8")
  7115. .HasCollation("utf8_general_ci");
  7116. entity.Property(e => e.DeviceType)
  7117. .HasColumnType("varchar(32)")
  7118. .HasCharSet("utf8")
  7119. .HasCollation("utf8_general_ci");
  7120. entity.Property(e => e.DeviceVendor)
  7121. .HasColumnType("varchar(32)")
  7122. .HasCharSet("utf8")
  7123. .HasCollation("utf8_general_ci");
  7124. entity.Property(e => e.FromDate).HasColumnType("datetime");
  7125. entity.Property(e => e.FromRemark)
  7126. .HasColumnType("varchar(64)")
  7127. .HasCharSet("utf8")
  7128. .HasCollation("utf8_general_ci");
  7129. entity.Property(e => e.FromUserId).HasColumnType("int(11)");
  7130. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7131. entity.Property(e => e.SeoDescription)
  7132. .HasColumnType("varchar(500)")
  7133. .HasCharSet("utf8")
  7134. .HasCollation("utf8_general_ci");
  7135. entity.Property(e => e.SeoKeyword)
  7136. .HasColumnType("varchar(200)")
  7137. .HasCharSet("utf8")
  7138. .HasCollation("utf8_general_ci");
  7139. entity.Property(e => e.SeoTitle)
  7140. .HasColumnType("varchar(100)")
  7141. .HasCharSet("utf8")
  7142. .HasCollation("utf8_general_ci");
  7143. entity.Property(e => e.SnNo)
  7144. .HasColumnType("varchar(32)")
  7145. .HasCharSet("utf8")
  7146. .HasCollation("utf8_general_ci");
  7147. entity.Property(e => e.SnType).HasColumnType("int(11)");
  7148. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7149. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  7150. entity.Property(e => e.Status).HasColumnType("int(11)");
  7151. entity.Property(e => e.StockOpDirect).HasColumnType("int(11)");
  7152. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  7153. entity.Property(e => e.ToDate).HasColumnType("datetime");
  7154. entity.Property(e => e.ToRemark)
  7155. .HasColumnType("varchar(64)")
  7156. .HasCharSet("utf8")
  7157. .HasCollation("utf8_general_ci");
  7158. entity.Property(e => e.ToStoreId).HasColumnType("int(11)");
  7159. entity.Property(e => e.ToUserId).HasColumnType("int(11)");
  7160. entity.Property(e => e.TransType).HasColumnType("int(11)");
  7161. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7162. entity.Property(e => e.UpdateMan)
  7163. .HasColumnType("varchar(50)")
  7164. .HasCharSet("utf8")
  7165. .HasCollation("utf8_general_ci");
  7166. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7167. entity.Property(e => e.Version).HasColumnType("int(11)");
  7168. });
  7169. modelBuilder.Entity<StoreForCode>(entity =>
  7170. {
  7171. entity.HasKey(e => e.Code)
  7172. .HasName("PRIMARY");
  7173. entity.Property(e => e.Code)
  7174. .HasColumnType("varchar(30)")
  7175. .HasCharSet("utf8")
  7176. .HasCollation("utf8_general_ci");
  7177. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  7178. });
  7179. modelBuilder.Entity<StoreForName>(entity =>
  7180. {
  7181. entity.HasKey(e => e.Name)
  7182. .HasName("PRIMARY");
  7183. entity.Property(e => e.Name)
  7184. .HasColumnType("varchar(30)")
  7185. .HasCharSet("utf8")
  7186. .HasCollation("utf8_general_ci");
  7187. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  7188. });
  7189. modelBuilder.Entity<StoreHouse>(entity =>
  7190. {
  7191. entity.Property(e => e.Id).HasColumnType("int(11)");
  7192. entity.Property(e => e.Address)
  7193. .HasColumnType("varchar(128)")
  7194. .HasCharSet("utf8")
  7195. .HasCollation("utf8_general_ci");
  7196. entity.Property(e => e.Areas)
  7197. .HasColumnType("varchar(30)")
  7198. .HasCharSet("utf8")
  7199. .HasCollation("utf8_general_ci");
  7200. entity.Property(e => e.AuthDate).HasColumnType("datetime");
  7201. entity.Property(e => e.AuthFlag)
  7202. .HasColumnType("bit(1)")
  7203. .HasDefaultValueSql("b'0'");
  7204. entity.Property(e => e.BrandId)
  7205. .HasColumnType("varchar(30)")
  7206. .HasCharSet("utf8")
  7207. .HasCollation("utf8_general_ci");
  7208. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7209. entity.Property(e => e.CreateMan)
  7210. .HasColumnType("varchar(50)")
  7211. .HasCharSet("utf8")
  7212. .HasCollation("utf8_general_ci");
  7213. entity.Property(e => e.LaveNum).HasColumnType("int(11)");
  7214. entity.Property(e => e.LimitTopUserId)
  7215. .HasColumnType("varchar(100)")
  7216. .HasCharSet("utf8")
  7217. .HasCollation("utf8_general_ci");
  7218. entity.Property(e => e.ManageMobile)
  7219. .HasColumnType("varchar(11)")
  7220. .HasCharSet("utf8")
  7221. .HasCollation("utf8_general_ci");
  7222. entity.Property(e => e.ManageUserId).HasColumnType("int(11)");
  7223. entity.Property(e => e.ManagerEmail)
  7224. .HasColumnType("varchar(32)")
  7225. .HasCharSet("utf8")
  7226. .HasCollation("utf8_general_ci");
  7227. entity.Property(e => e.OutNum).HasColumnType("int(11)");
  7228. entity.Property(e => e.ParentNav)
  7229. .HasColumnType("longtext")
  7230. .HasCharSet("utf8")
  7231. .HasCollation("utf8_general_ci");
  7232. entity.Property(e => e.ParentStoreId).HasColumnType("int(11)");
  7233. entity.Property(e => e.ProductName)
  7234. .HasColumnType("varchar(32)")
  7235. .HasCharSet("utf8")
  7236. .HasCollation("utf8_general_ci");
  7237. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7238. entity.Property(e => e.Remark)
  7239. .HasColumnType("varchar(128)")
  7240. .HasCharSet("utf8")
  7241. .HasCollation("utf8_general_ci");
  7242. entity.Property(e => e.SeoDescription)
  7243. .HasColumnType("varchar(500)")
  7244. .HasCharSet("utf8")
  7245. .HasCollation("utf8_general_ci");
  7246. entity.Property(e => e.SeoKeyword)
  7247. .HasColumnType("varchar(200)")
  7248. .HasCharSet("utf8")
  7249. .HasCollation("utf8_general_ci");
  7250. entity.Property(e => e.SeoTitle)
  7251. .HasColumnType("varchar(100)")
  7252. .HasCharSet("utf8")
  7253. .HasCollation("utf8_general_ci");
  7254. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7255. entity.Property(e => e.Status).HasColumnType("int(11)");
  7256. entity.Property(e => e.StoreKind).HasColumnType("int(11)");
  7257. entity.Property(e => e.StoreName)
  7258. .HasColumnType("varchar(32)")
  7259. .HasCharSet("utf8")
  7260. .HasCollation("utf8_general_ci");
  7261. entity.Property(e => e.StoreNo)
  7262. .HasColumnType("varchar(16)")
  7263. .HasCharSet("utf8")
  7264. .HasCollation("utf8_general_ci");
  7265. entity.Property(e => e.StoreStatus).HasColumnType("int(11)");
  7266. entity.Property(e => e.StoreType).HasColumnType("int(11)");
  7267. entity.Property(e => e.TotalNum).HasColumnType("int(11)");
  7268. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7269. entity.Property(e => e.UpdateMan)
  7270. .HasColumnType("varchar(50)")
  7271. .HasCharSet("utf8")
  7272. .HasCollation("utf8_general_ci");
  7273. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7274. entity.Property(e => e.Version).HasColumnType("int(11)");
  7275. });
  7276. modelBuilder.Entity<StoreHouseAmountRecord>(entity =>
  7277. {
  7278. entity.Property(e => e.Id).HasColumnType("int(11)");
  7279. entity.Property(e => e.AfterAmount).HasColumnType("decimal(18,2)");
  7280. entity.Property(e => e.AmountType).HasColumnType("int(11)");
  7281. entity.Property(e => e.ApplyId).HasColumnType("int(11)");
  7282. entity.Property(e => e.BeforeAmount).HasColumnType("decimal(18,2)");
  7283. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7284. entity.Property(e => e.OperateType).HasColumnType("int(11)");
  7285. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7286. entity.Property(e => e.SeoDescription)
  7287. .HasColumnType("varchar(500)")
  7288. .HasCharSet("utf8")
  7289. .HasCollation("utf8_general_ci");
  7290. entity.Property(e => e.SeoKeyword)
  7291. .HasColumnType("varchar(200)")
  7292. .HasCharSet("utf8")
  7293. .HasCollation("utf8_general_ci");
  7294. entity.Property(e => e.SeoTitle)
  7295. .HasColumnType("varchar(100)")
  7296. .HasCharSet("utf8")
  7297. .HasCollation("utf8_general_ci");
  7298. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7299. entity.Property(e => e.Status).HasColumnType("int(11)");
  7300. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7301. entity.Property(e => e.UseAmount).HasColumnType("decimal(18,2)");
  7302. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7303. });
  7304. modelBuilder.Entity<StoreMachineApply>(entity =>
  7305. {
  7306. entity.Property(e => e.Id).HasColumnType("int(11)");
  7307. entity.Property(e => e.ApplyNo)
  7308. .HasColumnType("varchar(50)")
  7309. .HasCharSet("utf8")
  7310. .HasCollation("utf8_general_ci");
  7311. entity.Property(e => e.ApplyNum).HasColumnType("int(11)");
  7312. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  7313. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7314. entity.Property(e => e.ErpCode)
  7315. .HasColumnType("varchar(50)")
  7316. .HasCharSet("utf8")
  7317. .HasCollation("utf8_general_ci");
  7318. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7319. entity.Property(e => e.SendMode)
  7320. .HasColumnType("varchar(50)")
  7321. .HasCharSet("utf8")
  7322. .HasCollation("utf8_general_ci");
  7323. entity.Property(e => e.SendNum).HasColumnType("int(11)");
  7324. entity.Property(e => e.SendSn)
  7325. .HasColumnType("mediumtext")
  7326. .HasCharSet("utf8")
  7327. .HasCollation("utf8_general_ci");
  7328. entity.Property(e => e.SeoDescription)
  7329. .HasColumnType("varchar(500)")
  7330. .HasCharSet("utf8")
  7331. .HasCollation("utf8_general_ci");
  7332. entity.Property(e => e.SeoKeyword)
  7333. .HasColumnType("varchar(200)")
  7334. .HasCharSet("utf8")
  7335. .HasCollation("utf8_general_ci");
  7336. entity.Property(e => e.SeoTitle)
  7337. .HasColumnType("varchar(100)")
  7338. .HasCharSet("utf8")
  7339. .HasCollation("utf8_general_ci");
  7340. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7341. entity.Property(e => e.Status).HasColumnType("int(11)");
  7342. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7343. entity.Property(e => e.UseAmount).HasColumnType("decimal(18,2)");
  7344. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7345. });
  7346. modelBuilder.Entity<StoreMallOrderSummary>(entity =>
  7347. {
  7348. entity.Property(e => e.Id).HasColumnType("int(11)");
  7349. entity.Property(e => e.AgentStoreId).HasColumnType("int(11)");
  7350. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  7351. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7352. entity.Property(e => e.CreateMan)
  7353. .HasColumnType("varchar(50)")
  7354. .HasCharSet("utf8")
  7355. .HasCollation("utf8_general_ci");
  7356. entity.Property(e => e.OrderAmt).HasColumnType("int(11)");
  7357. entity.Property(e => e.OrderNum).HasColumnType("int(11)");
  7358. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7359. entity.Property(e => e.RefundAmt).HasColumnType("decimal(18,2)");
  7360. entity.Property(e => e.RefundOrderNum).HasColumnType("int(11)");
  7361. entity.Property(e => e.Remark)
  7362. .HasColumnType("varchar(64)")
  7363. .HasCharSet("utf8")
  7364. .HasCollation("utf8_general_ci");
  7365. entity.Property(e => e.SeoDescription)
  7366. .HasColumnType("varchar(500)")
  7367. .HasCharSet("utf8")
  7368. .HasCollation("utf8_general_ci");
  7369. entity.Property(e => e.SeoKeyword)
  7370. .HasColumnType("varchar(200)")
  7371. .HasCharSet("utf8")
  7372. .HasCollation("utf8_general_ci");
  7373. entity.Property(e => e.SeoTitle)
  7374. .HasColumnType("varchar(100)")
  7375. .HasCharSet("utf8")
  7376. .HasCollation("utf8_general_ci");
  7377. entity.Property(e => e.SettleAmt).HasColumnType("decimal(18,2)");
  7378. entity.Property(e => e.SettleStatus).HasColumnType("int(11)");
  7379. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7380. entity.Property(e => e.Status).HasColumnType("int(11)");
  7381. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  7382. entity.Property(e => e.TradeMonth)
  7383. .HasColumnType("varchar(6)")
  7384. .HasCharSet("utf8")
  7385. .HasCollation("utf8_general_ci");
  7386. entity.Property(e => e.UnitPrice).HasColumnType("decimal(18,2)");
  7387. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7388. entity.Property(e => e.UpdateMan)
  7389. .HasColumnType("varchar(50)")
  7390. .HasCharSet("utf8")
  7391. .HasCollation("utf8_general_ci");
  7392. entity.Property(e => e.Version).HasColumnType("int(11)");
  7393. });
  7394. modelBuilder.Entity<StoreSnActivateSummary>(entity =>
  7395. {
  7396. entity.Property(e => e.Id).HasColumnType("int(11)");
  7397. entity.Property(e => e.ActivateNum).HasColumnType("int(11)");
  7398. entity.Property(e => e.AgentStoreId).HasColumnType("int(11)");
  7399. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  7400. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7401. entity.Property(e => e.CreateMan)
  7402. .HasColumnType("varchar(50)")
  7403. .HasCharSet("utf8")
  7404. .HasCollation("utf8_general_ci");
  7405. entity.Property(e => e.EffectActNum).HasColumnType("int(11)");
  7406. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7407. entity.Property(e => e.RejectActNum).HasColumnType("int(11)");
  7408. entity.Property(e => e.Remark)
  7409. .HasColumnType("varchar(64)")
  7410. .HasCharSet("utf8")
  7411. .HasCollation("utf8_general_ci");
  7412. entity.Property(e => e.SeoDescription)
  7413. .HasColumnType("varchar(500)")
  7414. .HasCharSet("utf8")
  7415. .HasCollation("utf8_general_ci");
  7416. entity.Property(e => e.SeoKeyword)
  7417. .HasColumnType("varchar(200)")
  7418. .HasCharSet("utf8")
  7419. .HasCollation("utf8_general_ci");
  7420. entity.Property(e => e.SeoTitle)
  7421. .HasColumnType("varchar(100)")
  7422. .HasCharSet("utf8")
  7423. .HasCollation("utf8_general_ci");
  7424. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7425. entity.Property(e => e.Status).HasColumnType("int(11)");
  7426. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  7427. entity.Property(e => e.TradeDate)
  7428. .HasColumnType("varchar(8)")
  7429. .HasCharSet("utf8")
  7430. .HasCollation("utf8_general_ci");
  7431. entity.Property(e => e.TradeMonth)
  7432. .HasColumnType("varchar(6)")
  7433. .HasCharSet("utf8")
  7434. .HasCollation("utf8_general_ci");
  7435. entity.Property(e => e.TransferActNum).HasColumnType("int(11)");
  7436. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7437. entity.Property(e => e.UpdateMan)
  7438. .HasColumnType("varchar(50)")
  7439. .HasCharSet("utf8")
  7440. .HasCollation("utf8_general_ci");
  7441. entity.Property(e => e.UserApplyNum).HasColumnType("int(11)");
  7442. entity.Property(e => e.Version).HasColumnType("int(11)");
  7443. });
  7444. modelBuilder.Entity<StoreStockChange>(entity =>
  7445. {
  7446. entity.Property(e => e.Id).HasColumnType("int(11)");
  7447. entity.Property(e => e.ActRewardUserId).HasColumnType("int(11)");
  7448. entity.Property(e => e.ActiveStatus).HasColumnType("int(11)");
  7449. entity.Property(e => e.BindMerchant).HasColumnType("int(11)");
  7450. entity.Property(e => e.BindStatus).HasColumnType("int(11)");
  7451. entity.Property(e => e.BizBatchNo)
  7452. .HasColumnType("varchar(32)")
  7453. .HasCharSet("utf8")
  7454. .HasCollation("utf8_general_ci");
  7455. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  7456. entity.Property(e => e.BrandType)
  7457. .HasColumnType("varchar(10)")
  7458. .HasCharSet("utf8")
  7459. .HasCollation("utf8_general_ci");
  7460. entity.Property(e => e.ChangeNo)
  7461. .HasColumnType("varchar(32)")
  7462. .HasCharSet("utf8")
  7463. .HasCollation("utf8_general_ci");
  7464. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7465. entity.Property(e => e.CreateMan)
  7466. .HasColumnType("varchar(50)")
  7467. .HasCharSet("utf8")
  7468. .HasCollation("utf8_general_ci");
  7469. entity.Property(e => e.DeviceModel)
  7470. .HasColumnType("varchar(32)")
  7471. .HasCharSet("utf8")
  7472. .HasCollation("utf8_general_ci");
  7473. entity.Property(e => e.DeviceType)
  7474. .HasColumnType("varchar(32)")
  7475. .HasCharSet("utf8")
  7476. .HasCollation("utf8_general_ci");
  7477. entity.Property(e => e.DeviceVendor)
  7478. .HasColumnType("varchar(32)")
  7479. .HasCharSet("utf8")
  7480. .HasCollation("utf8_general_ci");
  7481. entity.Property(e => e.ExpressNo)
  7482. .HasColumnType("varchar(32)")
  7483. .HasCharSet("utf8")
  7484. .HasCollation("utf8_general_ci");
  7485. entity.Property(e => e.FromDate).HasColumnType("datetime");
  7486. entity.Property(e => e.FromRemark)
  7487. .HasColumnType("varchar(64)")
  7488. .HasCharSet("utf8")
  7489. .HasCollation("utf8_general_ci");
  7490. entity.Property(e => e.FromUserId).HasColumnType("int(11)");
  7491. entity.Property(e => e.ProductName)
  7492. .HasColumnType("varchar(32)")
  7493. .HasCharSet("utf8")
  7494. .HasCollation("utf8_general_ci");
  7495. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7496. entity.Property(e => e.SeoDescription)
  7497. .HasColumnType("varchar(500)")
  7498. .HasCharSet("utf8")
  7499. .HasCollation("utf8_general_ci");
  7500. entity.Property(e => e.SeoKeyword)
  7501. .HasColumnType("varchar(200)")
  7502. .HasCharSet("utf8")
  7503. .HasCollation("utf8_general_ci");
  7504. entity.Property(e => e.SeoTitle)
  7505. .HasColumnType("varchar(100)")
  7506. .HasCharSet("utf8")
  7507. .HasCollation("utf8_general_ci");
  7508. entity.Property(e => e.SnNo)
  7509. .HasColumnType("varchar(32)")
  7510. .HasCharSet("utf8")
  7511. .HasCollation("utf8_general_ci");
  7512. entity.Property(e => e.SnStatus).HasColumnType("int(11)");
  7513. entity.Property(e => e.SnType).HasColumnType("int(11)");
  7514. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7515. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  7516. entity.Property(e => e.Status).HasColumnType("int(11)");
  7517. entity.Property(e => e.StockOpDirect).HasColumnType("int(11)");
  7518. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  7519. entity.Property(e => e.ToDate).HasColumnType("datetime");
  7520. entity.Property(e => e.ToRemark)
  7521. .HasColumnType("varchar(64)")
  7522. .HasCharSet("utf8")
  7523. .HasCollation("utf8_general_ci");
  7524. entity.Property(e => e.ToStoreId).HasColumnType("int(11)");
  7525. entity.Property(e => e.ToUserId).HasColumnType("int(11)");
  7526. entity.Property(e => e.TransType).HasColumnType("int(11)");
  7527. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7528. entity.Property(e => e.UpdateMan)
  7529. .HasColumnType("varchar(50)")
  7530. .HasCharSet("utf8")
  7531. .HasCollation("utf8_general_ci");
  7532. entity.Property(e => e.Version).HasColumnType("int(11)");
  7533. });
  7534. modelBuilder.Entity<StoreSwapSn>(entity =>
  7535. {
  7536. entity.Property(e => e.Id).HasColumnType("int(11)");
  7537. entity.Property(e => e.ActType).HasColumnType("int(11)");
  7538. entity.Property(e => e.ActTypeDesc)
  7539. .HasColumnType("varchar(64)")
  7540. .HasCharSet("utf8")
  7541. .HasCollation("utf8_general_ci");
  7542. entity.Property(e => e.BizStatus).HasColumnType("int(11)");
  7543. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  7544. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7545. entity.Property(e => e.CreateMan)
  7546. .HasColumnType("varchar(50)")
  7547. .HasCharSet("utf8")
  7548. .HasCollation("utf8_general_ci");
  7549. entity.Property(e => e.PosType)
  7550. .HasColumnType("varchar(32)")
  7551. .HasCharSet("utf8")
  7552. .HasCollation("utf8_general_ci");
  7553. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7554. entity.Property(e => e.Remark)
  7555. .HasColumnType("varchar(128)")
  7556. .HasCharSet("utf8")
  7557. .HasCollation("utf8_general_ci");
  7558. entity.Property(e => e.RiskStatus).HasColumnType("int(11)");
  7559. entity.Property(e => e.SeoDescription)
  7560. .HasColumnType("varchar(500)")
  7561. .HasCharSet("utf8")
  7562. .HasCollation("utf8_general_ci");
  7563. entity.Property(e => e.SeoKeyword)
  7564. .HasColumnType("varchar(200)")
  7565. .HasCharSet("utf8")
  7566. .HasCollation("utf8_general_ci");
  7567. entity.Property(e => e.SeoTitle)
  7568. .HasColumnType("varchar(100)")
  7569. .HasCharSet("utf8")
  7570. .HasCollation("utf8_general_ci");
  7571. entity.Property(e => e.SnNo)
  7572. .HasColumnType("varchar(32)")
  7573. .HasCharSet("utf8")
  7574. .HasCollation("utf8_general_ci");
  7575. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  7576. entity.Property(e => e.SnType).HasColumnType("int(11)");
  7577. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7578. entity.Property(e => e.StandardDate).HasColumnType("datetime");
  7579. entity.Property(e => e.Status).HasColumnType("int(11)");
  7580. entity.Property(e => e.SwapApplyDate).HasColumnType("datetime");
  7581. entity.Property(e => e.SwapApplyOrderNo)
  7582. .HasColumnType("varchar(32)")
  7583. .HasCharSet("utf8")
  7584. .HasCollation("utf8_general_ci");
  7585. entity.Property(e => e.SwapExtProductTypes)
  7586. .HasColumnType("varchar(16)")
  7587. .HasCharSet("utf8")
  7588. .HasCollation("utf8_general_ci");
  7589. entity.Property(e => e.SwapSnNo)
  7590. .HasColumnType("varchar(32)")
  7591. .HasCharSet("utf8")
  7592. .HasCollation("utf8_general_ci");
  7593. entity.Property(e => e.SwapStatus).HasColumnType("int(11)");
  7594. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7595. entity.Property(e => e.UpdateMan)
  7596. .HasColumnType("varchar(50)")
  7597. .HasCharSet("utf8")
  7598. .HasCollation("utf8_general_ci");
  7599. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7600. entity.Property(e => e.Version).HasColumnType("int(11)");
  7601. });
  7602. modelBuilder.Entity<SysAdmin>(entity =>
  7603. {
  7604. entity.Property(e => e.Id).HasColumnType("int(11)");
  7605. entity.Property(e => e.AdminName)
  7606. .HasColumnType("varchar(50)")
  7607. .HasCharSet("utf8")
  7608. .HasCollation("utf8_general_ci");
  7609. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7610. entity.Property(e => e.CreateMan)
  7611. .HasColumnType("varchar(50)")
  7612. .HasCharSet("utf8")
  7613. .HasCollation("utf8_general_ci");
  7614. entity.Property(e => e.LastLoginDate).HasColumnType("datetime");
  7615. entity.Property(e => e.Password)
  7616. .HasColumnType("varchar(32)")
  7617. .HasCharSet("utf8")
  7618. .HasCollation("utf8_general_ci");
  7619. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7620. entity.Property(e => e.RealName)
  7621. .HasColumnType("varchar(50)")
  7622. .HasCharSet("utf8")
  7623. .HasCollation("utf8_general_ci");
  7624. entity.Property(e => e.Role)
  7625. .HasColumnType("varchar(30)")
  7626. .HasCharSet("utf8")
  7627. .HasCollation("utf8_general_ci");
  7628. entity.Property(e => e.SeoDescription)
  7629. .HasColumnType("varchar(500)")
  7630. .HasCharSet("utf8")
  7631. .HasCollation("utf8_general_ci");
  7632. entity.Property(e => e.SeoKeyword)
  7633. .HasColumnType("varchar(200)")
  7634. .HasCharSet("utf8")
  7635. .HasCollation("utf8_general_ci");
  7636. entity.Property(e => e.SeoTitle)
  7637. .HasColumnType("varchar(100)")
  7638. .HasCharSet("utf8")
  7639. .HasCollation("utf8_general_ci");
  7640. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7641. entity.Property(e => e.Status).HasColumnType("int(11)");
  7642. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7643. entity.Property(e => e.UpdateMan)
  7644. .HasColumnType("varchar(50)")
  7645. .HasCharSet("utf8")
  7646. .HasCollation("utf8_general_ci");
  7647. entity.Property(e => e.Version).HasColumnType("int(11)");
  7648. });
  7649. modelBuilder.Entity<SysAdminRole>(entity =>
  7650. {
  7651. entity.Property(e => e.Id).HasColumnType("int(11)");
  7652. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7653. entity.Property(e => e.CreateMan)
  7654. .HasColumnType("varchar(50)")
  7655. .HasCharSet("utf8")
  7656. .HasCollation("utf8_general_ci");
  7657. entity.Property(e => e.Details)
  7658. .HasColumnType("longtext")
  7659. .HasCharSet("utf8")
  7660. .HasCollation("utf8_general_ci");
  7661. entity.Property(e => e.Name)
  7662. .HasColumnType("varchar(50)")
  7663. .HasCharSet("utf8")
  7664. .HasCollation("utf8_general_ci");
  7665. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7666. entity.Property(e => e.RightInfo)
  7667. .HasColumnType("longtext")
  7668. .HasCharSet("utf8")
  7669. .HasCollation("utf8_general_ci");
  7670. entity.Property(e => e.SeoDescription)
  7671. .HasColumnType("varchar(500)")
  7672. .HasCharSet("utf8")
  7673. .HasCollation("utf8_general_ci");
  7674. entity.Property(e => e.SeoKeyword)
  7675. .HasColumnType("varchar(200)")
  7676. .HasCharSet("utf8")
  7677. .HasCollation("utf8_general_ci");
  7678. entity.Property(e => e.SeoTitle)
  7679. .HasColumnType("varchar(100)")
  7680. .HasCharSet("utf8")
  7681. .HasCollation("utf8_general_ci");
  7682. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7683. entity.Property(e => e.Status).HasColumnType("int(11)");
  7684. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7685. entity.Property(e => e.UpdateMan)
  7686. .HasColumnType("varchar(50)")
  7687. .HasCharSet("utf8")
  7688. .HasCollation("utf8_general_ci");
  7689. entity.Property(e => e.Version).HasColumnType("int(11)");
  7690. });
  7691. modelBuilder.Entity<SysLog>(entity =>
  7692. {
  7693. entity.Property(e => e.Id).HasColumnType("int(11)");
  7694. entity.Property(e => e.Contents)
  7695. .HasColumnType("varchar(200)")
  7696. .HasCharSet("utf8")
  7697. .HasCollation("utf8_general_ci");
  7698. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7699. entity.Property(e => e.CreateMan)
  7700. .HasColumnType("varchar(50)")
  7701. .HasCharSet("utf8")
  7702. .HasCollation("utf8_general_ci");
  7703. });
  7704. modelBuilder.Entity<SysRechargeRecord>(entity =>
  7705. {
  7706. entity.Property(e => e.Id).HasColumnType("int(11)");
  7707. entity.Property(e => e.Amount).HasColumnType("decimal(18,2)");
  7708. entity.Property(e => e.BatchCode)
  7709. .HasColumnType("varchar(32)")
  7710. .HasCharSet("utf8")
  7711. .HasCollation("utf8_general_ci");
  7712. entity.Property(e => e.BizTime).HasColumnType("datetime");
  7713. entity.Property(e => e.BizType).HasColumnType("int(11)");
  7714. entity.Property(e => e.ClientIp)
  7715. .HasColumnType("varchar(15)")
  7716. .HasCharSet("utf8")
  7717. .HasCollation("utf8_general_ci");
  7718. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7719. entity.Property(e => e.CreateMan)
  7720. .HasColumnType("varchar(50)")
  7721. .HasCharSet("utf8")
  7722. .HasCollation("utf8_general_ci");
  7723. entity.Property(e => e.PartnerTradeNo)
  7724. .HasColumnType("varchar(32)")
  7725. .HasCharSet("utf8")
  7726. .HasCollation("utf8_general_ci");
  7727. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  7728. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7729. entity.Property(e => e.RechargeRecNo)
  7730. .HasColumnType("varchar(32)")
  7731. .HasCharSet("utf8")
  7732. .HasCollation("utf8_general_ci");
  7733. entity.Property(e => e.SeoDescription)
  7734. .HasColumnType("varchar(500)")
  7735. .HasCharSet("utf8")
  7736. .HasCollation("utf8_general_ci");
  7737. entity.Property(e => e.SeoKeyword)
  7738. .HasColumnType("varchar(200)")
  7739. .HasCharSet("utf8")
  7740. .HasCollation("utf8_general_ci");
  7741. entity.Property(e => e.SeoTitle)
  7742. .HasColumnType("varchar(100)")
  7743. .HasCharSet("utf8")
  7744. .HasCollation("utf8_general_ci");
  7745. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7746. entity.Property(e => e.Status).HasColumnType("int(11)");
  7747. entity.Property(e => e.SyncStatus).HasColumnType("int(11)");
  7748. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7749. entity.Property(e => e.UpdateMan)
  7750. .HasColumnType("varchar(50)")
  7751. .HasCharSet("utf8")
  7752. .HasCollation("utf8_general_ci");
  7753. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7754. entity.Property(e => e.Version).HasColumnType("int(11)");
  7755. });
  7756. modelBuilder.Entity<SystemSet>(entity =>
  7757. {
  7758. entity.Property(e => e.Id).HasColumnType("int(11)");
  7759. entity.Property(e => e.Address)
  7760. .HasColumnType("varchar(100)")
  7761. .HasCharSet("utf8")
  7762. .HasCollation("utf8_general_ci");
  7763. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7764. entity.Property(e => e.CreateMan)
  7765. .HasColumnType("varchar(50)")
  7766. .HasCharSet("utf8")
  7767. .HasCollation("utf8_general_ci");
  7768. entity.Property(e => e.IndexDescription)
  7769. .HasColumnType("longtext")
  7770. .HasCharSet("utf8")
  7771. .HasCollation("utf8_general_ci");
  7772. entity.Property(e => e.IndexKeyword)
  7773. .HasColumnType("varchar(200)")
  7774. .HasCharSet("utf8")
  7775. .HasCollation("utf8_general_ci");
  7776. entity.Property(e => e.Logo)
  7777. .HasColumnType("varchar(200)")
  7778. .HasCharSet("utf8")
  7779. .HasCollation("utf8_general_ci");
  7780. entity.Property(e => e.Phone)
  7781. .HasColumnType("varchar(100)")
  7782. .HasCharSet("utf8")
  7783. .HasCollation("utf8_general_ci");
  7784. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7785. entity.Property(e => e.RightInfo)
  7786. .HasColumnType("longtext")
  7787. .HasCharSet("utf8")
  7788. .HasCollation("utf8_general_ci");
  7789. entity.Property(e => e.SeoDescription)
  7790. .HasColumnType("varchar(500)")
  7791. .HasCharSet("utf8")
  7792. .HasCollation("utf8_general_ci");
  7793. entity.Property(e => e.SeoKeyword)
  7794. .HasColumnType("varchar(200)")
  7795. .HasCharSet("utf8")
  7796. .HasCollation("utf8_general_ci");
  7797. entity.Property(e => e.SeoTitle)
  7798. .HasColumnType("varchar(100)")
  7799. .HasCharSet("utf8")
  7800. .HasCollation("utf8_general_ci");
  7801. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7802. entity.Property(e => e.StartAdPhoto)
  7803. .HasColumnType("varchar(200)")
  7804. .HasCharSet("utf8")
  7805. .HasCollation("utf8_general_ci");
  7806. entity.Property(e => e.Status).HasColumnType("int(11)");
  7807. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7808. entity.Property(e => e.UpdateMan)
  7809. .HasColumnType("varchar(50)")
  7810. .HasCharSet("utf8")
  7811. .HasCollation("utf8_general_ci");
  7812. entity.Property(e => e.UploadAutoWater)
  7813. .HasColumnType("bit(1)")
  7814. .HasDefaultValueSql("b'0'");
  7815. entity.Property(e => e.UploadAutoZoom)
  7816. .HasColumnType("bit(1)")
  7817. .HasDefaultValueSql("b'0'");
  7818. entity.Property(e => e.UploadAutoZoomHeight).HasColumnType("int(11)");
  7819. entity.Property(e => e.UploadAutoZoomQuality).HasColumnType("int(11)");
  7820. entity.Property(e => e.UploadAutoZoomWidth).HasColumnType("int(11)");
  7821. entity.Property(e => e.UploadExt)
  7822. .HasColumnType("varchar(100)")
  7823. .HasCharSet("utf8")
  7824. .HasCollation("utf8_general_ci");
  7825. entity.Property(e => e.UploadMaxSize).HasColumnType("int(11)");
  7826. entity.Property(e => e.UploadOss)
  7827. .HasColumnType("bit(1)")
  7828. .HasDefaultValueSql("b'0'");
  7829. entity.Property(e => e.UploadWaterPath)
  7830. .HasColumnType("varchar(200)")
  7831. .HasCharSet("utf8")
  7832. .HasCollation("utf8_general_ci");
  7833. entity.Property(e => e.UploadWaterPosition)
  7834. .HasColumnType("varchar(15)")
  7835. .HasCharSet("utf8")
  7836. .HasCollation("utf8_general_ci");
  7837. entity.Property(e => e.Version).HasColumnType("int(11)");
  7838. entity.Property(e => e.WebName)
  7839. .HasColumnType("varchar(50)")
  7840. .HasCharSet("utf8")
  7841. .HasCollation("utf8_general_ci");
  7842. entity.Property(e => e.WebStatCode)
  7843. .HasColumnType("longtext")
  7844. .HasCharSet("utf8")
  7845. .HasCollation("utf8_general_ci");
  7846. entity.Property(e => e.WebUrl)
  7847. .HasColumnType("varchar(200)")
  7848. .HasCharSet("utf8")
  7849. .HasCollation("utf8_general_ci");
  7850. });
  7851. modelBuilder.Entity<TeamApply>(entity =>
  7852. {
  7853. entity.Property(e => e.Id).HasColumnType("int(11)");
  7854. entity.Property(e => e.Areas)
  7855. .HasColumnType("varchar(30)")
  7856. .HasCharSet("utf8")
  7857. .HasCollation("utf8_general_ci");
  7858. entity.Property(e => e.AuditRemark)
  7859. .HasColumnType("varchar(64)")
  7860. .HasCharSet("utf8")
  7861. .HasCollation("utf8_general_ci");
  7862. entity.Property(e => e.AuditResult).HasColumnType("int(11)");
  7863. entity.Property(e => e.AuditTime).HasColumnType("datetime");
  7864. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7865. entity.Property(e => e.CreateMan)
  7866. .HasColumnType("varchar(50)")
  7867. .HasCharSet("utf8")
  7868. .HasCollation("utf8_general_ci");
  7869. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  7870. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  7871. entity.Property(e => e.EnterEndDate).HasColumnType("datetime");
  7872. entity.Property(e => e.EnterStartDate).HasColumnType("datetime");
  7873. entity.Property(e => e.ManagerName)
  7874. .HasColumnType("varchar(32)")
  7875. .HasCharSet("utf8")
  7876. .HasCollation("utf8_general_ci");
  7877. entity.Property(e => e.ManagerNo)
  7878. .HasColumnType("varchar(32)")
  7879. .HasCharSet("utf8")
  7880. .HasCollation("utf8_general_ci");
  7881. entity.Property(e => e.MaxUserNum).HasColumnType("int(11)");
  7882. entity.Property(e => e.MinUserNum).HasColumnType("int(11)");
  7883. entity.Property(e => e.NotifyFlag).HasColumnType("int(11)");
  7884. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7885. entity.Property(e => e.Remark)
  7886. .HasColumnType("varchar(64)")
  7887. .HasCharSet("utf8")
  7888. .HasCollation("utf8_general_ci");
  7889. entity.Property(e => e.SeoDescription)
  7890. .HasColumnType("varchar(500)")
  7891. .HasCharSet("utf8")
  7892. .HasCollation("utf8_general_ci");
  7893. entity.Property(e => e.SeoKeyword)
  7894. .HasColumnType("varchar(200)")
  7895. .HasCharSet("utf8")
  7896. .HasCollation("utf8_general_ci");
  7897. entity.Property(e => e.SeoTitle)
  7898. .HasColumnType("varchar(100)")
  7899. .HasCharSet("utf8")
  7900. .HasCollation("utf8_general_ci");
  7901. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7902. entity.Property(e => e.Status).HasColumnType("int(11)");
  7903. entity.Property(e => e.TeamName)
  7904. .HasColumnType("varchar(32)")
  7905. .HasCharSet("utf8")
  7906. .HasCollation("utf8_general_ci");
  7907. entity.Property(e => e.TeamNo)
  7908. .HasColumnType("varchar(32)")
  7909. .HasCharSet("utf8")
  7910. .HasCollation("utf8_general_ci");
  7911. entity.Property(e => e.TeamStatus).HasColumnType("int(11)");
  7912. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7913. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7914. entity.Property(e => e.UpdateMan)
  7915. .HasColumnType("varchar(50)")
  7916. .HasCharSet("utf8")
  7917. .HasCollation("utf8_general_ci");
  7918. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7919. entity.Property(e => e.Version).HasColumnType("int(11)");
  7920. entity.Property(e => e.WatchWord)
  7921. .HasColumnType("varchar(32)")
  7922. .HasCharSet("utf8")
  7923. .HasCollation("utf8_general_ci");
  7924. });
  7925. modelBuilder.Entity<TeamApplyForTeamName>(entity =>
  7926. {
  7927. entity.HasKey(e => e.TeamName)
  7928. .HasName("PRIMARY");
  7929. entity.Property(e => e.TeamName)
  7930. .HasColumnType("varchar(32)")
  7931. .HasCharSet("utf8")
  7932. .HasCollation("utf8_general_ci");
  7933. entity.Property(e => e.TeamId).HasColumnType("int(11)");
  7934. });
  7935. modelBuilder.Entity<TeamApplyForTeamNo>(entity =>
  7936. {
  7937. entity.HasKey(e => e.TeamNo)
  7938. .HasName("PRIMARY");
  7939. entity.Property(e => e.TeamNo)
  7940. .HasColumnType("varchar(32)")
  7941. .HasCharSet("utf8")
  7942. .HasCollation("utf8_general_ci");
  7943. entity.Property(e => e.TeamId).HasColumnType("int(11)");
  7944. });
  7945. modelBuilder.Entity<TeamBlackList>(entity =>
  7946. {
  7947. entity.Property(e => e.Id).HasColumnType("int(11)");
  7948. entity.Property(e => e.BlackStatus).HasColumnType("int(11)");
  7949. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7950. entity.Property(e => e.CreateMan)
  7951. .HasColumnType("varchar(50)")
  7952. .HasCharSet("utf8")
  7953. .HasCollation("utf8_general_ci");
  7954. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  7955. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  7956. entity.Property(e => e.ManagerName)
  7957. .HasColumnType("varchar(32)")
  7958. .HasCharSet("utf8")
  7959. .HasCollation("utf8_general_ci");
  7960. entity.Property(e => e.ManagerNo)
  7961. .HasColumnType("varchar(32)")
  7962. .HasCharSet("utf8")
  7963. .HasCollation("utf8_general_ci");
  7964. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7965. entity.Property(e => e.Remark)
  7966. .HasColumnType("varchar(64)")
  7967. .HasCharSet("utf8")
  7968. .HasCollation("utf8_general_ci");
  7969. entity.Property(e => e.SeoDescription)
  7970. .HasColumnType("varchar(500)")
  7971. .HasCharSet("utf8")
  7972. .HasCollation("utf8_general_ci");
  7973. entity.Property(e => e.SeoKeyword)
  7974. .HasColumnType("varchar(200)")
  7975. .HasCharSet("utf8")
  7976. .HasCollation("utf8_general_ci");
  7977. entity.Property(e => e.SeoTitle)
  7978. .HasColumnType("varchar(100)")
  7979. .HasCharSet("utf8")
  7980. .HasCollation("utf8_general_ci");
  7981. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7982. entity.Property(e => e.Status).HasColumnType("int(11)");
  7983. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7984. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7985. entity.Property(e => e.UpdateMan)
  7986. .HasColumnType("varchar(50)")
  7987. .HasCharSet("utf8")
  7988. .HasCollation("utf8_general_ci");
  7989. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7990. entity.Property(e => e.Version).HasColumnType("int(11)");
  7991. });
  7992. modelBuilder.Entity<TeamConfig>(entity =>
  7993. {
  7994. entity.Property(e => e.Id).HasColumnType("int(11)");
  7995. entity.Property(e => e.BlacklistCycle).HasColumnType("int(11)");
  7996. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7997. entity.Property(e => e.CreateMan)
  7998. .HasColumnType("varchar(50)")
  7999. .HasCharSet("utf8")
  8000. .HasCollation("utf8_general_ci");
  8001. entity.Property(e => e.EnterEndMin).HasColumnType("int(11)");
  8002. entity.Property(e => e.LimitBuddyNo)
  8003. .HasColumnType("varchar(128)")
  8004. .HasCharSet("utf8")
  8005. .HasCollation("utf8_general_ci");
  8006. entity.Property(e => e.MaxCycleNum).HasColumnType("int(11)");
  8007. entity.Property(e => e.MaxStartDayLimit).HasColumnType("int(11)");
  8008. entity.Property(e => e.MaxUserNum).HasColumnType("int(11)");
  8009. entity.Property(e => e.MinCycleNum).HasColumnType("int(11)");
  8010. entity.Property(e => e.MinStartDayLimit).HasColumnType("int(11)");
  8011. entity.Property(e => e.MinUserNum).HasColumnType("int(11)");
  8012. entity.Property(e => e.OverlineStatus)
  8013. .HasColumnType("bit(1)")
  8014. .HasDefaultValueSql("b'0'");
  8015. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8016. entity.Property(e => e.Remark)
  8017. .HasColumnType("varchar(64)")
  8018. .HasCharSet("utf8")
  8019. .HasCollation("utf8_general_ci");
  8020. entity.Property(e => e.SeoDescription)
  8021. .HasColumnType("varchar(500)")
  8022. .HasCharSet("utf8")
  8023. .HasCollation("utf8_general_ci");
  8024. entity.Property(e => e.SeoKeyword)
  8025. .HasColumnType("varchar(200)")
  8026. .HasCharSet("utf8")
  8027. .HasCollation("utf8_general_ci");
  8028. entity.Property(e => e.SeoTitle)
  8029. .HasColumnType("varchar(100)")
  8030. .HasCharSet("utf8")
  8031. .HasCollation("utf8_general_ci");
  8032. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8033. entity.Property(e => e.Status).HasColumnType("int(11)");
  8034. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8035. entity.Property(e => e.UpdateMan)
  8036. .HasColumnType("varchar(50)")
  8037. .HasCharSet("utf8")
  8038. .HasCollation("utf8_general_ci");
  8039. entity.Property(e => e.Version).HasColumnType("int(11)");
  8040. });
  8041. modelBuilder.Entity<TeamDayTop>(entity =>
  8042. {
  8043. entity.Property(e => e.Id).HasColumnType("int(11)");
  8044. entity.Property(e => e.ActMerNum).HasColumnType("int(11)");
  8045. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  8046. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8047. entity.Property(e => e.CreateMan)
  8048. .HasColumnType("varchar(50)")
  8049. .HasCharSet("utf8")
  8050. .HasCollation("utf8_general_ci");
  8051. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8052. entity.Property(e => e.Remark)
  8053. .HasColumnType("varchar(64)")
  8054. .HasCharSet("utf8")
  8055. .HasCollation("utf8_general_ci");
  8056. entity.Property(e => e.SeoDescription)
  8057. .HasColumnType("varchar(500)")
  8058. .HasCharSet("utf8")
  8059. .HasCollation("utf8_general_ci");
  8060. entity.Property(e => e.SeoKeyword)
  8061. .HasColumnType("varchar(200)")
  8062. .HasCharSet("utf8")
  8063. .HasCollation("utf8_general_ci");
  8064. entity.Property(e => e.SeoTitle)
  8065. .HasColumnType("varchar(100)")
  8066. .HasCharSet("utf8")
  8067. .HasCollation("utf8_general_ci");
  8068. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8069. entity.Property(e => e.StatDate)
  8070. .HasColumnType("varchar(8)")
  8071. .HasCharSet("utf8")
  8072. .HasCollation("utf8_general_ci");
  8073. entity.Property(e => e.StatMonth)
  8074. .HasColumnType("varchar(6)")
  8075. .HasCharSet("utf8")
  8076. .HasCollation("utf8_general_ci");
  8077. entity.Property(e => e.Status).HasColumnType("int(11)");
  8078. entity.Property(e => e.TeamActMerNum).HasColumnType("int(11)");
  8079. entity.Property(e => e.TeamEndDate).HasColumnType("datetime");
  8080. entity.Property(e => e.TeamId).HasColumnType("int(11)");
  8081. entity.Property(e => e.TeamStartDate).HasColumnType("datetime");
  8082. entity.Property(e => e.TeamUserId).HasColumnType("int(11)");
  8083. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  8084. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8085. entity.Property(e => e.UpdateMan)
  8086. .HasColumnType("varchar(50)")
  8087. .HasCharSet("utf8")
  8088. .HasCollation("utf8_general_ci");
  8089. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8090. entity.Property(e => e.Version).HasColumnType("int(11)");
  8091. });
  8092. modelBuilder.Entity<TeamOfferApply>(entity =>
  8093. {
  8094. entity.Property(e => e.Id).HasColumnType("int(11)");
  8095. entity.Property(e => e.Areas)
  8096. .HasColumnType("varchar(30)")
  8097. .HasCharSet("utf8")
  8098. .HasCollation("utf8_general_ci");
  8099. entity.Property(e => e.AuditRemark)
  8100. .HasColumnType("varchar(64)")
  8101. .HasCharSet("utf8")
  8102. .HasCollation("utf8_general_ci");
  8103. entity.Property(e => e.AuditResult).HasColumnType("int(11)");
  8104. entity.Property(e => e.AuditTime).HasColumnType("datetime");
  8105. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8106. entity.Property(e => e.CreateMan)
  8107. .HasColumnType("varchar(50)")
  8108. .HasCharSet("utf8")
  8109. .HasCollation("utf8_general_ci");
  8110. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  8111. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  8112. entity.Property(e => e.EnterDate).HasColumnType("datetime");
  8113. entity.Property(e => e.ManagerName)
  8114. .HasColumnType("varchar(32)")
  8115. .HasCharSet("utf8")
  8116. .HasCollation("utf8_general_ci");
  8117. entity.Property(e => e.ManagerNo)
  8118. .HasColumnType("varchar(32)")
  8119. .HasCharSet("utf8")
  8120. .HasCollation("utf8_general_ci");
  8121. entity.Property(e => e.NotifyFlag).HasColumnType("int(11)");
  8122. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8123. entity.Property(e => e.Remark)
  8124. .HasColumnType("varchar(64)")
  8125. .HasCharSet("utf8")
  8126. .HasCollation("utf8_general_ci");
  8127. entity.Property(e => e.SeoDescription)
  8128. .HasColumnType("varchar(500)")
  8129. .HasCharSet("utf8")
  8130. .HasCollation("utf8_general_ci");
  8131. entity.Property(e => e.SeoKeyword)
  8132. .HasColumnType("varchar(200)")
  8133. .HasCharSet("utf8")
  8134. .HasCollation("utf8_general_ci");
  8135. entity.Property(e => e.SeoTitle)
  8136. .HasColumnType("varchar(100)")
  8137. .HasCharSet("utf8")
  8138. .HasCollation("utf8_general_ci");
  8139. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8140. entity.Property(e => e.Status).HasColumnType("int(11)");
  8141. entity.Property(e => e.TeamApplyStatus).HasColumnType("int(11)");
  8142. entity.Property(e => e.TeamId).HasColumnType("int(11)");
  8143. entity.Property(e => e.TeamLeader).HasColumnType("int(11)");
  8144. entity.Property(e => e.TeamStatus).HasColumnType("int(11)");
  8145. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  8146. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8147. entity.Property(e => e.UpdateMan)
  8148. .HasColumnType("varchar(50)")
  8149. .HasCharSet("utf8")
  8150. .HasCollation("utf8_general_ci");
  8151. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8152. entity.Property(e => e.Version).HasColumnType("int(11)");
  8153. });
  8154. modelBuilder.Entity<TeamPersonDayTop>(entity =>
  8155. {
  8156. entity.Property(e => e.Id).HasColumnType("int(11)");
  8157. entity.Property(e => e.ActMerNum).HasColumnType("int(11)");
  8158. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  8159. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8160. entity.Property(e => e.CreateMan)
  8161. .HasColumnType("varchar(50)")
  8162. .HasCharSet("utf8")
  8163. .HasCollation("utf8_general_ci");
  8164. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8165. entity.Property(e => e.Remark)
  8166. .HasColumnType("varchar(64)")
  8167. .HasCharSet("utf8")
  8168. .HasCollation("utf8_general_ci");
  8169. entity.Property(e => e.SeoDescription)
  8170. .HasColumnType("varchar(500)")
  8171. .HasCharSet("utf8")
  8172. .HasCollation("utf8_general_ci");
  8173. entity.Property(e => e.SeoKeyword)
  8174. .HasColumnType("varchar(200)")
  8175. .HasCharSet("utf8")
  8176. .HasCollation("utf8_general_ci");
  8177. entity.Property(e => e.SeoTitle)
  8178. .HasColumnType("varchar(100)")
  8179. .HasCharSet("utf8")
  8180. .HasCollation("utf8_general_ci");
  8181. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8182. entity.Property(e => e.StatDate)
  8183. .HasColumnType("varchar(8)")
  8184. .HasCharSet("utf8")
  8185. .HasCollation("utf8_general_ci");
  8186. entity.Property(e => e.StatMonth)
  8187. .HasColumnType("varchar(6)")
  8188. .HasCharSet("utf8")
  8189. .HasCollation("utf8_general_ci");
  8190. entity.Property(e => e.Status).HasColumnType("int(11)");
  8191. entity.Property(e => e.TeamActMerNum).HasColumnType("int(11)");
  8192. entity.Property(e => e.TeamEndDate).HasColumnType("datetime");
  8193. entity.Property(e => e.TeamId).HasColumnType("int(11)");
  8194. entity.Property(e => e.TeamStartDate).HasColumnType("datetime");
  8195. entity.Property(e => e.TeamUserId).HasColumnType("int(11)");
  8196. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  8197. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8198. entity.Property(e => e.UpdateMan)
  8199. .HasColumnType("varchar(50)")
  8200. .HasCharSet("utf8")
  8201. .HasCollation("utf8_general_ci");
  8202. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8203. entity.Property(e => e.Version).HasColumnType("int(11)");
  8204. });
  8205. modelBuilder.Entity<TmpCert>(entity =>
  8206. {
  8207. entity.HasKey(e => e.MakerCode)
  8208. .HasName("PRIMARY");
  8209. entity.Property(e => e.MakerCode)
  8210. .HasColumnType("varchar(50)")
  8211. .HasCharSet("latin1")
  8212. .HasCollation("latin1_swedish_ci");
  8213. entity.Property(e => e.CertId)
  8214. .HasColumnType("varchar(50)")
  8215. .HasCharSet("latin1")
  8216. .HasCollation("latin1_swedish_ci");
  8217. });
  8218. modelBuilder.Entity<TmpTradeNo>(entity =>
  8219. {
  8220. entity.HasKey(e => e.RecordNo)
  8221. .HasName("PRIMARY");
  8222. entity.Property(e => e.RecordNo)
  8223. .HasColumnType("varchar(50)")
  8224. .HasCharSet("latin1")
  8225. .HasCollation("latin1_swedish_ci");
  8226. });
  8227. modelBuilder.Entity<TradeDaySummary>(entity =>
  8228. {
  8229. entity.HasIndex(e => new { e.UserId, e.TradeMonth, e.TradeDate, e.BrandId, e.QueryCount, e.VipFlag, e.PayType, e.SeoTitle })
  8230. .HasName("TradeDaySummaryIndex");
  8231. entity.Property(e => e.Id).HasColumnType("int(11)");
  8232. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  8233. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8234. entity.Property(e => e.CreateMan)
  8235. .HasColumnType("varchar(50)")
  8236. .HasCharSet("utf8")
  8237. .HasCollation("utf8_general_ci");
  8238. entity.Property(e => e.HelpDirectCreditTradeAmt).HasColumnType("decimal(18,2)");
  8239. entity.Property(e => e.HelpDirectDebitCapNum).HasColumnType("decimal(18,2)");
  8240. entity.Property(e => e.HelpDirectDebitCapTradeAmt).HasColumnType("decimal(18,2)");
  8241. entity.Property(e => e.HelpDirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  8242. entity.Property(e => e.HelpDirectNonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  8243. entity.Property(e => e.HelpDirectNonQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  8244. entity.Property(e => e.HelpDirectQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  8245. entity.Property(e => e.HelpDirectQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  8246. entity.Property(e => e.HelpDirectTradeAmt).HasColumnType("decimal(18,2)");
  8247. entity.Property(e => e.HelpNonDirectCreditTradeAmt).HasColumnType("decimal(18,2)");
  8248. entity.Property(e => e.HelpNonDirectDebitCapNum).HasColumnType("decimal(18,2)");
  8249. entity.Property(e => e.HelpNonDirectDebitCapTradeAmt).HasColumnType("decimal(18,2)");
  8250. entity.Property(e => e.HelpNonDirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  8251. entity.Property(e => e.HelpNonDirectNonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  8252. entity.Property(e => e.HelpNonDirectNonQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  8253. entity.Property(e => e.HelpNonDirectQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  8254. entity.Property(e => e.HelpNonDirectQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  8255. entity.Property(e => e.HelpNonDirectTradeAmt).HasColumnType("decimal(18,2)");
  8256. entity.Property(e => e.MgrName)
  8257. .HasColumnType("varchar(32)")
  8258. .HasCharSet("utf8")
  8259. .HasCollation("utf8_general_ci");
  8260. entity.Property(e => e.MgrNo)
  8261. .HasColumnType("varchar(16)")
  8262. .HasCharSet("utf8")
  8263. .HasCollation("utf8_general_ci");
  8264. entity.Property(e => e.NotHelpDirectCreditTradeAmt).HasColumnType("decimal(18,2)");
  8265. entity.Property(e => e.NotHelpDirectDebitCapNum).HasColumnType("int(11)");
  8266. entity.Property(e => e.NotHelpDirectDebitCapTradeAmt).HasColumnType("decimal(18,2)");
  8267. entity.Property(e => e.NotHelpDirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  8268. entity.Property(e => e.NotHelpDirectNonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  8269. entity.Property(e => e.NotHelpDirectNonQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  8270. entity.Property(e => e.NotHelpDirectQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  8271. entity.Property(e => e.NotHelpDirectQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  8272. entity.Property(e => e.NotHelpDirectTradeAmt).HasColumnType("decimal(18,2)");
  8273. entity.Property(e => e.NotHelpNonDirectCreditTradeAmt).HasColumnType("decimal(18,2)");
  8274. entity.Property(e => e.NotHelpNonDirectDebitCapNum).HasColumnType("int(11)");
  8275. entity.Property(e => e.NotHelpNonDirectDebitCapTradeAmt).HasColumnType("decimal(18,2)");
  8276. entity.Property(e => e.NotHelpNonDirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  8277. entity.Property(e => e.NotHelpNonDirectNonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  8278. entity.Property(e => e.NotHelpNonDirectNonQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  8279. entity.Property(e => e.NotHelpNonDirectQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  8280. entity.Property(e => e.NotHelpNonDirectQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  8281. entity.Property(e => e.NotHelpNonDirectTradeAmt).HasColumnType("decimal(18,2)");
  8282. entity.Property(e => e.PayType).HasColumnType("int(11)");
  8283. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8284. entity.Property(e => e.SeoDescription)
  8285. .HasColumnType("varchar(500)")
  8286. .HasCharSet("utf8")
  8287. .HasCollation("utf8_general_ci");
  8288. entity.Property(e => e.SeoKeyword)
  8289. .HasColumnType("varchar(200)")
  8290. .HasCharSet("utf8")
  8291. .HasCollation("utf8_general_ci");
  8292. entity.Property(e => e.SeoTitle)
  8293. .HasColumnType("varchar(100)")
  8294. .HasCharSet("utf8")
  8295. .HasCollation("utf8_general_ci");
  8296. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8297. entity.Property(e => e.Status).HasColumnType("int(11)");
  8298. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  8299. entity.Property(e => e.TradeDate)
  8300. .HasColumnType("varchar(8)")
  8301. .HasCharSet("utf8")
  8302. .HasCollation("utf8_general_ci");
  8303. entity.Property(e => e.TradeMonth)
  8304. .HasColumnType("varchar(6)")
  8305. .HasCharSet("utf8")
  8306. .HasCollation("utf8_general_ci");
  8307. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8308. entity.Property(e => e.UpdateMan)
  8309. .HasColumnType("varchar(50)")
  8310. .HasCharSet("utf8")
  8311. .HasCollation("utf8_general_ci");
  8312. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8313. entity.Property(e => e.Version).HasColumnType("int(11)");
  8314. entity.Property(e => e.VipFlag).HasColumnType("int(11)");
  8315. });
  8316. modelBuilder.Entity<TradeRecord>(entity =>
  8317. {
  8318. entity.Property(e => e.Id).HasColumnType("int(11)");
  8319. entity.Property(e => e.BankCardType).HasColumnType("int(11)");
  8320. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  8321. entity.Property(e => e.CapFlag).HasColumnType("int(11)");
  8322. entity.Property(e => e.ClearDate).HasColumnType("datetime");
  8323. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8324. entity.Property(e => e.CreateMan)
  8325. .HasColumnType("varchar(50)")
  8326. .HasCharSet("utf8")
  8327. .HasCollation("utf8_general_ci");
  8328. entity.Property(e => e.DirectFlag)
  8329. .HasColumnType("bit(1)")
  8330. .HasDefaultValueSql("b'0'");
  8331. entity.Property(e => e.HelpMonthCount).HasColumnType("int(11)");
  8332. entity.Property(e => e.MerBuddyType).HasColumnType("int(11)");
  8333. entity.Property(e => e.MerHelpFlag)
  8334. .HasColumnType("bit(1)")
  8335. .HasDefaultValueSql("b'0'");
  8336. entity.Property(e => e.MerNo)
  8337. .HasColumnType("varchar(32)")
  8338. .HasCharSet("utf8")
  8339. .HasCollation("utf8_general_ci");
  8340. entity.Property(e => e.MerUserId).HasColumnType("int(11)");
  8341. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  8342. entity.Property(e => e.ParentNav)
  8343. .HasColumnType("mediumtext")
  8344. .HasCharSet("utf8")
  8345. .HasCollation("utf8_general_ci");
  8346. entity.Property(e => e.PayType).HasColumnType("int(11)");
  8347. entity.Property(e => e.QrPayFlag).HasColumnType("int(11)");
  8348. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8349. entity.Property(e => e.RecordNo)
  8350. .HasColumnType("varchar(50)")
  8351. .HasCharSet("utf8")
  8352. .HasCollation("utf8_general_ci");
  8353. entity.Property(e => e.Remark)
  8354. .HasColumnType("varchar(64)")
  8355. .HasCharSet("utf8")
  8356. .HasCollation("utf8_general_ci");
  8357. entity.Property(e => e.SeoDescription)
  8358. .HasColumnType("varchar(500)")
  8359. .HasCharSet("utf8")
  8360. .HasCollation("utf8_general_ci");
  8361. entity.Property(e => e.SeoKeyword)
  8362. .HasColumnType("varchar(200)")
  8363. .HasCharSet("utf8")
  8364. .HasCollation("utf8_general_ci");
  8365. entity.Property(e => e.SeoTitle)
  8366. .HasColumnType("varchar(100)")
  8367. .HasCharSet("utf8")
  8368. .HasCollation("utf8_general_ci");
  8369. entity.Property(e => e.SnNo)
  8370. .HasColumnType("varchar(32)")
  8371. .HasCharSet("utf8")
  8372. .HasCollation("utf8_general_ci");
  8373. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8374. entity.Property(e => e.Status).HasColumnType("int(11)");
  8375. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  8376. entity.Property(e => e.TradeAmount).HasColumnType("decimal(18,2)");
  8377. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  8378. entity.Property(e => e.TradeSerialNo)
  8379. .HasColumnType("varchar(48)")
  8380. .HasCharSet("utf8")
  8381. .HasCollation("utf8_general_ci");
  8382. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8383. entity.Property(e => e.UpdateMan)
  8384. .HasColumnType("varchar(50)")
  8385. .HasCharSet("utf8")
  8386. .HasCollation("utf8_general_ci");
  8387. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8388. entity.Property(e => e.Version).HasColumnType("int(11)");
  8389. entity.Property(e => e.VipFlag).HasColumnType("int(11)");
  8390. });
  8391. modelBuilder.Entity<TradeRecordTest>(entity =>
  8392. {
  8393. entity.Property(e => e.Id).HasColumnType("int(11)");
  8394. entity.Property(e => e.BankCardType).HasColumnType("int(11)");
  8395. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  8396. entity.Property(e => e.CapFlag).HasColumnType("int(11)");
  8397. entity.Property(e => e.ClearDate).HasColumnType("datetime");
  8398. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8399. entity.Property(e => e.CreateMan)
  8400. .HasColumnType("varchar(50)")
  8401. .HasCharSet("utf8")
  8402. .HasCollation("utf8_general_ci");
  8403. entity.Property(e => e.DirectFlag)
  8404. .HasColumnType("bit(1)")
  8405. .HasDefaultValueSql("b'0'");
  8406. entity.Property(e => e.HelpMonthCount).HasColumnType("int(11)");
  8407. entity.Property(e => e.MerBuddyType).HasColumnType("int(11)");
  8408. entity.Property(e => e.MerHelpFlag)
  8409. .HasColumnType("bit(1)")
  8410. .HasDefaultValueSql("b'0'");
  8411. entity.Property(e => e.MerNo)
  8412. .HasColumnType("varchar(32)")
  8413. .HasCharSet("utf8")
  8414. .HasCollation("utf8_general_ci");
  8415. entity.Property(e => e.MerUserId).HasColumnType("int(11)");
  8416. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  8417. entity.Property(e => e.QrPayFlag).HasColumnType("int(11)");
  8418. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8419. entity.Property(e => e.RecordNo)
  8420. .HasColumnType("varchar(100)")
  8421. .HasCharSet("utf8")
  8422. .HasCollation("utf8_general_ci");
  8423. entity.Property(e => e.Remark)
  8424. .HasColumnType("varchar(64)")
  8425. .HasCharSet("utf8")
  8426. .HasCollation("utf8_general_ci");
  8427. entity.Property(e => e.SeoDescription)
  8428. .HasColumnType("varchar(500)")
  8429. .HasCharSet("utf8")
  8430. .HasCollation("utf8_general_ci");
  8431. entity.Property(e => e.SeoKeyword)
  8432. .HasColumnType("varchar(200)")
  8433. .HasCharSet("utf8")
  8434. .HasCollation("utf8_general_ci");
  8435. entity.Property(e => e.SeoTitle)
  8436. .HasColumnType("varchar(100)")
  8437. .HasCharSet("utf8")
  8438. .HasCollation("utf8_general_ci");
  8439. entity.Property(e => e.SnNo)
  8440. .HasColumnType("varchar(32)")
  8441. .HasCharSet("utf8")
  8442. .HasCollation("utf8_general_ci");
  8443. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8444. entity.Property(e => e.Status).HasColumnType("int(11)");
  8445. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  8446. entity.Property(e => e.TradeAmount).HasColumnType("decimal(18,2)");
  8447. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  8448. entity.Property(e => e.TradeSerialNo)
  8449. .HasColumnType("varchar(48)")
  8450. .HasCharSet("utf8")
  8451. .HasCollation("utf8_general_ci");
  8452. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8453. entity.Property(e => e.UpdateMan)
  8454. .HasColumnType("varchar(50)")
  8455. .HasCharSet("utf8")
  8456. .HasCollation("utf8_general_ci");
  8457. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8458. entity.Property(e => e.Version).HasColumnType("int(11)");
  8459. });
  8460. modelBuilder.Entity<UploadParams>(entity =>
  8461. {
  8462. entity.Property(e => e.Id).HasColumnType("int(11)");
  8463. entity.Property(e => e.ColumnEnName)
  8464. .HasColumnType("varchar(50)")
  8465. .HasCharSet("utf8")
  8466. .HasCollation("utf8_general_ci");
  8467. entity.Property(e => e.ColumnName)
  8468. .HasColumnType("varchar(50)")
  8469. .HasCharSet("utf8")
  8470. .HasCollation("utf8_general_ci");
  8471. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8472. entity.Property(e => e.CreateMan)
  8473. .HasColumnType("varchar(50)")
  8474. .HasCharSet("utf8")
  8475. .HasCollation("utf8_general_ci");
  8476. entity.Property(e => e.ParamString)
  8477. .HasColumnType("varchar(200)")
  8478. .HasCharSet("utf8")
  8479. .HasCollation("utf8_general_ci");
  8480. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8481. entity.Property(e => e.SeoDescription)
  8482. .HasColumnType("varchar(500)")
  8483. .HasCharSet("utf8")
  8484. .HasCollation("utf8_general_ci");
  8485. entity.Property(e => e.SeoKeyword)
  8486. .HasColumnType("varchar(200)")
  8487. .HasCharSet("utf8")
  8488. .HasCollation("utf8_general_ci");
  8489. entity.Property(e => e.SeoTitle)
  8490. .HasColumnType("varchar(100)")
  8491. .HasCharSet("utf8")
  8492. .HasCollation("utf8_general_ci");
  8493. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8494. entity.Property(e => e.Status).HasColumnType("int(11)");
  8495. entity.Property(e => e.TableEnName)
  8496. .HasColumnType("varchar(50)")
  8497. .HasCharSet("utf8")
  8498. .HasCollation("utf8_general_ci");
  8499. entity.Property(e => e.TableName)
  8500. .HasColumnType("varchar(50)")
  8501. .HasCharSet("utf8")
  8502. .HasCollation("utf8_general_ci");
  8503. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8504. entity.Property(e => e.UpdateMan)
  8505. .HasColumnType("varchar(50)")
  8506. .HasCharSet("utf8")
  8507. .HasCollation("utf8_general_ci");
  8508. entity.Property(e => e.Version).HasColumnType("int(11)");
  8509. });
  8510. modelBuilder.Entity<UserAccount>(entity =>
  8511. {
  8512. entity.Property(e => e.Id).HasColumnType("int(11)");
  8513. entity.Property(e => e.AccountStatus).HasColumnType("int(11)");
  8514. entity.Property(e => e.BalanceAmount).HasColumnType("decimal(18,2)");
  8515. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8516. entity.Property(e => e.CreateMan)
  8517. .HasColumnType("varchar(50)")
  8518. .HasCharSet("utf8")
  8519. .HasCollation("utf8_general_ci");
  8520. entity.Property(e => e.FixedAmount).HasColumnType("decimal(18,2)");
  8521. entity.Property(e => e.FreezeAmount).HasColumnType("decimal(18,2)");
  8522. entity.Property(e => e.LeaderReserve).HasColumnType("decimal(18,2)");
  8523. entity.Property(e => e.LockStatus).HasColumnType("int(11)");
  8524. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8525. entity.Property(e => e.SeoDescription)
  8526. .HasColumnType("varchar(500)")
  8527. .HasCharSet("utf8")
  8528. .HasCollation("utf8_general_ci");
  8529. entity.Property(e => e.SeoKeyword)
  8530. .HasColumnType("varchar(200)")
  8531. .HasCharSet("utf8")
  8532. .HasCollation("utf8_general_ci");
  8533. entity.Property(e => e.SeoTitle)
  8534. .HasColumnType("varchar(100)")
  8535. .HasCharSet("utf8")
  8536. .HasCollation("utf8_general_ci");
  8537. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8538. entity.Property(e => e.Status).HasColumnType("int(11)");
  8539. entity.Property(e => e.TeamTotalOverProfit).HasColumnType("decimal(18,2)");
  8540. entity.Property(e => e.TeamTotalProfit).HasColumnType("decimal(18,2)");
  8541. entity.Property(e => e.TeamTotalServiceProfit).HasColumnType("decimal(18,2)");
  8542. entity.Property(e => e.TempAmount).HasColumnType("decimal(18,2)");
  8543. entity.Property(e => e.TotalAmount).HasColumnType("decimal(18,2)");
  8544. entity.Property(e => e.TotalOverProfit).HasColumnType("decimal(18,2)");
  8545. entity.Property(e => e.TotalProfit).HasColumnType("decimal(18,2)");
  8546. entity.Property(e => e.TotalServiceProfit).HasColumnType("decimal(18,2)");
  8547. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8548. entity.Property(e => e.UpdateMan)
  8549. .HasColumnType("varchar(50)")
  8550. .HasCharSet("utf8")
  8551. .HasCollation("utf8_general_ci");
  8552. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8553. entity.Property(e => e.UserProperty).HasColumnType("int(11)");
  8554. entity.Property(e => e.UserType).HasColumnType("int(11)");
  8555. entity.Property(e => e.ValidAmount).HasColumnType("decimal(18,2)");
  8556. entity.Property(e => e.Version).HasColumnType("int(11)");
  8557. entity.Property(e => e.WithdrawAmount).HasColumnType("decimal(18,2)");
  8558. });
  8559. modelBuilder.Entity<UserAccountRecord>(entity =>
  8560. {
  8561. entity.Property(e => e.Id).HasColumnType("int(11)");
  8562. entity.Property(e => e.AfterBalanceAmount).HasColumnType("decimal(18,2)");
  8563. entity.Property(e => e.AfterFreezeAmount).HasColumnType("decimal(18,2)");
  8564. entity.Property(e => e.AfterTotalAmount).HasColumnType("decimal(18,2)");
  8565. entity.Property(e => e.BeforeBalanceAmount).HasColumnType("decimal(18,2)");
  8566. entity.Property(e => e.BeforeFreezeAmount).HasColumnType("decimal(18,2)");
  8567. entity.Property(e => e.BeforeTotalAmount).HasColumnType("decimal(18,2)");
  8568. entity.Property(e => e.ChangeAmount).HasColumnType("decimal(18,2)");
  8569. entity.Property(e => e.ChangeType).HasColumnType("int(11)");
  8570. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8571. entity.Property(e => e.CreateMan)
  8572. .HasColumnType("varchar(50)")
  8573. .HasCharSet("utf8")
  8574. .HasCollation("utf8_general_ci");
  8575. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  8576. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8577. entity.Property(e => e.Remark)
  8578. .HasColumnType("varchar(64)")
  8579. .HasCharSet("utf8")
  8580. .HasCollation("utf8_general_ci");
  8581. entity.Property(e => e.SeoDescription)
  8582. .HasColumnType("varchar(500)")
  8583. .HasCharSet("utf8")
  8584. .HasCollation("utf8_general_ci");
  8585. entity.Property(e => e.SeoKeyword)
  8586. .HasColumnType("varchar(200)")
  8587. .HasCharSet("utf8")
  8588. .HasCollation("utf8_general_ci");
  8589. entity.Property(e => e.SeoTitle)
  8590. .HasColumnType("varchar(100)")
  8591. .HasCharSet("utf8")
  8592. .HasCollation("utf8_general_ci");
  8593. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8594. entity.Property(e => e.Status).HasColumnType("int(11)");
  8595. entity.Property(e => e.TransRecordNo)
  8596. .HasColumnType("varchar(32)")
  8597. .HasCharSet("utf8")
  8598. .HasCollation("utf8_general_ci");
  8599. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8600. entity.Property(e => e.UpdateMan)
  8601. .HasColumnType("varchar(50)")
  8602. .HasCharSet("utf8")
  8603. .HasCollation("utf8_general_ci");
  8604. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8605. entity.Property(e => e.Version).HasColumnType("int(11)");
  8606. });
  8607. modelBuilder.Entity<UserAddress>(entity =>
  8608. {
  8609. entity.Property(e => e.Id).HasColumnType("int(11)");
  8610. entity.Property(e => e.Address)
  8611. .HasColumnType("varchar(100)")
  8612. .HasCharSet("utf8")
  8613. .HasCollation("utf8_general_ci");
  8614. entity.Property(e => e.Areas)
  8615. .HasColumnType("varchar(30)")
  8616. .HasCharSet("utf8")
  8617. .HasCollation("utf8_general_ci");
  8618. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8619. entity.Property(e => e.CreateMan)
  8620. .HasColumnType("varchar(50)")
  8621. .HasCharSet("utf8")
  8622. .HasCollation("utf8_general_ci");
  8623. entity.Property(e => e.IsDefault)
  8624. .HasColumnType("bit(1)")
  8625. .HasDefaultValueSql("b'0'");
  8626. entity.Property(e => e.Mobile)
  8627. .HasColumnType("varchar(11)")
  8628. .HasCharSet("utf8")
  8629. .HasCollation("utf8_general_ci");
  8630. entity.Property(e => e.PostalCode)
  8631. .HasColumnType("varchar(6)")
  8632. .HasCharSet("utf8")
  8633. .HasCollation("utf8_general_ci");
  8634. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8635. entity.Property(e => e.RealName)
  8636. .HasColumnType("varchar(10)")
  8637. .HasCharSet("utf8")
  8638. .HasCollation("utf8_general_ci");
  8639. entity.Property(e => e.SeoDescription)
  8640. .HasColumnType("varchar(500)")
  8641. .HasCharSet("utf8")
  8642. .HasCollation("utf8_general_ci");
  8643. entity.Property(e => e.SeoKeyword)
  8644. .HasColumnType("varchar(200)")
  8645. .HasCharSet("utf8")
  8646. .HasCollation("utf8_general_ci");
  8647. entity.Property(e => e.SeoTitle)
  8648. .HasColumnType("varchar(100)")
  8649. .HasCharSet("utf8")
  8650. .HasCollation("utf8_general_ci");
  8651. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8652. entity.Property(e => e.Status).HasColumnType("int(11)");
  8653. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8654. entity.Property(e => e.UpdateMan)
  8655. .HasColumnType("varchar(50)")
  8656. .HasCharSet("utf8")
  8657. .HasCollation("utf8_general_ci");
  8658. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8659. entity.Property(e => e.Version).HasColumnType("int(11)");
  8660. });
  8661. modelBuilder.Entity<UserAuthRecord>(entity =>
  8662. {
  8663. entity.Property(e => e.Id).HasColumnType("int(11)");
  8664. entity.Property(e => e.AuthType).HasColumnType("int(11)");
  8665. entity.Property(e => e.BankCardAccount)
  8666. .HasColumnType("varchar(32)")
  8667. .HasCharSet("utf8")
  8668. .HasCollation("utf8_general_ci");
  8669. entity.Property(e => e.BankMobile)
  8670. .HasColumnType("varchar(11)")
  8671. .HasCharSet("utf8")
  8672. .HasCollation("utf8_general_ci");
  8673. entity.Property(e => e.BankName)
  8674. .HasColumnType("varchar(64)")
  8675. .HasCharSet("utf8")
  8676. .HasCollation("utf8_general_ci");
  8677. entity.Property(e => e.ChannelCode)
  8678. .HasColumnType("varchar(16)")
  8679. .HasCharSet("utf8")
  8680. .HasCollation("utf8_general_ci");
  8681. entity.Property(e => e.ChannelName)
  8682. .HasColumnType("varchar(32)")
  8683. .HasCharSet("utf8")
  8684. .HasCollation("utf8_general_ci");
  8685. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8686. entity.Property(e => e.CreateMan)
  8687. .HasColumnType("varchar(50)")
  8688. .HasCharSet("utf8")
  8689. .HasCollation("utf8_general_ci");
  8690. entity.Property(e => e.IdcardNo)
  8691. .HasColumnType("varchar(18)")
  8692. .HasCharSet("utf8")
  8693. .HasCollation("utf8_general_ci");
  8694. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8695. entity.Property(e => e.RealName)
  8696. .HasColumnType("varchar(32)")
  8697. .HasCharSet("utf8")
  8698. .HasCollation("utf8_general_ci");
  8699. entity.Property(e => e.ReqData)
  8700. .HasColumnType("varchar(2048)")
  8701. .HasCharSet("utf8")
  8702. .HasCollation("utf8_general_ci");
  8703. entity.Property(e => e.ResData)
  8704. .HasColumnType("varchar(2048)")
  8705. .HasCharSet("utf8")
  8706. .HasCollation("utf8_general_ci");
  8707. entity.Property(e => e.ReturnCode)
  8708. .HasColumnType("varchar(32)")
  8709. .HasCharSet("utf8")
  8710. .HasCollation("utf8_general_ci");
  8711. entity.Property(e => e.ReturnMsg)
  8712. .HasColumnType("varchar(128)")
  8713. .HasCharSet("utf8")
  8714. .HasCollation("utf8_general_ci");
  8715. entity.Property(e => e.SeoDescription)
  8716. .HasColumnType("varchar(500)")
  8717. .HasCharSet("utf8")
  8718. .HasCollation("utf8_general_ci");
  8719. entity.Property(e => e.SeoKeyword)
  8720. .HasColumnType("varchar(200)")
  8721. .HasCharSet("utf8")
  8722. .HasCollation("utf8_general_ci");
  8723. entity.Property(e => e.SeoTitle)
  8724. .HasColumnType("varchar(100)")
  8725. .HasCharSet("utf8")
  8726. .HasCollation("utf8_general_ci");
  8727. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8728. entity.Property(e => e.Status).HasColumnType("int(11)");
  8729. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8730. entity.Property(e => e.UpdateMan)
  8731. .HasColumnType("varchar(50)")
  8732. .HasCharSet("utf8")
  8733. .HasCollation("utf8_general_ci");
  8734. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8735. entity.Property(e => e.Version).HasColumnType("int(11)");
  8736. });
  8737. modelBuilder.Entity<UserBack>(entity =>
  8738. {
  8739. entity.Property(e => e.Id).HasColumnType("int(11)");
  8740. entity.Property(e => e.BackKind).HasColumnType("int(11)");
  8741. entity.Property(e => e.BackStatus).HasColumnType("int(11)");
  8742. entity.Property(e => e.Content)
  8743. .HasColumnType("varchar(100)")
  8744. .HasCharSet("utf8")
  8745. .HasCollation("utf8_general_ci");
  8746. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8747. entity.Property(e => e.CreateMan)
  8748. .HasColumnType("varchar(50)")
  8749. .HasCharSet("utf8")
  8750. .HasCollation("utf8_general_ci");
  8751. entity.Property(e => e.IsPhoneCallBack)
  8752. .HasColumnType("bit(1)")
  8753. .HasDefaultValueSql("b'0'");
  8754. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8755. entity.Property(e => e.ReplyContent)
  8756. .HasColumnType("mediumtext")
  8757. .HasCharSet("utf8")
  8758. .HasCollation("utf8_general_ci");
  8759. entity.Property(e => e.SeoDescription)
  8760. .HasColumnType("varchar(500)")
  8761. .HasCharSet("utf8")
  8762. .HasCollation("utf8_general_ci");
  8763. entity.Property(e => e.SeoKeyword)
  8764. .HasColumnType("varchar(200)")
  8765. .HasCharSet("utf8")
  8766. .HasCollation("utf8_general_ci");
  8767. entity.Property(e => e.SeoTitle)
  8768. .HasColumnType("varchar(100)")
  8769. .HasCharSet("utf8")
  8770. .HasCollation("utf8_general_ci");
  8771. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8772. entity.Property(e => e.Status).HasColumnType("int(11)");
  8773. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8774. entity.Property(e => e.UpdateMan)
  8775. .HasColumnType("varchar(50)")
  8776. .HasCharSet("utf8")
  8777. .HasCollation("utf8_general_ci");
  8778. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8779. entity.Property(e => e.Version).HasColumnType("int(11)");
  8780. });
  8781. modelBuilder.Entity<UserBackKind>(entity =>
  8782. {
  8783. entity.Property(e => e.Id).HasColumnType("int(11)");
  8784. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8785. entity.Property(e => e.CreateMan)
  8786. .HasColumnType("varchar(50)")
  8787. .HasCharSet("utf8")
  8788. .HasCollation("utf8_general_ci");
  8789. entity.Property(e => e.Name)
  8790. .HasColumnType("varchar(50)")
  8791. .HasCharSet("utf8")
  8792. .HasCollation("utf8_general_ci");
  8793. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8794. entity.Property(e => e.SeoDescription)
  8795. .HasColumnType("varchar(500)")
  8796. .HasCharSet("utf8")
  8797. .HasCollation("utf8_general_ci");
  8798. entity.Property(e => e.SeoKeyword)
  8799. .HasColumnType("varchar(200)")
  8800. .HasCharSet("utf8")
  8801. .HasCollation("utf8_general_ci");
  8802. entity.Property(e => e.SeoTitle)
  8803. .HasColumnType("varchar(100)")
  8804. .HasCharSet("utf8")
  8805. .HasCollation("utf8_general_ci");
  8806. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8807. entity.Property(e => e.Status).HasColumnType("int(11)");
  8808. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8809. entity.Property(e => e.UpdateMan)
  8810. .HasColumnType("varchar(50)")
  8811. .HasCharSet("utf8")
  8812. .HasCollation("utf8_general_ci");
  8813. entity.Property(e => e.Version).HasColumnType("int(11)");
  8814. });
  8815. modelBuilder.Entity<UserBalanceTop>(entity =>
  8816. {
  8817. entity.Property(e => e.Id).HasColumnType("int(11)");
  8818. entity.Property(e => e.Balance).HasColumnType("decimal(18,2)");
  8819. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8820. entity.Property(e => e.CreateMan)
  8821. .HasColumnType("varchar(50)")
  8822. .HasCharSet("utf8")
  8823. .HasCollation("utf8_general_ci");
  8824. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8825. entity.Property(e => e.SeoDescription)
  8826. .HasColumnType("varchar(500)")
  8827. .HasCharSet("utf8")
  8828. .HasCollation("utf8_general_ci");
  8829. entity.Property(e => e.SeoKeyword)
  8830. .HasColumnType("varchar(200)")
  8831. .HasCharSet("utf8")
  8832. .HasCollation("utf8_general_ci");
  8833. entity.Property(e => e.SeoTitle)
  8834. .HasColumnType("varchar(100)")
  8835. .HasCharSet("utf8")
  8836. .HasCollation("utf8_general_ci");
  8837. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8838. entity.Property(e => e.StatDate)
  8839. .HasColumnType("varchar(8)")
  8840. .HasCharSet("utf8")
  8841. .HasCollation("utf8_general_ci");
  8842. entity.Property(e => e.StatMonth)
  8843. .HasColumnType("varchar(6)")
  8844. .HasCharSet("utf8")
  8845. .HasCollation("utf8_general_ci");
  8846. entity.Property(e => e.Status).HasColumnType("int(11)");
  8847. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8848. entity.Property(e => e.UpdateMan)
  8849. .HasColumnType("varchar(50)")
  8850. .HasCharSet("utf8")
  8851. .HasCollation("utf8_general_ci");
  8852. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8853. entity.Property(e => e.Version).HasColumnType("int(11)");
  8854. });
  8855. modelBuilder.Entity<UserCar>(entity =>
  8856. {
  8857. entity.Property(e => e.Id).HasColumnType("int(11)");
  8858. entity.Property(e => e.BuyCount).HasColumnType("int(11)");
  8859. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8860. entity.Property(e => e.CreateMan)
  8861. .HasColumnType("varchar(50)")
  8862. .HasCharSet("utf8")
  8863. .HasCollation("utf8_general_ci");
  8864. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  8865. entity.Property(e => e.NormId).HasColumnType("int(11)");
  8866. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  8867. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8868. entity.Property(e => e.SeoDescription)
  8869. .HasColumnType("varchar(500)")
  8870. .HasCharSet("utf8")
  8871. .HasCollation("utf8_general_ci");
  8872. entity.Property(e => e.SeoKeyword)
  8873. .HasColumnType("varchar(200)")
  8874. .HasCharSet("utf8")
  8875. .HasCollation("utf8_general_ci");
  8876. entity.Property(e => e.SeoTitle)
  8877. .HasColumnType("varchar(100)")
  8878. .HasCharSet("utf8")
  8879. .HasCollation("utf8_general_ci");
  8880. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8881. entity.Property(e => e.Status).HasColumnType("int(11)");
  8882. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8883. entity.Property(e => e.UpdateMan)
  8884. .HasColumnType("varchar(50)")
  8885. .HasCharSet("utf8")
  8886. .HasCollation("utf8_general_ci");
  8887. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8888. entity.Property(e => e.Version).HasColumnType("int(11)");
  8889. });
  8890. modelBuilder.Entity<UserCardForWeChat>(entity =>
  8891. {
  8892. entity.Property(e => e.Id).HasColumnType("int(11)");
  8893. entity.Property(e => e.BrandName)
  8894. .HasColumnType("varchar(12)")
  8895. .HasCharSet("utf8")
  8896. .HasCollation("utf8_general_ci");
  8897. entity.Property(e => e.CardId)
  8898. .HasColumnType("varchar(50)")
  8899. .HasCharSet("utf8")
  8900. .HasCollation("utf8_general_ci");
  8901. entity.Property(e => e.CardType)
  8902. .HasColumnType("varchar(30)")
  8903. .HasCharSet("utf8")
  8904. .HasCollation("utf8_general_ci");
  8905. entity.Property(e => e.CodeType)
  8906. .HasColumnType("varchar(50)")
  8907. .HasCharSet("utf8")
  8908. .HasCollation("utf8_general_ci");
  8909. entity.Property(e => e.Color)
  8910. .HasColumnType("varchar(20)")
  8911. .HasCharSet("utf8")
  8912. .HasCollation("utf8_general_ci");
  8913. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8914. entity.Property(e => e.CreateMan)
  8915. .HasColumnType("varchar(50)")
  8916. .HasCharSet("utf8")
  8917. .HasCollation("utf8_general_ci");
  8918. entity.Property(e => e.DateType)
  8919. .HasColumnType("varchar(50)")
  8920. .HasCharSet("utf8")
  8921. .HasCollation("utf8_general_ci");
  8922. entity.Property(e => e.Description)
  8923. .HasColumnType("varchar(1024)")
  8924. .HasCharSet("utf8")
  8925. .HasCollation("utf8_general_ci");
  8926. entity.Property(e => e.EnterName)
  8927. .HasColumnType("varchar(15)")
  8928. .HasCharSet("utf8")
  8929. .HasCollation("utf8_general_ci");
  8930. entity.Property(e => e.EnterTips)
  8931. .HasColumnType("varchar(6)")
  8932. .HasCharSet("utf8")
  8933. .HasCollation("utf8_general_ci");
  8934. entity.Property(e => e.EnterUrl)
  8935. .HasColumnType("varchar(200)")
  8936. .HasCharSet("utf8")
  8937. .HasCollation("utf8_general_ci");
  8938. entity.Property(e => e.LogoUrl)
  8939. .HasColumnType("varchar(200)")
  8940. .HasCharSet("utf8")
  8941. .HasCollation("utf8_general_ci");
  8942. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  8943. entity.Property(e => e.Notice)
  8944. .HasColumnType("varchar(16)")
  8945. .HasCharSet("utf8")
  8946. .HasCollation("utf8_general_ci");
  8947. entity.Property(e => e.Prerogative)
  8948. .HasColumnType("varchar(1024)")
  8949. .HasCharSet("utf8")
  8950. .HasCollation("utf8_general_ci");
  8951. entity.Property(e => e.Quantity).HasColumnType("int(11)");
  8952. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8953. entity.Property(e => e.SeoDescription)
  8954. .HasColumnType("varchar(500)")
  8955. .HasCharSet("utf8")
  8956. .HasCollation("utf8_general_ci");
  8957. entity.Property(e => e.SeoKeyword)
  8958. .HasColumnType("varchar(200)")
  8959. .HasCharSet("utf8")
  8960. .HasCollation("utf8_general_ci");
  8961. entity.Property(e => e.SeoTitle)
  8962. .HasColumnType("varchar(100)")
  8963. .HasCharSet("utf8")
  8964. .HasCollation("utf8_general_ci");
  8965. entity.Property(e => e.Sku)
  8966. .HasColumnType("mediumtext")
  8967. .HasCharSet("utf8")
  8968. .HasCollation("utf8_general_ci");
  8969. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8970. entity.Property(e => e.Status).HasColumnType("int(11)");
  8971. entity.Property(e => e.SupplyBalance)
  8972. .HasColumnType("bit(1)")
  8973. .HasDefaultValueSql("b'0'");
  8974. entity.Property(e => e.SupplyBonus)
  8975. .HasColumnType("bit(1)")
  8976. .HasDefaultValueSql("b'0'");
  8977. entity.Property(e => e.Title)
  8978. .HasColumnType("varchar(9)")
  8979. .HasCharSet("utf8")
  8980. .HasCollation("utf8_general_ci");
  8981. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8982. entity.Property(e => e.UpdateMan)
  8983. .HasColumnType("varchar(50)")
  8984. .HasCharSet("utf8")
  8985. .HasCollation("utf8_general_ci");
  8986. entity.Property(e => e.Version).HasColumnType("int(11)");
  8987. });
  8988. modelBuilder.Entity<UserCardRecord>(entity =>
  8989. {
  8990. entity.Property(e => e.Id).HasColumnType("int(11)");
  8991. entity.Property(e => e.CardId).HasColumnType("int(11)");
  8992. entity.Property(e => e.ConsumerId).HasColumnType("int(11)");
  8993. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8994. entity.Property(e => e.CreateMan)
  8995. .HasColumnType("varchar(50)")
  8996. .HasCharSet("utf8")
  8997. .HasCollation("utf8_general_ci");
  8998. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  8999. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9000. entity.Property(e => e.SeoDescription)
  9001. .HasColumnType("varchar(500)")
  9002. .HasCharSet("utf8")
  9003. .HasCollation("utf8_general_ci");
  9004. entity.Property(e => e.SeoKeyword)
  9005. .HasColumnType("varchar(200)")
  9006. .HasCharSet("utf8")
  9007. .HasCollation("utf8_general_ci");
  9008. entity.Property(e => e.SeoTitle)
  9009. .HasColumnType("varchar(100)")
  9010. .HasCharSet("utf8")
  9011. .HasCollation("utf8_general_ci");
  9012. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9013. entity.Property(e => e.Status).HasColumnType("int(11)");
  9014. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9015. entity.Property(e => e.UpdateMan)
  9016. .HasColumnType("varchar(50)")
  9017. .HasCharSet("utf8")
  9018. .HasCollation("utf8_general_ci");
  9019. entity.Property(e => e.Version).HasColumnType("int(11)");
  9020. });
  9021. modelBuilder.Entity<UserCashRecord>(entity =>
  9022. {
  9023. entity.Property(e => e.Id).HasColumnType("int(11)");
  9024. entity.Property(e => e.ActualTradeAmount).HasColumnType("decimal(18,2)");
  9025. entity.Property(e => e.CashOrderNo)
  9026. .HasColumnType("varchar(32)")
  9027. .HasCharSet("utf8")
  9028. .HasCollation("utf8_general_ci");
  9029. entity.Property(e => e.ChanelName)
  9030. .HasColumnType("varchar(32)")
  9031. .HasCharSet("utf8")
  9032. .HasCollation("utf8_general_ci");
  9033. entity.Property(e => e.ChannelCode)
  9034. .HasColumnType("varchar(16)")
  9035. .HasCharSet("utf8")
  9036. .HasCollation("utf8_general_ci");
  9037. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9038. entity.Property(e => e.CreateMan)
  9039. .HasColumnType("varchar(50)")
  9040. .HasCharSet("utf8")
  9041. .HasCollation("utf8_general_ci");
  9042. entity.Property(e => e.IdCardNo)
  9043. .HasColumnType("varchar(18)")
  9044. .HasCharSet("utf8")
  9045. .HasCollation("utf8_general_ci");
  9046. entity.Property(e => e.Ip)
  9047. .HasColumnType("varchar(15)")
  9048. .HasCharSet("utf8")
  9049. .HasCollation("utf8_general_ci");
  9050. entity.Property(e => e.ManageFee).HasColumnType("decimal(18,2)");
  9051. entity.Property(e => e.MediaSource)
  9052. .HasColumnType("varchar(16)")
  9053. .HasCharSet("utf8")
  9054. .HasCollation("utf8_general_ci");
  9055. entity.Property(e => e.PayTradeNo)
  9056. .HasColumnType("varchar(32)")
  9057. .HasCharSet("utf8")
  9058. .HasCollation("utf8_general_ci");
  9059. entity.Property(e => e.PaymentDate).HasColumnType("datetime");
  9060. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9061. entity.Property(e => e.Remark)
  9062. .HasColumnType("varchar(128)")
  9063. .HasCharSet("utf8")
  9064. .HasCollation("utf8_general_ci");
  9065. entity.Property(e => e.ReqData)
  9066. .HasColumnType("varchar(2048)")
  9067. .HasCharSet("utf8")
  9068. .HasCollation("utf8_general_ci");
  9069. entity.Property(e => e.ResData)
  9070. .HasColumnType("varchar(2048)")
  9071. .HasCharSet("utf8")
  9072. .HasCollation("utf8_general_ci");
  9073. entity.Property(e => e.ReturnCode)
  9074. .HasColumnType("varchar(32)")
  9075. .HasCharSet("utf8")
  9076. .HasCollation("utf8_general_ci");
  9077. entity.Property(e => e.ReturnMsg)
  9078. .HasColumnType("varchar(128)")
  9079. .HasCharSet("utf8")
  9080. .HasCollation("utf8_general_ci");
  9081. entity.Property(e => e.SeoDescription)
  9082. .HasColumnType("varchar(500)")
  9083. .HasCharSet("utf8")
  9084. .HasCollation("utf8_general_ci");
  9085. entity.Property(e => e.SeoKeyword)
  9086. .HasColumnType("varchar(200)")
  9087. .HasCharSet("utf8")
  9088. .HasCollation("utf8_general_ci");
  9089. entity.Property(e => e.SeoTitle)
  9090. .HasColumnType("varchar(100)")
  9091. .HasCharSet("utf8")
  9092. .HasCollation("utf8_general_ci");
  9093. entity.Property(e => e.SettleBankCardNo)
  9094. .HasColumnType("varchar(32)")
  9095. .HasCharSet("utf8")
  9096. .HasCollation("utf8_general_ci");
  9097. entity.Property(e => e.SettleBankName)
  9098. .HasColumnType("varchar(64)")
  9099. .HasCharSet("utf8")
  9100. .HasCollation("utf8_general_ci");
  9101. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9102. entity.Property(e => e.Status).HasColumnType("int(11)");
  9103. entity.Property(e => e.TradeAmount).HasColumnType("decimal(18,2)");
  9104. entity.Property(e => e.TradeFee).HasColumnType("decimal(18,2)");
  9105. entity.Property(e => e.TradeType).HasColumnType("int(11)");
  9106. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9107. entity.Property(e => e.UpdateMan)
  9108. .HasColumnType("varchar(50)")
  9109. .HasCharSet("utf8")
  9110. .HasCollation("utf8_general_ci");
  9111. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9112. entity.Property(e => e.Version).HasColumnType("int(11)");
  9113. });
  9114. modelBuilder.Entity<UserCenterIconList>(entity =>
  9115. {
  9116. entity.Property(e => e.Id).HasColumnType("int(11)");
  9117. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9118. entity.Property(e => e.CreateMan)
  9119. .HasColumnType("varchar(50)")
  9120. .HasCharSet("utf8")
  9121. .HasCollation("utf8_general_ci");
  9122. entity.Property(e => e.Icon)
  9123. .HasColumnType("varchar(200)")
  9124. .HasCharSet("utf8")
  9125. .HasCollation("utf8_general_ci");
  9126. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9127. entity.Property(e => e.SeoDescription)
  9128. .HasColumnType("varchar(500)")
  9129. .HasCharSet("utf8")
  9130. .HasCollation("utf8_general_ci");
  9131. entity.Property(e => e.SeoKeyword)
  9132. .HasColumnType("varchar(200)")
  9133. .HasCharSet("utf8")
  9134. .HasCollation("utf8_general_ci");
  9135. entity.Property(e => e.SeoTitle)
  9136. .HasColumnType("varchar(100)")
  9137. .HasCharSet("utf8")
  9138. .HasCollation("utf8_general_ci");
  9139. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9140. entity.Property(e => e.Status).HasColumnType("int(11)");
  9141. entity.Property(e => e.Title)
  9142. .HasColumnType("varchar(50)")
  9143. .HasCharSet("utf8")
  9144. .HasCollation("utf8_general_ci");
  9145. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9146. entity.Property(e => e.UpdateMan)
  9147. .HasColumnType("varchar(50)")
  9148. .HasCharSet("utf8")
  9149. .HasCollation("utf8_general_ci");
  9150. entity.Property(e => e.Url)
  9151. .HasColumnType("varchar(50)")
  9152. .HasCharSet("utf8")
  9153. .HasCollation("utf8_general_ci");
  9154. entity.Property(e => e.Version).HasColumnType("int(11)");
  9155. });
  9156. modelBuilder.Entity<UserCollection>(entity =>
  9157. {
  9158. entity.Property(e => e.Id).HasColumnType("int(11)");
  9159. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9160. entity.Property(e => e.CreateMan)
  9161. .HasColumnType("varchar(50)")
  9162. .HasCharSet("utf8")
  9163. .HasCollation("utf8_general_ci");
  9164. entity.Property(e => e.DataId).HasColumnType("int(11)");
  9165. entity.Property(e => e.Kind).HasColumnType("int(11)");
  9166. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9167. entity.Property(e => e.SeoDescription)
  9168. .HasColumnType("varchar(500)")
  9169. .HasCharSet("utf8")
  9170. .HasCollation("utf8_general_ci");
  9171. entity.Property(e => e.SeoKeyword)
  9172. .HasColumnType("varchar(200)")
  9173. .HasCharSet("utf8")
  9174. .HasCollation("utf8_general_ci");
  9175. entity.Property(e => e.SeoTitle)
  9176. .HasColumnType("varchar(100)")
  9177. .HasCharSet("utf8")
  9178. .HasCollation("utf8_general_ci");
  9179. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9180. entity.Property(e => e.Status).HasColumnType("int(11)");
  9181. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9182. entity.Property(e => e.UpdateMan)
  9183. .HasColumnType("varchar(50)")
  9184. .HasCharSet("utf8")
  9185. .HasCollation("utf8_general_ci");
  9186. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9187. entity.Property(e => e.Version).HasColumnType("int(11)");
  9188. });
  9189. modelBuilder.Entity<UserData>(entity =>
  9190. {
  9191. entity.HasKey(e => e.UserId)
  9192. .HasName("PRIMARY");
  9193. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9194. entity.Property(e => e.ActiveRewardAmount).HasColumnType("decimal(18,2)");
  9195. entity.Property(e => e.CashFreezeAmt).HasColumnType("decimal(18,2)");
  9196. entity.Property(e => e.CollectionCount).HasColumnType("int(11)");
  9197. entity.Property(e => e.Coupons).HasColumnType("decimal(18,2)");
  9198. entity.Property(e => e.CurMoney).HasColumnType("decimal(18,2)");
  9199. entity.Property(e => e.FansCount).HasColumnType("int(11)");
  9200. entity.Property(e => e.FollowCount).HasColumnType("int(11)");
  9201. entity.Property(e => e.GrowthValue).HasColumnType("int(11)");
  9202. entity.Property(e => e.Integral).HasColumnType("decimal(18,2)");
  9203. entity.Property(e => e.MachineCount).HasColumnType("int(11)");
  9204. entity.Property(e => e.ProfitRewardRate).HasColumnType("decimal(18,2)");
  9205. entity.Property(e => e.SettleAmount).HasColumnType("decimal(18,2)");
  9206. entity.Property(e => e.ToCommentOrderCount).HasColumnType("int(11)");
  9207. entity.Property(e => e.ToPayOrderCount).HasColumnType("int(11)");
  9208. entity.Property(e => e.ToReceiveOrderCount).HasColumnType("int(11)");
  9209. entity.Property(e => e.ToRefundOrderCount).HasColumnType("int(11)");
  9210. entity.Property(e => e.ToSendOrderCount).HasColumnType("int(11)");
  9211. entity.Property(e => e.TotalOrderMoney).HasColumnType("decimal(18,2)");
  9212. entity.Property(e => e.TotalUseIntegral).HasColumnType("decimal(18,2)");
  9213. });
  9214. modelBuilder.Entity<UserDetail>(entity =>
  9215. {
  9216. entity.Property(e => e.Id).HasColumnType("int(11)");
  9217. entity.Property(e => e.AddMan).HasColumnType("int(11)");
  9218. entity.Property(e => e.Birthday).HasColumnType("datetime");
  9219. entity.Property(e => e.CardAddAddress).HasColumnType("int(11)");
  9220. entity.Property(e => e.CardExpireDate).HasColumnType("datetime");
  9221. entity.Property(e => e.EduLevel).HasColumnType("int(11)");
  9222. entity.Property(e => e.Email)
  9223. .HasColumnType("varchar(50)")
  9224. .HasCharSet("utf8")
  9225. .HasCollation("utf8_general_ci");
  9226. entity.Property(e => e.FamilyIncome).HasColumnType("int(11)");
  9227. entity.Property(e => e.Interests)
  9228. .HasColumnType("varchar(200)")
  9229. .HasCharSet("utf8")
  9230. .HasCollation("utf8_general_ci");
  9231. entity.Property(e => e.Note)
  9232. .HasColumnType("longtext")
  9233. .HasCharSet("utf8")
  9234. .HasCollation("utf8_general_ci");
  9235. entity.Property(e => e.OfficePhone)
  9236. .HasColumnType("varchar(50)")
  9237. .HasCharSet("utf8")
  9238. .HasCollation("utf8_general_ci");
  9239. entity.Property(e => e.PostalCode)
  9240. .HasColumnType("varchar(6)")
  9241. .HasCharSet("utf8")
  9242. .HasCollation("utf8_general_ci");
  9243. entity.Property(e => e.PrivatePhone)
  9244. .HasColumnType("varchar(50)")
  9245. .HasCharSet("utf8")
  9246. .HasCollation("utf8_general_ci");
  9247. entity.Property(e => e.ToShopDate).HasColumnType("datetime");
  9248. entity.Property(e => e.TrafficTool).HasColumnType("int(11)");
  9249. entity.Property(e => e.UpdateMan).HasColumnType("int(11)");
  9250. entity.Property(e => e.UserJob).HasColumnType("int(11)");
  9251. });
  9252. modelBuilder.Entity<UserFamilyMember>(entity =>
  9253. {
  9254. entity.Property(e => e.Id).HasColumnType("int(11)");
  9255. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9256. entity.Property(e => e.CreateMan)
  9257. .HasColumnType("varchar(50)")
  9258. .HasCharSet("utf8")
  9259. .HasCollation("utf8_general_ci");
  9260. entity.Property(e => e.IdCardNo)
  9261. .HasColumnType("varchar(18)")
  9262. .HasCharSet("utf8")
  9263. .HasCollation("utf8_general_ci");
  9264. entity.Property(e => e.Job).HasColumnType("int(11)");
  9265. entity.Property(e => e.MemberKind).HasColumnType("int(11)");
  9266. entity.Property(e => e.Mobile)
  9267. .HasColumnType("varchar(11)")
  9268. .HasCharSet("utf8")
  9269. .HasCollation("utf8_general_ci");
  9270. entity.Property(e => e.Name)
  9271. .HasColumnType("varchar(20)")
  9272. .HasCharSet("utf8")
  9273. .HasCollation("utf8_general_ci");
  9274. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9275. entity.Property(e => e.SeoDescription)
  9276. .HasColumnType("varchar(500)")
  9277. .HasCharSet("utf8")
  9278. .HasCollation("utf8_general_ci");
  9279. entity.Property(e => e.SeoKeyword)
  9280. .HasColumnType("varchar(200)")
  9281. .HasCharSet("utf8")
  9282. .HasCollation("utf8_general_ci");
  9283. entity.Property(e => e.SeoTitle)
  9284. .HasColumnType("varchar(100)")
  9285. .HasCharSet("utf8")
  9286. .HasCollation("utf8_general_ci");
  9287. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9288. entity.Property(e => e.Status).HasColumnType("int(11)");
  9289. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9290. entity.Property(e => e.UpdateMan)
  9291. .HasColumnType("varchar(50)")
  9292. .HasCharSet("utf8")
  9293. .HasCollation("utf8_general_ci");
  9294. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9295. entity.Property(e => e.Version).HasColumnType("int(11)");
  9296. });
  9297. modelBuilder.Entity<UserForMakerCode>(entity =>
  9298. {
  9299. entity.HasKey(e => e.MakerCode)
  9300. .HasName("PRIMARY");
  9301. entity.Property(e => e.MakerCode)
  9302. .HasColumnType("varchar(30)")
  9303. .HasCharSet("utf8")
  9304. .HasCollation("utf8_general_ci");
  9305. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9306. });
  9307. modelBuilder.Entity<UserForMobile>(entity =>
  9308. {
  9309. entity.HasKey(e => e.Mobile)
  9310. .HasName("PRIMARY");
  9311. entity.Property(e => e.Mobile)
  9312. .HasColumnType("varchar(11)")
  9313. .HasCharSet("utf8")
  9314. .HasCollation("utf8_general_ci");
  9315. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9316. });
  9317. modelBuilder.Entity<UserForRealName>(entity =>
  9318. {
  9319. entity.HasKey(e => e.RealName)
  9320. .HasName("PRIMARY");
  9321. entity.Property(e => e.RealName)
  9322. .HasColumnType("varchar(30)")
  9323. .HasCharSet("utf8")
  9324. .HasCollation("utf8_general_ci");
  9325. entity.Property(e => e.UserId)
  9326. .HasColumnType("varchar(100)")
  9327. .HasCharSet("utf8")
  9328. .HasCollation("utf8_general_ci");
  9329. });
  9330. modelBuilder.Entity<UserFriend>(entity =>
  9331. {
  9332. entity.Property(e => e.Id).HasColumnType("int(11)");
  9333. entity.Property(e => e.FriendId).HasColumnType("int(11)");
  9334. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9335. });
  9336. modelBuilder.Entity<UserGroup>(entity =>
  9337. {
  9338. entity.Property(e => e.Id).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.Details)
  9345. .HasColumnType("varchar(200)")
  9346. .HasCharSet("utf8")
  9347. .HasCollation("utf8_general_ci");
  9348. entity.Property(e => e.Name)
  9349. .HasColumnType("varchar(20)")
  9350. .HasCharSet("utf8")
  9351. .HasCollation("utf8_general_ci");
  9352. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9353. entity.Property(e => e.SeoDescription)
  9354. .HasColumnType("varchar(500)")
  9355. .HasCharSet("utf8")
  9356. .HasCollation("utf8_general_ci");
  9357. entity.Property(e => e.SeoKeyword)
  9358. .HasColumnType("varchar(200)")
  9359. .HasCharSet("utf8")
  9360. .HasCollation("utf8_general_ci");
  9361. entity.Property(e => e.SeoTitle)
  9362. .HasColumnType("varchar(100)")
  9363. .HasCharSet("utf8")
  9364. .HasCollation("utf8_general_ci");
  9365. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9366. entity.Property(e => e.Status).HasColumnType("int(11)");
  9367. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9368. entity.Property(e => e.UpdateMan)
  9369. .HasColumnType("varchar(50)")
  9370. .HasCharSet("utf8")
  9371. .HasCollation("utf8_general_ci");
  9372. entity.Property(e => e.Version).HasColumnType("int(11)");
  9373. });
  9374. modelBuilder.Entity<UserLevelSet>(entity =>
  9375. {
  9376. entity.Property(e => e.Id).HasColumnType("int(11)");
  9377. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9378. entity.Property(e => e.CreateMan)
  9379. .HasColumnType("varchar(50)")
  9380. .HasCharSet("utf8")
  9381. .HasCollation("utf8_general_ci");
  9382. entity.Property(e => e.Details)
  9383. .HasColumnType("varchar(200)")
  9384. .HasCharSet("utf8")
  9385. .HasCollation("utf8_general_ci");
  9386. entity.Property(e => e.Name)
  9387. .HasColumnType("varchar(20)")
  9388. .HasCharSet("utf8")
  9389. .HasCollation("utf8_general_ci");
  9390. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9391. entity.Property(e => e.SeoDescription)
  9392. .HasColumnType("varchar(500)")
  9393. .HasCharSet("utf8")
  9394. .HasCollation("utf8_general_ci");
  9395. entity.Property(e => e.SeoKeyword)
  9396. .HasColumnType("varchar(200)")
  9397. .HasCharSet("utf8")
  9398. .HasCollation("utf8_general_ci");
  9399. entity.Property(e => e.SeoTitle)
  9400. .HasColumnType("varchar(100)")
  9401. .HasCharSet("utf8")
  9402. .HasCollation("utf8_general_ci");
  9403. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9404. entity.Property(e => e.Status).HasColumnType("int(11)");
  9405. entity.Property(e => e.UpLevelDays).HasColumnType("int(11)");
  9406. entity.Property(e => e.UpLevelGrowth).HasColumnType("int(11)");
  9407. entity.Property(e => e.UpLevelIntegral).HasColumnType("decimal(10,0)");
  9408. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9409. entity.Property(e => e.UpdateMan)
  9410. .HasColumnType("varchar(50)")
  9411. .HasCharSet("utf8")
  9412. .HasCollation("utf8_general_ci");
  9413. entity.Property(e => e.Version).HasColumnType("int(11)");
  9414. });
  9415. modelBuilder.Entity<UserLoginRecord>(entity =>
  9416. {
  9417. entity.Property(e => e.Id).HasColumnType("int(11)");
  9418. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9419. entity.Property(e => e.CreateMan)
  9420. .HasColumnType("varchar(50)")
  9421. .HasCharSet("utf8")
  9422. .HasCollation("utf8_general_ci");
  9423. entity.Property(e => e.Kind).HasColumnType("int(11)");
  9424. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9425. entity.Property(e => e.SeoDescription)
  9426. .HasColumnType("varchar(500)")
  9427. .HasCharSet("utf8")
  9428. .HasCollation("utf8_general_ci");
  9429. entity.Property(e => e.SeoKeyword)
  9430. .HasColumnType("varchar(200)")
  9431. .HasCharSet("utf8")
  9432. .HasCollation("utf8_general_ci");
  9433. entity.Property(e => e.SeoTitle)
  9434. .HasColumnType("varchar(100)")
  9435. .HasCharSet("utf8")
  9436. .HasCollation("utf8_general_ci");
  9437. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9438. entity.Property(e => e.Status).HasColumnType("int(11)");
  9439. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9440. entity.Property(e => e.UpdateMan)
  9441. .HasColumnType("varchar(50)")
  9442. .HasCharSet("utf8")
  9443. .HasCollation("utf8_general_ci");
  9444. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9445. entity.Property(e => e.Version).HasColumnType("int(11)");
  9446. });
  9447. modelBuilder.Entity<UserMachineData>(entity =>
  9448. {
  9449. entity.HasKey(e => e.IdBrand)
  9450. .HasName("PRIMARY");
  9451. entity.Property(e => e.IdBrand)
  9452. .HasColumnType("varchar(50)")
  9453. .HasCharSet("utf8")
  9454. .HasCollation("utf8_general_ci");
  9455. entity.Property(e => e.ActProfit).HasColumnType("decimal(18,2)");
  9456. entity.Property(e => e.BindCount).HasColumnType("int(11)");
  9457. entity.Property(e => e.DividendsProfit).HasColumnType("decimal(18,2)");
  9458. entity.Property(e => e.FluxProfit).HasColumnType("decimal(18,2)");
  9459. entity.Property(e => e.OpenProfit).HasColumnType("decimal(18,2)");
  9460. entity.Property(e => e.OtherProfit).HasColumnType("decimal(18,2)");
  9461. entity.Property(e => e.TotalMachineCount).HasColumnType("int(11)");
  9462. entity.Property(e => e.TradeProfit).HasColumnType("decimal(18,2)");
  9463. entity.Property(e => e.UnBindCount).HasColumnType("int(11)");
  9464. });
  9465. modelBuilder.Entity<UserMallLargeSn>(entity =>
  9466. {
  9467. entity.Property(e => e.Id).HasColumnType("int(11)");
  9468. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9469. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9470. entity.Property(e => e.CreateMan)
  9471. .HasColumnType("varchar(50)")
  9472. .HasCharSet("utf8")
  9473. .HasCollation("utf8_general_ci");
  9474. entity.Property(e => e.OrderAmount).HasColumnType("decimal(18,2)");
  9475. entity.Property(e => e.OrderNo)
  9476. .HasColumnType("varchar(32)")
  9477. .HasCharSet("utf8")
  9478. .HasCollation("utf8_general_ci");
  9479. entity.Property(e => e.OrderNum).HasColumnType("int(11)");
  9480. entity.Property(e => e.ProductName)
  9481. .HasColumnType("varchar(32)")
  9482. .HasCharSet("utf8")
  9483. .HasCollation("utf8_general_ci");
  9484. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9485. entity.Property(e => e.Remark)
  9486. .HasColumnType("varchar(64)")
  9487. .HasCharSet("utf8")
  9488. .HasCollation("utf8_general_ci");
  9489. entity.Property(e => e.RuleOrderAmt).HasColumnType("decimal(18,2)");
  9490. entity.Property(e => e.SeoDescription)
  9491. .HasColumnType("varchar(500)")
  9492. .HasCharSet("utf8")
  9493. .HasCollation("utf8_general_ci");
  9494. entity.Property(e => e.SeoKeyword)
  9495. .HasColumnType("varchar(200)")
  9496. .HasCharSet("utf8")
  9497. .HasCollation("utf8_general_ci");
  9498. entity.Property(e => e.SeoTitle)
  9499. .HasColumnType("varchar(100)")
  9500. .HasCharSet("utf8")
  9501. .HasCollation("utf8_general_ci");
  9502. entity.Property(e => e.SnNo)
  9503. .HasColumnType("varchar(32)")
  9504. .HasCharSet("utf8")
  9505. .HasCollation("utf8_general_ci");
  9506. entity.Property(e => e.SnShipDate).HasColumnType("datetime");
  9507. entity.Property(e => e.SnStatus).HasColumnType("int(11)");
  9508. entity.Property(e => e.SnType).HasColumnType("int(11)");
  9509. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9510. entity.Property(e => e.Status).HasColumnType("int(11)");
  9511. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  9512. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9513. entity.Property(e => e.UpdateMan)
  9514. .HasColumnType("varchar(50)")
  9515. .HasCharSet("utf8")
  9516. .HasCollation("utf8_general_ci");
  9517. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9518. entity.Property(e => e.Version).HasColumnType("int(11)");
  9519. });
  9520. modelBuilder.Entity<UserOfflineSignInRecords>(entity =>
  9521. {
  9522. entity.Property(e => e.Id).HasColumnType("int(11)");
  9523. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9524. entity.Property(e => e.CreateMan)
  9525. .HasColumnType("varchar(50)")
  9526. .HasCharSet("utf8")
  9527. .HasCollation("utf8_general_ci");
  9528. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  9529. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9530. entity.Property(e => e.SeoDescription)
  9531. .HasColumnType("varchar(500)")
  9532. .HasCharSet("utf8")
  9533. .HasCollation("utf8_general_ci");
  9534. entity.Property(e => e.SeoKeyword)
  9535. .HasColumnType("varchar(200)")
  9536. .HasCharSet("utf8")
  9537. .HasCollation("utf8_general_ci");
  9538. entity.Property(e => e.SeoTitle)
  9539. .HasColumnType("varchar(100)")
  9540. .HasCharSet("utf8")
  9541. .HasCollation("utf8_general_ci");
  9542. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9543. entity.Property(e => e.Status).HasColumnType("int(11)");
  9544. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9545. entity.Property(e => e.UpdateMan)
  9546. .HasColumnType("varchar(50)")
  9547. .HasCharSet("utf8")
  9548. .HasCollation("utf8_general_ci");
  9549. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9550. entity.Property(e => e.Version).HasColumnType("int(11)");
  9551. });
  9552. modelBuilder.Entity<UserProfit>(entity =>
  9553. {
  9554. entity.Property(e => e.Id).HasColumnType("int(11)");
  9555. entity.Property(e => e.AddOrSubRate).HasColumnType("decimal(18,2)");
  9556. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9557. entity.Property(e => e.CardType)
  9558. .HasColumnType("varchar(10)")
  9559. .HasCharSet("utf8")
  9560. .HasCollation("utf8_general_ci");
  9561. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9562. entity.Property(e => e.CreateMan)
  9563. .HasColumnType("varchar(50)")
  9564. .HasCharSet("utf8")
  9565. .HasCollation("utf8_general_ci");
  9566. entity.Property(e => e.HelpAddOrSubRate).HasColumnType("decimal(18,2)");
  9567. entity.Property(e => e.HelpProfitPercent).HasColumnType("decimal(18,2)");
  9568. entity.Property(e => e.HelpProfitRate).HasColumnType("decimal(18,2)");
  9569. entity.Property(e => e.HelpProfitRateBase).HasColumnType("decimal(18,2)");
  9570. entity.Property(e => e.ProfitPercent).HasColumnType("decimal(18,2)");
  9571. entity.Property(e => e.ProfitRate).HasColumnType("decimal(18,2)");
  9572. entity.Property(e => e.ProfitRateBase).HasColumnType("decimal(18,2)");
  9573. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9574. entity.Property(e => e.Remark)
  9575. .HasColumnType("varchar(64)")
  9576. .HasCharSet("utf8")
  9577. .HasCollation("utf8_general_ci");
  9578. entity.Property(e => e.SeoDescription)
  9579. .HasColumnType("varchar(500)")
  9580. .HasCharSet("utf8")
  9581. .HasCollation("utf8_general_ci");
  9582. entity.Property(e => e.SeoKeyword)
  9583. .HasColumnType("varchar(200)")
  9584. .HasCharSet("utf8")
  9585. .HasCollation("utf8_general_ci");
  9586. entity.Property(e => e.SeoTitle)
  9587. .HasColumnType("varchar(100)")
  9588. .HasCharSet("utf8")
  9589. .HasCollation("utf8_general_ci");
  9590. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9591. entity.Property(e => e.Status).HasColumnType("int(11)");
  9592. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  9593. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9594. entity.Property(e => e.UpdateMan)
  9595. .HasColumnType("varchar(50)")
  9596. .HasCharSet("utf8")
  9597. .HasCollation("utf8_general_ci");
  9598. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9599. entity.Property(e => e.Version).HasColumnType("int(11)");
  9600. });
  9601. modelBuilder.Entity<UserProfitSet>(entity =>
  9602. {
  9603. entity.Property(e => e.Id).HasColumnType("int(11)");
  9604. entity.Property(e => e.AddOrSubRate).HasColumnType("decimal(18,2)");
  9605. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9606. entity.Property(e => e.CardType).HasColumnType("int(11)");
  9607. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9608. entity.Property(e => e.CreateMan)
  9609. .HasColumnType("varchar(50)")
  9610. .HasCharSet("utf8")
  9611. .HasCollation("utf8_general_ci");
  9612. entity.Property(e => e.HelpFlag).HasColumnType("int(11)");
  9613. entity.Property(e => e.ProfitPercent).HasColumnType("decimal(18,2)");
  9614. entity.Property(e => e.ProfitRate).HasColumnType("decimal(18,2)");
  9615. entity.Property(e => e.ProfitRateBase).HasColumnType("decimal(18,2)");
  9616. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9617. entity.Property(e => e.Remark)
  9618. .HasColumnType("varchar(64)")
  9619. .HasCharSet("utf8")
  9620. .HasCollation("utf8_general_ci");
  9621. entity.Property(e => e.SeoDescription)
  9622. .HasColumnType("varchar(500)")
  9623. .HasCharSet("utf8")
  9624. .HasCollation("utf8_general_ci");
  9625. entity.Property(e => e.SeoKeyword)
  9626. .HasColumnType("varchar(200)")
  9627. .HasCharSet("utf8")
  9628. .HasCollation("utf8_general_ci");
  9629. entity.Property(e => e.SeoTitle)
  9630. .HasColumnType("varchar(100)")
  9631. .HasCharSet("utf8")
  9632. .HasCollation("utf8_general_ci");
  9633. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9634. entity.Property(e => e.Status).HasColumnType("int(11)");
  9635. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  9636. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9637. entity.Property(e => e.UpdateMan)
  9638. .HasColumnType("varchar(50)")
  9639. .HasCharSet("utf8")
  9640. .HasCollation("utf8_general_ci");
  9641. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9642. entity.Property(e => e.Version).HasColumnType("int(11)");
  9643. });
  9644. modelBuilder.Entity<UserProfitSubsidySummary>(entity =>
  9645. {
  9646. entity.Property(e => e.Id).HasColumnType("int(11)");
  9647. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9648. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  9649. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9650. entity.Property(e => e.CreateMan)
  9651. .HasColumnType("varchar(50)")
  9652. .HasCharSet("utf8")
  9653. .HasCollation("utf8_general_ci");
  9654. entity.Property(e => e.MgrName)
  9655. .HasColumnType("varchar(32)")
  9656. .HasCharSet("utf8")
  9657. .HasCollation("utf8_general_ci");
  9658. entity.Property(e => e.MgrNo)
  9659. .HasColumnType("varchar(16)")
  9660. .HasCharSet("utf8")
  9661. .HasCollation("utf8_general_ci");
  9662. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9663. entity.Property(e => e.SeoDescription)
  9664. .HasColumnType("varchar(500)")
  9665. .HasCharSet("utf8")
  9666. .HasCollation("utf8_general_ci");
  9667. entity.Property(e => e.SeoKeyword)
  9668. .HasColumnType("varchar(200)")
  9669. .HasCharSet("utf8")
  9670. .HasCollation("utf8_general_ci");
  9671. entity.Property(e => e.SeoTitle)
  9672. .HasColumnType("varchar(100)")
  9673. .HasCharSet("utf8")
  9674. .HasCollation("utf8_general_ci");
  9675. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9676. entity.Property(e => e.Status).HasColumnType("int(11)");
  9677. entity.Property(e => e.SubsidyDirectProfit).HasColumnType("decimal(18,2)");
  9678. entity.Property(e => e.SubsidyJuniorProfit).HasColumnType("decimal(18,2)");
  9679. entity.Property(e => e.SubsidyTotalProfit).HasColumnType("decimal(18,2)");
  9680. entity.Property(e => e.TradeMonth)
  9681. .HasColumnType("varchar(6)")
  9682. .HasCharSet("utf8")
  9683. .HasCollation("utf8_general_ci");
  9684. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9685. entity.Property(e => e.UpdateMan)
  9686. .HasColumnType("varchar(50)")
  9687. .HasCharSet("utf8")
  9688. .HasCollation("utf8_general_ci");
  9689. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9690. entity.Property(e => e.Version).HasColumnType("int(11)");
  9691. });
  9692. modelBuilder.Entity<UserRank>(entity =>
  9693. {
  9694. entity.Property(e => e.Id).HasColumnType("int(11)");
  9695. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9696. entity.Property(e => e.CreateMan)
  9697. .HasColumnType("varchar(50)")
  9698. .HasCharSet("utf8")
  9699. .HasCollation("utf8_general_ci");
  9700. entity.Property(e => e.ExceedVal).HasColumnType("int(11)");
  9701. entity.Property(e => e.NextRank).HasColumnType("int(11)");
  9702. entity.Property(e => e.OperateDate).HasColumnType("datetime");
  9703. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9704. entity.Property(e => e.Rank).HasColumnType("int(11)");
  9705. entity.Property(e => e.SeoDescription)
  9706. .HasColumnType("varchar(500)")
  9707. .HasCharSet("utf8")
  9708. .HasCollation("utf8_general_ci");
  9709. entity.Property(e => e.SeoKeyword)
  9710. .HasColumnType("varchar(200)")
  9711. .HasCharSet("utf8")
  9712. .HasCollation("utf8_general_ci");
  9713. entity.Property(e => e.SeoTitle)
  9714. .HasColumnType("varchar(100)")
  9715. .HasCharSet("utf8")
  9716. .HasCollation("utf8_general_ci");
  9717. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9718. entity.Property(e => e.StatMonth).HasColumnType("int(11)");
  9719. entity.Property(e => e.StatYear).HasColumnType("int(11)");
  9720. entity.Property(e => e.Status).HasColumnType("int(11)");
  9721. entity.Property(e => e.TradeAmt).HasColumnType("decimal(18,2)");
  9722. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9723. entity.Property(e => e.UpdateMan)
  9724. .HasColumnType("varchar(50)")
  9725. .HasCharSet("utf8")
  9726. .HasCollation("utf8_general_ci");
  9727. entity.Property(e => e.UpgradeFlag)
  9728. .HasColumnType("bit(1)")
  9729. .HasDefaultValueSql("b'0'");
  9730. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9731. entity.Property(e => e.Version).HasColumnType("int(11)");
  9732. entity.Property(e => e.WhiteRank).HasColumnType("int(11)");
  9733. });
  9734. modelBuilder.Entity<UserRankWhite>(entity =>
  9735. {
  9736. entity.Property(e => e.Id).HasColumnType("int(11)");
  9737. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9738. entity.Property(e => e.CreateMan)
  9739. .HasColumnType("varchar(50)")
  9740. .HasCharSet("utf8")
  9741. .HasCollation("utf8_general_ci");
  9742. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9743. entity.Property(e => e.Rank).HasColumnType("int(11)");
  9744. entity.Property(e => e.SeoDescription)
  9745. .HasColumnType("varchar(500)")
  9746. .HasCharSet("utf8")
  9747. .HasCollation("utf8_general_ci");
  9748. entity.Property(e => e.SeoKeyword)
  9749. .HasColumnType("varchar(200)")
  9750. .HasCharSet("utf8")
  9751. .HasCollation("utf8_general_ci");
  9752. entity.Property(e => e.SeoTitle)
  9753. .HasColumnType("varchar(100)")
  9754. .HasCharSet("utf8")
  9755. .HasCollation("utf8_general_ci");
  9756. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9757. entity.Property(e => e.Status).HasColumnType("int(11)");
  9758. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9759. entity.Property(e => e.UpdateMan)
  9760. .HasColumnType("varchar(50)")
  9761. .HasCharSet("utf8")
  9762. .HasCollation("utf8_general_ci");
  9763. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9764. entity.Property(e => e.Version).HasColumnType("int(11)");
  9765. });
  9766. modelBuilder.Entity<UserRebateDetail>(entity =>
  9767. {
  9768. entity.Property(e => e.Id).HasColumnType("int(11)");
  9769. entity.Property(e => e.ChannelMerNo)
  9770. .HasColumnType("varchar(32)")
  9771. .HasCharSet("utf8")
  9772. .HasCollation("utf8_general_ci");
  9773. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9774. entity.Property(e => e.CreateMan)
  9775. .HasColumnType("varchar(50)")
  9776. .HasCharSet("utf8")
  9777. .HasCollation("utf8_general_ci");
  9778. entity.Property(e => e.CreditRewardAmount).HasColumnType("decimal(18,2)");
  9779. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  9780. entity.Property(e => e.DebitRewardAmount).HasColumnType("decimal(18,2)");
  9781. entity.Property(e => e.DebitTradeAmt).HasColumnType("decimal(18,2)");
  9782. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  9783. entity.Property(e => e.MgrName)
  9784. .HasColumnType("varchar(32)")
  9785. .HasCharSet("utf8")
  9786. .HasCollation("utf8_general_ci");
  9787. entity.Property(e => e.MgrNo)
  9788. .HasColumnType("varchar(16)")
  9789. .HasCharSet("utf8")
  9790. .HasCollation("utf8_general_ci");
  9791. entity.Property(e => e.ProductName)
  9792. .HasColumnType("varchar(32)")
  9793. .HasCharSet("utf8")
  9794. .HasCollation("utf8_general_ci");
  9795. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  9796. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9797. entity.Property(e => e.RebateMonthCount).HasColumnType("int(11)");
  9798. entity.Property(e => e.RebateRewardNo)
  9799. .HasColumnType("varchar(32)")
  9800. .HasCharSet("utf8")
  9801. .HasCollation("utf8_general_ci");
  9802. entity.Property(e => e.RebateType).HasColumnType("int(11)");
  9803. entity.Property(e => e.Remark)
  9804. .HasColumnType("varchar(64)")
  9805. .HasCharSet("utf8")
  9806. .HasCollation("utf8_general_ci");
  9807. entity.Property(e => e.SeoDescription)
  9808. .HasColumnType("varchar(500)")
  9809. .HasCharSet("utf8")
  9810. .HasCollation("utf8_general_ci");
  9811. entity.Property(e => e.SeoKeyword)
  9812. .HasColumnType("varchar(200)")
  9813. .HasCharSet("utf8")
  9814. .HasCollation("utf8_general_ci");
  9815. entity.Property(e => e.SeoTitle)
  9816. .HasColumnType("varchar(100)")
  9817. .HasCharSet("utf8")
  9818. .HasCollation("utf8_general_ci");
  9819. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9820. entity.Property(e => e.Status).HasColumnType("int(11)");
  9821. entity.Property(e => e.TradeDate)
  9822. .HasColumnType("varchar(8)")
  9823. .HasCharSet("utf8")
  9824. .HasCollation("utf8_general_ci");
  9825. entity.Property(e => e.TradeMonth)
  9826. .HasColumnType("varchar(6)")
  9827. .HasCharSet("utf8")
  9828. .HasCollation("utf8_general_ci");
  9829. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9830. entity.Property(e => e.UpdateMan)
  9831. .HasColumnType("varchar(50)")
  9832. .HasCharSet("utf8")
  9833. .HasCollation("utf8_general_ci");
  9834. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9835. entity.Property(e => e.Version).HasColumnType("int(11)");
  9836. });
  9837. modelBuilder.Entity<UserSnActInfo>(entity =>
  9838. {
  9839. entity.Property(e => e.Id).HasColumnType("int(11)");
  9840. entity.Property(e => e.ActUserId).HasColumnType("int(11)");
  9841. entity.Property(e => e.ActiveStatus).HasColumnType("int(11)");
  9842. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9843. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9844. entity.Property(e => e.CreateMan)
  9845. .HasColumnType("varchar(50)")
  9846. .HasCharSet("utf8")
  9847. .HasCollation("utf8_general_ci");
  9848. entity.Property(e => e.EffectEndActDate)
  9849. .HasColumnType("varchar(8)")
  9850. .HasCharSet("utf8")
  9851. .HasCollation("utf8_general_ci");
  9852. entity.Property(e => e.EffectEndCycleDate)
  9853. .HasColumnType("varchar(8)")
  9854. .HasCharSet("utf8")
  9855. .HasCollation("utf8_general_ci");
  9856. entity.Property(e => e.EffectStartActDate)
  9857. .HasColumnType("varchar(8)")
  9858. .HasCharSet("utf8")
  9859. .HasCollation("utf8_general_ci");
  9860. entity.Property(e => e.EffectStartCycleDate)
  9861. .HasColumnType("varchar(8)")
  9862. .HasCharSet("utf8")
  9863. .HasCollation("utf8_general_ci");
  9864. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9865. entity.Property(e => e.Remark)
  9866. .HasColumnType("varchar(128)")
  9867. .HasCharSet("utf8")
  9868. .HasCollation("utf8_general_ci");
  9869. entity.Property(e => e.SeoDescription)
  9870. .HasColumnType("varchar(500)")
  9871. .HasCharSet("utf8")
  9872. .HasCollation("utf8_general_ci");
  9873. entity.Property(e => e.SeoKeyword)
  9874. .HasColumnType("varchar(200)")
  9875. .HasCharSet("utf8")
  9876. .HasCollation("utf8_general_ci");
  9877. entity.Property(e => e.SeoTitle)
  9878. .HasColumnType("varchar(100)")
  9879. .HasCharSet("utf8")
  9880. .HasCollation("utf8_general_ci");
  9881. entity.Property(e => e.SnNo)
  9882. .HasColumnType("varchar(32)")
  9883. .HasCharSet("utf8")
  9884. .HasCollation("utf8_general_ci");
  9885. entity.Property(e => e.SnShipDate).HasColumnType("datetime");
  9886. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  9887. entity.Property(e => e.SnType).HasColumnType("int(11)");
  9888. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9889. entity.Property(e => e.SourceShipDate).HasColumnType("datetime");
  9890. entity.Property(e => e.SourceSnNo)
  9891. .HasColumnType("varchar(32)")
  9892. .HasCharSet("utf8")
  9893. .HasCollation("utf8_general_ci");
  9894. entity.Property(e => e.SourceSnType).HasColumnType("int(11)");
  9895. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  9896. entity.Property(e => e.StandardDate)
  9897. .HasColumnType("varchar(8)")
  9898. .HasCharSet("utf8")
  9899. .HasCollation("utf8_general_ci");
  9900. entity.Property(e => e.Status).HasColumnType("int(11)");
  9901. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9902. entity.Property(e => e.UpdateMan)
  9903. .HasColumnType("varchar(50)")
  9904. .HasCharSet("utf8")
  9905. .HasCollation("utf8_general_ci");
  9906. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9907. entity.Property(e => e.Version).HasColumnType("int(11)");
  9908. });
  9909. modelBuilder.Entity<UserSnDelayChange>(entity =>
  9910. {
  9911. entity.Property(e => e.Id).HasColumnType("int(11)");
  9912. entity.Property(e => e.ActivityRuleId).HasColumnType("int(11)");
  9913. entity.Property(e => e.AfterEndCycleDate)
  9914. .HasColumnType("varchar(8)")
  9915. .HasCharSet("utf8")
  9916. .HasCollation("utf8_general_ci");
  9917. entity.Property(e => e.BeforeEndCycleDate)
  9918. .HasColumnType("varchar(8)")
  9919. .HasCharSet("utf8")
  9920. .HasCollation("utf8_general_ci");
  9921. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9922. entity.Property(e => e.ChangeRecordNo)
  9923. .HasColumnType("varchar(32)")
  9924. .HasCharSet("utf8")
  9925. .HasCollation("utf8_general_ci");
  9926. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9927. entity.Property(e => e.CreateMan)
  9928. .HasColumnType("varchar(50)")
  9929. .HasCharSet("utf8")
  9930. .HasCollation("utf8_general_ci");
  9931. entity.Property(e => e.InitCycleDate)
  9932. .HasColumnType("varchar(8)")
  9933. .HasCharSet("utf8")
  9934. .HasCollation("utf8_general_ci");
  9935. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9936. entity.Property(e => e.RecUserId).HasColumnType("int(11)");
  9937. entity.Property(e => e.Remark)
  9938. .HasColumnType("varchar(128)")
  9939. .HasCharSet("utf8")
  9940. .HasCollation("utf8_general_ci");
  9941. entity.Property(e => e.SeoDescription)
  9942. .HasColumnType("varchar(500)")
  9943. .HasCharSet("utf8")
  9944. .HasCollation("utf8_general_ci");
  9945. entity.Property(e => e.SeoKeyword)
  9946. .HasColumnType("varchar(200)")
  9947. .HasCharSet("utf8")
  9948. .HasCollation("utf8_general_ci");
  9949. entity.Property(e => e.SeoTitle)
  9950. .HasColumnType("varchar(100)")
  9951. .HasCharSet("utf8")
  9952. .HasCollation("utf8_general_ci");
  9953. entity.Property(e => e.SnDelayDay).HasColumnType("int(11)");
  9954. entity.Property(e => e.SnNo)
  9955. .HasColumnType("varchar(32)")
  9956. .HasCharSet("utf8")
  9957. .HasCollation("utf8_general_ci");
  9958. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  9959. entity.Property(e => e.SnType).HasColumnType("int(11)");
  9960. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9961. entity.Property(e => e.SourceSnNo)
  9962. .HasColumnType("varchar(32)")
  9963. .HasCharSet("utf8")
  9964. .HasCollation("utf8_general_ci");
  9965. entity.Property(e => e.SourceSnShipDate).HasColumnType("datetime");
  9966. entity.Property(e => e.SourceSnType).HasColumnType("int(11)");
  9967. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  9968. entity.Property(e => e.Status).HasColumnType("int(11)");
  9969. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9970. entity.Property(e => e.UpdateMan)
  9971. .HasColumnType("varchar(50)")
  9972. .HasCharSet("utf8")
  9973. .HasCollation("utf8_general_ci");
  9974. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9975. entity.Property(e => e.Version).HasColumnType("int(11)");
  9976. });
  9977. modelBuilder.Entity<UserStoreChange>(entity =>
  9978. {
  9979. entity.Property(e => e.Id).HasColumnType("int(11)");
  9980. entity.Property(e => e.ActRewardUserId).HasColumnType("int(11)");
  9981. entity.Property(e => e.ActiveStatus).HasColumnType("int(11)");
  9982. entity.Property(e => e.BindMerchantId).HasColumnType("int(11)");
  9983. entity.Property(e => e.BindStatus).HasColumnType("int(11)");
  9984. entity.Property(e => e.BizBatchNo)
  9985. .HasColumnType("varchar(32)")
  9986. .HasCharSet("utf8")
  9987. .HasCollation("utf8_general_ci");
  9988. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9989. entity.Property(e => e.BrandType)
  9990. .HasColumnType("varchar(10)")
  9991. .HasCharSet("utf8")
  9992. .HasCollation("utf8_general_ci");
  9993. entity.Property(e => e.ChangeRecordNo)
  9994. .HasColumnType("varchar(32)")
  9995. .HasCharSet("utf8")
  9996. .HasCollation("utf8_general_ci");
  9997. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9998. entity.Property(e => e.CreateMan)
  9999. .HasColumnType("varchar(50)")
  10000. .HasCharSet("utf8")
  10001. .HasCollation("utf8_general_ci");
  10002. entity.Property(e => e.DeviceModel)
  10003. .HasColumnType("varchar(32)")
  10004. .HasCharSet("utf8")
  10005. .HasCollation("utf8_general_ci");
  10006. entity.Property(e => e.DeviceType)
  10007. .HasColumnType("varchar(32)")
  10008. .HasCharSet("utf8")
  10009. .HasCollation("utf8_general_ci");
  10010. entity.Property(e => e.DeviceVendor)
  10011. .HasColumnType("varchar(32)")
  10012. .HasCharSet("utf8")
  10013. .HasCollation("utf8_general_ci");
  10014. entity.Property(e => e.FromDate).HasColumnType("datetime");
  10015. entity.Property(e => e.FromRemark)
  10016. .HasColumnType("varchar(64)")
  10017. .HasCharSet("utf8")
  10018. .HasCollation("utf8_general_ci");
  10019. entity.Property(e => e.FromUserId).HasColumnType("int(11)");
  10020. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  10021. entity.Property(e => e.SeoDescription)
  10022. .HasColumnType("varchar(500)")
  10023. .HasCharSet("utf8")
  10024. .HasCollation("utf8_general_ci");
  10025. entity.Property(e => e.SeoKeyword)
  10026. .HasColumnType("varchar(200)")
  10027. .HasCharSet("utf8")
  10028. .HasCollation("utf8_general_ci");
  10029. entity.Property(e => e.SeoTitle)
  10030. .HasColumnType("varchar(100)")
  10031. .HasCharSet("utf8")
  10032. .HasCollation("utf8_general_ci");
  10033. entity.Property(e => e.SnNo)
  10034. .HasColumnType("varchar(32)")
  10035. .HasCharSet("utf8")
  10036. .HasCollation("utf8_general_ci");
  10037. entity.Property(e => e.SnStatus).HasColumnType("int(11)");
  10038. entity.Property(e => e.SnType).HasColumnType("int(11)");
  10039. entity.Property(e => e.Sort).HasColumnType("int(11)");
  10040. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  10041. entity.Property(e => e.Status).HasColumnType("int(11)");
  10042. entity.Property(e => e.StockOpDirect).HasColumnType("int(11)");
  10043. entity.Property(e => e.ToDate).HasColumnType("datetime");
  10044. entity.Property(e => e.ToRemark)
  10045. .HasColumnType("varchar(64)")
  10046. .HasCharSet("utf8")
  10047. .HasCollation("utf8_general_ci");
  10048. entity.Property(e => e.ToStoreId).HasColumnType("int(11)");
  10049. entity.Property(e => e.ToUserId).HasColumnType("int(11)");
  10050. entity.Property(e => e.TransType).HasColumnType("int(11)");
  10051. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  10052. entity.Property(e => e.UpdateMan)
  10053. .HasColumnType("varchar(50)")
  10054. .HasCharSet("utf8")
  10055. .HasCollation("utf8_general_ci");
  10056. entity.Property(e => e.UserId).HasColumnType("int(11)");
  10057. entity.Property(e => e.Version).HasColumnType("int(11)");
  10058. });
  10059. modelBuilder.Entity<UserSwapDetail>(entity =>
  10060. {
  10061. entity.Property(e => e.Id).HasColumnType("int(11)");
  10062. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  10063. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  10064. entity.Property(e => e.CreateMan)
  10065. .HasColumnType("varchar(50)")
  10066. .HasCharSet("utf8")
  10067. .HasCollation("utf8_general_ci");
  10068. entity.Property(e => e.DirectSnTradeAmt).HasColumnType("decimal(18,2)");
  10069. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  10070. entity.Property(e => e.RecordNo)
  10071. .HasColumnType("varchar(32)")
  10072. .HasCharSet("utf8")
  10073. .HasCollation("utf8_general_ci");
  10074. entity.Property(e => e.Remark)
  10075. .HasColumnType("varchar(64)")
  10076. .HasCharSet("utf8")
  10077. .HasCollation("utf8_general_ci");
  10078. entity.Property(e => e.RiskResult).HasColumnType("int(11)");
  10079. entity.Property(e => e.SeoDescription)
  10080. .HasColumnType("varchar(500)")
  10081. .HasCharSet("utf8")
  10082. .HasCollation("utf8_general_ci");
  10083. entity.Property(e => e.SeoKeyword)
  10084. .HasColumnType("varchar(200)")
  10085. .HasCharSet("utf8")
  10086. .HasCollation("utf8_general_ci");
  10087. entity.Property(e => e.SeoTitle)
  10088. .HasColumnType("varchar(100)")
  10089. .HasCharSet("utf8")
  10090. .HasCollation("utf8_general_ci");
  10091. entity.Property(e => e.SnNo)
  10092. .HasColumnType("varchar(32)")
  10093. .HasCharSet("utf8")
  10094. .HasCollation("utf8_general_ci");
  10095. entity.Property(e => e.SnType).HasColumnType("int(11)");
  10096. entity.Property(e => e.Sort).HasColumnType("int(11)");
  10097. entity.Property(e => e.SourceSnNo)
  10098. .HasColumnType("varchar(32)")
  10099. .HasCharSet("utf8")
  10100. .HasCollation("utf8_general_ci");
  10101. entity.Property(e => e.SourceSnType).HasColumnType("int(11)");
  10102. entity.Property(e => e.Status).HasColumnType("int(11)");
  10103. entity.Property(e => e.SwapExtProductTypes)
  10104. .HasColumnType("varchar(16)")
  10105. .HasCharSet("utf8")
  10106. .HasCollation("utf8_general_ci");
  10107. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  10108. entity.Property(e => e.TradeDate)
  10109. .HasColumnType("varchar(8)")
  10110. .HasCharSet("utf8")
  10111. .HasCollation("utf8_general_ci");
  10112. entity.Property(e => e.TradeMonth)
  10113. .HasColumnType("varchar(6)")
  10114. .HasCharSet("utf8")
  10115. .HasCollation("utf8_general_ci");
  10116. entity.Property(e => e.UpSourceSnNo)
  10117. .HasColumnType("varchar(32)")
  10118. .HasCharSet("utf8")
  10119. .HasCollation("utf8_general_ci");
  10120. entity.Property(e => e.UpSourceSnType).HasColumnType("int(11)");
  10121. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  10122. entity.Property(e => e.UpdateMan)
  10123. .HasColumnType("varchar(50)")
  10124. .HasCharSet("utf8")
  10125. .HasCollation("utf8_general_ci");
  10126. entity.Property(e => e.UserId).HasColumnType("int(11)");
  10127. entity.Property(e => e.Version).HasColumnType("int(11)");
  10128. });
  10129. modelBuilder.Entity<UserSwapSummary>(entity =>
  10130. {
  10131. entity.Property(e => e.Id).HasColumnType("int(11)");
  10132. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  10133. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  10134. entity.Property(e => e.CreateMan)
  10135. .HasColumnType("varchar(50)")
  10136. .HasCharSet("utf8")
  10137. .HasCollation("utf8_general_ci");
  10138. entity.Property(e => e.DirAvgTradeAmt).HasColumnType("decimal(18,2)");
  10139. entity.Property(e => e.DirectActMerCount).HasColumnType("int(11)");
  10140. entity.Property(e => e.DirectTradeAmt).HasColumnType("decimal(18,2)");
  10141. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  10142. entity.Property(e => e.RiskStatus).HasColumnType("int(11)");
  10143. entity.Property(e => e.RuleId).HasColumnType("int(11)");
  10144. entity.Property(e => e.SeoDescription)
  10145. .HasColumnType("varchar(500)")
  10146. .HasCharSet("utf8")
  10147. .HasCollation("utf8_general_ci");
  10148. entity.Property(e => e.SeoKeyword)
  10149. .HasColumnType("varchar(200)")
  10150. .HasCharSet("utf8")
  10151. .HasCollation("utf8_general_ci");
  10152. entity.Property(e => e.SeoTitle)
  10153. .HasColumnType("varchar(100)")
  10154. .HasCharSet("utf8")
  10155. .HasCollation("utf8_general_ci");
  10156. entity.Property(e => e.Sort).HasColumnType("int(11)");
  10157. entity.Property(e => e.Status).HasColumnType("int(11)");
  10158. entity.Property(e => e.SwapExtProductTypes)
  10159. .HasColumnType("varchar(16)")
  10160. .HasCharSet("utf8")
  10161. .HasCollation("utf8_general_ci");
  10162. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  10163. entity.Property(e => e.TradeMonth)
  10164. .HasColumnType("varchar(6)")
  10165. .HasCharSet("utf8")
  10166. .HasCollation("utf8_general_ci");
  10167. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  10168. entity.Property(e => e.UpdateMan)
  10169. .HasColumnType("varchar(50)")
  10170. .HasCharSet("utf8")
  10171. .HasCollation("utf8_general_ci");
  10172. entity.Property(e => e.UserId).HasColumnType("int(11)");
  10173. entity.Property(e => e.Version).HasColumnType("int(11)");
  10174. });
  10175. modelBuilder.Entity<UserSwapWhite>(entity =>
  10176. {
  10177. entity.Property(e => e.Id).HasColumnType("int(11)");
  10178. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  10179. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  10180. entity.Property(e => e.CreateMan)
  10181. .HasColumnType("varchar(50)")
  10182. .HasCharSet("utf8")
  10183. .HasCollation("utf8_general_ci");
  10184. entity.Property(e => e.EndEffectTime).HasColumnType("datetime");
  10185. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  10186. entity.Property(e => e.Remark)
  10187. .HasColumnType("varchar(64)")
  10188. .HasCharSet("utf8")
  10189. .HasCollation("utf8_general_ci");
  10190. entity.Property(e => e.RiskType).HasColumnType("int(11)");
  10191. entity.Property(e => e.SeoDescription)
  10192. .HasColumnType("varchar(500)")
  10193. .HasCharSet("utf8")
  10194. .HasCollation("utf8_general_ci");
  10195. entity.Property(e => e.SeoKeyword)
  10196. .HasColumnType("varchar(200)")
  10197. .HasCharSet("utf8")
  10198. .HasCollation("utf8_general_ci");
  10199. entity.Property(e => e.SeoTitle)
  10200. .HasColumnType("varchar(100)")
  10201. .HasCharSet("utf8")
  10202. .HasCollation("utf8_general_ci");
  10203. entity.Property(e => e.Sort).HasColumnType("int(11)");
  10204. entity.Property(e => e.StartEffectTime).HasColumnType("datetime");
  10205. entity.Property(e => e.Status).HasColumnType("int(11)");
  10206. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  10207. entity.Property(e => e.UpdateMan)
  10208. .HasColumnType("varchar(50)")
  10209. .HasCharSet("utf8")
  10210. .HasCollation("utf8_general_ci");
  10211. entity.Property(e => e.UserId).HasColumnType("int(11)");
  10212. entity.Property(e => e.Version).HasColumnType("int(11)");
  10213. });
  10214. modelBuilder.Entity<UserTradeDaySummary>(entity =>
  10215. {
  10216. entity.HasIndex(e => new { e.UserId, e.TradeMonth, e.TradeDate, e.SeoTitle, e.BrandId, e.QueryCount })
  10217. .HasName("UserTradeDaySummaryIndex");
  10218. entity.Property(e => e.Id).HasColumnType("int(11)");
  10219. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  10220. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  10221. entity.Property(e => e.CreateMan)
  10222. .HasColumnType("varchar(50)")
  10223. .HasCharSet("utf8")
  10224. .HasCollation("utf8_general_ci");
  10225. entity.Property(e => e.DirectDebitCapNum).HasColumnType("int(11)");
  10226. entity.Property(e => e.DirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  10227. entity.Property(e => e.DirectTradeAmt).HasColumnType("decimal(18,2)");
  10228. entity.Property(e => e.NonDirectDebitCapNum).HasColumnType("int(11)");
  10229. entity.Property(e => e.NonDirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  10230. entity.Property(e => e.NonDirectTradeAmt).HasColumnType("decimal(18,2)");
  10231. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  10232. entity.Property(e => e.Remark)
  10233. .HasColumnType("varchar(64)")
  10234. .HasCharSet("utf8")
  10235. .HasCollation("utf8_general_ci");
  10236. entity.Property(e => e.SeoDescription)
  10237. .HasColumnType("varchar(500)")
  10238. .HasCharSet("utf8")
  10239. .HasCollation("utf8_general_ci");
  10240. entity.Property(e => e.SeoKeyword)
  10241. .HasColumnType("varchar(200)")
  10242. .HasCharSet("utf8")
  10243. .HasCollation("utf8_general_ci");
  10244. entity.Property(e => e.SeoTitle)
  10245. .HasColumnType("varchar(100)")
  10246. .HasCharSet("utf8")
  10247. .HasCollation("utf8_general_ci");
  10248. entity.Property(e => e.Sort).HasColumnType("int(11)");
  10249. entity.Property(e => e.Status).HasColumnType("int(11)");
  10250. entity.Property(e => e.TradeDate)
  10251. .HasColumnType("varchar(8)")
  10252. .HasCharSet("utf8")
  10253. .HasCollation("utf8_general_ci");
  10254. entity.Property(e => e.TradeMonth)
  10255. .HasColumnType("varchar(6)")
  10256. .HasCharSet("utf8")
  10257. .HasCollation("utf8_general_ci");
  10258. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  10259. entity.Property(e => e.UpdateMan)
  10260. .HasColumnType("varchar(50)")
  10261. .HasCharSet("utf8")
  10262. .HasCollation("utf8_general_ci");
  10263. entity.Property(e => e.UserId).HasColumnType("int(11)");
  10264. entity.Property(e => e.Version).HasColumnType("int(11)");
  10265. });
  10266. modelBuilder.Entity<UserTradeMonthSummary>(entity =>
  10267. {
  10268. entity.HasIndex(e => new { e.UserId, e.BrandId, e.TradeMonth, e.SeoKeyword, e.SeoTitle })
  10269. .HasName("UserTradeMonthSummaryIndex");
  10270. entity.Property(e => e.Id).HasColumnType("int(11)");
  10271. entity.Property(e => e.ActiveBuddyMerStatus).HasColumnType("int(11)");
  10272. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  10273. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  10274. entity.Property(e => e.CreateMan)
  10275. .HasColumnType("varchar(50)")
  10276. .HasCharSet("utf8")
  10277. .HasCollation("utf8_general_ci");
  10278. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  10279. entity.Property(e => e.DebitCapTradeAmt).HasColumnType("decimal(18,2)");
  10280. entity.Property(e => e.DebitCapTradeNum).HasColumnType("int(11)");
  10281. entity.Property(e => e.DebitNotCapTradeAmt).HasColumnType("decimal(18,2)");
  10282. entity.Property(e => e.MallPosOrderStatus).HasColumnType("int(11)");
  10283. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  10284. entity.Property(e => e.Remark)
  10285. .HasColumnType("varchar(64)")
  10286. .HasCharSet("utf8")
  10287. .HasCollation("utf8_general_ci");
  10288. entity.Property(e => e.SeoDescription)
  10289. .HasColumnType("varchar(500)")
  10290. .HasCharSet("utf8")
  10291. .HasCollation("utf8_general_ci");
  10292. entity.Property(e => e.SeoKeyword)
  10293. .HasColumnType("varchar(200)")
  10294. .HasCharSet("utf8")
  10295. .HasCollation("utf8_general_ci");
  10296. entity.Property(e => e.SeoTitle)
  10297. .HasColumnType("varchar(100)")
  10298. .HasCharSet("utf8")
  10299. .HasCollation("utf8_general_ci");
  10300. entity.Property(e => e.Sort).HasColumnType("int(11)");
  10301. entity.Property(e => e.StatType).HasColumnType("int(11)");
  10302. entity.Property(e => e.Status).HasColumnType("int(11)");
  10303. entity.Property(e => e.TradeAmt).HasColumnType("decimal(18,2)");
  10304. entity.Property(e => e.TradeMonth)
  10305. .HasColumnType("varchar(6)")
  10306. .HasCharSet("utf8")
  10307. .HasCollation("utf8_general_ci");
  10308. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  10309. entity.Property(e => e.UpdateMan)
  10310. .HasColumnType("varchar(50)")
  10311. .HasCharSet("utf8")
  10312. .HasCollation("utf8_general_ci");
  10313. entity.Property(e => e.UserId).HasColumnType("int(11)");
  10314. entity.Property(e => e.Version).HasColumnType("int(11)");
  10315. });
  10316. modelBuilder.Entity<Users>(entity =>
  10317. {
  10318. entity.Property(e => e.Id).HasColumnType("int(11)");
  10319. entity.Property(e => e.AccessToken)
  10320. .HasColumnType("varchar(64)")
  10321. .HasCharSet("utf8")
  10322. .HasCollation("utf8_general_ci");
  10323. entity.Property(e => e.ActiveRewardAmount).HasColumnType("decimal(18,2)");
  10324. entity.Property(e => e.Address)
  10325. .HasColumnType("varchar(50)")
  10326. .HasCharSet("utf8")
  10327. .HasCollation("utf8_general_ci");
  10328. entity.Property(e => e.AgentAreas)
  10329. .HasColumnType("varchar(50)")
  10330. .HasCharSet("utf8")
  10331. .HasCollation("utf8_general_ci");
  10332. entity.Property(e => e.AgentLevel).HasColumnType("int(11)");
  10333. entity.Property(e => e.AlipayUserId)
  10334. .HasColumnType("varchar(50)")
  10335. .HasCharSet("utf8")
  10336. .HasCollation("utf8_general_ci");
  10337. entity.Property(e => e.Areas)
  10338. .HasColumnType("varchar(30)")
  10339. .HasCharSet("utf8")
  10340. .HasCollation("utf8_general_ci");
  10341. entity.Property(e => e.AuditStatus).HasColumnType("int(11)");
  10342. entity.Property(e => e.AuthDate).HasColumnType("datetime");
  10343. entity.Property(e => e.AuthFlag)
  10344. .HasColumnType("bit(1)")
  10345. .HasDefaultValueSql("b'0'");
  10346. entity.Property(e => e.BankCardPositiveImage)
  10347. .HasColumnType("varchar(200)")
  10348. .HasCharSet("utf8")
  10349. .HasCollation("utf8_general_ci");
  10350. entity.Property(e => e.CarIds)
  10351. .HasColumnType("varchar(100)")
  10352. .HasCharSet("utf8")
  10353. .HasCollation("utf8_general_ci");
  10354. entity.Property(e => e.CardNo)
  10355. .HasColumnType("varchar(30)")
  10356. .HasCharSet("utf8")
  10357. .HasCollation("utf8_general_ci");
  10358. entity.Property(e => e.CardRecCode)
  10359. .HasColumnType("varchar(200)")
  10360. .HasCharSet("utf8")
  10361. .HasCollation("utf8_general_ci");
  10362. entity.Property(e => e.CashFreezeAmt).HasColumnType("decimal(18,2)");
  10363. entity.Property(e => e.CashNote)
  10364. .HasColumnType("varchar(200)")
  10365. .HasCharSet("utf8")
  10366. .HasCollation("utf8_general_ci");
  10367. entity.Property(e => e.CashStatus).HasColumnType("int(11)");
  10368. entity.Property(e => e.CertFrontImage)
  10369. .HasColumnType("varchar(200)")
  10370. .HasCharSet("utf8")
  10371. .HasCollation("utf8_general_ci");
  10372. entity.Property(e => e.CertId)
  10373. .HasColumnType("varchar(30)")
  10374. .HasCharSet("utf8")
  10375. .HasCollation("utf8_general_ci");
  10376. entity.Property(e => e.CertReverseImage)
  10377. .HasColumnType("varchar(200)")
  10378. .HasCharSet("utf8")
  10379. .HasCollation("utf8_general_ci");
  10380. entity.Property(e => e.CertValidEndDate).HasColumnType("datetime");
  10381. entity.Property(e => e.CertValidStartDate).HasColumnType("datetime");
  10382. entity.Property(e => e.CitySetDate).HasColumnType("datetime");
  10383. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  10384. entity.Property(e => e.CreateMan)
  10385. .HasColumnType("varchar(50)")
  10386. .HasCharSet("utf8")
  10387. .HasCollation("utf8_general_ci");
  10388. entity.Property(e => e.DeviceId)
  10389. .HasColumnType("varchar(128)")
  10390. .HasCharSet("utf8")
  10391. .HasCollation("utf8_general_ci");
  10392. entity.Property(e => e.DeviceToken)
  10393. .HasColumnType("varchar(64)")
  10394. .HasCharSet("utf8")
  10395. .HasCollation("utf8_general_ci");
  10396. entity.Property(e => e.ExpiredDate).HasColumnType("datetime");
  10397. entity.Property(e => e.GroupId)
  10398. .HasColumnType("varchar(200)")
  10399. .HasCharSet("utf8")
  10400. .HasCollation("utf8_general_ci");
  10401. entity.Property(e => e.HandCertImage)
  10402. .HasColumnType("varchar(200)")
  10403. .HasCharSet("utf8")
  10404. .HasCollation("utf8_general_ci");
  10405. entity.Property(e => e.HandPwd)
  10406. .HasColumnType("varchar(32)")
  10407. .HasCharSet("utf8")
  10408. .HasCollation("utf8_general_ci");
  10409. entity.Property(e => e.HeadPhoto)
  10410. .HasColumnType("varchar(2000)")
  10411. .HasCharSet("utf8")
  10412. .HasCollation("utf8_general_ci");
  10413. entity.Property(e => e.IdCardEndNo)
  10414. .HasColumnType("varchar(4)")
  10415. .HasCharSet("utf8")
  10416. .HasCollation("utf8_general_ci");
  10417. entity.Property(e => e.IsNewUser)
  10418. .HasColumnType("bit(1)")
  10419. .HasDefaultValueSql("b'0'");
  10420. entity.Property(e => e.LeaderLevel).HasColumnType("int(11)");
  10421. entity.Property(e => e.LockStatus)
  10422. .HasColumnType("bit(1)")
  10423. .HasDefaultValueSql("b'0'");
  10424. entity.Property(e => e.LoginPwd)
  10425. .HasColumnType("varchar(32)")
  10426. .HasCharSet("utf8")
  10427. .HasCollation("utf8_general_ci");
  10428. entity.Property(e => e.LoginStatus).HasColumnType("int(11)");
  10429. entity.Property(e => e.MakerCode)
  10430. .HasColumnType("varchar(32)")
  10431. .HasCharSet("utf8")
  10432. .HasCollation("utf8_general_ci");
  10433. entity.Property(e => e.MerchantDate).HasColumnType("datetime");
  10434. entity.Property(e => e.MerchantType).HasColumnType("int(11)");
  10435. entity.Property(e => e.Mobile)
  10436. .HasColumnType("varchar(15)")
  10437. .HasCharSet("utf8")
  10438. .HasCollation("utf8_general_ci");
  10439. entity.Property(e => e.NickName)
  10440. .HasColumnType("varchar(300)")
  10441. .HasCharSet("utf8")
  10442. .HasCollation("utf8_general_ci");
  10443. entity.Property(e => e.OpenId)
  10444. .HasColumnType("varchar(50)")
  10445. .HasCharSet("utf8")
  10446. .HasCollation("utf8_general_ci");
  10447. entity.Property(e => e.ParentNav)
  10448. .HasColumnType("longtext")
  10449. .HasCharSet("utf8")
  10450. .HasCollation("utf8_general_ci");
  10451. entity.Property(e => e.ParentUserId).HasColumnType("int(11)");
  10452. entity.Property(e => e.PayPwd)
  10453. .HasColumnType("varchar(32)")
  10454. .HasCharSet("utf8")
  10455. .HasCollation("utf8_general_ci");
  10456. entity.Property(e => e.ProfitRewardRate).HasColumnType("decimal(18,2)");
  10457. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  10458. entity.Property(e => e.RealName)
  10459. .HasColumnType("varchar(30)")
  10460. .HasCharSet("utf8")
  10461. .HasCollation("utf8_general_ci");
  10462. entity.Property(e => e.ReferenceCode)
  10463. .HasColumnType("varchar(200)")
  10464. .HasCharSet("utf8")
  10465. .HasCollation("utf8_general_ci");
  10466. entity.Property(e => e.ReferenceQrCode)
  10467. .HasColumnType("varchar(200)")
  10468. .HasCharSet("utf8")
  10469. .HasCollation("utf8_general_ci");
  10470. entity.Property(e => e.ReferralUserId).HasColumnType("int(11)");
  10471. entity.Property(e => e.Remark)
  10472. .HasColumnType("mediumtext")
  10473. .HasCharSet("utf8")
  10474. .HasCollation("utf8_general_ci");
  10475. entity.Property(e => e.RiskFlag)
  10476. .HasColumnType("bit(1)")
  10477. .HasDefaultValueSql("b'0'");
  10478. entity.Property(e => e.RiskRemark)
  10479. .HasColumnType("varchar(64)")
  10480. .HasCharSet("utf8")
  10481. .HasCollation("utf8_general_ci");
  10482. entity.Property(e => e.RreezeRemark)
  10483. .HasColumnType("varchar(64)")
  10484. .HasCharSet("utf8")
  10485. .HasCollation("utf8_general_ci");
  10486. entity.Property(e => e.SeoDescription)
  10487. .HasColumnType("varchar(500)")
  10488. .HasCharSet("utf8")
  10489. .HasCollation("utf8_general_ci");
  10490. entity.Property(e => e.SeoKeyword)
  10491. .HasColumnType("varchar(200)")
  10492. .HasCharSet("utf8")
  10493. .HasCollation("utf8_general_ci");
  10494. entity.Property(e => e.SeoTitle)
  10495. .HasColumnType("varchar(100)")
  10496. .HasCharSet("utf8")
  10497. .HasCollation("utf8_general_ci");
  10498. entity.Property(e => e.SettleAmount).HasColumnType("decimal(18,2)");
  10499. entity.Property(e => e.SettleBankCardName)
  10500. .HasColumnType("varchar(20)")
  10501. .HasCharSet("utf8")
  10502. .HasCollation("utf8_general_ci");
  10503. entity.Property(e => e.SettleBankCardNo)
  10504. .HasColumnType("varchar(32)")
  10505. .HasCharSet("utf8")
  10506. .HasCollation("utf8_general_ci");
  10507. entity.Property(e => e.SettleBankName)
  10508. .HasColumnType("varchar(32)")
  10509. .HasCharSet("utf8")
  10510. .HasCollation("utf8_general_ci");
  10511. entity.Property(e => e.SettleRemark)
  10512. .HasColumnType("varchar(64)")
  10513. .HasCharSet("utf8")
  10514. .HasCollation("utf8_general_ci");
  10515. entity.Property(e => e.Sex).HasColumnType("int(11)");
  10516. entity.Property(e => e.SignImgUrl)
  10517. .HasColumnType("varchar(200)")
  10518. .HasCharSet("utf8")
  10519. .HasCollation("utf8_general_ci");
  10520. entity.Property(e => e.Sort).HasColumnType("int(11)");
  10521. entity.Property(e => e.Status).HasColumnType("int(11)");
  10522. entity.Property(e => e.Tags)
  10523. .HasColumnType("varchar(200)")
  10524. .HasCharSet("utf8")
  10525. .HasCollation("utf8_general_ci");
  10526. entity.Property(e => e.ThisMonthTrade).HasColumnType("decimal(18,2)");
  10527. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  10528. entity.Property(e => e.UpdateMan)
  10529. .HasColumnType("varchar(50)")
  10530. .HasCharSet("utf8")
  10531. .HasCollation("utf8_general_ci");
  10532. entity.Property(e => e.UserLevel).HasColumnType("int(11)");
  10533. entity.Property(e => e.UserProperty).HasColumnType("int(11)");
  10534. entity.Property(e => e.UserType).HasColumnType("int(11)");
  10535. entity.Property(e => e.Version).HasColumnType("int(11)");
  10536. });
  10537. OnModelCreatingPartial(modelBuilder);
  10538. }
  10539. partial void OnModelCreatingPartial(ModelBuilder modelBuilder);
  10540. }
  10541. }