WebCMSEntities.cs 562 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713
  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<RightDic> RightDic { get; set; }
  140. public virtual DbSet<ServiceCenter> ServiceCenter { get; set; }
  141. public virtual DbSet<SetMerchantTypeRecord> SetMerchantTypeRecord { get; set; }
  142. public virtual DbSet<SmallStoreHouse> SmallStoreHouse { get; set; }
  143. public virtual DbSet<SpOrderNos> SpOrderNos { get; set; }
  144. public virtual DbSet<StoreBalance> StoreBalance { get; set; }
  145. public virtual DbSet<StoreChangeHistory> StoreChangeHistory { get; set; }
  146. public virtual DbSet<StoreForCode> StoreForCode { get; set; }
  147. public virtual DbSet<StoreForName> StoreForName { get; set; }
  148. public virtual DbSet<StoreHouse> StoreHouse { get; set; }
  149. public virtual DbSet<StoreHouseAmountRecord> StoreHouseAmountRecord { get; set; }
  150. public virtual DbSet<StoreMachineApply> StoreMachineApply { get; set; }
  151. public virtual DbSet<StoreMallOrderSummary> StoreMallOrderSummary { get; set; }
  152. public virtual DbSet<StoreSnActivateSummary> StoreSnActivateSummary { get; set; }
  153. public virtual DbSet<StoreStockChange> StoreStockChange { get; set; }
  154. public virtual DbSet<StoreSwapSn> StoreSwapSn { get; set; }
  155. public virtual DbSet<SysAdmin> SysAdmin { get; set; }
  156. public virtual DbSet<SysAdminRole> SysAdminRole { get; set; }
  157. public virtual DbSet<SysLog> SysLog { get; set; }
  158. public virtual DbSet<SysRechargeRecord> SysRechargeRecord { get; set; }
  159. public virtual DbSet<SystemSet> SystemSet { get; set; }
  160. public virtual DbSet<TeamApply> TeamApply { get; set; }
  161. public virtual DbSet<TeamApplyForTeamName> TeamApplyForTeamName { get; set; }
  162. public virtual DbSet<TeamApplyForTeamNo> TeamApplyForTeamNo { get; set; }
  163. public virtual DbSet<TeamBlackList> TeamBlackList { get; set; }
  164. public virtual DbSet<TeamConfig> TeamConfig { get; set; }
  165. public virtual DbSet<TeamDayTop> TeamDayTop { get; set; }
  166. public virtual DbSet<TeamOfferApply> TeamOfferApply { get; set; }
  167. public virtual DbSet<TeamPersonDayTop> TeamPersonDayTop { get; set; }
  168. public virtual DbSet<TmpCert> TmpCert { get; set; }
  169. public virtual DbSet<TmpTradeNo> TmpTradeNo { get; set; }
  170. public virtual DbSet<TradeDaySummary> TradeDaySummary { get; set; }
  171. public virtual DbSet<TradeRecord> TradeRecord { get; set; }
  172. public virtual DbSet<TradeRecordTest> TradeRecordTest { get; set; }
  173. public virtual DbSet<UploadParams> UploadParams { get; set; }
  174. public virtual DbSet<UserAccount> UserAccount { get; set; }
  175. public virtual DbSet<UserAccountRecord> UserAccountRecord { get; set; }
  176. public virtual DbSet<UserAddress> UserAddress { get; set; }
  177. public virtual DbSet<UserAuthRecord> UserAuthRecord { get; set; }
  178. public virtual DbSet<UserBack> UserBack { get; set; }
  179. public virtual DbSet<UserBackKind> UserBackKind { get; set; }
  180. public virtual DbSet<UserBalanceTop> UserBalanceTop { get; set; }
  181. public virtual DbSet<UserCar> UserCar { get; set; }
  182. public virtual DbSet<UserCardForWeChat> UserCardForWeChat { get; set; }
  183. public virtual DbSet<UserCardRecord> UserCardRecord { get; set; }
  184. public virtual DbSet<UserCashRecord> UserCashRecord { get; set; }
  185. public virtual DbSet<UserCenterIconList> UserCenterIconList { get; set; }
  186. public virtual DbSet<UserCollection> UserCollection { get; set; }
  187. public virtual DbSet<UserData> UserData { get; set; }
  188. public virtual DbSet<UserDetail> UserDetail { get; set; }
  189. public virtual DbSet<UserFamilyMember> UserFamilyMember { get; set; }
  190. public virtual DbSet<UserForMakerCode> UserForMakerCode { get; set; }
  191. public virtual DbSet<UserForMobile> UserForMobile { get; set; }
  192. public virtual DbSet<UserForRealName> UserForRealName { get; set; }
  193. public virtual DbSet<UserFriend> UserFriend { get; set; }
  194. public virtual DbSet<UserGroup> UserGroup { get; set; }
  195. public virtual DbSet<UserLevelSet> UserLevelSet { get; set; }
  196. public virtual DbSet<UserLoginRecord> UserLoginRecord { get; set; }
  197. public virtual DbSet<UserMachineData> UserMachineData { get; set; }
  198. public virtual DbSet<UserMallLargeSn> UserMallLargeSn { get; set; }
  199. public virtual DbSet<UserOfflineSignInRecords> UserOfflineSignInRecords { get; set; }
  200. public virtual DbSet<UserProfit> UserProfit { get; set; }
  201. public virtual DbSet<UserProfitSet> UserProfitSet { get; set; }
  202. public virtual DbSet<UserProfitSubsidySummary> UserProfitSubsidySummary { get; set; }
  203. public virtual DbSet<UserRank> UserRank { get; set; }
  204. public virtual DbSet<UserRankWhite> UserRankWhite { get; set; }
  205. public virtual DbSet<UserRebateDetail> UserRebateDetail { get; set; }
  206. public virtual DbSet<UserSnActInfo> UserSnActInfo { get; set; }
  207. public virtual DbSet<UserSnDelayChange> UserSnDelayChange { get; set; }
  208. public virtual DbSet<UserStoreChange> UserStoreChange { get; set; }
  209. public virtual DbSet<UserSwapDetail> UserSwapDetail { get; set; }
  210. public virtual DbSet<UserSwapSummary> UserSwapSummary { get; set; }
  211. public virtual DbSet<UserSwapWhite> UserSwapWhite { get; set; }
  212. public virtual DbSet<UserTradeDaySummary> UserTradeDaySummary { get; set; }
  213. public virtual DbSet<UserTradeMonthSummary> UserTradeMonthSummary { get; set; }
  214. public virtual DbSet<Users> Users { get; set; }
  215. protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
  216. {
  217. if (!optionsBuilder.IsConfigured)
  218. {
  219. optionsBuilder.UseMySql(Library.ConfigurationManager.AppSettings["SqlConnStr"].ToString(), x => x.ServerVersion("5.7.17-mysql"));
  220. }
  221. }
  222. protected override void OnModelCreating(ModelBuilder modelBuilder)
  223. {
  224. modelBuilder.Entity<ActiveReward>(entity =>
  225. {
  226. entity.Property(e => e.Id).HasColumnType("int(11)");
  227. entity.Property(e => e.ActDate).HasColumnType("datetime");
  228. entity.Property(e => e.ActType).HasColumnType("int(11)");
  229. entity.Property(e => e.ActTypeDesc)
  230. .HasColumnType("varchar(64)")
  231. .HasCharSet("utf8")
  232. .HasCollation("utf8_general_ci");
  233. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  234. entity.Property(e => e.City)
  235. .HasColumnType("varchar(32)")
  236. .HasCharSet("utf8")
  237. .HasCollation("utf8_general_ci");
  238. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  239. entity.Property(e => e.CreateMan)
  240. .HasColumnType("varchar(50)")
  241. .HasCharSet("utf8")
  242. .HasCollation("utf8_general_ci");
  243. entity.Property(e => e.DirectBuddyNo).HasColumnType("int(11)");
  244. entity.Property(e => e.DivideAmount).HasColumnType("decimal(18,2)");
  245. entity.Property(e => e.KqMerNo)
  246. .HasColumnType("varchar(32)")
  247. .HasCharSet("utf8")
  248. .HasCollation("utf8_general_ci");
  249. entity.Property(e => e.KqSnNo)
  250. .HasColumnType("varchar(32)")
  251. .HasCharSet("utf8")
  252. .HasCollation("utf8_general_ci");
  253. entity.Property(e => e.MerUserId).HasColumnType("int(11)");
  254. entity.Property(e => e.MerUserNav)
  255. .HasColumnType("varchar(200)")
  256. .HasCharSet("utf8")
  257. .HasCollation("utf8_general_ci");
  258. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  259. entity.Property(e => e.ParentParentUserId).HasColumnType("int(11)");
  260. entity.Property(e => e.ParentUserId).HasColumnType("int(11)");
  261. entity.Property(e => e.Province)
  262. .HasColumnType("varchar(32)")
  263. .HasCharSet("utf8")
  264. .HasCollation("utf8_general_ci");
  265. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  266. entity.Property(e => e.Remark)
  267. .HasColumnType("varchar(64)")
  268. .HasCharSet("utf8")
  269. .HasCollation("utf8_general_ci");
  270. entity.Property(e => e.RewardAmount).HasColumnType("decimal(18,2)");
  271. entity.Property(e => e.RewardRef).HasColumnType("int(11)");
  272. entity.Property(e => e.RewardSourceUserId).HasColumnType("int(11)");
  273. entity.Property(e => e.RewardTips)
  274. .HasColumnType("varchar(16)")
  275. .HasCharSet("utf8")
  276. .HasCollation("utf8_general_ci");
  277. entity.Property(e => e.RuleRewardAmount).HasColumnType("decimal(18,2)");
  278. entity.Property(e => e.SeoDescription)
  279. .HasColumnType("varchar(500)")
  280. .HasCharSet("utf8")
  281. .HasCollation("utf8_general_ci");
  282. entity.Property(e => e.SeoKeyword)
  283. .HasColumnType("varchar(200)")
  284. .HasCharSet("utf8")
  285. .HasCollation("utf8_general_ci");
  286. entity.Property(e => e.SeoTitle)
  287. .HasColumnType("varchar(100)")
  288. .HasCharSet("utf8")
  289. .HasCollation("utf8_general_ci");
  290. entity.Property(e => e.SnApplyUserId).HasColumnType("int(11)");
  291. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  292. entity.Property(e => e.SnType).HasColumnType("int(11)");
  293. entity.Property(e => e.Sort).HasColumnType("int(11)");
  294. entity.Property(e => e.StandardDate).HasColumnType("datetime");
  295. entity.Property(e => e.Status).HasColumnType("int(11)");
  296. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  297. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  298. entity.Property(e => e.UpdateMan)
  299. .HasColumnType("varchar(50)")
  300. .HasCharSet("utf8")
  301. .HasCollation("utf8_general_ci");
  302. entity.Property(e => e.UserId).HasColumnType("int(11)");
  303. entity.Property(e => e.UserNav)
  304. .HasColumnType("varchar(200)")
  305. .HasCharSet("utf8")
  306. .HasCollation("utf8_general_ci");
  307. entity.Property(e => e.Version).HasColumnType("int(11)");
  308. });
  309. modelBuilder.Entity<ActivityEnrolRecord>(entity =>
  310. {
  311. entity.Property(e => e.Id).HasColumnType("int(11)");
  312. entity.Property(e => e.ActId).HasColumnType("int(11)");
  313. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  314. entity.Property(e => e.CreateMan)
  315. .HasColumnType("varchar(50)")
  316. .HasCharSet("utf8")
  317. .HasCollation("utf8_general_ci");
  318. entity.Property(e => e.EffectEndTime)
  319. .HasColumnType("varchar(8)")
  320. .HasCharSet("utf8")
  321. .HasCollation("utf8_general_ci");
  322. entity.Property(e => e.EffectStartTime)
  323. .HasColumnType("varchar(8)")
  324. .HasCharSet("utf8")
  325. .HasCollation("utf8_general_ci");
  326. entity.Property(e => e.EnrolMonth)
  327. .HasColumnType("varchar(80)")
  328. .HasCharSet("utf8")
  329. .HasCollation("utf8_general_ci");
  330. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  331. entity.Property(e => e.SeoDescription)
  332. .HasColumnType("varchar(500)")
  333. .HasCharSet("utf8")
  334. .HasCollation("utf8_general_ci");
  335. entity.Property(e => e.SeoKeyword)
  336. .HasColumnType("varchar(200)")
  337. .HasCharSet("utf8")
  338. .HasCollation("utf8_general_ci");
  339. entity.Property(e => e.SeoTitle)
  340. .HasColumnType("varchar(100)")
  341. .HasCharSet("utf8")
  342. .HasCollation("utf8_general_ci");
  343. entity.Property(e => e.Sort).HasColumnType("int(11)");
  344. entity.Property(e => e.Status).HasColumnType("int(11)");
  345. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  346. entity.Property(e => e.UpdateMan)
  347. .HasColumnType("varchar(50)")
  348. .HasCharSet("utf8")
  349. .HasCollation("utf8_general_ci");
  350. entity.Property(e => e.UserId).HasColumnType("int(11)");
  351. entity.Property(e => e.Version).HasColumnType("int(11)");
  352. });
  353. modelBuilder.Entity<ActivityInfo>(entity =>
  354. {
  355. entity.Property(e => e.Id).HasColumnType("int(11)");
  356. entity.Property(e => e.ActBanner)
  357. .HasColumnType("varchar(200)")
  358. .HasCharSet("utf8")
  359. .HasCollation("utf8_general_ci");
  360. entity.Property(e => e.ActCode)
  361. .HasColumnType("varchar(32)")
  362. .HasCharSet("utf8")
  363. .HasCollation("utf8_general_ci");
  364. entity.Property(e => e.ActContent)
  365. .HasColumnType("longtext")
  366. .HasCharSet("utf8")
  367. .HasCollation("utf8_general_ci");
  368. entity.Property(e => e.ActName)
  369. .HasColumnType("varchar(128)")
  370. .HasCharSet("utf8")
  371. .HasCollation("utf8_general_ci");
  372. entity.Property(e => e.ActReferUrl)
  373. .HasColumnType("varchar(255)")
  374. .HasCharSet("utf8")
  375. .HasCollation("utf8_general_ci");
  376. entity.Property(e => e.ActType).HasColumnType("int(11)");
  377. entity.Property(e => e.BrandId)
  378. .HasColumnType("varchar(100)")
  379. .HasCharSet("utf8")
  380. .HasCollation("utf8_general_ci");
  381. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  382. entity.Property(e => e.CreateMan)
  383. .HasColumnType("varchar(50)")
  384. .HasCharSet("utf8")
  385. .HasCollation("utf8_general_ci");
  386. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  387. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  388. entity.Property(e => e.EnrolEndDate).HasColumnType("datetime");
  389. entity.Property(e => e.EnrolEndTime)
  390. .HasColumnType("varchar(8)")
  391. .HasCharSet("utf8")
  392. .HasCollation("utf8_general_ci");
  393. entity.Property(e => e.EnrolStartDate).HasColumnType("datetime");
  394. entity.Property(e => e.EnrolStartTime)
  395. .HasColumnType("varchar(8)")
  396. .HasCharSet("utf8")
  397. .HasCollation("utf8_general_ci");
  398. entity.Property(e => e.IsTop).HasColumnType("int(11)");
  399. entity.Property(e => e.LimitTopBuddy)
  400. .HasColumnType("varchar(255)")
  401. .HasCharSet("utf8")
  402. .HasCollation("utf8_general_ci");
  403. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  404. entity.Property(e => e.Remark)
  405. .HasColumnType("varchar(128)")
  406. .HasCharSet("utf8")
  407. .HasCollation("utf8_general_ci");
  408. entity.Property(e => e.SeoDescription)
  409. .HasColumnType("varchar(500)")
  410. .HasCharSet("utf8")
  411. .HasCollation("utf8_general_ci");
  412. entity.Property(e => e.SeoKeyword)
  413. .HasColumnType("varchar(200)")
  414. .HasCharSet("utf8")
  415. .HasCollation("utf8_general_ci");
  416. entity.Property(e => e.SeoTitle)
  417. .HasColumnType("varchar(100)")
  418. .HasCharSet("utf8")
  419. .HasCollation("utf8_general_ci");
  420. entity.Property(e => e.Sort).HasColumnType("int(11)");
  421. entity.Property(e => e.Status).HasColumnType("int(11)");
  422. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  423. entity.Property(e => e.UpdateMan)
  424. .HasColumnType("varchar(50)")
  425. .HasCharSet("utf8")
  426. .HasCollation("utf8_general_ci");
  427. entity.Property(e => e.Version).HasColumnType("int(11)");
  428. });
  429. modelBuilder.Entity<ActivityPrizeDetail>(entity =>
  430. {
  431. entity.Property(e => e.Id).HasColumnType("int(11)");
  432. entity.Property(e => e.ActRewardAmt).HasColumnType("decimal(18,2)");
  433. entity.Property(e => e.ActivityId).HasColumnType("int(11)");
  434. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  435. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  436. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  437. entity.Property(e => e.CreateMan)
  438. .HasColumnType("varchar(50)")
  439. .HasCharSet("utf8")
  440. .HasCollation("utf8_general_ci");
  441. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  442. entity.Property(e => e.OtherProdCreditTradeAmt).HasColumnType("decimal(18,2)");
  443. entity.Property(e => e.ProfitRate).HasColumnType("decimal(18,2)");
  444. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  445. entity.Property(e => e.SeoDescription)
  446. .HasColumnType("varchar(500)")
  447. .HasCharSet("utf8")
  448. .HasCollation("utf8_general_ci");
  449. entity.Property(e => e.SeoKeyword)
  450. .HasColumnType("varchar(200)")
  451. .HasCharSet("utf8")
  452. .HasCollation("utf8_general_ci");
  453. entity.Property(e => e.SeoTitle)
  454. .HasColumnType("varchar(100)")
  455. .HasCharSet("utf8")
  456. .HasCollation("utf8_general_ci");
  457. entity.Property(e => e.Sort).HasColumnType("int(11)");
  458. entity.Property(e => e.Status).HasColumnType("int(11)");
  459. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  460. entity.Property(e => e.TradeAmt).HasColumnType("decimal(18,2)");
  461. entity.Property(e => e.TradeMonth)
  462. .HasColumnType("varchar(6)")
  463. .HasCharSet("utf8")
  464. .HasCollation("utf8_general_ci");
  465. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  466. entity.Property(e => e.UpdateMan)
  467. .HasColumnType("varchar(50)")
  468. .HasCharSet("utf8")
  469. .HasCollation("utf8_general_ci");
  470. entity.Property(e => e.UserId).HasColumnType("int(11)");
  471. entity.Property(e => e.Version).HasColumnType("int(11)");
  472. });
  473. modelBuilder.Entity<ActivityRedPackageJoins>(entity =>
  474. {
  475. entity.Property(e => e.Id).HasColumnType("int(11)");
  476. entity.Property(e => e.ActivityDate)
  477. .HasColumnType("varchar(8)")
  478. .HasCharSet("utf8")
  479. .HasCollation("utf8_general_ci");
  480. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  481. entity.Property(e => e.CreateMan)
  482. .HasColumnType("varchar(50)")
  483. .HasCharSet("utf8")
  484. .HasCollation("utf8_general_ci");
  485. entity.Property(e => e.PrizeAmt).HasColumnType("decimal(18,2)");
  486. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  487. entity.Property(e => e.SeoDescription)
  488. .HasColumnType("varchar(500)")
  489. .HasCharSet("utf8")
  490. .HasCollation("utf8_general_ci");
  491. entity.Property(e => e.SeoKeyword)
  492. .HasColumnType("varchar(200)")
  493. .HasCharSet("utf8")
  494. .HasCollation("utf8_general_ci");
  495. entity.Property(e => e.SeoTitle)
  496. .HasColumnType("varchar(100)")
  497. .HasCharSet("utf8")
  498. .HasCollation("utf8_general_ci");
  499. entity.Property(e => e.Sort).HasColumnType("int(11)");
  500. entity.Property(e => e.Status).HasColumnType("int(11)");
  501. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  502. entity.Property(e => e.UpdateMan)
  503. .HasColumnType("varchar(50)")
  504. .HasCharSet("utf8")
  505. .HasCollation("utf8_general_ci");
  506. entity.Property(e => e.UserId).HasColumnType("int(11)");
  507. entity.Property(e => e.Version).HasColumnType("int(11)");
  508. });
  509. modelBuilder.Entity<ActivityRedPackageStock>(entity =>
  510. {
  511. entity.Property(e => e.Id).HasColumnType("int(11)");
  512. entity.Property(e => e.ActivityDate)
  513. .HasColumnType("varchar(8)")
  514. .HasCharSet("utf8")
  515. .HasCollation("utf8_general_ci");
  516. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  517. entity.Property(e => e.CreateMan)
  518. .HasColumnType("varchar(50)")
  519. .HasCharSet("utf8")
  520. .HasCollation("utf8_general_ci");
  521. entity.Property(e => e.PrizeAmt).HasColumnType("decimal(18,2)");
  522. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  523. entity.Property(e => e.SeoDescription)
  524. .HasColumnType("varchar(500)")
  525. .HasCharSet("utf8")
  526. .HasCollation("utf8_general_ci");
  527. entity.Property(e => e.SeoKeyword)
  528. .HasColumnType("varchar(200)")
  529. .HasCharSet("utf8")
  530. .HasCollation("utf8_general_ci");
  531. entity.Property(e => e.SeoTitle)
  532. .HasColumnType("varchar(100)")
  533. .HasCharSet("utf8")
  534. .HasCollation("utf8_general_ci");
  535. entity.Property(e => e.Sort).HasColumnType("int(11)");
  536. entity.Property(e => e.Status).HasColumnType("int(11)");
  537. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  538. entity.Property(e => e.UpdateMan)
  539. .HasColumnType("varchar(50)")
  540. .HasCharSet("utf8")
  541. .HasCollation("utf8_general_ci");
  542. entity.Property(e => e.UserId).HasColumnType("int(11)");
  543. entity.Property(e => e.Version).HasColumnType("int(11)");
  544. });
  545. modelBuilder.Entity<ActivityRedPackageTop10>(entity =>
  546. {
  547. entity.Property(e => e.Id).HasColumnType("int(11)");
  548. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  549. entity.Property(e => e.CreateMan)
  550. .HasColumnType("varchar(50)")
  551. .HasCharSet("utf8")
  552. .HasCollation("utf8_general_ci");
  553. entity.Property(e => e.Kind).HasColumnType("int(11)");
  554. entity.Property(e => e.PrizeAmt).HasColumnType("decimal(18,2)");
  555. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  556. entity.Property(e => e.SeoDescription)
  557. .HasColumnType("varchar(500)")
  558. .HasCharSet("utf8")
  559. .HasCollation("utf8_general_ci");
  560. entity.Property(e => e.SeoKeyword)
  561. .HasColumnType("varchar(200)")
  562. .HasCharSet("utf8")
  563. .HasCollation("utf8_general_ci");
  564. entity.Property(e => e.SeoTitle)
  565. .HasColumnType("varchar(100)")
  566. .HasCharSet("utf8")
  567. .HasCollation("utf8_general_ci");
  568. entity.Property(e => e.Sort).HasColumnType("int(11)");
  569. entity.Property(e => e.Status).HasColumnType("int(11)");
  570. entity.Property(e => e.TimeNum).HasColumnType("int(11)");
  571. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  572. entity.Property(e => e.UpdateMan)
  573. .HasColumnType("varchar(50)")
  574. .HasCharSet("utf8")
  575. .HasCollation("utf8_general_ci");
  576. entity.Property(e => e.UserId).HasColumnType("int(11)");
  577. entity.Property(e => e.Version).HasColumnType("int(11)");
  578. });
  579. modelBuilder.Entity<Advertisment>(entity =>
  580. {
  581. entity.Property(e => e.Id).HasColumnType("int(11)");
  582. entity.Property(e => e.ColId)
  583. .HasColumnType("varchar(30)")
  584. .HasCharSet("utf8")
  585. .HasCollation("utf8_general_ci");
  586. entity.Property(e => e.Contents)
  587. .HasColumnType("longtext")
  588. .HasCharSet("utf8")
  589. .HasCollation("utf8_general_ci");
  590. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  591. entity.Property(e => e.CreateMan)
  592. .HasColumnType("varchar(50)")
  593. .HasCharSet("utf8")
  594. .HasCollation("utf8_general_ci");
  595. entity.Property(e => e.PicPath)
  596. .HasColumnType("varchar(200)")
  597. .HasCharSet("utf8")
  598. .HasCollation("utf8_general_ci");
  599. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  600. entity.Property(e => e.SeoDescription)
  601. .HasColumnType("varchar(500)")
  602. .HasCharSet("utf8")
  603. .HasCollation("utf8_general_ci");
  604. entity.Property(e => e.SeoKeyword)
  605. .HasColumnType("varchar(200)")
  606. .HasCharSet("utf8")
  607. .HasCollation("utf8_general_ci");
  608. entity.Property(e => e.SeoTitle)
  609. .HasColumnType("varchar(100)")
  610. .HasCharSet("utf8")
  611. .HasCollation("utf8_general_ci");
  612. entity.Property(e => e.Sort).HasColumnType("int(11)");
  613. entity.Property(e => e.Status).HasColumnType("int(11)");
  614. entity.Property(e => e.Title)
  615. .HasColumnType("varchar(50)")
  616. .HasCharSet("utf8")
  617. .HasCollation("utf8_general_ci");
  618. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  619. entity.Property(e => e.UpdateMan)
  620. .HasColumnType("varchar(50)")
  621. .HasCharSet("utf8")
  622. .HasCollation("utf8_general_ci");
  623. entity.Property(e => e.Url)
  624. .HasColumnType("longtext")
  625. .HasCharSet("utf8")
  626. .HasCollation("utf8_general_ci");
  627. entity.Property(e => e.Version).HasColumnType("int(11)");
  628. });
  629. modelBuilder.Entity<AgentLevelSet>(entity =>
  630. {
  631. entity.Property(e => e.Id).HasColumnType("int(11)");
  632. entity.Property(e => e.AreasProfitPercent).HasColumnType("decimal(18,2)");
  633. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  634. entity.Property(e => e.CreateMan)
  635. .HasColumnType("varchar(50)")
  636. .HasCharSet("utf8")
  637. .HasCollation("utf8_general_ci");
  638. entity.Property(e => e.LevelDiff)
  639. .HasColumnType("bit(1)")
  640. .HasDefaultValueSql("b'0'");
  641. entity.Property(e => e.Name)
  642. .HasColumnType("varchar(50)")
  643. .HasCharSet("utf8")
  644. .HasCollation("utf8_general_ci");
  645. entity.Property(e => e.ProfitPercent).HasColumnType("decimal(18,2)");
  646. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  647. entity.Property(e => e.SeoDescription)
  648. .HasColumnType("varchar(500)")
  649. .HasCharSet("utf8")
  650. .HasCollation("utf8_general_ci");
  651. entity.Property(e => e.SeoKeyword)
  652. .HasColumnType("varchar(200)")
  653. .HasCharSet("utf8")
  654. .HasCollation("utf8_general_ci");
  655. entity.Property(e => e.SeoTitle)
  656. .HasColumnType("varchar(100)")
  657. .HasCharSet("utf8")
  658. .HasCollation("utf8_general_ci");
  659. entity.Property(e => e.Sort).HasColumnType("int(11)");
  660. entity.Property(e => e.Status).HasColumnType("int(11)");
  661. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  662. entity.Property(e => e.UpdateMan)
  663. .HasColumnType("varchar(50)")
  664. .HasCharSet("utf8")
  665. .HasCollation("utf8_general_ci");
  666. entity.Property(e => e.Version).HasColumnType("int(11)");
  667. });
  668. modelBuilder.Entity<AppBottomNavs>(entity =>
  669. {
  670. entity.Property(e => e.Id).HasColumnType("int(11)");
  671. entity.Property(e => e.BgColor)
  672. .HasColumnType("varchar(6)")
  673. .HasCharSet("utf8")
  674. .HasCollation("utf8_general_ci");
  675. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  676. entity.Property(e => e.CreateMan)
  677. .HasColumnType("varchar(50)")
  678. .HasCharSet("utf8")
  679. .HasCollation("utf8_general_ci");
  680. entity.Property(e => e.NoPageHint)
  681. .HasColumnType("varchar(50)")
  682. .HasCharSet("utf8")
  683. .HasCollation("utf8_general_ci");
  684. entity.Property(e => e.NormalIcon)
  685. .HasColumnType("varchar(200)")
  686. .HasCharSet("utf8")
  687. .HasCollation("utf8_general_ci");
  688. entity.Property(e => e.NormalTextColor)
  689. .HasColumnType("varchar(6)")
  690. .HasCharSet("utf8")
  691. .HasCollation("utf8_general_ci");
  692. entity.Property(e => e.PageName)
  693. .HasColumnType("varchar(50)")
  694. .HasCharSet("utf8")
  695. .HasCollation("utf8_general_ci");
  696. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  697. entity.Property(e => e.SelectIcon)
  698. .HasColumnType("varchar(200)")
  699. .HasCharSet("utf8")
  700. .HasCollation("utf8_general_ci");
  701. entity.Property(e => e.SelectTextColor)
  702. .HasColumnType("varchar(6)")
  703. .HasCharSet("utf8")
  704. .HasCollation("utf8_general_ci");
  705. entity.Property(e => e.SeoDescription)
  706. .HasColumnType("varchar(500)")
  707. .HasCharSet("utf8")
  708. .HasCollation("utf8_general_ci");
  709. entity.Property(e => e.SeoKeyword)
  710. .HasColumnType("varchar(200)")
  711. .HasCharSet("utf8")
  712. .HasCollation("utf8_general_ci");
  713. entity.Property(e => e.SeoTitle)
  714. .HasColumnType("varchar(100)")
  715. .HasCharSet("utf8")
  716. .HasCollation("utf8_general_ci");
  717. entity.Property(e => e.Sort).HasColumnType("int(11)");
  718. entity.Property(e => e.Status).HasColumnType("int(11)");
  719. entity.Property(e => e.Title)
  720. .HasColumnType("varchar(10)")
  721. .HasCharSet("utf8")
  722. .HasCollation("utf8_general_ci");
  723. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  724. entity.Property(e => e.UpdateMan)
  725. .HasColumnType("varchar(50)")
  726. .HasCharSet("utf8")
  727. .HasCollation("utf8_general_ci");
  728. entity.Property(e => e.Version).HasColumnType("int(11)");
  729. });
  730. modelBuilder.Entity<AppVersion>(entity =>
  731. {
  732. entity.Property(e => e.Id).HasColumnType("int(11)");
  733. entity.Property(e => e.CancelText)
  734. .HasColumnType("varchar(10)")
  735. .HasCharSet("utf8")
  736. .HasCollation("utf8_general_ci");
  737. entity.Property(e => e.ConfirmText)
  738. .HasColumnType("varchar(10)")
  739. .HasCharSet("utf8")
  740. .HasCollation("utf8_general_ci");
  741. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  742. entity.Property(e => e.CreateMan)
  743. .HasColumnType("varchar(50)")
  744. .HasCharSet("utf8")
  745. .HasCollation("utf8_general_ci");
  746. entity.Property(e => e.DownloadUrl)
  747. .HasColumnType("varchar(500)")
  748. .HasCharSet("utf8")
  749. .HasCollation("utf8_general_ci");
  750. entity.Property(e => e.Info)
  751. .HasColumnType("varchar(200)")
  752. .HasCharSet("utf8")
  753. .HasCollation("utf8_general_ci");
  754. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  755. entity.Property(e => e.SeoDescription)
  756. .HasColumnType("varchar(500)")
  757. .HasCharSet("utf8")
  758. .HasCollation("utf8_general_ci");
  759. entity.Property(e => e.SeoKeyword)
  760. .HasColumnType("varchar(200)")
  761. .HasCharSet("utf8")
  762. .HasCollation("utf8_general_ci");
  763. entity.Property(e => e.SeoTitle)
  764. .HasColumnType("varchar(100)")
  765. .HasCharSet("utf8")
  766. .HasCollation("utf8_general_ci");
  767. entity.Property(e => e.Sort).HasColumnType("int(11)");
  768. entity.Property(e => e.Status).HasColumnType("int(11)");
  769. entity.Property(e => e.TerminalKind)
  770. .HasColumnType("varchar(10)")
  771. .HasCharSet("utf8")
  772. .HasCollation("utf8_general_ci");
  773. entity.Property(e => e.Title)
  774. .HasColumnType("varchar(50)")
  775. .HasCharSet("utf8")
  776. .HasCollation("utf8_general_ci");
  777. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  778. entity.Property(e => e.UpdateMan)
  779. .HasColumnType("varchar(50)")
  780. .HasCharSet("utf8")
  781. .HasCollation("utf8_general_ci");
  782. entity.Property(e => e.Version).HasColumnType("int(11)");
  783. entity.Property(e => e.VersionNum)
  784. .HasColumnType("varchar(20)")
  785. .HasCharSet("utf8")
  786. .HasCollation("utf8_general_ci");
  787. });
  788. modelBuilder.Entity<AppVideo>(entity =>
  789. {
  790. entity.Property(e => e.Id).HasColumnType("int(11)");
  791. entity.Property(e => e.BannerPic)
  792. .HasColumnType("varchar(200)")
  793. .HasCharSet("utf8")
  794. .HasCollation("utf8_general_ci");
  795. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  796. entity.Property(e => e.CreateMan)
  797. .HasColumnType("varchar(50)")
  798. .HasCharSet("utf8")
  799. .HasCollation("utf8_general_ci");
  800. entity.Property(e => e.Name)
  801. .HasColumnType("varchar(50)")
  802. .HasCharSet("utf8")
  803. .HasCollation("utf8_general_ci");
  804. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  805. entity.Property(e => e.Remark)
  806. .HasColumnType("varchar(200)")
  807. .HasCharSet("utf8")
  808. .HasCollation("utf8_general_ci");
  809. entity.Property(e => e.SeoDescription)
  810. .HasColumnType("varchar(500)")
  811. .HasCharSet("utf8")
  812. .HasCollation("utf8_general_ci");
  813. entity.Property(e => e.SeoKeyword)
  814. .HasColumnType("varchar(200)")
  815. .HasCharSet("utf8")
  816. .HasCollation("utf8_general_ci");
  817. entity.Property(e => e.SeoTitle)
  818. .HasColumnType("varchar(100)")
  819. .HasCharSet("utf8")
  820. .HasCollation("utf8_general_ci");
  821. entity.Property(e => e.Sort).HasColumnType("int(11)");
  822. entity.Property(e => e.Status).HasColumnType("int(11)");
  823. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  824. entity.Property(e => e.UpdateMan)
  825. .HasColumnType("varchar(50)")
  826. .HasCharSet("utf8")
  827. .HasCollation("utf8_general_ci");
  828. entity.Property(e => e.Version).HasColumnType("int(11)");
  829. });
  830. modelBuilder.Entity<AppVideoList>(entity =>
  831. {
  832. entity.Property(e => e.Id).HasColumnType("int(11)");
  833. entity.Property(e => e.BgPic)
  834. .HasColumnType("varchar(200)")
  835. .HasCharSet("utf8")
  836. .HasCollation("utf8_general_ci");
  837. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  838. entity.Property(e => e.CreateMan)
  839. .HasColumnType("varchar(50)")
  840. .HasCharSet("utf8")
  841. .HasCollation("utf8_general_ci");
  842. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  843. entity.Property(e => e.Remark)
  844. .HasColumnType("varchar(200)")
  845. .HasCharSet("utf8")
  846. .HasCollation("utf8_general_ci");
  847. entity.Property(e => e.SeoDescription)
  848. .HasColumnType("varchar(500)")
  849. .HasCharSet("utf8")
  850. .HasCollation("utf8_general_ci");
  851. entity.Property(e => e.SeoKeyword)
  852. .HasColumnType("varchar(200)")
  853. .HasCharSet("utf8")
  854. .HasCollation("utf8_general_ci");
  855. entity.Property(e => e.SeoTitle)
  856. .HasColumnType("varchar(100)")
  857. .HasCharSet("utf8")
  858. .HasCollation("utf8_general_ci");
  859. entity.Property(e => e.Sort).HasColumnType("int(11)");
  860. entity.Property(e => e.Status).HasColumnType("int(11)");
  861. entity.Property(e => e.Title)
  862. .HasColumnType("varchar(50)")
  863. .HasCharSet("utf8")
  864. .HasCollation("utf8_general_ci");
  865. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  866. entity.Property(e => e.UpdateMan)
  867. .HasColumnType("varchar(50)")
  868. .HasCharSet("utf8")
  869. .HasCollation("utf8_general_ci");
  870. entity.Property(e => e.Version).HasColumnType("int(11)");
  871. entity.Property(e => e.VideoId).HasColumnType("int(11)");
  872. entity.Property(e => e.VideoUrl)
  873. .HasColumnType("varchar(500)")
  874. .HasCharSet("utf8")
  875. .HasCollation("utf8_general_ci");
  876. });
  877. modelBuilder.Entity<BankInfo>(entity =>
  878. {
  879. entity.Property(e => e.Id).HasColumnType("int(11)");
  880. entity.Property(e => e.BankCode)
  881. .HasColumnType("varchar(16)")
  882. .HasCharSet("utf8")
  883. .HasCollation("utf8_general_ci");
  884. entity.Property(e => e.BankName)
  885. .HasColumnType("varchar(100)")
  886. .HasCharSet("utf8")
  887. .HasCollation("utf8_general_ci");
  888. entity.Property(e => e.BankNameAbbr)
  889. .HasColumnType("varchar(60)")
  890. .HasCharSet("utf8")
  891. .HasCollation("utf8_general_ci");
  892. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  893. entity.Property(e => e.CreateMan)
  894. .HasColumnType("varchar(50)")
  895. .HasCharSet("utf8")
  896. .HasCollation("utf8_general_ci");
  897. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  898. entity.Property(e => e.SeoDescription)
  899. .HasColumnType("varchar(500)")
  900. .HasCharSet("utf8")
  901. .HasCollation("utf8_general_ci");
  902. entity.Property(e => e.SeoKeyword)
  903. .HasColumnType("varchar(200)")
  904. .HasCharSet("utf8")
  905. .HasCollation("utf8_general_ci");
  906. entity.Property(e => e.SeoTitle)
  907. .HasColumnType("varchar(100)")
  908. .HasCharSet("utf8")
  909. .HasCollation("utf8_general_ci");
  910. entity.Property(e => e.Sort).HasColumnType("int(11)");
  911. entity.Property(e => e.Status).HasColumnType("int(11)");
  912. entity.Property(e => e.UnitedBankName)
  913. .HasColumnType("varchar(100)")
  914. .HasCharSet("utf8")
  915. .HasCollation("utf8_general_ci");
  916. entity.Property(e => e.UnitedBankNo)
  917. .HasColumnType("varchar(16)")
  918. .HasCharSet("utf8")
  919. .HasCollation("utf8_general_ci");
  920. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  921. entity.Property(e => e.UpdateMan)
  922. .HasColumnType("varchar(50)")
  923. .HasCharSet("utf8")
  924. .HasCollation("utf8_general_ci");
  925. entity.Property(e => e.Version).HasColumnType("int(11)");
  926. });
  927. modelBuilder.Entity<Col>(entity =>
  928. {
  929. entity.Property(e => e.Id).HasColumnType("int(11)");
  930. entity.Property(e => e.ClassName)
  931. .HasColumnType("varchar(50)")
  932. .HasCharSet("utf8")
  933. .HasCollation("utf8_general_ci");
  934. entity.Property(e => e.ColDetail)
  935. .HasColumnType("varchar(50)")
  936. .HasCharSet("utf8")
  937. .HasCollation("utf8_general_ci");
  938. entity.Property(e => e.ColEnName)
  939. .HasColumnType("varchar(50)")
  940. .HasCharSet("utf8")
  941. .HasCollation("utf8_general_ci");
  942. entity.Property(e => e.ColEnNav)
  943. .HasColumnType("varchar(200)")
  944. .HasCharSet("utf8")
  945. .HasCollation("utf8_general_ci");
  946. entity.Property(e => e.ColId)
  947. .HasColumnType("varchar(30)")
  948. .HasCharSet("utf8")
  949. .HasCollation("utf8_general_ci");
  950. entity.Property(e => e.ColName)
  951. .HasColumnType("varchar(50)")
  952. .HasCharSet("utf8")
  953. .HasCollation("utf8_general_ci");
  954. entity.Property(e => e.ColPicPath)
  955. .HasColumnType("varchar(200)")
  956. .HasCharSet("utf8")
  957. .HasCollation("utf8_general_ci");
  958. entity.Property(e => e.Contents)
  959. .HasColumnType("longtext")
  960. .HasCharSet("utf8")
  961. .HasCollation("utf8_general_ci");
  962. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  963. entity.Property(e => e.CreateMan)
  964. .HasColumnType("varchar(50)")
  965. .HasCharSet("utf8")
  966. .HasCollation("utf8_general_ci");
  967. entity.Property(e => e.DetailTemp)
  968. .HasColumnType("varchar(100)")
  969. .HasCharSet("utf8")
  970. .HasCollation("utf8_general_ci");
  971. entity.Property(e => e.DetailTempM)
  972. .HasColumnType("varchar(100)")
  973. .HasCharSet("utf8")
  974. .HasCollation("utf8_general_ci");
  975. entity.Property(e => e.ListPageCount).HasColumnType("int(11)");
  976. entity.Property(e => e.ListTemp)
  977. .HasColumnType("varchar(100)")
  978. .HasCharSet("utf8")
  979. .HasCollation("utf8_general_ci");
  980. entity.Property(e => e.ListTempM)
  981. .HasColumnType("varchar(100)")
  982. .HasCharSet("utf8")
  983. .HasCollation("utf8_general_ci");
  984. entity.Property(e => e.ParentId).HasColumnType("int(11)");
  985. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  986. entity.Property(e => e.Recommend)
  987. .HasColumnType("bit(1)")
  988. .HasDefaultValueSql("b'0'");
  989. entity.Property(e => e.SeoDescription)
  990. .HasColumnType("varchar(500)")
  991. .HasCharSet("utf8")
  992. .HasCollation("utf8_general_ci");
  993. entity.Property(e => e.SeoKeyword)
  994. .HasColumnType("varchar(200)")
  995. .HasCharSet("utf8")
  996. .HasCollation("utf8_general_ci");
  997. entity.Property(e => e.SeoTitle)
  998. .HasColumnType("varchar(100)")
  999. .HasCharSet("utf8")
  1000. .HasCollation("utf8_general_ci");
  1001. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1002. entity.Property(e => e.Status).HasColumnType("int(11)");
  1003. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1004. entity.Property(e => e.UpdateMan)
  1005. .HasColumnType("varchar(50)")
  1006. .HasCharSet("utf8")
  1007. .HasCollation("utf8_general_ci");
  1008. entity.Property(e => e.Url)
  1009. .HasColumnType("longtext")
  1010. .HasCharSet("utf8")
  1011. .HasCollation("utf8_general_ci");
  1012. entity.Property(e => e.Version).HasColumnType("int(11)");
  1013. });
  1014. modelBuilder.Entity<ConsumerOpenIds>(entity =>
  1015. {
  1016. entity.HasKey(e => e.OpenId)
  1017. .HasName("PRIMARY");
  1018. entity.Property(e => e.OpenId)
  1019. .HasColumnType("varchar(50)")
  1020. .HasCharSet("utf8")
  1021. .HasCollation("utf8_general_ci");
  1022. entity.Property(e => e.ConsumerId).HasColumnType("int(11)");
  1023. });
  1024. modelBuilder.Entity<ConsumerOrderForNo>(entity =>
  1025. {
  1026. entity.HasKey(e => e.OrderNo)
  1027. .HasName("PRIMARY");
  1028. entity.Property(e => e.OrderNo)
  1029. .HasColumnType("varchar(50)")
  1030. .HasCharSet("utf8")
  1031. .HasCollation("utf8_general_ci");
  1032. entity.Property(e => e.OrderIds).HasColumnType("int(11)");
  1033. });
  1034. modelBuilder.Entity<ConsumerOrders>(entity =>
  1035. {
  1036. entity.Property(e => e.Id).HasColumnType("int(11)");
  1037. entity.Property(e => e.ConsumerId).HasColumnType("int(11)");
  1038. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1039. entity.Property(e => e.CreateMan)
  1040. .HasColumnType("varchar(50)")
  1041. .HasCharSet("utf8")
  1042. .HasCollation("utf8_general_ci");
  1043. entity.Property(e => e.CurDivi).HasColumnType("decimal(18,2)");
  1044. entity.Property(e => e.IsAct)
  1045. .HasColumnType("bit(1)")
  1046. .HasDefaultValueSql("b'0'");
  1047. entity.Property(e => e.MaxDivi).HasColumnType("decimal(18,2)");
  1048. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  1049. entity.Property(e => e.OrderNo)
  1050. .HasColumnType("varchar(30)")
  1051. .HasCharSet("utf8")
  1052. .HasCollation("utf8_general_ci");
  1053. entity.Property(e => e.PayMode).HasColumnType("int(11)");
  1054. entity.Property(e => e.PayMoney).HasColumnType("decimal(18,2)");
  1055. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1056. entity.Property(e => e.ReturnMoney).HasColumnType("decimal(18,2)");
  1057. entity.Property(e => e.SeoDescription)
  1058. .HasColumnType("varchar(500)")
  1059. .HasCharSet("utf8")
  1060. .HasCollation("utf8_general_ci");
  1061. entity.Property(e => e.SeoKeyword)
  1062. .HasColumnType("varchar(200)")
  1063. .HasCharSet("utf8")
  1064. .HasCollation("utf8_general_ci");
  1065. entity.Property(e => e.SeoTitle)
  1066. .HasColumnType("varchar(100)")
  1067. .HasCharSet("utf8")
  1068. .HasCollation("utf8_general_ci");
  1069. entity.Property(e => e.SnNo)
  1070. .HasColumnType("varchar(50)")
  1071. .HasCharSet("utf8")
  1072. .HasCollation("utf8_general_ci");
  1073. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1074. entity.Property(e => e.Status).HasColumnType("int(11)");
  1075. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1076. entity.Property(e => e.UpdateMan)
  1077. .HasColumnType("varchar(50)")
  1078. .HasCharSet("utf8")
  1079. .HasCollation("utf8_general_ci");
  1080. entity.Property(e => e.Version).HasColumnType("int(11)");
  1081. });
  1082. modelBuilder.Entity<ConsumerProfit>(entity =>
  1083. {
  1084. entity.Property(e => e.Id).HasColumnType("int(11)");
  1085. entity.Property(e => e.ConsumerId).HasColumnType("int(11)");
  1086. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1087. entity.Property(e => e.CreateMan)
  1088. .HasColumnType("varchar(50)")
  1089. .HasCharSet("utf8")
  1090. .HasCollation("utf8_general_ci");
  1091. entity.Property(e => e.GetMoney).HasColumnType("decimal(18,2)");
  1092. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  1093. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  1094. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1095. entity.Property(e => e.SeoDescription)
  1096. .HasColumnType("varchar(500)")
  1097. .HasCharSet("utf8")
  1098. .HasCollation("utf8_general_ci");
  1099. entity.Property(e => e.SeoKeyword)
  1100. .HasColumnType("varchar(200)")
  1101. .HasCharSet("utf8")
  1102. .HasCollation("utf8_general_ci");
  1103. entity.Property(e => e.SeoTitle)
  1104. .HasColumnType("varchar(100)")
  1105. .HasCharSet("utf8")
  1106. .HasCollation("utf8_general_ci");
  1107. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1108. entity.Property(e => e.Status).HasColumnType("int(11)");
  1109. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1110. entity.Property(e => e.UpdateMan)
  1111. .HasColumnType("varchar(50)")
  1112. .HasCharSet("utf8")
  1113. .HasCollation("utf8_general_ci");
  1114. entity.Property(e => e.Version).HasColumnType("int(11)");
  1115. });
  1116. modelBuilder.Entity<Consumers>(entity =>
  1117. {
  1118. entity.Property(e => e.Id).HasColumnType("int(11)");
  1119. entity.Property(e => e.AlipayFlag)
  1120. .HasColumnType("bit(1)")
  1121. .HasDefaultValueSql("b'0'");
  1122. entity.Property(e => e.AlipayUserId)
  1123. .HasColumnType("varchar(50)")
  1124. .HasCharSet("utf8")
  1125. .HasCollation("utf8_general_ci");
  1126. entity.Property(e => e.CardFlag)
  1127. .HasColumnType("bit(1)")
  1128. .HasDefaultValueSql("b'0'");
  1129. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1130. entity.Property(e => e.CreateMan)
  1131. .HasColumnType("varchar(50)")
  1132. .HasCharSet("utf8")
  1133. .HasCollation("utf8_general_ci");
  1134. entity.Property(e => e.CurIntgegral).HasColumnType("int(11)");
  1135. entity.Property(e => e.HeadPhoto)
  1136. .HasColumnType("varchar(2000)")
  1137. .HasCharSet("utf8")
  1138. .HasCollation("utf8_general_ci");
  1139. entity.Property(e => e.LastConsumDate).HasColumnType("datetime");
  1140. entity.Property(e => e.Mobile)
  1141. .HasColumnType("varchar(11)")
  1142. .HasCharSet("utf8")
  1143. .HasCollation("utf8_general_ci");
  1144. entity.Property(e => e.NickName)
  1145. .HasColumnType("varchar(50)")
  1146. .HasCharSet("utf8")
  1147. .HasCollation("utf8_general_ci");
  1148. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1149. entity.Property(e => e.SeoDescription)
  1150. .HasColumnType("varchar(500)")
  1151. .HasCharSet("utf8")
  1152. .HasCollation("utf8_general_ci");
  1153. entity.Property(e => e.SeoKeyword)
  1154. .HasColumnType("varchar(200)")
  1155. .HasCharSet("utf8")
  1156. .HasCollation("utf8_general_ci");
  1157. entity.Property(e => e.SeoTitle)
  1158. .HasColumnType("varchar(100)")
  1159. .HasCharSet("utf8")
  1160. .HasCollation("utf8_general_ci");
  1161. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1162. entity.Property(e => e.Status).HasColumnType("int(11)");
  1163. entity.Property(e => e.TotalAmount).HasColumnType("decimal(18,2)");
  1164. entity.Property(e => e.TotalConsumCount).HasColumnType("int(11)");
  1165. entity.Property(e => e.TotalDividend).HasColumnType("decimal(18,2)");
  1166. entity.Property(e => e.TotalIntegral).HasColumnType("int(11)");
  1167. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1168. entity.Property(e => e.UpdateMan)
  1169. .HasColumnType("varchar(50)")
  1170. .HasCharSet("utf8")
  1171. .HasCollation("utf8_general_ci");
  1172. entity.Property(e => e.Version).HasColumnType("int(11)");
  1173. entity.Property(e => e.WeChatPayFlag)
  1174. .HasColumnType("bit(1)")
  1175. .HasDefaultValueSql("b'0'");
  1176. entity.Property(e => e.WechatOpenId)
  1177. .HasColumnType("varchar(50)")
  1178. .HasCharSet("utf8")
  1179. .HasCollation("utf8_general_ci");
  1180. entity.Property(e => e.WechatUnionid)
  1181. .HasColumnType("varchar(50)")
  1182. .HasCharSet("utf8")
  1183. .HasCollation("utf8_general_ci");
  1184. });
  1185. modelBuilder.Entity<CouponAssignRecords>(entity =>
  1186. {
  1187. entity.Property(e => e.Id).HasColumnType("int(11)");
  1188. entity.Property(e => e.Areas)
  1189. .HasColumnType("varchar(50)")
  1190. .HasCharSet("utf8")
  1191. .HasCollation("utf8_general_ci");
  1192. entity.Property(e => e.CouponIds)
  1193. .HasColumnType("varchar(200)")
  1194. .HasCharSet("utf8")
  1195. .HasCollation("utf8_general_ci");
  1196. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1197. entity.Property(e => e.CreateMan)
  1198. .HasColumnType("varchar(50)")
  1199. .HasCharSet("utf8")
  1200. .HasCollation("utf8_general_ci");
  1201. entity.Property(e => e.CurMoneyMax).HasColumnType("decimal(18,2)");
  1202. entity.Property(e => e.CurMoneyMin).HasColumnType("decimal(18,2)");
  1203. entity.Property(e => e.Mobile)
  1204. .HasColumnType("varchar(11)")
  1205. .HasCharSet("utf8")
  1206. .HasCollation("utf8_general_ci");
  1207. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1208. entity.Property(e => e.SeoDescription)
  1209. .HasColumnType("varchar(500)")
  1210. .HasCharSet("utf8")
  1211. .HasCollation("utf8_general_ci");
  1212. entity.Property(e => e.SeoKeyword)
  1213. .HasColumnType("varchar(200)")
  1214. .HasCharSet("utf8")
  1215. .HasCollation("utf8_general_ci");
  1216. entity.Property(e => e.SeoTitle)
  1217. .HasColumnType("varchar(100)")
  1218. .HasCharSet("utf8")
  1219. .HasCollation("utf8_general_ci");
  1220. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1221. entity.Property(e => e.Status).HasColumnType("int(11)");
  1222. entity.Property(e => e.TotalOrderMoneyMax).HasColumnType("decimal(18,2)");
  1223. entity.Property(e => e.TotalOrderMoneyMin).HasColumnType("decimal(18,2)");
  1224. entity.Property(e => e.TotalUseIntegralMax).HasColumnType("decimal(18,2)");
  1225. entity.Property(e => e.TotalUseIntegralMin).HasColumnType("decimal(18,2)");
  1226. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1227. entity.Property(e => e.UpdateMan)
  1228. .HasColumnType("varchar(50)")
  1229. .HasCharSet("utf8")
  1230. .HasCollation("utf8_general_ci");
  1231. entity.Property(e => e.UserGroupId)
  1232. .HasColumnType("varchar(50)")
  1233. .HasCharSet("utf8")
  1234. .HasCollation("utf8_general_ci");
  1235. entity.Property(e => e.UserMaxLevel).HasColumnType("int(11)");
  1236. entity.Property(e => e.UserMinLevel).HasColumnType("int(11)");
  1237. entity.Property(e => e.Version).HasColumnType("int(11)");
  1238. });
  1239. modelBuilder.Entity<Coupons>(entity =>
  1240. {
  1241. entity.Property(e => e.Id).HasColumnType("int(11)");
  1242. entity.Property(e => e.AndPromotion)
  1243. .HasColumnType("bit(1)")
  1244. .HasDefaultValueSql("b'0'");
  1245. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1246. entity.Property(e => e.CreateMan)
  1247. .HasColumnType("varchar(50)")
  1248. .HasCharSet("utf8")
  1249. .HasCollation("utf8_general_ci");
  1250. entity.Property(e => e.ExpireEndDate).HasColumnType("datetime");
  1251. entity.Property(e => e.ExpireStartDate).HasColumnType("datetime");
  1252. entity.Property(e => e.Explanation)
  1253. .HasColumnType("varchar(200)")
  1254. .HasCharSet("utf8")
  1255. .HasCollation("utf8_general_ci");
  1256. entity.Property(e => e.FullReduceData).HasColumnType("decimal(18,2)");
  1257. entity.Property(e => e.FullReduceMoney).HasColumnType("decimal(18,2)");
  1258. entity.Property(e => e.IsNewUser)
  1259. .HasColumnType("bit(1)")
  1260. .HasDefaultValueSql("b'0'");
  1261. entity.Property(e => e.IsPublic)
  1262. .HasColumnType("bit(1)")
  1263. .HasDefaultValueSql("b'0'");
  1264. entity.Property(e => e.IsReUse)
  1265. .HasColumnType("bit(1)")
  1266. .HasDefaultValueSql("b'0'");
  1267. entity.Property(e => e.IsRepeat)
  1268. .HasColumnType("bit(1)")
  1269. .HasDefaultValueSql("b'0'");
  1270. entity.Property(e => e.IsSuperpose)
  1271. .HasColumnType("bit(1)")
  1272. .HasDefaultValueSql("b'0'");
  1273. entity.Property(e => e.Kind).HasColumnType("int(11)");
  1274. entity.Property(e => e.MerchantId)
  1275. .HasColumnType("varchar(200)")
  1276. .HasCharSet("utf8")
  1277. .HasCollation("utf8_general_ci");
  1278. entity.Property(e => e.Name)
  1279. .HasColumnType("varchar(50)")
  1280. .HasCharSet("utf8")
  1281. .HasCollation("utf8_general_ci");
  1282. entity.Property(e => e.ProductColId)
  1283. .HasColumnType("varchar(200)")
  1284. .HasCharSet("utf8")
  1285. .HasCollation("utf8_general_ci");
  1286. entity.Property(e => e.ProductId)
  1287. .HasColumnType("varchar(500)")
  1288. .HasCharSet("utf8")
  1289. .HasCollation("utf8_general_ci");
  1290. entity.Property(e => e.PublicEndDate).HasColumnType("datetime");
  1291. entity.Property(e => e.PublicMax).HasColumnType("int(11)");
  1292. entity.Property(e => e.PublicMaxByDay).HasColumnType("int(11)");
  1293. entity.Property(e => e.PublicStartDate).HasColumnType("datetime");
  1294. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1295. entity.Property(e => e.RepeatCondition)
  1296. .HasColumnType("varchar(50)")
  1297. .HasCharSet("utf8")
  1298. .HasCollation("utf8_general_ci");
  1299. entity.Property(e => e.RepeatType).HasColumnType("int(11)");
  1300. entity.Property(e => e.SeoDescription)
  1301. .HasColumnType("varchar(500)")
  1302. .HasCharSet("utf8")
  1303. .HasCollation("utf8_general_ci");
  1304. entity.Property(e => e.SeoKeyword)
  1305. .HasColumnType("varchar(200)")
  1306. .HasCharSet("utf8")
  1307. .HasCollation("utf8_general_ci");
  1308. entity.Property(e => e.SeoTitle)
  1309. .HasColumnType("varchar(100)")
  1310. .HasCharSet("utf8")
  1311. .HasCollation("utf8_general_ci");
  1312. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1313. entity.Property(e => e.Status).HasColumnType("int(11)");
  1314. entity.Property(e => e.Stock).HasColumnType("decimal(18,2)");
  1315. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1316. entity.Property(e => e.UpdateMan)
  1317. .HasColumnType("varchar(50)")
  1318. .HasCharSet("utf8")
  1319. .HasCollation("utf8_general_ci");
  1320. entity.Property(e => e.UseEndDate).HasColumnType("datetime");
  1321. entity.Property(e => e.UseStartDate).HasColumnType("datetime");
  1322. entity.Property(e => e.UserMaxLevel).HasColumnType("int(11)");
  1323. entity.Property(e => e.UserMinLevel).HasColumnType("int(11)");
  1324. entity.Property(e => e.Version).HasColumnType("int(11)");
  1325. });
  1326. modelBuilder.Entity<CouponsForUser>(entity =>
  1327. {
  1328. entity.Property(e => e.Id).HasColumnType("int(11)");
  1329. entity.Property(e => e.CouponId).HasColumnType("int(11)");
  1330. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1331. entity.Property(e => e.CreateMan)
  1332. .HasColumnType("varchar(50)")
  1333. .HasCharSet("utf8")
  1334. .HasCollation("utf8_general_ci");
  1335. entity.Property(e => e.IsLock)
  1336. .HasColumnType("bit(1)")
  1337. .HasDefaultValueSql("b'0'");
  1338. entity.Property(e => e.IsUse)
  1339. .HasColumnType("bit(1)")
  1340. .HasDefaultValueSql("b'0'");
  1341. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1342. entity.Property(e => e.SeoDescription)
  1343. .HasColumnType("varchar(500)")
  1344. .HasCharSet("utf8")
  1345. .HasCollation("utf8_general_ci");
  1346. entity.Property(e => e.SeoKeyword)
  1347. .HasColumnType("varchar(200)")
  1348. .HasCharSet("utf8")
  1349. .HasCollation("utf8_general_ci");
  1350. entity.Property(e => e.SeoTitle)
  1351. .HasColumnType("varchar(100)")
  1352. .HasCharSet("utf8")
  1353. .HasCollation("utf8_general_ci");
  1354. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1355. entity.Property(e => e.Status).HasColumnType("int(11)");
  1356. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1357. entity.Property(e => e.UpdateMan)
  1358. .HasColumnType("varchar(50)")
  1359. .HasCharSet("utf8")
  1360. .HasCollation("utf8_general_ci");
  1361. entity.Property(e => e.UseDate).HasColumnType("datetime");
  1362. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1363. entity.Property(e => e.Version).HasColumnType("int(11)");
  1364. });
  1365. modelBuilder.Entity<CustomTagSet>(entity =>
  1366. {
  1367. entity.Property(e => e.Id).HasColumnType("int(11)");
  1368. entity.Property(e => e.Contents)
  1369. .HasColumnType("varchar(500)")
  1370. .HasCharSet("utf8")
  1371. .HasCollation("utf8_general_ci");
  1372. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1373. entity.Property(e => e.CreateMan)
  1374. .HasColumnType("varchar(50)")
  1375. .HasCharSet("utf8")
  1376. .HasCollation("utf8_general_ci");
  1377. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1378. entity.Property(e => e.SeoDescription)
  1379. .HasColumnType("varchar(500)")
  1380. .HasCharSet("utf8")
  1381. .HasCollation("utf8_general_ci");
  1382. entity.Property(e => e.SeoKeyword)
  1383. .HasColumnType("varchar(200)")
  1384. .HasCharSet("utf8")
  1385. .HasCollation("utf8_general_ci");
  1386. entity.Property(e => e.SeoTitle)
  1387. .HasColumnType("varchar(100)")
  1388. .HasCharSet("utf8")
  1389. .HasCollation("utf8_general_ci");
  1390. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1391. entity.Property(e => e.Status).HasColumnType("int(11)");
  1392. entity.Property(e => e.Tags)
  1393. .HasColumnType("varchar(50)")
  1394. .HasCharSet("utf8")
  1395. .HasCollation("utf8_general_ci");
  1396. entity.Property(e => e.Title)
  1397. .HasColumnType("varchar(50)")
  1398. .HasCharSet("utf8")
  1399. .HasCollation("utf8_general_ci");
  1400. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1401. entity.Property(e => e.UpdateMan)
  1402. .HasColumnType("varchar(50)")
  1403. .HasCharSet("utf8")
  1404. .HasCollation("utf8_general_ci");
  1405. entity.Property(e => e.Version).HasColumnType("int(11)");
  1406. });
  1407. modelBuilder.Entity<ErpCompanys>(entity =>
  1408. {
  1409. entity.Property(e => e.Id).HasColumnType("int(11)");
  1410. entity.Property(e => e.Code)
  1411. .HasColumnType("varchar(50)")
  1412. .HasCharSet("utf8")
  1413. .HasCollation("utf8_general_ci");
  1414. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1415. entity.Property(e => e.CreateMan)
  1416. .HasColumnType("varchar(50)")
  1417. .HasCharSet("utf8")
  1418. .HasCollation("utf8_general_ci");
  1419. entity.Property(e => e.Name)
  1420. .HasColumnType("varchar(50)")
  1421. .HasCharSet("utf8")
  1422. .HasCollation("utf8_general_ci");
  1423. entity.Property(e => e.Phone)
  1424. .HasColumnType("varchar(30)")
  1425. .HasCharSet("utf8")
  1426. .HasCollation("utf8_general_ci");
  1427. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1428. entity.Property(e => e.SeoDescription)
  1429. .HasColumnType("varchar(500)")
  1430. .HasCharSet("utf8")
  1431. .HasCollation("utf8_general_ci");
  1432. entity.Property(e => e.SeoKeyword)
  1433. .HasColumnType("varchar(200)")
  1434. .HasCharSet("utf8")
  1435. .HasCollation("utf8_general_ci");
  1436. entity.Property(e => e.SeoTitle)
  1437. .HasColumnType("varchar(100)")
  1438. .HasCharSet("utf8")
  1439. .HasCollation("utf8_general_ci");
  1440. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1441. entity.Property(e => e.Status).HasColumnType("int(11)");
  1442. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1443. entity.Property(e => e.UpdateMan)
  1444. .HasColumnType("varchar(50)")
  1445. .HasCharSet("utf8")
  1446. .HasCollation("utf8_general_ci");
  1447. entity.Property(e => e.Version).HasColumnType("int(11)");
  1448. });
  1449. modelBuilder.Entity<FileUpdateInfo>(entity =>
  1450. {
  1451. entity.Property(e => e.Id).HasColumnType("int(11)");
  1452. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1453. entity.Property(e => e.CreateMan)
  1454. .HasColumnType("varchar(50)")
  1455. .HasCharSet("utf8")
  1456. .HasCollation("utf8_general_ci");
  1457. entity.Property(e => e.FileName)
  1458. .HasColumnType("varchar(50)")
  1459. .HasCharSet("utf8")
  1460. .HasCollation("utf8_general_ci");
  1461. entity.Property(e => e.Path)
  1462. .HasColumnType("varchar(200)")
  1463. .HasCharSet("utf8")
  1464. .HasCollation("utf8_general_ci");
  1465. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1466. entity.Property(e => e.SeoDescription)
  1467. .HasColumnType("varchar(500)")
  1468. .HasCharSet("utf8")
  1469. .HasCollation("utf8_general_ci");
  1470. entity.Property(e => e.SeoKeyword)
  1471. .HasColumnType("varchar(200)")
  1472. .HasCharSet("utf8")
  1473. .HasCollation("utf8_general_ci");
  1474. entity.Property(e => e.SeoTitle)
  1475. .HasColumnType("varchar(100)")
  1476. .HasCharSet("utf8")
  1477. .HasCollation("utf8_general_ci");
  1478. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1479. entity.Property(e => e.Status).HasColumnType("int(11)");
  1480. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1481. entity.Property(e => e.UpdateMan)
  1482. .HasColumnType("varchar(50)")
  1483. .HasCharSet("utf8")
  1484. .HasCollation("utf8_general_ci");
  1485. entity.Property(e => e.Version).HasColumnType("int(11)");
  1486. entity.Property(e => e.VersionNum).HasColumnType("int(11)");
  1487. });
  1488. modelBuilder.Entity<FluxProfitDetail>(entity =>
  1489. {
  1490. entity.Property(e => e.Id).HasColumnType("int(11)");
  1491. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1492. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1493. entity.Property(e => e.CreateMan)
  1494. .HasColumnType("varchar(50)")
  1495. .HasCharSet("utf8")
  1496. .HasCollation("utf8_general_ci");
  1497. entity.Property(e => e.FluxEndDate)
  1498. .HasColumnType("varchar(8)")
  1499. .HasCharSet("utf8")
  1500. .HasCollation("utf8_general_ci");
  1501. entity.Property(e => e.FluxFeeAmt).HasColumnType("decimal(18,2)");
  1502. entity.Property(e => e.FluxOrderNo)
  1503. .HasColumnType("varchar(64)")
  1504. .HasCharSet("utf8")
  1505. .HasCollation("utf8_general_ci");
  1506. entity.Property(e => e.FluxProfitAmt).HasColumnType("decimal(18,2)");
  1507. entity.Property(e => e.FluxStartDate)
  1508. .HasColumnType("varchar(8)")
  1509. .HasCharSet("utf8")
  1510. .HasCollation("utf8_general_ci");
  1511. entity.Property(e => e.MerNo)
  1512. .HasColumnType("varchar(32)")
  1513. .HasCharSet("utf8")
  1514. .HasCollation("utf8_general_ci");
  1515. entity.Property(e => e.MerUserType).HasColumnType("int(11)");
  1516. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  1517. entity.Property(e => e.MerchantUserId).HasColumnType("int(11)");
  1518. entity.Property(e => e.PosType)
  1519. .HasColumnType("varchar(32)")
  1520. .HasCharSet("utf8")
  1521. .HasCollation("utf8_general_ci");
  1522. entity.Property(e => e.ProfitType).HasColumnType("int(11)");
  1523. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1524. entity.Property(e => e.RecordNo)
  1525. .HasColumnType("varchar(32)")
  1526. .HasCharSet("utf8")
  1527. .HasCollation("utf8_general_ci");
  1528. entity.Property(e => e.Remark)
  1529. .HasColumnType("varchar(128)")
  1530. .HasCharSet("utf8")
  1531. .HasCollation("utf8_general_ci");
  1532. entity.Property(e => e.SeoDescription)
  1533. .HasColumnType("varchar(500)")
  1534. .HasCharSet("utf8")
  1535. .HasCollation("utf8_general_ci");
  1536. entity.Property(e => e.SeoKeyword)
  1537. .HasColumnType("varchar(200)")
  1538. .HasCharSet("utf8")
  1539. .HasCollation("utf8_general_ci");
  1540. entity.Property(e => e.SeoTitle)
  1541. .HasColumnType("varchar(100)")
  1542. .HasCharSet("utf8")
  1543. .HasCollation("utf8_general_ci");
  1544. entity.Property(e => e.SnNo)
  1545. .HasColumnType("varchar(32)")
  1546. .HasCharSet("utf8")
  1547. .HasCollation("utf8_general_ci");
  1548. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1549. entity.Property(e => e.Status).HasColumnType("int(11)");
  1550. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  1551. entity.Property(e => e.TradeAmt).HasColumnType("decimal(18,2)");
  1552. entity.Property(e => e.TradeDate)
  1553. .HasColumnType("varchar(8)")
  1554. .HasCharSet("utf8")
  1555. .HasCollation("utf8_general_ci");
  1556. entity.Property(e => e.TradeMonth)
  1557. .HasColumnType("varchar(6)")
  1558. .HasCharSet("utf8")
  1559. .HasCollation("utf8_general_ci");
  1560. entity.Property(e => e.TradeOrderNo)
  1561. .HasColumnType("varchar(64)")
  1562. .HasCharSet("utf8")
  1563. .HasCollation("utf8_general_ci");
  1564. entity.Property(e => e.TradeTime)
  1565. .HasColumnType("varchar(6)")
  1566. .HasCharSet("utf8")
  1567. .HasCollation("utf8_general_ci");
  1568. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1569. entity.Property(e => e.UpdateMan)
  1570. .HasColumnType("varchar(50)")
  1571. .HasCharSet("utf8")
  1572. .HasCollation("utf8_general_ci");
  1573. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1574. entity.Property(e => e.Version).HasColumnType("int(11)");
  1575. });
  1576. modelBuilder.Entity<FluxProfitSummary>(entity =>
  1577. {
  1578. entity.Property(e => e.Id).HasColumnType("int(11)");
  1579. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1580. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  1581. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1582. entity.Property(e => e.CreateMan)
  1583. .HasColumnType("varchar(50)")
  1584. .HasCharSet("utf8")
  1585. .HasCollation("utf8_general_ci");
  1586. entity.Property(e => e.FluxProfitAmt).HasColumnType("decimal(18,2)");
  1587. entity.Property(e => e.FluxTradeNum).HasColumnType("int(11)");
  1588. entity.Property(e => e.MerUserType).HasColumnType("int(11)");
  1589. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1590. entity.Property(e => e.Remark)
  1591. .HasColumnType("varchar(64)")
  1592. .HasCharSet("utf8")
  1593. .HasCollation("utf8_general_ci");
  1594. entity.Property(e => e.SeoDescription)
  1595. .HasColumnType("varchar(500)")
  1596. .HasCharSet("utf8")
  1597. .HasCollation("utf8_general_ci");
  1598. entity.Property(e => e.SeoKeyword)
  1599. .HasColumnType("varchar(200)")
  1600. .HasCharSet("utf8")
  1601. .HasCollation("utf8_general_ci");
  1602. entity.Property(e => e.SeoTitle)
  1603. .HasColumnType("varchar(100)")
  1604. .HasCharSet("utf8")
  1605. .HasCollation("utf8_general_ci");
  1606. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1607. entity.Property(e => e.Status).HasColumnType("int(11)");
  1608. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  1609. entity.Property(e => e.TradeMonth)
  1610. .HasColumnType("varchar(6)")
  1611. .HasCharSet("utf8")
  1612. .HasCollation("utf8_general_ci");
  1613. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1614. entity.Property(e => e.UpdateMan)
  1615. .HasColumnType("varchar(50)")
  1616. .HasCharSet("utf8")
  1617. .HasCollation("utf8_general_ci");
  1618. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1619. entity.Property(e => e.Version).HasColumnType("int(11)");
  1620. });
  1621. modelBuilder.Entity<IndexIconList>(entity =>
  1622. {
  1623. entity.Property(e => e.Id).HasColumnType("int(11)");
  1624. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1625. entity.Property(e => e.CreateMan)
  1626. .HasColumnType("varchar(50)")
  1627. .HasCharSet("utf8")
  1628. .HasCollation("utf8_general_ci");
  1629. entity.Property(e => e.Icon)
  1630. .HasColumnType("varchar(200)")
  1631. .HasCharSet("utf8")
  1632. .HasCollation("utf8_general_ci");
  1633. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1634. entity.Property(e => e.SeoDescription)
  1635. .HasColumnType("varchar(500)")
  1636. .HasCharSet("utf8")
  1637. .HasCollation("utf8_general_ci");
  1638. entity.Property(e => e.SeoKeyword)
  1639. .HasColumnType("varchar(200)")
  1640. .HasCharSet("utf8")
  1641. .HasCollation("utf8_general_ci");
  1642. entity.Property(e => e.SeoTitle)
  1643. .HasColumnType("varchar(100)")
  1644. .HasCharSet("utf8")
  1645. .HasCollation("utf8_general_ci");
  1646. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1647. entity.Property(e => e.Status).HasColumnType("int(11)");
  1648. entity.Property(e => e.Title)
  1649. .HasColumnType("varchar(50)")
  1650. .HasCharSet("utf8")
  1651. .HasCollation("utf8_general_ci");
  1652. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1653. entity.Property(e => e.UpdateMan)
  1654. .HasColumnType("varchar(50)")
  1655. .HasCharSet("utf8")
  1656. .HasCollation("utf8_general_ci");
  1657. entity.Property(e => e.Url)
  1658. .HasColumnType("varchar(50)")
  1659. .HasCharSet("utf8")
  1660. .HasCollation("utf8_general_ci");
  1661. entity.Property(e => e.Version).HasColumnType("int(11)");
  1662. });
  1663. modelBuilder.Entity<KqProductBrand>(entity =>
  1664. {
  1665. entity.Property(e => e.Id).HasColumnType("int(11)");
  1666. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1667. entity.Property(e => e.CreateMan)
  1668. .HasColumnType("varchar(50)")
  1669. .HasCharSet("utf8")
  1670. .HasCollation("utf8_general_ci");
  1671. entity.Property(e => e.Name)
  1672. .HasColumnType("varchar(50)")
  1673. .HasCharSet("utf8")
  1674. .HasCollation("utf8_general_ci");
  1675. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  1676. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1677. entity.Property(e => e.SeoDescription)
  1678. .HasColumnType("varchar(500)")
  1679. .HasCharSet("utf8")
  1680. .HasCollation("utf8_general_ci");
  1681. entity.Property(e => e.SeoKeyword)
  1682. .HasColumnType("varchar(200)")
  1683. .HasCharSet("utf8")
  1684. .HasCollation("utf8_general_ci");
  1685. entity.Property(e => e.SeoTitle)
  1686. .HasColumnType("varchar(100)")
  1687. .HasCharSet("utf8")
  1688. .HasCollation("utf8_general_ci");
  1689. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1690. entity.Property(e => e.Status).HasColumnType("int(11)");
  1691. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1692. entity.Property(e => e.UpdateMan)
  1693. .HasColumnType("varchar(50)")
  1694. .HasCharSet("utf8")
  1695. .HasCollation("utf8_general_ci");
  1696. entity.Property(e => e.Version).HasColumnType("int(11)");
  1697. });
  1698. modelBuilder.Entity<KqProductOrgs>(entity =>
  1699. {
  1700. entity.Property(e => e.Id).HasColumnType("int(11)");
  1701. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1702. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1703. entity.Property(e => e.CreateMan)
  1704. .HasColumnType("varchar(50)")
  1705. .HasCharSet("utf8")
  1706. .HasCollation("utf8_general_ci");
  1707. entity.Property(e => e.Name)
  1708. .HasColumnType("varchar(50)")
  1709. .HasCharSet("utf8")
  1710. .HasCollation("utf8_general_ci");
  1711. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1712. entity.Property(e => e.SeoDescription)
  1713. .HasColumnType("varchar(500)")
  1714. .HasCharSet("utf8")
  1715. .HasCollation("utf8_general_ci");
  1716. entity.Property(e => e.SeoKeyword)
  1717. .HasColumnType("varchar(200)")
  1718. .HasCharSet("utf8")
  1719. .HasCollation("utf8_general_ci");
  1720. entity.Property(e => e.SeoTitle)
  1721. .HasColumnType("varchar(100)")
  1722. .HasCharSet("utf8")
  1723. .HasCollation("utf8_general_ci");
  1724. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1725. entity.Property(e => e.Status).HasColumnType("int(11)");
  1726. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1727. entity.Property(e => e.UpdateMan)
  1728. .HasColumnType("varchar(50)")
  1729. .HasCharSet("utf8")
  1730. .HasCollation("utf8_general_ci");
  1731. entity.Property(e => e.Version).HasColumnType("int(11)");
  1732. });
  1733. modelBuilder.Entity<KqProductRuleSet>(entity =>
  1734. {
  1735. entity.Property(e => e.Id).HasColumnType("int(11)");
  1736. entity.Property(e => e.ActDeposit).HasColumnType("decimal(18,2)");
  1737. entity.Property(e => e.ActEndDate).HasColumnType("datetime");
  1738. entity.Property(e => e.ActFirst).HasColumnType("decimal(18,2)");
  1739. entity.Property(e => e.ActFirstDeposit).HasColumnType("decimal(18,2)");
  1740. entity.Property(e => e.ActPosCount).HasColumnType("int(11)");
  1741. entity.Property(e => e.ActPrize).HasColumnType("decimal(18,2)");
  1742. entity.Property(e => e.ActStartDate).HasColumnType("datetime");
  1743. entity.Property(e => e.ActiveCount).HasColumnType("int(11)");
  1744. entity.Property(e => e.ActivePrice).HasColumnType("decimal(18,2)");
  1745. entity.Property(e => e.BigExtendCycleDays).HasColumnType("int(11)");
  1746. entity.Property(e => e.BigTotalAmount).HasColumnType("decimal(18,2)");
  1747. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1748. entity.Property(e => e.CreateMan)
  1749. .HasColumnType("varchar(50)")
  1750. .HasCharSet("utf8")
  1751. .HasCollation("utf8_general_ci");
  1752. entity.Property(e => e.CycleEndDate).HasColumnType("datetime");
  1753. entity.Property(e => e.CycleIsOther)
  1754. .HasColumnType("bit(1)")
  1755. .HasDefaultValueSql("b'0'");
  1756. entity.Property(e => e.CyclePosDays).HasColumnType("int(11)");
  1757. entity.Property(e => e.CycleStartDate).HasColumnType("datetime");
  1758. entity.Property(e => e.Deposit).HasColumnType("decimal(18,2)");
  1759. entity.Property(e => e.FeeBindDays).HasColumnType("int(11)");
  1760. entity.Property(e => e.FeeFixed).HasColumnType("decimal(18,2)");
  1761. entity.Property(e => e.FeeOfDays).HasColumnType("datetime");
  1762. entity.Property(e => e.FeeRate).HasColumnType("decimal(18,2)");
  1763. entity.Property(e => e.FlowCardDirectProfit).HasColumnType("decimal(18,2)");
  1764. entity.Property(e => e.FlowCardEndDate).HasColumnType("datetime");
  1765. entity.Property(e => e.FlowCardFee).HasColumnType("decimal(18,2)");
  1766. entity.Property(e => e.FlowCardFreeDays).HasColumnType("int(11)");
  1767. entity.Property(e => e.FlowCardStartDate).HasColumnType("datetime");
  1768. entity.Property(e => e.HelpEndDate).HasColumnType("datetime");
  1769. entity.Property(e => e.HelpFee).HasColumnType("decimal(18,2)");
  1770. entity.Property(e => e.HelpMonths).HasColumnType("int(11)");
  1771. entity.Property(e => e.HelpStartDate).HasColumnType("datetime");
  1772. entity.Property(e => e.HelpSteadyFee).HasColumnType("decimal(18,2)");
  1773. entity.Property(e => e.MerStaEndDate).HasColumnType("datetime");
  1774. entity.Property(e => e.MerStaMonths).HasColumnType("int(11)");
  1775. entity.Property(e => e.MerStaProfit).HasColumnType("decimal(18,2)");
  1776. entity.Property(e => e.MerStaStartDate).HasColumnType("datetime");
  1777. entity.Property(e => e.MerStaTradeForMonth).HasColumnType("decimal(18,2)");
  1778. entity.Property(e => e.OpenEndDate).HasColumnType("datetime");
  1779. entity.Property(e => e.OpenStaDays).HasColumnType("int(11)");
  1780. entity.Property(e => e.OpenStaPrize).HasColumnType("decimal(18,2)");
  1781. entity.Property(e => e.OpenStaPrize2).HasColumnType("decimal(18,2)");
  1782. entity.Property(e => e.OpenStaTrade).HasColumnType("decimal(18,2)");
  1783. entity.Property(e => e.OpenStartDate).HasColumnType("datetime");
  1784. entity.Property(e => e.OrgId).HasColumnType("int(11)");
  1785. entity.Property(e => e.PullNewEndDate).HasColumnType("datetime");
  1786. entity.Property(e => e.PullNewExtendDays).HasColumnType("int(11)");
  1787. entity.Property(e => e.PullNewStartDate).HasColumnType("datetime");
  1788. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1789. entity.Property(e => e.SeoDescription)
  1790. .HasColumnType("varchar(500)")
  1791. .HasCharSet("utf8")
  1792. .HasCollation("utf8_general_ci");
  1793. entity.Property(e => e.SeoKeyword)
  1794. .HasColumnType("varchar(200)")
  1795. .HasCharSet("utf8")
  1796. .HasCollation("utf8_general_ci");
  1797. entity.Property(e => e.SeoTitle)
  1798. .HasColumnType("varchar(100)")
  1799. .HasCharSet("utf8")
  1800. .HasCollation("utf8_general_ci");
  1801. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1802. entity.Property(e => e.Status).HasColumnType("int(11)");
  1803. entity.Property(e => e.SubsidyEndDate).HasColumnType("datetime");
  1804. entity.Property(e => e.SubsidyStartDate).HasColumnType("datetime");
  1805. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1806. entity.Property(e => e.UpdateMan)
  1807. .HasColumnType("varchar(50)")
  1808. .HasCharSet("utf8")
  1809. .HasCollation("utf8_general_ci");
  1810. entity.Property(e => e.Version).HasColumnType("int(11)");
  1811. });
  1812. modelBuilder.Entity<KqProducts>(entity =>
  1813. {
  1814. entity.Property(e => e.Id).HasColumnType("int(11)");
  1815. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1816. entity.Property(e => e.CreateMan)
  1817. .HasColumnType("varchar(50)")
  1818. .HasCharSet("utf8")
  1819. .HasCollation("utf8_general_ci");
  1820. entity.Property(e => e.Name)
  1821. .HasColumnType("varchar(50)")
  1822. .HasCharSet("utf8")
  1823. .HasCollation("utf8_general_ci");
  1824. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1825. entity.Property(e => e.SeoDescription)
  1826. .HasColumnType("varchar(500)")
  1827. .HasCharSet("utf8")
  1828. .HasCollation("utf8_general_ci");
  1829. entity.Property(e => e.SeoKeyword)
  1830. .HasColumnType("varchar(200)")
  1831. .HasCharSet("utf8")
  1832. .HasCollation("utf8_general_ci");
  1833. entity.Property(e => e.SeoTitle)
  1834. .HasColumnType("varchar(100)")
  1835. .HasCharSet("utf8")
  1836. .HasCollation("utf8_general_ci");
  1837. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1838. entity.Property(e => e.Status).HasColumnType("int(11)");
  1839. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1840. entity.Property(e => e.UpdateMan)
  1841. .HasColumnType("varchar(50)")
  1842. .HasCharSet("utf8")
  1843. .HasCollation("utf8_general_ci");
  1844. entity.Property(e => e.Version).HasColumnType("int(11)");
  1845. });
  1846. modelBuilder.Entity<LeaderReserveRecord>(entity =>
  1847. {
  1848. entity.Property(e => e.Id).HasColumnType("int(11)");
  1849. entity.Property(e => e.AfterAmt).HasColumnType("decimal(18,2)");
  1850. entity.Property(e => e.BeforeAmt).HasColumnType("decimal(18,2)");
  1851. entity.Property(e => e.ChangeAmt).HasColumnType("decimal(18,2)");
  1852. entity.Property(e => e.ChangeType).HasColumnType("int(11)");
  1853. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1854. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  1855. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1856. entity.Property(e => e.Remark)
  1857. .HasColumnType("varchar(200)")
  1858. .HasCharSet("utf8")
  1859. .HasCollation("utf8_general_ci");
  1860. entity.Property(e => e.SeoDescription)
  1861. .HasColumnType("varchar(500)")
  1862. .HasCharSet("utf8")
  1863. .HasCollation("utf8_general_ci");
  1864. entity.Property(e => e.SeoKeyword)
  1865. .HasColumnType("varchar(200)")
  1866. .HasCharSet("utf8")
  1867. .HasCollation("utf8_general_ci");
  1868. entity.Property(e => e.SeoTitle)
  1869. .HasColumnType("varchar(100)")
  1870. .HasCharSet("utf8")
  1871. .HasCollation("utf8_general_ci");
  1872. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1873. entity.Property(e => e.SourceUserId).HasColumnType("int(11)");
  1874. entity.Property(e => e.Status).HasColumnType("int(11)");
  1875. entity.Property(e => e.TradeDate)
  1876. .HasColumnType("varchar(8)")
  1877. .HasCharSet("utf8")
  1878. .HasCollation("utf8_general_ci");
  1879. entity.Property(e => e.TradeMonth)
  1880. .HasColumnType("varchar(6)")
  1881. .HasCharSet("utf8")
  1882. .HasCollation("utf8_general_ci");
  1883. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1884. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1885. });
  1886. modelBuilder.Entity<MachineApply>(entity =>
  1887. {
  1888. entity.Property(e => e.Id).HasColumnType("int(11)");
  1889. entity.Property(e => e.Address)
  1890. .HasColumnType("varchar(50)")
  1891. .HasCharSet("utf8")
  1892. .HasCollation("utf8_general_ci");
  1893. entity.Property(e => e.ApplyDeviceName)
  1894. .HasColumnType("varchar(32)")
  1895. .HasCharSet("utf8")
  1896. .HasCollation("utf8_general_ci");
  1897. entity.Property(e => e.ApplyDeviceNum).HasColumnType("int(11)");
  1898. entity.Property(e => e.ApplyNo)
  1899. .HasColumnType("varchar(32)")
  1900. .HasCharSet("utf8")
  1901. .HasCollation("utf8_general_ci");
  1902. entity.Property(e => e.ApplyTime).HasColumnType("datetime");
  1903. entity.Property(e => e.Areas)
  1904. .HasColumnType("varchar(30)")
  1905. .HasCharSet("utf8")
  1906. .HasCollation("utf8_general_ci");
  1907. entity.Property(e => e.AuditBy)
  1908. .HasColumnType("varchar(32)")
  1909. .HasCharSet("utf8")
  1910. .HasCollation("utf8_general_ci");
  1911. entity.Property(e => e.AuditRemark)
  1912. .HasColumnType("varchar(128)")
  1913. .HasCharSet("utf8")
  1914. .HasCollation("utf8_general_ci");
  1915. entity.Property(e => e.AuditResult).HasColumnType("int(11)");
  1916. entity.Property(e => e.AuditTime).HasColumnType("datetime");
  1917. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1918. entity.Property(e => e.CompleteTime).HasColumnType("datetime");
  1919. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1920. entity.Property(e => e.CreateMan)
  1921. .HasColumnType("varchar(50)")
  1922. .HasCharSet("utf8")
  1923. .HasCollation("utf8_general_ci");
  1924. entity.Property(e => e.DeliveryType).HasColumnType("int(11)");
  1925. entity.Property(e => e.ExpressName)
  1926. .HasColumnType("varchar(32)")
  1927. .HasCharSet("utf8")
  1928. .HasCollation("utf8_general_ci");
  1929. entity.Property(e => e.ExpressNo)
  1930. .HasColumnType("varchar(32)")
  1931. .HasCharSet("utf8")
  1932. .HasCollation("utf8_general_ci");
  1933. entity.Property(e => e.Mobile)
  1934. .HasColumnType("varchar(11)")
  1935. .HasCharSet("utf8")
  1936. .HasCollation("utf8_general_ci");
  1937. entity.Property(e => e.OrderExpand)
  1938. .HasColumnType("mediumtext")
  1939. .HasCharSet("utf8")
  1940. .HasCollation("utf8_general_ci");
  1941. entity.Property(e => e.ProductName)
  1942. .HasColumnType("varchar(32)")
  1943. .HasCharSet("utf8")
  1944. .HasCollation("utf8_general_ci");
  1945. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1946. entity.Property(e => e.RealName)
  1947. .HasColumnType("varchar(30)")
  1948. .HasCharSet("utf8")
  1949. .HasCollation("utf8_general_ci");
  1950. entity.Property(e => e.Remark)
  1951. .HasColumnType("varchar(64)")
  1952. .HasCharSet("utf8")
  1953. .HasCollation("utf8_general_ci");
  1954. entity.Property(e => e.ReturnOrderNo)
  1955. .HasColumnType("varchar(32)")
  1956. .HasCharSet("utf8")
  1957. .HasCollation("utf8_general_ci");
  1958. entity.Property(e => e.ReturnStatus).HasColumnType("int(11)");
  1959. entity.Property(e => e.SendDate).HasColumnType("datetime");
  1960. entity.Property(e => e.SendSn)
  1961. .HasColumnType("varchar(32)")
  1962. .HasCharSet("utf8")
  1963. .HasCollation("utf8_general_ci");
  1964. entity.Property(e => e.SendStatus).HasColumnType("int(11)");
  1965. entity.Property(e => e.SeoDescription)
  1966. .HasColumnType("varchar(500)")
  1967. .HasCharSet("utf8")
  1968. .HasCollation("utf8_general_ci");
  1969. entity.Property(e => e.SeoKeyword)
  1970. .HasColumnType("varchar(200)")
  1971. .HasCharSet("utf8")
  1972. .HasCollation("utf8_general_ci");
  1973. entity.Property(e => e.SeoTitle)
  1974. .HasColumnType("varchar(100)")
  1975. .HasCharSet("utf8")
  1976. .HasCollation("utf8_general_ci");
  1977. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1978. entity.Property(e => e.Status).HasColumnType("int(11)");
  1979. entity.Property(e => e.StoreAddress)
  1980. .HasColumnType("varchar(50)")
  1981. .HasCharSet("utf8")
  1982. .HasCollation("utf8_general_ci");
  1983. entity.Property(e => e.StoreAreas)
  1984. .HasColumnType("varchar(30)")
  1985. .HasCharSet("utf8")
  1986. .HasCollation("utf8_general_ci");
  1987. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  1988. entity.Property(e => e.StoreManager)
  1989. .HasColumnType("varchar(32)")
  1990. .HasCharSet("utf8")
  1991. .HasCollation("utf8_general_ci");
  1992. entity.Property(e => e.StoreManagerMobile)
  1993. .HasColumnType("varchar(11)")
  1994. .HasCharSet("utf8")
  1995. .HasCollation("utf8_general_ci");
  1996. entity.Property(e => e.StoreName)
  1997. .HasColumnType("varchar(32)")
  1998. .HasCharSet("utf8")
  1999. .HasCollation("utf8_general_ci");
  2000. entity.Property(e => e.StoreType).HasColumnType("int(11)");
  2001. entity.Property(e => e.StoreUserId).HasColumnType("int(11)");
  2002. entity.Property(e => e.SwapActProName)
  2003. .HasColumnType("varchar(32)")
  2004. .HasCharSet("utf8")
  2005. .HasCollation("utf8_general_ci");
  2006. entity.Property(e => e.SwapActProType).HasColumnType("int(11)");
  2007. entity.Property(e => e.SwapSnExpand)
  2008. .HasColumnType("mediumtext")
  2009. .HasCharSet("utf8")
  2010. .HasCollation("utf8_general_ci");
  2011. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  2012. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2013. entity.Property(e => e.UpdateMan)
  2014. .HasColumnType("varchar(50)")
  2015. .HasCharSet("utf8")
  2016. .HasCollation("utf8_general_ci");
  2017. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2018. entity.Property(e => e.Version).HasColumnType("int(11)");
  2019. });
  2020. modelBuilder.Entity<MachineApplyDetail>(entity =>
  2021. {
  2022. entity.Property(e => e.Id).HasColumnType("int(11)");
  2023. entity.Property(e => e.ApplyId).HasColumnType("int(11)");
  2024. entity.Property(e => e.ApplyNo)
  2025. .HasColumnType("varchar(32)")
  2026. .HasCharSet("utf8")
  2027. .HasCollation("utf8_general_ci");
  2028. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2029. entity.Property(e => e.CreateMan)
  2030. .HasColumnType("varchar(50)")
  2031. .HasCharSet("utf8")
  2032. .HasCollation("utf8_general_ci");
  2033. entity.Property(e => e.DeviceDesc)
  2034. .HasColumnType("varchar(32)")
  2035. .HasCharSet("utf8")
  2036. .HasCollation("utf8_general_ci");
  2037. entity.Property(e => e.DeviceModel)
  2038. .HasColumnType("varchar(32)")
  2039. .HasCharSet("utf8")
  2040. .HasCollation("utf8_general_ci");
  2041. entity.Property(e => e.DeviceSnNo)
  2042. .HasColumnType("varchar(32)")
  2043. .HasCharSet("utf8")
  2044. .HasCollation("utf8_general_ci");
  2045. entity.Property(e => e.DeviceStatus).HasColumnType("int(11)");
  2046. entity.Property(e => e.DeviceVendor)
  2047. .HasColumnType("varchar(32)")
  2048. .HasCharSet("utf8")
  2049. .HasCollation("utf8_general_ci");
  2050. entity.Property(e => e.ProductName)
  2051. .HasColumnType("varchar(32)")
  2052. .HasCharSet("utf8")
  2053. .HasCollation("utf8_general_ci");
  2054. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  2055. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2056. entity.Property(e => e.Remark)
  2057. .HasColumnType("varchar(64)")
  2058. .HasCharSet("utf8")
  2059. .HasCollation("utf8_general_ci");
  2060. entity.Property(e => e.SeoDescription)
  2061. .HasColumnType("varchar(500)")
  2062. .HasCharSet("utf8")
  2063. .HasCollation("utf8_general_ci");
  2064. entity.Property(e => e.SeoKeyword)
  2065. .HasColumnType("varchar(200)")
  2066. .HasCharSet("utf8")
  2067. .HasCollation("utf8_general_ci");
  2068. entity.Property(e => e.SeoTitle)
  2069. .HasColumnType("varchar(100)")
  2070. .HasCharSet("utf8")
  2071. .HasCollation("utf8_general_ci");
  2072. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2073. entity.Property(e => e.SourceSnNo)
  2074. .HasColumnType("varchar(32)")
  2075. .HasCharSet("utf8")
  2076. .HasCollation("utf8_general_ci");
  2077. entity.Property(e => e.SourceSnType).HasColumnType("int(11)");
  2078. entity.Property(e => e.Status).HasColumnType("int(11)");
  2079. entity.Property(e => e.UpSrcProName)
  2080. .HasColumnType("varchar(32)")
  2081. .HasCharSet("utf8")
  2082. .HasCollation("utf8_general_ci");
  2083. entity.Property(e => e.UpSrcProType).HasColumnType("int(11)");
  2084. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2085. entity.Property(e => e.UpdateMan)
  2086. .HasColumnType("varchar(50)")
  2087. .HasCharSet("utf8")
  2088. .HasCollation("utf8_general_ci");
  2089. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2090. entity.Property(e => e.Version).HasColumnType("int(11)");
  2091. });
  2092. modelBuilder.Entity<MachineChange>(entity =>
  2093. {
  2094. entity.Property(e => e.Id).HasColumnType("int(11)");
  2095. entity.Property(e => e.AuditBy)
  2096. .HasColumnType("varchar(32)")
  2097. .HasCharSet("utf8")
  2098. .HasCollation("utf8_general_ci");
  2099. entity.Property(e => e.AuditRemark)
  2100. .HasColumnType("varchar(128)")
  2101. .HasCharSet("utf8")
  2102. .HasCollation("utf8_general_ci");
  2103. entity.Property(e => e.AuditResult).HasColumnType("int(11)");
  2104. entity.Property(e => e.AuditTime).HasColumnType("datetime");
  2105. entity.Property(e => e.BackProductName)
  2106. .HasColumnType("varchar(32)")
  2107. .HasCharSet("utf8")
  2108. .HasCollation("utf8_general_ci");
  2109. entity.Property(e => e.BackProductType).HasColumnType("int(11)");
  2110. entity.Property(e => e.BackStoreId).HasColumnType("int(11)");
  2111. entity.Property(e => e.BackStoreName)
  2112. .HasColumnType("varchar(32)")
  2113. .HasCharSet("utf8")
  2114. .HasCollation("utf8_general_ci");
  2115. entity.Property(e => e.BackStoreUserId).HasColumnType("int(11)");
  2116. entity.Property(e => e.ChangeDeviceName)
  2117. .HasColumnType("varchar(32)")
  2118. .HasCharSet("utf8")
  2119. .HasCollation("utf8_general_ci");
  2120. entity.Property(e => e.ChangeDeviceNum).HasColumnType("int(11)");
  2121. entity.Property(e => e.ChangeNo)
  2122. .HasColumnType("varchar(32)")
  2123. .HasCharSet("utf8")
  2124. .HasCollation("utf8_general_ci");
  2125. entity.Property(e => e.ChangeSnExpand)
  2126. .HasColumnType("mediumtext")
  2127. .HasCharSet("utf8")
  2128. .HasCollation("utf8_general_ci");
  2129. entity.Property(e => e.ChangeTime).HasColumnType("datetime");
  2130. entity.Property(e => e.CompleteTime).HasColumnType("datetime");
  2131. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2132. entity.Property(e => e.CreateMan)
  2133. .HasColumnType("varchar(50)")
  2134. .HasCharSet("utf8")
  2135. .HasCollation("utf8_general_ci");
  2136. entity.Property(e => e.OrderExpand)
  2137. .HasColumnType("mediumtext")
  2138. .HasCharSet("utf8")
  2139. .HasCollation("utf8_general_ci");
  2140. entity.Property(e => e.OutProductName)
  2141. .HasColumnType("varchar(32)")
  2142. .HasCharSet("utf8")
  2143. .HasCollation("utf8_general_ci");
  2144. entity.Property(e => e.OutProductType).HasColumnType("int(11)");
  2145. entity.Property(e => e.OutStoreAddress)
  2146. .HasColumnType("varchar(128)")
  2147. .HasCharSet("utf8")
  2148. .HasCollation("utf8_general_ci");
  2149. entity.Property(e => e.OutStoreAreas)
  2150. .HasColumnType("varchar(30)")
  2151. .HasCharSet("utf8")
  2152. .HasCollation("utf8_general_ci");
  2153. entity.Property(e => e.OutStoreId).HasColumnType("int(11)");
  2154. entity.Property(e => e.OutStoreManager)
  2155. .HasColumnType("varchar(32)")
  2156. .HasCharSet("utf8")
  2157. .HasCollation("utf8_general_ci");
  2158. entity.Property(e => e.OutStoreManagerMobile)
  2159. .HasColumnType("varchar(11)")
  2160. .HasCharSet("utf8")
  2161. .HasCollation("utf8_general_ci");
  2162. entity.Property(e => e.OutStoreName)
  2163. .HasColumnType("varchar(32)")
  2164. .HasCharSet("utf8")
  2165. .HasCollation("utf8_general_ci");
  2166. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2167. entity.Property(e => e.Remark)
  2168. .HasColumnType("varchar(64)")
  2169. .HasCharSet("utf8")
  2170. .HasCollation("utf8_general_ci");
  2171. entity.Property(e => e.SeoDescription)
  2172. .HasColumnType("varchar(500)")
  2173. .HasCharSet("utf8")
  2174. .HasCollation("utf8_general_ci");
  2175. entity.Property(e => e.SeoKeyword)
  2176. .HasColumnType("varchar(200)")
  2177. .HasCharSet("utf8")
  2178. .HasCollation("utf8_general_ci");
  2179. entity.Property(e => e.SeoTitle)
  2180. .HasColumnType("varchar(100)")
  2181. .HasCharSet("utf8")
  2182. .HasCollation("utf8_general_ci");
  2183. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2184. entity.Property(e => e.Status).HasColumnType("int(11)");
  2185. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2186. entity.Property(e => e.UpdateMan)
  2187. .HasColumnType("varchar(50)")
  2188. .HasCharSet("utf8")
  2189. .HasCollation("utf8_general_ci");
  2190. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2191. entity.Property(e => e.Version).HasColumnType("int(11)");
  2192. });
  2193. modelBuilder.Entity<MachineChangeDetail>(entity =>
  2194. {
  2195. entity.Property(e => e.Id).HasColumnType("int(11)");
  2196. entity.Property(e => e.BackDeviceStatus).HasColumnType("int(11)");
  2197. entity.Property(e => e.BackProductName)
  2198. .HasColumnType("varchar(32)")
  2199. .HasCharSet("utf8")
  2200. .HasCollation("utf8_general_ci");
  2201. entity.Property(e => e.BackProductType).HasColumnType("int(11)");
  2202. entity.Property(e => e.BackSnNo)
  2203. .HasColumnType("varchar(32)")
  2204. .HasCharSet("utf8")
  2205. .HasCollation("utf8_general_ci");
  2206. entity.Property(e => e.BackSnType).HasColumnType("int(11)");
  2207. entity.Property(e => e.ChangeId).HasColumnType("int(11)");
  2208. entity.Property(e => e.ChangeNo)
  2209. .HasColumnType("varchar(32)")
  2210. .HasCharSet("utf8")
  2211. .HasCollation("utf8_general_ci");
  2212. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2213. entity.Property(e => e.CreateMan)
  2214. .HasColumnType("varchar(50)")
  2215. .HasCharSet("utf8")
  2216. .HasCollation("utf8_general_ci");
  2217. entity.Property(e => e.OutProductName)
  2218. .HasColumnType("varchar(32)")
  2219. .HasCharSet("utf8")
  2220. .HasCollation("utf8_general_ci");
  2221. entity.Property(e => e.OutProductType).HasColumnType("int(11)");
  2222. entity.Property(e => e.OutSnNo)
  2223. .HasColumnType("varchar(32)")
  2224. .HasCharSet("utf8")
  2225. .HasCollation("utf8_general_ci");
  2226. entity.Property(e => e.OutSnType).HasColumnType("int(11)");
  2227. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2228. entity.Property(e => e.Remark)
  2229. .HasColumnType("varchar(64)")
  2230. .HasCharSet("utf8")
  2231. .HasCollation("utf8_general_ci");
  2232. entity.Property(e => e.SeoDescription)
  2233. .HasColumnType("varchar(500)")
  2234. .HasCharSet("utf8")
  2235. .HasCollation("utf8_general_ci");
  2236. entity.Property(e => e.SeoKeyword)
  2237. .HasColumnType("varchar(200)")
  2238. .HasCharSet("utf8")
  2239. .HasCollation("utf8_general_ci");
  2240. entity.Property(e => e.SeoTitle)
  2241. .HasColumnType("varchar(100)")
  2242. .HasCharSet("utf8")
  2243. .HasCollation("utf8_general_ci");
  2244. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2245. entity.Property(e => e.Status).HasColumnType("int(11)");
  2246. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2247. entity.Property(e => e.UpdateMan)
  2248. .HasColumnType("varchar(50)")
  2249. .HasCharSet("utf8")
  2250. .HasCollation("utf8_general_ci");
  2251. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2252. entity.Property(e => e.Version).HasColumnType("int(11)");
  2253. });
  2254. modelBuilder.Entity<MachineForMerNo>(entity =>
  2255. {
  2256. entity.HasKey(e => e.MerNo)
  2257. .HasName("PRIMARY");
  2258. entity.Property(e => e.MerNo)
  2259. .HasColumnType("varchar(50)")
  2260. .HasCharSet("utf8")
  2261. .HasCollation("utf8_general_ci");
  2262. entity.Property(e => e.SnId).HasColumnType("int(11)");
  2263. });
  2264. modelBuilder.Entity<MachineForQrCode>(entity =>
  2265. {
  2266. entity.HasKey(e => e.DataId)
  2267. .HasName("PRIMARY");
  2268. entity.Property(e => e.DataId)
  2269. .HasColumnType("varchar(20)")
  2270. .HasCharSet("utf8")
  2271. .HasCollation("utf8_general_ci");
  2272. entity.Property(e => e.BindDate).HasColumnType("datetime");
  2273. entity.Property(e => e.MachineSnNo)
  2274. .HasColumnType("varchar(50)")
  2275. .HasCharSet("utf8")
  2276. .HasCollation("utf8_general_ci");
  2277. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2278. entity.Property(e => e.SnNo)
  2279. .HasColumnType("varchar(50)")
  2280. .HasCharSet("utf8")
  2281. .HasCollation("utf8_general_ci");
  2282. });
  2283. modelBuilder.Entity<MachineForSnNo>(entity =>
  2284. {
  2285. entity.HasKey(e => e.SnNo)
  2286. .HasName("PRIMARY");
  2287. entity.Property(e => e.SnNo)
  2288. .HasColumnType("varchar(50)")
  2289. .HasCharSet("utf8")
  2290. .HasCollation("utf8_general_ci");
  2291. entity.Property(e => e.SnId).HasColumnType("int(11)");
  2292. });
  2293. modelBuilder.Entity<MachineRenew>(entity =>
  2294. {
  2295. entity.Property(e => e.Id).HasColumnType("int(11)");
  2296. entity.Property(e => e.ApplyDate)
  2297. .HasColumnType("varchar(8)")
  2298. .HasCharSet("utf8")
  2299. .HasCollation("utf8_general_ci");
  2300. entity.Property(e => e.ApplyNo)
  2301. .HasColumnType("varchar(32)")
  2302. .HasCharSet("utf8")
  2303. .HasCollation("utf8_general_ci");
  2304. entity.Property(e => e.AuditDate).HasColumnType("datetime");
  2305. entity.Property(e => e.AuditDesc)
  2306. .HasColumnType("varchar(256)")
  2307. .HasCharSet("utf8")
  2308. .HasCollation("utf8_general_ci");
  2309. entity.Property(e => e.AuditStatus)
  2310. .HasColumnName("audit_status")
  2311. .HasColumnType("int(11)");
  2312. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2313. entity.Property(e => e.CreateMan)
  2314. .HasColumnType("varchar(50)")
  2315. .HasCharSet("utf8")
  2316. .HasCollation("utf8_general_ci");
  2317. entity.Property(e => e.DamagedBrandId).HasColumnType("int(11)");
  2318. entity.Property(e => e.DamagedSnNo)
  2319. .HasColumnType("varchar(32)")
  2320. .HasCharSet("utf8")
  2321. .HasCollation("utf8_general_ci");
  2322. entity.Property(e => e.DamagedSnType).HasColumnType("int(11)");
  2323. entity.Property(e => e.DeliverBrandId).HasColumnType("int(11)");
  2324. entity.Property(e => e.DeliverSnNo)
  2325. .HasColumnType("varchar(32)")
  2326. .HasCharSet("utf8")
  2327. .HasCollation("utf8_general_ci");
  2328. entity.Property(e => e.DemandDesc)
  2329. .HasColumnType("varchar(256)")
  2330. .HasCharSet("utf8")
  2331. .HasCollation("utf8_general_ci");
  2332. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2333. entity.Property(e => e.ReplaceBrandId).HasColumnType("int(11)");
  2334. entity.Property(e => e.ReplaceSnNo)
  2335. .HasColumnType("varchar(32)")
  2336. .HasCharSet("utf8")
  2337. .HasCollation("utf8_general_ci");
  2338. entity.Property(e => e.ReplaceSnType).HasColumnType("int(11)");
  2339. entity.Property(e => e.SeoDescription)
  2340. .HasColumnType("varchar(500)")
  2341. .HasCharSet("utf8")
  2342. .HasCollation("utf8_general_ci");
  2343. entity.Property(e => e.SeoKeyword)
  2344. .HasColumnType("varchar(200)")
  2345. .HasCharSet("utf8")
  2346. .HasCollation("utf8_general_ci");
  2347. entity.Property(e => e.SeoTitle)
  2348. .HasColumnType("varchar(100)")
  2349. .HasCharSet("utf8")
  2350. .HasCollation("utf8_general_ci");
  2351. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2352. entity.Property(e => e.Status).HasColumnType("int(11)");
  2353. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2354. entity.Property(e => e.UpdateMan)
  2355. .HasColumnType("varchar(50)")
  2356. .HasCharSet("utf8")
  2357. .HasCollation("utf8_general_ci");
  2358. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2359. entity.Property(e => e.Version).HasColumnType("int(11)");
  2360. });
  2361. modelBuilder.Entity<MachineReturn>(entity =>
  2362. {
  2363. entity.Property(e => e.Id).HasColumnType("int(11)");
  2364. entity.Property(e => e.ApplyNo)
  2365. .HasColumnType("varchar(32)")
  2366. .HasCharSet("utf8")
  2367. .HasCollation("utf8_general_ci");
  2368. entity.Property(e => e.AuditStatus).HasColumnType("int(11)");
  2369. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  2370. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2371. entity.Property(e => e.CreateMan)
  2372. .HasColumnType("varchar(50)")
  2373. .HasCharSet("utf8")
  2374. .HasCollation("utf8_general_ci");
  2375. entity.Property(e => e.DeviceDesc)
  2376. .HasColumnType("varchar(256)")
  2377. .HasCharSet("utf8")
  2378. .HasCollation("utf8_general_ci");
  2379. entity.Property(e => e.DeviceNum).HasColumnType("int(11)");
  2380. entity.Property(e => e.DeviceSnNos)
  2381. .HasColumnType("mediumtext")
  2382. .HasCharSet("utf8")
  2383. .HasCollation("utf8_general_ci");
  2384. entity.Property(e => e.Operator)
  2385. .HasColumnType("varchar(32)")
  2386. .HasCharSet("utf8")
  2387. .HasCollation("utf8_general_ci");
  2388. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2389. entity.Property(e => e.Remark)
  2390. .HasColumnType("varchar(64)")
  2391. .HasCharSet("utf8")
  2392. .HasCollation("utf8_general_ci");
  2393. entity.Property(e => e.SeoDescription)
  2394. .HasColumnType("varchar(500)")
  2395. .HasCharSet("utf8")
  2396. .HasCollation("utf8_general_ci");
  2397. entity.Property(e => e.SeoKeyword)
  2398. .HasColumnType("varchar(200)")
  2399. .HasCharSet("utf8")
  2400. .HasCollation("utf8_general_ci");
  2401. entity.Property(e => e.SeoTitle)
  2402. .HasColumnType("varchar(100)")
  2403. .HasCharSet("utf8")
  2404. .HasCollation("utf8_general_ci");
  2405. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2406. entity.Property(e => e.Status).HasColumnType("int(11)");
  2407. entity.Property(e => e.ToStoreId).HasColumnType("int(11)");
  2408. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2409. entity.Property(e => e.UpdateMan)
  2410. .HasColumnType("varchar(50)")
  2411. .HasCharSet("utf8")
  2412. .HasCollation("utf8_general_ci");
  2413. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2414. entity.Property(e => e.Version).HasColumnType("int(11)");
  2415. });
  2416. modelBuilder.Entity<MachineUnBind>(entity =>
  2417. {
  2418. entity.Property(e => e.Id).HasColumnType("int(11)");
  2419. entity.Property(e => e.ApplyNo)
  2420. .HasColumnType("varchar(32)")
  2421. .HasCharSet("utf8")
  2422. .HasCollation("utf8_general_ci");
  2423. entity.Property(e => e.AuditDate).HasColumnType("datetime");
  2424. entity.Property(e => e.AuditDesc)
  2425. .HasColumnType("varchar(256)")
  2426. .HasCharSet("utf8")
  2427. .HasCollation("utf8_general_ci");
  2428. entity.Property(e => e.AuditStatus).HasColumnType("int(11)");
  2429. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  2430. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2431. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2432. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2433. entity.Property(e => e.SeoDescription)
  2434. .HasColumnType("varchar(500)")
  2435. .HasCharSet("utf8")
  2436. .HasCollation("utf8_general_ci");
  2437. entity.Property(e => e.SeoKeyword)
  2438. .HasColumnType("varchar(200)")
  2439. .HasCharSet("utf8")
  2440. .HasCollation("utf8_general_ci");
  2441. entity.Property(e => e.SeoTitle)
  2442. .HasColumnType("varchar(100)")
  2443. .HasCharSet("utf8")
  2444. .HasCollation("utf8_general_ci");
  2445. entity.Property(e => e.SnNo)
  2446. .HasColumnType("varchar(32)")
  2447. .HasCharSet("utf8")
  2448. .HasCollation("utf8_general_ci");
  2449. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2450. entity.Property(e => e.Status).HasColumnType("int(11)");
  2451. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2452. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2453. });
  2454. modelBuilder.Entity<MenuRight>(entity =>
  2455. {
  2456. entity.HasKey(e => e.MenuId)
  2457. .HasName("PRIMARY");
  2458. entity.Property(e => e.MenuId)
  2459. .HasColumnType("varchar(50)")
  2460. .HasCharSet("utf8")
  2461. .HasCollation("utf8_general_ci");
  2462. entity.Property(e => e.Name)
  2463. .HasColumnType("varchar(50)")
  2464. .HasCharSet("utf8")
  2465. .HasCollation("utf8_general_ci");
  2466. });
  2467. modelBuilder.Entity<MerchantAddInfo>(entity =>
  2468. {
  2469. entity.Property(e => e.Id).HasColumnType("int(11)");
  2470. entity.Property(e => e.AccountBank)
  2471. .HasColumnType("varchar(30)")
  2472. .HasCharSet("utf8")
  2473. .HasCollation("utf8_general_ci");
  2474. entity.Property(e => e.AccountName)
  2475. .HasColumnType("varchar(50)")
  2476. .HasCharSet("utf8")
  2477. .HasCollation("utf8_general_ci");
  2478. entity.Property(e => e.AccountNumber)
  2479. .HasColumnType("varchar(50)")
  2480. .HasCharSet("utf8")
  2481. .HasCollation("utf8_general_ci");
  2482. entity.Property(e => e.ActivitiesId)
  2483. .HasColumnType("varchar(32)")
  2484. .HasCharSet("utf8")
  2485. .HasCollation("utf8_general_ci");
  2486. entity.Property(e => e.ActivitiesRate)
  2487. .HasColumnType("varchar(20)")
  2488. .HasCharSet("utf8")
  2489. .HasCollation("utf8_general_ci");
  2490. entity.Property(e => e.AppAppid)
  2491. .HasColumnType("varchar(50)")
  2492. .HasCharSet("utf8")
  2493. .HasCollation("utf8_general_ci");
  2494. entity.Property(e => e.AppPics)
  2495. .HasColumnType("varchar(200)")
  2496. .HasCharSet("utf8")
  2497. .HasCollation("utf8_general_ci");
  2498. entity.Property(e => e.AppSubAppid)
  2499. .HasColumnType("varchar(50)")
  2500. .HasCharSet("utf8")
  2501. .HasCollation("utf8_general_ci");
  2502. entity.Property(e => e.ApplymentId)
  2503. .HasColumnType("varchar(50)")
  2504. .HasCharSet("utf8")
  2505. .HasCollation("utf8_general_ci");
  2506. entity.Property(e => e.ApplymentState)
  2507. .HasColumnType("varchar(50)")
  2508. .HasCharSet("utf8")
  2509. .HasCollation("utf8_general_ci");
  2510. entity.Property(e => e.AuditDetail)
  2511. .HasColumnType("mediumtext")
  2512. .HasCharSet("utf8")
  2513. .HasCollation("utf8_general_ci");
  2514. entity.Property(e => e.BankAccountType)
  2515. .HasColumnType("varchar(50)")
  2516. .HasCharSet("utf8")
  2517. .HasCollation("utf8_general_ci");
  2518. entity.Property(e => e.BankAddressCode)
  2519. .HasColumnType("varchar(20)")
  2520. .HasCharSet("utf8")
  2521. .HasCollation("utf8_general_ci");
  2522. entity.Property(e => e.BankBranchId)
  2523. .HasColumnType("varchar(20)")
  2524. .HasCharSet("utf8")
  2525. .HasCollation("utf8_general_ci");
  2526. entity.Property(e => e.BankName)
  2527. .HasColumnType("varchar(50)")
  2528. .HasCharSet("utf8")
  2529. .HasCollation("utf8_general_ci");
  2530. entity.Property(e => e.BizAddressCode)
  2531. .HasColumnType("varchar(30)")
  2532. .HasCharSet("utf8")
  2533. .HasCollation("utf8_general_ci");
  2534. entity.Property(e => e.BizStoreAddress)
  2535. .HasColumnType("varchar(50)")
  2536. .HasCharSet("utf8")
  2537. .HasCollation("utf8_general_ci");
  2538. entity.Property(e => e.BizStoreName)
  2539. .HasColumnType("varchar(50)")
  2540. .HasCharSet("utf8")
  2541. .HasCollation("utf8_general_ci");
  2542. entity.Property(e => e.BizSubAppid)
  2543. .HasColumnType("varchar(32)")
  2544. .HasCharSet("utf8")
  2545. .HasCollation("utf8_general_ci");
  2546. entity.Property(e => e.BusinessCode)
  2547. .HasColumnType("varchar(50)")
  2548. .HasCharSet("utf8")
  2549. .HasCollation("utf8_general_ci");
  2550. entity.Property(e => e.CardPeriodBegin).HasColumnType("datetime");
  2551. entity.Property(e => e.CardPeriodEnd).HasColumnType("datetime");
  2552. entity.Property(e => e.CertCopy)
  2553. .HasColumnType("varchar(200)")
  2554. .HasCharSet("utf8")
  2555. .HasCollation("utf8_general_ci");
  2556. entity.Property(e => e.CertLegalPerson)
  2557. .HasColumnType("varchar(20)")
  2558. .HasCharSet("utf8")
  2559. .HasCollation("utf8_general_ci");
  2560. entity.Property(e => e.CertMerchantName)
  2561. .HasColumnType("varchar(30)")
  2562. .HasCharSet("utf8")
  2563. .HasCollation("utf8_general_ci");
  2564. entity.Property(e => e.CertNumber)
  2565. .HasColumnType("varchar(32)")
  2566. .HasCharSet("utf8")
  2567. .HasCollation("utf8_general_ci");
  2568. entity.Property(e => e.CertType)
  2569. .HasColumnType("varchar(30)")
  2570. .HasCharSet("utf8")
  2571. .HasCollation("utf8_general_ci");
  2572. entity.Property(e => e.CertificateLetterCopy)
  2573. .HasColumnType("varchar(200)")
  2574. .HasCharSet("utf8")
  2575. .HasCollation("utf8_general_ci");
  2576. entity.Property(e => e.CompanyAddress)
  2577. .HasColumnType("varchar(50)")
  2578. .HasCharSet("utf8")
  2579. .HasCollation("utf8_general_ci");
  2580. entity.Property(e => e.ContactEmail)
  2581. .HasColumnType("varchar(50)")
  2582. .HasCharSet("utf8")
  2583. .HasCollation("utf8_general_ci");
  2584. entity.Property(e => e.ContactIdNumber)
  2585. .HasColumnType("varchar(18)")
  2586. .HasCharSet("utf8")
  2587. .HasCollation("utf8_general_ci");
  2588. entity.Property(e => e.ContactName)
  2589. .HasColumnType("varchar(30)")
  2590. .HasCharSet("utf8")
  2591. .HasCollation("utf8_general_ci");
  2592. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2593. entity.Property(e => e.CreateMan)
  2594. .HasColumnType("varchar(50)")
  2595. .HasCharSet("utf8")
  2596. .HasCollation("utf8_general_ci");
  2597. entity.Property(e => e.IdCardCopy)
  2598. .HasColumnType("varchar(200)")
  2599. .HasCharSet("utf8")
  2600. .HasCollation("utf8_general_ci");
  2601. entity.Property(e => e.IdCardName)
  2602. .HasColumnType("varchar(20)")
  2603. .HasCharSet("utf8")
  2604. .HasCollation("utf8_general_ci");
  2605. entity.Property(e => e.IdCardNational)
  2606. .HasColumnType("varchar(200)")
  2607. .HasCharSet("utf8")
  2608. .HasCollation("utf8_general_ci");
  2609. entity.Property(e => e.IdCardNumber)
  2610. .HasColumnType("varchar(18)")
  2611. .HasCharSet("utf8")
  2612. .HasCollation("utf8_general_ci");
  2613. entity.Property(e => e.IdDocType)
  2614. .HasColumnType("varchar(50)")
  2615. .HasCharSet("utf8")
  2616. .HasCollation("utf8_general_ci");
  2617. entity.Property(e => e.IndoorPic)
  2618. .HasColumnType("varchar(200)")
  2619. .HasCharSet("utf8")
  2620. .HasCollation("utf8_general_ci");
  2621. entity.Property(e => e.LegalPerson)
  2622. .HasColumnType("varchar(20)")
  2623. .HasCharSet("utf8")
  2624. .HasCollation("utf8_general_ci");
  2625. entity.Property(e => e.LicenseCopy)
  2626. .HasColumnType("varchar(200)")
  2627. .HasCharSet("utf8")
  2628. .HasCollation("utf8_general_ci");
  2629. entity.Property(e => e.LicenseNumber)
  2630. .HasColumnType("varchar(32)")
  2631. .HasCharSet("utf8")
  2632. .HasCollation("utf8_general_ci");
  2633. entity.Property(e => e.MerchantShortname)
  2634. .HasColumnType("varchar(50)")
  2635. .HasCharSet("utf8")
  2636. .HasCollation("utf8_general_ci");
  2637. entity.Property(e => e.MiniProgramAppid)
  2638. .HasColumnType("varchar(50)")
  2639. .HasCharSet("utf8")
  2640. .HasCollation("utf8_general_ci");
  2641. entity.Property(e => e.MiniProgramPics)
  2642. .HasColumnType("varchar(200)")
  2643. .HasCharSet("utf8")
  2644. .HasCollation("utf8_general_ci");
  2645. entity.Property(e => e.MiniProgramSubAppid)
  2646. .HasColumnType("varchar(50)")
  2647. .HasCharSet("utf8")
  2648. .HasCollation("utf8_general_ci");
  2649. entity.Property(e => e.MobilePhone)
  2650. .HasColumnType("varchar(11)")
  2651. .HasCharSet("utf8")
  2652. .HasCollation("utf8_general_ci");
  2653. entity.Property(e => e.MpAppid)
  2654. .HasColumnType("varchar(50)")
  2655. .HasCharSet("utf8")
  2656. .HasCollation("utf8_general_ci");
  2657. entity.Property(e => e.MpPics)
  2658. .HasColumnType("varchar(200)")
  2659. .HasCharSet("utf8")
  2660. .HasCollation("utf8_general_ci");
  2661. entity.Property(e => e.MpSubAppid)
  2662. .HasColumnType("varchar(50)")
  2663. .HasCharSet("utf8")
  2664. .HasCollation("utf8_general_ci");
  2665. entity.Property(e => e.OpenId)
  2666. .HasColumnType("varchar(50)")
  2667. .HasCharSet("utf8")
  2668. .HasCollation("utf8_general_ci");
  2669. entity.Property(e => e.OrgPeriodBegin).HasColumnType("datetime");
  2670. entity.Property(e => e.OrgPeriodEnd).HasColumnType("datetime");
  2671. entity.Property(e => e.OrganizationCode)
  2672. .HasColumnType("varchar(32)")
  2673. .HasCharSet("utf8")
  2674. .HasCollation("utf8_general_ci");
  2675. entity.Property(e => e.OrganizationCopy)
  2676. .HasColumnType("varchar(200)")
  2677. .HasCharSet("utf8")
  2678. .HasCollation("utf8_general_ci");
  2679. entity.Property(e => e.Owner)
  2680. .HasColumnType("bit(1)")
  2681. .HasDefaultValueSql("b'0'");
  2682. entity.Property(e => e.PeriodBegin).HasColumnType("datetime");
  2683. entity.Property(e => e.PeriodEnd).HasColumnType("datetime");
  2684. entity.Property(e => e.QualificationType)
  2685. .HasColumnType("varchar(30)")
  2686. .HasCharSet("utf8")
  2687. .HasCollation("utf8_general_ci");
  2688. entity.Property(e => e.Qualifications)
  2689. .HasColumnType("varchar(200)")
  2690. .HasCharSet("utf8")
  2691. .HasCollation("utf8_general_ci");
  2692. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2693. entity.Property(e => e.SalesScenesType)
  2694. .HasColumnType("varchar(50)")
  2695. .HasCharSet("utf8")
  2696. .HasCollation("utf8_general_ci");
  2697. entity.Property(e => e.SeoDescription)
  2698. .HasColumnType("varchar(500)")
  2699. .HasCharSet("utf8")
  2700. .HasCollation("utf8_general_ci");
  2701. entity.Property(e => e.SeoKeyword)
  2702. .HasColumnType("varchar(200)")
  2703. .HasCharSet("utf8")
  2704. .HasCollation("utf8_general_ci");
  2705. entity.Property(e => e.SeoTitle)
  2706. .HasColumnType("varchar(100)")
  2707. .HasCharSet("utf8")
  2708. .HasCollation("utf8_general_ci");
  2709. entity.Property(e => e.ServicePhone)
  2710. .HasColumnType("varchar(30)")
  2711. .HasCharSet("utf8")
  2712. .HasCollation("utf8_general_ci");
  2713. entity.Property(e => e.SettlementId)
  2714. .HasColumnType("varchar(3)")
  2715. .HasCharSet("utf8")
  2716. .HasCollation("utf8_general_ci");
  2717. entity.Property(e => e.SignUrl)
  2718. .HasColumnType("varchar(1000)")
  2719. .HasCharSet("utf8")
  2720. .HasCollation("utf8_general_ci");
  2721. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2722. entity.Property(e => e.Status).HasColumnType("int(11)");
  2723. entity.Property(e => e.StoreEntrancePic)
  2724. .HasColumnType("varchar(200)")
  2725. .HasCharSet("utf8")
  2726. .HasCollation("utf8_general_ci");
  2727. entity.Property(e => e.SubCorpId)
  2728. .HasColumnType("varchar(50)")
  2729. .HasCharSet("utf8")
  2730. .HasCollation("utf8_general_ci");
  2731. entity.Property(e => e.SubMchid)
  2732. .HasColumnType("varchar(32)")
  2733. .HasCharSet("utf8")
  2734. .HasCollation("utf8_general_ci");
  2735. entity.Property(e => e.SubjectType)
  2736. .HasColumnType("varchar(50)")
  2737. .HasCharSet("utf8")
  2738. .HasCollation("utf8_general_ci");
  2739. entity.Property(e => e.UboInfoIdCardCopy)
  2740. .HasColumnType("varchar(200)")
  2741. .HasCharSet("utf8")
  2742. .HasCollation("utf8_general_ci");
  2743. entity.Property(e => e.UboInfoIdCardNational)
  2744. .HasColumnType("varchar(200)")
  2745. .HasCharSet("utf8")
  2746. .HasCollation("utf8_general_ci");
  2747. entity.Property(e => e.UboInfoIdDocCopy)
  2748. .HasColumnType("varchar(200)")
  2749. .HasCharSet("utf8")
  2750. .HasCollation("utf8_general_ci");
  2751. entity.Property(e => e.UboInfoIdNumber)
  2752. .HasColumnType("varchar(30)")
  2753. .HasCharSet("utf8")
  2754. .HasCollation("utf8_general_ci");
  2755. entity.Property(e => e.UboInfoIdPeriodBegin).HasColumnType("datetime");
  2756. entity.Property(e => e.UboInfoIdPeriodEnd).HasColumnType("datetime");
  2757. entity.Property(e => e.UboInfoIdType)
  2758. .HasColumnType("varchar(50)")
  2759. .HasCharSet("utf8")
  2760. .HasCollation("utf8_general_ci");
  2761. entity.Property(e => e.UboInfoName)
  2762. .HasColumnType("varchar(20)")
  2763. .HasCharSet("utf8")
  2764. .HasCollation("utf8_general_ci");
  2765. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2766. entity.Property(e => e.UpdateMan)
  2767. .HasColumnType("varchar(50)")
  2768. .HasCharSet("utf8")
  2769. .HasCollation("utf8_general_ci");
  2770. entity.Property(e => e.Version).HasColumnType("int(11)");
  2771. entity.Property(e => e.WebAppId)
  2772. .HasColumnType("varchar(50)")
  2773. .HasCharSet("utf8")
  2774. .HasCollation("utf8_general_ci");
  2775. entity.Property(e => e.WebAuthorisation)
  2776. .HasColumnType("varchar(200)")
  2777. .HasCharSet("utf8")
  2778. .HasCollation("utf8_general_ci");
  2779. entity.Property(e => e.WebDomain)
  2780. .HasColumnType("varchar(50)")
  2781. .HasCharSet("utf8")
  2782. .HasCollation("utf8_general_ci");
  2783. entity.Property(e => e.WeworkPics)
  2784. .HasColumnType("varchar(200)")
  2785. .HasCharSet("utf8")
  2786. .HasCollation("utf8_general_ci");
  2787. });
  2788. modelBuilder.Entity<MerchantAdmin>(entity =>
  2789. {
  2790. entity.Property(e => e.Id).HasColumnType("int(11)");
  2791. entity.Property(e => e.AdminName)
  2792. .HasColumnType("varchar(50)")
  2793. .HasCharSet("utf8")
  2794. .HasCollation("utf8_general_ci");
  2795. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2796. entity.Property(e => e.CreateMan)
  2797. .HasColumnType("varchar(50)")
  2798. .HasCharSet("utf8")
  2799. .HasCollation("utf8_general_ci");
  2800. entity.Property(e => e.Email)
  2801. .HasColumnType("varchar(50)")
  2802. .HasCharSet("utf8")
  2803. .HasCollation("utf8_general_ci");
  2804. entity.Property(e => e.LastLoginDate).HasColumnType("datetime");
  2805. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2806. entity.Property(e => e.Mobile)
  2807. .HasColumnType("varchar(11)")
  2808. .HasCharSet("utf8")
  2809. .HasCollation("utf8_general_ci");
  2810. entity.Property(e => e.Note)
  2811. .HasColumnType("mediumtext")
  2812. .HasCharSet("utf8")
  2813. .HasCollation("utf8_general_ci");
  2814. entity.Property(e => e.Password)
  2815. .HasColumnType("varchar(32)")
  2816. .HasCharSet("utf8")
  2817. .HasCollation("utf8_general_ci");
  2818. entity.Property(e => e.Qq)
  2819. .HasColumnName("QQ")
  2820. .HasColumnType("varchar(20)")
  2821. .HasCharSet("utf8")
  2822. .HasCollation("utf8_general_ci");
  2823. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2824. entity.Property(e => e.RealName)
  2825. .HasColumnType("varchar(50)")
  2826. .HasCharSet("utf8")
  2827. .HasCollation("utf8_general_ci");
  2828. entity.Property(e => e.RightInfo)
  2829. .HasColumnType("varchar(500)")
  2830. .HasCharSet("utf8")
  2831. .HasCollation("utf8_general_ci");
  2832. entity.Property(e => e.SeoDescription)
  2833. .HasColumnType("varchar(500)")
  2834. .HasCharSet("utf8")
  2835. .HasCollation("utf8_general_ci");
  2836. entity.Property(e => e.SeoKeyword)
  2837. .HasColumnType("varchar(200)")
  2838. .HasCharSet("utf8")
  2839. .HasCollation("utf8_general_ci");
  2840. entity.Property(e => e.SeoTitle)
  2841. .HasColumnType("varchar(100)")
  2842. .HasCharSet("utf8")
  2843. .HasCollation("utf8_general_ci");
  2844. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2845. entity.Property(e => e.Status).HasColumnType("int(11)");
  2846. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2847. entity.Property(e => e.UpdateMan)
  2848. .HasColumnType("varchar(50)")
  2849. .HasCharSet("utf8")
  2850. .HasCollation("utf8_general_ci");
  2851. entity.Property(e => e.Version).HasColumnType("int(11)");
  2852. });
  2853. modelBuilder.Entity<MerchantAuth>(entity =>
  2854. {
  2855. entity.Property(e => e.Id).HasColumnType("int(11)");
  2856. entity.Property(e => e.AuthType).HasColumnType("int(11)");
  2857. entity.Property(e => e.BankCardAccount)
  2858. .HasColumnType("varchar(32)")
  2859. .HasCharSet("utf8")
  2860. .HasCollation("utf8_general_ci");
  2861. entity.Property(e => e.BankMobile)
  2862. .HasColumnType("varchar(11)")
  2863. .HasCharSet("utf8")
  2864. .HasCollation("utf8_general_ci");
  2865. entity.Property(e => e.BankName)
  2866. .HasColumnType("varchar(64)")
  2867. .HasCharSet("utf8")
  2868. .HasCollation("utf8_general_ci");
  2869. entity.Property(e => e.ChannelCode)
  2870. .HasColumnType("varchar(16)")
  2871. .HasCharSet("utf8")
  2872. .HasCollation("utf8_general_ci");
  2873. entity.Property(e => e.ChannelName)
  2874. .HasColumnType("varchar(32)")
  2875. .HasCharSet("utf8")
  2876. .HasCollation("utf8_general_ci");
  2877. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2878. entity.Property(e => e.CreateMan)
  2879. .HasColumnType("varchar(50)")
  2880. .HasCharSet("utf8")
  2881. .HasCollation("utf8_general_ci");
  2882. entity.Property(e => e.IdCardNo)
  2883. .HasColumnType("varchar(18)")
  2884. .HasCharSet("utf8")
  2885. .HasCollation("utf8_general_ci");
  2886. entity.Property(e => e.MerNo)
  2887. .HasColumnType("varchar(20)")
  2888. .HasCharSet("utf8")
  2889. .HasCollation("utf8_general_ci");
  2890. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2891. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2892. entity.Property(e => e.RealName)
  2893. .HasColumnType("varchar(16)")
  2894. .HasCharSet("utf8")
  2895. .HasCollation("utf8_general_ci");
  2896. entity.Property(e => e.ReqData)
  2897. .HasColumnType("varchar(2000)")
  2898. .HasCharSet("utf8")
  2899. .HasCollation("utf8_general_ci");
  2900. entity.Property(e => e.RespData)
  2901. .HasColumnType("varchar(2000)")
  2902. .HasCharSet("utf8")
  2903. .HasCollation("utf8_general_ci");
  2904. entity.Property(e => e.ReturnCode)
  2905. .HasColumnType("varchar(30)")
  2906. .HasCharSet("utf8")
  2907. .HasCollation("utf8_general_ci");
  2908. entity.Property(e => e.ReturnMsg)
  2909. .HasColumnType("varchar(512)")
  2910. .HasCharSet("utf8")
  2911. .HasCollation("utf8_general_ci");
  2912. entity.Property(e => e.SeoDescription)
  2913. .HasColumnType("varchar(500)")
  2914. .HasCharSet("utf8")
  2915. .HasCollation("utf8_general_ci");
  2916. entity.Property(e => e.SeoKeyword)
  2917. .HasColumnType("varchar(200)")
  2918. .HasCharSet("utf8")
  2919. .HasCollation("utf8_general_ci");
  2920. entity.Property(e => e.SeoTitle)
  2921. .HasColumnType("varchar(100)")
  2922. .HasCharSet("utf8")
  2923. .HasCollation("utf8_general_ci");
  2924. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2925. entity.Property(e => e.Status).HasColumnType("int(11)");
  2926. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2927. entity.Property(e => e.UpdateMan)
  2928. .HasColumnType("varchar(50)")
  2929. .HasCharSet("utf8")
  2930. .HasCollation("utf8_general_ci");
  2931. entity.Property(e => e.Version).HasColumnType("int(11)");
  2932. });
  2933. modelBuilder.Entity<MerchantClass>(entity =>
  2934. {
  2935. entity.Property(e => e.Id).HasColumnType("int(11)");
  2936. entity.Property(e => e.ColName)
  2937. .HasColumnType("varchar(50)")
  2938. .HasCharSet("utf8")
  2939. .HasCollation("utf8_general_ci");
  2940. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2941. entity.Property(e => e.CreateMan)
  2942. .HasColumnType("varchar(50)")
  2943. .HasCharSet("utf8")
  2944. .HasCollation("utf8_general_ci");
  2945. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2946. entity.Property(e => e.ParentId).HasColumnType("int(11)");
  2947. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2948. entity.Property(e => e.SeoDescription)
  2949. .HasColumnType("varchar(500)")
  2950. .HasCharSet("utf8")
  2951. .HasCollation("utf8_general_ci");
  2952. entity.Property(e => e.SeoKeyword)
  2953. .HasColumnType("varchar(200)")
  2954. .HasCharSet("utf8")
  2955. .HasCollation("utf8_general_ci");
  2956. entity.Property(e => e.SeoTitle)
  2957. .HasColumnType("varchar(100)")
  2958. .HasCharSet("utf8")
  2959. .HasCollation("utf8_general_ci");
  2960. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2961. entity.Property(e => e.Status).HasColumnType("int(11)");
  2962. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2963. entity.Property(e => e.UpdateMan)
  2964. .HasColumnType("varchar(50)")
  2965. .HasCharSet("utf8")
  2966. .HasCollation("utf8_general_ci");
  2967. entity.Property(e => e.Version).HasColumnType("int(11)");
  2968. });
  2969. modelBuilder.Entity<MerchantCol>(entity =>
  2970. {
  2971. entity.Property(e => e.Id).HasColumnType("int(11)");
  2972. entity.Property(e => e.ColDetail)
  2973. .HasColumnType("varchar(50)")
  2974. .HasCharSet("utf8")
  2975. .HasCollation("utf8_general_ci");
  2976. entity.Property(e => e.ColEnName)
  2977. .HasColumnType("varchar(50)")
  2978. .HasCharSet("utf8")
  2979. .HasCollation("utf8_general_ci");
  2980. entity.Property(e => e.ColId)
  2981. .HasColumnType("varchar(30)")
  2982. .HasCharSet("utf8")
  2983. .HasCollation("utf8_general_ci");
  2984. entity.Property(e => e.ColName)
  2985. .HasColumnType("varchar(50)")
  2986. .HasCharSet("utf8")
  2987. .HasCollation("utf8_general_ci");
  2988. entity.Property(e => e.ColPicPath)
  2989. .HasColumnType("varchar(200)")
  2990. .HasCharSet("utf8")
  2991. .HasCollation("utf8_general_ci");
  2992. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2993. entity.Property(e => e.CreateMan)
  2994. .HasColumnType("varchar(50)")
  2995. .HasCharSet("utf8")
  2996. .HasCollation("utf8_general_ci");
  2997. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2998. entity.Property(e => e.ParentId).HasColumnType("int(11)");
  2999. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3000. entity.Property(e => e.Recommend)
  3001. .HasColumnType("bit(1)")
  3002. .HasDefaultValueSql("b'0'");
  3003. entity.Property(e => e.SeoDescription)
  3004. .HasColumnType("varchar(500)")
  3005. .HasCharSet("utf8")
  3006. .HasCollation("utf8_general_ci");
  3007. entity.Property(e => e.SeoKeyword)
  3008. .HasColumnType("varchar(200)")
  3009. .HasCharSet("utf8")
  3010. .HasCollation("utf8_general_ci");
  3011. entity.Property(e => e.SeoTitle)
  3012. .HasColumnType("varchar(100)")
  3013. .HasCharSet("utf8")
  3014. .HasCollation("utf8_general_ci");
  3015. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3016. entity.Property(e => e.Status).HasColumnType("int(11)");
  3017. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3018. entity.Property(e => e.UpdateMan)
  3019. .HasColumnType("varchar(50)")
  3020. .HasCharSet("utf8")
  3021. .HasCollation("utf8_general_ci");
  3022. entity.Property(e => e.Version).HasColumnType("int(11)");
  3023. });
  3024. modelBuilder.Entity<MerchantComment>(entity =>
  3025. {
  3026. entity.Property(e => e.Id).HasColumnType("int(11)");
  3027. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3028. entity.Property(e => e.CreateMan)
  3029. .HasColumnType("varchar(50)")
  3030. .HasCharSet("utf8")
  3031. .HasCollation("utf8_general_ci");
  3032. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  3033. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  3034. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3035. entity.Property(e => e.SeoDescription)
  3036. .HasColumnType("varchar(500)")
  3037. .HasCharSet("utf8")
  3038. .HasCollation("utf8_general_ci");
  3039. entity.Property(e => e.SeoKeyword)
  3040. .HasColumnType("varchar(200)")
  3041. .HasCharSet("utf8")
  3042. .HasCollation("utf8_general_ci");
  3043. entity.Property(e => e.SeoTitle)
  3044. .HasColumnType("varchar(100)")
  3045. .HasCharSet("utf8")
  3046. .HasCollation("utf8_general_ci");
  3047. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3048. entity.Property(e => e.StarNum1).HasColumnType("int(11)");
  3049. entity.Property(e => e.StarNum2).HasColumnType("int(11)");
  3050. entity.Property(e => e.StarNum3).HasColumnType("int(11)");
  3051. entity.Property(e => e.Status).HasColumnType("int(11)");
  3052. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3053. entity.Property(e => e.UpdateMan)
  3054. .HasColumnType("varchar(50)")
  3055. .HasCharSet("utf8")
  3056. .HasCollation("utf8_general_ci");
  3057. entity.Property(e => e.UserId).HasColumnType("int(11)");
  3058. entity.Property(e => e.Version).HasColumnType("int(11)");
  3059. });
  3060. modelBuilder.Entity<MerchantDepositReturns>(entity =>
  3061. {
  3062. entity.Property(e => e.Id).HasColumnType("int(11)");
  3063. entity.Property(e => e.AlipayAccountNo)
  3064. .HasColumnType("varchar(50)")
  3065. .HasCharSet("utf8")
  3066. .HasCollation("utf8_general_ci");
  3067. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3068. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  3069. entity.Property(e => e.OperateMan)
  3070. .HasColumnType("varchar(50)")
  3071. .HasCharSet("utf8")
  3072. .HasCollation("utf8_general_ci");
  3073. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3074. entity.Property(e => e.ReturnAmount).HasColumnType("decimal(18,2)");
  3075. entity.Property(e => e.SeoDescription)
  3076. .HasColumnType("varchar(500)")
  3077. .HasCharSet("utf8")
  3078. .HasCollation("utf8_general_ci");
  3079. entity.Property(e => e.SeoKeyword)
  3080. .HasColumnType("varchar(200)")
  3081. .HasCharSet("utf8")
  3082. .HasCollation("utf8_general_ci");
  3083. entity.Property(e => e.SeoTitle)
  3084. .HasColumnType("varchar(100)")
  3085. .HasCharSet("utf8")
  3086. .HasCollation("utf8_general_ci");
  3087. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3088. entity.Property(e => e.Status).HasColumnType("int(11)");
  3089. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3090. entity.Property(e => e.UserId).HasColumnType("int(11)");
  3091. });
  3092. modelBuilder.Entity<MerchantForCode>(entity =>
  3093. {
  3094. entity.HasKey(e => e.Code)
  3095. .HasName("PRIMARY");
  3096. entity.Property(e => e.Code)
  3097. .HasColumnType("varchar(30)")
  3098. .HasCharSet("utf8")
  3099. .HasCollation("utf8_general_ci");
  3100. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  3101. });
  3102. modelBuilder.Entity<MerchantForMobile>(entity =>
  3103. {
  3104. entity.HasKey(e => e.Mobile)
  3105. .HasName("PRIMARY");
  3106. entity.Property(e => e.Mobile)
  3107. .HasColumnType("varchar(11)")
  3108. .HasCharSet("utf8")
  3109. .HasCollation("utf8_general_ci");
  3110. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  3111. });
  3112. modelBuilder.Entity<MerchantForName>(entity =>
  3113. {
  3114. entity.HasKey(e => e.Name)
  3115. .HasName("PRIMARY");
  3116. entity.Property(e => e.Name)
  3117. .HasColumnType("varchar(30)")
  3118. .HasCharSet("utf8")
  3119. .HasCollation("utf8_general_ci");
  3120. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  3121. });
  3122. modelBuilder.Entity<MerchantInfo>(entity =>
  3123. {
  3124. entity.Property(e => e.Id).HasColumnType("int(11)");
  3125. entity.Property(e => e.ActivationDate).HasColumnType("datetime");
  3126. entity.Property(e => e.ActivationStatus).HasColumnType("int(11)");
  3127. entity.Property(e => e.Address)
  3128. .HasColumnType("varchar(100)")
  3129. .HasCharSet("utf8")
  3130. .HasCollation("utf8_general_ci");
  3131. entity.Property(e => e.Areas)
  3132. .HasColumnType("varchar(50)")
  3133. .HasCharSet("utf8")
  3134. .HasCollation("utf8_general_ci");
  3135. entity.Property(e => e.BindDate).HasColumnType("datetime");
  3136. entity.Property(e => e.BindStatus).HasColumnType("int(11)");
  3137. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3138. entity.Property(e => e.CreateMan)
  3139. .HasColumnType("varchar(50)")
  3140. .HasCharSet("utf8")
  3141. .HasCollation("utf8_general_ci");
  3142. entity.Property(e => e.IsAuth)
  3143. .HasColumnType("bit(1)")
  3144. .HasDefaultValueSql("b'0'");
  3145. entity.Property(e => e.LastAddConsumerDate).HasColumnType("datetime");
  3146. entity.Property(e => e.LastConsumeDate).HasColumnType("datetime");
  3147. entity.Property(e => e.LoginPwd)
  3148. .HasColumnType("varchar(32)")
  3149. .HasCharSet("utf8")
  3150. .HasCollation("utf8_general_ci");
  3151. entity.Property(e => e.Logo)
  3152. .HasColumnType("varchar(200)")
  3153. .HasCharSet("utf8")
  3154. .HasCollation("utf8_general_ci");
  3155. entity.Property(e => e.Mobile)
  3156. .HasColumnType("varchar(11)")
  3157. .HasCharSet("utf8")
  3158. .HasCollation("utf8_general_ci");
  3159. entity.Property(e => e.Name)
  3160. .HasColumnType("varchar(50)")
  3161. .HasCharSet("utf8")
  3162. .HasCollation("utf8_general_ci");
  3163. entity.Property(e => e.ParentUserNav)
  3164. .HasColumnType("varchar(500)")
  3165. .HasCharSet("utf8")
  3166. .HasCollation("utf8_general_ci");
  3167. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3168. entity.Property(e => e.SeoDescription)
  3169. .HasColumnType("varchar(500)")
  3170. .HasCharSet("utf8")
  3171. .HasCollation("utf8_general_ci");
  3172. entity.Property(e => e.SeoKeyword)
  3173. .HasColumnType("varchar(200)")
  3174. .HasCharSet("utf8")
  3175. .HasCollation("utf8_general_ci");
  3176. entity.Property(e => e.SeoTitle)
  3177. .HasColumnType("varchar(100)")
  3178. .HasCharSet("utf8")
  3179. .HasCollation("utf8_general_ci");
  3180. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3181. entity.Property(e => e.Status).HasColumnType("int(11)");
  3182. entity.Property(e => e.TotalActual).HasColumnType("decimal(18,2)");
  3183. entity.Property(e => e.TotalAmount).HasColumnType("decimal(18,2)");
  3184. entity.Property(e => e.TotalConsumeCount).HasColumnType("int(11)");
  3185. entity.Property(e => e.TotalCustomer).HasColumnType("int(11)");
  3186. entity.Property(e => e.TotalOrder).HasColumnType("int(11)");
  3187. entity.Property(e => e.TotalUser).HasColumnType("int(11)");
  3188. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3189. entity.Property(e => e.UpdateMan)
  3190. .HasColumnType("varchar(50)")
  3191. .HasCharSet("utf8")
  3192. .HasCollation("utf8_general_ci");
  3193. entity.Property(e => e.UserId).HasColumnType("int(11)");
  3194. entity.Property(e => e.Version).HasColumnType("int(11)");
  3195. });
  3196. modelBuilder.Entity<MerchantParamSet>(entity =>
  3197. {
  3198. entity.Property(e => e.Id).HasColumnType("int(11)");
  3199. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3200. entity.Property(e => e.CreateMan)
  3201. .HasColumnType("varchar(50)")
  3202. .HasCharSet("utf8")
  3203. .HasCollation("utf8_general_ci");
  3204. entity.Property(e => e.DiviPercent).HasColumnType("decimal(18,2)");
  3205. entity.Property(e => e.DiviPersons).HasColumnType("int(11)");
  3206. entity.Property(e => e.GetPercent).HasColumnType("decimal(18,2)");
  3207. entity.Property(e => e.IsAll).HasColumnType("int(11)");
  3208. entity.Property(e => e.MinPayMoney).HasColumnType("decimal(18,2)");
  3209. entity.Property(e => e.ProfitDays).HasColumnType("int(11)");
  3210. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3211. entity.Property(e => e.SeoDescription)
  3212. .HasColumnType("varchar(500)")
  3213. .HasCharSet("utf8")
  3214. .HasCollation("utf8_general_ci");
  3215. entity.Property(e => e.SeoKeyword)
  3216. .HasColumnType("varchar(200)")
  3217. .HasCharSet("utf8")
  3218. .HasCollation("utf8_general_ci");
  3219. entity.Property(e => e.SeoTitle)
  3220. .HasColumnType("varchar(100)")
  3221. .HasCharSet("utf8")
  3222. .HasCollation("utf8_general_ci");
  3223. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3224. entity.Property(e => e.Status).HasColumnType("int(11)");
  3225. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3226. entity.Property(e => e.UpdateMan)
  3227. .HasColumnType("varchar(50)")
  3228. .HasCharSet("utf8")
  3229. .HasCollation("utf8_general_ci");
  3230. entity.Property(e => e.Version).HasColumnType("int(11)");
  3231. });
  3232. modelBuilder.Entity<MerchantQrCode>(entity =>
  3233. {
  3234. entity.Property(e => e.Id).HasColumnType("int(11)");
  3235. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3236. entity.Property(e => e.CreateMan)
  3237. .HasColumnType("varchar(50)")
  3238. .HasCharSet("utf8")
  3239. .HasCollation("utf8_general_ci");
  3240. entity.Property(e => e.MachineId).HasColumnType("int(11)");
  3241. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  3242. entity.Property(e => e.QrCodeContent)
  3243. .HasColumnType("varchar(500)")
  3244. .HasCharSet("utf8")
  3245. .HasCollation("utf8_general_ci");
  3246. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3247. entity.Property(e => e.SeoDescription)
  3248. .HasColumnType("varchar(500)")
  3249. .HasCharSet("utf8")
  3250. .HasCollation("utf8_general_ci");
  3251. entity.Property(e => e.SeoKeyword)
  3252. .HasColumnType("varchar(200)")
  3253. .HasCharSet("utf8")
  3254. .HasCollation("utf8_general_ci");
  3255. entity.Property(e => e.SeoTitle)
  3256. .HasColumnType("varchar(100)")
  3257. .HasCharSet("utf8")
  3258. .HasCollation("utf8_general_ci");
  3259. entity.Property(e => e.SnNo)
  3260. .HasColumnType("varchar(50)")
  3261. .HasCharSet("utf8")
  3262. .HasCollation("utf8_general_ci");
  3263. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3264. entity.Property(e => e.Status).HasColumnType("int(11)");
  3265. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3266. entity.Property(e => e.UpdateMan)
  3267. .HasColumnType("varchar(50)")
  3268. .HasCharSet("utf8")
  3269. .HasCollation("utf8_general_ci");
  3270. entity.Property(e => e.Version).HasColumnType("int(11)");
  3271. });
  3272. modelBuilder.Entity<MerchantRebateDetail>(entity =>
  3273. {
  3274. entity.Property(e => e.Id).HasColumnType("int(11)");
  3275. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  3276. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3277. entity.Property(e => e.CreateMan)
  3278. .HasColumnType("varchar(50)")
  3279. .HasCharSet("utf8")
  3280. .HasCollation("utf8_general_ci");
  3281. entity.Property(e => e.CreditRewardAmount).HasColumnType("decimal(18,2)");
  3282. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  3283. entity.Property(e => e.DebitRewardAmount).HasColumnType("decimal(18,2)");
  3284. entity.Property(e => e.DebitTradeAmt).HasColumnType("decimal(18,2)");
  3285. entity.Property(e => e.MerNo)
  3286. .HasColumnType("varchar(32)")
  3287. .HasCharSet("utf8")
  3288. .HasCollation("utf8_general_ci");
  3289. entity.Property(e => e.MerRegTime).HasColumnType("datetime");
  3290. entity.Property(e => e.MerStandardDate).HasColumnType("datetime");
  3291. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  3292. entity.Property(e => e.MmpUserName)
  3293. .HasColumnType("varchar(32)")
  3294. .HasCharSet("utf8")
  3295. .HasCollation("utf8_general_ci");
  3296. entity.Property(e => e.MmpUserNo)
  3297. .HasColumnType("varchar(32)")
  3298. .HasCharSet("utf8")
  3299. .HasCollation("utf8_general_ci");
  3300. entity.Property(e => e.ProductName)
  3301. .HasColumnType("varchar(32)")
  3302. .HasCharSet("utf8")
  3303. .HasCollation("utf8_general_ci");
  3304. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3305. entity.Property(e => e.Remark)
  3306. .HasColumnType("varchar(64)")
  3307. .HasCharSet("utf8")
  3308. .HasCollation("utf8_general_ci");
  3309. entity.Property(e => e.RewardDesc)
  3310. .HasColumnType("varchar(128)")
  3311. .HasCharSet("utf8")
  3312. .HasCollation("utf8_general_ci");
  3313. entity.Property(e => e.SeoDescription)
  3314. .HasColumnType("varchar(500)")
  3315. .HasCharSet("utf8")
  3316. .HasCollation("utf8_general_ci");
  3317. entity.Property(e => e.SeoKeyword)
  3318. .HasColumnType("varchar(200)")
  3319. .HasCharSet("utf8")
  3320. .HasCollation("utf8_general_ci");
  3321. entity.Property(e => e.SeoTitle)
  3322. .HasColumnType("varchar(100)")
  3323. .HasCharSet("utf8")
  3324. .HasCollation("utf8_general_ci");
  3325. entity.Property(e => e.SnNo)
  3326. .HasColumnType("varchar(32)")
  3327. .HasCharSet("utf8")
  3328. .HasCollation("utf8_general_ci");
  3329. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3330. entity.Property(e => e.Status).HasColumnType("int(11)");
  3331. entity.Property(e => e.SyncStatus).HasColumnType("int(11)");
  3332. entity.Property(e => e.TradeDate)
  3333. .HasColumnType("varchar(8)")
  3334. .HasCharSet("utf8")
  3335. .HasCollation("utf8_general_ci");
  3336. entity.Property(e => e.TradeMonth)
  3337. .HasColumnType("varchar(6)")
  3338. .HasCharSet("utf8")
  3339. .HasCollation("utf8_general_ci");
  3340. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3341. entity.Property(e => e.UpdateMan)
  3342. .HasColumnType("varchar(50)")
  3343. .HasCharSet("utf8")
  3344. .HasCollation("utf8_general_ci");
  3345. entity.Property(e => e.Version).HasColumnType("int(11)");
  3346. });
  3347. modelBuilder.Entity<Merchants>(entity =>
  3348. {
  3349. entity.Property(e => e.Id).HasColumnType("int(11)");
  3350. entity.Property(e => e.Address)
  3351. .HasColumnType("varchar(50)")
  3352. .HasCharSet("utf8")
  3353. .HasCollation("utf8_general_ci");
  3354. entity.Property(e => e.Areas)
  3355. .HasColumnType("varchar(30)")
  3356. .HasCharSet("utf8")
  3357. .HasCollation("utf8_general_ci");
  3358. entity.Property(e => e.BusinessLicense)
  3359. .HasColumnType("varchar(200)")
  3360. .HasCharSet("utf8")
  3361. .HasCollation("utf8_general_ci");
  3362. entity.Property(e => e.CommentCount).HasColumnType("int(11)");
  3363. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3364. entity.Property(e => e.CreateMan)
  3365. .HasColumnType("varchar(50)")
  3366. .HasCharSet("utf8")
  3367. .HasCollation("utf8_general_ci");
  3368. entity.Property(e => e.FollowCount).HasColumnType("int(11)");
  3369. entity.Property(e => e.IsAuth)
  3370. .HasColumnType("bit(1)")
  3371. .HasDefaultValueSql("b'0'");
  3372. entity.Property(e => e.IsRecommend)
  3373. .HasColumnType("bit(1)")
  3374. .HasDefaultValueSql("b'0'");
  3375. entity.Property(e => e.LoginPwd)
  3376. .HasColumnType("varchar(32)")
  3377. .HasCharSet("utf8")
  3378. .HasCollation("utf8_general_ci");
  3379. entity.Property(e => e.Logo)
  3380. .HasColumnType("varchar(200)")
  3381. .HasCharSet("utf8")
  3382. .HasCollation("utf8_general_ci");
  3383. entity.Property(e => e.Name)
  3384. .HasColumnType("varchar(50)")
  3385. .HasCharSet("utf8")
  3386. .HasCollation("utf8_general_ci");
  3387. entity.Property(e => e.PayPwd)
  3388. .HasColumnType("varchar(32)")
  3389. .HasCharSet("utf8")
  3390. .HasCollation("utf8_general_ci");
  3391. entity.Property(e => e.Phone)
  3392. .HasColumnType("varchar(30)")
  3393. .HasCharSet("utf8")
  3394. .HasCollation("utf8_general_ci");
  3395. entity.Property(e => e.Principal)
  3396. .HasColumnType("varchar(30)")
  3397. .HasCharSet("utf8")
  3398. .HasCollation("utf8_general_ci");
  3399. entity.Property(e => e.Province)
  3400. .HasColumnType("varchar(20)")
  3401. .HasCharSet("utf8")
  3402. .HasCollation("utf8_general_ci");
  3403. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3404. entity.Property(e => e.SeoDescription)
  3405. .HasColumnType("varchar(500)")
  3406. .HasCharSet("utf8")
  3407. .HasCollation("utf8_general_ci");
  3408. entity.Property(e => e.SeoKeyword)
  3409. .HasColumnType("varchar(200)")
  3410. .HasCharSet("utf8")
  3411. .HasCollation("utf8_general_ci");
  3412. entity.Property(e => e.SeoTitle)
  3413. .HasColumnType("varchar(100)")
  3414. .HasCharSet("utf8")
  3415. .HasCollation("utf8_general_ci");
  3416. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3417. entity.Property(e => e.StarNum1).HasColumnType("decimal(18,2)");
  3418. entity.Property(e => e.StarNum2).HasColumnType("decimal(18,2)");
  3419. entity.Property(e => e.StarNum3).HasColumnType("decimal(18,2)");
  3420. entity.Property(e => e.Status).HasColumnType("int(11)");
  3421. entity.Property(e => e.Title)
  3422. .HasColumnType("varchar(50)")
  3423. .HasCharSet("utf8")
  3424. .HasCollation("utf8_general_ci");
  3425. entity.Property(e => e.Title2)
  3426. .HasColumnType("varchar(50)")
  3427. .HasCharSet("utf8")
  3428. .HasCollation("utf8_general_ci");
  3429. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3430. entity.Property(e => e.UpdateMan)
  3431. .HasColumnType("varchar(50)")
  3432. .HasCharSet("utf8")
  3433. .HasCollation("utf8_general_ci");
  3434. entity.Property(e => e.UserName)
  3435. .HasColumnType("varchar(50)")
  3436. .HasCharSet("utf8")
  3437. .HasCollation("utf8_general_ci");
  3438. entity.Property(e => e.Version).HasColumnType("int(11)");
  3439. });
  3440. modelBuilder.Entity<MobileCodeCheck>(entity =>
  3441. {
  3442. entity.HasKey(e => e.Mobile)
  3443. .HasName("PRIMARY");
  3444. entity.Property(e => e.Mobile)
  3445. .HasColumnType("varchar(11)")
  3446. .HasCharSet("utf8")
  3447. .HasCollation("utf8_general_ci");
  3448. entity.Property(e => e.CheckCode)
  3449. .HasColumnType("varchar(6)")
  3450. .HasCharSet("utf8")
  3451. .HasCollation("utf8_general_ci");
  3452. entity.Property(e => e.CheckCodeTime).HasColumnType("datetime");
  3453. entity.Property(e => e.CheckNo)
  3454. .HasColumnType("varchar(6)")
  3455. .HasCharSet("utf8")
  3456. .HasCollation("utf8_general_ci");
  3457. });
  3458. modelBuilder.Entity<MsgBlackList>(entity =>
  3459. {
  3460. entity.Property(e => e.Id).HasColumnType("int(11)");
  3461. entity.Property(e => e.ColId)
  3462. .HasColumnType("varchar(30)")
  3463. .HasCharSet("utf8")
  3464. .HasCollation("utf8_general_ci");
  3465. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3466. entity.Property(e => e.CreateMan)
  3467. .HasColumnType("varchar(50)")
  3468. .HasCharSet("utf8")
  3469. .HasCollation("utf8_general_ci");
  3470. entity.Property(e => e.Extend)
  3471. .HasColumnType("varchar(2000)")
  3472. .HasCharSet("utf8")
  3473. .HasCollation("utf8_general_ci");
  3474. entity.Property(e => e.Ip)
  3475. .HasColumnType("varchar(64)")
  3476. .HasCharSet("utf8")
  3477. .HasCollation("utf8_general_ci");
  3478. entity.Property(e => e.Mobile)
  3479. .HasColumnType("varchar(11)")
  3480. .HasCharSet("utf8")
  3481. .HasCollation("utf8_general_ci");
  3482. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3483. entity.Property(e => e.Reason)
  3484. .HasColumnType("varchar(512)")
  3485. .HasCharSet("utf8")
  3486. .HasCollation("utf8_general_ci");
  3487. entity.Property(e => e.Remark)
  3488. .HasColumnType("varchar(64)")
  3489. .HasCharSet("utf8")
  3490. .HasCollation("utf8_general_ci");
  3491. entity.Property(e => e.SeoDescription)
  3492. .HasColumnType("varchar(500)")
  3493. .HasCharSet("utf8")
  3494. .HasCollation("utf8_general_ci");
  3495. entity.Property(e => e.SeoKeyword)
  3496. .HasColumnType("varchar(200)")
  3497. .HasCharSet("utf8")
  3498. .HasCollation("utf8_general_ci");
  3499. entity.Property(e => e.SeoTitle)
  3500. .HasColumnType("varchar(100)")
  3501. .HasCharSet("utf8")
  3502. .HasCollation("utf8_general_ci");
  3503. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3504. entity.Property(e => e.Status).HasColumnType("int(11)");
  3505. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  3506. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3507. entity.Property(e => e.UpdateMan)
  3508. .HasColumnType("varchar(50)")
  3509. .HasCharSet("utf8")
  3510. .HasCollation("utf8_general_ci");
  3511. entity.Property(e => e.Version).HasColumnType("int(11)");
  3512. });
  3513. modelBuilder.Entity<MsgPersonal>(entity =>
  3514. {
  3515. entity.Property(e => e.Id).HasColumnType("int(11)");
  3516. entity.Property(e => e.BgPic)
  3517. .HasColumnType("varchar(200)")
  3518. .HasCharSet("utf8")
  3519. .HasCollation("utf8_general_ci");
  3520. entity.Property(e => e.Content)
  3521. .HasColumnType("longtext")
  3522. .HasCharSet("utf8")
  3523. .HasCollation("utf8_general_ci");
  3524. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3525. entity.Property(e => e.CreateMan)
  3526. .HasColumnType("varchar(50)")
  3527. .HasCharSet("utf8")
  3528. .HasCollation("utf8_general_ci");
  3529. entity.Property(e => e.ExtendColumn)
  3530. .HasColumnType("mediumtext")
  3531. .HasCharSet("utf8")
  3532. .HasCollation("utf8_general_ci");
  3533. entity.Property(e => e.MsgType).HasColumnType("int(11)");
  3534. entity.Property(e => e.PushFlag).HasColumnType("int(11)");
  3535. entity.Property(e => e.PushParam)
  3536. .HasColumnType("varchar(255)")
  3537. .HasCharSet("utf8")
  3538. .HasCollation("utf8_general_ci");
  3539. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3540. entity.Property(e => e.ReadFlag)
  3541. .HasColumnType("bit(1)")
  3542. .HasDefaultValueSql("b'0'");
  3543. entity.Property(e => e.Remark)
  3544. .HasColumnType("varchar(255)")
  3545. .HasCharSet("utf8")
  3546. .HasCollation("utf8_general_ci");
  3547. entity.Property(e => e.SeoDescription)
  3548. .HasColumnType("varchar(500)")
  3549. .HasCharSet("utf8")
  3550. .HasCollation("utf8_general_ci");
  3551. entity.Property(e => e.SeoKeyword)
  3552. .HasColumnType("varchar(200)")
  3553. .HasCharSet("utf8")
  3554. .HasCollation("utf8_general_ci");
  3555. entity.Property(e => e.SeoTitle)
  3556. .HasColumnType("varchar(100)")
  3557. .HasCharSet("utf8")
  3558. .HasCollation("utf8_general_ci");
  3559. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3560. entity.Property(e => e.Status).HasColumnType("int(11)");
  3561. entity.Property(e => e.Summary)
  3562. .HasColumnType("varchar(500)")
  3563. .HasCharSet("utf8")
  3564. .HasCollation("utf8_general_ci");
  3565. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  3566. entity.Property(e => e.Title)
  3567. .HasColumnType("varchar(50)")
  3568. .HasCharSet("utf8")
  3569. .HasCollation("utf8_general_ci");
  3570. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3571. entity.Property(e => e.UpdateMan)
  3572. .HasColumnType("varchar(50)")
  3573. .HasCharSet("utf8")
  3574. .HasCollation("utf8_general_ci");
  3575. entity.Property(e => e.Url)
  3576. .HasColumnType("varchar(500)")
  3577. .HasCharSet("utf8")
  3578. .HasCollation("utf8_general_ci");
  3579. entity.Property(e => e.UserId).HasColumnType("int(11)");
  3580. entity.Property(e => e.Version).HasColumnType("int(11)");
  3581. });
  3582. modelBuilder.Entity<MsgPlacard>(entity =>
  3583. {
  3584. entity.Property(e => e.Id).HasColumnType("int(11)");
  3585. entity.Property(e => e.BgPic)
  3586. .HasColumnType("varchar(200)")
  3587. .HasCharSet("utf8")
  3588. .HasCollation("utf8_general_ci");
  3589. entity.Property(e => e.Content)
  3590. .HasColumnType("longtext")
  3591. .HasCharSet("utf8")
  3592. .HasCollation("utf8_general_ci");
  3593. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3594. entity.Property(e => e.CreateMan)
  3595. .HasColumnType("varchar(50)")
  3596. .HasCharSet("utf8")
  3597. .HasCollation("utf8_general_ci");
  3598. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  3599. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  3600. entity.Property(e => e.ExtendColumn)
  3601. .HasColumnType("mediumtext")
  3602. .HasCharSet("utf8")
  3603. .HasCollation("utf8_general_ci");
  3604. entity.Property(e => e.IsTop)
  3605. .HasColumnType("bit(1)")
  3606. .HasDefaultValueSql("b'0'");
  3607. entity.Property(e => e.MsgType).HasColumnType("int(11)");
  3608. entity.Property(e => e.PushFlag).HasColumnType("int(11)");
  3609. entity.Property(e => e.PushParam)
  3610. .HasColumnType("varchar(255)")
  3611. .HasCharSet("utf8")
  3612. .HasCollation("utf8_general_ci");
  3613. entity.Property(e => e.PushTime).HasColumnType("datetime");
  3614. entity.Property(e => e.PushType).HasColumnType("int(11)");
  3615. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3616. entity.Property(e => e.Remark)
  3617. .HasColumnType("varchar(255)")
  3618. .HasCharSet("utf8")
  3619. .HasCollation("utf8_general_ci");
  3620. entity.Property(e => e.SeoDescription)
  3621. .HasColumnType("varchar(500)")
  3622. .HasCharSet("utf8")
  3623. .HasCollation("utf8_general_ci");
  3624. entity.Property(e => e.SeoKeyword)
  3625. .HasColumnType("varchar(200)")
  3626. .HasCharSet("utf8")
  3627. .HasCollation("utf8_general_ci");
  3628. entity.Property(e => e.SeoTitle)
  3629. .HasColumnType("varchar(100)")
  3630. .HasCharSet("utf8")
  3631. .HasCollation("utf8_general_ci");
  3632. entity.Property(e => e.ShowType).HasColumnType("int(11)");
  3633. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3634. entity.Property(e => e.Status).HasColumnType("int(11)");
  3635. entity.Property(e => e.Summary)
  3636. .HasColumnType("varchar(500)")
  3637. .HasCharSet("utf8")
  3638. .HasCollation("utf8_general_ci");
  3639. entity.Property(e => e.Title)
  3640. .HasColumnType("varchar(50)")
  3641. .HasCharSet("utf8")
  3642. .HasCollation("utf8_general_ci");
  3643. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3644. entity.Property(e => e.UpdateMan)
  3645. .HasColumnType("varchar(50)")
  3646. .HasCharSet("utf8")
  3647. .HasCollation("utf8_general_ci");
  3648. entity.Property(e => e.Url)
  3649. .HasColumnType("varchar(500)")
  3650. .HasCharSet("utf8")
  3651. .HasCollation("utf8_general_ci");
  3652. entity.Property(e => e.Version).HasColumnType("int(11)");
  3653. });
  3654. modelBuilder.Entity<MsgPlacardRead>(entity =>
  3655. {
  3656. entity.Property(e => e.Id).HasColumnType("int(11)");
  3657. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3658. entity.Property(e => e.CreateMan)
  3659. .HasColumnType("varchar(50)")
  3660. .HasCharSet("utf8")
  3661. .HasCollation("utf8_general_ci");
  3662. entity.Property(e => e.PlacardId).HasColumnType("int(11)");
  3663. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3664. entity.Property(e => e.ReadFlag)
  3665. .HasColumnType("bit(1)")
  3666. .HasDefaultValueSql("b'0'");
  3667. entity.Property(e => e.Remark)
  3668. .HasColumnType("varchar(255)")
  3669. .HasCharSet("utf8")
  3670. .HasCollation("utf8_general_ci");
  3671. entity.Property(e => e.SeoDescription)
  3672. .HasColumnType("varchar(500)")
  3673. .HasCharSet("utf8")
  3674. .HasCollation("utf8_general_ci");
  3675. entity.Property(e => e.SeoKeyword)
  3676. .HasColumnType("varchar(200)")
  3677. .HasCharSet("utf8")
  3678. .HasCollation("utf8_general_ci");
  3679. entity.Property(e => e.SeoTitle)
  3680. .HasColumnType("varchar(100)")
  3681. .HasCharSet("utf8")
  3682. .HasCollation("utf8_general_ci");
  3683. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3684. entity.Property(e => e.Status).HasColumnType("int(11)");
  3685. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3686. entity.Property(e => e.UpdateMan)
  3687. .HasColumnType("varchar(50)")
  3688. .HasCharSet("utf8")
  3689. .HasCollation("utf8_general_ci");
  3690. entity.Property(e => e.UserId)
  3691. .HasColumnType("varchar(64)")
  3692. .HasCharSet("utf8")
  3693. .HasCollation("utf8_general_ci");
  3694. entity.Property(e => e.Version).HasColumnType("int(11)");
  3695. });
  3696. modelBuilder.Entity<MsgPush>(entity =>
  3697. {
  3698. entity.Property(e => e.Id).HasColumnType("int(11)");
  3699. entity.Property(e => e.AutoPushDate).HasColumnType("datetime");
  3700. entity.Property(e => e.ClientType)
  3701. .HasColumnType("varchar(20)")
  3702. .HasCharSet("utf8")
  3703. .HasCollation("utf8_general_ci");
  3704. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3705. entity.Property(e => e.CreateMan)
  3706. .HasColumnType("varchar(50)")
  3707. .HasCharSet("utf8")
  3708. .HasCollation("utf8_general_ci");
  3709. entity.Property(e => e.Details)
  3710. .HasColumnType("varchar(200)")
  3711. .HasCharSet("utf8")
  3712. .HasCollation("utf8_general_ci");
  3713. entity.Property(e => e.Devices)
  3714. .HasColumnType("mediumtext")
  3715. .HasCharSet("utf8")
  3716. .HasCollation("utf8_general_ci");
  3717. entity.Property(e => e.IsSilent)
  3718. .HasColumnType("bit(1)")
  3719. .HasDefaultValueSql("b'0'");
  3720. entity.Property(e => e.MessageId)
  3721. .HasColumnType("varchar(50)")
  3722. .HasCharSet("utf8")
  3723. .HasCollation("utf8_general_ci");
  3724. entity.Property(e => e.Mobiles)
  3725. .HasColumnType("mediumtext")
  3726. .HasCharSet("utf8")
  3727. .HasCollation("utf8_general_ci");
  3728. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3729. entity.Property(e => e.SeoDescription)
  3730. .HasColumnType("varchar(500)")
  3731. .HasCharSet("utf8")
  3732. .HasCollation("utf8_general_ci");
  3733. entity.Property(e => e.SeoKeyword)
  3734. .HasColumnType("varchar(200)")
  3735. .HasCharSet("utf8")
  3736. .HasCollation("utf8_general_ci");
  3737. entity.Property(e => e.SeoTitle)
  3738. .HasColumnType("varchar(100)")
  3739. .HasCharSet("utf8")
  3740. .HasCollation("utf8_general_ci");
  3741. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3742. entity.Property(e => e.Status).HasColumnType("int(11)");
  3743. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  3744. entity.Property(e => e.Title)
  3745. .HasColumnType("varchar(50)")
  3746. .HasCharSet("utf8")
  3747. .HasCollation("utf8_general_ci");
  3748. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3749. entity.Property(e => e.UpdateMan)
  3750. .HasColumnType("varchar(50)")
  3751. .HasCharSet("utf8")
  3752. .HasCollation("utf8_general_ci");
  3753. entity.Property(e => e.Url)
  3754. .HasColumnType("varchar(500)")
  3755. .HasCharSet("utf8")
  3756. .HasCollation("utf8_general_ci");
  3757. entity.Property(e => e.Version).HasColumnType("int(11)");
  3758. });
  3759. modelBuilder.Entity<MsgSms>(entity =>
  3760. {
  3761. entity.Property(e => e.Id).HasColumnType("int(11)");
  3762. entity.Property(e => e.Code).HasColumnType("int(11)");
  3763. entity.Property(e => e.ColId)
  3764. .HasColumnType("varchar(30)")
  3765. .HasCharSet("utf8")
  3766. .HasCollation("utf8_general_ci");
  3767. entity.Property(e => e.Content)
  3768. .HasColumnType("varchar(200)")
  3769. .HasCharSet("utf8")
  3770. .HasCollation("utf8_general_ci");
  3771. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3772. entity.Property(e => e.CreateMan)
  3773. .HasColumnType("varchar(50)")
  3774. .HasCharSet("utf8")
  3775. .HasCollation("utf8_general_ci");
  3776. entity.Property(e => e.ErrorNum).HasColumnType("int(11)");
  3777. entity.Property(e => e.Ip)
  3778. .HasColumnType("varchar(15)")
  3779. .HasCharSet("utf8")
  3780. .HasCollation("utf8_general_ci");
  3781. entity.Property(e => e.Kind)
  3782. .HasColumnType("varchar(64)")
  3783. .HasCharSet("utf8")
  3784. .HasCollation("utf8_general_ci");
  3785. entity.Property(e => e.Mobile)
  3786. .HasColumnType("varchar(11)")
  3787. .HasCharSet("utf8")
  3788. .HasCollation("utf8_general_ci");
  3789. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3790. entity.Property(e => e.RespCode)
  3791. .HasColumnType("varchar(16)")
  3792. .HasCharSet("utf8")
  3793. .HasCollation("utf8_general_ci");
  3794. entity.Property(e => e.RespContent)
  3795. .HasColumnType("varchar(500)")
  3796. .HasCharSet("utf8")
  3797. .HasCollation("utf8_general_ci");
  3798. entity.Property(e => e.SendStatus).HasColumnType("int(11)");
  3799. entity.Property(e => e.SendTime).HasColumnType("datetime");
  3800. entity.Property(e => e.SendType).HasColumnType("int(11)");
  3801. entity.Property(e => e.SeoDescription)
  3802. .HasColumnType("varchar(500)")
  3803. .HasCharSet("utf8")
  3804. .HasCollation("utf8_general_ci");
  3805. entity.Property(e => e.SeoKeyword)
  3806. .HasColumnType("varchar(200)")
  3807. .HasCharSet("utf8")
  3808. .HasCollation("utf8_general_ci");
  3809. entity.Property(e => e.SeoTitle)
  3810. .HasColumnType("varchar(100)")
  3811. .HasCharSet("utf8")
  3812. .HasCollation("utf8_general_ci");
  3813. entity.Property(e => e.SignName)
  3814. .HasColumnType("varchar(10)")
  3815. .HasCharSet("utf8")
  3816. .HasCollation("utf8_general_ci");
  3817. entity.Property(e => e.SmsType).HasColumnType("int(11)");
  3818. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3819. entity.Property(e => e.Status).HasColumnType("int(11)");
  3820. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  3821. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3822. entity.Property(e => e.UpdateMan)
  3823. .HasColumnType("varchar(50)")
  3824. .HasCharSet("utf8")
  3825. .HasCollation("utf8_general_ci");
  3826. entity.Property(e => e.VerifyCode)
  3827. .HasColumnType("varchar(6)")
  3828. .HasCharSet("utf8")
  3829. .HasCollation("utf8_general_ci");
  3830. entity.Property(e => e.VerifyStatus).HasColumnType("int(11)");
  3831. entity.Property(e => e.Version).HasColumnType("int(11)");
  3832. });
  3833. modelBuilder.Entity<MsgSmsSet>(entity =>
  3834. {
  3835. entity.Property(e => e.Id).HasColumnType("int(11)");
  3836. entity.Property(e => e.AuthPwd)
  3837. .HasColumnType("varchar(50)")
  3838. .HasCharSet("utf8")
  3839. .HasCollation("utf8_general_ci");
  3840. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3841. entity.Property(e => e.CreateMan)
  3842. .HasColumnType("varchar(50)")
  3843. .HasCharSet("utf8")
  3844. .HasCollation("utf8_general_ci");
  3845. entity.Property(e => e.Name)
  3846. .HasColumnType("varchar(50)")
  3847. .HasCharSet("utf8")
  3848. .HasCollation("utf8_general_ci");
  3849. entity.Property(e => e.Params)
  3850. .HasColumnType("varchar(200)")
  3851. .HasCharSet("utf8")
  3852. .HasCollation("utf8_general_ci");
  3853. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3854. entity.Property(e => e.ReqUrl)
  3855. .HasColumnType("varchar(200)")
  3856. .HasCharSet("utf8")
  3857. .HasCollation("utf8_general_ci");
  3858. entity.Property(e => e.SeoDescription)
  3859. .HasColumnType("varchar(500)")
  3860. .HasCharSet("utf8")
  3861. .HasCollation("utf8_general_ci");
  3862. entity.Property(e => e.SeoKeyword)
  3863. .HasColumnType("varchar(200)")
  3864. .HasCharSet("utf8")
  3865. .HasCollation("utf8_general_ci");
  3866. entity.Property(e => e.SeoTitle)
  3867. .HasColumnType("varchar(100)")
  3868. .HasCharSet("utf8")
  3869. .HasCollation("utf8_general_ci");
  3870. entity.Property(e => e.SmsType).HasColumnType("int(11)");
  3871. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3872. entity.Property(e => e.Status).HasColumnType("int(11)");
  3873. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3874. entity.Property(e => e.UpdateMan)
  3875. .HasColumnType("varchar(50)")
  3876. .HasCharSet("utf8")
  3877. .HasCollation("utf8_general_ci");
  3878. entity.Property(e => e.UserName)
  3879. .HasColumnType("varchar(50)")
  3880. .HasCharSet("utf8")
  3881. .HasCollation("utf8_general_ci");
  3882. entity.Property(e => e.Version).HasColumnType("int(11)");
  3883. });
  3884. modelBuilder.Entity<MsgTemplate>(entity =>
  3885. {
  3886. entity.Property(e => e.Id).HasColumnType("int(11)");
  3887. entity.Property(e => e.ColId)
  3888. .HasColumnType("varchar(30)")
  3889. .HasCharSet("utf8")
  3890. .HasCollation("utf8_general_ci");
  3891. entity.Property(e => e.Content)
  3892. .HasColumnType("varchar(200)")
  3893. .HasCharSet("utf8")
  3894. .HasCollation("utf8_general_ci");
  3895. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3896. entity.Property(e => e.CreateMan)
  3897. .HasColumnType("varchar(50)")
  3898. .HasCharSet("utf8")
  3899. .HasCollation("utf8_general_ci");
  3900. entity.Property(e => e.Extend)
  3901. .HasColumnType("varchar(2000)")
  3902. .HasCharSet("utf8")
  3903. .HasCollation("utf8_general_ci");
  3904. entity.Property(e => e.MsgType).HasColumnType("int(11)");
  3905. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3906. entity.Property(e => e.Remark)
  3907. .HasColumnType("varchar(64)")
  3908. .HasCharSet("utf8")
  3909. .HasCollation("utf8_general_ci");
  3910. entity.Property(e => e.SeoDescription)
  3911. .HasColumnType("varchar(500)")
  3912. .HasCharSet("utf8")
  3913. .HasCollation("utf8_general_ci");
  3914. entity.Property(e => e.SeoKeyword)
  3915. .HasColumnType("varchar(200)")
  3916. .HasCharSet("utf8")
  3917. .HasCollation("utf8_general_ci");
  3918. entity.Property(e => e.SeoTitle)
  3919. .HasColumnType("varchar(100)")
  3920. .HasCharSet("utf8")
  3921. .HasCollation("utf8_general_ci");
  3922. entity.Property(e => e.SignName)
  3923. .HasColumnType("varchar(10)")
  3924. .HasCharSet("utf8")
  3925. .HasCollation("utf8_general_ci");
  3926. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3927. entity.Property(e => e.Status).HasColumnType("int(11)");
  3928. entity.Property(e => e.TemplateType).HasColumnType("int(11)");
  3929. entity.Property(e => e.Title)
  3930. .HasColumnType("varchar(50)")
  3931. .HasCharSet("utf8")
  3932. .HasCollation("utf8_general_ci");
  3933. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3934. entity.Property(e => e.UpdateMan)
  3935. .HasColumnType("varchar(50)")
  3936. .HasCharSet("utf8")
  3937. .HasCollation("utf8_general_ci");
  3938. entity.Property(e => e.Version).HasColumnType("int(11)");
  3939. });
  3940. modelBuilder.Entity<OpenBankCityTable>(entity =>
  3941. {
  3942. entity.HasKey(e => e.CityName)
  3943. .HasName("PRIMARY");
  3944. entity.Property(e => e.CityName)
  3945. .HasColumnType("varchar(100)")
  3946. .HasCharSet("utf8")
  3947. .HasCollation("utf8_general_ci");
  3948. entity.Property(e => e.Code)
  3949. .HasColumnType("varchar(20)")
  3950. .HasCharSet("utf8")
  3951. .HasCollation("utf8_general_ci");
  3952. });
  3953. modelBuilder.Entity<OpenBankTable>(entity =>
  3954. {
  3955. entity.HasKey(e => e.BankName)
  3956. .HasName("PRIMARY");
  3957. entity.Property(e => e.BankName)
  3958. .HasColumnType("varchar(200)")
  3959. .HasCharSet("utf8")
  3960. .HasCollation("utf8_general_ci");
  3961. entity.Property(e => e.BankCode)
  3962. .HasColumnType("varchar(50)")
  3963. .HasCharSet("utf8")
  3964. .HasCollation("utf8_general_ci");
  3965. });
  3966. modelBuilder.Entity<OpenReward>(entity =>
  3967. {
  3968. entity.Property(e => e.Id).HasColumnType("int(11)");
  3969. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  3970. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  3971. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3972. entity.Property(e => e.CreateMan)
  3973. .HasColumnType("varchar(50)")
  3974. .HasCharSet("utf8")
  3975. .HasCollation("utf8_general_ci");
  3976. entity.Property(e => e.CreditRewardAmount).HasColumnType("decimal(18,2)");
  3977. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  3978. entity.Property(e => e.DebitRewardAmount).HasColumnType("decimal(18,2)");
  3979. entity.Property(e => e.DebitTradeAmt).HasColumnType("decimal(18,2)");
  3980. entity.Property(e => e.OpenRewardNo)
  3981. .HasColumnType("varchar(32)")
  3982. .HasCharSet("utf8")
  3983. .HasCollation("utf8_general_ci");
  3984. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3985. entity.Property(e => e.Remark)
  3986. .HasColumnType("varchar(128)")
  3987. .HasCharSet("utf8")
  3988. .HasCollation("utf8_general_ci");
  3989. entity.Property(e => e.RewardDesc)
  3990. .HasColumnType("varchar(128)")
  3991. .HasCharSet("utf8")
  3992. .HasCollation("utf8_general_ci");
  3993. entity.Property(e => e.RewardMerCount).HasColumnType("int(11)");
  3994. entity.Property(e => e.RewardType).HasColumnType("int(11)");
  3995. entity.Property(e => e.SeoDescription)
  3996. .HasColumnType("varchar(500)")
  3997. .HasCharSet("utf8")
  3998. .HasCollation("utf8_general_ci");
  3999. entity.Property(e => e.SeoKeyword)
  4000. .HasColumnType("varchar(200)")
  4001. .HasCharSet("utf8")
  4002. .HasCollation("utf8_general_ci");
  4003. entity.Property(e => e.SeoTitle)
  4004. .HasColumnType("varchar(100)")
  4005. .HasCharSet("utf8")
  4006. .HasCollation("utf8_general_ci");
  4007. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4008. entity.Property(e => e.Status).HasColumnType("int(11)");
  4009. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  4010. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  4011. entity.Property(e => e.TradeMonth)
  4012. .HasColumnType("varchar(6)")
  4013. .HasCharSet("utf8")
  4014. .HasCollation("utf8_general_ci");
  4015. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4016. entity.Property(e => e.UpdateMan)
  4017. .HasColumnType("varchar(50)")
  4018. .HasCharSet("utf8")
  4019. .HasCollation("utf8_general_ci");
  4020. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4021. entity.Property(e => e.Version).HasColumnType("int(11)");
  4022. });
  4023. modelBuilder.Entity<OpenRewardDetail>(entity =>
  4024. {
  4025. entity.Property(e => e.Id).HasColumnType("int(11)");
  4026. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  4027. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  4028. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4029. entity.Property(e => e.CreateMan)
  4030. .HasColumnType("varchar(50)")
  4031. .HasCharSet("utf8")
  4032. .HasCollation("utf8_general_ci");
  4033. entity.Property(e => e.CreditRewardAmount).HasColumnType("decimal(18,2)");
  4034. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  4035. entity.Property(e => e.DebitRewardAmount).HasColumnType("decimal(18,2)");
  4036. entity.Property(e => e.DebitTradeAmt).HasColumnType("decimal(18,2)");
  4037. entity.Property(e => e.DirectUserId).HasColumnType("int(11)");
  4038. entity.Property(e => e.MerBuddyType).HasColumnType("int(11)");
  4039. entity.Property(e => e.MerNo)
  4040. .HasColumnType("varchar(32)")
  4041. .HasCharSet("utf8")
  4042. .HasCollation("utf8_general_ci");
  4043. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4044. entity.Property(e => e.OpenDetailRec)
  4045. .HasColumnType("varchar(32)")
  4046. .HasCharSet("utf8")
  4047. .HasCollation("utf8_general_ci");
  4048. entity.Property(e => e.OpenRewardNo)
  4049. .HasColumnType("varchar(32)")
  4050. .HasCharSet("utf8")
  4051. .HasCollation("utf8_general_ci");
  4052. entity.Property(e => e.ProductName)
  4053. .HasColumnType("varchar(32)")
  4054. .HasCharSet("utf8")
  4055. .HasCollation("utf8_general_ci");
  4056. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4057. entity.Property(e => e.Remark)
  4058. .HasColumnType("varchar(128)")
  4059. .HasCharSet("utf8")
  4060. .HasCollation("utf8_general_ci");
  4061. entity.Property(e => e.RewardDesc)
  4062. .HasColumnType("varchar(128)")
  4063. .HasCharSet("utf8")
  4064. .HasCollation("utf8_general_ci");
  4065. entity.Property(e => e.RewardTips)
  4066. .HasColumnType("varchar(16)")
  4067. .HasCharSet("utf8")
  4068. .HasCollation("utf8_general_ci");
  4069. entity.Property(e => e.RewardType).HasColumnType("int(11)");
  4070. entity.Property(e => e.SeoDescription)
  4071. .HasColumnType("varchar(500)")
  4072. .HasCharSet("utf8")
  4073. .HasCollation("utf8_general_ci");
  4074. entity.Property(e => e.SeoKeyword)
  4075. .HasColumnType("varchar(200)")
  4076. .HasCharSet("utf8")
  4077. .HasCollation("utf8_general_ci");
  4078. entity.Property(e => e.SeoTitle)
  4079. .HasColumnType("varchar(100)")
  4080. .HasCharSet("utf8")
  4081. .HasCollation("utf8_general_ci");
  4082. entity.Property(e => e.SnApplyUserId).HasColumnType("int(11)");
  4083. entity.Property(e => e.SnNo)
  4084. .HasColumnType("varchar(32)")
  4085. .HasCharSet("utf8")
  4086. .HasCollation("utf8_general_ci");
  4087. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  4088. entity.Property(e => e.SnType).HasColumnType("int(11)");
  4089. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4090. entity.Property(e => e.StandardDate).HasColumnType("datetime");
  4091. entity.Property(e => e.Status).HasColumnType("int(11)");
  4092. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  4093. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  4094. entity.Property(e => e.TradeMonth)
  4095. .HasColumnType("varchar(6)")
  4096. .HasCharSet("utf8")
  4097. .HasCollation("utf8_general_ci");
  4098. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4099. entity.Property(e => e.UpdateMan)
  4100. .HasColumnType("varchar(50)")
  4101. .HasCharSet("utf8")
  4102. .HasCollation("utf8_general_ci");
  4103. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4104. entity.Property(e => e.Version).HasColumnType("int(11)");
  4105. });
  4106. modelBuilder.Entity<OpenSnSnapshot>(entity =>
  4107. {
  4108. entity.Property(e => e.Id).HasColumnType("int(11)");
  4109. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  4110. entity.Property(e => e.BuySnNum).HasColumnType("int(11)");
  4111. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4112. entity.Property(e => e.CreateMan)
  4113. .HasColumnType("varchar(50)")
  4114. .HasCharSet("utf8")
  4115. .HasCollation("utf8_general_ci");
  4116. entity.Property(e => e.CreditRewardAmount).HasColumnType("decimal(18,2)");
  4117. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  4118. entity.Property(e => e.DebitRewardAmount).HasColumnType("decimal(18,2)");
  4119. entity.Property(e => e.DebitTradeAmt).HasColumnType("decimal(18,2)");
  4120. entity.Property(e => e.DirectUserId).HasColumnType("int(11)");
  4121. entity.Property(e => e.FailReason)
  4122. .HasColumnType("varchar(128)")
  4123. .HasCharSet("utf8")
  4124. .HasCollation("utf8_general_ci");
  4125. entity.Property(e => e.MerNo)
  4126. .HasColumnType("varchar(32)")
  4127. .HasCharSet("utf8")
  4128. .HasCollation("utf8_general_ci");
  4129. entity.Property(e => e.MerUserType).HasColumnType("int(11)");
  4130. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4131. entity.Property(e => e.OpenDetailRec)
  4132. .HasColumnType("varchar(32)")
  4133. .HasCharSet("utf8")
  4134. .HasCollation("utf8_general_ci");
  4135. entity.Property(e => e.OpenRewardNo)
  4136. .HasColumnType("varchar(32)")
  4137. .HasCharSet("utf8")
  4138. .HasCollation("utf8_general_ci");
  4139. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4140. entity.Property(e => e.Remark)
  4141. .HasColumnType("varchar(128)")
  4142. .HasCharSet("utf8")
  4143. .HasCollation("utf8_general_ci");
  4144. entity.Property(e => e.RewardAmount).HasColumnType("decimal(18,2)");
  4145. entity.Property(e => e.RewardDesc)
  4146. .HasColumnType("varchar(128)")
  4147. .HasCharSet("utf8")
  4148. .HasCollation("utf8_general_ci");
  4149. entity.Property(e => e.RewardTips)
  4150. .HasColumnType("varchar(16)")
  4151. .HasCharSet("utf8")
  4152. .HasCollation("utf8_general_ci");
  4153. entity.Property(e => e.RewardType).HasColumnType("int(11)");
  4154. entity.Property(e => e.SeoDescription)
  4155. .HasColumnType("varchar(500)")
  4156. .HasCharSet("utf8")
  4157. .HasCollation("utf8_general_ci");
  4158. entity.Property(e => e.SeoKeyword)
  4159. .HasColumnType("varchar(200)")
  4160. .HasCharSet("utf8")
  4161. .HasCollation("utf8_general_ci");
  4162. entity.Property(e => e.SeoTitle)
  4163. .HasColumnType("varchar(100)")
  4164. .HasCharSet("utf8")
  4165. .HasCollation("utf8_general_ci");
  4166. entity.Property(e => e.SnApplyUserId).HasColumnType("int(11)");
  4167. entity.Property(e => e.SnNo)
  4168. .HasColumnType("varchar(32)")
  4169. .HasCharSet("utf8")
  4170. .HasCollation("utf8_general_ci");
  4171. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  4172. entity.Property(e => e.SnType).HasColumnType("int(11)");
  4173. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4174. entity.Property(e => e.StandardDate).HasColumnType("datetime");
  4175. entity.Property(e => e.Status).HasColumnType("int(11)");
  4176. entity.Property(e => e.StdBuySnNum).HasColumnType("int(11)");
  4177. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  4178. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  4179. entity.Property(e => e.TradeMonth)
  4180. .HasColumnType("varchar(6)")
  4181. .HasCharSet("utf8")
  4182. .HasCollation("utf8_general_ci");
  4183. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4184. entity.Property(e => e.UpdateMan)
  4185. .HasColumnType("varchar(50)")
  4186. .HasCharSet("utf8")
  4187. .HasCollation("utf8_general_ci");
  4188. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4189. entity.Property(e => e.UserNav)
  4190. .HasColumnType("varchar(300)")
  4191. .HasCharSet("utf8")
  4192. .HasCollation("utf8_general_ci");
  4193. entity.Property(e => e.Version).HasColumnType("int(11)");
  4194. });
  4195. modelBuilder.Entity<OperateLog>(entity =>
  4196. {
  4197. entity.Property(e => e.Id).HasColumnType("int(11)");
  4198. entity.Property(e => e.AfterOperate)
  4199. .HasColumnType("mediumtext")
  4200. .HasCharSet("utf8")
  4201. .HasCollation("utf8_general_ci");
  4202. entity.Property(e => e.BeforeOperate)
  4203. .HasColumnType("mediumtext")
  4204. .HasCharSet("utf8")
  4205. .HasCollation("utf8_general_ci");
  4206. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4207. entity.Property(e => e.CreateMan)
  4208. .HasColumnType("varchar(50)")
  4209. .HasCharSet("utf8")
  4210. .HasCollation("utf8_general_ci");
  4211. entity.Property(e => e.OpMode)
  4212. .HasColumnType("varchar(30)")
  4213. .HasCharSet("utf8")
  4214. .HasCollation("utf8_general_ci");
  4215. entity.Property(e => e.OperateMan)
  4216. .HasColumnType("varchar(50)")
  4217. .HasCharSet("utf8")
  4218. .HasCollation("utf8_general_ci");
  4219. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4220. entity.Property(e => e.SeoDescription)
  4221. .HasColumnType("varchar(500)")
  4222. .HasCharSet("utf8")
  4223. .HasCollation("utf8_general_ci");
  4224. entity.Property(e => e.SeoKeyword)
  4225. .HasColumnType("varchar(200)")
  4226. .HasCharSet("utf8")
  4227. .HasCollation("utf8_general_ci");
  4228. entity.Property(e => e.SeoTitle)
  4229. .HasColumnType("varchar(100)")
  4230. .HasCharSet("utf8")
  4231. .HasCollation("utf8_general_ci");
  4232. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4233. entity.Property(e => e.Status).HasColumnType("int(11)");
  4234. entity.Property(e => e.TableEnName)
  4235. .HasColumnType("varchar(50)")
  4236. .HasCharSet("utf8")
  4237. .HasCollation("utf8_general_ci");
  4238. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4239. entity.Property(e => e.UpdateMan)
  4240. .HasColumnType("varchar(50)")
  4241. .HasCharSet("utf8")
  4242. .HasCollation("utf8_general_ci");
  4243. entity.Property(e => e.Version).HasColumnType("int(11)");
  4244. });
  4245. modelBuilder.Entity<OperateRightList>(entity =>
  4246. {
  4247. entity.Property(e => e.Id).HasColumnType("int(11)");
  4248. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4249. entity.Property(e => e.CreateMan)
  4250. .HasColumnType("varchar(50)")
  4251. .HasCharSet("utf8")
  4252. .HasCollation("utf8_general_ci");
  4253. entity.Property(e => e.EnName)
  4254. .HasColumnType("varchar(50)")
  4255. .HasCharSet("utf8")
  4256. .HasCollation("utf8_general_ci");
  4257. entity.Property(e => e.Name)
  4258. .HasColumnType("varchar(50)")
  4259. .HasCharSet("utf8")
  4260. .HasCollation("utf8_general_ci");
  4261. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4262. entity.Property(e => e.SeoDescription)
  4263. .HasColumnType("varchar(500)")
  4264. .HasCharSet("utf8")
  4265. .HasCollation("utf8_general_ci");
  4266. entity.Property(e => e.SeoKeyword)
  4267. .HasColumnType("varchar(200)")
  4268. .HasCharSet("utf8")
  4269. .HasCollation("utf8_general_ci");
  4270. entity.Property(e => e.SeoTitle)
  4271. .HasColumnType("varchar(100)")
  4272. .HasCharSet("utf8")
  4273. .HasCollation("utf8_general_ci");
  4274. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4275. entity.Property(e => e.Status).HasColumnType("int(11)");
  4276. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4277. entity.Property(e => e.UpdateMan)
  4278. .HasColumnType("varchar(50)")
  4279. .HasCharSet("utf8")
  4280. .HasCollation("utf8_general_ci");
  4281. entity.Property(e => e.Version).HasColumnType("int(11)");
  4282. });
  4283. modelBuilder.Entity<OrderForNo>(entity =>
  4284. {
  4285. entity.HasKey(e => e.OrderNo)
  4286. .HasName("PRIMARY");
  4287. entity.Property(e => e.OrderNo)
  4288. .HasColumnType("varchar(50)")
  4289. .HasCharSet("utf8")
  4290. .HasCollation("utf8_general_ci");
  4291. entity.Property(e => e.OrderIds)
  4292. .HasColumnType("varchar(50)")
  4293. .HasCharSet("utf8")
  4294. .HasCollation("utf8_general_ci");
  4295. entity.Property(e => e.RspCode).HasColumnType("int(11)");
  4296. entity.Property(e => e.RspMsg)
  4297. .HasColumnType("varchar(500)")
  4298. .HasCharSet("utf8")
  4299. .HasCollation("utf8_general_ci");
  4300. });
  4301. modelBuilder.Entity<OrderProduct>(entity =>
  4302. {
  4303. entity.Property(e => e.Id).HasColumnType("int(11)");
  4304. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4305. entity.Property(e => e.CreateMan)
  4306. .HasColumnType("varchar(50)")
  4307. .HasCharSet("utf8")
  4308. .HasCollation("utf8_general_ci");
  4309. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4310. entity.Property(e => e.NormDetail)
  4311. .HasColumnType("varchar(200)")
  4312. .HasCharSet("utf8")
  4313. .HasCollation("utf8_general_ci");
  4314. entity.Property(e => e.NormId)
  4315. .HasColumnType("varchar(50)")
  4316. .HasCharSet("utf8")
  4317. .HasCollation("utf8_general_ci");
  4318. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  4319. entity.Property(e => e.ProductCode)
  4320. .HasColumnType("varchar(30)")
  4321. .HasCharSet("utf8")
  4322. .HasCollation("utf8_general_ci");
  4323. entity.Property(e => e.ProductCount).HasColumnType("int(11)");
  4324. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  4325. entity.Property(e => e.ProductIntegral).HasColumnType("decimal(18,2)");
  4326. entity.Property(e => e.ProductName)
  4327. .HasColumnType("varchar(100)")
  4328. .HasCharSet("utf8")
  4329. .HasCollation("utf8_general_ci");
  4330. entity.Property(e => e.ProductPhoto)
  4331. .HasColumnType("varchar(200)")
  4332. .HasCharSet("utf8")
  4333. .HasCollation("utf8_general_ci");
  4334. entity.Property(e => e.ProductPrice).HasColumnType("decimal(18,2)");
  4335. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4336. entity.Property(e => e.SeoDescription)
  4337. .HasColumnType("varchar(500)")
  4338. .HasCharSet("utf8")
  4339. .HasCollation("utf8_general_ci");
  4340. entity.Property(e => e.SeoKeyword)
  4341. .HasColumnType("varchar(200)")
  4342. .HasCharSet("utf8")
  4343. .HasCollation("utf8_general_ci");
  4344. entity.Property(e => e.SeoTitle)
  4345. .HasColumnType("varchar(100)")
  4346. .HasCharSet("utf8")
  4347. .HasCollation("utf8_general_ci");
  4348. entity.Property(e => e.SnNos)
  4349. .HasColumnType("mediumtext")
  4350. .HasCharSet("utf8")
  4351. .HasCollation("utf8_general_ci");
  4352. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4353. entity.Property(e => e.Status).HasColumnType("int(11)");
  4354. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  4355. entity.Property(e => e.TotalIntegral).HasColumnType("decimal(18,2)");
  4356. entity.Property(e => e.TotalPrice).HasColumnType("decimal(18,2)");
  4357. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4358. entity.Property(e => e.UpdateMan)
  4359. .HasColumnType("varchar(50)")
  4360. .HasCharSet("utf8")
  4361. .HasCollation("utf8_general_ci");
  4362. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4363. entity.Property(e => e.Version).HasColumnType("int(11)");
  4364. });
  4365. modelBuilder.Entity<OrderRefund>(entity =>
  4366. {
  4367. entity.Property(e => e.Id).HasColumnType("int(11)");
  4368. entity.Property(e => e.Amount).HasColumnType("decimal(18,2)");
  4369. entity.Property(e => e.Contents)
  4370. .HasColumnType("longtext")
  4371. .HasCharSet("utf8")
  4372. .HasCollation("utf8_general_ci");
  4373. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4374. entity.Property(e => e.CreateMan)
  4375. .HasColumnType("varchar(50)")
  4376. .HasCharSet("utf8")
  4377. .HasCollation("utf8_general_ci");
  4378. entity.Property(e => e.ErpCode)
  4379. .HasColumnType("varchar(50)")
  4380. .HasCharSet("utf8")
  4381. .HasCollation("utf8_general_ci");
  4382. entity.Property(e => e.ErpCompany).HasColumnType("int(11)");
  4383. entity.Property(e => e.GoodStatus).HasColumnType("int(11)");
  4384. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4385. entity.Property(e => e.Mobile)
  4386. .HasColumnType("varchar(11)")
  4387. .HasCharSet("utf8")
  4388. .HasCollation("utf8_general_ci");
  4389. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  4390. entity.Property(e => e.Photos)
  4391. .HasColumnType("varchar(500)")
  4392. .HasCharSet("utf8")
  4393. .HasCollation("utf8_general_ci");
  4394. entity.Property(e => e.ProductId)
  4395. .HasColumnType("varchar(50)")
  4396. .HasCharSet("utf8")
  4397. .HasCollation("utf8_general_ci");
  4398. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4399. entity.Property(e => e.Reason).HasColumnType("int(11)");
  4400. entity.Property(e => e.SeoDescription)
  4401. .HasColumnType("varchar(500)")
  4402. .HasCharSet("utf8")
  4403. .HasCollation("utf8_general_ci");
  4404. entity.Property(e => e.SeoKeyword)
  4405. .HasColumnType("varchar(200)")
  4406. .HasCharSet("utf8")
  4407. .HasCollation("utf8_general_ci");
  4408. entity.Property(e => e.SeoTitle)
  4409. .HasColumnType("varchar(100)")
  4410. .HasCharSet("utf8")
  4411. .HasCollation("utf8_general_ci");
  4412. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4413. entity.Property(e => e.Status).HasColumnType("int(11)");
  4414. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4415. entity.Property(e => e.UpdateMan)
  4416. .HasColumnType("varchar(50)")
  4417. .HasCharSet("utf8")
  4418. .HasCollation("utf8_general_ci");
  4419. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4420. entity.Property(e => e.Version).HasColumnType("int(11)");
  4421. });
  4422. modelBuilder.Entity<OrderRefundReason>(entity =>
  4423. {
  4424. entity.Property(e => e.Id).HasColumnType("int(11)");
  4425. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4426. entity.Property(e => e.CreateMan)
  4427. .HasColumnType("varchar(50)")
  4428. .HasCharSet("utf8")
  4429. .HasCollation("utf8_general_ci");
  4430. entity.Property(e => e.Name)
  4431. .HasColumnType("varchar(50)")
  4432. .HasCharSet("utf8")
  4433. .HasCollation("utf8_general_ci");
  4434. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4435. entity.Property(e => e.SeoDescription)
  4436. .HasColumnType("varchar(500)")
  4437. .HasCharSet("utf8")
  4438. .HasCollation("utf8_general_ci");
  4439. entity.Property(e => e.SeoKeyword)
  4440. .HasColumnType("varchar(200)")
  4441. .HasCharSet("utf8")
  4442. .HasCollation("utf8_general_ci");
  4443. entity.Property(e => e.SeoTitle)
  4444. .HasColumnType("varchar(100)")
  4445. .HasCharSet("utf8")
  4446. .HasCollation("utf8_general_ci");
  4447. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4448. entity.Property(e => e.Status).HasColumnType("int(11)");
  4449. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4450. entity.Property(e => e.UpdateMan)
  4451. .HasColumnType("varchar(50)")
  4452. .HasCharSet("utf8")
  4453. .HasCollation("utf8_general_ci");
  4454. entity.Property(e => e.Version).HasColumnType("int(11)");
  4455. });
  4456. modelBuilder.Entity<Orders>(entity =>
  4457. {
  4458. entity.Property(e => e.Id).HasColumnType("int(11)");
  4459. entity.Property(e => e.ActualPay).HasColumnType("decimal(18,2)");
  4460. entity.Property(e => e.Address)
  4461. .HasColumnType("varchar(50)")
  4462. .HasCharSet("utf8")
  4463. .HasCollation("utf8_general_ci");
  4464. entity.Property(e => e.Areas)
  4465. .HasColumnType("varchar(30)")
  4466. .HasCharSet("utf8")
  4467. .HasCollation("utf8_general_ci");
  4468. entity.Property(e => e.AutoConfirmDate).HasColumnType("datetime");
  4469. entity.Property(e => e.BuyCount).HasColumnType("int(11)");
  4470. entity.Property(e => e.ChannelAmount).HasColumnType("decimal(18,2)");
  4471. entity.Property(e => e.ConfirmDate).HasColumnType("datetime");
  4472. entity.Property(e => e.CouponId).HasColumnType("int(11)");
  4473. entity.Property(e => e.CouponMoney).HasColumnType("decimal(18,2)");
  4474. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4475. entity.Property(e => e.CreateMan)
  4476. .HasColumnType("varchar(50)")
  4477. .HasCharSet("utf8")
  4478. .HasCollation("utf8_general_ci");
  4479. entity.Property(e => e.DeliveryType).HasColumnType("int(11)");
  4480. entity.Property(e => e.ErpCode)
  4481. .HasColumnType("varchar(50)")
  4482. .HasCharSet("utf8")
  4483. .HasCollation("utf8_general_ci");
  4484. entity.Property(e => e.ErpMode).HasColumnType("int(11)");
  4485. entity.Property(e => e.ErpName)
  4486. .HasColumnType("varchar(50)")
  4487. .HasCharSet("utf8")
  4488. .HasCollation("utf8_general_ci");
  4489. entity.Property(e => e.ErpPrice).HasColumnType("decimal(18,2)");
  4490. entity.Property(e => e.Integral).HasColumnType("decimal(18,2)");
  4491. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4492. entity.Property(e => e.Mobile)
  4493. .HasColumnType("varchar(11)")
  4494. .HasCharSet("utf8")
  4495. .HasCollation("utf8_general_ci");
  4496. entity.Property(e => e.OrderNo)
  4497. .HasColumnType("varchar(30)")
  4498. .HasCharSet("utf8")
  4499. .HasCollation("utf8_general_ci");
  4500. entity.Property(e => e.ParentOrderId).HasColumnType("int(11)");
  4501. entity.Property(e => e.PayDate).HasColumnType("datetime");
  4502. entity.Property(e => e.PayMode).HasColumnType("int(11)");
  4503. entity.Property(e => e.PayStatus).HasColumnType("int(11)");
  4504. entity.Property(e => e.PostalCode)
  4505. .HasColumnType("varchar(6)")
  4506. .HasCharSet("utf8")
  4507. .HasCollation("utf8_general_ci");
  4508. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  4509. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4510. entity.Property(e => e.RealName)
  4511. .HasColumnType("varchar(10)")
  4512. .HasCharSet("utf8")
  4513. .HasCollation("utf8_general_ci");
  4514. entity.Property(e => e.RefundActAmount).HasColumnType("decimal(18,2)");
  4515. entity.Property(e => e.RefundFeeAmount).HasColumnType("decimal(18,2)");
  4516. entity.Property(e => e.RefundReason)
  4517. .HasColumnType("varchar(64)")
  4518. .HasCharSet("utf8")
  4519. .HasCollation("utf8_general_ci");
  4520. entity.Property(e => e.RefundStatus).HasColumnType("int(11)");
  4521. entity.Property(e => e.Remark)
  4522. .HasColumnType("varchar(64)")
  4523. .HasCharSet("utf8")
  4524. .HasCollation("utf8_general_ci");
  4525. entity.Property(e => e.ReqData)
  4526. .HasColumnType("varchar(2048)")
  4527. .HasCharSet("utf8")
  4528. .HasCollation("utf8_general_ci");
  4529. entity.Property(e => e.ResData)
  4530. .HasColumnType("varchar(2048)")
  4531. .HasCharSet("utf8")
  4532. .HasCollation("utf8_general_ci");
  4533. entity.Property(e => e.ReturnCode)
  4534. .HasColumnType("varchar(32)")
  4535. .HasCharSet("utf8")
  4536. .HasCollation("utf8_general_ci");
  4537. entity.Property(e => e.ReturnMsg)
  4538. .HasColumnType("varchar(128)")
  4539. .HasCharSet("utf8")
  4540. .HasCollation("utf8_general_ci");
  4541. entity.Property(e => e.SendDate).HasColumnType("datetime");
  4542. entity.Property(e => e.SendStatus).HasColumnType("int(11)");
  4543. entity.Property(e => e.SeoDescription)
  4544. .HasColumnType("varchar(500)")
  4545. .HasCharSet("utf8")
  4546. .HasCollation("utf8_general_ci");
  4547. entity.Property(e => e.SeoKeyword)
  4548. .HasColumnType("varchar(200)")
  4549. .HasCharSet("utf8")
  4550. .HasCollation("utf8_general_ci");
  4551. entity.Property(e => e.SeoTitle)
  4552. .HasColumnType("varchar(100)")
  4553. .HasCharSet("utf8")
  4554. .HasCollation("utf8_general_ci");
  4555. entity.Property(e => e.SnNos)
  4556. .HasColumnType("mediumtext")
  4557. .HasCharSet("utf8")
  4558. .HasCollation("utf8_general_ci");
  4559. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4560. entity.Property(e => e.Status).HasColumnType("int(11)");
  4561. entity.Property(e => e.StoreContact)
  4562. .HasColumnType("varchar(30)")
  4563. .HasCharSet("utf8")
  4564. .HasCollation("utf8_general_ci");
  4565. entity.Property(e => e.StoreContactMobile)
  4566. .HasColumnType("varchar(11)")
  4567. .HasCharSet("utf8")
  4568. .HasCollation("utf8_general_ci");
  4569. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  4570. entity.Property(e => e.StoreType).HasColumnType("int(11)");
  4571. entity.Property(e => e.StoreUserId).HasColumnType("int(11)");
  4572. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  4573. entity.Property(e => e.TotalPrice).HasColumnType("decimal(18,2)");
  4574. entity.Property(e => e.TradeNo)
  4575. .HasColumnType("varchar(50)")
  4576. .HasCharSet("utf8")
  4577. .HasCollation("utf8_general_ci");
  4578. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4579. entity.Property(e => e.UpdateMan)
  4580. .HasColumnType("varchar(50)")
  4581. .HasCharSet("utf8")
  4582. .HasCollation("utf8_general_ci");
  4583. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4584. entity.Property(e => e.UserMessage)
  4585. .HasColumnType("varchar(50)")
  4586. .HasCharSet("utf8")
  4587. .HasCollation("utf8_general_ci");
  4588. entity.Property(e => e.Version).HasColumnType("int(11)");
  4589. });
  4590. modelBuilder.Entity<PageInfo>(entity =>
  4591. {
  4592. entity.Property(e => e.Id).HasColumnType("int(11)");
  4593. entity.Property(e => e.ColId)
  4594. .HasColumnType("varchar(30)")
  4595. .HasCharSet("utf8")
  4596. .HasCollation("utf8_general_ci");
  4597. entity.Property(e => e.Contents)
  4598. .HasColumnType("longtext")
  4599. .HasCharSet("utf8")
  4600. .HasCollation("utf8_general_ci");
  4601. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4602. entity.Property(e => e.CreateMan)
  4603. .HasColumnType("varchar(50)")
  4604. .HasCharSet("utf8")
  4605. .HasCollation("utf8_general_ci");
  4606. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4607. entity.Property(e => e.SeoDescription)
  4608. .HasColumnType("varchar(500)")
  4609. .HasCharSet("utf8")
  4610. .HasCollation("utf8_general_ci");
  4611. entity.Property(e => e.SeoKeyword)
  4612. .HasColumnType("varchar(200)")
  4613. .HasCharSet("utf8")
  4614. .HasCollation("utf8_general_ci");
  4615. entity.Property(e => e.SeoTitle)
  4616. .HasColumnType("varchar(100)")
  4617. .HasCharSet("utf8")
  4618. .HasCollation("utf8_general_ci");
  4619. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4620. entity.Property(e => e.Status).HasColumnType("int(11)");
  4621. entity.Property(e => e.Title)
  4622. .HasColumnType("varchar(200)")
  4623. .HasCharSet("utf8")
  4624. .HasCollation("utf8_general_ci");
  4625. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4626. entity.Property(e => e.UpdateMan)
  4627. .HasColumnType("varchar(50)")
  4628. .HasCharSet("utf8")
  4629. .HasCollation("utf8_general_ci");
  4630. entity.Property(e => e.Version).HasColumnType("int(11)");
  4631. });
  4632. modelBuilder.Entity<PageUpdateInfo>(entity =>
  4633. {
  4634. entity.Property(e => e.Id).HasColumnType("int(11)");
  4635. entity.Property(e => e.BgColor)
  4636. .HasColumnType("varchar(6)")
  4637. .HasCharSet("utf8")
  4638. .HasCollation("utf8_general_ci");
  4639. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4640. entity.Property(e => e.CreateMan)
  4641. .HasColumnType("varchar(50)")
  4642. .HasCharSet("utf8")
  4643. .HasCollation("utf8_general_ci");
  4644. entity.Property(e => e.GotoPages)
  4645. .HasColumnType("varchar(500)")
  4646. .HasCharSet("utf8")
  4647. .HasCollation("utf8_general_ci");
  4648. entity.Property(e => e.IsScrollBar)
  4649. .HasColumnType("bit(1)")
  4650. .HasDefaultValueSql("b'0'");
  4651. entity.Property(e => e.IsSkid)
  4652. .HasColumnType("bit(1)")
  4653. .HasDefaultValueSql("b'0'");
  4654. entity.Property(e => e.LeftAction1)
  4655. .HasColumnType("longtext")
  4656. .HasCharSet("utf8")
  4657. .HasCollation("utf8_general_ci");
  4658. entity.Property(e => e.LeftAction2)
  4659. .HasColumnType("longtext")
  4660. .HasCharSet("utf8")
  4661. .HasCollation("utf8_general_ci");
  4662. entity.Property(e => e.LeftBtn1)
  4663. .HasColumnType("varchar(100)")
  4664. .HasCharSet("utf8")
  4665. .HasCollation("utf8_general_ci");
  4666. entity.Property(e => e.LeftBtn2)
  4667. .HasColumnType("varchar(50)")
  4668. .HasCharSet("utf8")
  4669. .HasCollation("utf8_general_ci");
  4670. entity.Property(e => e.ModulePath)
  4671. .HasColumnType("varchar(200)")
  4672. .HasCharSet("utf8")
  4673. .HasCollation("utf8_general_ci");
  4674. entity.Property(e => e.ModuleVersion).HasColumnType("int(11)");
  4675. entity.Property(e => e.MustUpdate)
  4676. .HasColumnType("bit(1)")
  4677. .HasDefaultValueSql("b'0'");
  4678. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4679. entity.Property(e => e.RightAction1)
  4680. .HasColumnType("longtext")
  4681. .HasCharSet("utf8")
  4682. .HasCollation("utf8_general_ci");
  4683. entity.Property(e => e.RightAction2)
  4684. .HasColumnType("longtext")
  4685. .HasCharSet("utf8")
  4686. .HasCollation("utf8_general_ci");
  4687. entity.Property(e => e.RightBtn1)
  4688. .HasColumnType("varchar(50)")
  4689. .HasCharSet("utf8")
  4690. .HasCollation("utf8_general_ci");
  4691. entity.Property(e => e.RightBtn2)
  4692. .HasColumnType("varchar(50)")
  4693. .HasCharSet("utf8")
  4694. .HasCollation("utf8_general_ci");
  4695. entity.Property(e => e.SeoDescription)
  4696. .HasColumnType("varchar(500)")
  4697. .HasCharSet("utf8")
  4698. .HasCollation("utf8_general_ci");
  4699. entity.Property(e => e.SeoKeyword)
  4700. .HasColumnType("varchar(200)")
  4701. .HasCharSet("utf8")
  4702. .HasCollation("utf8_general_ci");
  4703. entity.Property(e => e.SeoTitle)
  4704. .HasColumnType("varchar(100)")
  4705. .HasCharSet("utf8")
  4706. .HasCollation("utf8_general_ci");
  4707. entity.Property(e => e.ShowTitle)
  4708. .HasColumnType("bit(1)")
  4709. .HasDefaultValueSql("b'0'");
  4710. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4711. entity.Property(e => e.Status).HasColumnType("int(11)");
  4712. entity.Property(e => e.StatusBarStyle)
  4713. .HasColumnType("varchar(10)")
  4714. .HasCharSet("utf8")
  4715. .HasCollation("utf8_general_ci");
  4716. entity.Property(e => e.TextColor)
  4717. .HasColumnType("varchar(6)")
  4718. .HasCharSet("utf8")
  4719. .HasCollation("utf8_general_ci");
  4720. entity.Property(e => e.Title)
  4721. .HasColumnType("varchar(50)")
  4722. .HasCharSet("utf8")
  4723. .HasCollation("utf8_general_ci");
  4724. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4725. entity.Property(e => e.UpdateMan)
  4726. .HasColumnType("varchar(50)")
  4727. .HasCharSet("utf8")
  4728. .HasCollation("utf8_general_ci");
  4729. entity.Property(e => e.Version).HasColumnType("int(11)");
  4730. });
  4731. modelBuilder.Entity<PosCouponForUser>(entity =>
  4732. {
  4733. entity.Property(e => e.Id).HasColumnType("int(11)");
  4734. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4735. entity.Property(e => e.OutNum).HasColumnType("int(11)");
  4736. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4737. entity.Property(e => e.SeoDescription)
  4738. .HasColumnType("varchar(500)")
  4739. .HasCharSet("utf8")
  4740. .HasCollation("utf8_general_ci");
  4741. entity.Property(e => e.SeoKeyword)
  4742. .HasColumnType("varchar(200)")
  4743. .HasCharSet("utf8")
  4744. .HasCollation("utf8_general_ci");
  4745. entity.Property(e => e.SeoTitle)
  4746. .HasColumnType("varchar(100)")
  4747. .HasCharSet("utf8")
  4748. .HasCollation("utf8_general_ci");
  4749. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4750. entity.Property(e => e.Status).HasColumnType("int(11)");
  4751. entity.Property(e => e.StockNum).HasColumnType("int(11)");
  4752. entity.Property(e => e.TotalNum).HasColumnType("int(11)");
  4753. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4754. });
  4755. modelBuilder.Entity<PosCouponOrders>(entity =>
  4756. {
  4757. entity.Property(e => e.Id).HasColumnType("int(11)");
  4758. entity.Property(e => e.AfterOut).HasColumnType("int(11)");
  4759. entity.Property(e => e.AfterStock).HasColumnType("int(11)");
  4760. entity.Property(e => e.AfterTotal).HasColumnType("int(11)");
  4761. entity.Property(e => e.BeforeOut).HasColumnType("int(11)");
  4762. entity.Property(e => e.BeforeStock).HasColumnType("int(11)");
  4763. entity.Property(e => e.BeforeTotal).HasColumnType("int(11)");
  4764. entity.Property(e => e.ChangeCount).HasColumnType("int(11)");
  4765. entity.Property(e => e.ChangeKind).HasColumnType("int(11)");
  4766. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4767. entity.Property(e => e.FromUserId).HasColumnType("int(11)");
  4768. entity.Property(e => e.OrderNo)
  4769. .HasColumnType("varchar(50)")
  4770. .HasCharSet("utf8")
  4771. .HasCollation("utf8_general_ci");
  4772. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4773. entity.Property(e => e.SeoDescription)
  4774. .HasColumnType("varchar(500)")
  4775. .HasCharSet("utf8")
  4776. .HasCollation("utf8_general_ci");
  4777. entity.Property(e => e.SeoKeyword)
  4778. .HasColumnType("varchar(200)")
  4779. .HasCharSet("utf8")
  4780. .HasCollation("utf8_general_ci");
  4781. entity.Property(e => e.SeoTitle)
  4782. .HasColumnType("varchar(100)")
  4783. .HasCharSet("utf8")
  4784. .HasCollation("utf8_general_ci");
  4785. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4786. entity.Property(e => e.Status).HasColumnType("int(11)");
  4787. entity.Property(e => e.ToUserId).HasColumnType("int(11)");
  4788. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4789. });
  4790. modelBuilder.Entity<PosCouponRecord>(entity =>
  4791. {
  4792. entity.Property(e => e.Id).HasColumnType("int(11)");
  4793. entity.Property(e => e.ChangeKind).HasColumnType("int(11)");
  4794. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4795. entity.Property(e => e.FromUserId).HasColumnType("int(11)");
  4796. entity.Property(e => e.OrderNo)
  4797. .HasColumnType("varchar(50)")
  4798. .HasCharSet("utf8")
  4799. .HasCollation("utf8_general_ci");
  4800. entity.Property(e => e.PosCouponId).HasColumnType("int(11)");
  4801. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4802. entity.Property(e => e.SeoDescription)
  4803. .HasColumnType("varchar(500)")
  4804. .HasCharSet("utf8")
  4805. .HasCollation("utf8_general_ci");
  4806. entity.Property(e => e.SeoKeyword)
  4807. .HasColumnType("varchar(200)")
  4808. .HasCharSet("utf8")
  4809. .HasCollation("utf8_general_ci");
  4810. entity.Property(e => e.SeoTitle)
  4811. .HasColumnType("varchar(100)")
  4812. .HasCharSet("utf8")
  4813. .HasCollation("utf8_general_ci");
  4814. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4815. entity.Property(e => e.Status).HasColumnType("int(11)");
  4816. entity.Property(e => e.ToUserId).HasColumnType("int(11)");
  4817. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4818. });
  4819. modelBuilder.Entity<PosCoupons>(entity =>
  4820. {
  4821. entity.Property(e => e.Id).HasColumnType("int(11)");
  4822. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4823. entity.Property(e => e.ExchangeCode)
  4824. .HasColumnType("varchar(10)")
  4825. .HasCharSet("utf8")
  4826. .HasCollation("utf8_general_ci");
  4827. entity.Property(e => e.IsLock)
  4828. .HasColumnType("bit(1)")
  4829. .HasDefaultValueSql("b'0'");
  4830. entity.Property(e => e.IsUse)
  4831. .HasColumnType("bit(1)")
  4832. .HasDefaultValueSql("b'0'");
  4833. entity.Property(e => e.LeaderUserId).HasColumnType("int(11)");
  4834. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4835. entity.Property(e => e.SeoDescription)
  4836. .HasColumnType("varchar(500)")
  4837. .HasCharSet("utf8")
  4838. .HasCollation("utf8_general_ci");
  4839. entity.Property(e => e.SeoKeyword)
  4840. .HasColumnType("varchar(200)")
  4841. .HasCharSet("utf8")
  4842. .HasCollation("utf8_general_ci");
  4843. entity.Property(e => e.SeoTitle)
  4844. .HasColumnType("varchar(100)")
  4845. .HasCharSet("utf8")
  4846. .HasCollation("utf8_general_ci");
  4847. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4848. entity.Property(e => e.Status).HasColumnType("int(11)");
  4849. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4850. entity.Property(e => e.UseDate).HasColumnType("datetime");
  4851. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4852. });
  4853. modelBuilder.Entity<PosMachines>(entity =>
  4854. {
  4855. entity.Property(e => e.Id).HasColumnType("int(11)");
  4856. entity.Property(e => e.ActivationState).HasColumnType("int(11)");
  4857. entity.Property(e => e.ActivationTime).HasColumnType("datetime");
  4858. entity.Property(e => e.ActivityList)
  4859. .HasColumnType("varchar(200)")
  4860. .HasCharSet("utf8")
  4861. .HasCollation("utf8_general_ci");
  4862. entity.Property(e => e.BatchNo)
  4863. .HasColumnType("varchar(32)")
  4864. .HasCharSet("utf8")
  4865. .HasCollation("utf8_general_ci");
  4866. entity.Property(e => e.BindMerchantId).HasColumnType("int(11)");
  4867. entity.Property(e => e.BindingState).HasColumnType("int(11)");
  4868. entity.Property(e => e.BindingTime).HasColumnType("datetime");
  4869. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  4870. entity.Property(e => e.BuyUserId).HasColumnType("int(11)");
  4871. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4872. entity.Property(e => e.CreateMan)
  4873. .HasColumnType("varchar(50)")
  4874. .HasCharSet("utf8")
  4875. .HasCollation("utf8_general_ci");
  4876. entity.Property(e => e.CreditTrade).HasColumnType("decimal(18,2)");
  4877. entity.Property(e => e.DebitCardTrade).HasColumnType("decimal(18,2)");
  4878. entity.Property(e => e.Detail)
  4879. .HasColumnType("longtext")
  4880. .HasCharSet("utf8")
  4881. .HasCollation("utf8_general_ci");
  4882. entity.Property(e => e.DeviceKind)
  4883. .HasColumnType("varchar(32)")
  4884. .HasCharSet("utf8")
  4885. .HasCollation("utf8_general_ci");
  4886. entity.Property(e => e.DeviceName)
  4887. .HasColumnType("varchar(32)")
  4888. .HasCharSet("utf8")
  4889. .HasCollation("utf8_general_ci");
  4890. entity.Property(e => e.DeviceType)
  4891. .HasColumnType("varchar(20)")
  4892. .HasCharSet("utf8")
  4893. .HasCollation("utf8_general_ci");
  4894. entity.Property(e => e.IsPurchase)
  4895. .HasColumnType("bit(1)")
  4896. .HasDefaultValueSql("b'0'");
  4897. entity.Property(e => e.IsVip)
  4898. .HasColumnType("bit(1)")
  4899. .HasDefaultValueSql("b'0'");
  4900. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  4901. entity.Property(e => e.PosSn)
  4902. .HasColumnType("varchar(50)")
  4903. .HasCharSet("utf8")
  4904. .HasCollation("utf8_general_ci");
  4905. entity.Property(e => e.PosSnType).HasColumnType("int(11)");
  4906. entity.Property(e => e.PrizeParams)
  4907. .HasColumnType("varchar(200)")
  4908. .HasCharSet("utf8")
  4909. .HasCollation("utf8_general_ci");
  4910. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4911. entity.Property(e => e.RecycBackCount).HasColumnType("int(11)");
  4912. entity.Property(e => e.RecycEndDate).HasColumnType("datetime");
  4913. entity.Property(e => e.ScanQrTrade).HasColumnType("decimal(18,2)");
  4914. entity.Property(e => e.SeoDescription)
  4915. .HasColumnType("varchar(500)")
  4916. .HasCharSet("utf8")
  4917. .HasCollation("utf8_general_ci");
  4918. entity.Property(e => e.SeoKeyword)
  4919. .HasColumnType("varchar(200)")
  4920. .HasCharSet("utf8")
  4921. .HasCollation("utf8_general_ci");
  4922. entity.Property(e => e.SeoTitle)
  4923. .HasColumnType("varchar(100)")
  4924. .HasCharSet("utf8")
  4925. .HasCollation("utf8_general_ci");
  4926. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4927. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  4928. entity.Property(e => e.Status).HasColumnType("int(11)");
  4929. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  4930. entity.Property(e => e.TransferTime).HasColumnType("datetime");
  4931. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4932. entity.Property(e => e.UpdateMan)
  4933. .HasColumnType("varchar(50)")
  4934. .HasCharSet("utf8")
  4935. .HasCollation("utf8_general_ci");
  4936. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4937. entity.Property(e => e.UserNav)
  4938. .HasColumnType("longtext")
  4939. .HasCharSet("utf8")
  4940. .HasCollation("utf8_general_ci");
  4941. entity.Property(e => e.Version).HasColumnType("int(11)");
  4942. });
  4943. modelBuilder.Entity<PosMachinesTwo>(entity =>
  4944. {
  4945. entity.Property(e => e.Id).HasColumnType("int(11)");
  4946. entity.Property(e => e.ActivationState).HasColumnType("int(11)");
  4947. entity.Property(e => e.ActivationTime).HasColumnType("datetime");
  4948. entity.Property(e => e.ActivityList)
  4949. .HasColumnType("varchar(200)")
  4950. .HasCharSet("utf8")
  4951. .HasCollation("utf8_general_ci");
  4952. entity.Property(e => e.BatchNo)
  4953. .HasColumnType("varchar(32)")
  4954. .HasCharSet("utf8")
  4955. .HasCollation("utf8_general_ci");
  4956. entity.Property(e => e.BindMerchantId).HasColumnType("int(11)");
  4957. entity.Property(e => e.BindingState).HasColumnType("int(11)");
  4958. entity.Property(e => e.BindingTime).HasColumnType("datetime");
  4959. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  4960. entity.Property(e => e.BuyUserId).HasColumnType("int(11)");
  4961. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4962. entity.Property(e => e.CreditTrade).HasColumnType("decimal(18,2)");
  4963. entity.Property(e => e.DebitCardTrade).HasColumnType("decimal(18,2)");
  4964. entity.Property(e => e.Detail)
  4965. .HasColumnType("longtext")
  4966. .HasCharSet("utf8")
  4967. .HasCollation("utf8_general_ci");
  4968. entity.Property(e => e.DeviceKind)
  4969. .HasColumnType("varchar(32)")
  4970. .HasCharSet("utf8")
  4971. .HasCollation("utf8_general_ci");
  4972. entity.Property(e => e.DeviceName)
  4973. .HasColumnType("varchar(32)")
  4974. .HasCharSet("utf8")
  4975. .HasCollation("utf8_general_ci");
  4976. entity.Property(e => e.DeviceType)
  4977. .HasColumnType("varchar(20)")
  4978. .HasCharSet("utf8")
  4979. .HasCollation("utf8_general_ci");
  4980. entity.Property(e => e.IsFirst).HasColumnType("int(11)");
  4981. entity.Property(e => e.IsPurchase).HasColumnType("int(11)");
  4982. entity.Property(e => e.IsVip)
  4983. .HasColumnType("bit(1)")
  4984. .HasDefaultValueSql("b'0'");
  4985. entity.Property(e => e.LeaderUserId).HasColumnType("int(11)");
  4986. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  4987. entity.Property(e => e.PosSn)
  4988. .HasColumnType("varchar(50)")
  4989. .HasCharSet("utf8")
  4990. .HasCollation("utf8_general_ci");
  4991. entity.Property(e => e.PosSnType).HasColumnType("int(11)");
  4992. entity.Property(e => e.PreUserId).HasColumnType("int(11)");
  4993. entity.Property(e => e.PrizeParams)
  4994. .HasColumnType("varchar(200)")
  4995. .HasCharSet("utf8")
  4996. .HasCollation("utf8_general_ci");
  4997. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4998. entity.Property(e => e.RecycBackCount).HasColumnType("int(11)");
  4999. entity.Property(e => e.RecycEndDate).HasColumnType("datetime");
  5000. entity.Property(e => e.ScanQrTrade).HasColumnType("decimal(18,2)");
  5001. entity.Property(e => e.SeoDescription)
  5002. .HasColumnType("varchar(500)")
  5003. .HasCharSet("utf8")
  5004. .HasCollation("utf8_general_ci");
  5005. entity.Property(e => e.SeoKeyword)
  5006. .HasColumnType("varchar(200)")
  5007. .HasCharSet("utf8")
  5008. .HasCollation("utf8_general_ci");
  5009. entity.Property(e => e.SeoTitle)
  5010. .HasColumnType("varchar(100)")
  5011. .HasCharSet("utf8")
  5012. .HasCollation("utf8_general_ci");
  5013. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5014. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  5015. entity.Property(e => e.Status).HasColumnType("int(11)");
  5016. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  5017. entity.Property(e => e.TransferTime).HasColumnType("datetime");
  5018. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5019. entity.Property(e => e.UserId).HasColumnType("int(11)");
  5020. entity.Property(e => e.UserNav)
  5021. .HasColumnType("longtext")
  5022. .HasCharSet("utf8")
  5023. .HasCollation("utf8_general_ci");
  5024. });
  5025. modelBuilder.Entity<PosMerchantInfo>(entity =>
  5026. {
  5027. entity.Property(e => e.Id).HasColumnType("int(11)");
  5028. entity.Property(e => e.ActType).HasColumnType("int(11)");
  5029. entity.Property(e => e.ActTypeDesc)
  5030. .HasColumnType("varchar(64)")
  5031. .HasCharSet("utf8")
  5032. .HasCollation("utf8_general_ci");
  5033. entity.Property(e => e.ActiveStatus).HasColumnType("int(11)");
  5034. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  5035. entity.Property(e => e.City)
  5036. .HasColumnType("varchar(32)")
  5037. .HasCharSet("utf8")
  5038. .HasCollation("utf8_general_ci");
  5039. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5040. entity.Property(e => e.DirectUserId).HasColumnType("int(11)");
  5041. entity.Property(e => e.KqMerNo)
  5042. .HasColumnType("varchar(32)")
  5043. .HasCharSet("utf8")
  5044. .HasCollation("utf8_general_ci");
  5045. entity.Property(e => e.KqRegTime).HasColumnType("datetime");
  5046. entity.Property(e => e.KqSnNo)
  5047. .HasColumnType("varchar(32)")
  5048. .HasCharSet("utf8")
  5049. .HasCollation("utf8_general_ci");
  5050. entity.Property(e => e.MatchTime).HasColumnType("datetime");
  5051. entity.Property(e => e.MerIdcardNo)
  5052. .HasColumnType("varchar(18)")
  5053. .HasCharSet("utf8")
  5054. .HasCollation("utf8_general_ci");
  5055. entity.Property(e => e.MerRealName)
  5056. .HasColumnType("varchar(16)")
  5057. .HasCharSet("utf8")
  5058. .HasCollation("utf8_general_ci");
  5059. entity.Property(e => e.MerStandardDate).HasColumnType("datetime");
  5060. entity.Property(e => e.MerStatus).HasColumnType("int(11)");
  5061. entity.Property(e => e.MerUserId).HasColumnType("int(11)");
  5062. entity.Property(e => e.MerUserType).HasColumnType("int(11)");
  5063. entity.Property(e => e.MerchantMobile)
  5064. .HasColumnType("varchar(11)")
  5065. .HasCharSet("utf8")
  5066. .HasCollation("utf8_general_ci");
  5067. entity.Property(e => e.MerchantName)
  5068. .HasColumnType("varchar(32)")
  5069. .HasCharSet("utf8")
  5070. .HasCollation("utf8_general_ci");
  5071. entity.Property(e => e.MerchantNo)
  5072. .HasColumnType("varchar(16)")
  5073. .HasCharSet("utf8")
  5074. .HasCollation("utf8_general_ci");
  5075. entity.Property(e => e.MgrName)
  5076. .HasColumnType("varchar(32)")
  5077. .HasCharSet("utf8")
  5078. .HasCollation("utf8_general_ci");
  5079. entity.Property(e => e.MgrNo)
  5080. .HasColumnType("varchar(16)")
  5081. .HasCharSet("utf8")
  5082. .HasCollation("utf8_general_ci");
  5083. entity.Property(e => e.Province)
  5084. .HasColumnType("varchar(32)")
  5085. .HasCharSet("utf8")
  5086. .HasCollation("utf8_general_ci");
  5087. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5088. entity.Property(e => e.RebateQual).HasColumnType("int(11)");
  5089. entity.Property(e => e.Remark)
  5090. .HasColumnType("varchar(64)")
  5091. .HasCharSet("utf8")
  5092. .HasCollation("utf8_general_ci");
  5093. entity.Property(e => e.SeoDescription)
  5094. .HasColumnType("varchar(500)")
  5095. .HasCharSet("utf8")
  5096. .HasCollation("utf8_general_ci");
  5097. entity.Property(e => e.SeoKeyword)
  5098. .HasColumnType("varchar(200)")
  5099. .HasCharSet("utf8")
  5100. .HasCollation("utf8_general_ci");
  5101. entity.Property(e => e.SeoTitle)
  5102. .HasColumnType("varchar(100)")
  5103. .HasCharSet("utf8")
  5104. .HasCollation("utf8_general_ci");
  5105. entity.Property(e => e.SnApplyUserId).HasColumnType("int(11)");
  5106. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  5107. entity.Property(e => e.SnType).HasColumnType("int(11)");
  5108. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5109. entity.Property(e => e.Status).HasColumnType("int(11)");
  5110. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  5111. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5112. entity.Property(e => e.UserId).HasColumnType("int(11)");
  5113. });
  5114. modelBuilder.Entity<PosMerchantOtherInfo>(entity =>
  5115. {
  5116. entity.HasKey(e => e.CertId)
  5117. .HasName("PRIMARY");
  5118. entity.Property(e => e.CertId)
  5119. .HasColumnType("varchar(18)")
  5120. .HasCharSet("utf8")
  5121. .HasCollation("utf8_general_ci");
  5122. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  5123. entity.Property(e => e.MerNo)
  5124. .HasColumnType("varchar(50)")
  5125. .HasCharSet("utf8")
  5126. .HasCollation("utf8_general_ci");
  5127. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5128. entity.Property(e => e.PrizeFlag1).HasColumnType("int(11)");
  5129. entity.Property(e => e.PrizeFlag2).HasColumnType("int(11)");
  5130. entity.Property(e => e.PrizeFlag3).HasColumnType("int(11)");
  5131. entity.Property(e => e.PrizeFlag4).HasColumnType("int(11)");
  5132. entity.Property(e => e.RealName)
  5133. .HasColumnType("varchar(30)")
  5134. .HasCharSet("utf8")
  5135. .HasCollation("utf8_general_ci");
  5136. });
  5137. modelBuilder.Entity<PosMerchantTradeSummay>(entity =>
  5138. {
  5139. entity.Property(e => e.Id).HasColumnType("int(11)");
  5140. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  5141. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5142. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5143. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5144. entity.Property(e => e.SeoDescription)
  5145. .HasColumnType("varchar(500)")
  5146. .HasCharSet("utf8")
  5147. .HasCollation("utf8_general_ci");
  5148. entity.Property(e => e.SeoKeyword)
  5149. .HasColumnType("varchar(200)")
  5150. .HasCharSet("utf8")
  5151. .HasCollation("utf8_general_ci");
  5152. entity.Property(e => e.SeoTitle)
  5153. .HasColumnType("varchar(100)")
  5154. .HasCharSet("utf8")
  5155. .HasCollation("utf8_general_ci");
  5156. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5157. entity.Property(e => e.Status).HasColumnType("int(11)");
  5158. entity.Property(e => e.TradeAmount).HasColumnType("decimal(18,2)");
  5159. entity.Property(e => e.TradeDate)
  5160. .HasColumnType("varchar(8)")
  5161. .HasCharSet("utf8")
  5162. .HasCollation("utf8_general_ci");
  5163. entity.Property(e => e.TradeMonth)
  5164. .HasColumnType("varchar(6)")
  5165. .HasCharSet("utf8")
  5166. .HasCollation("utf8_general_ci");
  5167. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5168. });
  5169. modelBuilder.Entity<PreSendStockDetail>(entity =>
  5170. {
  5171. entity.Property(e => e.Id).HasColumnType("int(11)");
  5172. entity.Property(e => e.ApplyDate).HasColumnType("datetime");
  5173. entity.Property(e => e.ApplyFlag)
  5174. .HasColumnType("bit(1)")
  5175. .HasDefaultValueSql("b'0'");
  5176. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  5177. entity.Property(e => e.CancelDate).HasColumnType("datetime");
  5178. entity.Property(e => e.CancelFlag)
  5179. .HasColumnType("bit(1)")
  5180. .HasDefaultValueSql("b'0'");
  5181. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5182. entity.Property(e => e.FromStoreId).HasColumnType("int(11)");
  5183. entity.Property(e => e.FromUserId).HasColumnType("int(11)");
  5184. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5185. entity.Property(e => e.SeoDescription)
  5186. .HasColumnType("varchar(500)")
  5187. .HasCharSet("utf8")
  5188. .HasCollation("utf8_general_ci");
  5189. entity.Property(e => e.SeoKeyword)
  5190. .HasColumnType("varchar(200)")
  5191. .HasCharSet("utf8")
  5192. .HasCollation("utf8_general_ci");
  5193. entity.Property(e => e.SeoTitle)
  5194. .HasColumnType("varchar(100)")
  5195. .HasCharSet("utf8")
  5196. .HasCollation("utf8_general_ci");
  5197. entity.Property(e => e.SnId).HasColumnType("int(11)");
  5198. entity.Property(e => e.SnNo)
  5199. .HasColumnType("varchar(32)")
  5200. .HasCharSet("utf8")
  5201. .HasCollation("utf8_general_ci");
  5202. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5203. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  5204. entity.Property(e => e.Status).HasColumnType("int(11)");
  5205. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  5206. entity.Property(e => e.ToRemark)
  5207. .HasColumnType("varchar(64)")
  5208. .HasCharSet("utf8")
  5209. .HasCollation("utf8_general_ci");
  5210. entity.Property(e => e.ToStoreId).HasColumnType("int(11)");
  5211. entity.Property(e => e.ToUserId).HasColumnType("int(11)");
  5212. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5213. });
  5214. modelBuilder.Entity<ProductComment>(entity =>
  5215. {
  5216. entity.Property(e => e.Id).HasColumnType("int(11)");
  5217. entity.Property(e => e.AgreeCount).HasColumnType("int(11)");
  5218. entity.Property(e => e.BackCount).HasColumnType("int(11)");
  5219. entity.Property(e => e.Contents)
  5220. .HasColumnType("varchar(200)")
  5221. .HasCharSet("utf8")
  5222. .HasCollation("utf8_general_ci");
  5223. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5224. entity.Property(e => e.CreateMan)
  5225. .HasColumnType("varchar(50)")
  5226. .HasCharSet("utf8")
  5227. .HasCollation("utf8_general_ci");
  5228. entity.Property(e => e.HasPhoto)
  5229. .HasColumnType("bit(1)")
  5230. .HasDefaultValueSql("b'0'");
  5231. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5232. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  5233. entity.Property(e => e.PhotoList)
  5234. .HasColumnType("mediumtext")
  5235. .HasCharSet("utf8")
  5236. .HasCollation("utf8_general_ci");
  5237. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  5238. entity.Property(e => e.ProductNormId).HasColumnType("int(11)");
  5239. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5240. entity.Property(e => e.SeoDescription)
  5241. .HasColumnType("varchar(500)")
  5242. .HasCharSet("utf8")
  5243. .HasCollation("utf8_general_ci");
  5244. entity.Property(e => e.SeoKeyword)
  5245. .HasColumnType("varchar(200)")
  5246. .HasCharSet("utf8")
  5247. .HasCollation("utf8_general_ci");
  5248. entity.Property(e => e.SeoTitle)
  5249. .HasColumnType("varchar(100)")
  5250. .HasCharSet("utf8")
  5251. .HasCollation("utf8_general_ci");
  5252. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5253. entity.Property(e => e.StarNum).HasColumnType("int(11)");
  5254. entity.Property(e => e.Status).HasColumnType("int(11)");
  5255. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5256. entity.Property(e => e.UpdateMan)
  5257. .HasColumnType("varchar(50)")
  5258. .HasCharSet("utf8")
  5259. .HasCollation("utf8_general_ci");
  5260. entity.Property(e => e.UserId).HasColumnType("int(11)");
  5261. entity.Property(e => e.Version).HasColumnType("int(11)");
  5262. });
  5263. modelBuilder.Entity<ProductCommentAgree>(entity =>
  5264. {
  5265. entity.Property(e => e.Id).HasColumnType("int(11)");
  5266. entity.Property(e => e.ProductCommentId).HasColumnType("int(11)");
  5267. entity.Property(e => e.UserId).HasColumnType("int(11)");
  5268. });
  5269. modelBuilder.Entity<ProductFareAreas>(entity =>
  5270. {
  5271. entity.Property(e => e.Id).HasColumnType("int(11)");
  5272. entity.Property(e => e.Areas)
  5273. .HasColumnType("longtext")
  5274. .HasCharSet("utf8")
  5275. .HasCollation("utf8_general_ci");
  5276. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5277. entity.Property(e => e.CreateMan)
  5278. .HasColumnType("varchar(50)")
  5279. .HasCharSet("utf8")
  5280. .HasCollation("utf8_general_ci");
  5281. entity.Property(e => e.FirstAmount).HasColumnType("decimal(18,2)");
  5282. entity.Property(e => e.FirstFee).HasColumnType("decimal(18,2)");
  5283. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5284. entity.Property(e => e.MoreAmount).HasColumnType("decimal(18,2)");
  5285. entity.Property(e => e.MoreFee).HasColumnType("decimal(18,2)");
  5286. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5287. entity.Property(e => e.SeoDescription)
  5288. .HasColumnType("varchar(500)")
  5289. .HasCharSet("utf8")
  5290. .HasCollation("utf8_general_ci");
  5291. entity.Property(e => e.SeoKeyword)
  5292. .HasColumnType("varchar(200)")
  5293. .HasCharSet("utf8")
  5294. .HasCollation("utf8_general_ci");
  5295. entity.Property(e => e.SeoTitle)
  5296. .HasColumnType("varchar(100)")
  5297. .HasCharSet("utf8")
  5298. .HasCollation("utf8_general_ci");
  5299. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5300. entity.Property(e => e.Status).HasColumnType("int(11)");
  5301. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  5302. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5303. entity.Property(e => e.UpdateMan)
  5304. .HasColumnType("varchar(50)")
  5305. .HasCharSet("utf8")
  5306. .HasCollation("utf8_general_ci");
  5307. entity.Property(e => e.Version).HasColumnType("int(11)");
  5308. });
  5309. modelBuilder.Entity<ProductFareTemp>(entity =>
  5310. {
  5311. entity.Property(e => e.Id).HasColumnType("int(11)");
  5312. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5313. entity.Property(e => e.CreateMan)
  5314. .HasColumnType("varchar(50)")
  5315. .HasCharSet("utf8")
  5316. .HasCollation("utf8_general_ci");
  5317. entity.Property(e => e.FirstAmount).HasColumnType("decimal(18,2)");
  5318. entity.Property(e => e.FirstFee).HasColumnType("decimal(18,2)");
  5319. entity.Property(e => e.IsFree)
  5320. .HasColumnType("bit(1)")
  5321. .HasDefaultValueSql("b'0'");
  5322. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5323. entity.Property(e => e.MeterMode).HasColumnType("int(11)");
  5324. entity.Property(e => e.MoreAmount).HasColumnType("decimal(18,2)");
  5325. entity.Property(e => e.MoreFee).HasColumnType("decimal(18,2)");
  5326. entity.Property(e => e.Name)
  5327. .HasColumnType("varchar(50)")
  5328. .HasCharSet("utf8")
  5329. .HasCollation("utf8_general_ci");
  5330. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5331. entity.Property(e => e.SendAddress)
  5332. .HasColumnType("varchar(50)")
  5333. .HasCharSet("utf8")
  5334. .HasCollation("utf8_general_ci");
  5335. entity.Property(e => e.SendAreas)
  5336. .HasColumnType("varchar(30)")
  5337. .HasCharSet("utf8")
  5338. .HasCollation("utf8_general_ci");
  5339. entity.Property(e => e.SendDate).HasColumnType("int(11)");
  5340. entity.Property(e => e.SeoDescription)
  5341. .HasColumnType("varchar(500)")
  5342. .HasCharSet("utf8")
  5343. .HasCollation("utf8_general_ci");
  5344. entity.Property(e => e.SeoKeyword)
  5345. .HasColumnType("varchar(200)")
  5346. .HasCharSet("utf8")
  5347. .HasCollation("utf8_general_ci");
  5348. entity.Property(e => e.SeoTitle)
  5349. .HasColumnType("varchar(100)")
  5350. .HasCharSet("utf8")
  5351. .HasCollation("utf8_general_ci");
  5352. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5353. entity.Property(e => e.Status).HasColumnType("int(11)");
  5354. entity.Property(e => e.TransportMode).HasColumnType("int(11)");
  5355. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5356. entity.Property(e => e.UpdateMan)
  5357. .HasColumnType("varchar(50)")
  5358. .HasCharSet("utf8")
  5359. .HasCollation("utf8_general_ci");
  5360. entity.Property(e => e.Version).HasColumnType("int(11)");
  5361. });
  5362. modelBuilder.Entity<ProductKeys>(entity =>
  5363. {
  5364. entity.HasKey(e => e.Name)
  5365. .HasName("PRIMARY");
  5366. entity.Property(e => e.Name)
  5367. .HasColumnType("varchar(10)")
  5368. .HasCharSet("utf8")
  5369. .HasCollation("utf8_general_ci");
  5370. entity.Property(e => e.ColIds)
  5371. .HasColumnType("longtext")
  5372. .HasCharSet("utf8")
  5373. .HasCollation("utf8_general_ci");
  5374. entity.Property(e => e.ProductIds)
  5375. .HasColumnType("longtext")
  5376. .HasCharSet("utf8")
  5377. .HasCollation("utf8_general_ci");
  5378. });
  5379. modelBuilder.Entity<ProductNorm>(entity =>
  5380. {
  5381. entity.Property(e => e.Id).HasColumnType("int(11)");
  5382. entity.Property(e => e.BuyCount).HasColumnType("int(11)");
  5383. entity.Property(e => e.Code)
  5384. .HasColumnType("varchar(50)")
  5385. .HasCharSet("utf8")
  5386. .HasCollation("utf8_general_ci");
  5387. entity.Property(e => e.ColName)
  5388. .HasColumnType("varchar(50)")
  5389. .HasCharSet("utf8")
  5390. .HasCollation("utf8_general_ci");
  5391. entity.Property(e => e.CostPrice).HasColumnType("decimal(18,2)");
  5392. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5393. entity.Property(e => e.CreateMan)
  5394. .HasColumnType("varchar(50)")
  5395. .HasCharSet("utf8")
  5396. .HasCollation("utf8_general_ci");
  5397. entity.Property(e => e.IdList)
  5398. .HasColumnType("varchar(50)")
  5399. .HasCharSet("utf8")
  5400. .HasCollation("utf8_general_ci");
  5401. entity.Property(e => e.Integral).HasColumnType("decimal(18,2)");
  5402. entity.Property(e => e.LimitCount).HasColumnType("int(11)");
  5403. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5404. entity.Property(e => e.Price).HasColumnType("decimal(18,2)");
  5405. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  5406. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5407. entity.Property(e => e.SeoDescription)
  5408. .HasColumnType("varchar(500)")
  5409. .HasCharSet("utf8")
  5410. .HasCollation("utf8_general_ci");
  5411. entity.Property(e => e.SeoKeyword)
  5412. .HasColumnType("varchar(200)")
  5413. .HasCharSet("utf8")
  5414. .HasCollation("utf8_general_ci");
  5415. entity.Property(e => e.SeoTitle)
  5416. .HasColumnType("varchar(100)")
  5417. .HasCharSet("utf8")
  5418. .HasCollation("utf8_general_ci");
  5419. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5420. entity.Property(e => e.Status).HasColumnType("int(11)");
  5421. entity.Property(e => e.Stock).HasColumnType("int(11)");
  5422. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5423. entity.Property(e => e.UpdateMan)
  5424. .HasColumnType("varchar(50)")
  5425. .HasCharSet("utf8")
  5426. .HasCollation("utf8_general_ci");
  5427. entity.Property(e => e.UserIntegral).HasColumnType("decimal(18,2)");
  5428. entity.Property(e => e.UserPrice).HasColumnType("decimal(18,2)");
  5429. entity.Property(e => e.Version).HasColumnType("int(11)");
  5430. });
  5431. modelBuilder.Entity<ProductNormItem>(entity =>
  5432. {
  5433. entity.Property(e => e.Id).HasColumnType("int(11)");
  5434. entity.Property(e => e.ColName)
  5435. .HasColumnType("varchar(50)")
  5436. .HasCharSet("utf8")
  5437. .HasCollation("utf8_general_ci");
  5438. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5439. entity.Property(e => e.CreateMan)
  5440. .HasColumnType("varchar(50)")
  5441. .HasCharSet("utf8")
  5442. .HasCollation("utf8_general_ci");
  5443. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5444. entity.Property(e => e.ParentId).HasColumnType("int(11)");
  5445. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  5446. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5447. entity.Property(e => e.SeoDescription)
  5448. .HasColumnType("varchar(500)")
  5449. .HasCharSet("utf8")
  5450. .HasCollation("utf8_general_ci");
  5451. entity.Property(e => e.SeoKeyword)
  5452. .HasColumnType("varchar(200)")
  5453. .HasCharSet("utf8")
  5454. .HasCollation("utf8_general_ci");
  5455. entity.Property(e => e.SeoTitle)
  5456. .HasColumnType("varchar(100)")
  5457. .HasCharSet("utf8")
  5458. .HasCollation("utf8_general_ci");
  5459. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5460. entity.Property(e => e.Status).HasColumnType("int(11)");
  5461. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5462. entity.Property(e => e.UpdateMan)
  5463. .HasColumnType("varchar(50)")
  5464. .HasCharSet("utf8")
  5465. .HasCollation("utf8_general_ci");
  5466. entity.Property(e => e.Version).HasColumnType("int(11)");
  5467. });
  5468. modelBuilder.Entity<ProductNormTemp>(entity =>
  5469. {
  5470. entity.Property(e => e.Id).HasColumnType("int(11)");
  5471. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5472. entity.Property(e => e.CreateMan)
  5473. .HasColumnType("varchar(50)")
  5474. .HasCharSet("utf8")
  5475. .HasCollation("utf8_general_ci");
  5476. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5477. entity.Property(e => e.Name)
  5478. .HasColumnType("varchar(50)")
  5479. .HasCharSet("utf8")
  5480. .HasCollation("utf8_general_ci");
  5481. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5482. entity.Property(e => e.SeoDescription)
  5483. .HasColumnType("varchar(500)")
  5484. .HasCharSet("utf8")
  5485. .HasCollation("utf8_general_ci");
  5486. entity.Property(e => e.SeoKeyword)
  5487. .HasColumnType("varchar(200)")
  5488. .HasCharSet("utf8")
  5489. .HasCollation("utf8_general_ci");
  5490. entity.Property(e => e.SeoTitle)
  5491. .HasColumnType("varchar(100)")
  5492. .HasCharSet("utf8")
  5493. .HasCollation("utf8_general_ci");
  5494. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5495. entity.Property(e => e.Status).HasColumnType("int(11)");
  5496. entity.Property(e => e.TempJsonData)
  5497. .HasColumnType("longtext")
  5498. .HasCharSet("utf8")
  5499. .HasCollation("utf8_general_ci");
  5500. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5501. entity.Property(e => e.UpdateMan)
  5502. .HasColumnType("varchar(50)")
  5503. .HasCharSet("utf8")
  5504. .HasCollation("utf8_general_ci");
  5505. entity.Property(e => e.Version).HasColumnType("int(11)");
  5506. });
  5507. modelBuilder.Entity<Products>(entity =>
  5508. {
  5509. entity.Property(e => e.Id).HasColumnType("int(11)");
  5510. entity.Property(e => e.BuyCount).HasColumnType("int(11)");
  5511. entity.Property(e => e.ColId)
  5512. .HasColumnType("varchar(30)")
  5513. .HasCharSet("utf8")
  5514. .HasCollation("utf8_general_ci");
  5515. entity.Property(e => e.CommentCount).HasColumnType("int(11)");
  5516. entity.Property(e => e.Contents)
  5517. .HasColumnType("longtext")
  5518. .HasCharSet("utf8")
  5519. .HasCollation("utf8_general_ci");
  5520. entity.Property(e => e.CostPrice).HasColumnType("decimal(18,2)");
  5521. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5522. entity.Property(e => e.CreateMan)
  5523. .HasColumnType("varchar(50)")
  5524. .HasCharSet("utf8")
  5525. .HasCollation("utf8_general_ci");
  5526. entity.Property(e => e.DetailPicPath)
  5527. .HasColumnType("varchar(500)")
  5528. .HasCharSet("utf8")
  5529. .HasCollation("utf8_general_ci");
  5530. entity.Property(e => e.Details)
  5531. .HasColumnType("longtext")
  5532. .HasCharSet("utf8")
  5533. .HasCollation("utf8_general_ci");
  5534. entity.Property(e => e.EndDate).HasColumnType("datetime");
  5535. entity.Property(e => e.FareTemplateId).HasColumnType("int(11)");
  5536. entity.Property(e => e.GoodPercent).HasColumnType("decimal(18,2)");
  5537. entity.Property(e => e.Integral).HasColumnType("decimal(18,2)");
  5538. entity.Property(e => e.IsLimit)
  5539. .HasColumnType("bit(1)")
  5540. .HasDefaultValueSql("b'0'");
  5541. entity.Property(e => e.IsRecommend)
  5542. .HasColumnType("bit(1)")
  5543. .HasDefaultValueSql("b'0'");
  5544. entity.Property(e => e.IsRecommend2)
  5545. .HasColumnType("bit(1)")
  5546. .HasDefaultValueSql("b'0'");
  5547. entity.Property(e => e.IsRecommend3)
  5548. .HasColumnType("bit(1)")
  5549. .HasDefaultValueSql("b'0'");
  5550. entity.Property(e => e.KeyWord)
  5551. .HasColumnType("varchar(500)")
  5552. .HasCharSet("utf8")
  5553. .HasCollation("utf8_general_ci");
  5554. entity.Property(e => e.LimitCount).HasColumnType("int(11)");
  5555. entity.Property(e => e.LinkUrl)
  5556. .HasColumnType("varchar(500)")
  5557. .HasCharSet("utf8")
  5558. .HasCollation("utf8_general_ci");
  5559. entity.Property(e => e.ListPicPath)
  5560. .HasColumnType("varchar(200)")
  5561. .HasCharSet("utf8")
  5562. .HasCollation("utf8_general_ci");
  5563. entity.Property(e => e.MemberPrice).HasColumnType("decimal(18,2)");
  5564. entity.Property(e => e.MerchantClassId).HasColumnType("int(11)");
  5565. entity.Property(e => e.MerchantColId)
  5566. .HasColumnType("varchar(30)")
  5567. .HasCharSet("utf8")
  5568. .HasCollation("utf8_general_ci");
  5569. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5570. entity.Property(e => e.MonthSale).HasColumnType("int(11)");
  5571. entity.Property(e => e.NormIds)
  5572. .HasColumnType("varchar(100)")
  5573. .HasCharSet("utf8")
  5574. .HasCollation("utf8_general_ci");
  5575. entity.Property(e => e.NormJson)
  5576. .HasColumnType("longtext")
  5577. .HasCharSet("utf8")
  5578. .HasCollation("utf8_general_ci");
  5579. entity.Property(e => e.Price).HasColumnType("decimal(18,2)");
  5580. entity.Property(e => e.ProductCode)
  5581. .HasColumnType("varchar(30)")
  5582. .HasCharSet("utf8")
  5583. .HasCollation("utf8_general_ci");
  5584. entity.Property(e => e.ProductName)
  5585. .HasColumnType("varchar(100)")
  5586. .HasCharSet("utf8")
  5587. .HasCollation("utf8_general_ci");
  5588. entity.Property(e => e.PublishDate).HasColumnType("datetime");
  5589. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5590. entity.Property(e => e.SeoDescription)
  5591. .HasColumnType("varchar(500)")
  5592. .HasCharSet("utf8")
  5593. .HasCollation("utf8_general_ci");
  5594. entity.Property(e => e.SeoKeyword)
  5595. .HasColumnType("varchar(200)")
  5596. .HasCharSet("utf8")
  5597. .HasCollation("utf8_general_ci");
  5598. entity.Property(e => e.SeoTitle)
  5599. .HasColumnType("varchar(100)")
  5600. .HasCharSet("utf8")
  5601. .HasCollation("utf8_general_ci");
  5602. entity.Property(e => e.ShareDetail)
  5603. .HasColumnType("varchar(200)")
  5604. .HasCharSet("utf8")
  5605. .HasCollation("utf8_general_ci");
  5606. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5607. entity.Property(e => e.SourcePrice).HasColumnType("decimal(18,2)");
  5608. entity.Property(e => e.StartDate).HasColumnType("datetime");
  5609. entity.Property(e => e.Status).HasColumnType("int(11)");
  5610. entity.Property(e => e.Stock).HasColumnType("int(11)");
  5611. entity.Property(e => e.Title)
  5612. .HasColumnType("varchar(50)")
  5613. .HasCharSet("utf8")
  5614. .HasCollation("utf8_general_ci");
  5615. entity.Property(e => e.Title2)
  5616. .HasColumnType("varchar(50)")
  5617. .HasCharSet("utf8")
  5618. .HasCollation("utf8_general_ci");
  5619. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5620. entity.Property(e => e.UpdateMan)
  5621. .HasColumnType("varchar(50)")
  5622. .HasCharSet("utf8")
  5623. .HasCollation("utf8_general_ci");
  5624. entity.Property(e => e.UserIntegral).HasColumnType("decimal(18,2)");
  5625. entity.Property(e => e.Version).HasColumnType("int(11)");
  5626. });
  5627. modelBuilder.Entity<ProfitObjectActivations>(entity =>
  5628. {
  5629. entity.Property(e => e.Id).HasColumnType("int(11)");
  5630. entity.Property(e => e.Code)
  5631. .HasColumnType("varchar(32)")
  5632. .HasCharSet("utf8")
  5633. .HasCollation("utf8_general_ci");
  5634. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5635. entity.Property(e => e.CreateMan)
  5636. .HasColumnType("varchar(50)")
  5637. .HasCharSet("utf8")
  5638. .HasCollation("utf8_general_ci");
  5639. entity.Property(e => e.EndDate).HasColumnType("datetime");
  5640. entity.Property(e => e.ExpiredNumber).HasColumnType("decimal(18,6)");
  5641. entity.Property(e => e.LimitCustomerDate).HasColumnType("datetime");
  5642. entity.Property(e => e.LimitDateKind).HasColumnType("int(11)");
  5643. entity.Property(e => e.LimitDateVal).HasColumnType("int(11)");
  5644. entity.Property(e => e.MachineCount).HasColumnType("int(11)");
  5645. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5646. entity.Property(e => e.ProfitNumber).HasColumnType("decimal(18,6)");
  5647. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5648. entity.Property(e => e.SeoDescription)
  5649. .HasColumnType("varchar(500)")
  5650. .HasCharSet("utf8")
  5651. .HasCollation("utf8_general_ci");
  5652. entity.Property(e => e.SeoKeyword)
  5653. .HasColumnType("varchar(200)")
  5654. .HasCharSet("utf8")
  5655. .HasCollation("utf8_general_ci");
  5656. entity.Property(e => e.SeoTitle)
  5657. .HasColumnType("varchar(100)")
  5658. .HasCharSet("utf8")
  5659. .HasCollation("utf8_general_ci");
  5660. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5661. entity.Property(e => e.StartDate).HasColumnType("datetime");
  5662. entity.Property(e => e.Status).HasColumnType("int(11)");
  5663. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5664. entity.Property(e => e.UpdateMan)
  5665. .HasColumnType("varchar(50)")
  5666. .HasCharSet("utf8")
  5667. .HasCollation("utf8_general_ci");
  5668. entity.Property(e => e.Version).HasColumnType("int(11)");
  5669. });
  5670. modelBuilder.Entity<ProfitObjectContinueFloors>(entity =>
  5671. {
  5672. entity.Property(e => e.Id).HasColumnType("int(11)");
  5673. entity.Property(e => e.AddProfitVal).HasColumnType("decimal(18,6)");
  5674. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5675. entity.Property(e => e.CreateMan)
  5676. .HasColumnType("varchar(50)")
  5677. .HasCharSet("utf8")
  5678. .HasCollation("utf8_general_ci");
  5679. entity.Property(e => e.FloorNumber).HasColumnType("int(11)");
  5680. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5681. entity.Property(e => e.Percents).HasColumnType("decimal(18,6)");
  5682. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5683. entity.Property(e => e.SeoDescription)
  5684. .HasColumnType("varchar(500)")
  5685. .HasCharSet("utf8")
  5686. .HasCollation("utf8_general_ci");
  5687. entity.Property(e => e.SeoKeyword)
  5688. .HasColumnType("varchar(200)")
  5689. .HasCharSet("utf8")
  5690. .HasCollation("utf8_general_ci");
  5691. entity.Property(e => e.SeoTitle)
  5692. .HasColumnType("varchar(100)")
  5693. .HasCharSet("utf8")
  5694. .HasCollation("utf8_general_ci");
  5695. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5696. entity.Property(e => e.Status).HasColumnType("int(11)");
  5697. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5698. entity.Property(e => e.UpdateMan)
  5699. .HasColumnType("varchar(50)")
  5700. .HasCharSet("utf8")
  5701. .HasCollation("utf8_general_ci");
  5702. entity.Property(e => e.Version).HasColumnType("int(11)");
  5703. });
  5704. modelBuilder.Entity<ProfitObjectFloors>(entity =>
  5705. {
  5706. entity.Property(e => e.Id).HasColumnType("int(11)");
  5707. entity.Property(e => e.AddProfitVal).HasColumnType("decimal(18,6)");
  5708. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5709. entity.Property(e => e.CreateMan)
  5710. .HasColumnType("varchar(50)")
  5711. .HasCharSet("utf8")
  5712. .HasCollation("utf8_general_ci");
  5713. entity.Property(e => e.FloorDiff)
  5714. .HasColumnType("bit(1)")
  5715. .HasDefaultValueSql("b'0'");
  5716. entity.Property(e => e.FloorNumber).HasColumnType("int(11)");
  5717. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5718. entity.Property(e => e.Percents).HasColumnType("decimal(18,6)");
  5719. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5720. entity.Property(e => e.SeoDescription)
  5721. .HasColumnType("varchar(500)")
  5722. .HasCharSet("utf8")
  5723. .HasCollation("utf8_general_ci");
  5724. entity.Property(e => e.SeoKeyword)
  5725. .HasColumnType("varchar(200)")
  5726. .HasCharSet("utf8")
  5727. .HasCollation("utf8_general_ci");
  5728. entity.Property(e => e.SeoTitle)
  5729. .HasColumnType("varchar(100)")
  5730. .HasCharSet("utf8")
  5731. .HasCollation("utf8_general_ci");
  5732. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5733. entity.Property(e => e.Status).HasColumnType("int(11)");
  5734. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5735. entity.Property(e => e.UpdateMan)
  5736. .HasColumnType("varchar(50)")
  5737. .HasCharSet("utf8")
  5738. .HasCollation("utf8_general_ci");
  5739. entity.Property(e => e.Version).HasColumnType("int(11)");
  5740. });
  5741. modelBuilder.Entity<ProfitObjectLevelKinds>(entity =>
  5742. {
  5743. entity.Property(e => e.Id).HasColumnType("int(11)");
  5744. entity.Property(e => e.BankCardType).HasColumnType("int(11)");
  5745. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5746. entity.Property(e => e.CreateMan)
  5747. .HasColumnType("varchar(50)")
  5748. .HasCharSet("utf8")
  5749. .HasCollation("utf8_general_ci");
  5750. entity.Property(e => e.IsHelp)
  5751. .HasColumnType("bit(1)")
  5752. .HasDefaultValueSql("b'0'");
  5753. entity.Property(e => e.Name)
  5754. .HasColumnType("varchar(50)")
  5755. .HasCharSet("utf8")
  5756. .HasCollation("utf8_general_ci");
  5757. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5758. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5759. entity.Property(e => e.SeoDescription)
  5760. .HasColumnType("varchar(500)")
  5761. .HasCharSet("utf8")
  5762. .HasCollation("utf8_general_ci");
  5763. entity.Property(e => e.SeoKeyword)
  5764. .HasColumnType("varchar(200)")
  5765. .HasCharSet("utf8")
  5766. .HasCollation("utf8_general_ci");
  5767. entity.Property(e => e.SeoTitle)
  5768. .HasColumnType("varchar(100)")
  5769. .HasCharSet("utf8")
  5770. .HasCollation("utf8_general_ci");
  5771. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5772. entity.Property(e => e.Status).HasColumnType("int(11)");
  5773. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5774. entity.Property(e => e.UpdateMan)
  5775. .HasColumnType("varchar(50)")
  5776. .HasCharSet("utf8")
  5777. .HasCollation("utf8_general_ci");
  5778. entity.Property(e => e.Version).HasColumnType("int(11)");
  5779. });
  5780. modelBuilder.Entity<ProfitObjectLevels>(entity =>
  5781. {
  5782. entity.Property(e => e.Id).HasColumnType("int(11)");
  5783. entity.Property(e => e.AddProfitVal).HasColumnType("decimal(18,6)");
  5784. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5785. entity.Property(e => e.CreateMan)
  5786. .HasColumnType("varchar(50)")
  5787. .HasCharSet("utf8")
  5788. .HasCollation("utf8_general_ci");
  5789. entity.Property(e => e.DebitAddProfitVal).HasColumnType("decimal(18,2)");
  5790. entity.Property(e => e.DebitPercents).HasColumnType("decimal(18,2)");
  5791. entity.Property(e => e.KindId).HasColumnType("int(11)");
  5792. entity.Property(e => e.LevelDiff)
  5793. .HasColumnType("bit(1)")
  5794. .HasDefaultValueSql("b'0'");
  5795. entity.Property(e => e.LevelNumber).HasColumnType("int(11)");
  5796. entity.Property(e => e.Name)
  5797. .HasColumnType("varchar(50)")
  5798. .HasCharSet("utf8")
  5799. .HasCollation("utf8_general_ci");
  5800. entity.Property(e => e.Percents).HasColumnType("decimal(18,6)");
  5801. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5802. entity.Property(e => e.SeoDescription)
  5803. .HasColumnType("varchar(500)")
  5804. .HasCharSet("utf8")
  5805. .HasCollation("utf8_general_ci");
  5806. entity.Property(e => e.SeoKeyword)
  5807. .HasColumnType("varchar(200)")
  5808. .HasCharSet("utf8")
  5809. .HasCollation("utf8_general_ci");
  5810. entity.Property(e => e.SeoTitle)
  5811. .HasColumnType("varchar(100)")
  5812. .HasCharSet("utf8")
  5813. .HasCollation("utf8_general_ci");
  5814. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5815. entity.Property(e => e.Status).HasColumnType("int(11)");
  5816. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5817. entity.Property(e => e.UpdateMan)
  5818. .HasColumnType("varchar(50)")
  5819. .HasCharSet("utf8")
  5820. .HasCollation("utf8_general_ci");
  5821. entity.Property(e => e.Version).HasColumnType("int(11)");
  5822. });
  5823. modelBuilder.Entity<ProfitObjects>(entity =>
  5824. {
  5825. entity.Property(e => e.Id).HasColumnType("int(11)");
  5826. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5827. entity.Property(e => e.CreateMan)
  5828. .HasColumnType("varchar(50)")
  5829. .HasCharSet("utf8")
  5830. .HasCollation("utf8_general_ci");
  5831. entity.Property(e => e.EndDate).HasColumnType("datetime");
  5832. entity.Property(e => e.MaxFloor).HasColumnType("int(11)");
  5833. entity.Property(e => e.MaxLevel).HasColumnType("int(11)");
  5834. entity.Property(e => e.MaxLevelContinue)
  5835. .HasColumnType("bit(1)")
  5836. .HasDefaultValueSql("b'0'");
  5837. entity.Property(e => e.MinProfitVal).HasColumnType("decimal(18,5)");
  5838. entity.Property(e => e.Name)
  5839. .HasColumnType("varchar(50)")
  5840. .HasCharSet("utf8")
  5841. .HasCollation("utf8_general_ci");
  5842. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5843. entity.Property(e => e.SeoDescription)
  5844. .HasColumnType("varchar(500)")
  5845. .HasCharSet("utf8")
  5846. .HasCollation("utf8_general_ci");
  5847. entity.Property(e => e.SeoKeyword)
  5848. .HasColumnType("varchar(200)")
  5849. .HasCharSet("utf8")
  5850. .HasCollation("utf8_general_ci");
  5851. entity.Property(e => e.SeoTitle)
  5852. .HasColumnType("varchar(100)")
  5853. .HasCharSet("utf8")
  5854. .HasCollation("utf8_general_ci");
  5855. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5856. entity.Property(e => e.StartDate).HasColumnType("datetime");
  5857. entity.Property(e => e.Status).HasColumnType("int(11)");
  5858. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5859. entity.Property(e => e.UpdateMan)
  5860. .HasColumnType("varchar(50)")
  5861. .HasCharSet("utf8")
  5862. .HasCollation("utf8_general_ci");
  5863. entity.Property(e => e.Version).HasColumnType("int(11)");
  5864. });
  5865. modelBuilder.Entity<ProfitObjectsActiveCheck>(entity =>
  5866. {
  5867. entity.HasKey(e => e.CheckData)
  5868. .HasName("PRIMARY");
  5869. entity.Property(e => e.CheckData)
  5870. .HasColumnType("varchar(100)")
  5871. .HasCharSet("utf8")
  5872. .HasCollation("utf8_general_ci");
  5873. });
  5874. modelBuilder.Entity<ProfitObjectsActiveParams>(entity =>
  5875. {
  5876. entity.Property(e => e.Id).HasColumnType("int(11)");
  5877. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5878. entity.Property(e => e.CreateMan)
  5879. .HasColumnType("varchar(50)")
  5880. .HasCharSet("utf8")
  5881. .HasCollation("utf8_general_ci");
  5882. entity.Property(e => e.Name)
  5883. .HasColumnType("varchar(50)")
  5884. .HasCharSet("utf8")
  5885. .HasCollation("utf8_general_ci");
  5886. entity.Property(e => e.ProfitObjectsActiveId).HasColumnType("int(11)");
  5887. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5888. entity.Property(e => e.Remark)
  5889. .HasColumnType("varchar(200)")
  5890. .HasCharSet("utf8")
  5891. .HasCollation("utf8_general_ci");
  5892. entity.Property(e => e.SeoDescription)
  5893. .HasColumnType("varchar(500)")
  5894. .HasCharSet("utf8")
  5895. .HasCollation("utf8_general_ci");
  5896. entity.Property(e => e.SeoKeyword)
  5897. .HasColumnType("varchar(200)")
  5898. .HasCharSet("utf8")
  5899. .HasCollation("utf8_general_ci");
  5900. entity.Property(e => e.SeoTitle)
  5901. .HasColumnType("varchar(100)")
  5902. .HasCharSet("utf8")
  5903. .HasCollation("utf8_general_ci");
  5904. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5905. entity.Property(e => e.Status).HasColumnType("int(11)");
  5906. entity.Property(e => e.TextValue)
  5907. .HasColumnType("varchar(20)")
  5908. .HasCharSet("utf8")
  5909. .HasCollation("utf8_general_ci");
  5910. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5911. entity.Property(e => e.UpdateMan)
  5912. .HasColumnType("varchar(50)")
  5913. .HasCharSet("utf8")
  5914. .HasCollation("utf8_general_ci");
  5915. entity.Property(e => e.Version).HasColumnType("int(11)");
  5916. });
  5917. modelBuilder.Entity<ProfitObjectsActives>(entity =>
  5918. {
  5919. entity.Property(e => e.Id).HasColumnType("int(11)");
  5920. entity.Property(e => e.CardType).HasColumnType("int(11)");
  5921. entity.Property(e => e.Code)
  5922. .HasColumnType("varchar(50)")
  5923. .HasCharSet("utf8")
  5924. .HasCollation("utf8_general_ci");
  5925. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5926. entity.Property(e => e.CreateMan)
  5927. .HasColumnType("varchar(50)")
  5928. .HasCharSet("utf8")
  5929. .HasCollation("utf8_general_ci");
  5930. entity.Property(e => e.EndDate).HasColumnType("datetime");
  5931. entity.Property(e => e.FinishNumber).HasColumnType("decimal(18,6)");
  5932. entity.Property(e => e.LimitCustomerDate).HasColumnType("datetime");
  5933. entity.Property(e => e.LimitDateKind).HasColumnType("int(11)");
  5934. entity.Property(e => e.LimitDateVal).HasColumnType("int(11)");
  5935. entity.Property(e => e.MachineCount).HasColumnType("int(11)");
  5936. entity.Property(e => e.Name)
  5937. .HasColumnType("varchar(50)")
  5938. .HasCharSet("utf8")
  5939. .HasCollation("utf8_general_ci");
  5940. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5941. entity.Property(e => e.ProfitNumber).HasColumnType("decimal(18,6)");
  5942. entity.Property(e => e.ProfitNumber2).HasColumnType("decimal(18,2)");
  5943. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5944. entity.Property(e => e.SeoDescription)
  5945. .HasColumnType("varchar(500)")
  5946. .HasCharSet("utf8")
  5947. .HasCollation("utf8_general_ci");
  5948. entity.Property(e => e.SeoKeyword)
  5949. .HasColumnType("varchar(200)")
  5950. .HasCharSet("utf8")
  5951. .HasCollation("utf8_general_ci");
  5952. entity.Property(e => e.SeoTitle)
  5953. .HasColumnType("varchar(100)")
  5954. .HasCharSet("utf8")
  5955. .HasCollation("utf8_general_ci");
  5956. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5957. entity.Property(e => e.StartDate).HasColumnType("datetime");
  5958. entity.Property(e => e.Status).HasColumnType("int(11)");
  5959. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5960. entity.Property(e => e.UpdateMan)
  5961. .HasColumnType("varchar(50)")
  5962. .HasCharSet("utf8")
  5963. .HasCollation("utf8_general_ci");
  5964. entity.Property(e => e.Version).HasColumnType("int(11)");
  5965. });
  5966. modelBuilder.Entity<ProfitObjectsActivesForId>(entity =>
  5967. {
  5968. entity.HasKey(e => e.Name)
  5969. .HasName("PRIMARY");
  5970. entity.Property(e => e.Name)
  5971. .HasColumnType("varchar(50)")
  5972. .HasCharSet("utf8")
  5973. .HasCollation("utf8_general_ci");
  5974. entity.Property(e => e.ActivityId).HasColumnType("int(11)");
  5975. });
  5976. modelBuilder.Entity<ProfitObjectsRule>(entity =>
  5977. {
  5978. entity.Property(e => e.Id).HasColumnType("int(11)");
  5979. entity.Property(e => e.Code)
  5980. .HasColumnType("varchar(50)")
  5981. .HasCharSet("utf8")
  5982. .HasCollation("utf8_general_ci");
  5983. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5984. entity.Property(e => e.CreateMan)
  5985. .HasColumnType("varchar(50)")
  5986. .HasCharSet("utf8")
  5987. .HasCollation("utf8_general_ci");
  5988. entity.Property(e => e.EndDate).HasColumnType("datetime");
  5989. entity.Property(e => e.Name)
  5990. .HasColumnType("varchar(50)")
  5991. .HasCharSet("utf8")
  5992. .HasCollation("utf8_general_ci");
  5993. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5994. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5995. entity.Property(e => e.SeoDescription)
  5996. .HasColumnType("varchar(500)")
  5997. .HasCharSet("utf8")
  5998. .HasCollation("utf8_general_ci");
  5999. entity.Property(e => e.SeoKeyword)
  6000. .HasColumnType("varchar(200)")
  6001. .HasCharSet("utf8")
  6002. .HasCollation("utf8_general_ci");
  6003. entity.Property(e => e.SeoTitle)
  6004. .HasColumnType("varchar(100)")
  6005. .HasCharSet("utf8")
  6006. .HasCollation("utf8_general_ci");
  6007. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6008. entity.Property(e => e.StartDate).HasColumnType("datetime");
  6009. entity.Property(e => e.Status).HasColumnType("int(11)");
  6010. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6011. entity.Property(e => e.UpdateMan)
  6012. .HasColumnType("varchar(50)")
  6013. .HasCharSet("utf8")
  6014. .HasCollation("utf8_general_ci");
  6015. entity.Property(e => e.Version).HasColumnType("int(11)");
  6016. });
  6017. modelBuilder.Entity<ProfitObjectsRuleDetails>(entity =>
  6018. {
  6019. entity.Property(e => e.Id).HasColumnType("int(11)");
  6020. entity.Property(e => e.Code)
  6021. .HasColumnType("varchar(50)")
  6022. .HasCharSet("utf8")
  6023. .HasCollation("utf8_general_ci");
  6024. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6025. entity.Property(e => e.CreateMan)
  6026. .HasColumnType("varchar(50)")
  6027. .HasCharSet("utf8")
  6028. .HasCollation("utf8_general_ci");
  6029. entity.Property(e => e.DataValue)
  6030. .HasColumnType("varchar(50)")
  6031. .HasCharSet("utf8")
  6032. .HasCollation("utf8_general_ci");
  6033. entity.Property(e => e.Name)
  6034. .HasColumnType("varchar(50)")
  6035. .HasCharSet("utf8")
  6036. .HasCollation("utf8_general_ci");
  6037. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6038. entity.Property(e => e.RuleId).HasColumnType("int(11)");
  6039. entity.Property(e => e.SeoDescription)
  6040. .HasColumnType("varchar(500)")
  6041. .HasCharSet("utf8")
  6042. .HasCollation("utf8_general_ci");
  6043. entity.Property(e => e.SeoKeyword)
  6044. .HasColumnType("varchar(200)")
  6045. .HasCharSet("utf8")
  6046. .HasCollation("utf8_general_ci");
  6047. entity.Property(e => e.SeoTitle)
  6048. .HasColumnType("varchar(100)")
  6049. .HasCharSet("utf8")
  6050. .HasCollation("utf8_general_ci");
  6051. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6052. entity.Property(e => e.Status).HasColumnType("int(11)");
  6053. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6054. entity.Property(e => e.UpdateMan)
  6055. .HasColumnType("varchar(50)")
  6056. .HasCharSet("utf8")
  6057. .HasCollation("utf8_general_ci");
  6058. entity.Property(e => e.Version).HasColumnType("int(11)");
  6059. });
  6060. modelBuilder.Entity<ProfitReceiveRecord>(entity =>
  6061. {
  6062. entity.Property(e => e.Id).HasColumnType("int(11)");
  6063. entity.Property(e => e.Account)
  6064. .HasColumnType("varchar(32)")
  6065. .HasCharSet("utf8")
  6066. .HasCollation("utf8_general_ci");
  6067. entity.Property(e => e.Amount).HasColumnType("decimal(18,2)");
  6068. entity.Property(e => e.AppId)
  6069. .HasColumnType("varchar(32)")
  6070. .HasCharSet("utf8")
  6071. .HasCollation("utf8_general_ci");
  6072. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6073. entity.Property(e => e.CreateMan)
  6074. .HasColumnType("varchar(50)")
  6075. .HasCharSet("utf8")
  6076. .HasCollation("utf8_general_ci");
  6077. entity.Property(e => e.CustomRelation)
  6078. .HasColumnType("varchar(10)")
  6079. .HasCharSet("utf8")
  6080. .HasCollation("utf8_general_ci");
  6081. entity.Property(e => e.Description)
  6082. .HasColumnType("varchar(50)")
  6083. .HasCharSet("utf8")
  6084. .HasCollation("utf8_general_ci");
  6085. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  6086. entity.Property(e => e.Name)
  6087. .HasColumnType("varchar(32)")
  6088. .HasCharSet("utf8")
  6089. .HasCollation("utf8_general_ci");
  6090. entity.Property(e => e.OrderId)
  6091. .HasColumnType("varchar(32)")
  6092. .HasCharSet("utf8")
  6093. .HasCollation("utf8_general_ci");
  6094. entity.Property(e => e.OutOrderNo)
  6095. .HasColumnType("varchar(32)")
  6096. .HasCharSet("utf8")
  6097. .HasCollation("utf8_general_ci");
  6098. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6099. entity.Property(e => e.RelationType)
  6100. .HasColumnType("varchar(30)")
  6101. .HasCharSet("utf8")
  6102. .HasCollation("utf8_general_ci");
  6103. entity.Property(e => e.SeoDescription)
  6104. .HasColumnType("varchar(500)")
  6105. .HasCharSet("utf8")
  6106. .HasCollation("utf8_general_ci");
  6107. entity.Property(e => e.SeoKeyword)
  6108. .HasColumnType("varchar(200)")
  6109. .HasCharSet("utf8")
  6110. .HasCollation("utf8_general_ci");
  6111. entity.Property(e => e.SeoTitle)
  6112. .HasColumnType("varchar(100)")
  6113. .HasCharSet("utf8")
  6114. .HasCollation("utf8_general_ci");
  6115. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6116. entity.Property(e => e.State)
  6117. .HasColumnType("varchar(20)")
  6118. .HasCharSet("utf8")
  6119. .HasCollation("utf8_general_ci");
  6120. entity.Property(e => e.Status).HasColumnType("int(11)");
  6121. entity.Property(e => e.SubAppId)
  6122. .HasColumnType("varchar(32)")
  6123. .HasCharSet("utf8")
  6124. .HasCollation("utf8_general_ci");
  6125. entity.Property(e => e.SubMchid)
  6126. .HasColumnType("varchar(32)")
  6127. .HasCharSet("utf8")
  6128. .HasCollation("utf8_general_ci");
  6129. entity.Property(e => e.TransactionId)
  6130. .HasColumnType("varchar(32)")
  6131. .HasCharSet("utf8")
  6132. .HasCollation("utf8_general_ci");
  6133. entity.Property(e => e.Type)
  6134. .HasColumnType("varchar(30)")
  6135. .HasCharSet("utf8")
  6136. .HasCollation("utf8_general_ci");
  6137. entity.Property(e => e.UnfreezeUnsplit)
  6138. .HasColumnType("bit(1)")
  6139. .HasDefaultValueSql("b'0'");
  6140. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6141. entity.Property(e => e.UpdateMan)
  6142. .HasColumnType("varchar(50)")
  6143. .HasCharSet("utf8")
  6144. .HasCollation("utf8_general_ci");
  6145. entity.Property(e => e.Version).HasColumnType("int(11)");
  6146. });
  6147. modelBuilder.Entity<ProfitReceives>(entity =>
  6148. {
  6149. entity.Property(e => e.Id).HasColumnType("int(11)");
  6150. entity.Property(e => e.Account)
  6151. .HasColumnType("varchar(32)")
  6152. .HasCharSet("utf8")
  6153. .HasCollation("utf8_general_ci");
  6154. entity.Property(e => e.AppId)
  6155. .HasColumnType("varchar(32)")
  6156. .HasCharSet("utf8")
  6157. .HasCollation("utf8_general_ci");
  6158. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6159. entity.Property(e => e.CreateMan)
  6160. .HasColumnType("varchar(50)")
  6161. .HasCharSet("utf8")
  6162. .HasCollation("utf8_general_ci");
  6163. entity.Property(e => e.CustomRelation)
  6164. .HasColumnType("varchar(10)")
  6165. .HasCharSet("utf8")
  6166. .HasCollation("utf8_general_ci");
  6167. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  6168. entity.Property(e => e.Name)
  6169. .HasColumnType("varchar(32)")
  6170. .HasCharSet("utf8")
  6171. .HasCollation("utf8_general_ci");
  6172. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6173. entity.Property(e => e.RelationType)
  6174. .HasColumnType("varchar(30)")
  6175. .HasCharSet("utf8")
  6176. .HasCollation("utf8_general_ci");
  6177. entity.Property(e => e.SeoDescription)
  6178. .HasColumnType("varchar(500)")
  6179. .HasCharSet("utf8")
  6180. .HasCollation("utf8_general_ci");
  6181. entity.Property(e => e.SeoKeyword)
  6182. .HasColumnType("varchar(200)")
  6183. .HasCharSet("utf8")
  6184. .HasCollation("utf8_general_ci");
  6185. entity.Property(e => e.SeoTitle)
  6186. .HasColumnType("varchar(100)")
  6187. .HasCharSet("utf8")
  6188. .HasCollation("utf8_general_ci");
  6189. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6190. entity.Property(e => e.Status).HasColumnType("int(11)");
  6191. entity.Property(e => e.SubAppId)
  6192. .HasColumnType("varchar(32)")
  6193. .HasCharSet("utf8")
  6194. .HasCollation("utf8_general_ci");
  6195. entity.Property(e => e.SubMchid)
  6196. .HasColumnType("varchar(32)")
  6197. .HasCharSet("utf8")
  6198. .HasCollation("utf8_general_ci");
  6199. entity.Property(e => e.Type)
  6200. .HasColumnType("varchar(30)")
  6201. .HasCharSet("utf8")
  6202. .HasCollation("utf8_general_ci");
  6203. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6204. entity.Property(e => e.UpdateMan)
  6205. .HasColumnType("varchar(50)")
  6206. .HasCharSet("utf8")
  6207. .HasCollation("utf8_general_ci");
  6208. entity.Property(e => e.Version).HasColumnType("int(11)");
  6209. });
  6210. modelBuilder.Entity<ProfitRecord>(entity =>
  6211. {
  6212. entity.Property(e => e.Id).HasColumnType("int(11)");
  6213. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6214. entity.Property(e => e.CapFlag).HasColumnType("int(11)");
  6215. entity.Property(e => e.ClearDate).HasColumnType("datetime");
  6216. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6217. entity.Property(e => e.CreateMan)
  6218. .HasColumnType("varchar(50)")
  6219. .HasCharSet("utf8")
  6220. .HasCollation("utf8_general_ci");
  6221. entity.Property(e => e.DirectFlag)
  6222. .HasColumnType("bit(1)")
  6223. .HasDefaultValueSql("b'0'");
  6224. entity.Property(e => e.HelpMonthCount).HasColumnType("int(11)");
  6225. entity.Property(e => e.MerBuddyType).HasColumnType("int(11)");
  6226. entity.Property(e => e.MerHelpFlag)
  6227. .HasColumnType("bit(1)")
  6228. .HasDefaultValueSql("b'0'");
  6229. entity.Property(e => e.MerNo)
  6230. .HasColumnType("varchar(32)")
  6231. .HasCharSet("utf8")
  6232. .HasCollation("utf8_general_ci");
  6233. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  6234. entity.Property(e => e.ParentNav)
  6235. .HasColumnType("varchar(1000)")
  6236. .HasCharSet("utf8")
  6237. .HasCollation("utf8_general_ci");
  6238. entity.Property(e => e.ProfitAmount).HasColumnType("decimal(18,2)");
  6239. entity.Property(e => e.QrPayFlag).HasColumnType("int(11)");
  6240. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6241. entity.Property(e => e.Remark)
  6242. .HasColumnType("varchar(64)")
  6243. .HasCharSet("utf8")
  6244. .HasCollation("utf8_general_ci");
  6245. entity.Property(e => e.SeoDescription)
  6246. .HasColumnType("varchar(500)")
  6247. .HasCharSet("utf8")
  6248. .HasCollation("utf8_general_ci");
  6249. entity.Property(e => e.SeoKeyword)
  6250. .HasColumnType("varchar(200)")
  6251. .HasCharSet("utf8")
  6252. .HasCollation("utf8_general_ci");
  6253. entity.Property(e => e.SeoTitle)
  6254. .HasColumnType("varchar(100)")
  6255. .HasCharSet("utf8")
  6256. .HasCollation("utf8_general_ci");
  6257. entity.Property(e => e.SnNo)
  6258. .HasColumnType("varchar(32)")
  6259. .HasCharSet("utf8")
  6260. .HasCollation("utf8_general_ci");
  6261. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6262. entity.Property(e => e.Status).HasColumnType("int(11)");
  6263. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  6264. entity.Property(e => e.TradeId).HasColumnType("int(11)");
  6265. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6266. entity.Property(e => e.UpdateMan)
  6267. .HasColumnType("varchar(50)")
  6268. .HasCharSet("utf8")
  6269. .HasCollation("utf8_general_ci");
  6270. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6271. entity.Property(e => e.Version).HasColumnType("int(11)");
  6272. });
  6273. modelBuilder.Entity<ProfitRewardRecord>(entity =>
  6274. {
  6275. entity.Property(e => e.Id).HasColumnType("int(11)");
  6276. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6277. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  6278. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6279. entity.Property(e => e.CreateMan)
  6280. .HasColumnType("varchar(50)")
  6281. .HasCharSet("utf8")
  6282. .HasCollation("utf8_general_ci");
  6283. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  6284. entity.Property(e => e.CreditTradeProfit).HasColumnType("decimal(18,2)");
  6285. entity.Property(e => e.DebitCapSingleReward).HasColumnType("decimal(18,2)");
  6286. entity.Property(e => e.DebitCapTradeAmt).HasColumnType("decimal(18,2)");
  6287. entity.Property(e => e.DebitCapTradeNum).HasColumnType("int(11)");
  6288. entity.Property(e => e.DebitNonCapTradeAmt).HasColumnType("decimal(18,2)");
  6289. entity.Property(e => e.DebitNonTradeCapProfit).HasColumnType("decimal(18,2)");
  6290. entity.Property(e => e.DebitTradeCapProfit).HasColumnType("decimal(18,2)");
  6291. entity.Property(e => e.HelpCreditAddOrSubRate).HasColumnType("decimal(18,2)");
  6292. entity.Property(e => e.HelpCreditProfitRate).HasColumnType("decimal(18,2)");
  6293. entity.Property(e => e.HelpCreditProfitStandardRate).HasColumnType("decimal(18,2)");
  6294. entity.Property(e => e.HelpCreditTradeAmt).HasColumnType("decimal(18,2)");
  6295. entity.Property(e => e.HelpCreditTradeProfit).HasColumnType("decimal(18,2)");
  6296. entity.Property(e => e.HelpDebitAddOrSubRate).HasColumnType("decimal(18,2)");
  6297. entity.Property(e => e.HelpDebitNonCapTradeAmt).HasColumnType("decimal(18,2)");
  6298. entity.Property(e => e.HelpDebitNonTradeCapProfit).HasColumnType("decimal(18,2)");
  6299. entity.Property(e => e.HelpDebitProfitRate).HasColumnType("decimal(18,2)");
  6300. entity.Property(e => e.HelpDebitProfitStandardRate).HasColumnType("decimal(18,2)");
  6301. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  6302. entity.Property(e => e.NonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  6303. entity.Property(e => e.NonQrCreditTradeProfit).HasColumnType("decimal(18,2)");
  6304. entity.Property(e => e.NonQrDebitNonTradeCapProfit).HasColumnType("decimal(18,2)");
  6305. entity.Property(e => e.NonQrDebitNotCapTradeAmt).HasColumnType("decimal(18,2)");
  6306. entity.Property(e => e.NotHelpCreditAddOrSubRate).HasColumnType("decimal(18,2)");
  6307. entity.Property(e => e.NotHelpCreditProfitRate).HasColumnType("decimal(18,2)");
  6308. entity.Property(e => e.NotHelpCreditProfitStandardRate).HasColumnType("decimal(18,2)");
  6309. entity.Property(e => e.NotHelpCreditTradeAmt).HasColumnType("decimal(18,2)");
  6310. entity.Property(e => e.NotHelpCreditTradeProfit).HasColumnType("decimal(18,2)");
  6311. entity.Property(e => e.NotHelpDebitAddOrSubRate).HasColumnType("decimal(18,2)");
  6312. entity.Property(e => e.NotHelpDebitNonCapTradeAmt).HasColumnType("decimal(18,2)");
  6313. entity.Property(e => e.NotHelpDebitNonTradeCapProfit).HasColumnType("decimal(18,2)");
  6314. entity.Property(e => e.NotHelpDebitProfitRate).HasColumnType("decimal(18,2)");
  6315. entity.Property(e => e.NotHelpDebitProfitStandardRate).HasColumnType("decimal(18,2)");
  6316. entity.Property(e => e.OtherCreditTradeAmt).HasColumnType("decimal(18,2)");
  6317. entity.Property(e => e.OtherDebitNotCapTradeAmt).HasColumnType("decimal(18,2)");
  6318. entity.Property(e => e.OtherTradeAmt).HasColumnType("decimal(18,2)");
  6319. entity.Property(e => e.ProfitType).HasColumnType("int(11)");
  6320. entity.Property(e => e.QrCreditAddOrSubRate).HasColumnType("decimal(18,2)");
  6321. entity.Property(e => e.QrCreditProfitRate).HasColumnType("decimal(18,2)");
  6322. entity.Property(e => e.QrCreditProfitStandardRate).HasColumnType("decimal(18,2)");
  6323. entity.Property(e => e.QrCreditTradeAmt).HasColumnType("decimal(18,2)");
  6324. entity.Property(e => e.QrCreditTradeProfit).HasColumnType("decimal(18,2)");
  6325. entity.Property(e => e.QrDebitAddOrSubRate).HasColumnType("decimal(18,2)");
  6326. entity.Property(e => e.QrDebitNonTradeCapProfit).HasColumnType("decimal(18,2)");
  6327. entity.Property(e => e.QrDebitNotCapTradeAmt).HasColumnType("decimal(18,2)");
  6328. entity.Property(e => e.QrDebitProfitRate).HasColumnType("decimal(18,2)");
  6329. entity.Property(e => e.QrDebitProfitStandardRate).HasColumnType("decimal(18,2)");
  6330. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6331. entity.Property(e => e.RecordNo)
  6332. .HasColumnType("varchar(32)")
  6333. .HasCharSet("utf8")
  6334. .HasCollation("utf8_general_ci");
  6335. entity.Property(e => e.Remark)
  6336. .HasColumnType("varchar(64)")
  6337. .HasCharSet("utf8")
  6338. .HasCollation("utf8_general_ci");
  6339. entity.Property(e => e.SeoDescription)
  6340. .HasColumnType("varchar(500)")
  6341. .HasCharSet("utf8")
  6342. .HasCollation("utf8_general_ci");
  6343. entity.Property(e => e.SeoKeyword)
  6344. .HasColumnType("varchar(200)")
  6345. .HasCharSet("utf8")
  6346. .HasCollation("utf8_general_ci");
  6347. entity.Property(e => e.SeoTitle)
  6348. .HasColumnType("varchar(100)")
  6349. .HasCharSet("utf8")
  6350. .HasCollation("utf8_general_ci");
  6351. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6352. entity.Property(e => e.Status).HasColumnType("int(11)");
  6353. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  6354. entity.Property(e => e.TradeAmt).HasColumnType("decimal(18,2)");
  6355. entity.Property(e => e.TradeMonth)
  6356. .HasColumnType("varchar(6)")
  6357. .HasCharSet("utf8")
  6358. .HasCollation("utf8_general_ci");
  6359. entity.Property(e => e.TradeProfit).HasColumnType("decimal(18,2)");
  6360. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6361. entity.Property(e => e.UpdateMan)
  6362. .HasColumnType("varchar(50)")
  6363. .HasCharSet("utf8")
  6364. .HasCollation("utf8_general_ci");
  6365. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6366. entity.Property(e => e.Version).HasColumnType("int(11)");
  6367. });
  6368. modelBuilder.Entity<ProfitSubsidyDetail>(entity =>
  6369. {
  6370. entity.Property(e => e.Id).HasColumnType("int(11)");
  6371. entity.Property(e => e.BelongUserId).HasColumnType("int(11)");
  6372. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6373. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6374. entity.Property(e => e.CreateMan)
  6375. .HasColumnType("varchar(50)")
  6376. .HasCharSet("utf8")
  6377. .HasCollation("utf8_general_ci");
  6378. entity.Property(e => e.CreditProfitRate).HasColumnType("decimal(18,2)");
  6379. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  6380. entity.Property(e => e.MerHelpFlag)
  6381. .HasColumnType("bit(1)")
  6382. .HasDefaultValueSql("b'0'");
  6383. entity.Property(e => e.MerNo)
  6384. .HasColumnType("varchar(32)")
  6385. .HasCharSet("utf8")
  6386. .HasCollation("utf8_general_ci");
  6387. entity.Property(e => e.MerRegTime).HasColumnType("datetime");
  6388. entity.Property(e => e.MerStandardDate).HasColumnType("datetime");
  6389. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  6390. entity.Property(e => e.NonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  6391. entity.Property(e => e.ProductName)
  6392. .HasColumnType("varchar(16)")
  6393. .HasCharSet("utf8")
  6394. .HasCollation("utf8_general_ci");
  6395. entity.Property(e => e.QrCreditTradeAmt).HasColumnType("decimal(18,2)");
  6396. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6397. entity.Property(e => e.RecordNo)
  6398. .HasColumnType("varchar(32)")
  6399. .HasCharSet("utf8")
  6400. .HasCollation("utf8_general_ci");
  6401. entity.Property(e => e.Remark)
  6402. .HasColumnType("varchar(64)")
  6403. .HasCharSet("utf8")
  6404. .HasCollation("utf8_general_ci");
  6405. entity.Property(e => e.SeoDescription)
  6406. .HasColumnType("varchar(500)")
  6407. .HasCharSet("utf8")
  6408. .HasCollation("utf8_general_ci");
  6409. entity.Property(e => e.SeoKeyword)
  6410. .HasColumnType("varchar(200)")
  6411. .HasCharSet("utf8")
  6412. .HasCollation("utf8_general_ci");
  6413. entity.Property(e => e.SeoTitle)
  6414. .HasColumnType("varchar(100)")
  6415. .HasCharSet("utf8")
  6416. .HasCollation("utf8_general_ci");
  6417. entity.Property(e => e.SnNo)
  6418. .HasColumnType("varchar(32)")
  6419. .HasCharSet("utf8")
  6420. .HasCollation("utf8_general_ci");
  6421. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6422. entity.Property(e => e.Status).HasColumnType("int(11)");
  6423. entity.Property(e => e.SubsidyProfit).HasColumnType("decimal(18,2)");
  6424. entity.Property(e => e.SubsidyProfitRate).HasColumnType("decimal(18,2)");
  6425. entity.Property(e => e.SubsidyType).HasColumnType("int(11)");
  6426. entity.Property(e => e.SubsidyUserId).HasColumnType("int(11)");
  6427. entity.Property(e => e.TradeMonth)
  6428. .HasColumnType("varchar(6)")
  6429. .HasCharSet("utf8")
  6430. .HasCollation("utf8_general_ci");
  6431. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6432. entity.Property(e => e.UpdateMan)
  6433. .HasColumnType("varchar(50)")
  6434. .HasCharSet("utf8")
  6435. .HasCollation("utf8_general_ci");
  6436. entity.Property(e => e.Version).HasColumnType("int(11)");
  6437. });
  6438. modelBuilder.Entity<ProfitSubsidyDetail04>(entity =>
  6439. {
  6440. entity.Property(e => e.Id).HasColumnType("int(11)");
  6441. entity.Property(e => e.BelongUserId).HasColumnType("int(11)");
  6442. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6443. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6444. entity.Property(e => e.CreateMan)
  6445. .HasColumnType("varchar(50)")
  6446. .HasCharSet("utf8")
  6447. .HasCollation("utf8_general_ci");
  6448. entity.Property(e => e.CreditProfitRate).HasColumnType("decimal(18,2)");
  6449. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  6450. entity.Property(e => e.MerHelpFlag)
  6451. .HasColumnType("bit(1)")
  6452. .HasDefaultValueSql("b'0'");
  6453. entity.Property(e => e.MerNo)
  6454. .HasColumnType("varchar(32)")
  6455. .HasCharSet("utf8")
  6456. .HasCollation("utf8_general_ci");
  6457. entity.Property(e => e.MerRegTime).HasColumnType("datetime");
  6458. entity.Property(e => e.MerStandardDate).HasColumnType("datetime");
  6459. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  6460. entity.Property(e => e.NonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  6461. entity.Property(e => e.ProductName)
  6462. .HasColumnType("varchar(16)")
  6463. .HasCharSet("utf8")
  6464. .HasCollation("utf8_general_ci");
  6465. entity.Property(e => e.QrCreditTradeAmt).HasColumnType("decimal(18,2)");
  6466. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6467. entity.Property(e => e.RecordNo)
  6468. .HasColumnType("varchar(32)")
  6469. .HasCharSet("utf8")
  6470. .HasCollation("utf8_general_ci");
  6471. entity.Property(e => e.Remark)
  6472. .HasColumnType("varchar(64)")
  6473. .HasCharSet("utf8")
  6474. .HasCollation("utf8_general_ci");
  6475. entity.Property(e => e.SeoDescription)
  6476. .HasColumnType("varchar(500)")
  6477. .HasCharSet("utf8")
  6478. .HasCollation("utf8_general_ci");
  6479. entity.Property(e => e.SeoKeyword)
  6480. .HasColumnType("varchar(200)")
  6481. .HasCharSet("utf8")
  6482. .HasCollation("utf8_general_ci");
  6483. entity.Property(e => e.SeoTitle)
  6484. .HasColumnType("varchar(100)")
  6485. .HasCharSet("utf8")
  6486. .HasCollation("utf8_general_ci");
  6487. entity.Property(e => e.SnNo)
  6488. .HasColumnType("varchar(32)")
  6489. .HasCharSet("utf8")
  6490. .HasCollation("utf8_general_ci");
  6491. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6492. entity.Property(e => e.Status).HasColumnType("int(11)");
  6493. entity.Property(e => e.SubsidyProfit).HasColumnType("decimal(18,2)");
  6494. entity.Property(e => e.SubsidyProfitRate).HasColumnType("decimal(18,2)");
  6495. entity.Property(e => e.SubsidyType).HasColumnType("int(11)");
  6496. entity.Property(e => e.SubsidyUserId).HasColumnType("int(11)");
  6497. entity.Property(e => e.TradeMonth)
  6498. .HasColumnType("varchar(6)")
  6499. .HasCharSet("utf8")
  6500. .HasCollation("utf8_general_ci");
  6501. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6502. entity.Property(e => e.UpdateMan)
  6503. .HasColumnType("varchar(50)")
  6504. .HasCharSet("utf8")
  6505. .HasCollation("utf8_general_ci");
  6506. entity.Property(e => e.Version).HasColumnType("int(11)");
  6507. });
  6508. modelBuilder.Entity<PublicAccountSet>(entity =>
  6509. {
  6510. entity.Property(e => e.Id).HasColumnType("int(11)");
  6511. entity.Property(e => e.AlipayAppId)
  6512. .HasColumnType("varchar(50)")
  6513. .HasCharSet("utf8")
  6514. .HasCollation("utf8_general_ci");
  6515. entity.Property(e => e.AlipayPartnerId)
  6516. .HasColumnType("varchar(50)")
  6517. .HasCharSet("utf8")
  6518. .HasCollation("utf8_general_ci");
  6519. entity.Property(e => e.AlipayPrivateKey)
  6520. .HasColumnType("mediumtext")
  6521. .HasCharSet("utf8")
  6522. .HasCollation("utf8_general_ci");
  6523. entity.Property(e => e.AlipayPublicKey)
  6524. .HasColumnType("mediumtext")
  6525. .HasCharSet("utf8")
  6526. .HasCollation("utf8_general_ci");
  6527. entity.Property(e => e.AliyunAccessKeyId)
  6528. .HasColumnType("varchar(50)")
  6529. .HasCharSet("utf8")
  6530. .HasCollation("utf8_general_ci");
  6531. entity.Property(e => e.AliyunAccessKeySecret)
  6532. .HasColumnType("varchar(50)")
  6533. .HasCharSet("utf8")
  6534. .HasCollation("utf8_general_ci");
  6535. entity.Property(e => e.AliyunAndroidActivity)
  6536. .HasColumnType("varchar(100)")
  6537. .HasCharSet("utf8")
  6538. .HasCollation("utf8_general_ci");
  6539. entity.Property(e => e.AliyunAndroidNotifyTitle)
  6540. .HasColumnType("varchar(20)")
  6541. .HasCharSet("utf8")
  6542. .HasCollation("utf8_general_ci");
  6543. entity.Property(e => e.AliyunPushAndroidAppId)
  6544. .HasColumnType("varchar(50)")
  6545. .HasCharSet("utf8")
  6546. .HasCollation("utf8_general_ci");
  6547. entity.Property(e => e.AliyunPushAndroidAppSecret)
  6548. .HasColumnType("varchar(50)")
  6549. .HasCharSet("utf8")
  6550. .HasCollation("utf8_general_ci");
  6551. entity.Property(e => e.AliyunPushIosAppId)
  6552. .HasColumnType("varchar(500)")
  6553. .HasCharSet("utf8")
  6554. .HasCollation("utf8_general_ci");
  6555. entity.Property(e => e.AliyunPushIosAppSecret)
  6556. .HasColumnType("varchar(50)")
  6557. .HasCharSet("utf8")
  6558. .HasCollation("utf8_general_ci");
  6559. entity.Property(e => e.AliyunRegionId)
  6560. .HasColumnType("varchar(30)")
  6561. .HasCharSet("utf8")
  6562. .HasCollation("utf8_general_ci");
  6563. entity.Property(e => e.ErpApiUrl)
  6564. .HasColumnType("varchar(200)")
  6565. .HasCharSet("utf8")
  6566. .HasCollation("utf8_general_ci");
  6567. entity.Property(e => e.ErpAppCode)
  6568. .HasColumnType("varchar(100)")
  6569. .HasCharSet("utf8")
  6570. .HasCollation("utf8_general_ci");
  6571. entity.Property(e => e.MeiQiaAppKey)
  6572. .HasColumnType("varchar(50)")
  6573. .HasCharSet("utf8")
  6574. .HasCollation("utf8_general_ci");
  6575. entity.Property(e => e.MobAppKey)
  6576. .HasColumnType("varchar(50)")
  6577. .HasCharSet("utf8")
  6578. .HasCollation("utf8_general_ci");
  6579. entity.Property(e => e.MobAppSecret)
  6580. .HasColumnType("varchar(50)")
  6581. .HasCharSet("utf8")
  6582. .HasCollation("utf8_general_ci");
  6583. entity.Property(e => e.QqAndroidAppId)
  6584. .HasColumnType("varchar(50)")
  6585. .HasCharSet("utf8")
  6586. .HasCollation("utf8_general_ci");
  6587. entity.Property(e => e.QqAndroidAppKey)
  6588. .HasColumnType("varchar(50)")
  6589. .HasCharSet("utf8")
  6590. .HasCollation("utf8_general_ci");
  6591. entity.Property(e => e.QqIosAppId)
  6592. .HasColumnType("varchar(50)")
  6593. .HasCharSet("utf8")
  6594. .HasCollation("utf8_general_ci");
  6595. entity.Property(e => e.QqIosAppKey)
  6596. .HasColumnType("varchar(50)")
  6597. .HasCharSet("utf8")
  6598. .HasCollation("utf8_general_ci");
  6599. entity.Property(e => e.ServerIp)
  6600. .HasColumnType("varchar(15)")
  6601. .HasCharSet("utf8")
  6602. .HasCollation("utf8_general_ci");
  6603. entity.Property(e => e.SmsApiDefaultTemplate)
  6604. .HasColumnType("varchar(200)")
  6605. .HasCharSet("utf8")
  6606. .HasCollation("utf8_general_ci");
  6607. entity.Property(e => e.SmsApiPwd)
  6608. .HasColumnType("varchar(50)")
  6609. .HasCharSet("utf8")
  6610. .HasCollation("utf8_general_ci");
  6611. entity.Property(e => e.SmsApiSign)
  6612. .HasColumnType("varchar(10)")
  6613. .HasCharSet("utf8")
  6614. .HasCollation("utf8_general_ci");
  6615. entity.Property(e => e.SmsApiUserId)
  6616. .HasColumnType("varchar(50)")
  6617. .HasCharSet("utf8")
  6618. .HasCollation("utf8_general_ci");
  6619. entity.Property(e => e.WeChatAppId)
  6620. .HasColumnType("varchar(50)")
  6621. .HasCharSet("utf8")
  6622. .HasCollation("utf8_general_ci");
  6623. entity.Property(e => e.WeChatAppSecret)
  6624. .HasColumnType("varchar(50)")
  6625. .HasCharSet("utf8")
  6626. .HasCollation("utf8_general_ci");
  6627. entity.Property(e => e.WeChatMchId)
  6628. .HasColumnType("varchar(20)")
  6629. .HasCharSet("utf8")
  6630. .HasCollation("utf8_general_ci");
  6631. entity.Property(e => e.WeChatMiniAppId)
  6632. .HasColumnType("varchar(50)")
  6633. .HasCharSet("utf8")
  6634. .HasCollation("utf8_general_ci");
  6635. entity.Property(e => e.WeChatMiniAppSecret)
  6636. .HasColumnType("varchar(50)")
  6637. .HasCharSet("utf8")
  6638. .HasCollation("utf8_general_ci");
  6639. entity.Property(e => e.WeChatOpenAppId)
  6640. .HasColumnType("varchar(50)")
  6641. .HasCharSet("utf8")
  6642. .HasCollation("utf8_general_ci");
  6643. entity.Property(e => e.WeChatOpenAppSecret)
  6644. .HasColumnType("varchar(50)")
  6645. .HasCharSet("utf8")
  6646. .HasCollation("utf8_general_ci");
  6647. entity.Property(e => e.WeChatPayKey)
  6648. .HasColumnType("varchar(50)")
  6649. .HasCharSet("utf8")
  6650. .HasCollation("utf8_general_ci");
  6651. });
  6652. modelBuilder.Entity<PullNewAct>(entity =>
  6653. {
  6654. entity.Property(e => e.Id).HasColumnType("int(11)");
  6655. entity.Property(e => e.ActEffectEndDate).HasColumnType("datetime");
  6656. entity.Property(e => e.ActEffectStartDate).HasColumnType("datetime");
  6657. entity.Property(e => e.ActStdCond)
  6658. .HasColumnType("varchar(32)")
  6659. .HasCharSet("utf8")
  6660. .HasCollation("utf8_general_ci");
  6661. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6662. entity.Property(e => e.CreateMan)
  6663. .HasColumnType("varchar(50)")
  6664. .HasCharSet("utf8")
  6665. .HasCollation("utf8_general_ci");
  6666. entity.Property(e => e.ProductName)
  6667. .HasColumnType("varchar(32)")
  6668. .HasCharSet("utf8")
  6669. .HasCollation("utf8_general_ci");
  6670. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  6671. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6672. entity.Property(e => e.Remark)
  6673. .HasColumnType("varchar(128)")
  6674. .HasCharSet("utf8")
  6675. .HasCollation("utf8_general_ci");
  6676. entity.Property(e => e.SeoDescription)
  6677. .HasColumnType("varchar(500)")
  6678. .HasCharSet("utf8")
  6679. .HasCollation("utf8_general_ci");
  6680. entity.Property(e => e.SeoKeyword)
  6681. .HasColumnType("varchar(200)")
  6682. .HasCharSet("utf8")
  6683. .HasCollation("utf8_general_ci");
  6684. entity.Property(e => e.SeoTitle)
  6685. .HasColumnType("varchar(100)")
  6686. .HasCharSet("utf8")
  6687. .HasCollation("utf8_general_ci");
  6688. entity.Property(e => e.SnDelayDay).HasColumnType("int(11)");
  6689. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6690. entity.Property(e => e.Status).HasColumnType("int(11)");
  6691. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6692. entity.Property(e => e.UpdateMan)
  6693. .HasColumnType("varchar(50)")
  6694. .HasCharSet("utf8")
  6695. .HasCollation("utf8_general_ci");
  6696. entity.Property(e => e.Version).HasColumnType("int(11)");
  6697. });
  6698. modelBuilder.Entity<PullNewDetail>(entity =>
  6699. {
  6700. entity.Property(e => e.Id).HasColumnType("int(11)");
  6701. entity.Property(e => e.BizStatus).HasColumnType("int(11)");
  6702. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6703. entity.Property(e => e.CreateMan)
  6704. .HasColumnType("varchar(50)")
  6705. .HasCharSet("utf8")
  6706. .HasCollation("utf8_general_ci");
  6707. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6708. entity.Property(e => e.RecMallBrandId).HasColumnType("int(11)");
  6709. entity.Property(e => e.RecMallOrder)
  6710. .HasColumnType("varchar(32)")
  6711. .HasCharSet("utf8")
  6712. .HasCollation("utf8_general_ci");
  6713. entity.Property(e => e.RecMallOrderTime).HasColumnType("datetime");
  6714. entity.Property(e => e.RecMallProductName)
  6715. .HasColumnType("varchar(32)")
  6716. .HasCharSet("utf8")
  6717. .HasCollation("utf8_general_ci");
  6718. entity.Property(e => e.RecMallProductNum).HasColumnType("int(11)");
  6719. entity.Property(e => e.RecMallSendTime).HasColumnType("datetime");
  6720. entity.Property(e => e.RecUserId).HasColumnType("int(11)");
  6721. entity.Property(e => e.RecUserType).HasColumnType("int(11)");
  6722. entity.Property(e => e.RegDate).HasColumnType("datetime");
  6723. entity.Property(e => e.Remark)
  6724. .HasColumnType("varchar(64)")
  6725. .HasCharSet("utf8")
  6726. .HasCollation("utf8_general_ci");
  6727. entity.Property(e => e.RewardStatus).HasColumnType("int(11)");
  6728. entity.Property(e => e.SeoDescription)
  6729. .HasColumnType("varchar(500)")
  6730. .HasCharSet("utf8")
  6731. .HasCollation("utf8_general_ci");
  6732. entity.Property(e => e.SeoKeyword)
  6733. .HasColumnType("varchar(200)")
  6734. .HasCharSet("utf8")
  6735. .HasCollation("utf8_general_ci");
  6736. entity.Property(e => e.SeoTitle)
  6737. .HasColumnType("varchar(100)")
  6738. .HasCharSet("utf8")
  6739. .HasCollation("utf8_general_ci");
  6740. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6741. entity.Property(e => e.StatDate)
  6742. .HasColumnType("varchar(8)")
  6743. .HasCharSet("utf8")
  6744. .HasCollation("utf8_general_ci");
  6745. entity.Property(e => e.StatMonth)
  6746. .HasColumnType("varchar(6)")
  6747. .HasCharSet("utf8")
  6748. .HasCollation("utf8_general_ci");
  6749. entity.Property(e => e.StatType).HasColumnType("int(11)");
  6750. entity.Property(e => e.Status).HasColumnType("int(11)");
  6751. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6752. entity.Property(e => e.UpdateMan)
  6753. .HasColumnType("varchar(50)")
  6754. .HasCharSet("utf8")
  6755. .HasCollation("utf8_general_ci");
  6756. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6757. entity.Property(e => e.Version).HasColumnType("int(11)");
  6758. });
  6759. modelBuilder.Entity<PullnewSummary>(entity =>
  6760. {
  6761. entity.Property(e => e.Id).HasColumnType("int(11)");
  6762. entity.Property(e => e.BizSnDelayDay).HasColumnType("int(11)");
  6763. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6764. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6765. entity.Property(e => e.CreateMan)
  6766. .HasColumnType("varchar(50)")
  6767. .HasCharSet("utf8")
  6768. .HasCollation("utf8_general_ci");
  6769. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6770. entity.Property(e => e.RecUserAuthNum).HasColumnType("int(11)");
  6771. entity.Property(e => e.RecUserDeliveryStdNum).HasColumnType("int(11)");
  6772. entity.Property(e => e.Remark)
  6773. .HasColumnType("varchar(64)")
  6774. .HasCharSet("utf8")
  6775. .HasCollation("utf8_general_ci");
  6776. entity.Property(e => e.RuleSnDelayDay).HasColumnType("int(11)");
  6777. entity.Property(e => e.SeoDescription)
  6778. .HasColumnType("varchar(500)")
  6779. .HasCharSet("utf8")
  6780. .HasCollation("utf8_general_ci");
  6781. entity.Property(e => e.SeoKeyword)
  6782. .HasColumnType("varchar(200)")
  6783. .HasCharSet("utf8")
  6784. .HasCollation("utf8_general_ci");
  6785. entity.Property(e => e.SeoTitle)
  6786. .HasColumnType("varchar(100)")
  6787. .HasCharSet("utf8")
  6788. .HasCollation("utf8_general_ci");
  6789. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6790. entity.Property(e => e.StatDate)
  6791. .HasColumnType("varchar(8)")
  6792. .HasCharSet("utf8")
  6793. .HasCollation("utf8_general_ci");
  6794. entity.Property(e => e.StatMonth)
  6795. .HasColumnType("varchar(6)")
  6796. .HasCharSet("utf8")
  6797. .HasCollation("utf8_general_ci");
  6798. entity.Property(e => e.Status).HasColumnType("int(11)");
  6799. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6800. entity.Property(e => e.UpdateMan)
  6801. .HasColumnType("varchar(50)")
  6802. .HasCharSet("utf8")
  6803. .HasCollation("utf8_general_ci");
  6804. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6805. entity.Property(e => e.Version).HasColumnType("int(11)");
  6806. });
  6807. modelBuilder.Entity<RightDic>(entity =>
  6808. {
  6809. entity.Property(e => e.Id)
  6810. .HasColumnName("ID")
  6811. .HasColumnType("varchar(50)")
  6812. .HasCharSet("utf8")
  6813. .HasCollation("utf8_general_ci");
  6814. entity.Property(e => e.Icon)
  6815. .HasColumnType("varchar(50)")
  6816. .HasCharSet("utf8")
  6817. .HasCollation("utf8_general_ci");
  6818. entity.Property(e => e.MainDataList)
  6819. .HasColumnType("bit(1)")
  6820. .HasDefaultValueSql("b'0'");
  6821. entity.Property(e => e.MainMenu)
  6822. .HasColumnType("bit(1)")
  6823. .HasDefaultValueSql("b'0'");
  6824. entity.Property(e => e.MainStat)
  6825. .HasColumnType("bit(1)")
  6826. .HasDefaultValueSql("b'0'");
  6827. entity.Property(e => e.Name)
  6828. .HasColumnType("varchar(50)")
  6829. .HasCharSet("utf8")
  6830. .HasCollation("utf8_general_ci");
  6831. entity.Property(e => e.OtherRight)
  6832. .HasColumnType("varchar(500)")
  6833. .HasCharSet("utf8")
  6834. .HasCollation("utf8_general_ci");
  6835. entity.Property(e => e.RightLevel).HasColumnType("int(11)");
  6836. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6837. entity.Property(e => e.Url)
  6838. .HasColumnType("varchar(200)")
  6839. .HasCharSet("utf8")
  6840. .HasCollation("utf8_general_ci");
  6841. });
  6842. modelBuilder.Entity<ServiceCenter>(entity =>
  6843. {
  6844. entity.Property(e => e.Id).HasColumnType("int(11)");
  6845. entity.Property(e => e.CategoryId).HasColumnType("int(11)");
  6846. entity.Property(e => e.Content)
  6847. .HasColumnType("longtext")
  6848. .HasCharSet("utf8")
  6849. .HasCollation("utf8_general_ci");
  6850. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6851. entity.Property(e => e.CreateMan)
  6852. .HasColumnType("varchar(50)")
  6853. .HasCharSet("utf8")
  6854. .HasCollation("utf8_general_ci");
  6855. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6856. entity.Property(e => e.SeoDescription)
  6857. .HasColumnType("varchar(500)")
  6858. .HasCharSet("utf8")
  6859. .HasCollation("utf8_general_ci");
  6860. entity.Property(e => e.SeoKeyword)
  6861. .HasColumnType("varchar(200)")
  6862. .HasCharSet("utf8")
  6863. .HasCollation("utf8_general_ci");
  6864. entity.Property(e => e.SeoTitle)
  6865. .HasColumnType("varchar(100)")
  6866. .HasCharSet("utf8")
  6867. .HasCollation("utf8_general_ci");
  6868. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6869. entity.Property(e => e.Status).HasColumnType("int(11)");
  6870. entity.Property(e => e.SubTitle)
  6871. .HasColumnType("varchar(50)")
  6872. .HasCharSet("utf8")
  6873. .HasCollation("utf8_general_ci");
  6874. entity.Property(e => e.Title)
  6875. .HasColumnType("varchar(50)")
  6876. .HasCharSet("utf8")
  6877. .HasCollation("utf8_general_ci");
  6878. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6879. entity.Property(e => e.UpdateMan)
  6880. .HasColumnType("varchar(50)")
  6881. .HasCharSet("utf8")
  6882. .HasCollation("utf8_general_ci");
  6883. entity.Property(e => e.Version).HasColumnType("int(11)");
  6884. });
  6885. modelBuilder.Entity<SetMerchantTypeRecord>(entity =>
  6886. {
  6887. entity.Property(e => e.Id).HasColumnType("int(11)");
  6888. entity.Property(e => e.ActDate).HasColumnType("datetime");
  6889. entity.Property(e => e.ActStatus)
  6890. .HasColumnType("bit(1)")
  6891. .HasDefaultValueSql("b'0'");
  6892. entity.Property(e => e.BindDate).HasColumnType("datetime");
  6893. entity.Property(e => e.BindStatus)
  6894. .HasColumnType("bit(1)")
  6895. .HasDefaultValueSql("b'0'");
  6896. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6897. entity.Property(e => e.CreditAmount).HasColumnType("decimal(18,2)");
  6898. entity.Property(e => e.FromUserId).HasColumnType("int(11)");
  6899. entity.Property(e => e.IsRecyc)
  6900. .HasColumnType("bit(1)")
  6901. .HasDefaultValueSql("b'0'");
  6902. entity.Property(e => e.MerNo)
  6903. .HasColumnType("varchar(50)")
  6904. .HasCharSet("utf8")
  6905. .HasCollation("utf8_general_ci");
  6906. entity.Property(e => e.Note)
  6907. .HasColumnType("varchar(50)")
  6908. .HasCharSet("utf8")
  6909. .HasCollation("utf8_general_ci");
  6910. entity.Property(e => e.PosSn)
  6911. .HasColumnType("varchar(50)")
  6912. .HasCharSet("utf8")
  6913. .HasCollation("utf8_general_ci");
  6914. entity.Property(e => e.PosSnType).HasColumnType("int(11)");
  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.ToUserId).HasColumnType("int(11)");
  6931. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6932. });
  6933. modelBuilder.Entity<SmallStoreHouse>(entity =>
  6934. {
  6935. entity.Property(e => e.Id).HasColumnType("int(11)");
  6936. entity.Property(e => e.BrandId)
  6937. .HasColumnType("varchar(30)")
  6938. .HasCharSet("utf8")
  6939. .HasCollation("utf8_general_ci");
  6940. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6941. entity.Property(e => e.FromStoreId).HasColumnType("int(11)");
  6942. entity.Property(e => e.LaveNum).HasColumnType("int(11)");
  6943. entity.Property(e => e.Mobile)
  6944. .HasColumnType("varchar(11)")
  6945. .HasCharSet("utf8")
  6946. .HasCollation("utf8_general_ci");
  6947. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6948. entity.Property(e => e.Remark)
  6949. .HasColumnType("varchar(128)")
  6950. .HasCharSet("utf8")
  6951. .HasCollation("utf8_general_ci");
  6952. entity.Property(e => e.SeoDescription)
  6953. .HasColumnType("varchar(500)")
  6954. .HasCharSet("utf8")
  6955. .HasCollation("utf8_general_ci");
  6956. entity.Property(e => e.SeoKeyword)
  6957. .HasColumnType("varchar(200)")
  6958. .HasCharSet("utf8")
  6959. .HasCollation("utf8_general_ci");
  6960. entity.Property(e => e.SeoTitle)
  6961. .HasColumnType("varchar(100)")
  6962. .HasCharSet("utf8")
  6963. .HasCollation("utf8_general_ci");
  6964. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6965. entity.Property(e => e.Status).HasColumnType("int(11)");
  6966. entity.Property(e => e.StoreName)
  6967. .HasColumnType("varchar(32)")
  6968. .HasCharSet("utf8")
  6969. .HasCollation("utf8_general_ci");
  6970. entity.Property(e => e.StoreNo)
  6971. .HasColumnType("varchar(16)")
  6972. .HasCharSet("utf8")
  6973. .HasCollation("utf8_general_ci");
  6974. entity.Property(e => e.TotalNum).HasColumnType("int(11)");
  6975. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6976. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6977. });
  6978. modelBuilder.Entity<SpOrderNos>(entity =>
  6979. {
  6980. entity.HasKey(e => e.OrderNo)
  6981. .HasName("PRIMARY");
  6982. entity.Property(e => e.OrderNo)
  6983. .HasColumnType("varchar(50)")
  6984. .HasCharSet("utf8")
  6985. .HasCollation("utf8_general_ci");
  6986. });
  6987. modelBuilder.Entity<StoreBalance>(entity =>
  6988. {
  6989. entity.Property(e => e.Id).HasColumnType("int(11)");
  6990. entity.Property(e => e.AfterLaveNum).HasColumnType("int(11)");
  6991. entity.Property(e => e.AfterOutNum).HasColumnType("int(11)");
  6992. entity.Property(e => e.AfterTotalNum).HasColumnType("int(11)");
  6993. entity.Property(e => e.BeforeLaveNum).HasColumnType("int(11)");
  6994. entity.Property(e => e.BeforeOutNum).HasColumnType("int(11)");
  6995. entity.Property(e => e.BeforeTotalNum).HasColumnType("int(11)");
  6996. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6997. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6998. entity.Property(e => e.CreateMan)
  6999. .HasColumnType("varchar(50)")
  7000. .HasCharSet("utf8")
  7001. .HasCollation("utf8_general_ci");
  7002. entity.Property(e => e.OpStoreNum).HasColumnType("int(11)");
  7003. entity.Property(e => e.OpSymbol)
  7004. .HasColumnType("varchar(1)")
  7005. .HasCharSet("utf8")
  7006. .HasCollation("utf8_general_ci");
  7007. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7008. entity.Property(e => e.SeoDescription)
  7009. .HasColumnType("varchar(500)")
  7010. .HasCharSet("utf8")
  7011. .HasCollation("utf8_general_ci");
  7012. entity.Property(e => e.SeoKeyword)
  7013. .HasColumnType("varchar(200)")
  7014. .HasCharSet("utf8")
  7015. .HasCollation("utf8_general_ci");
  7016. entity.Property(e => e.SeoTitle)
  7017. .HasColumnType("varchar(100)")
  7018. .HasCharSet("utf8")
  7019. .HasCollation("utf8_general_ci");
  7020. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7021. entity.Property(e => e.Status).HasColumnType("int(11)");
  7022. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  7023. entity.Property(e => e.TransRecordNo)
  7024. .HasColumnType("varchar(32)")
  7025. .HasCharSet("utf8")
  7026. .HasCollation("utf8_general_ci");
  7027. entity.Property(e => e.TransType).HasColumnType("int(11)");
  7028. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7029. entity.Property(e => e.UpdateMan)
  7030. .HasColumnType("varchar(50)")
  7031. .HasCharSet("utf8")
  7032. .HasCollation("utf8_general_ci");
  7033. entity.Property(e => e.Version).HasColumnType("int(11)");
  7034. });
  7035. modelBuilder.Entity<StoreChangeHistory>(entity =>
  7036. {
  7037. entity.Property(e => e.Id).HasColumnType("int(11)");
  7038. entity.Property(e => e.BizBatchNo)
  7039. .HasColumnType("varchar(32)")
  7040. .HasCharSet("utf8")
  7041. .HasCollation("utf8_general_ci");
  7042. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  7043. entity.Property(e => e.ChangeRecordNo)
  7044. .HasColumnType("varchar(32)")
  7045. .HasCharSet("utf8")
  7046. .HasCollation("utf8_general_ci");
  7047. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7048. entity.Property(e => e.CreateMan)
  7049. .HasColumnType("varchar(50)")
  7050. .HasCharSet("utf8")
  7051. .HasCollation("utf8_general_ci");
  7052. entity.Property(e => e.DeviceModel)
  7053. .HasColumnType("varchar(32)")
  7054. .HasCharSet("utf8")
  7055. .HasCollation("utf8_general_ci");
  7056. entity.Property(e => e.DeviceType)
  7057. .HasColumnType("varchar(32)")
  7058. .HasCharSet("utf8")
  7059. .HasCollation("utf8_general_ci");
  7060. entity.Property(e => e.DeviceVendor)
  7061. .HasColumnType("varchar(32)")
  7062. .HasCharSet("utf8")
  7063. .HasCollation("utf8_general_ci");
  7064. entity.Property(e => e.FromDate).HasColumnType("datetime");
  7065. entity.Property(e => e.FromRemark)
  7066. .HasColumnType("varchar(64)")
  7067. .HasCharSet("utf8")
  7068. .HasCollation("utf8_general_ci");
  7069. entity.Property(e => e.FromUserId).HasColumnType("int(11)");
  7070. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7071. entity.Property(e => e.SeoDescription)
  7072. .HasColumnType("varchar(500)")
  7073. .HasCharSet("utf8")
  7074. .HasCollation("utf8_general_ci");
  7075. entity.Property(e => e.SeoKeyword)
  7076. .HasColumnType("varchar(200)")
  7077. .HasCharSet("utf8")
  7078. .HasCollation("utf8_general_ci");
  7079. entity.Property(e => e.SeoTitle)
  7080. .HasColumnType("varchar(100)")
  7081. .HasCharSet("utf8")
  7082. .HasCollation("utf8_general_ci");
  7083. entity.Property(e => e.SnNo)
  7084. .HasColumnType("varchar(32)")
  7085. .HasCharSet("utf8")
  7086. .HasCollation("utf8_general_ci");
  7087. entity.Property(e => e.SnType).HasColumnType("int(11)");
  7088. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7089. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  7090. entity.Property(e => e.Status).HasColumnType("int(11)");
  7091. entity.Property(e => e.StockOpDirect).HasColumnType("int(11)");
  7092. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  7093. entity.Property(e => e.ToDate).HasColumnType("datetime");
  7094. entity.Property(e => e.ToRemark)
  7095. .HasColumnType("varchar(64)")
  7096. .HasCharSet("utf8")
  7097. .HasCollation("utf8_general_ci");
  7098. entity.Property(e => e.ToStoreId).HasColumnType("int(11)");
  7099. entity.Property(e => e.ToUserId).HasColumnType("int(11)");
  7100. entity.Property(e => e.TransType).HasColumnType("int(11)");
  7101. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7102. entity.Property(e => e.UpdateMan)
  7103. .HasColumnType("varchar(50)")
  7104. .HasCharSet("utf8")
  7105. .HasCollation("utf8_general_ci");
  7106. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7107. entity.Property(e => e.Version).HasColumnType("int(11)");
  7108. });
  7109. modelBuilder.Entity<StoreForCode>(entity =>
  7110. {
  7111. entity.HasKey(e => e.Code)
  7112. .HasName("PRIMARY");
  7113. entity.Property(e => e.Code)
  7114. .HasColumnType("varchar(30)")
  7115. .HasCharSet("utf8")
  7116. .HasCollation("utf8_general_ci");
  7117. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  7118. });
  7119. modelBuilder.Entity<StoreForName>(entity =>
  7120. {
  7121. entity.HasKey(e => e.Name)
  7122. .HasName("PRIMARY");
  7123. entity.Property(e => e.Name)
  7124. .HasColumnType("varchar(30)")
  7125. .HasCharSet("utf8")
  7126. .HasCollation("utf8_general_ci");
  7127. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  7128. });
  7129. modelBuilder.Entity<StoreHouse>(entity =>
  7130. {
  7131. entity.Property(e => e.Id).HasColumnType("int(11)");
  7132. entity.Property(e => e.Address)
  7133. .HasColumnType("varchar(128)")
  7134. .HasCharSet("utf8")
  7135. .HasCollation("utf8_general_ci");
  7136. entity.Property(e => e.Areas)
  7137. .HasColumnType("varchar(30)")
  7138. .HasCharSet("utf8")
  7139. .HasCollation("utf8_general_ci");
  7140. entity.Property(e => e.AuthDate).HasColumnType("datetime");
  7141. entity.Property(e => e.AuthFlag)
  7142. .HasColumnType("bit(1)")
  7143. .HasDefaultValueSql("b'0'");
  7144. entity.Property(e => e.BrandId)
  7145. .HasColumnType("varchar(30)")
  7146. .HasCharSet("utf8")
  7147. .HasCollation("utf8_general_ci");
  7148. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7149. entity.Property(e => e.CreateMan)
  7150. .HasColumnType("varchar(50)")
  7151. .HasCharSet("utf8")
  7152. .HasCollation("utf8_general_ci");
  7153. entity.Property(e => e.LaveNum).HasColumnType("int(11)");
  7154. entity.Property(e => e.LimitTopUserId)
  7155. .HasColumnType("varchar(100)")
  7156. .HasCharSet("utf8")
  7157. .HasCollation("utf8_general_ci");
  7158. entity.Property(e => e.ManageMobile)
  7159. .HasColumnType("varchar(11)")
  7160. .HasCharSet("utf8")
  7161. .HasCollation("utf8_general_ci");
  7162. entity.Property(e => e.ManageUserId).HasColumnType("int(11)");
  7163. entity.Property(e => e.ManagerEmail)
  7164. .HasColumnType("varchar(32)")
  7165. .HasCharSet("utf8")
  7166. .HasCollation("utf8_general_ci");
  7167. entity.Property(e => e.OutNum).HasColumnType("int(11)");
  7168. entity.Property(e => e.ParentNav)
  7169. .HasColumnType("longtext")
  7170. .HasCharSet("utf8")
  7171. .HasCollation("utf8_general_ci");
  7172. entity.Property(e => e.ParentStoreId).HasColumnType("int(11)");
  7173. entity.Property(e => e.ProductName)
  7174. .HasColumnType("varchar(32)")
  7175. .HasCharSet("utf8")
  7176. .HasCollation("utf8_general_ci");
  7177. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7178. entity.Property(e => e.Remark)
  7179. .HasColumnType("varchar(128)")
  7180. .HasCharSet("utf8")
  7181. .HasCollation("utf8_general_ci");
  7182. entity.Property(e => e.SeoDescription)
  7183. .HasColumnType("varchar(500)")
  7184. .HasCharSet("utf8")
  7185. .HasCollation("utf8_general_ci");
  7186. entity.Property(e => e.SeoKeyword)
  7187. .HasColumnType("varchar(200)")
  7188. .HasCharSet("utf8")
  7189. .HasCollation("utf8_general_ci");
  7190. entity.Property(e => e.SeoTitle)
  7191. .HasColumnType("varchar(100)")
  7192. .HasCharSet("utf8")
  7193. .HasCollation("utf8_general_ci");
  7194. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7195. entity.Property(e => e.Status).HasColumnType("int(11)");
  7196. entity.Property(e => e.StoreKind).HasColumnType("int(11)");
  7197. entity.Property(e => e.StoreName)
  7198. .HasColumnType("varchar(32)")
  7199. .HasCharSet("utf8")
  7200. .HasCollation("utf8_general_ci");
  7201. entity.Property(e => e.StoreNo)
  7202. .HasColumnType("varchar(16)")
  7203. .HasCharSet("utf8")
  7204. .HasCollation("utf8_general_ci");
  7205. entity.Property(e => e.StoreStatus).HasColumnType("int(11)");
  7206. entity.Property(e => e.StoreType).HasColumnType("int(11)");
  7207. entity.Property(e => e.TotalNum).HasColumnType("int(11)");
  7208. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7209. entity.Property(e => e.UpdateMan)
  7210. .HasColumnType("varchar(50)")
  7211. .HasCharSet("utf8")
  7212. .HasCollation("utf8_general_ci");
  7213. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7214. entity.Property(e => e.Version).HasColumnType("int(11)");
  7215. });
  7216. modelBuilder.Entity<StoreHouseAmountRecord>(entity =>
  7217. {
  7218. entity.Property(e => e.Id).HasColumnType("int(11)");
  7219. entity.Property(e => e.AfterAmount).HasColumnType("decimal(18,2)");
  7220. entity.Property(e => e.AmountType).HasColumnType("int(11)");
  7221. entity.Property(e => e.ApplyId).HasColumnType("int(11)");
  7222. entity.Property(e => e.BeforeAmount).HasColumnType("decimal(18,2)");
  7223. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7224. entity.Property(e => e.OperateType).HasColumnType("int(11)");
  7225. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7226. entity.Property(e => e.SeoDescription)
  7227. .HasColumnType("varchar(500)")
  7228. .HasCharSet("utf8")
  7229. .HasCollation("utf8_general_ci");
  7230. entity.Property(e => e.SeoKeyword)
  7231. .HasColumnType("varchar(200)")
  7232. .HasCharSet("utf8")
  7233. .HasCollation("utf8_general_ci");
  7234. entity.Property(e => e.SeoTitle)
  7235. .HasColumnType("varchar(100)")
  7236. .HasCharSet("utf8")
  7237. .HasCollation("utf8_general_ci");
  7238. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7239. entity.Property(e => e.Status).HasColumnType("int(11)");
  7240. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7241. entity.Property(e => e.UseAmount).HasColumnType("decimal(18,2)");
  7242. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7243. });
  7244. modelBuilder.Entity<StoreMachineApply>(entity =>
  7245. {
  7246. entity.Property(e => e.Id).HasColumnType("int(11)");
  7247. entity.Property(e => e.ApplyNo)
  7248. .HasColumnType("varchar(50)")
  7249. .HasCharSet("utf8")
  7250. .HasCollation("utf8_general_ci");
  7251. entity.Property(e => e.ApplyNum).HasColumnType("int(11)");
  7252. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  7253. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7254. entity.Property(e => e.ErpCode)
  7255. .HasColumnType("varchar(50)")
  7256. .HasCharSet("utf8")
  7257. .HasCollation("utf8_general_ci");
  7258. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7259. entity.Property(e => e.SendMode)
  7260. .HasColumnType("varchar(50)")
  7261. .HasCharSet("utf8")
  7262. .HasCollation("utf8_general_ci");
  7263. entity.Property(e => e.SendNum).HasColumnType("int(11)");
  7264. entity.Property(e => e.SendSn)
  7265. .HasColumnType("mediumtext")
  7266. .HasCharSet("utf8")
  7267. .HasCollation("utf8_general_ci");
  7268. entity.Property(e => e.SeoDescription)
  7269. .HasColumnType("varchar(500)")
  7270. .HasCharSet("utf8")
  7271. .HasCollation("utf8_general_ci");
  7272. entity.Property(e => e.SeoKeyword)
  7273. .HasColumnType("varchar(200)")
  7274. .HasCharSet("utf8")
  7275. .HasCollation("utf8_general_ci");
  7276. entity.Property(e => e.SeoTitle)
  7277. .HasColumnType("varchar(100)")
  7278. .HasCharSet("utf8")
  7279. .HasCollation("utf8_general_ci");
  7280. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7281. entity.Property(e => e.Status).HasColumnType("int(11)");
  7282. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7283. entity.Property(e => e.UseAmount).HasColumnType("decimal(18,2)");
  7284. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7285. });
  7286. modelBuilder.Entity<StoreMallOrderSummary>(entity =>
  7287. {
  7288. entity.Property(e => e.Id).HasColumnType("int(11)");
  7289. entity.Property(e => e.AgentStoreId).HasColumnType("int(11)");
  7290. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  7291. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7292. entity.Property(e => e.CreateMan)
  7293. .HasColumnType("varchar(50)")
  7294. .HasCharSet("utf8")
  7295. .HasCollation("utf8_general_ci");
  7296. entity.Property(e => e.OrderAmt).HasColumnType("int(11)");
  7297. entity.Property(e => e.OrderNum).HasColumnType("int(11)");
  7298. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7299. entity.Property(e => e.RefundAmt).HasColumnType("decimal(18,2)");
  7300. entity.Property(e => e.RefundOrderNum).HasColumnType("int(11)");
  7301. entity.Property(e => e.Remark)
  7302. .HasColumnType("varchar(64)")
  7303. .HasCharSet("utf8")
  7304. .HasCollation("utf8_general_ci");
  7305. entity.Property(e => e.SeoDescription)
  7306. .HasColumnType("varchar(500)")
  7307. .HasCharSet("utf8")
  7308. .HasCollation("utf8_general_ci");
  7309. entity.Property(e => e.SeoKeyword)
  7310. .HasColumnType("varchar(200)")
  7311. .HasCharSet("utf8")
  7312. .HasCollation("utf8_general_ci");
  7313. entity.Property(e => e.SeoTitle)
  7314. .HasColumnType("varchar(100)")
  7315. .HasCharSet("utf8")
  7316. .HasCollation("utf8_general_ci");
  7317. entity.Property(e => e.SettleAmt).HasColumnType("decimal(18,2)");
  7318. entity.Property(e => e.SettleStatus).HasColumnType("int(11)");
  7319. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7320. entity.Property(e => e.Status).HasColumnType("int(11)");
  7321. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  7322. entity.Property(e => e.TradeMonth)
  7323. .HasColumnType("varchar(6)")
  7324. .HasCharSet("utf8")
  7325. .HasCollation("utf8_general_ci");
  7326. entity.Property(e => e.UnitPrice).HasColumnType("decimal(18,2)");
  7327. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7328. entity.Property(e => e.UpdateMan)
  7329. .HasColumnType("varchar(50)")
  7330. .HasCharSet("utf8")
  7331. .HasCollation("utf8_general_ci");
  7332. entity.Property(e => e.Version).HasColumnType("int(11)");
  7333. });
  7334. modelBuilder.Entity<StoreSnActivateSummary>(entity =>
  7335. {
  7336. entity.Property(e => e.Id).HasColumnType("int(11)");
  7337. entity.Property(e => e.ActivateNum).HasColumnType("int(11)");
  7338. entity.Property(e => e.AgentStoreId).HasColumnType("int(11)");
  7339. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  7340. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7341. entity.Property(e => e.CreateMan)
  7342. .HasColumnType("varchar(50)")
  7343. .HasCharSet("utf8")
  7344. .HasCollation("utf8_general_ci");
  7345. entity.Property(e => e.EffectActNum).HasColumnType("int(11)");
  7346. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7347. entity.Property(e => e.RejectActNum).HasColumnType("int(11)");
  7348. entity.Property(e => e.Remark)
  7349. .HasColumnType("varchar(64)")
  7350. .HasCharSet("utf8")
  7351. .HasCollation("utf8_general_ci");
  7352. entity.Property(e => e.SeoDescription)
  7353. .HasColumnType("varchar(500)")
  7354. .HasCharSet("utf8")
  7355. .HasCollation("utf8_general_ci");
  7356. entity.Property(e => e.SeoKeyword)
  7357. .HasColumnType("varchar(200)")
  7358. .HasCharSet("utf8")
  7359. .HasCollation("utf8_general_ci");
  7360. entity.Property(e => e.SeoTitle)
  7361. .HasColumnType("varchar(100)")
  7362. .HasCharSet("utf8")
  7363. .HasCollation("utf8_general_ci");
  7364. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7365. entity.Property(e => e.Status).HasColumnType("int(11)");
  7366. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  7367. entity.Property(e => e.TradeDate)
  7368. .HasColumnType("varchar(8)")
  7369. .HasCharSet("utf8")
  7370. .HasCollation("utf8_general_ci");
  7371. entity.Property(e => e.TradeMonth)
  7372. .HasColumnType("varchar(6)")
  7373. .HasCharSet("utf8")
  7374. .HasCollation("utf8_general_ci");
  7375. entity.Property(e => e.TransferActNum).HasColumnType("int(11)");
  7376. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7377. entity.Property(e => e.UpdateMan)
  7378. .HasColumnType("varchar(50)")
  7379. .HasCharSet("utf8")
  7380. .HasCollation("utf8_general_ci");
  7381. entity.Property(e => e.UserApplyNum).HasColumnType("int(11)");
  7382. entity.Property(e => e.Version).HasColumnType("int(11)");
  7383. });
  7384. modelBuilder.Entity<StoreStockChange>(entity =>
  7385. {
  7386. entity.Property(e => e.Id).HasColumnType("int(11)");
  7387. entity.Property(e => e.ActRewardUserId).HasColumnType("int(11)");
  7388. entity.Property(e => e.ActiveStatus).HasColumnType("int(11)");
  7389. entity.Property(e => e.BindMerchant).HasColumnType("int(11)");
  7390. entity.Property(e => e.BindStatus).HasColumnType("int(11)");
  7391. entity.Property(e => e.BizBatchNo)
  7392. .HasColumnType("varchar(32)")
  7393. .HasCharSet("utf8")
  7394. .HasCollation("utf8_general_ci");
  7395. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  7396. entity.Property(e => e.BrandType)
  7397. .HasColumnType("varchar(10)")
  7398. .HasCharSet("utf8")
  7399. .HasCollation("utf8_general_ci");
  7400. entity.Property(e => e.ChangeNo)
  7401. .HasColumnType("varchar(32)")
  7402. .HasCharSet("utf8")
  7403. .HasCollation("utf8_general_ci");
  7404. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7405. entity.Property(e => e.CreateMan)
  7406. .HasColumnType("varchar(50)")
  7407. .HasCharSet("utf8")
  7408. .HasCollation("utf8_general_ci");
  7409. entity.Property(e => e.DeviceModel)
  7410. .HasColumnType("varchar(32)")
  7411. .HasCharSet("utf8")
  7412. .HasCollation("utf8_general_ci");
  7413. entity.Property(e => e.DeviceType)
  7414. .HasColumnType("varchar(32)")
  7415. .HasCharSet("utf8")
  7416. .HasCollation("utf8_general_ci");
  7417. entity.Property(e => e.DeviceVendor)
  7418. .HasColumnType("varchar(32)")
  7419. .HasCharSet("utf8")
  7420. .HasCollation("utf8_general_ci");
  7421. entity.Property(e => e.ExpressNo)
  7422. .HasColumnType("varchar(32)")
  7423. .HasCharSet("utf8")
  7424. .HasCollation("utf8_general_ci");
  7425. entity.Property(e => e.FromDate).HasColumnType("datetime");
  7426. entity.Property(e => e.FromRemark)
  7427. .HasColumnType("varchar(64)")
  7428. .HasCharSet("utf8")
  7429. .HasCollation("utf8_general_ci");
  7430. entity.Property(e => e.FromUserId).HasColumnType("int(11)");
  7431. entity.Property(e => e.ProductName)
  7432. .HasColumnType("varchar(32)")
  7433. .HasCharSet("utf8")
  7434. .HasCollation("utf8_general_ci");
  7435. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7436. entity.Property(e => e.SeoDescription)
  7437. .HasColumnType("varchar(500)")
  7438. .HasCharSet("utf8")
  7439. .HasCollation("utf8_general_ci");
  7440. entity.Property(e => e.SeoKeyword)
  7441. .HasColumnType("varchar(200)")
  7442. .HasCharSet("utf8")
  7443. .HasCollation("utf8_general_ci");
  7444. entity.Property(e => e.SeoTitle)
  7445. .HasColumnType("varchar(100)")
  7446. .HasCharSet("utf8")
  7447. .HasCollation("utf8_general_ci");
  7448. entity.Property(e => e.SnNo)
  7449. .HasColumnType("varchar(32)")
  7450. .HasCharSet("utf8")
  7451. .HasCollation("utf8_general_ci");
  7452. entity.Property(e => e.SnStatus).HasColumnType("int(11)");
  7453. entity.Property(e => e.SnType).HasColumnType("int(11)");
  7454. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7455. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  7456. entity.Property(e => e.Status).HasColumnType("int(11)");
  7457. entity.Property(e => e.StockOpDirect).HasColumnType("int(11)");
  7458. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  7459. entity.Property(e => e.ToDate).HasColumnType("datetime");
  7460. entity.Property(e => e.ToRemark)
  7461. .HasColumnType("varchar(64)")
  7462. .HasCharSet("utf8")
  7463. .HasCollation("utf8_general_ci");
  7464. entity.Property(e => e.ToStoreId).HasColumnType("int(11)");
  7465. entity.Property(e => e.ToUserId).HasColumnType("int(11)");
  7466. entity.Property(e => e.TransType).HasColumnType("int(11)");
  7467. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7468. entity.Property(e => e.UpdateMan)
  7469. .HasColumnType("varchar(50)")
  7470. .HasCharSet("utf8")
  7471. .HasCollation("utf8_general_ci");
  7472. entity.Property(e => e.Version).HasColumnType("int(11)");
  7473. });
  7474. modelBuilder.Entity<StoreSwapSn>(entity =>
  7475. {
  7476. entity.Property(e => e.Id).HasColumnType("int(11)");
  7477. entity.Property(e => e.ActType).HasColumnType("int(11)");
  7478. entity.Property(e => e.ActTypeDesc)
  7479. .HasColumnType("varchar(64)")
  7480. .HasCharSet("utf8")
  7481. .HasCollation("utf8_general_ci");
  7482. entity.Property(e => e.BizStatus).HasColumnType("int(11)");
  7483. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  7484. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7485. entity.Property(e => e.CreateMan)
  7486. .HasColumnType("varchar(50)")
  7487. .HasCharSet("utf8")
  7488. .HasCollation("utf8_general_ci");
  7489. entity.Property(e => e.PosType)
  7490. .HasColumnType("varchar(32)")
  7491. .HasCharSet("utf8")
  7492. .HasCollation("utf8_general_ci");
  7493. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7494. entity.Property(e => e.Remark)
  7495. .HasColumnType("varchar(128)")
  7496. .HasCharSet("utf8")
  7497. .HasCollation("utf8_general_ci");
  7498. entity.Property(e => e.RiskStatus).HasColumnType("int(11)");
  7499. entity.Property(e => e.SeoDescription)
  7500. .HasColumnType("varchar(500)")
  7501. .HasCharSet("utf8")
  7502. .HasCollation("utf8_general_ci");
  7503. entity.Property(e => e.SeoKeyword)
  7504. .HasColumnType("varchar(200)")
  7505. .HasCharSet("utf8")
  7506. .HasCollation("utf8_general_ci");
  7507. entity.Property(e => e.SeoTitle)
  7508. .HasColumnType("varchar(100)")
  7509. .HasCharSet("utf8")
  7510. .HasCollation("utf8_general_ci");
  7511. entity.Property(e => e.SnNo)
  7512. .HasColumnType("varchar(32)")
  7513. .HasCharSet("utf8")
  7514. .HasCollation("utf8_general_ci");
  7515. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  7516. entity.Property(e => e.SnType).HasColumnType("int(11)");
  7517. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7518. entity.Property(e => e.StandardDate).HasColumnType("datetime");
  7519. entity.Property(e => e.Status).HasColumnType("int(11)");
  7520. entity.Property(e => e.SwapApplyDate).HasColumnType("datetime");
  7521. entity.Property(e => e.SwapApplyOrderNo)
  7522. .HasColumnType("varchar(32)")
  7523. .HasCharSet("utf8")
  7524. .HasCollation("utf8_general_ci");
  7525. entity.Property(e => e.SwapExtProductTypes)
  7526. .HasColumnType("varchar(16)")
  7527. .HasCharSet("utf8")
  7528. .HasCollation("utf8_general_ci");
  7529. entity.Property(e => e.SwapSnNo)
  7530. .HasColumnType("varchar(32)")
  7531. .HasCharSet("utf8")
  7532. .HasCollation("utf8_general_ci");
  7533. entity.Property(e => e.SwapStatus).HasColumnType("int(11)");
  7534. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7535. entity.Property(e => e.UpdateMan)
  7536. .HasColumnType("varchar(50)")
  7537. .HasCharSet("utf8")
  7538. .HasCollation("utf8_general_ci");
  7539. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7540. entity.Property(e => e.Version).HasColumnType("int(11)");
  7541. });
  7542. modelBuilder.Entity<SysAdmin>(entity =>
  7543. {
  7544. entity.Property(e => e.Id).HasColumnType("int(11)");
  7545. entity.Property(e => e.AdminName)
  7546. .HasColumnType("varchar(50)")
  7547. .HasCharSet("utf8")
  7548. .HasCollation("utf8_general_ci");
  7549. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7550. entity.Property(e => e.CreateMan)
  7551. .HasColumnType("varchar(50)")
  7552. .HasCharSet("utf8")
  7553. .HasCollation("utf8_general_ci");
  7554. entity.Property(e => e.LastLoginDate).HasColumnType("datetime");
  7555. entity.Property(e => e.Password)
  7556. .HasColumnType("varchar(32)")
  7557. .HasCharSet("utf8")
  7558. .HasCollation("utf8_general_ci");
  7559. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7560. entity.Property(e => e.RealName)
  7561. .HasColumnType("varchar(50)")
  7562. .HasCharSet("utf8")
  7563. .HasCollation("utf8_general_ci");
  7564. entity.Property(e => e.Role)
  7565. .HasColumnType("varchar(30)")
  7566. .HasCharSet("utf8")
  7567. .HasCollation("utf8_general_ci");
  7568. entity.Property(e => e.SeoDescription)
  7569. .HasColumnType("varchar(500)")
  7570. .HasCharSet("utf8")
  7571. .HasCollation("utf8_general_ci");
  7572. entity.Property(e => e.SeoKeyword)
  7573. .HasColumnType("varchar(200)")
  7574. .HasCharSet("utf8")
  7575. .HasCollation("utf8_general_ci");
  7576. entity.Property(e => e.SeoTitle)
  7577. .HasColumnType("varchar(100)")
  7578. .HasCharSet("utf8")
  7579. .HasCollation("utf8_general_ci");
  7580. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7581. entity.Property(e => e.Status).HasColumnType("int(11)");
  7582. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7583. entity.Property(e => e.UpdateMan)
  7584. .HasColumnType("varchar(50)")
  7585. .HasCharSet("utf8")
  7586. .HasCollation("utf8_general_ci");
  7587. entity.Property(e => e.Version).HasColumnType("int(11)");
  7588. });
  7589. modelBuilder.Entity<SysAdminRole>(entity =>
  7590. {
  7591. entity.Property(e => e.Id).HasColumnType("int(11)");
  7592. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7593. entity.Property(e => e.CreateMan)
  7594. .HasColumnType("varchar(50)")
  7595. .HasCharSet("utf8")
  7596. .HasCollation("utf8_general_ci");
  7597. entity.Property(e => e.Details)
  7598. .HasColumnType("longtext")
  7599. .HasCharSet("utf8")
  7600. .HasCollation("utf8_general_ci");
  7601. entity.Property(e => e.Name)
  7602. .HasColumnType("varchar(50)")
  7603. .HasCharSet("utf8")
  7604. .HasCollation("utf8_general_ci");
  7605. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7606. entity.Property(e => e.RightInfo)
  7607. .HasColumnType("longtext")
  7608. .HasCharSet("utf8")
  7609. .HasCollation("utf8_general_ci");
  7610. entity.Property(e => e.SeoDescription)
  7611. .HasColumnType("varchar(500)")
  7612. .HasCharSet("utf8")
  7613. .HasCollation("utf8_general_ci");
  7614. entity.Property(e => e.SeoKeyword)
  7615. .HasColumnType("varchar(200)")
  7616. .HasCharSet("utf8")
  7617. .HasCollation("utf8_general_ci");
  7618. entity.Property(e => e.SeoTitle)
  7619. .HasColumnType("varchar(100)")
  7620. .HasCharSet("utf8")
  7621. .HasCollation("utf8_general_ci");
  7622. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7623. entity.Property(e => e.Status).HasColumnType("int(11)");
  7624. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7625. entity.Property(e => e.UpdateMan)
  7626. .HasColumnType("varchar(50)")
  7627. .HasCharSet("utf8")
  7628. .HasCollation("utf8_general_ci");
  7629. entity.Property(e => e.Version).HasColumnType("int(11)");
  7630. });
  7631. modelBuilder.Entity<SysLog>(entity =>
  7632. {
  7633. entity.Property(e => e.Id).HasColumnType("int(11)");
  7634. entity.Property(e => e.Contents)
  7635. .HasColumnType("varchar(200)")
  7636. .HasCharSet("utf8")
  7637. .HasCollation("utf8_general_ci");
  7638. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7639. entity.Property(e => e.CreateMan)
  7640. .HasColumnType("varchar(50)")
  7641. .HasCharSet("utf8")
  7642. .HasCollation("utf8_general_ci");
  7643. });
  7644. modelBuilder.Entity<SysRechargeRecord>(entity =>
  7645. {
  7646. entity.Property(e => e.Id).HasColumnType("int(11)");
  7647. entity.Property(e => e.Amount).HasColumnType("decimal(18,2)");
  7648. entity.Property(e => e.BatchCode)
  7649. .HasColumnType("varchar(32)")
  7650. .HasCharSet("utf8")
  7651. .HasCollation("utf8_general_ci");
  7652. entity.Property(e => e.BizTime).HasColumnType("datetime");
  7653. entity.Property(e => e.BizType).HasColumnType("int(11)");
  7654. entity.Property(e => e.ClientIp)
  7655. .HasColumnType("varchar(15)")
  7656. .HasCharSet("utf8")
  7657. .HasCollation("utf8_general_ci");
  7658. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7659. entity.Property(e => e.CreateMan)
  7660. .HasColumnType("varchar(50)")
  7661. .HasCharSet("utf8")
  7662. .HasCollation("utf8_general_ci");
  7663. entity.Property(e => e.PartnerTradeNo)
  7664. .HasColumnType("varchar(32)")
  7665. .HasCharSet("utf8")
  7666. .HasCollation("utf8_general_ci");
  7667. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  7668. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7669. entity.Property(e => e.RechargeRecNo)
  7670. .HasColumnType("varchar(32)")
  7671. .HasCharSet("utf8")
  7672. .HasCollation("utf8_general_ci");
  7673. entity.Property(e => e.SeoDescription)
  7674. .HasColumnType("varchar(500)")
  7675. .HasCharSet("utf8")
  7676. .HasCollation("utf8_general_ci");
  7677. entity.Property(e => e.SeoKeyword)
  7678. .HasColumnType("varchar(200)")
  7679. .HasCharSet("utf8")
  7680. .HasCollation("utf8_general_ci");
  7681. entity.Property(e => e.SeoTitle)
  7682. .HasColumnType("varchar(100)")
  7683. .HasCharSet("utf8")
  7684. .HasCollation("utf8_general_ci");
  7685. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7686. entity.Property(e => e.Status).HasColumnType("int(11)");
  7687. entity.Property(e => e.SyncStatus).HasColumnType("int(11)");
  7688. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7689. entity.Property(e => e.UpdateMan)
  7690. .HasColumnType("varchar(50)")
  7691. .HasCharSet("utf8")
  7692. .HasCollation("utf8_general_ci");
  7693. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7694. entity.Property(e => e.Version).HasColumnType("int(11)");
  7695. });
  7696. modelBuilder.Entity<SystemSet>(entity =>
  7697. {
  7698. entity.Property(e => e.Id).HasColumnType("int(11)");
  7699. entity.Property(e => e.Address)
  7700. .HasColumnType("varchar(100)")
  7701. .HasCharSet("utf8")
  7702. .HasCollation("utf8_general_ci");
  7703. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7704. entity.Property(e => e.CreateMan)
  7705. .HasColumnType("varchar(50)")
  7706. .HasCharSet("utf8")
  7707. .HasCollation("utf8_general_ci");
  7708. entity.Property(e => e.IndexDescription)
  7709. .HasColumnType("longtext")
  7710. .HasCharSet("utf8")
  7711. .HasCollation("utf8_general_ci");
  7712. entity.Property(e => e.IndexKeyword)
  7713. .HasColumnType("varchar(200)")
  7714. .HasCharSet("utf8")
  7715. .HasCollation("utf8_general_ci");
  7716. entity.Property(e => e.Logo)
  7717. .HasColumnType("varchar(200)")
  7718. .HasCharSet("utf8")
  7719. .HasCollation("utf8_general_ci");
  7720. entity.Property(e => e.Phone)
  7721. .HasColumnType("varchar(100)")
  7722. .HasCharSet("utf8")
  7723. .HasCollation("utf8_general_ci");
  7724. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7725. entity.Property(e => e.RightInfo)
  7726. .HasColumnType("longtext")
  7727. .HasCharSet("utf8")
  7728. .HasCollation("utf8_general_ci");
  7729. entity.Property(e => e.SeoDescription)
  7730. .HasColumnType("varchar(500)")
  7731. .HasCharSet("utf8")
  7732. .HasCollation("utf8_general_ci");
  7733. entity.Property(e => e.SeoKeyword)
  7734. .HasColumnType("varchar(200)")
  7735. .HasCharSet("utf8")
  7736. .HasCollation("utf8_general_ci");
  7737. entity.Property(e => e.SeoTitle)
  7738. .HasColumnType("varchar(100)")
  7739. .HasCharSet("utf8")
  7740. .HasCollation("utf8_general_ci");
  7741. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7742. entity.Property(e => e.StartAdPhoto)
  7743. .HasColumnType("varchar(200)")
  7744. .HasCharSet("utf8")
  7745. .HasCollation("utf8_general_ci");
  7746. entity.Property(e => e.Status).HasColumnType("int(11)");
  7747. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7748. entity.Property(e => e.UpdateMan)
  7749. .HasColumnType("varchar(50)")
  7750. .HasCharSet("utf8")
  7751. .HasCollation("utf8_general_ci");
  7752. entity.Property(e => e.UploadAutoWater)
  7753. .HasColumnType("bit(1)")
  7754. .HasDefaultValueSql("b'0'");
  7755. entity.Property(e => e.UploadAutoZoom)
  7756. .HasColumnType("bit(1)")
  7757. .HasDefaultValueSql("b'0'");
  7758. entity.Property(e => e.UploadAutoZoomHeight).HasColumnType("int(11)");
  7759. entity.Property(e => e.UploadAutoZoomQuality).HasColumnType("int(11)");
  7760. entity.Property(e => e.UploadAutoZoomWidth).HasColumnType("int(11)");
  7761. entity.Property(e => e.UploadExt)
  7762. .HasColumnType("varchar(100)")
  7763. .HasCharSet("utf8")
  7764. .HasCollation("utf8_general_ci");
  7765. entity.Property(e => e.UploadMaxSize).HasColumnType("int(11)");
  7766. entity.Property(e => e.UploadOss)
  7767. .HasColumnType("bit(1)")
  7768. .HasDefaultValueSql("b'0'");
  7769. entity.Property(e => e.UploadWaterPath)
  7770. .HasColumnType("varchar(200)")
  7771. .HasCharSet("utf8")
  7772. .HasCollation("utf8_general_ci");
  7773. entity.Property(e => e.UploadWaterPosition)
  7774. .HasColumnType("varchar(15)")
  7775. .HasCharSet("utf8")
  7776. .HasCollation("utf8_general_ci");
  7777. entity.Property(e => e.Version).HasColumnType("int(11)");
  7778. entity.Property(e => e.WebName)
  7779. .HasColumnType("varchar(50)")
  7780. .HasCharSet("utf8")
  7781. .HasCollation("utf8_general_ci");
  7782. entity.Property(e => e.WebStatCode)
  7783. .HasColumnType("longtext")
  7784. .HasCharSet("utf8")
  7785. .HasCollation("utf8_general_ci");
  7786. entity.Property(e => e.WebUrl)
  7787. .HasColumnType("varchar(200)")
  7788. .HasCharSet("utf8")
  7789. .HasCollation("utf8_general_ci");
  7790. });
  7791. modelBuilder.Entity<TeamApply>(entity =>
  7792. {
  7793. entity.Property(e => e.Id).HasColumnType("int(11)");
  7794. entity.Property(e => e.Areas)
  7795. .HasColumnType("varchar(30)")
  7796. .HasCharSet("utf8")
  7797. .HasCollation("utf8_general_ci");
  7798. entity.Property(e => e.AuditRemark)
  7799. .HasColumnType("varchar(64)")
  7800. .HasCharSet("utf8")
  7801. .HasCollation("utf8_general_ci");
  7802. entity.Property(e => e.AuditResult).HasColumnType("int(11)");
  7803. entity.Property(e => e.AuditTime).HasColumnType("datetime");
  7804. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7805. entity.Property(e => e.CreateMan)
  7806. .HasColumnType("varchar(50)")
  7807. .HasCharSet("utf8")
  7808. .HasCollation("utf8_general_ci");
  7809. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  7810. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  7811. entity.Property(e => e.EnterEndDate).HasColumnType("datetime");
  7812. entity.Property(e => e.EnterStartDate).HasColumnType("datetime");
  7813. entity.Property(e => e.ManagerName)
  7814. .HasColumnType("varchar(32)")
  7815. .HasCharSet("utf8")
  7816. .HasCollation("utf8_general_ci");
  7817. entity.Property(e => e.ManagerNo)
  7818. .HasColumnType("varchar(32)")
  7819. .HasCharSet("utf8")
  7820. .HasCollation("utf8_general_ci");
  7821. entity.Property(e => e.MaxUserNum).HasColumnType("int(11)");
  7822. entity.Property(e => e.MinUserNum).HasColumnType("int(11)");
  7823. entity.Property(e => e.NotifyFlag).HasColumnType("int(11)");
  7824. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7825. entity.Property(e => e.Remark)
  7826. .HasColumnType("varchar(64)")
  7827. .HasCharSet("utf8")
  7828. .HasCollation("utf8_general_ci");
  7829. entity.Property(e => e.SeoDescription)
  7830. .HasColumnType("varchar(500)")
  7831. .HasCharSet("utf8")
  7832. .HasCollation("utf8_general_ci");
  7833. entity.Property(e => e.SeoKeyword)
  7834. .HasColumnType("varchar(200)")
  7835. .HasCharSet("utf8")
  7836. .HasCollation("utf8_general_ci");
  7837. entity.Property(e => e.SeoTitle)
  7838. .HasColumnType("varchar(100)")
  7839. .HasCharSet("utf8")
  7840. .HasCollation("utf8_general_ci");
  7841. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7842. entity.Property(e => e.Status).HasColumnType("int(11)");
  7843. entity.Property(e => e.TeamName)
  7844. .HasColumnType("varchar(32)")
  7845. .HasCharSet("utf8")
  7846. .HasCollation("utf8_general_ci");
  7847. entity.Property(e => e.TeamNo)
  7848. .HasColumnType("varchar(32)")
  7849. .HasCharSet("utf8")
  7850. .HasCollation("utf8_general_ci");
  7851. entity.Property(e => e.TeamStatus).HasColumnType("int(11)");
  7852. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7853. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7854. entity.Property(e => e.UpdateMan)
  7855. .HasColumnType("varchar(50)")
  7856. .HasCharSet("utf8")
  7857. .HasCollation("utf8_general_ci");
  7858. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7859. entity.Property(e => e.Version).HasColumnType("int(11)");
  7860. entity.Property(e => e.WatchWord)
  7861. .HasColumnType("varchar(32)")
  7862. .HasCharSet("utf8")
  7863. .HasCollation("utf8_general_ci");
  7864. });
  7865. modelBuilder.Entity<TeamApplyForTeamName>(entity =>
  7866. {
  7867. entity.HasKey(e => e.TeamName)
  7868. .HasName("PRIMARY");
  7869. entity.Property(e => e.TeamName)
  7870. .HasColumnType("varchar(32)")
  7871. .HasCharSet("utf8")
  7872. .HasCollation("utf8_general_ci");
  7873. entity.Property(e => e.TeamId).HasColumnType("int(11)");
  7874. });
  7875. modelBuilder.Entity<TeamApplyForTeamNo>(entity =>
  7876. {
  7877. entity.HasKey(e => e.TeamNo)
  7878. .HasName("PRIMARY");
  7879. entity.Property(e => e.TeamNo)
  7880. .HasColumnType("varchar(32)")
  7881. .HasCharSet("utf8")
  7882. .HasCollation("utf8_general_ci");
  7883. entity.Property(e => e.TeamId).HasColumnType("int(11)");
  7884. });
  7885. modelBuilder.Entity<TeamBlackList>(entity =>
  7886. {
  7887. entity.Property(e => e.Id).HasColumnType("int(11)");
  7888. entity.Property(e => e.BlackStatus).HasColumnType("int(11)");
  7889. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7890. entity.Property(e => e.CreateMan)
  7891. .HasColumnType("varchar(50)")
  7892. .HasCharSet("utf8")
  7893. .HasCollation("utf8_general_ci");
  7894. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  7895. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  7896. entity.Property(e => e.ManagerName)
  7897. .HasColumnType("varchar(32)")
  7898. .HasCharSet("utf8")
  7899. .HasCollation("utf8_general_ci");
  7900. entity.Property(e => e.ManagerNo)
  7901. .HasColumnType("varchar(32)")
  7902. .HasCharSet("utf8")
  7903. .HasCollation("utf8_general_ci");
  7904. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7905. entity.Property(e => e.Remark)
  7906. .HasColumnType("varchar(64)")
  7907. .HasCharSet("utf8")
  7908. .HasCollation("utf8_general_ci");
  7909. entity.Property(e => e.SeoDescription)
  7910. .HasColumnType("varchar(500)")
  7911. .HasCharSet("utf8")
  7912. .HasCollation("utf8_general_ci");
  7913. entity.Property(e => e.SeoKeyword)
  7914. .HasColumnType("varchar(200)")
  7915. .HasCharSet("utf8")
  7916. .HasCollation("utf8_general_ci");
  7917. entity.Property(e => e.SeoTitle)
  7918. .HasColumnType("varchar(100)")
  7919. .HasCharSet("utf8")
  7920. .HasCollation("utf8_general_ci");
  7921. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7922. entity.Property(e => e.Status).HasColumnType("int(11)");
  7923. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7924. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7925. entity.Property(e => e.UpdateMan)
  7926. .HasColumnType("varchar(50)")
  7927. .HasCharSet("utf8")
  7928. .HasCollation("utf8_general_ci");
  7929. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7930. entity.Property(e => e.Version).HasColumnType("int(11)");
  7931. });
  7932. modelBuilder.Entity<TeamConfig>(entity =>
  7933. {
  7934. entity.Property(e => e.Id).HasColumnType("int(11)");
  7935. entity.Property(e => e.BlacklistCycle).HasColumnType("int(11)");
  7936. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7937. entity.Property(e => e.CreateMan)
  7938. .HasColumnType("varchar(50)")
  7939. .HasCharSet("utf8")
  7940. .HasCollation("utf8_general_ci");
  7941. entity.Property(e => e.EnterEndMin).HasColumnType("int(11)");
  7942. entity.Property(e => e.LimitBuddyNo)
  7943. .HasColumnType("varchar(128)")
  7944. .HasCharSet("utf8")
  7945. .HasCollation("utf8_general_ci");
  7946. entity.Property(e => e.MaxCycleNum).HasColumnType("int(11)");
  7947. entity.Property(e => e.MaxStartDayLimit).HasColumnType("int(11)");
  7948. entity.Property(e => e.MaxUserNum).HasColumnType("int(11)");
  7949. entity.Property(e => e.MinCycleNum).HasColumnType("int(11)");
  7950. entity.Property(e => e.MinStartDayLimit).HasColumnType("int(11)");
  7951. entity.Property(e => e.MinUserNum).HasColumnType("int(11)");
  7952. entity.Property(e => e.OverlineStatus)
  7953. .HasColumnType("bit(1)")
  7954. .HasDefaultValueSql("b'0'");
  7955. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7956. entity.Property(e => e.Remark)
  7957. .HasColumnType("varchar(64)")
  7958. .HasCharSet("utf8")
  7959. .HasCollation("utf8_general_ci");
  7960. entity.Property(e => e.SeoDescription)
  7961. .HasColumnType("varchar(500)")
  7962. .HasCharSet("utf8")
  7963. .HasCollation("utf8_general_ci");
  7964. entity.Property(e => e.SeoKeyword)
  7965. .HasColumnType("varchar(200)")
  7966. .HasCharSet("utf8")
  7967. .HasCollation("utf8_general_ci");
  7968. entity.Property(e => e.SeoTitle)
  7969. .HasColumnType("varchar(100)")
  7970. .HasCharSet("utf8")
  7971. .HasCollation("utf8_general_ci");
  7972. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7973. entity.Property(e => e.Status).HasColumnType("int(11)");
  7974. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7975. entity.Property(e => e.UpdateMan)
  7976. .HasColumnType("varchar(50)")
  7977. .HasCharSet("utf8")
  7978. .HasCollation("utf8_general_ci");
  7979. entity.Property(e => e.Version).HasColumnType("int(11)");
  7980. });
  7981. modelBuilder.Entity<TeamDayTop>(entity =>
  7982. {
  7983. entity.Property(e => e.Id).HasColumnType("int(11)");
  7984. entity.Property(e => e.ActMerNum).HasColumnType("int(11)");
  7985. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  7986. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7987. entity.Property(e => e.CreateMan)
  7988. .HasColumnType("varchar(50)")
  7989. .HasCharSet("utf8")
  7990. .HasCollation("utf8_general_ci");
  7991. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7992. entity.Property(e => e.Remark)
  7993. .HasColumnType("varchar(64)")
  7994. .HasCharSet("utf8")
  7995. .HasCollation("utf8_general_ci");
  7996. entity.Property(e => e.SeoDescription)
  7997. .HasColumnType("varchar(500)")
  7998. .HasCharSet("utf8")
  7999. .HasCollation("utf8_general_ci");
  8000. entity.Property(e => e.SeoKeyword)
  8001. .HasColumnType("varchar(200)")
  8002. .HasCharSet("utf8")
  8003. .HasCollation("utf8_general_ci");
  8004. entity.Property(e => e.SeoTitle)
  8005. .HasColumnType("varchar(100)")
  8006. .HasCharSet("utf8")
  8007. .HasCollation("utf8_general_ci");
  8008. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8009. entity.Property(e => e.StatDate)
  8010. .HasColumnType("varchar(8)")
  8011. .HasCharSet("utf8")
  8012. .HasCollation("utf8_general_ci");
  8013. entity.Property(e => e.StatMonth)
  8014. .HasColumnType("varchar(6)")
  8015. .HasCharSet("utf8")
  8016. .HasCollation("utf8_general_ci");
  8017. entity.Property(e => e.Status).HasColumnType("int(11)");
  8018. entity.Property(e => e.TeamActMerNum).HasColumnType("int(11)");
  8019. entity.Property(e => e.TeamEndDate).HasColumnType("datetime");
  8020. entity.Property(e => e.TeamId).HasColumnType("int(11)");
  8021. entity.Property(e => e.TeamStartDate).HasColumnType("datetime");
  8022. entity.Property(e => e.TeamUserId).HasColumnType("int(11)");
  8023. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  8024. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8025. entity.Property(e => e.UpdateMan)
  8026. .HasColumnType("varchar(50)")
  8027. .HasCharSet("utf8")
  8028. .HasCollation("utf8_general_ci");
  8029. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8030. entity.Property(e => e.Version).HasColumnType("int(11)");
  8031. });
  8032. modelBuilder.Entity<TeamOfferApply>(entity =>
  8033. {
  8034. entity.Property(e => e.Id).HasColumnType("int(11)");
  8035. entity.Property(e => e.Areas)
  8036. .HasColumnType("varchar(30)")
  8037. .HasCharSet("utf8")
  8038. .HasCollation("utf8_general_ci");
  8039. entity.Property(e => e.AuditRemark)
  8040. .HasColumnType("varchar(64)")
  8041. .HasCharSet("utf8")
  8042. .HasCollation("utf8_general_ci");
  8043. entity.Property(e => e.AuditResult).HasColumnType("int(11)");
  8044. entity.Property(e => e.AuditTime).HasColumnType("datetime");
  8045. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8046. entity.Property(e => e.CreateMan)
  8047. .HasColumnType("varchar(50)")
  8048. .HasCharSet("utf8")
  8049. .HasCollation("utf8_general_ci");
  8050. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  8051. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  8052. entity.Property(e => e.EnterDate).HasColumnType("datetime");
  8053. entity.Property(e => e.ManagerName)
  8054. .HasColumnType("varchar(32)")
  8055. .HasCharSet("utf8")
  8056. .HasCollation("utf8_general_ci");
  8057. entity.Property(e => e.ManagerNo)
  8058. .HasColumnType("varchar(32)")
  8059. .HasCharSet("utf8")
  8060. .HasCollation("utf8_general_ci");
  8061. entity.Property(e => e.NotifyFlag).HasColumnType("int(11)");
  8062. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8063. entity.Property(e => e.Remark)
  8064. .HasColumnType("varchar(64)")
  8065. .HasCharSet("utf8")
  8066. .HasCollation("utf8_general_ci");
  8067. entity.Property(e => e.SeoDescription)
  8068. .HasColumnType("varchar(500)")
  8069. .HasCharSet("utf8")
  8070. .HasCollation("utf8_general_ci");
  8071. entity.Property(e => e.SeoKeyword)
  8072. .HasColumnType("varchar(200)")
  8073. .HasCharSet("utf8")
  8074. .HasCollation("utf8_general_ci");
  8075. entity.Property(e => e.SeoTitle)
  8076. .HasColumnType("varchar(100)")
  8077. .HasCharSet("utf8")
  8078. .HasCollation("utf8_general_ci");
  8079. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8080. entity.Property(e => e.Status).HasColumnType("int(11)");
  8081. entity.Property(e => e.TeamApplyStatus).HasColumnType("int(11)");
  8082. entity.Property(e => e.TeamId).HasColumnType("int(11)");
  8083. entity.Property(e => e.TeamLeader).HasColumnType("int(11)");
  8084. entity.Property(e => e.TeamStatus).HasColumnType("int(11)");
  8085. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  8086. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8087. entity.Property(e => e.UpdateMan)
  8088. .HasColumnType("varchar(50)")
  8089. .HasCharSet("utf8")
  8090. .HasCollation("utf8_general_ci");
  8091. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8092. entity.Property(e => e.Version).HasColumnType("int(11)");
  8093. });
  8094. modelBuilder.Entity<TeamPersonDayTop>(entity =>
  8095. {
  8096. entity.Property(e => e.Id).HasColumnType("int(11)");
  8097. entity.Property(e => e.ActMerNum).HasColumnType("int(11)");
  8098. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  8099. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8100. entity.Property(e => e.CreateMan)
  8101. .HasColumnType("varchar(50)")
  8102. .HasCharSet("utf8")
  8103. .HasCollation("utf8_general_ci");
  8104. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8105. entity.Property(e => e.Remark)
  8106. .HasColumnType("varchar(64)")
  8107. .HasCharSet("utf8")
  8108. .HasCollation("utf8_general_ci");
  8109. entity.Property(e => e.SeoDescription)
  8110. .HasColumnType("varchar(500)")
  8111. .HasCharSet("utf8")
  8112. .HasCollation("utf8_general_ci");
  8113. entity.Property(e => e.SeoKeyword)
  8114. .HasColumnType("varchar(200)")
  8115. .HasCharSet("utf8")
  8116. .HasCollation("utf8_general_ci");
  8117. entity.Property(e => e.SeoTitle)
  8118. .HasColumnType("varchar(100)")
  8119. .HasCharSet("utf8")
  8120. .HasCollation("utf8_general_ci");
  8121. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8122. entity.Property(e => e.StatDate)
  8123. .HasColumnType("varchar(8)")
  8124. .HasCharSet("utf8")
  8125. .HasCollation("utf8_general_ci");
  8126. entity.Property(e => e.StatMonth)
  8127. .HasColumnType("varchar(6)")
  8128. .HasCharSet("utf8")
  8129. .HasCollation("utf8_general_ci");
  8130. entity.Property(e => e.Status).HasColumnType("int(11)");
  8131. entity.Property(e => e.TeamActMerNum).HasColumnType("int(11)");
  8132. entity.Property(e => e.TeamEndDate).HasColumnType("datetime");
  8133. entity.Property(e => e.TeamId).HasColumnType("int(11)");
  8134. entity.Property(e => e.TeamStartDate).HasColumnType("datetime");
  8135. entity.Property(e => e.TeamUserId).HasColumnType("int(11)");
  8136. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  8137. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8138. entity.Property(e => e.UpdateMan)
  8139. .HasColumnType("varchar(50)")
  8140. .HasCharSet("utf8")
  8141. .HasCollation("utf8_general_ci");
  8142. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8143. entity.Property(e => e.Version).HasColumnType("int(11)");
  8144. });
  8145. modelBuilder.Entity<TmpCert>(entity =>
  8146. {
  8147. entity.HasKey(e => e.MakerCode)
  8148. .HasName("PRIMARY");
  8149. entity.Property(e => e.MakerCode)
  8150. .HasColumnType("varchar(50)")
  8151. .HasCharSet("latin1")
  8152. .HasCollation("latin1_swedish_ci");
  8153. entity.Property(e => e.CertId)
  8154. .HasColumnType("varchar(50)")
  8155. .HasCharSet("latin1")
  8156. .HasCollation("latin1_swedish_ci");
  8157. });
  8158. modelBuilder.Entity<TmpTradeNo>(entity =>
  8159. {
  8160. entity.HasKey(e => e.RecordNo)
  8161. .HasName("PRIMARY");
  8162. entity.Property(e => e.RecordNo)
  8163. .HasColumnType("varchar(50)")
  8164. .HasCharSet("latin1")
  8165. .HasCollation("latin1_swedish_ci");
  8166. });
  8167. modelBuilder.Entity<TradeDaySummary>(entity =>
  8168. {
  8169. entity.HasIndex(e => new { e.UserId, e.TradeMonth, e.TradeDate, e.BrandId, e.QueryCount, e.VipFlag, e.PayType, e.SeoTitle })
  8170. .HasName("TradeDaySummaryIndex");
  8171. entity.Property(e => e.Id).HasColumnType("int(11)");
  8172. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  8173. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8174. entity.Property(e => e.CreateMan)
  8175. .HasColumnType("varchar(50)")
  8176. .HasCharSet("utf8")
  8177. .HasCollation("utf8_general_ci");
  8178. entity.Property(e => e.HelpDirectCreditTradeAmt).HasColumnType("decimal(18,2)");
  8179. entity.Property(e => e.HelpDirectDebitCapNum).HasColumnType("decimal(18,2)");
  8180. entity.Property(e => e.HelpDirectDebitCapTradeAmt).HasColumnType("decimal(18,2)");
  8181. entity.Property(e => e.HelpDirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  8182. entity.Property(e => e.HelpDirectNonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  8183. entity.Property(e => e.HelpDirectNonQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  8184. entity.Property(e => e.HelpDirectQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  8185. entity.Property(e => e.HelpDirectQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  8186. entity.Property(e => e.HelpDirectTradeAmt).HasColumnType("decimal(18,2)");
  8187. entity.Property(e => e.HelpNonDirectCreditTradeAmt).HasColumnType("decimal(18,2)");
  8188. entity.Property(e => e.HelpNonDirectDebitCapNum).HasColumnType("decimal(18,2)");
  8189. entity.Property(e => e.HelpNonDirectDebitCapTradeAmt).HasColumnType("decimal(18,2)");
  8190. entity.Property(e => e.HelpNonDirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  8191. entity.Property(e => e.HelpNonDirectNonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  8192. entity.Property(e => e.HelpNonDirectNonQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  8193. entity.Property(e => e.HelpNonDirectQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  8194. entity.Property(e => e.HelpNonDirectQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  8195. entity.Property(e => e.HelpNonDirectTradeAmt).HasColumnType("decimal(18,2)");
  8196. entity.Property(e => e.MgrName)
  8197. .HasColumnType("varchar(32)")
  8198. .HasCharSet("utf8")
  8199. .HasCollation("utf8_general_ci");
  8200. entity.Property(e => e.MgrNo)
  8201. .HasColumnType("varchar(16)")
  8202. .HasCharSet("utf8")
  8203. .HasCollation("utf8_general_ci");
  8204. entity.Property(e => e.NotHelpDirectCreditTradeAmt).HasColumnType("decimal(18,2)");
  8205. entity.Property(e => e.NotHelpDirectDebitCapNum).HasColumnType("int(11)");
  8206. entity.Property(e => e.NotHelpDirectDebitCapTradeAmt).HasColumnType("decimal(18,2)");
  8207. entity.Property(e => e.NotHelpDirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  8208. entity.Property(e => e.NotHelpDirectNonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  8209. entity.Property(e => e.NotHelpDirectNonQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  8210. entity.Property(e => e.NotHelpDirectQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  8211. entity.Property(e => e.NotHelpDirectQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  8212. entity.Property(e => e.NotHelpDirectTradeAmt).HasColumnType("decimal(18,2)");
  8213. entity.Property(e => e.NotHelpNonDirectCreditTradeAmt).HasColumnType("decimal(18,2)");
  8214. entity.Property(e => e.NotHelpNonDirectDebitCapNum).HasColumnType("int(11)");
  8215. entity.Property(e => e.NotHelpNonDirectDebitCapTradeAmt).HasColumnType("decimal(18,2)");
  8216. entity.Property(e => e.NotHelpNonDirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  8217. entity.Property(e => e.NotHelpNonDirectNonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  8218. entity.Property(e => e.NotHelpNonDirectNonQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  8219. entity.Property(e => e.NotHelpNonDirectQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  8220. entity.Property(e => e.NotHelpNonDirectQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  8221. entity.Property(e => e.NotHelpNonDirectTradeAmt).HasColumnType("decimal(18,2)");
  8222. entity.Property(e => e.PayType).HasColumnType("int(11)");
  8223. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8224. entity.Property(e => e.SeoDescription)
  8225. .HasColumnType("varchar(500)")
  8226. .HasCharSet("utf8")
  8227. .HasCollation("utf8_general_ci");
  8228. entity.Property(e => e.SeoKeyword)
  8229. .HasColumnType("varchar(200)")
  8230. .HasCharSet("utf8")
  8231. .HasCollation("utf8_general_ci");
  8232. entity.Property(e => e.SeoTitle)
  8233. .HasColumnType("varchar(100)")
  8234. .HasCharSet("utf8")
  8235. .HasCollation("utf8_general_ci");
  8236. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8237. entity.Property(e => e.Status).HasColumnType("int(11)");
  8238. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  8239. entity.Property(e => e.TradeDate)
  8240. .HasColumnType("varchar(8)")
  8241. .HasCharSet("utf8")
  8242. .HasCollation("utf8_general_ci");
  8243. entity.Property(e => e.TradeMonth)
  8244. .HasColumnType("varchar(6)")
  8245. .HasCharSet("utf8")
  8246. .HasCollation("utf8_general_ci");
  8247. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8248. entity.Property(e => e.UpdateMan)
  8249. .HasColumnType("varchar(50)")
  8250. .HasCharSet("utf8")
  8251. .HasCollation("utf8_general_ci");
  8252. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8253. entity.Property(e => e.Version).HasColumnType("int(11)");
  8254. entity.Property(e => e.VipFlag).HasColumnType("int(11)");
  8255. });
  8256. modelBuilder.Entity<TradeRecord>(entity =>
  8257. {
  8258. entity.Property(e => e.Id).HasColumnType("int(11)");
  8259. entity.Property(e => e.BankCardType).HasColumnType("int(11)");
  8260. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  8261. entity.Property(e => e.CapFlag).HasColumnType("int(11)");
  8262. entity.Property(e => e.ClearDate).HasColumnType("datetime");
  8263. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8264. entity.Property(e => e.CreateMan)
  8265. .HasColumnType("varchar(50)")
  8266. .HasCharSet("utf8")
  8267. .HasCollation("utf8_general_ci");
  8268. entity.Property(e => e.DirectFlag)
  8269. .HasColumnType("bit(1)")
  8270. .HasDefaultValueSql("b'0'");
  8271. entity.Property(e => e.HelpMonthCount).HasColumnType("int(11)");
  8272. entity.Property(e => e.MerBuddyType).HasColumnType("int(11)");
  8273. entity.Property(e => e.MerHelpFlag)
  8274. .HasColumnType("bit(1)")
  8275. .HasDefaultValueSql("b'0'");
  8276. entity.Property(e => e.MerNo)
  8277. .HasColumnType("varchar(32)")
  8278. .HasCharSet("utf8")
  8279. .HasCollation("utf8_general_ci");
  8280. entity.Property(e => e.MerUserId).HasColumnType("int(11)");
  8281. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  8282. entity.Property(e => e.ParentNav)
  8283. .HasColumnType("mediumtext")
  8284. .HasCharSet("utf8")
  8285. .HasCollation("utf8_general_ci");
  8286. entity.Property(e => e.PayType).HasColumnType("int(11)");
  8287. entity.Property(e => e.QrPayFlag).HasColumnType("int(11)");
  8288. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8289. entity.Property(e => e.RecordNo)
  8290. .HasColumnType("varchar(50)")
  8291. .HasCharSet("utf8")
  8292. .HasCollation("utf8_general_ci");
  8293. entity.Property(e => e.Remark)
  8294. .HasColumnType("varchar(64)")
  8295. .HasCharSet("utf8")
  8296. .HasCollation("utf8_general_ci");
  8297. entity.Property(e => e.SeoDescription)
  8298. .HasColumnType("varchar(500)")
  8299. .HasCharSet("utf8")
  8300. .HasCollation("utf8_general_ci");
  8301. entity.Property(e => e.SeoKeyword)
  8302. .HasColumnType("varchar(200)")
  8303. .HasCharSet("utf8")
  8304. .HasCollation("utf8_general_ci");
  8305. entity.Property(e => e.SeoTitle)
  8306. .HasColumnType("varchar(100)")
  8307. .HasCharSet("utf8")
  8308. .HasCollation("utf8_general_ci");
  8309. entity.Property(e => e.SnNo)
  8310. .HasColumnType("varchar(32)")
  8311. .HasCharSet("utf8")
  8312. .HasCollation("utf8_general_ci");
  8313. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8314. entity.Property(e => e.Status).HasColumnType("int(11)");
  8315. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  8316. entity.Property(e => e.TradeAmount).HasColumnType("decimal(18,2)");
  8317. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  8318. entity.Property(e => e.TradeSerialNo)
  8319. .HasColumnType("varchar(48)")
  8320. .HasCharSet("utf8")
  8321. .HasCollation("utf8_general_ci");
  8322. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8323. entity.Property(e => e.UpdateMan)
  8324. .HasColumnType("varchar(50)")
  8325. .HasCharSet("utf8")
  8326. .HasCollation("utf8_general_ci");
  8327. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8328. entity.Property(e => e.Version).HasColumnType("int(11)");
  8329. entity.Property(e => e.VipFlag).HasColumnType("int(11)");
  8330. });
  8331. modelBuilder.Entity<TradeRecordTest>(entity =>
  8332. {
  8333. entity.Property(e => e.Id).HasColumnType("int(11)");
  8334. entity.Property(e => e.BankCardType).HasColumnType("int(11)");
  8335. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  8336. entity.Property(e => e.CapFlag).HasColumnType("int(11)");
  8337. entity.Property(e => e.ClearDate).HasColumnType("datetime");
  8338. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8339. entity.Property(e => e.CreateMan)
  8340. .HasColumnType("varchar(50)")
  8341. .HasCharSet("utf8")
  8342. .HasCollation("utf8_general_ci");
  8343. entity.Property(e => e.DirectFlag)
  8344. .HasColumnType("bit(1)")
  8345. .HasDefaultValueSql("b'0'");
  8346. entity.Property(e => e.HelpMonthCount).HasColumnType("int(11)");
  8347. entity.Property(e => e.MerBuddyType).HasColumnType("int(11)");
  8348. entity.Property(e => e.MerHelpFlag)
  8349. .HasColumnType("bit(1)")
  8350. .HasDefaultValueSql("b'0'");
  8351. entity.Property(e => e.MerNo)
  8352. .HasColumnType("varchar(32)")
  8353. .HasCharSet("utf8")
  8354. .HasCollation("utf8_general_ci");
  8355. entity.Property(e => e.MerUserId).HasColumnType("int(11)");
  8356. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  8357. entity.Property(e => e.QrPayFlag).HasColumnType("int(11)");
  8358. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8359. entity.Property(e => e.RecordNo)
  8360. .HasColumnType("varchar(100)")
  8361. .HasCharSet("utf8")
  8362. .HasCollation("utf8_general_ci");
  8363. entity.Property(e => e.Remark)
  8364. .HasColumnType("varchar(64)")
  8365. .HasCharSet("utf8")
  8366. .HasCollation("utf8_general_ci");
  8367. entity.Property(e => e.SeoDescription)
  8368. .HasColumnType("varchar(500)")
  8369. .HasCharSet("utf8")
  8370. .HasCollation("utf8_general_ci");
  8371. entity.Property(e => e.SeoKeyword)
  8372. .HasColumnType("varchar(200)")
  8373. .HasCharSet("utf8")
  8374. .HasCollation("utf8_general_ci");
  8375. entity.Property(e => e.SeoTitle)
  8376. .HasColumnType("varchar(100)")
  8377. .HasCharSet("utf8")
  8378. .HasCollation("utf8_general_ci");
  8379. entity.Property(e => e.SnNo)
  8380. .HasColumnType("varchar(32)")
  8381. .HasCharSet("utf8")
  8382. .HasCollation("utf8_general_ci");
  8383. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8384. entity.Property(e => e.Status).HasColumnType("int(11)");
  8385. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  8386. entity.Property(e => e.TradeAmount).HasColumnType("decimal(18,2)");
  8387. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  8388. entity.Property(e => e.TradeSerialNo)
  8389. .HasColumnType("varchar(48)")
  8390. .HasCharSet("utf8")
  8391. .HasCollation("utf8_general_ci");
  8392. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8393. entity.Property(e => e.UpdateMan)
  8394. .HasColumnType("varchar(50)")
  8395. .HasCharSet("utf8")
  8396. .HasCollation("utf8_general_ci");
  8397. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8398. entity.Property(e => e.Version).HasColumnType("int(11)");
  8399. });
  8400. modelBuilder.Entity<UploadParams>(entity =>
  8401. {
  8402. entity.Property(e => e.Id).HasColumnType("int(11)");
  8403. entity.Property(e => e.ColumnEnName)
  8404. .HasColumnType("varchar(50)")
  8405. .HasCharSet("utf8")
  8406. .HasCollation("utf8_general_ci");
  8407. entity.Property(e => e.ColumnName)
  8408. .HasColumnType("varchar(50)")
  8409. .HasCharSet("utf8")
  8410. .HasCollation("utf8_general_ci");
  8411. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8412. entity.Property(e => e.CreateMan)
  8413. .HasColumnType("varchar(50)")
  8414. .HasCharSet("utf8")
  8415. .HasCollation("utf8_general_ci");
  8416. entity.Property(e => e.ParamString)
  8417. .HasColumnType("varchar(200)")
  8418. .HasCharSet("utf8")
  8419. .HasCollation("utf8_general_ci");
  8420. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8421. entity.Property(e => e.SeoDescription)
  8422. .HasColumnType("varchar(500)")
  8423. .HasCharSet("utf8")
  8424. .HasCollation("utf8_general_ci");
  8425. entity.Property(e => e.SeoKeyword)
  8426. .HasColumnType("varchar(200)")
  8427. .HasCharSet("utf8")
  8428. .HasCollation("utf8_general_ci");
  8429. entity.Property(e => e.SeoTitle)
  8430. .HasColumnType("varchar(100)")
  8431. .HasCharSet("utf8")
  8432. .HasCollation("utf8_general_ci");
  8433. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8434. entity.Property(e => e.Status).HasColumnType("int(11)");
  8435. entity.Property(e => e.TableEnName)
  8436. .HasColumnType("varchar(50)")
  8437. .HasCharSet("utf8")
  8438. .HasCollation("utf8_general_ci");
  8439. entity.Property(e => e.TableName)
  8440. .HasColumnType("varchar(50)")
  8441. .HasCharSet("utf8")
  8442. .HasCollation("utf8_general_ci");
  8443. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8444. entity.Property(e => e.UpdateMan)
  8445. .HasColumnType("varchar(50)")
  8446. .HasCharSet("utf8")
  8447. .HasCollation("utf8_general_ci");
  8448. entity.Property(e => e.Version).HasColumnType("int(11)");
  8449. });
  8450. modelBuilder.Entity<UserAccount>(entity =>
  8451. {
  8452. entity.Property(e => e.Id).HasColumnType("int(11)");
  8453. entity.Property(e => e.AccountStatus).HasColumnType("int(11)");
  8454. entity.Property(e => e.BalanceAmount).HasColumnType("decimal(18,2)");
  8455. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8456. entity.Property(e => e.CreateMan)
  8457. .HasColumnType("varchar(50)")
  8458. .HasCharSet("utf8")
  8459. .HasCollation("utf8_general_ci");
  8460. entity.Property(e => e.FixedAmount).HasColumnType("decimal(18,2)");
  8461. entity.Property(e => e.FreezeAmount).HasColumnType("decimal(18,2)");
  8462. entity.Property(e => e.LeaderReserve).HasColumnType("decimal(18,2)");
  8463. entity.Property(e => e.LockStatus).HasColumnType("int(11)");
  8464. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8465. entity.Property(e => e.SeoDescription)
  8466. .HasColumnType("varchar(500)")
  8467. .HasCharSet("utf8")
  8468. .HasCollation("utf8_general_ci");
  8469. entity.Property(e => e.SeoKeyword)
  8470. .HasColumnType("varchar(200)")
  8471. .HasCharSet("utf8")
  8472. .HasCollation("utf8_general_ci");
  8473. entity.Property(e => e.SeoTitle)
  8474. .HasColumnType("varchar(100)")
  8475. .HasCharSet("utf8")
  8476. .HasCollation("utf8_general_ci");
  8477. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8478. entity.Property(e => e.Status).HasColumnType("int(11)");
  8479. entity.Property(e => e.TeamTotalOverProfit).HasColumnType("decimal(18,2)");
  8480. entity.Property(e => e.TeamTotalProfit).HasColumnType("decimal(18,2)");
  8481. entity.Property(e => e.TeamTotalServiceProfit).HasColumnType("decimal(18,2)");
  8482. entity.Property(e => e.TempAmount).HasColumnType("decimal(18,2)");
  8483. entity.Property(e => e.TotalAmount).HasColumnType("decimal(18,2)");
  8484. entity.Property(e => e.TotalOverProfit).HasColumnType("decimal(18,2)");
  8485. entity.Property(e => e.TotalProfit).HasColumnType("decimal(18,2)");
  8486. entity.Property(e => e.TotalServiceProfit).HasColumnType("decimal(18,2)");
  8487. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8488. entity.Property(e => e.UpdateMan)
  8489. .HasColumnType("varchar(50)")
  8490. .HasCharSet("utf8")
  8491. .HasCollation("utf8_general_ci");
  8492. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8493. entity.Property(e => e.UserProperty).HasColumnType("int(11)");
  8494. entity.Property(e => e.UserType).HasColumnType("int(11)");
  8495. entity.Property(e => e.Version).HasColumnType("int(11)");
  8496. entity.Property(e => e.WithdrawAmount).HasColumnType("decimal(18,2)");
  8497. });
  8498. modelBuilder.Entity<UserAccountRecord>(entity =>
  8499. {
  8500. entity.Property(e => e.Id).HasColumnType("int(11)");
  8501. entity.Property(e => e.AfterBalanceAmount).HasColumnType("decimal(18,2)");
  8502. entity.Property(e => e.AfterFreezeAmount).HasColumnType("decimal(18,2)");
  8503. entity.Property(e => e.AfterTotalAmount).HasColumnType("decimal(18,2)");
  8504. entity.Property(e => e.BeforeBalanceAmount).HasColumnType("decimal(18,2)");
  8505. entity.Property(e => e.BeforeFreezeAmount).HasColumnType("decimal(18,2)");
  8506. entity.Property(e => e.BeforeTotalAmount).HasColumnType("decimal(18,2)");
  8507. entity.Property(e => e.ChangeAmount).HasColumnType("decimal(18,2)");
  8508. entity.Property(e => e.ChangeType).HasColumnType("int(11)");
  8509. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8510. entity.Property(e => e.CreateMan)
  8511. .HasColumnType("varchar(50)")
  8512. .HasCharSet("utf8")
  8513. .HasCollation("utf8_general_ci");
  8514. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  8515. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8516. entity.Property(e => e.Remark)
  8517. .HasColumnType("varchar(64)")
  8518. .HasCharSet("utf8")
  8519. .HasCollation("utf8_general_ci");
  8520. entity.Property(e => e.SeoDescription)
  8521. .HasColumnType("varchar(500)")
  8522. .HasCharSet("utf8")
  8523. .HasCollation("utf8_general_ci");
  8524. entity.Property(e => e.SeoKeyword)
  8525. .HasColumnType("varchar(200)")
  8526. .HasCharSet("utf8")
  8527. .HasCollation("utf8_general_ci");
  8528. entity.Property(e => e.SeoTitle)
  8529. .HasColumnType("varchar(100)")
  8530. .HasCharSet("utf8")
  8531. .HasCollation("utf8_general_ci");
  8532. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8533. entity.Property(e => e.Status).HasColumnType("int(11)");
  8534. entity.Property(e => e.TransRecordNo)
  8535. .HasColumnType("varchar(32)")
  8536. .HasCharSet("utf8")
  8537. .HasCollation("utf8_general_ci");
  8538. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8539. entity.Property(e => e.UpdateMan)
  8540. .HasColumnType("varchar(50)")
  8541. .HasCharSet("utf8")
  8542. .HasCollation("utf8_general_ci");
  8543. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8544. entity.Property(e => e.Version).HasColumnType("int(11)");
  8545. });
  8546. modelBuilder.Entity<UserAddress>(entity =>
  8547. {
  8548. entity.Property(e => e.Id).HasColumnType("int(11)");
  8549. entity.Property(e => e.Address)
  8550. .HasColumnType("varchar(100)")
  8551. .HasCharSet("utf8")
  8552. .HasCollation("utf8_general_ci");
  8553. entity.Property(e => e.Areas)
  8554. .HasColumnType("varchar(30)")
  8555. .HasCharSet("utf8")
  8556. .HasCollation("utf8_general_ci");
  8557. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8558. entity.Property(e => e.CreateMan)
  8559. .HasColumnType("varchar(50)")
  8560. .HasCharSet("utf8")
  8561. .HasCollation("utf8_general_ci");
  8562. entity.Property(e => e.IsDefault)
  8563. .HasColumnType("bit(1)")
  8564. .HasDefaultValueSql("b'0'");
  8565. entity.Property(e => e.Mobile)
  8566. .HasColumnType("varchar(11)")
  8567. .HasCharSet("utf8")
  8568. .HasCollation("utf8_general_ci");
  8569. entity.Property(e => e.PostalCode)
  8570. .HasColumnType("varchar(6)")
  8571. .HasCharSet("utf8")
  8572. .HasCollation("utf8_general_ci");
  8573. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8574. entity.Property(e => e.RealName)
  8575. .HasColumnType("varchar(10)")
  8576. .HasCharSet("utf8")
  8577. .HasCollation("utf8_general_ci");
  8578. entity.Property(e => e.SeoDescription)
  8579. .HasColumnType("varchar(500)")
  8580. .HasCharSet("utf8")
  8581. .HasCollation("utf8_general_ci");
  8582. entity.Property(e => e.SeoKeyword)
  8583. .HasColumnType("varchar(200)")
  8584. .HasCharSet("utf8")
  8585. .HasCollation("utf8_general_ci");
  8586. entity.Property(e => e.SeoTitle)
  8587. .HasColumnType("varchar(100)")
  8588. .HasCharSet("utf8")
  8589. .HasCollation("utf8_general_ci");
  8590. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8591. entity.Property(e => e.Status).HasColumnType("int(11)");
  8592. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8593. entity.Property(e => e.UpdateMan)
  8594. .HasColumnType("varchar(50)")
  8595. .HasCharSet("utf8")
  8596. .HasCollation("utf8_general_ci");
  8597. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8598. entity.Property(e => e.Version).HasColumnType("int(11)");
  8599. });
  8600. modelBuilder.Entity<UserAuthRecord>(entity =>
  8601. {
  8602. entity.Property(e => e.Id).HasColumnType("int(11)");
  8603. entity.Property(e => e.AuthType).HasColumnType("int(11)");
  8604. entity.Property(e => e.BankCardAccount)
  8605. .HasColumnType("varchar(32)")
  8606. .HasCharSet("utf8")
  8607. .HasCollation("utf8_general_ci");
  8608. entity.Property(e => e.BankMobile)
  8609. .HasColumnType("varchar(11)")
  8610. .HasCharSet("utf8")
  8611. .HasCollation("utf8_general_ci");
  8612. entity.Property(e => e.BankName)
  8613. .HasColumnType("varchar(64)")
  8614. .HasCharSet("utf8")
  8615. .HasCollation("utf8_general_ci");
  8616. entity.Property(e => e.ChannelCode)
  8617. .HasColumnType("varchar(16)")
  8618. .HasCharSet("utf8")
  8619. .HasCollation("utf8_general_ci");
  8620. entity.Property(e => e.ChannelName)
  8621. .HasColumnType("varchar(32)")
  8622. .HasCharSet("utf8")
  8623. .HasCollation("utf8_general_ci");
  8624. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8625. entity.Property(e => e.CreateMan)
  8626. .HasColumnType("varchar(50)")
  8627. .HasCharSet("utf8")
  8628. .HasCollation("utf8_general_ci");
  8629. entity.Property(e => e.IdcardNo)
  8630. .HasColumnType("varchar(18)")
  8631. .HasCharSet("utf8")
  8632. .HasCollation("utf8_general_ci");
  8633. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8634. entity.Property(e => e.RealName)
  8635. .HasColumnType("varchar(32)")
  8636. .HasCharSet("utf8")
  8637. .HasCollation("utf8_general_ci");
  8638. entity.Property(e => e.ReqData)
  8639. .HasColumnType("varchar(2048)")
  8640. .HasCharSet("utf8")
  8641. .HasCollation("utf8_general_ci");
  8642. entity.Property(e => e.ResData)
  8643. .HasColumnType("varchar(2048)")
  8644. .HasCharSet("utf8")
  8645. .HasCollation("utf8_general_ci");
  8646. entity.Property(e => e.ReturnCode)
  8647. .HasColumnType("varchar(32)")
  8648. .HasCharSet("utf8")
  8649. .HasCollation("utf8_general_ci");
  8650. entity.Property(e => e.ReturnMsg)
  8651. .HasColumnType("varchar(128)")
  8652. .HasCharSet("utf8")
  8653. .HasCollation("utf8_general_ci");
  8654. entity.Property(e => e.SeoDescription)
  8655. .HasColumnType("varchar(500)")
  8656. .HasCharSet("utf8")
  8657. .HasCollation("utf8_general_ci");
  8658. entity.Property(e => e.SeoKeyword)
  8659. .HasColumnType("varchar(200)")
  8660. .HasCharSet("utf8")
  8661. .HasCollation("utf8_general_ci");
  8662. entity.Property(e => e.SeoTitle)
  8663. .HasColumnType("varchar(100)")
  8664. .HasCharSet("utf8")
  8665. .HasCollation("utf8_general_ci");
  8666. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8667. entity.Property(e => e.Status).HasColumnType("int(11)");
  8668. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8669. entity.Property(e => e.UpdateMan)
  8670. .HasColumnType("varchar(50)")
  8671. .HasCharSet("utf8")
  8672. .HasCollation("utf8_general_ci");
  8673. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8674. entity.Property(e => e.Version).HasColumnType("int(11)");
  8675. });
  8676. modelBuilder.Entity<UserBack>(entity =>
  8677. {
  8678. entity.Property(e => e.Id).HasColumnType("int(11)");
  8679. entity.Property(e => e.BackKind).HasColumnType("int(11)");
  8680. entity.Property(e => e.BackStatus).HasColumnType("int(11)");
  8681. entity.Property(e => e.Content)
  8682. .HasColumnType("varchar(100)")
  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.IsPhoneCallBack)
  8691. .HasColumnType("bit(1)")
  8692. .HasDefaultValueSql("b'0'");
  8693. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8694. entity.Property(e => e.ReplyContent)
  8695. .HasColumnType("mediumtext")
  8696. .HasCharSet("utf8")
  8697. .HasCollation("utf8_general_ci");
  8698. entity.Property(e => e.SeoDescription)
  8699. .HasColumnType("varchar(500)")
  8700. .HasCharSet("utf8")
  8701. .HasCollation("utf8_general_ci");
  8702. entity.Property(e => e.SeoKeyword)
  8703. .HasColumnType("varchar(200)")
  8704. .HasCharSet("utf8")
  8705. .HasCollation("utf8_general_ci");
  8706. entity.Property(e => e.SeoTitle)
  8707. .HasColumnType("varchar(100)")
  8708. .HasCharSet("utf8")
  8709. .HasCollation("utf8_general_ci");
  8710. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8711. entity.Property(e => e.Status).HasColumnType("int(11)");
  8712. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8713. entity.Property(e => e.UpdateMan)
  8714. .HasColumnType("varchar(50)")
  8715. .HasCharSet("utf8")
  8716. .HasCollation("utf8_general_ci");
  8717. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8718. entity.Property(e => e.Version).HasColumnType("int(11)");
  8719. });
  8720. modelBuilder.Entity<UserBackKind>(entity =>
  8721. {
  8722. entity.Property(e => e.Id).HasColumnType("int(11)");
  8723. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8724. entity.Property(e => e.CreateMan)
  8725. .HasColumnType("varchar(50)")
  8726. .HasCharSet("utf8")
  8727. .HasCollation("utf8_general_ci");
  8728. entity.Property(e => e.Name)
  8729. .HasColumnType("varchar(50)")
  8730. .HasCharSet("utf8")
  8731. .HasCollation("utf8_general_ci");
  8732. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8733. entity.Property(e => e.SeoDescription)
  8734. .HasColumnType("varchar(500)")
  8735. .HasCharSet("utf8")
  8736. .HasCollation("utf8_general_ci");
  8737. entity.Property(e => e.SeoKeyword)
  8738. .HasColumnType("varchar(200)")
  8739. .HasCharSet("utf8")
  8740. .HasCollation("utf8_general_ci");
  8741. entity.Property(e => e.SeoTitle)
  8742. .HasColumnType("varchar(100)")
  8743. .HasCharSet("utf8")
  8744. .HasCollation("utf8_general_ci");
  8745. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8746. entity.Property(e => e.Status).HasColumnType("int(11)");
  8747. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8748. entity.Property(e => e.UpdateMan)
  8749. .HasColumnType("varchar(50)")
  8750. .HasCharSet("utf8")
  8751. .HasCollation("utf8_general_ci");
  8752. entity.Property(e => e.Version).HasColumnType("int(11)");
  8753. });
  8754. modelBuilder.Entity<UserBalanceTop>(entity =>
  8755. {
  8756. entity.Property(e => e.Id).HasColumnType("int(11)");
  8757. entity.Property(e => e.Balance).HasColumnType("decimal(18,2)");
  8758. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8759. entity.Property(e => e.CreateMan)
  8760. .HasColumnType("varchar(50)")
  8761. .HasCharSet("utf8")
  8762. .HasCollation("utf8_general_ci");
  8763. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8764. entity.Property(e => e.SeoDescription)
  8765. .HasColumnType("varchar(500)")
  8766. .HasCharSet("utf8")
  8767. .HasCollation("utf8_general_ci");
  8768. entity.Property(e => e.SeoKeyword)
  8769. .HasColumnType("varchar(200)")
  8770. .HasCharSet("utf8")
  8771. .HasCollation("utf8_general_ci");
  8772. entity.Property(e => e.SeoTitle)
  8773. .HasColumnType("varchar(100)")
  8774. .HasCharSet("utf8")
  8775. .HasCollation("utf8_general_ci");
  8776. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8777. entity.Property(e => e.StatDate)
  8778. .HasColumnType("varchar(8)")
  8779. .HasCharSet("utf8")
  8780. .HasCollation("utf8_general_ci");
  8781. entity.Property(e => e.StatMonth)
  8782. .HasColumnType("varchar(6)")
  8783. .HasCharSet("utf8")
  8784. .HasCollation("utf8_general_ci");
  8785. entity.Property(e => e.Status).HasColumnType("int(11)");
  8786. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8787. entity.Property(e => e.UpdateMan)
  8788. .HasColumnType("varchar(50)")
  8789. .HasCharSet("utf8")
  8790. .HasCollation("utf8_general_ci");
  8791. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8792. entity.Property(e => e.Version).HasColumnType("int(11)");
  8793. });
  8794. modelBuilder.Entity<UserCar>(entity =>
  8795. {
  8796. entity.Property(e => e.Id).HasColumnType("int(11)");
  8797. entity.Property(e => e.BuyCount).HasColumnType("int(11)");
  8798. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8799. entity.Property(e => e.CreateMan)
  8800. .HasColumnType("varchar(50)")
  8801. .HasCharSet("utf8")
  8802. .HasCollation("utf8_general_ci");
  8803. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  8804. entity.Property(e => e.NormId).HasColumnType("int(11)");
  8805. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  8806. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8807. entity.Property(e => e.SeoDescription)
  8808. .HasColumnType("varchar(500)")
  8809. .HasCharSet("utf8")
  8810. .HasCollation("utf8_general_ci");
  8811. entity.Property(e => e.SeoKeyword)
  8812. .HasColumnType("varchar(200)")
  8813. .HasCharSet("utf8")
  8814. .HasCollation("utf8_general_ci");
  8815. entity.Property(e => e.SeoTitle)
  8816. .HasColumnType("varchar(100)")
  8817. .HasCharSet("utf8")
  8818. .HasCollation("utf8_general_ci");
  8819. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8820. entity.Property(e => e.Status).HasColumnType("int(11)");
  8821. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8822. entity.Property(e => e.UpdateMan)
  8823. .HasColumnType("varchar(50)")
  8824. .HasCharSet("utf8")
  8825. .HasCollation("utf8_general_ci");
  8826. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8827. entity.Property(e => e.Version).HasColumnType("int(11)");
  8828. });
  8829. modelBuilder.Entity<UserCardForWeChat>(entity =>
  8830. {
  8831. entity.Property(e => e.Id).HasColumnType("int(11)");
  8832. entity.Property(e => e.BrandName)
  8833. .HasColumnType("varchar(12)")
  8834. .HasCharSet("utf8")
  8835. .HasCollation("utf8_general_ci");
  8836. entity.Property(e => e.CardId)
  8837. .HasColumnType("varchar(50)")
  8838. .HasCharSet("utf8")
  8839. .HasCollation("utf8_general_ci");
  8840. entity.Property(e => e.CardType)
  8841. .HasColumnType("varchar(30)")
  8842. .HasCharSet("utf8")
  8843. .HasCollation("utf8_general_ci");
  8844. entity.Property(e => e.CodeType)
  8845. .HasColumnType("varchar(50)")
  8846. .HasCharSet("utf8")
  8847. .HasCollation("utf8_general_ci");
  8848. entity.Property(e => e.Color)
  8849. .HasColumnType("varchar(20)")
  8850. .HasCharSet("utf8")
  8851. .HasCollation("utf8_general_ci");
  8852. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8853. entity.Property(e => e.CreateMan)
  8854. .HasColumnType("varchar(50)")
  8855. .HasCharSet("utf8")
  8856. .HasCollation("utf8_general_ci");
  8857. entity.Property(e => e.DateType)
  8858. .HasColumnType("varchar(50)")
  8859. .HasCharSet("utf8")
  8860. .HasCollation("utf8_general_ci");
  8861. entity.Property(e => e.Description)
  8862. .HasColumnType("varchar(1024)")
  8863. .HasCharSet("utf8")
  8864. .HasCollation("utf8_general_ci");
  8865. entity.Property(e => e.EnterName)
  8866. .HasColumnType("varchar(15)")
  8867. .HasCharSet("utf8")
  8868. .HasCollation("utf8_general_ci");
  8869. entity.Property(e => e.EnterTips)
  8870. .HasColumnType("varchar(6)")
  8871. .HasCharSet("utf8")
  8872. .HasCollation("utf8_general_ci");
  8873. entity.Property(e => e.EnterUrl)
  8874. .HasColumnType("varchar(200)")
  8875. .HasCharSet("utf8")
  8876. .HasCollation("utf8_general_ci");
  8877. entity.Property(e => e.LogoUrl)
  8878. .HasColumnType("varchar(200)")
  8879. .HasCharSet("utf8")
  8880. .HasCollation("utf8_general_ci");
  8881. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  8882. entity.Property(e => e.Notice)
  8883. .HasColumnType("varchar(16)")
  8884. .HasCharSet("utf8")
  8885. .HasCollation("utf8_general_ci");
  8886. entity.Property(e => e.Prerogative)
  8887. .HasColumnType("varchar(1024)")
  8888. .HasCharSet("utf8")
  8889. .HasCollation("utf8_general_ci");
  8890. entity.Property(e => e.Quantity).HasColumnType("int(11)");
  8891. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8892. entity.Property(e => e.SeoDescription)
  8893. .HasColumnType("varchar(500)")
  8894. .HasCharSet("utf8")
  8895. .HasCollation("utf8_general_ci");
  8896. entity.Property(e => e.SeoKeyword)
  8897. .HasColumnType("varchar(200)")
  8898. .HasCharSet("utf8")
  8899. .HasCollation("utf8_general_ci");
  8900. entity.Property(e => e.SeoTitle)
  8901. .HasColumnType("varchar(100)")
  8902. .HasCharSet("utf8")
  8903. .HasCollation("utf8_general_ci");
  8904. entity.Property(e => e.Sku)
  8905. .HasColumnType("mediumtext")
  8906. .HasCharSet("utf8")
  8907. .HasCollation("utf8_general_ci");
  8908. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8909. entity.Property(e => e.Status).HasColumnType("int(11)");
  8910. entity.Property(e => e.SupplyBalance)
  8911. .HasColumnType("bit(1)")
  8912. .HasDefaultValueSql("b'0'");
  8913. entity.Property(e => e.SupplyBonus)
  8914. .HasColumnType("bit(1)")
  8915. .HasDefaultValueSql("b'0'");
  8916. entity.Property(e => e.Title)
  8917. .HasColumnType("varchar(9)")
  8918. .HasCharSet("utf8")
  8919. .HasCollation("utf8_general_ci");
  8920. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8921. entity.Property(e => e.UpdateMan)
  8922. .HasColumnType("varchar(50)")
  8923. .HasCharSet("utf8")
  8924. .HasCollation("utf8_general_ci");
  8925. entity.Property(e => e.Version).HasColumnType("int(11)");
  8926. });
  8927. modelBuilder.Entity<UserCardRecord>(entity =>
  8928. {
  8929. entity.Property(e => e.Id).HasColumnType("int(11)");
  8930. entity.Property(e => e.CardId).HasColumnType("int(11)");
  8931. entity.Property(e => e.ConsumerId).HasColumnType("int(11)");
  8932. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8933. entity.Property(e => e.CreateMan)
  8934. .HasColumnType("varchar(50)")
  8935. .HasCharSet("utf8")
  8936. .HasCollation("utf8_general_ci");
  8937. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  8938. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8939. entity.Property(e => e.SeoDescription)
  8940. .HasColumnType("varchar(500)")
  8941. .HasCharSet("utf8")
  8942. .HasCollation("utf8_general_ci");
  8943. entity.Property(e => e.SeoKeyword)
  8944. .HasColumnType("varchar(200)")
  8945. .HasCharSet("utf8")
  8946. .HasCollation("utf8_general_ci");
  8947. entity.Property(e => e.SeoTitle)
  8948. .HasColumnType("varchar(100)")
  8949. .HasCharSet("utf8")
  8950. .HasCollation("utf8_general_ci");
  8951. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8952. entity.Property(e => e.Status).HasColumnType("int(11)");
  8953. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8954. entity.Property(e => e.UpdateMan)
  8955. .HasColumnType("varchar(50)")
  8956. .HasCharSet("utf8")
  8957. .HasCollation("utf8_general_ci");
  8958. entity.Property(e => e.Version).HasColumnType("int(11)");
  8959. });
  8960. modelBuilder.Entity<UserCashRecord>(entity =>
  8961. {
  8962. entity.Property(e => e.Id).HasColumnType("int(11)");
  8963. entity.Property(e => e.ActualTradeAmount).HasColumnType("decimal(18,2)");
  8964. entity.Property(e => e.CashOrderNo)
  8965. .HasColumnType("varchar(32)")
  8966. .HasCharSet("utf8")
  8967. .HasCollation("utf8_general_ci");
  8968. entity.Property(e => e.ChanelName)
  8969. .HasColumnType("varchar(32)")
  8970. .HasCharSet("utf8")
  8971. .HasCollation("utf8_general_ci");
  8972. entity.Property(e => e.ChannelCode)
  8973. .HasColumnType("varchar(16)")
  8974. .HasCharSet("utf8")
  8975. .HasCollation("utf8_general_ci");
  8976. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8977. entity.Property(e => e.CreateMan)
  8978. .HasColumnType("varchar(50)")
  8979. .HasCharSet("utf8")
  8980. .HasCollation("utf8_general_ci");
  8981. entity.Property(e => e.IdCardNo)
  8982. .HasColumnType("varchar(18)")
  8983. .HasCharSet("utf8")
  8984. .HasCollation("utf8_general_ci");
  8985. entity.Property(e => e.Ip)
  8986. .HasColumnType("varchar(15)")
  8987. .HasCharSet("utf8")
  8988. .HasCollation("utf8_general_ci");
  8989. entity.Property(e => e.ManageFee).HasColumnType("decimal(18,2)");
  8990. entity.Property(e => e.MediaSource)
  8991. .HasColumnType("varchar(16)")
  8992. .HasCharSet("utf8")
  8993. .HasCollation("utf8_general_ci");
  8994. entity.Property(e => e.PayTradeNo)
  8995. .HasColumnType("varchar(32)")
  8996. .HasCharSet("utf8")
  8997. .HasCollation("utf8_general_ci");
  8998. entity.Property(e => e.PaymentDate).HasColumnType("datetime");
  8999. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9000. entity.Property(e => e.Remark)
  9001. .HasColumnType("varchar(128)")
  9002. .HasCharSet("utf8")
  9003. .HasCollation("utf8_general_ci");
  9004. entity.Property(e => e.ReqData)
  9005. .HasColumnType("varchar(2048)")
  9006. .HasCharSet("utf8")
  9007. .HasCollation("utf8_general_ci");
  9008. entity.Property(e => e.ResData)
  9009. .HasColumnType("varchar(2048)")
  9010. .HasCharSet("utf8")
  9011. .HasCollation("utf8_general_ci");
  9012. entity.Property(e => e.ReturnCode)
  9013. .HasColumnType("varchar(32)")
  9014. .HasCharSet("utf8")
  9015. .HasCollation("utf8_general_ci");
  9016. entity.Property(e => e.ReturnMsg)
  9017. .HasColumnType("varchar(128)")
  9018. .HasCharSet("utf8")
  9019. .HasCollation("utf8_general_ci");
  9020. entity.Property(e => e.SeoDescription)
  9021. .HasColumnType("varchar(500)")
  9022. .HasCharSet("utf8")
  9023. .HasCollation("utf8_general_ci");
  9024. entity.Property(e => e.SeoKeyword)
  9025. .HasColumnType("varchar(200)")
  9026. .HasCharSet("utf8")
  9027. .HasCollation("utf8_general_ci");
  9028. entity.Property(e => e.SeoTitle)
  9029. .HasColumnType("varchar(100)")
  9030. .HasCharSet("utf8")
  9031. .HasCollation("utf8_general_ci");
  9032. entity.Property(e => e.SettleBankCardNo)
  9033. .HasColumnType("varchar(32)")
  9034. .HasCharSet("utf8")
  9035. .HasCollation("utf8_general_ci");
  9036. entity.Property(e => e.SettleBankName)
  9037. .HasColumnType("varchar(64)")
  9038. .HasCharSet("utf8")
  9039. .HasCollation("utf8_general_ci");
  9040. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9041. entity.Property(e => e.Status).HasColumnType("int(11)");
  9042. entity.Property(e => e.TradeAmount).HasColumnType("decimal(18,2)");
  9043. entity.Property(e => e.TradeFee).HasColumnType("decimal(18,2)");
  9044. entity.Property(e => e.TradeType).HasColumnType("int(11)");
  9045. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9046. entity.Property(e => e.UpdateMan)
  9047. .HasColumnType("varchar(50)")
  9048. .HasCharSet("utf8")
  9049. .HasCollation("utf8_general_ci");
  9050. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9051. entity.Property(e => e.Version).HasColumnType("int(11)");
  9052. });
  9053. modelBuilder.Entity<UserCenterIconList>(entity =>
  9054. {
  9055. entity.Property(e => e.Id).HasColumnType("int(11)");
  9056. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9057. entity.Property(e => e.CreateMan)
  9058. .HasColumnType("varchar(50)")
  9059. .HasCharSet("utf8")
  9060. .HasCollation("utf8_general_ci");
  9061. entity.Property(e => e.Icon)
  9062. .HasColumnType("varchar(200)")
  9063. .HasCharSet("utf8")
  9064. .HasCollation("utf8_general_ci");
  9065. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9066. entity.Property(e => e.SeoDescription)
  9067. .HasColumnType("varchar(500)")
  9068. .HasCharSet("utf8")
  9069. .HasCollation("utf8_general_ci");
  9070. entity.Property(e => e.SeoKeyword)
  9071. .HasColumnType("varchar(200)")
  9072. .HasCharSet("utf8")
  9073. .HasCollation("utf8_general_ci");
  9074. entity.Property(e => e.SeoTitle)
  9075. .HasColumnType("varchar(100)")
  9076. .HasCharSet("utf8")
  9077. .HasCollation("utf8_general_ci");
  9078. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9079. entity.Property(e => e.Status).HasColumnType("int(11)");
  9080. entity.Property(e => e.Title)
  9081. .HasColumnType("varchar(50)")
  9082. .HasCharSet("utf8")
  9083. .HasCollation("utf8_general_ci");
  9084. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9085. entity.Property(e => e.UpdateMan)
  9086. .HasColumnType("varchar(50)")
  9087. .HasCharSet("utf8")
  9088. .HasCollation("utf8_general_ci");
  9089. entity.Property(e => e.Url)
  9090. .HasColumnType("varchar(50)")
  9091. .HasCharSet("utf8")
  9092. .HasCollation("utf8_general_ci");
  9093. entity.Property(e => e.Version).HasColumnType("int(11)");
  9094. });
  9095. modelBuilder.Entity<UserCollection>(entity =>
  9096. {
  9097. entity.Property(e => e.Id).HasColumnType("int(11)");
  9098. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9099. entity.Property(e => e.CreateMan)
  9100. .HasColumnType("varchar(50)")
  9101. .HasCharSet("utf8")
  9102. .HasCollation("utf8_general_ci");
  9103. entity.Property(e => e.DataId).HasColumnType("int(11)");
  9104. entity.Property(e => e.Kind).HasColumnType("int(11)");
  9105. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9106. entity.Property(e => e.SeoDescription)
  9107. .HasColumnType("varchar(500)")
  9108. .HasCharSet("utf8")
  9109. .HasCollation("utf8_general_ci");
  9110. entity.Property(e => e.SeoKeyword)
  9111. .HasColumnType("varchar(200)")
  9112. .HasCharSet("utf8")
  9113. .HasCollation("utf8_general_ci");
  9114. entity.Property(e => e.SeoTitle)
  9115. .HasColumnType("varchar(100)")
  9116. .HasCharSet("utf8")
  9117. .HasCollation("utf8_general_ci");
  9118. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9119. entity.Property(e => e.Status).HasColumnType("int(11)");
  9120. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9121. entity.Property(e => e.UpdateMan)
  9122. .HasColumnType("varchar(50)")
  9123. .HasCharSet("utf8")
  9124. .HasCollation("utf8_general_ci");
  9125. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9126. entity.Property(e => e.Version).HasColumnType("int(11)");
  9127. });
  9128. modelBuilder.Entity<UserData>(entity =>
  9129. {
  9130. entity.HasKey(e => e.UserId)
  9131. .HasName("PRIMARY");
  9132. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9133. entity.Property(e => e.ActiveRewardAmount).HasColumnType("decimal(18,2)");
  9134. entity.Property(e => e.CashFreezeAmt).HasColumnType("decimal(18,2)");
  9135. entity.Property(e => e.CollectionCount).HasColumnType("int(11)");
  9136. entity.Property(e => e.Coupons).HasColumnType("decimal(18,2)");
  9137. entity.Property(e => e.CurMoney).HasColumnType("decimal(18,2)");
  9138. entity.Property(e => e.FansCount).HasColumnType("int(11)");
  9139. entity.Property(e => e.FollowCount).HasColumnType("int(11)");
  9140. entity.Property(e => e.GrowthValue).HasColumnType("int(11)");
  9141. entity.Property(e => e.Integral).HasColumnType("decimal(18,2)");
  9142. entity.Property(e => e.MachineCount).HasColumnType("int(11)");
  9143. entity.Property(e => e.ProfitRewardRate).HasColumnType("decimal(18,2)");
  9144. entity.Property(e => e.SettleAmount).HasColumnType("decimal(18,2)");
  9145. entity.Property(e => e.ToCommentOrderCount).HasColumnType("int(11)");
  9146. entity.Property(e => e.ToPayOrderCount).HasColumnType("int(11)");
  9147. entity.Property(e => e.ToReceiveOrderCount).HasColumnType("int(11)");
  9148. entity.Property(e => e.ToRefundOrderCount).HasColumnType("int(11)");
  9149. entity.Property(e => e.ToSendOrderCount).HasColumnType("int(11)");
  9150. entity.Property(e => e.TotalOrderMoney).HasColumnType("decimal(18,2)");
  9151. entity.Property(e => e.TotalUseIntegral).HasColumnType("decimal(18,2)");
  9152. });
  9153. modelBuilder.Entity<UserDetail>(entity =>
  9154. {
  9155. entity.Property(e => e.Id).HasColumnType("int(11)");
  9156. entity.Property(e => e.AddMan).HasColumnType("int(11)");
  9157. entity.Property(e => e.Birthday).HasColumnType("datetime");
  9158. entity.Property(e => e.CardAddAddress).HasColumnType("int(11)");
  9159. entity.Property(e => e.CardExpireDate).HasColumnType("datetime");
  9160. entity.Property(e => e.EduLevel).HasColumnType("int(11)");
  9161. entity.Property(e => e.Email)
  9162. .HasColumnType("varchar(50)")
  9163. .HasCharSet("utf8")
  9164. .HasCollation("utf8_general_ci");
  9165. entity.Property(e => e.FamilyIncome).HasColumnType("int(11)");
  9166. entity.Property(e => e.Interests)
  9167. .HasColumnType("varchar(200)")
  9168. .HasCharSet("utf8")
  9169. .HasCollation("utf8_general_ci");
  9170. entity.Property(e => e.Note)
  9171. .HasColumnType("longtext")
  9172. .HasCharSet("utf8")
  9173. .HasCollation("utf8_general_ci");
  9174. entity.Property(e => e.OfficePhone)
  9175. .HasColumnType("varchar(50)")
  9176. .HasCharSet("utf8")
  9177. .HasCollation("utf8_general_ci");
  9178. entity.Property(e => e.PostalCode)
  9179. .HasColumnType("varchar(6)")
  9180. .HasCharSet("utf8")
  9181. .HasCollation("utf8_general_ci");
  9182. entity.Property(e => e.PrivatePhone)
  9183. .HasColumnType("varchar(50)")
  9184. .HasCharSet("utf8")
  9185. .HasCollation("utf8_general_ci");
  9186. entity.Property(e => e.ToShopDate).HasColumnType("datetime");
  9187. entity.Property(e => e.TrafficTool).HasColumnType("int(11)");
  9188. entity.Property(e => e.UpdateMan).HasColumnType("int(11)");
  9189. entity.Property(e => e.UserJob).HasColumnType("int(11)");
  9190. });
  9191. modelBuilder.Entity<UserFamilyMember>(entity =>
  9192. {
  9193. entity.Property(e => e.Id).HasColumnType("int(11)");
  9194. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9195. entity.Property(e => e.CreateMan)
  9196. .HasColumnType("varchar(50)")
  9197. .HasCharSet("utf8")
  9198. .HasCollation("utf8_general_ci");
  9199. entity.Property(e => e.IdCardNo)
  9200. .HasColumnType("varchar(18)")
  9201. .HasCharSet("utf8")
  9202. .HasCollation("utf8_general_ci");
  9203. entity.Property(e => e.Job).HasColumnType("int(11)");
  9204. entity.Property(e => e.MemberKind).HasColumnType("int(11)");
  9205. entity.Property(e => e.Mobile)
  9206. .HasColumnType("varchar(11)")
  9207. .HasCharSet("utf8")
  9208. .HasCollation("utf8_general_ci");
  9209. entity.Property(e => e.Name)
  9210. .HasColumnType("varchar(20)")
  9211. .HasCharSet("utf8")
  9212. .HasCollation("utf8_general_ci");
  9213. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9214. entity.Property(e => e.SeoDescription)
  9215. .HasColumnType("varchar(500)")
  9216. .HasCharSet("utf8")
  9217. .HasCollation("utf8_general_ci");
  9218. entity.Property(e => e.SeoKeyword)
  9219. .HasColumnType("varchar(200)")
  9220. .HasCharSet("utf8")
  9221. .HasCollation("utf8_general_ci");
  9222. entity.Property(e => e.SeoTitle)
  9223. .HasColumnType("varchar(100)")
  9224. .HasCharSet("utf8")
  9225. .HasCollation("utf8_general_ci");
  9226. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9227. entity.Property(e => e.Status).HasColumnType("int(11)");
  9228. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9229. entity.Property(e => e.UpdateMan)
  9230. .HasColumnType("varchar(50)")
  9231. .HasCharSet("utf8")
  9232. .HasCollation("utf8_general_ci");
  9233. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9234. entity.Property(e => e.Version).HasColumnType("int(11)");
  9235. });
  9236. modelBuilder.Entity<UserForMakerCode>(entity =>
  9237. {
  9238. entity.HasKey(e => e.MakerCode)
  9239. .HasName("PRIMARY");
  9240. entity.Property(e => e.MakerCode)
  9241. .HasColumnType("varchar(30)")
  9242. .HasCharSet("utf8")
  9243. .HasCollation("utf8_general_ci");
  9244. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9245. });
  9246. modelBuilder.Entity<UserForMobile>(entity =>
  9247. {
  9248. entity.HasKey(e => e.Mobile)
  9249. .HasName("PRIMARY");
  9250. entity.Property(e => e.Mobile)
  9251. .HasColumnType("varchar(11)")
  9252. .HasCharSet("utf8")
  9253. .HasCollation("utf8_general_ci");
  9254. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9255. });
  9256. modelBuilder.Entity<UserForRealName>(entity =>
  9257. {
  9258. entity.HasKey(e => e.RealName)
  9259. .HasName("PRIMARY");
  9260. entity.Property(e => e.RealName)
  9261. .HasColumnType("varchar(30)")
  9262. .HasCharSet("utf8")
  9263. .HasCollation("utf8_general_ci");
  9264. entity.Property(e => e.UserId)
  9265. .HasColumnType("varchar(100)")
  9266. .HasCharSet("utf8")
  9267. .HasCollation("utf8_general_ci");
  9268. });
  9269. modelBuilder.Entity<UserFriend>(entity =>
  9270. {
  9271. entity.Property(e => e.Id).HasColumnType("int(11)");
  9272. entity.Property(e => e.FriendId).HasColumnType("int(11)");
  9273. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9274. });
  9275. modelBuilder.Entity<UserGroup>(entity =>
  9276. {
  9277. entity.Property(e => e.Id).HasColumnType("int(11)");
  9278. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9279. entity.Property(e => e.CreateMan)
  9280. .HasColumnType("varchar(50)")
  9281. .HasCharSet("utf8")
  9282. .HasCollation("utf8_general_ci");
  9283. entity.Property(e => e.Details)
  9284. .HasColumnType("varchar(200)")
  9285. .HasCharSet("utf8")
  9286. .HasCollation("utf8_general_ci");
  9287. entity.Property(e => e.Name)
  9288. .HasColumnType("varchar(20)")
  9289. .HasCharSet("utf8")
  9290. .HasCollation("utf8_general_ci");
  9291. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9292. entity.Property(e => e.SeoDescription)
  9293. .HasColumnType("varchar(500)")
  9294. .HasCharSet("utf8")
  9295. .HasCollation("utf8_general_ci");
  9296. entity.Property(e => e.SeoKeyword)
  9297. .HasColumnType("varchar(200)")
  9298. .HasCharSet("utf8")
  9299. .HasCollation("utf8_general_ci");
  9300. entity.Property(e => e.SeoTitle)
  9301. .HasColumnType("varchar(100)")
  9302. .HasCharSet("utf8")
  9303. .HasCollation("utf8_general_ci");
  9304. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9305. entity.Property(e => e.Status).HasColumnType("int(11)");
  9306. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9307. entity.Property(e => e.UpdateMan)
  9308. .HasColumnType("varchar(50)")
  9309. .HasCharSet("utf8")
  9310. .HasCollation("utf8_general_ci");
  9311. entity.Property(e => e.Version).HasColumnType("int(11)");
  9312. });
  9313. modelBuilder.Entity<UserLevelSet>(entity =>
  9314. {
  9315. entity.Property(e => e.Id).HasColumnType("int(11)");
  9316. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9317. entity.Property(e => e.CreateMan)
  9318. .HasColumnType("varchar(50)")
  9319. .HasCharSet("utf8")
  9320. .HasCollation("utf8_general_ci");
  9321. entity.Property(e => e.Details)
  9322. .HasColumnType("varchar(200)")
  9323. .HasCharSet("utf8")
  9324. .HasCollation("utf8_general_ci");
  9325. entity.Property(e => e.Name)
  9326. .HasColumnType("varchar(20)")
  9327. .HasCharSet("utf8")
  9328. .HasCollation("utf8_general_ci");
  9329. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9330. entity.Property(e => e.SeoDescription)
  9331. .HasColumnType("varchar(500)")
  9332. .HasCharSet("utf8")
  9333. .HasCollation("utf8_general_ci");
  9334. entity.Property(e => e.SeoKeyword)
  9335. .HasColumnType("varchar(200)")
  9336. .HasCharSet("utf8")
  9337. .HasCollation("utf8_general_ci");
  9338. entity.Property(e => e.SeoTitle)
  9339. .HasColumnType("varchar(100)")
  9340. .HasCharSet("utf8")
  9341. .HasCollation("utf8_general_ci");
  9342. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9343. entity.Property(e => e.Status).HasColumnType("int(11)");
  9344. entity.Property(e => e.UpLevelDays).HasColumnType("int(11)");
  9345. entity.Property(e => e.UpLevelGrowth).HasColumnType("int(11)");
  9346. entity.Property(e => e.UpLevelIntegral).HasColumnType("decimal(10,0)");
  9347. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9348. entity.Property(e => e.UpdateMan)
  9349. .HasColumnType("varchar(50)")
  9350. .HasCharSet("utf8")
  9351. .HasCollation("utf8_general_ci");
  9352. entity.Property(e => e.Version).HasColumnType("int(11)");
  9353. });
  9354. modelBuilder.Entity<UserLoginRecord>(entity =>
  9355. {
  9356. entity.Property(e => e.Id).HasColumnType("int(11)");
  9357. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9358. entity.Property(e => e.CreateMan)
  9359. .HasColumnType("varchar(50)")
  9360. .HasCharSet("utf8")
  9361. .HasCollation("utf8_general_ci");
  9362. entity.Property(e => e.Kind).HasColumnType("int(11)");
  9363. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9364. entity.Property(e => e.SeoDescription)
  9365. .HasColumnType("varchar(500)")
  9366. .HasCharSet("utf8")
  9367. .HasCollation("utf8_general_ci");
  9368. entity.Property(e => e.SeoKeyword)
  9369. .HasColumnType("varchar(200)")
  9370. .HasCharSet("utf8")
  9371. .HasCollation("utf8_general_ci");
  9372. entity.Property(e => e.SeoTitle)
  9373. .HasColumnType("varchar(100)")
  9374. .HasCharSet("utf8")
  9375. .HasCollation("utf8_general_ci");
  9376. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9377. entity.Property(e => e.Status).HasColumnType("int(11)");
  9378. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9379. entity.Property(e => e.UpdateMan)
  9380. .HasColumnType("varchar(50)")
  9381. .HasCharSet("utf8")
  9382. .HasCollation("utf8_general_ci");
  9383. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9384. entity.Property(e => e.Version).HasColumnType("int(11)");
  9385. });
  9386. modelBuilder.Entity<UserMachineData>(entity =>
  9387. {
  9388. entity.HasKey(e => e.IdBrand)
  9389. .HasName("PRIMARY");
  9390. entity.Property(e => e.IdBrand)
  9391. .HasColumnType("varchar(50)")
  9392. .HasCharSet("utf8")
  9393. .HasCollation("utf8_general_ci");
  9394. entity.Property(e => e.ActProfit).HasColumnType("decimal(18,2)");
  9395. entity.Property(e => e.BindCount).HasColumnType("int(11)");
  9396. entity.Property(e => e.DividendsProfit).HasColumnType("decimal(18,2)");
  9397. entity.Property(e => e.FluxProfit).HasColumnType("decimal(18,2)");
  9398. entity.Property(e => e.OpenProfit).HasColumnType("decimal(18,2)");
  9399. entity.Property(e => e.OtherProfit).HasColumnType("decimal(18,2)");
  9400. entity.Property(e => e.TotalMachineCount).HasColumnType("int(11)");
  9401. entity.Property(e => e.TradeProfit).HasColumnType("decimal(18,2)");
  9402. entity.Property(e => e.UnBindCount).HasColumnType("int(11)");
  9403. });
  9404. modelBuilder.Entity<UserMallLargeSn>(entity =>
  9405. {
  9406. entity.Property(e => e.Id).HasColumnType("int(11)");
  9407. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9408. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9409. entity.Property(e => e.CreateMan)
  9410. .HasColumnType("varchar(50)")
  9411. .HasCharSet("utf8")
  9412. .HasCollation("utf8_general_ci");
  9413. entity.Property(e => e.OrderAmount).HasColumnType("decimal(18,2)");
  9414. entity.Property(e => e.OrderNo)
  9415. .HasColumnType("varchar(32)")
  9416. .HasCharSet("utf8")
  9417. .HasCollation("utf8_general_ci");
  9418. entity.Property(e => e.OrderNum).HasColumnType("int(11)");
  9419. entity.Property(e => e.ProductName)
  9420. .HasColumnType("varchar(32)")
  9421. .HasCharSet("utf8")
  9422. .HasCollation("utf8_general_ci");
  9423. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9424. entity.Property(e => e.Remark)
  9425. .HasColumnType("varchar(64)")
  9426. .HasCharSet("utf8")
  9427. .HasCollation("utf8_general_ci");
  9428. entity.Property(e => e.RuleOrderAmt).HasColumnType("decimal(18,2)");
  9429. entity.Property(e => e.SeoDescription)
  9430. .HasColumnType("varchar(500)")
  9431. .HasCharSet("utf8")
  9432. .HasCollation("utf8_general_ci");
  9433. entity.Property(e => e.SeoKeyword)
  9434. .HasColumnType("varchar(200)")
  9435. .HasCharSet("utf8")
  9436. .HasCollation("utf8_general_ci");
  9437. entity.Property(e => e.SeoTitle)
  9438. .HasColumnType("varchar(100)")
  9439. .HasCharSet("utf8")
  9440. .HasCollation("utf8_general_ci");
  9441. entity.Property(e => e.SnNo)
  9442. .HasColumnType("varchar(32)")
  9443. .HasCharSet("utf8")
  9444. .HasCollation("utf8_general_ci");
  9445. entity.Property(e => e.SnShipDate).HasColumnType("datetime");
  9446. entity.Property(e => e.SnStatus).HasColumnType("int(11)");
  9447. entity.Property(e => e.SnType).HasColumnType("int(11)");
  9448. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9449. entity.Property(e => e.Status).HasColumnType("int(11)");
  9450. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  9451. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9452. entity.Property(e => e.UpdateMan)
  9453. .HasColumnType("varchar(50)")
  9454. .HasCharSet("utf8")
  9455. .HasCollation("utf8_general_ci");
  9456. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9457. entity.Property(e => e.Version).HasColumnType("int(11)");
  9458. });
  9459. modelBuilder.Entity<UserOfflineSignInRecords>(entity =>
  9460. {
  9461. entity.Property(e => e.Id).HasColumnType("int(11)");
  9462. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9463. entity.Property(e => e.CreateMan)
  9464. .HasColumnType("varchar(50)")
  9465. .HasCharSet("utf8")
  9466. .HasCollation("utf8_general_ci");
  9467. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  9468. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9469. entity.Property(e => e.SeoDescription)
  9470. .HasColumnType("varchar(500)")
  9471. .HasCharSet("utf8")
  9472. .HasCollation("utf8_general_ci");
  9473. entity.Property(e => e.SeoKeyword)
  9474. .HasColumnType("varchar(200)")
  9475. .HasCharSet("utf8")
  9476. .HasCollation("utf8_general_ci");
  9477. entity.Property(e => e.SeoTitle)
  9478. .HasColumnType("varchar(100)")
  9479. .HasCharSet("utf8")
  9480. .HasCollation("utf8_general_ci");
  9481. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9482. entity.Property(e => e.Status).HasColumnType("int(11)");
  9483. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9484. entity.Property(e => e.UpdateMan)
  9485. .HasColumnType("varchar(50)")
  9486. .HasCharSet("utf8")
  9487. .HasCollation("utf8_general_ci");
  9488. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9489. entity.Property(e => e.Version).HasColumnType("int(11)");
  9490. });
  9491. modelBuilder.Entity<UserProfit>(entity =>
  9492. {
  9493. entity.Property(e => e.Id).HasColumnType("int(11)");
  9494. entity.Property(e => e.AddOrSubRate).HasColumnType("decimal(18,2)");
  9495. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9496. entity.Property(e => e.CardType)
  9497. .HasColumnType("varchar(10)")
  9498. .HasCharSet("utf8")
  9499. .HasCollation("utf8_general_ci");
  9500. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9501. entity.Property(e => e.CreateMan)
  9502. .HasColumnType("varchar(50)")
  9503. .HasCharSet("utf8")
  9504. .HasCollation("utf8_general_ci");
  9505. entity.Property(e => e.HelpAddOrSubRate).HasColumnType("decimal(18,2)");
  9506. entity.Property(e => e.HelpProfitPercent).HasColumnType("decimal(18,2)");
  9507. entity.Property(e => e.HelpProfitRate).HasColumnType("decimal(18,2)");
  9508. entity.Property(e => e.HelpProfitRateBase).HasColumnType("decimal(18,2)");
  9509. entity.Property(e => e.ProfitPercent).HasColumnType("decimal(18,2)");
  9510. entity.Property(e => e.ProfitRate).HasColumnType("decimal(18,2)");
  9511. entity.Property(e => e.ProfitRateBase).HasColumnType("decimal(18,2)");
  9512. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9513. entity.Property(e => e.Remark)
  9514. .HasColumnType("varchar(64)")
  9515. .HasCharSet("utf8")
  9516. .HasCollation("utf8_general_ci");
  9517. entity.Property(e => e.SeoDescription)
  9518. .HasColumnType("varchar(500)")
  9519. .HasCharSet("utf8")
  9520. .HasCollation("utf8_general_ci");
  9521. entity.Property(e => e.SeoKeyword)
  9522. .HasColumnType("varchar(200)")
  9523. .HasCharSet("utf8")
  9524. .HasCollation("utf8_general_ci");
  9525. entity.Property(e => e.SeoTitle)
  9526. .HasColumnType("varchar(100)")
  9527. .HasCharSet("utf8")
  9528. .HasCollation("utf8_general_ci");
  9529. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9530. entity.Property(e => e.Status).HasColumnType("int(11)");
  9531. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  9532. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9533. entity.Property(e => e.UpdateMan)
  9534. .HasColumnType("varchar(50)")
  9535. .HasCharSet("utf8")
  9536. .HasCollation("utf8_general_ci");
  9537. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9538. entity.Property(e => e.Version).HasColumnType("int(11)");
  9539. });
  9540. modelBuilder.Entity<UserProfitSet>(entity =>
  9541. {
  9542. entity.Property(e => e.Id).HasColumnType("int(11)");
  9543. entity.Property(e => e.AddOrSubRate).HasColumnType("decimal(18,2)");
  9544. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9545. entity.Property(e => e.CardType).HasColumnType("int(11)");
  9546. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9547. entity.Property(e => e.CreateMan)
  9548. .HasColumnType("varchar(50)")
  9549. .HasCharSet("utf8")
  9550. .HasCollation("utf8_general_ci");
  9551. entity.Property(e => e.HelpFlag).HasColumnType("int(11)");
  9552. entity.Property(e => e.ProfitPercent).HasColumnType("decimal(18,2)");
  9553. entity.Property(e => e.ProfitRate).HasColumnType("decimal(18,2)");
  9554. entity.Property(e => e.ProfitRateBase).HasColumnType("decimal(18,2)");
  9555. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9556. entity.Property(e => e.Remark)
  9557. .HasColumnType("varchar(64)")
  9558. .HasCharSet("utf8")
  9559. .HasCollation("utf8_general_ci");
  9560. entity.Property(e => e.SeoDescription)
  9561. .HasColumnType("varchar(500)")
  9562. .HasCharSet("utf8")
  9563. .HasCollation("utf8_general_ci");
  9564. entity.Property(e => e.SeoKeyword)
  9565. .HasColumnType("varchar(200)")
  9566. .HasCharSet("utf8")
  9567. .HasCollation("utf8_general_ci");
  9568. entity.Property(e => e.SeoTitle)
  9569. .HasColumnType("varchar(100)")
  9570. .HasCharSet("utf8")
  9571. .HasCollation("utf8_general_ci");
  9572. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9573. entity.Property(e => e.Status).HasColumnType("int(11)");
  9574. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  9575. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9576. entity.Property(e => e.UpdateMan)
  9577. .HasColumnType("varchar(50)")
  9578. .HasCharSet("utf8")
  9579. .HasCollation("utf8_general_ci");
  9580. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9581. entity.Property(e => e.Version).HasColumnType("int(11)");
  9582. });
  9583. modelBuilder.Entity<UserProfitSubsidySummary>(entity =>
  9584. {
  9585. entity.Property(e => e.Id).HasColumnType("int(11)");
  9586. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9587. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  9588. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9589. entity.Property(e => e.CreateMan)
  9590. .HasColumnType("varchar(50)")
  9591. .HasCharSet("utf8")
  9592. .HasCollation("utf8_general_ci");
  9593. entity.Property(e => e.MgrName)
  9594. .HasColumnType("varchar(32)")
  9595. .HasCharSet("utf8")
  9596. .HasCollation("utf8_general_ci");
  9597. entity.Property(e => e.MgrNo)
  9598. .HasColumnType("varchar(16)")
  9599. .HasCharSet("utf8")
  9600. .HasCollation("utf8_general_ci");
  9601. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9602. entity.Property(e => e.SeoDescription)
  9603. .HasColumnType("varchar(500)")
  9604. .HasCharSet("utf8")
  9605. .HasCollation("utf8_general_ci");
  9606. entity.Property(e => e.SeoKeyword)
  9607. .HasColumnType("varchar(200)")
  9608. .HasCharSet("utf8")
  9609. .HasCollation("utf8_general_ci");
  9610. entity.Property(e => e.SeoTitle)
  9611. .HasColumnType("varchar(100)")
  9612. .HasCharSet("utf8")
  9613. .HasCollation("utf8_general_ci");
  9614. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9615. entity.Property(e => e.Status).HasColumnType("int(11)");
  9616. entity.Property(e => e.SubsidyDirectProfit).HasColumnType("decimal(18,2)");
  9617. entity.Property(e => e.SubsidyJuniorProfit).HasColumnType("decimal(18,2)");
  9618. entity.Property(e => e.SubsidyTotalProfit).HasColumnType("decimal(18,2)");
  9619. entity.Property(e => e.TradeMonth)
  9620. .HasColumnType("varchar(6)")
  9621. .HasCharSet("utf8")
  9622. .HasCollation("utf8_general_ci");
  9623. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9624. entity.Property(e => e.UpdateMan)
  9625. .HasColumnType("varchar(50)")
  9626. .HasCharSet("utf8")
  9627. .HasCollation("utf8_general_ci");
  9628. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9629. entity.Property(e => e.Version).HasColumnType("int(11)");
  9630. });
  9631. modelBuilder.Entity<UserRank>(entity =>
  9632. {
  9633. entity.Property(e => e.Id).HasColumnType("int(11)");
  9634. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9635. entity.Property(e => e.CreateMan)
  9636. .HasColumnType("varchar(50)")
  9637. .HasCharSet("utf8")
  9638. .HasCollation("utf8_general_ci");
  9639. entity.Property(e => e.ExceedVal).HasColumnType("int(11)");
  9640. entity.Property(e => e.NextRank).HasColumnType("int(11)");
  9641. entity.Property(e => e.OperateDate).HasColumnType("datetime");
  9642. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9643. entity.Property(e => e.Rank).HasColumnType("int(11)");
  9644. entity.Property(e => e.SeoDescription)
  9645. .HasColumnType("varchar(500)")
  9646. .HasCharSet("utf8")
  9647. .HasCollation("utf8_general_ci");
  9648. entity.Property(e => e.SeoKeyword)
  9649. .HasColumnType("varchar(200)")
  9650. .HasCharSet("utf8")
  9651. .HasCollation("utf8_general_ci");
  9652. entity.Property(e => e.SeoTitle)
  9653. .HasColumnType("varchar(100)")
  9654. .HasCharSet("utf8")
  9655. .HasCollation("utf8_general_ci");
  9656. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9657. entity.Property(e => e.StatMonth).HasColumnType("int(11)");
  9658. entity.Property(e => e.StatYear).HasColumnType("int(11)");
  9659. entity.Property(e => e.Status).HasColumnType("int(11)");
  9660. entity.Property(e => e.TradeAmt).HasColumnType("decimal(18,2)");
  9661. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9662. entity.Property(e => e.UpdateMan)
  9663. .HasColumnType("varchar(50)")
  9664. .HasCharSet("utf8")
  9665. .HasCollation("utf8_general_ci");
  9666. entity.Property(e => e.UpgradeFlag)
  9667. .HasColumnType("bit(1)")
  9668. .HasDefaultValueSql("b'0'");
  9669. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9670. entity.Property(e => e.Version).HasColumnType("int(11)");
  9671. entity.Property(e => e.WhiteRank).HasColumnType("int(11)");
  9672. });
  9673. modelBuilder.Entity<UserRankWhite>(entity =>
  9674. {
  9675. entity.Property(e => e.Id).HasColumnType("int(11)");
  9676. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9677. entity.Property(e => e.CreateMan)
  9678. .HasColumnType("varchar(50)")
  9679. .HasCharSet("utf8")
  9680. .HasCollation("utf8_general_ci");
  9681. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9682. entity.Property(e => e.Rank).HasColumnType("int(11)");
  9683. entity.Property(e => e.SeoDescription)
  9684. .HasColumnType("varchar(500)")
  9685. .HasCharSet("utf8")
  9686. .HasCollation("utf8_general_ci");
  9687. entity.Property(e => e.SeoKeyword)
  9688. .HasColumnType("varchar(200)")
  9689. .HasCharSet("utf8")
  9690. .HasCollation("utf8_general_ci");
  9691. entity.Property(e => e.SeoTitle)
  9692. .HasColumnType("varchar(100)")
  9693. .HasCharSet("utf8")
  9694. .HasCollation("utf8_general_ci");
  9695. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9696. entity.Property(e => e.Status).HasColumnType("int(11)");
  9697. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9698. entity.Property(e => e.UpdateMan)
  9699. .HasColumnType("varchar(50)")
  9700. .HasCharSet("utf8")
  9701. .HasCollation("utf8_general_ci");
  9702. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9703. entity.Property(e => e.Version).HasColumnType("int(11)");
  9704. });
  9705. modelBuilder.Entity<UserRebateDetail>(entity =>
  9706. {
  9707. entity.Property(e => e.Id).HasColumnType("int(11)");
  9708. entity.Property(e => e.ChannelMerNo)
  9709. .HasColumnType("varchar(32)")
  9710. .HasCharSet("utf8")
  9711. .HasCollation("utf8_general_ci");
  9712. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9713. entity.Property(e => e.CreateMan)
  9714. .HasColumnType("varchar(50)")
  9715. .HasCharSet("utf8")
  9716. .HasCollation("utf8_general_ci");
  9717. entity.Property(e => e.CreditRewardAmount).HasColumnType("decimal(18,2)");
  9718. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  9719. entity.Property(e => e.DebitRewardAmount).HasColumnType("decimal(18,2)");
  9720. entity.Property(e => e.DebitTradeAmt).HasColumnType("decimal(18,2)");
  9721. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  9722. entity.Property(e => e.MgrName)
  9723. .HasColumnType("varchar(32)")
  9724. .HasCharSet("utf8")
  9725. .HasCollation("utf8_general_ci");
  9726. entity.Property(e => e.MgrNo)
  9727. .HasColumnType("varchar(16)")
  9728. .HasCharSet("utf8")
  9729. .HasCollation("utf8_general_ci");
  9730. entity.Property(e => e.ProductName)
  9731. .HasColumnType("varchar(32)")
  9732. .HasCharSet("utf8")
  9733. .HasCollation("utf8_general_ci");
  9734. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  9735. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9736. entity.Property(e => e.RebateMonthCount).HasColumnType("int(11)");
  9737. entity.Property(e => e.RebateRewardNo)
  9738. .HasColumnType("varchar(32)")
  9739. .HasCharSet("utf8")
  9740. .HasCollation("utf8_general_ci");
  9741. entity.Property(e => e.RebateType).HasColumnType("int(11)");
  9742. entity.Property(e => e.Remark)
  9743. .HasColumnType("varchar(64)")
  9744. .HasCharSet("utf8")
  9745. .HasCollation("utf8_general_ci");
  9746. entity.Property(e => e.SeoDescription)
  9747. .HasColumnType("varchar(500)")
  9748. .HasCharSet("utf8")
  9749. .HasCollation("utf8_general_ci");
  9750. entity.Property(e => e.SeoKeyword)
  9751. .HasColumnType("varchar(200)")
  9752. .HasCharSet("utf8")
  9753. .HasCollation("utf8_general_ci");
  9754. entity.Property(e => e.SeoTitle)
  9755. .HasColumnType("varchar(100)")
  9756. .HasCharSet("utf8")
  9757. .HasCollation("utf8_general_ci");
  9758. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9759. entity.Property(e => e.Status).HasColumnType("int(11)");
  9760. entity.Property(e => e.TradeDate)
  9761. .HasColumnType("varchar(8)")
  9762. .HasCharSet("utf8")
  9763. .HasCollation("utf8_general_ci");
  9764. entity.Property(e => e.TradeMonth)
  9765. .HasColumnType("varchar(6)")
  9766. .HasCharSet("utf8")
  9767. .HasCollation("utf8_general_ci");
  9768. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9769. entity.Property(e => e.UpdateMan)
  9770. .HasColumnType("varchar(50)")
  9771. .HasCharSet("utf8")
  9772. .HasCollation("utf8_general_ci");
  9773. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9774. entity.Property(e => e.Version).HasColumnType("int(11)");
  9775. });
  9776. modelBuilder.Entity<UserSnActInfo>(entity =>
  9777. {
  9778. entity.Property(e => e.Id).HasColumnType("int(11)");
  9779. entity.Property(e => e.ActUserId).HasColumnType("int(11)");
  9780. entity.Property(e => e.ActiveStatus).HasColumnType("int(11)");
  9781. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9782. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9783. entity.Property(e => e.CreateMan)
  9784. .HasColumnType("varchar(50)")
  9785. .HasCharSet("utf8")
  9786. .HasCollation("utf8_general_ci");
  9787. entity.Property(e => e.EffectEndActDate)
  9788. .HasColumnType("varchar(8)")
  9789. .HasCharSet("utf8")
  9790. .HasCollation("utf8_general_ci");
  9791. entity.Property(e => e.EffectEndCycleDate)
  9792. .HasColumnType("varchar(8)")
  9793. .HasCharSet("utf8")
  9794. .HasCollation("utf8_general_ci");
  9795. entity.Property(e => e.EffectStartActDate)
  9796. .HasColumnType("varchar(8)")
  9797. .HasCharSet("utf8")
  9798. .HasCollation("utf8_general_ci");
  9799. entity.Property(e => e.EffectStartCycleDate)
  9800. .HasColumnType("varchar(8)")
  9801. .HasCharSet("utf8")
  9802. .HasCollation("utf8_general_ci");
  9803. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9804. entity.Property(e => e.Remark)
  9805. .HasColumnType("varchar(128)")
  9806. .HasCharSet("utf8")
  9807. .HasCollation("utf8_general_ci");
  9808. entity.Property(e => e.SeoDescription)
  9809. .HasColumnType("varchar(500)")
  9810. .HasCharSet("utf8")
  9811. .HasCollation("utf8_general_ci");
  9812. entity.Property(e => e.SeoKeyword)
  9813. .HasColumnType("varchar(200)")
  9814. .HasCharSet("utf8")
  9815. .HasCollation("utf8_general_ci");
  9816. entity.Property(e => e.SeoTitle)
  9817. .HasColumnType("varchar(100)")
  9818. .HasCharSet("utf8")
  9819. .HasCollation("utf8_general_ci");
  9820. entity.Property(e => e.SnNo)
  9821. .HasColumnType("varchar(32)")
  9822. .HasCharSet("utf8")
  9823. .HasCollation("utf8_general_ci");
  9824. entity.Property(e => e.SnShipDate).HasColumnType("datetime");
  9825. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  9826. entity.Property(e => e.SnType).HasColumnType("int(11)");
  9827. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9828. entity.Property(e => e.SourceShipDate).HasColumnType("datetime");
  9829. entity.Property(e => e.SourceSnNo)
  9830. .HasColumnType("varchar(32)")
  9831. .HasCharSet("utf8")
  9832. .HasCollation("utf8_general_ci");
  9833. entity.Property(e => e.SourceSnType).HasColumnType("int(11)");
  9834. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  9835. entity.Property(e => e.StandardDate)
  9836. .HasColumnType("varchar(8)")
  9837. .HasCharSet("utf8")
  9838. .HasCollation("utf8_general_ci");
  9839. entity.Property(e => e.Status).HasColumnType("int(11)");
  9840. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9841. entity.Property(e => e.UpdateMan)
  9842. .HasColumnType("varchar(50)")
  9843. .HasCharSet("utf8")
  9844. .HasCollation("utf8_general_ci");
  9845. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9846. entity.Property(e => e.Version).HasColumnType("int(11)");
  9847. });
  9848. modelBuilder.Entity<UserSnDelayChange>(entity =>
  9849. {
  9850. entity.Property(e => e.Id).HasColumnType("int(11)");
  9851. entity.Property(e => e.ActivityRuleId).HasColumnType("int(11)");
  9852. entity.Property(e => e.AfterEndCycleDate)
  9853. .HasColumnType("varchar(8)")
  9854. .HasCharSet("utf8")
  9855. .HasCollation("utf8_general_ci");
  9856. entity.Property(e => e.BeforeEndCycleDate)
  9857. .HasColumnType("varchar(8)")
  9858. .HasCharSet("utf8")
  9859. .HasCollation("utf8_general_ci");
  9860. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9861. entity.Property(e => e.ChangeRecordNo)
  9862. .HasColumnType("varchar(32)")
  9863. .HasCharSet("utf8")
  9864. .HasCollation("utf8_general_ci");
  9865. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9866. entity.Property(e => e.CreateMan)
  9867. .HasColumnType("varchar(50)")
  9868. .HasCharSet("utf8")
  9869. .HasCollation("utf8_general_ci");
  9870. entity.Property(e => e.InitCycleDate)
  9871. .HasColumnType("varchar(8)")
  9872. .HasCharSet("utf8")
  9873. .HasCollation("utf8_general_ci");
  9874. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9875. entity.Property(e => e.RecUserId).HasColumnType("int(11)");
  9876. entity.Property(e => e.Remark)
  9877. .HasColumnType("varchar(128)")
  9878. .HasCharSet("utf8")
  9879. .HasCollation("utf8_general_ci");
  9880. entity.Property(e => e.SeoDescription)
  9881. .HasColumnType("varchar(500)")
  9882. .HasCharSet("utf8")
  9883. .HasCollation("utf8_general_ci");
  9884. entity.Property(e => e.SeoKeyword)
  9885. .HasColumnType("varchar(200)")
  9886. .HasCharSet("utf8")
  9887. .HasCollation("utf8_general_ci");
  9888. entity.Property(e => e.SeoTitle)
  9889. .HasColumnType("varchar(100)")
  9890. .HasCharSet("utf8")
  9891. .HasCollation("utf8_general_ci");
  9892. entity.Property(e => e.SnDelayDay).HasColumnType("int(11)");
  9893. entity.Property(e => e.SnNo)
  9894. .HasColumnType("varchar(32)")
  9895. .HasCharSet("utf8")
  9896. .HasCollation("utf8_general_ci");
  9897. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  9898. entity.Property(e => e.SnType).HasColumnType("int(11)");
  9899. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9900. entity.Property(e => e.SourceSnNo)
  9901. .HasColumnType("varchar(32)")
  9902. .HasCharSet("utf8")
  9903. .HasCollation("utf8_general_ci");
  9904. entity.Property(e => e.SourceSnShipDate).HasColumnType("datetime");
  9905. entity.Property(e => e.SourceSnType).HasColumnType("int(11)");
  9906. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  9907. entity.Property(e => e.Status).HasColumnType("int(11)");
  9908. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9909. entity.Property(e => e.UpdateMan)
  9910. .HasColumnType("varchar(50)")
  9911. .HasCharSet("utf8")
  9912. .HasCollation("utf8_general_ci");
  9913. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9914. entity.Property(e => e.Version).HasColumnType("int(11)");
  9915. });
  9916. modelBuilder.Entity<UserStoreChange>(entity =>
  9917. {
  9918. entity.Property(e => e.Id).HasColumnType("int(11)");
  9919. entity.Property(e => e.ActRewardUserId).HasColumnType("int(11)");
  9920. entity.Property(e => e.ActiveStatus).HasColumnType("int(11)");
  9921. entity.Property(e => e.BindMerchantId).HasColumnType("int(11)");
  9922. entity.Property(e => e.BindStatus).HasColumnType("int(11)");
  9923. entity.Property(e => e.BizBatchNo)
  9924. .HasColumnType("varchar(32)")
  9925. .HasCharSet("utf8")
  9926. .HasCollation("utf8_general_ci");
  9927. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9928. entity.Property(e => e.BrandType)
  9929. .HasColumnType("varchar(10)")
  9930. .HasCharSet("utf8")
  9931. .HasCollation("utf8_general_ci");
  9932. entity.Property(e => e.ChangeRecordNo)
  9933. .HasColumnType("varchar(32)")
  9934. .HasCharSet("utf8")
  9935. .HasCollation("utf8_general_ci");
  9936. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9937. entity.Property(e => e.CreateMan)
  9938. .HasColumnType("varchar(50)")
  9939. .HasCharSet("utf8")
  9940. .HasCollation("utf8_general_ci");
  9941. entity.Property(e => e.DeviceModel)
  9942. .HasColumnType("varchar(32)")
  9943. .HasCharSet("utf8")
  9944. .HasCollation("utf8_general_ci");
  9945. entity.Property(e => e.DeviceType)
  9946. .HasColumnType("varchar(32)")
  9947. .HasCharSet("utf8")
  9948. .HasCollation("utf8_general_ci");
  9949. entity.Property(e => e.DeviceVendor)
  9950. .HasColumnType("varchar(32)")
  9951. .HasCharSet("utf8")
  9952. .HasCollation("utf8_general_ci");
  9953. entity.Property(e => e.FromDate).HasColumnType("datetime");
  9954. entity.Property(e => e.FromRemark)
  9955. .HasColumnType("varchar(64)")
  9956. .HasCharSet("utf8")
  9957. .HasCollation("utf8_general_ci");
  9958. entity.Property(e => e.FromUserId).HasColumnType("int(11)");
  9959. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9960. entity.Property(e => e.SeoDescription)
  9961. .HasColumnType("varchar(500)")
  9962. .HasCharSet("utf8")
  9963. .HasCollation("utf8_general_ci");
  9964. entity.Property(e => e.SeoKeyword)
  9965. .HasColumnType("varchar(200)")
  9966. .HasCharSet("utf8")
  9967. .HasCollation("utf8_general_ci");
  9968. entity.Property(e => e.SeoTitle)
  9969. .HasColumnType("varchar(100)")
  9970. .HasCharSet("utf8")
  9971. .HasCollation("utf8_general_ci");
  9972. entity.Property(e => e.SnNo)
  9973. .HasColumnType("varchar(32)")
  9974. .HasCharSet("utf8")
  9975. .HasCollation("utf8_general_ci");
  9976. entity.Property(e => e.SnStatus).HasColumnType("int(11)");
  9977. entity.Property(e => e.SnType).HasColumnType("int(11)");
  9978. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9979. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  9980. entity.Property(e => e.Status).HasColumnType("int(11)");
  9981. entity.Property(e => e.StockOpDirect).HasColumnType("int(11)");
  9982. entity.Property(e => e.ToDate).HasColumnType("datetime");
  9983. entity.Property(e => e.ToRemark)
  9984. .HasColumnType("varchar(64)")
  9985. .HasCharSet("utf8")
  9986. .HasCollation("utf8_general_ci");
  9987. entity.Property(e => e.ToStoreId).HasColumnType("int(11)");
  9988. entity.Property(e => e.ToUserId).HasColumnType("int(11)");
  9989. entity.Property(e => e.TransType).HasColumnType("int(11)");
  9990. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9991. entity.Property(e => e.UpdateMan)
  9992. .HasColumnType("varchar(50)")
  9993. .HasCharSet("utf8")
  9994. .HasCollation("utf8_general_ci");
  9995. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9996. entity.Property(e => e.Version).HasColumnType("int(11)");
  9997. });
  9998. modelBuilder.Entity<UserSwapDetail>(entity =>
  9999. {
  10000. entity.Property(e => e.Id).HasColumnType("int(11)");
  10001. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  10002. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  10003. entity.Property(e => e.CreateMan)
  10004. .HasColumnType("varchar(50)")
  10005. .HasCharSet("utf8")
  10006. .HasCollation("utf8_general_ci");
  10007. entity.Property(e => e.DirectSnTradeAmt).HasColumnType("decimal(18,2)");
  10008. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  10009. entity.Property(e => e.RecordNo)
  10010. .HasColumnType("varchar(32)")
  10011. .HasCharSet("utf8")
  10012. .HasCollation("utf8_general_ci");
  10013. entity.Property(e => e.Remark)
  10014. .HasColumnType("varchar(64)")
  10015. .HasCharSet("utf8")
  10016. .HasCollation("utf8_general_ci");
  10017. entity.Property(e => e.RiskResult).HasColumnType("int(11)");
  10018. entity.Property(e => e.SeoDescription)
  10019. .HasColumnType("varchar(500)")
  10020. .HasCharSet("utf8")
  10021. .HasCollation("utf8_general_ci");
  10022. entity.Property(e => e.SeoKeyword)
  10023. .HasColumnType("varchar(200)")
  10024. .HasCharSet("utf8")
  10025. .HasCollation("utf8_general_ci");
  10026. entity.Property(e => e.SeoTitle)
  10027. .HasColumnType("varchar(100)")
  10028. .HasCharSet("utf8")
  10029. .HasCollation("utf8_general_ci");
  10030. entity.Property(e => e.SnNo)
  10031. .HasColumnType("varchar(32)")
  10032. .HasCharSet("utf8")
  10033. .HasCollation("utf8_general_ci");
  10034. entity.Property(e => e.SnType).HasColumnType("int(11)");
  10035. entity.Property(e => e.Sort).HasColumnType("int(11)");
  10036. entity.Property(e => e.SourceSnNo)
  10037. .HasColumnType("varchar(32)")
  10038. .HasCharSet("utf8")
  10039. .HasCollation("utf8_general_ci");
  10040. entity.Property(e => e.SourceSnType).HasColumnType("int(11)");
  10041. entity.Property(e => e.Status).HasColumnType("int(11)");
  10042. entity.Property(e => e.SwapExtProductTypes)
  10043. .HasColumnType("varchar(16)")
  10044. .HasCharSet("utf8")
  10045. .HasCollation("utf8_general_ci");
  10046. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  10047. entity.Property(e => e.TradeDate)
  10048. .HasColumnType("varchar(8)")
  10049. .HasCharSet("utf8")
  10050. .HasCollation("utf8_general_ci");
  10051. entity.Property(e => e.TradeMonth)
  10052. .HasColumnType("varchar(6)")
  10053. .HasCharSet("utf8")
  10054. .HasCollation("utf8_general_ci");
  10055. entity.Property(e => e.UpSourceSnNo)
  10056. .HasColumnType("varchar(32)")
  10057. .HasCharSet("utf8")
  10058. .HasCollation("utf8_general_ci");
  10059. entity.Property(e => e.UpSourceSnType).HasColumnType("int(11)");
  10060. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  10061. entity.Property(e => e.UpdateMan)
  10062. .HasColumnType("varchar(50)")
  10063. .HasCharSet("utf8")
  10064. .HasCollation("utf8_general_ci");
  10065. entity.Property(e => e.UserId).HasColumnType("int(11)");
  10066. entity.Property(e => e.Version).HasColumnType("int(11)");
  10067. });
  10068. modelBuilder.Entity<UserSwapSummary>(entity =>
  10069. {
  10070. entity.Property(e => e.Id).HasColumnType("int(11)");
  10071. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  10072. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  10073. entity.Property(e => e.CreateMan)
  10074. .HasColumnType("varchar(50)")
  10075. .HasCharSet("utf8")
  10076. .HasCollation("utf8_general_ci");
  10077. entity.Property(e => e.DirAvgTradeAmt).HasColumnType("decimal(18,2)");
  10078. entity.Property(e => e.DirectActMerCount).HasColumnType("int(11)");
  10079. entity.Property(e => e.DirectTradeAmt).HasColumnType("decimal(18,2)");
  10080. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  10081. entity.Property(e => e.RiskStatus).HasColumnType("int(11)");
  10082. entity.Property(e => e.RuleId).HasColumnType("int(11)");
  10083. entity.Property(e => e.SeoDescription)
  10084. .HasColumnType("varchar(500)")
  10085. .HasCharSet("utf8")
  10086. .HasCollation("utf8_general_ci");
  10087. entity.Property(e => e.SeoKeyword)
  10088. .HasColumnType("varchar(200)")
  10089. .HasCharSet("utf8")
  10090. .HasCollation("utf8_general_ci");
  10091. entity.Property(e => e.SeoTitle)
  10092. .HasColumnType("varchar(100)")
  10093. .HasCharSet("utf8")
  10094. .HasCollation("utf8_general_ci");
  10095. entity.Property(e => e.Sort).HasColumnType("int(11)");
  10096. entity.Property(e => e.Status).HasColumnType("int(11)");
  10097. entity.Property(e => e.SwapExtProductTypes)
  10098. .HasColumnType("varchar(16)")
  10099. .HasCharSet("utf8")
  10100. .HasCollation("utf8_general_ci");
  10101. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  10102. entity.Property(e => e.TradeMonth)
  10103. .HasColumnType("varchar(6)")
  10104. .HasCharSet("utf8")
  10105. .HasCollation("utf8_general_ci");
  10106. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  10107. entity.Property(e => e.UpdateMan)
  10108. .HasColumnType("varchar(50)")
  10109. .HasCharSet("utf8")
  10110. .HasCollation("utf8_general_ci");
  10111. entity.Property(e => e.UserId).HasColumnType("int(11)");
  10112. entity.Property(e => e.Version).HasColumnType("int(11)");
  10113. });
  10114. modelBuilder.Entity<UserSwapWhite>(entity =>
  10115. {
  10116. entity.Property(e => e.Id).HasColumnType("int(11)");
  10117. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  10118. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  10119. entity.Property(e => e.CreateMan)
  10120. .HasColumnType("varchar(50)")
  10121. .HasCharSet("utf8")
  10122. .HasCollation("utf8_general_ci");
  10123. entity.Property(e => e.EndEffectTime).HasColumnType("datetime");
  10124. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  10125. entity.Property(e => e.Remark)
  10126. .HasColumnType("varchar(64)")
  10127. .HasCharSet("utf8")
  10128. .HasCollation("utf8_general_ci");
  10129. entity.Property(e => e.RiskType).HasColumnType("int(11)");
  10130. entity.Property(e => e.SeoDescription)
  10131. .HasColumnType("varchar(500)")
  10132. .HasCharSet("utf8")
  10133. .HasCollation("utf8_general_ci");
  10134. entity.Property(e => e.SeoKeyword)
  10135. .HasColumnType("varchar(200)")
  10136. .HasCharSet("utf8")
  10137. .HasCollation("utf8_general_ci");
  10138. entity.Property(e => e.SeoTitle)
  10139. .HasColumnType("varchar(100)")
  10140. .HasCharSet("utf8")
  10141. .HasCollation("utf8_general_ci");
  10142. entity.Property(e => e.Sort).HasColumnType("int(11)");
  10143. entity.Property(e => e.StartEffectTime).HasColumnType("datetime");
  10144. entity.Property(e => e.Status).HasColumnType("int(11)");
  10145. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  10146. entity.Property(e => e.UpdateMan)
  10147. .HasColumnType("varchar(50)")
  10148. .HasCharSet("utf8")
  10149. .HasCollation("utf8_general_ci");
  10150. entity.Property(e => e.UserId).HasColumnType("int(11)");
  10151. entity.Property(e => e.Version).HasColumnType("int(11)");
  10152. });
  10153. modelBuilder.Entity<UserTradeDaySummary>(entity =>
  10154. {
  10155. entity.HasIndex(e => new { e.UserId, e.TradeMonth, e.TradeDate, e.SeoTitle, e.BrandId, e.QueryCount })
  10156. .HasName("UserTradeDaySummaryIndex");
  10157. entity.Property(e => e.Id).HasColumnType("int(11)");
  10158. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  10159. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  10160. entity.Property(e => e.CreateMan)
  10161. .HasColumnType("varchar(50)")
  10162. .HasCharSet("utf8")
  10163. .HasCollation("utf8_general_ci");
  10164. entity.Property(e => e.DirectDebitCapNum).HasColumnType("int(11)");
  10165. entity.Property(e => e.DirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  10166. entity.Property(e => e.DirectTradeAmt).HasColumnType("decimal(18,2)");
  10167. entity.Property(e => e.NonDirectDebitCapNum).HasColumnType("int(11)");
  10168. entity.Property(e => e.NonDirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  10169. entity.Property(e => e.NonDirectTradeAmt).HasColumnType("decimal(18,2)");
  10170. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  10171. entity.Property(e => e.Remark)
  10172. .HasColumnType("varchar(64)")
  10173. .HasCharSet("utf8")
  10174. .HasCollation("utf8_general_ci");
  10175. entity.Property(e => e.SeoDescription)
  10176. .HasColumnType("varchar(500)")
  10177. .HasCharSet("utf8")
  10178. .HasCollation("utf8_general_ci");
  10179. entity.Property(e => e.SeoKeyword)
  10180. .HasColumnType("varchar(200)")
  10181. .HasCharSet("utf8")
  10182. .HasCollation("utf8_general_ci");
  10183. entity.Property(e => e.SeoTitle)
  10184. .HasColumnType("varchar(100)")
  10185. .HasCharSet("utf8")
  10186. .HasCollation("utf8_general_ci");
  10187. entity.Property(e => e.Sort).HasColumnType("int(11)");
  10188. entity.Property(e => e.Status).HasColumnType("int(11)");
  10189. entity.Property(e => e.TradeDate)
  10190. .HasColumnType("varchar(8)")
  10191. .HasCharSet("utf8")
  10192. .HasCollation("utf8_general_ci");
  10193. entity.Property(e => e.TradeMonth)
  10194. .HasColumnType("varchar(6)")
  10195. .HasCharSet("utf8")
  10196. .HasCollation("utf8_general_ci");
  10197. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  10198. entity.Property(e => e.UpdateMan)
  10199. .HasColumnType("varchar(50)")
  10200. .HasCharSet("utf8")
  10201. .HasCollation("utf8_general_ci");
  10202. entity.Property(e => e.UserId).HasColumnType("int(11)");
  10203. entity.Property(e => e.Version).HasColumnType("int(11)");
  10204. });
  10205. modelBuilder.Entity<UserTradeMonthSummary>(entity =>
  10206. {
  10207. entity.HasIndex(e => new { e.UserId, e.BrandId, e.TradeMonth, e.SeoKeyword, e.SeoTitle })
  10208. .HasName("UserTradeMonthSummaryIndex");
  10209. entity.Property(e => e.Id).HasColumnType("int(11)");
  10210. entity.Property(e => e.ActiveBuddyMerStatus).HasColumnType("int(11)");
  10211. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  10212. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  10213. entity.Property(e => e.CreateMan)
  10214. .HasColumnType("varchar(50)")
  10215. .HasCharSet("utf8")
  10216. .HasCollation("utf8_general_ci");
  10217. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  10218. entity.Property(e => e.DebitCapTradeAmt).HasColumnType("decimal(18,2)");
  10219. entity.Property(e => e.DebitCapTradeNum).HasColumnType("int(11)");
  10220. entity.Property(e => e.DebitNotCapTradeAmt).HasColumnType("decimal(18,2)");
  10221. entity.Property(e => e.MallPosOrderStatus).HasColumnType("int(11)");
  10222. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  10223. entity.Property(e => e.Remark)
  10224. .HasColumnType("varchar(64)")
  10225. .HasCharSet("utf8")
  10226. .HasCollation("utf8_general_ci");
  10227. entity.Property(e => e.SeoDescription)
  10228. .HasColumnType("varchar(500)")
  10229. .HasCharSet("utf8")
  10230. .HasCollation("utf8_general_ci");
  10231. entity.Property(e => e.SeoKeyword)
  10232. .HasColumnType("varchar(200)")
  10233. .HasCharSet("utf8")
  10234. .HasCollation("utf8_general_ci");
  10235. entity.Property(e => e.SeoTitle)
  10236. .HasColumnType("varchar(100)")
  10237. .HasCharSet("utf8")
  10238. .HasCollation("utf8_general_ci");
  10239. entity.Property(e => e.Sort).HasColumnType("int(11)");
  10240. entity.Property(e => e.StatType).HasColumnType("int(11)");
  10241. entity.Property(e => e.Status).HasColumnType("int(11)");
  10242. entity.Property(e => e.TradeAmt).HasColumnType("decimal(18,2)");
  10243. entity.Property(e => e.TradeMonth)
  10244. .HasColumnType("varchar(6)")
  10245. .HasCharSet("utf8")
  10246. .HasCollation("utf8_general_ci");
  10247. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  10248. entity.Property(e => e.UpdateMan)
  10249. .HasColumnType("varchar(50)")
  10250. .HasCharSet("utf8")
  10251. .HasCollation("utf8_general_ci");
  10252. entity.Property(e => e.UserId).HasColumnType("int(11)");
  10253. entity.Property(e => e.Version).HasColumnType("int(11)");
  10254. });
  10255. modelBuilder.Entity<Users>(entity =>
  10256. {
  10257. entity.Property(e => e.Id).HasColumnType("int(11)");
  10258. entity.Property(e => e.AccessToken)
  10259. .HasColumnType("varchar(64)")
  10260. .HasCharSet("utf8")
  10261. .HasCollation("utf8_general_ci");
  10262. entity.Property(e => e.ActiveRewardAmount).HasColumnType("decimal(18,2)");
  10263. entity.Property(e => e.Address)
  10264. .HasColumnType("varchar(50)")
  10265. .HasCharSet("utf8")
  10266. .HasCollation("utf8_general_ci");
  10267. entity.Property(e => e.AgentAreas)
  10268. .HasColumnType("varchar(50)")
  10269. .HasCharSet("utf8")
  10270. .HasCollation("utf8_general_ci");
  10271. entity.Property(e => e.AgentLevel).HasColumnType("int(11)");
  10272. entity.Property(e => e.AlipayUserId)
  10273. .HasColumnType("varchar(50)")
  10274. .HasCharSet("utf8")
  10275. .HasCollation("utf8_general_ci");
  10276. entity.Property(e => e.Areas)
  10277. .HasColumnType("varchar(30)")
  10278. .HasCharSet("utf8")
  10279. .HasCollation("utf8_general_ci");
  10280. entity.Property(e => e.AuditStatus).HasColumnType("int(11)");
  10281. entity.Property(e => e.AuthDate).HasColumnType("datetime");
  10282. entity.Property(e => e.AuthFlag)
  10283. .HasColumnType("bit(1)")
  10284. .HasDefaultValueSql("b'0'");
  10285. entity.Property(e => e.BankCardPositiveImage)
  10286. .HasColumnType("varchar(200)")
  10287. .HasCharSet("utf8")
  10288. .HasCollation("utf8_general_ci");
  10289. entity.Property(e => e.CarIds)
  10290. .HasColumnType("varchar(100)")
  10291. .HasCharSet("utf8")
  10292. .HasCollation("utf8_general_ci");
  10293. entity.Property(e => e.CardNo)
  10294. .HasColumnType("varchar(30)")
  10295. .HasCharSet("utf8")
  10296. .HasCollation("utf8_general_ci");
  10297. entity.Property(e => e.CardRecCode)
  10298. .HasColumnType("varchar(200)")
  10299. .HasCharSet("utf8")
  10300. .HasCollation("utf8_general_ci");
  10301. entity.Property(e => e.CashFreezeAmt).HasColumnType("decimal(18,2)");
  10302. entity.Property(e => e.CashNote)
  10303. .HasColumnType("varchar(200)")
  10304. .HasCharSet("utf8")
  10305. .HasCollation("utf8_general_ci");
  10306. entity.Property(e => e.CashStatus).HasColumnType("int(11)");
  10307. entity.Property(e => e.CertFrontImage)
  10308. .HasColumnType("varchar(200)")
  10309. .HasCharSet("utf8")
  10310. .HasCollation("utf8_general_ci");
  10311. entity.Property(e => e.CertId)
  10312. .HasColumnType("varchar(30)")
  10313. .HasCharSet("utf8")
  10314. .HasCollation("utf8_general_ci");
  10315. entity.Property(e => e.CertReverseImage)
  10316. .HasColumnType("varchar(200)")
  10317. .HasCharSet("utf8")
  10318. .HasCollation("utf8_general_ci");
  10319. entity.Property(e => e.CertValidEndDate).HasColumnType("datetime");
  10320. entity.Property(e => e.CertValidStartDate).HasColumnType("datetime");
  10321. entity.Property(e => e.CitySetDate).HasColumnType("datetime");
  10322. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  10323. entity.Property(e => e.CreateMan)
  10324. .HasColumnType("varchar(50)")
  10325. .HasCharSet("utf8")
  10326. .HasCollation("utf8_general_ci");
  10327. entity.Property(e => e.DeviceId)
  10328. .HasColumnType("varchar(128)")
  10329. .HasCharSet("utf8")
  10330. .HasCollation("utf8_general_ci");
  10331. entity.Property(e => e.DeviceToken)
  10332. .HasColumnType("varchar(64)")
  10333. .HasCharSet("utf8")
  10334. .HasCollation("utf8_general_ci");
  10335. entity.Property(e => e.ExpiredDate).HasColumnType("datetime");
  10336. entity.Property(e => e.GroupId)
  10337. .HasColumnType("varchar(200)")
  10338. .HasCharSet("utf8")
  10339. .HasCollation("utf8_general_ci");
  10340. entity.Property(e => e.HandCertImage)
  10341. .HasColumnType("varchar(200)")
  10342. .HasCharSet("utf8")
  10343. .HasCollation("utf8_general_ci");
  10344. entity.Property(e => e.HandPwd)
  10345. .HasColumnType("varchar(32)")
  10346. .HasCharSet("utf8")
  10347. .HasCollation("utf8_general_ci");
  10348. entity.Property(e => e.HeadPhoto)
  10349. .HasColumnType("varchar(2000)")
  10350. .HasCharSet("utf8")
  10351. .HasCollation("utf8_general_ci");
  10352. entity.Property(e => e.IdCardEndNo)
  10353. .HasColumnType("varchar(4)")
  10354. .HasCharSet("utf8")
  10355. .HasCollation("utf8_general_ci");
  10356. entity.Property(e => e.IsNewUser)
  10357. .HasColumnType("bit(1)")
  10358. .HasDefaultValueSql("b'0'");
  10359. entity.Property(e => e.LeaderLevel).HasColumnType("int(11)");
  10360. entity.Property(e => e.LockStatus)
  10361. .HasColumnType("bit(1)")
  10362. .HasDefaultValueSql("b'0'");
  10363. entity.Property(e => e.LoginPwd)
  10364. .HasColumnType("varchar(32)")
  10365. .HasCharSet("utf8")
  10366. .HasCollation("utf8_general_ci");
  10367. entity.Property(e => e.LoginStatus).HasColumnType("int(11)");
  10368. entity.Property(e => e.MakerCode)
  10369. .HasColumnType("varchar(32)")
  10370. .HasCharSet("utf8")
  10371. .HasCollation("utf8_general_ci");
  10372. entity.Property(e => e.MerchantDate).HasColumnType("datetime");
  10373. entity.Property(e => e.MerchantType).HasColumnType("int(11)");
  10374. entity.Property(e => e.Mobile)
  10375. .HasColumnType("varchar(15)")
  10376. .HasCharSet("utf8")
  10377. .HasCollation("utf8_general_ci");
  10378. entity.Property(e => e.NickName)
  10379. .HasColumnType("varchar(300)")
  10380. .HasCharSet("utf8")
  10381. .HasCollation("utf8_general_ci");
  10382. entity.Property(e => e.OpenId)
  10383. .HasColumnType("varchar(50)")
  10384. .HasCharSet("utf8")
  10385. .HasCollation("utf8_general_ci");
  10386. entity.Property(e => e.ParentNav)
  10387. .HasColumnType("longtext")
  10388. .HasCharSet("utf8")
  10389. .HasCollation("utf8_general_ci");
  10390. entity.Property(e => e.ParentUserId).HasColumnType("int(11)");
  10391. entity.Property(e => e.PayPwd)
  10392. .HasColumnType("varchar(32)")
  10393. .HasCharSet("utf8")
  10394. .HasCollation("utf8_general_ci");
  10395. entity.Property(e => e.ProfitRewardRate).HasColumnType("decimal(18,2)");
  10396. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  10397. entity.Property(e => e.RealName)
  10398. .HasColumnType("varchar(30)")
  10399. .HasCharSet("utf8")
  10400. .HasCollation("utf8_general_ci");
  10401. entity.Property(e => e.ReferenceCode)
  10402. .HasColumnType("varchar(200)")
  10403. .HasCharSet("utf8")
  10404. .HasCollation("utf8_general_ci");
  10405. entity.Property(e => e.ReferenceQrCode)
  10406. .HasColumnType("varchar(200)")
  10407. .HasCharSet("utf8")
  10408. .HasCollation("utf8_general_ci");
  10409. entity.Property(e => e.ReferralUserId).HasColumnType("int(11)");
  10410. entity.Property(e => e.Remark)
  10411. .HasColumnType("mediumtext")
  10412. .HasCharSet("utf8")
  10413. .HasCollation("utf8_general_ci");
  10414. entity.Property(e => e.RiskFlag)
  10415. .HasColumnType("bit(1)")
  10416. .HasDefaultValueSql("b'0'");
  10417. entity.Property(e => e.RiskRemark)
  10418. .HasColumnType("varchar(64)")
  10419. .HasCharSet("utf8")
  10420. .HasCollation("utf8_general_ci");
  10421. entity.Property(e => e.RreezeRemark)
  10422. .HasColumnType("varchar(64)")
  10423. .HasCharSet("utf8")
  10424. .HasCollation("utf8_general_ci");
  10425. entity.Property(e => e.SeoDescription)
  10426. .HasColumnType("varchar(500)")
  10427. .HasCharSet("utf8")
  10428. .HasCollation("utf8_general_ci");
  10429. entity.Property(e => e.SeoKeyword)
  10430. .HasColumnType("varchar(200)")
  10431. .HasCharSet("utf8")
  10432. .HasCollation("utf8_general_ci");
  10433. entity.Property(e => e.SeoTitle)
  10434. .HasColumnType("varchar(100)")
  10435. .HasCharSet("utf8")
  10436. .HasCollation("utf8_general_ci");
  10437. entity.Property(e => e.SettleAmount).HasColumnType("decimal(18,2)");
  10438. entity.Property(e => e.SettleBankCardName)
  10439. .HasColumnType("varchar(20)")
  10440. .HasCharSet("utf8")
  10441. .HasCollation("utf8_general_ci");
  10442. entity.Property(e => e.SettleBankCardNo)
  10443. .HasColumnType("varchar(32)")
  10444. .HasCharSet("utf8")
  10445. .HasCollation("utf8_general_ci");
  10446. entity.Property(e => e.SettleBankName)
  10447. .HasColumnType("varchar(32)")
  10448. .HasCharSet("utf8")
  10449. .HasCollation("utf8_general_ci");
  10450. entity.Property(e => e.SettleRemark)
  10451. .HasColumnType("varchar(64)")
  10452. .HasCharSet("utf8")
  10453. .HasCollation("utf8_general_ci");
  10454. entity.Property(e => e.Sex).HasColumnType("int(11)");
  10455. entity.Property(e => e.SignImgUrl)
  10456. .HasColumnType("varchar(200)")
  10457. .HasCharSet("utf8")
  10458. .HasCollation("utf8_general_ci");
  10459. entity.Property(e => e.Sort).HasColumnType("int(11)");
  10460. entity.Property(e => e.Status).HasColumnType("int(11)");
  10461. entity.Property(e => e.Tags)
  10462. .HasColumnType("varchar(200)")
  10463. .HasCharSet("utf8")
  10464. .HasCollation("utf8_general_ci");
  10465. entity.Property(e => e.ThisMonthTrade).HasColumnType("decimal(18,2)");
  10466. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  10467. entity.Property(e => e.UpdateMan)
  10468. .HasColumnType("varchar(50)")
  10469. .HasCharSet("utf8")
  10470. .HasCollation("utf8_general_ci");
  10471. entity.Property(e => e.UserLevel).HasColumnType("int(11)");
  10472. entity.Property(e => e.UserProperty).HasColumnType("int(11)");
  10473. entity.Property(e => e.UserType).HasColumnType("int(11)");
  10474. entity.Property(e => e.Version).HasColumnType("int(11)");
  10475. });
  10476. OnModelCreatingPartial(modelBuilder);
  10477. }
  10478. partial void OnModelCreatingPartial(ModelBuilder modelBuilder);
  10479. }
  10480. }