WebCMSEntities.cs 525 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747
  1. using System;
  2. using Microsoft.EntityFrameworkCore;
  3. using Microsoft.EntityFrameworkCore.Metadata;
  4. namespace MySystem.Models
  5. {
  6. public partial class WebCMSEntities : DbContext
  7. {
  8. public WebCMSEntities()
  9. {
  10. }
  11. public WebCMSEntities(DbContextOptions<WebCMSEntities> options)
  12. : base(options)
  13. {
  14. }
  15. public virtual DbSet<ActiveReward> ActiveReward { get; set; }
  16. public virtual DbSet<ActivityEnrolRecord> ActivityEnrolRecord { get; set; }
  17. public virtual DbSet<ActivityInfo> ActivityInfo { get; set; }
  18. public virtual DbSet<ActivityPrizeDetail> ActivityPrizeDetail { get; set; }
  19. public virtual DbSet<Advertisment> Advertisment { get; set; }
  20. public virtual DbSet<AgentLevelSet> AgentLevelSet { get; set; }
  21. public virtual DbSet<AppBottomNavs> AppBottomNavs { get; set; }
  22. public virtual DbSet<AppVersion> AppVersion { get; set; }
  23. public virtual DbSet<AppVideo> AppVideo { get; set; }
  24. public virtual DbSet<AppVideoList> AppVideoList { get; set; }
  25. public virtual DbSet<BankInfo> BankInfo { get; set; }
  26. public virtual DbSet<Col> Col { get; set; }
  27. public virtual DbSet<ConsumerOpenIds> ConsumerOpenIds { get; set; }
  28. public virtual DbSet<ConsumerOrderForNo> ConsumerOrderForNo { get; set; }
  29. public virtual DbSet<ConsumerOrders> ConsumerOrders { get; set; }
  30. public virtual DbSet<ConsumerProfit> ConsumerProfit { get; set; }
  31. public virtual DbSet<Consumers> Consumers { get; set; }
  32. public virtual DbSet<CouponAssignRecords> CouponAssignRecords { get; set; }
  33. public virtual DbSet<Coupons> Coupons { get; set; }
  34. public virtual DbSet<CouponsForUser> CouponsForUser { get; set; }
  35. public virtual DbSet<CustomTagSet> CustomTagSet { get; set; }
  36. public virtual DbSet<ErpCompanys> ErpCompanys { get; set; }
  37. public virtual DbSet<FileUpdateInfo> FileUpdateInfo { get; set; }
  38. public virtual DbSet<FluxProfitDetail> FluxProfitDetail { get; set; }
  39. public virtual DbSet<FluxProfitSummary> FluxProfitSummary { get; set; }
  40. public virtual DbSet<IndexIconList> IndexIconList { get; set; }
  41. public virtual DbSet<KqProductBrand> KqProductBrand { get; set; }
  42. public virtual DbSet<KqProductOrgs> KqProductOrgs { get; set; }
  43. public virtual DbSet<KqProductRuleSet> KqProductRuleSet { get; set; }
  44. public virtual DbSet<KqProducts> KqProducts { get; set; }
  45. public virtual DbSet<MachineApply> MachineApply { get; set; }
  46. public virtual DbSet<MachineApplyDetail> MachineApplyDetail { get; set; }
  47. public virtual DbSet<MachineChange> MachineChange { get; set; }
  48. public virtual DbSet<MachineChangeDetail> MachineChangeDetail { get; set; }
  49. public virtual DbSet<MachineForMerNo> MachineForMerNo { get; set; }
  50. public virtual DbSet<MachineForQrCode> MachineForQrCode { get; set; }
  51. public virtual DbSet<MachineForSnNo> MachineForSnNo { get; set; }
  52. public virtual DbSet<MachineRenew> MachineRenew { get; set; }
  53. public virtual DbSet<MachineReturn> MachineReturn { get; set; }
  54. public virtual DbSet<MenuRight> MenuRight { get; set; }
  55. public virtual DbSet<MerchantAddInfo> MerchantAddInfo { get; set; }
  56. public virtual DbSet<MerchantAdmin> MerchantAdmin { get; set; }
  57. public virtual DbSet<MerchantAuth> MerchantAuth { get; set; }
  58. public virtual DbSet<MerchantClass> MerchantClass { get; set; }
  59. public virtual DbSet<MerchantCol> MerchantCol { get; set; }
  60. public virtual DbSet<MerchantComment> MerchantComment { get; set; }
  61. public virtual DbSet<MerchantForCode> MerchantForCode { get; set; }
  62. public virtual DbSet<MerchantForMobile> MerchantForMobile { get; set; }
  63. public virtual DbSet<MerchantForName> MerchantForName { get; set; }
  64. public virtual DbSet<MerchantInfo> MerchantInfo { get; set; }
  65. public virtual DbSet<MerchantParamSet> MerchantParamSet { get; set; }
  66. public virtual DbSet<MerchantQrCode> MerchantQrCode { get; set; }
  67. public virtual DbSet<MerchantRebateDetail> MerchantRebateDetail { get; set; }
  68. public virtual DbSet<Merchants> Merchants { get; set; }
  69. public virtual DbSet<MobileCodeCheck> MobileCodeCheck { get; set; }
  70. public virtual DbSet<MsgBlackList> MsgBlackList { get; set; }
  71. public virtual DbSet<MsgPersonal> MsgPersonal { get; set; }
  72. public virtual DbSet<MsgPlacard> MsgPlacard { get; set; }
  73. public virtual DbSet<MsgPlacardRead> MsgPlacardRead { get; set; }
  74. public virtual DbSet<MsgPush> MsgPush { get; set; }
  75. public virtual DbSet<MsgSms> MsgSms { get; set; }
  76. public virtual DbSet<MsgSmsSet> MsgSmsSet { get; set; }
  77. public virtual DbSet<MsgTemplate> MsgTemplate { get; set; }
  78. public virtual DbSet<OpenBankCityTable> OpenBankCityTable { get; set; }
  79. public virtual DbSet<OpenBankTable> OpenBankTable { get; set; }
  80. public virtual DbSet<OpenReward> OpenReward { get; set; }
  81. public virtual DbSet<OpenRewardDetail> OpenRewardDetail { get; set; }
  82. public virtual DbSet<OpenSnSnapshot> OpenSnSnapshot { get; set; }
  83. public virtual DbSet<OperateLog> OperateLog { get; set; }
  84. public virtual DbSet<OperateRightList> OperateRightList { get; set; }
  85. public virtual DbSet<OrderForNo> OrderForNo { get; set; }
  86. public virtual DbSet<OrderProduct> OrderProduct { get; set; }
  87. public virtual DbSet<OrderRefund> OrderRefund { get; set; }
  88. public virtual DbSet<OrderRefundReason> OrderRefundReason { get; set; }
  89. public virtual DbSet<Orders> Orders { get; set; }
  90. public virtual DbSet<PageInfo> PageInfo { get; set; }
  91. public virtual DbSet<PageUpdateInfo> PageUpdateInfo { get; set; }
  92. public virtual DbSet<PosCouponForUser> PosCouponForUser { get; set; }
  93. public virtual DbSet<PosCouponOrders> PosCouponOrders { get; set; }
  94. public virtual DbSet<PosCouponRecord> PosCouponRecord { get; set; }
  95. public virtual DbSet<PosCoupons> PosCoupons { get; set; }
  96. public virtual DbSet<PosMachines> PosMachines { get; set; }
  97. public virtual DbSet<PosMachinesTwo> PosMachinesTwo { get; set; }
  98. public virtual DbSet<PosMerchantInfo> PosMerchantInfo { get; set; }
  99. public virtual DbSet<PosMerchantOtherInfo> PosMerchantOtherInfo { get; set; }
  100. public virtual DbSet<ProductComment> ProductComment { get; set; }
  101. public virtual DbSet<ProductCommentAgree> ProductCommentAgree { get; set; }
  102. public virtual DbSet<ProductFareAreas> ProductFareAreas { get; set; }
  103. public virtual DbSet<ProductFareTemp> ProductFareTemp { get; set; }
  104. public virtual DbSet<ProductKeys> ProductKeys { get; set; }
  105. public virtual DbSet<ProductNorm> ProductNorm { get; set; }
  106. public virtual DbSet<ProductNormItem> ProductNormItem { get; set; }
  107. public virtual DbSet<ProductNormTemp> ProductNormTemp { get; set; }
  108. public virtual DbSet<Products> Products { get; set; }
  109. public virtual DbSet<ProfitObjectActivations> ProfitObjectActivations { get; set; }
  110. public virtual DbSet<ProfitObjectContinueFloors> ProfitObjectContinueFloors { get; set; }
  111. public virtual DbSet<ProfitObjectFloors> ProfitObjectFloors { get; set; }
  112. public virtual DbSet<ProfitObjectLevelKinds> ProfitObjectLevelKinds { get; set; }
  113. public virtual DbSet<ProfitObjectLevels> ProfitObjectLevels { get; set; }
  114. public virtual DbSet<ProfitObjects> ProfitObjects { get; set; }
  115. public virtual DbSet<ProfitObjectsActiveCheck> ProfitObjectsActiveCheck { get; set; }
  116. public virtual DbSet<ProfitObjectsActiveParams> ProfitObjectsActiveParams { get; set; }
  117. public virtual DbSet<ProfitObjectsActives> ProfitObjectsActives { get; set; }
  118. public virtual DbSet<ProfitObjectsActivesForId> ProfitObjectsActivesForId { get; set; }
  119. public virtual DbSet<ProfitObjectsRule> ProfitObjectsRule { get; set; }
  120. public virtual DbSet<ProfitObjectsRuleDetails> ProfitObjectsRuleDetails { get; set; }
  121. public virtual DbSet<ProfitReceiveRecord> ProfitReceiveRecord { get; set; }
  122. public virtual DbSet<ProfitReceives> ProfitReceives { get; set; }
  123. public virtual DbSet<ProfitRecord> ProfitRecord { get; set; }
  124. public virtual DbSet<ProfitRewardRecord> ProfitRewardRecord { get; set; }
  125. public virtual DbSet<ProfitSubsidyDetail> ProfitSubsidyDetail { get; set; }
  126. public virtual DbSet<PublicAccountSet> PublicAccountSet { get; set; }
  127. public virtual DbSet<PullNewAct> PullNewAct { get; set; }
  128. public virtual DbSet<PullNewDetail> PullNewDetail { get; set; }
  129. public virtual DbSet<PullnewSummary> PullnewSummary { get; set; }
  130. public virtual DbSet<RightDic> RightDic { get; set; }
  131. public virtual DbSet<ServiceCenter> ServiceCenter { get; set; }
  132. public virtual DbSet<StoreBalance> StoreBalance { get; set; }
  133. public virtual DbSet<StoreChangeHistory> StoreChangeHistory { get; set; }
  134. public virtual DbSet<StoreForCode> StoreForCode { get; set; }
  135. public virtual DbSet<StoreForName> StoreForName { get; set; }
  136. public virtual DbSet<StoreHouse> StoreHouse { get; set; }
  137. public virtual DbSet<StoreMallOrderSummary> StoreMallOrderSummary { get; set; }
  138. public virtual DbSet<StoreSnActivateSummary> StoreSnActivateSummary { get; set; }
  139. public virtual DbSet<StoreStockChange> StoreStockChange { get; set; }
  140. public virtual DbSet<StoreSwapSn> StoreSwapSn { get; set; }
  141. public virtual DbSet<SysAdmin> SysAdmin { get; set; }
  142. public virtual DbSet<SysAdminRole> SysAdminRole { get; set; }
  143. public virtual DbSet<SysLog> SysLog { get; set; }
  144. public virtual DbSet<SysRechargeRecord> SysRechargeRecord { get; set; }
  145. public virtual DbSet<SystemSet> SystemSet { get; set; }
  146. public virtual DbSet<TeamApply> TeamApply { get; set; }
  147. public virtual DbSet<TeamApplyForTeamName> TeamApplyForTeamName { get; set; }
  148. public virtual DbSet<TeamApplyForTeamNo> TeamApplyForTeamNo { get; set; }
  149. public virtual DbSet<TeamBlackList> TeamBlackList { get; set; }
  150. public virtual DbSet<TeamConfig> TeamConfig { get; set; }
  151. public virtual DbSet<TeamDayTop> TeamDayTop { get; set; }
  152. public virtual DbSet<TeamOfferApply> TeamOfferApply { get; set; }
  153. public virtual DbSet<TeamPersonDayTop> TeamPersonDayTop { get; set; }
  154. public virtual DbSet<TmpCert> TmpCert { get; set; }
  155. public virtual DbSet<TradeDaySummary> TradeDaySummary { get; set; }
  156. public virtual DbSet<TradeRecord> TradeRecord { get; set; }
  157. public virtual DbSet<UploadParams> UploadParams { get; set; }
  158. public virtual DbSet<UserAccount> UserAccount { get; set; }
  159. public virtual DbSet<UserAccountRecord> UserAccountRecord { get; set; }
  160. public virtual DbSet<UserAddress> UserAddress { get; set; }
  161. public virtual DbSet<UserAuthRecord> UserAuthRecord { get; set; }
  162. public virtual DbSet<UserBack> UserBack { get; set; }
  163. public virtual DbSet<UserBackKind> UserBackKind { get; set; }
  164. public virtual DbSet<UserBalanceTop> UserBalanceTop { get; set; }
  165. public virtual DbSet<UserCar> UserCar { get; set; }
  166. public virtual DbSet<UserCardForWeChat> UserCardForWeChat { get; set; }
  167. public virtual DbSet<UserCardRecord> UserCardRecord { get; set; }
  168. public virtual DbSet<UserCashRecord> UserCashRecord { get; set; }
  169. public virtual DbSet<UserCenterIconList> UserCenterIconList { get; set; }
  170. public virtual DbSet<UserCollection> UserCollection { get; set; }
  171. public virtual DbSet<UserData> UserData { get; set; }
  172. public virtual DbSet<UserDetail> UserDetail { get; set; }
  173. public virtual DbSet<UserFamilyMember> UserFamilyMember { get; set; }
  174. public virtual DbSet<UserForMakerCode> UserForMakerCode { get; set; }
  175. public virtual DbSet<UserForMobile> UserForMobile { get; set; }
  176. public virtual DbSet<UserForRealName> UserForRealName { get; set; }
  177. public virtual DbSet<UserFriend> UserFriend { get; set; }
  178. public virtual DbSet<UserGroup> UserGroup { get; set; }
  179. public virtual DbSet<UserLevelSet> UserLevelSet { get; set; }
  180. public virtual DbSet<UserLoginRecord> UserLoginRecord { get; set; }
  181. public virtual DbSet<UserMachineData> UserMachineData { get; set; }
  182. public virtual DbSet<UserMallLargeSn> UserMallLargeSn { get; set; }
  183. public virtual DbSet<UserOfflineSignInRecords> UserOfflineSignInRecords { get; set; }
  184. public virtual DbSet<UserProfit> UserProfit { get; set; }
  185. public virtual DbSet<UserProfitSet> UserProfitSet { get; set; }
  186. public virtual DbSet<UserProfitSubsidySummary> UserProfitSubsidySummary { get; set; }
  187. public virtual DbSet<UserRank> UserRank { get; set; }
  188. public virtual DbSet<UserRankWhite> UserRankWhite { get; set; }
  189. public virtual DbSet<UserRebateDetail> UserRebateDetail { get; set; }
  190. public virtual DbSet<UserSnActInfo> UserSnActInfo { get; set; }
  191. public virtual DbSet<UserSnDelayChange> UserSnDelayChange { get; set; }
  192. public virtual DbSet<UserStoreChange> UserStoreChange { get; set; }
  193. public virtual DbSet<UserSwapDetail> UserSwapDetail { get; set; }
  194. public virtual DbSet<UserSwapSummary> UserSwapSummary { get; set; }
  195. public virtual DbSet<UserSwapWhite> UserSwapWhite { get; set; }
  196. public virtual DbSet<UserTradeDaySummary> UserTradeDaySummary { get; set; }
  197. public virtual DbSet<UserTradeMonthSummary> UserTradeMonthSummary { get; set; }
  198. public virtual DbSet<Users> Users { get; set; }
  199. protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
  200. {
  201. if (!optionsBuilder.IsConfigured)
  202. {
  203. optionsBuilder.UseMySql(Library.ConfigurationManager.AppSettings["SqlConnStr"].ToString(), x => x.ServerVersion("5.7.17-mysql"));
  204. }
  205. }
  206. protected override void OnModelCreating(ModelBuilder modelBuilder)
  207. {
  208. modelBuilder.Entity<ActiveReward>(entity =>
  209. {
  210. entity.Property(e => e.Id).HasColumnType("int(11)");
  211. entity.Property(e => e.ActDate).HasColumnType("datetime");
  212. entity.Property(e => e.ActType).HasColumnType("int(11)");
  213. entity.Property(e => e.ActTypeDesc)
  214. .HasColumnType("varchar(64)")
  215. .HasCharSet("utf8")
  216. .HasCollation("utf8_general_ci");
  217. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  218. entity.Property(e => e.City)
  219. .HasColumnType("varchar(32)")
  220. .HasCharSet("utf8")
  221. .HasCollation("utf8_general_ci");
  222. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  223. entity.Property(e => e.CreateMan)
  224. .HasColumnType("varchar(50)")
  225. .HasCharSet("utf8")
  226. .HasCollation("utf8_general_ci");
  227. entity.Property(e => e.DirectBuddyNo).HasColumnType("int(11)");
  228. entity.Property(e => e.DivideAmount).HasColumnType("decimal(18,2)");
  229. entity.Property(e => e.KqMerNo)
  230. .HasColumnType("varchar(32)")
  231. .HasCharSet("utf8")
  232. .HasCollation("utf8_general_ci");
  233. entity.Property(e => e.KqSnNo)
  234. .HasColumnType("varchar(32)")
  235. .HasCharSet("utf8")
  236. .HasCollation("utf8_general_ci");
  237. entity.Property(e => e.MerUserId).HasColumnType("int(11)");
  238. entity.Property(e => e.MerUserNav)
  239. .HasColumnType("varchar(200)")
  240. .HasCharSet("utf8")
  241. .HasCollation("utf8_general_ci");
  242. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  243. entity.Property(e => e.ParentParentUserId).HasColumnType("int(11)");
  244. entity.Property(e => e.ParentUserId).HasColumnType("int(11)");
  245. entity.Property(e => e.Province)
  246. .HasColumnType("varchar(32)")
  247. .HasCharSet("utf8")
  248. .HasCollation("utf8_general_ci");
  249. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  250. entity.Property(e => e.Remark)
  251. .HasColumnType("varchar(64)")
  252. .HasCharSet("utf8")
  253. .HasCollation("utf8_general_ci");
  254. entity.Property(e => e.RewardAmount).HasColumnType("decimal(18,2)");
  255. entity.Property(e => e.RewardRef).HasColumnType("int(11)");
  256. entity.Property(e => e.RewardSourceUserId).HasColumnType("int(11)");
  257. entity.Property(e => e.RewardTips)
  258. .HasColumnType("varchar(16)")
  259. .HasCharSet("utf8")
  260. .HasCollation("utf8_general_ci");
  261. entity.Property(e => e.RuleRewardAmount).HasColumnType("decimal(18,2)");
  262. entity.Property(e => e.SeoDescription)
  263. .HasColumnType("varchar(500)")
  264. .HasCharSet("utf8")
  265. .HasCollation("utf8_general_ci");
  266. entity.Property(e => e.SeoKeyword)
  267. .HasColumnType("varchar(200)")
  268. .HasCharSet("utf8")
  269. .HasCollation("utf8_general_ci");
  270. entity.Property(e => e.SeoTitle)
  271. .HasColumnType("varchar(100)")
  272. .HasCharSet("utf8")
  273. .HasCollation("utf8_general_ci");
  274. entity.Property(e => e.SnApplyUserId).HasColumnType("int(11)");
  275. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  276. entity.Property(e => e.SnType).HasColumnType("int(11)");
  277. entity.Property(e => e.Sort).HasColumnType("int(11)");
  278. entity.Property(e => e.StandardDate).HasColumnType("datetime");
  279. entity.Property(e => e.Status).HasColumnType("int(11)");
  280. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  281. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  282. entity.Property(e => e.UpdateMan)
  283. .HasColumnType("varchar(50)")
  284. .HasCharSet("utf8")
  285. .HasCollation("utf8_general_ci");
  286. entity.Property(e => e.UserId).HasColumnType("int(11)");
  287. entity.Property(e => e.UserNav)
  288. .HasColumnType("varchar(200)")
  289. .HasCharSet("utf8")
  290. .HasCollation("utf8_general_ci");
  291. entity.Property(e => e.Version).HasColumnType("int(11)");
  292. });
  293. modelBuilder.Entity<ActivityEnrolRecord>(entity =>
  294. {
  295. entity.Property(e => e.Id).HasColumnType("int(11)");
  296. entity.Property(e => e.ActId).HasColumnType("int(11)");
  297. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  298. entity.Property(e => e.CreateMan)
  299. .HasColumnType("varchar(50)")
  300. .HasCharSet("utf8")
  301. .HasCollation("utf8_general_ci");
  302. entity.Property(e => e.EffectEndTime)
  303. .HasColumnType("varchar(8)")
  304. .HasCharSet("utf8")
  305. .HasCollation("utf8_general_ci");
  306. entity.Property(e => e.EffectStartTime)
  307. .HasColumnType("varchar(8)")
  308. .HasCharSet("utf8")
  309. .HasCollation("utf8_general_ci");
  310. entity.Property(e => e.EnrolMonth)
  311. .HasColumnType("varchar(80)")
  312. .HasCharSet("utf8")
  313. .HasCollation("utf8_general_ci");
  314. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  315. entity.Property(e => e.SeoDescription)
  316. .HasColumnType("varchar(500)")
  317. .HasCharSet("utf8")
  318. .HasCollation("utf8_general_ci");
  319. entity.Property(e => e.SeoKeyword)
  320. .HasColumnType("varchar(200)")
  321. .HasCharSet("utf8")
  322. .HasCollation("utf8_general_ci");
  323. entity.Property(e => e.SeoTitle)
  324. .HasColumnType("varchar(100)")
  325. .HasCharSet("utf8")
  326. .HasCollation("utf8_general_ci");
  327. entity.Property(e => e.Sort).HasColumnType("int(11)");
  328. entity.Property(e => e.Status).HasColumnType("int(11)");
  329. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  330. entity.Property(e => e.UpdateMan)
  331. .HasColumnType("varchar(50)")
  332. .HasCharSet("utf8")
  333. .HasCollation("utf8_general_ci");
  334. entity.Property(e => e.UserId).HasColumnType("int(11)");
  335. entity.Property(e => e.Version).HasColumnType("int(11)");
  336. });
  337. modelBuilder.Entity<ActivityInfo>(entity =>
  338. {
  339. entity.Property(e => e.Id).HasColumnType("int(11)");
  340. entity.Property(e => e.ActBanner)
  341. .HasColumnType("varchar(200)")
  342. .HasCharSet("utf8")
  343. .HasCollation("utf8_general_ci");
  344. entity.Property(e => e.ActCode)
  345. .HasColumnType("varchar(32)")
  346. .HasCharSet("utf8")
  347. .HasCollation("utf8_general_ci");
  348. entity.Property(e => e.ActContent)
  349. .HasColumnType("longtext")
  350. .HasCharSet("utf8")
  351. .HasCollation("utf8_general_ci");
  352. entity.Property(e => e.ActName)
  353. .HasColumnType("varchar(128)")
  354. .HasCharSet("utf8")
  355. .HasCollation("utf8_general_ci");
  356. entity.Property(e => e.ActReferUrl)
  357. .HasColumnType("varchar(255)")
  358. .HasCharSet("utf8")
  359. .HasCollation("utf8_general_ci");
  360. entity.Property(e => e.ActType).HasColumnType("int(11)");
  361. entity.Property(e => e.BrandId)
  362. .HasColumnType("varchar(100)")
  363. .HasCharSet("utf8")
  364. .HasCollation("utf8_general_ci");
  365. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  366. entity.Property(e => e.CreateMan)
  367. .HasColumnType("varchar(50)")
  368. .HasCharSet("utf8")
  369. .HasCollation("utf8_general_ci");
  370. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  371. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  372. entity.Property(e => e.EnrolEndDate).HasColumnType("datetime");
  373. entity.Property(e => e.EnrolEndTime)
  374. .HasColumnType("varchar(8)")
  375. .HasCharSet("utf8")
  376. .HasCollation("utf8_general_ci");
  377. entity.Property(e => e.EnrolStartDate).HasColumnType("datetime");
  378. entity.Property(e => e.EnrolStartTime)
  379. .HasColumnType("varchar(8)")
  380. .HasCharSet("utf8")
  381. .HasCollation("utf8_general_ci");
  382. entity.Property(e => e.IsTop).HasColumnType("int(11)");
  383. entity.Property(e => e.LimitTopBuddy)
  384. .HasColumnType("varchar(255)")
  385. .HasCharSet("utf8")
  386. .HasCollation("utf8_general_ci");
  387. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  388. entity.Property(e => e.Remark)
  389. .HasColumnType("varchar(128)")
  390. .HasCharSet("utf8")
  391. .HasCollation("utf8_general_ci");
  392. entity.Property(e => e.SeoDescription)
  393. .HasColumnType("varchar(500)")
  394. .HasCharSet("utf8")
  395. .HasCollation("utf8_general_ci");
  396. entity.Property(e => e.SeoKeyword)
  397. .HasColumnType("varchar(200)")
  398. .HasCharSet("utf8")
  399. .HasCollation("utf8_general_ci");
  400. entity.Property(e => e.SeoTitle)
  401. .HasColumnType("varchar(100)")
  402. .HasCharSet("utf8")
  403. .HasCollation("utf8_general_ci");
  404. entity.Property(e => e.Sort).HasColumnType("int(11)");
  405. entity.Property(e => e.Status).HasColumnType("int(11)");
  406. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  407. entity.Property(e => e.UpdateMan)
  408. .HasColumnType("varchar(50)")
  409. .HasCharSet("utf8")
  410. .HasCollation("utf8_general_ci");
  411. entity.Property(e => e.Version).HasColumnType("int(11)");
  412. });
  413. modelBuilder.Entity<ActivityPrizeDetail>(entity =>
  414. {
  415. entity.Property(e => e.Id).HasColumnType("int(11)");
  416. entity.Property(e => e.ActRewardAmt).HasColumnType("decimal(18,2)");
  417. entity.Property(e => e.ActivityId).HasColumnType("int(11)");
  418. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  419. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  420. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  421. entity.Property(e => e.CreateMan)
  422. .HasColumnType("varchar(50)")
  423. .HasCharSet("utf8")
  424. .HasCollation("utf8_general_ci");
  425. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  426. entity.Property(e => e.OtherProdCreditTradeAmt).HasColumnType("decimal(18,2)");
  427. entity.Property(e => e.ProfitRate).HasColumnType("decimal(18,2)");
  428. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  429. entity.Property(e => e.SeoDescription)
  430. .HasColumnType("varchar(500)")
  431. .HasCharSet("utf8")
  432. .HasCollation("utf8_general_ci");
  433. entity.Property(e => e.SeoKeyword)
  434. .HasColumnType("varchar(200)")
  435. .HasCharSet("utf8")
  436. .HasCollation("utf8_general_ci");
  437. entity.Property(e => e.SeoTitle)
  438. .HasColumnType("varchar(100)")
  439. .HasCharSet("utf8")
  440. .HasCollation("utf8_general_ci");
  441. entity.Property(e => e.Sort).HasColumnType("int(11)");
  442. entity.Property(e => e.Status).HasColumnType("int(11)");
  443. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  444. entity.Property(e => e.TradeAmt).HasColumnType("decimal(18,2)");
  445. entity.Property(e => e.TradeMonth)
  446. .HasColumnType("varchar(6)")
  447. .HasCharSet("utf8")
  448. .HasCollation("utf8_general_ci");
  449. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  450. entity.Property(e => e.UpdateMan)
  451. .HasColumnType("varchar(50)")
  452. .HasCharSet("utf8")
  453. .HasCollation("utf8_general_ci");
  454. entity.Property(e => e.UserId).HasColumnType("int(11)");
  455. entity.Property(e => e.Version).HasColumnType("int(11)");
  456. });
  457. modelBuilder.Entity<Advertisment>(entity =>
  458. {
  459. entity.Property(e => e.Id).HasColumnType("int(11)");
  460. entity.Property(e => e.ColId)
  461. .HasColumnType("varchar(30)")
  462. .HasCharSet("utf8")
  463. .HasCollation("utf8_general_ci");
  464. entity.Property(e => e.Contents)
  465. .HasColumnType("longtext")
  466. .HasCharSet("utf8")
  467. .HasCollation("utf8_general_ci");
  468. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  469. entity.Property(e => e.CreateMan)
  470. .HasColumnType("varchar(50)")
  471. .HasCharSet("utf8")
  472. .HasCollation("utf8_general_ci");
  473. entity.Property(e => e.PicPath)
  474. .HasColumnType("varchar(200)")
  475. .HasCharSet("utf8")
  476. .HasCollation("utf8_general_ci");
  477. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  478. entity.Property(e => e.SeoDescription)
  479. .HasColumnType("varchar(500)")
  480. .HasCharSet("utf8")
  481. .HasCollation("utf8_general_ci");
  482. entity.Property(e => e.SeoKeyword)
  483. .HasColumnType("varchar(200)")
  484. .HasCharSet("utf8")
  485. .HasCollation("utf8_general_ci");
  486. entity.Property(e => e.SeoTitle)
  487. .HasColumnType("varchar(100)")
  488. .HasCharSet("utf8")
  489. .HasCollation("utf8_general_ci");
  490. entity.Property(e => e.Sort).HasColumnType("int(11)");
  491. entity.Property(e => e.Status).HasColumnType("int(11)");
  492. entity.Property(e => e.Title)
  493. .HasColumnType("varchar(50)")
  494. .HasCharSet("utf8")
  495. .HasCollation("utf8_general_ci");
  496. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  497. entity.Property(e => e.UpdateMan)
  498. .HasColumnType("varchar(50)")
  499. .HasCharSet("utf8")
  500. .HasCollation("utf8_general_ci");
  501. entity.Property(e => e.Url)
  502. .HasColumnType("longtext")
  503. .HasCharSet("utf8")
  504. .HasCollation("utf8_general_ci");
  505. entity.Property(e => e.Version).HasColumnType("int(11)");
  506. });
  507. modelBuilder.Entity<AgentLevelSet>(entity =>
  508. {
  509. entity.Property(e => e.Id).HasColumnType("int(11)");
  510. entity.Property(e => e.AreasProfitPercent).HasColumnType("decimal(18,2)");
  511. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  512. entity.Property(e => e.CreateMan)
  513. .HasColumnType("varchar(50)")
  514. .HasCharSet("utf8")
  515. .HasCollation("utf8_general_ci");
  516. entity.Property(e => e.LevelDiff)
  517. .HasColumnType("bit(1)")
  518. .HasDefaultValueSql("b'0'");
  519. entity.Property(e => e.Name)
  520. .HasColumnType("varchar(50)")
  521. .HasCharSet("utf8")
  522. .HasCollation("utf8_general_ci");
  523. entity.Property(e => e.ProfitPercent).HasColumnType("decimal(18,2)");
  524. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  525. entity.Property(e => e.SeoDescription)
  526. .HasColumnType("varchar(500)")
  527. .HasCharSet("utf8")
  528. .HasCollation("utf8_general_ci");
  529. entity.Property(e => e.SeoKeyword)
  530. .HasColumnType("varchar(200)")
  531. .HasCharSet("utf8")
  532. .HasCollation("utf8_general_ci");
  533. entity.Property(e => e.SeoTitle)
  534. .HasColumnType("varchar(100)")
  535. .HasCharSet("utf8")
  536. .HasCollation("utf8_general_ci");
  537. entity.Property(e => e.Sort).HasColumnType("int(11)");
  538. entity.Property(e => e.Status).HasColumnType("int(11)");
  539. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  540. entity.Property(e => e.UpdateMan)
  541. .HasColumnType("varchar(50)")
  542. .HasCharSet("utf8")
  543. .HasCollation("utf8_general_ci");
  544. entity.Property(e => e.Version).HasColumnType("int(11)");
  545. });
  546. modelBuilder.Entity<AppBottomNavs>(entity =>
  547. {
  548. entity.Property(e => e.Id).HasColumnType("int(11)");
  549. entity.Property(e => e.BgColor)
  550. .HasColumnType("varchar(6)")
  551. .HasCharSet("utf8")
  552. .HasCollation("utf8_general_ci");
  553. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  554. entity.Property(e => e.CreateMan)
  555. .HasColumnType("varchar(50)")
  556. .HasCharSet("utf8")
  557. .HasCollation("utf8_general_ci");
  558. entity.Property(e => e.NoPageHint)
  559. .HasColumnType("varchar(50)")
  560. .HasCharSet("utf8")
  561. .HasCollation("utf8_general_ci");
  562. entity.Property(e => e.NormalIcon)
  563. .HasColumnType("varchar(200)")
  564. .HasCharSet("utf8")
  565. .HasCollation("utf8_general_ci");
  566. entity.Property(e => e.NormalTextColor)
  567. .HasColumnType("varchar(6)")
  568. .HasCharSet("utf8")
  569. .HasCollation("utf8_general_ci");
  570. entity.Property(e => e.PageName)
  571. .HasColumnType("varchar(50)")
  572. .HasCharSet("utf8")
  573. .HasCollation("utf8_general_ci");
  574. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  575. entity.Property(e => e.SelectIcon)
  576. .HasColumnType("varchar(200)")
  577. .HasCharSet("utf8")
  578. .HasCollation("utf8_general_ci");
  579. entity.Property(e => e.SelectTextColor)
  580. .HasColumnType("varchar(6)")
  581. .HasCharSet("utf8")
  582. .HasCollation("utf8_general_ci");
  583. entity.Property(e => e.SeoDescription)
  584. .HasColumnType("varchar(500)")
  585. .HasCharSet("utf8")
  586. .HasCollation("utf8_general_ci");
  587. entity.Property(e => e.SeoKeyword)
  588. .HasColumnType("varchar(200)")
  589. .HasCharSet("utf8")
  590. .HasCollation("utf8_general_ci");
  591. entity.Property(e => e.SeoTitle)
  592. .HasColumnType("varchar(100)")
  593. .HasCharSet("utf8")
  594. .HasCollation("utf8_general_ci");
  595. entity.Property(e => e.Sort).HasColumnType("int(11)");
  596. entity.Property(e => e.Status).HasColumnType("int(11)");
  597. entity.Property(e => e.Title)
  598. .HasColumnType("varchar(10)")
  599. .HasCharSet("utf8")
  600. .HasCollation("utf8_general_ci");
  601. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  602. entity.Property(e => e.UpdateMan)
  603. .HasColumnType("varchar(50)")
  604. .HasCharSet("utf8")
  605. .HasCollation("utf8_general_ci");
  606. entity.Property(e => e.Version).HasColumnType("int(11)");
  607. });
  608. modelBuilder.Entity<AppVersion>(entity =>
  609. {
  610. entity.Property(e => e.Id).HasColumnType("int(11)");
  611. entity.Property(e => e.CancelText)
  612. .HasColumnType("varchar(10)")
  613. .HasCharSet("utf8")
  614. .HasCollation("utf8_general_ci");
  615. entity.Property(e => e.ConfirmText)
  616. .HasColumnType("varchar(10)")
  617. .HasCharSet("utf8")
  618. .HasCollation("utf8_general_ci");
  619. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  620. entity.Property(e => e.CreateMan)
  621. .HasColumnType("varchar(50)")
  622. .HasCharSet("utf8")
  623. .HasCollation("utf8_general_ci");
  624. entity.Property(e => e.DownloadUrl)
  625. .HasColumnType("varchar(500)")
  626. .HasCharSet("utf8")
  627. .HasCollation("utf8_general_ci");
  628. entity.Property(e => e.Info)
  629. .HasColumnType("varchar(200)")
  630. .HasCharSet("utf8")
  631. .HasCollation("utf8_general_ci");
  632. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  633. entity.Property(e => e.SeoDescription)
  634. .HasColumnType("varchar(500)")
  635. .HasCharSet("utf8")
  636. .HasCollation("utf8_general_ci");
  637. entity.Property(e => e.SeoKeyword)
  638. .HasColumnType("varchar(200)")
  639. .HasCharSet("utf8")
  640. .HasCollation("utf8_general_ci");
  641. entity.Property(e => e.SeoTitle)
  642. .HasColumnType("varchar(100)")
  643. .HasCharSet("utf8")
  644. .HasCollation("utf8_general_ci");
  645. entity.Property(e => e.Sort).HasColumnType("int(11)");
  646. entity.Property(e => e.Status).HasColumnType("int(11)");
  647. entity.Property(e => e.TerminalKind)
  648. .HasColumnType("varchar(10)")
  649. .HasCharSet("utf8")
  650. .HasCollation("utf8_general_ci");
  651. entity.Property(e => e.Title)
  652. .HasColumnType("varchar(50)")
  653. .HasCharSet("utf8")
  654. .HasCollation("utf8_general_ci");
  655. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  656. entity.Property(e => e.UpdateMan)
  657. .HasColumnType("varchar(50)")
  658. .HasCharSet("utf8")
  659. .HasCollation("utf8_general_ci");
  660. entity.Property(e => e.Version).HasColumnType("int(11)");
  661. entity.Property(e => e.VersionNum)
  662. .HasColumnType("varchar(20)")
  663. .HasCharSet("utf8")
  664. .HasCollation("utf8_general_ci");
  665. });
  666. modelBuilder.Entity<AppVideo>(entity =>
  667. {
  668. entity.Property(e => e.Id).HasColumnType("int(11)");
  669. entity.Property(e => e.BannerPic)
  670. .HasColumnType("varchar(200)")
  671. .HasCharSet("utf8")
  672. .HasCollation("utf8_general_ci");
  673. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  674. entity.Property(e => e.CreateMan)
  675. .HasColumnType("varchar(50)")
  676. .HasCharSet("utf8")
  677. .HasCollation("utf8_general_ci");
  678. entity.Property(e => e.Name)
  679. .HasColumnType("varchar(50)")
  680. .HasCharSet("utf8")
  681. .HasCollation("utf8_general_ci");
  682. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  683. entity.Property(e => e.Remark)
  684. .HasColumnType("varchar(200)")
  685. .HasCharSet("utf8")
  686. .HasCollation("utf8_general_ci");
  687. entity.Property(e => e.SeoDescription)
  688. .HasColumnType("varchar(500)")
  689. .HasCharSet("utf8")
  690. .HasCollation("utf8_general_ci");
  691. entity.Property(e => e.SeoKeyword)
  692. .HasColumnType("varchar(200)")
  693. .HasCharSet("utf8")
  694. .HasCollation("utf8_general_ci");
  695. entity.Property(e => e.SeoTitle)
  696. .HasColumnType("varchar(100)")
  697. .HasCharSet("utf8")
  698. .HasCollation("utf8_general_ci");
  699. entity.Property(e => e.Sort).HasColumnType("int(11)");
  700. entity.Property(e => e.Status).HasColumnType("int(11)");
  701. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  702. entity.Property(e => e.UpdateMan)
  703. .HasColumnType("varchar(50)")
  704. .HasCharSet("utf8")
  705. .HasCollation("utf8_general_ci");
  706. entity.Property(e => e.Version).HasColumnType("int(11)");
  707. });
  708. modelBuilder.Entity<AppVideoList>(entity =>
  709. {
  710. entity.Property(e => e.Id).HasColumnType("int(11)");
  711. entity.Property(e => e.BgPic)
  712. .HasColumnType("varchar(200)")
  713. .HasCharSet("utf8")
  714. .HasCollation("utf8_general_ci");
  715. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  716. entity.Property(e => e.CreateMan)
  717. .HasColumnType("varchar(50)")
  718. .HasCharSet("utf8")
  719. .HasCollation("utf8_general_ci");
  720. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  721. entity.Property(e => e.Remark)
  722. .HasColumnType("varchar(200)")
  723. .HasCharSet("utf8")
  724. .HasCollation("utf8_general_ci");
  725. entity.Property(e => e.SeoDescription)
  726. .HasColumnType("varchar(500)")
  727. .HasCharSet("utf8")
  728. .HasCollation("utf8_general_ci");
  729. entity.Property(e => e.SeoKeyword)
  730. .HasColumnType("varchar(200)")
  731. .HasCharSet("utf8")
  732. .HasCollation("utf8_general_ci");
  733. entity.Property(e => e.SeoTitle)
  734. .HasColumnType("varchar(100)")
  735. .HasCharSet("utf8")
  736. .HasCollation("utf8_general_ci");
  737. entity.Property(e => e.Sort).HasColumnType("int(11)");
  738. entity.Property(e => e.Status).HasColumnType("int(11)");
  739. entity.Property(e => e.Title)
  740. .HasColumnType("varchar(50)")
  741. .HasCharSet("utf8")
  742. .HasCollation("utf8_general_ci");
  743. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  744. entity.Property(e => e.UpdateMan)
  745. .HasColumnType("varchar(50)")
  746. .HasCharSet("utf8")
  747. .HasCollation("utf8_general_ci");
  748. entity.Property(e => e.Version).HasColumnType("int(11)");
  749. entity.Property(e => e.VideoId).HasColumnType("int(11)");
  750. entity.Property(e => e.VideoUrl)
  751. .HasColumnType("varchar(500)")
  752. .HasCharSet("utf8")
  753. .HasCollation("utf8_general_ci");
  754. });
  755. modelBuilder.Entity<BankInfo>(entity =>
  756. {
  757. entity.Property(e => e.Id).HasColumnType("int(11)");
  758. entity.Property(e => e.BankCode)
  759. .HasColumnType("varchar(16)")
  760. .HasCharSet("utf8")
  761. .HasCollation("utf8_general_ci");
  762. entity.Property(e => e.BankName)
  763. .HasColumnType("varchar(100)")
  764. .HasCharSet("utf8")
  765. .HasCollation("utf8_general_ci");
  766. entity.Property(e => e.BankNameAbbr)
  767. .HasColumnType("varchar(60)")
  768. .HasCharSet("utf8")
  769. .HasCollation("utf8_general_ci");
  770. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  771. entity.Property(e => e.CreateMan)
  772. .HasColumnType("varchar(50)")
  773. .HasCharSet("utf8")
  774. .HasCollation("utf8_general_ci");
  775. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  776. entity.Property(e => e.SeoDescription)
  777. .HasColumnType("varchar(500)")
  778. .HasCharSet("utf8")
  779. .HasCollation("utf8_general_ci");
  780. entity.Property(e => e.SeoKeyword)
  781. .HasColumnType("varchar(200)")
  782. .HasCharSet("utf8")
  783. .HasCollation("utf8_general_ci");
  784. entity.Property(e => e.SeoTitle)
  785. .HasColumnType("varchar(100)")
  786. .HasCharSet("utf8")
  787. .HasCollation("utf8_general_ci");
  788. entity.Property(e => e.Sort).HasColumnType("int(11)");
  789. entity.Property(e => e.Status).HasColumnType("int(11)");
  790. entity.Property(e => e.UnitedBankName)
  791. .HasColumnType("varchar(100)")
  792. .HasCharSet("utf8")
  793. .HasCollation("utf8_general_ci");
  794. entity.Property(e => e.UnitedBankNo)
  795. .HasColumnType("varchar(16)")
  796. .HasCharSet("utf8")
  797. .HasCollation("utf8_general_ci");
  798. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  799. entity.Property(e => e.UpdateMan)
  800. .HasColumnType("varchar(50)")
  801. .HasCharSet("utf8")
  802. .HasCollation("utf8_general_ci");
  803. entity.Property(e => e.Version).HasColumnType("int(11)");
  804. });
  805. modelBuilder.Entity<Col>(entity =>
  806. {
  807. entity.Property(e => e.Id).HasColumnType("int(11)");
  808. entity.Property(e => e.ClassName)
  809. .HasColumnType("varchar(50)")
  810. .HasCharSet("utf8")
  811. .HasCollation("utf8_general_ci");
  812. entity.Property(e => e.ColDetail)
  813. .HasColumnType("varchar(50)")
  814. .HasCharSet("utf8")
  815. .HasCollation("utf8_general_ci");
  816. entity.Property(e => e.ColEnName)
  817. .HasColumnType("varchar(50)")
  818. .HasCharSet("utf8")
  819. .HasCollation("utf8_general_ci");
  820. entity.Property(e => e.ColEnNav)
  821. .HasColumnType("varchar(200)")
  822. .HasCharSet("utf8")
  823. .HasCollation("utf8_general_ci");
  824. entity.Property(e => e.ColId)
  825. .HasColumnType("varchar(30)")
  826. .HasCharSet("utf8")
  827. .HasCollation("utf8_general_ci");
  828. entity.Property(e => e.ColName)
  829. .HasColumnType("varchar(50)")
  830. .HasCharSet("utf8")
  831. .HasCollation("utf8_general_ci");
  832. entity.Property(e => e.ColPicPath)
  833. .HasColumnType("varchar(200)")
  834. .HasCharSet("utf8")
  835. .HasCollation("utf8_general_ci");
  836. entity.Property(e => e.Contents)
  837. .HasColumnType("longtext")
  838. .HasCharSet("utf8")
  839. .HasCollation("utf8_general_ci");
  840. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  841. entity.Property(e => e.CreateMan)
  842. .HasColumnType("varchar(50)")
  843. .HasCharSet("utf8")
  844. .HasCollation("utf8_general_ci");
  845. entity.Property(e => e.DetailTemp)
  846. .HasColumnType("varchar(100)")
  847. .HasCharSet("utf8")
  848. .HasCollation("utf8_general_ci");
  849. entity.Property(e => e.DetailTempM)
  850. .HasColumnType("varchar(100)")
  851. .HasCharSet("utf8")
  852. .HasCollation("utf8_general_ci");
  853. entity.Property(e => e.ListPageCount).HasColumnType("int(11)");
  854. entity.Property(e => e.ListTemp)
  855. .HasColumnType("varchar(100)")
  856. .HasCharSet("utf8")
  857. .HasCollation("utf8_general_ci");
  858. entity.Property(e => e.ListTempM)
  859. .HasColumnType("varchar(100)")
  860. .HasCharSet("utf8")
  861. .HasCollation("utf8_general_ci");
  862. entity.Property(e => e.ParentId).HasColumnType("int(11)");
  863. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  864. entity.Property(e => e.Recommend)
  865. .HasColumnType("bit(1)")
  866. .HasDefaultValueSql("b'0'");
  867. entity.Property(e => e.SeoDescription)
  868. .HasColumnType("varchar(500)")
  869. .HasCharSet("utf8")
  870. .HasCollation("utf8_general_ci");
  871. entity.Property(e => e.SeoKeyword)
  872. .HasColumnType("varchar(200)")
  873. .HasCharSet("utf8")
  874. .HasCollation("utf8_general_ci");
  875. entity.Property(e => e.SeoTitle)
  876. .HasColumnType("varchar(100)")
  877. .HasCharSet("utf8")
  878. .HasCollation("utf8_general_ci");
  879. entity.Property(e => e.Sort).HasColumnType("int(11)");
  880. entity.Property(e => e.Status).HasColumnType("int(11)");
  881. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  882. entity.Property(e => e.UpdateMan)
  883. .HasColumnType("varchar(50)")
  884. .HasCharSet("utf8")
  885. .HasCollation("utf8_general_ci");
  886. entity.Property(e => e.Url)
  887. .HasColumnType("longtext")
  888. .HasCharSet("utf8")
  889. .HasCollation("utf8_general_ci");
  890. entity.Property(e => e.Version).HasColumnType("int(11)");
  891. });
  892. modelBuilder.Entity<ConsumerOpenIds>(entity =>
  893. {
  894. entity.HasKey(e => e.OpenId)
  895. .HasName("PRIMARY");
  896. entity.Property(e => e.OpenId)
  897. .HasColumnType("varchar(50)")
  898. .HasCharSet("utf8")
  899. .HasCollation("utf8_general_ci");
  900. entity.Property(e => e.ConsumerId).HasColumnType("int(11)");
  901. });
  902. modelBuilder.Entity<ConsumerOrderForNo>(entity =>
  903. {
  904. entity.HasKey(e => e.OrderNo)
  905. .HasName("PRIMARY");
  906. entity.Property(e => e.OrderNo)
  907. .HasColumnType("varchar(50)")
  908. .HasCharSet("utf8")
  909. .HasCollation("utf8_general_ci");
  910. entity.Property(e => e.OrderIds).HasColumnType("int(11)");
  911. });
  912. modelBuilder.Entity<ConsumerOrders>(entity =>
  913. {
  914. entity.Property(e => e.Id).HasColumnType("int(11)");
  915. entity.Property(e => e.ConsumerId).HasColumnType("int(11)");
  916. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  917. entity.Property(e => e.CreateMan)
  918. .HasColumnType("varchar(50)")
  919. .HasCharSet("utf8")
  920. .HasCollation("utf8_general_ci");
  921. entity.Property(e => e.CurDivi).HasColumnType("decimal(18,2)");
  922. entity.Property(e => e.IsAct)
  923. .HasColumnType("bit(1)")
  924. .HasDefaultValueSql("b'0'");
  925. entity.Property(e => e.MaxDivi).HasColumnType("decimal(18,2)");
  926. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  927. entity.Property(e => e.OrderNo)
  928. .HasColumnType("varchar(30)")
  929. .HasCharSet("utf8")
  930. .HasCollation("utf8_general_ci");
  931. entity.Property(e => e.PayMode).HasColumnType("int(11)");
  932. entity.Property(e => e.PayMoney).HasColumnType("decimal(18,2)");
  933. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  934. entity.Property(e => e.ReturnMoney).HasColumnType("decimal(18,2)");
  935. entity.Property(e => e.SeoDescription)
  936. .HasColumnType("varchar(500)")
  937. .HasCharSet("utf8")
  938. .HasCollation("utf8_general_ci");
  939. entity.Property(e => e.SeoKeyword)
  940. .HasColumnType("varchar(200)")
  941. .HasCharSet("utf8")
  942. .HasCollation("utf8_general_ci");
  943. entity.Property(e => e.SeoTitle)
  944. .HasColumnType("varchar(100)")
  945. .HasCharSet("utf8")
  946. .HasCollation("utf8_general_ci");
  947. entity.Property(e => e.SnNo)
  948. .HasColumnType("varchar(50)")
  949. .HasCharSet("utf8")
  950. .HasCollation("utf8_general_ci");
  951. entity.Property(e => e.Sort).HasColumnType("int(11)");
  952. entity.Property(e => e.Status).HasColumnType("int(11)");
  953. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  954. entity.Property(e => e.UpdateMan)
  955. .HasColumnType("varchar(50)")
  956. .HasCharSet("utf8")
  957. .HasCollation("utf8_general_ci");
  958. entity.Property(e => e.Version).HasColumnType("int(11)");
  959. });
  960. modelBuilder.Entity<ConsumerProfit>(entity =>
  961. {
  962. entity.Property(e => e.Id).HasColumnType("int(11)");
  963. entity.Property(e => e.ConsumerId).HasColumnType("int(11)");
  964. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  965. entity.Property(e => e.CreateMan)
  966. .HasColumnType("varchar(50)")
  967. .HasCharSet("utf8")
  968. .HasCollation("utf8_general_ci");
  969. entity.Property(e => e.GetMoney).HasColumnType("decimal(18,2)");
  970. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  971. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  972. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  973. entity.Property(e => e.SeoDescription)
  974. .HasColumnType("varchar(500)")
  975. .HasCharSet("utf8")
  976. .HasCollation("utf8_general_ci");
  977. entity.Property(e => e.SeoKeyword)
  978. .HasColumnType("varchar(200)")
  979. .HasCharSet("utf8")
  980. .HasCollation("utf8_general_ci");
  981. entity.Property(e => e.SeoTitle)
  982. .HasColumnType("varchar(100)")
  983. .HasCharSet("utf8")
  984. .HasCollation("utf8_general_ci");
  985. entity.Property(e => e.Sort).HasColumnType("int(11)");
  986. entity.Property(e => e.Status).HasColumnType("int(11)");
  987. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  988. entity.Property(e => e.UpdateMan)
  989. .HasColumnType("varchar(50)")
  990. .HasCharSet("utf8")
  991. .HasCollation("utf8_general_ci");
  992. entity.Property(e => e.Version).HasColumnType("int(11)");
  993. });
  994. modelBuilder.Entity<Consumers>(entity =>
  995. {
  996. entity.Property(e => e.Id).HasColumnType("int(11)");
  997. entity.Property(e => e.AlipayFlag)
  998. .HasColumnType("bit(1)")
  999. .HasDefaultValueSql("b'0'");
  1000. entity.Property(e => e.AlipayUserId)
  1001. .HasColumnType("varchar(50)")
  1002. .HasCharSet("utf8")
  1003. .HasCollation("utf8_general_ci");
  1004. entity.Property(e => e.CardFlag)
  1005. .HasColumnType("bit(1)")
  1006. .HasDefaultValueSql("b'0'");
  1007. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1008. entity.Property(e => e.CreateMan)
  1009. .HasColumnType("varchar(50)")
  1010. .HasCharSet("utf8")
  1011. .HasCollation("utf8_general_ci");
  1012. entity.Property(e => e.CurIntgegral).HasColumnType("int(11)");
  1013. entity.Property(e => e.HeadPhoto)
  1014. .HasColumnType("varchar(2000)")
  1015. .HasCharSet("utf8")
  1016. .HasCollation("utf8_general_ci");
  1017. entity.Property(e => e.LastConsumDate).HasColumnType("datetime");
  1018. entity.Property(e => e.Mobile)
  1019. .HasColumnType("varchar(11)")
  1020. .HasCharSet("utf8")
  1021. .HasCollation("utf8_general_ci");
  1022. entity.Property(e => e.NickName)
  1023. .HasColumnType("varchar(50)")
  1024. .HasCharSet("utf8")
  1025. .HasCollation("utf8_general_ci");
  1026. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1027. entity.Property(e => e.SeoDescription)
  1028. .HasColumnType("varchar(500)")
  1029. .HasCharSet("utf8")
  1030. .HasCollation("utf8_general_ci");
  1031. entity.Property(e => e.SeoKeyword)
  1032. .HasColumnType("varchar(200)")
  1033. .HasCharSet("utf8")
  1034. .HasCollation("utf8_general_ci");
  1035. entity.Property(e => e.SeoTitle)
  1036. .HasColumnType("varchar(100)")
  1037. .HasCharSet("utf8")
  1038. .HasCollation("utf8_general_ci");
  1039. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1040. entity.Property(e => e.Status).HasColumnType("int(11)");
  1041. entity.Property(e => e.TotalAmount).HasColumnType("decimal(18,2)");
  1042. entity.Property(e => e.TotalConsumCount).HasColumnType("int(11)");
  1043. entity.Property(e => e.TotalDividend).HasColumnType("decimal(18,2)");
  1044. entity.Property(e => e.TotalIntegral).HasColumnType("int(11)");
  1045. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1046. entity.Property(e => e.UpdateMan)
  1047. .HasColumnType("varchar(50)")
  1048. .HasCharSet("utf8")
  1049. .HasCollation("utf8_general_ci");
  1050. entity.Property(e => e.Version).HasColumnType("int(11)");
  1051. entity.Property(e => e.WeChatPayFlag)
  1052. .HasColumnType("bit(1)")
  1053. .HasDefaultValueSql("b'0'");
  1054. entity.Property(e => e.WechatOpenId)
  1055. .HasColumnType("varchar(50)")
  1056. .HasCharSet("utf8")
  1057. .HasCollation("utf8_general_ci");
  1058. entity.Property(e => e.WechatUnionid)
  1059. .HasColumnType("varchar(50)")
  1060. .HasCharSet("utf8")
  1061. .HasCollation("utf8_general_ci");
  1062. });
  1063. modelBuilder.Entity<CouponAssignRecords>(entity =>
  1064. {
  1065. entity.Property(e => e.Id).HasColumnType("int(11)");
  1066. entity.Property(e => e.Areas)
  1067. .HasColumnType("varchar(50)")
  1068. .HasCharSet("utf8")
  1069. .HasCollation("utf8_general_ci");
  1070. entity.Property(e => e.CouponIds)
  1071. .HasColumnType("varchar(200)")
  1072. .HasCharSet("utf8")
  1073. .HasCollation("utf8_general_ci");
  1074. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1075. entity.Property(e => e.CreateMan)
  1076. .HasColumnType("varchar(50)")
  1077. .HasCharSet("utf8")
  1078. .HasCollation("utf8_general_ci");
  1079. entity.Property(e => e.CurMoneyMax).HasColumnType("decimal(18,2)");
  1080. entity.Property(e => e.CurMoneyMin).HasColumnType("decimal(18,2)");
  1081. entity.Property(e => e.Mobile)
  1082. .HasColumnType("varchar(11)")
  1083. .HasCharSet("utf8")
  1084. .HasCollation("utf8_general_ci");
  1085. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1086. entity.Property(e => e.SeoDescription)
  1087. .HasColumnType("varchar(500)")
  1088. .HasCharSet("utf8")
  1089. .HasCollation("utf8_general_ci");
  1090. entity.Property(e => e.SeoKeyword)
  1091. .HasColumnType("varchar(200)")
  1092. .HasCharSet("utf8")
  1093. .HasCollation("utf8_general_ci");
  1094. entity.Property(e => e.SeoTitle)
  1095. .HasColumnType("varchar(100)")
  1096. .HasCharSet("utf8")
  1097. .HasCollation("utf8_general_ci");
  1098. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1099. entity.Property(e => e.Status).HasColumnType("int(11)");
  1100. entity.Property(e => e.TotalOrderMoneyMax).HasColumnType("decimal(18,2)");
  1101. entity.Property(e => e.TotalOrderMoneyMin).HasColumnType("decimal(18,2)");
  1102. entity.Property(e => e.TotalUseIntegralMax).HasColumnType("decimal(18,2)");
  1103. entity.Property(e => e.TotalUseIntegralMin).HasColumnType("decimal(18,2)");
  1104. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1105. entity.Property(e => e.UpdateMan)
  1106. .HasColumnType("varchar(50)")
  1107. .HasCharSet("utf8")
  1108. .HasCollation("utf8_general_ci");
  1109. entity.Property(e => e.UserGroupId)
  1110. .HasColumnType("varchar(50)")
  1111. .HasCharSet("utf8")
  1112. .HasCollation("utf8_general_ci");
  1113. entity.Property(e => e.UserMaxLevel).HasColumnType("int(11)");
  1114. entity.Property(e => e.UserMinLevel).HasColumnType("int(11)");
  1115. entity.Property(e => e.Version).HasColumnType("int(11)");
  1116. });
  1117. modelBuilder.Entity<Coupons>(entity =>
  1118. {
  1119. entity.Property(e => e.Id).HasColumnType("int(11)");
  1120. entity.Property(e => e.AndPromotion)
  1121. .HasColumnType("bit(1)")
  1122. .HasDefaultValueSql("b'0'");
  1123. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1124. entity.Property(e => e.CreateMan)
  1125. .HasColumnType("varchar(50)")
  1126. .HasCharSet("utf8")
  1127. .HasCollation("utf8_general_ci");
  1128. entity.Property(e => e.ExpireEndDate).HasColumnType("datetime");
  1129. entity.Property(e => e.ExpireStartDate).HasColumnType("datetime");
  1130. entity.Property(e => e.Explanation)
  1131. .HasColumnType("varchar(200)")
  1132. .HasCharSet("utf8")
  1133. .HasCollation("utf8_general_ci");
  1134. entity.Property(e => e.FullReduceData).HasColumnType("decimal(18,2)");
  1135. entity.Property(e => e.FullReduceMoney).HasColumnType("decimal(18,2)");
  1136. entity.Property(e => e.IsNewUser)
  1137. .HasColumnType("bit(1)")
  1138. .HasDefaultValueSql("b'0'");
  1139. entity.Property(e => e.IsPublic)
  1140. .HasColumnType("bit(1)")
  1141. .HasDefaultValueSql("b'0'");
  1142. entity.Property(e => e.IsReUse)
  1143. .HasColumnType("bit(1)")
  1144. .HasDefaultValueSql("b'0'");
  1145. entity.Property(e => e.IsRepeat)
  1146. .HasColumnType("bit(1)")
  1147. .HasDefaultValueSql("b'0'");
  1148. entity.Property(e => e.IsSuperpose)
  1149. .HasColumnType("bit(1)")
  1150. .HasDefaultValueSql("b'0'");
  1151. entity.Property(e => e.Kind).HasColumnType("int(11)");
  1152. entity.Property(e => e.MerchantId)
  1153. .HasColumnType("varchar(200)")
  1154. .HasCharSet("utf8")
  1155. .HasCollation("utf8_general_ci");
  1156. entity.Property(e => e.Name)
  1157. .HasColumnType("varchar(50)")
  1158. .HasCharSet("utf8")
  1159. .HasCollation("utf8_general_ci");
  1160. entity.Property(e => e.ProductColId)
  1161. .HasColumnType("varchar(200)")
  1162. .HasCharSet("utf8")
  1163. .HasCollation("utf8_general_ci");
  1164. entity.Property(e => e.ProductId)
  1165. .HasColumnType("varchar(500)")
  1166. .HasCharSet("utf8")
  1167. .HasCollation("utf8_general_ci");
  1168. entity.Property(e => e.PublicEndDate).HasColumnType("datetime");
  1169. entity.Property(e => e.PublicMax).HasColumnType("int(11)");
  1170. entity.Property(e => e.PublicMaxByDay).HasColumnType("int(11)");
  1171. entity.Property(e => e.PublicStartDate).HasColumnType("datetime");
  1172. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1173. entity.Property(e => e.RepeatCondition)
  1174. .HasColumnType("varchar(50)")
  1175. .HasCharSet("utf8")
  1176. .HasCollation("utf8_general_ci");
  1177. entity.Property(e => e.RepeatType).HasColumnType("int(11)");
  1178. entity.Property(e => e.SeoDescription)
  1179. .HasColumnType("varchar(500)")
  1180. .HasCharSet("utf8")
  1181. .HasCollation("utf8_general_ci");
  1182. entity.Property(e => e.SeoKeyword)
  1183. .HasColumnType("varchar(200)")
  1184. .HasCharSet("utf8")
  1185. .HasCollation("utf8_general_ci");
  1186. entity.Property(e => e.SeoTitle)
  1187. .HasColumnType("varchar(100)")
  1188. .HasCharSet("utf8")
  1189. .HasCollation("utf8_general_ci");
  1190. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1191. entity.Property(e => e.Status).HasColumnType("int(11)");
  1192. entity.Property(e => e.Stock).HasColumnType("decimal(18,2)");
  1193. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1194. entity.Property(e => e.UpdateMan)
  1195. .HasColumnType("varchar(50)")
  1196. .HasCharSet("utf8")
  1197. .HasCollation("utf8_general_ci");
  1198. entity.Property(e => e.UseEndDate).HasColumnType("datetime");
  1199. entity.Property(e => e.UseStartDate).HasColumnType("datetime");
  1200. entity.Property(e => e.UserMaxLevel).HasColumnType("int(11)");
  1201. entity.Property(e => e.UserMinLevel).HasColumnType("int(11)");
  1202. entity.Property(e => e.Version).HasColumnType("int(11)");
  1203. });
  1204. modelBuilder.Entity<CouponsForUser>(entity =>
  1205. {
  1206. entity.Property(e => e.Id).HasColumnType("int(11)");
  1207. entity.Property(e => e.CouponId).HasColumnType("int(11)");
  1208. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1209. entity.Property(e => e.CreateMan)
  1210. .HasColumnType("varchar(50)")
  1211. .HasCharSet("utf8")
  1212. .HasCollation("utf8_general_ci");
  1213. entity.Property(e => e.IsLock)
  1214. .HasColumnType("bit(1)")
  1215. .HasDefaultValueSql("b'0'");
  1216. entity.Property(e => e.IsUse)
  1217. .HasColumnType("bit(1)")
  1218. .HasDefaultValueSql("b'0'");
  1219. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1220. entity.Property(e => e.SeoDescription)
  1221. .HasColumnType("varchar(500)")
  1222. .HasCharSet("utf8")
  1223. .HasCollation("utf8_general_ci");
  1224. entity.Property(e => e.SeoKeyword)
  1225. .HasColumnType("varchar(200)")
  1226. .HasCharSet("utf8")
  1227. .HasCollation("utf8_general_ci");
  1228. entity.Property(e => e.SeoTitle)
  1229. .HasColumnType("varchar(100)")
  1230. .HasCharSet("utf8")
  1231. .HasCollation("utf8_general_ci");
  1232. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1233. entity.Property(e => e.Status).HasColumnType("int(11)");
  1234. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1235. entity.Property(e => e.UpdateMan)
  1236. .HasColumnType("varchar(50)")
  1237. .HasCharSet("utf8")
  1238. .HasCollation("utf8_general_ci");
  1239. entity.Property(e => e.UseDate).HasColumnType("datetime");
  1240. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1241. entity.Property(e => e.Version).HasColumnType("int(11)");
  1242. });
  1243. modelBuilder.Entity<CustomTagSet>(entity =>
  1244. {
  1245. entity.Property(e => e.Id).HasColumnType("int(11)");
  1246. entity.Property(e => e.Contents)
  1247. .HasColumnType("varchar(500)")
  1248. .HasCharSet("utf8")
  1249. .HasCollation("utf8_general_ci");
  1250. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1251. entity.Property(e => e.CreateMan)
  1252. .HasColumnType("varchar(50)")
  1253. .HasCharSet("utf8")
  1254. .HasCollation("utf8_general_ci");
  1255. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1256. entity.Property(e => e.SeoDescription)
  1257. .HasColumnType("varchar(500)")
  1258. .HasCharSet("utf8")
  1259. .HasCollation("utf8_general_ci");
  1260. entity.Property(e => e.SeoKeyword)
  1261. .HasColumnType("varchar(200)")
  1262. .HasCharSet("utf8")
  1263. .HasCollation("utf8_general_ci");
  1264. entity.Property(e => e.SeoTitle)
  1265. .HasColumnType("varchar(100)")
  1266. .HasCharSet("utf8")
  1267. .HasCollation("utf8_general_ci");
  1268. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1269. entity.Property(e => e.Status).HasColumnType("int(11)");
  1270. entity.Property(e => e.Tags)
  1271. .HasColumnType("varchar(50)")
  1272. .HasCharSet("utf8")
  1273. .HasCollation("utf8_general_ci");
  1274. entity.Property(e => e.Title)
  1275. .HasColumnType("varchar(50)")
  1276. .HasCharSet("utf8")
  1277. .HasCollation("utf8_general_ci");
  1278. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1279. entity.Property(e => e.UpdateMan)
  1280. .HasColumnType("varchar(50)")
  1281. .HasCharSet("utf8")
  1282. .HasCollation("utf8_general_ci");
  1283. entity.Property(e => e.Version).HasColumnType("int(11)");
  1284. });
  1285. modelBuilder.Entity<ErpCompanys>(entity =>
  1286. {
  1287. entity.Property(e => e.Id).HasColumnType("int(11)");
  1288. entity.Property(e => e.Code)
  1289. .HasColumnType("varchar(50)")
  1290. .HasCharSet("utf8")
  1291. .HasCollation("utf8_general_ci");
  1292. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1293. entity.Property(e => e.CreateMan)
  1294. .HasColumnType("varchar(50)")
  1295. .HasCharSet("utf8")
  1296. .HasCollation("utf8_general_ci");
  1297. entity.Property(e => e.Name)
  1298. .HasColumnType("varchar(50)")
  1299. .HasCharSet("utf8")
  1300. .HasCollation("utf8_general_ci");
  1301. entity.Property(e => e.Phone)
  1302. .HasColumnType("varchar(30)")
  1303. .HasCharSet("utf8")
  1304. .HasCollation("utf8_general_ci");
  1305. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1306. entity.Property(e => e.SeoDescription)
  1307. .HasColumnType("varchar(500)")
  1308. .HasCharSet("utf8")
  1309. .HasCollation("utf8_general_ci");
  1310. entity.Property(e => e.SeoKeyword)
  1311. .HasColumnType("varchar(200)")
  1312. .HasCharSet("utf8")
  1313. .HasCollation("utf8_general_ci");
  1314. entity.Property(e => e.SeoTitle)
  1315. .HasColumnType("varchar(100)")
  1316. .HasCharSet("utf8")
  1317. .HasCollation("utf8_general_ci");
  1318. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1319. entity.Property(e => e.Status).HasColumnType("int(11)");
  1320. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1321. entity.Property(e => e.UpdateMan)
  1322. .HasColumnType("varchar(50)")
  1323. .HasCharSet("utf8")
  1324. .HasCollation("utf8_general_ci");
  1325. entity.Property(e => e.Version).HasColumnType("int(11)");
  1326. });
  1327. modelBuilder.Entity<FileUpdateInfo>(entity =>
  1328. {
  1329. entity.Property(e => e.Id).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.FileName)
  1336. .HasColumnType("varchar(50)")
  1337. .HasCharSet("utf8")
  1338. .HasCollation("utf8_general_ci");
  1339. entity.Property(e => e.Path)
  1340. .HasColumnType("varchar(200)")
  1341. .HasCharSet("utf8")
  1342. .HasCollation("utf8_general_ci");
  1343. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1344. entity.Property(e => e.SeoDescription)
  1345. .HasColumnType("varchar(500)")
  1346. .HasCharSet("utf8")
  1347. .HasCollation("utf8_general_ci");
  1348. entity.Property(e => e.SeoKeyword)
  1349. .HasColumnType("varchar(200)")
  1350. .HasCharSet("utf8")
  1351. .HasCollation("utf8_general_ci");
  1352. entity.Property(e => e.SeoTitle)
  1353. .HasColumnType("varchar(100)")
  1354. .HasCharSet("utf8")
  1355. .HasCollation("utf8_general_ci");
  1356. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1357. entity.Property(e => e.Status).HasColumnType("int(11)");
  1358. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1359. entity.Property(e => e.UpdateMan)
  1360. .HasColumnType("varchar(50)")
  1361. .HasCharSet("utf8")
  1362. .HasCollation("utf8_general_ci");
  1363. entity.Property(e => e.Version).HasColumnType("int(11)");
  1364. entity.Property(e => e.VersionNum).HasColumnType("int(11)");
  1365. });
  1366. modelBuilder.Entity<FluxProfitDetail>(entity =>
  1367. {
  1368. entity.Property(e => e.Id).HasColumnType("int(11)");
  1369. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1370. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1371. entity.Property(e => e.CreateMan)
  1372. .HasColumnType("varchar(50)")
  1373. .HasCharSet("utf8")
  1374. .HasCollation("utf8_general_ci");
  1375. entity.Property(e => e.FluxEndDate)
  1376. .HasColumnType("varchar(8)")
  1377. .HasCharSet("utf8")
  1378. .HasCollation("utf8_general_ci");
  1379. entity.Property(e => e.FluxFeeAmt).HasColumnType("decimal(18,2)");
  1380. entity.Property(e => e.FluxOrderNo)
  1381. .HasColumnType("varchar(64)")
  1382. .HasCharSet("utf8")
  1383. .HasCollation("utf8_general_ci");
  1384. entity.Property(e => e.FluxProfitAmt).HasColumnType("decimal(18,2)");
  1385. entity.Property(e => e.FluxStartDate)
  1386. .HasColumnType("varchar(8)")
  1387. .HasCharSet("utf8")
  1388. .HasCollation("utf8_general_ci");
  1389. entity.Property(e => e.MerNo)
  1390. .HasColumnType("varchar(32)")
  1391. .HasCharSet("utf8")
  1392. .HasCollation("utf8_general_ci");
  1393. entity.Property(e => e.MerUserType).HasColumnType("int(11)");
  1394. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  1395. entity.Property(e => e.MerchantUserId).HasColumnType("int(11)");
  1396. entity.Property(e => e.PosType)
  1397. .HasColumnType("varchar(32)")
  1398. .HasCharSet("utf8")
  1399. .HasCollation("utf8_general_ci");
  1400. entity.Property(e => e.ProfitType).HasColumnType("int(11)");
  1401. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1402. entity.Property(e => e.RecordNo)
  1403. .HasColumnType("varchar(32)")
  1404. .HasCharSet("utf8")
  1405. .HasCollation("utf8_general_ci");
  1406. entity.Property(e => e.Remark)
  1407. .HasColumnType("varchar(128)")
  1408. .HasCharSet("utf8")
  1409. .HasCollation("utf8_general_ci");
  1410. entity.Property(e => e.SeoDescription)
  1411. .HasColumnType("varchar(500)")
  1412. .HasCharSet("utf8")
  1413. .HasCollation("utf8_general_ci");
  1414. entity.Property(e => e.SeoKeyword)
  1415. .HasColumnType("varchar(200)")
  1416. .HasCharSet("utf8")
  1417. .HasCollation("utf8_general_ci");
  1418. entity.Property(e => e.SeoTitle)
  1419. .HasColumnType("varchar(100)")
  1420. .HasCharSet("utf8")
  1421. .HasCollation("utf8_general_ci");
  1422. entity.Property(e => e.SnNo)
  1423. .HasColumnType("varchar(32)")
  1424. .HasCharSet("utf8")
  1425. .HasCollation("utf8_general_ci");
  1426. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1427. entity.Property(e => e.Status).HasColumnType("int(11)");
  1428. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  1429. entity.Property(e => e.TradeAmt).HasColumnType("decimal(18,2)");
  1430. entity.Property(e => e.TradeDate)
  1431. .HasColumnType("varchar(8)")
  1432. .HasCharSet("utf8")
  1433. .HasCollation("utf8_general_ci");
  1434. entity.Property(e => e.TradeMonth)
  1435. .HasColumnType("varchar(6)")
  1436. .HasCharSet("utf8")
  1437. .HasCollation("utf8_general_ci");
  1438. entity.Property(e => e.TradeOrderNo)
  1439. .HasColumnType("varchar(64)")
  1440. .HasCharSet("utf8")
  1441. .HasCollation("utf8_general_ci");
  1442. entity.Property(e => e.TradeTime)
  1443. .HasColumnType("varchar(6)")
  1444. .HasCharSet("utf8")
  1445. .HasCollation("utf8_general_ci");
  1446. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1447. entity.Property(e => e.UpdateMan)
  1448. .HasColumnType("varchar(50)")
  1449. .HasCharSet("utf8")
  1450. .HasCollation("utf8_general_ci");
  1451. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1452. entity.Property(e => e.Version).HasColumnType("int(11)");
  1453. });
  1454. modelBuilder.Entity<FluxProfitSummary>(entity =>
  1455. {
  1456. entity.Property(e => e.Id).HasColumnType("int(11)");
  1457. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1458. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  1459. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1460. entity.Property(e => e.CreateMan)
  1461. .HasColumnType("varchar(50)")
  1462. .HasCharSet("utf8")
  1463. .HasCollation("utf8_general_ci");
  1464. entity.Property(e => e.FluxProfitAmt).HasColumnType("decimal(18,2)");
  1465. entity.Property(e => e.FluxTradeNum).HasColumnType("int(11)");
  1466. entity.Property(e => e.MerUserType).HasColumnType("int(11)");
  1467. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1468. entity.Property(e => e.Remark)
  1469. .HasColumnType("varchar(64)")
  1470. .HasCharSet("utf8")
  1471. .HasCollation("utf8_general_ci");
  1472. entity.Property(e => e.SeoDescription)
  1473. .HasColumnType("varchar(500)")
  1474. .HasCharSet("utf8")
  1475. .HasCollation("utf8_general_ci");
  1476. entity.Property(e => e.SeoKeyword)
  1477. .HasColumnType("varchar(200)")
  1478. .HasCharSet("utf8")
  1479. .HasCollation("utf8_general_ci");
  1480. entity.Property(e => e.SeoTitle)
  1481. .HasColumnType("varchar(100)")
  1482. .HasCharSet("utf8")
  1483. .HasCollation("utf8_general_ci");
  1484. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1485. entity.Property(e => e.Status).HasColumnType("int(11)");
  1486. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  1487. entity.Property(e => e.TradeMonth)
  1488. .HasColumnType("varchar(6)")
  1489. .HasCharSet("utf8")
  1490. .HasCollation("utf8_general_ci");
  1491. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1492. entity.Property(e => e.UpdateMan)
  1493. .HasColumnType("varchar(50)")
  1494. .HasCharSet("utf8")
  1495. .HasCollation("utf8_general_ci");
  1496. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1497. entity.Property(e => e.Version).HasColumnType("int(11)");
  1498. });
  1499. modelBuilder.Entity<IndexIconList>(entity =>
  1500. {
  1501. entity.Property(e => e.Id).HasColumnType("int(11)");
  1502. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1503. entity.Property(e => e.CreateMan)
  1504. .HasColumnType("varchar(50)")
  1505. .HasCharSet("utf8")
  1506. .HasCollation("utf8_general_ci");
  1507. entity.Property(e => e.Icon)
  1508. .HasColumnType("varchar(200)")
  1509. .HasCharSet("utf8")
  1510. .HasCollation("utf8_general_ci");
  1511. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1512. entity.Property(e => e.SeoDescription)
  1513. .HasColumnType("varchar(500)")
  1514. .HasCharSet("utf8")
  1515. .HasCollation("utf8_general_ci");
  1516. entity.Property(e => e.SeoKeyword)
  1517. .HasColumnType("varchar(200)")
  1518. .HasCharSet("utf8")
  1519. .HasCollation("utf8_general_ci");
  1520. entity.Property(e => e.SeoTitle)
  1521. .HasColumnType("varchar(100)")
  1522. .HasCharSet("utf8")
  1523. .HasCollation("utf8_general_ci");
  1524. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1525. entity.Property(e => e.Status).HasColumnType("int(11)");
  1526. entity.Property(e => e.Title)
  1527. .HasColumnType("varchar(50)")
  1528. .HasCharSet("utf8")
  1529. .HasCollation("utf8_general_ci");
  1530. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1531. entity.Property(e => e.UpdateMan)
  1532. .HasColumnType("varchar(50)")
  1533. .HasCharSet("utf8")
  1534. .HasCollation("utf8_general_ci");
  1535. entity.Property(e => e.Url)
  1536. .HasColumnType("varchar(50)")
  1537. .HasCharSet("utf8")
  1538. .HasCollation("utf8_general_ci");
  1539. entity.Property(e => e.Version).HasColumnType("int(11)");
  1540. });
  1541. modelBuilder.Entity<KqProductBrand>(entity =>
  1542. {
  1543. entity.Property(e => e.Id).HasColumnType("int(11)");
  1544. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1545. entity.Property(e => e.CreateMan)
  1546. .HasColumnType("varchar(50)")
  1547. .HasCharSet("utf8")
  1548. .HasCollation("utf8_general_ci");
  1549. entity.Property(e => e.Name)
  1550. .HasColumnType("varchar(50)")
  1551. .HasCharSet("utf8")
  1552. .HasCollation("utf8_general_ci");
  1553. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  1554. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1555. entity.Property(e => e.SeoDescription)
  1556. .HasColumnType("varchar(500)")
  1557. .HasCharSet("utf8")
  1558. .HasCollation("utf8_general_ci");
  1559. entity.Property(e => e.SeoKeyword)
  1560. .HasColumnType("varchar(200)")
  1561. .HasCharSet("utf8")
  1562. .HasCollation("utf8_general_ci");
  1563. entity.Property(e => e.SeoTitle)
  1564. .HasColumnType("varchar(100)")
  1565. .HasCharSet("utf8")
  1566. .HasCollation("utf8_general_ci");
  1567. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1568. entity.Property(e => e.Status).HasColumnType("int(11)");
  1569. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1570. entity.Property(e => e.UpdateMan)
  1571. .HasColumnType("varchar(50)")
  1572. .HasCharSet("utf8")
  1573. .HasCollation("utf8_general_ci");
  1574. entity.Property(e => e.Version).HasColumnType("int(11)");
  1575. });
  1576. modelBuilder.Entity<KqProductOrgs>(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.CreateDate).HasColumnType("datetime");
  1581. entity.Property(e => e.CreateMan)
  1582. .HasColumnType("varchar(50)")
  1583. .HasCharSet("utf8")
  1584. .HasCollation("utf8_general_ci");
  1585. entity.Property(e => e.Name)
  1586. .HasColumnType("varchar(50)")
  1587. .HasCharSet("utf8")
  1588. .HasCollation("utf8_general_ci");
  1589. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1590. entity.Property(e => e.SeoDescription)
  1591. .HasColumnType("varchar(500)")
  1592. .HasCharSet("utf8")
  1593. .HasCollation("utf8_general_ci");
  1594. entity.Property(e => e.SeoKeyword)
  1595. .HasColumnType("varchar(200)")
  1596. .HasCharSet("utf8")
  1597. .HasCollation("utf8_general_ci");
  1598. entity.Property(e => e.SeoTitle)
  1599. .HasColumnType("varchar(100)")
  1600. .HasCharSet("utf8")
  1601. .HasCollation("utf8_general_ci");
  1602. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1603. entity.Property(e => e.Status).HasColumnType("int(11)");
  1604. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1605. entity.Property(e => e.UpdateMan)
  1606. .HasColumnType("varchar(50)")
  1607. .HasCharSet("utf8")
  1608. .HasCollation("utf8_general_ci");
  1609. entity.Property(e => e.Version).HasColumnType("int(11)");
  1610. });
  1611. modelBuilder.Entity<KqProductRuleSet>(entity =>
  1612. {
  1613. entity.Property(e => e.Id).HasColumnType("int(11)");
  1614. entity.Property(e => e.ActDeposit).HasColumnType("decimal(18,2)");
  1615. entity.Property(e => e.ActEndDate).HasColumnType("datetime");
  1616. entity.Property(e => e.ActFirst).HasColumnType("decimal(18,2)");
  1617. entity.Property(e => e.ActFirstDeposit).HasColumnType("decimal(18,2)");
  1618. entity.Property(e => e.ActPosCount).HasColumnType("int(11)");
  1619. entity.Property(e => e.ActPrize).HasColumnType("decimal(18,2)");
  1620. entity.Property(e => e.ActStartDate).HasColumnType("datetime");
  1621. entity.Property(e => e.ActiveCount).HasColumnType("int(11)");
  1622. entity.Property(e => e.ActivePrice).HasColumnType("decimal(18,2)");
  1623. entity.Property(e => e.BigExtendCycleDays).HasColumnType("int(11)");
  1624. entity.Property(e => e.BigTotalAmount).HasColumnType("decimal(18,2)");
  1625. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1626. entity.Property(e => e.CreateMan)
  1627. .HasColumnType("varchar(50)")
  1628. .HasCharSet("utf8")
  1629. .HasCollation("utf8_general_ci");
  1630. entity.Property(e => e.CycleEndDate).HasColumnType("datetime");
  1631. entity.Property(e => e.CycleIsOther)
  1632. .HasColumnType("bit(1)")
  1633. .HasDefaultValueSql("b'0'");
  1634. entity.Property(e => e.CyclePosDays).HasColumnType("int(11)");
  1635. entity.Property(e => e.CycleStartDate).HasColumnType("datetime");
  1636. entity.Property(e => e.Deposit).HasColumnType("decimal(18,2)");
  1637. entity.Property(e => e.FeeBindDays).HasColumnType("int(11)");
  1638. entity.Property(e => e.FeeFixed).HasColumnType("decimal(18,2)");
  1639. entity.Property(e => e.FeeOfDays).HasColumnType("datetime");
  1640. entity.Property(e => e.FeeRate).HasColumnType("decimal(18,2)");
  1641. entity.Property(e => e.FlowCardDirectProfit).HasColumnType("decimal(18,2)");
  1642. entity.Property(e => e.FlowCardEndDate).HasColumnType("datetime");
  1643. entity.Property(e => e.FlowCardFee).HasColumnType("decimal(18,2)");
  1644. entity.Property(e => e.FlowCardFreeDays).HasColumnType("int(11)");
  1645. entity.Property(e => e.FlowCardStartDate).HasColumnType("datetime");
  1646. entity.Property(e => e.HelpEndDate).HasColumnType("datetime");
  1647. entity.Property(e => e.HelpFee).HasColumnType("decimal(18,2)");
  1648. entity.Property(e => e.HelpMonths).HasColumnType("int(11)");
  1649. entity.Property(e => e.HelpStartDate).HasColumnType("datetime");
  1650. entity.Property(e => e.HelpSteadyFee).HasColumnType("decimal(18,2)");
  1651. entity.Property(e => e.MerStaEndDate).HasColumnType("datetime");
  1652. entity.Property(e => e.MerStaMonths).HasColumnType("int(11)");
  1653. entity.Property(e => e.MerStaProfit).HasColumnType("decimal(18,2)");
  1654. entity.Property(e => e.MerStaStartDate).HasColumnType("datetime");
  1655. entity.Property(e => e.MerStaTradeForMonth).HasColumnType("decimal(18,2)");
  1656. entity.Property(e => e.OpenEndDate).HasColumnType("datetime");
  1657. entity.Property(e => e.OpenStaDays).HasColumnType("int(11)");
  1658. entity.Property(e => e.OpenStaPrize).HasColumnType("decimal(18,2)");
  1659. entity.Property(e => e.OpenStaPrize2).HasColumnType("decimal(18,2)");
  1660. entity.Property(e => e.OpenStaTrade).HasColumnType("decimal(18,2)");
  1661. entity.Property(e => e.OpenStartDate).HasColumnType("datetime");
  1662. entity.Property(e => e.OrgId).HasColumnType("int(11)");
  1663. entity.Property(e => e.PullNewEndDate).HasColumnType("datetime");
  1664. entity.Property(e => e.PullNewExtendDays).HasColumnType("int(11)");
  1665. entity.Property(e => e.PullNewStartDate).HasColumnType("datetime");
  1666. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1667. entity.Property(e => e.SeoDescription)
  1668. .HasColumnType("varchar(500)")
  1669. .HasCharSet("utf8")
  1670. .HasCollation("utf8_general_ci");
  1671. entity.Property(e => e.SeoKeyword)
  1672. .HasColumnType("varchar(200)")
  1673. .HasCharSet("utf8")
  1674. .HasCollation("utf8_general_ci");
  1675. entity.Property(e => e.SeoTitle)
  1676. .HasColumnType("varchar(100)")
  1677. .HasCharSet("utf8")
  1678. .HasCollation("utf8_general_ci");
  1679. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1680. entity.Property(e => e.Status).HasColumnType("int(11)");
  1681. entity.Property(e => e.SubsidyEndDate).HasColumnType("datetime");
  1682. entity.Property(e => e.SubsidyStartDate).HasColumnType("datetime");
  1683. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1684. entity.Property(e => e.UpdateMan)
  1685. .HasColumnType("varchar(50)")
  1686. .HasCharSet("utf8")
  1687. .HasCollation("utf8_general_ci");
  1688. entity.Property(e => e.Version).HasColumnType("int(11)");
  1689. });
  1690. modelBuilder.Entity<KqProducts>(entity =>
  1691. {
  1692. entity.Property(e => e.Id).HasColumnType("int(11)");
  1693. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1694. entity.Property(e => e.CreateMan)
  1695. .HasColumnType("varchar(50)")
  1696. .HasCharSet("utf8")
  1697. .HasCollation("utf8_general_ci");
  1698. entity.Property(e => e.Name)
  1699. .HasColumnType("varchar(50)")
  1700. .HasCharSet("utf8")
  1701. .HasCollation("utf8_general_ci");
  1702. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1703. entity.Property(e => e.SeoDescription)
  1704. .HasColumnType("varchar(500)")
  1705. .HasCharSet("utf8")
  1706. .HasCollation("utf8_general_ci");
  1707. entity.Property(e => e.SeoKeyword)
  1708. .HasColumnType("varchar(200)")
  1709. .HasCharSet("utf8")
  1710. .HasCollation("utf8_general_ci");
  1711. entity.Property(e => e.SeoTitle)
  1712. .HasColumnType("varchar(100)")
  1713. .HasCharSet("utf8")
  1714. .HasCollation("utf8_general_ci");
  1715. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1716. entity.Property(e => e.Status).HasColumnType("int(11)");
  1717. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1718. entity.Property(e => e.UpdateMan)
  1719. .HasColumnType("varchar(50)")
  1720. .HasCharSet("utf8")
  1721. .HasCollation("utf8_general_ci");
  1722. entity.Property(e => e.Version).HasColumnType("int(11)");
  1723. });
  1724. modelBuilder.Entity<MachineApply>(entity =>
  1725. {
  1726. entity.Property(e => e.Id).HasColumnType("int(11)");
  1727. entity.Property(e => e.Address)
  1728. .HasColumnType("varchar(50)")
  1729. .HasCharSet("utf8")
  1730. .HasCollation("utf8_general_ci");
  1731. entity.Property(e => e.ApplyDeviceName)
  1732. .HasColumnType("varchar(32)")
  1733. .HasCharSet("utf8")
  1734. .HasCollation("utf8_general_ci");
  1735. entity.Property(e => e.ApplyDeviceNum).HasColumnType("int(11)");
  1736. entity.Property(e => e.ApplyNo)
  1737. .HasColumnType("varchar(32)")
  1738. .HasCharSet("utf8")
  1739. .HasCollation("utf8_general_ci");
  1740. entity.Property(e => e.ApplyTime).HasColumnType("datetime");
  1741. entity.Property(e => e.Areas)
  1742. .HasColumnType("varchar(30)")
  1743. .HasCharSet("utf8")
  1744. .HasCollation("utf8_general_ci");
  1745. entity.Property(e => e.AuditBy)
  1746. .HasColumnType("varchar(32)")
  1747. .HasCharSet("utf8")
  1748. .HasCollation("utf8_general_ci");
  1749. entity.Property(e => e.AuditRemark)
  1750. .HasColumnType("varchar(128)")
  1751. .HasCharSet("utf8")
  1752. .HasCollation("utf8_general_ci");
  1753. entity.Property(e => e.AuditResult).HasColumnType("int(11)");
  1754. entity.Property(e => e.AuditTime).HasColumnType("datetime");
  1755. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1756. entity.Property(e => e.CompleteTime).HasColumnType("datetime");
  1757. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1758. entity.Property(e => e.CreateMan)
  1759. .HasColumnType("varchar(50)")
  1760. .HasCharSet("utf8")
  1761. .HasCollation("utf8_general_ci");
  1762. entity.Property(e => e.DeliveryType).HasColumnType("int(11)");
  1763. entity.Property(e => e.ExpressName)
  1764. .HasColumnType("varchar(32)")
  1765. .HasCharSet("utf8")
  1766. .HasCollation("utf8_general_ci");
  1767. entity.Property(e => e.ExpressNo)
  1768. .HasColumnType("varchar(32)")
  1769. .HasCharSet("utf8")
  1770. .HasCollation("utf8_general_ci");
  1771. entity.Property(e => e.Mobile)
  1772. .HasColumnType("varchar(11)")
  1773. .HasCharSet("utf8")
  1774. .HasCollation("utf8_general_ci");
  1775. entity.Property(e => e.OrderExpand)
  1776. .HasColumnType("mediumtext")
  1777. .HasCharSet("utf8")
  1778. .HasCollation("utf8_general_ci");
  1779. entity.Property(e => e.ProductName)
  1780. .HasColumnType("varchar(32)")
  1781. .HasCharSet("utf8")
  1782. .HasCollation("utf8_general_ci");
  1783. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1784. entity.Property(e => e.RealName)
  1785. .HasColumnType("varchar(30)")
  1786. .HasCharSet("utf8")
  1787. .HasCollation("utf8_general_ci");
  1788. entity.Property(e => e.Remark)
  1789. .HasColumnType("varchar(64)")
  1790. .HasCharSet("utf8")
  1791. .HasCollation("utf8_general_ci");
  1792. entity.Property(e => e.ReturnOrderNo)
  1793. .HasColumnType("varchar(32)")
  1794. .HasCharSet("utf8")
  1795. .HasCollation("utf8_general_ci");
  1796. entity.Property(e => e.ReturnStatus).HasColumnType("int(11)");
  1797. entity.Property(e => e.SendDate).HasColumnType("datetime");
  1798. entity.Property(e => e.SendSn)
  1799. .HasColumnType("varchar(32)")
  1800. .HasCharSet("utf8")
  1801. .HasCollation("utf8_general_ci");
  1802. entity.Property(e => e.SendStatus).HasColumnType("int(11)");
  1803. entity.Property(e => e.SeoDescription)
  1804. .HasColumnType("varchar(500)")
  1805. .HasCharSet("utf8")
  1806. .HasCollation("utf8_general_ci");
  1807. entity.Property(e => e.SeoKeyword)
  1808. .HasColumnType("varchar(200)")
  1809. .HasCharSet("utf8")
  1810. .HasCollation("utf8_general_ci");
  1811. entity.Property(e => e.SeoTitle)
  1812. .HasColumnType("varchar(100)")
  1813. .HasCharSet("utf8")
  1814. .HasCollation("utf8_general_ci");
  1815. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1816. entity.Property(e => e.Status).HasColumnType("int(11)");
  1817. entity.Property(e => e.StoreAddress)
  1818. .HasColumnType("varchar(50)")
  1819. .HasCharSet("utf8")
  1820. .HasCollation("utf8_general_ci");
  1821. entity.Property(e => e.StoreAreas)
  1822. .HasColumnType("varchar(30)")
  1823. .HasCharSet("utf8")
  1824. .HasCollation("utf8_general_ci");
  1825. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  1826. entity.Property(e => e.StoreManager)
  1827. .HasColumnType("varchar(32)")
  1828. .HasCharSet("utf8")
  1829. .HasCollation("utf8_general_ci");
  1830. entity.Property(e => e.StoreManagerMobile)
  1831. .HasColumnType("varchar(11)")
  1832. .HasCharSet("utf8")
  1833. .HasCollation("utf8_general_ci");
  1834. entity.Property(e => e.StoreName)
  1835. .HasColumnType("varchar(32)")
  1836. .HasCharSet("utf8")
  1837. .HasCollation("utf8_general_ci");
  1838. entity.Property(e => e.StoreType).HasColumnType("int(11)");
  1839. entity.Property(e => e.StoreUserId).HasColumnType("int(11)");
  1840. entity.Property(e => e.SwapActProName)
  1841. .HasColumnType("varchar(32)")
  1842. .HasCharSet("utf8")
  1843. .HasCollation("utf8_general_ci");
  1844. entity.Property(e => e.SwapActProType).HasColumnType("int(11)");
  1845. entity.Property(e => e.SwapSnExpand)
  1846. .HasColumnType("mediumtext")
  1847. .HasCharSet("utf8")
  1848. .HasCollation("utf8_general_ci");
  1849. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  1850. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1851. entity.Property(e => e.UpdateMan)
  1852. .HasColumnType("varchar(50)")
  1853. .HasCharSet("utf8")
  1854. .HasCollation("utf8_general_ci");
  1855. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1856. entity.Property(e => e.Version).HasColumnType("int(11)");
  1857. });
  1858. modelBuilder.Entity<MachineApplyDetail>(entity =>
  1859. {
  1860. entity.Property(e => e.Id).HasColumnType("int(11)");
  1861. entity.Property(e => e.ApplyId).HasColumnType("int(11)");
  1862. entity.Property(e => e.ApplyNo)
  1863. .HasColumnType("varchar(32)")
  1864. .HasCharSet("utf8")
  1865. .HasCollation("utf8_general_ci");
  1866. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1867. entity.Property(e => e.CreateMan)
  1868. .HasColumnType("varchar(50)")
  1869. .HasCharSet("utf8")
  1870. .HasCollation("utf8_general_ci");
  1871. entity.Property(e => e.DeviceDesc)
  1872. .HasColumnType("varchar(32)")
  1873. .HasCharSet("utf8")
  1874. .HasCollation("utf8_general_ci");
  1875. entity.Property(e => e.DeviceModel)
  1876. .HasColumnType("varchar(32)")
  1877. .HasCharSet("utf8")
  1878. .HasCollation("utf8_general_ci");
  1879. entity.Property(e => e.DeviceSnNo)
  1880. .HasColumnType("varchar(32)")
  1881. .HasCharSet("utf8")
  1882. .HasCollation("utf8_general_ci");
  1883. entity.Property(e => e.DeviceStatus).HasColumnType("int(11)");
  1884. entity.Property(e => e.DeviceVendor)
  1885. .HasColumnType("varchar(32)")
  1886. .HasCharSet("utf8")
  1887. .HasCollation("utf8_general_ci");
  1888. entity.Property(e => e.ProductName)
  1889. .HasColumnType("varchar(32)")
  1890. .HasCharSet("utf8")
  1891. .HasCollation("utf8_general_ci");
  1892. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  1893. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1894. entity.Property(e => e.Remark)
  1895. .HasColumnType("varchar(64)")
  1896. .HasCharSet("utf8")
  1897. .HasCollation("utf8_general_ci");
  1898. entity.Property(e => e.SeoDescription)
  1899. .HasColumnType("varchar(500)")
  1900. .HasCharSet("utf8")
  1901. .HasCollation("utf8_general_ci");
  1902. entity.Property(e => e.SeoKeyword)
  1903. .HasColumnType("varchar(200)")
  1904. .HasCharSet("utf8")
  1905. .HasCollation("utf8_general_ci");
  1906. entity.Property(e => e.SeoTitle)
  1907. .HasColumnType("varchar(100)")
  1908. .HasCharSet("utf8")
  1909. .HasCollation("utf8_general_ci");
  1910. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1911. entity.Property(e => e.SourceSnNo)
  1912. .HasColumnType("varchar(32)")
  1913. .HasCharSet("utf8")
  1914. .HasCollation("utf8_general_ci");
  1915. entity.Property(e => e.SourceSnType).HasColumnType("int(11)");
  1916. entity.Property(e => e.Status).HasColumnType("int(11)");
  1917. entity.Property(e => e.UpSrcProName)
  1918. .HasColumnType("varchar(32)")
  1919. .HasCharSet("utf8")
  1920. .HasCollation("utf8_general_ci");
  1921. entity.Property(e => e.UpSrcProType).HasColumnType("int(11)");
  1922. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1923. entity.Property(e => e.UpdateMan)
  1924. .HasColumnType("varchar(50)")
  1925. .HasCharSet("utf8")
  1926. .HasCollation("utf8_general_ci");
  1927. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1928. entity.Property(e => e.Version).HasColumnType("int(11)");
  1929. });
  1930. modelBuilder.Entity<MachineChange>(entity =>
  1931. {
  1932. entity.Property(e => e.Id).HasColumnType("int(11)");
  1933. entity.Property(e => e.AuditBy)
  1934. .HasColumnType("varchar(32)")
  1935. .HasCharSet("utf8")
  1936. .HasCollation("utf8_general_ci");
  1937. entity.Property(e => e.AuditRemark)
  1938. .HasColumnType("varchar(128)")
  1939. .HasCharSet("utf8")
  1940. .HasCollation("utf8_general_ci");
  1941. entity.Property(e => e.AuditResult).HasColumnType("int(11)");
  1942. entity.Property(e => e.AuditTime).HasColumnType("datetime");
  1943. entity.Property(e => e.BackProductName)
  1944. .HasColumnType("varchar(32)")
  1945. .HasCharSet("utf8")
  1946. .HasCollation("utf8_general_ci");
  1947. entity.Property(e => e.BackProductType).HasColumnType("int(11)");
  1948. entity.Property(e => e.BackStoreId).HasColumnType("int(11)");
  1949. entity.Property(e => e.BackStoreName)
  1950. .HasColumnType("varchar(32)")
  1951. .HasCharSet("utf8")
  1952. .HasCollation("utf8_general_ci");
  1953. entity.Property(e => e.BackStoreUserId).HasColumnType("int(11)");
  1954. entity.Property(e => e.ChangeDeviceName)
  1955. .HasColumnType("varchar(32)")
  1956. .HasCharSet("utf8")
  1957. .HasCollation("utf8_general_ci");
  1958. entity.Property(e => e.ChangeDeviceNum).HasColumnType("int(11)");
  1959. entity.Property(e => e.ChangeNo)
  1960. .HasColumnType("varchar(32)")
  1961. .HasCharSet("utf8")
  1962. .HasCollation("utf8_general_ci");
  1963. entity.Property(e => e.ChangeSnExpand)
  1964. .HasColumnType("mediumtext")
  1965. .HasCharSet("utf8")
  1966. .HasCollation("utf8_general_ci");
  1967. entity.Property(e => e.ChangeTime).HasColumnType("datetime");
  1968. entity.Property(e => e.CompleteTime).HasColumnType("datetime");
  1969. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1970. entity.Property(e => e.CreateMan)
  1971. .HasColumnType("varchar(50)")
  1972. .HasCharSet("utf8")
  1973. .HasCollation("utf8_general_ci");
  1974. entity.Property(e => e.OrderExpand)
  1975. .HasColumnType("mediumtext")
  1976. .HasCharSet("utf8")
  1977. .HasCollation("utf8_general_ci");
  1978. entity.Property(e => e.OutProductName)
  1979. .HasColumnType("varchar(32)")
  1980. .HasCharSet("utf8")
  1981. .HasCollation("utf8_general_ci");
  1982. entity.Property(e => e.OutProductType).HasColumnType("int(11)");
  1983. entity.Property(e => e.OutStoreAddress)
  1984. .HasColumnType("varchar(128)")
  1985. .HasCharSet("utf8")
  1986. .HasCollation("utf8_general_ci");
  1987. entity.Property(e => e.OutStoreAreas)
  1988. .HasColumnType("varchar(30)")
  1989. .HasCharSet("utf8")
  1990. .HasCollation("utf8_general_ci");
  1991. entity.Property(e => e.OutStoreId).HasColumnType("int(11)");
  1992. entity.Property(e => e.OutStoreManager)
  1993. .HasColumnType("varchar(32)")
  1994. .HasCharSet("utf8")
  1995. .HasCollation("utf8_general_ci");
  1996. entity.Property(e => e.OutStoreManagerMobile)
  1997. .HasColumnType("varchar(11)")
  1998. .HasCharSet("utf8")
  1999. .HasCollation("utf8_general_ci");
  2000. entity.Property(e => e.OutStoreName)
  2001. .HasColumnType("varchar(32)")
  2002. .HasCharSet("utf8")
  2003. .HasCollation("utf8_general_ci");
  2004. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2005. entity.Property(e => e.Remark)
  2006. .HasColumnType("varchar(64)")
  2007. .HasCharSet("utf8")
  2008. .HasCollation("utf8_general_ci");
  2009. entity.Property(e => e.SeoDescription)
  2010. .HasColumnType("varchar(500)")
  2011. .HasCharSet("utf8")
  2012. .HasCollation("utf8_general_ci");
  2013. entity.Property(e => e.SeoKeyword)
  2014. .HasColumnType("varchar(200)")
  2015. .HasCharSet("utf8")
  2016. .HasCollation("utf8_general_ci");
  2017. entity.Property(e => e.SeoTitle)
  2018. .HasColumnType("varchar(100)")
  2019. .HasCharSet("utf8")
  2020. .HasCollation("utf8_general_ci");
  2021. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2022. entity.Property(e => e.Status).HasColumnType("int(11)");
  2023. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2024. entity.Property(e => e.UpdateMan)
  2025. .HasColumnType("varchar(50)")
  2026. .HasCharSet("utf8")
  2027. .HasCollation("utf8_general_ci");
  2028. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2029. entity.Property(e => e.Version).HasColumnType("int(11)");
  2030. });
  2031. modelBuilder.Entity<MachineChangeDetail>(entity =>
  2032. {
  2033. entity.Property(e => e.Id).HasColumnType("int(11)");
  2034. entity.Property(e => e.BackDeviceStatus).HasColumnType("int(11)");
  2035. entity.Property(e => e.BackProductName)
  2036. .HasColumnType("varchar(32)")
  2037. .HasCharSet("utf8")
  2038. .HasCollation("utf8_general_ci");
  2039. entity.Property(e => e.BackProductType).HasColumnType("int(11)");
  2040. entity.Property(e => e.BackSnNo)
  2041. .HasColumnType("varchar(32)")
  2042. .HasCharSet("utf8")
  2043. .HasCollation("utf8_general_ci");
  2044. entity.Property(e => e.BackSnType).HasColumnType("int(11)");
  2045. entity.Property(e => e.ChangeId).HasColumnType("int(11)");
  2046. entity.Property(e => e.ChangeNo)
  2047. .HasColumnType("varchar(32)")
  2048. .HasCharSet("utf8")
  2049. .HasCollation("utf8_general_ci");
  2050. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2051. entity.Property(e => e.CreateMan)
  2052. .HasColumnType("varchar(50)")
  2053. .HasCharSet("utf8")
  2054. .HasCollation("utf8_general_ci");
  2055. entity.Property(e => e.OutProductName)
  2056. .HasColumnType("varchar(32)")
  2057. .HasCharSet("utf8")
  2058. .HasCollation("utf8_general_ci");
  2059. entity.Property(e => e.OutProductType).HasColumnType("int(11)");
  2060. entity.Property(e => e.OutSnNo)
  2061. .HasColumnType("varchar(32)")
  2062. .HasCharSet("utf8")
  2063. .HasCollation("utf8_general_ci");
  2064. entity.Property(e => e.OutSnType).HasColumnType("int(11)");
  2065. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2066. entity.Property(e => e.Remark)
  2067. .HasColumnType("varchar(64)")
  2068. .HasCharSet("utf8")
  2069. .HasCollation("utf8_general_ci");
  2070. entity.Property(e => e.SeoDescription)
  2071. .HasColumnType("varchar(500)")
  2072. .HasCharSet("utf8")
  2073. .HasCollation("utf8_general_ci");
  2074. entity.Property(e => e.SeoKeyword)
  2075. .HasColumnType("varchar(200)")
  2076. .HasCharSet("utf8")
  2077. .HasCollation("utf8_general_ci");
  2078. entity.Property(e => e.SeoTitle)
  2079. .HasColumnType("varchar(100)")
  2080. .HasCharSet("utf8")
  2081. .HasCollation("utf8_general_ci");
  2082. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2083. entity.Property(e => e.Status).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<MachineForMerNo>(entity =>
  2093. {
  2094. entity.HasKey(e => e.MerNo)
  2095. .HasName("PRIMARY");
  2096. entity.Property(e => e.MerNo)
  2097. .HasColumnType("varchar(50)")
  2098. .HasCharSet("utf8")
  2099. .HasCollation("utf8_general_ci");
  2100. entity.Property(e => e.SnId).HasColumnType("int(11)");
  2101. });
  2102. modelBuilder.Entity<MachineForQrCode>(entity =>
  2103. {
  2104. entity.HasKey(e => e.DataId)
  2105. .HasName("PRIMARY");
  2106. entity.Property(e => e.DataId)
  2107. .HasColumnType("varchar(20)")
  2108. .HasCharSet("utf8")
  2109. .HasCollation("utf8_general_ci");
  2110. entity.Property(e => e.BindDate).HasColumnType("datetime");
  2111. entity.Property(e => e.MachineSnNo)
  2112. .HasColumnType("varchar(50)")
  2113. .HasCharSet("utf8")
  2114. .HasCollation("utf8_general_ci");
  2115. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2116. entity.Property(e => e.SnNo)
  2117. .HasColumnType("varchar(50)")
  2118. .HasCharSet("utf8")
  2119. .HasCollation("utf8_general_ci");
  2120. });
  2121. modelBuilder.Entity<MachineForSnNo>(entity =>
  2122. {
  2123. entity.HasKey(e => e.SnNo)
  2124. .HasName("PRIMARY");
  2125. entity.Property(e => e.SnNo)
  2126. .HasColumnType("varchar(50)")
  2127. .HasCharSet("utf8")
  2128. .HasCollation("utf8_general_ci");
  2129. entity.Property(e => e.SnId).HasColumnType("int(11)");
  2130. });
  2131. modelBuilder.Entity<MachineRenew>(entity =>
  2132. {
  2133. entity.Property(e => e.Id).HasColumnType("int(11)");
  2134. entity.Property(e => e.ApplyDate)
  2135. .HasColumnType("varchar(8)")
  2136. .HasCharSet("utf8")
  2137. .HasCollation("utf8_general_ci");
  2138. entity.Property(e => e.ApplyNo)
  2139. .HasColumnType("varchar(32)")
  2140. .HasCharSet("utf8")
  2141. .HasCollation("utf8_general_ci");
  2142. entity.Property(e => e.AuditDate).HasColumnType("datetime");
  2143. entity.Property(e => e.AuditDesc)
  2144. .HasColumnType("varchar(256)")
  2145. .HasCharSet("utf8")
  2146. .HasCollation("utf8_general_ci");
  2147. entity.Property(e => e.AuditStatus)
  2148. .HasColumnName("audit_status")
  2149. .HasColumnType("int(11)");
  2150. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2151. entity.Property(e => e.CreateMan)
  2152. .HasColumnType("varchar(50)")
  2153. .HasCharSet("utf8")
  2154. .HasCollation("utf8_general_ci");
  2155. entity.Property(e => e.DamagedBrandId).HasColumnType("int(11)");
  2156. entity.Property(e => e.DamagedSnNo)
  2157. .HasColumnType("varchar(32)")
  2158. .HasCharSet("utf8")
  2159. .HasCollation("utf8_general_ci");
  2160. entity.Property(e => e.DamagedSnType).HasColumnType("int(11)");
  2161. entity.Property(e => e.DeliverBrandId).HasColumnType("int(11)");
  2162. entity.Property(e => e.DeliverSnNo)
  2163. .HasColumnType("varchar(32)")
  2164. .HasCharSet("utf8")
  2165. .HasCollation("utf8_general_ci");
  2166. entity.Property(e => e.DemandDesc)
  2167. .HasColumnType("varchar(256)")
  2168. .HasCharSet("utf8")
  2169. .HasCollation("utf8_general_ci");
  2170. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2171. entity.Property(e => e.ReplaceBrandId).HasColumnType("int(11)");
  2172. entity.Property(e => e.ReplaceSnNo)
  2173. .HasColumnType("varchar(32)")
  2174. .HasCharSet("utf8")
  2175. .HasCollation("utf8_general_ci");
  2176. entity.Property(e => e.ReplaceSnType).HasColumnType("int(11)");
  2177. entity.Property(e => e.SeoDescription)
  2178. .HasColumnType("varchar(500)")
  2179. .HasCharSet("utf8")
  2180. .HasCollation("utf8_general_ci");
  2181. entity.Property(e => e.SeoKeyword)
  2182. .HasColumnType("varchar(200)")
  2183. .HasCharSet("utf8")
  2184. .HasCollation("utf8_general_ci");
  2185. entity.Property(e => e.SeoTitle)
  2186. .HasColumnType("varchar(100)")
  2187. .HasCharSet("utf8")
  2188. .HasCollation("utf8_general_ci");
  2189. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2190. entity.Property(e => e.Status).HasColumnType("int(11)");
  2191. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2192. entity.Property(e => e.UpdateMan)
  2193. .HasColumnType("varchar(50)")
  2194. .HasCharSet("utf8")
  2195. .HasCollation("utf8_general_ci");
  2196. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2197. entity.Property(e => e.Version).HasColumnType("int(11)");
  2198. });
  2199. modelBuilder.Entity<MachineReturn>(entity =>
  2200. {
  2201. entity.Property(e => e.Id).HasColumnType("int(11)");
  2202. entity.Property(e => e.ApplyNo)
  2203. .HasColumnType("varchar(32)")
  2204. .HasCharSet("utf8")
  2205. .HasCollation("utf8_general_ci");
  2206. entity.Property(e => e.AuditStatus).HasColumnType("int(11)");
  2207. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  2208. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2209. entity.Property(e => e.CreateMan)
  2210. .HasColumnType("varchar(50)")
  2211. .HasCharSet("utf8")
  2212. .HasCollation("utf8_general_ci");
  2213. entity.Property(e => e.DeviceDesc)
  2214. .HasColumnType("varchar(256)")
  2215. .HasCharSet("utf8")
  2216. .HasCollation("utf8_general_ci");
  2217. entity.Property(e => e.DeviceNum).HasColumnType("int(11)");
  2218. entity.Property(e => e.DeviceSnNos)
  2219. .HasColumnType("mediumtext")
  2220. .HasCharSet("utf8")
  2221. .HasCollation("utf8_general_ci");
  2222. entity.Property(e => e.Operator)
  2223. .HasColumnType("varchar(32)")
  2224. .HasCharSet("utf8")
  2225. .HasCollation("utf8_general_ci");
  2226. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2227. entity.Property(e => e.Remark)
  2228. .HasColumnType("varchar(64)")
  2229. .HasCharSet("utf8")
  2230. .HasCollation("utf8_general_ci");
  2231. entity.Property(e => e.SeoDescription)
  2232. .HasColumnType("varchar(500)")
  2233. .HasCharSet("utf8")
  2234. .HasCollation("utf8_general_ci");
  2235. entity.Property(e => e.SeoKeyword)
  2236. .HasColumnType("varchar(200)")
  2237. .HasCharSet("utf8")
  2238. .HasCollation("utf8_general_ci");
  2239. entity.Property(e => e.SeoTitle)
  2240. .HasColumnType("varchar(100)")
  2241. .HasCharSet("utf8")
  2242. .HasCollation("utf8_general_ci");
  2243. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2244. entity.Property(e => e.Status).HasColumnType("int(11)");
  2245. entity.Property(e => e.ToStoreId).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<MenuRight>(entity =>
  2255. {
  2256. entity.HasKey(e => e.MenuId)
  2257. .HasName("PRIMARY");
  2258. entity.Property(e => e.MenuId)
  2259. .HasColumnType("varchar(50)")
  2260. .HasCharSet("utf8")
  2261. .HasCollation("utf8_general_ci");
  2262. entity.Property(e => e.Name)
  2263. .HasColumnType("varchar(50)")
  2264. .HasCharSet("utf8")
  2265. .HasCollation("utf8_general_ci");
  2266. });
  2267. modelBuilder.Entity<MerchantAddInfo>(entity =>
  2268. {
  2269. entity.Property(e => e.Id).HasColumnType("int(11)");
  2270. entity.Property(e => e.AccountBank)
  2271. .HasColumnType("varchar(30)")
  2272. .HasCharSet("utf8")
  2273. .HasCollation("utf8_general_ci");
  2274. entity.Property(e => e.AccountName)
  2275. .HasColumnType("varchar(50)")
  2276. .HasCharSet("utf8")
  2277. .HasCollation("utf8_general_ci");
  2278. entity.Property(e => e.AccountNumber)
  2279. .HasColumnType("varchar(50)")
  2280. .HasCharSet("utf8")
  2281. .HasCollation("utf8_general_ci");
  2282. entity.Property(e => e.ActivitiesId)
  2283. .HasColumnType("varchar(32)")
  2284. .HasCharSet("utf8")
  2285. .HasCollation("utf8_general_ci");
  2286. entity.Property(e => e.ActivitiesRate)
  2287. .HasColumnType("varchar(20)")
  2288. .HasCharSet("utf8")
  2289. .HasCollation("utf8_general_ci");
  2290. entity.Property(e => e.AppAppid)
  2291. .HasColumnType("varchar(50)")
  2292. .HasCharSet("utf8")
  2293. .HasCollation("utf8_general_ci");
  2294. entity.Property(e => e.AppPics)
  2295. .HasColumnType("varchar(200)")
  2296. .HasCharSet("utf8")
  2297. .HasCollation("utf8_general_ci");
  2298. entity.Property(e => e.AppSubAppid)
  2299. .HasColumnType("varchar(50)")
  2300. .HasCharSet("utf8")
  2301. .HasCollation("utf8_general_ci");
  2302. entity.Property(e => e.ApplymentId)
  2303. .HasColumnType("varchar(50)")
  2304. .HasCharSet("utf8")
  2305. .HasCollation("utf8_general_ci");
  2306. entity.Property(e => e.ApplymentState)
  2307. .HasColumnType("varchar(50)")
  2308. .HasCharSet("utf8")
  2309. .HasCollation("utf8_general_ci");
  2310. entity.Property(e => e.AuditDetail)
  2311. .HasColumnType("mediumtext")
  2312. .HasCharSet("utf8")
  2313. .HasCollation("utf8_general_ci");
  2314. entity.Property(e => e.BankAccountType)
  2315. .HasColumnType("varchar(50)")
  2316. .HasCharSet("utf8")
  2317. .HasCollation("utf8_general_ci");
  2318. entity.Property(e => e.BankAddressCode)
  2319. .HasColumnType("varchar(20)")
  2320. .HasCharSet("utf8")
  2321. .HasCollation("utf8_general_ci");
  2322. entity.Property(e => e.BankBranchId)
  2323. .HasColumnType("varchar(20)")
  2324. .HasCharSet("utf8")
  2325. .HasCollation("utf8_general_ci");
  2326. entity.Property(e => e.BankName)
  2327. .HasColumnType("varchar(50)")
  2328. .HasCharSet("utf8")
  2329. .HasCollation("utf8_general_ci");
  2330. entity.Property(e => e.BizAddressCode)
  2331. .HasColumnType("varchar(30)")
  2332. .HasCharSet("utf8")
  2333. .HasCollation("utf8_general_ci");
  2334. entity.Property(e => e.BizStoreAddress)
  2335. .HasColumnType("varchar(50)")
  2336. .HasCharSet("utf8")
  2337. .HasCollation("utf8_general_ci");
  2338. entity.Property(e => e.BizStoreName)
  2339. .HasColumnType("varchar(50)")
  2340. .HasCharSet("utf8")
  2341. .HasCollation("utf8_general_ci");
  2342. entity.Property(e => e.BizSubAppid)
  2343. .HasColumnType("varchar(32)")
  2344. .HasCharSet("utf8")
  2345. .HasCollation("utf8_general_ci");
  2346. entity.Property(e => e.BusinessCode)
  2347. .HasColumnType("varchar(50)")
  2348. .HasCharSet("utf8")
  2349. .HasCollation("utf8_general_ci");
  2350. entity.Property(e => e.CardPeriodBegin).HasColumnType("datetime");
  2351. entity.Property(e => e.CardPeriodEnd).HasColumnType("datetime");
  2352. entity.Property(e => e.CertCopy)
  2353. .HasColumnType("varchar(200)")
  2354. .HasCharSet("utf8")
  2355. .HasCollation("utf8_general_ci");
  2356. entity.Property(e => e.CertLegalPerson)
  2357. .HasColumnType("varchar(20)")
  2358. .HasCharSet("utf8")
  2359. .HasCollation("utf8_general_ci");
  2360. entity.Property(e => e.CertMerchantName)
  2361. .HasColumnType("varchar(30)")
  2362. .HasCharSet("utf8")
  2363. .HasCollation("utf8_general_ci");
  2364. entity.Property(e => e.CertNumber)
  2365. .HasColumnType("varchar(32)")
  2366. .HasCharSet("utf8")
  2367. .HasCollation("utf8_general_ci");
  2368. entity.Property(e => e.CertType)
  2369. .HasColumnType("varchar(30)")
  2370. .HasCharSet("utf8")
  2371. .HasCollation("utf8_general_ci");
  2372. entity.Property(e => e.CertificateLetterCopy)
  2373. .HasColumnType("varchar(200)")
  2374. .HasCharSet("utf8")
  2375. .HasCollation("utf8_general_ci");
  2376. entity.Property(e => e.CompanyAddress)
  2377. .HasColumnType("varchar(50)")
  2378. .HasCharSet("utf8")
  2379. .HasCollation("utf8_general_ci");
  2380. entity.Property(e => e.ContactEmail)
  2381. .HasColumnType("varchar(50)")
  2382. .HasCharSet("utf8")
  2383. .HasCollation("utf8_general_ci");
  2384. entity.Property(e => e.ContactIdNumber)
  2385. .HasColumnType("varchar(18)")
  2386. .HasCharSet("utf8")
  2387. .HasCollation("utf8_general_ci");
  2388. entity.Property(e => e.ContactName)
  2389. .HasColumnType("varchar(30)")
  2390. .HasCharSet("utf8")
  2391. .HasCollation("utf8_general_ci");
  2392. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2393. entity.Property(e => e.CreateMan)
  2394. .HasColumnType("varchar(50)")
  2395. .HasCharSet("utf8")
  2396. .HasCollation("utf8_general_ci");
  2397. entity.Property(e => e.IdCardCopy)
  2398. .HasColumnType("varchar(200)")
  2399. .HasCharSet("utf8")
  2400. .HasCollation("utf8_general_ci");
  2401. entity.Property(e => e.IdCardName)
  2402. .HasColumnType("varchar(20)")
  2403. .HasCharSet("utf8")
  2404. .HasCollation("utf8_general_ci");
  2405. entity.Property(e => e.IdCardNational)
  2406. .HasColumnType("varchar(200)")
  2407. .HasCharSet("utf8")
  2408. .HasCollation("utf8_general_ci");
  2409. entity.Property(e => e.IdCardNumber)
  2410. .HasColumnType("varchar(18)")
  2411. .HasCharSet("utf8")
  2412. .HasCollation("utf8_general_ci");
  2413. entity.Property(e => e.IdDocType)
  2414. .HasColumnType("varchar(50)")
  2415. .HasCharSet("utf8")
  2416. .HasCollation("utf8_general_ci");
  2417. entity.Property(e => e.IndoorPic)
  2418. .HasColumnType("varchar(200)")
  2419. .HasCharSet("utf8")
  2420. .HasCollation("utf8_general_ci");
  2421. entity.Property(e => e.LegalPerson)
  2422. .HasColumnType("varchar(20)")
  2423. .HasCharSet("utf8")
  2424. .HasCollation("utf8_general_ci");
  2425. entity.Property(e => e.LicenseCopy)
  2426. .HasColumnType("varchar(200)")
  2427. .HasCharSet("utf8")
  2428. .HasCollation("utf8_general_ci");
  2429. entity.Property(e => e.LicenseNumber)
  2430. .HasColumnType("varchar(32)")
  2431. .HasCharSet("utf8")
  2432. .HasCollation("utf8_general_ci");
  2433. entity.Property(e => e.MerchantShortname)
  2434. .HasColumnType("varchar(50)")
  2435. .HasCharSet("utf8")
  2436. .HasCollation("utf8_general_ci");
  2437. entity.Property(e => e.MiniProgramAppid)
  2438. .HasColumnType("varchar(50)")
  2439. .HasCharSet("utf8")
  2440. .HasCollation("utf8_general_ci");
  2441. entity.Property(e => e.MiniProgramPics)
  2442. .HasColumnType("varchar(200)")
  2443. .HasCharSet("utf8")
  2444. .HasCollation("utf8_general_ci");
  2445. entity.Property(e => e.MiniProgramSubAppid)
  2446. .HasColumnType("varchar(50)")
  2447. .HasCharSet("utf8")
  2448. .HasCollation("utf8_general_ci");
  2449. entity.Property(e => e.MobilePhone)
  2450. .HasColumnType("varchar(11)")
  2451. .HasCharSet("utf8")
  2452. .HasCollation("utf8_general_ci");
  2453. entity.Property(e => e.MpAppid)
  2454. .HasColumnType("varchar(50)")
  2455. .HasCharSet("utf8")
  2456. .HasCollation("utf8_general_ci");
  2457. entity.Property(e => e.MpPics)
  2458. .HasColumnType("varchar(200)")
  2459. .HasCharSet("utf8")
  2460. .HasCollation("utf8_general_ci");
  2461. entity.Property(e => e.MpSubAppid)
  2462. .HasColumnType("varchar(50)")
  2463. .HasCharSet("utf8")
  2464. .HasCollation("utf8_general_ci");
  2465. entity.Property(e => e.OpenId)
  2466. .HasColumnType("varchar(50)")
  2467. .HasCharSet("utf8")
  2468. .HasCollation("utf8_general_ci");
  2469. entity.Property(e => e.OrgPeriodBegin).HasColumnType("datetime");
  2470. entity.Property(e => e.OrgPeriodEnd).HasColumnType("datetime");
  2471. entity.Property(e => e.OrganizationCode)
  2472. .HasColumnType("varchar(32)")
  2473. .HasCharSet("utf8")
  2474. .HasCollation("utf8_general_ci");
  2475. entity.Property(e => e.OrganizationCopy)
  2476. .HasColumnType("varchar(200)")
  2477. .HasCharSet("utf8")
  2478. .HasCollation("utf8_general_ci");
  2479. entity.Property(e => e.Owner)
  2480. .HasColumnType("bit(1)")
  2481. .HasDefaultValueSql("b'0'");
  2482. entity.Property(e => e.PeriodBegin).HasColumnType("datetime");
  2483. entity.Property(e => e.PeriodEnd).HasColumnType("datetime");
  2484. entity.Property(e => e.QualificationType)
  2485. .HasColumnType("varchar(30)")
  2486. .HasCharSet("utf8")
  2487. .HasCollation("utf8_general_ci");
  2488. entity.Property(e => e.Qualifications)
  2489. .HasColumnType("varchar(200)")
  2490. .HasCharSet("utf8")
  2491. .HasCollation("utf8_general_ci");
  2492. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2493. entity.Property(e => e.SalesScenesType)
  2494. .HasColumnType("varchar(50)")
  2495. .HasCharSet("utf8")
  2496. .HasCollation("utf8_general_ci");
  2497. entity.Property(e => e.SeoDescription)
  2498. .HasColumnType("varchar(500)")
  2499. .HasCharSet("utf8")
  2500. .HasCollation("utf8_general_ci");
  2501. entity.Property(e => e.SeoKeyword)
  2502. .HasColumnType("varchar(200)")
  2503. .HasCharSet("utf8")
  2504. .HasCollation("utf8_general_ci");
  2505. entity.Property(e => e.SeoTitle)
  2506. .HasColumnType("varchar(100)")
  2507. .HasCharSet("utf8")
  2508. .HasCollation("utf8_general_ci");
  2509. entity.Property(e => e.ServicePhone)
  2510. .HasColumnType("varchar(30)")
  2511. .HasCharSet("utf8")
  2512. .HasCollation("utf8_general_ci");
  2513. entity.Property(e => e.SettlementId)
  2514. .HasColumnType("varchar(3)")
  2515. .HasCharSet("utf8")
  2516. .HasCollation("utf8_general_ci");
  2517. entity.Property(e => e.SignUrl)
  2518. .HasColumnType("varchar(1000)")
  2519. .HasCharSet("utf8")
  2520. .HasCollation("utf8_general_ci");
  2521. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2522. entity.Property(e => e.Status).HasColumnType("int(11)");
  2523. entity.Property(e => e.StoreEntrancePic)
  2524. .HasColumnType("varchar(200)")
  2525. .HasCharSet("utf8")
  2526. .HasCollation("utf8_general_ci");
  2527. entity.Property(e => e.SubCorpId)
  2528. .HasColumnType("varchar(50)")
  2529. .HasCharSet("utf8")
  2530. .HasCollation("utf8_general_ci");
  2531. entity.Property(e => e.SubMchid)
  2532. .HasColumnType("varchar(32)")
  2533. .HasCharSet("utf8")
  2534. .HasCollation("utf8_general_ci");
  2535. entity.Property(e => e.SubjectType)
  2536. .HasColumnType("varchar(50)")
  2537. .HasCharSet("utf8")
  2538. .HasCollation("utf8_general_ci");
  2539. entity.Property(e => e.UboInfoIdCardCopy)
  2540. .HasColumnType("varchar(200)")
  2541. .HasCharSet("utf8")
  2542. .HasCollation("utf8_general_ci");
  2543. entity.Property(e => e.UboInfoIdCardNational)
  2544. .HasColumnType("varchar(200)")
  2545. .HasCharSet("utf8")
  2546. .HasCollation("utf8_general_ci");
  2547. entity.Property(e => e.UboInfoIdDocCopy)
  2548. .HasColumnType("varchar(200)")
  2549. .HasCharSet("utf8")
  2550. .HasCollation("utf8_general_ci");
  2551. entity.Property(e => e.UboInfoIdNumber)
  2552. .HasColumnType("varchar(30)")
  2553. .HasCharSet("utf8")
  2554. .HasCollation("utf8_general_ci");
  2555. entity.Property(e => e.UboInfoIdPeriodBegin).HasColumnType("datetime");
  2556. entity.Property(e => e.UboInfoIdPeriodEnd).HasColumnType("datetime");
  2557. entity.Property(e => e.UboInfoIdType)
  2558. .HasColumnType("varchar(50)")
  2559. .HasCharSet("utf8")
  2560. .HasCollation("utf8_general_ci");
  2561. entity.Property(e => e.UboInfoName)
  2562. .HasColumnType("varchar(20)")
  2563. .HasCharSet("utf8")
  2564. .HasCollation("utf8_general_ci");
  2565. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2566. entity.Property(e => e.UpdateMan)
  2567. .HasColumnType("varchar(50)")
  2568. .HasCharSet("utf8")
  2569. .HasCollation("utf8_general_ci");
  2570. entity.Property(e => e.Version).HasColumnType("int(11)");
  2571. entity.Property(e => e.WebAppId)
  2572. .HasColumnType("varchar(50)")
  2573. .HasCharSet("utf8")
  2574. .HasCollation("utf8_general_ci");
  2575. entity.Property(e => e.WebAuthorisation)
  2576. .HasColumnType("varchar(200)")
  2577. .HasCharSet("utf8")
  2578. .HasCollation("utf8_general_ci");
  2579. entity.Property(e => e.WebDomain)
  2580. .HasColumnType("varchar(50)")
  2581. .HasCharSet("utf8")
  2582. .HasCollation("utf8_general_ci");
  2583. entity.Property(e => e.WeworkPics)
  2584. .HasColumnType("varchar(200)")
  2585. .HasCharSet("utf8")
  2586. .HasCollation("utf8_general_ci");
  2587. });
  2588. modelBuilder.Entity<MerchantAdmin>(entity =>
  2589. {
  2590. entity.Property(e => e.Id).HasColumnType("int(11)");
  2591. entity.Property(e => e.AdminName)
  2592. .HasColumnType("varchar(50)")
  2593. .HasCharSet("utf8")
  2594. .HasCollation("utf8_general_ci");
  2595. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2596. entity.Property(e => e.CreateMan)
  2597. .HasColumnType("varchar(50)")
  2598. .HasCharSet("utf8")
  2599. .HasCollation("utf8_general_ci");
  2600. entity.Property(e => e.Email)
  2601. .HasColumnType("varchar(50)")
  2602. .HasCharSet("utf8")
  2603. .HasCollation("utf8_general_ci");
  2604. entity.Property(e => e.LastLoginDate).HasColumnType("datetime");
  2605. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2606. entity.Property(e => e.Mobile)
  2607. .HasColumnType("varchar(11)")
  2608. .HasCharSet("utf8")
  2609. .HasCollation("utf8_general_ci");
  2610. entity.Property(e => e.Note)
  2611. .HasColumnType("mediumtext")
  2612. .HasCharSet("utf8")
  2613. .HasCollation("utf8_general_ci");
  2614. entity.Property(e => e.Password)
  2615. .HasColumnType("varchar(32)")
  2616. .HasCharSet("utf8")
  2617. .HasCollation("utf8_general_ci");
  2618. entity.Property(e => e.Qq)
  2619. .HasColumnName("QQ")
  2620. .HasColumnType("varchar(20)")
  2621. .HasCharSet("utf8")
  2622. .HasCollation("utf8_general_ci");
  2623. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2624. entity.Property(e => e.RealName)
  2625. .HasColumnType("varchar(50)")
  2626. .HasCharSet("utf8")
  2627. .HasCollation("utf8_general_ci");
  2628. entity.Property(e => e.RightInfo)
  2629. .HasColumnType("varchar(500)")
  2630. .HasCharSet("utf8")
  2631. .HasCollation("utf8_general_ci");
  2632. entity.Property(e => e.SeoDescription)
  2633. .HasColumnType("varchar(500)")
  2634. .HasCharSet("utf8")
  2635. .HasCollation("utf8_general_ci");
  2636. entity.Property(e => e.SeoKeyword)
  2637. .HasColumnType("varchar(200)")
  2638. .HasCharSet("utf8")
  2639. .HasCollation("utf8_general_ci");
  2640. entity.Property(e => e.SeoTitle)
  2641. .HasColumnType("varchar(100)")
  2642. .HasCharSet("utf8")
  2643. .HasCollation("utf8_general_ci");
  2644. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2645. entity.Property(e => e.Status).HasColumnType("int(11)");
  2646. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2647. entity.Property(e => e.UpdateMan)
  2648. .HasColumnType("varchar(50)")
  2649. .HasCharSet("utf8")
  2650. .HasCollation("utf8_general_ci");
  2651. entity.Property(e => e.Version).HasColumnType("int(11)");
  2652. });
  2653. modelBuilder.Entity<MerchantAuth>(entity =>
  2654. {
  2655. entity.Property(e => e.Id).HasColumnType("int(11)");
  2656. entity.Property(e => e.AuthType).HasColumnType("int(11)");
  2657. entity.Property(e => e.BankCardAccount)
  2658. .HasColumnType("varchar(32)")
  2659. .HasCharSet("utf8")
  2660. .HasCollation("utf8_general_ci");
  2661. entity.Property(e => e.BankMobile)
  2662. .HasColumnType("varchar(11)")
  2663. .HasCharSet("utf8")
  2664. .HasCollation("utf8_general_ci");
  2665. entity.Property(e => e.BankName)
  2666. .HasColumnType("varchar(64)")
  2667. .HasCharSet("utf8")
  2668. .HasCollation("utf8_general_ci");
  2669. entity.Property(e => e.ChannelCode)
  2670. .HasColumnType("varchar(16)")
  2671. .HasCharSet("utf8")
  2672. .HasCollation("utf8_general_ci");
  2673. entity.Property(e => e.ChannelName)
  2674. .HasColumnType("varchar(32)")
  2675. .HasCharSet("utf8")
  2676. .HasCollation("utf8_general_ci");
  2677. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2678. entity.Property(e => e.CreateMan)
  2679. .HasColumnType("varchar(50)")
  2680. .HasCharSet("utf8")
  2681. .HasCollation("utf8_general_ci");
  2682. entity.Property(e => e.IdCardNo)
  2683. .HasColumnType("varchar(18)")
  2684. .HasCharSet("utf8")
  2685. .HasCollation("utf8_general_ci");
  2686. entity.Property(e => e.MerNo)
  2687. .HasColumnType("varchar(20)")
  2688. .HasCharSet("utf8")
  2689. .HasCollation("utf8_general_ci");
  2690. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2691. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2692. entity.Property(e => e.RealName)
  2693. .HasColumnType("varchar(16)")
  2694. .HasCharSet("utf8")
  2695. .HasCollation("utf8_general_ci");
  2696. entity.Property(e => e.ReqData)
  2697. .HasColumnType("varchar(2000)")
  2698. .HasCharSet("utf8")
  2699. .HasCollation("utf8_general_ci");
  2700. entity.Property(e => e.RespData)
  2701. .HasColumnType("varchar(2000)")
  2702. .HasCharSet("utf8")
  2703. .HasCollation("utf8_general_ci");
  2704. entity.Property(e => e.ReturnCode)
  2705. .HasColumnType("varchar(30)")
  2706. .HasCharSet("utf8")
  2707. .HasCollation("utf8_general_ci");
  2708. entity.Property(e => e.ReturnMsg)
  2709. .HasColumnType("varchar(512)")
  2710. .HasCharSet("utf8")
  2711. .HasCollation("utf8_general_ci");
  2712. entity.Property(e => e.SeoDescription)
  2713. .HasColumnType("varchar(500)")
  2714. .HasCharSet("utf8")
  2715. .HasCollation("utf8_general_ci");
  2716. entity.Property(e => e.SeoKeyword)
  2717. .HasColumnType("varchar(200)")
  2718. .HasCharSet("utf8")
  2719. .HasCollation("utf8_general_ci");
  2720. entity.Property(e => e.SeoTitle)
  2721. .HasColumnType("varchar(100)")
  2722. .HasCharSet("utf8")
  2723. .HasCollation("utf8_general_ci");
  2724. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2725. entity.Property(e => e.Status).HasColumnType("int(11)");
  2726. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2727. entity.Property(e => e.UpdateMan)
  2728. .HasColumnType("varchar(50)")
  2729. .HasCharSet("utf8")
  2730. .HasCollation("utf8_general_ci");
  2731. entity.Property(e => e.Version).HasColumnType("int(11)");
  2732. });
  2733. modelBuilder.Entity<MerchantClass>(entity =>
  2734. {
  2735. entity.Property(e => e.Id).HasColumnType("int(11)");
  2736. entity.Property(e => e.ColName)
  2737. .HasColumnType("varchar(50)")
  2738. .HasCharSet("utf8")
  2739. .HasCollation("utf8_general_ci");
  2740. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2741. entity.Property(e => e.CreateMan)
  2742. .HasColumnType("varchar(50)")
  2743. .HasCharSet("utf8")
  2744. .HasCollation("utf8_general_ci");
  2745. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2746. entity.Property(e => e.ParentId).HasColumnType("int(11)");
  2747. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2748. entity.Property(e => e.SeoDescription)
  2749. .HasColumnType("varchar(500)")
  2750. .HasCharSet("utf8")
  2751. .HasCollation("utf8_general_ci");
  2752. entity.Property(e => e.SeoKeyword)
  2753. .HasColumnType("varchar(200)")
  2754. .HasCharSet("utf8")
  2755. .HasCollation("utf8_general_ci");
  2756. entity.Property(e => e.SeoTitle)
  2757. .HasColumnType("varchar(100)")
  2758. .HasCharSet("utf8")
  2759. .HasCollation("utf8_general_ci");
  2760. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2761. entity.Property(e => e.Status).HasColumnType("int(11)");
  2762. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2763. entity.Property(e => e.UpdateMan)
  2764. .HasColumnType("varchar(50)")
  2765. .HasCharSet("utf8")
  2766. .HasCollation("utf8_general_ci");
  2767. entity.Property(e => e.Version).HasColumnType("int(11)");
  2768. });
  2769. modelBuilder.Entity<MerchantCol>(entity =>
  2770. {
  2771. entity.Property(e => e.Id).HasColumnType("int(11)");
  2772. entity.Property(e => e.ColDetail)
  2773. .HasColumnType("varchar(50)")
  2774. .HasCharSet("utf8")
  2775. .HasCollation("utf8_general_ci");
  2776. entity.Property(e => e.ColEnName)
  2777. .HasColumnType("varchar(50)")
  2778. .HasCharSet("utf8")
  2779. .HasCollation("utf8_general_ci");
  2780. entity.Property(e => e.ColId)
  2781. .HasColumnType("varchar(30)")
  2782. .HasCharSet("utf8")
  2783. .HasCollation("utf8_general_ci");
  2784. entity.Property(e => e.ColName)
  2785. .HasColumnType("varchar(50)")
  2786. .HasCharSet("utf8")
  2787. .HasCollation("utf8_general_ci");
  2788. entity.Property(e => e.ColPicPath)
  2789. .HasColumnType("varchar(200)")
  2790. .HasCharSet("utf8")
  2791. .HasCollation("utf8_general_ci");
  2792. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2793. entity.Property(e => e.CreateMan)
  2794. .HasColumnType("varchar(50)")
  2795. .HasCharSet("utf8")
  2796. .HasCollation("utf8_general_ci");
  2797. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2798. entity.Property(e => e.ParentId).HasColumnType("int(11)");
  2799. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2800. entity.Property(e => e.Recommend)
  2801. .HasColumnType("bit(1)")
  2802. .HasDefaultValueSql("b'0'");
  2803. entity.Property(e => e.SeoDescription)
  2804. .HasColumnType("varchar(500)")
  2805. .HasCharSet("utf8")
  2806. .HasCollation("utf8_general_ci");
  2807. entity.Property(e => e.SeoKeyword)
  2808. .HasColumnType("varchar(200)")
  2809. .HasCharSet("utf8")
  2810. .HasCollation("utf8_general_ci");
  2811. entity.Property(e => e.SeoTitle)
  2812. .HasColumnType("varchar(100)")
  2813. .HasCharSet("utf8")
  2814. .HasCollation("utf8_general_ci");
  2815. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2816. entity.Property(e => e.Status).HasColumnType("int(11)");
  2817. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2818. entity.Property(e => e.UpdateMan)
  2819. .HasColumnType("varchar(50)")
  2820. .HasCharSet("utf8")
  2821. .HasCollation("utf8_general_ci");
  2822. entity.Property(e => e.Version).HasColumnType("int(11)");
  2823. });
  2824. modelBuilder.Entity<MerchantComment>(entity =>
  2825. {
  2826. entity.Property(e => e.Id).HasColumnType("int(11)");
  2827. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2828. entity.Property(e => e.CreateMan)
  2829. .HasColumnType("varchar(50)")
  2830. .HasCharSet("utf8")
  2831. .HasCollation("utf8_general_ci");
  2832. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2833. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  2834. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2835. entity.Property(e => e.SeoDescription)
  2836. .HasColumnType("varchar(500)")
  2837. .HasCharSet("utf8")
  2838. .HasCollation("utf8_general_ci");
  2839. entity.Property(e => e.SeoKeyword)
  2840. .HasColumnType("varchar(200)")
  2841. .HasCharSet("utf8")
  2842. .HasCollation("utf8_general_ci");
  2843. entity.Property(e => e.SeoTitle)
  2844. .HasColumnType("varchar(100)")
  2845. .HasCharSet("utf8")
  2846. .HasCollation("utf8_general_ci");
  2847. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2848. entity.Property(e => e.StarNum1).HasColumnType("int(11)");
  2849. entity.Property(e => e.StarNum2).HasColumnType("int(11)");
  2850. entity.Property(e => e.StarNum3).HasColumnType("int(11)");
  2851. entity.Property(e => e.Status).HasColumnType("int(11)");
  2852. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2853. entity.Property(e => e.UpdateMan)
  2854. .HasColumnType("varchar(50)")
  2855. .HasCharSet("utf8")
  2856. .HasCollation("utf8_general_ci");
  2857. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2858. entity.Property(e => e.Version).HasColumnType("int(11)");
  2859. });
  2860. modelBuilder.Entity<MerchantForCode>(entity =>
  2861. {
  2862. entity.HasKey(e => e.Code)
  2863. .HasName("PRIMARY");
  2864. entity.Property(e => e.Code)
  2865. .HasColumnType("varchar(30)")
  2866. .HasCharSet("utf8")
  2867. .HasCollation("utf8_general_ci");
  2868. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2869. });
  2870. modelBuilder.Entity<MerchantForMobile>(entity =>
  2871. {
  2872. entity.HasKey(e => e.Mobile)
  2873. .HasName("PRIMARY");
  2874. entity.Property(e => e.Mobile)
  2875. .HasColumnType("varchar(11)")
  2876. .HasCharSet("utf8")
  2877. .HasCollation("utf8_general_ci");
  2878. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2879. });
  2880. modelBuilder.Entity<MerchantForName>(entity =>
  2881. {
  2882. entity.HasKey(e => e.Name)
  2883. .HasName("PRIMARY");
  2884. entity.Property(e => e.Name)
  2885. .HasColumnType("varchar(30)")
  2886. .HasCharSet("utf8")
  2887. .HasCollation("utf8_general_ci");
  2888. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2889. });
  2890. modelBuilder.Entity<MerchantInfo>(entity =>
  2891. {
  2892. entity.Property(e => e.Id).HasColumnType("int(11)");
  2893. entity.Property(e => e.ActivationDate).HasColumnType("datetime");
  2894. entity.Property(e => e.ActivationStatus).HasColumnType("int(11)");
  2895. entity.Property(e => e.Address)
  2896. .HasColumnType("varchar(100)")
  2897. .HasCharSet("utf8")
  2898. .HasCollation("utf8_general_ci");
  2899. entity.Property(e => e.Areas)
  2900. .HasColumnType("varchar(50)")
  2901. .HasCharSet("utf8")
  2902. .HasCollation("utf8_general_ci");
  2903. entity.Property(e => e.BindDate).HasColumnType("datetime");
  2904. entity.Property(e => e.BindStatus).HasColumnType("int(11)");
  2905. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2906. entity.Property(e => e.CreateMan)
  2907. .HasColumnType("varchar(50)")
  2908. .HasCharSet("utf8")
  2909. .HasCollation("utf8_general_ci");
  2910. entity.Property(e => e.IsAuth)
  2911. .HasColumnType("bit(1)")
  2912. .HasDefaultValueSql("b'0'");
  2913. entity.Property(e => e.LastAddConsumerDate).HasColumnType("datetime");
  2914. entity.Property(e => e.LastConsumeDate).HasColumnType("datetime");
  2915. entity.Property(e => e.LoginPwd)
  2916. .HasColumnType("varchar(32)")
  2917. .HasCharSet("utf8")
  2918. .HasCollation("utf8_general_ci");
  2919. entity.Property(e => e.Logo)
  2920. .HasColumnType("varchar(200)")
  2921. .HasCharSet("utf8")
  2922. .HasCollation("utf8_general_ci");
  2923. entity.Property(e => e.Mobile)
  2924. .HasColumnType("varchar(11)")
  2925. .HasCharSet("utf8")
  2926. .HasCollation("utf8_general_ci");
  2927. entity.Property(e => e.Name)
  2928. .HasColumnType("varchar(50)")
  2929. .HasCharSet("utf8")
  2930. .HasCollation("utf8_general_ci");
  2931. entity.Property(e => e.ParentUserNav)
  2932. .HasColumnType("varchar(500)")
  2933. .HasCharSet("utf8")
  2934. .HasCollation("utf8_general_ci");
  2935. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2936. entity.Property(e => e.SeoDescription)
  2937. .HasColumnType("varchar(500)")
  2938. .HasCharSet("utf8")
  2939. .HasCollation("utf8_general_ci");
  2940. entity.Property(e => e.SeoKeyword)
  2941. .HasColumnType("varchar(200)")
  2942. .HasCharSet("utf8")
  2943. .HasCollation("utf8_general_ci");
  2944. entity.Property(e => e.SeoTitle)
  2945. .HasColumnType("varchar(100)")
  2946. .HasCharSet("utf8")
  2947. .HasCollation("utf8_general_ci");
  2948. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2949. entity.Property(e => e.Status).HasColumnType("int(11)");
  2950. entity.Property(e => e.TotalActual).HasColumnType("decimal(18,2)");
  2951. entity.Property(e => e.TotalAmount).HasColumnType("decimal(18,2)");
  2952. entity.Property(e => e.TotalConsumeCount).HasColumnType("int(11)");
  2953. entity.Property(e => e.TotalCustomer).HasColumnType("int(11)");
  2954. entity.Property(e => e.TotalOrder).HasColumnType("int(11)");
  2955. entity.Property(e => e.TotalUser).HasColumnType("int(11)");
  2956. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2957. entity.Property(e => e.UpdateMan)
  2958. .HasColumnType("varchar(50)")
  2959. .HasCharSet("utf8")
  2960. .HasCollation("utf8_general_ci");
  2961. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2962. entity.Property(e => e.Version).HasColumnType("int(11)");
  2963. });
  2964. modelBuilder.Entity<MerchantParamSet>(entity =>
  2965. {
  2966. entity.Property(e => e.Id).HasColumnType("int(11)");
  2967. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2968. entity.Property(e => e.CreateMan)
  2969. .HasColumnType("varchar(50)")
  2970. .HasCharSet("utf8")
  2971. .HasCollation("utf8_general_ci");
  2972. entity.Property(e => e.DiviPercent).HasColumnType("decimal(18,2)");
  2973. entity.Property(e => e.DiviPersons).HasColumnType("int(11)");
  2974. entity.Property(e => e.GetPercent).HasColumnType("decimal(18,2)");
  2975. entity.Property(e => e.IsAll).HasColumnType("int(11)");
  2976. entity.Property(e => e.MinPayMoney).HasColumnType("decimal(18,2)");
  2977. entity.Property(e => e.ProfitDays).HasColumnType("int(11)");
  2978. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2979. entity.Property(e => e.SeoDescription)
  2980. .HasColumnType("varchar(500)")
  2981. .HasCharSet("utf8")
  2982. .HasCollation("utf8_general_ci");
  2983. entity.Property(e => e.SeoKeyword)
  2984. .HasColumnType("varchar(200)")
  2985. .HasCharSet("utf8")
  2986. .HasCollation("utf8_general_ci");
  2987. entity.Property(e => e.SeoTitle)
  2988. .HasColumnType("varchar(100)")
  2989. .HasCharSet("utf8")
  2990. .HasCollation("utf8_general_ci");
  2991. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2992. entity.Property(e => e.Status).HasColumnType("int(11)");
  2993. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2994. entity.Property(e => e.UpdateMan)
  2995. .HasColumnType("varchar(50)")
  2996. .HasCharSet("utf8")
  2997. .HasCollation("utf8_general_ci");
  2998. entity.Property(e => e.Version).HasColumnType("int(11)");
  2999. });
  3000. modelBuilder.Entity<MerchantQrCode>(entity =>
  3001. {
  3002. entity.Property(e => e.Id).HasColumnType("int(11)");
  3003. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3004. entity.Property(e => e.CreateMan)
  3005. .HasColumnType("varchar(50)")
  3006. .HasCharSet("utf8")
  3007. .HasCollation("utf8_general_ci");
  3008. entity.Property(e => e.MachineId).HasColumnType("int(11)");
  3009. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  3010. entity.Property(e => e.QrCodeContent)
  3011. .HasColumnType("varchar(500)")
  3012. .HasCharSet("utf8")
  3013. .HasCollation("utf8_general_ci");
  3014. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3015. entity.Property(e => e.SeoDescription)
  3016. .HasColumnType("varchar(500)")
  3017. .HasCharSet("utf8")
  3018. .HasCollation("utf8_general_ci");
  3019. entity.Property(e => e.SeoKeyword)
  3020. .HasColumnType("varchar(200)")
  3021. .HasCharSet("utf8")
  3022. .HasCollation("utf8_general_ci");
  3023. entity.Property(e => e.SeoTitle)
  3024. .HasColumnType("varchar(100)")
  3025. .HasCharSet("utf8")
  3026. .HasCollation("utf8_general_ci");
  3027. entity.Property(e => e.SnNo)
  3028. .HasColumnType("varchar(50)")
  3029. .HasCharSet("utf8")
  3030. .HasCollation("utf8_general_ci");
  3031. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3032. entity.Property(e => e.Status).HasColumnType("int(11)");
  3033. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3034. entity.Property(e => e.UpdateMan)
  3035. .HasColumnType("varchar(50)")
  3036. .HasCharSet("utf8")
  3037. .HasCollation("utf8_general_ci");
  3038. entity.Property(e => e.Version).HasColumnType("int(11)");
  3039. });
  3040. modelBuilder.Entity<MerchantRebateDetail>(entity =>
  3041. {
  3042. entity.Property(e => e.Id).HasColumnType("int(11)");
  3043. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  3044. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3045. entity.Property(e => e.CreateMan)
  3046. .HasColumnType("varchar(50)")
  3047. .HasCharSet("utf8")
  3048. .HasCollation("utf8_general_ci");
  3049. entity.Property(e => e.CreditRewardAmount).HasColumnType("decimal(18,2)");
  3050. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  3051. entity.Property(e => e.DebitRewardAmount).HasColumnType("decimal(18,2)");
  3052. entity.Property(e => e.DebitTradeAmt).HasColumnType("decimal(18,2)");
  3053. entity.Property(e => e.MerNo)
  3054. .HasColumnType("varchar(32)")
  3055. .HasCharSet("utf8")
  3056. .HasCollation("utf8_general_ci");
  3057. entity.Property(e => e.MerRegTime).HasColumnType("datetime");
  3058. entity.Property(e => e.MerStandardDate).HasColumnType("datetime");
  3059. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  3060. entity.Property(e => e.MmpUserName)
  3061. .HasColumnType("varchar(32)")
  3062. .HasCharSet("utf8")
  3063. .HasCollation("utf8_general_ci");
  3064. entity.Property(e => e.MmpUserNo)
  3065. .HasColumnType("varchar(32)")
  3066. .HasCharSet("utf8")
  3067. .HasCollation("utf8_general_ci");
  3068. entity.Property(e => e.ProductName)
  3069. .HasColumnType("varchar(32)")
  3070. .HasCharSet("utf8")
  3071. .HasCollation("utf8_general_ci");
  3072. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3073. entity.Property(e => e.Remark)
  3074. .HasColumnType("varchar(64)")
  3075. .HasCharSet("utf8")
  3076. .HasCollation("utf8_general_ci");
  3077. entity.Property(e => e.RewardDesc)
  3078. .HasColumnType("varchar(128)")
  3079. .HasCharSet("utf8")
  3080. .HasCollation("utf8_general_ci");
  3081. entity.Property(e => e.SeoDescription)
  3082. .HasColumnType("varchar(500)")
  3083. .HasCharSet("utf8")
  3084. .HasCollation("utf8_general_ci");
  3085. entity.Property(e => e.SeoKeyword)
  3086. .HasColumnType("varchar(200)")
  3087. .HasCharSet("utf8")
  3088. .HasCollation("utf8_general_ci");
  3089. entity.Property(e => e.SeoTitle)
  3090. .HasColumnType("varchar(100)")
  3091. .HasCharSet("utf8")
  3092. .HasCollation("utf8_general_ci");
  3093. entity.Property(e => e.SnNo)
  3094. .HasColumnType("varchar(32)")
  3095. .HasCharSet("utf8")
  3096. .HasCollation("utf8_general_ci");
  3097. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3098. entity.Property(e => e.Status).HasColumnType("int(11)");
  3099. entity.Property(e => e.SyncStatus).HasColumnType("int(11)");
  3100. entity.Property(e => e.TradeDate)
  3101. .HasColumnType("varchar(8)")
  3102. .HasCharSet("utf8")
  3103. .HasCollation("utf8_general_ci");
  3104. entity.Property(e => e.TradeMonth)
  3105. .HasColumnType("varchar(6)")
  3106. .HasCharSet("utf8")
  3107. .HasCollation("utf8_general_ci");
  3108. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3109. entity.Property(e => e.UpdateMan)
  3110. .HasColumnType("varchar(50)")
  3111. .HasCharSet("utf8")
  3112. .HasCollation("utf8_general_ci");
  3113. entity.Property(e => e.Version).HasColumnType("int(11)");
  3114. });
  3115. modelBuilder.Entity<Merchants>(entity =>
  3116. {
  3117. entity.Property(e => e.Id).HasColumnType("int(11)");
  3118. entity.Property(e => e.Address)
  3119. .HasColumnType("varchar(50)")
  3120. .HasCharSet("utf8")
  3121. .HasCollation("utf8_general_ci");
  3122. entity.Property(e => e.Areas)
  3123. .HasColumnType("varchar(30)")
  3124. .HasCharSet("utf8")
  3125. .HasCollation("utf8_general_ci");
  3126. entity.Property(e => e.BusinessLicense)
  3127. .HasColumnType("varchar(200)")
  3128. .HasCharSet("utf8")
  3129. .HasCollation("utf8_general_ci");
  3130. entity.Property(e => e.CommentCount).HasColumnType("int(11)");
  3131. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3132. entity.Property(e => e.CreateMan)
  3133. .HasColumnType("varchar(50)")
  3134. .HasCharSet("utf8")
  3135. .HasCollation("utf8_general_ci");
  3136. entity.Property(e => e.FollowCount).HasColumnType("int(11)");
  3137. entity.Property(e => e.IsAuth)
  3138. .HasColumnType("bit(1)")
  3139. .HasDefaultValueSql("b'0'");
  3140. entity.Property(e => e.IsRecommend)
  3141. .HasColumnType("bit(1)")
  3142. .HasDefaultValueSql("b'0'");
  3143. entity.Property(e => e.LoginPwd)
  3144. .HasColumnType("varchar(32)")
  3145. .HasCharSet("utf8")
  3146. .HasCollation("utf8_general_ci");
  3147. entity.Property(e => e.Logo)
  3148. .HasColumnType("varchar(200)")
  3149. .HasCharSet("utf8")
  3150. .HasCollation("utf8_general_ci");
  3151. entity.Property(e => e.Name)
  3152. .HasColumnType("varchar(50)")
  3153. .HasCharSet("utf8")
  3154. .HasCollation("utf8_general_ci");
  3155. entity.Property(e => e.PayPwd)
  3156. .HasColumnType("varchar(32)")
  3157. .HasCharSet("utf8")
  3158. .HasCollation("utf8_general_ci");
  3159. entity.Property(e => e.Phone)
  3160. .HasColumnType("varchar(30)")
  3161. .HasCharSet("utf8")
  3162. .HasCollation("utf8_general_ci");
  3163. entity.Property(e => e.Principal)
  3164. .HasColumnType("varchar(30)")
  3165. .HasCharSet("utf8")
  3166. .HasCollation("utf8_general_ci");
  3167. entity.Property(e => e.Province)
  3168. .HasColumnType("varchar(20)")
  3169. .HasCharSet("utf8")
  3170. .HasCollation("utf8_general_ci");
  3171. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3172. entity.Property(e => e.SeoDescription)
  3173. .HasColumnType("varchar(500)")
  3174. .HasCharSet("utf8")
  3175. .HasCollation("utf8_general_ci");
  3176. entity.Property(e => e.SeoKeyword)
  3177. .HasColumnType("varchar(200)")
  3178. .HasCharSet("utf8")
  3179. .HasCollation("utf8_general_ci");
  3180. entity.Property(e => e.SeoTitle)
  3181. .HasColumnType("varchar(100)")
  3182. .HasCharSet("utf8")
  3183. .HasCollation("utf8_general_ci");
  3184. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3185. entity.Property(e => e.StarNum1).HasColumnType("decimal(18,2)");
  3186. entity.Property(e => e.StarNum2).HasColumnType("decimal(18,2)");
  3187. entity.Property(e => e.StarNum3).HasColumnType("decimal(18,2)");
  3188. entity.Property(e => e.Status).HasColumnType("int(11)");
  3189. entity.Property(e => e.Title)
  3190. .HasColumnType("varchar(50)")
  3191. .HasCharSet("utf8")
  3192. .HasCollation("utf8_general_ci");
  3193. entity.Property(e => e.Title2)
  3194. .HasColumnType("varchar(50)")
  3195. .HasCharSet("utf8")
  3196. .HasCollation("utf8_general_ci");
  3197. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3198. entity.Property(e => e.UpdateMan)
  3199. .HasColumnType("varchar(50)")
  3200. .HasCharSet("utf8")
  3201. .HasCollation("utf8_general_ci");
  3202. entity.Property(e => e.UserName)
  3203. .HasColumnType("varchar(50)")
  3204. .HasCharSet("utf8")
  3205. .HasCollation("utf8_general_ci");
  3206. entity.Property(e => e.Version).HasColumnType("int(11)");
  3207. });
  3208. modelBuilder.Entity<MobileCodeCheck>(entity =>
  3209. {
  3210. entity.HasKey(e => e.Mobile)
  3211. .HasName("PRIMARY");
  3212. entity.Property(e => e.Mobile)
  3213. .HasColumnType("varchar(11)")
  3214. .HasCharSet("utf8")
  3215. .HasCollation("utf8_general_ci");
  3216. entity.Property(e => e.CheckCode)
  3217. .HasColumnType("varchar(6)")
  3218. .HasCharSet("utf8")
  3219. .HasCollation("utf8_general_ci");
  3220. entity.Property(e => e.CheckCodeTime).HasColumnType("datetime");
  3221. entity.Property(e => e.CheckNo)
  3222. .HasColumnType("varchar(6)")
  3223. .HasCharSet("utf8")
  3224. .HasCollation("utf8_general_ci");
  3225. });
  3226. modelBuilder.Entity<MsgBlackList>(entity =>
  3227. {
  3228. entity.Property(e => e.Id).HasColumnType("int(11)");
  3229. entity.Property(e => e.ColId)
  3230. .HasColumnType("varchar(30)")
  3231. .HasCharSet("utf8")
  3232. .HasCollation("utf8_general_ci");
  3233. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3234. entity.Property(e => e.CreateMan)
  3235. .HasColumnType("varchar(50)")
  3236. .HasCharSet("utf8")
  3237. .HasCollation("utf8_general_ci");
  3238. entity.Property(e => e.Extend)
  3239. .HasColumnType("varchar(2000)")
  3240. .HasCharSet("utf8")
  3241. .HasCollation("utf8_general_ci");
  3242. entity.Property(e => e.Ip)
  3243. .HasColumnType("varchar(64)")
  3244. .HasCharSet("utf8")
  3245. .HasCollation("utf8_general_ci");
  3246. entity.Property(e => e.Mobile)
  3247. .HasColumnType("varchar(11)")
  3248. .HasCharSet("utf8")
  3249. .HasCollation("utf8_general_ci");
  3250. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3251. entity.Property(e => e.Reason)
  3252. .HasColumnType("varchar(512)")
  3253. .HasCharSet("utf8")
  3254. .HasCollation("utf8_general_ci");
  3255. entity.Property(e => e.Remark)
  3256. .HasColumnType("varchar(64)")
  3257. .HasCharSet("utf8")
  3258. .HasCollation("utf8_general_ci");
  3259. entity.Property(e => e.SeoDescription)
  3260. .HasColumnType("varchar(500)")
  3261. .HasCharSet("utf8")
  3262. .HasCollation("utf8_general_ci");
  3263. entity.Property(e => e.SeoKeyword)
  3264. .HasColumnType("varchar(200)")
  3265. .HasCharSet("utf8")
  3266. .HasCollation("utf8_general_ci");
  3267. entity.Property(e => e.SeoTitle)
  3268. .HasColumnType("varchar(100)")
  3269. .HasCharSet("utf8")
  3270. .HasCollation("utf8_general_ci");
  3271. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3272. entity.Property(e => e.Status).HasColumnType("int(11)");
  3273. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  3274. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3275. entity.Property(e => e.UpdateMan)
  3276. .HasColumnType("varchar(50)")
  3277. .HasCharSet("utf8")
  3278. .HasCollation("utf8_general_ci");
  3279. entity.Property(e => e.Version).HasColumnType("int(11)");
  3280. });
  3281. modelBuilder.Entity<MsgPersonal>(entity =>
  3282. {
  3283. entity.Property(e => e.Id).HasColumnType("int(11)");
  3284. entity.Property(e => e.BgPic)
  3285. .HasColumnType("varchar(200)")
  3286. .HasCharSet("utf8")
  3287. .HasCollation("utf8_general_ci");
  3288. entity.Property(e => e.Content)
  3289. .HasColumnType("longtext")
  3290. .HasCharSet("utf8")
  3291. .HasCollation("utf8_general_ci");
  3292. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3293. entity.Property(e => e.CreateMan)
  3294. .HasColumnType("varchar(50)")
  3295. .HasCharSet("utf8")
  3296. .HasCollation("utf8_general_ci");
  3297. entity.Property(e => e.ExtendColumn)
  3298. .HasColumnType("mediumtext")
  3299. .HasCharSet("utf8")
  3300. .HasCollation("utf8_general_ci");
  3301. entity.Property(e => e.MsgType).HasColumnType("int(11)");
  3302. entity.Property(e => e.PushFlag).HasColumnType("int(11)");
  3303. entity.Property(e => e.PushParam)
  3304. .HasColumnType("varchar(255)")
  3305. .HasCharSet("utf8")
  3306. .HasCollation("utf8_general_ci");
  3307. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3308. entity.Property(e => e.ReadFlag)
  3309. .HasColumnType("bit(1)")
  3310. .HasDefaultValueSql("b'0'");
  3311. entity.Property(e => e.Remark)
  3312. .HasColumnType("varchar(255)")
  3313. .HasCharSet("utf8")
  3314. .HasCollation("utf8_general_ci");
  3315. entity.Property(e => e.SeoDescription)
  3316. .HasColumnType("varchar(500)")
  3317. .HasCharSet("utf8")
  3318. .HasCollation("utf8_general_ci");
  3319. entity.Property(e => e.SeoKeyword)
  3320. .HasColumnType("varchar(200)")
  3321. .HasCharSet("utf8")
  3322. .HasCollation("utf8_general_ci");
  3323. entity.Property(e => e.SeoTitle)
  3324. .HasColumnType("varchar(100)")
  3325. .HasCharSet("utf8")
  3326. .HasCollation("utf8_general_ci");
  3327. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3328. entity.Property(e => e.Status).HasColumnType("int(11)");
  3329. entity.Property(e => e.Summary)
  3330. .HasColumnType("varchar(500)")
  3331. .HasCharSet("utf8")
  3332. .HasCollation("utf8_general_ci");
  3333. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  3334. entity.Property(e => e.Title)
  3335. .HasColumnType("varchar(50)")
  3336. .HasCharSet("utf8")
  3337. .HasCollation("utf8_general_ci");
  3338. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3339. entity.Property(e => e.UpdateMan)
  3340. .HasColumnType("varchar(50)")
  3341. .HasCharSet("utf8")
  3342. .HasCollation("utf8_general_ci");
  3343. entity.Property(e => e.Url)
  3344. .HasColumnType("varchar(500)")
  3345. .HasCharSet("utf8")
  3346. .HasCollation("utf8_general_ci");
  3347. entity.Property(e => e.UserId).HasColumnType("int(11)");
  3348. entity.Property(e => e.Version).HasColumnType("int(11)");
  3349. });
  3350. modelBuilder.Entity<MsgPlacard>(entity =>
  3351. {
  3352. entity.Property(e => e.Id).HasColumnType("int(11)");
  3353. entity.Property(e => e.BgPic)
  3354. .HasColumnType("varchar(200)")
  3355. .HasCharSet("utf8")
  3356. .HasCollation("utf8_general_ci");
  3357. entity.Property(e => e.Content)
  3358. .HasColumnType("longtext")
  3359. .HasCharSet("utf8")
  3360. .HasCollation("utf8_general_ci");
  3361. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3362. entity.Property(e => e.CreateMan)
  3363. .HasColumnType("varchar(50)")
  3364. .HasCharSet("utf8")
  3365. .HasCollation("utf8_general_ci");
  3366. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  3367. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  3368. entity.Property(e => e.ExtendColumn)
  3369. .HasColumnType("mediumtext")
  3370. .HasCharSet("utf8")
  3371. .HasCollation("utf8_general_ci");
  3372. entity.Property(e => e.IsTop)
  3373. .HasColumnType("bit(1)")
  3374. .HasDefaultValueSql("b'0'");
  3375. entity.Property(e => e.MsgType).HasColumnType("int(11)");
  3376. entity.Property(e => e.PushFlag).HasColumnType("int(11)");
  3377. entity.Property(e => e.PushParam)
  3378. .HasColumnType("varchar(255)")
  3379. .HasCharSet("utf8")
  3380. .HasCollation("utf8_general_ci");
  3381. entity.Property(e => e.PushTime).HasColumnType("datetime");
  3382. entity.Property(e => e.PushType).HasColumnType("int(11)");
  3383. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3384. entity.Property(e => e.Remark)
  3385. .HasColumnType("varchar(255)")
  3386. .HasCharSet("utf8")
  3387. .HasCollation("utf8_general_ci");
  3388. entity.Property(e => e.SeoDescription)
  3389. .HasColumnType("varchar(500)")
  3390. .HasCharSet("utf8")
  3391. .HasCollation("utf8_general_ci");
  3392. entity.Property(e => e.SeoKeyword)
  3393. .HasColumnType("varchar(200)")
  3394. .HasCharSet("utf8")
  3395. .HasCollation("utf8_general_ci");
  3396. entity.Property(e => e.SeoTitle)
  3397. .HasColumnType("varchar(100)")
  3398. .HasCharSet("utf8")
  3399. .HasCollation("utf8_general_ci");
  3400. entity.Property(e => e.ShowType).HasColumnType("int(11)");
  3401. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3402. entity.Property(e => e.Status).HasColumnType("int(11)");
  3403. entity.Property(e => e.Summary)
  3404. .HasColumnType("varchar(500)")
  3405. .HasCharSet("utf8")
  3406. .HasCollation("utf8_general_ci");
  3407. entity.Property(e => e.Title)
  3408. .HasColumnType("varchar(50)")
  3409. .HasCharSet("utf8")
  3410. .HasCollation("utf8_general_ci");
  3411. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3412. entity.Property(e => e.UpdateMan)
  3413. .HasColumnType("varchar(50)")
  3414. .HasCharSet("utf8")
  3415. .HasCollation("utf8_general_ci");
  3416. entity.Property(e => e.Url)
  3417. .HasColumnType("varchar(500)")
  3418. .HasCharSet("utf8")
  3419. .HasCollation("utf8_general_ci");
  3420. entity.Property(e => e.Version).HasColumnType("int(11)");
  3421. });
  3422. modelBuilder.Entity<MsgPlacardRead>(entity =>
  3423. {
  3424. entity.Property(e => e.Id).HasColumnType("int(11)");
  3425. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3426. entity.Property(e => e.CreateMan)
  3427. .HasColumnType("varchar(50)")
  3428. .HasCharSet("utf8")
  3429. .HasCollation("utf8_general_ci");
  3430. entity.Property(e => e.PlacardId).HasColumnType("int(11)");
  3431. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3432. entity.Property(e => e.ReadFlag)
  3433. .HasColumnType("bit(1)")
  3434. .HasDefaultValueSql("b'0'");
  3435. entity.Property(e => e.Remark)
  3436. .HasColumnType("varchar(255)")
  3437. .HasCharSet("utf8")
  3438. .HasCollation("utf8_general_ci");
  3439. entity.Property(e => e.SeoDescription)
  3440. .HasColumnType("varchar(500)")
  3441. .HasCharSet("utf8")
  3442. .HasCollation("utf8_general_ci");
  3443. entity.Property(e => e.SeoKeyword)
  3444. .HasColumnType("varchar(200)")
  3445. .HasCharSet("utf8")
  3446. .HasCollation("utf8_general_ci");
  3447. entity.Property(e => e.SeoTitle)
  3448. .HasColumnType("varchar(100)")
  3449. .HasCharSet("utf8")
  3450. .HasCollation("utf8_general_ci");
  3451. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3452. entity.Property(e => e.Status).HasColumnType("int(11)");
  3453. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3454. entity.Property(e => e.UpdateMan)
  3455. .HasColumnType("varchar(50)")
  3456. .HasCharSet("utf8")
  3457. .HasCollation("utf8_general_ci");
  3458. entity.Property(e => e.UserId)
  3459. .HasColumnType("varchar(64)")
  3460. .HasCharSet("utf8")
  3461. .HasCollation("utf8_general_ci");
  3462. entity.Property(e => e.Version).HasColumnType("int(11)");
  3463. });
  3464. modelBuilder.Entity<MsgPush>(entity =>
  3465. {
  3466. entity.Property(e => e.Id).HasColumnType("int(11)");
  3467. entity.Property(e => e.AutoPushDate).HasColumnType("datetime");
  3468. entity.Property(e => e.ClientType)
  3469. .HasColumnType("varchar(20)")
  3470. .HasCharSet("utf8")
  3471. .HasCollation("utf8_general_ci");
  3472. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3473. entity.Property(e => e.CreateMan)
  3474. .HasColumnType("varchar(50)")
  3475. .HasCharSet("utf8")
  3476. .HasCollation("utf8_general_ci");
  3477. entity.Property(e => e.Details)
  3478. .HasColumnType("varchar(200)")
  3479. .HasCharSet("utf8")
  3480. .HasCollation("utf8_general_ci");
  3481. entity.Property(e => e.Devices)
  3482. .HasColumnType("mediumtext")
  3483. .HasCharSet("utf8")
  3484. .HasCollation("utf8_general_ci");
  3485. entity.Property(e => e.IsSilent)
  3486. .HasColumnType("bit(1)")
  3487. .HasDefaultValueSql("b'0'");
  3488. entity.Property(e => e.MessageId)
  3489. .HasColumnType("varchar(50)")
  3490. .HasCharSet("utf8")
  3491. .HasCollation("utf8_general_ci");
  3492. entity.Property(e => e.Mobiles)
  3493. .HasColumnType("mediumtext")
  3494. .HasCharSet("utf8")
  3495. .HasCollation("utf8_general_ci");
  3496. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3497. entity.Property(e => e.SeoDescription)
  3498. .HasColumnType("varchar(500)")
  3499. .HasCharSet("utf8")
  3500. .HasCollation("utf8_general_ci");
  3501. entity.Property(e => e.SeoKeyword)
  3502. .HasColumnType("varchar(200)")
  3503. .HasCharSet("utf8")
  3504. .HasCollation("utf8_general_ci");
  3505. entity.Property(e => e.SeoTitle)
  3506. .HasColumnType("varchar(100)")
  3507. .HasCharSet("utf8")
  3508. .HasCollation("utf8_general_ci");
  3509. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3510. entity.Property(e => e.Status).HasColumnType("int(11)");
  3511. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  3512. entity.Property(e => e.Title)
  3513. .HasColumnType("varchar(50)")
  3514. .HasCharSet("utf8")
  3515. .HasCollation("utf8_general_ci");
  3516. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3517. entity.Property(e => e.UpdateMan)
  3518. .HasColumnType("varchar(50)")
  3519. .HasCharSet("utf8")
  3520. .HasCollation("utf8_general_ci");
  3521. entity.Property(e => e.Url)
  3522. .HasColumnType("varchar(500)")
  3523. .HasCharSet("utf8")
  3524. .HasCollation("utf8_general_ci");
  3525. entity.Property(e => e.Version).HasColumnType("int(11)");
  3526. });
  3527. modelBuilder.Entity<MsgSms>(entity =>
  3528. {
  3529. entity.Property(e => e.Id).HasColumnType("int(11)");
  3530. entity.Property(e => e.Code).HasColumnType("int(11)");
  3531. entity.Property(e => e.ColId)
  3532. .HasColumnType("varchar(30)")
  3533. .HasCharSet("utf8")
  3534. .HasCollation("utf8_general_ci");
  3535. entity.Property(e => e.Content)
  3536. .HasColumnType("varchar(200)")
  3537. .HasCharSet("utf8")
  3538. .HasCollation("utf8_general_ci");
  3539. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3540. entity.Property(e => e.CreateMan)
  3541. .HasColumnType("varchar(50)")
  3542. .HasCharSet("utf8")
  3543. .HasCollation("utf8_general_ci");
  3544. entity.Property(e => e.ErrorNum).HasColumnType("int(11)");
  3545. entity.Property(e => e.Ip)
  3546. .HasColumnType("varchar(15)")
  3547. .HasCharSet("utf8")
  3548. .HasCollation("utf8_general_ci");
  3549. entity.Property(e => e.Kind)
  3550. .HasColumnType("varchar(64)")
  3551. .HasCharSet("utf8")
  3552. .HasCollation("utf8_general_ci");
  3553. entity.Property(e => e.Mobile)
  3554. .HasColumnType("varchar(11)")
  3555. .HasCharSet("utf8")
  3556. .HasCollation("utf8_general_ci");
  3557. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3558. entity.Property(e => e.RespCode)
  3559. .HasColumnType("varchar(16)")
  3560. .HasCharSet("utf8")
  3561. .HasCollation("utf8_general_ci");
  3562. entity.Property(e => e.RespContent)
  3563. .HasColumnType("varchar(500)")
  3564. .HasCharSet("utf8")
  3565. .HasCollation("utf8_general_ci");
  3566. entity.Property(e => e.SendStatus).HasColumnType("int(11)");
  3567. entity.Property(e => e.SendTime).HasColumnType("datetime");
  3568. entity.Property(e => e.SendType).HasColumnType("int(11)");
  3569. entity.Property(e => e.SeoDescription)
  3570. .HasColumnType("varchar(500)")
  3571. .HasCharSet("utf8")
  3572. .HasCollation("utf8_general_ci");
  3573. entity.Property(e => e.SeoKeyword)
  3574. .HasColumnType("varchar(200)")
  3575. .HasCharSet("utf8")
  3576. .HasCollation("utf8_general_ci");
  3577. entity.Property(e => e.SeoTitle)
  3578. .HasColumnType("varchar(100)")
  3579. .HasCharSet("utf8")
  3580. .HasCollation("utf8_general_ci");
  3581. entity.Property(e => e.SignName)
  3582. .HasColumnType("varchar(10)")
  3583. .HasCharSet("utf8")
  3584. .HasCollation("utf8_general_ci");
  3585. entity.Property(e => e.SmsType).HasColumnType("int(11)");
  3586. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3587. entity.Property(e => e.Status).HasColumnType("int(11)");
  3588. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  3589. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3590. entity.Property(e => e.UpdateMan)
  3591. .HasColumnType("varchar(50)")
  3592. .HasCharSet("utf8")
  3593. .HasCollation("utf8_general_ci");
  3594. entity.Property(e => e.VerifyCode)
  3595. .HasColumnType("varchar(6)")
  3596. .HasCharSet("utf8")
  3597. .HasCollation("utf8_general_ci");
  3598. entity.Property(e => e.VerifyStatus).HasColumnType("int(11)");
  3599. entity.Property(e => e.Version).HasColumnType("int(11)");
  3600. });
  3601. modelBuilder.Entity<MsgSmsSet>(entity =>
  3602. {
  3603. entity.Property(e => e.Id).HasColumnType("int(11)");
  3604. entity.Property(e => e.AuthPwd)
  3605. .HasColumnType("varchar(50)")
  3606. .HasCharSet("utf8")
  3607. .HasCollation("utf8_general_ci");
  3608. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3609. entity.Property(e => e.CreateMan)
  3610. .HasColumnType("varchar(50)")
  3611. .HasCharSet("utf8")
  3612. .HasCollation("utf8_general_ci");
  3613. entity.Property(e => e.Name)
  3614. .HasColumnType("varchar(50)")
  3615. .HasCharSet("utf8")
  3616. .HasCollation("utf8_general_ci");
  3617. entity.Property(e => e.Params)
  3618. .HasColumnType("varchar(200)")
  3619. .HasCharSet("utf8")
  3620. .HasCollation("utf8_general_ci");
  3621. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3622. entity.Property(e => e.ReqUrl)
  3623. .HasColumnType("varchar(200)")
  3624. .HasCharSet("utf8")
  3625. .HasCollation("utf8_general_ci");
  3626. entity.Property(e => e.SeoDescription)
  3627. .HasColumnType("varchar(500)")
  3628. .HasCharSet("utf8")
  3629. .HasCollation("utf8_general_ci");
  3630. entity.Property(e => e.SeoKeyword)
  3631. .HasColumnType("varchar(200)")
  3632. .HasCharSet("utf8")
  3633. .HasCollation("utf8_general_ci");
  3634. entity.Property(e => e.SeoTitle)
  3635. .HasColumnType("varchar(100)")
  3636. .HasCharSet("utf8")
  3637. .HasCollation("utf8_general_ci");
  3638. entity.Property(e => e.SmsType).HasColumnType("int(11)");
  3639. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3640. entity.Property(e => e.Status).HasColumnType("int(11)");
  3641. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3642. entity.Property(e => e.UpdateMan)
  3643. .HasColumnType("varchar(50)")
  3644. .HasCharSet("utf8")
  3645. .HasCollation("utf8_general_ci");
  3646. entity.Property(e => e.UserName)
  3647. .HasColumnType("varchar(50)")
  3648. .HasCharSet("utf8")
  3649. .HasCollation("utf8_general_ci");
  3650. entity.Property(e => e.Version).HasColumnType("int(11)");
  3651. });
  3652. modelBuilder.Entity<MsgTemplate>(entity =>
  3653. {
  3654. entity.Property(e => e.Id).HasColumnType("int(11)");
  3655. entity.Property(e => e.ColId)
  3656. .HasColumnType("varchar(30)")
  3657. .HasCharSet("utf8")
  3658. .HasCollation("utf8_general_ci");
  3659. entity.Property(e => e.Content)
  3660. .HasColumnType("varchar(200)")
  3661. .HasCharSet("utf8")
  3662. .HasCollation("utf8_general_ci");
  3663. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3664. entity.Property(e => e.CreateMan)
  3665. .HasColumnType("varchar(50)")
  3666. .HasCharSet("utf8")
  3667. .HasCollation("utf8_general_ci");
  3668. entity.Property(e => e.Extend)
  3669. .HasColumnType("varchar(2000)")
  3670. .HasCharSet("utf8")
  3671. .HasCollation("utf8_general_ci");
  3672. entity.Property(e => e.MsgType).HasColumnType("int(11)");
  3673. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3674. entity.Property(e => e.Remark)
  3675. .HasColumnType("varchar(64)")
  3676. .HasCharSet("utf8")
  3677. .HasCollation("utf8_general_ci");
  3678. entity.Property(e => e.SeoDescription)
  3679. .HasColumnType("varchar(500)")
  3680. .HasCharSet("utf8")
  3681. .HasCollation("utf8_general_ci");
  3682. entity.Property(e => e.SeoKeyword)
  3683. .HasColumnType("varchar(200)")
  3684. .HasCharSet("utf8")
  3685. .HasCollation("utf8_general_ci");
  3686. entity.Property(e => e.SeoTitle)
  3687. .HasColumnType("varchar(100)")
  3688. .HasCharSet("utf8")
  3689. .HasCollation("utf8_general_ci");
  3690. entity.Property(e => e.SignName)
  3691. .HasColumnType("varchar(10)")
  3692. .HasCharSet("utf8")
  3693. .HasCollation("utf8_general_ci");
  3694. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3695. entity.Property(e => e.Status).HasColumnType("int(11)");
  3696. entity.Property(e => e.TemplateType).HasColumnType("int(11)");
  3697. entity.Property(e => e.Title)
  3698. .HasColumnType("varchar(50)")
  3699. .HasCharSet("utf8")
  3700. .HasCollation("utf8_general_ci");
  3701. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3702. entity.Property(e => e.UpdateMan)
  3703. .HasColumnType("varchar(50)")
  3704. .HasCharSet("utf8")
  3705. .HasCollation("utf8_general_ci");
  3706. entity.Property(e => e.Version).HasColumnType("int(11)");
  3707. });
  3708. modelBuilder.Entity<OpenBankCityTable>(entity =>
  3709. {
  3710. entity.HasKey(e => e.CityName)
  3711. .HasName("PRIMARY");
  3712. entity.Property(e => e.CityName)
  3713. .HasColumnType("varchar(100)")
  3714. .HasCharSet("utf8")
  3715. .HasCollation("utf8_general_ci");
  3716. entity.Property(e => e.Code)
  3717. .HasColumnType("varchar(20)")
  3718. .HasCharSet("utf8")
  3719. .HasCollation("utf8_general_ci");
  3720. });
  3721. modelBuilder.Entity<OpenBankTable>(entity =>
  3722. {
  3723. entity.HasKey(e => e.BankName)
  3724. .HasName("PRIMARY");
  3725. entity.Property(e => e.BankName)
  3726. .HasColumnType("varchar(200)")
  3727. .HasCharSet("utf8")
  3728. .HasCollation("utf8_general_ci");
  3729. entity.Property(e => e.BankCode)
  3730. .HasColumnType("varchar(50)")
  3731. .HasCharSet("utf8")
  3732. .HasCollation("utf8_general_ci");
  3733. });
  3734. modelBuilder.Entity<OpenReward>(entity =>
  3735. {
  3736. entity.Property(e => e.Id).HasColumnType("int(11)");
  3737. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  3738. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  3739. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3740. entity.Property(e => e.CreateMan)
  3741. .HasColumnType("varchar(50)")
  3742. .HasCharSet("utf8")
  3743. .HasCollation("utf8_general_ci");
  3744. entity.Property(e => e.CreditRewardAmount).HasColumnType("decimal(18,2)");
  3745. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  3746. entity.Property(e => e.DebitRewardAmount).HasColumnType("decimal(18,2)");
  3747. entity.Property(e => e.DebitTradeAmt).HasColumnType("decimal(18,2)");
  3748. entity.Property(e => e.OpenRewardNo)
  3749. .HasColumnType("varchar(32)")
  3750. .HasCharSet("utf8")
  3751. .HasCollation("utf8_general_ci");
  3752. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3753. entity.Property(e => e.Remark)
  3754. .HasColumnType("varchar(128)")
  3755. .HasCharSet("utf8")
  3756. .HasCollation("utf8_general_ci");
  3757. entity.Property(e => e.RewardDesc)
  3758. .HasColumnType("varchar(128)")
  3759. .HasCharSet("utf8")
  3760. .HasCollation("utf8_general_ci");
  3761. entity.Property(e => e.RewardMerCount).HasColumnType("int(11)");
  3762. entity.Property(e => e.RewardType).HasColumnType("int(11)");
  3763. entity.Property(e => e.SeoDescription)
  3764. .HasColumnType("varchar(500)")
  3765. .HasCharSet("utf8")
  3766. .HasCollation("utf8_general_ci");
  3767. entity.Property(e => e.SeoKeyword)
  3768. .HasColumnType("varchar(200)")
  3769. .HasCharSet("utf8")
  3770. .HasCollation("utf8_general_ci");
  3771. entity.Property(e => e.SeoTitle)
  3772. .HasColumnType("varchar(100)")
  3773. .HasCharSet("utf8")
  3774. .HasCollation("utf8_general_ci");
  3775. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3776. entity.Property(e => e.Status).HasColumnType("int(11)");
  3777. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  3778. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  3779. entity.Property(e => e.TradeMonth)
  3780. .HasColumnType("varchar(6)")
  3781. .HasCharSet("utf8")
  3782. .HasCollation("utf8_general_ci");
  3783. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3784. entity.Property(e => e.UpdateMan)
  3785. .HasColumnType("varchar(50)")
  3786. .HasCharSet("utf8")
  3787. .HasCollation("utf8_general_ci");
  3788. entity.Property(e => e.UserId).HasColumnType("int(11)");
  3789. entity.Property(e => e.Version).HasColumnType("int(11)");
  3790. });
  3791. modelBuilder.Entity<OpenRewardDetail>(entity =>
  3792. {
  3793. entity.Property(e => e.Id).HasColumnType("int(11)");
  3794. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  3795. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  3796. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3797. entity.Property(e => e.CreateMan)
  3798. .HasColumnType("varchar(50)")
  3799. .HasCharSet("utf8")
  3800. .HasCollation("utf8_general_ci");
  3801. entity.Property(e => e.CreditRewardAmount).HasColumnType("decimal(18,2)");
  3802. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  3803. entity.Property(e => e.DebitRewardAmount).HasColumnType("decimal(18,2)");
  3804. entity.Property(e => e.DebitTradeAmt).HasColumnType("decimal(18,2)");
  3805. entity.Property(e => e.DirectUserId).HasColumnType("int(11)");
  3806. entity.Property(e => e.MerBuddyType).HasColumnType("int(11)");
  3807. entity.Property(e => e.MerNo)
  3808. .HasColumnType("varchar(32)")
  3809. .HasCharSet("utf8")
  3810. .HasCollation("utf8_general_ci");
  3811. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  3812. entity.Property(e => e.OpenDetailRec)
  3813. .HasColumnType("varchar(32)")
  3814. .HasCharSet("utf8")
  3815. .HasCollation("utf8_general_ci");
  3816. entity.Property(e => e.OpenRewardNo)
  3817. .HasColumnType("varchar(32)")
  3818. .HasCharSet("utf8")
  3819. .HasCollation("utf8_general_ci");
  3820. entity.Property(e => e.ProductName)
  3821. .HasColumnType("varchar(32)")
  3822. .HasCharSet("utf8")
  3823. .HasCollation("utf8_general_ci");
  3824. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3825. entity.Property(e => e.Remark)
  3826. .HasColumnType("varchar(128)")
  3827. .HasCharSet("utf8")
  3828. .HasCollation("utf8_general_ci");
  3829. entity.Property(e => e.RewardDesc)
  3830. .HasColumnType("varchar(128)")
  3831. .HasCharSet("utf8")
  3832. .HasCollation("utf8_general_ci");
  3833. entity.Property(e => e.RewardTips)
  3834. .HasColumnType("varchar(16)")
  3835. .HasCharSet("utf8")
  3836. .HasCollation("utf8_general_ci");
  3837. entity.Property(e => e.RewardType).HasColumnType("int(11)");
  3838. entity.Property(e => e.SeoDescription)
  3839. .HasColumnType("varchar(500)")
  3840. .HasCharSet("utf8")
  3841. .HasCollation("utf8_general_ci");
  3842. entity.Property(e => e.SeoKeyword)
  3843. .HasColumnType("varchar(200)")
  3844. .HasCharSet("utf8")
  3845. .HasCollation("utf8_general_ci");
  3846. entity.Property(e => e.SeoTitle)
  3847. .HasColumnType("varchar(100)")
  3848. .HasCharSet("utf8")
  3849. .HasCollation("utf8_general_ci");
  3850. entity.Property(e => e.SnApplyUserId).HasColumnType("int(11)");
  3851. entity.Property(e => e.SnNo)
  3852. .HasColumnType("varchar(32)")
  3853. .HasCharSet("utf8")
  3854. .HasCollation("utf8_general_ci");
  3855. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  3856. entity.Property(e => e.SnType).HasColumnType("int(11)");
  3857. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3858. entity.Property(e => e.StandardDate).HasColumnType("datetime");
  3859. entity.Property(e => e.Status).HasColumnType("int(11)");
  3860. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  3861. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  3862. entity.Property(e => e.TradeMonth)
  3863. .HasColumnType("varchar(6)")
  3864. .HasCharSet("utf8")
  3865. .HasCollation("utf8_general_ci");
  3866. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3867. entity.Property(e => e.UpdateMan)
  3868. .HasColumnType("varchar(50)")
  3869. .HasCharSet("utf8")
  3870. .HasCollation("utf8_general_ci");
  3871. entity.Property(e => e.UserId).HasColumnType("int(11)");
  3872. entity.Property(e => e.Version).HasColumnType("int(11)");
  3873. });
  3874. modelBuilder.Entity<OpenSnSnapshot>(entity =>
  3875. {
  3876. entity.Property(e => e.Id).HasColumnType("int(11)");
  3877. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  3878. entity.Property(e => e.BuySnNum).HasColumnType("int(11)");
  3879. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3880. entity.Property(e => e.CreateMan)
  3881. .HasColumnType("varchar(50)")
  3882. .HasCharSet("utf8")
  3883. .HasCollation("utf8_general_ci");
  3884. entity.Property(e => e.CreditRewardAmount).HasColumnType("decimal(18,2)");
  3885. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  3886. entity.Property(e => e.DebitRewardAmount).HasColumnType("decimal(18,2)");
  3887. entity.Property(e => e.DebitTradeAmt).HasColumnType("decimal(18,2)");
  3888. entity.Property(e => e.DirectUserId).HasColumnType("int(11)");
  3889. entity.Property(e => e.FailReason)
  3890. .HasColumnType("varchar(128)")
  3891. .HasCharSet("utf8")
  3892. .HasCollation("utf8_general_ci");
  3893. entity.Property(e => e.MerNo)
  3894. .HasColumnType("varchar(32)")
  3895. .HasCharSet("utf8")
  3896. .HasCollation("utf8_general_ci");
  3897. entity.Property(e => e.MerUserType).HasColumnType("int(11)");
  3898. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  3899. entity.Property(e => e.OpenDetailRec)
  3900. .HasColumnType("varchar(32)")
  3901. .HasCharSet("utf8")
  3902. .HasCollation("utf8_general_ci");
  3903. entity.Property(e => e.OpenRewardNo)
  3904. .HasColumnType("varchar(32)")
  3905. .HasCharSet("utf8")
  3906. .HasCollation("utf8_general_ci");
  3907. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3908. entity.Property(e => e.Remark)
  3909. .HasColumnType("varchar(128)")
  3910. .HasCharSet("utf8")
  3911. .HasCollation("utf8_general_ci");
  3912. entity.Property(e => e.RewardAmount).HasColumnType("decimal(18,2)");
  3913. entity.Property(e => e.RewardDesc)
  3914. .HasColumnType("varchar(128)")
  3915. .HasCharSet("utf8")
  3916. .HasCollation("utf8_general_ci");
  3917. entity.Property(e => e.RewardTips)
  3918. .HasColumnType("varchar(16)")
  3919. .HasCharSet("utf8")
  3920. .HasCollation("utf8_general_ci");
  3921. entity.Property(e => e.RewardType).HasColumnType("int(11)");
  3922. entity.Property(e => e.SeoDescription)
  3923. .HasColumnType("varchar(500)")
  3924. .HasCharSet("utf8")
  3925. .HasCollation("utf8_general_ci");
  3926. entity.Property(e => e.SeoKeyword)
  3927. .HasColumnType("varchar(200)")
  3928. .HasCharSet("utf8")
  3929. .HasCollation("utf8_general_ci");
  3930. entity.Property(e => e.SeoTitle)
  3931. .HasColumnType("varchar(100)")
  3932. .HasCharSet("utf8")
  3933. .HasCollation("utf8_general_ci");
  3934. entity.Property(e => e.SnApplyUserId).HasColumnType("int(11)");
  3935. entity.Property(e => e.SnNo)
  3936. .HasColumnType("varchar(32)")
  3937. .HasCharSet("utf8")
  3938. .HasCollation("utf8_general_ci");
  3939. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  3940. entity.Property(e => e.SnType).HasColumnType("int(11)");
  3941. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3942. entity.Property(e => e.StandardDate).HasColumnType("datetime");
  3943. entity.Property(e => e.Status).HasColumnType("int(11)");
  3944. entity.Property(e => e.StdBuySnNum).HasColumnType("int(11)");
  3945. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  3946. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  3947. entity.Property(e => e.TradeMonth)
  3948. .HasColumnType("varchar(6)")
  3949. .HasCharSet("utf8")
  3950. .HasCollation("utf8_general_ci");
  3951. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3952. entity.Property(e => e.UpdateMan)
  3953. .HasColumnType("varchar(50)")
  3954. .HasCharSet("utf8")
  3955. .HasCollation("utf8_general_ci");
  3956. entity.Property(e => e.UserId).HasColumnType("int(11)");
  3957. entity.Property(e => e.UserNav)
  3958. .HasColumnType("varchar(300)")
  3959. .HasCharSet("utf8")
  3960. .HasCollation("utf8_general_ci");
  3961. entity.Property(e => e.Version).HasColumnType("int(11)");
  3962. });
  3963. modelBuilder.Entity<OperateLog>(entity =>
  3964. {
  3965. entity.Property(e => e.Id).HasColumnType("int(11)");
  3966. entity.Property(e => e.AfterOperate)
  3967. .HasColumnType("mediumtext")
  3968. .HasCharSet("utf8")
  3969. .HasCollation("utf8_general_ci");
  3970. entity.Property(e => e.BeforeOperate)
  3971. .HasColumnType("mediumtext")
  3972. .HasCharSet("utf8")
  3973. .HasCollation("utf8_general_ci");
  3974. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3975. entity.Property(e => e.CreateMan)
  3976. .HasColumnType("varchar(50)")
  3977. .HasCharSet("utf8")
  3978. .HasCollation("utf8_general_ci");
  3979. entity.Property(e => e.OpMode)
  3980. .HasColumnType("varchar(30)")
  3981. .HasCharSet("utf8")
  3982. .HasCollation("utf8_general_ci");
  3983. entity.Property(e => e.OperateMan)
  3984. .HasColumnType("varchar(50)")
  3985. .HasCharSet("utf8")
  3986. .HasCollation("utf8_general_ci");
  3987. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3988. entity.Property(e => e.SeoDescription)
  3989. .HasColumnType("varchar(500)")
  3990. .HasCharSet("utf8")
  3991. .HasCollation("utf8_general_ci");
  3992. entity.Property(e => e.SeoKeyword)
  3993. .HasColumnType("varchar(200)")
  3994. .HasCharSet("utf8")
  3995. .HasCollation("utf8_general_ci");
  3996. entity.Property(e => e.SeoTitle)
  3997. .HasColumnType("varchar(100)")
  3998. .HasCharSet("utf8")
  3999. .HasCollation("utf8_general_ci");
  4000. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4001. entity.Property(e => e.Status).HasColumnType("int(11)");
  4002. entity.Property(e => e.TableEnName)
  4003. .HasColumnType("varchar(50)")
  4004. .HasCharSet("utf8")
  4005. .HasCollation("utf8_general_ci");
  4006. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4007. entity.Property(e => e.UpdateMan)
  4008. .HasColumnType("varchar(50)")
  4009. .HasCharSet("utf8")
  4010. .HasCollation("utf8_general_ci");
  4011. entity.Property(e => e.Version).HasColumnType("int(11)");
  4012. });
  4013. modelBuilder.Entity<OperateRightList>(entity =>
  4014. {
  4015. entity.Property(e => e.Id).HasColumnType("int(11)");
  4016. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4017. entity.Property(e => e.CreateMan)
  4018. .HasColumnType("varchar(50)")
  4019. .HasCharSet("utf8")
  4020. .HasCollation("utf8_general_ci");
  4021. entity.Property(e => e.EnName)
  4022. .HasColumnType("varchar(50)")
  4023. .HasCharSet("utf8")
  4024. .HasCollation("utf8_general_ci");
  4025. entity.Property(e => e.Name)
  4026. .HasColumnType("varchar(50)")
  4027. .HasCharSet("utf8")
  4028. .HasCollation("utf8_general_ci");
  4029. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4030. entity.Property(e => e.SeoDescription)
  4031. .HasColumnType("varchar(500)")
  4032. .HasCharSet("utf8")
  4033. .HasCollation("utf8_general_ci");
  4034. entity.Property(e => e.SeoKeyword)
  4035. .HasColumnType("varchar(200)")
  4036. .HasCharSet("utf8")
  4037. .HasCollation("utf8_general_ci");
  4038. entity.Property(e => e.SeoTitle)
  4039. .HasColumnType("varchar(100)")
  4040. .HasCharSet("utf8")
  4041. .HasCollation("utf8_general_ci");
  4042. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4043. entity.Property(e => e.Status).HasColumnType("int(11)");
  4044. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4045. entity.Property(e => e.UpdateMan)
  4046. .HasColumnType("varchar(50)")
  4047. .HasCharSet("utf8")
  4048. .HasCollation("utf8_general_ci");
  4049. entity.Property(e => e.Version).HasColumnType("int(11)");
  4050. });
  4051. modelBuilder.Entity<OrderForNo>(entity =>
  4052. {
  4053. entity.HasKey(e => e.OrderNo)
  4054. .HasName("PRIMARY");
  4055. entity.Property(e => e.OrderNo)
  4056. .HasColumnType("varchar(50)")
  4057. .HasCharSet("utf8")
  4058. .HasCollation("utf8_general_ci");
  4059. entity.Property(e => e.OrderIds)
  4060. .HasColumnType("varchar(50)")
  4061. .HasCharSet("utf8")
  4062. .HasCollation("utf8_general_ci");
  4063. entity.Property(e => e.RspCode).HasColumnType("int(11)");
  4064. entity.Property(e => e.RspMsg)
  4065. .HasColumnType("varchar(500)")
  4066. .HasCharSet("utf8")
  4067. .HasCollation("utf8_general_ci");
  4068. });
  4069. modelBuilder.Entity<OrderProduct>(entity =>
  4070. {
  4071. entity.Property(e => e.Id).HasColumnType("int(11)");
  4072. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4073. entity.Property(e => e.CreateMan)
  4074. .HasColumnType("varchar(50)")
  4075. .HasCharSet("utf8")
  4076. .HasCollation("utf8_general_ci");
  4077. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4078. entity.Property(e => e.NormDetail)
  4079. .HasColumnType("varchar(200)")
  4080. .HasCharSet("utf8")
  4081. .HasCollation("utf8_general_ci");
  4082. entity.Property(e => e.NormId)
  4083. .HasColumnType("varchar(50)")
  4084. .HasCharSet("utf8")
  4085. .HasCollation("utf8_general_ci");
  4086. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  4087. entity.Property(e => e.ProductCode)
  4088. .HasColumnType("varchar(30)")
  4089. .HasCharSet("utf8")
  4090. .HasCollation("utf8_general_ci");
  4091. entity.Property(e => e.ProductCount).HasColumnType("int(11)");
  4092. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  4093. entity.Property(e => e.ProductIntegral).HasColumnType("decimal(18,2)");
  4094. entity.Property(e => e.ProductName)
  4095. .HasColumnType("varchar(100)")
  4096. .HasCharSet("utf8")
  4097. .HasCollation("utf8_general_ci");
  4098. entity.Property(e => e.ProductPhoto)
  4099. .HasColumnType("varchar(200)")
  4100. .HasCharSet("utf8")
  4101. .HasCollation("utf8_general_ci");
  4102. entity.Property(e => e.ProductPrice).HasColumnType("decimal(18,2)");
  4103. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4104. entity.Property(e => e.SeoDescription)
  4105. .HasColumnType("varchar(500)")
  4106. .HasCharSet("utf8")
  4107. .HasCollation("utf8_general_ci");
  4108. entity.Property(e => e.SeoKeyword)
  4109. .HasColumnType("varchar(200)")
  4110. .HasCharSet("utf8")
  4111. .HasCollation("utf8_general_ci");
  4112. entity.Property(e => e.SeoTitle)
  4113. .HasColumnType("varchar(100)")
  4114. .HasCharSet("utf8")
  4115. .HasCollation("utf8_general_ci");
  4116. entity.Property(e => e.SnNos)
  4117. .HasColumnType("mediumtext")
  4118. .HasCharSet("utf8")
  4119. .HasCollation("utf8_general_ci");
  4120. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4121. entity.Property(e => e.Status).HasColumnType("int(11)");
  4122. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  4123. entity.Property(e => e.TotalIntegral).HasColumnType("decimal(18,2)");
  4124. entity.Property(e => e.TotalPrice).HasColumnType("decimal(18,2)");
  4125. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4126. entity.Property(e => e.UpdateMan)
  4127. .HasColumnType("varchar(50)")
  4128. .HasCharSet("utf8")
  4129. .HasCollation("utf8_general_ci");
  4130. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4131. entity.Property(e => e.Version).HasColumnType("int(11)");
  4132. });
  4133. modelBuilder.Entity<OrderRefund>(entity =>
  4134. {
  4135. entity.Property(e => e.Id).HasColumnType("int(11)");
  4136. entity.Property(e => e.Amount).HasColumnType("decimal(18,2)");
  4137. entity.Property(e => e.Contents)
  4138. .HasColumnType("longtext")
  4139. .HasCharSet("utf8")
  4140. .HasCollation("utf8_general_ci");
  4141. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4142. entity.Property(e => e.CreateMan)
  4143. .HasColumnType("varchar(50)")
  4144. .HasCharSet("utf8")
  4145. .HasCollation("utf8_general_ci");
  4146. entity.Property(e => e.ErpCode)
  4147. .HasColumnType("varchar(50)")
  4148. .HasCharSet("utf8")
  4149. .HasCollation("utf8_general_ci");
  4150. entity.Property(e => e.ErpCompany).HasColumnType("int(11)");
  4151. entity.Property(e => e.GoodStatus).HasColumnType("int(11)");
  4152. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4153. entity.Property(e => e.Mobile)
  4154. .HasColumnType("varchar(11)")
  4155. .HasCharSet("utf8")
  4156. .HasCollation("utf8_general_ci");
  4157. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  4158. entity.Property(e => e.Photos)
  4159. .HasColumnType("varchar(500)")
  4160. .HasCharSet("utf8")
  4161. .HasCollation("utf8_general_ci");
  4162. entity.Property(e => e.ProductId)
  4163. .HasColumnType("varchar(50)")
  4164. .HasCharSet("utf8")
  4165. .HasCollation("utf8_general_ci");
  4166. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4167. entity.Property(e => e.Reason).HasColumnType("int(11)");
  4168. entity.Property(e => e.SeoDescription)
  4169. .HasColumnType("varchar(500)")
  4170. .HasCharSet("utf8")
  4171. .HasCollation("utf8_general_ci");
  4172. entity.Property(e => e.SeoKeyword)
  4173. .HasColumnType("varchar(200)")
  4174. .HasCharSet("utf8")
  4175. .HasCollation("utf8_general_ci");
  4176. entity.Property(e => e.SeoTitle)
  4177. .HasColumnType("varchar(100)")
  4178. .HasCharSet("utf8")
  4179. .HasCollation("utf8_general_ci");
  4180. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4181. entity.Property(e => e.Status).HasColumnType("int(11)");
  4182. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4183. entity.Property(e => e.UpdateMan)
  4184. .HasColumnType("varchar(50)")
  4185. .HasCharSet("utf8")
  4186. .HasCollation("utf8_general_ci");
  4187. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4188. entity.Property(e => e.Version).HasColumnType("int(11)");
  4189. });
  4190. modelBuilder.Entity<OrderRefundReason>(entity =>
  4191. {
  4192. entity.Property(e => e.Id).HasColumnType("int(11)");
  4193. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4194. entity.Property(e => e.CreateMan)
  4195. .HasColumnType("varchar(50)")
  4196. .HasCharSet("utf8")
  4197. .HasCollation("utf8_general_ci");
  4198. entity.Property(e => e.Name)
  4199. .HasColumnType("varchar(50)")
  4200. .HasCharSet("utf8")
  4201. .HasCollation("utf8_general_ci");
  4202. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4203. entity.Property(e => e.SeoDescription)
  4204. .HasColumnType("varchar(500)")
  4205. .HasCharSet("utf8")
  4206. .HasCollation("utf8_general_ci");
  4207. entity.Property(e => e.SeoKeyword)
  4208. .HasColumnType("varchar(200)")
  4209. .HasCharSet("utf8")
  4210. .HasCollation("utf8_general_ci");
  4211. entity.Property(e => e.SeoTitle)
  4212. .HasColumnType("varchar(100)")
  4213. .HasCharSet("utf8")
  4214. .HasCollation("utf8_general_ci");
  4215. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4216. entity.Property(e => e.Status).HasColumnType("int(11)");
  4217. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4218. entity.Property(e => e.UpdateMan)
  4219. .HasColumnType("varchar(50)")
  4220. .HasCharSet("utf8")
  4221. .HasCollation("utf8_general_ci");
  4222. entity.Property(e => e.Version).HasColumnType("int(11)");
  4223. });
  4224. modelBuilder.Entity<Orders>(entity =>
  4225. {
  4226. entity.Property(e => e.Id).HasColumnType("int(11)");
  4227. entity.Property(e => e.ActualPay).HasColumnType("decimal(18,2)");
  4228. entity.Property(e => e.Address)
  4229. .HasColumnType("varchar(50)")
  4230. .HasCharSet("utf8")
  4231. .HasCollation("utf8_general_ci");
  4232. entity.Property(e => e.Areas)
  4233. .HasColumnType("varchar(30)")
  4234. .HasCharSet("utf8")
  4235. .HasCollation("utf8_general_ci");
  4236. entity.Property(e => e.AutoConfirmDate).HasColumnType("datetime");
  4237. entity.Property(e => e.BuyCount).HasColumnType("int(11)");
  4238. entity.Property(e => e.ChannelAmount).HasColumnType("decimal(18,2)");
  4239. entity.Property(e => e.ConfirmDate).HasColumnType("datetime");
  4240. entity.Property(e => e.CouponId).HasColumnType("int(11)");
  4241. entity.Property(e => e.CouponMoney).HasColumnType("decimal(18,2)");
  4242. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4243. entity.Property(e => e.CreateMan)
  4244. .HasColumnType("varchar(50)")
  4245. .HasCharSet("utf8")
  4246. .HasCollation("utf8_general_ci");
  4247. entity.Property(e => e.DeliveryType).HasColumnType("int(11)");
  4248. entity.Property(e => e.ErpCode)
  4249. .HasColumnType("varchar(50)")
  4250. .HasCharSet("utf8")
  4251. .HasCollation("utf8_general_ci");
  4252. entity.Property(e => e.ErpMode).HasColumnType("int(11)");
  4253. entity.Property(e => e.ErpName)
  4254. .HasColumnType("varchar(50)")
  4255. .HasCharSet("utf8")
  4256. .HasCollation("utf8_general_ci");
  4257. entity.Property(e => e.ErpPrice).HasColumnType("decimal(18,2)");
  4258. entity.Property(e => e.Integral).HasColumnType("decimal(18,2)");
  4259. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4260. entity.Property(e => e.Mobile)
  4261. .HasColumnType("varchar(11)")
  4262. .HasCharSet("utf8")
  4263. .HasCollation("utf8_general_ci");
  4264. entity.Property(e => e.OrderNo)
  4265. .HasColumnType("varchar(30)")
  4266. .HasCharSet("utf8")
  4267. .HasCollation("utf8_general_ci");
  4268. entity.Property(e => e.PayDate).HasColumnType("datetime");
  4269. entity.Property(e => e.PayMode).HasColumnType("int(11)");
  4270. entity.Property(e => e.PayStatus).HasColumnType("int(11)");
  4271. entity.Property(e => e.PostalCode)
  4272. .HasColumnType("varchar(6)")
  4273. .HasCharSet("utf8")
  4274. .HasCollation("utf8_general_ci");
  4275. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  4276. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4277. entity.Property(e => e.RealName)
  4278. .HasColumnType("varchar(10)")
  4279. .HasCharSet("utf8")
  4280. .HasCollation("utf8_general_ci");
  4281. entity.Property(e => e.RefundActAmount).HasColumnType("decimal(18,2)");
  4282. entity.Property(e => e.RefundFeeAmount).HasColumnType("decimal(18,2)");
  4283. entity.Property(e => e.RefundReason)
  4284. .HasColumnType("varchar(64)")
  4285. .HasCharSet("utf8")
  4286. .HasCollation("utf8_general_ci");
  4287. entity.Property(e => e.RefundStatus).HasColumnType("int(11)");
  4288. entity.Property(e => e.Remark)
  4289. .HasColumnType("varchar(64)")
  4290. .HasCharSet("utf8")
  4291. .HasCollation("utf8_general_ci");
  4292. entity.Property(e => e.ReqData)
  4293. .HasColumnType("varchar(2048)")
  4294. .HasCharSet("utf8")
  4295. .HasCollation("utf8_general_ci");
  4296. entity.Property(e => e.ResData)
  4297. .HasColumnType("varchar(2048)")
  4298. .HasCharSet("utf8")
  4299. .HasCollation("utf8_general_ci");
  4300. entity.Property(e => e.ReturnCode)
  4301. .HasColumnType("varchar(32)")
  4302. .HasCharSet("utf8")
  4303. .HasCollation("utf8_general_ci");
  4304. entity.Property(e => e.ReturnMsg)
  4305. .HasColumnType("varchar(128)")
  4306. .HasCharSet("utf8")
  4307. .HasCollation("utf8_general_ci");
  4308. entity.Property(e => e.SendDate).HasColumnType("datetime");
  4309. entity.Property(e => e.SendStatus).HasColumnType("int(11)");
  4310. entity.Property(e => e.SeoDescription)
  4311. .HasColumnType("varchar(500)")
  4312. .HasCharSet("utf8")
  4313. .HasCollation("utf8_general_ci");
  4314. entity.Property(e => e.SeoKeyword)
  4315. .HasColumnType("varchar(200)")
  4316. .HasCharSet("utf8")
  4317. .HasCollation("utf8_general_ci");
  4318. entity.Property(e => e.SeoTitle)
  4319. .HasColumnType("varchar(100)")
  4320. .HasCharSet("utf8")
  4321. .HasCollation("utf8_general_ci");
  4322. entity.Property(e => e.SnNos)
  4323. .HasColumnType("mediumtext")
  4324. .HasCharSet("utf8")
  4325. .HasCollation("utf8_general_ci");
  4326. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4327. entity.Property(e => e.Status).HasColumnType("int(11)");
  4328. entity.Property(e => e.StoreContact)
  4329. .HasColumnType("varchar(30)")
  4330. .HasCharSet("utf8")
  4331. .HasCollation("utf8_general_ci");
  4332. entity.Property(e => e.StoreContactMobile)
  4333. .HasColumnType("varchar(11)")
  4334. .HasCharSet("utf8")
  4335. .HasCollation("utf8_general_ci");
  4336. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  4337. entity.Property(e => e.StoreType).HasColumnType("int(11)");
  4338. entity.Property(e => e.StoreUserId).HasColumnType("int(11)");
  4339. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  4340. entity.Property(e => e.TotalPrice).HasColumnType("decimal(18,2)");
  4341. entity.Property(e => e.TradeNo)
  4342. .HasColumnType("varchar(50)")
  4343. .HasCharSet("utf8")
  4344. .HasCollation("utf8_general_ci");
  4345. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4346. entity.Property(e => e.UpdateMan)
  4347. .HasColumnType("varchar(50)")
  4348. .HasCharSet("utf8")
  4349. .HasCollation("utf8_general_ci");
  4350. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4351. entity.Property(e => e.UserMessage)
  4352. .HasColumnType("varchar(50)")
  4353. .HasCharSet("utf8")
  4354. .HasCollation("utf8_general_ci");
  4355. entity.Property(e => e.Version).HasColumnType("int(11)");
  4356. });
  4357. modelBuilder.Entity<PageInfo>(entity =>
  4358. {
  4359. entity.Property(e => e.Id).HasColumnType("int(11)");
  4360. entity.Property(e => e.ColId)
  4361. .HasColumnType("varchar(30)")
  4362. .HasCharSet("utf8")
  4363. .HasCollation("utf8_general_ci");
  4364. entity.Property(e => e.Contents)
  4365. .HasColumnType("longtext")
  4366. .HasCharSet("utf8")
  4367. .HasCollation("utf8_general_ci");
  4368. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4369. entity.Property(e => e.CreateMan)
  4370. .HasColumnType("varchar(50)")
  4371. .HasCharSet("utf8")
  4372. .HasCollation("utf8_general_ci");
  4373. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4374. entity.Property(e => e.SeoDescription)
  4375. .HasColumnType("varchar(500)")
  4376. .HasCharSet("utf8")
  4377. .HasCollation("utf8_general_ci");
  4378. entity.Property(e => e.SeoKeyword)
  4379. .HasColumnType("varchar(200)")
  4380. .HasCharSet("utf8")
  4381. .HasCollation("utf8_general_ci");
  4382. entity.Property(e => e.SeoTitle)
  4383. .HasColumnType("varchar(100)")
  4384. .HasCharSet("utf8")
  4385. .HasCollation("utf8_general_ci");
  4386. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4387. entity.Property(e => e.Status).HasColumnType("int(11)");
  4388. entity.Property(e => e.Title)
  4389. .HasColumnType("varchar(200)")
  4390. .HasCharSet("utf8")
  4391. .HasCollation("utf8_general_ci");
  4392. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4393. entity.Property(e => e.UpdateMan)
  4394. .HasColumnType("varchar(50)")
  4395. .HasCharSet("utf8")
  4396. .HasCollation("utf8_general_ci");
  4397. entity.Property(e => e.Version).HasColumnType("int(11)");
  4398. });
  4399. modelBuilder.Entity<PageUpdateInfo>(entity =>
  4400. {
  4401. entity.Property(e => e.Id).HasColumnType("int(11)");
  4402. entity.Property(e => e.BgColor)
  4403. .HasColumnType("varchar(6)")
  4404. .HasCharSet("utf8")
  4405. .HasCollation("utf8_general_ci");
  4406. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4407. entity.Property(e => e.CreateMan)
  4408. .HasColumnType("varchar(50)")
  4409. .HasCharSet("utf8")
  4410. .HasCollation("utf8_general_ci");
  4411. entity.Property(e => e.GotoPages)
  4412. .HasColumnType("varchar(500)")
  4413. .HasCharSet("utf8")
  4414. .HasCollation("utf8_general_ci");
  4415. entity.Property(e => e.IsScrollBar)
  4416. .HasColumnType("bit(1)")
  4417. .HasDefaultValueSql("b'0'");
  4418. entity.Property(e => e.IsSkid)
  4419. .HasColumnType("bit(1)")
  4420. .HasDefaultValueSql("b'0'");
  4421. entity.Property(e => e.LeftAction1)
  4422. .HasColumnType("longtext")
  4423. .HasCharSet("utf8")
  4424. .HasCollation("utf8_general_ci");
  4425. entity.Property(e => e.LeftAction2)
  4426. .HasColumnType("longtext")
  4427. .HasCharSet("utf8")
  4428. .HasCollation("utf8_general_ci");
  4429. entity.Property(e => e.LeftBtn1)
  4430. .HasColumnType("varchar(100)")
  4431. .HasCharSet("utf8")
  4432. .HasCollation("utf8_general_ci");
  4433. entity.Property(e => e.LeftBtn2)
  4434. .HasColumnType("varchar(50)")
  4435. .HasCharSet("utf8")
  4436. .HasCollation("utf8_general_ci");
  4437. entity.Property(e => e.ModulePath)
  4438. .HasColumnType("varchar(200)")
  4439. .HasCharSet("utf8")
  4440. .HasCollation("utf8_general_ci");
  4441. entity.Property(e => e.ModuleVersion).HasColumnType("int(11)");
  4442. entity.Property(e => e.MustUpdate)
  4443. .HasColumnType("bit(1)")
  4444. .HasDefaultValueSql("b'0'");
  4445. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4446. entity.Property(e => e.RightAction1)
  4447. .HasColumnType("longtext")
  4448. .HasCharSet("utf8")
  4449. .HasCollation("utf8_general_ci");
  4450. entity.Property(e => e.RightAction2)
  4451. .HasColumnType("longtext")
  4452. .HasCharSet("utf8")
  4453. .HasCollation("utf8_general_ci");
  4454. entity.Property(e => e.RightBtn1)
  4455. .HasColumnType("varchar(50)")
  4456. .HasCharSet("utf8")
  4457. .HasCollation("utf8_general_ci");
  4458. entity.Property(e => e.RightBtn2)
  4459. .HasColumnType("varchar(50)")
  4460. .HasCharSet("utf8")
  4461. .HasCollation("utf8_general_ci");
  4462. entity.Property(e => e.SeoDescription)
  4463. .HasColumnType("varchar(500)")
  4464. .HasCharSet("utf8")
  4465. .HasCollation("utf8_general_ci");
  4466. entity.Property(e => e.SeoKeyword)
  4467. .HasColumnType("varchar(200)")
  4468. .HasCharSet("utf8")
  4469. .HasCollation("utf8_general_ci");
  4470. entity.Property(e => e.SeoTitle)
  4471. .HasColumnType("varchar(100)")
  4472. .HasCharSet("utf8")
  4473. .HasCollation("utf8_general_ci");
  4474. entity.Property(e => e.ShowTitle)
  4475. .HasColumnType("bit(1)")
  4476. .HasDefaultValueSql("b'0'");
  4477. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4478. entity.Property(e => e.Status).HasColumnType("int(11)");
  4479. entity.Property(e => e.StatusBarStyle)
  4480. .HasColumnType("varchar(10)")
  4481. .HasCharSet("utf8")
  4482. .HasCollation("utf8_general_ci");
  4483. entity.Property(e => e.TextColor)
  4484. .HasColumnType("varchar(6)")
  4485. .HasCharSet("utf8")
  4486. .HasCollation("utf8_general_ci");
  4487. entity.Property(e => e.Title)
  4488. .HasColumnType("varchar(50)")
  4489. .HasCharSet("utf8")
  4490. .HasCollation("utf8_general_ci");
  4491. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4492. entity.Property(e => e.UpdateMan)
  4493. .HasColumnType("varchar(50)")
  4494. .HasCharSet("utf8")
  4495. .HasCollation("utf8_general_ci");
  4496. entity.Property(e => e.Version).HasColumnType("int(11)");
  4497. });
  4498. modelBuilder.Entity<PosCouponForUser>(entity =>
  4499. {
  4500. entity.Property(e => e.Id).HasColumnType("int(11)");
  4501. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4502. entity.Property(e => e.OutNum).HasColumnType("int(11)");
  4503. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4504. entity.Property(e => e.SeoDescription)
  4505. .HasColumnType("varchar(500)")
  4506. .HasCharSet("utf8")
  4507. .HasCollation("utf8_general_ci");
  4508. entity.Property(e => e.SeoKeyword)
  4509. .HasColumnType("varchar(200)")
  4510. .HasCharSet("utf8")
  4511. .HasCollation("utf8_general_ci");
  4512. entity.Property(e => e.SeoTitle)
  4513. .HasColumnType("varchar(100)")
  4514. .HasCharSet("utf8")
  4515. .HasCollation("utf8_general_ci");
  4516. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4517. entity.Property(e => e.Status).HasColumnType("int(11)");
  4518. entity.Property(e => e.StockNum).HasColumnType("int(11)");
  4519. entity.Property(e => e.TotalNum).HasColumnType("int(11)");
  4520. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4521. });
  4522. modelBuilder.Entity<PosCouponOrders>(entity =>
  4523. {
  4524. entity.Property(e => e.Id).HasColumnType("int(11)");
  4525. entity.Property(e => e.AfterOut).HasColumnType("int(11)");
  4526. entity.Property(e => e.AfterStock).HasColumnType("int(11)");
  4527. entity.Property(e => e.AfterTotal).HasColumnType("int(11)");
  4528. entity.Property(e => e.BeforeOut).HasColumnType("int(11)");
  4529. entity.Property(e => e.BeforeStock).HasColumnType("int(11)");
  4530. entity.Property(e => e.BeforeTotal).HasColumnType("int(11)");
  4531. entity.Property(e => e.ChangeCount).HasColumnType("int(11)");
  4532. entity.Property(e => e.ChangeKind).HasColumnType("int(11)");
  4533. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4534. entity.Property(e => e.FromUserId).HasColumnType("int(11)");
  4535. entity.Property(e => e.OrderNo)
  4536. .HasColumnType("varchar(50)")
  4537. .HasCharSet("utf8")
  4538. .HasCollation("utf8_general_ci");
  4539. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4540. entity.Property(e => e.SeoDescription)
  4541. .HasColumnType("varchar(500)")
  4542. .HasCharSet("utf8")
  4543. .HasCollation("utf8_general_ci");
  4544. entity.Property(e => e.SeoKeyword)
  4545. .HasColumnType("varchar(200)")
  4546. .HasCharSet("utf8")
  4547. .HasCollation("utf8_general_ci");
  4548. entity.Property(e => e.SeoTitle)
  4549. .HasColumnType("varchar(100)")
  4550. .HasCharSet("utf8")
  4551. .HasCollation("utf8_general_ci");
  4552. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4553. entity.Property(e => e.Status).HasColumnType("int(11)");
  4554. entity.Property(e => e.ToUserId).HasColumnType("int(11)");
  4555. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4556. });
  4557. modelBuilder.Entity<PosCouponRecord>(entity =>
  4558. {
  4559. entity.Property(e => e.Id).HasColumnType("int(11)");
  4560. entity.Property(e => e.ChangeKind).HasColumnType("int(11)");
  4561. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4562. entity.Property(e => e.FromUserId).HasColumnType("int(11)");
  4563. entity.Property(e => e.OrderNo)
  4564. .HasColumnType("varchar(50)")
  4565. .HasCharSet("utf8")
  4566. .HasCollation("utf8_general_ci");
  4567. entity.Property(e => e.PosCouponId).HasColumnType("int(11)");
  4568. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4569. entity.Property(e => e.SeoDescription)
  4570. .HasColumnType("varchar(500)")
  4571. .HasCharSet("utf8")
  4572. .HasCollation("utf8_general_ci");
  4573. entity.Property(e => e.SeoKeyword)
  4574. .HasColumnType("varchar(200)")
  4575. .HasCharSet("utf8")
  4576. .HasCollation("utf8_general_ci");
  4577. entity.Property(e => e.SeoTitle)
  4578. .HasColumnType("varchar(100)")
  4579. .HasCharSet("utf8")
  4580. .HasCollation("utf8_general_ci");
  4581. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4582. entity.Property(e => e.Status).HasColumnType("int(11)");
  4583. entity.Property(e => e.ToUserId).HasColumnType("int(11)");
  4584. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4585. });
  4586. modelBuilder.Entity<PosCoupons>(entity =>
  4587. {
  4588. entity.Property(e => e.Id).HasColumnType("int(11)");
  4589. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4590. entity.Property(e => e.ExchangeCode)
  4591. .HasColumnType("varchar(10)")
  4592. .HasCharSet("utf8")
  4593. .HasCollation("utf8_general_ci");
  4594. entity.Property(e => e.IsLock)
  4595. .HasColumnType("bit(1)")
  4596. .HasDefaultValueSql("b'0'");
  4597. entity.Property(e => e.IsUse)
  4598. .HasColumnType("bit(1)")
  4599. .HasDefaultValueSql("b'0'");
  4600. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4601. entity.Property(e => e.SeoDescription)
  4602. .HasColumnType("varchar(500)")
  4603. .HasCharSet("utf8")
  4604. .HasCollation("utf8_general_ci");
  4605. entity.Property(e => e.SeoKeyword)
  4606. .HasColumnType("varchar(200)")
  4607. .HasCharSet("utf8")
  4608. .HasCollation("utf8_general_ci");
  4609. entity.Property(e => e.SeoTitle)
  4610. .HasColumnType("varchar(100)")
  4611. .HasCharSet("utf8")
  4612. .HasCollation("utf8_general_ci");
  4613. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4614. entity.Property(e => e.Status).HasColumnType("int(11)");
  4615. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4616. entity.Property(e => e.UseDate).HasColumnType("datetime");
  4617. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4618. });
  4619. modelBuilder.Entity<PosMachines>(entity =>
  4620. {
  4621. entity.Property(e => e.Id).HasColumnType("int(11)");
  4622. entity.Property(e => e.ActivationState).HasColumnType("int(11)");
  4623. entity.Property(e => e.ActivationTime).HasColumnType("datetime");
  4624. entity.Property(e => e.ActivityList)
  4625. .HasColumnType("varchar(200)")
  4626. .HasCharSet("utf8")
  4627. .HasCollation("utf8_general_ci");
  4628. entity.Property(e => e.BatchNo)
  4629. .HasColumnType("varchar(32)")
  4630. .HasCharSet("utf8")
  4631. .HasCollation("utf8_general_ci");
  4632. entity.Property(e => e.BindMerchantId).HasColumnType("int(11)");
  4633. entity.Property(e => e.BindingState).HasColumnType("int(11)");
  4634. entity.Property(e => e.BindingTime).HasColumnType("datetime");
  4635. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  4636. entity.Property(e => e.BuyUserId).HasColumnType("int(11)");
  4637. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4638. entity.Property(e => e.CreateMan)
  4639. .HasColumnType("varchar(50)")
  4640. .HasCharSet("utf8")
  4641. .HasCollation("utf8_general_ci");
  4642. entity.Property(e => e.CreditTrade).HasColumnType("decimal(18,2)");
  4643. entity.Property(e => e.DebitCardTrade).HasColumnType("decimal(18,2)");
  4644. entity.Property(e => e.Detail)
  4645. .HasColumnType("longtext")
  4646. .HasCharSet("utf8")
  4647. .HasCollation("utf8_general_ci");
  4648. entity.Property(e => e.DeviceKind)
  4649. .HasColumnType("varchar(32)")
  4650. .HasCharSet("utf8")
  4651. .HasCollation("utf8_general_ci");
  4652. entity.Property(e => e.DeviceName)
  4653. .HasColumnType("varchar(32)")
  4654. .HasCharSet("utf8")
  4655. .HasCollation("utf8_general_ci");
  4656. entity.Property(e => e.DeviceType)
  4657. .HasColumnType("varchar(20)")
  4658. .HasCharSet("utf8")
  4659. .HasCollation("utf8_general_ci");
  4660. entity.Property(e => e.IsPurchase)
  4661. .HasColumnType("bit(1)")
  4662. .HasDefaultValueSql("b'0'");
  4663. entity.Property(e => e.IsVip)
  4664. .HasColumnType("bit(1)")
  4665. .HasDefaultValueSql("b'0'");
  4666. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  4667. entity.Property(e => e.PosSn)
  4668. .HasColumnType("varchar(50)")
  4669. .HasCharSet("utf8")
  4670. .HasCollation("utf8_general_ci");
  4671. entity.Property(e => e.PosSnType).HasColumnType("int(11)");
  4672. entity.Property(e => e.PrizeParams)
  4673. .HasColumnType("varchar(200)")
  4674. .HasCharSet("utf8")
  4675. .HasCollation("utf8_general_ci");
  4676. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4677. entity.Property(e => e.RecycBackCount).HasColumnType("int(11)");
  4678. entity.Property(e => e.RecycEndDate).HasColumnType("datetime");
  4679. entity.Property(e => e.ScanQrTrade).HasColumnType("decimal(18,2)");
  4680. entity.Property(e => e.SeoDescription)
  4681. .HasColumnType("varchar(500)")
  4682. .HasCharSet("utf8")
  4683. .HasCollation("utf8_general_ci");
  4684. entity.Property(e => e.SeoKeyword)
  4685. .HasColumnType("varchar(200)")
  4686. .HasCharSet("utf8")
  4687. .HasCollation("utf8_general_ci");
  4688. entity.Property(e => e.SeoTitle)
  4689. .HasColumnType("varchar(100)")
  4690. .HasCharSet("utf8")
  4691. .HasCollation("utf8_general_ci");
  4692. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4693. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  4694. entity.Property(e => e.Status).HasColumnType("int(11)");
  4695. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  4696. entity.Property(e => e.TransferTime).HasColumnType("datetime");
  4697. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4698. entity.Property(e => e.UpdateMan)
  4699. .HasColumnType("varchar(50)")
  4700. .HasCharSet("utf8")
  4701. .HasCollation("utf8_general_ci");
  4702. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4703. entity.Property(e => e.UserNav)
  4704. .HasColumnType("longtext")
  4705. .HasCharSet("utf8")
  4706. .HasCollation("utf8_general_ci");
  4707. entity.Property(e => e.Version).HasColumnType("int(11)");
  4708. });
  4709. modelBuilder.Entity<PosMachinesTwo>(entity =>
  4710. {
  4711. entity.Property(e => e.Id).HasColumnType("int(11)");
  4712. entity.Property(e => e.ActivationState).HasColumnType("int(11)");
  4713. entity.Property(e => e.ActivationTime).HasColumnType("datetime");
  4714. entity.Property(e => e.ActivityList)
  4715. .HasColumnType("varchar(200)")
  4716. .HasCharSet("utf8")
  4717. .HasCollation("utf8_general_ci");
  4718. entity.Property(e => e.BatchNo)
  4719. .HasColumnType("varchar(32)")
  4720. .HasCharSet("utf8")
  4721. .HasCollation("utf8_general_ci");
  4722. entity.Property(e => e.BindMerchantId).HasColumnType("int(11)");
  4723. entity.Property(e => e.BindingState).HasColumnType("int(11)");
  4724. entity.Property(e => e.BindingTime).HasColumnType("datetime");
  4725. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  4726. entity.Property(e => e.BuyUserId).HasColumnType("int(11)");
  4727. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4728. entity.Property(e => e.CreditTrade).HasColumnType("decimal(18,2)");
  4729. entity.Property(e => e.DebitCardTrade).HasColumnType("decimal(18,2)");
  4730. entity.Property(e => e.Detail)
  4731. .HasColumnType("longtext")
  4732. .HasCharSet("utf8")
  4733. .HasCollation("utf8_general_ci");
  4734. entity.Property(e => e.DeviceKind)
  4735. .HasColumnType("varchar(32)")
  4736. .HasCharSet("utf8")
  4737. .HasCollation("utf8_general_ci");
  4738. entity.Property(e => e.DeviceName)
  4739. .HasColumnType("varchar(32)")
  4740. .HasCharSet("utf8")
  4741. .HasCollation("utf8_general_ci");
  4742. entity.Property(e => e.DeviceType)
  4743. .HasColumnType("varchar(20)")
  4744. .HasCharSet("utf8")
  4745. .HasCollation("utf8_general_ci");
  4746. entity.Property(e => e.IsPurchase).HasColumnType("int(11)");
  4747. entity.Property(e => e.IsVip)
  4748. .HasColumnType("bit(1)")
  4749. .HasDefaultValueSql("b'0'");
  4750. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  4751. entity.Property(e => e.PosSn)
  4752. .HasColumnType("varchar(50)")
  4753. .HasCharSet("utf8")
  4754. .HasCollation("utf8_general_ci");
  4755. entity.Property(e => e.PosSnType).HasColumnType("int(11)");
  4756. entity.Property(e => e.PrizeParams)
  4757. .HasColumnType("varchar(200)")
  4758. .HasCharSet("utf8")
  4759. .HasCollation("utf8_general_ci");
  4760. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4761. entity.Property(e => e.RecycBackCount).HasColumnType("int(11)");
  4762. entity.Property(e => e.RecycEndDate).HasColumnType("datetime");
  4763. entity.Property(e => e.ScanQrTrade).HasColumnType("decimal(18,2)");
  4764. entity.Property(e => e.SeoDescription)
  4765. .HasColumnType("varchar(500)")
  4766. .HasCharSet("utf8")
  4767. .HasCollation("utf8_general_ci");
  4768. entity.Property(e => e.SeoKeyword)
  4769. .HasColumnType("varchar(200)")
  4770. .HasCharSet("utf8")
  4771. .HasCollation("utf8_general_ci");
  4772. entity.Property(e => e.SeoTitle)
  4773. .HasColumnType("varchar(100)")
  4774. .HasCharSet("utf8")
  4775. .HasCollation("utf8_general_ci");
  4776. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4777. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  4778. entity.Property(e => e.Status).HasColumnType("int(11)");
  4779. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  4780. entity.Property(e => e.TransferTime).HasColumnType("datetime");
  4781. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4782. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4783. entity.Property(e => e.UserNav)
  4784. .HasColumnType("longtext")
  4785. .HasCharSet("utf8")
  4786. .HasCollation("utf8_general_ci");
  4787. });
  4788. modelBuilder.Entity<PosMerchantInfo>(entity =>
  4789. {
  4790. entity.Property(e => e.Id).HasColumnType("int(11)");
  4791. entity.Property(e => e.ActType).HasColumnType("int(11)");
  4792. entity.Property(e => e.ActTypeDesc)
  4793. .HasColumnType("varchar(64)")
  4794. .HasCharSet("utf8")
  4795. .HasCollation("utf8_general_ci");
  4796. entity.Property(e => e.ActiveStatus).HasColumnType("int(11)");
  4797. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  4798. entity.Property(e => e.City)
  4799. .HasColumnType("varchar(32)")
  4800. .HasCharSet("utf8")
  4801. .HasCollation("utf8_general_ci");
  4802. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4803. entity.Property(e => e.DirectUserId).HasColumnType("int(11)");
  4804. entity.Property(e => e.KqMerNo)
  4805. .HasColumnType("varchar(32)")
  4806. .HasCharSet("utf8")
  4807. .HasCollation("utf8_general_ci");
  4808. entity.Property(e => e.KqRegTime).HasColumnType("datetime");
  4809. entity.Property(e => e.KqSnNo)
  4810. .HasColumnType("varchar(32)")
  4811. .HasCharSet("utf8")
  4812. .HasCollation("utf8_general_ci");
  4813. entity.Property(e => e.MatchTime).HasColumnType("datetime");
  4814. entity.Property(e => e.MerIdcardNo)
  4815. .HasColumnType("varchar(18)")
  4816. .HasCharSet("utf8")
  4817. .HasCollation("utf8_general_ci");
  4818. entity.Property(e => e.MerRealName)
  4819. .HasColumnType("varchar(16)")
  4820. .HasCharSet("utf8")
  4821. .HasCollation("utf8_general_ci");
  4822. entity.Property(e => e.MerStandardDate).HasColumnType("datetime");
  4823. entity.Property(e => e.MerStatus).HasColumnType("int(11)");
  4824. entity.Property(e => e.MerUserId).HasColumnType("int(11)");
  4825. entity.Property(e => e.MerUserType).HasColumnType("int(11)");
  4826. entity.Property(e => e.MerchantMobile)
  4827. .HasColumnType("varchar(11)")
  4828. .HasCharSet("utf8")
  4829. .HasCollation("utf8_general_ci");
  4830. entity.Property(e => e.MerchantName)
  4831. .HasColumnType("varchar(32)")
  4832. .HasCharSet("utf8")
  4833. .HasCollation("utf8_general_ci");
  4834. entity.Property(e => e.MerchantNo)
  4835. .HasColumnType("varchar(16)")
  4836. .HasCharSet("utf8")
  4837. .HasCollation("utf8_general_ci");
  4838. entity.Property(e => e.MgrName)
  4839. .HasColumnType("varchar(32)")
  4840. .HasCharSet("utf8")
  4841. .HasCollation("utf8_general_ci");
  4842. entity.Property(e => e.MgrNo)
  4843. .HasColumnType("varchar(16)")
  4844. .HasCharSet("utf8")
  4845. .HasCollation("utf8_general_ci");
  4846. entity.Property(e => e.Province)
  4847. .HasColumnType("varchar(32)")
  4848. .HasCharSet("utf8")
  4849. .HasCollation("utf8_general_ci");
  4850. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4851. entity.Property(e => e.RebateQual).HasColumnType("int(11)");
  4852. entity.Property(e => e.Remark)
  4853. .HasColumnType("varchar(64)")
  4854. .HasCharSet("utf8")
  4855. .HasCollation("utf8_general_ci");
  4856. entity.Property(e => e.SeoDescription)
  4857. .HasColumnType("varchar(500)")
  4858. .HasCharSet("utf8")
  4859. .HasCollation("utf8_general_ci");
  4860. entity.Property(e => e.SeoKeyword)
  4861. .HasColumnType("varchar(200)")
  4862. .HasCharSet("utf8")
  4863. .HasCollation("utf8_general_ci");
  4864. entity.Property(e => e.SeoTitle)
  4865. .HasColumnType("varchar(100)")
  4866. .HasCharSet("utf8")
  4867. .HasCollation("utf8_general_ci");
  4868. entity.Property(e => e.SnApplyUserId).HasColumnType("int(11)");
  4869. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  4870. entity.Property(e => e.SnType).HasColumnType("int(11)");
  4871. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4872. entity.Property(e => e.Status).HasColumnType("int(11)");
  4873. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  4874. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4875. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4876. });
  4877. modelBuilder.Entity<PosMerchantOtherInfo>(entity =>
  4878. {
  4879. entity.HasKey(e => e.CertId)
  4880. .HasName("PRIMARY");
  4881. entity.Property(e => e.CertId)
  4882. .HasColumnType("varchar(18)")
  4883. .HasCharSet("utf8")
  4884. .HasCollation("utf8_general_ci");
  4885. entity.Property(e => e.MerNo)
  4886. .HasColumnType("varchar(50)")
  4887. .HasCharSet("utf8")
  4888. .HasCollation("utf8_general_ci");
  4889. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4890. entity.Property(e => e.PrizeFlag1).HasColumnType("int(11)");
  4891. entity.Property(e => e.PrizeFlag2).HasColumnType("int(11)");
  4892. entity.Property(e => e.PrizeFlag3).HasColumnType("int(11)");
  4893. entity.Property(e => e.PrizeFlag4).HasColumnType("int(11)");
  4894. entity.Property(e => e.RealName)
  4895. .HasColumnType("varchar(30)")
  4896. .HasCharSet("utf8")
  4897. .HasCollation("utf8_general_ci");
  4898. });
  4899. modelBuilder.Entity<ProductComment>(entity =>
  4900. {
  4901. entity.Property(e => e.Id).HasColumnType("int(11)");
  4902. entity.Property(e => e.AgreeCount).HasColumnType("int(11)");
  4903. entity.Property(e => e.BackCount).HasColumnType("int(11)");
  4904. entity.Property(e => e.Contents)
  4905. .HasColumnType("varchar(200)")
  4906. .HasCharSet("utf8")
  4907. .HasCollation("utf8_general_ci");
  4908. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4909. entity.Property(e => e.CreateMan)
  4910. .HasColumnType("varchar(50)")
  4911. .HasCharSet("utf8")
  4912. .HasCollation("utf8_general_ci");
  4913. entity.Property(e => e.HasPhoto)
  4914. .HasColumnType("bit(1)")
  4915. .HasDefaultValueSql("b'0'");
  4916. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4917. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  4918. entity.Property(e => e.PhotoList)
  4919. .HasColumnType("mediumtext")
  4920. .HasCharSet("utf8")
  4921. .HasCollation("utf8_general_ci");
  4922. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  4923. entity.Property(e => e.ProductNormId).HasColumnType("int(11)");
  4924. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4925. entity.Property(e => e.SeoDescription)
  4926. .HasColumnType("varchar(500)")
  4927. .HasCharSet("utf8")
  4928. .HasCollation("utf8_general_ci");
  4929. entity.Property(e => e.SeoKeyword)
  4930. .HasColumnType("varchar(200)")
  4931. .HasCharSet("utf8")
  4932. .HasCollation("utf8_general_ci");
  4933. entity.Property(e => e.SeoTitle)
  4934. .HasColumnType("varchar(100)")
  4935. .HasCharSet("utf8")
  4936. .HasCollation("utf8_general_ci");
  4937. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4938. entity.Property(e => e.StarNum).HasColumnType("int(11)");
  4939. entity.Property(e => e.Status).HasColumnType("int(11)");
  4940. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4941. entity.Property(e => e.UpdateMan)
  4942. .HasColumnType("varchar(50)")
  4943. .HasCharSet("utf8")
  4944. .HasCollation("utf8_general_ci");
  4945. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4946. entity.Property(e => e.Version).HasColumnType("int(11)");
  4947. });
  4948. modelBuilder.Entity<ProductCommentAgree>(entity =>
  4949. {
  4950. entity.Property(e => e.Id).HasColumnType("int(11)");
  4951. entity.Property(e => e.ProductCommentId).HasColumnType("int(11)");
  4952. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4953. });
  4954. modelBuilder.Entity<ProductFareAreas>(entity =>
  4955. {
  4956. entity.Property(e => e.Id).HasColumnType("int(11)");
  4957. entity.Property(e => e.Areas)
  4958. .HasColumnType("longtext")
  4959. .HasCharSet("utf8")
  4960. .HasCollation("utf8_general_ci");
  4961. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4962. entity.Property(e => e.CreateMan)
  4963. .HasColumnType("varchar(50)")
  4964. .HasCharSet("utf8")
  4965. .HasCollation("utf8_general_ci");
  4966. entity.Property(e => e.FirstAmount).HasColumnType("decimal(18,2)");
  4967. entity.Property(e => e.FirstFee).HasColumnType("decimal(18,2)");
  4968. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4969. entity.Property(e => e.MoreAmount).HasColumnType("decimal(18,2)");
  4970. entity.Property(e => e.MoreFee).HasColumnType("decimal(18,2)");
  4971. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4972. entity.Property(e => e.SeoDescription)
  4973. .HasColumnType("varchar(500)")
  4974. .HasCharSet("utf8")
  4975. .HasCollation("utf8_general_ci");
  4976. entity.Property(e => e.SeoKeyword)
  4977. .HasColumnType("varchar(200)")
  4978. .HasCharSet("utf8")
  4979. .HasCollation("utf8_general_ci");
  4980. entity.Property(e => e.SeoTitle)
  4981. .HasColumnType("varchar(100)")
  4982. .HasCharSet("utf8")
  4983. .HasCollation("utf8_general_ci");
  4984. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4985. entity.Property(e => e.Status).HasColumnType("int(11)");
  4986. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  4987. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4988. entity.Property(e => e.UpdateMan)
  4989. .HasColumnType("varchar(50)")
  4990. .HasCharSet("utf8")
  4991. .HasCollation("utf8_general_ci");
  4992. entity.Property(e => e.Version).HasColumnType("int(11)");
  4993. });
  4994. modelBuilder.Entity<ProductFareTemp>(entity =>
  4995. {
  4996. entity.Property(e => e.Id).HasColumnType("int(11)");
  4997. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4998. entity.Property(e => e.CreateMan)
  4999. .HasColumnType("varchar(50)")
  5000. .HasCharSet("utf8")
  5001. .HasCollation("utf8_general_ci");
  5002. entity.Property(e => e.FirstAmount).HasColumnType("decimal(18,2)");
  5003. entity.Property(e => e.FirstFee).HasColumnType("decimal(18,2)");
  5004. entity.Property(e => e.IsFree)
  5005. .HasColumnType("bit(1)")
  5006. .HasDefaultValueSql("b'0'");
  5007. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5008. entity.Property(e => e.MeterMode).HasColumnType("int(11)");
  5009. entity.Property(e => e.MoreAmount).HasColumnType("decimal(18,2)");
  5010. entity.Property(e => e.MoreFee).HasColumnType("decimal(18,2)");
  5011. entity.Property(e => e.Name)
  5012. .HasColumnType("varchar(50)")
  5013. .HasCharSet("utf8")
  5014. .HasCollation("utf8_general_ci");
  5015. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5016. entity.Property(e => e.SendAddress)
  5017. .HasColumnType("varchar(50)")
  5018. .HasCharSet("utf8")
  5019. .HasCollation("utf8_general_ci");
  5020. entity.Property(e => e.SendAreas)
  5021. .HasColumnType("varchar(30)")
  5022. .HasCharSet("utf8")
  5023. .HasCollation("utf8_general_ci");
  5024. entity.Property(e => e.SendDate).HasColumnType("int(11)");
  5025. entity.Property(e => e.SeoDescription)
  5026. .HasColumnType("varchar(500)")
  5027. .HasCharSet("utf8")
  5028. .HasCollation("utf8_general_ci");
  5029. entity.Property(e => e.SeoKeyword)
  5030. .HasColumnType("varchar(200)")
  5031. .HasCharSet("utf8")
  5032. .HasCollation("utf8_general_ci");
  5033. entity.Property(e => e.SeoTitle)
  5034. .HasColumnType("varchar(100)")
  5035. .HasCharSet("utf8")
  5036. .HasCollation("utf8_general_ci");
  5037. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5038. entity.Property(e => e.Status).HasColumnType("int(11)");
  5039. entity.Property(e => e.TransportMode).HasColumnType("int(11)");
  5040. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5041. entity.Property(e => e.UpdateMan)
  5042. .HasColumnType("varchar(50)")
  5043. .HasCharSet("utf8")
  5044. .HasCollation("utf8_general_ci");
  5045. entity.Property(e => e.Version).HasColumnType("int(11)");
  5046. });
  5047. modelBuilder.Entity<ProductKeys>(entity =>
  5048. {
  5049. entity.HasKey(e => e.Name)
  5050. .HasName("PRIMARY");
  5051. entity.Property(e => e.Name)
  5052. .HasColumnType("varchar(10)")
  5053. .HasCharSet("utf8")
  5054. .HasCollation("utf8_general_ci");
  5055. entity.Property(e => e.ColIds)
  5056. .HasColumnType("longtext")
  5057. .HasCharSet("utf8")
  5058. .HasCollation("utf8_general_ci");
  5059. entity.Property(e => e.ProductIds)
  5060. .HasColumnType("longtext")
  5061. .HasCharSet("utf8")
  5062. .HasCollation("utf8_general_ci");
  5063. });
  5064. modelBuilder.Entity<ProductNorm>(entity =>
  5065. {
  5066. entity.Property(e => e.Id).HasColumnType("int(11)");
  5067. entity.Property(e => e.BuyCount).HasColumnType("int(11)");
  5068. entity.Property(e => e.Code)
  5069. .HasColumnType("varchar(50)")
  5070. .HasCharSet("utf8")
  5071. .HasCollation("utf8_general_ci");
  5072. entity.Property(e => e.ColName)
  5073. .HasColumnType("varchar(50)")
  5074. .HasCharSet("utf8")
  5075. .HasCollation("utf8_general_ci");
  5076. entity.Property(e => e.CostPrice).HasColumnType("decimal(18,2)");
  5077. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5078. entity.Property(e => e.CreateMan)
  5079. .HasColumnType("varchar(50)")
  5080. .HasCharSet("utf8")
  5081. .HasCollation("utf8_general_ci");
  5082. entity.Property(e => e.IdList)
  5083. .HasColumnType("varchar(50)")
  5084. .HasCharSet("utf8")
  5085. .HasCollation("utf8_general_ci");
  5086. entity.Property(e => e.Integral).HasColumnType("decimal(18,2)");
  5087. entity.Property(e => e.LimitCount).HasColumnType("int(11)");
  5088. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5089. entity.Property(e => e.Price).HasColumnType("decimal(18,2)");
  5090. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  5091. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5092. entity.Property(e => e.SeoDescription)
  5093. .HasColumnType("varchar(500)")
  5094. .HasCharSet("utf8")
  5095. .HasCollation("utf8_general_ci");
  5096. entity.Property(e => e.SeoKeyword)
  5097. .HasColumnType("varchar(200)")
  5098. .HasCharSet("utf8")
  5099. .HasCollation("utf8_general_ci");
  5100. entity.Property(e => e.SeoTitle)
  5101. .HasColumnType("varchar(100)")
  5102. .HasCharSet("utf8")
  5103. .HasCollation("utf8_general_ci");
  5104. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5105. entity.Property(e => e.Status).HasColumnType("int(11)");
  5106. entity.Property(e => e.Stock).HasColumnType("int(11)");
  5107. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5108. entity.Property(e => e.UpdateMan)
  5109. .HasColumnType("varchar(50)")
  5110. .HasCharSet("utf8")
  5111. .HasCollation("utf8_general_ci");
  5112. entity.Property(e => e.UserIntegral).HasColumnType("decimal(18,2)");
  5113. entity.Property(e => e.UserPrice).HasColumnType("decimal(18,2)");
  5114. entity.Property(e => e.Version).HasColumnType("int(11)");
  5115. });
  5116. modelBuilder.Entity<ProductNormItem>(entity =>
  5117. {
  5118. entity.Property(e => e.Id).HasColumnType("int(11)");
  5119. entity.Property(e => e.ColName)
  5120. .HasColumnType("varchar(50)")
  5121. .HasCharSet("utf8")
  5122. .HasCollation("utf8_general_ci");
  5123. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5124. entity.Property(e => e.CreateMan)
  5125. .HasColumnType("varchar(50)")
  5126. .HasCharSet("utf8")
  5127. .HasCollation("utf8_general_ci");
  5128. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5129. entity.Property(e => e.ParentId).HasColumnType("int(11)");
  5130. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  5131. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5132. entity.Property(e => e.SeoDescription)
  5133. .HasColumnType("varchar(500)")
  5134. .HasCharSet("utf8")
  5135. .HasCollation("utf8_general_ci");
  5136. entity.Property(e => e.SeoKeyword)
  5137. .HasColumnType("varchar(200)")
  5138. .HasCharSet("utf8")
  5139. .HasCollation("utf8_general_ci");
  5140. entity.Property(e => e.SeoTitle)
  5141. .HasColumnType("varchar(100)")
  5142. .HasCharSet("utf8")
  5143. .HasCollation("utf8_general_ci");
  5144. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5145. entity.Property(e => e.Status).HasColumnType("int(11)");
  5146. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5147. entity.Property(e => e.UpdateMan)
  5148. .HasColumnType("varchar(50)")
  5149. .HasCharSet("utf8")
  5150. .HasCollation("utf8_general_ci");
  5151. entity.Property(e => e.Version).HasColumnType("int(11)");
  5152. });
  5153. modelBuilder.Entity<ProductNormTemp>(entity =>
  5154. {
  5155. entity.Property(e => e.Id).HasColumnType("int(11)");
  5156. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5157. entity.Property(e => e.CreateMan)
  5158. .HasColumnType("varchar(50)")
  5159. .HasCharSet("utf8")
  5160. .HasCollation("utf8_general_ci");
  5161. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5162. entity.Property(e => e.Name)
  5163. .HasColumnType("varchar(50)")
  5164. .HasCharSet("utf8")
  5165. .HasCollation("utf8_general_ci");
  5166. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5167. entity.Property(e => e.SeoDescription)
  5168. .HasColumnType("varchar(500)")
  5169. .HasCharSet("utf8")
  5170. .HasCollation("utf8_general_ci");
  5171. entity.Property(e => e.SeoKeyword)
  5172. .HasColumnType("varchar(200)")
  5173. .HasCharSet("utf8")
  5174. .HasCollation("utf8_general_ci");
  5175. entity.Property(e => e.SeoTitle)
  5176. .HasColumnType("varchar(100)")
  5177. .HasCharSet("utf8")
  5178. .HasCollation("utf8_general_ci");
  5179. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5180. entity.Property(e => e.Status).HasColumnType("int(11)");
  5181. entity.Property(e => e.TempJsonData)
  5182. .HasColumnType("longtext")
  5183. .HasCharSet("utf8")
  5184. .HasCollation("utf8_general_ci");
  5185. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5186. entity.Property(e => e.UpdateMan)
  5187. .HasColumnType("varchar(50)")
  5188. .HasCharSet("utf8")
  5189. .HasCollation("utf8_general_ci");
  5190. entity.Property(e => e.Version).HasColumnType("int(11)");
  5191. });
  5192. modelBuilder.Entity<Products>(entity =>
  5193. {
  5194. entity.Property(e => e.Id).HasColumnType("int(11)");
  5195. entity.Property(e => e.BuyCount).HasColumnType("int(11)");
  5196. entity.Property(e => e.ColId)
  5197. .HasColumnType("varchar(30)")
  5198. .HasCharSet("utf8")
  5199. .HasCollation("utf8_general_ci");
  5200. entity.Property(e => e.CommentCount).HasColumnType("int(11)");
  5201. entity.Property(e => e.Contents)
  5202. .HasColumnType("longtext")
  5203. .HasCharSet("utf8")
  5204. .HasCollation("utf8_general_ci");
  5205. entity.Property(e => e.CostPrice).HasColumnType("decimal(18,2)");
  5206. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5207. entity.Property(e => e.CreateMan)
  5208. .HasColumnType("varchar(50)")
  5209. .HasCharSet("utf8")
  5210. .HasCollation("utf8_general_ci");
  5211. entity.Property(e => e.DetailPicPath)
  5212. .HasColumnType("varchar(500)")
  5213. .HasCharSet("utf8")
  5214. .HasCollation("utf8_general_ci");
  5215. entity.Property(e => e.Details)
  5216. .HasColumnType("longtext")
  5217. .HasCharSet("utf8")
  5218. .HasCollation("utf8_general_ci");
  5219. entity.Property(e => e.EndDate).HasColumnType("datetime");
  5220. entity.Property(e => e.FareTemplateId).HasColumnType("int(11)");
  5221. entity.Property(e => e.GoodPercent).HasColumnType("decimal(18,2)");
  5222. entity.Property(e => e.Integral).HasColumnType("decimal(18,2)");
  5223. entity.Property(e => e.IsLimit)
  5224. .HasColumnType("bit(1)")
  5225. .HasDefaultValueSql("b'0'");
  5226. entity.Property(e => e.IsRecommend)
  5227. .HasColumnType("bit(1)")
  5228. .HasDefaultValueSql("b'0'");
  5229. entity.Property(e => e.IsRecommend2)
  5230. .HasColumnType("bit(1)")
  5231. .HasDefaultValueSql("b'0'");
  5232. entity.Property(e => e.IsRecommend3)
  5233. .HasColumnType("bit(1)")
  5234. .HasDefaultValueSql("b'0'");
  5235. entity.Property(e => e.KeyWord)
  5236. .HasColumnType("varchar(500)")
  5237. .HasCharSet("utf8")
  5238. .HasCollation("utf8_general_ci");
  5239. entity.Property(e => e.LimitCount).HasColumnType("int(11)");
  5240. entity.Property(e => e.LinkUrl)
  5241. .HasColumnType("varchar(500)")
  5242. .HasCharSet("utf8")
  5243. .HasCollation("utf8_general_ci");
  5244. entity.Property(e => e.ListPicPath)
  5245. .HasColumnType("varchar(200)")
  5246. .HasCharSet("utf8")
  5247. .HasCollation("utf8_general_ci");
  5248. entity.Property(e => e.MemberPrice).HasColumnType("decimal(18,2)");
  5249. entity.Property(e => e.MerchantClassId).HasColumnType("int(11)");
  5250. entity.Property(e => e.MerchantColId)
  5251. .HasColumnType("varchar(30)")
  5252. .HasCharSet("utf8")
  5253. .HasCollation("utf8_general_ci");
  5254. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5255. entity.Property(e => e.MonthSale).HasColumnType("int(11)");
  5256. entity.Property(e => e.NormIds)
  5257. .HasColumnType("varchar(100)")
  5258. .HasCharSet("utf8")
  5259. .HasCollation("utf8_general_ci");
  5260. entity.Property(e => e.NormJson)
  5261. .HasColumnType("longtext")
  5262. .HasCharSet("utf8")
  5263. .HasCollation("utf8_general_ci");
  5264. entity.Property(e => e.Price).HasColumnType("decimal(18,2)");
  5265. entity.Property(e => e.ProductCode)
  5266. .HasColumnType("varchar(30)")
  5267. .HasCharSet("utf8")
  5268. .HasCollation("utf8_general_ci");
  5269. entity.Property(e => e.ProductName)
  5270. .HasColumnType("varchar(100)")
  5271. .HasCharSet("utf8")
  5272. .HasCollation("utf8_general_ci");
  5273. entity.Property(e => e.PublishDate).HasColumnType("datetime");
  5274. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5275. entity.Property(e => e.SeoDescription)
  5276. .HasColumnType("varchar(500)")
  5277. .HasCharSet("utf8")
  5278. .HasCollation("utf8_general_ci");
  5279. entity.Property(e => e.SeoKeyword)
  5280. .HasColumnType("varchar(200)")
  5281. .HasCharSet("utf8")
  5282. .HasCollation("utf8_general_ci");
  5283. entity.Property(e => e.SeoTitle)
  5284. .HasColumnType("varchar(100)")
  5285. .HasCharSet("utf8")
  5286. .HasCollation("utf8_general_ci");
  5287. entity.Property(e => e.ShareDetail)
  5288. .HasColumnType("varchar(200)")
  5289. .HasCharSet("utf8")
  5290. .HasCollation("utf8_general_ci");
  5291. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5292. entity.Property(e => e.SourcePrice).HasColumnType("decimal(18,2)");
  5293. entity.Property(e => e.StartDate).HasColumnType("datetime");
  5294. entity.Property(e => e.Status).HasColumnType("int(11)");
  5295. entity.Property(e => e.Stock).HasColumnType("int(11)");
  5296. entity.Property(e => e.Title)
  5297. .HasColumnType("varchar(50)")
  5298. .HasCharSet("utf8")
  5299. .HasCollation("utf8_general_ci");
  5300. entity.Property(e => e.Title2)
  5301. .HasColumnType("varchar(50)")
  5302. .HasCharSet("utf8")
  5303. .HasCollation("utf8_general_ci");
  5304. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5305. entity.Property(e => e.UpdateMan)
  5306. .HasColumnType("varchar(50)")
  5307. .HasCharSet("utf8")
  5308. .HasCollation("utf8_general_ci");
  5309. entity.Property(e => e.UserIntegral).HasColumnType("decimal(18,2)");
  5310. entity.Property(e => e.Version).HasColumnType("int(11)");
  5311. });
  5312. modelBuilder.Entity<ProfitObjectActivations>(entity =>
  5313. {
  5314. entity.Property(e => e.Id).HasColumnType("int(11)");
  5315. entity.Property(e => e.Code)
  5316. .HasColumnType("varchar(32)")
  5317. .HasCharSet("utf8")
  5318. .HasCollation("utf8_general_ci");
  5319. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5320. entity.Property(e => e.CreateMan)
  5321. .HasColumnType("varchar(50)")
  5322. .HasCharSet("utf8")
  5323. .HasCollation("utf8_general_ci");
  5324. entity.Property(e => e.EndDate).HasColumnType("datetime");
  5325. entity.Property(e => e.ExpiredNumber).HasColumnType("decimal(18,6)");
  5326. entity.Property(e => e.LimitCustomerDate).HasColumnType("datetime");
  5327. entity.Property(e => e.LimitDateKind).HasColumnType("int(11)");
  5328. entity.Property(e => e.LimitDateVal).HasColumnType("int(11)");
  5329. entity.Property(e => e.MachineCount).HasColumnType("int(11)");
  5330. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5331. entity.Property(e => e.ProfitNumber).HasColumnType("decimal(18,6)");
  5332. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5333. entity.Property(e => e.SeoDescription)
  5334. .HasColumnType("varchar(500)")
  5335. .HasCharSet("utf8")
  5336. .HasCollation("utf8_general_ci");
  5337. entity.Property(e => e.SeoKeyword)
  5338. .HasColumnType("varchar(200)")
  5339. .HasCharSet("utf8")
  5340. .HasCollation("utf8_general_ci");
  5341. entity.Property(e => e.SeoTitle)
  5342. .HasColumnType("varchar(100)")
  5343. .HasCharSet("utf8")
  5344. .HasCollation("utf8_general_ci");
  5345. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5346. entity.Property(e => e.StartDate).HasColumnType("datetime");
  5347. entity.Property(e => e.Status).HasColumnType("int(11)");
  5348. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5349. entity.Property(e => e.UpdateMan)
  5350. .HasColumnType("varchar(50)")
  5351. .HasCharSet("utf8")
  5352. .HasCollation("utf8_general_ci");
  5353. entity.Property(e => e.Version).HasColumnType("int(11)");
  5354. });
  5355. modelBuilder.Entity<ProfitObjectContinueFloors>(entity =>
  5356. {
  5357. entity.Property(e => e.Id).HasColumnType("int(11)");
  5358. entity.Property(e => e.AddProfitVal).HasColumnType("decimal(18,6)");
  5359. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5360. entity.Property(e => e.CreateMan)
  5361. .HasColumnType("varchar(50)")
  5362. .HasCharSet("utf8")
  5363. .HasCollation("utf8_general_ci");
  5364. entity.Property(e => e.FloorNumber).HasColumnType("int(11)");
  5365. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5366. entity.Property(e => e.Percents).HasColumnType("decimal(18,6)");
  5367. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5368. entity.Property(e => e.SeoDescription)
  5369. .HasColumnType("varchar(500)")
  5370. .HasCharSet("utf8")
  5371. .HasCollation("utf8_general_ci");
  5372. entity.Property(e => e.SeoKeyword)
  5373. .HasColumnType("varchar(200)")
  5374. .HasCharSet("utf8")
  5375. .HasCollation("utf8_general_ci");
  5376. entity.Property(e => e.SeoTitle)
  5377. .HasColumnType("varchar(100)")
  5378. .HasCharSet("utf8")
  5379. .HasCollation("utf8_general_ci");
  5380. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5381. entity.Property(e => e.Status).HasColumnType("int(11)");
  5382. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5383. entity.Property(e => e.UpdateMan)
  5384. .HasColumnType("varchar(50)")
  5385. .HasCharSet("utf8")
  5386. .HasCollation("utf8_general_ci");
  5387. entity.Property(e => e.Version).HasColumnType("int(11)");
  5388. });
  5389. modelBuilder.Entity<ProfitObjectFloors>(entity =>
  5390. {
  5391. entity.Property(e => e.Id).HasColumnType("int(11)");
  5392. entity.Property(e => e.AddProfitVal).HasColumnType("decimal(18,6)");
  5393. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5394. entity.Property(e => e.CreateMan)
  5395. .HasColumnType("varchar(50)")
  5396. .HasCharSet("utf8")
  5397. .HasCollation("utf8_general_ci");
  5398. entity.Property(e => e.FloorDiff)
  5399. .HasColumnType("bit(1)")
  5400. .HasDefaultValueSql("b'0'");
  5401. entity.Property(e => e.FloorNumber).HasColumnType("int(11)");
  5402. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5403. entity.Property(e => e.Percents).HasColumnType("decimal(18,6)");
  5404. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5405. entity.Property(e => e.SeoDescription)
  5406. .HasColumnType("varchar(500)")
  5407. .HasCharSet("utf8")
  5408. .HasCollation("utf8_general_ci");
  5409. entity.Property(e => e.SeoKeyword)
  5410. .HasColumnType("varchar(200)")
  5411. .HasCharSet("utf8")
  5412. .HasCollation("utf8_general_ci");
  5413. entity.Property(e => e.SeoTitle)
  5414. .HasColumnType("varchar(100)")
  5415. .HasCharSet("utf8")
  5416. .HasCollation("utf8_general_ci");
  5417. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5418. entity.Property(e => e.Status).HasColumnType("int(11)");
  5419. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5420. entity.Property(e => e.UpdateMan)
  5421. .HasColumnType("varchar(50)")
  5422. .HasCharSet("utf8")
  5423. .HasCollation("utf8_general_ci");
  5424. entity.Property(e => e.Version).HasColumnType("int(11)");
  5425. });
  5426. modelBuilder.Entity<ProfitObjectLevelKinds>(entity =>
  5427. {
  5428. entity.Property(e => e.Id).HasColumnType("int(11)");
  5429. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5430. entity.Property(e => e.CreateMan)
  5431. .HasColumnType("varchar(50)")
  5432. .HasCharSet("utf8")
  5433. .HasCollation("utf8_general_ci");
  5434. entity.Property(e => e.Name)
  5435. .HasColumnType("varchar(50)")
  5436. .HasCharSet("utf8")
  5437. .HasCollation("utf8_general_ci");
  5438. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5439. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5440. entity.Property(e => e.SeoDescription)
  5441. .HasColumnType("varchar(500)")
  5442. .HasCharSet("utf8")
  5443. .HasCollation("utf8_general_ci");
  5444. entity.Property(e => e.SeoKeyword)
  5445. .HasColumnType("varchar(200)")
  5446. .HasCharSet("utf8")
  5447. .HasCollation("utf8_general_ci");
  5448. entity.Property(e => e.SeoTitle)
  5449. .HasColumnType("varchar(100)")
  5450. .HasCharSet("utf8")
  5451. .HasCollation("utf8_general_ci");
  5452. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5453. entity.Property(e => e.Status).HasColumnType("int(11)");
  5454. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5455. entity.Property(e => e.UpdateMan)
  5456. .HasColumnType("varchar(50)")
  5457. .HasCharSet("utf8")
  5458. .HasCollation("utf8_general_ci");
  5459. entity.Property(e => e.Version).HasColumnType("int(11)");
  5460. });
  5461. modelBuilder.Entity<ProfitObjectLevels>(entity =>
  5462. {
  5463. entity.Property(e => e.Id).HasColumnType("int(11)");
  5464. entity.Property(e => e.AddProfitVal).HasColumnType("decimal(18,6)");
  5465. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5466. entity.Property(e => e.CreateMan)
  5467. .HasColumnType("varchar(50)")
  5468. .HasCharSet("utf8")
  5469. .HasCollation("utf8_general_ci");
  5470. entity.Property(e => e.DebitAddProfitVal).HasColumnType("decimal(18,2)");
  5471. entity.Property(e => e.DebitPercents).HasColumnType("decimal(18,2)");
  5472. entity.Property(e => e.KindId).HasColumnType("int(11)");
  5473. entity.Property(e => e.LevelDiff)
  5474. .HasColumnType("bit(1)")
  5475. .HasDefaultValueSql("b'0'");
  5476. entity.Property(e => e.LevelNumber).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.Percents).HasColumnType("decimal(18,6)");
  5482. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5483. entity.Property(e => e.SeoDescription)
  5484. .HasColumnType("varchar(500)")
  5485. .HasCharSet("utf8")
  5486. .HasCollation("utf8_general_ci");
  5487. entity.Property(e => e.SeoKeyword)
  5488. .HasColumnType("varchar(200)")
  5489. .HasCharSet("utf8")
  5490. .HasCollation("utf8_general_ci");
  5491. entity.Property(e => e.SeoTitle)
  5492. .HasColumnType("varchar(100)")
  5493. .HasCharSet("utf8")
  5494. .HasCollation("utf8_general_ci");
  5495. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5496. entity.Property(e => e.Status).HasColumnType("int(11)");
  5497. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5498. entity.Property(e => e.UpdateMan)
  5499. .HasColumnType("varchar(50)")
  5500. .HasCharSet("utf8")
  5501. .HasCollation("utf8_general_ci");
  5502. entity.Property(e => e.Version).HasColumnType("int(11)");
  5503. });
  5504. modelBuilder.Entity<ProfitObjects>(entity =>
  5505. {
  5506. entity.Property(e => e.Id).HasColumnType("int(11)");
  5507. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5508. entity.Property(e => e.CreateMan)
  5509. .HasColumnType("varchar(50)")
  5510. .HasCharSet("utf8")
  5511. .HasCollation("utf8_general_ci");
  5512. entity.Property(e => e.EndDate).HasColumnType("datetime");
  5513. entity.Property(e => e.MaxFloor).HasColumnType("int(11)");
  5514. entity.Property(e => e.MaxLevel).HasColumnType("int(11)");
  5515. entity.Property(e => e.MaxLevelContinue)
  5516. .HasColumnType("bit(1)")
  5517. .HasDefaultValueSql("b'0'");
  5518. entity.Property(e => e.MinProfitVal).HasColumnType("decimal(18,5)");
  5519. entity.Property(e => e.Name)
  5520. .HasColumnType("varchar(50)")
  5521. .HasCharSet("utf8")
  5522. .HasCollation("utf8_general_ci");
  5523. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5524. entity.Property(e => e.SeoDescription)
  5525. .HasColumnType("varchar(500)")
  5526. .HasCharSet("utf8")
  5527. .HasCollation("utf8_general_ci");
  5528. entity.Property(e => e.SeoKeyword)
  5529. .HasColumnType("varchar(200)")
  5530. .HasCharSet("utf8")
  5531. .HasCollation("utf8_general_ci");
  5532. entity.Property(e => e.SeoTitle)
  5533. .HasColumnType("varchar(100)")
  5534. .HasCharSet("utf8")
  5535. .HasCollation("utf8_general_ci");
  5536. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5537. entity.Property(e => e.StartDate).HasColumnType("datetime");
  5538. entity.Property(e => e.Status).HasColumnType("int(11)");
  5539. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5540. entity.Property(e => e.UpdateMan)
  5541. .HasColumnType("varchar(50)")
  5542. .HasCharSet("utf8")
  5543. .HasCollation("utf8_general_ci");
  5544. entity.Property(e => e.Version).HasColumnType("int(11)");
  5545. });
  5546. modelBuilder.Entity<ProfitObjectsActiveCheck>(entity =>
  5547. {
  5548. entity.HasKey(e => e.CheckData)
  5549. .HasName("PRIMARY");
  5550. entity.Property(e => e.CheckData)
  5551. .HasColumnType("varchar(100)")
  5552. .HasCharSet("utf8")
  5553. .HasCollation("utf8_general_ci");
  5554. });
  5555. modelBuilder.Entity<ProfitObjectsActiveParams>(entity =>
  5556. {
  5557. entity.Property(e => e.Id).HasColumnType("int(11)");
  5558. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5559. entity.Property(e => e.CreateMan)
  5560. .HasColumnType("varchar(50)")
  5561. .HasCharSet("utf8")
  5562. .HasCollation("utf8_general_ci");
  5563. entity.Property(e => e.Name)
  5564. .HasColumnType("varchar(50)")
  5565. .HasCharSet("utf8")
  5566. .HasCollation("utf8_general_ci");
  5567. entity.Property(e => e.ProfitObjectsActiveId).HasColumnType("int(11)");
  5568. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5569. entity.Property(e => e.Remark)
  5570. .HasColumnType("varchar(200)")
  5571. .HasCharSet("utf8")
  5572. .HasCollation("utf8_general_ci");
  5573. entity.Property(e => e.SeoDescription)
  5574. .HasColumnType("varchar(500)")
  5575. .HasCharSet("utf8")
  5576. .HasCollation("utf8_general_ci");
  5577. entity.Property(e => e.SeoKeyword)
  5578. .HasColumnType("varchar(200)")
  5579. .HasCharSet("utf8")
  5580. .HasCollation("utf8_general_ci");
  5581. entity.Property(e => e.SeoTitle)
  5582. .HasColumnType("varchar(100)")
  5583. .HasCharSet("utf8")
  5584. .HasCollation("utf8_general_ci");
  5585. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5586. entity.Property(e => e.Status).HasColumnType("int(11)");
  5587. entity.Property(e => e.TextValue)
  5588. .HasColumnType("varchar(20)")
  5589. .HasCharSet("utf8")
  5590. .HasCollation("utf8_general_ci");
  5591. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5592. entity.Property(e => e.UpdateMan)
  5593. .HasColumnType("varchar(50)")
  5594. .HasCharSet("utf8")
  5595. .HasCollation("utf8_general_ci");
  5596. entity.Property(e => e.Version).HasColumnType("int(11)");
  5597. });
  5598. modelBuilder.Entity<ProfitObjectsActives>(entity =>
  5599. {
  5600. entity.Property(e => e.Id).HasColumnType("int(11)");
  5601. entity.Property(e => e.CardType).HasColumnType("int(11)");
  5602. entity.Property(e => e.Code)
  5603. .HasColumnType("varchar(50)")
  5604. .HasCharSet("utf8")
  5605. .HasCollation("utf8_general_ci");
  5606. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5607. entity.Property(e => e.CreateMan)
  5608. .HasColumnType("varchar(50)")
  5609. .HasCharSet("utf8")
  5610. .HasCollation("utf8_general_ci");
  5611. entity.Property(e => e.EndDate).HasColumnType("datetime");
  5612. entity.Property(e => e.FinishNumber).HasColumnType("decimal(18,6)");
  5613. entity.Property(e => e.LimitCustomerDate).HasColumnType("datetime");
  5614. entity.Property(e => e.LimitDateKind).HasColumnType("int(11)");
  5615. entity.Property(e => e.LimitDateVal).HasColumnType("int(11)");
  5616. entity.Property(e => e.MachineCount).HasColumnType("int(11)");
  5617. entity.Property(e => e.Name)
  5618. .HasColumnType("varchar(50)")
  5619. .HasCharSet("utf8")
  5620. .HasCollation("utf8_general_ci");
  5621. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5622. entity.Property(e => e.ProfitNumber).HasColumnType("decimal(18,6)");
  5623. entity.Property(e => e.ProfitNumber2).HasColumnType("decimal(18,2)");
  5624. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5625. entity.Property(e => e.SeoDescription)
  5626. .HasColumnType("varchar(500)")
  5627. .HasCharSet("utf8")
  5628. .HasCollation("utf8_general_ci");
  5629. entity.Property(e => e.SeoKeyword)
  5630. .HasColumnType("varchar(200)")
  5631. .HasCharSet("utf8")
  5632. .HasCollation("utf8_general_ci");
  5633. entity.Property(e => e.SeoTitle)
  5634. .HasColumnType("varchar(100)")
  5635. .HasCharSet("utf8")
  5636. .HasCollation("utf8_general_ci");
  5637. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5638. entity.Property(e => e.StartDate).HasColumnType("datetime");
  5639. entity.Property(e => e.Status).HasColumnType("int(11)");
  5640. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5641. entity.Property(e => e.UpdateMan)
  5642. .HasColumnType("varchar(50)")
  5643. .HasCharSet("utf8")
  5644. .HasCollation("utf8_general_ci");
  5645. entity.Property(e => e.Version).HasColumnType("int(11)");
  5646. });
  5647. modelBuilder.Entity<ProfitObjectsActivesForId>(entity =>
  5648. {
  5649. entity.HasKey(e => e.Name)
  5650. .HasName("PRIMARY");
  5651. entity.Property(e => e.Name)
  5652. .HasColumnType("varchar(50)")
  5653. .HasCharSet("utf8")
  5654. .HasCollation("utf8_general_ci");
  5655. entity.Property(e => e.ActivityId).HasColumnType("int(11)");
  5656. });
  5657. modelBuilder.Entity<ProfitObjectsRule>(entity =>
  5658. {
  5659. entity.Property(e => e.Id).HasColumnType("int(11)");
  5660. entity.Property(e => e.Code)
  5661. .HasColumnType("varchar(50)")
  5662. .HasCharSet("utf8")
  5663. .HasCollation("utf8_general_ci");
  5664. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5665. entity.Property(e => e.CreateMan)
  5666. .HasColumnType("varchar(50)")
  5667. .HasCharSet("utf8")
  5668. .HasCollation("utf8_general_ci");
  5669. entity.Property(e => e.EndDate).HasColumnType("datetime");
  5670. entity.Property(e => e.Name)
  5671. .HasColumnType("varchar(50)")
  5672. .HasCharSet("utf8")
  5673. .HasCollation("utf8_general_ci");
  5674. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5675. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5676. entity.Property(e => e.SeoDescription)
  5677. .HasColumnType("varchar(500)")
  5678. .HasCharSet("utf8")
  5679. .HasCollation("utf8_general_ci");
  5680. entity.Property(e => e.SeoKeyword)
  5681. .HasColumnType("varchar(200)")
  5682. .HasCharSet("utf8")
  5683. .HasCollation("utf8_general_ci");
  5684. entity.Property(e => e.SeoTitle)
  5685. .HasColumnType("varchar(100)")
  5686. .HasCharSet("utf8")
  5687. .HasCollation("utf8_general_ci");
  5688. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5689. entity.Property(e => e.StartDate).HasColumnType("datetime");
  5690. entity.Property(e => e.Status).HasColumnType("int(11)");
  5691. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5692. entity.Property(e => e.UpdateMan)
  5693. .HasColumnType("varchar(50)")
  5694. .HasCharSet("utf8")
  5695. .HasCollation("utf8_general_ci");
  5696. entity.Property(e => e.Version).HasColumnType("int(11)");
  5697. });
  5698. modelBuilder.Entity<ProfitObjectsRuleDetails>(entity =>
  5699. {
  5700. entity.Property(e => e.Id).HasColumnType("int(11)");
  5701. entity.Property(e => e.Code)
  5702. .HasColumnType("varchar(50)")
  5703. .HasCharSet("utf8")
  5704. .HasCollation("utf8_general_ci");
  5705. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5706. entity.Property(e => e.CreateMan)
  5707. .HasColumnType("varchar(50)")
  5708. .HasCharSet("utf8")
  5709. .HasCollation("utf8_general_ci");
  5710. entity.Property(e => e.DataValue)
  5711. .HasColumnType("varchar(50)")
  5712. .HasCharSet("utf8")
  5713. .HasCollation("utf8_general_ci");
  5714. entity.Property(e => e.Name)
  5715. .HasColumnType("varchar(50)")
  5716. .HasCharSet("utf8")
  5717. .HasCollation("utf8_general_ci");
  5718. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5719. entity.Property(e => e.RuleId).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<ProfitReceiveRecord>(entity =>
  5742. {
  5743. entity.Property(e => e.Id).HasColumnType("int(11)");
  5744. entity.Property(e => e.Account)
  5745. .HasColumnType("varchar(32)")
  5746. .HasCharSet("utf8")
  5747. .HasCollation("utf8_general_ci");
  5748. entity.Property(e => e.Amount).HasColumnType("decimal(18,2)");
  5749. entity.Property(e => e.AppId)
  5750. .HasColumnType("varchar(32)")
  5751. .HasCharSet("utf8")
  5752. .HasCollation("utf8_general_ci");
  5753. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5754. entity.Property(e => e.CreateMan)
  5755. .HasColumnType("varchar(50)")
  5756. .HasCharSet("utf8")
  5757. .HasCollation("utf8_general_ci");
  5758. entity.Property(e => e.CustomRelation)
  5759. .HasColumnType("varchar(10)")
  5760. .HasCharSet("utf8")
  5761. .HasCollation("utf8_general_ci");
  5762. entity.Property(e => e.Description)
  5763. .HasColumnType("varchar(50)")
  5764. .HasCharSet("utf8")
  5765. .HasCollation("utf8_general_ci");
  5766. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5767. entity.Property(e => e.Name)
  5768. .HasColumnType("varchar(32)")
  5769. .HasCharSet("utf8")
  5770. .HasCollation("utf8_general_ci");
  5771. entity.Property(e => e.OrderId)
  5772. .HasColumnType("varchar(32)")
  5773. .HasCharSet("utf8")
  5774. .HasCollation("utf8_general_ci");
  5775. entity.Property(e => e.OutOrderNo)
  5776. .HasColumnType("varchar(32)")
  5777. .HasCharSet("utf8")
  5778. .HasCollation("utf8_general_ci");
  5779. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5780. entity.Property(e => e.RelationType)
  5781. .HasColumnType("varchar(30)")
  5782. .HasCharSet("utf8")
  5783. .HasCollation("utf8_general_ci");
  5784. entity.Property(e => e.SeoDescription)
  5785. .HasColumnType("varchar(500)")
  5786. .HasCharSet("utf8")
  5787. .HasCollation("utf8_general_ci");
  5788. entity.Property(e => e.SeoKeyword)
  5789. .HasColumnType("varchar(200)")
  5790. .HasCharSet("utf8")
  5791. .HasCollation("utf8_general_ci");
  5792. entity.Property(e => e.SeoTitle)
  5793. .HasColumnType("varchar(100)")
  5794. .HasCharSet("utf8")
  5795. .HasCollation("utf8_general_ci");
  5796. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5797. entity.Property(e => e.State)
  5798. .HasColumnType("varchar(20)")
  5799. .HasCharSet("utf8")
  5800. .HasCollation("utf8_general_ci");
  5801. entity.Property(e => e.Status).HasColumnType("int(11)");
  5802. entity.Property(e => e.SubAppId)
  5803. .HasColumnType("varchar(32)")
  5804. .HasCharSet("utf8")
  5805. .HasCollation("utf8_general_ci");
  5806. entity.Property(e => e.SubMchid)
  5807. .HasColumnType("varchar(32)")
  5808. .HasCharSet("utf8")
  5809. .HasCollation("utf8_general_ci");
  5810. entity.Property(e => e.TransactionId)
  5811. .HasColumnType("varchar(32)")
  5812. .HasCharSet("utf8")
  5813. .HasCollation("utf8_general_ci");
  5814. entity.Property(e => e.Type)
  5815. .HasColumnType("varchar(30)")
  5816. .HasCharSet("utf8")
  5817. .HasCollation("utf8_general_ci");
  5818. entity.Property(e => e.UnfreezeUnsplit)
  5819. .HasColumnType("bit(1)")
  5820. .HasDefaultValueSql("b'0'");
  5821. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5822. entity.Property(e => e.UpdateMan)
  5823. .HasColumnType("varchar(50)")
  5824. .HasCharSet("utf8")
  5825. .HasCollation("utf8_general_ci");
  5826. entity.Property(e => e.Version).HasColumnType("int(11)");
  5827. });
  5828. modelBuilder.Entity<ProfitReceives>(entity =>
  5829. {
  5830. entity.Property(e => e.Id).HasColumnType("int(11)");
  5831. entity.Property(e => e.Account)
  5832. .HasColumnType("varchar(32)")
  5833. .HasCharSet("utf8")
  5834. .HasCollation("utf8_general_ci");
  5835. entity.Property(e => e.AppId)
  5836. .HasColumnType("varchar(32)")
  5837. .HasCharSet("utf8")
  5838. .HasCollation("utf8_general_ci");
  5839. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5840. entity.Property(e => e.CreateMan)
  5841. .HasColumnType("varchar(50)")
  5842. .HasCharSet("utf8")
  5843. .HasCollation("utf8_general_ci");
  5844. entity.Property(e => e.CustomRelation)
  5845. .HasColumnType("varchar(10)")
  5846. .HasCharSet("utf8")
  5847. .HasCollation("utf8_general_ci");
  5848. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5849. entity.Property(e => e.Name)
  5850. .HasColumnType("varchar(32)")
  5851. .HasCharSet("utf8")
  5852. .HasCollation("utf8_general_ci");
  5853. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5854. entity.Property(e => e.RelationType)
  5855. .HasColumnType("varchar(30)")
  5856. .HasCharSet("utf8")
  5857. .HasCollation("utf8_general_ci");
  5858. entity.Property(e => e.SeoDescription)
  5859. .HasColumnType("varchar(500)")
  5860. .HasCharSet("utf8")
  5861. .HasCollation("utf8_general_ci");
  5862. entity.Property(e => e.SeoKeyword)
  5863. .HasColumnType("varchar(200)")
  5864. .HasCharSet("utf8")
  5865. .HasCollation("utf8_general_ci");
  5866. entity.Property(e => e.SeoTitle)
  5867. .HasColumnType("varchar(100)")
  5868. .HasCharSet("utf8")
  5869. .HasCollation("utf8_general_ci");
  5870. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5871. entity.Property(e => e.Status).HasColumnType("int(11)");
  5872. entity.Property(e => e.SubAppId)
  5873. .HasColumnType("varchar(32)")
  5874. .HasCharSet("utf8")
  5875. .HasCollation("utf8_general_ci");
  5876. entity.Property(e => e.SubMchid)
  5877. .HasColumnType("varchar(32)")
  5878. .HasCharSet("utf8")
  5879. .HasCollation("utf8_general_ci");
  5880. entity.Property(e => e.Type)
  5881. .HasColumnType("varchar(30)")
  5882. .HasCharSet("utf8")
  5883. .HasCollation("utf8_general_ci");
  5884. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5885. entity.Property(e => e.UpdateMan)
  5886. .HasColumnType("varchar(50)")
  5887. .HasCharSet("utf8")
  5888. .HasCollation("utf8_general_ci");
  5889. entity.Property(e => e.Version).HasColumnType("int(11)");
  5890. });
  5891. modelBuilder.Entity<ProfitRecord>(entity =>
  5892. {
  5893. entity.Property(e => e.Id).HasColumnType("int(11)");
  5894. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  5895. entity.Property(e => e.CapFlag).HasColumnType("int(11)");
  5896. entity.Property(e => e.ClearDate).HasColumnType("datetime");
  5897. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5898. entity.Property(e => e.CreateMan)
  5899. .HasColumnType("varchar(50)")
  5900. .HasCharSet("utf8")
  5901. .HasCollation("utf8_general_ci");
  5902. entity.Property(e => e.DirectFlag)
  5903. .HasColumnType("bit(1)")
  5904. .HasDefaultValueSql("b'0'");
  5905. entity.Property(e => e.HelpMonthCount).HasColumnType("int(11)");
  5906. entity.Property(e => e.MerBuddyType).HasColumnType("int(11)");
  5907. entity.Property(e => e.MerHelpFlag)
  5908. .HasColumnType("bit(1)")
  5909. .HasDefaultValueSql("b'0'");
  5910. entity.Property(e => e.MerNo)
  5911. .HasColumnType("varchar(32)")
  5912. .HasCharSet("utf8")
  5913. .HasCollation("utf8_general_ci");
  5914. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5915. entity.Property(e => e.ParentNav)
  5916. .HasColumnType("varchar(1000)")
  5917. .HasCharSet("utf8")
  5918. .HasCollation("utf8_general_ci");
  5919. entity.Property(e => e.ProfitAmount).HasColumnType("decimal(18,2)");
  5920. entity.Property(e => e.QrPayFlag).HasColumnType("int(11)");
  5921. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5922. entity.Property(e => e.Remark)
  5923. .HasColumnType("varchar(64)")
  5924. .HasCharSet("utf8")
  5925. .HasCollation("utf8_general_ci");
  5926. entity.Property(e => e.SeoDescription)
  5927. .HasColumnType("varchar(500)")
  5928. .HasCharSet("utf8")
  5929. .HasCollation("utf8_general_ci");
  5930. entity.Property(e => e.SeoKeyword)
  5931. .HasColumnType("varchar(200)")
  5932. .HasCharSet("utf8")
  5933. .HasCollation("utf8_general_ci");
  5934. entity.Property(e => e.SeoTitle)
  5935. .HasColumnType("varchar(100)")
  5936. .HasCharSet("utf8")
  5937. .HasCollation("utf8_general_ci");
  5938. entity.Property(e => e.SnNo)
  5939. .HasColumnType("varchar(32)")
  5940. .HasCharSet("utf8")
  5941. .HasCollation("utf8_general_ci");
  5942. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5943. entity.Property(e => e.Status).HasColumnType("int(11)");
  5944. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  5945. entity.Property(e => e.TradeId).HasColumnType("int(11)");
  5946. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5947. entity.Property(e => e.UpdateMan)
  5948. .HasColumnType("varchar(50)")
  5949. .HasCharSet("utf8")
  5950. .HasCollation("utf8_general_ci");
  5951. entity.Property(e => e.UserId).HasColumnType("int(11)");
  5952. entity.Property(e => e.Version).HasColumnType("int(11)");
  5953. });
  5954. modelBuilder.Entity<ProfitRewardRecord>(entity =>
  5955. {
  5956. entity.Property(e => e.Id).HasColumnType("int(11)");
  5957. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  5958. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  5959. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5960. entity.Property(e => e.CreateMan)
  5961. .HasColumnType("varchar(50)")
  5962. .HasCharSet("utf8")
  5963. .HasCollation("utf8_general_ci");
  5964. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  5965. entity.Property(e => e.CreditTradeProfit).HasColumnType("decimal(18,2)");
  5966. entity.Property(e => e.DebitCapSingleReward).HasColumnType("decimal(18,2)");
  5967. entity.Property(e => e.DebitCapTradeAmt).HasColumnType("decimal(18,2)");
  5968. entity.Property(e => e.DebitCapTradeNum).HasColumnType("int(11)");
  5969. entity.Property(e => e.DebitNonCapTradeAmt).HasColumnType("decimal(18,2)");
  5970. entity.Property(e => e.DebitNonTradeCapProfit).HasColumnType("decimal(18,2)");
  5971. entity.Property(e => e.DebitTradeCapProfit).HasColumnType("decimal(18,2)");
  5972. entity.Property(e => e.HelpCreditAddOrSubRate).HasColumnType("decimal(18,2)");
  5973. entity.Property(e => e.HelpCreditProfitRate).HasColumnType("decimal(18,2)");
  5974. entity.Property(e => e.HelpCreditProfitStandardRate).HasColumnType("decimal(18,2)");
  5975. entity.Property(e => e.HelpCreditTradeAmt).HasColumnType("decimal(18,2)");
  5976. entity.Property(e => e.HelpCreditTradeProfit).HasColumnType("decimal(18,2)");
  5977. entity.Property(e => e.HelpDebitAddOrSubRate).HasColumnType("decimal(18,2)");
  5978. entity.Property(e => e.HelpDebitNonCapTradeAmt).HasColumnType("decimal(18,2)");
  5979. entity.Property(e => e.HelpDebitNonTradeCapProfit).HasColumnType("decimal(18,2)");
  5980. entity.Property(e => e.HelpDebitProfitRate).HasColumnType("decimal(18,2)");
  5981. entity.Property(e => e.HelpDebitProfitStandardRate).HasColumnType("decimal(18,2)");
  5982. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5983. entity.Property(e => e.NonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  5984. entity.Property(e => e.NonQrCreditTradeProfit).HasColumnType("decimal(18,2)");
  5985. entity.Property(e => e.NonQrDebitNonTradeCapProfit).HasColumnType("decimal(18,2)");
  5986. entity.Property(e => e.NonQrDebitNotCapTradeAmt).HasColumnType("decimal(18,2)");
  5987. entity.Property(e => e.NotHelpCreditAddOrSubRate).HasColumnType("decimal(18,2)");
  5988. entity.Property(e => e.NotHelpCreditProfitRate).HasColumnType("decimal(18,2)");
  5989. entity.Property(e => e.NotHelpCreditProfitStandardRate).HasColumnType("decimal(18,2)");
  5990. entity.Property(e => e.NotHelpCreditTradeAmt).HasColumnType("decimal(18,2)");
  5991. entity.Property(e => e.NotHelpCreditTradeProfit).HasColumnType("decimal(18,2)");
  5992. entity.Property(e => e.NotHelpDebitAddOrSubRate).HasColumnType("decimal(18,2)");
  5993. entity.Property(e => e.NotHelpDebitNonCapTradeAmt).HasColumnType("decimal(18,2)");
  5994. entity.Property(e => e.NotHelpDebitNonTradeCapProfit).HasColumnType("decimal(18,2)");
  5995. entity.Property(e => e.NotHelpDebitProfitRate).HasColumnType("decimal(18,2)");
  5996. entity.Property(e => e.NotHelpDebitProfitStandardRate).HasColumnType("decimal(18,2)");
  5997. entity.Property(e => e.OtherCreditTradeAmt).HasColumnType("decimal(18,2)");
  5998. entity.Property(e => e.OtherDebitNotCapTradeAmt).HasColumnType("decimal(18,2)");
  5999. entity.Property(e => e.OtherTradeAmt).HasColumnType("decimal(18,2)");
  6000. entity.Property(e => e.ProfitType).HasColumnType("int(11)");
  6001. entity.Property(e => e.QrCreditAddOrSubRate).HasColumnType("decimal(18,2)");
  6002. entity.Property(e => e.QrCreditProfitRate).HasColumnType("decimal(18,2)");
  6003. entity.Property(e => e.QrCreditProfitStandardRate).HasColumnType("decimal(18,2)");
  6004. entity.Property(e => e.QrCreditTradeAmt).HasColumnType("decimal(18,2)");
  6005. entity.Property(e => e.QrCreditTradeProfit).HasColumnType("decimal(18,2)");
  6006. entity.Property(e => e.QrDebitAddOrSubRate).HasColumnType("decimal(18,2)");
  6007. entity.Property(e => e.QrDebitNonTradeCapProfit).HasColumnType("decimal(18,2)");
  6008. entity.Property(e => e.QrDebitNotCapTradeAmt).HasColumnType("decimal(18,2)");
  6009. entity.Property(e => e.QrDebitProfitRate).HasColumnType("decimal(18,2)");
  6010. entity.Property(e => e.QrDebitProfitStandardRate).HasColumnType("decimal(18,2)");
  6011. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6012. entity.Property(e => e.RecordNo)
  6013. .HasColumnType("varchar(32)")
  6014. .HasCharSet("utf8")
  6015. .HasCollation("utf8_general_ci");
  6016. entity.Property(e => e.Remark)
  6017. .HasColumnType("varchar(64)")
  6018. .HasCharSet("utf8")
  6019. .HasCollation("utf8_general_ci");
  6020. entity.Property(e => e.SeoDescription)
  6021. .HasColumnType("varchar(500)")
  6022. .HasCharSet("utf8")
  6023. .HasCollation("utf8_general_ci");
  6024. entity.Property(e => e.SeoKeyword)
  6025. .HasColumnType("varchar(200)")
  6026. .HasCharSet("utf8")
  6027. .HasCollation("utf8_general_ci");
  6028. entity.Property(e => e.SeoTitle)
  6029. .HasColumnType("varchar(100)")
  6030. .HasCharSet("utf8")
  6031. .HasCollation("utf8_general_ci");
  6032. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6033. entity.Property(e => e.Status).HasColumnType("int(11)");
  6034. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  6035. entity.Property(e => e.TradeAmt).HasColumnType("decimal(18,2)");
  6036. entity.Property(e => e.TradeMonth)
  6037. .HasColumnType("varchar(6)")
  6038. .HasCharSet("utf8")
  6039. .HasCollation("utf8_general_ci");
  6040. entity.Property(e => e.TradeProfit).HasColumnType("decimal(18,2)");
  6041. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6042. entity.Property(e => e.UpdateMan)
  6043. .HasColumnType("varchar(50)")
  6044. .HasCharSet("utf8")
  6045. .HasCollation("utf8_general_ci");
  6046. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6047. entity.Property(e => e.Version).HasColumnType("int(11)");
  6048. });
  6049. modelBuilder.Entity<ProfitSubsidyDetail>(entity =>
  6050. {
  6051. entity.Property(e => e.Id).HasColumnType("int(11)");
  6052. entity.Property(e => e.BelongUserId).HasColumnType("int(11)");
  6053. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6054. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6055. entity.Property(e => e.CreateMan)
  6056. .HasColumnType("varchar(50)")
  6057. .HasCharSet("utf8")
  6058. .HasCollation("utf8_general_ci");
  6059. entity.Property(e => e.CreditProfitRate).HasColumnType("decimal(18,2)");
  6060. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  6061. entity.Property(e => e.MerHelpFlag)
  6062. .HasColumnType("bit(1)")
  6063. .HasDefaultValueSql("b'0'");
  6064. entity.Property(e => e.MerNo)
  6065. .HasColumnType("varchar(32)")
  6066. .HasCharSet("utf8")
  6067. .HasCollation("utf8_general_ci");
  6068. entity.Property(e => e.MerRegTime).HasColumnType("datetime");
  6069. entity.Property(e => e.MerStandardDate).HasColumnType("datetime");
  6070. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  6071. entity.Property(e => e.NonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  6072. entity.Property(e => e.ProductName)
  6073. .HasColumnType("varchar(16)")
  6074. .HasCharSet("utf8")
  6075. .HasCollation("utf8_general_ci");
  6076. entity.Property(e => e.QrCreditTradeAmt).HasColumnType("decimal(18,2)");
  6077. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6078. entity.Property(e => e.RecordNo)
  6079. .HasColumnType("varchar(32)")
  6080. .HasCharSet("utf8")
  6081. .HasCollation("utf8_general_ci");
  6082. entity.Property(e => e.Remark)
  6083. .HasColumnType("varchar(64)")
  6084. .HasCharSet("utf8")
  6085. .HasCollation("utf8_general_ci");
  6086. entity.Property(e => e.SeoDescription)
  6087. .HasColumnType("varchar(500)")
  6088. .HasCharSet("utf8")
  6089. .HasCollation("utf8_general_ci");
  6090. entity.Property(e => e.SeoKeyword)
  6091. .HasColumnType("varchar(200)")
  6092. .HasCharSet("utf8")
  6093. .HasCollation("utf8_general_ci");
  6094. entity.Property(e => e.SeoTitle)
  6095. .HasColumnType("varchar(100)")
  6096. .HasCharSet("utf8")
  6097. .HasCollation("utf8_general_ci");
  6098. entity.Property(e => e.SnNo)
  6099. .HasColumnType("varchar(32)")
  6100. .HasCharSet("utf8")
  6101. .HasCollation("utf8_general_ci");
  6102. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6103. entity.Property(e => e.Status).HasColumnType("int(11)");
  6104. entity.Property(e => e.SubsidyProfit).HasColumnType("decimal(18,2)");
  6105. entity.Property(e => e.SubsidyProfitRate).HasColumnType("decimal(18,2)");
  6106. entity.Property(e => e.SubsidyType).HasColumnType("int(11)");
  6107. entity.Property(e => e.SubsidyUserId).HasColumnType("int(11)");
  6108. entity.Property(e => e.TradeMonth)
  6109. .HasColumnType("varchar(6)")
  6110. .HasCharSet("utf8")
  6111. .HasCollation("utf8_general_ci");
  6112. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6113. entity.Property(e => e.UpdateMan)
  6114. .HasColumnType("varchar(50)")
  6115. .HasCharSet("utf8")
  6116. .HasCollation("utf8_general_ci");
  6117. entity.Property(e => e.Version).HasColumnType("int(11)");
  6118. });
  6119. modelBuilder.Entity<PublicAccountSet>(entity =>
  6120. {
  6121. entity.Property(e => e.Id).HasColumnType("int(11)");
  6122. entity.Property(e => e.AlipayAppId)
  6123. .HasColumnType("varchar(50)")
  6124. .HasCharSet("utf8")
  6125. .HasCollation("utf8_general_ci");
  6126. entity.Property(e => e.AlipayPartnerId)
  6127. .HasColumnType("varchar(50)")
  6128. .HasCharSet("utf8")
  6129. .HasCollation("utf8_general_ci");
  6130. entity.Property(e => e.AlipayPrivateKey)
  6131. .HasColumnType("mediumtext")
  6132. .HasCharSet("utf8")
  6133. .HasCollation("utf8_general_ci");
  6134. entity.Property(e => e.AlipayPublicKey)
  6135. .HasColumnType("mediumtext")
  6136. .HasCharSet("utf8")
  6137. .HasCollation("utf8_general_ci");
  6138. entity.Property(e => e.AliyunAccessKeyId)
  6139. .HasColumnType("varchar(50)")
  6140. .HasCharSet("utf8")
  6141. .HasCollation("utf8_general_ci");
  6142. entity.Property(e => e.AliyunAccessKeySecret)
  6143. .HasColumnType("varchar(50)")
  6144. .HasCharSet("utf8")
  6145. .HasCollation("utf8_general_ci");
  6146. entity.Property(e => e.AliyunAndroidActivity)
  6147. .HasColumnType("varchar(100)")
  6148. .HasCharSet("utf8")
  6149. .HasCollation("utf8_general_ci");
  6150. entity.Property(e => e.AliyunAndroidNotifyTitle)
  6151. .HasColumnType("varchar(20)")
  6152. .HasCharSet("utf8")
  6153. .HasCollation("utf8_general_ci");
  6154. entity.Property(e => e.AliyunPushAndroidAppId)
  6155. .HasColumnType("varchar(50)")
  6156. .HasCharSet("utf8")
  6157. .HasCollation("utf8_general_ci");
  6158. entity.Property(e => e.AliyunPushAndroidAppSecret)
  6159. .HasColumnType("varchar(50)")
  6160. .HasCharSet("utf8")
  6161. .HasCollation("utf8_general_ci");
  6162. entity.Property(e => e.AliyunPushIosAppId)
  6163. .HasColumnType("varchar(500)")
  6164. .HasCharSet("utf8")
  6165. .HasCollation("utf8_general_ci");
  6166. entity.Property(e => e.AliyunPushIosAppSecret)
  6167. .HasColumnType("varchar(50)")
  6168. .HasCharSet("utf8")
  6169. .HasCollation("utf8_general_ci");
  6170. entity.Property(e => e.AliyunRegionId)
  6171. .HasColumnType("varchar(30)")
  6172. .HasCharSet("utf8")
  6173. .HasCollation("utf8_general_ci");
  6174. entity.Property(e => e.ErpApiUrl)
  6175. .HasColumnType("varchar(200)")
  6176. .HasCharSet("utf8")
  6177. .HasCollation("utf8_general_ci");
  6178. entity.Property(e => e.ErpAppCode)
  6179. .HasColumnType("varchar(100)")
  6180. .HasCharSet("utf8")
  6181. .HasCollation("utf8_general_ci");
  6182. entity.Property(e => e.MeiQiaAppKey)
  6183. .HasColumnType("varchar(50)")
  6184. .HasCharSet("utf8")
  6185. .HasCollation("utf8_general_ci");
  6186. entity.Property(e => e.MobAppKey)
  6187. .HasColumnType("varchar(50)")
  6188. .HasCharSet("utf8")
  6189. .HasCollation("utf8_general_ci");
  6190. entity.Property(e => e.MobAppSecret)
  6191. .HasColumnType("varchar(50)")
  6192. .HasCharSet("utf8")
  6193. .HasCollation("utf8_general_ci");
  6194. entity.Property(e => e.QqAndroidAppId)
  6195. .HasColumnType("varchar(50)")
  6196. .HasCharSet("utf8")
  6197. .HasCollation("utf8_general_ci");
  6198. entity.Property(e => e.QqAndroidAppKey)
  6199. .HasColumnType("varchar(50)")
  6200. .HasCharSet("utf8")
  6201. .HasCollation("utf8_general_ci");
  6202. entity.Property(e => e.QqIosAppId)
  6203. .HasColumnType("varchar(50)")
  6204. .HasCharSet("utf8")
  6205. .HasCollation("utf8_general_ci");
  6206. entity.Property(e => e.QqIosAppKey)
  6207. .HasColumnType("varchar(50)")
  6208. .HasCharSet("utf8")
  6209. .HasCollation("utf8_general_ci");
  6210. entity.Property(e => e.ServerIp)
  6211. .HasColumnType("varchar(15)")
  6212. .HasCharSet("utf8")
  6213. .HasCollation("utf8_general_ci");
  6214. entity.Property(e => e.SmsApiDefaultTemplate)
  6215. .HasColumnType("varchar(200)")
  6216. .HasCharSet("utf8")
  6217. .HasCollation("utf8_general_ci");
  6218. entity.Property(e => e.SmsApiPwd)
  6219. .HasColumnType("varchar(50)")
  6220. .HasCharSet("utf8")
  6221. .HasCollation("utf8_general_ci");
  6222. entity.Property(e => e.SmsApiSign)
  6223. .HasColumnType("varchar(10)")
  6224. .HasCharSet("utf8")
  6225. .HasCollation("utf8_general_ci");
  6226. entity.Property(e => e.SmsApiUserId)
  6227. .HasColumnType("varchar(50)")
  6228. .HasCharSet("utf8")
  6229. .HasCollation("utf8_general_ci");
  6230. entity.Property(e => e.WeChatAppId)
  6231. .HasColumnType("varchar(50)")
  6232. .HasCharSet("utf8")
  6233. .HasCollation("utf8_general_ci");
  6234. entity.Property(e => e.WeChatAppSecret)
  6235. .HasColumnType("varchar(50)")
  6236. .HasCharSet("utf8")
  6237. .HasCollation("utf8_general_ci");
  6238. entity.Property(e => e.WeChatMchId)
  6239. .HasColumnType("varchar(20)")
  6240. .HasCharSet("utf8")
  6241. .HasCollation("utf8_general_ci");
  6242. entity.Property(e => e.WeChatMiniAppId)
  6243. .HasColumnType("varchar(50)")
  6244. .HasCharSet("utf8")
  6245. .HasCollation("utf8_general_ci");
  6246. entity.Property(e => e.WeChatMiniAppSecret)
  6247. .HasColumnType("varchar(50)")
  6248. .HasCharSet("utf8")
  6249. .HasCollation("utf8_general_ci");
  6250. entity.Property(e => e.WeChatOpenAppId)
  6251. .HasColumnType("varchar(50)")
  6252. .HasCharSet("utf8")
  6253. .HasCollation("utf8_general_ci");
  6254. entity.Property(e => e.WeChatOpenAppSecret)
  6255. .HasColumnType("varchar(50)")
  6256. .HasCharSet("utf8")
  6257. .HasCollation("utf8_general_ci");
  6258. entity.Property(e => e.WeChatPayKey)
  6259. .HasColumnType("varchar(50)")
  6260. .HasCharSet("utf8")
  6261. .HasCollation("utf8_general_ci");
  6262. });
  6263. modelBuilder.Entity<PullNewAct>(entity =>
  6264. {
  6265. entity.Property(e => e.Id).HasColumnType("int(11)");
  6266. entity.Property(e => e.ActEffectEndDate).HasColumnType("datetime");
  6267. entity.Property(e => e.ActEffectStartDate).HasColumnType("datetime");
  6268. entity.Property(e => e.ActStdCond)
  6269. .HasColumnType("varchar(32)")
  6270. .HasCharSet("utf8")
  6271. .HasCollation("utf8_general_ci");
  6272. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6273. entity.Property(e => e.CreateMan)
  6274. .HasColumnType("varchar(50)")
  6275. .HasCharSet("utf8")
  6276. .HasCollation("utf8_general_ci");
  6277. entity.Property(e => e.ProductName)
  6278. .HasColumnType("varchar(32)")
  6279. .HasCharSet("utf8")
  6280. .HasCollation("utf8_general_ci");
  6281. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  6282. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6283. entity.Property(e => e.Remark)
  6284. .HasColumnType("varchar(128)")
  6285. .HasCharSet("utf8")
  6286. .HasCollation("utf8_general_ci");
  6287. entity.Property(e => e.SeoDescription)
  6288. .HasColumnType("varchar(500)")
  6289. .HasCharSet("utf8")
  6290. .HasCollation("utf8_general_ci");
  6291. entity.Property(e => e.SeoKeyword)
  6292. .HasColumnType("varchar(200)")
  6293. .HasCharSet("utf8")
  6294. .HasCollation("utf8_general_ci");
  6295. entity.Property(e => e.SeoTitle)
  6296. .HasColumnType("varchar(100)")
  6297. .HasCharSet("utf8")
  6298. .HasCollation("utf8_general_ci");
  6299. entity.Property(e => e.SnDelayDay).HasColumnType("int(11)");
  6300. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6301. entity.Property(e => e.Status).HasColumnType("int(11)");
  6302. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6303. entity.Property(e => e.UpdateMan)
  6304. .HasColumnType("varchar(50)")
  6305. .HasCharSet("utf8")
  6306. .HasCollation("utf8_general_ci");
  6307. entity.Property(e => e.Version).HasColumnType("int(11)");
  6308. });
  6309. modelBuilder.Entity<PullNewDetail>(entity =>
  6310. {
  6311. entity.Property(e => e.Id).HasColumnType("int(11)");
  6312. entity.Property(e => e.BizStatus).HasColumnType("int(11)");
  6313. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6314. entity.Property(e => e.CreateMan)
  6315. .HasColumnType("varchar(50)")
  6316. .HasCharSet("utf8")
  6317. .HasCollation("utf8_general_ci");
  6318. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6319. entity.Property(e => e.RecMallBrandId).HasColumnType("int(11)");
  6320. entity.Property(e => e.RecMallOrder)
  6321. .HasColumnType("varchar(32)")
  6322. .HasCharSet("utf8")
  6323. .HasCollation("utf8_general_ci");
  6324. entity.Property(e => e.RecMallOrderTime).HasColumnType("datetime");
  6325. entity.Property(e => e.RecMallProductName)
  6326. .HasColumnType("varchar(32)")
  6327. .HasCharSet("utf8")
  6328. .HasCollation("utf8_general_ci");
  6329. entity.Property(e => e.RecMallProductNum).HasColumnType("int(11)");
  6330. entity.Property(e => e.RecMallSendTime).HasColumnType("datetime");
  6331. entity.Property(e => e.RecUserId).HasColumnType("int(11)");
  6332. entity.Property(e => e.RecUserType).HasColumnType("int(11)");
  6333. entity.Property(e => e.RegDate).HasColumnType("datetime");
  6334. entity.Property(e => e.Remark)
  6335. .HasColumnType("varchar(64)")
  6336. .HasCharSet("utf8")
  6337. .HasCollation("utf8_general_ci");
  6338. entity.Property(e => e.RewardStatus).HasColumnType("int(11)");
  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.StatDate)
  6353. .HasColumnType("varchar(8)")
  6354. .HasCharSet("utf8")
  6355. .HasCollation("utf8_general_ci");
  6356. entity.Property(e => e.StatMonth)
  6357. .HasColumnType("varchar(6)")
  6358. .HasCharSet("utf8")
  6359. .HasCollation("utf8_general_ci");
  6360. entity.Property(e => e.StatType).HasColumnType("int(11)");
  6361. entity.Property(e => e.Status).HasColumnType("int(11)");
  6362. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6363. entity.Property(e => e.UpdateMan)
  6364. .HasColumnType("varchar(50)")
  6365. .HasCharSet("utf8")
  6366. .HasCollation("utf8_general_ci");
  6367. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6368. entity.Property(e => e.Version).HasColumnType("int(11)");
  6369. });
  6370. modelBuilder.Entity<PullnewSummary>(entity =>
  6371. {
  6372. entity.Property(e => e.Id).HasColumnType("int(11)");
  6373. entity.Property(e => e.BizSnDelayDay).HasColumnType("int(11)");
  6374. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6375. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6376. entity.Property(e => e.CreateMan)
  6377. .HasColumnType("varchar(50)")
  6378. .HasCharSet("utf8")
  6379. .HasCollation("utf8_general_ci");
  6380. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6381. entity.Property(e => e.RecUserAuthNum).HasColumnType("int(11)");
  6382. entity.Property(e => e.RecUserDeliveryStdNum).HasColumnType("int(11)");
  6383. entity.Property(e => e.Remark)
  6384. .HasColumnType("varchar(64)")
  6385. .HasCharSet("utf8")
  6386. .HasCollation("utf8_general_ci");
  6387. entity.Property(e => e.RuleSnDelayDay).HasColumnType("int(11)");
  6388. entity.Property(e => e.SeoDescription)
  6389. .HasColumnType("varchar(500)")
  6390. .HasCharSet("utf8")
  6391. .HasCollation("utf8_general_ci");
  6392. entity.Property(e => e.SeoKeyword)
  6393. .HasColumnType("varchar(200)")
  6394. .HasCharSet("utf8")
  6395. .HasCollation("utf8_general_ci");
  6396. entity.Property(e => e.SeoTitle)
  6397. .HasColumnType("varchar(100)")
  6398. .HasCharSet("utf8")
  6399. .HasCollation("utf8_general_ci");
  6400. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6401. entity.Property(e => e.StatDate)
  6402. .HasColumnType("varchar(8)")
  6403. .HasCharSet("utf8")
  6404. .HasCollation("utf8_general_ci");
  6405. entity.Property(e => e.StatMonth)
  6406. .HasColumnType("varchar(6)")
  6407. .HasCharSet("utf8")
  6408. .HasCollation("utf8_general_ci");
  6409. entity.Property(e => e.Status).HasColumnType("int(11)");
  6410. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6411. entity.Property(e => e.UpdateMan)
  6412. .HasColumnType("varchar(50)")
  6413. .HasCharSet("utf8")
  6414. .HasCollation("utf8_general_ci");
  6415. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6416. entity.Property(e => e.Version).HasColumnType("int(11)");
  6417. });
  6418. modelBuilder.Entity<RightDic>(entity =>
  6419. {
  6420. entity.Property(e => e.Id)
  6421. .HasColumnName("ID")
  6422. .HasColumnType("varchar(50)")
  6423. .HasCharSet("utf8")
  6424. .HasCollation("utf8_general_ci");
  6425. entity.Property(e => e.Icon)
  6426. .HasColumnType("varchar(50)")
  6427. .HasCharSet("utf8")
  6428. .HasCollation("utf8_general_ci");
  6429. entity.Property(e => e.MainDataList)
  6430. .HasColumnType("bit(1)")
  6431. .HasDefaultValueSql("b'0'");
  6432. entity.Property(e => e.MainMenu)
  6433. .HasColumnType("bit(1)")
  6434. .HasDefaultValueSql("b'0'");
  6435. entity.Property(e => e.MainStat)
  6436. .HasColumnType("bit(1)")
  6437. .HasDefaultValueSql("b'0'");
  6438. entity.Property(e => e.Name)
  6439. .HasColumnType("varchar(50)")
  6440. .HasCharSet("utf8")
  6441. .HasCollation("utf8_general_ci");
  6442. entity.Property(e => e.OtherRight)
  6443. .HasColumnType("varchar(500)")
  6444. .HasCharSet("utf8")
  6445. .HasCollation("utf8_general_ci");
  6446. entity.Property(e => e.RightLevel).HasColumnType("int(11)");
  6447. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6448. entity.Property(e => e.Url)
  6449. .HasColumnType("varchar(200)")
  6450. .HasCharSet("utf8")
  6451. .HasCollation("utf8_general_ci");
  6452. });
  6453. modelBuilder.Entity<ServiceCenter>(entity =>
  6454. {
  6455. entity.Property(e => e.Id).HasColumnType("int(11)");
  6456. entity.Property(e => e.CategoryId).HasColumnType("int(11)");
  6457. entity.Property(e => e.Content)
  6458. .HasColumnType("longtext")
  6459. .HasCharSet("utf8")
  6460. .HasCollation("utf8_general_ci");
  6461. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6462. entity.Property(e => e.CreateMan)
  6463. .HasColumnType("varchar(50)")
  6464. .HasCharSet("utf8")
  6465. .HasCollation("utf8_general_ci");
  6466. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6467. entity.Property(e => e.SeoDescription)
  6468. .HasColumnType("varchar(500)")
  6469. .HasCharSet("utf8")
  6470. .HasCollation("utf8_general_ci");
  6471. entity.Property(e => e.SeoKeyword)
  6472. .HasColumnType("varchar(200)")
  6473. .HasCharSet("utf8")
  6474. .HasCollation("utf8_general_ci");
  6475. entity.Property(e => e.SeoTitle)
  6476. .HasColumnType("varchar(100)")
  6477. .HasCharSet("utf8")
  6478. .HasCollation("utf8_general_ci");
  6479. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6480. entity.Property(e => e.Status).HasColumnType("int(11)");
  6481. entity.Property(e => e.SubTitle)
  6482. .HasColumnType("varchar(50)")
  6483. .HasCharSet("utf8")
  6484. .HasCollation("utf8_general_ci");
  6485. entity.Property(e => e.Title)
  6486. .HasColumnType("varchar(50)")
  6487. .HasCharSet("utf8")
  6488. .HasCollation("utf8_general_ci");
  6489. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6490. entity.Property(e => e.UpdateMan)
  6491. .HasColumnType("varchar(50)")
  6492. .HasCharSet("utf8")
  6493. .HasCollation("utf8_general_ci");
  6494. entity.Property(e => e.Version).HasColumnType("int(11)");
  6495. });
  6496. modelBuilder.Entity<StoreBalance>(entity =>
  6497. {
  6498. entity.Property(e => e.Id).HasColumnType("int(11)");
  6499. entity.Property(e => e.AfterLaveNum).HasColumnType("int(11)");
  6500. entity.Property(e => e.AfterOutNum).HasColumnType("int(11)");
  6501. entity.Property(e => e.AfterTotalNum).HasColumnType("int(11)");
  6502. entity.Property(e => e.BeforeLaveNum).HasColumnType("int(11)");
  6503. entity.Property(e => e.BeforeOutNum).HasColumnType("int(11)");
  6504. entity.Property(e => e.BeforeTotalNum).HasColumnType("int(11)");
  6505. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6506. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6507. entity.Property(e => e.CreateMan)
  6508. .HasColumnType("varchar(50)")
  6509. .HasCharSet("utf8")
  6510. .HasCollation("utf8_general_ci");
  6511. entity.Property(e => e.OpStoreNum).HasColumnType("int(11)");
  6512. entity.Property(e => e.OpSymbol)
  6513. .HasColumnType("varchar(1)")
  6514. .HasCharSet("utf8")
  6515. .HasCollation("utf8_general_ci");
  6516. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6517. entity.Property(e => e.SeoDescription)
  6518. .HasColumnType("varchar(500)")
  6519. .HasCharSet("utf8")
  6520. .HasCollation("utf8_general_ci");
  6521. entity.Property(e => e.SeoKeyword)
  6522. .HasColumnType("varchar(200)")
  6523. .HasCharSet("utf8")
  6524. .HasCollation("utf8_general_ci");
  6525. entity.Property(e => e.SeoTitle)
  6526. .HasColumnType("varchar(100)")
  6527. .HasCharSet("utf8")
  6528. .HasCollation("utf8_general_ci");
  6529. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6530. entity.Property(e => e.Status).HasColumnType("int(11)");
  6531. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  6532. entity.Property(e => e.TransRecordNo)
  6533. .HasColumnType("varchar(32)")
  6534. .HasCharSet("utf8")
  6535. .HasCollation("utf8_general_ci");
  6536. entity.Property(e => e.TransType).HasColumnType("int(11)");
  6537. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6538. entity.Property(e => e.UpdateMan)
  6539. .HasColumnType("varchar(50)")
  6540. .HasCharSet("utf8")
  6541. .HasCollation("utf8_general_ci");
  6542. entity.Property(e => e.Version).HasColumnType("int(11)");
  6543. });
  6544. modelBuilder.Entity<StoreChangeHistory>(entity =>
  6545. {
  6546. entity.Property(e => e.Id).HasColumnType("int(11)");
  6547. entity.Property(e => e.BizBatchNo)
  6548. .HasColumnType("varchar(32)")
  6549. .HasCharSet("utf8")
  6550. .HasCollation("utf8_general_ci");
  6551. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6552. entity.Property(e => e.ChangeRecordNo)
  6553. .HasColumnType("varchar(32)")
  6554. .HasCharSet("utf8")
  6555. .HasCollation("utf8_general_ci");
  6556. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6557. entity.Property(e => e.CreateMan)
  6558. .HasColumnType("varchar(50)")
  6559. .HasCharSet("utf8")
  6560. .HasCollation("utf8_general_ci");
  6561. entity.Property(e => e.DeviceModel)
  6562. .HasColumnType("varchar(32)")
  6563. .HasCharSet("utf8")
  6564. .HasCollation("utf8_general_ci");
  6565. entity.Property(e => e.DeviceType)
  6566. .HasColumnType("varchar(32)")
  6567. .HasCharSet("utf8")
  6568. .HasCollation("utf8_general_ci");
  6569. entity.Property(e => e.DeviceVendor)
  6570. .HasColumnType("varchar(32)")
  6571. .HasCharSet("utf8")
  6572. .HasCollation("utf8_general_ci");
  6573. entity.Property(e => e.FromDate).HasColumnType("datetime");
  6574. entity.Property(e => e.FromRemark)
  6575. .HasColumnType("varchar(64)")
  6576. .HasCharSet("utf8")
  6577. .HasCollation("utf8_general_ci");
  6578. entity.Property(e => e.FromUserId).HasColumnType("int(11)");
  6579. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6580. entity.Property(e => e.SeoDescription)
  6581. .HasColumnType("varchar(500)")
  6582. .HasCharSet("utf8")
  6583. .HasCollation("utf8_general_ci");
  6584. entity.Property(e => e.SeoKeyword)
  6585. .HasColumnType("varchar(200)")
  6586. .HasCharSet("utf8")
  6587. .HasCollation("utf8_general_ci");
  6588. entity.Property(e => e.SeoTitle)
  6589. .HasColumnType("varchar(100)")
  6590. .HasCharSet("utf8")
  6591. .HasCollation("utf8_general_ci");
  6592. entity.Property(e => e.SnNo)
  6593. .HasColumnType("varchar(32)")
  6594. .HasCharSet("utf8")
  6595. .HasCollation("utf8_general_ci");
  6596. entity.Property(e => e.SnType).HasColumnType("int(11)");
  6597. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6598. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  6599. entity.Property(e => e.Status).HasColumnType("int(11)");
  6600. entity.Property(e => e.StockOpDirect).HasColumnType("int(11)");
  6601. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  6602. entity.Property(e => e.ToDate).HasColumnType("datetime");
  6603. entity.Property(e => e.ToRemark)
  6604. .HasColumnType("varchar(64)")
  6605. .HasCharSet("utf8")
  6606. .HasCollation("utf8_general_ci");
  6607. entity.Property(e => e.ToStoreId).HasColumnType("int(11)");
  6608. entity.Property(e => e.ToUserId).HasColumnType("int(11)");
  6609. entity.Property(e => e.TransType).HasColumnType("int(11)");
  6610. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6611. entity.Property(e => e.UpdateMan)
  6612. .HasColumnType("varchar(50)")
  6613. .HasCharSet("utf8")
  6614. .HasCollation("utf8_general_ci");
  6615. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6616. entity.Property(e => e.Version).HasColumnType("int(11)");
  6617. });
  6618. modelBuilder.Entity<StoreForCode>(entity =>
  6619. {
  6620. entity.HasKey(e => e.Code)
  6621. .HasName("PRIMARY");
  6622. entity.Property(e => e.Code)
  6623. .HasColumnType("varchar(30)")
  6624. .HasCharSet("utf8")
  6625. .HasCollation("utf8_general_ci");
  6626. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  6627. });
  6628. modelBuilder.Entity<StoreForName>(entity =>
  6629. {
  6630. entity.HasKey(e => e.Name)
  6631. .HasName("PRIMARY");
  6632. entity.Property(e => e.Name)
  6633. .HasColumnType("varchar(30)")
  6634. .HasCharSet("utf8")
  6635. .HasCollation("utf8_general_ci");
  6636. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  6637. });
  6638. modelBuilder.Entity<StoreHouse>(entity =>
  6639. {
  6640. entity.Property(e => e.Id).HasColumnType("int(11)");
  6641. entity.Property(e => e.Address)
  6642. .HasColumnType("varchar(128)")
  6643. .HasCharSet("utf8")
  6644. .HasCollation("utf8_general_ci");
  6645. entity.Property(e => e.Areas)
  6646. .HasColumnType("varchar(30)")
  6647. .HasCharSet("utf8")
  6648. .HasCollation("utf8_general_ci");
  6649. entity.Property(e => e.BrandId)
  6650. .HasColumnType("varchar(30)")
  6651. .HasCharSet("utf8")
  6652. .HasCollation("utf8_general_ci");
  6653. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6654. entity.Property(e => e.CreateMan)
  6655. .HasColumnType("varchar(50)")
  6656. .HasCharSet("utf8")
  6657. .HasCollation("utf8_general_ci");
  6658. entity.Property(e => e.LaveNum).HasColumnType("int(11)");
  6659. entity.Property(e => e.LimitTopUserId)
  6660. .HasColumnType("varchar(100)")
  6661. .HasCharSet("utf8")
  6662. .HasCollation("utf8_general_ci");
  6663. entity.Property(e => e.ManageMobile)
  6664. .HasColumnType("varchar(11)")
  6665. .HasCharSet("utf8")
  6666. .HasCollation("utf8_general_ci");
  6667. entity.Property(e => e.ManageUserId).HasColumnType("int(11)");
  6668. entity.Property(e => e.ManagerEmail)
  6669. .HasColumnType("varchar(32)")
  6670. .HasCharSet("utf8")
  6671. .HasCollation("utf8_general_ci");
  6672. entity.Property(e => e.OutNum).HasColumnType("int(11)");
  6673. entity.Property(e => e.ParentNav)
  6674. .HasColumnType("longtext")
  6675. .HasCharSet("utf8")
  6676. .HasCollation("utf8_general_ci");
  6677. entity.Property(e => e.ParentStoreId).HasColumnType("int(11)");
  6678. entity.Property(e => e.ProductName)
  6679. .HasColumnType("varchar(32)")
  6680. .HasCharSet("utf8")
  6681. .HasCollation("utf8_general_ci");
  6682. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6683. entity.Property(e => e.Remark)
  6684. .HasColumnType("varchar(128)")
  6685. .HasCharSet("utf8")
  6686. .HasCollation("utf8_general_ci");
  6687. entity.Property(e => e.SeoDescription)
  6688. .HasColumnType("varchar(500)")
  6689. .HasCharSet("utf8")
  6690. .HasCollation("utf8_general_ci");
  6691. entity.Property(e => e.SeoKeyword)
  6692. .HasColumnType("varchar(200)")
  6693. .HasCharSet("utf8")
  6694. .HasCollation("utf8_general_ci");
  6695. entity.Property(e => e.SeoTitle)
  6696. .HasColumnType("varchar(100)")
  6697. .HasCharSet("utf8")
  6698. .HasCollation("utf8_general_ci");
  6699. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6700. entity.Property(e => e.Status).HasColumnType("int(11)");
  6701. entity.Property(e => e.StoreKind).HasColumnType("int(11)");
  6702. entity.Property(e => e.StoreName)
  6703. .HasColumnType("varchar(32)")
  6704. .HasCharSet("utf8")
  6705. .HasCollation("utf8_general_ci");
  6706. entity.Property(e => e.StoreNo)
  6707. .HasColumnType("varchar(16)")
  6708. .HasCharSet("utf8")
  6709. .HasCollation("utf8_general_ci");
  6710. entity.Property(e => e.StoreStatus).HasColumnType("int(11)");
  6711. entity.Property(e => e.StoreType).HasColumnType("int(11)");
  6712. entity.Property(e => e.TotalNum).HasColumnType("int(11)");
  6713. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6714. entity.Property(e => e.UpdateMan)
  6715. .HasColumnType("varchar(50)")
  6716. .HasCharSet("utf8")
  6717. .HasCollation("utf8_general_ci");
  6718. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6719. entity.Property(e => e.Version).HasColumnType("int(11)");
  6720. });
  6721. modelBuilder.Entity<StoreMallOrderSummary>(entity =>
  6722. {
  6723. entity.Property(e => e.Id).HasColumnType("int(11)");
  6724. entity.Property(e => e.AgentStoreId).HasColumnType("int(11)");
  6725. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6726. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6727. entity.Property(e => e.CreateMan)
  6728. .HasColumnType("varchar(50)")
  6729. .HasCharSet("utf8")
  6730. .HasCollation("utf8_general_ci");
  6731. entity.Property(e => e.OrderAmt).HasColumnType("int(11)");
  6732. entity.Property(e => e.OrderNum).HasColumnType("int(11)");
  6733. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6734. entity.Property(e => e.RefundAmt).HasColumnType("decimal(18,2)");
  6735. entity.Property(e => e.RefundOrderNum).HasColumnType("int(11)");
  6736. entity.Property(e => e.Remark)
  6737. .HasColumnType("varchar(64)")
  6738. .HasCharSet("utf8")
  6739. .HasCollation("utf8_general_ci");
  6740. entity.Property(e => e.SeoDescription)
  6741. .HasColumnType("varchar(500)")
  6742. .HasCharSet("utf8")
  6743. .HasCollation("utf8_general_ci");
  6744. entity.Property(e => e.SeoKeyword)
  6745. .HasColumnType("varchar(200)")
  6746. .HasCharSet("utf8")
  6747. .HasCollation("utf8_general_ci");
  6748. entity.Property(e => e.SeoTitle)
  6749. .HasColumnType("varchar(100)")
  6750. .HasCharSet("utf8")
  6751. .HasCollation("utf8_general_ci");
  6752. entity.Property(e => e.SettleAmt).HasColumnType("decimal(18,2)");
  6753. entity.Property(e => e.SettleStatus).HasColumnType("int(11)");
  6754. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6755. entity.Property(e => e.Status).HasColumnType("int(11)");
  6756. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  6757. entity.Property(e => e.TradeMonth)
  6758. .HasColumnType("varchar(6)")
  6759. .HasCharSet("utf8")
  6760. .HasCollation("utf8_general_ci");
  6761. entity.Property(e => e.UnitPrice).HasColumnType("decimal(18,2)");
  6762. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6763. entity.Property(e => e.UpdateMan)
  6764. .HasColumnType("varchar(50)")
  6765. .HasCharSet("utf8")
  6766. .HasCollation("utf8_general_ci");
  6767. entity.Property(e => e.Version).HasColumnType("int(11)");
  6768. });
  6769. modelBuilder.Entity<StoreSnActivateSummary>(entity =>
  6770. {
  6771. entity.Property(e => e.Id).HasColumnType("int(11)");
  6772. entity.Property(e => e.ActivateNum).HasColumnType("int(11)");
  6773. entity.Property(e => e.AgentStoreId).HasColumnType("int(11)");
  6774. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6775. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6776. entity.Property(e => e.CreateMan)
  6777. .HasColumnType("varchar(50)")
  6778. .HasCharSet("utf8")
  6779. .HasCollation("utf8_general_ci");
  6780. entity.Property(e => e.EffectActNum).HasColumnType("int(11)");
  6781. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6782. entity.Property(e => e.RejectActNum).HasColumnType("int(11)");
  6783. entity.Property(e => e.Remark)
  6784. .HasColumnType("varchar(64)")
  6785. .HasCharSet("utf8")
  6786. .HasCollation("utf8_general_ci");
  6787. entity.Property(e => e.SeoDescription)
  6788. .HasColumnType("varchar(500)")
  6789. .HasCharSet("utf8")
  6790. .HasCollation("utf8_general_ci");
  6791. entity.Property(e => e.SeoKeyword)
  6792. .HasColumnType("varchar(200)")
  6793. .HasCharSet("utf8")
  6794. .HasCollation("utf8_general_ci");
  6795. entity.Property(e => e.SeoTitle)
  6796. .HasColumnType("varchar(100)")
  6797. .HasCharSet("utf8")
  6798. .HasCollation("utf8_general_ci");
  6799. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6800. entity.Property(e => e.Status).HasColumnType("int(11)");
  6801. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  6802. entity.Property(e => e.TradeDate)
  6803. .HasColumnType("varchar(8)")
  6804. .HasCharSet("utf8")
  6805. .HasCollation("utf8_general_ci");
  6806. entity.Property(e => e.TradeMonth)
  6807. .HasColumnType("varchar(6)")
  6808. .HasCharSet("utf8")
  6809. .HasCollation("utf8_general_ci");
  6810. entity.Property(e => e.TransferActNum).HasColumnType("int(11)");
  6811. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6812. entity.Property(e => e.UpdateMan)
  6813. .HasColumnType("varchar(50)")
  6814. .HasCharSet("utf8")
  6815. .HasCollation("utf8_general_ci");
  6816. entity.Property(e => e.UserApplyNum).HasColumnType("int(11)");
  6817. entity.Property(e => e.Version).HasColumnType("int(11)");
  6818. });
  6819. modelBuilder.Entity<StoreStockChange>(entity =>
  6820. {
  6821. entity.Property(e => e.Id).HasColumnType("int(11)");
  6822. entity.Property(e => e.ActRewardUserId).HasColumnType("int(11)");
  6823. entity.Property(e => e.ActiveStatus).HasColumnType("int(11)");
  6824. entity.Property(e => e.BindMerchant).HasColumnType("int(11)");
  6825. entity.Property(e => e.BindStatus).HasColumnType("int(11)");
  6826. entity.Property(e => e.BizBatchNo)
  6827. .HasColumnType("varchar(32)")
  6828. .HasCharSet("utf8")
  6829. .HasCollation("utf8_general_ci");
  6830. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6831. entity.Property(e => e.BrandType)
  6832. .HasColumnType("varchar(10)")
  6833. .HasCharSet("utf8")
  6834. .HasCollation("utf8_general_ci");
  6835. entity.Property(e => e.ChangeNo)
  6836. .HasColumnType("varchar(32)")
  6837. .HasCharSet("utf8")
  6838. .HasCollation("utf8_general_ci");
  6839. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6840. entity.Property(e => e.CreateMan)
  6841. .HasColumnType("varchar(50)")
  6842. .HasCharSet("utf8")
  6843. .HasCollation("utf8_general_ci");
  6844. entity.Property(e => e.DeviceModel)
  6845. .HasColumnType("varchar(32)")
  6846. .HasCharSet("utf8")
  6847. .HasCollation("utf8_general_ci");
  6848. entity.Property(e => e.DeviceType)
  6849. .HasColumnType("varchar(32)")
  6850. .HasCharSet("utf8")
  6851. .HasCollation("utf8_general_ci");
  6852. entity.Property(e => e.DeviceVendor)
  6853. .HasColumnType("varchar(32)")
  6854. .HasCharSet("utf8")
  6855. .HasCollation("utf8_general_ci");
  6856. entity.Property(e => e.ExpressNo)
  6857. .HasColumnType("varchar(32)")
  6858. .HasCharSet("utf8")
  6859. .HasCollation("utf8_general_ci");
  6860. entity.Property(e => e.FromDate).HasColumnType("datetime");
  6861. entity.Property(e => e.FromRemark)
  6862. .HasColumnType("varchar(64)")
  6863. .HasCharSet("utf8")
  6864. .HasCollation("utf8_general_ci");
  6865. entity.Property(e => e.FromUserId).HasColumnType("int(11)");
  6866. entity.Property(e => e.ProductName)
  6867. .HasColumnType("varchar(32)")
  6868. .HasCharSet("utf8")
  6869. .HasCollation("utf8_general_ci");
  6870. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6871. entity.Property(e => e.SeoDescription)
  6872. .HasColumnType("varchar(500)")
  6873. .HasCharSet("utf8")
  6874. .HasCollation("utf8_general_ci");
  6875. entity.Property(e => e.SeoKeyword)
  6876. .HasColumnType("varchar(200)")
  6877. .HasCharSet("utf8")
  6878. .HasCollation("utf8_general_ci");
  6879. entity.Property(e => e.SeoTitle)
  6880. .HasColumnType("varchar(100)")
  6881. .HasCharSet("utf8")
  6882. .HasCollation("utf8_general_ci");
  6883. entity.Property(e => e.SnNo)
  6884. .HasColumnType("varchar(32)")
  6885. .HasCharSet("utf8")
  6886. .HasCollation("utf8_general_ci");
  6887. entity.Property(e => e.SnStatus).HasColumnType("int(11)");
  6888. entity.Property(e => e.SnType).HasColumnType("int(11)");
  6889. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6890. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  6891. entity.Property(e => e.Status).HasColumnType("int(11)");
  6892. entity.Property(e => e.StockOpDirect).HasColumnType("int(11)");
  6893. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  6894. entity.Property(e => e.ToDate).HasColumnType("datetime");
  6895. entity.Property(e => e.ToRemark)
  6896. .HasColumnType("varchar(64)")
  6897. .HasCharSet("utf8")
  6898. .HasCollation("utf8_general_ci");
  6899. entity.Property(e => e.ToStoreId).HasColumnType("int(11)");
  6900. entity.Property(e => e.ToUserId).HasColumnType("int(11)");
  6901. entity.Property(e => e.TransType).HasColumnType("int(11)");
  6902. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6903. entity.Property(e => e.UpdateMan)
  6904. .HasColumnType("varchar(50)")
  6905. .HasCharSet("utf8")
  6906. .HasCollation("utf8_general_ci");
  6907. entity.Property(e => e.Version).HasColumnType("int(11)");
  6908. });
  6909. modelBuilder.Entity<StoreSwapSn>(entity =>
  6910. {
  6911. entity.Property(e => e.Id).HasColumnType("int(11)");
  6912. entity.Property(e => e.ActType).HasColumnType("int(11)");
  6913. entity.Property(e => e.ActTypeDesc)
  6914. .HasColumnType("varchar(64)")
  6915. .HasCharSet("utf8")
  6916. .HasCollation("utf8_general_ci");
  6917. entity.Property(e => e.BizStatus).HasColumnType("int(11)");
  6918. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6919. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6920. entity.Property(e => e.CreateMan)
  6921. .HasColumnType("varchar(50)")
  6922. .HasCharSet("utf8")
  6923. .HasCollation("utf8_general_ci");
  6924. entity.Property(e => e.PosType)
  6925. .HasColumnType("varchar(32)")
  6926. .HasCharSet("utf8")
  6927. .HasCollation("utf8_general_ci");
  6928. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6929. entity.Property(e => e.Remark)
  6930. .HasColumnType("varchar(128)")
  6931. .HasCharSet("utf8")
  6932. .HasCollation("utf8_general_ci");
  6933. entity.Property(e => e.RiskStatus).HasColumnType("int(11)");
  6934. entity.Property(e => e.SeoDescription)
  6935. .HasColumnType("varchar(500)")
  6936. .HasCharSet("utf8")
  6937. .HasCollation("utf8_general_ci");
  6938. entity.Property(e => e.SeoKeyword)
  6939. .HasColumnType("varchar(200)")
  6940. .HasCharSet("utf8")
  6941. .HasCollation("utf8_general_ci");
  6942. entity.Property(e => e.SeoTitle)
  6943. .HasColumnType("varchar(100)")
  6944. .HasCharSet("utf8")
  6945. .HasCollation("utf8_general_ci");
  6946. entity.Property(e => e.SnNo)
  6947. .HasColumnType("varchar(32)")
  6948. .HasCharSet("utf8")
  6949. .HasCollation("utf8_general_ci");
  6950. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  6951. entity.Property(e => e.SnType).HasColumnType("int(11)");
  6952. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6953. entity.Property(e => e.StandardDate).HasColumnType("datetime");
  6954. entity.Property(e => e.Status).HasColumnType("int(11)");
  6955. entity.Property(e => e.SwapApplyDate).HasColumnType("datetime");
  6956. entity.Property(e => e.SwapApplyOrderNo)
  6957. .HasColumnType("varchar(32)")
  6958. .HasCharSet("utf8")
  6959. .HasCollation("utf8_general_ci");
  6960. entity.Property(e => e.SwapExtProductTypes)
  6961. .HasColumnType("varchar(16)")
  6962. .HasCharSet("utf8")
  6963. .HasCollation("utf8_general_ci");
  6964. entity.Property(e => e.SwapSnNo)
  6965. .HasColumnType("varchar(32)")
  6966. .HasCharSet("utf8")
  6967. .HasCollation("utf8_general_ci");
  6968. entity.Property(e => e.SwapStatus).HasColumnType("int(11)");
  6969. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6970. entity.Property(e => e.UpdateMan)
  6971. .HasColumnType("varchar(50)")
  6972. .HasCharSet("utf8")
  6973. .HasCollation("utf8_general_ci");
  6974. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6975. entity.Property(e => e.Version).HasColumnType("int(11)");
  6976. });
  6977. modelBuilder.Entity<SysAdmin>(entity =>
  6978. {
  6979. entity.Property(e => e.Id).HasColumnType("int(11)");
  6980. entity.Property(e => e.AdminName)
  6981. .HasColumnType("varchar(50)")
  6982. .HasCharSet("utf8")
  6983. .HasCollation("utf8_general_ci");
  6984. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6985. entity.Property(e => e.CreateMan)
  6986. .HasColumnType("varchar(50)")
  6987. .HasCharSet("utf8")
  6988. .HasCollation("utf8_general_ci");
  6989. entity.Property(e => e.LastLoginDate).HasColumnType("datetime");
  6990. entity.Property(e => e.Password)
  6991. .HasColumnType("varchar(32)")
  6992. .HasCharSet("utf8")
  6993. .HasCollation("utf8_general_ci");
  6994. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6995. entity.Property(e => e.RealName)
  6996. .HasColumnType("varchar(50)")
  6997. .HasCharSet("utf8")
  6998. .HasCollation("utf8_general_ci");
  6999. entity.Property(e => e.Role)
  7000. .HasColumnType("varchar(30)")
  7001. .HasCharSet("utf8")
  7002. .HasCollation("utf8_general_ci");
  7003. entity.Property(e => e.SeoDescription)
  7004. .HasColumnType("varchar(500)")
  7005. .HasCharSet("utf8")
  7006. .HasCollation("utf8_general_ci");
  7007. entity.Property(e => e.SeoKeyword)
  7008. .HasColumnType("varchar(200)")
  7009. .HasCharSet("utf8")
  7010. .HasCollation("utf8_general_ci");
  7011. entity.Property(e => e.SeoTitle)
  7012. .HasColumnType("varchar(100)")
  7013. .HasCharSet("utf8")
  7014. .HasCollation("utf8_general_ci");
  7015. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7016. entity.Property(e => e.Status).HasColumnType("int(11)");
  7017. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7018. entity.Property(e => e.UpdateMan)
  7019. .HasColumnType("varchar(50)")
  7020. .HasCharSet("utf8")
  7021. .HasCollation("utf8_general_ci");
  7022. entity.Property(e => e.Version).HasColumnType("int(11)");
  7023. });
  7024. modelBuilder.Entity<SysAdminRole>(entity =>
  7025. {
  7026. entity.Property(e => e.Id).HasColumnType("int(11)");
  7027. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7028. entity.Property(e => e.CreateMan)
  7029. .HasColumnType("varchar(50)")
  7030. .HasCharSet("utf8")
  7031. .HasCollation("utf8_general_ci");
  7032. entity.Property(e => e.Details)
  7033. .HasColumnType("longtext")
  7034. .HasCharSet("utf8")
  7035. .HasCollation("utf8_general_ci");
  7036. entity.Property(e => e.Name)
  7037. .HasColumnType("varchar(50)")
  7038. .HasCharSet("utf8")
  7039. .HasCollation("utf8_general_ci");
  7040. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7041. entity.Property(e => e.RightInfo)
  7042. .HasColumnType("longtext")
  7043. .HasCharSet("utf8")
  7044. .HasCollation("utf8_general_ci");
  7045. entity.Property(e => e.SeoDescription)
  7046. .HasColumnType("varchar(500)")
  7047. .HasCharSet("utf8")
  7048. .HasCollation("utf8_general_ci");
  7049. entity.Property(e => e.SeoKeyword)
  7050. .HasColumnType("varchar(200)")
  7051. .HasCharSet("utf8")
  7052. .HasCollation("utf8_general_ci");
  7053. entity.Property(e => e.SeoTitle)
  7054. .HasColumnType("varchar(100)")
  7055. .HasCharSet("utf8")
  7056. .HasCollation("utf8_general_ci");
  7057. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7058. entity.Property(e => e.Status).HasColumnType("int(11)");
  7059. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7060. entity.Property(e => e.UpdateMan)
  7061. .HasColumnType("varchar(50)")
  7062. .HasCharSet("utf8")
  7063. .HasCollation("utf8_general_ci");
  7064. entity.Property(e => e.Version).HasColumnType("int(11)");
  7065. });
  7066. modelBuilder.Entity<SysLog>(entity =>
  7067. {
  7068. entity.Property(e => e.Id).HasColumnType("int(11)");
  7069. entity.Property(e => e.Contents)
  7070. .HasColumnType("varchar(200)")
  7071. .HasCharSet("utf8")
  7072. .HasCollation("utf8_general_ci");
  7073. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7074. entity.Property(e => e.CreateMan)
  7075. .HasColumnType("varchar(50)")
  7076. .HasCharSet("utf8")
  7077. .HasCollation("utf8_general_ci");
  7078. });
  7079. modelBuilder.Entity<SysRechargeRecord>(entity =>
  7080. {
  7081. entity.Property(e => e.Id).HasColumnType("int(11)");
  7082. entity.Property(e => e.Amount).HasColumnType("decimal(18,2)");
  7083. entity.Property(e => e.BatchCode)
  7084. .HasColumnType("varchar(32)")
  7085. .HasCharSet("utf8")
  7086. .HasCollation("utf8_general_ci");
  7087. entity.Property(e => e.BizTime).HasColumnType("datetime");
  7088. entity.Property(e => e.BizType).HasColumnType("int(11)");
  7089. entity.Property(e => e.ClientIp)
  7090. .HasColumnType("varchar(15)")
  7091. .HasCharSet("utf8")
  7092. .HasCollation("utf8_general_ci");
  7093. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7094. entity.Property(e => e.CreateMan)
  7095. .HasColumnType("varchar(50)")
  7096. .HasCharSet("utf8")
  7097. .HasCollation("utf8_general_ci");
  7098. entity.Property(e => e.PartnerTradeNo)
  7099. .HasColumnType("varchar(32)")
  7100. .HasCharSet("utf8")
  7101. .HasCollation("utf8_general_ci");
  7102. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  7103. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7104. entity.Property(e => e.RechargeRecNo)
  7105. .HasColumnType("varchar(32)")
  7106. .HasCharSet("utf8")
  7107. .HasCollation("utf8_general_ci");
  7108. entity.Property(e => e.SeoDescription)
  7109. .HasColumnType("varchar(500)")
  7110. .HasCharSet("utf8")
  7111. .HasCollation("utf8_general_ci");
  7112. entity.Property(e => e.SeoKeyword)
  7113. .HasColumnType("varchar(200)")
  7114. .HasCharSet("utf8")
  7115. .HasCollation("utf8_general_ci");
  7116. entity.Property(e => e.SeoTitle)
  7117. .HasColumnType("varchar(100)")
  7118. .HasCharSet("utf8")
  7119. .HasCollation("utf8_general_ci");
  7120. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7121. entity.Property(e => e.Status).HasColumnType("int(11)");
  7122. entity.Property(e => e.SyncStatus).HasColumnType("int(11)");
  7123. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7124. entity.Property(e => e.UpdateMan)
  7125. .HasColumnType("varchar(50)")
  7126. .HasCharSet("utf8")
  7127. .HasCollation("utf8_general_ci");
  7128. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7129. entity.Property(e => e.Version).HasColumnType("int(11)");
  7130. });
  7131. modelBuilder.Entity<SystemSet>(entity =>
  7132. {
  7133. entity.Property(e => e.Id).HasColumnType("int(11)");
  7134. entity.Property(e => e.Address)
  7135. .HasColumnType("varchar(100)")
  7136. .HasCharSet("utf8")
  7137. .HasCollation("utf8_general_ci");
  7138. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7139. entity.Property(e => e.CreateMan)
  7140. .HasColumnType("varchar(50)")
  7141. .HasCharSet("utf8")
  7142. .HasCollation("utf8_general_ci");
  7143. entity.Property(e => e.IndexDescription)
  7144. .HasColumnType("longtext")
  7145. .HasCharSet("utf8")
  7146. .HasCollation("utf8_general_ci");
  7147. entity.Property(e => e.IndexKeyword)
  7148. .HasColumnType("varchar(200)")
  7149. .HasCharSet("utf8")
  7150. .HasCollation("utf8_general_ci");
  7151. entity.Property(e => e.Logo)
  7152. .HasColumnType("varchar(200)")
  7153. .HasCharSet("utf8")
  7154. .HasCollation("utf8_general_ci");
  7155. entity.Property(e => e.Phone)
  7156. .HasColumnType("varchar(100)")
  7157. .HasCharSet("utf8")
  7158. .HasCollation("utf8_general_ci");
  7159. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7160. entity.Property(e => e.RightInfo)
  7161. .HasColumnType("longtext")
  7162. .HasCharSet("utf8")
  7163. .HasCollation("utf8_general_ci");
  7164. entity.Property(e => e.SeoDescription)
  7165. .HasColumnType("varchar(500)")
  7166. .HasCharSet("utf8")
  7167. .HasCollation("utf8_general_ci");
  7168. entity.Property(e => e.SeoKeyword)
  7169. .HasColumnType("varchar(200)")
  7170. .HasCharSet("utf8")
  7171. .HasCollation("utf8_general_ci");
  7172. entity.Property(e => e.SeoTitle)
  7173. .HasColumnType("varchar(100)")
  7174. .HasCharSet("utf8")
  7175. .HasCollation("utf8_general_ci");
  7176. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7177. entity.Property(e => e.StartAdPhoto)
  7178. .HasColumnType("varchar(200)")
  7179. .HasCharSet("utf8")
  7180. .HasCollation("utf8_general_ci");
  7181. entity.Property(e => e.Status).HasColumnType("int(11)");
  7182. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7183. entity.Property(e => e.UpdateMan)
  7184. .HasColumnType("varchar(50)")
  7185. .HasCharSet("utf8")
  7186. .HasCollation("utf8_general_ci");
  7187. entity.Property(e => e.UploadAutoWater)
  7188. .HasColumnType("bit(1)")
  7189. .HasDefaultValueSql("b'0'");
  7190. entity.Property(e => e.UploadAutoZoom)
  7191. .HasColumnType("bit(1)")
  7192. .HasDefaultValueSql("b'0'");
  7193. entity.Property(e => e.UploadAutoZoomHeight).HasColumnType("int(11)");
  7194. entity.Property(e => e.UploadAutoZoomQuality).HasColumnType("int(11)");
  7195. entity.Property(e => e.UploadAutoZoomWidth).HasColumnType("int(11)");
  7196. entity.Property(e => e.UploadExt)
  7197. .HasColumnType("varchar(100)")
  7198. .HasCharSet("utf8")
  7199. .HasCollation("utf8_general_ci");
  7200. entity.Property(e => e.UploadMaxSize).HasColumnType("int(11)");
  7201. entity.Property(e => e.UploadOss)
  7202. .HasColumnType("bit(1)")
  7203. .HasDefaultValueSql("b'0'");
  7204. entity.Property(e => e.UploadWaterPath)
  7205. .HasColumnType("varchar(200)")
  7206. .HasCharSet("utf8")
  7207. .HasCollation("utf8_general_ci");
  7208. entity.Property(e => e.UploadWaterPosition)
  7209. .HasColumnType("varchar(15)")
  7210. .HasCharSet("utf8")
  7211. .HasCollation("utf8_general_ci");
  7212. entity.Property(e => e.Version).HasColumnType("int(11)");
  7213. entity.Property(e => e.WebName)
  7214. .HasColumnType("varchar(50)")
  7215. .HasCharSet("utf8")
  7216. .HasCollation("utf8_general_ci");
  7217. entity.Property(e => e.WebStatCode)
  7218. .HasColumnType("longtext")
  7219. .HasCharSet("utf8")
  7220. .HasCollation("utf8_general_ci");
  7221. entity.Property(e => e.WebUrl)
  7222. .HasColumnType("varchar(200)")
  7223. .HasCharSet("utf8")
  7224. .HasCollation("utf8_general_ci");
  7225. });
  7226. modelBuilder.Entity<TeamApply>(entity =>
  7227. {
  7228. entity.Property(e => e.Id).HasColumnType("int(11)");
  7229. entity.Property(e => e.Areas)
  7230. .HasColumnType("varchar(30)")
  7231. .HasCharSet("utf8")
  7232. .HasCollation("utf8_general_ci");
  7233. entity.Property(e => e.AuditRemark)
  7234. .HasColumnType("varchar(64)")
  7235. .HasCharSet("utf8")
  7236. .HasCollation("utf8_general_ci");
  7237. entity.Property(e => e.AuditResult).HasColumnType("int(11)");
  7238. entity.Property(e => e.AuditTime).HasColumnType("datetime");
  7239. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7240. entity.Property(e => e.CreateMan)
  7241. .HasColumnType("varchar(50)")
  7242. .HasCharSet("utf8")
  7243. .HasCollation("utf8_general_ci");
  7244. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  7245. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  7246. entity.Property(e => e.EnterEndDate).HasColumnType("datetime");
  7247. entity.Property(e => e.EnterStartDate).HasColumnType("datetime");
  7248. entity.Property(e => e.ManagerName)
  7249. .HasColumnType("varchar(32)")
  7250. .HasCharSet("utf8")
  7251. .HasCollation("utf8_general_ci");
  7252. entity.Property(e => e.ManagerNo)
  7253. .HasColumnType("varchar(32)")
  7254. .HasCharSet("utf8")
  7255. .HasCollation("utf8_general_ci");
  7256. entity.Property(e => e.MaxUserNum).HasColumnType("int(11)");
  7257. entity.Property(e => e.MinUserNum).HasColumnType("int(11)");
  7258. entity.Property(e => e.NotifyFlag).HasColumnType("int(11)");
  7259. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7260. entity.Property(e => e.Remark)
  7261. .HasColumnType("varchar(64)")
  7262. .HasCharSet("utf8")
  7263. .HasCollation("utf8_general_ci");
  7264. entity.Property(e => e.SeoDescription)
  7265. .HasColumnType("varchar(500)")
  7266. .HasCharSet("utf8")
  7267. .HasCollation("utf8_general_ci");
  7268. entity.Property(e => e.SeoKeyword)
  7269. .HasColumnType("varchar(200)")
  7270. .HasCharSet("utf8")
  7271. .HasCollation("utf8_general_ci");
  7272. entity.Property(e => e.SeoTitle)
  7273. .HasColumnType("varchar(100)")
  7274. .HasCharSet("utf8")
  7275. .HasCollation("utf8_general_ci");
  7276. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7277. entity.Property(e => e.Status).HasColumnType("int(11)");
  7278. entity.Property(e => e.TeamName)
  7279. .HasColumnType("varchar(32)")
  7280. .HasCharSet("utf8")
  7281. .HasCollation("utf8_general_ci");
  7282. entity.Property(e => e.TeamNo)
  7283. .HasColumnType("varchar(32)")
  7284. .HasCharSet("utf8")
  7285. .HasCollation("utf8_general_ci");
  7286. entity.Property(e => e.TeamStatus).HasColumnType("int(11)");
  7287. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7288. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7289. entity.Property(e => e.UpdateMan)
  7290. .HasColumnType("varchar(50)")
  7291. .HasCharSet("utf8")
  7292. .HasCollation("utf8_general_ci");
  7293. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7294. entity.Property(e => e.Version).HasColumnType("int(11)");
  7295. entity.Property(e => e.WatchWord)
  7296. .HasColumnType("varchar(32)")
  7297. .HasCharSet("utf8")
  7298. .HasCollation("utf8_general_ci");
  7299. });
  7300. modelBuilder.Entity<TeamApplyForTeamName>(entity =>
  7301. {
  7302. entity.HasKey(e => e.TeamName)
  7303. .HasName("PRIMARY");
  7304. entity.Property(e => e.TeamName)
  7305. .HasColumnType("varchar(32)")
  7306. .HasCharSet("utf8")
  7307. .HasCollation("utf8_general_ci");
  7308. entity.Property(e => e.TeamId).HasColumnType("int(11)");
  7309. });
  7310. modelBuilder.Entity<TeamApplyForTeamNo>(entity =>
  7311. {
  7312. entity.HasKey(e => e.TeamNo)
  7313. .HasName("PRIMARY");
  7314. entity.Property(e => e.TeamNo)
  7315. .HasColumnType("varchar(32)")
  7316. .HasCharSet("utf8")
  7317. .HasCollation("utf8_general_ci");
  7318. entity.Property(e => e.TeamId).HasColumnType("int(11)");
  7319. });
  7320. modelBuilder.Entity<TeamBlackList>(entity =>
  7321. {
  7322. entity.Property(e => e.Id).HasColumnType("int(11)");
  7323. entity.Property(e => e.BlackStatus).HasColumnType("int(11)");
  7324. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7325. entity.Property(e => e.CreateMan)
  7326. .HasColumnType("varchar(50)")
  7327. .HasCharSet("utf8")
  7328. .HasCollation("utf8_general_ci");
  7329. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  7330. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  7331. entity.Property(e => e.ManagerName)
  7332. .HasColumnType("varchar(32)")
  7333. .HasCharSet("utf8")
  7334. .HasCollation("utf8_general_ci");
  7335. entity.Property(e => e.ManagerNo)
  7336. .HasColumnType("varchar(32)")
  7337. .HasCharSet("utf8")
  7338. .HasCollation("utf8_general_ci");
  7339. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7340. entity.Property(e => e.Remark)
  7341. .HasColumnType("varchar(64)")
  7342. .HasCharSet("utf8")
  7343. .HasCollation("utf8_general_ci");
  7344. entity.Property(e => e.SeoDescription)
  7345. .HasColumnType("varchar(500)")
  7346. .HasCharSet("utf8")
  7347. .HasCollation("utf8_general_ci");
  7348. entity.Property(e => e.SeoKeyword)
  7349. .HasColumnType("varchar(200)")
  7350. .HasCharSet("utf8")
  7351. .HasCollation("utf8_general_ci");
  7352. entity.Property(e => e.SeoTitle)
  7353. .HasColumnType("varchar(100)")
  7354. .HasCharSet("utf8")
  7355. .HasCollation("utf8_general_ci");
  7356. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7357. entity.Property(e => e.Status).HasColumnType("int(11)");
  7358. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7359. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7360. entity.Property(e => e.UpdateMan)
  7361. .HasColumnType("varchar(50)")
  7362. .HasCharSet("utf8")
  7363. .HasCollation("utf8_general_ci");
  7364. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7365. entity.Property(e => e.Version).HasColumnType("int(11)");
  7366. });
  7367. modelBuilder.Entity<TeamConfig>(entity =>
  7368. {
  7369. entity.Property(e => e.Id).HasColumnType("int(11)");
  7370. entity.Property(e => e.BlacklistCycle).HasColumnType("int(11)");
  7371. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7372. entity.Property(e => e.CreateMan)
  7373. .HasColumnType("varchar(50)")
  7374. .HasCharSet("utf8")
  7375. .HasCollation("utf8_general_ci");
  7376. entity.Property(e => e.EnterEndMin).HasColumnType("int(11)");
  7377. entity.Property(e => e.LimitBuddyNo)
  7378. .HasColumnType("varchar(128)")
  7379. .HasCharSet("utf8")
  7380. .HasCollation("utf8_general_ci");
  7381. entity.Property(e => e.MaxCycleNum).HasColumnType("int(11)");
  7382. entity.Property(e => e.MaxStartDayLimit).HasColumnType("int(11)");
  7383. entity.Property(e => e.MaxUserNum).HasColumnType("int(11)");
  7384. entity.Property(e => e.MinCycleNum).HasColumnType("int(11)");
  7385. entity.Property(e => e.MinStartDayLimit).HasColumnType("int(11)");
  7386. entity.Property(e => e.MinUserNum).HasColumnType("int(11)");
  7387. entity.Property(e => e.OverlineStatus)
  7388. .HasColumnType("bit(1)")
  7389. .HasDefaultValueSql("b'0'");
  7390. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7391. entity.Property(e => e.Remark)
  7392. .HasColumnType("varchar(64)")
  7393. .HasCharSet("utf8")
  7394. .HasCollation("utf8_general_ci");
  7395. entity.Property(e => e.SeoDescription)
  7396. .HasColumnType("varchar(500)")
  7397. .HasCharSet("utf8")
  7398. .HasCollation("utf8_general_ci");
  7399. entity.Property(e => e.SeoKeyword)
  7400. .HasColumnType("varchar(200)")
  7401. .HasCharSet("utf8")
  7402. .HasCollation("utf8_general_ci");
  7403. entity.Property(e => e.SeoTitle)
  7404. .HasColumnType("varchar(100)")
  7405. .HasCharSet("utf8")
  7406. .HasCollation("utf8_general_ci");
  7407. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7408. entity.Property(e => e.Status).HasColumnType("int(11)");
  7409. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7410. entity.Property(e => e.UpdateMan)
  7411. .HasColumnType("varchar(50)")
  7412. .HasCharSet("utf8")
  7413. .HasCollation("utf8_general_ci");
  7414. entity.Property(e => e.Version).HasColumnType("int(11)");
  7415. });
  7416. modelBuilder.Entity<TeamDayTop>(entity =>
  7417. {
  7418. entity.Property(e => e.Id).HasColumnType("int(11)");
  7419. entity.Property(e => e.ActMerNum).HasColumnType("int(11)");
  7420. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  7421. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7422. entity.Property(e => e.CreateMan)
  7423. .HasColumnType("varchar(50)")
  7424. .HasCharSet("utf8")
  7425. .HasCollation("utf8_general_ci");
  7426. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7427. entity.Property(e => e.Remark)
  7428. .HasColumnType("varchar(64)")
  7429. .HasCharSet("utf8")
  7430. .HasCollation("utf8_general_ci");
  7431. entity.Property(e => e.SeoDescription)
  7432. .HasColumnType("varchar(500)")
  7433. .HasCharSet("utf8")
  7434. .HasCollation("utf8_general_ci");
  7435. entity.Property(e => e.SeoKeyword)
  7436. .HasColumnType("varchar(200)")
  7437. .HasCharSet("utf8")
  7438. .HasCollation("utf8_general_ci");
  7439. entity.Property(e => e.SeoTitle)
  7440. .HasColumnType("varchar(100)")
  7441. .HasCharSet("utf8")
  7442. .HasCollation("utf8_general_ci");
  7443. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7444. entity.Property(e => e.StatDate)
  7445. .HasColumnType("varchar(8)")
  7446. .HasCharSet("utf8")
  7447. .HasCollation("utf8_general_ci");
  7448. entity.Property(e => e.StatMonth)
  7449. .HasColumnType("varchar(6)")
  7450. .HasCharSet("utf8")
  7451. .HasCollation("utf8_general_ci");
  7452. entity.Property(e => e.Status).HasColumnType("int(11)");
  7453. entity.Property(e => e.TeamActMerNum).HasColumnType("int(11)");
  7454. entity.Property(e => e.TeamEndDate).HasColumnType("datetime");
  7455. entity.Property(e => e.TeamId).HasColumnType("int(11)");
  7456. entity.Property(e => e.TeamStartDate).HasColumnType("datetime");
  7457. entity.Property(e => e.TeamUserId).HasColumnType("int(11)");
  7458. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7459. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7460. entity.Property(e => e.UpdateMan)
  7461. .HasColumnType("varchar(50)")
  7462. .HasCharSet("utf8")
  7463. .HasCollation("utf8_general_ci");
  7464. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7465. entity.Property(e => e.Version).HasColumnType("int(11)");
  7466. });
  7467. modelBuilder.Entity<TeamOfferApply>(entity =>
  7468. {
  7469. entity.Property(e => e.Id).HasColumnType("int(11)");
  7470. entity.Property(e => e.Areas)
  7471. .HasColumnType("varchar(30)")
  7472. .HasCharSet("utf8")
  7473. .HasCollation("utf8_general_ci");
  7474. entity.Property(e => e.AuditRemark)
  7475. .HasColumnType("varchar(64)")
  7476. .HasCharSet("utf8")
  7477. .HasCollation("utf8_general_ci");
  7478. entity.Property(e => e.AuditResult).HasColumnType("int(11)");
  7479. entity.Property(e => e.AuditTime).HasColumnType("datetime");
  7480. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7481. entity.Property(e => e.CreateMan)
  7482. .HasColumnType("varchar(50)")
  7483. .HasCharSet("utf8")
  7484. .HasCollation("utf8_general_ci");
  7485. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  7486. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  7487. entity.Property(e => e.EnterDate).HasColumnType("datetime");
  7488. entity.Property(e => e.ManagerName)
  7489. .HasColumnType("varchar(32)")
  7490. .HasCharSet("utf8")
  7491. .HasCollation("utf8_general_ci");
  7492. entity.Property(e => e.ManagerNo)
  7493. .HasColumnType("varchar(32)")
  7494. .HasCharSet("utf8")
  7495. .HasCollation("utf8_general_ci");
  7496. entity.Property(e => e.NotifyFlag).HasColumnType("int(11)");
  7497. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7498. entity.Property(e => e.Remark)
  7499. .HasColumnType("varchar(64)")
  7500. .HasCharSet("utf8")
  7501. .HasCollation("utf8_general_ci");
  7502. entity.Property(e => e.SeoDescription)
  7503. .HasColumnType("varchar(500)")
  7504. .HasCharSet("utf8")
  7505. .HasCollation("utf8_general_ci");
  7506. entity.Property(e => e.SeoKeyword)
  7507. .HasColumnType("varchar(200)")
  7508. .HasCharSet("utf8")
  7509. .HasCollation("utf8_general_ci");
  7510. entity.Property(e => e.SeoTitle)
  7511. .HasColumnType("varchar(100)")
  7512. .HasCharSet("utf8")
  7513. .HasCollation("utf8_general_ci");
  7514. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7515. entity.Property(e => e.Status).HasColumnType("int(11)");
  7516. entity.Property(e => e.TeamApplyStatus).HasColumnType("int(11)");
  7517. entity.Property(e => e.TeamId).HasColumnType("int(11)");
  7518. entity.Property(e => e.TeamLeader).HasColumnType("int(11)");
  7519. entity.Property(e => e.TeamStatus).HasColumnType("int(11)");
  7520. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7521. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7522. entity.Property(e => e.UpdateMan)
  7523. .HasColumnType("varchar(50)")
  7524. .HasCharSet("utf8")
  7525. .HasCollation("utf8_general_ci");
  7526. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7527. entity.Property(e => e.Version).HasColumnType("int(11)");
  7528. });
  7529. modelBuilder.Entity<TeamPersonDayTop>(entity =>
  7530. {
  7531. entity.Property(e => e.Id).HasColumnType("int(11)");
  7532. entity.Property(e => e.ActMerNum).HasColumnType("int(11)");
  7533. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  7534. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7535. entity.Property(e => e.CreateMan)
  7536. .HasColumnType("varchar(50)")
  7537. .HasCharSet("utf8")
  7538. .HasCollation("utf8_general_ci");
  7539. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7540. entity.Property(e => e.Remark)
  7541. .HasColumnType("varchar(64)")
  7542. .HasCharSet("utf8")
  7543. .HasCollation("utf8_general_ci");
  7544. entity.Property(e => e.SeoDescription)
  7545. .HasColumnType("varchar(500)")
  7546. .HasCharSet("utf8")
  7547. .HasCollation("utf8_general_ci");
  7548. entity.Property(e => e.SeoKeyword)
  7549. .HasColumnType("varchar(200)")
  7550. .HasCharSet("utf8")
  7551. .HasCollation("utf8_general_ci");
  7552. entity.Property(e => e.SeoTitle)
  7553. .HasColumnType("varchar(100)")
  7554. .HasCharSet("utf8")
  7555. .HasCollation("utf8_general_ci");
  7556. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7557. entity.Property(e => e.StatDate)
  7558. .HasColumnType("varchar(8)")
  7559. .HasCharSet("utf8")
  7560. .HasCollation("utf8_general_ci");
  7561. entity.Property(e => e.StatMonth)
  7562. .HasColumnType("varchar(6)")
  7563. .HasCharSet("utf8")
  7564. .HasCollation("utf8_general_ci");
  7565. entity.Property(e => e.Status).HasColumnType("int(11)");
  7566. entity.Property(e => e.TeamActMerNum).HasColumnType("int(11)");
  7567. entity.Property(e => e.TeamEndDate).HasColumnType("datetime");
  7568. entity.Property(e => e.TeamId).HasColumnType("int(11)");
  7569. entity.Property(e => e.TeamStartDate).HasColumnType("datetime");
  7570. entity.Property(e => e.TeamUserId).HasColumnType("int(11)");
  7571. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7572. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7573. entity.Property(e => e.UpdateMan)
  7574. .HasColumnType("varchar(50)")
  7575. .HasCharSet("utf8")
  7576. .HasCollation("utf8_general_ci");
  7577. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7578. entity.Property(e => e.Version).HasColumnType("int(11)");
  7579. });
  7580. modelBuilder.Entity<TmpCert>(entity =>
  7581. {
  7582. entity.HasKey(e => e.MakerCode)
  7583. .HasName("PRIMARY");
  7584. entity.Property(e => e.MakerCode)
  7585. .HasColumnType("varchar(50)")
  7586. .HasCharSet("latin1")
  7587. .HasCollation("latin1_swedish_ci");
  7588. entity.Property(e => e.CertId)
  7589. .HasColumnType("varchar(50)")
  7590. .HasCharSet("latin1")
  7591. .HasCollation("latin1_swedish_ci");
  7592. });
  7593. modelBuilder.Entity<TradeDaySummary>(entity =>
  7594. {
  7595. entity.Property(e => e.Id).HasColumnType("int(11)");
  7596. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  7597. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7598. entity.Property(e => e.CreateMan)
  7599. .HasColumnType("varchar(50)")
  7600. .HasCharSet("utf8")
  7601. .HasCollation("utf8_general_ci");
  7602. entity.Property(e => e.HelpDirectCreditTradeAmt).HasColumnType("decimal(18,2)");
  7603. entity.Property(e => e.HelpDirectDebitCapNum).HasColumnType("decimal(18,2)");
  7604. entity.Property(e => e.HelpDirectDebitCapTradeAmt).HasColumnType("decimal(18,2)");
  7605. entity.Property(e => e.HelpDirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  7606. entity.Property(e => e.HelpDirectNonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7607. entity.Property(e => e.HelpDirectNonQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7608. entity.Property(e => e.HelpDirectQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7609. entity.Property(e => e.HelpDirectQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7610. entity.Property(e => e.HelpDirectTradeAmt).HasColumnType("decimal(18,2)");
  7611. entity.Property(e => e.HelpNonDirectCreditTradeAmt).HasColumnType("decimal(18,2)");
  7612. entity.Property(e => e.HelpNonDirectDebitCapNum).HasColumnType("decimal(18,2)");
  7613. entity.Property(e => e.HelpNonDirectDebitCapTradeAmt).HasColumnType("decimal(18,2)");
  7614. entity.Property(e => e.HelpNonDirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  7615. entity.Property(e => e.HelpNonDirectNonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7616. entity.Property(e => e.HelpNonDirectNonQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7617. entity.Property(e => e.HelpNonDirectQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7618. entity.Property(e => e.HelpNonDirectQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7619. entity.Property(e => e.HelpNonDirectTradeAmt).HasColumnType("decimal(18,2)");
  7620. entity.Property(e => e.MgrName)
  7621. .HasColumnType("varchar(32)")
  7622. .HasCharSet("utf8")
  7623. .HasCollation("utf8_general_ci");
  7624. entity.Property(e => e.MgrNo)
  7625. .HasColumnType("varchar(16)")
  7626. .HasCharSet("utf8")
  7627. .HasCollation("utf8_general_ci");
  7628. entity.Property(e => e.NotHelpDirectCreditTradeAmt).HasColumnType("decimal(18,2)");
  7629. entity.Property(e => e.NotHelpDirectDebitCapNum).HasColumnType("int(11)");
  7630. entity.Property(e => e.NotHelpDirectDebitCapTradeAmt).HasColumnType("decimal(18,2)");
  7631. entity.Property(e => e.NotHelpDirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  7632. entity.Property(e => e.NotHelpDirectNonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7633. entity.Property(e => e.NotHelpDirectNonQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7634. entity.Property(e => e.NotHelpDirectQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7635. entity.Property(e => e.NotHelpDirectQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7636. entity.Property(e => e.NotHelpDirectTradeAmt).HasColumnType("decimal(18,2)");
  7637. entity.Property(e => e.NotHelpNonDirectCreditTradeAmt).HasColumnType("decimal(18,2)");
  7638. entity.Property(e => e.NotHelpNonDirectDebitCapNum).HasColumnType("int(11)");
  7639. entity.Property(e => e.NotHelpNonDirectDebitCapTradeAmt).HasColumnType("decimal(18,2)");
  7640. entity.Property(e => e.NotHelpNonDirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  7641. entity.Property(e => e.NotHelpNonDirectNonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7642. entity.Property(e => e.NotHelpNonDirectNonQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7643. entity.Property(e => e.NotHelpNonDirectQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7644. entity.Property(e => e.NotHelpNonDirectQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7645. entity.Property(e => e.NotHelpNonDirectTradeAmt).HasColumnType("decimal(18,2)");
  7646. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7647. entity.Property(e => e.SeoDescription)
  7648. .HasColumnType("varchar(500)")
  7649. .HasCharSet("utf8")
  7650. .HasCollation("utf8_general_ci");
  7651. entity.Property(e => e.SeoKeyword)
  7652. .HasColumnType("varchar(200)")
  7653. .HasCharSet("utf8")
  7654. .HasCollation("utf8_general_ci");
  7655. entity.Property(e => e.SeoTitle)
  7656. .HasColumnType("varchar(100)")
  7657. .HasCharSet("utf8")
  7658. .HasCollation("utf8_general_ci");
  7659. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7660. entity.Property(e => e.Status).HasColumnType("int(11)");
  7661. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7662. entity.Property(e => e.TradeDate)
  7663. .HasColumnType("varchar(8)")
  7664. .HasCharSet("utf8")
  7665. .HasCollation("utf8_general_ci");
  7666. entity.Property(e => e.TradeMonth)
  7667. .HasColumnType("varchar(6)")
  7668. .HasCharSet("utf8")
  7669. .HasCollation("utf8_general_ci");
  7670. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7671. entity.Property(e => e.UpdateMan)
  7672. .HasColumnType("varchar(50)")
  7673. .HasCharSet("utf8")
  7674. .HasCollation("utf8_general_ci");
  7675. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7676. entity.Property(e => e.Version).HasColumnType("int(11)");
  7677. });
  7678. modelBuilder.Entity<TradeRecord>(entity =>
  7679. {
  7680. entity.Property(e => e.Id).HasColumnType("int(11)");
  7681. entity.Property(e => e.BankCardType).HasColumnType("int(11)");
  7682. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  7683. entity.Property(e => e.CapFlag).HasColumnType("int(11)");
  7684. entity.Property(e => e.ClearDate).HasColumnType("datetime");
  7685. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7686. entity.Property(e => e.CreateMan)
  7687. .HasColumnType("varchar(50)")
  7688. .HasCharSet("utf8")
  7689. .HasCollation("utf8_general_ci");
  7690. entity.Property(e => e.DirectFlag)
  7691. .HasColumnType("bit(1)")
  7692. .HasDefaultValueSql("b'0'");
  7693. entity.Property(e => e.HelpMonthCount).HasColumnType("int(11)");
  7694. entity.Property(e => e.MerBuddyType).HasColumnType("int(11)");
  7695. entity.Property(e => e.MerHelpFlag)
  7696. .HasColumnType("bit(1)")
  7697. .HasDefaultValueSql("b'0'");
  7698. entity.Property(e => e.MerNo)
  7699. .HasColumnType("varchar(32)")
  7700. .HasCharSet("utf8")
  7701. .HasCollation("utf8_general_ci");
  7702. entity.Property(e => e.MerUserId).HasColumnType("int(11)");
  7703. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  7704. entity.Property(e => e.QrPayFlag).HasColumnType("int(11)");
  7705. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7706. entity.Property(e => e.RecordNo)
  7707. .HasColumnType("varchar(32)")
  7708. .HasCharSet("utf8")
  7709. .HasCollation("utf8_general_ci");
  7710. entity.Property(e => e.Remark)
  7711. .HasColumnType("varchar(64)")
  7712. .HasCharSet("utf8")
  7713. .HasCollation("utf8_general_ci");
  7714. entity.Property(e => e.SeoDescription)
  7715. .HasColumnType("varchar(500)")
  7716. .HasCharSet("utf8")
  7717. .HasCollation("utf8_general_ci");
  7718. entity.Property(e => e.SeoKeyword)
  7719. .HasColumnType("varchar(200)")
  7720. .HasCharSet("utf8")
  7721. .HasCollation("utf8_general_ci");
  7722. entity.Property(e => e.SeoTitle)
  7723. .HasColumnType("varchar(100)")
  7724. .HasCharSet("utf8")
  7725. .HasCollation("utf8_general_ci");
  7726. entity.Property(e => e.SnNo)
  7727. .HasColumnType("varchar(32)")
  7728. .HasCharSet("utf8")
  7729. .HasCollation("utf8_general_ci");
  7730. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7731. entity.Property(e => e.Status).HasColumnType("int(11)");
  7732. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7733. entity.Property(e => e.TradeAmount).HasColumnType("decimal(18,2)");
  7734. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  7735. entity.Property(e => e.TradeSerialNo)
  7736. .HasColumnType("varchar(48)")
  7737. .HasCharSet("utf8")
  7738. .HasCollation("utf8_general_ci");
  7739. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7740. entity.Property(e => e.UpdateMan)
  7741. .HasColumnType("varchar(50)")
  7742. .HasCharSet("utf8")
  7743. .HasCollation("utf8_general_ci");
  7744. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7745. entity.Property(e => e.Version).HasColumnType("int(11)");
  7746. });
  7747. modelBuilder.Entity<UploadParams>(entity =>
  7748. {
  7749. entity.Property(e => e.Id).HasColumnType("int(11)");
  7750. entity.Property(e => e.ColumnEnName)
  7751. .HasColumnType("varchar(50)")
  7752. .HasCharSet("utf8")
  7753. .HasCollation("utf8_general_ci");
  7754. entity.Property(e => e.ColumnName)
  7755. .HasColumnType("varchar(50)")
  7756. .HasCharSet("utf8")
  7757. .HasCollation("utf8_general_ci");
  7758. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7759. entity.Property(e => e.CreateMan)
  7760. .HasColumnType("varchar(50)")
  7761. .HasCharSet("utf8")
  7762. .HasCollation("utf8_general_ci");
  7763. entity.Property(e => e.ParamString)
  7764. .HasColumnType("varchar(200)")
  7765. .HasCharSet("utf8")
  7766. .HasCollation("utf8_general_ci");
  7767. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7768. entity.Property(e => e.SeoDescription)
  7769. .HasColumnType("varchar(500)")
  7770. .HasCharSet("utf8")
  7771. .HasCollation("utf8_general_ci");
  7772. entity.Property(e => e.SeoKeyword)
  7773. .HasColumnType("varchar(200)")
  7774. .HasCharSet("utf8")
  7775. .HasCollation("utf8_general_ci");
  7776. entity.Property(e => e.SeoTitle)
  7777. .HasColumnType("varchar(100)")
  7778. .HasCharSet("utf8")
  7779. .HasCollation("utf8_general_ci");
  7780. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7781. entity.Property(e => e.Status).HasColumnType("int(11)");
  7782. entity.Property(e => e.TableEnName)
  7783. .HasColumnType("varchar(50)")
  7784. .HasCharSet("utf8")
  7785. .HasCollation("utf8_general_ci");
  7786. entity.Property(e => e.TableName)
  7787. .HasColumnType("varchar(50)")
  7788. .HasCharSet("utf8")
  7789. .HasCollation("utf8_general_ci");
  7790. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7791. entity.Property(e => e.UpdateMan)
  7792. .HasColumnType("varchar(50)")
  7793. .HasCharSet("utf8")
  7794. .HasCollation("utf8_general_ci");
  7795. entity.Property(e => e.Version).HasColumnType("int(11)");
  7796. });
  7797. modelBuilder.Entity<UserAccount>(entity =>
  7798. {
  7799. entity.Property(e => e.Id).HasColumnType("int(11)");
  7800. entity.Property(e => e.AccountStatus).HasColumnType("int(11)");
  7801. entity.Property(e => e.BalanceAmount).HasColumnType("decimal(18,2)");
  7802. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7803. entity.Property(e => e.CreateMan)
  7804. .HasColumnType("varchar(50)")
  7805. .HasCharSet("utf8")
  7806. .HasCollation("utf8_general_ci");
  7807. entity.Property(e => e.FreezeAmount).HasColumnType("decimal(18,2)");
  7808. entity.Property(e => e.LockStatus).HasColumnType("int(11)");
  7809. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7810. entity.Property(e => e.SeoDescription)
  7811. .HasColumnType("varchar(500)")
  7812. .HasCharSet("utf8")
  7813. .HasCollation("utf8_general_ci");
  7814. entity.Property(e => e.SeoKeyword)
  7815. .HasColumnType("varchar(200)")
  7816. .HasCharSet("utf8")
  7817. .HasCollation("utf8_general_ci");
  7818. entity.Property(e => e.SeoTitle)
  7819. .HasColumnType("varchar(100)")
  7820. .HasCharSet("utf8")
  7821. .HasCollation("utf8_general_ci");
  7822. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7823. entity.Property(e => e.Status).HasColumnType("int(11)");
  7824. entity.Property(e => e.TeamTotalOverProfit).HasColumnType("decimal(18,2)");
  7825. entity.Property(e => e.TeamTotalProfit).HasColumnType("decimal(18,2)");
  7826. entity.Property(e => e.TeamTotalServiceProfit).HasColumnType("decimal(18,2)");
  7827. entity.Property(e => e.TotalAmount).HasColumnType("decimal(18,2)");
  7828. entity.Property(e => e.TotalOverProfit).HasColumnType("decimal(18,2)");
  7829. entity.Property(e => e.TotalProfit).HasColumnType("decimal(18,2)");
  7830. entity.Property(e => e.TotalServiceProfit).HasColumnType("decimal(18,2)");
  7831. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7832. entity.Property(e => e.UpdateMan)
  7833. .HasColumnType("varchar(50)")
  7834. .HasCharSet("utf8")
  7835. .HasCollation("utf8_general_ci");
  7836. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7837. entity.Property(e => e.UserProperty).HasColumnType("int(11)");
  7838. entity.Property(e => e.UserType).HasColumnType("int(11)");
  7839. entity.Property(e => e.Version).HasColumnType("int(11)");
  7840. entity.Property(e => e.WithdrawAmount).HasColumnType("decimal(18,2)");
  7841. });
  7842. modelBuilder.Entity<UserAccountRecord>(entity =>
  7843. {
  7844. entity.Property(e => e.Id).HasColumnType("int(11)");
  7845. entity.Property(e => e.AfterBalanceAmount).HasColumnType("decimal(18,2)");
  7846. entity.Property(e => e.AfterFreezeAmount).HasColumnType("decimal(18,2)");
  7847. entity.Property(e => e.AfterTotalAmount).HasColumnType("decimal(18,2)");
  7848. entity.Property(e => e.BeforeBalanceAmount).HasColumnType("decimal(18,2)");
  7849. entity.Property(e => e.BeforeFreezeAmount).HasColumnType("decimal(18,2)");
  7850. entity.Property(e => e.BeforeTotalAmount).HasColumnType("decimal(18,2)");
  7851. entity.Property(e => e.ChangeAmount).HasColumnType("decimal(18,2)");
  7852. entity.Property(e => e.ChangeType).HasColumnType("int(11)");
  7853. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7854. entity.Property(e => e.CreateMan)
  7855. .HasColumnType("varchar(50)")
  7856. .HasCharSet("utf8")
  7857. .HasCollation("utf8_general_ci");
  7858. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  7859. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7860. entity.Property(e => e.Remark)
  7861. .HasColumnType("varchar(64)")
  7862. .HasCharSet("utf8")
  7863. .HasCollation("utf8_general_ci");
  7864. entity.Property(e => e.SeoDescription)
  7865. .HasColumnType("varchar(500)")
  7866. .HasCharSet("utf8")
  7867. .HasCollation("utf8_general_ci");
  7868. entity.Property(e => e.SeoKeyword)
  7869. .HasColumnType("varchar(200)")
  7870. .HasCharSet("utf8")
  7871. .HasCollation("utf8_general_ci");
  7872. entity.Property(e => e.SeoTitle)
  7873. .HasColumnType("varchar(100)")
  7874. .HasCharSet("utf8")
  7875. .HasCollation("utf8_general_ci");
  7876. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7877. entity.Property(e => e.Status).HasColumnType("int(11)");
  7878. entity.Property(e => e.TransRecordNo)
  7879. .HasColumnType("varchar(32)")
  7880. .HasCharSet("utf8")
  7881. .HasCollation("utf8_general_ci");
  7882. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7883. entity.Property(e => e.UpdateMan)
  7884. .HasColumnType("varchar(50)")
  7885. .HasCharSet("utf8")
  7886. .HasCollation("utf8_general_ci");
  7887. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7888. entity.Property(e => e.Version).HasColumnType("int(11)");
  7889. });
  7890. modelBuilder.Entity<UserAddress>(entity =>
  7891. {
  7892. entity.Property(e => e.Id).HasColumnType("int(11)");
  7893. entity.Property(e => e.Address)
  7894. .HasColumnType("varchar(100)")
  7895. .HasCharSet("utf8")
  7896. .HasCollation("utf8_general_ci");
  7897. entity.Property(e => e.Areas)
  7898. .HasColumnType("varchar(30)")
  7899. .HasCharSet("utf8")
  7900. .HasCollation("utf8_general_ci");
  7901. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7902. entity.Property(e => e.CreateMan)
  7903. .HasColumnType("varchar(50)")
  7904. .HasCharSet("utf8")
  7905. .HasCollation("utf8_general_ci");
  7906. entity.Property(e => e.IsDefault)
  7907. .HasColumnType("bit(1)")
  7908. .HasDefaultValueSql("b'0'");
  7909. entity.Property(e => e.Mobile)
  7910. .HasColumnType("varchar(11)")
  7911. .HasCharSet("utf8")
  7912. .HasCollation("utf8_general_ci");
  7913. entity.Property(e => e.PostalCode)
  7914. .HasColumnType("varchar(6)")
  7915. .HasCharSet("utf8")
  7916. .HasCollation("utf8_general_ci");
  7917. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7918. entity.Property(e => e.RealName)
  7919. .HasColumnType("varchar(10)")
  7920. .HasCharSet("utf8")
  7921. .HasCollation("utf8_general_ci");
  7922. entity.Property(e => e.SeoDescription)
  7923. .HasColumnType("varchar(500)")
  7924. .HasCharSet("utf8")
  7925. .HasCollation("utf8_general_ci");
  7926. entity.Property(e => e.SeoKeyword)
  7927. .HasColumnType("varchar(200)")
  7928. .HasCharSet("utf8")
  7929. .HasCollation("utf8_general_ci");
  7930. entity.Property(e => e.SeoTitle)
  7931. .HasColumnType("varchar(100)")
  7932. .HasCharSet("utf8")
  7933. .HasCollation("utf8_general_ci");
  7934. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7935. entity.Property(e => e.Status).HasColumnType("int(11)");
  7936. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7937. entity.Property(e => e.UpdateMan)
  7938. .HasColumnType("varchar(50)")
  7939. .HasCharSet("utf8")
  7940. .HasCollation("utf8_general_ci");
  7941. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7942. entity.Property(e => e.Version).HasColumnType("int(11)");
  7943. });
  7944. modelBuilder.Entity<UserAuthRecord>(entity =>
  7945. {
  7946. entity.Property(e => e.Id).HasColumnType("int(11)");
  7947. entity.Property(e => e.AuthType).HasColumnType("int(11)");
  7948. entity.Property(e => e.BankCardAccount)
  7949. .HasColumnType("varchar(32)")
  7950. .HasCharSet("utf8")
  7951. .HasCollation("utf8_general_ci");
  7952. entity.Property(e => e.BankMobile)
  7953. .HasColumnType("varchar(11)")
  7954. .HasCharSet("utf8")
  7955. .HasCollation("utf8_general_ci");
  7956. entity.Property(e => e.BankName)
  7957. .HasColumnType("varchar(64)")
  7958. .HasCharSet("utf8")
  7959. .HasCollation("utf8_general_ci");
  7960. entity.Property(e => e.ChannelCode)
  7961. .HasColumnType("varchar(16)")
  7962. .HasCharSet("utf8")
  7963. .HasCollation("utf8_general_ci");
  7964. entity.Property(e => e.ChannelName)
  7965. .HasColumnType("varchar(32)")
  7966. .HasCharSet("utf8")
  7967. .HasCollation("utf8_general_ci");
  7968. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7969. entity.Property(e => e.CreateMan)
  7970. .HasColumnType("varchar(50)")
  7971. .HasCharSet("utf8")
  7972. .HasCollation("utf8_general_ci");
  7973. entity.Property(e => e.IdcardNo)
  7974. .HasColumnType("varchar(18)")
  7975. .HasCharSet("utf8")
  7976. .HasCollation("utf8_general_ci");
  7977. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7978. entity.Property(e => e.RealName)
  7979. .HasColumnType("varchar(32)")
  7980. .HasCharSet("utf8")
  7981. .HasCollation("utf8_general_ci");
  7982. entity.Property(e => e.ReqData)
  7983. .HasColumnType("varchar(2048)")
  7984. .HasCharSet("utf8")
  7985. .HasCollation("utf8_general_ci");
  7986. entity.Property(e => e.ResData)
  7987. .HasColumnType("varchar(2048)")
  7988. .HasCharSet("utf8")
  7989. .HasCollation("utf8_general_ci");
  7990. entity.Property(e => e.ReturnCode)
  7991. .HasColumnType("varchar(32)")
  7992. .HasCharSet("utf8")
  7993. .HasCollation("utf8_general_ci");
  7994. entity.Property(e => e.ReturnMsg)
  7995. .HasColumnType("varchar(128)")
  7996. .HasCharSet("utf8")
  7997. .HasCollation("utf8_general_ci");
  7998. entity.Property(e => e.SeoDescription)
  7999. .HasColumnType("varchar(500)")
  8000. .HasCharSet("utf8")
  8001. .HasCollation("utf8_general_ci");
  8002. entity.Property(e => e.SeoKeyword)
  8003. .HasColumnType("varchar(200)")
  8004. .HasCharSet("utf8")
  8005. .HasCollation("utf8_general_ci");
  8006. entity.Property(e => e.SeoTitle)
  8007. .HasColumnType("varchar(100)")
  8008. .HasCharSet("utf8")
  8009. .HasCollation("utf8_general_ci");
  8010. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8011. entity.Property(e => e.Status).HasColumnType("int(11)");
  8012. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8013. entity.Property(e => e.UpdateMan)
  8014. .HasColumnType("varchar(50)")
  8015. .HasCharSet("utf8")
  8016. .HasCollation("utf8_general_ci");
  8017. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8018. entity.Property(e => e.Version).HasColumnType("int(11)");
  8019. });
  8020. modelBuilder.Entity<UserBack>(entity =>
  8021. {
  8022. entity.Property(e => e.Id).HasColumnType("int(11)");
  8023. entity.Property(e => e.BackKind).HasColumnType("int(11)");
  8024. entity.Property(e => e.BackStatus).HasColumnType("int(11)");
  8025. entity.Property(e => e.Content)
  8026. .HasColumnType("varchar(100)")
  8027. .HasCharSet("utf8")
  8028. .HasCollation("utf8_general_ci");
  8029. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8030. entity.Property(e => e.CreateMan)
  8031. .HasColumnType("varchar(50)")
  8032. .HasCharSet("utf8")
  8033. .HasCollation("utf8_general_ci");
  8034. entity.Property(e => e.IsPhoneCallBack)
  8035. .HasColumnType("bit(1)")
  8036. .HasDefaultValueSql("b'0'");
  8037. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8038. entity.Property(e => e.ReplyContent)
  8039. .HasColumnType("mediumtext")
  8040. .HasCharSet("utf8")
  8041. .HasCollation("utf8_general_ci");
  8042. entity.Property(e => e.SeoDescription)
  8043. .HasColumnType("varchar(500)")
  8044. .HasCharSet("utf8")
  8045. .HasCollation("utf8_general_ci");
  8046. entity.Property(e => e.SeoKeyword)
  8047. .HasColumnType("varchar(200)")
  8048. .HasCharSet("utf8")
  8049. .HasCollation("utf8_general_ci");
  8050. entity.Property(e => e.SeoTitle)
  8051. .HasColumnType("varchar(100)")
  8052. .HasCharSet("utf8")
  8053. .HasCollation("utf8_general_ci");
  8054. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8055. entity.Property(e => e.Status).HasColumnType("int(11)");
  8056. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8057. entity.Property(e => e.UpdateMan)
  8058. .HasColumnType("varchar(50)")
  8059. .HasCharSet("utf8")
  8060. .HasCollation("utf8_general_ci");
  8061. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8062. entity.Property(e => e.Version).HasColumnType("int(11)");
  8063. });
  8064. modelBuilder.Entity<UserBackKind>(entity =>
  8065. {
  8066. entity.Property(e => e.Id).HasColumnType("int(11)");
  8067. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8068. entity.Property(e => e.CreateMan)
  8069. .HasColumnType("varchar(50)")
  8070. .HasCharSet("utf8")
  8071. .HasCollation("utf8_general_ci");
  8072. entity.Property(e => e.Name)
  8073. .HasColumnType("varchar(50)")
  8074. .HasCharSet("utf8")
  8075. .HasCollation("utf8_general_ci");
  8076. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8077. entity.Property(e => e.SeoDescription)
  8078. .HasColumnType("varchar(500)")
  8079. .HasCharSet("utf8")
  8080. .HasCollation("utf8_general_ci");
  8081. entity.Property(e => e.SeoKeyword)
  8082. .HasColumnType("varchar(200)")
  8083. .HasCharSet("utf8")
  8084. .HasCollation("utf8_general_ci");
  8085. entity.Property(e => e.SeoTitle)
  8086. .HasColumnType("varchar(100)")
  8087. .HasCharSet("utf8")
  8088. .HasCollation("utf8_general_ci");
  8089. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8090. entity.Property(e => e.Status).HasColumnType("int(11)");
  8091. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8092. entity.Property(e => e.UpdateMan)
  8093. .HasColumnType("varchar(50)")
  8094. .HasCharSet("utf8")
  8095. .HasCollation("utf8_general_ci");
  8096. entity.Property(e => e.Version).HasColumnType("int(11)");
  8097. });
  8098. modelBuilder.Entity<UserBalanceTop>(entity =>
  8099. {
  8100. entity.Property(e => e.Id).HasColumnType("int(11)");
  8101. entity.Property(e => e.Balance).HasColumnType("decimal(18,2)");
  8102. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8103. entity.Property(e => e.CreateMan)
  8104. .HasColumnType("varchar(50)")
  8105. .HasCharSet("utf8")
  8106. .HasCollation("utf8_general_ci");
  8107. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8108. entity.Property(e => e.SeoDescription)
  8109. .HasColumnType("varchar(500)")
  8110. .HasCharSet("utf8")
  8111. .HasCollation("utf8_general_ci");
  8112. entity.Property(e => e.SeoKeyword)
  8113. .HasColumnType("varchar(200)")
  8114. .HasCharSet("utf8")
  8115. .HasCollation("utf8_general_ci");
  8116. entity.Property(e => e.SeoTitle)
  8117. .HasColumnType("varchar(100)")
  8118. .HasCharSet("utf8")
  8119. .HasCollation("utf8_general_ci");
  8120. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8121. entity.Property(e => e.StatDate)
  8122. .HasColumnType("varchar(8)")
  8123. .HasCharSet("utf8")
  8124. .HasCollation("utf8_general_ci");
  8125. entity.Property(e => e.StatMonth)
  8126. .HasColumnType("varchar(6)")
  8127. .HasCharSet("utf8")
  8128. .HasCollation("utf8_general_ci");
  8129. entity.Property(e => e.Status).HasColumnType("int(11)");
  8130. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8131. entity.Property(e => e.UpdateMan)
  8132. .HasColumnType("varchar(50)")
  8133. .HasCharSet("utf8")
  8134. .HasCollation("utf8_general_ci");
  8135. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8136. entity.Property(e => e.Version).HasColumnType("int(11)");
  8137. });
  8138. modelBuilder.Entity<UserCar>(entity =>
  8139. {
  8140. entity.Property(e => e.Id).HasColumnType("int(11)");
  8141. entity.Property(e => e.BuyCount).HasColumnType("int(11)");
  8142. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8143. entity.Property(e => e.CreateMan)
  8144. .HasColumnType("varchar(50)")
  8145. .HasCharSet("utf8")
  8146. .HasCollation("utf8_general_ci");
  8147. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  8148. entity.Property(e => e.NormId).HasColumnType("int(11)");
  8149. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  8150. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8151. entity.Property(e => e.SeoDescription)
  8152. .HasColumnType("varchar(500)")
  8153. .HasCharSet("utf8")
  8154. .HasCollation("utf8_general_ci");
  8155. entity.Property(e => e.SeoKeyword)
  8156. .HasColumnType("varchar(200)")
  8157. .HasCharSet("utf8")
  8158. .HasCollation("utf8_general_ci");
  8159. entity.Property(e => e.SeoTitle)
  8160. .HasColumnType("varchar(100)")
  8161. .HasCharSet("utf8")
  8162. .HasCollation("utf8_general_ci");
  8163. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8164. entity.Property(e => e.Status).HasColumnType("int(11)");
  8165. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8166. entity.Property(e => e.UpdateMan)
  8167. .HasColumnType("varchar(50)")
  8168. .HasCharSet("utf8")
  8169. .HasCollation("utf8_general_ci");
  8170. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8171. entity.Property(e => e.Version).HasColumnType("int(11)");
  8172. });
  8173. modelBuilder.Entity<UserCardForWeChat>(entity =>
  8174. {
  8175. entity.Property(e => e.Id).HasColumnType("int(11)");
  8176. entity.Property(e => e.BrandName)
  8177. .HasColumnType("varchar(12)")
  8178. .HasCharSet("utf8")
  8179. .HasCollation("utf8_general_ci");
  8180. entity.Property(e => e.CardId)
  8181. .HasColumnType("varchar(50)")
  8182. .HasCharSet("utf8")
  8183. .HasCollation("utf8_general_ci");
  8184. entity.Property(e => e.CardType)
  8185. .HasColumnType("varchar(30)")
  8186. .HasCharSet("utf8")
  8187. .HasCollation("utf8_general_ci");
  8188. entity.Property(e => e.CodeType)
  8189. .HasColumnType("varchar(50)")
  8190. .HasCharSet("utf8")
  8191. .HasCollation("utf8_general_ci");
  8192. entity.Property(e => e.Color)
  8193. .HasColumnType("varchar(20)")
  8194. .HasCharSet("utf8")
  8195. .HasCollation("utf8_general_ci");
  8196. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8197. entity.Property(e => e.CreateMan)
  8198. .HasColumnType("varchar(50)")
  8199. .HasCharSet("utf8")
  8200. .HasCollation("utf8_general_ci");
  8201. entity.Property(e => e.DateType)
  8202. .HasColumnType("varchar(50)")
  8203. .HasCharSet("utf8")
  8204. .HasCollation("utf8_general_ci");
  8205. entity.Property(e => e.Description)
  8206. .HasColumnType("varchar(1024)")
  8207. .HasCharSet("utf8")
  8208. .HasCollation("utf8_general_ci");
  8209. entity.Property(e => e.EnterName)
  8210. .HasColumnType("varchar(15)")
  8211. .HasCharSet("utf8")
  8212. .HasCollation("utf8_general_ci");
  8213. entity.Property(e => e.EnterTips)
  8214. .HasColumnType("varchar(6)")
  8215. .HasCharSet("utf8")
  8216. .HasCollation("utf8_general_ci");
  8217. entity.Property(e => e.EnterUrl)
  8218. .HasColumnType("varchar(200)")
  8219. .HasCharSet("utf8")
  8220. .HasCollation("utf8_general_ci");
  8221. entity.Property(e => e.LogoUrl)
  8222. .HasColumnType("varchar(200)")
  8223. .HasCharSet("utf8")
  8224. .HasCollation("utf8_general_ci");
  8225. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  8226. entity.Property(e => e.Notice)
  8227. .HasColumnType("varchar(16)")
  8228. .HasCharSet("utf8")
  8229. .HasCollation("utf8_general_ci");
  8230. entity.Property(e => e.Prerogative)
  8231. .HasColumnType("varchar(1024)")
  8232. .HasCharSet("utf8")
  8233. .HasCollation("utf8_general_ci");
  8234. entity.Property(e => e.Quantity).HasColumnType("int(11)");
  8235. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8236. entity.Property(e => e.SeoDescription)
  8237. .HasColumnType("varchar(500)")
  8238. .HasCharSet("utf8")
  8239. .HasCollation("utf8_general_ci");
  8240. entity.Property(e => e.SeoKeyword)
  8241. .HasColumnType("varchar(200)")
  8242. .HasCharSet("utf8")
  8243. .HasCollation("utf8_general_ci");
  8244. entity.Property(e => e.SeoTitle)
  8245. .HasColumnType("varchar(100)")
  8246. .HasCharSet("utf8")
  8247. .HasCollation("utf8_general_ci");
  8248. entity.Property(e => e.Sku)
  8249. .HasColumnType("mediumtext")
  8250. .HasCharSet("utf8")
  8251. .HasCollation("utf8_general_ci");
  8252. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8253. entity.Property(e => e.Status).HasColumnType("int(11)");
  8254. entity.Property(e => e.SupplyBalance)
  8255. .HasColumnType("bit(1)")
  8256. .HasDefaultValueSql("b'0'");
  8257. entity.Property(e => e.SupplyBonus)
  8258. .HasColumnType("bit(1)")
  8259. .HasDefaultValueSql("b'0'");
  8260. entity.Property(e => e.Title)
  8261. .HasColumnType("varchar(9)")
  8262. .HasCharSet("utf8")
  8263. .HasCollation("utf8_general_ci");
  8264. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8265. entity.Property(e => e.UpdateMan)
  8266. .HasColumnType("varchar(50)")
  8267. .HasCharSet("utf8")
  8268. .HasCollation("utf8_general_ci");
  8269. entity.Property(e => e.Version).HasColumnType("int(11)");
  8270. });
  8271. modelBuilder.Entity<UserCardRecord>(entity =>
  8272. {
  8273. entity.Property(e => e.Id).HasColumnType("int(11)");
  8274. entity.Property(e => e.CardId).HasColumnType("int(11)");
  8275. entity.Property(e => e.ConsumerId).HasColumnType("int(11)");
  8276. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8277. entity.Property(e => e.CreateMan)
  8278. .HasColumnType("varchar(50)")
  8279. .HasCharSet("utf8")
  8280. .HasCollation("utf8_general_ci");
  8281. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  8282. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8283. entity.Property(e => e.SeoDescription)
  8284. .HasColumnType("varchar(500)")
  8285. .HasCharSet("utf8")
  8286. .HasCollation("utf8_general_ci");
  8287. entity.Property(e => e.SeoKeyword)
  8288. .HasColumnType("varchar(200)")
  8289. .HasCharSet("utf8")
  8290. .HasCollation("utf8_general_ci");
  8291. entity.Property(e => e.SeoTitle)
  8292. .HasColumnType("varchar(100)")
  8293. .HasCharSet("utf8")
  8294. .HasCollation("utf8_general_ci");
  8295. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8296. entity.Property(e => e.Status).HasColumnType("int(11)");
  8297. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8298. entity.Property(e => e.UpdateMan)
  8299. .HasColumnType("varchar(50)")
  8300. .HasCharSet("utf8")
  8301. .HasCollation("utf8_general_ci");
  8302. entity.Property(e => e.Version).HasColumnType("int(11)");
  8303. });
  8304. modelBuilder.Entity<UserCashRecord>(entity =>
  8305. {
  8306. entity.Property(e => e.Id).HasColumnType("int(11)");
  8307. entity.Property(e => e.ActualTradeAmount).HasColumnType("decimal(18,2)");
  8308. entity.Property(e => e.CashOrderNo)
  8309. .HasColumnType("varchar(32)")
  8310. .HasCharSet("utf8")
  8311. .HasCollation("utf8_general_ci");
  8312. entity.Property(e => e.ChanelName)
  8313. .HasColumnType("varchar(32)")
  8314. .HasCharSet("utf8")
  8315. .HasCollation("utf8_general_ci");
  8316. entity.Property(e => e.ChannelCode)
  8317. .HasColumnType("varchar(16)")
  8318. .HasCharSet("utf8")
  8319. .HasCollation("utf8_general_ci");
  8320. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8321. entity.Property(e => e.CreateMan)
  8322. .HasColumnType("varchar(50)")
  8323. .HasCharSet("utf8")
  8324. .HasCollation("utf8_general_ci");
  8325. entity.Property(e => e.IdCardNo)
  8326. .HasColumnType("varchar(18)")
  8327. .HasCharSet("utf8")
  8328. .HasCollation("utf8_general_ci");
  8329. entity.Property(e => e.Ip)
  8330. .HasColumnType("varchar(15)")
  8331. .HasCharSet("utf8")
  8332. .HasCollation("utf8_general_ci");
  8333. entity.Property(e => e.ManageFee).HasColumnType("decimal(18,2)");
  8334. entity.Property(e => e.MediaSource)
  8335. .HasColumnType("varchar(16)")
  8336. .HasCharSet("utf8")
  8337. .HasCollation("utf8_general_ci");
  8338. entity.Property(e => e.PayTradeNo)
  8339. .HasColumnType("varchar(32)")
  8340. .HasCharSet("utf8")
  8341. .HasCollation("utf8_general_ci");
  8342. entity.Property(e => e.PaymentDate).HasColumnType("datetime");
  8343. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8344. entity.Property(e => e.Remark)
  8345. .HasColumnType("varchar(128)")
  8346. .HasCharSet("utf8")
  8347. .HasCollation("utf8_general_ci");
  8348. entity.Property(e => e.ReqData)
  8349. .HasColumnType("varchar(2048)")
  8350. .HasCharSet("utf8")
  8351. .HasCollation("utf8_general_ci");
  8352. entity.Property(e => e.ResData)
  8353. .HasColumnType("varchar(2048)")
  8354. .HasCharSet("utf8")
  8355. .HasCollation("utf8_general_ci");
  8356. entity.Property(e => e.ReturnCode)
  8357. .HasColumnType("varchar(32)")
  8358. .HasCharSet("utf8")
  8359. .HasCollation("utf8_general_ci");
  8360. entity.Property(e => e.ReturnMsg)
  8361. .HasColumnType("varchar(128)")
  8362. .HasCharSet("utf8")
  8363. .HasCollation("utf8_general_ci");
  8364. entity.Property(e => e.SeoDescription)
  8365. .HasColumnType("varchar(500)")
  8366. .HasCharSet("utf8")
  8367. .HasCollation("utf8_general_ci");
  8368. entity.Property(e => e.SeoKeyword)
  8369. .HasColumnType("varchar(200)")
  8370. .HasCharSet("utf8")
  8371. .HasCollation("utf8_general_ci");
  8372. entity.Property(e => e.SeoTitle)
  8373. .HasColumnType("varchar(100)")
  8374. .HasCharSet("utf8")
  8375. .HasCollation("utf8_general_ci");
  8376. entity.Property(e => e.SettleBankCardNo)
  8377. .HasColumnType("varchar(32)")
  8378. .HasCharSet("utf8")
  8379. .HasCollation("utf8_general_ci");
  8380. entity.Property(e => e.SettleBankName)
  8381. .HasColumnType("varchar(64)")
  8382. .HasCharSet("utf8")
  8383. .HasCollation("utf8_general_ci");
  8384. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8385. entity.Property(e => e.Status).HasColumnType("int(11)");
  8386. entity.Property(e => e.TradeAmount).HasColumnType("decimal(18,2)");
  8387. entity.Property(e => e.TradeFee).HasColumnType("decimal(18,2)");
  8388. entity.Property(e => e.TradeType).HasColumnType("int(11)");
  8389. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8390. entity.Property(e => e.UpdateMan)
  8391. .HasColumnType("varchar(50)")
  8392. .HasCharSet("utf8")
  8393. .HasCollation("utf8_general_ci");
  8394. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8395. entity.Property(e => e.Version).HasColumnType("int(11)");
  8396. });
  8397. modelBuilder.Entity<UserCenterIconList>(entity =>
  8398. {
  8399. entity.Property(e => e.Id).HasColumnType("int(11)");
  8400. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8401. entity.Property(e => e.CreateMan)
  8402. .HasColumnType("varchar(50)")
  8403. .HasCharSet("utf8")
  8404. .HasCollation("utf8_general_ci");
  8405. entity.Property(e => e.Icon)
  8406. .HasColumnType("varchar(200)")
  8407. .HasCharSet("utf8")
  8408. .HasCollation("utf8_general_ci");
  8409. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8410. entity.Property(e => e.SeoDescription)
  8411. .HasColumnType("varchar(500)")
  8412. .HasCharSet("utf8")
  8413. .HasCollation("utf8_general_ci");
  8414. entity.Property(e => e.SeoKeyword)
  8415. .HasColumnType("varchar(200)")
  8416. .HasCharSet("utf8")
  8417. .HasCollation("utf8_general_ci");
  8418. entity.Property(e => e.SeoTitle)
  8419. .HasColumnType("varchar(100)")
  8420. .HasCharSet("utf8")
  8421. .HasCollation("utf8_general_ci");
  8422. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8423. entity.Property(e => e.Status).HasColumnType("int(11)");
  8424. entity.Property(e => e.Title)
  8425. .HasColumnType("varchar(50)")
  8426. .HasCharSet("utf8")
  8427. .HasCollation("utf8_general_ci");
  8428. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8429. entity.Property(e => e.UpdateMan)
  8430. .HasColumnType("varchar(50)")
  8431. .HasCharSet("utf8")
  8432. .HasCollation("utf8_general_ci");
  8433. entity.Property(e => e.Url)
  8434. .HasColumnType("varchar(50)")
  8435. .HasCharSet("utf8")
  8436. .HasCollation("utf8_general_ci");
  8437. entity.Property(e => e.Version).HasColumnType("int(11)");
  8438. });
  8439. modelBuilder.Entity<UserCollection>(entity =>
  8440. {
  8441. entity.Property(e => e.Id).HasColumnType("int(11)");
  8442. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8443. entity.Property(e => e.CreateMan)
  8444. .HasColumnType("varchar(50)")
  8445. .HasCharSet("utf8")
  8446. .HasCollation("utf8_general_ci");
  8447. entity.Property(e => e.DataId).HasColumnType("int(11)");
  8448. entity.Property(e => e.Kind).HasColumnType("int(11)");
  8449. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8450. entity.Property(e => e.SeoDescription)
  8451. .HasColumnType("varchar(500)")
  8452. .HasCharSet("utf8")
  8453. .HasCollation("utf8_general_ci");
  8454. entity.Property(e => e.SeoKeyword)
  8455. .HasColumnType("varchar(200)")
  8456. .HasCharSet("utf8")
  8457. .HasCollation("utf8_general_ci");
  8458. entity.Property(e => e.SeoTitle)
  8459. .HasColumnType("varchar(100)")
  8460. .HasCharSet("utf8")
  8461. .HasCollation("utf8_general_ci");
  8462. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8463. entity.Property(e => e.Status).HasColumnType("int(11)");
  8464. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8465. entity.Property(e => e.UpdateMan)
  8466. .HasColumnType("varchar(50)")
  8467. .HasCharSet("utf8")
  8468. .HasCollation("utf8_general_ci");
  8469. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8470. entity.Property(e => e.Version).HasColumnType("int(11)");
  8471. });
  8472. modelBuilder.Entity<UserData>(entity =>
  8473. {
  8474. entity.HasKey(e => e.UserId)
  8475. .HasName("PRIMARY");
  8476. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8477. entity.Property(e => e.ActiveRewardAmount).HasColumnType("decimal(18,2)");
  8478. entity.Property(e => e.CashFreezeAmt).HasColumnType("decimal(18,2)");
  8479. entity.Property(e => e.CollectionCount).HasColumnType("int(11)");
  8480. entity.Property(e => e.Coupons).HasColumnType("decimal(18,2)");
  8481. entity.Property(e => e.CurMoney).HasColumnType("decimal(18,2)");
  8482. entity.Property(e => e.FansCount).HasColumnType("int(11)");
  8483. entity.Property(e => e.FollowCount).HasColumnType("int(11)");
  8484. entity.Property(e => e.GrowthValue).HasColumnType("int(11)");
  8485. entity.Property(e => e.Integral).HasColumnType("decimal(18,2)");
  8486. entity.Property(e => e.MachineCount).HasColumnType("int(11)");
  8487. entity.Property(e => e.ProfitRewardRate).HasColumnType("decimal(18,2)");
  8488. entity.Property(e => e.SettleAmount).HasColumnType("decimal(18,2)");
  8489. entity.Property(e => e.ToCommentOrderCount).HasColumnType("int(11)");
  8490. entity.Property(e => e.ToPayOrderCount).HasColumnType("int(11)");
  8491. entity.Property(e => e.ToReceiveOrderCount).HasColumnType("int(11)");
  8492. entity.Property(e => e.ToRefundOrderCount).HasColumnType("int(11)");
  8493. entity.Property(e => e.ToSendOrderCount).HasColumnType("int(11)");
  8494. entity.Property(e => e.TotalOrderMoney).HasColumnType("decimal(18,2)");
  8495. entity.Property(e => e.TotalUseIntegral).HasColumnType("decimal(18,2)");
  8496. });
  8497. modelBuilder.Entity<UserDetail>(entity =>
  8498. {
  8499. entity.Property(e => e.Id).HasColumnType("int(11)");
  8500. entity.Property(e => e.AddMan).HasColumnType("int(11)");
  8501. entity.Property(e => e.Birthday).HasColumnType("datetime");
  8502. entity.Property(e => e.CardAddAddress).HasColumnType("int(11)");
  8503. entity.Property(e => e.CardExpireDate).HasColumnType("datetime");
  8504. entity.Property(e => e.EduLevel).HasColumnType("int(11)");
  8505. entity.Property(e => e.Email)
  8506. .HasColumnType("varchar(50)")
  8507. .HasCharSet("utf8")
  8508. .HasCollation("utf8_general_ci");
  8509. entity.Property(e => e.FamilyIncome).HasColumnType("int(11)");
  8510. entity.Property(e => e.Interests)
  8511. .HasColumnType("varchar(200)")
  8512. .HasCharSet("utf8")
  8513. .HasCollation("utf8_general_ci");
  8514. entity.Property(e => e.Note)
  8515. .HasColumnType("longtext")
  8516. .HasCharSet("utf8")
  8517. .HasCollation("utf8_general_ci");
  8518. entity.Property(e => e.OfficePhone)
  8519. .HasColumnType("varchar(50)")
  8520. .HasCharSet("utf8")
  8521. .HasCollation("utf8_general_ci");
  8522. entity.Property(e => e.PostalCode)
  8523. .HasColumnType("varchar(6)")
  8524. .HasCharSet("utf8")
  8525. .HasCollation("utf8_general_ci");
  8526. entity.Property(e => e.PrivatePhone)
  8527. .HasColumnType("varchar(50)")
  8528. .HasCharSet("utf8")
  8529. .HasCollation("utf8_general_ci");
  8530. entity.Property(e => e.ToShopDate).HasColumnType("datetime");
  8531. entity.Property(e => e.TrafficTool).HasColumnType("int(11)");
  8532. entity.Property(e => e.UpdateMan).HasColumnType("int(11)");
  8533. entity.Property(e => e.UserJob).HasColumnType("int(11)");
  8534. });
  8535. modelBuilder.Entity<UserFamilyMember>(entity =>
  8536. {
  8537. entity.Property(e => e.Id).HasColumnType("int(11)");
  8538. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8539. entity.Property(e => e.CreateMan)
  8540. .HasColumnType("varchar(50)")
  8541. .HasCharSet("utf8")
  8542. .HasCollation("utf8_general_ci");
  8543. entity.Property(e => e.IdCardNo)
  8544. .HasColumnType("varchar(18)")
  8545. .HasCharSet("utf8")
  8546. .HasCollation("utf8_general_ci");
  8547. entity.Property(e => e.Job).HasColumnType("int(11)");
  8548. entity.Property(e => e.MemberKind).HasColumnType("int(11)");
  8549. entity.Property(e => e.Mobile)
  8550. .HasColumnType("varchar(11)")
  8551. .HasCharSet("utf8")
  8552. .HasCollation("utf8_general_ci");
  8553. entity.Property(e => e.Name)
  8554. .HasColumnType("varchar(20)")
  8555. .HasCharSet("utf8")
  8556. .HasCollation("utf8_general_ci");
  8557. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8558. entity.Property(e => e.SeoDescription)
  8559. .HasColumnType("varchar(500)")
  8560. .HasCharSet("utf8")
  8561. .HasCollation("utf8_general_ci");
  8562. entity.Property(e => e.SeoKeyword)
  8563. .HasColumnType("varchar(200)")
  8564. .HasCharSet("utf8")
  8565. .HasCollation("utf8_general_ci");
  8566. entity.Property(e => e.SeoTitle)
  8567. .HasColumnType("varchar(100)")
  8568. .HasCharSet("utf8")
  8569. .HasCollation("utf8_general_ci");
  8570. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8571. entity.Property(e => e.Status).HasColumnType("int(11)");
  8572. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8573. entity.Property(e => e.UpdateMan)
  8574. .HasColumnType("varchar(50)")
  8575. .HasCharSet("utf8")
  8576. .HasCollation("utf8_general_ci");
  8577. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8578. entity.Property(e => e.Version).HasColumnType("int(11)");
  8579. });
  8580. modelBuilder.Entity<UserForMakerCode>(entity =>
  8581. {
  8582. entity.HasKey(e => e.MakerCode)
  8583. .HasName("PRIMARY");
  8584. entity.Property(e => e.MakerCode)
  8585. .HasColumnType("varchar(30)")
  8586. .HasCharSet("utf8")
  8587. .HasCollation("utf8_general_ci");
  8588. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8589. });
  8590. modelBuilder.Entity<UserForMobile>(entity =>
  8591. {
  8592. entity.HasKey(e => e.Mobile)
  8593. .HasName("PRIMARY");
  8594. entity.Property(e => e.Mobile)
  8595. .HasColumnType("varchar(11)")
  8596. .HasCharSet("utf8")
  8597. .HasCollation("utf8_general_ci");
  8598. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8599. });
  8600. modelBuilder.Entity<UserForRealName>(entity =>
  8601. {
  8602. entity.HasKey(e => e.RealName)
  8603. .HasName("PRIMARY");
  8604. entity.Property(e => e.RealName)
  8605. .HasColumnType("varchar(30)")
  8606. .HasCharSet("utf8")
  8607. .HasCollation("utf8_general_ci");
  8608. entity.Property(e => e.UserId)
  8609. .HasColumnType("varchar(100)")
  8610. .HasCharSet("utf8")
  8611. .HasCollation("utf8_general_ci");
  8612. });
  8613. modelBuilder.Entity<UserFriend>(entity =>
  8614. {
  8615. entity.Property(e => e.Id).HasColumnType("int(11)");
  8616. entity.Property(e => e.FriendId).HasColumnType("int(11)");
  8617. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8618. });
  8619. modelBuilder.Entity<UserGroup>(entity =>
  8620. {
  8621. entity.Property(e => e.Id).HasColumnType("int(11)");
  8622. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8623. entity.Property(e => e.CreateMan)
  8624. .HasColumnType("varchar(50)")
  8625. .HasCharSet("utf8")
  8626. .HasCollation("utf8_general_ci");
  8627. entity.Property(e => e.Details)
  8628. .HasColumnType("varchar(200)")
  8629. .HasCharSet("utf8")
  8630. .HasCollation("utf8_general_ci");
  8631. entity.Property(e => e.Name)
  8632. .HasColumnType("varchar(20)")
  8633. .HasCharSet("utf8")
  8634. .HasCollation("utf8_general_ci");
  8635. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8636. entity.Property(e => e.SeoDescription)
  8637. .HasColumnType("varchar(500)")
  8638. .HasCharSet("utf8")
  8639. .HasCollation("utf8_general_ci");
  8640. entity.Property(e => e.SeoKeyword)
  8641. .HasColumnType("varchar(200)")
  8642. .HasCharSet("utf8")
  8643. .HasCollation("utf8_general_ci");
  8644. entity.Property(e => e.SeoTitle)
  8645. .HasColumnType("varchar(100)")
  8646. .HasCharSet("utf8")
  8647. .HasCollation("utf8_general_ci");
  8648. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8649. entity.Property(e => e.Status).HasColumnType("int(11)");
  8650. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8651. entity.Property(e => e.UpdateMan)
  8652. .HasColumnType("varchar(50)")
  8653. .HasCharSet("utf8")
  8654. .HasCollation("utf8_general_ci");
  8655. entity.Property(e => e.Version).HasColumnType("int(11)");
  8656. });
  8657. modelBuilder.Entity<UserLevelSet>(entity =>
  8658. {
  8659. entity.Property(e => e.Id).HasColumnType("int(11)");
  8660. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8661. entity.Property(e => e.CreateMan)
  8662. .HasColumnType("varchar(50)")
  8663. .HasCharSet("utf8")
  8664. .HasCollation("utf8_general_ci");
  8665. entity.Property(e => e.Details)
  8666. .HasColumnType("varchar(200)")
  8667. .HasCharSet("utf8")
  8668. .HasCollation("utf8_general_ci");
  8669. entity.Property(e => e.Name)
  8670. .HasColumnType("varchar(20)")
  8671. .HasCharSet("utf8")
  8672. .HasCollation("utf8_general_ci");
  8673. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8674. entity.Property(e => e.SeoDescription)
  8675. .HasColumnType("varchar(500)")
  8676. .HasCharSet("utf8")
  8677. .HasCollation("utf8_general_ci");
  8678. entity.Property(e => e.SeoKeyword)
  8679. .HasColumnType("varchar(200)")
  8680. .HasCharSet("utf8")
  8681. .HasCollation("utf8_general_ci");
  8682. entity.Property(e => e.SeoTitle)
  8683. .HasColumnType("varchar(100)")
  8684. .HasCharSet("utf8")
  8685. .HasCollation("utf8_general_ci");
  8686. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8687. entity.Property(e => e.Status).HasColumnType("int(11)");
  8688. entity.Property(e => e.UpLevelDays).HasColumnType("int(11)");
  8689. entity.Property(e => e.UpLevelGrowth).HasColumnType("int(11)");
  8690. entity.Property(e => e.UpLevelIntegral).HasColumnType("decimal(10,0)");
  8691. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8692. entity.Property(e => e.UpdateMan)
  8693. .HasColumnType("varchar(50)")
  8694. .HasCharSet("utf8")
  8695. .HasCollation("utf8_general_ci");
  8696. entity.Property(e => e.Version).HasColumnType("int(11)");
  8697. });
  8698. modelBuilder.Entity<UserLoginRecord>(entity =>
  8699. {
  8700. entity.Property(e => e.Id).HasColumnType("int(11)");
  8701. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8702. entity.Property(e => e.CreateMan)
  8703. .HasColumnType("varchar(50)")
  8704. .HasCharSet("utf8")
  8705. .HasCollation("utf8_general_ci");
  8706. entity.Property(e => e.Kind).HasColumnType("int(11)");
  8707. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8708. entity.Property(e => e.SeoDescription)
  8709. .HasColumnType("varchar(500)")
  8710. .HasCharSet("utf8")
  8711. .HasCollation("utf8_general_ci");
  8712. entity.Property(e => e.SeoKeyword)
  8713. .HasColumnType("varchar(200)")
  8714. .HasCharSet("utf8")
  8715. .HasCollation("utf8_general_ci");
  8716. entity.Property(e => e.SeoTitle)
  8717. .HasColumnType("varchar(100)")
  8718. .HasCharSet("utf8")
  8719. .HasCollation("utf8_general_ci");
  8720. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8721. entity.Property(e => e.Status).HasColumnType("int(11)");
  8722. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8723. entity.Property(e => e.UpdateMan)
  8724. .HasColumnType("varchar(50)")
  8725. .HasCharSet("utf8")
  8726. .HasCollation("utf8_general_ci");
  8727. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8728. entity.Property(e => e.Version).HasColumnType("int(11)");
  8729. });
  8730. modelBuilder.Entity<UserMachineData>(entity =>
  8731. {
  8732. entity.HasKey(e => e.IdBrand)
  8733. .HasName("PRIMARY");
  8734. entity.Property(e => e.IdBrand)
  8735. .HasColumnType("varchar(50)")
  8736. .HasCharSet("utf8")
  8737. .HasCollation("utf8_general_ci");
  8738. entity.Property(e => e.ActProfit).HasColumnType("decimal(18,2)");
  8739. entity.Property(e => e.BindCount).HasColumnType("int(11)");
  8740. entity.Property(e => e.DividendsProfit).HasColumnType("decimal(18,2)");
  8741. entity.Property(e => e.FluxProfit).HasColumnType("decimal(18,2)");
  8742. entity.Property(e => e.OpenProfit).HasColumnType("decimal(18,2)");
  8743. entity.Property(e => e.OtherProfit).HasColumnType("decimal(18,2)");
  8744. entity.Property(e => e.TotalMachineCount).HasColumnType("int(11)");
  8745. entity.Property(e => e.TradeProfit).HasColumnType("decimal(18,2)");
  8746. entity.Property(e => e.UnBindCount).HasColumnType("int(11)");
  8747. });
  8748. modelBuilder.Entity<UserMallLargeSn>(entity =>
  8749. {
  8750. entity.Property(e => e.Id).HasColumnType("int(11)");
  8751. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  8752. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8753. entity.Property(e => e.CreateMan)
  8754. .HasColumnType("varchar(50)")
  8755. .HasCharSet("utf8")
  8756. .HasCollation("utf8_general_ci");
  8757. entity.Property(e => e.OrderAmount).HasColumnType("decimal(18,2)");
  8758. entity.Property(e => e.OrderNo)
  8759. .HasColumnType("varchar(32)")
  8760. .HasCharSet("utf8")
  8761. .HasCollation("utf8_general_ci");
  8762. entity.Property(e => e.OrderNum).HasColumnType("int(11)");
  8763. entity.Property(e => e.ProductName)
  8764. .HasColumnType("varchar(32)")
  8765. .HasCharSet("utf8")
  8766. .HasCollation("utf8_general_ci");
  8767. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8768. entity.Property(e => e.Remark)
  8769. .HasColumnType("varchar(64)")
  8770. .HasCharSet("utf8")
  8771. .HasCollation("utf8_general_ci");
  8772. entity.Property(e => e.RuleOrderAmt).HasColumnType("decimal(18,2)");
  8773. entity.Property(e => e.SeoDescription)
  8774. .HasColumnType("varchar(500)")
  8775. .HasCharSet("utf8")
  8776. .HasCollation("utf8_general_ci");
  8777. entity.Property(e => e.SeoKeyword)
  8778. .HasColumnType("varchar(200)")
  8779. .HasCharSet("utf8")
  8780. .HasCollation("utf8_general_ci");
  8781. entity.Property(e => e.SeoTitle)
  8782. .HasColumnType("varchar(100)")
  8783. .HasCharSet("utf8")
  8784. .HasCollation("utf8_general_ci");
  8785. entity.Property(e => e.SnNo)
  8786. .HasColumnType("varchar(32)")
  8787. .HasCharSet("utf8")
  8788. .HasCollation("utf8_general_ci");
  8789. entity.Property(e => e.SnShipDate).HasColumnType("datetime");
  8790. entity.Property(e => e.SnStatus).HasColumnType("int(11)");
  8791. entity.Property(e => e.SnType).HasColumnType("int(11)");
  8792. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8793. entity.Property(e => e.Status).HasColumnType("int(11)");
  8794. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  8795. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8796. entity.Property(e => e.UpdateMan)
  8797. .HasColumnType("varchar(50)")
  8798. .HasCharSet("utf8")
  8799. .HasCollation("utf8_general_ci");
  8800. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8801. entity.Property(e => e.Version).HasColumnType("int(11)");
  8802. });
  8803. modelBuilder.Entity<UserOfflineSignInRecords>(entity =>
  8804. {
  8805. entity.Property(e => e.Id).HasColumnType("int(11)");
  8806. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8807. entity.Property(e => e.CreateMan)
  8808. .HasColumnType("varchar(50)")
  8809. .HasCharSet("utf8")
  8810. .HasCollation("utf8_general_ci");
  8811. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  8812. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8813. entity.Property(e => e.SeoDescription)
  8814. .HasColumnType("varchar(500)")
  8815. .HasCharSet("utf8")
  8816. .HasCollation("utf8_general_ci");
  8817. entity.Property(e => e.SeoKeyword)
  8818. .HasColumnType("varchar(200)")
  8819. .HasCharSet("utf8")
  8820. .HasCollation("utf8_general_ci");
  8821. entity.Property(e => e.SeoTitle)
  8822. .HasColumnType("varchar(100)")
  8823. .HasCharSet("utf8")
  8824. .HasCollation("utf8_general_ci");
  8825. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8826. entity.Property(e => e.Status).HasColumnType("int(11)");
  8827. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8828. entity.Property(e => e.UpdateMan)
  8829. .HasColumnType("varchar(50)")
  8830. .HasCharSet("utf8")
  8831. .HasCollation("utf8_general_ci");
  8832. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8833. entity.Property(e => e.Version).HasColumnType("int(11)");
  8834. });
  8835. modelBuilder.Entity<UserProfit>(entity =>
  8836. {
  8837. entity.Property(e => e.Id).HasColumnType("int(11)");
  8838. entity.Property(e => e.AddOrSubRate).HasColumnType("decimal(18,2)");
  8839. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  8840. entity.Property(e => e.CardType)
  8841. .HasColumnType("varchar(10)")
  8842. .HasCharSet("utf8")
  8843. .HasCollation("utf8_general_ci");
  8844. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8845. entity.Property(e => e.CreateMan)
  8846. .HasColumnType("varchar(50)")
  8847. .HasCharSet("utf8")
  8848. .HasCollation("utf8_general_ci");
  8849. entity.Property(e => e.HelpAddOrSubRate).HasColumnType("decimal(18,2)");
  8850. entity.Property(e => e.HelpProfitPercent).HasColumnType("decimal(18,2)");
  8851. entity.Property(e => e.HelpProfitRate).HasColumnType("decimal(18,2)");
  8852. entity.Property(e => e.HelpProfitRateBase).HasColumnType("decimal(18,2)");
  8853. entity.Property(e => e.ProfitPercent).HasColumnType("decimal(18,2)");
  8854. entity.Property(e => e.ProfitRate).HasColumnType("decimal(18,2)");
  8855. entity.Property(e => e.ProfitRateBase).HasColumnType("decimal(18,2)");
  8856. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8857. entity.Property(e => e.Remark)
  8858. .HasColumnType("varchar(64)")
  8859. .HasCharSet("utf8")
  8860. .HasCollation("utf8_general_ci");
  8861. entity.Property(e => e.SeoDescription)
  8862. .HasColumnType("varchar(500)")
  8863. .HasCharSet("utf8")
  8864. .HasCollation("utf8_general_ci");
  8865. entity.Property(e => e.SeoKeyword)
  8866. .HasColumnType("varchar(200)")
  8867. .HasCharSet("utf8")
  8868. .HasCollation("utf8_general_ci");
  8869. entity.Property(e => e.SeoTitle)
  8870. .HasColumnType("varchar(100)")
  8871. .HasCharSet("utf8")
  8872. .HasCollation("utf8_general_ci");
  8873. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8874. entity.Property(e => e.Status).HasColumnType("int(11)");
  8875. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  8876. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8877. entity.Property(e => e.UpdateMan)
  8878. .HasColumnType("varchar(50)")
  8879. .HasCharSet("utf8")
  8880. .HasCollation("utf8_general_ci");
  8881. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8882. entity.Property(e => e.Version).HasColumnType("int(11)");
  8883. });
  8884. modelBuilder.Entity<UserProfitSet>(entity =>
  8885. {
  8886. entity.Property(e => e.Id).HasColumnType("int(11)");
  8887. entity.Property(e => e.AddOrSubRate).HasColumnType("decimal(18,2)");
  8888. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  8889. entity.Property(e => e.CardType).HasColumnType("int(11)");
  8890. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8891. entity.Property(e => e.CreateMan)
  8892. .HasColumnType("varchar(50)")
  8893. .HasCharSet("utf8")
  8894. .HasCollation("utf8_general_ci");
  8895. entity.Property(e => e.HelpFlag).HasColumnType("int(11)");
  8896. entity.Property(e => e.ProfitPercent).HasColumnType("decimal(18,2)");
  8897. entity.Property(e => e.ProfitRate).HasColumnType("decimal(18,2)");
  8898. entity.Property(e => e.ProfitRateBase).HasColumnType("decimal(18,2)");
  8899. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8900. entity.Property(e => e.Remark)
  8901. .HasColumnType("varchar(64)")
  8902. .HasCharSet("utf8")
  8903. .HasCollation("utf8_general_ci");
  8904. entity.Property(e => e.SeoDescription)
  8905. .HasColumnType("varchar(500)")
  8906. .HasCharSet("utf8")
  8907. .HasCollation("utf8_general_ci");
  8908. entity.Property(e => e.SeoKeyword)
  8909. .HasColumnType("varchar(200)")
  8910. .HasCharSet("utf8")
  8911. .HasCollation("utf8_general_ci");
  8912. entity.Property(e => e.SeoTitle)
  8913. .HasColumnType("varchar(100)")
  8914. .HasCharSet("utf8")
  8915. .HasCollation("utf8_general_ci");
  8916. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8917. entity.Property(e => e.Status).HasColumnType("int(11)");
  8918. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  8919. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8920. entity.Property(e => e.UpdateMan)
  8921. .HasColumnType("varchar(50)")
  8922. .HasCharSet("utf8")
  8923. .HasCollation("utf8_general_ci");
  8924. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8925. entity.Property(e => e.Version).HasColumnType("int(11)");
  8926. });
  8927. modelBuilder.Entity<UserProfitSubsidySummary>(entity =>
  8928. {
  8929. entity.Property(e => e.Id).HasColumnType("int(11)");
  8930. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  8931. entity.Property(e => e.CheckStatus).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.MgrName)
  8938. .HasColumnType("varchar(32)")
  8939. .HasCharSet("utf8")
  8940. .HasCollation("utf8_general_ci");
  8941. entity.Property(e => e.MgrNo)
  8942. .HasColumnType("varchar(16)")
  8943. .HasCharSet("utf8")
  8944. .HasCollation("utf8_general_ci");
  8945. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8946. entity.Property(e => e.SeoDescription)
  8947. .HasColumnType("varchar(500)")
  8948. .HasCharSet("utf8")
  8949. .HasCollation("utf8_general_ci");
  8950. entity.Property(e => e.SeoKeyword)
  8951. .HasColumnType("varchar(200)")
  8952. .HasCharSet("utf8")
  8953. .HasCollation("utf8_general_ci");
  8954. entity.Property(e => e.SeoTitle)
  8955. .HasColumnType("varchar(100)")
  8956. .HasCharSet("utf8")
  8957. .HasCollation("utf8_general_ci");
  8958. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8959. entity.Property(e => e.Status).HasColumnType("int(11)");
  8960. entity.Property(e => e.SubsidyDirectProfit).HasColumnType("decimal(18,2)");
  8961. entity.Property(e => e.SubsidyJuniorProfit).HasColumnType("decimal(18,2)");
  8962. entity.Property(e => e.SubsidyTotalProfit).HasColumnType("decimal(18,2)");
  8963. entity.Property(e => e.TradeMonth)
  8964. .HasColumnType("varchar(6)")
  8965. .HasCharSet("utf8")
  8966. .HasCollation("utf8_general_ci");
  8967. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8968. entity.Property(e => e.UpdateMan)
  8969. .HasColumnType("varchar(50)")
  8970. .HasCharSet("utf8")
  8971. .HasCollation("utf8_general_ci");
  8972. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8973. entity.Property(e => e.Version).HasColumnType("int(11)");
  8974. });
  8975. modelBuilder.Entity<UserRank>(entity =>
  8976. {
  8977. entity.Property(e => e.Id).HasColumnType("int(11)");
  8978. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8979. entity.Property(e => e.CreateMan)
  8980. .HasColumnType("varchar(50)")
  8981. .HasCharSet("utf8")
  8982. .HasCollation("utf8_general_ci");
  8983. entity.Property(e => e.ExceedVal).HasColumnType("int(11)");
  8984. entity.Property(e => e.NextRank).HasColumnType("int(11)");
  8985. entity.Property(e => e.OperateDate).HasColumnType("datetime");
  8986. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8987. entity.Property(e => e.Rank).HasColumnType("int(11)");
  8988. entity.Property(e => e.SeoDescription)
  8989. .HasColumnType("varchar(500)")
  8990. .HasCharSet("utf8")
  8991. .HasCollation("utf8_general_ci");
  8992. entity.Property(e => e.SeoKeyword)
  8993. .HasColumnType("varchar(200)")
  8994. .HasCharSet("utf8")
  8995. .HasCollation("utf8_general_ci");
  8996. entity.Property(e => e.SeoTitle)
  8997. .HasColumnType("varchar(100)")
  8998. .HasCharSet("utf8")
  8999. .HasCollation("utf8_general_ci");
  9000. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9001. entity.Property(e => e.StatMonth).HasColumnType("int(11)");
  9002. entity.Property(e => e.StatYear).HasColumnType("int(11)");
  9003. entity.Property(e => e.Status).HasColumnType("int(11)");
  9004. entity.Property(e => e.TradeAmt).HasColumnType("decimal(18,2)");
  9005. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9006. entity.Property(e => e.UpdateMan)
  9007. .HasColumnType("varchar(50)")
  9008. .HasCharSet("utf8")
  9009. .HasCollation("utf8_general_ci");
  9010. entity.Property(e => e.UpgradeFlag)
  9011. .HasColumnType("bit(1)")
  9012. .HasDefaultValueSql("b'0'");
  9013. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9014. entity.Property(e => e.Version).HasColumnType("int(11)");
  9015. entity.Property(e => e.WhiteRank).HasColumnType("int(11)");
  9016. });
  9017. modelBuilder.Entity<UserRankWhite>(entity =>
  9018. {
  9019. entity.Property(e => e.Id).HasColumnType("int(11)");
  9020. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9021. entity.Property(e => e.CreateMan)
  9022. .HasColumnType("varchar(50)")
  9023. .HasCharSet("utf8")
  9024. .HasCollation("utf8_general_ci");
  9025. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9026. entity.Property(e => e.Rank).HasColumnType("int(11)");
  9027. entity.Property(e => e.SeoDescription)
  9028. .HasColumnType("varchar(500)")
  9029. .HasCharSet("utf8")
  9030. .HasCollation("utf8_general_ci");
  9031. entity.Property(e => e.SeoKeyword)
  9032. .HasColumnType("varchar(200)")
  9033. .HasCharSet("utf8")
  9034. .HasCollation("utf8_general_ci");
  9035. entity.Property(e => e.SeoTitle)
  9036. .HasColumnType("varchar(100)")
  9037. .HasCharSet("utf8")
  9038. .HasCollation("utf8_general_ci");
  9039. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9040. entity.Property(e => e.Status).HasColumnType("int(11)");
  9041. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9042. entity.Property(e => e.UpdateMan)
  9043. .HasColumnType("varchar(50)")
  9044. .HasCharSet("utf8")
  9045. .HasCollation("utf8_general_ci");
  9046. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9047. entity.Property(e => e.Version).HasColumnType("int(11)");
  9048. });
  9049. modelBuilder.Entity<UserRebateDetail>(entity =>
  9050. {
  9051. entity.Property(e => e.Id).HasColumnType("int(11)");
  9052. entity.Property(e => e.ChannelMerNo)
  9053. .HasColumnType("varchar(32)")
  9054. .HasCharSet("utf8")
  9055. .HasCollation("utf8_general_ci");
  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.CreditRewardAmount).HasColumnType("decimal(18,2)");
  9062. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  9063. entity.Property(e => e.DebitRewardAmount).HasColumnType("decimal(18,2)");
  9064. entity.Property(e => e.DebitTradeAmt).HasColumnType("decimal(18,2)");
  9065. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  9066. entity.Property(e => e.MgrName)
  9067. .HasColumnType("varchar(32)")
  9068. .HasCharSet("utf8")
  9069. .HasCollation("utf8_general_ci");
  9070. entity.Property(e => e.MgrNo)
  9071. .HasColumnType("varchar(16)")
  9072. .HasCharSet("utf8")
  9073. .HasCollation("utf8_general_ci");
  9074. entity.Property(e => e.ProductName)
  9075. .HasColumnType("varchar(32)")
  9076. .HasCharSet("utf8")
  9077. .HasCollation("utf8_general_ci");
  9078. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  9079. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9080. entity.Property(e => e.RebateMonthCount).HasColumnType("int(11)");
  9081. entity.Property(e => e.RebateRewardNo)
  9082. .HasColumnType("varchar(32)")
  9083. .HasCharSet("utf8")
  9084. .HasCollation("utf8_general_ci");
  9085. entity.Property(e => e.RebateType).HasColumnType("int(11)");
  9086. entity.Property(e => e.Remark)
  9087. .HasColumnType("varchar(64)")
  9088. .HasCharSet("utf8")
  9089. .HasCollation("utf8_general_ci");
  9090. entity.Property(e => e.SeoDescription)
  9091. .HasColumnType("varchar(500)")
  9092. .HasCharSet("utf8")
  9093. .HasCollation("utf8_general_ci");
  9094. entity.Property(e => e.SeoKeyword)
  9095. .HasColumnType("varchar(200)")
  9096. .HasCharSet("utf8")
  9097. .HasCollation("utf8_general_ci");
  9098. entity.Property(e => e.SeoTitle)
  9099. .HasColumnType("varchar(100)")
  9100. .HasCharSet("utf8")
  9101. .HasCollation("utf8_general_ci");
  9102. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9103. entity.Property(e => e.Status).HasColumnType("int(11)");
  9104. entity.Property(e => e.TradeDate)
  9105. .HasColumnType("varchar(8)")
  9106. .HasCharSet("utf8")
  9107. .HasCollation("utf8_general_ci");
  9108. entity.Property(e => e.TradeMonth)
  9109. .HasColumnType("varchar(6)")
  9110. .HasCharSet("utf8")
  9111. .HasCollation("utf8_general_ci");
  9112. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9113. entity.Property(e => e.UpdateMan)
  9114. .HasColumnType("varchar(50)")
  9115. .HasCharSet("utf8")
  9116. .HasCollation("utf8_general_ci");
  9117. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9118. entity.Property(e => e.Version).HasColumnType("int(11)");
  9119. });
  9120. modelBuilder.Entity<UserSnActInfo>(entity =>
  9121. {
  9122. entity.Property(e => e.Id).HasColumnType("int(11)");
  9123. entity.Property(e => e.ActUserId).HasColumnType("int(11)");
  9124. entity.Property(e => e.ActiveStatus).HasColumnType("int(11)");
  9125. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9126. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9127. entity.Property(e => e.CreateMan)
  9128. .HasColumnType("varchar(50)")
  9129. .HasCharSet("utf8")
  9130. .HasCollation("utf8_general_ci");
  9131. entity.Property(e => e.EffectEndActDate)
  9132. .HasColumnType("varchar(8)")
  9133. .HasCharSet("utf8")
  9134. .HasCollation("utf8_general_ci");
  9135. entity.Property(e => e.EffectEndCycleDate)
  9136. .HasColumnType("varchar(8)")
  9137. .HasCharSet("utf8")
  9138. .HasCollation("utf8_general_ci");
  9139. entity.Property(e => e.EffectStartActDate)
  9140. .HasColumnType("varchar(8)")
  9141. .HasCharSet("utf8")
  9142. .HasCollation("utf8_general_ci");
  9143. entity.Property(e => e.EffectStartCycleDate)
  9144. .HasColumnType("varchar(8)")
  9145. .HasCharSet("utf8")
  9146. .HasCollation("utf8_general_ci");
  9147. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9148. entity.Property(e => e.Remark)
  9149. .HasColumnType("varchar(128)")
  9150. .HasCharSet("utf8")
  9151. .HasCollation("utf8_general_ci");
  9152. entity.Property(e => e.SeoDescription)
  9153. .HasColumnType("varchar(500)")
  9154. .HasCharSet("utf8")
  9155. .HasCollation("utf8_general_ci");
  9156. entity.Property(e => e.SeoKeyword)
  9157. .HasColumnType("varchar(200)")
  9158. .HasCharSet("utf8")
  9159. .HasCollation("utf8_general_ci");
  9160. entity.Property(e => e.SeoTitle)
  9161. .HasColumnType("varchar(100)")
  9162. .HasCharSet("utf8")
  9163. .HasCollation("utf8_general_ci");
  9164. entity.Property(e => e.SnNo)
  9165. .HasColumnType("varchar(32)")
  9166. .HasCharSet("utf8")
  9167. .HasCollation("utf8_general_ci");
  9168. entity.Property(e => e.SnShipDate).HasColumnType("datetime");
  9169. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  9170. entity.Property(e => e.SnType).HasColumnType("int(11)");
  9171. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9172. entity.Property(e => e.SourceShipDate).HasColumnType("datetime");
  9173. entity.Property(e => e.SourceSnNo)
  9174. .HasColumnType("varchar(32)")
  9175. .HasCharSet("utf8")
  9176. .HasCollation("utf8_general_ci");
  9177. entity.Property(e => e.SourceSnType).HasColumnType("int(11)");
  9178. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  9179. entity.Property(e => e.StandardDate)
  9180. .HasColumnType("varchar(8)")
  9181. .HasCharSet("utf8")
  9182. .HasCollation("utf8_general_ci");
  9183. entity.Property(e => e.Status).HasColumnType("int(11)");
  9184. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9185. entity.Property(e => e.UpdateMan)
  9186. .HasColumnType("varchar(50)")
  9187. .HasCharSet("utf8")
  9188. .HasCollation("utf8_general_ci");
  9189. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9190. entity.Property(e => e.Version).HasColumnType("int(11)");
  9191. });
  9192. modelBuilder.Entity<UserSnDelayChange>(entity =>
  9193. {
  9194. entity.Property(e => e.Id).HasColumnType("int(11)");
  9195. entity.Property(e => e.ActivityRuleId).HasColumnType("int(11)");
  9196. entity.Property(e => e.AfterEndCycleDate)
  9197. .HasColumnType("varchar(8)")
  9198. .HasCharSet("utf8")
  9199. .HasCollation("utf8_general_ci");
  9200. entity.Property(e => e.BeforeEndCycleDate)
  9201. .HasColumnType("varchar(8)")
  9202. .HasCharSet("utf8")
  9203. .HasCollation("utf8_general_ci");
  9204. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9205. entity.Property(e => e.ChangeRecordNo)
  9206. .HasColumnType("varchar(32)")
  9207. .HasCharSet("utf8")
  9208. .HasCollation("utf8_general_ci");
  9209. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9210. entity.Property(e => e.CreateMan)
  9211. .HasColumnType("varchar(50)")
  9212. .HasCharSet("utf8")
  9213. .HasCollation("utf8_general_ci");
  9214. entity.Property(e => e.InitCycleDate)
  9215. .HasColumnType("varchar(8)")
  9216. .HasCharSet("utf8")
  9217. .HasCollation("utf8_general_ci");
  9218. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9219. entity.Property(e => e.RecUserId).HasColumnType("int(11)");
  9220. entity.Property(e => e.Remark)
  9221. .HasColumnType("varchar(128)")
  9222. .HasCharSet("utf8")
  9223. .HasCollation("utf8_general_ci");
  9224. entity.Property(e => e.SeoDescription)
  9225. .HasColumnType("varchar(500)")
  9226. .HasCharSet("utf8")
  9227. .HasCollation("utf8_general_ci");
  9228. entity.Property(e => e.SeoKeyword)
  9229. .HasColumnType("varchar(200)")
  9230. .HasCharSet("utf8")
  9231. .HasCollation("utf8_general_ci");
  9232. entity.Property(e => e.SeoTitle)
  9233. .HasColumnType("varchar(100)")
  9234. .HasCharSet("utf8")
  9235. .HasCollation("utf8_general_ci");
  9236. entity.Property(e => e.SnDelayDay).HasColumnType("int(11)");
  9237. entity.Property(e => e.SnNo)
  9238. .HasColumnType("varchar(32)")
  9239. .HasCharSet("utf8")
  9240. .HasCollation("utf8_general_ci");
  9241. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  9242. entity.Property(e => e.SnType).HasColumnType("int(11)");
  9243. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9244. entity.Property(e => e.SourceSnNo)
  9245. .HasColumnType("varchar(32)")
  9246. .HasCharSet("utf8")
  9247. .HasCollation("utf8_general_ci");
  9248. entity.Property(e => e.SourceSnShipDate).HasColumnType("datetime");
  9249. entity.Property(e => e.SourceSnType).HasColumnType("int(11)");
  9250. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  9251. entity.Property(e => e.Status).HasColumnType("int(11)");
  9252. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9253. entity.Property(e => e.UpdateMan)
  9254. .HasColumnType("varchar(50)")
  9255. .HasCharSet("utf8")
  9256. .HasCollation("utf8_general_ci");
  9257. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9258. entity.Property(e => e.Version).HasColumnType("int(11)");
  9259. });
  9260. modelBuilder.Entity<UserStoreChange>(entity =>
  9261. {
  9262. entity.Property(e => e.Id).HasColumnType("int(11)");
  9263. entity.Property(e => e.ActRewardUserId).HasColumnType("int(11)");
  9264. entity.Property(e => e.ActiveStatus).HasColumnType("int(11)");
  9265. entity.Property(e => e.BindMerchantId).HasColumnType("int(11)");
  9266. entity.Property(e => e.BindStatus).HasColumnType("int(11)");
  9267. entity.Property(e => e.BizBatchNo)
  9268. .HasColumnType("varchar(32)")
  9269. .HasCharSet("utf8")
  9270. .HasCollation("utf8_general_ci");
  9271. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9272. entity.Property(e => e.BrandType)
  9273. .HasColumnType("varchar(10)")
  9274. .HasCharSet("utf8")
  9275. .HasCollation("utf8_general_ci");
  9276. entity.Property(e => e.ChangeRecordNo)
  9277. .HasColumnType("varchar(32)")
  9278. .HasCharSet("utf8")
  9279. .HasCollation("utf8_general_ci");
  9280. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9281. entity.Property(e => e.CreateMan)
  9282. .HasColumnType("varchar(50)")
  9283. .HasCharSet("utf8")
  9284. .HasCollation("utf8_general_ci");
  9285. entity.Property(e => e.DeviceModel)
  9286. .HasColumnType("varchar(32)")
  9287. .HasCharSet("utf8")
  9288. .HasCollation("utf8_general_ci");
  9289. entity.Property(e => e.DeviceType)
  9290. .HasColumnType("varchar(32)")
  9291. .HasCharSet("utf8")
  9292. .HasCollation("utf8_general_ci");
  9293. entity.Property(e => e.DeviceVendor)
  9294. .HasColumnType("varchar(32)")
  9295. .HasCharSet("utf8")
  9296. .HasCollation("utf8_general_ci");
  9297. entity.Property(e => e.FromDate).HasColumnType("datetime");
  9298. entity.Property(e => e.FromRemark)
  9299. .HasColumnType("varchar(64)")
  9300. .HasCharSet("utf8")
  9301. .HasCollation("utf8_general_ci");
  9302. entity.Property(e => e.FromUserId).HasColumnType("int(11)");
  9303. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9304. entity.Property(e => e.SeoDescription)
  9305. .HasColumnType("varchar(500)")
  9306. .HasCharSet("utf8")
  9307. .HasCollation("utf8_general_ci");
  9308. entity.Property(e => e.SeoKeyword)
  9309. .HasColumnType("varchar(200)")
  9310. .HasCharSet("utf8")
  9311. .HasCollation("utf8_general_ci");
  9312. entity.Property(e => e.SeoTitle)
  9313. .HasColumnType("varchar(100)")
  9314. .HasCharSet("utf8")
  9315. .HasCollation("utf8_general_ci");
  9316. entity.Property(e => e.SnNo)
  9317. .HasColumnType("varchar(32)")
  9318. .HasCharSet("utf8")
  9319. .HasCollation("utf8_general_ci");
  9320. entity.Property(e => e.SnStatus).HasColumnType("int(11)");
  9321. entity.Property(e => e.SnType).HasColumnType("int(11)");
  9322. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9323. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  9324. entity.Property(e => e.Status).HasColumnType("int(11)");
  9325. entity.Property(e => e.StockOpDirect).HasColumnType("int(11)");
  9326. entity.Property(e => e.ToDate).HasColumnType("datetime");
  9327. entity.Property(e => e.ToRemark)
  9328. .HasColumnType("varchar(64)")
  9329. .HasCharSet("utf8")
  9330. .HasCollation("utf8_general_ci");
  9331. entity.Property(e => e.ToStoreId).HasColumnType("int(11)");
  9332. entity.Property(e => e.ToUserId).HasColumnType("int(11)");
  9333. entity.Property(e => e.TransType).HasColumnType("int(11)");
  9334. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9335. entity.Property(e => e.UpdateMan)
  9336. .HasColumnType("varchar(50)")
  9337. .HasCharSet("utf8")
  9338. .HasCollation("utf8_general_ci");
  9339. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9340. entity.Property(e => e.Version).HasColumnType("int(11)");
  9341. });
  9342. modelBuilder.Entity<UserSwapDetail>(entity =>
  9343. {
  9344. entity.Property(e => e.Id).HasColumnType("int(11)");
  9345. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9346. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9347. entity.Property(e => e.CreateMan)
  9348. .HasColumnType("varchar(50)")
  9349. .HasCharSet("utf8")
  9350. .HasCollation("utf8_general_ci");
  9351. entity.Property(e => e.DirectSnTradeAmt).HasColumnType("decimal(18,2)");
  9352. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9353. entity.Property(e => e.RecordNo)
  9354. .HasColumnType("varchar(32)")
  9355. .HasCharSet("utf8")
  9356. .HasCollation("utf8_general_ci");
  9357. entity.Property(e => e.Remark)
  9358. .HasColumnType("varchar(64)")
  9359. .HasCharSet("utf8")
  9360. .HasCollation("utf8_general_ci");
  9361. entity.Property(e => e.RiskResult).HasColumnType("int(11)");
  9362. entity.Property(e => e.SeoDescription)
  9363. .HasColumnType("varchar(500)")
  9364. .HasCharSet("utf8")
  9365. .HasCollation("utf8_general_ci");
  9366. entity.Property(e => e.SeoKeyword)
  9367. .HasColumnType("varchar(200)")
  9368. .HasCharSet("utf8")
  9369. .HasCollation("utf8_general_ci");
  9370. entity.Property(e => e.SeoTitle)
  9371. .HasColumnType("varchar(100)")
  9372. .HasCharSet("utf8")
  9373. .HasCollation("utf8_general_ci");
  9374. entity.Property(e => e.SnNo)
  9375. .HasColumnType("varchar(32)")
  9376. .HasCharSet("utf8")
  9377. .HasCollation("utf8_general_ci");
  9378. entity.Property(e => e.SnType).HasColumnType("int(11)");
  9379. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9380. entity.Property(e => e.SourceSnNo)
  9381. .HasColumnType("varchar(32)")
  9382. .HasCharSet("utf8")
  9383. .HasCollation("utf8_general_ci");
  9384. entity.Property(e => e.SourceSnType).HasColumnType("int(11)");
  9385. entity.Property(e => e.Status).HasColumnType("int(11)");
  9386. entity.Property(e => e.SwapExtProductTypes)
  9387. .HasColumnType("varchar(16)")
  9388. .HasCharSet("utf8")
  9389. .HasCollation("utf8_general_ci");
  9390. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  9391. entity.Property(e => e.TradeDate)
  9392. .HasColumnType("varchar(8)")
  9393. .HasCharSet("utf8")
  9394. .HasCollation("utf8_general_ci");
  9395. entity.Property(e => e.TradeMonth)
  9396. .HasColumnType("varchar(6)")
  9397. .HasCharSet("utf8")
  9398. .HasCollation("utf8_general_ci");
  9399. entity.Property(e => e.UpSourceSnNo)
  9400. .HasColumnType("varchar(32)")
  9401. .HasCharSet("utf8")
  9402. .HasCollation("utf8_general_ci");
  9403. entity.Property(e => e.UpSourceSnType).HasColumnType("int(11)");
  9404. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9405. entity.Property(e => e.UpdateMan)
  9406. .HasColumnType("varchar(50)")
  9407. .HasCharSet("utf8")
  9408. .HasCollation("utf8_general_ci");
  9409. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9410. entity.Property(e => e.Version).HasColumnType("int(11)");
  9411. });
  9412. modelBuilder.Entity<UserSwapSummary>(entity =>
  9413. {
  9414. entity.Property(e => e.Id).HasColumnType("int(11)");
  9415. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9416. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9417. entity.Property(e => e.CreateMan)
  9418. .HasColumnType("varchar(50)")
  9419. .HasCharSet("utf8")
  9420. .HasCollation("utf8_general_ci");
  9421. entity.Property(e => e.DirAvgTradeAmt).HasColumnType("decimal(18,2)");
  9422. entity.Property(e => e.DirectActMerCount).HasColumnType("int(11)");
  9423. entity.Property(e => e.DirectTradeAmt).HasColumnType("decimal(18,2)");
  9424. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9425. entity.Property(e => e.RiskStatus).HasColumnType("int(11)");
  9426. entity.Property(e => e.RuleId).HasColumnType("int(11)");
  9427. entity.Property(e => e.SeoDescription)
  9428. .HasColumnType("varchar(500)")
  9429. .HasCharSet("utf8")
  9430. .HasCollation("utf8_general_ci");
  9431. entity.Property(e => e.SeoKeyword)
  9432. .HasColumnType("varchar(200)")
  9433. .HasCharSet("utf8")
  9434. .HasCollation("utf8_general_ci");
  9435. entity.Property(e => e.SeoTitle)
  9436. .HasColumnType("varchar(100)")
  9437. .HasCharSet("utf8")
  9438. .HasCollation("utf8_general_ci");
  9439. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9440. entity.Property(e => e.Status).HasColumnType("int(11)");
  9441. entity.Property(e => e.SwapExtProductTypes)
  9442. .HasColumnType("varchar(16)")
  9443. .HasCharSet("utf8")
  9444. .HasCollation("utf8_general_ci");
  9445. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  9446. entity.Property(e => e.TradeMonth)
  9447. .HasColumnType("varchar(6)")
  9448. .HasCharSet("utf8")
  9449. .HasCollation("utf8_general_ci");
  9450. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9451. entity.Property(e => e.UpdateMan)
  9452. .HasColumnType("varchar(50)")
  9453. .HasCharSet("utf8")
  9454. .HasCollation("utf8_general_ci");
  9455. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9456. entity.Property(e => e.Version).HasColumnType("int(11)");
  9457. });
  9458. modelBuilder.Entity<UserSwapWhite>(entity =>
  9459. {
  9460. entity.Property(e => e.Id).HasColumnType("int(11)");
  9461. entity.Property(e => e.BrandId).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.EndEffectTime).HasColumnType("datetime");
  9468. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9469. entity.Property(e => e.Remark)
  9470. .HasColumnType("varchar(64)")
  9471. .HasCharSet("utf8")
  9472. .HasCollation("utf8_general_ci");
  9473. entity.Property(e => e.RiskType).HasColumnType("int(11)");
  9474. entity.Property(e => e.SeoDescription)
  9475. .HasColumnType("varchar(500)")
  9476. .HasCharSet("utf8")
  9477. .HasCollation("utf8_general_ci");
  9478. entity.Property(e => e.SeoKeyword)
  9479. .HasColumnType("varchar(200)")
  9480. .HasCharSet("utf8")
  9481. .HasCollation("utf8_general_ci");
  9482. entity.Property(e => e.SeoTitle)
  9483. .HasColumnType("varchar(100)")
  9484. .HasCharSet("utf8")
  9485. .HasCollation("utf8_general_ci");
  9486. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9487. entity.Property(e => e.StartEffectTime).HasColumnType("datetime");
  9488. entity.Property(e => e.Status).HasColumnType("int(11)");
  9489. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9490. entity.Property(e => e.UpdateMan)
  9491. .HasColumnType("varchar(50)")
  9492. .HasCharSet("utf8")
  9493. .HasCollation("utf8_general_ci");
  9494. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9495. entity.Property(e => e.Version).HasColumnType("int(11)");
  9496. });
  9497. modelBuilder.Entity<UserTradeDaySummary>(entity =>
  9498. {
  9499. entity.Property(e => e.Id).HasColumnType("int(11)");
  9500. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9501. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9502. entity.Property(e => e.CreateMan)
  9503. .HasColumnType("varchar(50)")
  9504. .HasCharSet("utf8")
  9505. .HasCollation("utf8_general_ci");
  9506. entity.Property(e => e.DirectDebitCapNum).HasColumnType("int(11)");
  9507. entity.Property(e => e.DirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  9508. entity.Property(e => e.DirectTradeAmt).HasColumnType("decimal(18,2)");
  9509. entity.Property(e => e.NonDirectDebitCapNum).HasColumnType("int(11)");
  9510. entity.Property(e => e.NonDirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  9511. entity.Property(e => e.NonDirectTradeAmt).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.TradeDate)
  9532. .HasColumnType("varchar(8)")
  9533. .HasCharSet("utf8")
  9534. .HasCollation("utf8_general_ci");
  9535. entity.Property(e => e.TradeMonth)
  9536. .HasColumnType("varchar(6)")
  9537. .HasCharSet("utf8")
  9538. .HasCollation("utf8_general_ci");
  9539. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9540. entity.Property(e => e.UpdateMan)
  9541. .HasColumnType("varchar(50)")
  9542. .HasCharSet("utf8")
  9543. .HasCollation("utf8_general_ci");
  9544. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9545. entity.Property(e => e.Version).HasColumnType("int(11)");
  9546. });
  9547. modelBuilder.Entity<UserTradeMonthSummary>(entity =>
  9548. {
  9549. entity.Property(e => e.Id).HasColumnType("int(11)");
  9550. entity.Property(e => e.ActiveBuddyMerStatus).HasColumnType("int(11)");
  9551. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9552. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9553. entity.Property(e => e.CreateMan)
  9554. .HasColumnType("varchar(50)")
  9555. .HasCharSet("utf8")
  9556. .HasCollation("utf8_general_ci");
  9557. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  9558. entity.Property(e => e.DebitCapTradeAmt).HasColumnType("decimal(18,2)");
  9559. entity.Property(e => e.DebitCapTradeNum).HasColumnType("int(11)");
  9560. entity.Property(e => e.DebitNotCapTradeAmt).HasColumnType("decimal(18,2)");
  9561. entity.Property(e => e.MallPosOrderStatus).HasColumnType("int(11)");
  9562. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9563. entity.Property(e => e.Remark)
  9564. .HasColumnType("varchar(64)")
  9565. .HasCharSet("utf8")
  9566. .HasCollation("utf8_general_ci");
  9567. entity.Property(e => e.SeoDescription)
  9568. .HasColumnType("varchar(500)")
  9569. .HasCharSet("utf8")
  9570. .HasCollation("utf8_general_ci");
  9571. entity.Property(e => e.SeoKeyword)
  9572. .HasColumnType("varchar(200)")
  9573. .HasCharSet("utf8")
  9574. .HasCollation("utf8_general_ci");
  9575. entity.Property(e => e.SeoTitle)
  9576. .HasColumnType("varchar(100)")
  9577. .HasCharSet("utf8")
  9578. .HasCollation("utf8_general_ci");
  9579. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9580. entity.Property(e => e.StatType).HasColumnType("int(11)");
  9581. entity.Property(e => e.Status).HasColumnType("int(11)");
  9582. entity.Property(e => e.TradeAmt).HasColumnType("decimal(18,2)");
  9583. entity.Property(e => e.TradeMonth)
  9584. .HasColumnType("varchar(6)")
  9585. .HasCharSet("utf8")
  9586. .HasCollation("utf8_general_ci");
  9587. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9588. entity.Property(e => e.UpdateMan)
  9589. .HasColumnType("varchar(50)")
  9590. .HasCharSet("utf8")
  9591. .HasCollation("utf8_general_ci");
  9592. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9593. entity.Property(e => e.Version).HasColumnType("int(11)");
  9594. });
  9595. modelBuilder.Entity<Users>(entity =>
  9596. {
  9597. entity.Property(e => e.Id).HasColumnType("int(11)");
  9598. entity.Property(e => e.AccessToken)
  9599. .HasColumnType("varchar(64)")
  9600. .HasCharSet("utf8")
  9601. .HasCollation("utf8_general_ci");
  9602. entity.Property(e => e.ActiveRewardAmount).HasColumnType("decimal(18,2)");
  9603. entity.Property(e => e.Address)
  9604. .HasColumnType("varchar(50)")
  9605. .HasCharSet("utf8")
  9606. .HasCollation("utf8_general_ci");
  9607. entity.Property(e => e.AgentAreas)
  9608. .HasColumnType("varchar(50)")
  9609. .HasCharSet("utf8")
  9610. .HasCollation("utf8_general_ci");
  9611. entity.Property(e => e.AgentLevel).HasColumnType("int(11)");
  9612. entity.Property(e => e.AlipayUserId)
  9613. .HasColumnType("varchar(50)")
  9614. .HasCharSet("utf8")
  9615. .HasCollation("utf8_general_ci");
  9616. entity.Property(e => e.Areas)
  9617. .HasColumnType("varchar(30)")
  9618. .HasCharSet("utf8")
  9619. .HasCollation("utf8_general_ci");
  9620. entity.Property(e => e.AuditStatus).HasColumnType("int(11)");
  9621. entity.Property(e => e.AuthDate).HasColumnType("datetime");
  9622. entity.Property(e => e.AuthFlag)
  9623. .HasColumnType("bit(1)")
  9624. .HasDefaultValueSql("b'0'");
  9625. entity.Property(e => e.BankCardPositiveImage)
  9626. .HasColumnType("varchar(200)")
  9627. .HasCharSet("utf8")
  9628. .HasCollation("utf8_general_ci");
  9629. entity.Property(e => e.CarIds)
  9630. .HasColumnType("varchar(100)")
  9631. .HasCharSet("utf8")
  9632. .HasCollation("utf8_general_ci");
  9633. entity.Property(e => e.CardNo)
  9634. .HasColumnType("varchar(30)")
  9635. .HasCharSet("utf8")
  9636. .HasCollation("utf8_general_ci");
  9637. entity.Property(e => e.CardRecCode)
  9638. .HasColumnType("varchar(200)")
  9639. .HasCharSet("utf8")
  9640. .HasCollation("utf8_general_ci");
  9641. entity.Property(e => e.CashFreezeAmt).HasColumnType("decimal(18,2)");
  9642. entity.Property(e => e.CertFrontImage)
  9643. .HasColumnType("varchar(200)")
  9644. .HasCharSet("utf8")
  9645. .HasCollation("utf8_general_ci");
  9646. entity.Property(e => e.CertId)
  9647. .HasColumnType("varchar(18)")
  9648. .HasCharSet("utf8")
  9649. .HasCollation("utf8_general_ci");
  9650. entity.Property(e => e.CertReverseImage)
  9651. .HasColumnType("varchar(200)")
  9652. .HasCharSet("utf8")
  9653. .HasCollation("utf8_general_ci");
  9654. entity.Property(e => e.CertValidEndDate).HasColumnType("datetime");
  9655. entity.Property(e => e.CertValidStartDate).HasColumnType("datetime");
  9656. entity.Property(e => e.CitySetDate).HasColumnType("datetime");
  9657. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9658. entity.Property(e => e.CreateMan)
  9659. .HasColumnType("varchar(50)")
  9660. .HasCharSet("utf8")
  9661. .HasCollation("utf8_general_ci");
  9662. entity.Property(e => e.DeviceId)
  9663. .HasColumnType("varchar(128)")
  9664. .HasCharSet("utf8")
  9665. .HasCollation("utf8_general_ci");
  9666. entity.Property(e => e.DeviceToken)
  9667. .HasColumnType("varchar(64)")
  9668. .HasCharSet("utf8")
  9669. .HasCollation("utf8_general_ci");
  9670. entity.Property(e => e.ExpiredDate).HasColumnType("datetime");
  9671. entity.Property(e => e.GroupId)
  9672. .HasColumnType("varchar(200)")
  9673. .HasCharSet("utf8")
  9674. .HasCollation("utf8_general_ci");
  9675. entity.Property(e => e.HandCertImage)
  9676. .HasColumnType("varchar(200)")
  9677. .HasCharSet("utf8")
  9678. .HasCollation("utf8_general_ci");
  9679. entity.Property(e => e.HandPwd)
  9680. .HasColumnType("varchar(32)")
  9681. .HasCharSet("utf8")
  9682. .HasCollation("utf8_general_ci");
  9683. entity.Property(e => e.HeadPhoto)
  9684. .HasColumnType("varchar(2000)")
  9685. .HasCharSet("utf8")
  9686. .HasCollation("utf8_general_ci");
  9687. entity.Property(e => e.IdCardEndNo)
  9688. .HasColumnType("varchar(4)")
  9689. .HasCharSet("utf8")
  9690. .HasCollation("utf8_general_ci");
  9691. entity.Property(e => e.IsNewUser)
  9692. .HasColumnType("bit(1)")
  9693. .HasDefaultValueSql("b'0'");
  9694. entity.Property(e => e.LockStatus)
  9695. .HasColumnType("bit(1)")
  9696. .HasDefaultValueSql("b'0'");
  9697. entity.Property(e => e.LoginPwd)
  9698. .HasColumnType("varchar(32)")
  9699. .HasCharSet("utf8")
  9700. .HasCollation("utf8_general_ci");
  9701. entity.Property(e => e.LoginStatus).HasColumnType("int(11)");
  9702. entity.Property(e => e.MakerCode)
  9703. .HasColumnType("varchar(32)")
  9704. .HasCharSet("utf8")
  9705. .HasCollation("utf8_general_ci");
  9706. entity.Property(e => e.MerchantDate).HasColumnType("datetime");
  9707. entity.Property(e => e.MerchantType).HasColumnType("int(11)");
  9708. entity.Property(e => e.Mobile)
  9709. .HasColumnType("varchar(11)")
  9710. .HasCharSet("utf8")
  9711. .HasCollation("utf8_general_ci");
  9712. entity.Property(e => e.NickName)
  9713. .HasColumnType("varchar(300)")
  9714. .HasCharSet("utf8")
  9715. .HasCollation("utf8_general_ci");
  9716. entity.Property(e => e.OpenId)
  9717. .HasColumnType("varchar(50)")
  9718. .HasCharSet("utf8")
  9719. .HasCollation("utf8_general_ci");
  9720. entity.Property(e => e.ParentNav)
  9721. .HasColumnType("longtext")
  9722. .HasCharSet("utf8")
  9723. .HasCollation("utf8_general_ci");
  9724. entity.Property(e => e.ParentUserId).HasColumnType("int(11)");
  9725. entity.Property(e => e.PayPwd)
  9726. .HasColumnType("varchar(32)")
  9727. .HasCharSet("utf8")
  9728. .HasCollation("utf8_general_ci");
  9729. entity.Property(e => e.ProfitRewardRate).HasColumnType("decimal(18,2)");
  9730. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9731. entity.Property(e => e.RealName)
  9732. .HasColumnType("varchar(30)")
  9733. .HasCharSet("utf8")
  9734. .HasCollation("utf8_general_ci");
  9735. entity.Property(e => e.ReferenceCode)
  9736. .HasColumnType("varchar(200)")
  9737. .HasCharSet("utf8")
  9738. .HasCollation("utf8_general_ci");
  9739. entity.Property(e => e.ReferenceQrCode)
  9740. .HasColumnType("varchar(200)")
  9741. .HasCharSet("utf8")
  9742. .HasCollation("utf8_general_ci");
  9743. entity.Property(e => e.ReferralUserId).HasColumnType("int(11)");
  9744. entity.Property(e => e.Remark)
  9745. .HasColumnType("mediumtext")
  9746. .HasCharSet("utf8")
  9747. .HasCollation("utf8_general_ci");
  9748. entity.Property(e => e.RiskFlag)
  9749. .HasColumnType("bit(1)")
  9750. .HasDefaultValueSql("b'0'");
  9751. entity.Property(e => e.RiskRemark)
  9752. .HasColumnType("varchar(64)")
  9753. .HasCharSet("utf8")
  9754. .HasCollation("utf8_general_ci");
  9755. entity.Property(e => e.RreezeRemark)
  9756. .HasColumnType("varchar(64)")
  9757. .HasCharSet("utf8")
  9758. .HasCollation("utf8_general_ci");
  9759. entity.Property(e => e.SeoDescription)
  9760. .HasColumnType("varchar(500)")
  9761. .HasCharSet("utf8")
  9762. .HasCollation("utf8_general_ci");
  9763. entity.Property(e => e.SeoKeyword)
  9764. .HasColumnType("varchar(200)")
  9765. .HasCharSet("utf8")
  9766. .HasCollation("utf8_general_ci");
  9767. entity.Property(e => e.SeoTitle)
  9768. .HasColumnType("varchar(100)")
  9769. .HasCharSet("utf8")
  9770. .HasCollation("utf8_general_ci");
  9771. entity.Property(e => e.SettleAmount).HasColumnType("decimal(18,2)");
  9772. entity.Property(e => e.SettleBankCardName)
  9773. .HasColumnType("varchar(20)")
  9774. .HasCharSet("utf8")
  9775. .HasCollation("utf8_general_ci");
  9776. entity.Property(e => e.SettleBankCardNo)
  9777. .HasColumnType("varchar(32)")
  9778. .HasCharSet("utf8")
  9779. .HasCollation("utf8_general_ci");
  9780. entity.Property(e => e.SettleBankName)
  9781. .HasColumnType("varchar(32)")
  9782. .HasCharSet("utf8")
  9783. .HasCollation("utf8_general_ci");
  9784. entity.Property(e => e.SettleRemark)
  9785. .HasColumnType("varchar(64)")
  9786. .HasCharSet("utf8")
  9787. .HasCollation("utf8_general_ci");
  9788. entity.Property(e => e.Sex).HasColumnType("int(11)");
  9789. entity.Property(e => e.SignImgUrl)
  9790. .HasColumnType("varchar(200)")
  9791. .HasCharSet("utf8")
  9792. .HasCollation("utf8_general_ci");
  9793. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9794. entity.Property(e => e.Status).HasColumnType("int(11)");
  9795. entity.Property(e => e.Tags)
  9796. .HasColumnType("varchar(200)")
  9797. .HasCharSet("utf8")
  9798. .HasCollation("utf8_general_ci");
  9799. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9800. entity.Property(e => e.UpdateMan)
  9801. .HasColumnType("varchar(50)")
  9802. .HasCharSet("utf8")
  9803. .HasCollation("utf8_general_ci");
  9804. entity.Property(e => e.UserLevel).HasColumnType("int(11)");
  9805. entity.Property(e => e.UserProperty).HasColumnType("int(11)");
  9806. entity.Property(e => e.UserType).HasColumnType("int(11)");
  9807. entity.Property(e => e.Version).HasColumnType("int(11)");
  9808. });
  9809. OnModelCreatingPartial(modelBuilder);
  9810. }
  9811. partial void OnModelCreatingPartial(ModelBuilder modelBuilder);
  9812. }
  9813. }