db_mp.sql 663 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194
  1. /*
  2. Navicat Premium Data Transfer
  3. Source Server : 趣程支持
  4. Source Server Type : MySQL
  5. Source Server Version : 50736
  6. Source Host : 47.99.43.28:3306
  7. Source Schema : db_mp
  8. Target Server Type : MySQL
  9. Target Server Version : 50736
  10. File Encoding : 65001
  11. Date: 21/12/2021 15:53:12
  12. */
  13. SET NAMES utf8mb4;
  14. SET FOREIGN_KEY_CHECKS = 0;
  15. -- ----------------------------
  16. -- Table structure for dw_day
  17. -- ----------------------------
  18. DROP TABLE IF EXISTS `dw_day`;
  19. CREATE TABLE `dw_day` (
  20. `id` int(11) NOT NULL AUTO_INCREMENT,
  21. `date` date NOT NULL COMMENT '日期',
  22. `mobile_prefix` int(11) UNSIGNED NOT NULL DEFAULT 156 COMMENT '国家手机区号',
  23. `app_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '游戏数量',
  24. `agent_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '推广员数量',
  25. `share_agent_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '分享人数',
  26. `share_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '分享次数',
  27. `click_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '点击数',
  28. `click_user_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '点击人数',
  29. `page_down_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '落地页点击数',
  30. `active_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '游戏激活数',
  31. `down_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '下载数',
  32. `down_user_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '下载人数',
  33. `real_down_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '真实下载数',
  34. `user_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '活跃玩家数量',
  35. `history_user_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '累计玩家数量',
  36. `wau` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '最近7天活跃人数',
  37. `mau` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '最近30天活跃人数',
  38. `ip_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'IP数量',
  39. `device_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '设备数量',
  40. `history_device_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '累计设备数量',
  41. `dwau` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '最近7天活跃设备数',
  42. `dmau` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '最近30天活跃设备数',
  43. `reg_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '注册玩家数',
  44. `reg_device_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '注册设备数',
  45. `reg_ip_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '注册IP数',
  46. `pay_user_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '付费玩家数',
  47. `order_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '成功订单数',
  48. `fail_order_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '失败订单数',
  49. `un_order_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '待支付订单数',
  50. `reg_order_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '注册订单数',
  51. `reg_pay_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '注册即付费人数',
  52. `sum_money` decimal(20, 2) NOT NULL DEFAULT 0.00 COMMENT '充值金额',
  53. `sum_real_money` decimal(20, 2) NOT NULL DEFAULT 0.00 COMMENT '自然流水金额',
  54. `first_pay_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '首次付费人数',
  55. `first_pay_money` decimal(20, 2) NOT NULL DEFAULT 0.00 COMMENT '首付总额',
  56. `reg_sum_money` decimal(20, 2) NOT NULL DEFAULT 0.00 COMMENT '注册即付总额',
  57. `reg_real_sum_money` decimal(20, 2) NOT NULL DEFAULT 0.00 COMMENT '注册即付自然流水总额',
  58. `cpa_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '计算cpa玩家数量',
  59. `openid_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '第三方注册数量',
  60. `day2` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '二日留存量',
  61. `day3` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '三日留存量',
  62. `day4` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '四日留存量',
  63. `day5` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '五日留存量',
  64. `day6` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '六日留存量',
  65. `day7` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '七日留存量',
  66. `day8` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '八日留存量',
  67. `day9` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '九日留存量',
  68. `day10` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '十日留存量',
  69. `day11` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '11日留存量',
  70. `day12` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '12日留存量',
  71. `day13` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '13日留存量',
  72. `day14` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '14日留存量',
  73. `day15` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '15日留存量',
  74. `day21` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '21日留存量',
  75. `day30` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '30日留存量',
  76. `day60` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '60日留存量',
  77. `device_day2` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '二日留存量',
  78. `device_day3` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '三日留存量',
  79. `device_day4` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '四日留存量',
  80. `device_day5` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '五日留存量',
  81. `device_day6` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '六日留存量',
  82. `device_day7` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '七日留存量',
  83. `device_day8` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '八日留存量',
  84. `device_day9` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '九日留存量',
  85. `device_day10` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '十日留存量',
  86. `device_day11` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '11日留存量',
  87. `device_day12` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '12日留存量',
  88. `device_day13` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '13日留存量',
  89. `device_day14` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '14日留存量',
  90. `device_day15` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '15日留存量',
  91. `device_day21` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '21日留存量',
  92. `device_day30` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '30日留存量',
  93. `device_day60` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '60日留存量',
  94. PRIMARY KEY (`id`) USING BTREE,
  95. UNIQUE INDEX `d_date_unique`(`date`) USING BTREE
  96. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '每日统计表' ROW_FORMAT = COMPACT;
  97. -- ----------------------------
  98. -- Records of dw_day
  99. -- ----------------------------
  100. -- ----------------------------
  101. -- Table structure for dw_day_agent
  102. -- ----------------------------
  103. DROP TABLE IF EXISTS `dw_day_agent`;
  104. CREATE TABLE `dw_day_agent` (
  105. `id` int(11) NOT NULL AUTO_INCREMENT,
  106. `date` date NOT NULL COMMENT '日期',
  107. `mobile_prefix` int(11) UNSIGNED NOT NULL DEFAULT 156 COMMENT '国家手机区号',
  108. `agent_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '渠道ID',
  109. `agent_name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '渠道名称',
  110. `app_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '游戏数量',
  111. `share_agent_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '分享人数',
  112. `share_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '分享次数',
  113. `click_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '点击数',
  114. `click_user_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '点击人数',
  115. `page_down_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '落地页点击数',
  116. `active_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '游戏激活数',
  117. `down_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '下载数',
  118. `down_user_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '下载人数',
  119. `real_down_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '真实下载数',
  120. `user_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '活跃玩家数量',
  121. `history_user_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '累计玩家数量',
  122. `wau` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '最近7天活跃人数',
  123. `mau` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '最近30天活跃人数',
  124. `ip_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'IP数量',
  125. `device_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '设备数量',
  126. `history_device_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '累计设备数量',
  127. `dwau` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '最近7天活跃设备数',
  128. `dmau` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '最近30天活跃设备数',
  129. `reg_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '注册玩家数',
  130. `reg_device_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '注册设备数',
  131. `reg_ip_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '注册IP数',
  132. `pay_user_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '付费玩家数',
  133. `order_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '成功订单数',
  134. `fail_order_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '失败订单数',
  135. `un_order_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '待支付订单数',
  136. `reg_order_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '注册订单数',
  137. `reg_pay_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '注册即付费人数',
  138. `sum_money` decimal(20, 2) NOT NULL DEFAULT 0.00 COMMENT '充值金额',
  139. `sum_real_money` decimal(20, 2) NOT NULL DEFAULT 0.00 COMMENT '自然流水金额',
  140. `first_pay_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '首次付费人数',
  141. `first_pay_money` decimal(20, 2) NOT NULL DEFAULT 0.00 COMMENT '首付总额',
  142. `reg_sum_money` decimal(20, 2) NOT NULL DEFAULT 0.00 COMMENT '注册即付总额',
  143. `reg_real_sum_money` decimal(20, 2) NOT NULL DEFAULT 0.00 COMMENT '注册即付自然流水总额',
  144. `cpa_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '计算cpa玩家数量',
  145. `openid_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '第三方注册数量',
  146. `day2` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '二日留存量',
  147. `day3` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '三日留存量',
  148. `day4` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '四日留存量',
  149. `day5` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '五日留存量',
  150. `day6` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '六日留存量',
  151. `day7` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '七日留存量',
  152. `day8` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '八日留存量',
  153. `day9` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '九日留存量',
  154. `day10` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '十日留存量',
  155. `day11` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '11日留存量',
  156. `day12` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '12日留存量',
  157. `day13` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '13日留存量',
  158. `day14` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '14日留存量',
  159. `day15` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '15日留存量',
  160. `day21` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '21日留存量',
  161. `day30` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '30日留存量',
  162. `day60` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '60日留存量',
  163. `device_day2` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '二日留存量',
  164. `device_day3` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '三日留存量',
  165. `device_day4` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '四日留存量',
  166. `device_day5` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '五日留存量',
  167. `device_day6` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '六日留存量',
  168. `device_day7` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '七日留存量',
  169. `device_day8` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '八日留存量',
  170. `device_day9` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '九日留存量',
  171. `device_day10` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '十日留存量',
  172. `device_day11` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '11日留存量',
  173. `device_day12` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '12日留存量',
  174. `device_day13` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '13日留存量',
  175. `device_day14` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '14日留存量',
  176. `device_day15` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '15日留存量',
  177. `device_day21` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '21日留存量',
  178. `device_day30` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '30日留存量',
  179. `device_day60` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '60日留存量',
  180. PRIMARY KEY (`id`) USING BTREE,
  181. UNIQUE INDEX `da_daam_unique`(`date`, `agent_id`) USING BTREE,
  182. INDEX `da_agent_index`(`agent_id`) USING BTREE,
  183. INDEX `da_country_index`(`mobile_prefix`) USING BTREE
  184. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '每日推广员统计表' ROW_FORMAT = COMPACT;
  185. -- ----------------------------
  186. -- Records of dw_day_agent
  187. -- ----------------------------
  188. -- ----------------------------
  189. -- Table structure for dw_day_game
  190. -- ----------------------------
  191. DROP TABLE IF EXISTS `dw_day_game`;
  192. CREATE TABLE `dw_day_game` (
  193. `id` int(11) NOT NULL AUTO_INCREMENT,
  194. `date` date NOT NULL COMMENT '日期',
  195. `mobile_prefix` int(11) UNSIGNED NOT NULL DEFAULT 156 COMMENT '国家手机区号',
  196. `app_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '游戏ID',
  197. `app_name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '游戏名称',
  198. `agent_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '推广员数量',
  199. `share_agent_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '分享人数',
  200. `share_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '分享次数',
  201. `click_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '点击数',
  202. `click_user_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '点击人数',
  203. `page_down_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '落地页点击数',
  204. `active_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '游戏激活数',
  205. `down_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '下载数',
  206. `down_user_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '下载人数',
  207. `real_down_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '真实下载数',
  208. `user_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '活跃玩家数量',
  209. `history_user_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '累计玩家数量',
  210. `wau` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '最近7天活跃人数',
  211. `mau` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '最近30天活跃人数',
  212. `ip_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'IP数量',
  213. `device_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '设备数量',
  214. `history_device_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '累计设备数量',
  215. `dwau` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '最近7天活跃设备数',
  216. `dmau` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '最近30天活跃设备数',
  217. `reg_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '注册玩家数',
  218. `reg_device_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '注册设备数',
  219. `reg_ip_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '注册IP数',
  220. `pay_user_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '付费玩家数',
  221. `order_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '成功订单数',
  222. `fail_order_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '失败订单数',
  223. `un_order_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '待支付订单数',
  224. `reg_order_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '注册订单数',
  225. `reg_pay_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '注册即付费人数',
  226. `sum_money` decimal(20, 2) NOT NULL DEFAULT 0.00 COMMENT '充值金额',
  227. `sum_real_money` decimal(20, 2) NOT NULL DEFAULT 0.00 COMMENT '自然流水金额',
  228. `first_pay_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '首次付费人数',
  229. `first_pay_money` decimal(20, 2) NOT NULL DEFAULT 0.00 COMMENT '首付总额',
  230. `reg_sum_money` decimal(20, 2) NOT NULL DEFAULT 0.00 COMMENT '注册即付总额',
  231. `reg_real_sum_money` decimal(20, 2) NOT NULL DEFAULT 0.00 COMMENT '注册即付自然流水总额',
  232. `cpa_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '计算cpa玩家数量',
  233. `openid_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '第三方注册数量',
  234. `day2` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '二日留存量',
  235. `day3` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '三日留存量',
  236. `day4` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '四日留存量',
  237. `day5` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '五日留存量',
  238. `day6` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '六日留存量',
  239. `day7` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '七日留存量',
  240. `day8` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '八日留存量',
  241. `day9` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '九日留存量',
  242. `day10` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '十日留存量',
  243. `day11` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '11日留存量',
  244. `day12` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '12日留存量',
  245. `day13` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '13日留存量',
  246. `day14` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '14日留存量',
  247. `day15` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '15日留存量',
  248. `day21` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '21日留存量',
  249. `day30` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '30日留存量',
  250. `day60` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '60日留存量',
  251. `device_day2` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '二日留存量',
  252. `device_day3` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '三日留存量',
  253. `device_day4` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '四日留存量',
  254. `device_day5` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '五日留存量',
  255. `device_day6` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '六日留存量',
  256. `device_day7` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '七日留存量',
  257. `device_day8` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '八日留存量',
  258. `device_day9` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '九日留存量',
  259. `device_day10` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '十日留存量',
  260. `device_day11` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '11日留存量',
  261. `device_day12` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '12日留存量',
  262. `device_day13` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '13日留存量',
  263. `device_day14` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '14日留存量',
  264. `device_day15` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '15日留存量',
  265. `device_day21` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '21日留存量',
  266. `device_day30` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '30日留存量',
  267. `device_day60` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '60日留存量',
  268. PRIMARY KEY (`id`) USING BTREE,
  269. UNIQUE INDEX `dgc_dg_unique`(`date`, `app_id`) USING BTREE,
  270. INDEX `dgc_game_index`(`app_id`) USING BTREE
  271. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '每日游戏统计表' ROW_FORMAT = COMPACT;
  272. -- ----------------------------
  273. -- Records of dw_day_game
  274. -- ----------------------------
  275. -- ----------------------------
  276. -- Table structure for dw_day_game_agent
  277. -- ----------------------------
  278. DROP TABLE IF EXISTS `dw_day_game_agent`;
  279. CREATE TABLE `dw_day_game_agent` (
  280. `id` int(11) NOT NULL AUTO_INCREMENT,
  281. `date` date NOT NULL COMMENT '日期',
  282. `mobile_prefix` int(11) UNSIGNED NOT NULL DEFAULT 156 COMMENT '国家手机区号',
  283. `app_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '游戏ID',
  284. `app_name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '游戏名称',
  285. `agent_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '渠道ID',
  286. `agent_name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '渠道名称',
  287. `share_agent_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '分享人数',
  288. `share_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '分享次数',
  289. `click_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '点击数',
  290. `click_user_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '点击人数',
  291. `page_down_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '落地页点击数',
  292. `active_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '游戏激活数',
  293. `down_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '下载数',
  294. `down_user_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '下载人数',
  295. `real_down_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '真实下载数',
  296. `user_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '活跃玩家数量',
  297. `history_user_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '累计玩家数量',
  298. `wau` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '最近7天活跃人数',
  299. `mau` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '最近30天活跃人数',
  300. `ip_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'IP数量',
  301. `device_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '设备数量',
  302. `history_device_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '累计设备数量',
  303. `dwau` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '最近7天活跃设备数',
  304. `dmau` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '最近30天活跃设备数',
  305. `reg_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '注册玩家数',
  306. `reg_device_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '注册设备数',
  307. `reg_ip_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '注册IP数',
  308. `pay_user_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '付费玩家数',
  309. `order_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '成功订单数',
  310. `fail_order_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '失败订单数',
  311. `un_order_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '待支付订单数',
  312. `reg_order_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '注册订单数',
  313. `reg_pay_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '注册即付费人数',
  314. `sum_money` decimal(20, 2) NOT NULL DEFAULT 0.00 COMMENT '充值金额',
  315. `sum_real_money` decimal(20, 2) NOT NULL DEFAULT 0.00 COMMENT '自然流水金额',
  316. `first_pay_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '首次付费人数',
  317. `first_pay_money` decimal(20, 2) NOT NULL DEFAULT 0.00 COMMENT '首付总额',
  318. `reg_sum_money` decimal(20, 2) NOT NULL DEFAULT 0.00 COMMENT '注册即付总额',
  319. `reg_real_sum_money` decimal(20, 2) NOT NULL DEFAULT 0.00 COMMENT '注册即付自然流水总额',
  320. `cpa_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '计算cpa玩家数量',
  321. `openid_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '第三方注册数量',
  322. `day2` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '二日留存量',
  323. `day3` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '三日留存量',
  324. `day4` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '四日留存量',
  325. `day5` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '五日留存量',
  326. `day6` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '六日留存量',
  327. `day7` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '七日留存量',
  328. `day8` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '八日留存量',
  329. `day9` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '九日留存量',
  330. `day10` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '十日留存量',
  331. `day11` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '11日留存量',
  332. `day12` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '12日留存量',
  333. `day13` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '13日留存量',
  334. `day14` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '14日留存量',
  335. `day15` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '15日留存量',
  336. `day21` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '21日留存量',
  337. `day30` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '30日留存量',
  338. `day60` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '60日留存量',
  339. `device_day2` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '二日留存量',
  340. `device_day3` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '三日留存量',
  341. `device_day4` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '四日留存量',
  342. `device_day5` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '五日留存量',
  343. `device_day6` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '六日留存量',
  344. `device_day7` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '七日留存量',
  345. `device_day8` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '八日留存量',
  346. `device_day9` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '九日留存量',
  347. `device_day10` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '十日留存量',
  348. `device_day11` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '11日留存量',
  349. `device_day12` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '12日留存量',
  350. `device_day13` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '13日留存量',
  351. `device_day14` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '14日留存量',
  352. `device_day15` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '15日留存量',
  353. `device_day21` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '21日留存量',
  354. `device_day30` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '30日留存量',
  355. `device_day60` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '60日留存量',
  356. PRIMARY KEY (`id`) USING BTREE,
  357. UNIQUE INDEX `dga_dga_unique`(`date`, `app_id`, `agent_id`) USING BTREE,
  358. INDEX `dga_game_index`(`app_id`) USING BTREE,
  359. INDEX `dga_agent_index`(`agent_id`) USING BTREE
  360. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '每日游戏推广员统计表' ROW_FORMAT = COMPACT;
  361. -- ----------------------------
  362. -- Records of dw_day_game_agent
  363. -- ----------------------------
  364. -- ----------------------------
  365. -- Table structure for h_account_goods
  366. -- ----------------------------
  367. DROP TABLE IF EXISTS `h_account_goods`;
  368. CREATE TABLE `h_account_goods` (
  369. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '商品ID',
  370. `mem_id` int(11) NOT NULL DEFAULT 0 COMMENT '出售人ID',
  371. `app_id` int(11) NOT NULL DEFAULT 0 COMMENT '游戏id',
  372. `mg_mem_id` int(11) NOT NULL DEFAULT 0 COMMENT '出售账号ID 与mem_game的mg_mem_id对应',
  373. `server_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '0' COMMENT '游戏服务器id,默认为0',
  374. `server_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '所在服务器名称',
  375. `role_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '0' COMMENT '角色ID',
  376. `role_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '0' COMMENT '角色',
  377. `title` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '标题',
  378. `price` double(12, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '售价',
  379. `image` varchar(1023) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '游戏截图 JSON格式',
  380. `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '描述',
  381. `list_order` int(11) NULL DEFAULT 0 COMMENT '列表排序',
  382. `status` tinyint(1) NOT NULL DEFAULT 1 COMMENT '状态 1审核中 2已上架 3已下架 4已出售 5审核不通过 6 锁定中',
  383. `lock_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '锁定时间',
  384. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  385. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间',
  386. `is_delete` tinyint(1) NOT NULL DEFAULT 2 COMMENT '2未删除 1已删除',
  387. `delete_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '删除时间',
  388. `reason` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '审核原因',
  389. `check_mem_id` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '审核用户名',
  390. `check_pwd` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '审核用密码 对称加密',
  391. PRIMARY KEY (`id`) USING BTREE,
  392. INDEX `ags_mem_index`(`mem_id`) USING BTREE,
  393. INDEX `ags_game_index`(`app_id`) USING BTREE,
  394. INDEX `ags_price_index`(`price`) USING BTREE,
  395. INDEX `ags_time_index`(`create_time`) USING BTREE,
  396. INDEX `ags_list_index`(`list_order`) USING BTREE
  397. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '小号交易商品表' ROW_FORMAT = DYNAMIC;
  398. -- ----------------------------
  399. -- Records of h_account_goods
  400. -- ----------------------------
  401. -- ----------------------------
  402. -- Table structure for h_account_mem_like
  403. -- ----------------------------
  404. DROP TABLE IF EXISTS `h_account_mem_like`;
  405. CREATE TABLE `h_account_mem_like` (
  406. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id主键',
  407. `mem_id` int(11) NOT NULL DEFAULT 0 COMMENT '收藏人ID',
  408. `ags_id` int(11) NOT NULL DEFAULT 0 COMMENT '出售账号id',
  409. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '收藏时间',
  410. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间',
  411. `status` tinyint(1) NOT NULL DEFAULT 2 COMMENT '2收藏 1 取消收藏',
  412. PRIMARY KEY (`id`) USING BTREE,
  413. UNIQUE INDEX `aml_mem_ags_unique`(`mem_id`, `ags_id`) USING BTREE
  414. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '小号交易收藏表' ROW_FORMAT = DYNAMIC;
  415. -- ----------------------------
  416. -- Records of h_account_mem_like
  417. -- ----------------------------
  418. -- ----------------------------
  419. -- Table structure for h_account_order
  420. -- ----------------------------
  421. DROP TABLE IF EXISTS `h_account_order`;
  422. CREATE TABLE `h_account_order` (
  423. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  424. `order_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '订单号',
  425. `sell_mem_id` int(11) NOT NULL DEFAULT 0 COMMENT '卖家ID',
  426. `buy_mem_id` int(11) NOT NULL DEFAULT 0 COMMENT '买家id',
  427. `ags_id` int(11) NOT NULL DEFAULT 0 COMMENT '交易产品id 与account_goods关联',
  428. `app_id` int(11) NOT NULL DEFAULT 0 COMMENT '游戏ID',
  429. `mg_mem_id` int(11) NOT NULL DEFAULT 0 COMMENT '角色账号id',
  430. `price` double(12, 2) NOT NULL DEFAULT 0.00 COMMENT '单价',
  431. `real_price` double(12, 2) NOT NULL DEFAULT 0.00 COMMENT '实际到账金额',
  432. `status` tinyint(1) NOT NULL DEFAULT 0 COMMENT '交易状态 1待支付 2已支付 3 支付失败',
  433. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  434. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间',
  435. `pay_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '支付时间',
  436. `payway` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '支付方式',
  437. `trade_no` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '第三方订单号',
  438. PRIMARY KEY (`id`) USING BTREE,
  439. UNIQUE INDEX `orderid_UNIQUE`(`order_id`) USING BTREE,
  440. INDEX `ao_sell_mem_index`(`sell_mem_id`) USING BTREE,
  441. INDEX `ao_buy_mem_index`(`buy_mem_id`) USING BTREE,
  442. INDEX `ao_ags_index`(`ags_id`) USING BTREE
  443. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '交易订单表' ROW_FORMAT = DYNAMIC;
  444. -- ----------------------------
  445. -- Records of h_account_order
  446. -- ----------------------------
  447. -- ----------------------------
  448. -- Table structure for h_admin_login_log
  449. -- ----------------------------
  450. DROP TABLE IF EXISTS `h_admin_login_log`;
  451. CREATE TABLE `h_admin_login_log` (
  452. `id` bigint(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'id',
  453. `user_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '后台管理员id',
  454. `username` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '操作者',
  455. `type` tinyint(2) NOT NULL DEFAULT 1 COMMENT '1 表示登陆 2输入网址再次登陆,3表示登出',
  456. `ip` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '访问ip',
  457. `addr` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'ip归属地',
  458. `device_info` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '设备数据,包括手机号码、用户系统版本,以||隔开',
  459. `login_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '登录时间',
  460. PRIMARY KEY (`id`) USING BTREE,
  461. INDEX `uidindex`(`user_id`) USING BTREE
  462. ) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '后台登陆记录表' ROW_FORMAT = DYNAMIC;
  463. -- ----------------------------
  464. -- Records of h_admin_login_log
  465. -- ----------------------------
  466. INSERT INTO `h_admin_login_log` VALUES (1, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36', 1640001093);
  467. -- ----------------------------
  468. -- Table structure for h_admin_menu
  469. -- ----------------------------
  470. DROP TABLE IF EXISTS `h_admin_menu`;
  471. CREATE TABLE `h_admin_menu` (
  472. `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  473. `parent_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '父菜单id',
  474. `type` tinyint(3) UNSIGNED NOT NULL DEFAULT 1 COMMENT '菜单类型;1:有界面可访问菜单,2:无界面可访问菜单,0:只作为菜单',
  475. `status` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT '状态;1:显示,0:不显示',
  476. `list_order` float NOT NULL DEFAULT 10000 COMMENT '排序',
  477. `app` varchar(15) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '应用名',
  478. `controller` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '控制器名',
  479. `action` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '操作名称',
  480. `param` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '额外参数',
  481. `name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '菜单名称',
  482. `en_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '菜单英文名称',
  483. `icon` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '菜单图标',
  484. `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '备注',
  485. PRIMARY KEY (`id`) USING BTREE,
  486. INDEX `status`(`status`) USING BTREE,
  487. INDEX `parentid`(`parent_id`) USING BTREE,
  488. INDEX `model`(`controller`) USING BTREE
  489. ) ENGINE = InnoDB AUTO_INCREMENT = 10216 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '后台菜单表' ROW_FORMAT = DYNAMIC;
  490. -- ----------------------------
  491. -- Records of h_admin_menu
  492. -- ----------------------------
  493. INSERT INTO `h_admin_menu` VALUES (6, 0, 0, 1, 0, 'admin', 'Setting', 'default', '', '设置', 'Setting', 'cogs', '系统设置入口');
  494. INSERT INTO `h_admin_menu` VALUES (8, 7, 1, 0, 10000, 'admin', 'Link', 'add', '', '添加友情链接', 'Add friendly link', '', '添加友情链接');
  495. INSERT INTO `h_admin_menu` VALUES (9, 7, 2, 0, 10000, 'admin', 'Link', 'addPost', '', '添加友情链接提交保存', 'Add friendly link for add', '', '添加友情链接提交保存');
  496. INSERT INTO `h_admin_menu` VALUES (10, 7, 1, 0, 10000, 'admin', 'Link', 'edit', '', '编辑友情链接', 'Edit friendly link', '', '编辑友情链接');
  497. INSERT INTO `h_admin_menu` VALUES (11, 7, 2, 0, 10000, 'admin', 'Link', 'editPost', '', '编辑友情链接提交保存', 'Submit friendly link for edit', '', '编辑友情链接提交保存');
  498. INSERT INTO `h_admin_menu` VALUES (12, 7, 2, 0, 10000, 'admin', 'Link', 'delete', '', '删除友情链接', 'Delete friendly link', '', '删除友情链接');
  499. INSERT INTO `h_admin_menu` VALUES (13, 7, 2, 0, 10000, 'admin', 'Link', 'ListOrder', '', '友情链接排序', 'Order friendly link', '', '友情链接排序');
  500. INSERT INTO `h_admin_menu` VALUES (14, 7, 2, 0, 10000, 'admin', 'Link', 'toggle', '', '友情链接显示隐藏', 'Hide or show friendly link', '', '友情链接显示隐藏');
  501. INSERT INTO `h_admin_menu` VALUES (16, 15, 2, 0, 10000, 'admin', 'Mailer', 'indexPost', '', '邮箱配置提交保存', 'Submit mailbox', '', '邮箱配置提交保存');
  502. INSERT INTO `h_admin_menu` VALUES (17, 15, 1, 0, 10000, 'admin', 'Mailer', 'template', '', '邮件模板', 'Email template', '', '邮件模板');
  503. INSERT INTO `h_admin_menu` VALUES (18, 15, 2, 0, 10000, 'admin', 'Mailer', 'templatePost', '', '邮件模板提交', 'Submit email template', '', '邮件模板提交');
  504. INSERT INTO `h_admin_menu` VALUES (19, 15, 1, 0, 10000, 'admin', 'Mailer', 'test', '', '邮件发送测试', 'Mail sending test', '', '邮件发送测试');
  505. INSERT INTO `h_admin_menu` VALUES (21, 20, 1, 0, 10000, 'admin', 'Menu', 'Lists', '', '所有菜单', 'All menus', '', '后台所有菜单列表');
  506. INSERT INTO `h_admin_menu` VALUES (22, 20, 1, 0, 10000, 'admin', 'Menu', 'add', '', '后台菜单添加', 'Add background menu', '', '后台菜单添加');
  507. INSERT INTO `h_admin_menu` VALUES (23, 20, 2, 0, 10000, 'admin', 'Menu', 'addPost', '', '后台菜单添加提交保存', 'Submit background menu for add', '', '后台菜单添加提交保存');
  508. INSERT INTO `h_admin_menu` VALUES (24, 20, 1, 0, 10000, 'admin', 'Menu', 'edit', '', '后台菜单编辑', 'Edit background menu', '', '后台菜单编辑');
  509. INSERT INTO `h_admin_menu` VALUES (25, 20, 2, 0, 10000, 'admin', 'Menu', 'editPost', '', '后台菜单编辑提交保存', 'Submit background menu for edit', '', '后台菜单编辑提交保存');
  510. INSERT INTO `h_admin_menu` VALUES (26, 20, 2, 0, 10000, 'admin', 'Menu', 'delete', '', '后台菜单删除', 'Delete background menu', '', '后台菜单删除');
  511. INSERT INTO `h_admin_menu` VALUES (27, 20, 2, 0, 10000, 'admin', 'Menu', 'ListOrder', '', '后台菜单排序', 'Order background menu', '', '后台菜单排序');
  512. INSERT INTO `h_admin_menu` VALUES (28, 20, 1, 0, 10000, 'admin', 'Menu', 'getActions', '', '导入新后台菜单', 'Import new background menu', '', '导入新后台菜单');
  513. INSERT INTO `h_admin_menu` VALUES (30, 29, 1, 0, 10000, 'admin', 'Nav', 'add', '', '添加导航', 'Add nav', '', '添加导航');
  514. INSERT INTO `h_admin_menu` VALUES (31, 29, 2, 0, 10000, 'admin', 'Nav', 'addPost', '', '添加导航提交保存', 'Submit nav for add', '', '添加导航提交保存');
  515. INSERT INTO `h_admin_menu` VALUES (32, 29, 1, 0, 10000, 'admin', 'Nav', 'edit', '', '编辑导航', 'Edit nav', '', '编辑导航');
  516. INSERT INTO `h_admin_menu` VALUES (33, 29, 2, 0, 10000, 'admin', 'Nav', 'editPost', '', '编辑导航提交保存', 'Submit nav for edit', '', '编辑导航提交保存');
  517. INSERT INTO `h_admin_menu` VALUES (34, 29, 2, 0, 10000, 'admin', 'Nav', 'delete', '', '删除导航', 'Delete nav', '', '删除导航');
  518. INSERT INTO `h_admin_menu` VALUES (35, 29, 1, 0, 10000, 'admin', 'NavMenu', 'index', '', '导航菜单', 'Add menu', '', '导航菜单');
  519. INSERT INTO `h_admin_menu` VALUES (36, 35, 1, 0, 10000, 'admin', 'NavMenu', 'add', '', '添加导航菜单', 'Add nav menu', '', '添加导航菜单');
  520. INSERT INTO `h_admin_menu` VALUES (37, 35, 2, 0, 10000, 'admin', 'NavMenu', 'addPost', '', '添加导航菜单提交保存', 'Submit nav menu for add', '', '添加导航菜单提交保存');
  521. INSERT INTO `h_admin_menu` VALUES (38, 35, 1, 0, 10000, 'admin', 'NavMenu', 'edit', '', '编辑导航菜单', 'Edit nav menu', '', '编辑导航菜单');
  522. INSERT INTO `h_admin_menu` VALUES (39, 35, 2, 0, 10000, 'admin', 'NavMenu', 'editPost', '', '编辑导航菜单提交保存', 'Submit nav menu for edit', '', '编辑导航菜单提交保存');
  523. INSERT INTO `h_admin_menu` VALUES (40, 35, 2, 0, 10000, 'admin', 'NavMenu', 'delete', '', '删除导航菜单', 'Delete nav menu', '', '删除导航菜单');
  524. INSERT INTO `h_admin_menu` VALUES (41, 35, 2, 0, 10000, 'admin', 'NavMenu', 'ListOrder', '', '导航菜单排序', 'Order nav menu', '', '导航菜单排序');
  525. INSERT INTO `h_admin_menu` VALUES (50, 109, 1, 1, 30, 'admin', 'Rbac', 'index', '', '角色管理', 'Role Manage', '', '角色管理');
  526. INSERT INTO `h_admin_menu` VALUES (51, 50, 1, 0, 10000, 'admin', 'Rbac', 'roleAdd', '', '添加角色', 'Add role', '', '添加角色');
  527. INSERT INTO `h_admin_menu` VALUES (52, 50, 2, 0, 10000, 'admin', 'Rbac', 'roleAddPost', '', '添加角色提交', 'Submit role for add', '', '添加角色提交');
  528. INSERT INTO `h_admin_menu` VALUES (53, 50, 1, 0, 10000, 'admin', 'Rbac', 'roleEdit', '', '编辑角色', 'Edit role', '', '编辑角色');
  529. INSERT INTO `h_admin_menu` VALUES (54, 50, 2, 0, 10000, 'admin', 'Rbac', 'roleEditPost', '', '编辑角色提交', 'Submit role for edit', '', '编辑角色提交');
  530. INSERT INTO `h_admin_menu` VALUES (55, 50, 2, 0, 10000, 'admin', 'Rbac', 'roleDelete', '', '删除角色', 'Delete role', '', '删除角色');
  531. INSERT INTO `h_admin_menu` VALUES (56, 50, 1, 0, 10000, 'admin', 'Rbac', 'authorize', '', '设置角色权限', 'Set role permissions', '', '设置角色权限');
  532. INSERT INTO `h_admin_menu` VALUES (57, 50, 2, 0, 10000, 'admin', 'Rbac', 'authorizePost', '', '角色授权提交', '', 'Submit role permissi', '角色授权提交');
  533. INSERT INTO `h_admin_menu` VALUES (58, 0, 1, 0, 10000, 'admin', 'RecycleBin', 'index', '', '回收站', 'Recycle bin', '', '回收站');
  534. INSERT INTO `h_admin_menu` VALUES (59, 58, 2, 0, 10000, 'admin', 'RecycleBin', 'restore', '', '回收站还原', 'Recovery station reduction', '', '回收站还原');
  535. INSERT INTO `h_admin_menu` VALUES (60, 58, 2, 0, 10000, 'admin', 'RecycleBin', 'delete', '', '回收站彻底删除', 'Complete deletion of recycle bin', '', '回收站彻底删除');
  536. INSERT INTO `h_admin_menu` VALUES (62, 61, 1, 0, 10000, 'admin', 'Route', 'add', '', '添加路由规则', 'Add routing rules', '', '添加路由规则');
  537. INSERT INTO `h_admin_menu` VALUES (63, 61, 2, 0, 10000, 'admin', 'Route', 'addPost', '', '添加路由规则提交', 'Submit routing rules for add', '', '添加路由规则提交');
  538. INSERT INTO `h_admin_menu` VALUES (64, 61, 1, 0, 10000, 'admin', 'Route', 'edit', '', '路由规则编辑', 'Edit routing rules', '', '路由规则编辑');
  539. INSERT INTO `h_admin_menu` VALUES (65, 61, 2, 0, 10000, 'admin', 'Route', 'editPost', '', '路由规则编辑提交', 'Submit routing rules for edit', '', '路由规则编辑提交');
  540. INSERT INTO `h_admin_menu` VALUES (66, 61, 2, 0, 10000, 'admin', 'Route', 'delete', '', '路由规则删除', 'Delete routing rules', '', '路由规则删除');
  541. INSERT INTO `h_admin_menu` VALUES (67, 61, 2, 0, 10000, 'admin', 'Route', 'ban', '', '路由规则禁用', 'Routing rules disable', '', '路由规则禁用');
  542. INSERT INTO `h_admin_menu` VALUES (68, 61, 2, 0, 10000, 'admin', 'Route', 'open', '', '路由规则启用', 'Routing rules enabled', '', '路由规则启用');
  543. INSERT INTO `h_admin_menu` VALUES (69, 61, 2, 0, 10000, 'admin', 'Route', 'ListOrder', '', '路由规则排序', 'Order routing rules', '', '路由规则排序');
  544. INSERT INTO `h_admin_menu` VALUES (70, 61, 1, 0, 10000, 'admin', 'Route', 'select', '', '选择URL', 'Select URL', '', '选择URL');
  545. INSERT INTO `h_admin_menu` VALUES (72, 71, 2, 0, 10000, 'admin', 'Setting', 'sitePost', '', '网站信息设置提交', 'Submit site information setting', '', '网站信息设置提交');
  546. INSERT INTO `h_admin_menu` VALUES (73, 483, 1, 1, 80, 'admin', 'Setting', 'password', '', '密码修改', 'Change password', 'user', '密码修改');
  547. INSERT INTO `h_admin_menu` VALUES (74, 73, 2, 0, 10000, 'admin', 'Setting', 'passwordPost', '', '密码修改提交', 'Submit password', '', '密码修改提交');
  548. INSERT INTO `h_admin_menu` VALUES (76, 75, 2, 0, 10000, 'admin', 'Setting', 'uploadPost', '', '上传设置提交', 'Upload settings submission', '', '上传设置提交');
  549. INSERT INTO `h_admin_menu` VALUES (79, 78, 1, 0, 10000, 'admin', 'Slide', 'add', '', '添加幻灯片', 'Add slides', '', '添加幻灯片');
  550. INSERT INTO `h_admin_menu` VALUES (80, 78, 2, 0, 10000, 'admin', 'Slide', 'addPost', '', '添加幻灯片提交', 'Submit slides for add', '', '添加幻灯片提交');
  551. INSERT INTO `h_admin_menu` VALUES (81, 78, 1, 0, 10000, 'admin', 'Slide', 'edit', '', '编辑幻灯片', 'Edit slides', '', '编辑幻灯片');
  552. INSERT INTO `h_admin_menu` VALUES (82, 78, 2, 0, 10000, 'admin', 'Slide', 'editPost', '', '编辑幻灯片提交', 'Submit slides for edit', '', '编辑幻灯片提交');
  553. INSERT INTO `h_admin_menu` VALUES (83, 78, 2, 0, 10000, 'admin', 'Slide', 'delete', '', '删除幻灯片', 'Delete slides', '', '删除幻灯片');
  554. INSERT INTO `h_admin_menu` VALUES (84, 78, 1, 0, 10000, 'admin', 'SlideItem', 'index', '', '幻灯片页面列表', 'Slide page List', '', '幻灯片页面列表');
  555. INSERT INTO `h_admin_menu` VALUES (85, 84, 1, 0, 10000, 'admin', 'SlideItem', 'add', '', '幻灯片页面添加', 'Add slide page', '', '幻灯片页面添加');
  556. INSERT INTO `h_admin_menu` VALUES (86, 84, 2, 0, 10000, 'admin', 'SlideItem', 'addPost', '', '幻灯片页面添加提交', 'Submit slide page for add', '', '幻灯片页面添加提交');
  557. INSERT INTO `h_admin_menu` VALUES (87, 84, 1, 0, 10000, 'admin', 'SlideItem', 'edit', '', '幻灯片页面编辑', 'Edit slide page', '', '幻灯片页面编辑');
  558. INSERT INTO `h_admin_menu` VALUES (88, 84, 2, 0, 10000, 'admin', 'SlideItem', 'editPost', '', '幻灯片页面编辑提交', 'Submit slide page for edit', '', '幻灯片页面编辑提交');
  559. INSERT INTO `h_admin_menu` VALUES (89, 84, 2, 0, 10000, 'admin', 'SlideItem', 'delete', '', '幻灯片页面删除', 'Delete slide page', '', '幻灯片页面删除');
  560. INSERT INTO `h_admin_menu` VALUES (90, 84, 2, 0, 10000, 'admin', 'SlideItem', 'ban', '', '幻灯片页面隐藏', 'Hide slide page', '', '幻灯片页面隐藏');
  561. INSERT INTO `h_admin_menu` VALUES (91, 84, 2, 0, 10000, 'admin', 'SlideItem', 'cancelBan', '', '幻灯片页面显示', 'Show slide page', '', '幻灯片页面显示');
  562. INSERT INTO `h_admin_menu` VALUES (92, 84, 2, 0, 10000, 'admin', 'SlideItem', 'ListOrder', '', '幻灯片页面排序', 'Order slide page', '', '幻灯片页面排序');
  563. INSERT INTO `h_admin_menu` VALUES (94, 93, 2, 0, 10000, 'admin', 'Storage', 'settingPost', '', '文件存储设置提交', 'File storage settings submission', '', '文件存储设置提交');
  564. INSERT INTO `h_admin_menu` VALUES (96, 95, 1, 0, 10000, 'admin', 'Theme', 'install', '', '安装模板', 'Install templates', '', '安装模板');
  565. INSERT INTO `h_admin_menu` VALUES (97, 95, 2, 0, 10000, 'admin', 'Theme', 'uninstall', '', '卸载模板', 'Uninstall template', '', '卸载模板');
  566. INSERT INTO `h_admin_menu` VALUES (98, 95, 2, 0, 10000, 'admin', 'Theme', 'installTheme', '', '模板安装', 'Templates install', '', '模板安装');
  567. INSERT INTO `h_admin_menu` VALUES (99, 95, 2, 0, 10000, 'admin', 'Theme', 'update', '', '模板更新', 'Template update', '', '模板更新');
  568. INSERT INTO `h_admin_menu` VALUES (100, 95, 2, 0, 10000, 'admin', 'Theme', 'active', '', '启用模板', 'Enable template', '', '启用模板');
  569. INSERT INTO `h_admin_menu` VALUES (101, 95, 1, 0, 10000, 'admin', 'Theme', 'files', '', '模板文件列表', 'Template file List', '', '启用模板');
  570. INSERT INTO `h_admin_menu` VALUES (102, 95, 1, 0, 10000, 'admin', 'Theme', 'fileSetting', '', '模板文件设置', 'Template file setting', '', '模板文件设置');
  571. INSERT INTO `h_admin_menu` VALUES (103, 95, 1, 0, 10000, 'admin', 'Theme', 'fileArrayData', '', '模板文件数组数据列表', 'Template file array data List', '', '模板文件数组数据列表');
  572. INSERT INTO `h_admin_menu` VALUES (104, 95, 2, 0, 10000, 'admin', 'Theme', 'fileArrayDataEdit', '', '模板文件数组数据添加编辑', 'Edit template file array data List', '', '模板文件数组数据添加编辑');
  573. INSERT INTO `h_admin_menu` VALUES (105, 95, 2, 0, 10000, 'admin', 'Theme', 'fileArrayDataEditPost', '', '模板文件数组数据添加编辑提交保存', 'Submit template file array data List', '', '模板文件数组数据添加编辑提交保存');
  574. INSERT INTO `h_admin_menu` VALUES (106, 95, 2, 0, 10000, 'admin', 'Theme', 'fileArrayDataDelete', '', '模板文件数组数据删除', 'Delete template file array data List', '', '模板文件数组数据删除');
  575. INSERT INTO `h_admin_menu` VALUES (107, 95, 2, 0, 10000, 'admin', 'Theme', 'settingPost', '', '模板文件编辑提交保存', 'Submit template file', '', '模板文件编辑提交保存');
  576. INSERT INTO `h_admin_menu` VALUES (108, 95, 1, 0, 10000, 'admin', 'Theme', 'dataSource', '', '模板文件设置数据源', 'Template file setting data source', '', '模板文件设置数据源');
  577. INSERT INTO `h_admin_menu` VALUES (109, 6, 0, 1, 100, 'user', 'AdminIndex', 'default', '', '管理员管理', 'User Manage', 'group', '用户管理');
  578. INSERT INTO `h_admin_menu` VALUES (110, 109, 1, 1, 20, 'admin', 'User', 'index', '', '管理员管理', 'Administrator Manage', '', '管理员管理');
  579. INSERT INTO `h_admin_menu` VALUES (111, 110, 1, 0, 10000, 'admin', 'User', 'add', '', '管理员添加', 'Add Administrator', '', '管理员添加');
  580. INSERT INTO `h_admin_menu` VALUES (112, 110, 2, 0, 10000, 'admin', 'User', 'addPost', '', '管理员添加提交', 'Submit Administrator for add', '', '管理员添加提交');
  581. INSERT INTO `h_admin_menu` VALUES (113, 110, 1, 0, 10000, 'admin', 'User', 'edit', '', '管理员编辑', 'Edit Administrator', '', '管理员编辑');
  582. INSERT INTO `h_admin_menu` VALUES (114, 110, 2, 0, 10000, 'admin', 'User', 'editPost', '', '管理员编辑提交', 'Submit Administrator for edit', '', '管理员编辑提交');
  583. INSERT INTO `h_admin_menu` VALUES (115, 110, 1, 0, 10000, 'admin', 'User', 'userInfo', '', '个人信息', 'Personal information', '', '管理员个人信息修改');
  584. INSERT INTO `h_admin_menu` VALUES (116, 110, 2, 0, 10000, 'admin', 'User', 'userInfoPost', '', '管理员个人信息修改提交', 'Submit admin personal information', '', '管理员个人信息修改提交');
  585. INSERT INTO `h_admin_menu` VALUES (117, 110, 2, 0, 10000, 'admin', 'User', 'delete', '', '管理员删除', 'Delete Administrator', '', '管理员删除');
  586. INSERT INTO `h_admin_menu` VALUES (118, 110, 2, 0, 10000, 'admin', 'User', 'ban', '', '停用管理员', 'Disable Administrator', '', '停用管理员');
  587. INSERT INTO `h_admin_menu` VALUES (119, 110, 2, 0, 10000, 'admin', 'User', 'cancelBan', '', '启用管理员', 'Enable Administrator', '', '启用管理员');
  588. INSERT INTO `h_admin_menu` VALUES (120, 187, 0, 1, 970, 'admin', 'news.news', 'default', '', '资讯管理', 'News Manage', 'newspaper-o', '资讯管理');
  589. INSERT INTO `h_admin_menu` VALUES (139, 120, 1, 0, 10000, 'admin', 'news.news', 'index', '', '资讯列表', 'News List', '', '资讯列表');
  590. INSERT INTO `h_admin_menu` VALUES (140, 139, 1, 0, 10000, 'portal', 'AdminPage', 'add', '', '添加页面', 'Add page', '', '添加页面');
  591. INSERT INTO `h_admin_menu` VALUES (141, 139, 2, 0, 10000, 'portal', 'AdminPage', 'addPost', '', '添加页面提交', 'Submit page for add', '', '添加页面提交');
  592. INSERT INTO `h_admin_menu` VALUES (142, 139, 1, 0, 10000, 'portal', 'AdminPage', 'edit', '', '编辑页面', 'Edit page', '', '编辑页面');
  593. INSERT INTO `h_admin_menu` VALUES (143, 139, 2, 0, 10000, 'portal', 'AdminPage', 'editPost', '', '编辑页面提交', 'Submit page for edit', '', '编辑页面提交');
  594. INSERT INTO `h_admin_menu` VALUES (144, 139, 2, 0, 10000, 'portal', 'AdminPage', 'delete', '', '删除页面', 'Delete page', '', '删除页面');
  595. INSERT INTO `h_admin_menu` VALUES (150, 0, 1, 0, 10000, 'user', 'AdminAsset', 'index', '', '资源管理', 'Resource Manage', 'file', '资源管理列表');
  596. INSERT INTO `h_admin_menu` VALUES (151, 150, 2, 0, 10000, 'user', 'AdminAsset', 'delete', '', '删除文件', 'Delete files', '', '删除文件');
  597. INSERT INTO `h_admin_menu` VALUES (154, 153, 2, 0, 10000, 'user', 'AdminIndex', 'ban', '', '本站用户拉黑', 'Pull black users', '', '本站用户拉黑');
  598. INSERT INTO `h_admin_menu` VALUES (155, 153, 2, 0, 10000, 'user', 'AdminIndex', 'cancelBan', '', '本站用户启用', 'Enable users', '', '本站用户启用');
  599. INSERT INTO `h_admin_menu` VALUES (157, 156, 2, 0, 10000, 'user', 'AdminOauth', 'delete', '', '删除第三方用户绑定', 'Delete third party User binding', '', '删除第三方用户绑定');
  600. INSERT INTO `h_admin_menu` VALUES (158, 6, 1, 0, 90, 'user', 'AdminUserAction', 'index', '', '用户操作管理', 'User Operation Manage', 'file-text-o', '用户操作管理');
  601. INSERT INTO `h_admin_menu` VALUES (159, 158, 1, 0, 10000, 'user', 'AdminUserAction', 'edit', '', '编辑用户操作', 'Edit User operation', '', '编辑用户操作');
  602. INSERT INTO `h_admin_menu` VALUES (160, 158, 2, 0, 10000, 'user', 'AdminUserAction', 'editPost', '', '编辑用户操作提交', 'Submit User operation for edit', '', '编辑用户操作提交');
  603. INSERT INTO `h_admin_menu` VALUES (161, 158, 1, 0, 10000, 'user', 'AdminUserAction', 'sync', '', '同步用户操作', 'Synchronous User operation', '', '同步用户操作');
  604. INSERT INTO `h_admin_menu` VALUES (163, 10029, 1, 1, 100, 'admin', 'game.game', 'default', '', 'H5游戏管理', 'Game Manage', 'html5', '游戏管理');
  605. INSERT INTO `h_admin_menu` VALUES (164, 542, 1, 0, 90, 'admin', 'game.gameCategory', 'index', '', '游戏分类', 'Game Category', '', '游戏分类');
  606. INSERT INTO `h_admin_menu` VALUES (165, 198, 1, 1, 500, 'admin', 'Member.member', 'default', '', '玩家管理', 'Member Manage', 'user', '玩家管理');
  607. INSERT INTO `h_admin_menu` VALUES (166, 165, 1, 0, 100, 'admin', 'member.member', 'index', '', '玩家列表', 'Member List', '', '玩家列表');
  608. INSERT INTO `h_admin_menu` VALUES (167, 10029, 1, 1, 90, 'admin', 'gift.gift', 'default', '', '礼包管理', 'Gift Manage', 'gift', '礼包管理');
  609. INSERT INTO `h_admin_menu` VALUES (168, 167, 1, 1, 10000, 'admin', 'gift.gift', 'index', '', '礼包列表', 'Gift List', '', '礼包列表');
  610. INSERT INTO `h_admin_menu` VALUES (169, 250, 1, 1, 80, 'admin', 'member.vip', 'feeRateList', '', 'VIP设置', 'Vip Conf', '', 'vip管理');
  611. INSERT INTO `h_admin_menu` VALUES (171, 250, 1, 1, 70, 'admin', 'member.vip', 'setPeriod', '', '设置有效期', 'Set Period', '', '设置有效期');
  612. INSERT INTO `h_admin_menu` VALUES (172, 163, 1, 0, 100, 'admin', 'game.game', 'index', '', '游戏列表', ' Game List', '', '安卓游戏列表');
  613. INSERT INTO `h_admin_menu` VALUES (174, 172, 2, 0, 19, 'admin', 'game.game', 'deleteIndex', '', '删除列表', 'Delete List', '', '删除列表');
  614. INSERT INTO `h_admin_menu` VALUES (176, 178, 1, 1, 17, 'admin', 'game.game', 'newIndex', '', '新游列表', 'New List', '', '新游列表');
  615. INSERT INTO `h_admin_menu` VALUES (177, 178, 1, 0, 16, 'admin', 'game.game', 'hotIndex', '', '热门游戏列表', 'Hot List', '', '热门游戏列表');
  616. INSERT INTO `h_admin_menu` VALUES (178, 163, 1, 0, 15, 'admin', 'game.h5game', 'rankIndex', '', '游戏排序', 'Rank List', '', '游戏排序');
  617. INSERT INTO `h_admin_menu` VALUES (180, 0, 0, 0, 59, 'admin', 'app.app', 'default', '', 'APP管理', 'App Manage', 'android', 'app管理');
  618. INSERT INTO `h_admin_menu` VALUES (182, 506, 1, 1, 10000, 'admin', 'app.version', 'index', '', '版本管理', 'Version Manage', '', 'APP版本管理');
  619. INSERT INTO `h_admin_menu` VALUES (183, 0, 1, 1, 80, 'data', 'data.data', 'default', '', '数据', 'Statistics', 'bar-chart', '数据统计');
  620. INSERT INTO `h_admin_menu` VALUES (184, 0, 1, 1, 60, 'admin', 'financial.financial', 'default', '', '财务', 'Financial', 'money', '');
  621. INSERT INTO `h_admin_menu` VALUES (185, 0, 1, 1, 85, 'admin', 'agent.agent', 'default', '', '推广', 'Promotion', 'sitemap', '');
  622. INSERT INTO `h_admin_menu` VALUES (186, 0, 1, 0, 100, 'admin', 'game', 'default', '', '游戏', 'Game', 'gamepad', '游戏相关管理');
  623. INSERT INTO `h_admin_menu` VALUES (187, 0, 1, 1, 90, 'admin', 'wap.app', 'default', '', '站点', 'Site', 'desktop', '');
  624. INSERT INTO `h_admin_menu` VALUES (189, 183, 1, 1, 100, 'Admin', 'data.day', 'default', '', '总体数据', 'Platform Overall Data', 'dashboard ', '');
  625. INSERT INTO `h_admin_menu` VALUES (190, 428, 1, 1, 10000, 'Admin', 'data.day', 'subscribeIndex', '', 'VIP订阅列表', 'VIP Subscription List', '', '');
  626. INSERT INTO `h_admin_menu` VALUES (191, 428, 1, 1, 10000, 'Admin', 'data.iap', 'index', '', 'IAP 计费列表', 'IAP Billing List', '', '');
  627. INSERT INTO `h_admin_menu` VALUES (198, 0, 1, 1, 95, 'admin', 'member', 'default', '', '玩家', 'Member', 'users', '玩家相关管理');
  628. INSERT INTO `h_admin_menu` VALUES (199, 10029, 1, 1, 80, 'admin', 'server', 'default', '', '开服管理', 'Server', 'clock-o', '区服管理');
  629. INSERT INTO `h_admin_menu` VALUES (201, 199, 1, 1, 100, 'admin', 'game.server', 'index', '', '开服列表', 'Server List', '', '');
  630. INSERT INTO `h_admin_menu` VALUES (202, 172, 2, 0, 100, 'admin', 'game.game', 'add', '', '添加游戏', 'Add Game', '', '');
  631. INSERT INTO `h_admin_menu` VALUES (203, 202, 2, 0, 100, 'admin', 'game.game', 'addPost', '', '添加游戏处理', 'Add Game Post', '', '');
  632. INSERT INTO `h_admin_menu` VALUES (204, 172, 2, 0, 100, 'admin', 'game.game', 'delete', '', '删除游戏', 'Delete Game', '', '');
  633. INSERT INTO `h_admin_menu` VALUES (205, 172, 2, 0, 100, 'admin', 'game.game', 'setStatus', '', '上线下线处理', 'Set Game', '', '');
  634. INSERT INTO `h_admin_menu` VALUES (206, 172, 2, 0, 100, 'admin', 'game.game', 'cpurl', '', 'CP回调', 'Cp Url', '', '');
  635. INSERT INTO `h_admin_menu` VALUES (207, 206, 2, 0, 100, 'admin', 'game.game', 'editCpUrl', '', '编辑CP回调处理', 'Cp Url Post', '', '');
  636. INSERT INTO `h_admin_menu` VALUES (208, 172, 2, 0, 100, 'admin', 'game.game', 'addPackageUrl', '', '添加游戏母包', 'Add Package Url', '', '');
  637. INSERT INTO `h_admin_menu` VALUES (209, 172, 2, 0, 100, 'admin', 'game.game', 'param', '', '对接参数', 'Game Param', '', '');
  638. INSERT INTO `h_admin_menu` VALUES (210, 172, 2, 0, 100, 'admin', 'game.game', 'edit', '', '编辑游戏', 'Edit Game', '', '');
  639. INSERT INTO `h_admin_menu` VALUES (211, 210, 2, 0, 100, 'admin', 'game.game', 'editPost', '', '编辑游戏处理', 'Edit Game Post', '', '');
  640. INSERT INTO `h_admin_menu` VALUES (212, 172, 2, 0, 100, 'admin', 'game.game', 'listOrder', 'order_name=list_order', '游戏排序处理', 'ListOrder Game Post', '', '');
  641. INSERT INTO `h_admin_menu` VALUES (213, 172, 2, 0, 100, 'admin', 'game.game', 'listOrder', 'order_name=hot_order', '热门游戏排序处理', 'ListOrder Hot Game Post', '', '');
  642. INSERT INTO `h_admin_menu` VALUES (214, 164, 2, 0, 100, 'admin', 'game.gameCategory', 'add', '', '添加游戏类型', 'Add Game Category', '', '');
  643. INSERT INTO `h_admin_menu` VALUES (215, 214, 2, 0, 100, 'admin', 'game.gameCategory', 'addPost', '', '添加游戏类型处理', 'Add Game Category Post', '', '');
  644. INSERT INTO `h_admin_menu` VALUES (216, 164, 2, 0, 100, 'admin', 'game.gameCategory', 'delete', '', '删除游戏类型', 'Delete Game Category', '', '');
  645. INSERT INTO `h_admin_menu` VALUES (217, 164, 2, 0, 100, 'admin', 'game.gameCategory', 'setStatus', '', '上线下线类型处理', 'Set Game Category', '', '');
  646. INSERT INTO `h_admin_menu` VALUES (218, 164, 2, 0, 100, 'admin', 'game.gameCategory', 'edit', '', '编辑游戏类型', 'Edit Game Category', '', '');
  647. INSERT INTO `h_admin_menu` VALUES (219, 218, 2, 0, 100, 'admin', 'game.gameCategory', 'editPost', '', '编辑游戏类型处理', 'Edit Game Category Post', '', '');
  648. INSERT INTO `h_admin_menu` VALUES (220, 164, 2, 0, 100, 'admin', 'game.gameCategory', 'listOrder', '', '游戏类型排序处理', 'ListOrder Game Category Post', '', '');
  649. INSERT INTO `h_admin_menu` VALUES (221, 168, 2, 0, 100, 'admin', 'gift.gift', 'add', '', '添加礼包', 'Add Gift', '', '');
  650. INSERT INTO `h_admin_menu` VALUES (222, 221, 2, 0, 100, 'admin', 'gift.gift', 'addPost', '', '添加礼包处理', 'Add Gift Post', '', '');
  651. INSERT INTO `h_admin_menu` VALUES (223, 168, 2, 0, 100, 'admin', 'gift.gift', 'delete', '', '删除礼包', 'Delete Gift', '', '');
  652. INSERT INTO `h_admin_menu` VALUES (224, 168, 2, 0, 100, 'admin', 'gift.gift', 'setStatus', '', '上线下线礼包处理', 'Set Gift', '', '');
  653. INSERT INTO `h_admin_menu` VALUES (225, 168, 2, 0, 100, 'admin', 'gift.gift', 'edit', '', '编辑礼包', 'Edit Gift', '', '');
  654. INSERT INTO `h_admin_menu` VALUES (226, 225, 2, 0, 100, 'admin', 'gift.gift', 'editPost', '', '编辑礼包处理', 'Edit Gift Post', '', '');
  655. INSERT INTO `h_admin_menu` VALUES (227, 168, 2, 0, 100, 'admin', 'gift.gift', 'listOrder', '', '礼包排序处理', 'ListOrder Gift Post', '', '');
  656. INSERT INTO `h_admin_menu` VALUES (228, 199, 2, 0, 100, 'admin', 'game.server', 'add', '', '添加区服', 'Add Server', '', '');
  657. INSERT INTO `h_admin_menu` VALUES (229, 228, 2, 0, 100, 'admin', 'game.server', 'addPost', '', '添加区服处理', 'Add Server Post', '', '');
  658. INSERT INTO `h_admin_menu` VALUES (230, 199, 2, 0, 100, 'admin', 'game.server', 'delete', '', '删除区服', 'Delete Server', '', '');
  659. INSERT INTO `h_admin_menu` VALUES (231, 199, 2, 0, 100, 'admin', 'game.server', 'setStatus', '', '上线下线区服处理', 'Set Server', '', '');
  660. INSERT INTO `h_admin_menu` VALUES (232, 199, 2, 0, 100, 'admin', 'game.server', 'edit', '', '编辑区服', 'Edit Server', '', '');
  661. INSERT INTO `h_admin_menu` VALUES (233, 232, 2, 0, 100, 'admin', 'game.server', 'editPost', '', '编辑区服处理', 'Edit Server Post', '', '');
  662. INSERT INTO `h_admin_menu` VALUES (234, 199, 2, 0, 100, 'admin', 'game.server', 'listOrder', '', '区服排序处理', 'ListOrder Server Post', '', '');
  663. INSERT INTO `h_admin_menu` VALUES (235, 10029, 1, 1, 70, 'admin', 'game.cp', 'default', '', '开发者管理', 'CP Manage', '', '开发者管理');
  664. INSERT INTO `h_admin_menu` VALUES (236, 235, 1, 1, 100, 'admin', 'game.cp', 'index', '', '开发者列表', 'CP List', '', '开发者列表');
  665. INSERT INTO `h_admin_menu` VALUES (237, 236, 2, 0, 100, 'admin', 'game.cp', 'add', '', '添加CP', 'Add CP', '', '');
  666. INSERT INTO `h_admin_menu` VALUES (238, 237, 2, 0, 100, 'admin', 'game.cp', 'addPost', '', '添加CP处理', 'Add CP Post', '', '');
  667. INSERT INTO `h_admin_menu` VALUES (239, 236, 2, 0, 100, 'admin', 'game.cp', 'delete', '', '删除CP', 'Delete CP', '', '');
  668. INSERT INTO `h_admin_menu` VALUES (240, 236, 2, 0, 100, 'admin', 'game.cp', 'setStatus', '', '删除恢复CP处理', 'Set CP', '', '');
  669. INSERT INTO `h_admin_menu` VALUES (241, 236, 2, 0, 100, 'admin', 'game.cp', 'edit', '', '编辑CP', 'Edit CP', '', '');
  670. INSERT INTO `h_admin_menu` VALUES (242, 241, 2, 0, 100, 'admin', 'game.cp', 'editPost', '', '编辑CP处理', 'Edit CP Post', '', '');
  671. INSERT INTO `h_admin_menu` VALUES (243, 236, 2, 0, 100, 'admin', 'game.cp', 'listOrder', '', 'CP排序处理', 'ListOrder CP Post', '', '');
  672. INSERT INTO `h_admin_menu` VALUES (244, 166, 2, 0, 100, 'admin', 'member.member', 'ban', '', '冻结', 'Ban Player', '', '');
  673. INSERT INTO `h_admin_menu` VALUES (245, 166, 2, 0, 90, 'admin', 'member.member', 'cancelBan', '', '解封', 'cancelBan Player', '', '');
  674. INSERT INTO `h_admin_menu` VALUES (246, 166, 2, 0, 100, 'admin', 'member.member', 'edit', '', '编辑玩家', 'Edit Player', '', '');
  675. INSERT INTO `h_admin_menu` VALUES (247, 246, 2, 0, 100, 'admin', 'member.member', 'editPost', '', '编辑', 'Edit Player Post', '', '');
  676. INSERT INTO `h_admin_menu` VALUES (248, 166, 2, 0, 100, 'admin', 'member.member', 'changeAgent', '', '更改归属', 'Change Agent', '', '');
  677. INSERT INTO `h_admin_menu` VALUES (249, 165, 1, 1, 90, 'admin', 'member.role', 'index', '', '角色列表', 'Role List', '', '玩家角色列表');
  678. INSERT INTO `h_admin_menu` VALUES (250, 198, 1, 0, 90, 'admin', 'vip.vip', 'default', '', 'VIP管理', 'VIP Manage', '', 'VIP管理');
  679. INSERT INTO `h_admin_menu` VALUES (251, 250, 1, 1, 100, 'admin', 'vip.vip', 'index', '', 'VIP列表', 'VIP List', '', 'VIP控制');
  680. INSERT INTO `h_admin_menu` VALUES (253, 251, 2, 0, 100, 'admin', 'vip.vip', 'add', '', '添加VIP', 'Add VIP', '', '');
  681. INSERT INTO `h_admin_menu` VALUES (254, 253, 2, 0, 100, 'admin', 'vip.vip', 'addPost', '', '添加VIP处理', 'Add VIP Post', '', '');
  682. INSERT INTO `h_admin_menu` VALUES (255, 251, 2, 0, 100, 'admin', 'vip.vip', 'delete', '', '删除VIP', 'Delete VIP', '', '');
  683. INSERT INTO `h_admin_menu` VALUES (256, 251, 2, 0, 100, 'admin', 'vip.vip', 'setStatus', '', '删除恢复VIP处理', 'Set VIP', '', '');
  684. INSERT INTO `h_admin_menu` VALUES (257, 251, 2, 0, 100, 'admin', 'vip.vip', 'edit', '', '编辑VIP', 'Edit VIP', '', '编辑VIP');
  685. INSERT INTO `h_admin_menu` VALUES (258, 257, 2, 0, 100, 'admin', 'vip.vip', 'editPost', '', '编辑VIP处理', 'Edit VIP Post', '', '');
  686. INSERT INTO `h_admin_menu` VALUES (259, 251, 2, 0, 100, 'admin', 'vip.vip', 'listOrder', '', 'VIP排序处理', 'ListOrder VIP Post', '', '');
  687. INSERT INTO `h_admin_menu` VALUES (260, 120, 1, 1, 100, 'admin', 'article.notice', 'index', '', '资讯', 'Notice', '', '资讯列表');
  688. INSERT INTO `h_admin_menu` VALUES (261, 260, 2, 0, 100, 'admin', 'article.notice', 'add', '', '添加公告', 'Add Notice', '', '');
  689. INSERT INTO `h_admin_menu` VALUES (262, 261, 2, 0, 100, 'admin', 'article.notice', 'addPost', '', '添加公告处理', 'Add Notice Post', '', '');
  690. INSERT INTO `h_admin_menu` VALUES (263, 260, 2, 0, 100, 'admin', 'article.notice', 'edit', '', '编辑公告', 'Edit Notice', '', '编辑公告');
  691. INSERT INTO `h_admin_menu` VALUES (264, 263, 2, 0, 100, 'admin', 'article.notice', 'editPost', '', '编辑公告处理', 'Edit Notice Post', '', '');
  692. INSERT INTO `h_admin_menu` VALUES (265, 260, 2, 0, 100, 'admin', 'article.notice', 'delete', '', '删除公告', 'Delete Notice', '', '删除公告');
  693. INSERT INTO `h_admin_menu` VALUES (266, 260, 2, 0, 100, 'admin', 'article.notice', 'publish', '', '发布公告', 'Publish Notice', '', '发布公告');
  694. INSERT INTO `h_admin_menu` VALUES (267, 260, 2, 0, 100, 'admin', 'article.notice', 'top', '', '置顶公告', 'Top Notice', '', '置顶公告');
  695. INSERT INTO `h_admin_menu` VALUES (268, 260, 2, 0, 100, 'admin', 'article.notice', 'recommend', '', '推荐公告', 'Recommend Notice', '', '');
  696. INSERT INTO `h_admin_menu` VALUES (269, 260, 2, 0, 100, 'admin', 'article.notice', 'setStatus', '', '删除恢复公告处理', 'Set Notice', '', '');
  697. INSERT INTO `h_admin_menu` VALUES (270, 260, 2, 0, 100, 'admin', 'article.notice', 'listOrder', '', '公告排序处理', 'ListOrder Notice Post', '', '');
  698. INSERT INTO `h_admin_menu` VALUES (271, 120, 1, 1, 100, 'admin', 'article.news', 'index', '', '公告', 'News', '', '公告列表');
  699. INSERT INTO `h_admin_menu` VALUES (272, 271, 2, 0, 100, 'admin', 'article.news', 'add', '', '添加新闻', 'Add News', '', '');
  700. INSERT INTO `h_admin_menu` VALUES (273, 272, 2, 0, 100, 'admin', 'article.news', 'addPost', '', '添加新闻处理', 'Add News Post', '', '');
  701. INSERT INTO `h_admin_menu` VALUES (274, 271, 2, 0, 100, 'admin', 'article.news', 'edit', '', '编辑新闻', 'Edit News', '', '编辑新闻');
  702. INSERT INTO `h_admin_menu` VALUES (275, 274, 2, 0, 100, 'admin', 'article.news', 'editPost', '', '编辑新闻处理', 'Edit News Post', '', '');
  703. INSERT INTO `h_admin_menu` VALUES (276, 271, 2, 0, 100, 'admin', 'article.news', 'delete', '', '删除新闻', 'Delete News', '', '删除新闻');
  704. INSERT INTO `h_admin_menu` VALUES (277, 271, 2, 0, 100, 'admin', 'article.news', 'publish', '', '发布新闻', 'Publish News', '', '发布新闻');
  705. INSERT INTO `h_admin_menu` VALUES (278, 271, 2, 0, 100, 'admin', 'article.news', 'top', '', '置顶新闻', 'Top News', '', '置顶新闻');
  706. INSERT INTO `h_admin_menu` VALUES (279, 271, 2, 0, 100, 'admin', 'article.news', 'recommend', '', '推荐新闻', 'Recommend News', '', '');
  707. INSERT INTO `h_admin_menu` VALUES (280, 271, 2, 0, 100, 'admin', 'article.news', 'setStatus', '', '删除恢复新闻处理', 'Set News', '', '');
  708. INSERT INTO `h_admin_menu` VALUES (281, 271, 2, 0, 100, 'admin', 'article.news', 'listOrder', '', '新闻排序处理', 'ListOrder News Post', '', '');
  709. INSERT INTO `h_admin_menu` VALUES (282, 120, 1, 1, 100, 'admin', 'article.activity', 'index', '', '活动', 'Activity', '', '活动列表');
  710. INSERT INTO `h_admin_menu` VALUES (283, 282, 2, 0, 100, 'admin', 'article.activity', 'add', '', '添加活动', 'Add Activity', '', '');
  711. INSERT INTO `h_admin_menu` VALUES (284, 283, 2, 0, 100, 'admin', 'article.activity', 'addPost', '', '添加活动处理', 'Add Activity Post', '', '');
  712. INSERT INTO `h_admin_menu` VALUES (285, 282, 2, 0, 100, 'admin', 'article.activity', 'edit', '', '编辑活动', 'Edit Activity', '', '编辑活动');
  713. INSERT INTO `h_admin_menu` VALUES (286, 285, 2, 0, 100, 'admin', 'article.activity', 'editPost', '', '编辑活动处理', 'Edit Activity Post', '', '');
  714. INSERT INTO `h_admin_menu` VALUES (287, 282, 2, 0, 100, 'admin', 'article.activity', 'delete', '', '删除活动', 'Delete Activity', '', '删除活动');
  715. INSERT INTO `h_admin_menu` VALUES (288, 282, 2, 0, 100, 'admin', 'article.activity', 'publish', '', '发布活动', 'Publish Activity', '', '发布活动');
  716. INSERT INTO `h_admin_menu` VALUES (289, 282, 2, 0, 100, 'admin', 'article.activity', 'top', '', '置顶活动', 'Top Activity', '', '置顶活动');
  717. INSERT INTO `h_admin_menu` VALUES (290, 282, 2, 0, 100, 'admin', 'article.activity', 'recommend', '', '推荐活动', 'Recommend Activity', '', '');
  718. INSERT INTO `h_admin_menu` VALUES (291, 282, 2, 0, 100, 'admin', 'article.activity', 'setStatus', '', '删除恢复活动处理', 'Set Activity', '', '');
  719. INSERT INTO `h_admin_menu` VALUES (292, 282, 2, 0, 100, 'admin', 'article.activity', 'listOrder', '', '活动排序处理', 'ListOrder Activity Post', '', '');
  720. INSERT INTO `h_admin_menu` VALUES (293, 120, 1, 1, 100, 'admin', 'article.walkthrough', 'index', '', '攻略', 'Walkthrough', '', '攻略列表');
  721. INSERT INTO `h_admin_menu` VALUES (294, 293, 2, 0, 100, 'admin', 'article.walkthrough', 'add', '', '添加攻略', 'Add Walkthrough', '', '');
  722. INSERT INTO `h_admin_menu` VALUES (295, 294, 2, 0, 100, 'admin', 'article.walkthrough', 'addPost', '', '添加攻略处理', 'Add Walkthrough Post', '', '');
  723. INSERT INTO `h_admin_menu` VALUES (296, 293, 2, 0, 100, 'admin', 'article.walkthrough', 'edit', '', '编辑攻略', 'Edit Walkthrough', '', '编辑攻略');
  724. INSERT INTO `h_admin_menu` VALUES (297, 296, 2, 0, 100, 'admin', 'article.walkthrough', 'editPost', '', '编辑攻略处理', 'Edit Walkthrough Post', '', '');
  725. INSERT INTO `h_admin_menu` VALUES (298, 293, 2, 0, 100, 'admin', 'article.walkthrough', 'delete', '', '删除攻略', 'Delete Walkthrough', '', '删除攻略');
  726. INSERT INTO `h_admin_menu` VALUES (299, 293, 2, 0, 100, 'admin', 'article.walkthrough', 'publish', '', '发布攻略', 'Publish Walkthrough', '', '发布攻略');
  727. INSERT INTO `h_admin_menu` VALUES (300, 293, 2, 0, 100, 'admin', 'article.walkthrough', 'top', '', '置顶攻略', 'Top Walkthrough', '', '置顶攻略');
  728. INSERT INTO `h_admin_menu` VALUES (301, 293, 2, 0, 100, 'admin', 'article.walkthrough', 'recommend', '', '推荐攻略', 'Recommend Walkthrough', '', '');
  729. INSERT INTO `h_admin_menu` VALUES (302, 293, 2, 0, 100, 'admin', 'article.walkthrough', 'setStatus', '', '删除恢复攻略处理', 'Set Walkthrough', '', '');
  730. INSERT INTO `h_admin_menu` VALUES (303, 293, 2, 0, 100, 'admin', 'article.walkthrough', 'listOrder', '', '攻略排序处理', 'ListOrder Walkthrough Post', '', '');
  731. INSERT INTO `h_admin_menu` VALUES (305, 182, 2, 0, 100, 'admin', 'app.version', 'add', '', '添加版本', 'Add Version', '', '');
  732. INSERT INTO `h_admin_menu` VALUES (306, 305, 2, 0, 100, 'admin', 'app.version', 'addPost', '', '添加版本处理', 'Add Version Post', '', '');
  733. INSERT INTO `h_admin_menu` VALUES (307, 293, 2, 0, 100, 'admin', 'app.version', 'edit', '', '编辑版本', 'Edit Version', '', '编辑版本');
  734. INSERT INTO `h_admin_menu` VALUES (308, 307, 2, 0, 100, 'admin', 'app.version', 'editPost', '', '编辑版本处理', 'Edit Version Post', '', '');
  735. INSERT INTO `h_admin_menu` VALUES (309, 293, 2, 0, 100, 'admin', 'app.version', 'delete', '', '删除版本', 'Delete Version', '', '删除版本');
  736. INSERT INTO `h_admin_menu` VALUES (310, 293, 2, 0, 100, 'admin', 'app.version', 'publish', '', '发布版本', 'Publish Version', '', '发布版本');
  737. INSERT INTO `h_admin_menu` VALUES (311, 293, 2, 0, 100, 'admin', 'app.version', 'setStatus', '', '删除恢复版本处理', 'Set Version', '', '');
  738. INSERT INTO `h_admin_menu` VALUES (312, 10000, 1, 1, 100, 'admin', 'app.base', 'index', '', '基本配置', 'Basic Conf', '', '基本配置');
  739. INSERT INTO `h_admin_menu` VALUES (313, 312, 2, 0, 100, 'admin', 'app.base', 'editPost', '', '编辑配置处理', 'Edit Conf Post', '', '');
  740. INSERT INTO `h_admin_menu` VALUES (314, 10000, 1, 1, 100, 'admin', 'slide.app', 'index', '', '广告管理', 'Ads List', '', '广告列表');
  741. INSERT INTO `h_admin_menu` VALUES (315, 314, 2, 0, 100, 'admin', 'app.slide', 'add', '', '添加广告', 'Add Ads', '', '');
  742. INSERT INTO `h_admin_menu` VALUES (316, 315, 2, 0, 100, 'admin', 'app.slide', 'addPost', '', '添加广告处理', 'Add Ads Post', '', '');
  743. INSERT INTO `h_admin_menu` VALUES (317, 314, 2, 0, 100, 'admin', 'app.slide', 'edit', '', '编辑广告', 'Edit Ads', '', '编辑广告');
  744. INSERT INTO `h_admin_menu` VALUES (318, 317, 2, 0, 100, 'admin', 'app.slide', 'editPost', '', '编辑广告处理', 'Edit Ads Post', '', '');
  745. INSERT INTO `h_admin_menu` VALUES (319, 314, 2, 0, 100, 'admin', 'app.slide', 'delete', '', '删除广告', 'Delete Ads', '', '删除广告');
  746. INSERT INTO `h_admin_menu` VALUES (320, 314, 2, 0, 100, 'admin', 'app.slide', 'publish', '', '发布广告', 'Publish Ads', '', '发布广告');
  747. INSERT INTO `h_admin_menu` VALUES (321, 314, 2, 1, 100, 'admin', 'app.slide', 'setStatus', '', '删除恢复广告处理', 'Set Ads', '', '');
  748. INSERT INTO `h_admin_menu` VALUES (322, 187, 1, 0, 999, 'admin', 'web.web', 'index', '', '手游PC官网', 'Portal', 'desktop', 'PC官网');
  749. INSERT INTO `h_admin_menu` VALUES (323, 322, 1, 1, 100, 'admin', 'web.setting', 'basic', '', '基本配置', 'Basic Conf', '', '基本配置');
  750. INSERT INTO `h_admin_menu` VALUES (324, 322, 1, 1, 100, 'admin', 'web.slide', 'index', '', '广告管理', 'Ads Index', '', '广告管理');
  751. INSERT INTO `h_admin_menu` VALUES (325, 322, 1, 1, 100, 'admin', 'web.seo', 'index', '', 'SEO设置', 'SEO Setting', '', 'SEO设置');
  752. INSERT INTO `h_admin_menu` VALUES (326, 322, 1, 1, 100, 'admin', 'web.links', 'index', '', '友情链接', 'Links', '', '友情链接');
  753. INSERT INTO `h_admin_menu` VALUES (327, 322, 1, 0, 100, 'admin', 'web.help', 'index', '', '客服问题', 'Help Question', '', '客服问题');
  754. INSERT INTO `h_admin_menu` VALUES (328, 322, 1, 0, 100, 'admin', 'web.page', 'index', '', '页面', 'Page', '', '页面');
  755. INSERT INTO `h_admin_menu` VALUES (329, 323, 2, 0, 100, 'admin', 'web.base', 'icon', '', '图标配置', 'Icon Conf', '', '图标配置');
  756. INSERT INTO `h_admin_menu` VALUES (330, 329, 2, 0, 100, 'admin', 'web.base', 'iconPost', '', '图标配置提交', 'Icon Conf Post', '', '图标配置提交');
  757. INSERT INTO `h_admin_menu` VALUES (331, 323, 2, 0, 100, 'admin', 'web.base', 'content', '', '内容配置', 'Content Conf', '', '内容配置');
  758. INSERT INTO `h_admin_menu` VALUES (332, 331, 2, 0, 100, 'admin', 'web.base', 'contentPost', '', '内容配置提交', 'Content Conf Post', '', '内容配置提交');
  759. INSERT INTO `h_admin_menu` VALUES (333, 323, 2, 0, 100, 'admin', 'web.base', 'member', '', '用户配置', 'Player Conf', '', '用户配置');
  760. INSERT INTO `h_admin_menu` VALUES (334, 333, 2, 0, 100, 'admin', 'web.base', 'memberPost', '', '用户配置提交', 'Player Conf Post', '', '用户配置提交');
  761. INSERT INTO `h_admin_menu` VALUES (335, 324, 2, 0, 100, 'admin', 'web.slide', 'add', '', '添加广告', 'Add Ads', '', '');
  762. INSERT INTO `h_admin_menu` VALUES (336, 335, 2, 1, 100, 'admin', 'web.slide', 'addPost', '', '添加广告处理', 'Add Ads Post', '', '');
  763. INSERT INTO `h_admin_menu` VALUES (337, 324, 2, 0, 100, 'admin', 'web.slide', 'edit', '', '编辑广告', 'Edit Ads', '', '编辑广告');
  764. INSERT INTO `h_admin_menu` VALUES (338, 337, 2, 0, 100, 'admin', 'web.slide', 'editPost', '', '编辑广告处理', 'Edit Ads Post', '', '');
  765. INSERT INTO `h_admin_menu` VALUES (339, 324, 2, 0, 100, 'admin', 'web.slide', 'delete', '', '删除广告', 'Delete Ads', '', '删除广告');
  766. INSERT INTO `h_admin_menu` VALUES (340, 324, 2, 0, 100, 'admin', 'web.slide', 'publish', '', '发布广告', 'Publish Ads', '', '发布广告');
  767. INSERT INTO `h_admin_menu` VALUES (341, 324, 2, 0, 100, 'admin', 'web.slide', 'setStatus', '', '删除恢复广告处理', 'Set Ads', '', '');
  768. INSERT INTO `h_admin_menu` VALUES (342, 325, 2, 0, 100, 'admin', 'web.seo', 'indexPost', '', 'SEO首页提交', 'SEO index Post', '', 'SEO首页提交');
  769. INSERT INTO `h_admin_menu` VALUES (343, 325, 2, 0, 100, 'admin', 'web.seo', 'gameIndex', '', '游戏列表页', 'Game Index', '', '游戏列表页');
  770. INSERT INTO `h_admin_menu` VALUES (344, 343, 2, 0, 100, 'admin', 'web.seo', 'giPost', '', '游戏列表页提交', 'Game Index Post', '', '游戏列表页提交');
  771. INSERT INTO `h_admin_menu` VALUES (345, 325, 2, 0, 100, 'admin', 'web.seo', 'gameDetail', '', '游戏详情页', 'Game Detail', '', '游戏详情页');
  772. INSERT INTO `h_admin_menu` VALUES (346, 345, 2, 0, 100, 'admin', 'web.seo', 'gdPost', '', '游戏详情页提交', 'Game Detail Post', '', '游戏详情页提交');
  773. INSERT INTO `h_admin_menu` VALUES (347, 325, 2, 0, 100, 'admin', 'web.seo', 'giftIndex', '', '礼包页面', 'Gift Index', '', '礼包页面');
  774. INSERT INTO `h_admin_menu` VALUES (348, 347, 2, 0, 100, 'admin', 'web.seo', 'gfiPost', '', '礼包页面提交', 'Gift Index Post', '', '礼包页面提交');
  775. INSERT INTO `h_admin_menu` VALUES (349, 325, 2, 0, 100, 'admin', 'web.seo', 'giftDetail', '', '礼包详情页', 'Gift Detail', '', '礼包详情页');
  776. INSERT INTO `h_admin_menu` VALUES (350, 349, 2, 0, 100, 'admin', 'web.seo', 'gfdPost', '', '礼包详情页提交', 'Gift Detail Post', '', '礼包详情页提交');
  777. INSERT INTO `h_admin_menu` VALUES (351, 325, 2, 0, 100, 'admin', 'web.seo', 'newsIndex', '', '资讯页面', 'News Index', '', '资讯页面');
  778. INSERT INTO `h_admin_menu` VALUES (352, 351, 2, 0, 100, 'admin', 'web.seo', 'niPost', '', '资讯页面提交', 'News Index Post', '', '资讯页面提交');
  779. INSERT INTO `h_admin_menu` VALUES (353, 325, 2, 0, 100, 'admin', 'web.seo', 'NewsDetail', '', '资讯详情页', 'News Detail', '', '资讯详情页');
  780. INSERT INTO `h_admin_menu` VALUES (354, 353, 2, 0, 100, 'admin', 'web.seo', 'ndPost', '', '资讯详情页提交', 'News Detail Post', '', '资讯详情页提交');
  781. INSERT INTO `h_admin_menu` VALUES (355, 325, 2, 0, 100, 'admin', 'web.seo', 'helpIndex', '', '客服页面', 'Help Index', '', '客服页面');
  782. INSERT INTO `h_admin_menu` VALUES (356, 355, 2, 0, 100, 'admin', 'web.seo', 'hiPost', '', '客服页面提交', 'Help Index Post', '', '客服页面提交');
  783. INSERT INTO `h_admin_menu` VALUES (357, 327, 2, 0, 100, 'admin', 'web.help', 'add', '', '添加客服', 'Add Help', '', '');
  784. INSERT INTO `h_admin_menu` VALUES (358, 357, 2, 0, 100, 'admin', 'web.help', 'addPost', '', '添加客服处理', 'Add Help Post', '', '');
  785. INSERT INTO `h_admin_menu` VALUES (359, 327, 2, 0, 100, 'admin', 'web.help', 'edit', '', '编辑客服', 'Edit Help', '', '编辑客服');
  786. INSERT INTO `h_admin_menu` VALUES (360, 359, 2, 0, 100, 'admin', 'web.help', 'editPost', '', '编辑客服处理', 'Edit Help Post', '', '');
  787. INSERT INTO `h_admin_menu` VALUES (361, 327, 2, 0, 100, 'admin', 'web.help', 'delete', '', '删除客服', 'Delete Help', '', '删除客服');
  788. INSERT INTO `h_admin_menu` VALUES (362, 327, 2, 0, 100, 'admin', 'web.help', 'publish', '', '发布客服', 'Publish Help', '', '发布客服');
  789. INSERT INTO `h_admin_menu` VALUES (363, 327, 2, 0, 100, 'admin', 'web.help', 'setStatus', '', '删除恢复客服处理', 'Set Help', '', '');
  790. INSERT INTO `h_admin_menu` VALUES (364, 328, 2, 0, 100, 'admin', 'web.page', 'editPost', '', '编辑页面处理', 'Edit Help Post', '', '');
  791. INSERT INTO `h_admin_menu` VALUES (365, 187, 1, 1, 990, 'admin', 'wap.web', 'default', '', 'H5网站管理', 'WAP', 'html5', 'WAP管理');
  792. INSERT INTO `h_admin_menu` VALUES (366, 365, 1, 1, 100, 'admin', 'wap.base', 'index', '', '基本配置', 'Basic Conf', '', '基本配置');
  793. INSERT INTO `h_admin_menu` VALUES (367, 365, 1, 0, 100, 'admin', 'slide.h5wap', 'index', '', '广告管理', 'Ads Index', '', '广告管理');
  794. INSERT INTO `h_admin_menu` VALUES (368, 365, 1, 0, 100, 'admin', 'wap.seo', 'index', '', 'SEO设置', 'SEO Setting', '', 'SEO设置');
  795. INSERT INTO `h_admin_menu` VALUES (369, 366, 2, 0, 100, 'admin', 'wap.base', 'icon', '', '图标配置', 'Icon Conf', '', '图标配置');
  796. INSERT INTO `h_admin_menu` VALUES (370, 369, 2, 0, 100, 'admin', 'wap.base', 'iconPost', '', '图标配置提交', 'Icon Conf Post', '', '图标配置提交');
  797. INSERT INTO `h_admin_menu` VALUES (371, 366, 2, 0, 100, 'admin', 'wap.base', 'content', '', '内容配置', 'Content Conf', '', '内容配置');
  798. INSERT INTO `h_admin_menu` VALUES (372, 371, 2, 0, 100, 'admin', 'wap.base', 'contentPost', '', '内容配置提交', 'Content Conf Post', '', '内容配置提交');
  799. INSERT INTO `h_admin_menu` VALUES (373, 366, 2, 0, 100, 'admin', 'wap.base', 'indexPost', '', '基本配置提交', 'Basic Conf Post', '', '基本配置提交');
  800. INSERT INTO `h_admin_menu` VALUES (374, 367, 2, 0, 100, 'admin', 'wap.slide', 'add', '', '添加广告', 'Add Ads', '', '');
  801. INSERT INTO `h_admin_menu` VALUES (375, 374, 2, 0, 100, 'admin', 'wap.slide', 'addPost', '', '添加广告处理', 'Add Ads Post', '', '');
  802. INSERT INTO `h_admin_menu` VALUES (376, 367, 2, 0, 100, 'admin', 'wap.slide', 'edit', '', '编辑广告', 'Edit Ads', '', '编辑广告');
  803. INSERT INTO `h_admin_menu` VALUES (377, 376, 2, 0, 100, 'admin', 'wap.slide', 'editPost', '', '编辑广告处理', 'Edit Ads Post', '', '');
  804. INSERT INTO `h_admin_menu` VALUES (378, 367, 2, 0, 100, 'admin', 'wap.slide', 'delete', '', '删除广告', 'Delete Ads', '', '删除广告');
  805. INSERT INTO `h_admin_menu` VALUES (379, 367, 2, 0, 100, 'admin', 'wap.slide', 'publish', '', '发布广告', 'Publish Ads', '', '发布广告');
  806. INSERT INTO `h_admin_menu` VALUES (380, 367, 2, 0, 100, 'admin', 'wap.slide', 'setStatus', '', '删除恢复广告处理', 'Set Ads', '', '');
  807. INSERT INTO `h_admin_menu` VALUES (381, 368, 2, 0, 100, 'admin', 'wap.seo', 'indexPost', '', 'SEO首页提交', 'SEO index Post', '', 'SEO首页提交');
  808. INSERT INTO `h_admin_menu` VALUES (382, 368, 2, 0, 100, 'admin', 'wap.seo', 'gameIndex', '', '游戏列表页', 'Game Index', '', '游戏列表页');
  809. INSERT INTO `h_admin_menu` VALUES (383, 382, 2, 0, 100, 'admin', 'wap.seo', 'giPost', '', '游戏列表页提交', 'Game Index Post', '', '游戏列表页提交');
  810. INSERT INTO `h_admin_menu` VALUES (384, 368, 2, 0, 100, 'admin', 'wap.seo', 'gameDetail', '', '游戏详情页', 'Game Detail', '', '游戏详情页');
  811. INSERT INTO `h_admin_menu` VALUES (385, 384, 2, 0, 100, 'admin', 'wap.seo', 'gdPost', '', '游戏详情页提交', 'Game Detail Post', '', '游戏详情页提交');
  812. INSERT INTO `h_admin_menu` VALUES (386, 368, 2, 0, 100, 'admin', 'wap.seo', 'giftIndex', '', '礼包页面', 'Gift Index', '', '礼包页面');
  813. INSERT INTO `h_admin_menu` VALUES (387, 386, 2, 0, 100, 'admin', 'wap.seo', 'gfiPost', '', '礼包页面提交', 'Gift Index Post', '', '礼包页面提交');
  814. INSERT INTO `h_admin_menu` VALUES (388, 368, 2, 0, 100, 'admin', 'wap.seo', 'giftDetail', '', '礼包详情页', 'Gift Detail', '', '礼包详情页');
  815. INSERT INTO `h_admin_menu` VALUES (389, 388, 2, 0, 100, 'admin', 'wap.seo', 'gfdPost', '', '礼包详情页提交', 'Gift Detail Post', '', '礼包详情页提交');
  816. INSERT INTO `h_admin_menu` VALUES (390, 368, 2, 0, 100, 'admin', 'wap.seo', 'newsIndex', '', '资讯页面', 'News Index', '', '资讯页面');
  817. INSERT INTO `h_admin_menu` VALUES (391, 390, 2, 0, 100, 'admin', 'wap.seo', 'niPost', '', '资讯页面提交', 'News Index Post', '', '资讯页面提交');
  818. INSERT INTO `h_admin_menu` VALUES (392, 368, 2, 0, 100, 'admin', 'wap.seo', 'NewsDetail', '', '资讯详情页', 'News Detail', '', '资讯详情页');
  819. INSERT INTO `h_admin_menu` VALUES (393, 392, 2, 0, 100, 'admin', 'wap.seo', 'ndPost', '', '资讯详情页提交', 'News Detail Post', '', '资讯详情页提交');
  820. INSERT INTO `h_admin_menu` VALUES (394, 368, 2, 0, 100, 'admin', 'wap.seo', 'helpIndex', '', '客服页面', 'Help Index', '', '客服页面');
  821. INSERT INTO `h_admin_menu` VALUES (395, 394, 2, 0, 100, 'admin', 'wap.seo', 'hiPost', '', '客服页面提交', 'Help Index Post', '', '客服页面提交');
  822. INSERT INTO `h_admin_menu` VALUES (396, 187, 1, 0, 980, 'admin', 'agent.web', 'default', '', '渠道站点', 'Promote Site', 'desktop', '渠道站点');
  823. INSERT INTO `h_admin_menu` VALUES (397, 396, 1, 1, 100, 'admin', 'agent.base', 'index', '', '基本配置', 'Basic Conf', '', '基本配置');
  824. INSERT INTO `h_admin_menu` VALUES (398, 396, 1, 1, 100, 'admin', 'agent.slide', 'index', '', '广告管理', 'Ads Index', '', '广告管理');
  825. INSERT INTO `h_admin_menu` VALUES (399, 396, 1, 1, 100, 'admin', 'agent.seo', 'index', '', 'SEO设置', 'SEO Setting', '', 'SEO设置');
  826. INSERT INTO `h_admin_menu` VALUES (400, 396, 1, 1, 100, 'admin', 'agent.notice', 'index', '', '游戏公告', 'Notice', '', '游戏公告');
  827. INSERT INTO `h_admin_menu` VALUES (401, 396, 1, 0, 100, 'admin', 'agent.page', 'index', '', '页面', 'Page', '', '页面');
  828. INSERT INTO `h_admin_menu` VALUES (402, 396, 1, 0, 110, 'admin', 'agent.nav', 'index', '', '导航管理', 'Nav Manage', '', '导航管理');
  829. INSERT INTO `h_admin_menu` VALUES (403, 397, 2, 0, 100, 'admin', 'agent.base', 'icon', '', '图标配置', 'Icon Conf', '', '图标配置');
  830. INSERT INTO `h_admin_menu` VALUES (404, 403, 2, 0, 100, 'admin', 'agent.base', 'iconPost', '', '图标配置提交', 'Icon Conf Post', '', '图标配置提交');
  831. INSERT INTO `h_admin_menu` VALUES (405, 397, 2, 0, 100, 'admin', 'agent.base', 'help', '', '客服配置', 'Help Conf', '', '客服配置');
  832. INSERT INTO `h_admin_menu` VALUES (406, 405, 2, 0, 100, 'admin', 'agent.base', 'helpPost', '', '客服配置提交', 'Help Conf Post', '', '客服配置提交');
  833. INSERT INTO `h_admin_menu` VALUES (407, 397, 2, 0, 100, 'admin', 'agent.base', 'indexPost', '', '基本配置提交', 'Basic Conf Post', '', '基本配置提交');
  834. INSERT INTO `h_admin_menu` VALUES (408, 367, 2, 0, 100, 'admin', 'agent.slide', 'add', '', '添加广告', 'Add Ads', '', '');
  835. INSERT INTO `h_admin_menu` VALUES (409, 408, 2, 0, 100, 'admin', 'agent.slide', 'addPost', '', '添加广告处理', 'Add Ads Post', '', '');
  836. INSERT INTO `h_admin_menu` VALUES (410, 367, 2, 0, 100, 'admin', 'agent.slide', 'edit', '', '编辑广告', 'Edit Ads', '', '编辑广告');
  837. INSERT INTO `h_admin_menu` VALUES (411, 410, 2, 0, 100, 'admin', 'agent.slide', 'editPost', '', '编辑广告处理', 'Edit Ads Post', '', '');
  838. INSERT INTO `h_admin_menu` VALUES (412, 367, 2, 0, 100, 'admin', 'agent.slide', 'delete', '', '删除广告', 'Delete Ads', '', '删除广告');
  839. INSERT INTO `h_admin_menu` VALUES (413, 367, 2, 0, 100, 'admin', 'agent.slide', 'publish', '', '发布广告', 'Publish Ads', '', '发布广告');
  840. INSERT INTO `h_admin_menu` VALUES (414, 367, 2, 0, 100, 'admin', 'agent.slide', 'setStatus', '', '删除恢复广告处理', 'Set Ads', '', '');
  841. INSERT INTO `h_admin_menu` VALUES (415, 399, 2, 0, 100, 'admin', 'agent.seo', 'indexPost', '', 'SEO首页提交', 'SEO index Post', '', 'SEO首页提交');
  842. INSERT INTO `h_admin_menu` VALUES (416, 399, 2, 0, 100, 'admin', 'agent.seo', 'newsIndex', '', '资讯列表页', 'News Index', '', '资讯列表页');
  843. INSERT INTO `h_admin_menu` VALUES (417, 416, 2, 0, 100, 'admin', 'agent.seo', 'niPost', '', '资讯列表页提交', 'News Index Post', '', '资讯列表页提交');
  844. INSERT INTO `h_admin_menu` VALUES (418, 400, 2, 0, 100, 'admin', 'agent.notice', 'add', '', '添加公告', 'Add Notice', '', '');
  845. INSERT INTO `h_admin_menu` VALUES (419, 418, 2, 0, 100, 'admin', 'agent.notice', 'addPost', '', '添加公告处理', 'Add Notice Post', '', '');
  846. INSERT INTO `h_admin_menu` VALUES (420, 400, 2, 0, 100, 'admin', 'agent.notice', 'edit', '', '编辑公告', 'Edit Notice', '', '编辑公告');
  847. INSERT INTO `h_admin_menu` VALUES (421, 420, 2, 0, 100, 'admin', 'agent.notice', 'editPost', '', '编辑公告处理', 'Edit Notice Post', '', '');
  848. INSERT INTO `h_admin_menu` VALUES (422, 400, 2, 0, 100, 'admin', 'agent.notice', 'delete', '', '删除公告', 'Delete Notice', '', '删除公告');
  849. INSERT INTO `h_admin_menu` VALUES (423, 400, 2, 0, 100, 'admin', 'agent.notice', 'publish', '', '发布公告', 'Publish Notice', '', '发布公告');
  850. INSERT INTO `h_admin_menu` VALUES (424, 400, 2, 0, 100, 'admin', 'agent.notice', 'setStatus', '', '删除恢复公告处理', 'Set Notice', '', '');
  851. INSERT INTO `h_admin_menu` VALUES (425, 401, 2, 0, 100, 'admin', 'agent.page', 'editPost', '', '编辑页面处理', 'Edit Help Post', '', '');
  852. INSERT INTO `h_admin_menu` VALUES (426, 183, 1, 1, 90, 'admin', 'data.rank', 'default', '', '排行', 'Rank', 'arrow-up', '');
  853. INSERT INTO `h_admin_menu` VALUES (427, 183, 2, 0, 80, 'admin', 'data.ads', 'default', '', '广告数据', 'Ads Data', 'share-alt', '');
  854. INSERT INTO `h_admin_menu` VALUES (428, 183, 1, 0, 70, 'admin', 'data.vip', 'default', '', 'VIP数据', 'VIP data', 'angellist', 'VIP数据');
  855. INSERT INTO `h_admin_menu` VALUES (429, 189, 1, 1, 100, 'admin', 'data.data', 'index', '', '总览', 'dashboard', '', '数据总览');
  856. INSERT INTO `h_admin_menu` VALUES (430, 189, 1, 0, 100, 'admin', 'data.data', 'gameReg', '', '游戏注册统计', 'Game Reg', '', '游戏注册统计');
  857. INSERT INTO `h_admin_menu` VALUES (431, 189, 1, 0, 100, 'admin', 'data.data', 'regType', '', '注册方式统计', 'Reg Tyep', '', '注册方式统计');
  858. INSERT INTO `h_admin_menu` VALUES (432, 189, 1, 0, 100, 'admin', 'data.data', 'payType', '', '充值方式统计', 'Pay Type', '', '充值方式统计');
  859. INSERT INTO `h_admin_menu` VALUES (433, 189, 1, 1, 98, 'admin', 'data.remain', 'index', '', '留存分析', 'Retain', '', '留存分析');
  860. INSERT INTO `h_admin_menu` VALUES (434, 433, 1, 1, 100, 'admin', 'data.data', 'retainDevice', '', '设备留存', 'Retain Device', '', '设备留存');
  861. INSERT INTO `h_admin_menu` VALUES (435, 426, 1, 1, 150, 'admin', 'data.rank', 'game', '', '游戏排行', 'Game Rank', '', '游戏排行');
  862. INSERT INTO `h_admin_menu` VALUES (436, 426, 1, 1, 100, 'admin', 'data.rank', 'agent', '', '渠道排行', 'Promotion Rank', '', '渠道排行');
  863. INSERT INTO `h_admin_menu` VALUES (437, 426, 1, 1, 200, 'admin', 'data.rank', 'member', '', 'TOP500玩家', 'Player Rank', '', 'TOP500玩家');
  864. INSERT INTO `h_admin_menu` VALUES (438, 427, 1, 1, 150, 'admin', 'data.rank', 'ltv', '', 'LTV', 'LTV', '', 'LTV');
  865. INSERT INTO `h_admin_menu` VALUES (439, 427, 1, 1, 100, 'admin', 'data.rank', 'rio', '', 'ROI', 'ROI', '', 'ROI');
  866. INSERT INTO `h_admin_menu` VALUES (440, 185, 1, 0, 950, 'admin', 'agent', 'default', '', '渠道管理', 'Promoter Manage', 'sitemap', '渠道管理');
  867. INSERT INTO `h_admin_menu` VALUES (441, 440, 1, 1, 100, 'admin', 'agent.agent', 'index', '', '渠道列表', 'Promoter List', '', '渠道列表');
  868. INSERT INTO `h_admin_menu` VALUES (442, 440, 1, 1, 100, 'admin', 'agent.AgentGame', 'index', '', '渠道游戏管理', 'Discont', '', '渠道游戏管理');
  869. INSERT INTO `h_admin_menu` VALUES (443, 185, 1, 0, 900, 'admin', 'agent.game', 'default', '', '推广游戏管理', 'Game Manage', 'futbol-o', '推广游戏管理');
  870. INSERT INTO `h_admin_menu` VALUES (444, 443, 1, 1, 100, 'admin', 'agent.game', 'index', '', '推广游戏列表', 'Game List', '', '推广游戏列表');
  871. INSERT INTO `h_admin_menu` VALUES (445, 443, 1, 0, 100, 'admin', 'agent.game', 'package', '', '游戏分包', 'Package', '', '游戏分包');
  872. INSERT INTO `h_admin_menu` VALUES (446, 443, 1, 0, 90, 'admin', 'agent.game', 'discont', '', '优惠管理', 'Discont', '', '优惠管理');
  873. INSERT INTO `h_admin_menu` VALUES (447, 443, 1, 0, 100, 'admin', 'agent.game', 'white', '', '白名单', 'White List', '', '白名单');
  874. INSERT INTO `h_admin_menu` VALUES (448, 440, 1, 0, 100, 'admin', 'agent.agent', 'cpa', '', 'CPA', 'CPA', '', 'cpa');
  875. INSERT INTO `h_admin_menu` VALUES (449, 184, 1, 1, 900, 'admin', 'financial.ptb', 'default', '', '平台币管理', 'Platmoney Manage', 'money', '平台币管理');
  876. INSERT INTO `h_admin_menu` VALUES (450, 449, 1, 1, 700, 'admin', 'financial.ptb', 'index', '', '收入记录', 'Platmoney List', '', '平台币收入记录,记录平台币的获取如充值和发放');
  877. INSERT INTO `h_admin_menu` VALUES (451, 449, 1, 1, 600, 'admin', 'financial.ptb', 'costIndex', '', '消费记录', 'Cost List ', '', '平台币消费记录,显示平台币转账和消费的记录');
  878. INSERT INTO `h_admin_menu` VALUES (452, 449, 1, 1, 900, 'admin', 'financial.ptb', 'gainIndex', '', '余额管理', 'Gain List', '', '余额管理,显示平台币余额');
  879. INSERT INTO `h_admin_menu` VALUES (453, 449, 1, 1, 800, 'admin', 'financial.ptb', 'deductIndex', '', '扣除管理', 'Deduct List', '', '平台币扣除管理,对平台币进行回收和扣除');
  880. INSERT INTO `h_admin_menu` VALUES (454, 184, 1, 0, 800, 'admin', 'financial.gamemoney', 'default', '', '游戏币管理', 'Gamemoney Manage', 'paypal', '游戏币管理');
  881. INSERT INTO `h_admin_menu` VALUES (455, 454, 1, 1, 150, 'admin', 'financial.gamemoney', 'index', '', '收入记录', 'Gamemoney List', '', '游戏币收入记录');
  882. INSERT INTO `h_admin_menu` VALUES (456, 454, 1, 1, 140, 'admin', 'financial.gamemoney', 'costIndex', '', '消费记录', 'Cost List ', '', '游戏币消费记录');
  883. INSERT INTO `h_admin_menu` VALUES (457, 454, 1, 1, 130, 'admin', 'financial.gamemoney', 'gainIndex', '', '余额管理', 'Gain List', '', '游戏币发放管理');
  884. INSERT INTO `h_admin_menu` VALUES (458, 454, 1, 1, 120, 'admin', 'financial.gamemoney', 'deductIndex', '', '扣除管理', 'Deduct List', '', '游戏币扣除管理');
  885. INSERT INTO `h_admin_menu` VALUES (459, 184, 1, 1, 1000, 'admin', 'financial.order', 'default', '', '订单管理', 'Order Manage', 'table', '订单管理');
  886. INSERT INTO `h_admin_menu` VALUES (460, 459, 1, 1, 150, 'admin', 'financial.order', 'index', '', '游戏订单', 'Order List', '', '游戏订单');
  887. INSERT INTO `h_admin_menu` VALUES (461, 459, 1, 1, 140, 'admin', 'financial.order', 'repairIndex', '', '补单列表', 'Repair List ', '', '补单列表');
  888. INSERT INTO `h_admin_menu` VALUES (462, 459, 1, 0, 130, 'admin', 'financial.order', 'agentIndex', '', '渠道充值订单', 'Promoter Charge List', '', '渠道充值订单');
  889. INSERT INTO `h_admin_menu` VALUES (463, 184, 1, 1, 700, 'admin', 'financial.agent', 'default', '', '推广财务', 'Order Manage', 'sitemap', '推广财务');
  890. INSERT INTO `h_admin_menu` VALUES (464, 463, 1, 1, 150, 'admin', 'financial.agent', 'remain', '', '渠道余额', 'Remain List', '', '渠道余额');
  891. INSERT INTO `h_admin_menu` VALUES (465, 463, 1, 0, 148, 'admin', 'financial.agent', 'withdrawIndex', '', '渠道提现记录', 'Withdraw List', '', '渠道提现记录');
  892. INSERT INTO `h_admin_menu` VALUES (466, 463, 1, 1, 130, 'admin', 'financial.agent', 'incomeIndex', '', '渠道收益明细', 'Income List', '', '渠道收益明细');
  893. INSERT INTO `h_admin_menu` VALUES (467, 463, 1, 0, 120, 'admin', 'financial.agent', 'billIndex', '', '结算列表', 'Billing list', '', '结算列表');
  894. INSERT INTO `h_admin_menu` VALUES (468, 463, 1, 0, 110, 'admin', 'financial.agent', 'operateIndex', '', '运营商对账单', 'cheque List ', '', '运营商对账单');
  895. INSERT INTO `h_admin_menu` VALUES (469, 184, 1, 0, 600, 'admin', 'financial.cp', 'default', '', 'CP财务', 'Order Manage', 'gamepad', 'CP财务');
  896. INSERT INTO `h_admin_menu` VALUES (470, 469, 1, 1, 150, 'admin', 'financial.cp', 'monthIndex', '', '月对账单', 'Month List', '', '月对账单');
  897. INSERT INTO `h_admin_menu` VALUES (471, 470, 2, 0, 150, 'admin', 'financial.cp', 'vipBill', '', 'VIP订阅', 'VIP Bill', '', 'VIP订阅');
  898. INSERT INTO `h_admin_menu` VALUES (472, 470, 2, 0, 150, 'admin', 'financial.cp', 'iapBill', '', 'iap计费', 'IAP Bill', '', 'iap计费');
  899. INSERT INTO `h_admin_menu` VALUES (473, 470, 2, 0, 150, 'admin', 'financial.cp', 'downBill', '', '下载收益', 'Down Bill', '', '下载收益');
  900. INSERT INTO `h_admin_menu` VALUES (474, 469, 1, 1, 120, 'admin', 'financial.cp', 'billIndex', '', '结算列表', 'Billing list', '', '结算列表');
  901. INSERT INTO `h_admin_menu` VALUES (475, 476, 2, 0, 110, 'admin', 'financial.cp', 'checkIndex', '', '结算账单', 'Cheque list', '', '结算账单');
  902. INSERT INTO `h_admin_menu` VALUES (476, 184, 1, 0, 500, 'admin', 'financial.payway', 'default', '', '支付配置', 'Payway Manage', '', '支付配置');
  903. INSERT INTO `h_admin_menu` VALUES (477, 476, 1, 1, 150, 'admin', 'financial.payway', 'alipay', '', '支付列表', 'Alipay Conf', '', '支付列表');
  904. INSERT INTO `h_admin_menu` VALUES (478, 477, 2, 0, 140, 'admin', 'financial.payway', 'wxpay', '', '微信', 'Wxpay Conf', '', '微信');
  905. INSERT INTO `h_admin_menu` VALUES (479, 467, 2, 0, 120, 'admin', 'financial.agent', 'checkIndex', '', '结算账单', 'Cheque list', '', '结算账单');
  906. INSERT INTO `h_admin_menu` VALUES (480, 6, 1, 1, 70, 'admin', 'record.record', 'default', '', '操作日记', 'Record', 'file-text', '操作日记');
  907. INSERT INTO `h_admin_menu` VALUES (481, 480, 1, 1, 150, 'admin', 'record.record', 'loginIndex', '', '登陆记录', 'Login Record', '', '登陆记录');
  908. INSERT INTO `h_admin_menu` VALUES (482, 480, 1, 1, 140, 'admin', 'record.record', 'actionIndex', '', '操作记录', 'Action Record', '', '操作记录');
  909. INSERT INTO `h_admin_menu` VALUES (483, 6, 1, 1, 80, 'admin', 'Setting.password', 'default', '', '密码修改', 'Change Password', 'user', '');
  910. INSERT INTO `h_admin_menu` VALUES (485, 322, 1, 1, 100, 'admin', 'game.game', 'fine', '', '精品推荐', 'Fine recommended', '', '');
  911. INSERT INTO `h_admin_menu` VALUES (486, 322, 1, 1, 100, 'admin', 'game.game', 'hot', '', '热门推荐', 'Fine recommended', '', '');
  912. INSERT INTO `h_admin_menu` VALUES (487, 165, 1, 0, 80, 'admin', 'feedback.feedback', 'index', '', '意见反馈', 'feedback', '', '');
  913. INSERT INTO `h_admin_menu` VALUES (488, 163, 1, 1, 10000, 'admin', 'game.h5game', 'index', '', '游戏列表', 'h5game', '', '');
  914. INSERT INTO `h_admin_menu` VALUES (489, 515, 1, 1, 10000, 'admin', 'game.android_game', 'index', '', '游戏列表', 'Android Game', '', '');
  915. INSERT INTO `h_admin_menu` VALUES (490, 516, 1, 1, 10000, 'admin', 'game.ios_game', 'index', '', '游戏列表', 'Ios Game', '', '');
  916. INSERT INTO `h_admin_menu` VALUES (491, 187, 0, 0, 960, 'admin', 'shop.goods', 'default', '', '积分商城', 'Points Mall', 'shopping-cart', '');
  917. INSERT INTO `h_admin_menu` VALUES (492, 491, 1, 1, 9998, 'admin', 'shop.goods', 'index', '', '商品管理', 'Product Manage', '', '商品管理');
  918. INSERT INTO `h_admin_menu` VALUES (493, 491, 1, 1, 9997, 'admin', 'shop.delivery', 'index', '', '发货管理', 'Ship Manage', '', '发货管理');
  919. INSERT INTO `h_admin_menu` VALUES (494, 187, 1, 1, 940, 'admin', 'setting.setting', 'index', '', '通用设置', 'General Settings', 'cogs', '平台通用设置');
  920. INSERT INTO `h_admin_menu` VALUES (495, 494, 1, 1, 10000, 'admin', 'setting.setting', 'useragreement', '', '协议', 'protocol', 'archive', '协议');
  921. INSERT INTO `h_admin_menu` VALUES (496, 365, 0, 0, 950, 'admin', 'lottery.lottery', 'default', '', '抽奖管理', 'lotteryManage', 'gift', '抽奖管理');
  922. INSERT INTO `h_admin_menu` VALUES (497, 365, 1, 0, 900, 'admin', 'lottery.lottery', 'index', '', '有奖活动', 'draw', '', '');
  923. INSERT INTO `h_admin_menu` VALUES (498, 189, 1, 1, 99, 'Admin', 'data.day', 'index', '', '每日数据', 'Data', 'fa-clock-o', '');
  924. INSERT INTO `h_admin_menu` VALUES (499, 187, 0, 0, 950, 'admin', 'activity.integralActivity', 'default', '', '积分活动管理', 'Integral Activity Management', 'tags', '积分活动管理');
  925. INSERT INTO `h_admin_menu` VALUES (500, 499, 1, 1, 10000, 'admin', 'activity.integralActivity', 'index', '', '积分活动', 'Integral Activity', '', '积分活动');
  926. INSERT INTO `h_admin_menu` VALUES (501, 499, 1, 1, 9999, 'admin', 'activity.integralActivity', 'sign', '', '签到奖励', 'Sign Reward', '', '签到奖励');
  927. INSERT INTO `h_admin_menu` VALUES (502, 499, 1, 1, 9995, 'admin', 'shop.integralLog', 'index', '', '积分记录', 'Integral Log', '', '');
  928. INSERT INTO `h_admin_menu` VALUES (503, 463, 1, 0, 144, 'admin', 'financial.agent', 'opCheck', 'status=1', '提现审核', 'withdraw operator check', '', '提现审核,运营对付款信息,金额和渠道收入审计,核对是否异常,核对通过后进入付款审核流程');
  929. INSERT INTO `h_admin_menu` VALUES (504, 463, 1, 0, 140, 'admin', 'financial.agent', 'finCheck', 'status=2', '付款审核', 'withdraw financial check', '', '付款审核,提现审核通过后进入付款审核,财务再次核对付款信息,收到发票后进入付款流程,付款完成审核完毕,异常则取消付款');
  930. INSERT INTO `h_admin_menu` VALUES (505, 73, 1, 1, 10000, 'admin', 'Setting', 'paypwd', '', '支付密码修改', 'payPwd', '', '');
  931. INSERT INTO `h_admin_menu` VALUES (506, 180, 1, 1, 990, 'admin', 'app.version', 'default', '', '安卓APP管理', 'APP management', 'android', '安卓APP管理');
  932. INSERT INTO `h_admin_menu` VALUES (507, 186, 0, 1, 60, 'admin', 'qq.qqConfig', 'default', '', 'QQ配置', 'Qq Config', 'qq', '');
  933. INSERT INTO `h_admin_menu` VALUES (508, 507, 1, 1, 10000, 'admin', 'qq.qqConfig', 'index', '', 'QQ列表', 'QQ Group', '', '');
  934. INSERT INTO `h_admin_menu` VALUES (509, 449, 1, 0, 10000, 'admin', 'financial.ptb', 'rate', '', '折扣设置', 'Discount settings', 'fa-cogs', '');
  935. INSERT INTO `h_admin_menu` VALUES (510, 365, 1, 0, 10000, 'admin', 'lottery.lottery', 'shopIndex', '', '首页抽奖', 'index draw', '', '');
  936. INSERT INTO `h_admin_menu` VALUES (511, 512, 1, 1, 10000, 'admin', 'app.spc', 'index', '', 'SDK更新', 'SDKUpdate', '', '');
  937. INSERT INTO `h_admin_menu` VALUES (512, 6, 0, 0, 65, 'admin', 'app.spc', 'default', '', 'SDK管理', 'SDK Manege', 'tag', '');
  938. INSERT INTO `h_admin_menu` VALUES (513, 6, 0, 0, 59, 'admin', 'game.paySwitch', 'default', '', '切换规则', 'Switch Rule', 'exchange', '');
  939. INSERT INTO `h_admin_menu` VALUES (514, 516, 1, 0, 100, 'admin', 'game.paySwitch', 'index', '', '切换规则列表', 'RuleName', '', '');
  940. INSERT INTO `h_admin_menu` VALUES (515, 186, 0, 1, 99, 'admin', 'game.android_game', 'default', '', '安卓游戏管理', 'AndGame', 'android ', '');
  941. INSERT INTO `h_admin_menu` VALUES (516, 186, 0, 0, 98, 'admin', 'game.ios_game', 'default', '', 'IOS游戏管理', 'IosGame', 'apple', '');
  942. INSERT INTO `h_admin_menu` VALUES (517, 198, 1, 0, 200, 'admin', 'account.account', 'default', '', '小号管理', 'Account management', 'user-circle', '账号管理');
  943. INSERT INTO `h_admin_menu` VALUES (518, 517, 1, 1, 999, 'admin', 'account.goods', 'index', '', '出售列表', 'Sell list', '', '');
  944. INSERT INTO `h_admin_menu` VALUES (519, 517, 1, 1, 998, 'admin', 'account.order', 'index', '', '交易订单', 'Trading orders', '', '');
  945. INSERT INTO `h_admin_menu` VALUES (520, 459, 1, 0, 149, 'admin', 'financial.order', 'apple', '', '苹果订单', 'AppleOrder', '', '');
  946. INSERT INTO `h_admin_menu` VALUES (521, 163, 1, 1, 14, 'admin', 'game.h5game', 'hotindex', '', '热门游戏排序', 'Hot Game List', '', '');
  947. INSERT INTO `h_admin_menu` VALUES (522, 163, 1, 0, 13, 'admin', 'game.h5game', 'likeindex', '', '喜爱游戏排序', 'Like Game List', '', '');
  948. INSERT INTO `h_admin_menu` VALUES (523, 10023, 1, 1, 10000, 'admin', 'app.message', 'index', '', '消息列表', 'Message Management', '', '消息列表');
  949. INSERT INTO `h_admin_menu` VALUES (526, 186, 0, 1, 97, 'admin', 'game.cpsGame', 'default', '', 'CPS游戏管理', 'CPS Game', 'gamepad', '');
  950. INSERT INTO `h_admin_menu` VALUES (527, 526, 1, 1, 10000, 'admin', 'game.cpsGame', 'index', '', 'H5游戏', 'H5 Game', '', 'CPS H5游戏列表');
  951. INSERT INTO `h_admin_menu` VALUES (528, 526, 1, 1, 999, 'admin', 'game.cpsGame', 'andindex', '', '安卓游戏', 'And Game', '', 'CPS安卓游戏列表');
  952. INSERT INTO `h_admin_menu` VALUES (529, 526, 1, 1, 998, 'admin', 'game.cpsGame', 'iosindex', '', 'IOS游戏', 'Ios Game', '', 'CPS IOS游戏列表');
  953. INSERT INTO `h_admin_menu` VALUES (530, 10029, 0, 1, 60, 'admin', 'game.help', 'default', '', '游戏客服管理', 'Game Help', 'phone-square', '游戏客服管理');
  954. INSERT INTO `h_admin_menu` VALUES (531, 530, 1, 1, 10000, 'admin', 'game.help', 'index', '', '客服列表', 'Help List', '', '游戏客服列表');
  955. INSERT INTO `h_admin_menu` VALUES (532, 186, 0, 1, 50, 'admin', 'game.qq', 'default', '', '一起玩', 'Game Qq', 'user-circle-o', '游戏一起玩管理');
  956. INSERT INTO `h_admin_menu` VALUES (533, 532, 1, 1, 10000, 'admin', 'game.qq', 'index', '', 'QQ群列表', 'QQ List', '', '');
  957. INSERT INTO `h_admin_menu` VALUES (534, 185, 0, 0, 800, 'admin', 'oa.oa_gm', 'default', '', 'OA', 'OA', 'calculator', 'OA管理');
  958. INSERT INTO `h_admin_menu` VALUES (535, 534, 1, 1, 10000, 'admin', 'oa.oa_gm', 'first', '', 'oa首充', 'oafirst', '', '');
  959. INSERT INTO `h_admin_menu` VALUES (536, 534, 1, 1, 10000, 'admin', 'oa.oa_gm', 'foster', '', 'oa扶植', 'oa foster', '', '');
  960. INSERT INTO `h_admin_menu` VALUES (537, 534, 1, 1, 10000, 'admin', 'oa.oa_agent_data', 'index', '', 'oa首充推广员每日业绩', 'oa agent day ', '', '');
  961. INSERT INTO `h_admin_menu` VALUES (538, 534, 1, 1, 10000, 'admin', 'oa.oa_jump', 'jump', '', 'oa后台', 'oaadmin', '', '');
  962. INSERT INTO `h_admin_menu` VALUES (539, 163, 1, 1, 12, 'admin', 'game.h5game', 'deleteIndex', '', '删除列表', 'Delete', '', 'H5游戏已删除游戏列表');
  963. INSERT INTO `h_admin_menu` VALUES (540, 515, 1, 1, 998, 'admin', 'game.android_game', 'deleteindex', '', '删除列表', 'delete', '', '安卓游戏删除列表');
  964. INSERT INTO `h_admin_menu` VALUES (541, 516, 1, 1, 99, 'admin', 'game.ios_game', 'deleteindex', '', '删除列表', 'delete', '', 'IOS游戏删除列表');
  965. INSERT INTO `h_admin_menu` VALUES (542, 10029, 0, 1, 91, 'admin', 'game.gameCategory', 'default', '', '游戏分类', 'Game Class', '', '');
  966. INSERT INTO `h_admin_menu` VALUES (543, 10080, 1, 0, 9800, 'admin', 'game.channel', 'index', '', 'CPS平台管理', 'CpsPlatform', '', 'CPS平台列表');
  967. INSERT INTO `h_admin_menu` VALUES (10000, 180, 0, 1, 10000, 'admin', 'app.base', 'default', '', 'APP站点管理', 'AppBase', 'desktop', 'APP站点管理');
  968. INSERT INTO `h_admin_menu` VALUES (10001, 180, 1, 1, 980, 'admin', 'app.rebate', 'default', '', '返利管理', 'Rebate', 'file-text', '返利管理');
  969. INSERT INTO `h_admin_menu` VALUES (10003, 10001, 1, 1, 10000, 'admin', 'app.rebate', 'guide', '', '设置说明', 'RebateGuide', '', '设置说明');
  970. INSERT INTO `h_admin_menu` VALUES (10004, 10003, 1, 0, 10000, 'admin', 'app.rebate', 'roleidExplain', '', '角色ID说明', 'ROLEID_EXPLAIN', '', '角色ID说明');
  971. INSERT INTO `h_admin_menu` VALUES (10005, 185, 1, 0, 1000, 'admin', 'distribution.platform', 'default', '', '广告买量监测', 'Advertising buy monitoring', 'cart-plus ', '买量相关管理');
  972. INSERT INTO `h_admin_menu` VALUES (10006, 10005, 1, 1, 10009, 'admin', 'distribution.platform', 'index', '', ' 投放平台', 'Delivery platform', '', '');
  973. INSERT INTO `h_admin_menu` VALUES (10007, 10005, 1, 1, 10008, 'admin', 'distribution.platform', 'domain', '', ' 域名列表', 'Domain name list', '', '');
  974. INSERT INTO `h_admin_menu` VALUES (10008, 10005, 1, 1, 10000, 'admin', 'distribution.plan', 'index', '', ' 投放计划管理', 'Delivery plan management', '', '');
  975. INSERT INTO `h_admin_menu` VALUES (10009, 10005, 1, 1, 10000, 'admin', 'distribution.package', 'index', '', '计划分包管理', 'Planned subcontract management', '', '');
  976. INSERT INTO `h_admin_menu` VALUES (10010, 10005, 1, 1, 10007, 'admin', 'distribution.landing_page', 'landingPage', '', ' 落地页模板管理', 'Floor page template management', '', '');
  977. INSERT INTO `h_admin_menu` VALUES (10011, 10001, 1, 1, 10000, 'admin', 'app.gameRebate', 'index', '', '返利列表', 'RebateList', '', '返利列表');
  978. INSERT INTO `h_admin_menu` VALUES (10012, 10005, 1, 1, 10000, 'admin', 'distribution.abs', 'agent', '', '总投放数据', 'Total delivery data', '', '');
  979. INSERT INTO `h_admin_menu` VALUES (10013, 10005, 1, 1, 10000, 'admin', 'distribution.abs', 'subAgent', '', '投放数据', 'Serving data', '', '');
  980. INSERT INTO `h_admin_menu` VALUES (10014, 10005, 1, 1, 10000, 'admin', 'distribution.abs', 'optimizer', '', ' 优化师数据', 'optimizer data', '', '');
  981. INSERT INTO `h_admin_menu` VALUES (10015, 10005, 1, 1, 10000, 'admin', 'distribution.abs', 'plan', '', '落地页模版统计', 'Landing page template statistics', '', '');
  982. INSERT INTO `h_admin_menu` VALUES (10016, 10003, 1, 1, 10000, 'admin', 'app.gameRebate', 'minSet', '', '最小值设定', 'MinSet', '', '');
  983. INSERT INTO `h_admin_menu` VALUES (10018, 517, 1, 1, 997, 'admin', 'account.wap', 'index', '', '交易须知', 'AccountDeal', '', '');
  984. INSERT INTO `h_admin_menu` VALUES (10019, 517, 1, 1, 10000, 'admin', 'account.account', 'index', '', '小号列表', 'AccountList', '', '小号列表');
  985. INSERT INTO `h_admin_menu` VALUES (10020, 526, 1, 1, 997, 'admin', 'game.cps_game', 'deleteIndex', '', '删除列表', 'DeleteList', '', '已删除的CPS游戏列表');
  986. INSERT INTO `h_admin_menu` VALUES (10021, 515, 1, 1, 999, 'admin', 'game.android_game', 'btindex', '', 'BT游戏列表', 'BtGame', '', 'BT游戏列表');
  987. INSERT INTO `h_admin_menu` VALUES (10022, 542, 1, 1, 89, 'admin', 'game.gameCategory', 'tagindex', '', '游戏标签', 'GameTag', '', '游戏标签');
  988. INSERT INTO `h_admin_menu` VALUES (10023, 180, 0, 1, 900, 'admin', 'app.message', 'default', '', '消息推送', 'MessagePush', 'volume-up', '消息推送');
  989. INSERT INTO `h_admin_menu` VALUES (10024, 180, 0, 1, 890, 'admin', 'app.btgameRank', 'default', '', 'BT游戏排行', 'Game Rank', 'arrow-up', 'BT游戏排行');
  990. INSERT INTO `h_admin_menu` VALUES (10025, 10024, 1, 1, 10000, 'admin', 'app.btgameRank', 'fine', '', '首推榜', 'TopFine', '', '首推榜');
  991. INSERT INTO `h_admin_menu` VALUES (10026, 10024, 1, 1, 10000, 'admin', 'app.btgameRank', 'newIndex', '', '新游榜', 'TopNew', '', '');
  992. INSERT INTO `h_admin_menu` VALUES (10027, 10025, 1, 1, 10000, 'admin', 'app.btgameRank', 'likeIndex', '', '推荐榜', 'TopLike', '', '推荐榜');
  993. INSERT INTO `h_admin_menu` VALUES (10028, 10029, 0, 1, 10000, 'admin', 'mp.game', 'default', '', '小游戏管理', 'MiniGame', 'gamepad', '小游戏管理');
  994. INSERT INTO `h_admin_menu` VALUES (10029, 0, 0, 1, 900, 'admin', 'mp', 'default', '', '游戏管理', 'MiniBox', 'weixin', '小程序盒子');
  995. INSERT INTO `h_admin_menu` VALUES (10030, 10028, 1, 1, 10000, 'admin', 'mp.game.game', 'index', '', '小游戏列表', 'GameList', 'gamepad', '小游戏列表');
  996. INSERT INTO `h_admin_menu` VALUES (10032, 165, 1, 1, 10000, 'admin', 'mp.member.member', 'index', '', '玩家列表', 'MemberList', 'user-circle', '玩家列表');
  997. INSERT INTO `h_admin_menu` VALUES (10034, 10087, 1, 1, 9999, 'admin', 'mp.agent.agent', 'index', '', '渠道列表', 'AgentList', 'share-alt', '渠道列表');
  998. INSERT INTO `h_admin_menu` VALUES (10036, 10029, 0, 0, 10000, 'admin', 'mp.data', 'default', '', '数据列表', 'Data', 'line-chart ', '数据列表');
  999. INSERT INTO `h_admin_menu` VALUES (10037, 10080, 0, 0, 9500, 'admin', 'mp.setting', 'default', '', '显示控制', 'Setting', 'cogs', '');
  1000. INSERT INTO `h_admin_menu` VALUES (10038, 10028, 1, 1, 999, 'admin', 'mp.game.game', 'deleteIndex', '', '删除列表', 'DeleteList', '', '');
  1001. INSERT INTO `h_admin_menu` VALUES (10039, 10028, 1, 0, 9997, 'admin', 'mp.game.game', 'fine', '', '推荐排序', 'Fine', '', '');
  1002. INSERT INTO `h_admin_menu` VALUES (10040, 10063, 1, 1, 10000, 'admin', 'mp.setting.slide', 'index', '', '广告管理', 'Slide', '', '');
  1003. INSERT INTO `h_admin_menu` VALUES (10041, 10037, 1, 1, 10000, 'admin', 'mp.setting.question', 'index', '', '常见问题', 'Question', '', '常见问题列表');
  1004. INSERT INTO `h_admin_menu` VALUES (10042, 10037, 1, 1, 10000, 'admin', 'mp.setting.background', 'index', '', '玩家背景图', 'Background', '', '玩家主页背景图设置');
  1005. INSERT INTO `h_admin_menu` VALUES (10043, 10037, 1, 1, 100001, 'admin', 'mp.setting.text', 'index', '', '基本设置', 'TextSet', '', '基本设置');
  1006. INSERT INTO `h_admin_menu` VALUES (10044, 10087, 1, 1, 10000, 'admin', 'mp.agent.game', 'index', '', '推广游戏', 'Game', '', '推广游戏');
  1007. INSERT INTO `h_admin_menu` VALUES (10045, 10087, 1, 1, 9998, 'admin', 'mp.agent.mpAgentGame', 'index', '', '小游戏推广列表', 'MpAgentGame', 'slideshare', '小游戏推广列表');
  1008. INSERT INTO `h_admin_menu` VALUES (10046, 184, 1, 0, 950, 'admin', 'mp.financial.financial', 'balance', '', '余额管理', 'Balance', 'beer', '余额管理');
  1009. INSERT INTO `h_admin_menu` VALUES (10047, 184, 1, 0, 960, 'admin', 'mp.financial.financial', 'income', '', '收益记录', 'income', 'money', '收益记录');
  1010. INSERT INTO `h_admin_menu` VALUES (10048, 184, 1, 0, 980, 'admin', 'mp.financial.financial', 'withdraw', '', '提现记录', 'Withdraw', 'address-card', '提现记录');
  1011. INSERT INTO `h_admin_menu` VALUES (10049, 184, 1, 0, 990, 'admin', 'mp.financial.financial', 'opCheck', '', '提现审核', 'Withdrawal review', 'check-circle', '提现审核');
  1012. INSERT INTO `h_admin_menu` VALUES (10050, 184, 1, 0, 985, 'admin', 'mp.financial.financial', 'finCheck', '', '财务审核', 'Financial Review', 'check', '财务审核');
  1013. INSERT INTO `h_admin_menu` VALUES (10051, 189, 1, 0, 999, 'admin', 'mp.data.data', 'index', '', '数据总览', 'DataAll', 'database', '数据总览');
  1014. INSERT INTO `h_admin_menu` VALUES (10052, 189, 1, 0, 990, 'admin', 'mp.data.data', 'dataDay', '', '每日数据', 'DataDay', '', '每日数据');
  1015. INSERT INTO `h_admin_menu` VALUES (10053, 189, 1, 0, 980, 'admin', 'mp.data.data', 'analysis', '', '留存分析', 'DataAnalysis', '', '留存分析');
  1016. INSERT INTO `h_admin_menu` VALUES (10054, 189, 1, 0, 999, 'admin', 'mp.data.data', 'rank', '', '排行榜', 'Rank', '', '排行榜');
  1017. INSERT INTO `h_admin_menu` VALUES (10055, 189, 1, 0, 998, 'admin', 'mp.data.data', 'hot', '', '游戏热度', 'GameHot', '', '游戏热度');
  1018. INSERT INTO `h_admin_menu` VALUES (10056, 10080, 1, 0, 9900, 'admin', 'mp.game.game', 'cpsgame', '', 'CPS小游戏', 'CPSGame', 'gamepad', 'CPS游戏');
  1019. INSERT INTO `h_admin_menu` VALUES (10057, 10080, 1, 1, 9999, 'admin', 'mp.game.game', 'minibox', '', '盒子管理', 'MiniBox', 'inbox', '盒子管理');
  1020. INSERT INTO `h_admin_menu` VALUES (10058, 184, 1, 0, 970, 'admin', 'mp.financial.financial', 'settleLog', '', '打款记录', 'SettleLog', 'check-square-o', '提现打款记录日志');
  1021. INSERT INTO `h_admin_menu` VALUES (10060, 10061, 1, 1, 9999, 'admin', 'mp.weixin.wx', 'index', '', '公众号', 'WxList', '', '公众号管理列表');
  1022. INSERT INTO `h_admin_menu` VALUES (10061, 6, 0, 1, 60, 'admin', 'mp.weixin.wx', 'default', '', '账号配置', 'Wx', 'weixin', '公众号管理');
  1023. INSERT INTO `h_admin_menu` VALUES (10062, 10063, 1, 1, 9997, 'admin', 'mp.game.homeTag', 'index', '', '首页标签', 'HomeTag', '', '首页标签');
  1024. INSERT INTO `h_admin_menu` VALUES (10063, 10080, 1, 0, 9700, 'admin', 'mp.game.homePage', 'default', '', '盒子内容管理', 'HomeGame', 'home', '首页管理');
  1025. INSERT INTO `h_admin_menu` VALUES (10064, 10063, 1, 1, 9996, 'admin', 'mp.game.homeTag', 'other', '', '其他标签', 'OtherTag', '', '其他标签');
  1026. INSERT INTO `h_admin_menu` VALUES (10065, 10061, 1, 1, 10000, 'admin', 'mp.weixin.wx', 'open', '', '开放平台', 'Open', '', '公众平台');
  1027. INSERT INTO `h_admin_menu` VALUES (10066, 10061, 1, 1, 9997, 'admin', 'mp.weixin.wx', 'merchant', '', '商户平台', 'Merchant', '', '商户平台');
  1028. INSERT INTO `h_admin_menu` VALUES (10067, 10061, 1, 1, 9998, 'admin', 'mp.weixin.wx', 'mini', '', '小程序', 'Mini', '', '小程序');
  1029. INSERT INTO `h_admin_menu` VALUES (10068, 0, 1, 0, 59, 'admin', 'mp.hunter.hunter', 'default', '', '更多挣钱', 'Hunter', 'usd', '更多挣钱,猎人平台');
  1030. INSERT INTO `h_admin_menu` VALUES (10069, 10068, 1, 1, 999, 'admin', 'mp.hunter.hunter', 'andindex', '', '安卓试玩', 'And', '', '安卓试玩');
  1031. INSERT INTO `h_admin_menu` VALUES (10070, 10068, 1, 1, 998, 'admin', 'mp.hunter.hunter', 'iosindex', '', '苹果试玩', 'Ios', '', '苹果试玩');
  1032. INSERT INTO `h_admin_menu` VALUES (10071, 10068, 1, 1, 10000, 'admin', 'mp.hunter.hunter', 'index', '', '新手必读', 'NewMenber', '', '新手必读');
  1033. INSERT INTO `h_admin_menu` VALUES (10072, 10068, 1, 1, 10000, 'admin', 'mp.hunter.hunter', 'slide', '', '轮播图', 'Slide', '', '轮播图');
  1034. INSERT INTO `h_admin_menu` VALUES (10073, 10068, 1, 1, 10000, 'admin', 'mp.hunter.hunter', 'rank', '', '收益排行', 'Rank', '', '收益排行');
  1035. INSERT INTO `h_admin_menu` VALUES (10074, 499, 1, 0, 10000, 'admin', 'lottery.lottery', 'goldIndex', '', '金币抽奖', 'Lottery', '', '金币抽奖');
  1036. INSERT INTO `h_admin_menu` VALUES (10075, 499, 1, 0, 9996, 'admin', 'shop.delivery', 'rp', '', '红包兑换记录', 'rp', '', '红包兑换记录');
  1037. INSERT INTO `h_admin_menu` VALUES (10076, 189, 1, 0, 997, 'admin', 'mp.fill.sub_mem_rank', 'index', '', '虚拟排行', 'Faker', '', '虚拟排行');
  1038. INSERT INTO `h_admin_menu` VALUES (10077, 10068, 1, 1, 10000, 'admin', 'mp.hunter.hunter', 'shareCfg', '', '分享配置', 'Share', '', '分享配置');
  1039. INSERT INTO `h_admin_menu` VALUES (10078, 184, 1, 0, 999, 'admin', 'mp.member.mem_risk', 'index', '', '风控数据', 'MemRisk', 'bolt', '风控数据');
  1040. INSERT INTO `h_admin_menu` VALUES (10079, 10036, 1, 0, 10000, 'admin', 'mp.data.data', 'active', '', '每日活跃', 'Active', '', '每日活跃');
  1041. INSERT INTO `h_admin_menu` VALUES (10080, 0, 1, 1, 58, 'admin', 'mp.game.game', 'default', '', '盒子管理', 'MiniBox', 'archive', '小程序游戏盒子管理');
  1042. INSERT INTO `h_admin_menu` VALUES (10081, 184, 1, 0, 10000, 'admin', 'mp.financial.financial', 'unusual', '', '异常记录', 'Unusual', '', '异常记录');
  1043. INSERT INTO `h_admin_menu` VALUES (10082, 189, 1, 0, 999, 'admin', 'mp.data.rank', 'game', '', '游戏排行', 'GameRank', '', '游戏排行');
  1044. INSERT INTO `h_admin_menu` VALUES (10083, 189, 1, 0, 998, 'admin', 'mp.data.rank', 'mem', '', '玩家排行', 'MemRank', '', '玩家排行');
  1045. INSERT INTO `h_admin_menu` VALUES (10084, 165, 1, 1, 10000, 'admin', 'member.ban', 'ipBan', '', '封禁管理', 'Ban', '', '封禁管理');
  1046. INSERT INTO `h_admin_menu` VALUES (10085, 165, 1, 0, 10000, 'admin', 'mp.member.member', 'isSwitch', '', '切量玩家', 'SwitchMember', '', '切量玩家');
  1047. INSERT INTO `h_admin_menu` VALUES (10086, 459, 1, 0, 139, 'admin', 'financial.order', 'isSwitch', '', '切量订单', 'SwitchOrder', '', '切量订单');
  1048. INSERT INTO `h_admin_menu` VALUES (10087, 185, 1, 1, 10000, 'admin', 'mp.agent.agent', 'default', '', '推广管理', 'Agent', '', '推广管理');
  1049. INSERT INTO `h_admin_menu` VALUES (10088, 10028, 1, 0, 10000, 'admin', 'mp.game.game', 'personal', '', '个人小程序', 'Personal Mini', '', '个人小程序');
  1050. INSERT INTO `h_admin_menu` VALUES (10089, 189, 1, 1, 10000, 'admin', 'data.ltv', 'index', '', 'LTV', 'ltv', '', '');
  1051. INSERT INTO `h_admin_menu` VALUES (10090, 10061, 1, 0, 10000, 'admin', 'fun.weixin.wx', 'mobileApp', '', '移动应用', 'MobileApp', '', '移动应用');
  1052. INSERT INTO `h_admin_menu` VALUES (10091, 494, 1, 1, 50, 'admin', 'identify.identifyConf', 'index', '', '实名认证配置', 'Identify Conf', 'fa-id-card ', '实名认证配置');
  1053. INSERT INTO `h_admin_menu` VALUES (10092, 10091, 1, 1, 1000, 'admin', 'identify.identifyConf', 'post', '', '实名认证配置提交', 'Identify Conf Post', 'fa-id-card ', '实名认证配置提交');
  1054. INSERT INTO `h_admin_menu` VALUES (10093, 494, 1, 1, 50, 'admin', 'identify.holidaySet', 'index', '', '节假日配置列表', 'Holiday Set List', 'fa-id-card ', '节假日配置列表');
  1055. INSERT INTO `h_admin_menu` VALUES (10094, 10093, 2, 1, 1000, 'admin', 'identify.holidaySet', 'add', '', '添加节假日配置', 'Add Holiday Set', 'plus-square-o', '添加节假日配置');
  1056. INSERT INTO `h_admin_menu` VALUES (10095, 10094, 2, 1, 1000, 'admin', 'identify.holidaySet', 'addPost', '', '添加节假日配置操作函数', '添加节假日配置操作函数 Function', 'plus-square-o', '添加节假日配置操作函数');
  1057. INSERT INTO `h_admin_menu` VALUES (10096, 10093, 2, 1, 900, 'admin', 'identify.holidaySet', 'edit', '', '编辑节假日配置', 'Edit Holiday Set', 'pencil-square-o', '编辑节假日配置');
  1058. INSERT INTO `h_admin_menu` VALUES (10097, 10096, 2, 1, 900, 'admin', 'identify.holidaySet', 'editPost', '', '编辑节假日配置操作函数', '编辑节假日配置操作函数 Function', 'pencil-square-o', '编辑节假日配置操作函数');
  1059. INSERT INTO `h_admin_menu` VALUES (10098, 10093, 2, 1, 800, 'admin', 'identify.holidaySet', 'delete', '', '删除节假日配置', 'delete Holiday Set', '', '删除节假日配置');
  1060. INSERT INTO `h_admin_menu` VALUES (10100, 10087, 1, 1, 9997, 'admin', 'mp.agent.h5AgentGame', 'index', '', 'H5游戏推广列表', 'H5AgentGame', '', 'H5游戏推广列表');
  1061. INSERT INTO `h_admin_menu` VALUES (10101, 463, 1, 0, 120, 'admin', 'financial.agentCpaLog', 'index', '', '渠道CPA明细', 'AgentCpaLog', '', '渠道CPA明细');
  1062. INSERT INTO `h_admin_menu` VALUES (10102, 10032, 1, 0, 10000, 'admin', 'mp.member.member', 'updateidentify', '', '修改实名认证', 'EditMemIdentify', '', '');
  1063. INSERT INTO `h_admin_menu` VALUES (10103, 10032, 1, 0, 10000, 'admin', 'mp.member.member', 'updatealipayaccount', '', '修改绑定支付宝', 'EditAlipayAccount', '', '修改绑定支付宝');
  1064. INSERT INTO `h_admin_menu` VALUES (10104, 10034, 1, 1, 10000, 'admin', 'mp.agent.agent', 'setStatus', '', '设置渠道状态', 'AgentSetStatus', '', '设置渠道状态');
  1065. INSERT INTO `h_admin_menu` VALUES (10105, 10034, 1, 0, 10000, 'admin', 'mp.agent.agent', 'edit', '', '编辑渠道', 'EditAgent', '', '编辑渠道');
  1066. INSERT INTO `h_admin_menu` VALUES (10106, 189, 1, 1, 98, 'admin', 'data.day', 'cpa', '', '每日IP数据', 'CpaDayData', '', '每日cpa数据');
  1067. INSERT INTO `h_admin_menu` VALUES (10114, 365, 1, 1, 90, 'admin', 'conf.payway', 'index', '', '支付配置列表', 'Payway Config List', 'yen', '支付配置列表');
  1068. INSERT INTO `h_admin_menu` VALUES (10115, 10114, 2, 1, 1000, 'admin', 'conf.payway', 'add', '', '添加支付配置', 'Add Payway Config', 'plus-square-o', '添加支付配置');
  1069. INSERT INTO `h_admin_menu` VALUES (10116, 10115, 2, 1, 1000, 'admin', 'conf.payway', 'addPost', '', '添加支付配置操作函数', '添加支付配置操作函数 Function', 'plus-square-o', '添加支付配置操作函数');
  1070. INSERT INTO `h_admin_menu` VALUES (10117, 10114, 2, 1, 900, 'admin', 'conf.payway', 'edit', '', '编辑支付配置', 'Edit Payway Config', 'pencil-square-o', '编辑支付配置');
  1071. INSERT INTO `h_admin_menu` VALUES (10118, 10117, 2, 1, 900, 'admin', 'conf.payway', 'editPost', '', '编辑支付配置操作函数', '编辑支付配置操作函数 Function', 'pencil-square-o', '编辑支付配置操作函数');
  1072. INSERT INTO `h_admin_menu` VALUES (10119, 10114, 2, 1, 800, 'admin', 'conf.payway', 'setStatus', '', '设置支付配置状态', 'Set Payway Config Status', 'pencil-square-o', '设置支付配置状态');
  1073. INSERT INTO `h_admin_menu` VALUES (10120, 10114, 2, 1, 700, 'admin', 'conf.payway', 'delete', '', '删除支付配置', 'delete Payway Config', '', '删除支付配置');
  1074. INSERT INTO `h_admin_menu` VALUES (10121, 10114, 2, 0, 600, 'admin', 'conf.payway', 'editConf', '', '支付配置', 'editConf', '', '支付配置');
  1075. INSERT INTO `h_admin_menu` VALUES (10122, 10114, 2, 0, 500, 'admin', 'conf.payway', 'editConfPost', '', '支付配置提交', 'editConfPost', '', '支付配置提交');
  1076. INSERT INTO `h_admin_menu` VALUES (10123, 10032, 1, 0, 10000, 'admin', 'mp.member.member', 'detail', '', '详情', 'detail', '', '');
  1077. INSERT INTO `h_admin_menu` VALUES (10124, 165, 1, 1, 10000, 'admin', 'mp.member.member', 'memGame', '', '玩家游戏列表', 'gamelist', '', '');
  1078. INSERT INTO `h_admin_menu` VALUES (10125, 10032, 1, 0, 10000, 'admin', 'mp.member.member', 'freeze', '', '冻结', 'freeze', '', '');
  1079. INSERT INTO `h_admin_menu` VALUES (10126, 10032, 1, 0, 10000, 'admin', 'mp.member.member', 'thaw', '', '解冻', 'thaw', '', '');
  1080. INSERT INTO `h_admin_menu` VALUES (10127, 10032, 1, 0, 10000, 'admin', 'mp.member.member', 'recycle', '', '玩家重置', 'recycle', '', '');
  1081. INSERT INTO `h_admin_menu` VALUES (10128, 10029, 1, 0, 99, 'adminh5ios', 'game', 'manage', '', 'IOS马甲管理', 'Ios Vb Manage', 'apple', 'IOS马甲管理');
  1082. INSERT INTO `h_admin_menu` VALUES (10129, 10128, 1, 1, 1000, 'adminh5ios', 'game', 'index', '', 'IOS马甲列表', 'Ios Vb List', 'apple', 'IOS马甲列表');
  1083. INSERT INTO `h_admin_menu` VALUES (10130, 10129, 2, 1, 1000, 'adminh5ios', 'game', 'add', '', '添加IOS马甲', 'Add Ios Vb', 'plus-square-o', '添加IOS马甲');
  1084. INSERT INTO `h_admin_menu` VALUES (10131, 10130, 2, 1, 1000, 'adminh5ios', 'game', 'addPost', '', '添加IOS马甲操作函数', '添加IOS马甲操作函数 Function', 'plus-square-o', '添加IOS马甲操作函数');
  1085. INSERT INTO `h_admin_menu` VALUES (10132, 10129, 2, 1, 900, 'adminh5ios', 'game', 'edit', '', '编辑IOS马甲', 'Edit Ios Vb', 'pencil-square-o', '编辑IOS马甲');
  1086. INSERT INTO `h_admin_menu` VALUES (10133, 10132, 2, 1, 900, 'adminh5ios', 'game', 'editPost', '', '编辑IOS马甲操作函数', '编辑IOS马甲操作函数 Function', 'pencil-square-o', '编辑IOS马甲操作函数');
  1087. INSERT INTO `h_admin_menu` VALUES (10134, 10129, 2, 1, 800, 'adminh5ios', 'game', 'setStatus', '', '设置IOS马甲状态', 'Set Ios Vb Status', 'pencil-square-o', '设置IOS马甲状态');
  1088. INSERT INTO `h_admin_menu` VALUES (10135, 10129, 2, 1, 700, 'adminh5ios', 'game', 'delete', '', '删除IOS马甲', 'delete Ios Vb', '', '删除IOS马甲');
  1089. INSERT INTO `h_admin_menu` VALUES (10136, 10129, 1, 0, 900, 'adminh5ios', 'game', 'editField', '', '修改字段', 'editField', '', '修改字段');
  1090. INSERT INTO `h_admin_menu` VALUES (10137, 10129, 1, 0, 900, 'adminh5ios', 'game', 'editFieldPost', '', '修改字段提交', 'editFieldPost', '', '修改字段提交');
  1091. INSERT INTO `h_admin_menu` VALUES (10138, 10129, 1, 0, 800, 'adminh5ios', 'game', 'cp', '', '修改CP', 'cp', '', '修改CP');
  1092. INSERT INTO `h_admin_menu` VALUES (10139, 10129, 1, 0, 800, 'adminh5ios', 'game', 'cpPost', '', '修改CP提交', 'cpPost', '', '修改CP提交');
  1093. INSERT INTO `h_admin_menu` VALUES (10140, 10129, 1, 0, 700, 'adminh5ios', 'game', 'param', '', '获取对接参数', 'Get Param', '', '获取对接参数');
  1094. INSERT INTO `h_admin_menu` VALUES (10141, 10129, 1, 0, 600, 'adminh5ios', 'game', 'gamePrice', '', '计费点', 'gamePrice', '', '计费点');
  1095. INSERT INTO `h_admin_menu` VALUES (10142, 10129, 1, 0, 600, 'adminh5ios', 'game', 'gamePricePost', '', '计费点提交', 'gamePricePost', '', '计费点提交');
  1096. INSERT INTO `h_admin_menu` VALUES (10143, 10129, 1, 0, 500, 'adminh5ios', 'pay_switch', 'setSwitch', '', '设置切换', 'setSwitch', '', '设置切换');
  1097. INSERT INTO `h_admin_menu` VALUES (10144, 10129, 1, 0, 500, 'adminh5ios', 'pay_switch', 'edit', '', '编辑切换规则', 'edit Switch Rule', '', '编辑切换规则');
  1098. INSERT INTO `h_admin_menu` VALUES (10145, 10129, 1, 0, 500, 'adminh5ios', 'pay_switch', 'editPost', '', '编辑切换规则提交', 'edit Switch Rule Post', '', '编辑切换规则提交');
  1099. INSERT INTO `h_admin_menu` VALUES (10146, 10129, 1, 0, 500, 'adminh5ios', 'pay_switch', 'editSever', '', '编辑区服切换', 'edit Switch Server', '', '编辑区服切换');
  1100. INSERT INTO `h_admin_menu` VALUES (10147, 10129, 1, 0, 500, 'adminh5ios', 'pay_switch', 'editSeverPost', '', '编辑区服切换提交', 'edit Switch Server Post', '', '编辑区服切换提交');
  1101. INSERT INTO `h_admin_menu` VALUES (10148, 10129, 1, 0, 500, 'adminh5ios', 'pay_switch', 'memWhite', '', '玩家白名单', 'memWhite', '', '玩家白名单');
  1102. INSERT INTO `h_admin_menu` VALUES (10149, 10129, 1, 0, 500, 'adminh5ios', 'pay_switch', 'addMemWhite', '', '添加玩家白名单', 'addMemWhite', '', '添加玩家白名单');
  1103. INSERT INTO `h_admin_menu` VALUES (10150, 10129, 1, 0, 500, 'adminh5ios', 'pay_switch', 'delMemWhite', '', '删除玩家白名单', 'delMemWhite', '', '删除玩家白名单');
  1104. INSERT INTO `h_admin_menu` VALUES (10151, 235, 1, 1, 10000, 'admin', 'game.cp', 'media', '', '媒体列表', 'Media List', '', '媒体列表');
  1105. INSERT INTO `h_admin_menu` VALUES (10152, 0, 1, 1, 50, 'admin', 'mp.mpdata.menu', 'default', '', 'MP投放数据', 'MP Data', 'bar-chart', 'MP投放数据');
  1106. INSERT INTO `h_admin_menu` VALUES (10153, 10152, 1, 1, 10000, 'admin', 'mp.mpdata.data', 'default', '', '总体数据', 'MP ALL DATA', 'bar-chart-o', '总体数据');
  1107. INSERT INTO `h_admin_menu` VALUES (10154, 10153, 1, 1, 10000, 'admin', 'mp.mpdata.data', 'hour', '', '时表', 'MP HOUR DATA', 'chart', '时表');
  1108. INSERT INTO `h_admin_menu` VALUES (10155, 10153, 1, 1, 9000, 'admin', 'mp.mpdata.data', 'index', '', '概况表', 'MP DAY DATA', 'chart', '概况表');
  1109. INSERT INTO `h_admin_menu` VALUES (10156, 10155, 2, 1, 10000, 'admin', 'mp.mpdata.data', 'editCost', '', '编辑修改成本', 'Edit EDIT CONST', 'pencil-square-o', '编辑修改成本');
  1110. INSERT INTO `h_admin_menu` VALUES (10157, 10156, 2, 1, 10000, 'admin', 'mp.mpdata.data', 'editCostPost', '', '编辑修改成本操作函数', '编辑修改成本操作函数 Function', 'pencil-square-o', '编辑修改成本操作函数');
  1111. INSERT INTO `h_admin_menu` VALUES (10158, 10153, 1, 1, 7000, 'admin', 'mp.mpdata.ltv', 'index', '', '新增用户LTV', 'MP LTV', 'chart', '新增用户LTV');
  1112. INSERT INTO `h_admin_menu` VALUES (10159, 10153, 1, 1, 6000, 'admin', 'mp.mpdata.data', 'analysis', '', '新增用户留存', 'MP ANALYSIS', 'chart', '新增用户留存');
  1113. INSERT INTO `h_admin_menu` VALUES (10160, 10153, 1, 1, 5000, 'admin', 'mp.mpdata.data', 'output', '', '投产表', 'MP OUTPUT', 'chart', '投产表');
  1114. INSERT INTO `h_admin_menu` VALUES (10161, 10153, 1, 1, 3000, 'admin', 'mp.mpdata.data', 'payAnalysis', '', '付费留存表', 'MP PAY ANALYSIS', 'chart', '付费留存表');
  1115. INSERT INTO `h_admin_menu` VALUES (10191, 10152, 1, 1, 100, 'admin', 'mp.mpdata.agent', 'manage', '', '渠道管理', 'MP AGENT Manage', 'bar-chart-o', '渠道管理');
  1116. INSERT INTO `h_admin_menu` VALUES (10192, 10191, 1, 1, 100, 'admin', 'mp.mpdata.agent', 'index', '', '渠道列表', 'MP AGENT List', 'chart', '渠道列表');
  1117. INSERT INTO `h_admin_menu` VALUES (10193, 10192, 2, 1, 1000, 'admin', 'mp.mpdata.agent', 'add', '', '添加渠道', 'Add MP AGENT', 'plus-square-o', '添加渠道');
  1118. INSERT INTO `h_admin_menu` VALUES (10194, 10193, 2, 1, 1000, 'admin', 'mp.mpdata.agent', 'addPost', '', '添加渠道操作函数', '添加渠道操作函数 Function', 'plus-square-o', '添加渠道操作函数');
  1119. INSERT INTO `h_admin_menu` VALUES (10195, 10192, 2, 1, 900, 'admin', 'mp.mpdata.agent', 'edit', '', '编辑渠道', 'Edit MP AGENT', 'pencil-square-o', '编辑渠道');
  1120. INSERT INTO `h_admin_menu` VALUES (10196, 10195, 2, 1, 900, 'admin', 'mp.mpdata.agent', 'editPost', '', '编辑渠道操作函数', '编辑渠道操作函数 Function', 'pencil-square-o', '编辑渠道操作函数');
  1121. INSERT INTO `h_admin_menu` VALUES (10197, 10192, 2, 1, 800, 'admin', 'mp.mpdata.agent', 'setStatus', '', '设置渠道状态', 'Set MP AGENT Status', 'pencil-square-o', '设置渠道状态');
  1122. INSERT INTO `h_admin_menu` VALUES (10198, 10192, 2, 1, 700, 'admin', 'mp.mpdata.agent', 'delete', '', '删除渠道', 'delete MP AGENT', '', '删除渠道');
  1123. INSERT INTO `h_admin_menu` VALUES (10199, 10192, 1, 1, 500, 'admin', 'mp.mpdata.agent', 'agGame', '', '渠道游戏', 'agGame', 'gamepad', '渠道游戏');
  1124. INSERT INTO `h_admin_menu` VALUES (10200, 10191, 1, 1, 99, 'admin', 'mp.mpdata.agent', 'agentGame', '', '渠道游戏', 'Agent Game', 'gamepad', '渠道游戏');
  1125. INSERT INTO `h_admin_menu` VALUES (10201, 10152, 1, 1, 90, 'admin', 'mp.mpdata.data', 'report_log', '', '上报日志', 'Report Log', 'list-alt', '');
  1126. INSERT INTO `h_admin_menu` VALUES (10202, 10201, 1, 1, 10000, 'admin', 'mp.mpdata.data', 'reportLogList', '', '上报日志', 'Report Log', '', '');
  1127. INSERT INTO `h_admin_menu` VALUES (10203, 10029, 1, 1, 0, 'admin', 'identify.identify_game', 'manage', '', '游戏实名认证管理', 'Game Identify Manage', 'id-card', '游戏实名认证管理');
  1128. INSERT INTO `h_admin_menu` VALUES (10204, 10203, 1, 1, 0, 'admin', 'identify.identify_game', 'index', '', '游戏实名认证列表', 'Game Identify List', 'id-card', '游戏实名认证列表');
  1129. INSERT INTO `h_admin_menu` VALUES (10205, 10204, 2, 1, 1000, 'admin', 'identify.identify_game', 'add', '', '添加游戏实名认证', 'Add Game Identify', 'plus-square-o', '添加游戏实名认证');
  1130. INSERT INTO `h_admin_menu` VALUES (10206, 10205, 2, 1, 1000, 'admin', 'identify.identify_game', 'addPost', '', '添加游戏实名认证操作函数', '添加游戏实名认证操作函数 Function', 'plus-square-o', '添加游戏实名认证操作函数');
  1131. INSERT INTO `h_admin_menu` VALUES (10207, 10204, 2, 1, 900, 'admin', 'identify.identify_game', 'edit', '', '编辑游戏实名认证', 'Edit Game Identify', 'pencil-square-o', '编辑游戏实名认证');
  1132. INSERT INTO `h_admin_menu` VALUES (10208, 10207, 2, 1, 900, 'admin', 'identify.identify_game', 'editPost', '', '编辑游戏实名认证操作函数', '编辑游戏实名认证操作函数 Function', 'pencil-square-o', '编辑游戏实名认证操作函数');
  1133. INSERT INTO `h_admin_menu` VALUES (10209, 10204, 2, 1, 800, 'admin', 'identify.identify_game', 'setStatus', '', '设置游戏实名认证状态', 'Set Game Identify Status', 'pencil-square-o', '设置游戏实名认证状态');
  1134. INSERT INTO `h_admin_menu` VALUES (10210, 10204, 2, 1, 700, 'admin', 'identify.identify_game', 'delete', '', '删除游戏实名认证', 'delete Game Identify', '', '删除游戏实名认证');
  1135. INSERT INTO `h_admin_menu` VALUES (10212, 165, 1, 1, 95, 'admin', 'identify.identifyMem', 'index', '', '玩家实名认证列表', 'identifyMem List', 'id-card', '玩家实名认证列表');
  1136. INSERT INTO `h_admin_menu` VALUES (10213, 10061, 1, 0, 9996, 'admin', 'mp.weixin.wx', 'customer', '', '客服小程序', 'Customer', '', '客服小程序');
  1137. INSERT INTO `h_admin_menu` VALUES (10214, 10153, 1, 1, 4000, 'admin', 'mp.mpdata.data', 'agent', '', '投手表', 'MP AGENT', 'chart', '投手表');
  1138. INSERT INTO `h_admin_menu` VALUES (10215, 10153, 1, 1, 3000, 'admin', 'mp.mpdata.data', 'account', '', '公众号表', 'MP_ACCOUNT', 'chart', '公众号表');
  1139. -- ----------------------------
  1140. -- Table structure for h_admin_operate_log
  1141. -- ----------------------------
  1142. DROP TABLE IF EXISTS `h_admin_operate_log`;
  1143. CREATE TABLE `h_admin_operate_log` (
  1144. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
  1145. `user_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '操作者ID',
  1146. `username` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '操作者',
  1147. `type` tinyint(2) NOT NULL DEFAULT 0 COMMENT '操作类型,0其他操作, 1为添加,2为更新,3为删除',
  1148. `ip` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '操作时的IP地址',
  1149. `addr` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'IP归属度',
  1150. `action` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '未知类' COMMENT '操作的类',
  1151. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '操作的时间',
  1152. `param` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '操作的参数',
  1153. `remark` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '备注说明',
  1154. PRIMARY KEY (`id`) USING BTREE,
  1155. INDEX `useridindex`(`user_id`) USING BTREE
  1156. ) ENGINE = InnoDB AUTO_INCREMENT = 114 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '后台操作记录表' ROW_FORMAT = DYNAMIC;
  1157. -- ----------------------------
  1158. -- Records of h_admin_operate_log
  1159. -- ----------------------------
  1160. INSERT INTO `h_admin_operate_log` VALUES (1, 0, '', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/public/login.html', 1640000796, 'GET:', '查询成功');
  1161. INSERT INTO `h_admin_operate_log` VALUES (2, 0, '', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/public/login.html', 1640000805, 'GET:', '查询成功');
  1162. INSERT INTO `h_admin_operate_log` VALUES (3, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/public/dologin.html', 1640001093, 'POST:username=admin&password=shun.2021&captcha=1876&_captcha_id=&redirect=', '登录成功!');
  1163. INSERT INTO `h_admin_operate_log` VALUES (4, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/index/index.html', 1640001095, 'GET:', '查询成功');
  1164. INSERT INTO `h_admin_operate_log` VALUES (5, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/index/index.html', 1640001169, 'GET:', '查询成功');
  1165. INSERT INTO `h_admin_operate_log` VALUES (6, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/index/index.html', 1640001357, 'GET:', '查询成功');
  1166. INSERT INTO `h_admin_operate_log` VALUES (7, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/main/index.html', 1640001357, 'GET:', '查询成功');
  1167. INSERT INTO `h_admin_operate_log` VALUES (8, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/index/index.html', 1640001763, 'GET:', '查询成功');
  1168. INSERT INTO `h_admin_operate_log` VALUES (9, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/main/index.html', 1640001763, 'GET:', '查询成功');
  1169. INSERT INTO `h_admin_operate_log` VALUES (10, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/rbac/index.html', 1640001769, 'GET:', '查询成功');
  1170. INSERT INTO `h_admin_operate_log` VALUES (11, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/setting/password.html', 1640001773, 'GET:', '查询成功');
  1171. INSERT INTO `h_admin_operate_log` VALUES (12, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/setting/password.html', 1640001774, 'GET:', '查询成功');
  1172. INSERT INTO `h_admin_operate_log` VALUES (13, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/setting/password.html', 1640001775, 'GET:', '查询成功');
  1173. INSERT INTO `h_admin_operate_log` VALUES (14, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/index/index.html', 1640001785, 'GET:', '查询成功');
  1174. INSERT INTO `h_admin_operate_log` VALUES (15, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/main/index.html', 1640001785, 'GET:', '查询成功');
  1175. INSERT INTO `h_admin_operate_log` VALUES (16, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/index/index.html', 1640002103, 'GET:', '查询成功');
  1176. INSERT INTO `h_admin_operate_log` VALUES (17, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/main/index.html', 1640002103, 'GET:', '查询成功');
  1177. INSERT INTO `h_admin_operate_log` VALUES (18, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/rbac/index.html', 1640002110, 'GET:', '查询成功');
  1178. INSERT INTO `h_admin_operate_log` VALUES (19, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/setting/password.html', 1640002114, 'GET:', '查询成功');
  1179. INSERT INTO `h_admin_operate_log` VALUES (20, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/setting/passwordpost.html', 1640002129, 'POST:old_password=shun.2021&password=123456&re_password=123456', '密码修改成功!');
  1180. INSERT INTO `h_admin_operate_log` VALUES (21, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/setting/password.html', 1640002131, 'GET:', '查询成功');
  1181. INSERT INTO `h_admin_operate_log` VALUES (22, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/setting/paypwd.html', 1640002137, 'GET:', '查询成功');
  1182. INSERT INTO `h_admin_operate_log` VALUES (23, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/index/index.html', 1640002147, 'GET:', '查询成功');
  1183. INSERT INTO `h_admin_operate_log` VALUES (24, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/main/index.html', 1640002147, 'GET:', '查询成功');
  1184. INSERT INTO `h_admin_operate_log` VALUES (25, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/index/index.html', 1640002194, 'GET:', '查询成功');
  1185. INSERT INTO `h_admin_operate_log` VALUES (26, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/main/index.html', 1640002194, 'GET:', '查询成功');
  1186. INSERT INTO `h_admin_operate_log` VALUES (27, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/mp.mpdata.data/hour.html', 1640002269, 'GET:', '查询成功');
  1187. INSERT INTO `h_admin_operate_log` VALUES (28, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/mp.game.game/index.html', 1640002271, 'GET:', '查询成功');
  1188. INSERT INTO `h_admin_operate_log` VALUES (29, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/mp.member.member/index.html', 1640002271, 'GET:', '查询成功');
  1189. INSERT INTO `h_admin_operate_log` VALUES (30, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/wap.base/index.html', 1640002272, 'GET:', '查询成功');
  1190. INSERT INTO `h_admin_operate_log` VALUES (31, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/mp.agent.game/index.html', 1640002272, 'GET:', '查询成功');
  1191. INSERT INTO `h_admin_operate_log` VALUES (32, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/data.ltv/index.html', 1640002273, 'GET:', '查询成功');
  1192. INSERT INTO `h_admin_operate_log` VALUES (33, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/financial.order/index.html', 1640002273, 'GET:', '查询成功');
  1193. INSERT INTO `h_admin_operate_log` VALUES (34, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/mp.mpdata.data/hour.html', 1640002274, 'GET:', '查询成功');
  1194. INSERT INTO `h_admin_operate_log` VALUES (35, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/rbac/index.html', 1640002275, 'GET:', '查询成功');
  1195. INSERT INTO `h_admin_operate_log` VALUES (36, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/mp.game.game/index.html', 1640002276, 'GET:', '查询成功');
  1196. INSERT INTO `h_admin_operate_log` VALUES (37, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/mp.member.member/index.html', 1640002276, 'GET:', '查询成功');
  1197. INSERT INTO `h_admin_operate_log` VALUES (38, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/mp.game.game/index.html', 1640002276, 'GET:', '查询成功');
  1198. INSERT INTO `h_admin_operate_log` VALUES (39, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/mp.member.member/index.html', 1640002277, 'GET:', '查询成功');
  1199. INSERT INTO `h_admin_operate_log` VALUES (40, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/mp.game.game/index.html', 1640002277, 'GET:', '查询成功');
  1200. INSERT INTO `h_admin_operate_log` VALUES (41, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/mp.member.member/index.html', 1640002278, 'GET:', '查询成功');
  1201. INSERT INTO `h_admin_operate_log` VALUES (42, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/mp.game.game/index.html', 1640002278, 'GET:', '查询成功');
  1202. INSERT INTO `h_admin_operate_log` VALUES (43, 0, '', 1, '111.7.100.25', '中国|河南|驻马店||411700', 'http://mpadmin.hzshengmel.com/admin/public/login.html', 1640034813, 'GET:', '非法登录!');
  1203. INSERT INTO `h_admin_operate_log` VALUES (44, 0, '', 2, '111.7.100.25', '中国|河南|驻马店||411700', 'http://mpadmin.hzshengmel.com/admin/public/login.html', 1640034888, 'GET:', '查询成功');
  1204. INSERT INTO `h_admin_operate_log` VALUES (45, 0, '', 2, '111.7.100.25', '中国|河南|驻马店||411700', 'http://mpadmin.hzshengmel.com/admin/public/login.html', 1640034893, 'GET:', '查询成功');
  1205. INSERT INTO `h_admin_operate_log` VALUES (46, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/index/index.html', 1640071954, 'GET:', '查询成功');
  1206. INSERT INTO `h_admin_operate_log` VALUES (47, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/main/index.html', 1640071954, 'GET:', '查询成功');
  1207. INSERT INTO `h_admin_operate_log` VALUES (48, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/index/index.html', 1640071966, 'GET:', '查询成功');
  1208. INSERT INTO `h_admin_operate_log` VALUES (49, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/main/index.html', 1640071966, 'GET:', '查询成功');
  1209. INSERT INTO `h_admin_operate_log` VALUES (50, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/mp.game.game/index.html', 1640072028, 'GET:', '查询成功');
  1210. INSERT INTO `h_admin_operate_log` VALUES (51, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/mp.member.member/index.html', 1640072029, 'GET:', '查询成功');
  1211. INSERT INTO `h_admin_operate_log` VALUES (52, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/mp.game.game/index.html', 1640072030, 'GET:', '查询成功');
  1212. INSERT INTO `h_admin_operate_log` VALUES (53, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/mp.member.member/index.html', 1640072031, 'GET:', '查询成功');
  1213. INSERT INTO `h_admin_operate_log` VALUES (54, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/wap.base/index.html', 1640072032, 'GET:', '查询成功');
  1214. INSERT INTO `h_admin_operate_log` VALUES (55, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/mp.agent.game/index.html', 1640072033, 'GET:', '查询成功');
  1215. INSERT INTO `h_admin_operate_log` VALUES (56, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/data.ltv/index.html', 1640072034, 'GET:', '查询成功');
  1216. INSERT INTO `h_admin_operate_log` VALUES (57, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/financial.order/index.html', 1640072035, 'GET:', '查询成功');
  1217. INSERT INTO `h_admin_operate_log` VALUES (58, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/mp.mpdata.data/hour.html', 1640072037, 'GET:', '查询成功');
  1218. INSERT INTO `h_admin_operate_log` VALUES (59, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/rbac/index.html', 1640072037, 'GET:', '查询成功');
  1219. INSERT INTO `h_admin_operate_log` VALUES (60, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/mp.game.game/index.html', 1640072038, 'GET:', '查询成功');
  1220. INSERT INTO `h_admin_operate_log` VALUES (61, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/rbac/index.html', 1640072039, 'GET:', '查询成功');
  1221. INSERT INTO `h_admin_operate_log` VALUES (62, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/rbac/index.html', 1640072040, 'GET:', '查询成功');
  1222. INSERT INTO `h_admin_operate_log` VALUES (63, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/user/index.html', 1640072041, 'GET:', '查询成功');
  1223. INSERT INTO `h_admin_operate_log` VALUES (64, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/setting/password.html', 1640072043, 'GET:', '查询成功');
  1224. INSERT INTO `h_admin_operate_log` VALUES (65, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/record.record/loginindex.html', 1640072045, 'GET:', '查询成功');
  1225. INSERT INTO `h_admin_operate_log` VALUES (66, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/record.record/actionindex.html', 1640072046, 'GET:', '查询成功');
  1226. INSERT INTO `h_admin_operate_log` VALUES (67, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/record.record/loginindex.html', 1640072047, 'GET:', '查询成功');
  1227. INSERT INTO `h_admin_operate_log` VALUES (68, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/record.record/actionindex.html', 1640072052, 'GET:', '查询成功');
  1228. INSERT INTO `h_admin_operate_log` VALUES (69, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/record.record/actionindex.html?id=1&start_time=2021-11-21&end_time=2021-12-21&page=3', 1640072059, 'GET:id=1&start_time=2021-11-21&end_time=2021-12-21&page=3', '查询成功');
  1229. INSERT INTO `h_admin_operate_log` VALUES (70, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/mp.weixin.wx/open.html', 1640072070, 'GET:', '查询成功');
  1230. INSERT INTO `h_admin_operate_log` VALUES (71, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/mp.weixin.wx/index.html', 1640072071, 'GET:', '查询成功');
  1231. INSERT INTO `h_admin_operate_log` VALUES (72, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/mp.weixin.wx/mini.html', 1640072072, 'GET:', '查询成功');
  1232. INSERT INTO `h_admin_operate_log` VALUES (73, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/mp.weixin.wx/merchant.html', 1640072073, 'GET:', '查询成功');
  1233. INSERT INTO `h_admin_operate_log` VALUES (74, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/rbac/index.html', 1640072075, 'GET:', '查询成功');
  1234. INSERT INTO `h_admin_operate_log` VALUES (75, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/user/index.html', 1640072075, 'GET:', '查询成功');
  1235. INSERT INTO `h_admin_operate_log` VALUES (76, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/index/index.html', 1640072401, 'GET:', '查询成功');
  1236. INSERT INTO `h_admin_operate_log` VALUES (77, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/main/index.html', 1640072401, 'GET:', '查询成功');
  1237. INSERT INTO `h_admin_operate_log` VALUES (78, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/index/index.html', 1640072764, 'GET:', '查询成功');
  1238. INSERT INTO `h_admin_operate_log` VALUES (79, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/main/index.html', 1640072765, 'GET:', '查询成功');
  1239. INSERT INTO `h_admin_operate_log` VALUES (80, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/wap.base/index.html', 1640072805, 'GET:', '查询成功');
  1240. INSERT INTO `h_admin_operate_log` VALUES (81, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/wap.base/memedit.html', 1640072807, 'GET:', '查询成功');
  1241. INSERT INTO `h_admin_operate_log` VALUES (82, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/conf.payway/index.html', 1640072808, 'GET:', '查询成功');
  1242. INSERT INTO `h_admin_operate_log` VALUES (83, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/article.notice/index.html', 1640072810, 'GET:', '查询成功');
  1243. INSERT INTO `h_admin_operate_log` VALUES (84, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/article.activity/index.html', 1640072810, 'GET:', '查询成功');
  1244. INSERT INTO `h_admin_operate_log` VALUES (85, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/article.walkthrough/index.html', 1640072811, 'GET:', '查询成功');
  1245. INSERT INTO `h_admin_operate_log` VALUES (86, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/article.notice/index.html', 1640072811, 'GET:', '查询成功');
  1246. INSERT INTO `h_admin_operate_log` VALUES (87, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/article.notice/index.html', 1640072812, 'GET:', '查询成功');
  1247. INSERT INTO `h_admin_operate_log` VALUES (88, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/article.walkthrough/index.html', 1640072813, 'GET:', '查询成功');
  1248. INSERT INTO `h_admin_operate_log` VALUES (89, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/article.activity/index.html', 1640072813, 'GET:', '查询成功');
  1249. INSERT INTO `h_admin_operate_log` VALUES (90, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/rbac/index.html', 1640072816, 'GET:', '查询成功');
  1250. INSERT INTO `h_admin_operate_log` VALUES (91, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/mp.mpdata.data/hour.html', 1640072816, 'GET:', '查询成功');
  1251. INSERT INTO `h_admin_operate_log` VALUES (92, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/mp.mpdata.data/index.html', 1640072818, 'GET:', '查询成功');
  1252. INSERT INTO `h_admin_operate_log` VALUES (93, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/mp.mpdata.data/hour.html', 1640072818, 'GET:', '查询成功');
  1253. INSERT INTO `h_admin_operate_log` VALUES (94, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/rbac/index.html', 1640072864, 'GET:', '查询成功');
  1254. INSERT INTO `h_admin_operate_log` VALUES (95, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/rbac/index.html', 1640072866, 'GET:', '查询成功');
  1255. INSERT INTO `h_admin_operate_log` VALUES (96, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/user/index.html', 1640072866, 'GET:', '查询成功');
  1256. INSERT INTO `h_admin_operate_log` VALUES (97, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/rbac/index.html', 1640072867, 'GET:', '查询成功');
  1257. INSERT INTO `h_admin_operate_log` VALUES (98, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/user/index.html', 1640072868, 'GET:', '查询成功');
  1258. INSERT INTO `h_admin_operate_log` VALUES (99, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/rbac/index.html', 1640072868, 'GET:', '查询成功');
  1259. INSERT INTO `h_admin_operate_log` VALUES (100, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/user/index.html', 1640072868, 'GET:', '查询成功');
  1260. INSERT INTO `h_admin_operate_log` VALUES (101, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/rbac/index.html', 1640072869, 'GET:', '查询成功');
  1261. INSERT INTO `h_admin_operate_log` VALUES (102, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/user/index.html', 1640072870, 'GET:', '查询成功');
  1262. INSERT INTO `h_admin_operate_log` VALUES (103, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/setting/password.html', 1640072871, 'GET:', '查询成功');
  1263. INSERT INTO `h_admin_operate_log` VALUES (104, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/setting/paypwd.html', 1640072872, 'GET:', '查询成功');
  1264. INSERT INTO `h_admin_operate_log` VALUES (105, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/setting/password.html', 1640072873, 'GET:', '查询成功');
  1265. INSERT INTO `h_admin_operate_log` VALUES (106, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/setting/paypwd.html', 1640072873, 'GET:', '查询成功');
  1266. INSERT INTO `h_admin_operate_log` VALUES (107, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/setting/password.html', 1640072874, 'GET:', '查询成功');
  1267. INSERT INTO `h_admin_operate_log` VALUES (108, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/setting/paypwd.html', 1640072875, 'GET:', '查询成功');
  1268. INSERT INTO `h_admin_operate_log` VALUES (109, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/setting/password.html', 1640072875, 'GET:', '查询成功');
  1269. INSERT INTO `h_admin_operate_log` VALUES (110, 1, 'admin', 2, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/setting/paypwd.html', 1640072876, 'GET:', '查询成功');
  1270. INSERT INTO `h_admin_operate_log` VALUES (111, 1, 'admin', 1, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/setting/paypwdpost.html', 1640072888, 'POST:old_password=123456&password=123456&re_password=123456', '原始密码不正确!');
  1271. INSERT INTO `h_admin_operate_log` VALUES (112, 1, 'admin', 1, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/setting/paypwdpost.html', 1640072923, 'POST:old_password=123456&password=123456&re_password=123456', '新密码不能和原始密码相同!');
  1272. INSERT INTO `h_admin_operate_log` VALUES (113, 1, 'admin', 1, '115.193.186.7', '中国|浙江|杭州||330100', 'http://mpadmin.hzshengmel.com/admin/setting/paypwdpost.html', 1640072926, 'POST:old_password=123456&password=123456&re_password=123456', '新密码不能和原始密码相同!');
  1273. -- ----------------------------
  1274. -- Table structure for h_agent_ads_cfg
  1275. -- ----------------------------
  1276. DROP TABLE IF EXISTS `h_agent_ads_cfg`;
  1277. CREATE TABLE `h_agent_ads_cfg` (
  1278. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  1279. `agent_id` int(11) NOT NULL DEFAULT 0 COMMENT '渠道ID',
  1280. `agent_code` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '渠道代码',
  1281. `url_param` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '二维码Url传入的所有参数字段',
  1282. `back_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '回调地址',
  1283. `key` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '签名key',
  1284. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  1285. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间',
  1286. PRIMARY KEY (`id`) USING BTREE,
  1287. INDEX `qd_agent_index`(`agent_id`) USING BTREE
  1288. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '渠道二维码倒量配置' ROW_FORMAT = DYNAMIC;
  1289. -- ----------------------------
  1290. -- Records of h_agent_ads_cfg
  1291. -- ----------------------------
  1292. -- ----------------------------
  1293. -- Table structure for h_agent_cpa_log
  1294. -- ----------------------------
  1295. DROP TABLE IF EXISTS `h_agent_cpa_log`;
  1296. CREATE TABLE `h_agent_cpa_log` (
  1297. `id` int(11) NOT NULL AUTO_INCREMENT,
  1298. `order_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '订单号',
  1299. `parent_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '渠道ID',
  1300. `agent_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '渠道ID',
  1301. `app_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '游戏ID',
  1302. `mem_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '玩家ID',
  1303. `ip` char(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '注册IP',
  1304. `agent_cpa` decimal(20, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '渠道cpa',
  1305. `parent_cpa` decimal(20, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '渠道cpa',
  1306. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  1307. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间',
  1308. PRIMARY KEY (`id`) USING BTREE,
  1309. INDEX `acl_mem_index`(`mem_id`) USING BTREE,
  1310. INDEX `acl_ip_index`(`ip`) USING BTREE
  1311. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '渠道cpa量记录表' ROW_FORMAT = DYNAMIC;
  1312. -- ----------------------------
  1313. -- Records of h_agent_cpa_log
  1314. -- ----------------------------
  1315. -- ----------------------------
  1316. -- Table structure for h_agent_cpa_log_switch
  1317. -- ----------------------------
  1318. DROP TABLE IF EXISTS `h_agent_cpa_log_switch`;
  1319. CREATE TABLE `h_agent_cpa_log_switch` (
  1320. `id` int(11) NOT NULL AUTO_INCREMENT,
  1321. `order_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '订单号',
  1322. `parent_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '渠道ID',
  1323. `agent_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '渠道ID',
  1324. `app_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '游戏ID',
  1325. `mem_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '玩家ID',
  1326. `ip` char(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '注册IP',
  1327. `agent_cpa` decimal(20, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '渠道cpa',
  1328. `parent_cpa` decimal(20, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '渠道cpa',
  1329. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  1330. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间',
  1331. PRIMARY KEY (`id`) USING BTREE,
  1332. INDEX `acl_mem_index`(`mem_id`) USING BTREE,
  1333. INDEX `acl_ip_index`(`ip`) USING BTREE
  1334. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '渠道cpa量记录表' ROW_FORMAT = Dynamic;
  1335. -- ----------------------------
  1336. -- Records of h_agent_cpa_log_switch
  1337. -- ----------------------------
  1338. -- ----------------------------
  1339. -- Table structure for h_agent_ext
  1340. -- ----------------------------
  1341. DROP TABLE IF EXISTS `h_agent_ext`;
  1342. CREATE TABLE `h_agent_ext` (
  1343. `agent_id` int(11) NOT NULL DEFAULT 0 COMMENT '渠道ID',
  1344. `history_user_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '到当日历史玩家人数',
  1345. `active_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '游戏激活数',
  1346. `down_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '下载数',
  1347. `real_down_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '真实下载数',
  1348. `user_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '活跃玩家数量',
  1349. `ip_cnt` int(11) NOT NULL DEFAULT 0 COMMENT 'IP数量',
  1350. `reg_device_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '新增设备数',
  1351. `reg_ip_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '注册IP数',
  1352. `reg_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '注册玩家数',
  1353. `pay_user_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '付费玩家数',
  1354. `first_pay_user_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '首付人数',
  1355. `order_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '成功订单数',
  1356. `fail_order_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '失败订单数',
  1357. `un_order_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '待支付订单数',
  1358. `reg_order_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '注册订单数',
  1359. `reg_pay_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '新增即付费人数',
  1360. `sum_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '充值金额',
  1361. `first_pay_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '首付金额',
  1362. `first_pay_sum_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '首付当日总额',
  1363. `reg_sum_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '新增即付总额',
  1364. `sum_real_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '实际支付金额',
  1365. `share_total` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '总分成',
  1366. `own_share` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '自已产生的收益',
  1367. `frozen_amount` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '冻结金额',
  1368. `share_remain` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '余额',
  1369. `ptb_total` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '平台币总额',
  1370. `frozen_ptb` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '冻结平台币',
  1371. `ptb_remain` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '平台币余额',
  1372. `click_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '点击数',
  1373. `page_down_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '落地页点击数',
  1374. PRIMARY KEY (`agent_id`) USING BTREE,
  1375. INDEX `ae_remain_index`(`share_total`) USING BTREE
  1376. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '渠道扩展表' ROW_FORMAT = DYNAMIC;
  1377. -- ----------------------------
  1378. -- Records of h_agent_ext
  1379. -- ----------------------------
  1380. -- ----------------------------
  1381. -- Table structure for h_agent_game
  1382. -- ----------------------------
  1383. DROP TABLE IF EXISTS `h_agent_game`;
  1384. CREATE TABLE `h_agent_game` (
  1385. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'id',
  1386. `agent_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '渠道ID',
  1387. `app_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '游戏ID',
  1388. `agent_game` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'default' COMMENT '渠道标识',
  1389. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  1390. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间',
  1391. `cpa_price` float NOT NULL DEFAULT 0 COMMENT 'cpa价格',
  1392. `down_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '下载数量',
  1393. `install_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '安装数量',
  1394. `reg_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '通过此游戏注册数量',
  1395. `user_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '此渠道玩此游戏玩家数量',
  1396. `status` tinyint(2) NOT NULL DEFAULT 1 COMMENT '4 待审核 1 待出包 2 已出包 3 出包失败',
  1397. `is_delete` tinyint(2) NOT NULL DEFAULT 2 COMMENT '1 伪删除 2 正常',
  1398. `delete_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '删除时间',
  1399. `sum_money` decimal(12, 2) NOT NULL DEFAULT 0.00 COMMENT '充值订单金额,必须大于零',
  1400. `sum_real_money` decimal(12, 2) NOT NULL DEFAULT 0.00 COMMENT '实际支付金额',
  1401. `sum_rebate_amount` decimal(12, 2) NOT NULL DEFAULT 0.00 COMMENT '返利数量 默认为0',
  1402. `sum_agent_gain` decimal(12, 2) NOT NULL DEFAULT 0.00 COMMENT '渠道总所得',
  1403. `package_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '包地址',
  1404. `icon` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'logo',
  1405. `mobile_icon` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '修复图标',
  1406. `is_switch` tinyint(4) UNSIGNED NOT NULL DEFAULT 2 COMMENT '是否切量1 切 2不切',
  1407. PRIMARY KEY (`id`) USING BTREE,
  1408. UNIQUE INDEX `ag_ag_unique`(`agent_game`) USING BTREE,
  1409. UNIQUE INDEX `agent_app`(`agent_id`, `app_id`) USING BTREE,
  1410. INDEX `appid`(`app_id`) USING BTREE
  1411. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '代理游戏表' ROW_FORMAT = DYNAMIC;
  1412. -- ----------------------------
  1413. -- Records of h_agent_game
  1414. -- ----------------------------
  1415. -- ----------------------------
  1416. -- Table structure for h_agent_game_date_cost
  1417. -- ----------------------------
  1418. DROP TABLE IF EXISTS `h_agent_game_date_cost`;
  1419. CREATE TABLE `h_agent_game_date_cost` (
  1420. `id` int(11) NOT NULL AUTO_INCREMENT,
  1421. `agent_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '渠道ID',
  1422. `app_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '游戏ID',
  1423. `date` date NOT NULL COMMENT '日期',
  1424. `cost` decimal(12, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '成本',
  1425. `create_time` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '创建时间',
  1426. `update_time` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
  1427. PRIMARY KEY (`id`) USING BTREE,
  1428. UNIQUE INDEX `agent_game_date_unique`(`agent_id`, `app_id`, `date`) USING BTREE,
  1429. INDEX `gad_app_index`(`app_id`) USING BTREE,
  1430. INDEX `gad_agent_index`(`agent_id`) USING BTREE,
  1431. INDEX `gad_date_index`(`date`) USING BTREE
  1432. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '游戏渠道每日成本表' ROW_FORMAT = DYNAMIC;
  1433. -- ----------------------------
  1434. -- Records of h_agent_game_date_cost
  1435. -- ----------------------------
  1436. -- ----------------------------
  1437. -- Table structure for h_agent_game_rate
  1438. -- ----------------------------
  1439. DROP TABLE IF EXISTS `h_agent_game_rate`;
  1440. CREATE TABLE `h_agent_game_rate` (
  1441. `ag_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '对应于agent_game表中的id',
  1442. `agent_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '渠道ID',
  1443. `app_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '游戏ID',
  1444. `agent_rebate` float(10, 4) NOT NULL DEFAULT 0.0000 COMMENT '一级渠道返点比例',
  1445. `sub_agent_rebate` float(10, 4) NOT NULL DEFAULT 0.0000 COMMENT '二级渠道返点比例',
  1446. `agent_rate` float(5, 4) NOT NULL DEFAULT 1.0000 COMMENT '渠道分成比例',
  1447. `sub_agent_rate` float(5, 4) NOT NULL DEFAULT 1.0000 COMMENT '下级渠道分成比例',
  1448. `benefit_type` tinyint(4) NOT NULL DEFAULT 0 COMMENT '优惠类型,0 无优惠 1 折扣 2 返利',
  1449. `mem_rate` float(5, 4) NOT NULL DEFAULT 1.0000 COMMENT '玩家折扣比例',
  1450. `first_mem_rate` float(5, 4) NOT NULL DEFAULT 1.0000 COMMENT '玩家首充折扣比例',
  1451. `mem_rebate` float(10, 4) NOT NULL DEFAULT 0.0000 COMMENT '玩家返利比例',
  1452. `first_mem_rebate` float(10, 4) NOT NULL DEFAULT 0.0000 COMMENT '玩家首充返利比例',
  1453. `mem_agent_reward` decimal(20, 2) NOT NULL DEFAULT 0.00 COMMENT '渠道奖励',
  1454. `mem_reward` decimal(20, 2) NOT NULL DEFAULT 0.00 COMMENT '玩家奖励',
  1455. `agent_benefit_type` tinyint(4) UNSIGNED NOT NULL DEFAULT 2 COMMENT '渠道分成模式 1 cpa 2 cps',
  1456. `agent_reward` decimal(20, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '渠道cpa单价',
  1457. `sub_agent_reward` decimal(20, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '二级渠道cpa单价',
  1458. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  1459. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间',
  1460. `switch_rate` float(5, 4) UNSIGNED NOT NULL DEFAULT 0.0000 COMMENT '渠道CPA切量比例',
  1461. `cpsa_rebate` float(5, 4) UNSIGNED NOT NULL DEFAULT 0.0000 COMMENT 'cpsa返点',
  1462. `gp_agent_rebate` float(5, 4) NOT NULL DEFAULT 0.0000 COMMENT '三级渠道返点比例',
  1463. `gp_agent_rate` float(5, 4) NOT NULL DEFAULT 1.0000 COMMENT '三级渠道分成比例',
  1464. `promote_switch` tinyint(4) UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否可推广游戏 1 审核 2 可推广 3 不可推广',
  1465. PRIMARY KEY (`ag_id`) USING BTREE,
  1466. UNIQUE INDEX `agent_app`(`agent_id`, `app_id`) USING BTREE,
  1467. INDEX `appid`(`app_id`) USING BTREE
  1468. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '渠道游戏折扣返利表' ROW_FORMAT = DYNAMIC;
  1469. -- ----------------------------
  1470. -- Records of h_agent_game_rate
  1471. -- ----------------------------
  1472. -- ----------------------------
  1473. -- Table structure for h_agent_game_switch
  1474. -- ----------------------------
  1475. DROP TABLE IF EXISTS `h_agent_game_switch`;
  1476. CREATE TABLE `h_agent_game_switch` (
  1477. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'id',
  1478. `app_id` int(11) NOT NULL DEFAULT 0 COMMENT '游戏id',
  1479. `agent_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '渠道id',
  1480. `start_time` time NOT NULL DEFAULT '00:00:00' COMMENT '切换时间段开始',
  1481. `end_time` time NOT NULL DEFAULT '23:59:59' COMMENT '切换时间段结束',
  1482. `start_ip` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '切换ip段开始',
  1483. `end_ip` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '切换ip段结束',
  1484. `is_first` tinyint(1) NOT NULL DEFAULT 1 COMMENT '是否首冲不切换 1切换 2不切换 ',
  1485. `price` double(12, 2) NOT NULL DEFAULT 0.00 COMMENT '最低切换金额',
  1486. `system` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '3,4' COMMENT '切换的操作系统',
  1487. `combat_num_mini` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '战力区间最小值',
  1488. `combat_num_max` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '战力区间最大值',
  1489. `ip_white` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'IP白名单',
  1490. `area` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '地区切换',
  1491. `money` decimal(20, 2) NOT NULL DEFAULT 0.00 COMMENT '累计充值最小值',
  1492. `mem_id` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '玩家白名单',
  1493. PRIMARY KEY (`id`) USING BTREE,
  1494. UNIQUE INDEX `ags_app_agent_index`(`app_id`, `agent_id`) USING BTREE
  1495. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '渠道游戏切量条件表' ROW_FORMAT = Dynamic;
  1496. -- ----------------------------
  1497. -- Records of h_agent_game_switch
  1498. -- ----------------------------
  1499. -- ----------------------------
  1500. -- Table structure for h_agent_man
  1501. -- ----------------------------
  1502. DROP TABLE IF EXISTS `h_agent_man`;
  1503. CREATE TABLE `h_agent_man` (
  1504. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  1505. `agent_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '渠道ID',
  1506. `type` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'bank' COMMENT 'bank alipay wxpay',
  1507. `link_man` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '联系人',
  1508. `bankname` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '银行名称',
  1509. `branchname` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '分行名称',
  1510. `cardholder` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '持卡人',
  1511. `banknum` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '卡号',
  1512. PRIMARY KEY (`id`) USING BTREE,
  1513. UNIQUE INDEX `am_agent_type_unique`(`agent_id`, `type`) USING BTREE,
  1514. INDEX `am_type_index`(`type`) USING BTREE
  1515. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '代理结算信息' ROW_FORMAT = DYNAMIC;
  1516. -- ----------------------------
  1517. -- Records of h_agent_man
  1518. -- ----------------------------
  1519. -- ----------------------------
  1520. -- Table structure for h_agent_order
  1521. -- ----------------------------
  1522. DROP TABLE IF EXISTS `h_agent_order`;
  1523. CREATE TABLE `h_agent_order` (
  1524. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  1525. `order_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '订单号',
  1526. `mem_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '充值用户',
  1527. `from_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '充值人员ID 渠道有 玩家充值无',
  1528. `app_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '游戏ID',
  1529. `amount` double(12, 2) NOT NULL DEFAULT 0.00 COMMENT '充值订单金额,必须大于零',
  1530. `real_amount` double(12, 2) NOT NULL DEFAULT 0.00 COMMENT '实际支付金额',
  1531. `rebate_cnt` double(12, 2) NOT NULL DEFAULT 0.00 COMMENT '返利数量 默认为0',
  1532. `agent_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '渠道ID',
  1533. `agent_rate` double(5, 4) NOT NULL DEFAULT 1.0000 COMMENT '渠道折扣',
  1534. `agent_rebate` double(5, 4) NOT NULL DEFAULT 1.0000 COMMENT '渠道返点',
  1535. `agent_gain` double(12, 2) NOT NULL DEFAULT 0.00 COMMENT '渠道所得',
  1536. `flag` tinyint(11) NULL DEFAULT 1 COMMENT '1 玩家游戏充值 2 玩家平台币充值 3 玩家游戏币充值 4 下级渠道平台币充值',
  1537. `parent_id` int(11) NOT NULL DEFAULT 0,
  1538. `parent_rate` double(5, 4) NOT NULL DEFAULT 1.0000 COMMENT '服务器折扣',
  1539. `parent_rebate` double(5, 4) NOT NULL DEFAULT 1.0000 COMMENT '一级渠道返点',
  1540. `parent_gain` double(12, 2) NOT NULL DEFAULT 0.00 COMMENT '父渠道收益',
  1541. `status` tinyint(2) NOT NULL DEFAULT 1 COMMENT '结算标志,1为待结算,2为成功,3为失败',
  1542. `payway` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '充值类型',
  1543. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '充值时间',
  1544. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间',
  1545. `remark` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '订单成功备注信息, 支付通道订单号',
  1546. PRIMARY KEY (`id`) USING BTREE,
  1547. UNIQUE INDEX `orderid_UNIQUE`(`order_id`, `agent_id`) USING BTREE,
  1548. INDEX `createtime`(`create_time`) USING BTREE,
  1549. INDEX `agent_idindex`(`agent_id`) USING BTREE,
  1550. INDEX `mem_idindex`(`mem_id`) USING BTREE,
  1551. INDEX `appidindex`(`app_id`) USING BTREE
  1552. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '渠道分成订单表' ROW_FORMAT = DYNAMIC;
  1553. -- ----------------------------
  1554. -- Records of h_agent_order
  1555. -- ----------------------------
  1556. -- ----------------------------
  1557. -- Table structure for h_agent_rate
  1558. -- ----------------------------
  1559. DROP TABLE IF EXISTS `h_agent_rate`;
  1560. CREATE TABLE `h_agent_rate` (
  1561. `agent_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '渠道ID',
  1562. `agent_rate` float(5, 4) NOT NULL DEFAULT 1.0000 COMMENT '渠道分成比例',
  1563. `sub_agent_rate` float(5, 4) NOT NULL DEFAULT 1.0000 COMMENT '下级渠道分成比例',
  1564. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  1565. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间',
  1566. PRIMARY KEY (`agent_id`) USING BTREE
  1567. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '渠道平台币折扣表' ROW_FORMAT = DYNAMIC;
  1568. -- ----------------------------
  1569. -- Records of h_agent_rate
  1570. -- ----------------------------
  1571. -- ----------------------------
  1572. -- Table structure for h_asset
  1573. -- ----------------------------
  1574. DROP TABLE IF EXISTS `h_asset`;
  1575. CREATE TABLE `h_asset` (
  1576. `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
  1577. `user_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '用户id',
  1578. `file_size` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '文件大小,单位B',
  1579. `create_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '上传时间',
  1580. `status` tinyint(3) UNSIGNED NOT NULL DEFAULT 1 COMMENT '状态;1:可用,0:不可用',
  1581. `download_times` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '下载次数',
  1582. `file_key` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '文件惟一码',
  1583. `filename` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '文件名',
  1584. `file_path` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '文件路径,相对于upload目录,可以为url',
  1585. `file_md5` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '文件md5值',
  1586. `file_sha1` varchar(40) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '',
  1587. `suffix` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '文件后缀名,不包括点',
  1588. `more` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '其它详细信息,JSON格式',
  1589. PRIMARY KEY (`id`) USING BTREE
  1590. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '资源表' ROW_FORMAT = DYNAMIC;
  1591. -- ----------------------------
  1592. -- Records of h_asset
  1593. -- ----------------------------
  1594. -- ----------------------------
  1595. -- Table structure for h_auth_access
  1596. -- ----------------------------
  1597. DROP TABLE IF EXISTS `h_auth_access`;
  1598. CREATE TABLE `h_auth_access` (
  1599. `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
  1600. `role_id` int(10) UNSIGNED NOT NULL COMMENT '角色',
  1601. `rule_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '规则唯一英文标识,全小写',
  1602. `type` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '权限规则分类,请加应用前缀,如admin_',
  1603. PRIMARY KEY (`id`) USING BTREE,
  1604. INDEX `role_id`(`role_id`) USING BTREE,
  1605. INDEX `rule_name`(`rule_name`) USING BTREE
  1606. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '权限授权表' ROW_FORMAT = DYNAMIC;
  1607. -- ----------------------------
  1608. -- Records of h_auth_access
  1609. -- ----------------------------
  1610. -- ----------------------------
  1611. -- Table structure for h_auth_rule
  1612. -- ----------------------------
  1613. DROP TABLE IF EXISTS `h_auth_rule`;
  1614. CREATE TABLE `h_auth_rule` (
  1615. `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '规则id,自增主键',
  1616. `status` tinyint(3) UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否有效(0:无效,1:有效)',
  1617. `app` varchar(15) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '规则所属module',
  1618. `type` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '权限规则分类,请加应用前缀,如admin_',
  1619. `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '规则唯一英文标识,全小写',
  1620. `param` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '额外url参数',
  1621. `title` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '规则描述',
  1622. `condition` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '规则附加条件',
  1623. PRIMARY KEY (`id`) USING BTREE,
  1624. UNIQUE INDEX `name`(`name`) USING BTREE,
  1625. INDEX `module`(`app`, `status`, `type`) USING BTREE
  1626. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '权限规则表' ROW_FORMAT = DYNAMIC;
  1627. -- ----------------------------
  1628. -- Records of h_auth_rule
  1629. -- ----------------------------
  1630. -- ----------------------------
  1631. -- Table structure for h_awards
  1632. -- ----------------------------
  1633. DROP TABLE IF EXISTS `h_awards`;
  1634. CREATE TABLE `h_awards` (
  1635. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '奖品id',
  1636. `act_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '活动ID',
  1637. `award_name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '奖品名称',
  1638. `rate` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '奖品概率',
  1639. `total_cnt` smallint(5) UNSIGNED NOT NULL DEFAULT 0 COMMENT '总数量',
  1640. `remain_cnt` smallint(5) UNSIGNED NOT NULL DEFAULT 0 COMMENT '剩余数量',
  1641. `goods_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '商品ID',
  1642. `limit_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '限制次数',
  1643. `list_order` float NOT NULL DEFAULT 0 COMMENT '排序',
  1644. `is_delete` tinyint(2) NULL DEFAULT 2 COMMENT '2 正常 1 删除',
  1645. `delete_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '删除时间',
  1646. `create_time` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '创建时间',
  1647. `update_time` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '最后更新时间',
  1648. PRIMARY KEY (`id`) USING BTREE,
  1649. INDEX `awards_remain_index`(`remain_cnt`) USING BTREE,
  1650. INDEX `awards_list_index`(`list_order`) USING BTREE
  1651. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '抽奖奖品表' ROW_FORMAT = DYNAMIC;
  1652. -- ----------------------------
  1653. -- Records of h_awards
  1654. -- ----------------------------
  1655. -- ----------------------------
  1656. -- Table structure for h_category
  1657. -- ----------------------------
  1658. DROP TABLE IF EXISTS `h_category`;
  1659. CREATE TABLE `h_category` (
  1660. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '标签ID',
  1661. `name` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '标签名',
  1662. `game_cnt` int(11) NULL DEFAULT 0 COMMENT '游戏数量',
  1663. `image` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '图标,用于手机显示',
  1664. `bg_color` varchar(8) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '000000' COMMENT '标签背景颜色',
  1665. `font_color` varchar(8) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT 'FFFFFF' COMMENT '字体颜色',
  1666. `status` tinyint(2) NOT NULL DEFAULT 2 COMMENT '状态 2为启用 1 为禁用',
  1667. `parent_id` int(11) NOT NULL DEFAULT 0 COMMENT '父ID',
  1668. `list_order` smallint(6) UNSIGNED NOT NULL DEFAULT 0 COMMENT '排序ID',
  1669. `type` tinyint(1) NOT NULL DEFAULT 2 COMMENT '标签类型 1 为标签 2为游戏类型 4 为 首页标记',
  1670. `item_cnt` tinyint(2) NOT NULL DEFAULT 4 COMMENT '首页每页显示个数',
  1671. PRIMARY KEY (`id`) USING BTREE
  1672. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '分类表' ROW_FORMAT = DYNAMIC;
  1673. -- ----------------------------
  1674. -- Records of h_category
  1675. -- ----------------------------
  1676. -- ----------------------------
  1677. -- Table structure for h_channel
  1678. -- ----------------------------
  1679. DROP TABLE IF EXISTS `h_channel`;
  1680. CREATE TABLE `h_channel` (
  1681. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'id',
  1682. `channel_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '平台名称',
  1683. `company_name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '公司名称',
  1684. `link_man` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '联系人',
  1685. `mobile` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '手机号',
  1686. `position` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '职位',
  1687. `is_delete` tinyint(2) NOT NULL DEFAULT 1 COMMENT '1 伪删除 2 正常',
  1688. `delete_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '删除时间',
  1689. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  1690. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间',
  1691. PRIMARY KEY (`id`) USING BTREE
  1692. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '渠道表' ROW_FORMAT = DYNAMIC;
  1693. -- ----------------------------
  1694. -- Records of h_channel
  1695. -- ----------------------------
  1696. -- ----------------------------
  1697. -- Table structure for h_comment
  1698. -- ----------------------------
  1699. DROP TABLE IF EXISTS `h_comment`;
  1700. CREATE TABLE `h_comment` (
  1701. `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
  1702. `parent_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '被回复的评论id',
  1703. `mem_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '发表评论的用户id',
  1704. `to_mem_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '被评论的用户id',
  1705. `object_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '评论内容 id',
  1706. `update_time` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '评论时间',
  1707. `create_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '评论时间',
  1708. `delete_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '删除时间',
  1709. `status` tinyint(3) UNSIGNED NOT NULL DEFAULT 1 COMMENT '状态,1:已审核,0:未审核',
  1710. `type` tinyint(3) UNSIGNED NOT NULL DEFAULT 1 COMMENT '评论类型;1实名评论',
  1711. `table_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '评论内容所在表,不带表前缀',
  1712. `full_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '评论者昵称',
  1713. `email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '评论者邮箱',
  1714. `path` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '层级关系',
  1715. `url` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '原文地址',
  1716. `content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '评论内容',
  1717. `more` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '扩展属性',
  1718. PRIMARY KEY (`id`) USING BTREE,
  1719. INDEX `comment_post_ID`(`object_id`) USING BTREE,
  1720. INDEX `comment_approved_date_gmt`(`status`) USING BTREE,
  1721. INDEX `comment_parent`(`parent_id`) USING BTREE,
  1722. INDEX `table_id_status`(`table_name`, `object_id`, `status`) USING BTREE,
  1723. INDEX `createtime`(`create_time`) USING BTREE
  1724. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '评论表' ROW_FORMAT = DYNAMIC;
  1725. -- ----------------------------
  1726. -- Records of h_comment
  1727. -- ----------------------------
  1728. -- ----------------------------
  1729. -- Table structure for h_country_conf
  1730. -- ----------------------------
  1731. DROP TABLE IF EXISTS `h_country_conf`;
  1732. CREATE TABLE `h_country_conf` (
  1733. `id` int(11) NOT NULL AUTO_INCREMENT,
  1734. `en_code_2` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '二位字母代码(ISO 3166-1 alpha-2)',
  1735. `en_code_3` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '三位字母代码(ISO 3166-1 alpha-3)',
  1736. `en_name_abbr` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '英文简写',
  1737. `en_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '英文全名',
  1738. `cn_name_abbr` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '中文简称',
  1739. `cn_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '中文名',
  1740. `mobile_prefix` int(11) NULL DEFAULT 0 COMMENT '手机区号',
  1741. `area` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '洲/地区',
  1742. `currency_code` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '货币代码',
  1743. `currency_abbr` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '货币符号',
  1744. `currency_cn_name` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '货币中文名称',
  1745. `currency_en_name` varchar(511) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '货币英文名称',
  1746. `dst_time` decimal(10, 2) NOT NULL DEFAULT 0.00 COMMENT '冬令时差',
  1747. `stand_time` decimal(10, 2) NOT NULL DEFAULT 0.00 COMMENT '标准时差',
  1748. `ex_rate_us` decimal(12, 5) NOT NULL DEFAULT 1.00000 COMMENT '对美元汇率',
  1749. `is_delete` tinyint(2) NOT NULL DEFAULT 2 COMMENT '状态 1 不显示 2 显示',
  1750. `delete_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '删除时间',
  1751. `language` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'ar',
  1752. PRIMARY KEY (`id`) USING BTREE,
  1753. INDEX `ch_mp_index`(`mobile_prefix`) USING BTREE
  1754. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '国家配置' ROW_FORMAT = DYNAMIC;
  1755. -- ----------------------------
  1756. -- Records of h_country_conf
  1757. -- ----------------------------
  1758. -- ----------------------------
  1759. -- Table structure for h_cp
  1760. -- ----------------------------
  1761. DROP TABLE IF EXISTS `h_cp`;
  1762. CREATE TABLE `h_cp` (
  1763. `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'id',
  1764. `company_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '公司名称',
  1765. `link_man` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '联系人',
  1766. `mobile` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '手机号',
  1767. `position` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '职位',
  1768. `type` tinyint(3) UNSIGNED NOT NULL DEFAULT 1 COMMENT '1 cp 2 媒体',
  1769. `is_delete` tinyint(4) NOT NULL DEFAULT 1 COMMENT '1 伪删除 2 正常',
  1770. `delete_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '删除时间',
  1771. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  1772. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间',
  1773. PRIMARY KEY (`id`) USING BTREE
  1774. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = 'CP表' ROW_FORMAT = Dynamic;
  1775. -- ----------------------------
  1776. -- Records of h_cp
  1777. -- ----------------------------
  1778. -- ----------------------------
  1779. -- Table structure for h_day
  1780. -- ----------------------------
  1781. DROP TABLE IF EXISTS `h_day`;
  1782. CREATE TABLE `h_day` (
  1783. `id` int(11) NOT NULL AUTO_INCREMENT,
  1784. `date` date NOT NULL COMMENT '日期',
  1785. `history_user_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '到当日历史玩家人数',
  1786. `active_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '游戏激活数',
  1787. `today_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '今日游戏激活数',
  1788. `click_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '落地页点击数',
  1789. `page_down_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '落地页点击数',
  1790. `down_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '下载数',
  1791. `real_down_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '真实下载数',
  1792. `user_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '活跃玩家数量',
  1793. `ip_cnt` int(11) NOT NULL DEFAULT 0 COMMENT 'IP数量',
  1794. `reg_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '注册玩家数',
  1795. `reg_device_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '新增设备数',
  1796. `reg_ip_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '注册IP数',
  1797. `pay_user_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '付费玩家数',
  1798. `first_pay_user_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '首付人数',
  1799. `order_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '成功订单数',
  1800. `fail_order_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '失败订单数',
  1801. `un_order_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '待支付订单数',
  1802. `reg_order_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '注册订单数',
  1803. `reg_pay_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '新增即付费人数',
  1804. `sum_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '充值金额',
  1805. `sum_real_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '自然流水金额',
  1806. `share_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '分成金额',
  1807. `first_pay_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '首付金额',
  1808. `first_pay_sum_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '首付当日总额',
  1809. `reg_sum_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '新增即付总额',
  1810. `reg_real_sum_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '新增即付自然流水总额',
  1811. `day2` int(11) NOT NULL DEFAULT 0 COMMENT '二日留存量',
  1812. `day3` int(11) NOT NULL DEFAULT 0 COMMENT '三日留存量',
  1813. `day4` int(11) NOT NULL DEFAULT 0 COMMENT '四日留存量',
  1814. `day5` int(11) NOT NULL DEFAULT 0 COMMENT '五日留存量',
  1815. `day6` int(11) NOT NULL DEFAULT 0 COMMENT '六日留存量',
  1816. `day7` int(11) NOT NULL DEFAULT 0 COMMENT '七日留存量',
  1817. `day8` int(11) NOT NULL DEFAULT 0 COMMENT '八日留存量',
  1818. `day9` int(11) NOT NULL DEFAULT 0 COMMENT '九日留存量',
  1819. `day10` int(11) NOT NULL DEFAULT 0 COMMENT '十日留存量',
  1820. `day11` int(11) NOT NULL DEFAULT 0 COMMENT '11日留存量',
  1821. `day12` int(11) NOT NULL DEFAULT 0 COMMENT '12日留存量',
  1822. `day13` int(11) NOT NULL DEFAULT 0 COMMENT '13日留存量',
  1823. `day14` int(11) NOT NULL DEFAULT 0 COMMENT '14日留存量',
  1824. `day15` int(11) NOT NULL DEFAULT 0 COMMENT '15日留存量',
  1825. `day21` int(11) NOT NULL DEFAULT 0 COMMENT '21日留存量',
  1826. `day30` int(11) NOT NULL DEFAULT 0 COMMENT '30日留存量',
  1827. `day60` int(11) NOT NULL DEFAULT 0 COMMENT '60日留存量',
  1828. `device_day2` int(11) NOT NULL DEFAULT 0 COMMENT '二日留存量',
  1829. `device_day3` int(11) NOT NULL DEFAULT 0 COMMENT '三日留存量',
  1830. `device_day4` int(11) NOT NULL DEFAULT 0 COMMENT '四日留存量',
  1831. `device_day5` int(11) NOT NULL DEFAULT 0 COMMENT '五日留存量',
  1832. `device_day6` int(11) NOT NULL DEFAULT 0 COMMENT '六日留存量',
  1833. `device_day7` int(11) NOT NULL DEFAULT 0 COMMENT '七日留存量',
  1834. `device_day8` int(11) NOT NULL DEFAULT 0 COMMENT '八日留存量',
  1835. `device_day9` int(11) NOT NULL DEFAULT 0 COMMENT '九日留存量',
  1836. `device_day10` int(11) NOT NULL DEFAULT 0 COMMENT '十日留存量',
  1837. `device_day11` int(11) NOT NULL DEFAULT 0 COMMENT '11日留存量',
  1838. `device_day12` int(11) NOT NULL DEFAULT 0 COMMENT '12日留存量',
  1839. `device_day13` int(11) NOT NULL DEFAULT 0 COMMENT '13日留存量',
  1840. `device_day14` int(11) NOT NULL DEFAULT 0 COMMENT '14日留存量',
  1841. `device_day15` int(11) NOT NULL DEFAULT 0 COMMENT '15日留存量',
  1842. `device_day21` int(11) NOT NULL DEFAULT 0 COMMENT '21日留存量',
  1843. `device_day30` int(11) NOT NULL DEFAULT 0 COMMENT '30日留存量',
  1844. `device_day60` int(11) NOT NULL DEFAULT 0 COMMENT '60日留存量',
  1845. `pay_amount_day2` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '二日留存付费金额',
  1846. `pay_amount_day3` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '三日留存付费金额',
  1847. `pay_amount_day4` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '四日留存付费金额',
  1848. `pay_amount_day5` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '五日留存付费金额',
  1849. `pay_amount_day6` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '六日留存付费金额',
  1850. `pay_amount_day7` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '七日留存付费金额',
  1851. `pay_amount_day8` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '八日留存付费金额',
  1852. `pay_amount_day9` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '九日留存付费金额',
  1853. `pay_amount_day10` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '十日留存付费金额',
  1854. `pay_amount_day11` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '11日留存付费金额',
  1855. `pay_amount_day12` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '12日留存付费金额',
  1856. `pay_amount_day13` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '13日留存付费金额',
  1857. `pay_amount_day14` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '14日留存付费金额',
  1858. `pay_amount_day15` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '15日留存付费金额',
  1859. `pay_amount_day21` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '21日留存付费金额',
  1860. `pay_amount_day30` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '30日留存付费金额',
  1861. `pay_amount_day60` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '60日留存付费金额',
  1862. PRIMARY KEY (`id`) USING BTREE,
  1863. UNIQUE INDEX `d_date_unique`(`date`) USING BTREE
  1864. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '每日统计表' ROW_FORMAT = DYNAMIC;
  1865. -- ----------------------------
  1866. -- Records of h_day
  1867. -- ----------------------------
  1868. -- ----------------------------
  1869. -- Table structure for h_day_agent
  1870. -- ----------------------------
  1871. DROP TABLE IF EXISTS `h_day_agent`;
  1872. CREATE TABLE `h_day_agent` (
  1873. `id` int(11) NOT NULL AUTO_INCREMENT,
  1874. `date` date NOT NULL COMMENT '日期',
  1875. `agent_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '代理ID',
  1876. `history_user_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '到当日历史玩家人数',
  1877. `active_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '游戏激活数',
  1878. `today_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '今日游戏激活数',
  1879. `click_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '落地页点击数',
  1880. `page_down_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '落地页点击数',
  1881. `down_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '下载数',
  1882. `real_down_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '真实下载数',
  1883. `user_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '活跃玩家数量',
  1884. `ip_cnt` int(11) NOT NULL DEFAULT 0 COMMENT 'IP数量',
  1885. `reg_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '注册玩家数',
  1886. `reg_device_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '新增设备数',
  1887. `reg_ip_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '注册IP数',
  1888. `pay_user_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '付费玩家数',
  1889. `first_pay_user_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '首付人数',
  1890. `order_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '成功订单数',
  1891. `fail_order_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '失败订单数',
  1892. `un_order_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '待支付订单数',
  1893. `reg_order_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '注册订单数',
  1894. `reg_pay_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '新增即付费人数',
  1895. `sum_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '充值金额',
  1896. `sum_real_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '自然流水金额',
  1897. `share_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '分成金额',
  1898. `first_pay_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '首付金额',
  1899. `first_pay_sum_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '首付当日总额',
  1900. `reg_sum_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '新增即付总额',
  1901. `reg_real_sum_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '新增即付自然流水总额',
  1902. `day2` int(11) NOT NULL DEFAULT 0 COMMENT '二日留存量',
  1903. `day3` int(11) NOT NULL DEFAULT 0 COMMENT '三日留存量',
  1904. `day4` int(11) NOT NULL DEFAULT 0 COMMENT '四日留存量',
  1905. `day5` int(11) NOT NULL DEFAULT 0 COMMENT '五日留存量',
  1906. `day6` int(11) NOT NULL DEFAULT 0 COMMENT '六日留存量',
  1907. `day7` int(11) NOT NULL DEFAULT 0 COMMENT '七日留存量',
  1908. `day8` int(11) NOT NULL DEFAULT 0 COMMENT '八日留存量',
  1909. `day9` int(11) NOT NULL DEFAULT 0 COMMENT '九日留存量',
  1910. `day10` int(11) NOT NULL DEFAULT 0 COMMENT '十日留存量',
  1911. `day11` int(11) NOT NULL DEFAULT 0 COMMENT '11日留存量',
  1912. `day12` int(11) NOT NULL DEFAULT 0 COMMENT '12日留存量',
  1913. `day13` int(11) NOT NULL DEFAULT 0 COMMENT '13日留存量',
  1914. `day14` int(11) NOT NULL DEFAULT 0 COMMENT '14日留存量',
  1915. `day15` int(11) NOT NULL DEFAULT 0 COMMENT '15日留存量',
  1916. `day21` int(11) NOT NULL DEFAULT 0 COMMENT '21日留存量',
  1917. `day30` int(11) NOT NULL DEFAULT 0 COMMENT '30日留存量',
  1918. `day60` int(11) NOT NULL DEFAULT 0 COMMENT '60日留存量',
  1919. `device_day2` int(11) NOT NULL DEFAULT 0 COMMENT '二日留存量',
  1920. `device_day3` int(11) NOT NULL DEFAULT 0 COMMENT '三日留存量',
  1921. `device_day4` int(11) NOT NULL DEFAULT 0 COMMENT '四日留存量',
  1922. `device_day5` int(11) NOT NULL DEFAULT 0 COMMENT '五日留存量',
  1923. `device_day6` int(11) NOT NULL DEFAULT 0 COMMENT '六日留存量',
  1924. `device_day7` int(11) NOT NULL DEFAULT 0 COMMENT '七日留存量',
  1925. `device_day8` int(11) NOT NULL DEFAULT 0 COMMENT '八日留存量',
  1926. `device_day9` int(11) NOT NULL DEFAULT 0 COMMENT '九日留存量',
  1927. `device_day10` int(11) NOT NULL DEFAULT 0 COMMENT '十日留存量',
  1928. `device_day11` int(11) NOT NULL DEFAULT 0 COMMENT '11日留存量',
  1929. `device_day12` int(11) NOT NULL DEFAULT 0 COMMENT '12日留存量',
  1930. `device_day13` int(11) NOT NULL DEFAULT 0 COMMENT '13日留存量',
  1931. `device_day14` int(11) NOT NULL DEFAULT 0 COMMENT '14日留存量',
  1932. `device_day15` int(11) NOT NULL DEFAULT 0 COMMENT '15日留存量',
  1933. `device_day21` int(11) NOT NULL DEFAULT 0 COMMENT '21日留存量',
  1934. `device_day30` int(11) NOT NULL DEFAULT 0 COMMENT '30日留存量',
  1935. `device_day60` int(11) NOT NULL DEFAULT 0 COMMENT '60日留存量',
  1936. `pay_amount_day2` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '二日留存付费金额',
  1937. `pay_amount_day3` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '三日留存付费金额',
  1938. `pay_amount_day4` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '四日留存付费金额',
  1939. `pay_amount_day5` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '五日留存付费金额',
  1940. `pay_amount_day6` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '六日留存付费金额',
  1941. `pay_amount_day7` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '七日留存付费金额',
  1942. `pay_amount_day8` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '八日留存付费金额',
  1943. `pay_amount_day9` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '九日留存付费金额',
  1944. `pay_amount_day10` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '十日留存付费金额',
  1945. `pay_amount_day11` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '11日留存付费金额',
  1946. `pay_amount_day12` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '12日留存付费金额',
  1947. `pay_amount_day13` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '13日留存付费金额',
  1948. `pay_amount_day14` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '14日留存付费金额',
  1949. `pay_amount_day15` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '15日留存付费金额',
  1950. `pay_amount_day21` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '21日留存付费金额',
  1951. `pay_amount_day30` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '30日留存付费金额',
  1952. `pay_amount_day60` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '60日留存付费金额',
  1953. PRIMARY KEY (`id`) USING BTREE,
  1954. UNIQUE INDEX `dc_date_agent_unique`(`date`, `agent_id`) USING BTREE,
  1955. INDEX `dc_agent_index`(`agent_id`) USING BTREE
  1956. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '每日渠道游戏统计表' ROW_FORMAT = DYNAMIC;
  1957. -- ----------------------------
  1958. -- Records of h_day_agent
  1959. -- ----------------------------
  1960. -- ----------------------------
  1961. -- Table structure for h_day_agent_gain
  1962. -- ----------------------------
  1963. DROP TABLE IF EXISTS `h_day_agent_gain`;
  1964. CREATE TABLE `h_day_agent_gain` (
  1965. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  1966. `date` date NOT NULL DEFAULT '2000-01-01' COMMENT '日期',
  1967. `agent_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '渠道ID',
  1968. `app_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '游戏ID',
  1969. `sum_money` double(12, 2) NOT NULL DEFAULT 0.00 COMMENT '充值订单金额,必须大于零',
  1970. `sum_real_money` double(12, 2) NOT NULL DEFAULT 0.00 COMMENT '实际支付金额',
  1971. `sum_rebate_cnt` double(12, 2) NOT NULL DEFAULT 0.00 COMMENT '返利数量 默认为0',
  1972. `sum_agent_gain` double(12, 2) NOT NULL DEFAULT 0.00 COMMENT '渠道总所得',
  1973. PRIMARY KEY (`id`) USING BTREE,
  1974. UNIQUE INDEX `date_agent_game`(`date`, `agent_id`, `app_id`) USING BTREE,
  1975. INDEX `agentidindex`(`agent_id`) USING BTREE
  1976. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '渠道每日所得表' ROW_FORMAT = DYNAMIC;
  1977. -- ----------------------------
  1978. -- Records of h_day_agent_gain
  1979. -- ----------------------------
  1980. -- ----------------------------
  1981. -- Table structure for h_day_agent_switch
  1982. -- ----------------------------
  1983. DROP TABLE IF EXISTS `h_day_agent_switch`;
  1984. CREATE TABLE `h_day_agent_switch` (
  1985. `id` int(11) NOT NULL AUTO_INCREMENT,
  1986. `date` date NOT NULL COMMENT '日期',
  1987. `agent_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '代理ID',
  1988. `history_user_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '到当日历史玩家人数',
  1989. `active_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '游戏激活数',
  1990. `today_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '今日游戏激活数',
  1991. `click_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '落地页点击数',
  1992. `page_down_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '落地页点击数',
  1993. `down_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '下载数',
  1994. `real_down_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '真实下载数',
  1995. `user_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '活跃玩家数量',
  1996. `ip_cnt` int(11) NOT NULL DEFAULT 0 COMMENT 'IP数量',
  1997. `reg_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '注册玩家数',
  1998. `reg_cnt_show` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '渠道显示注册玩家数',
  1999. `reg_device_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '新增设备数',
  2000. `reg_ip_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '注册IP数',
  2001. `pay_user_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '付费玩家数',
  2002. `first_pay_user_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '首付人数',
  2003. `order_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '成功订单数',
  2004. `fail_order_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '失败订单数',
  2005. `un_order_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '待支付订单数',
  2006. `reg_order_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '注册订单数',
  2007. `reg_pay_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '新增即付费人数',
  2008. `sum_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '充值金额',
  2009. `sum_real_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '自然流水金额',
  2010. `share_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '分成金额',
  2011. `first_pay_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '首付金额',
  2012. `first_pay_sum_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '首付当日总额',
  2013. `reg_sum_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '新增即付总额',
  2014. `reg_real_sum_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '新增即付自然流水总额',
  2015. `day2` int(11) NOT NULL DEFAULT 0 COMMENT '二日留存量',
  2016. `day3` int(11) NOT NULL DEFAULT 0 COMMENT '三日留存量',
  2017. `day4` int(11) NOT NULL DEFAULT 0 COMMENT '四日留存量',
  2018. `day5` int(11) NOT NULL DEFAULT 0 COMMENT '五日留存量',
  2019. `day6` int(11) NOT NULL DEFAULT 0 COMMENT '六日留存量',
  2020. `day7` int(11) NOT NULL DEFAULT 0 COMMENT '七日留存量',
  2021. `day8` int(11) NOT NULL DEFAULT 0 COMMENT '八日留存量',
  2022. `day9` int(11) NOT NULL DEFAULT 0 COMMENT '九日留存量',
  2023. `day10` int(11) NOT NULL DEFAULT 0 COMMENT '十日留存量',
  2024. `day11` int(11) NOT NULL DEFAULT 0 COMMENT '11日留存量',
  2025. `day12` int(11) NOT NULL DEFAULT 0 COMMENT '12日留存量',
  2026. `day13` int(11) NOT NULL DEFAULT 0 COMMENT '13日留存量',
  2027. `day14` int(11) NOT NULL DEFAULT 0 COMMENT '14日留存量',
  2028. `day15` int(11) NOT NULL DEFAULT 0 COMMENT '15日留存量',
  2029. `day21` int(11) NOT NULL DEFAULT 0 COMMENT '21日留存量',
  2030. `day30` int(11) NOT NULL DEFAULT 0 COMMENT '30日留存量',
  2031. `day60` int(11) NOT NULL DEFAULT 0 COMMENT '60日留存量',
  2032. `device_day2` int(11) NOT NULL DEFAULT 0 COMMENT '二日留存量',
  2033. `device_day3` int(11) NOT NULL DEFAULT 0 COMMENT '三日留存量',
  2034. `device_day4` int(11) NOT NULL DEFAULT 0 COMMENT '四日留存量',
  2035. `device_day5` int(11) NOT NULL DEFAULT 0 COMMENT '五日留存量',
  2036. `device_day6` int(11) NOT NULL DEFAULT 0 COMMENT '六日留存量',
  2037. `device_day7` int(11) NOT NULL DEFAULT 0 COMMENT '七日留存量',
  2038. `device_day8` int(11) NOT NULL DEFAULT 0 COMMENT '八日留存量',
  2039. `device_day9` int(11) NOT NULL DEFAULT 0 COMMENT '九日留存量',
  2040. `device_day10` int(11) NOT NULL DEFAULT 0 COMMENT '十日留存量',
  2041. `device_day11` int(11) NOT NULL DEFAULT 0 COMMENT '11日留存量',
  2042. `device_day12` int(11) NOT NULL DEFAULT 0 COMMENT '12日留存量',
  2043. `device_day13` int(11) NOT NULL DEFAULT 0 COMMENT '13日留存量',
  2044. `device_day14` int(11) NOT NULL DEFAULT 0 COMMENT '14日留存量',
  2045. `device_day15` int(11) NOT NULL DEFAULT 0 COMMENT '15日留存量',
  2046. `device_day21` int(11) NOT NULL DEFAULT 0 COMMENT '21日留存量',
  2047. `device_day30` int(11) NOT NULL DEFAULT 0 COMMENT '30日留存量',
  2048. `device_day60` int(11) NOT NULL DEFAULT 0 COMMENT '60日留存量',
  2049. `pay_amount_day2` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '二日留存付费金额',
  2050. `pay_amount_day3` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '三日留存付费金额',
  2051. `pay_amount_day4` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '四日留存付费金额',
  2052. `pay_amount_day5` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '五日留存付费金额',
  2053. `pay_amount_day6` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '六日留存付费金额',
  2054. `pay_amount_day7` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '七日留存付费金额',
  2055. `pay_amount_day8` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '八日留存付费金额',
  2056. `pay_amount_day9` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '九日留存付费金额',
  2057. `pay_amount_day10` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '十日留存付费金额',
  2058. `pay_amount_day11` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '11日留存付费金额',
  2059. `pay_amount_day12` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '12日留存付费金额',
  2060. `pay_amount_day13` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '13日留存付费金额',
  2061. `pay_amount_day14` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '14日留存付费金额',
  2062. `pay_amount_day15` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '15日留存付费金额',
  2063. `pay_amount_day21` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '21日留存付费金额',
  2064. `pay_amount_day30` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '30日留存付费金额',
  2065. `pay_amount_day60` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '60日留存付费金额',
  2066. PRIMARY KEY (`id`) USING BTREE,
  2067. UNIQUE INDEX `dc_date_agent_unique`(`date`, `agent_id`) USING BTREE,
  2068. INDEX `dc_agent_index`(`agent_id`) USING BTREE
  2069. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '切量每日渠道游戏统计表' ROW_FORMAT = DYNAMIC;
  2070. -- ----------------------------
  2071. -- Records of h_day_agent_switch
  2072. -- ----------------------------
  2073. -- ----------------------------
  2074. -- Table structure for h_day_game
  2075. -- ----------------------------
  2076. DROP TABLE IF EXISTS `h_day_game`;
  2077. CREATE TABLE `h_day_game` (
  2078. `id` int(11) NOT NULL AUTO_INCREMENT,
  2079. `date` date NOT NULL COMMENT '日期',
  2080. `app_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '游戏ID',
  2081. `history_user_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '到当日历史玩家人数',
  2082. `active_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '游戏激活数',
  2083. `today_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '今日游戏激活数',
  2084. `click_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '落地页点击数',
  2085. `page_down_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '落地页点击数',
  2086. `down_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '下载数',
  2087. `real_down_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '真实下载数',
  2088. `user_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '活跃玩家数量',
  2089. `ip_cnt` int(11) NOT NULL DEFAULT 0 COMMENT 'IP数量',
  2090. `reg_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '注册玩家数',
  2091. `reg_device_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '新增设备数',
  2092. `reg_ip_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '注册IP数',
  2093. `pay_user_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '付费玩家数',
  2094. `first_pay_user_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '首付人数',
  2095. `order_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '成功订单数',
  2096. `fail_order_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '失败订单数',
  2097. `un_order_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '待支付订单数',
  2098. `reg_order_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '注册订单数',
  2099. `reg_pay_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '新增即付费人数',
  2100. `sum_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '充值金额',
  2101. `sum_real_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '自然流水金额',
  2102. `share_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '分成金额',
  2103. `first_pay_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '首付金额',
  2104. `first_pay_sum_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '首付当日总额',
  2105. `reg_sum_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '新增即付总额',
  2106. `reg_real_sum_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '新增即付自然流水总额',
  2107. `day2` int(11) NOT NULL DEFAULT 0 COMMENT '二日留存量',
  2108. `day3` int(11) NOT NULL DEFAULT 0 COMMENT '三日留存量',
  2109. `day4` int(11) NOT NULL DEFAULT 0 COMMENT '四日留存量',
  2110. `day5` int(11) NOT NULL DEFAULT 0 COMMENT '五日留存量',
  2111. `day6` int(11) NOT NULL DEFAULT 0 COMMENT '六日留存量',
  2112. `day7` int(11) NOT NULL DEFAULT 0 COMMENT '七日留存量',
  2113. `day8` int(11) NOT NULL DEFAULT 0 COMMENT '八日留存量',
  2114. `day9` int(11) NOT NULL DEFAULT 0 COMMENT '九日留存量',
  2115. `day10` int(11) NOT NULL DEFAULT 0 COMMENT '十日留存量',
  2116. `day11` int(11) NOT NULL DEFAULT 0 COMMENT '11日留存量',
  2117. `day12` int(11) NOT NULL DEFAULT 0 COMMENT '12日留存量',
  2118. `day13` int(11) NOT NULL DEFAULT 0 COMMENT '13日留存量',
  2119. `day14` int(11) NOT NULL DEFAULT 0 COMMENT '14日留存量',
  2120. `day15` int(11) NOT NULL DEFAULT 0 COMMENT '15日留存量',
  2121. `day21` int(11) NOT NULL DEFAULT 0 COMMENT '21日留存量',
  2122. `day30` int(11) NOT NULL DEFAULT 0 COMMENT '30日留存量',
  2123. `day60` int(11) NOT NULL DEFAULT 0 COMMENT '60日留存量',
  2124. `device_day2` int(11) NOT NULL DEFAULT 0 COMMENT '二日留存量',
  2125. `device_day3` int(11) NOT NULL DEFAULT 0 COMMENT '三日留存量',
  2126. `device_day4` int(11) NOT NULL DEFAULT 0 COMMENT '四日留存量',
  2127. `device_day5` int(11) NOT NULL DEFAULT 0 COMMENT '五日留存量',
  2128. `device_day6` int(11) NOT NULL DEFAULT 0 COMMENT '六日留存量',
  2129. `device_day7` int(11) NOT NULL DEFAULT 0 COMMENT '七日留存量',
  2130. `device_day8` int(11) NOT NULL DEFAULT 0 COMMENT '八日留存量',
  2131. `device_day9` int(11) NOT NULL DEFAULT 0 COMMENT '九日留存量',
  2132. `device_day10` int(11) NOT NULL DEFAULT 0 COMMENT '十日留存量',
  2133. `device_day11` int(11) NOT NULL DEFAULT 0 COMMENT '11日留存量',
  2134. `device_day12` int(11) NOT NULL DEFAULT 0 COMMENT '12日留存量',
  2135. `device_day13` int(11) NOT NULL DEFAULT 0 COMMENT '13日留存量',
  2136. `device_day14` int(11) NOT NULL DEFAULT 0 COMMENT '14日留存量',
  2137. `device_day15` int(11) NOT NULL DEFAULT 0 COMMENT '15日留存量',
  2138. `device_day21` int(11) NOT NULL DEFAULT 0 COMMENT '21日留存量',
  2139. `device_day30` int(11) NOT NULL DEFAULT 0 COMMENT '30日留存量',
  2140. `device_day60` int(11) NOT NULL DEFAULT 0 COMMENT '60日留存量',
  2141. `pay_amount_day2` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '二日留存付费金额',
  2142. `pay_amount_day3` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '三日留存付费金额',
  2143. `pay_amount_day4` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '四日留存付费金额',
  2144. `pay_amount_day5` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '五日留存付费金额',
  2145. `pay_amount_day6` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '六日留存付费金额',
  2146. `pay_amount_day7` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '七日留存付费金额',
  2147. `pay_amount_day8` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '八日留存付费金额',
  2148. `pay_amount_day9` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '九日留存付费金额',
  2149. `pay_amount_day10` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '十日留存付费金额',
  2150. `pay_amount_day11` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '11日留存付费金额',
  2151. `pay_amount_day12` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '12日留存付费金额',
  2152. `pay_amount_day13` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '13日留存付费金额',
  2153. `pay_amount_day14` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '14日留存付费金额',
  2154. `pay_amount_day15` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '15日留存付费金额',
  2155. `pay_amount_day21` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '21日留存付费金额',
  2156. `pay_amount_day30` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '30日留存付费金额',
  2157. `pay_amount_day60` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '60日留存付费金额',
  2158. PRIMARY KEY (`id`) USING BTREE,
  2159. UNIQUE INDEX `dg_dategame_unique`(`date`, `app_id`) USING BTREE,
  2160. INDEX `dg_game_index`(`app_id`) USING BTREE
  2161. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '每日游戏统计表' ROW_FORMAT = DYNAMIC;
  2162. -- ----------------------------
  2163. -- Records of h_day_game
  2164. -- ----------------------------
  2165. -- ----------------------------
  2166. -- Table structure for h_day_game_agent
  2167. -- ----------------------------
  2168. DROP TABLE IF EXISTS `h_day_game_agent`;
  2169. CREATE TABLE `h_day_game_agent` (
  2170. `id` int(11) NOT NULL AUTO_INCREMENT,
  2171. `date` date NOT NULL COMMENT '日期',
  2172. `app_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '游戏ID',
  2173. `agent_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '代理ID',
  2174. `history_user_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '到当日历史玩家人数',
  2175. `active_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '游戏激活数',
  2176. `today_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '今日游戏激活数',
  2177. `click_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '落地页点击数',
  2178. `page_down_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '落地页点击数',
  2179. `down_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '下载数',
  2180. `real_down_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '真实下载数',
  2181. `user_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '活跃玩家数量',
  2182. `ip_cnt` int(11) NOT NULL DEFAULT 0 COMMENT 'IP数量',
  2183. `reg_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '注册玩家数',
  2184. `reg_device_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '新增设备数',
  2185. `reg_ip_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '注册IP数',
  2186. `pay_user_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '付费玩家数',
  2187. `first_pay_user_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '首付人数',
  2188. `order_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '成功订单数',
  2189. `fail_order_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '失败订单数',
  2190. `un_order_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '待支付订单数',
  2191. `reg_order_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '注册订单数',
  2192. `reg_pay_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '新增即付费人数',
  2193. `sum_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '充值金额',
  2194. `sum_real_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '自然流水金额',
  2195. `share_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '分成金额',
  2196. `first_pay_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '首付金额',
  2197. `first_pay_sum_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '首付当日总额',
  2198. `reg_sum_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '新增即付总额',
  2199. `reg_real_sum_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '新增即付自然流水总额',
  2200. `day2` int(11) NOT NULL DEFAULT 0 COMMENT '二日留存量',
  2201. `day3` int(11) NOT NULL DEFAULT 0 COMMENT '三日留存量',
  2202. `day4` int(11) NOT NULL DEFAULT 0 COMMENT '四日留存量',
  2203. `day5` int(11) NOT NULL DEFAULT 0 COMMENT '五日留存量',
  2204. `day6` int(11) NOT NULL DEFAULT 0 COMMENT '六日留存量',
  2205. `day7` int(11) NOT NULL DEFAULT 0 COMMENT '七日留存量',
  2206. `day8` int(11) NOT NULL DEFAULT 0 COMMENT '八日留存量',
  2207. `day9` int(11) NOT NULL DEFAULT 0 COMMENT '九日留存量',
  2208. `day10` int(11) NOT NULL DEFAULT 0 COMMENT '十日留存量',
  2209. `day11` int(11) NOT NULL DEFAULT 0 COMMENT '11日留存量',
  2210. `day12` int(11) NOT NULL DEFAULT 0 COMMENT '12日留存量',
  2211. `day13` int(11) NOT NULL DEFAULT 0 COMMENT '13日留存量',
  2212. `day14` int(11) NOT NULL DEFAULT 0 COMMENT '14日留存量',
  2213. `day15` int(11) NOT NULL DEFAULT 0 COMMENT '15日留存量',
  2214. `day21` int(11) NOT NULL DEFAULT 0 COMMENT '21日留存量',
  2215. `day30` int(11) NOT NULL DEFAULT 0 COMMENT '30日留存量',
  2216. `day60` int(11) NOT NULL DEFAULT 0 COMMENT '60日留存量',
  2217. `device_day2` int(11) NOT NULL DEFAULT 0 COMMENT '二日留存量',
  2218. `device_day3` int(11) NOT NULL DEFAULT 0 COMMENT '三日留存量',
  2219. `device_day4` int(11) NOT NULL DEFAULT 0 COMMENT '四日留存量',
  2220. `device_day5` int(11) NOT NULL DEFAULT 0 COMMENT '五日留存量',
  2221. `device_day6` int(11) NOT NULL DEFAULT 0 COMMENT '六日留存量',
  2222. `device_day7` int(11) NOT NULL DEFAULT 0 COMMENT '七日留存量',
  2223. `device_day8` int(11) NOT NULL DEFAULT 0 COMMENT '八日留存量',
  2224. `device_day9` int(11) NOT NULL DEFAULT 0 COMMENT '九日留存量',
  2225. `device_day10` int(11) NOT NULL DEFAULT 0 COMMENT '十日留存量',
  2226. `device_day11` int(11) NOT NULL DEFAULT 0 COMMENT '11日留存量',
  2227. `device_day12` int(11) NOT NULL DEFAULT 0 COMMENT '12日留存量',
  2228. `device_day13` int(11) NOT NULL DEFAULT 0 COMMENT '13日留存量',
  2229. `device_day14` int(11) NOT NULL DEFAULT 0 COMMENT '14日留存量',
  2230. `device_day15` int(11) NOT NULL DEFAULT 0 COMMENT '15日留存量',
  2231. `device_day21` int(11) NOT NULL DEFAULT 0 COMMENT '21日留存量',
  2232. `device_day30` int(11) NOT NULL DEFAULT 0 COMMENT '30日留存量',
  2233. `device_day60` int(11) NOT NULL DEFAULT 0 COMMENT '60日留存量',
  2234. `pay_amount_day2` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '二日留存付费金额',
  2235. `pay_amount_day3` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '三日留存付费金额',
  2236. `pay_amount_day4` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '四日留存付费金额',
  2237. `pay_amount_day5` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '五日留存付费金额',
  2238. `pay_amount_day6` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '六日留存付费金额',
  2239. `pay_amount_day7` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '七日留存付费金额',
  2240. `pay_amount_day8` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '八日留存付费金额',
  2241. `pay_amount_day9` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '九日留存付费金额',
  2242. `pay_amount_day10` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '十日留存付费金额',
  2243. `pay_amount_day11` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '11日留存付费金额',
  2244. `pay_amount_day12` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '12日留存付费金额',
  2245. `pay_amount_day13` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '13日留存付费金额',
  2246. `pay_amount_day14` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '14日留存付费金额',
  2247. `pay_amount_day15` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '15日留存付费金额',
  2248. `pay_amount_day21` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '21日留存付费金额',
  2249. `pay_amount_day30` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '30日留存付费金额',
  2250. `pay_amount_day60` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '60日留存付费金额',
  2251. PRIMARY KEY (`id`) USING BTREE,
  2252. UNIQUE INDEX `dga_dategameagent_unique`(`date`, `app_id`, `agent_id`) USING BTREE,
  2253. INDEX `dga_game_index`(`app_id`) USING BTREE,
  2254. INDEX `dga_agent_index`(`agent_id`) USING BTREE
  2255. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '每日渠道游戏统计表' ROW_FORMAT = DYNAMIC;
  2256. -- ----------------------------
  2257. -- Records of h_day_game_agent
  2258. -- ----------------------------
  2259. -- ----------------------------
  2260. -- Table structure for h_day_game_switch
  2261. -- ----------------------------
  2262. DROP TABLE IF EXISTS `h_day_game_switch`;
  2263. CREATE TABLE `h_day_game_switch` (
  2264. `id` int(11) NOT NULL AUTO_INCREMENT,
  2265. `date` date NOT NULL COMMENT '日期',
  2266. `app_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '游戏ID',
  2267. `history_user_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '到当日历史玩家人数',
  2268. `active_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '游戏激活数',
  2269. `today_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '今日游戏激活数',
  2270. `click_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '落地页点击数',
  2271. `page_down_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '落地页点击数',
  2272. `down_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '下载数',
  2273. `real_down_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '真实下载数',
  2274. `user_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '活跃玩家数量',
  2275. `ip_cnt` int(11) NOT NULL DEFAULT 0 COMMENT 'IP数量',
  2276. `reg_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '注册玩家数',
  2277. `reg_cnt_show` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '渠道显示注册玩家数',
  2278. `reg_device_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '新增设备数',
  2279. `reg_ip_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '注册IP数',
  2280. `pay_user_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '付费玩家数',
  2281. `first_pay_user_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '首付人数',
  2282. `order_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '成功订单数',
  2283. `fail_order_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '失败订单数',
  2284. `un_order_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '待支付订单数',
  2285. `reg_order_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '注册订单数',
  2286. `reg_pay_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '新增即付费人数',
  2287. `sum_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '充值金额',
  2288. `sum_real_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '自然流水金额',
  2289. `share_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '分成金额',
  2290. `first_pay_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '首付金额',
  2291. `first_pay_sum_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '首付当日总额',
  2292. `reg_sum_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '新增即付总额',
  2293. `reg_real_sum_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '新增即付自然流水总额',
  2294. `day2` int(11) NOT NULL DEFAULT 0 COMMENT '二日留存量',
  2295. `day3` int(11) NOT NULL DEFAULT 0 COMMENT '三日留存量',
  2296. `day4` int(11) NOT NULL DEFAULT 0 COMMENT '四日留存量',
  2297. `day5` int(11) NOT NULL DEFAULT 0 COMMENT '五日留存量',
  2298. `day6` int(11) NOT NULL DEFAULT 0 COMMENT '六日留存量',
  2299. `day7` int(11) NOT NULL DEFAULT 0 COMMENT '七日留存量',
  2300. `day8` int(11) NOT NULL DEFAULT 0 COMMENT '八日留存量',
  2301. `day9` int(11) NOT NULL DEFAULT 0 COMMENT '九日留存量',
  2302. `day10` int(11) NOT NULL DEFAULT 0 COMMENT '十日留存量',
  2303. `day11` int(11) NOT NULL DEFAULT 0 COMMENT '11日留存量',
  2304. `day12` int(11) NOT NULL DEFAULT 0 COMMENT '12日留存量',
  2305. `day13` int(11) NOT NULL DEFAULT 0 COMMENT '13日留存量',
  2306. `day14` int(11) NOT NULL DEFAULT 0 COMMENT '14日留存量',
  2307. `day15` int(11) NOT NULL DEFAULT 0 COMMENT '15日留存量',
  2308. `day21` int(11) NOT NULL DEFAULT 0 COMMENT '21日留存量',
  2309. `day30` int(11) NOT NULL DEFAULT 0 COMMENT '30日留存量',
  2310. `day60` int(11) NOT NULL DEFAULT 0 COMMENT '60日留存量',
  2311. `device_day2` int(11) NOT NULL DEFAULT 0 COMMENT '二日留存量',
  2312. `device_day3` int(11) NOT NULL DEFAULT 0 COMMENT '三日留存量',
  2313. `device_day4` int(11) NOT NULL DEFAULT 0 COMMENT '四日留存量',
  2314. `device_day5` int(11) NOT NULL DEFAULT 0 COMMENT '五日留存量',
  2315. `device_day6` int(11) NOT NULL DEFAULT 0 COMMENT '六日留存量',
  2316. `device_day7` int(11) NOT NULL DEFAULT 0 COMMENT '七日留存量',
  2317. `device_day8` int(11) NOT NULL DEFAULT 0 COMMENT '八日留存量',
  2318. `device_day9` int(11) NOT NULL DEFAULT 0 COMMENT '九日留存量',
  2319. `device_day10` int(11) NOT NULL DEFAULT 0 COMMENT '十日留存量',
  2320. `device_day11` int(11) NOT NULL DEFAULT 0 COMMENT '11日留存量',
  2321. `device_day12` int(11) NOT NULL DEFAULT 0 COMMENT '12日留存量',
  2322. `device_day13` int(11) NOT NULL DEFAULT 0 COMMENT '13日留存量',
  2323. `device_day14` int(11) NOT NULL DEFAULT 0 COMMENT '14日留存量',
  2324. `device_day15` int(11) NOT NULL DEFAULT 0 COMMENT '15日留存量',
  2325. `device_day21` int(11) NOT NULL DEFAULT 0 COMMENT '21日留存量',
  2326. `device_day30` int(11) NOT NULL DEFAULT 0 COMMENT '30日留存量',
  2327. `device_day60` int(11) NOT NULL DEFAULT 0 COMMENT '60日留存量',
  2328. `pay_amount_day2` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '二日留存付费金额',
  2329. `pay_amount_day3` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '三日留存付费金额',
  2330. `pay_amount_day4` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '四日留存付费金额',
  2331. `pay_amount_day5` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '五日留存付费金额',
  2332. `pay_amount_day6` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '六日留存付费金额',
  2333. `pay_amount_day7` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '七日留存付费金额',
  2334. `pay_amount_day8` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '八日留存付费金额',
  2335. `pay_amount_day9` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '九日留存付费金额',
  2336. `pay_amount_day10` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '十日留存付费金额',
  2337. `pay_amount_day11` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '11日留存付费金额',
  2338. `pay_amount_day12` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '12日留存付费金额',
  2339. `pay_amount_day13` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '13日留存付费金额',
  2340. `pay_amount_day14` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '14日留存付费金额',
  2341. `pay_amount_day15` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '15日留存付费金额',
  2342. `pay_amount_day21` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '21日留存付费金额',
  2343. `pay_amount_day30` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '30日留存付费金额',
  2344. `pay_amount_day60` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '60日留存付费金额',
  2345. PRIMARY KEY (`id`) USING BTREE,
  2346. UNIQUE INDEX `dg_dategame_unique`(`date`, `app_id`) USING BTREE,
  2347. INDEX `dg_game_index`(`app_id`) USING BTREE
  2348. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '切量每日游戏统计表' ROW_FORMAT = DYNAMIC;
  2349. -- ----------------------------
  2350. -- Records of h_day_game_switch
  2351. -- ----------------------------
  2352. -- ----------------------------
  2353. -- Table structure for h_day_os
  2354. -- ----------------------------
  2355. DROP TABLE IF EXISTS `h_day_os`;
  2356. CREATE TABLE `h_day_os` (
  2357. `id` int(11) NOT NULL AUTO_INCREMENT,
  2358. `date` date NOT NULL COMMENT '日期',
  2359. `os` varchar(8) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '操作系统',
  2360. `history_user_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '到当日历史玩家人数',
  2361. `active_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '游戏激活数',
  2362. `click_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '落地页点击数',
  2363. `page_down_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '落地页点击数',
  2364. `down_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '下载数',
  2365. `real_down_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '真实下载数',
  2366. `user_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '活跃玩家数量',
  2367. `ip_cnt` int(11) NOT NULL DEFAULT 0 COMMENT 'IP数量',
  2368. `reg_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '注册玩家数',
  2369. `reg_device_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '新增设备数',
  2370. `reg_ip_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '注册IP数',
  2371. `pay_user_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '付费玩家数',
  2372. `first_pay_user_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '首付人数',
  2373. `order_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '成功订单数',
  2374. `fail_order_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '失败订单数',
  2375. `un_order_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '待支付订单数',
  2376. `reg_order_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '注册订单数',
  2377. `reg_pay_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '新增即付费人数',
  2378. `sum_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '充值金额',
  2379. `sum_real_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '自然流水金额',
  2380. `share_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '分成金额',
  2381. `first_pay_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '首付金额',
  2382. `first_pay_sum_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '首付当日总额',
  2383. `reg_sum_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '新增即付总额',
  2384. `reg_real_sum_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '新增即付自然流水总额',
  2385. `day2` int(11) NOT NULL DEFAULT 0 COMMENT '二日留存量',
  2386. `day3` int(11) NOT NULL DEFAULT 0 COMMENT '三日留存量',
  2387. `day4` int(11) NOT NULL DEFAULT 0 COMMENT '四日留存量',
  2388. `day5` int(11) NOT NULL DEFAULT 0 COMMENT '五日留存量',
  2389. `day6` int(11) NOT NULL DEFAULT 0 COMMENT '六日留存量',
  2390. `day7` int(11) NOT NULL DEFAULT 0 COMMENT '七日留存量',
  2391. `day8` int(11) NOT NULL DEFAULT 0 COMMENT '八日留存量',
  2392. `day9` int(11) NOT NULL DEFAULT 0 COMMENT '九日留存量',
  2393. `day10` int(11) NOT NULL DEFAULT 0 COMMENT '十日留存量',
  2394. `day11` int(11) NOT NULL DEFAULT 0 COMMENT '11日留存量',
  2395. `day12` int(11) NOT NULL DEFAULT 0 COMMENT '12日留存量',
  2396. `day13` int(11) NOT NULL DEFAULT 0 COMMENT '13日留存量',
  2397. `day14` int(11) NOT NULL DEFAULT 0 COMMENT '14日留存量',
  2398. `day15` int(11) NOT NULL DEFAULT 0 COMMENT '15日留存量',
  2399. `day21` int(11) NOT NULL DEFAULT 0 COMMENT '21日留存量',
  2400. `day30` int(11) NOT NULL DEFAULT 0 COMMENT '30日留存量',
  2401. `day60` int(11) NOT NULL DEFAULT 0 COMMENT '60日留存量',
  2402. `device_day2` int(11) NOT NULL DEFAULT 0 COMMENT '二日留存量',
  2403. `device_day3` int(11) NOT NULL DEFAULT 0 COMMENT '三日留存量',
  2404. `device_day4` int(11) NOT NULL DEFAULT 0 COMMENT '四日留存量',
  2405. `device_day5` int(11) NOT NULL DEFAULT 0 COMMENT '五日留存量',
  2406. `device_day6` int(11) NOT NULL DEFAULT 0 COMMENT '六日留存量',
  2407. `device_day7` int(11) NOT NULL DEFAULT 0 COMMENT '七日留存量',
  2408. `device_day8` int(11) NOT NULL DEFAULT 0 COMMENT '八日留存量',
  2409. `device_day9` int(11) NOT NULL DEFAULT 0 COMMENT '九日留存量',
  2410. `device_day10` int(11) NOT NULL DEFAULT 0 COMMENT '十日留存量',
  2411. `device_day11` int(11) NOT NULL DEFAULT 0 COMMENT '11日留存量',
  2412. `device_day12` int(11) NOT NULL DEFAULT 0 COMMENT '12日留存量',
  2413. `device_day13` int(11) NOT NULL DEFAULT 0 COMMENT '13日留存量',
  2414. `device_day14` int(11) NOT NULL DEFAULT 0 COMMENT '14日留存量',
  2415. `device_day15` int(11) NOT NULL DEFAULT 0 COMMENT '15日留存量',
  2416. `device_day21` int(11) NOT NULL DEFAULT 0 COMMENT '21日留存量',
  2417. `device_day30` int(11) NOT NULL DEFAULT 0 COMMENT '30日留存量',
  2418. `device_day60` int(11) NOT NULL DEFAULT 0 COMMENT '60日留存量',
  2419. PRIMARY KEY (`id`) USING BTREE,
  2420. UNIQUE INDEX `dg_dateos_unique`(`date`, `os`) USING BTREE,
  2421. INDEX `dg_os_index`(`os`) USING BTREE
  2422. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '每日操作系统统计表' ROW_FORMAT = DYNAMIC;
  2423. -- ----------------------------
  2424. -- Records of h_day_os
  2425. -- ----------------------------
  2426. -- ----------------------------
  2427. -- Table structure for h_day_switch
  2428. -- ----------------------------
  2429. DROP TABLE IF EXISTS `h_day_switch`;
  2430. CREATE TABLE `h_day_switch` (
  2431. `id` int(11) NOT NULL AUTO_INCREMENT,
  2432. `date` date NOT NULL COMMENT '日期',
  2433. `history_user_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '到当日历史玩家人数',
  2434. `active_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '游戏激活数',
  2435. `today_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '今日游戏激活数',
  2436. `click_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '落地页点击数',
  2437. `page_down_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '落地页点击数',
  2438. `down_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '下载数',
  2439. `real_down_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '真实下载数',
  2440. `user_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '活跃玩家数量',
  2441. `ip_cnt` int(11) NOT NULL DEFAULT 0 COMMENT 'IP数量',
  2442. `reg_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '注册玩家数',
  2443. `reg_cnt_show` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '渠道显示注册玩家数',
  2444. `reg_device_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '新增设备数',
  2445. `reg_ip_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '注册IP数',
  2446. `pay_user_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '付费玩家数',
  2447. `first_pay_user_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '首付人数',
  2448. `order_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '成功订单数',
  2449. `fail_order_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '失败订单数',
  2450. `un_order_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '待支付订单数',
  2451. `reg_order_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '注册订单数',
  2452. `reg_pay_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '新增即付费人数',
  2453. `sum_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '充值金额',
  2454. `sum_real_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '自然流水金额',
  2455. `share_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '分成金额',
  2456. `first_pay_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '首付金额',
  2457. `first_pay_sum_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '首付当日总额',
  2458. `reg_sum_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '新增即付总额',
  2459. `reg_real_sum_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '新增即付自然流水总额',
  2460. `day2` int(11) NOT NULL DEFAULT 0 COMMENT '二日留存量',
  2461. `day3` int(11) NOT NULL DEFAULT 0 COMMENT '三日留存量',
  2462. `day4` int(11) NOT NULL DEFAULT 0 COMMENT '四日留存量',
  2463. `day5` int(11) NOT NULL DEFAULT 0 COMMENT '五日留存量',
  2464. `day6` int(11) NOT NULL DEFAULT 0 COMMENT '六日留存量',
  2465. `day7` int(11) NOT NULL DEFAULT 0 COMMENT '七日留存量',
  2466. `day8` int(11) NOT NULL DEFAULT 0 COMMENT '八日留存量',
  2467. `day9` int(11) NOT NULL DEFAULT 0 COMMENT '九日留存量',
  2468. `day10` int(11) NOT NULL DEFAULT 0 COMMENT '十日留存量',
  2469. `day11` int(11) NOT NULL DEFAULT 0 COMMENT '11日留存量',
  2470. `day12` int(11) NOT NULL DEFAULT 0 COMMENT '12日留存量',
  2471. `day13` int(11) NOT NULL DEFAULT 0 COMMENT '13日留存量',
  2472. `day14` int(11) NOT NULL DEFAULT 0 COMMENT '14日留存量',
  2473. `day15` int(11) NOT NULL DEFAULT 0 COMMENT '15日留存量',
  2474. `day21` int(11) NOT NULL DEFAULT 0 COMMENT '21日留存量',
  2475. `day30` int(11) NOT NULL DEFAULT 0 COMMENT '30日留存量',
  2476. `day60` int(11) NOT NULL DEFAULT 0 COMMENT '60日留存量',
  2477. `device_day2` int(11) NOT NULL DEFAULT 0 COMMENT '二日留存量',
  2478. `device_day3` int(11) NOT NULL DEFAULT 0 COMMENT '三日留存量',
  2479. `device_day4` int(11) NOT NULL DEFAULT 0 COMMENT '四日留存量',
  2480. `device_day5` int(11) NOT NULL DEFAULT 0 COMMENT '五日留存量',
  2481. `device_day6` int(11) NOT NULL DEFAULT 0 COMMENT '六日留存量',
  2482. `device_day7` int(11) NOT NULL DEFAULT 0 COMMENT '七日留存量',
  2483. `device_day8` int(11) NOT NULL DEFAULT 0 COMMENT '八日留存量',
  2484. `device_day9` int(11) NOT NULL DEFAULT 0 COMMENT '九日留存量',
  2485. `device_day10` int(11) NOT NULL DEFAULT 0 COMMENT '十日留存量',
  2486. `device_day11` int(11) NOT NULL DEFAULT 0 COMMENT '11日留存量',
  2487. `device_day12` int(11) NOT NULL DEFAULT 0 COMMENT '12日留存量',
  2488. `device_day13` int(11) NOT NULL DEFAULT 0 COMMENT '13日留存量',
  2489. `device_day14` int(11) NOT NULL DEFAULT 0 COMMENT '14日留存量',
  2490. `device_day15` int(11) NOT NULL DEFAULT 0 COMMENT '15日留存量',
  2491. `device_day21` int(11) NOT NULL DEFAULT 0 COMMENT '21日留存量',
  2492. `device_day30` int(11) NOT NULL DEFAULT 0 COMMENT '30日留存量',
  2493. `device_day60` int(11) NOT NULL DEFAULT 0 COMMENT '60日留存量',
  2494. `pay_amount_day2` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '二日留存付费金额',
  2495. `pay_amount_day3` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '三日留存付费金额',
  2496. `pay_amount_day4` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '四日留存付费金额',
  2497. `pay_amount_day5` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '五日留存付费金额',
  2498. `pay_amount_day6` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '六日留存付费金额',
  2499. `pay_amount_day7` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '七日留存付费金额',
  2500. `pay_amount_day8` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '八日留存付费金额',
  2501. `pay_amount_day9` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '九日留存付费金额',
  2502. `pay_amount_day10` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '十日留存付费金额',
  2503. `pay_amount_day11` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '11日留存付费金额',
  2504. `pay_amount_day12` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '12日留存付费金额',
  2505. `pay_amount_day13` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '13日留存付费金额',
  2506. `pay_amount_day14` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '14日留存付费金额',
  2507. `pay_amount_day15` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '15日留存付费金额',
  2508. `pay_amount_day21` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '21日留存付费金额',
  2509. `pay_amount_day30` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '30日留存付费金额',
  2510. `pay_amount_day60` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '60日留存付费金额',
  2511. PRIMARY KEY (`id`) USING BTREE,
  2512. UNIQUE INDEX `d_date_unique`(`date`) USING BTREE
  2513. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '切量每日统计表' ROW_FORMAT = DYNAMIC;
  2514. -- ----------------------------
  2515. -- Records of h_day_switch
  2516. -- ----------------------------
  2517. -- ----------------------------
  2518. -- Table structure for h_dga_switch
  2519. -- ----------------------------
  2520. DROP TABLE IF EXISTS `h_dga_switch`;
  2521. CREATE TABLE `h_dga_switch` (
  2522. `id` int(11) NOT NULL AUTO_INCREMENT,
  2523. `date` date NOT NULL COMMENT '日期',
  2524. `app_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '游戏ID',
  2525. `agent_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '代理ID',
  2526. `history_user_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '到当日历史玩家人数',
  2527. `active_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '游戏激活数',
  2528. `today_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '今日游戏激活数',
  2529. `click_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '落地页点击数',
  2530. `page_down_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '落地页点击数',
  2531. `down_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '下载数',
  2532. `real_down_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '真实下载数',
  2533. `user_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '活跃玩家数量',
  2534. `ip_cnt` int(11) NOT NULL DEFAULT 0 COMMENT 'IP数量',
  2535. `reg_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '注册玩家数',
  2536. `reg_cnt_show` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '渠道显示注册玩家数',
  2537. `reg_device_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '新增设备数',
  2538. `reg_ip_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '注册IP数',
  2539. `pay_user_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '付费玩家数',
  2540. `first_pay_user_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '首付人数',
  2541. `order_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '成功订单数',
  2542. `fail_order_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '失败订单数',
  2543. `un_order_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '待支付订单数',
  2544. `reg_order_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '注册订单数',
  2545. `reg_pay_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '新增即付费人数',
  2546. `sum_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '充值金额',
  2547. `sum_real_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '自然流水金额',
  2548. `share_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '分成金额',
  2549. `first_pay_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '首付金额',
  2550. `first_pay_sum_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '首付当日总额',
  2551. `reg_sum_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '新增即付总额',
  2552. `reg_real_sum_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '新增即付自然流水总额',
  2553. `day2` int(11) NOT NULL DEFAULT 0 COMMENT '二日留存量',
  2554. `day3` int(11) NOT NULL DEFAULT 0 COMMENT '三日留存量',
  2555. `day4` int(11) NOT NULL DEFAULT 0 COMMENT '四日留存量',
  2556. `day5` int(11) NOT NULL DEFAULT 0 COMMENT '五日留存量',
  2557. `day6` int(11) NOT NULL DEFAULT 0 COMMENT '六日留存量',
  2558. `day7` int(11) NOT NULL DEFAULT 0 COMMENT '七日留存量',
  2559. `day8` int(11) NOT NULL DEFAULT 0 COMMENT '八日留存量',
  2560. `day9` int(11) NOT NULL DEFAULT 0 COMMENT '九日留存量',
  2561. `day10` int(11) NOT NULL DEFAULT 0 COMMENT '十日留存量',
  2562. `day11` int(11) NOT NULL DEFAULT 0 COMMENT '11日留存量',
  2563. `day12` int(11) NOT NULL DEFAULT 0 COMMENT '12日留存量',
  2564. `day13` int(11) NOT NULL DEFAULT 0 COMMENT '13日留存量',
  2565. `day14` int(11) NOT NULL DEFAULT 0 COMMENT '14日留存量',
  2566. `day15` int(11) NOT NULL DEFAULT 0 COMMENT '15日留存量',
  2567. `day21` int(11) NOT NULL DEFAULT 0 COMMENT '21日留存量',
  2568. `day30` int(11) NOT NULL DEFAULT 0 COMMENT '30日留存量',
  2569. `day60` int(11) NOT NULL DEFAULT 0 COMMENT '60日留存量',
  2570. `device_day2` int(11) NOT NULL DEFAULT 0 COMMENT '二日留存量',
  2571. `device_day3` int(11) NOT NULL DEFAULT 0 COMMENT '三日留存量',
  2572. `device_day4` int(11) NOT NULL DEFAULT 0 COMMENT '四日留存量',
  2573. `device_day5` int(11) NOT NULL DEFAULT 0 COMMENT '五日留存量',
  2574. `device_day6` int(11) NOT NULL DEFAULT 0 COMMENT '六日留存量',
  2575. `device_day7` int(11) NOT NULL DEFAULT 0 COMMENT '七日留存量',
  2576. `device_day8` int(11) NOT NULL DEFAULT 0 COMMENT '八日留存量',
  2577. `device_day9` int(11) NOT NULL DEFAULT 0 COMMENT '九日留存量',
  2578. `device_day10` int(11) NOT NULL DEFAULT 0 COMMENT '十日留存量',
  2579. `device_day11` int(11) NOT NULL DEFAULT 0 COMMENT '11日留存量',
  2580. `device_day12` int(11) NOT NULL DEFAULT 0 COMMENT '12日留存量',
  2581. `device_day13` int(11) NOT NULL DEFAULT 0 COMMENT '13日留存量',
  2582. `device_day14` int(11) NOT NULL DEFAULT 0 COMMENT '14日留存量',
  2583. `device_day15` int(11) NOT NULL DEFAULT 0 COMMENT '15日留存量',
  2584. `device_day21` int(11) NOT NULL DEFAULT 0 COMMENT '21日留存量',
  2585. `device_day30` int(11) NOT NULL DEFAULT 0 COMMENT '30日留存量',
  2586. `device_day60` int(11) NOT NULL DEFAULT 0 COMMENT '60日留存量',
  2587. `pay_amount_day2` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '二日留存付费金额',
  2588. `pay_amount_day3` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '三日留存付费金额',
  2589. `pay_amount_day4` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '四日留存付费金额',
  2590. `pay_amount_day5` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '五日留存付费金额',
  2591. `pay_amount_day6` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '六日留存付费金额',
  2592. `pay_amount_day7` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '七日留存付费金额',
  2593. `pay_amount_day8` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '八日留存付费金额',
  2594. `pay_amount_day9` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '九日留存付费金额',
  2595. `pay_amount_day10` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '十日留存付费金额',
  2596. `pay_amount_day11` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '11日留存付费金额',
  2597. `pay_amount_day12` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '12日留存付费金额',
  2598. `pay_amount_day13` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '13日留存付费金额',
  2599. `pay_amount_day14` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '14日留存付费金额',
  2600. `pay_amount_day15` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '15日留存付费金额',
  2601. `pay_amount_day21` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '21日留存付费金额',
  2602. `pay_amount_day30` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '30日留存付费金额',
  2603. `pay_amount_day60` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '60日留存付费金额',
  2604. PRIMARY KEY (`id`) USING BTREE,
  2605. UNIQUE INDEX `dga_dategameagent_unique`(`date`, `app_id`, `agent_id`) USING BTREE,
  2606. INDEX `dga_game_index`(`app_id`) USING BTREE,
  2607. INDEX `dga_agent_index`(`agent_id`) USING BTREE
  2608. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '切量每日渠道游戏统计表' ROW_FORMAT = DYNAMIC;
  2609. -- ----------------------------
  2610. -- Records of h_dga_switch
  2611. -- ----------------------------
  2612. -- ----------------------------
  2613. -- Table structure for h_email
  2614. -- ----------------------------
  2615. DROP TABLE IF EXISTS `h_email`;
  2616. CREATE TABLE `h_email` (
  2617. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'id',
  2618. `type` int(11) NULL DEFAULT 0 COMMENT '邮箱类型',
  2619. `username` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '账号',
  2620. `password` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '邮箱密码',
  2621. `address` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '发送者',
  2622. `sender` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '发送者',
  2623. `smtp` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'SMTP地址',
  2624. `smtp_port` int(11) NOT NULL DEFAULT 25 COMMENT 'SMTP 端口',
  2625. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  2626. PRIMARY KEY (`id`) USING BTREE
  2627. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '后台邮箱' ROW_FORMAT = DYNAMIC;
  2628. -- ----------------------------
  2629. -- Records of h_email
  2630. -- ----------------------------
  2631. -- ----------------------------
  2632. -- Table structure for h_flow_log
  2633. -- ----------------------------
  2634. DROP TABLE IF EXISTS `h_flow_log`;
  2635. CREATE TABLE `h_flow_log` (
  2636. `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID',
  2637. `order_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '订单号',
  2638. `app_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '游戏ID',
  2639. `mem_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '玩家ID',
  2640. `agent_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '渠道ID',
  2641. `mobile_prefix` int(11) NOT NULL DEFAULT 86 COMMENT '电话区号对应国家ID 默认中国',
  2642. `currency` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'CNY' COMMENT '交易币种',
  2643. `total_fee` decimal(12, 2) NOT NULL DEFAULT 0.00 COMMENT '账面价值',
  2644. `real_fee` decimal(12, 2) NOT NULL DEFAULT 0.00 COMMENT '实际价值',
  2645. `slot_fee` decimal(12, 2) NOT NULL DEFAULT 0.00 COMMENT '通道费',
  2646. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  2647. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间',
  2648. `payway` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '0' COMMENT '支付方式名称',
  2649. `status` tinyint(4) NOT NULL DEFAULT 1 COMMENT '状态 1 初始 2 完成 3 失败',
  2650. `type_id` tinyint(2) NOT NULL DEFAULT 1 COMMENT '类型 1 收入 2 支出 3 流转 4 SDK充值',
  2651. `table_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '记录所在表 不带表前缀',
  2652. `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '备注',
  2653. PRIMARY KEY (`id`) USING BTREE,
  2654. UNIQUE INDEX `floworder_unique`(`order_id`) USING BTREE,
  2655. INDEX `fl_mem_index`(`mem_id`) USING BTREE,
  2656. INDEX `fl_table_index`(`table_name`) USING BTREE
  2657. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '平台流水' ROW_FORMAT = DYNAMIC;
  2658. -- ----------------------------
  2659. -- Records of h_flow_log
  2660. -- ----------------------------
  2661. -- ----------------------------
  2662. -- Table structure for h_game
  2663. -- ----------------------------
  2664. DROP TABLE IF EXISTS `h_game`;
  2665. CREATE TABLE `h_game` (
  2666. `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '游戏ID',
  2667. `name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '游戏名称',
  2668. `en_name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '游戏的拼音',
  2669. `en_abbr` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '首字母',
  2670. `app_key` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'appkey',
  2671. `tags` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '游戏标签',
  2672. `category` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '游戏类型',
  2673. `classify` int(11) NOT NULL DEFAULT 3 COMMENT '游戏类别,3开头为android 4 开头为IOS 5 开头为H5 6开头为小程序 对应于game_class中的ID',
  2674. `icon` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '网页游戏图标,200*200',
  2675. `cp_payback_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT 'CP回调路径',
  2676. `cp_id` int(11) NOT NULL DEFAULT 0 COMMENT 'CP ID',
  2677. `parent_id` int(11) NOT NULL DEFAULT 0 COMMENT '从属游戏',
  2678. `package_name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '包名',
  2679. `pay_switch` tinyint(2) NOT NULL DEFAULT 2 COMMENT '支付切换,1为切换,2为不切换',
  2680. `order_switch` tinyint(2) UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否开启订单切量 1否 2是',
  2681. `pay_show` tinyint(2) NOT NULL DEFAULT 2 COMMENT '支付显示,1为不显示,2为显示',
  2682. `float_is_show` tinyint(2) NOT NULL DEFAULT 1 COMMENT '1 不显示浮点 2 显示浮点',
  2683. `status` tinyint(4) NOT NULL DEFAULT 1 COMMENT '上线状态1 接入中, 2 可上线, 3 已下线',
  2684. `is_delete` tinyint(2) NOT NULL DEFAULT 2 COMMENT '1 伪删除 2 正常',
  2685. `delete_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '删除时间',
  2686. `is_online` tinyint(2) NOT NULL DEFAULT 1 COMMENT ' 1在线游戏 2 单机 ',
  2687. `is_sdk` tinyint(2) NOT NULL DEFAULT 2 COMMENT '1 不是SDK游戏 2 是SDK游戏',
  2688. `list_order` bigint(20) NOT NULL DEFAULT 0 COMMENT '显示序列号,以此为显示顺序',
  2689. `rise_order` bigint(20) NOT NULL DEFAULT 0 COMMENT '增长最快排序',
  2690. `hot_order` bigint(20) NOT NULL DEFAULT 0 COMMENT '最热排序',
  2691. `like_order` bigint(20) NOT NULL DEFAULT 0 COMMENT '喜爱排序',
  2692. `publicity` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '游戏宣传语',
  2693. `language` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'en' COMMENT '语言',
  2694. `description` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '游戏描述',
  2695. `image` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '游戏宣传图 JSON格式',
  2696. `run_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '上线时间',
  2697. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  2698. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间',
  2699. `fine_order` bigint(20) NOT NULL DEFAULT 0 COMMENT '是否精品',
  2700. `promote_switch` tinyint(1) NOT NULL DEFAULT 1 COMMENT '是否可推广游戏 1 不能推广 2 可推广 3 需审核',
  2701. `apple_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '苹果应用ID',
  2702. `add_cp_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '添加CP时间',
  2703. `is_bt` tinyint(2) NOT NULL DEFAULT 1 COMMENT '是否BT游戏 2 表示BT游戏 1 非BT',
  2704. `is_auth` tinyint(2) NOT NULL DEFAULT 1 COMMENT '是否需要强制实名认证,1为 关闭实名认证,2为 强制实名认证 3 开启实名认证',
  2705. `single_tag` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '单个标签',
  2706. `ext_info` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '扩展 JSON格式 hot_image fine_image rebate_description vip_description fine_description',
  2707. PRIMARY KEY (`id`) USING BTREE,
  2708. INDEX `listorderindex`(`list_order`) USING BTREE,
  2709. INDEX `deleteindex`(`is_delete`) USING BTREE,
  2710. INDEX `gameparentindex`(`parent_id`) USING BTREE,
  2711. INDEX `g_apple_index`(`apple_id`) USING BTREE COMMENT '游戏苹果索引',
  2712. INDEX `g_cate_index`(`category`) USING BTREE
  2713. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '游戏列表' ROW_FORMAT = Dynamic;
  2714. -- ----------------------------
  2715. -- Records of h_game
  2716. -- ----------------------------
  2717. -- ----------------------------
  2718. -- Table structure for h_game_category
  2719. -- ----------------------------
  2720. DROP TABLE IF EXISTS `h_game_category`;
  2721. CREATE TABLE `h_game_category` (
  2722. `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID',
  2723. `cate_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '类型id',
  2724. `app_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '玩家ID',
  2725. `list_order` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '显示序列号,以此为显示顺序',
  2726. `find_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '推荐时间',
  2727. PRIMARY KEY (`id`) USING BTREE,
  2728. UNIQUE INDEX `gc_cate_app_unique`(`cate_id`, `app_id`) USING BTREE,
  2729. INDEX `gc_app_index`(`app_id`) USING BTREE,
  2730. INDEX `gc_order_index`(`list_order`) USING BTREE
  2731. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '游戏分类对应表' ROW_FORMAT = DYNAMIC;
  2732. -- ----------------------------
  2733. -- Records of h_game_category
  2734. -- ----------------------------
  2735. -- ----------------------------
  2736. -- Table structure for h_game_classify
  2737. -- ----------------------------
  2738. DROP TABLE IF EXISTS `h_game_classify`;
  2739. CREATE TABLE `h_game_classify` (
  2740. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '游戏分类ID',
  2741. `name` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '来源名',
  2742. `status` tinyint(2) NOT NULL DEFAULT 2 COMMENT '状态 2为启用 1 为禁用',
  2743. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  2744. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间',
  2745. PRIMARY KEY (`id`) USING BTREE
  2746. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '游戏来源表' ROW_FORMAT = DYNAMIC;
  2747. -- ----------------------------
  2748. -- Records of h_game_classify
  2749. -- ----------------------------
  2750. -- ----------------------------
  2751. -- Table structure for h_game_ext
  2752. -- ----------------------------
  2753. DROP TABLE IF EXISTS `h_game_ext`;
  2754. CREATE TABLE `h_game_ext` (
  2755. `app_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '对应与game表中appid',
  2756. `agent_cnt` int(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '代理数量',
  2757. `gift_cnt` int(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '礼包类别数量',
  2758. `real_gift_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '实时礼包数量',
  2759. `last_end_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '礼包最近结束时间',
  2760. `mem_cnt` int(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '玩家数量',
  2761. `add_down_cnt` int(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '增加下载数',
  2762. `install_cnt` int(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '安装数',
  2763. `star_cnt` double(12, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '默认5分',
  2764. `like_cnt` int(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '点赞数量',
  2765. `share_cnt` int(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '分享次数',
  2766. `active_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '游戏激活数',
  2767. `down_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '下载数',
  2768. `real_down_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '真实下载数',
  2769. `user_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '活跃玩家数量',
  2770. `reg_device_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '新增设备数',
  2771. `reg_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '注册玩家数',
  2772. `pay_user_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '付费玩家数',
  2773. `first_pay_user_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '首付人数',
  2774. `order_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '成功订单数',
  2775. `fail_order_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '失败订单数',
  2776. `un_order_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '待支付订单数',
  2777. `reg_order_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '注册订单数',
  2778. `reg_pay_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '新增即付费人数',
  2779. `sum_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '充值金额',
  2780. `first_pay_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '首付金额',
  2781. `first_pay_sum_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '首付当日总额',
  2782. `reg_sum_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '新增即付总额',
  2783. `sum_real_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '实际支付金额',
  2784. PRIMARY KEY (`app_id`) USING BTREE,
  2785. INDEX `ge_down_index`(`down_cnt`) USING BTREE
  2786. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '游戏扩展表' ROW_FORMAT = DYNAMIC;
  2787. -- ----------------------------
  2788. -- Records of h_game_ext
  2789. -- ----------------------------
  2790. -- ----------------------------
  2791. -- Table structure for h_game_help
  2792. -- ----------------------------
  2793. DROP TABLE IF EXISTS `h_game_help`;
  2794. CREATE TABLE `h_game_help` (
  2795. `app_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '游戏ID 0 为主客服',
  2796. `qq_ids` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT 'QQ配置id(,)逗号隔开',
  2797. `wx` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '客服微信(,)逗号隔开',
  2798. `tel` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '客服电话(,)逗号隔开',
  2799. `service_time` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '客服时间 09:00 - 17:00',
  2800. `weibo` varchar(1023) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '客服微博',
  2801. `officesite` varchar(1023) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '官方网站',
  2802. `is_delete` tinyint(2) NOT NULL DEFAULT 1 COMMENT '1 伪删除 2 正常',
  2803. `delete_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '删除时间',
  2804. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  2805. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间',
  2806. PRIMARY KEY (`app_id`) USING BTREE
  2807. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '游戏客服配置' ROW_FORMAT = DYNAMIC;
  2808. -- ----------------------------
  2809. -- Records of h_game_help
  2810. -- ----------------------------
  2811. -- ----------------------------
  2812. -- Table structure for h_game_landing_page
  2813. -- ----------------------------
  2814. DROP TABLE IF EXISTS `h_game_landing_page`;
  2815. CREATE TABLE `h_game_landing_page` (
  2816. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键id',
  2817. `app_id` int(11) NOT NULL DEFAULT 0 COMMENT '游戏id',
  2818. `owner_id` int(11) NOT NULL DEFAULT 0 COMMENT '优化师id,默认官方0',
  2819. `image` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '落地页缩略图路径',
  2820. `file_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '文件路径',
  2821. `src_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '资源文件路径',
  2822. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  2823. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间',
  2824. `is_delete` tinyint(2) NOT NULL DEFAULT 2 COMMENT '是否删除,1为是,2为否',
  2825. `delete_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '删除时间',
  2826. `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '未填写备注' COMMENT '备注',
  2827. PRIMARY KEY (`id`) USING BTREE,
  2828. INDEX `glp_app_index`(`app_id`) USING BTREE,
  2829. INDEX `glp_user_index`(`owner_id`) USING BTREE
  2830. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '落地页管理表' ROW_FORMAT = DYNAMIC;
  2831. -- ----------------------------
  2832. -- Records of h_game_landing_page
  2833. -- ----------------------------
  2834. -- ----------------------------
  2835. -- Table structure for h_game_mini
  2836. -- ----------------------------
  2837. DROP TABLE IF EXISTS `h_game_mini`;
  2838. CREATE TABLE `h_game_mini` (
  2839. `app_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '对应与game表中id',
  2840. `mini_app_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '小程序ID',
  2841. `mini_app_secret` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'AppSecret',
  2842. `mini_mch_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '商户收款账号',
  2843. `mini_api_key` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'API签名密钥',
  2844. `mini_pay_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '米大师支付应用ID',
  2845. `mini_app_key` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '米大师现网AppKey',
  2846. `mini_sand_app_key` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '米大师沙箱AppKey',
  2847. `mini_rate` float(12, 2) NULL DEFAULT 0.00 COMMENT '人名币元宝比例',
  2848. `need_popup` tinyint(3) UNSIGNED NOT NULL DEFAULT 1 COMMENT '从入口图片打开 1否 2是',
  2849. `entrance_image` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '入口图片',
  2850. `create_time` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '创建时间',
  2851. `update_time` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
  2852. PRIMARY KEY (`app_id`) USING BTREE,
  2853. UNIQUE INDEX `gm_mini_app_index`(`mini_app_id`) USING BTREE
  2854. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '小程序游戏表' ROW_FORMAT = Dynamic;
  2855. -- ----------------------------
  2856. -- Records of h_game_mini
  2857. -- ----------------------------
  2858. -- ----------------------------
  2859. -- Table structure for h_game_order_switch
  2860. -- ----------------------------
  2861. DROP TABLE IF EXISTS `h_game_order_switch`;
  2862. CREATE TABLE `h_game_order_switch` (
  2863. `app_id` int(11) NOT NULL DEFAULT 0 COMMENT '游戏id',
  2864. `start_time` time NOT NULL DEFAULT '00:00:00' COMMENT '时间段开始',
  2865. `end_time` time NOT NULL DEFAULT '23:59:59' COMMENT '时间段结束',
  2866. `price` decimal(12, 2) NOT NULL DEFAULT 0.00 COMMENT '最低切量金额',
  2867. `agent_white` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '渠道白名单',
  2868. PRIMARY KEY (`app_id`) USING BTREE
  2869. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '游戏订单切量条件表' ROW_FORMAT = Dynamic;
  2870. -- ----------------------------
  2871. -- Records of h_game_order_switch
  2872. -- ----------------------------
  2873. -- ----------------------------
  2874. -- Table structure for h_game_pay_show
  2875. -- ----------------------------
  2876. DROP TABLE IF EXISTS `h_game_pay_show`;
  2877. CREATE TABLE `h_game_pay_show` (
  2878. `app_id` int(11) NOT NULL DEFAULT 0 COMMENT '游戏id',
  2879. `start_time` time NOT NULL DEFAULT '00:00:00' COMMENT '屏蔽时间段开始',
  2880. `end_time` time NOT NULL DEFAULT '23:59:59' COMMENT '屏蔽时间段结束',
  2881. `start_ip` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '屏蔽ip段开始',
  2882. `end_ip` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '屏蔽ip段结束',
  2883. `price` double(12, 2) NOT NULL DEFAULT 0.00 COMMENT '最低显示金额',
  2884. `is_domestic` tinyint(1) NOT NULL DEFAULT 1 COMMENT '国内是否显示1不显示 2显示 ',
  2885. `is_overseas` tinyint(1) NOT NULL DEFAULT 1 COMMENT '国外是否显示 1不显示 2显示 ',
  2886. `no_show_version` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '不显示版本号,逗号分割',
  2887. `system` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '3,4' COMMENT '屏蔽的操作系统',
  2888. `combat_num_mini` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '战力区间最小值',
  2889. `combat_num_max` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '战力区间最大值',
  2890. `level_mini` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '等级区间最小值',
  2891. `level_max` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '等级区间最大值',
  2892. `login_day_mini` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '连续登录天数区间最小值',
  2893. `login_day_max` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '连续登录天数区间最大值',
  2894. `ip_black` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'IP黑名单',
  2895. `area` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '地区屏蔽',
  2896. `mem_id` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '屏蔽玩家',
  2897. PRIMARY KEY (`app_id`) USING BTREE
  2898. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '游戏支付屏蔽条件表' ROW_FORMAT = DYNAMIC;
  2899. -- ----------------------------
  2900. -- Records of h_game_pay_show
  2901. -- ----------------------------
  2902. -- ----------------------------
  2903. -- Table structure for h_game_pay_switch
  2904. -- ----------------------------
  2905. DROP TABLE IF EXISTS `h_game_pay_switch`;
  2906. CREATE TABLE `h_game_pay_switch` (
  2907. `app_id` int(11) NOT NULL DEFAULT 0 COMMENT '游戏id',
  2908. `switch_app_id` int(11) NOT NULL DEFAULT 0 COMMENT '切换游戏id',
  2909. `pages` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'pages/pay/index' COMMENT '支付路径',
  2910. `start_time` time NOT NULL DEFAULT '00:00:00' COMMENT '切换时间段开始',
  2911. `end_time` time NOT NULL DEFAULT '23:59:59' COMMENT '切换时间段结束',
  2912. `start_ip` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '切换ip段开始',
  2913. `end_ip` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '切换ip段结束',
  2914. `is_first` tinyint(1) NOT NULL DEFAULT 1 COMMENT '是否首冲不切换 1切换 2不切换 ',
  2915. `price` double(12, 2) NOT NULL DEFAULT 0.00 COMMENT '最低切换金额',
  2916. `is_domestic` tinyint(1) NOT NULL DEFAULT 1 COMMENT '国内是否切换1切换 2不切换 ',
  2917. `is_overseas` tinyint(1) NOT NULL DEFAULT 1 COMMENT '国外是否切换 1切换 2不切换 ',
  2918. `no_switch_version` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '不切换版本号,逗号分割',
  2919. `system` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '3,4' COMMENT '切换的操作系统',
  2920. `pay_type` tinyint(2) UNSIGNED NOT NULL DEFAULT 1 COMMENT '1 直跳 2 二维码',
  2921. `combat_num_mini` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '战力区间最小值',
  2922. `combat_num_max` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '战力区间最大值',
  2923. `ip_white` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'IP白名单',
  2924. `area` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '地区切换',
  2925. `mem_id` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '切换玩家',
  2926. `money` decimal(20, 2) NOT NULL DEFAULT 0.00 COMMENT '累计充值最小值',
  2927. `active_days` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '活跃天数',
  2928. `sum_money` double(12, 2) NOT NULL DEFAULT 0.00 COMMENT '累计充值金额',
  2929. PRIMARY KEY (`app_id`) USING BTREE
  2930. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '游戏切换条件表' ROW_FORMAT = DYNAMIC;
  2931. -- ----------------------------
  2932. -- Records of h_game_pay_switch
  2933. -- ----------------------------
  2934. -- ----------------------------
  2935. -- Table structure for h_game_price
  2936. -- ----------------------------
  2937. DROP TABLE IF EXISTS `h_game_price`;
  2938. CREATE TABLE `h_game_price` (
  2939. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID',
  2940. `app_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '游戏ID',
  2941. `agent_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '所属渠道ID',
  2942. `parent_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '关联ID',
  2943. `is_vip` tinyint(4) UNSIGNED NOT NULL DEFAULT 1 COMMENT ' 1 不是VIP 2 是VIP',
  2944. `mobile_prefix` int(11) UNSIGNED NOT NULL DEFAULT 156 COMMENT '国家编码 默认中国156',
  2945. `ch_product_code` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '0' COMMENT 'CP或渠道计费点id 用于映射到苹果',
  2946. `product_code` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '0' COMMENT '商品ID 0表示单机游戏购买费用',
  2947. `product_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '商品名称',
  2948. `product_price` decimal(12, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '商品价格 对应本地商品价格',
  2949. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  2950. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间',
  2951. PRIMARY KEY (`id`) USING BTREE,
  2952. INDEX `gp_app_index`(`app_id`) USING BTREE,
  2953. INDEX `gp_country_index`(`mobile_prefix`) USING BTREE,
  2954. INDEX `gp_cpc_index`(`ch_product_code`) USING BTREE,
  2955. INDEX `gp_code_index`(`product_code`) USING BTREE
  2956. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '游戏计费点' ROW_FORMAT = Dynamic;
  2957. -- ----------------------------
  2958. -- Records of h_game_price
  2959. -- ----------------------------
  2960. -- ----------------------------
  2961. -- Table structure for h_game_qq
  2962. -- ----------------------------
  2963. DROP TABLE IF EXISTS `h_game_qq`;
  2964. CREATE TABLE `h_game_qq` (
  2965. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID',
  2966. `app_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '游戏ID',
  2967. `mem_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '玩家人数',
  2968. `server_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '区服ID',
  2969. `qq_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'QQ配置id',
  2970. `status` tinyint(2) NOT NULL DEFAULT 2 COMMENT '开放状态,1关闭,2开放',
  2971. `is_delete` tinyint(2) NOT NULL DEFAULT 1 COMMENT '1 伪删除 2 正常',
  2972. `delete_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '删除时间',
  2973. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  2974. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间',
  2975. `content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '富文本描述',
  2976. PRIMARY KEY (`id`) USING BTREE,
  2977. INDEX `gp_app_index`(`app_id`) USING BTREE
  2978. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '游戏一起玩QQ配置' ROW_FORMAT = DYNAMIC;
  2979. -- ----------------------------
  2980. -- Records of h_game_qq
  2981. -- ----------------------------
  2982. -- ----------------------------
  2983. -- Table structure for h_game_rate
  2984. -- ----------------------------
  2985. DROP TABLE IF EXISTS `h_game_rate`;
  2986. CREATE TABLE `h_game_rate` (
  2987. `app_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '游戏ID',
  2988. `game_rate` float(5, 4) NOT NULL DEFAULT 0.0000 COMMENT 'CP分成比例',
  2989. `agent_rebate` float(10, 4) NOT NULL DEFAULT 0.0000 COMMENT '一级渠道返点比例',
  2990. `sub_agent_rebate` float(10, 4) NOT NULL DEFAULT 0.0000 COMMENT '二级渠道返点比例',
  2991. `agent_rate` float(5, 4) NOT NULL DEFAULT 1.0000 COMMENT '渠道分成比例',
  2992. `sub_agent_rate` float(5, 4) NOT NULL DEFAULT 1.0000 COMMENT '下级渠道分成比例',
  2993. `benefit_type` tinyint(4) NOT NULL DEFAULT 0 COMMENT '优惠类型,0 无优惠 1 折扣 2 返利',
  2994. `mem_rate` float(5, 4) NOT NULL DEFAULT 1.0000 COMMENT '玩家折扣比例',
  2995. `first_mem_rate` float(5, 4) NOT NULL DEFAULT 1.0000 COMMENT '玩家首充折扣比例',
  2996. `mem_rebate` float(10, 4) NOT NULL DEFAULT 0.0000 COMMENT '玩家返利比例',
  2997. `first_mem_rebate` float(10, 4) NOT NULL DEFAULT 0.0000 COMMENT '玩家首充返利比例',
  2998. `mem_agent_reward` decimal(20, 2) NOT NULL DEFAULT 0.00 COMMENT '玩家渠道奖励',
  2999. `mem_reward` decimal(20, 2) NOT NULL DEFAULT 0.00 COMMENT '玩家奖励',
  3000. `agent_benefit_type` tinyint(4) UNSIGNED NOT NULL DEFAULT 2 COMMENT '渠道分成模式 1 cpa 2 cps',
  3001. `agent_reward` decimal(20, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '渠道cpa单价',
  3002. `sub_agent_reward` decimal(20, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '二级渠道cpa单价',
  3003. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  3004. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间',
  3005. PRIMARY KEY (`app_id`) USING BTREE
  3006. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '游戏折扣返利表' ROW_FORMAT = DYNAMIC;
  3007. -- ----------------------------
  3008. -- Records of h_game_rate
  3009. -- ----------------------------
  3010. -- ----------------------------
  3011. -- Table structure for h_game_server
  3012. -- ----------------------------
  3013. DROP TABLE IF EXISTS `h_game_server`;
  3014. CREATE TABLE `h_game_server` (
  3015. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '开服信息ID',
  3016. `app_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '游戏ID',
  3017. `ser_code` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '区服标识',
  3018. `ser_name` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '新服名称 1服',
  3019. `ser_desc` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '新服描述 例如',
  3020. `start_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '开服时间',
  3021. `status` tinyint(2) NOT NULL DEFAULT 1 COMMENT '新服状态,1为预告,2为已开服',
  3022. `is_delete` tinyint(2) NOT NULL DEFAULT 2 COMMENT '伪删除,2 正常,1 删除',
  3023. `delete_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '删除时间',
  3024. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  3025. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间',
  3026. PRIMARY KEY (`id`) USING BTREE,
  3027. INDEX `sertimeindex`(`start_time`) USING BTREE
  3028. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '游戏开服表' ROW_FORMAT = DYNAMIC;
  3029. -- ----------------------------
  3030. -- Records of h_game_server
  3031. -- ----------------------------
  3032. -- ----------------------------
  3033. -- Table structure for h_game_server_switch
  3034. -- ----------------------------
  3035. DROP TABLE IF EXISTS `h_game_server_switch`;
  3036. CREATE TABLE `h_game_server_switch` (
  3037. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID',
  3038. `app_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '游戏ID',
  3039. `server_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '0' COMMENT '游戏服务器id,默认为0',
  3040. `server_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '所在服务器名称',
  3041. `is_switch` tinyint(1) NOT NULL DEFAULT 2 COMMENT '是否切换 1切换 2不切换 ',
  3042. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  3043. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间',
  3044. PRIMARY KEY (`id`) USING BTREE,
  3045. UNIQUE INDEX `gss_app_server_unique`(`app_id`, `server_id`) USING BTREE
  3046. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '区服支付切换' ROW_FORMAT = DYNAMIC;
  3047. -- ----------------------------
  3048. -- Records of h_game_server_switch
  3049. -- ----------------------------
  3050. -- ----------------------------
  3051. -- Table structure for h_game_version
  3052. -- ----------------------------
  3053. DROP TABLE IF EXISTS `h_game_version`;
  3054. CREATE TABLE `h_game_version` (
  3055. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '编号,自增',
  3056. `app_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '游戏ID',
  3057. `version` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '版本',
  3058. `version_key` char(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '',
  3059. `package_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '包下载地址',
  3060. `size` int(11) NOT NULL DEFAULT 0 COMMENT '大小 单位byte',
  3061. `is_delete` tinyint(2) NOT NULL DEFAULT 2 COMMENT '1 包不可用 2 包可用',
  3062. `delete_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '删除时间',
  3063. `is_default` tinyint(2) NOT NULL DEFAULT 1 COMMENT '1 非默认 2 默认',
  3064. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  3065. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间',
  3066. `content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '版本说明',
  3067. PRIMARY KEY (`id`) USING BTREE,
  3068. INDEX `gv_app_index`(`app_id`) USING BTREE,
  3069. INDEX `gv_ctime_index`(`create_time`) USING BTREE,
  3070. INDEX `gv_delete_index`(`is_delete`) USING BTREE
  3071. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '游戏版本表' ROW_FORMAT = Dynamic;
  3072. -- ----------------------------
  3073. -- Records of h_game_version
  3074. -- ----------------------------
  3075. -- ----------------------------
  3076. -- Table structure for h_gift
  3077. -- ----------------------------
  3078. DROP TABLE IF EXISTS `h_gift`;
  3079. CREATE TABLE `h_gift` (
  3080. `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '礼包ID',
  3081. `app_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '游戏ID',
  3082. `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '礼包标题',
  3083. `start_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '兑换开始时间',
  3084. `end_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '兑换结束时间',
  3085. `dead_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '使用有效期',
  3086. `total_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '礼包总数量',
  3087. `remain_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '礼包剩余数量',
  3088. `condition` int(11) NOT NULL DEFAULT 0 COMMENT '领取条件积分 0 不需要积分',
  3089. `qq_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '加群ID',
  3090. `scope` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '礼包使用范围',
  3091. `func` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '使用方法',
  3092. `content` varchar(1023) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '礼包内容',
  3093. `need_vip` tinyint(2) NOT NULL DEFAULT 1 COMMENT '是否需要VIP 1 不需要 2 需要',
  3094. `is_hot` tinyint(1) NOT NULL DEFAULT 1 COMMENT '1普通 2热门',
  3095. `is_luxury` tinyint(2) NOT NULL DEFAULT 1 COMMENT '是否新游 1 普通 2 豪华礼包',
  3096. `is_rmd` tinyint(1) NOT NULL DEFAULT 1 COMMENT '是否推荐 1 不推荐 2 推荐',
  3097. `hits_cnt` int(11) NOT NULL COMMENT '人气,点击次数',
  3098. `is_delete` tinyint(2) UNSIGNED NOT NULL DEFAULT 2 COMMENT '伪删除,1 删除 2 正常,',
  3099. `delete_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '删除时间',
  3100. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  3101. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间',
  3102. PRIMARY KEY (`id`) USING BTREE,
  3103. INDEX `gift_app_index`(`app_id`) USING BTREE,
  3104. INDEX `gift_start_index`(`start_time`) USING BTREE,
  3105. INDEX `gift_end_index`(`end_time`) USING BTREE
  3106. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '礼包列表' ROW_FORMAT = DYNAMIC;
  3107. -- ----------------------------
  3108. -- Records of h_gift
  3109. -- ----------------------------
  3110. -- ----------------------------
  3111. -- Table structure for h_gift_code
  3112. -- ----------------------------
  3113. DROP TABLE IF EXISTS `h_gift_code`;
  3114. CREATE TABLE `h_gift_code` (
  3115. `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
  3116. `gift_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '礼包表的id',
  3117. `mem_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '0为未领取,非0为领取用户mem_id',
  3118. `code` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '礼包码',
  3119. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '生成时间',
  3120. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '领取时间',
  3121. PRIMARY KEY (`id`) USING BTREE,
  3122. INDEX `gh_gfid_index`(`gift_id`) USING BTREE,
  3123. INDEX `gh_mem_index`(`mem_id`) USING BTREE,
  3124. INDEX `gh_utime_index`(`update_time`) USING BTREE
  3125. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '礼包码表' ROW_FORMAT = DYNAMIC;
  3126. -- ----------------------------
  3127. -- Records of h_gift_code
  3128. -- ----------------------------
  3129. -- ----------------------------
  3130. -- Table structure for h_gm_back
  3131. -- ----------------------------
  3132. DROP TABLE IF EXISTS `h_gm_back`;
  3133. CREATE TABLE `h_gm_back` (
  3134. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  3135. `app_id` int(11) NOT NULL DEFAULT 0 COMMENT '关联游戏',
  3136. `back_order_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '0' COMMENT '扣回订单号',
  3137. `user_type` tinyint(11) NOT NULL DEFAULT 2 COMMENT '1 代理 2 玩家',
  3138. `agent_id` int(11) NOT NULL DEFAULT 0 COMMENT '代理商ID',
  3139. `mem_id` int(11) NOT NULL DEFAULT 0 COMMENT '用户ID',
  3140. `gm_cnt` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '订单游戏币数量',
  3141. `back_gm_cnt` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '扣回订单游戏币数量',
  3142. `status` tinyint(4) NOT NULL DEFAULT 1 COMMENT '状态 1 待审核 2 扣回成功 3 扣回失败',
  3143. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  3144. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间',
  3145. `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '备注',
  3146. PRIMARY KEY (`id`) USING BTREE,
  3147. INDEX `gb_agent_index`(`agent_id`) USING BTREE,
  3148. INDEX `gb_mem_index`(`mem_id`) USING BTREE,
  3149. INDEX `gb_order_index`(`back_order_id`) USING BTREE
  3150. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '游戏币扣回表' ROW_FORMAT = DYNAMIC;
  3151. -- ----------------------------
  3152. -- Records of h_gm_back
  3153. -- ----------------------------
  3154. -- ----------------------------
  3155. -- Table structure for h_gm_charge
  3156. -- ----------------------------
  3157. DROP TABLE IF EXISTS `h_gm_charge`;
  3158. CREATE TABLE `h_gm_charge` (
  3159. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  3160. `order_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '订单号',
  3161. `mem_id` int(11) NOT NULL DEFAULT 0 COMMENT '玩家ID',
  3162. `app_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '游戏ID',
  3163. `from_id` int(11) NOT NULL DEFAULT 0 COMMENT '发放ID',
  3164. `type` tinyint(11) NOT NULL DEFAULT 1 COMMENT '1 充值 2 返利 3 后台发放 4 兑换',
  3165. `amount` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '人民币数额',
  3166. `real_amount` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '实际支付金额',
  3167. `gm_cnt` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '平台币数量',
  3168. `rebate_cnt` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '返利数量 默认为0',
  3169. `discount` float(5, 4) NOT NULL DEFAULT 1.0000 COMMENT '折扣',
  3170. `payway` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '充值方式',
  3171. `ip` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '用户充值时使用的网络终端IP',
  3172. `status` tinyint(4) NOT NULL DEFAULT 1 COMMENT '状态 1 待支付 2 支付完成 3 支付失败',
  3173. `back_status` tinyint(4) NOT NULL DEFAULT 1 COMMENT '状态 1 未被扣回 2 扣回所有 3 扣回部分',
  3174. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间 ',
  3175. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间 ',
  3176. `remark` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '备注',
  3177. PRIMARY KEY (`id`) USING BTREE,
  3178. UNIQUE INDEX `pc_order_unique`(`order_id`) USING BTREE,
  3179. INDEX `pc_mem_index`(`mem_id`) USING BTREE,
  3180. INDEX `pc_from_index`(`from_id`) USING BTREE
  3181. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '玩家游戏币充值记录表' ROW_FORMAT = DYNAMIC;
  3182. -- ----------------------------
  3183. -- Records of h_gm_charge
  3184. -- ----------------------------
  3185. -- ----------------------------
  3186. -- Table structure for h_gm_mem
  3187. -- ----------------------------
  3188. DROP TABLE IF EXISTS `h_gm_mem`;
  3189. CREATE TABLE `h_gm_mem` (
  3190. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  3191. `mem_id` int(11) UNSIGNED NOT NULL COMMENT '玩家ID',
  3192. `app_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '游戏ID',
  3193. `sum_money` double(12, 2) NOT NULL DEFAULT 0.00 COMMENT '充值总金额',
  3194. `total` double(12, 2) NOT NULL DEFAULT 0.00 COMMENT '游戏币数量',
  3195. `remain` double(12, 2) NOT NULL DEFAULT 0.00 COMMENT '游戏币余额',
  3196. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  3197. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间',
  3198. PRIMARY KEY (`id`) USING BTREE,
  3199. UNIQUE INDEX `gm_mem_game_unique`(`mem_id`, `app_id`) USING BTREE,
  3200. INDEX `gm_mem_index`(`mem_id`) USING BTREE
  3201. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '玩家平台币余额表' ROW_FORMAT = DYNAMIC;
  3202. -- ----------------------------
  3203. -- Records of h_gm_mem
  3204. -- ----------------------------
  3205. -- ----------------------------
  3206. -- Table structure for h_gm_order
  3207. -- ----------------------------
  3208. DROP TABLE IF EXISTS `h_gm_order`;
  3209. CREATE TABLE `h_gm_order` (
  3210. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  3211. `order_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '订单号',
  3212. `type` tinyint(11) NOT NULL DEFAULT 1 COMMENT '1 SDK消费 ',
  3213. `app_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '游戏ID',
  3214. `mem_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '用户ID',
  3215. `amount` double(12, 2) NULL DEFAULT 0.00 COMMENT '人民币数额',
  3216. `real_amount` double(12, 2) NOT NULL DEFAULT 0.00 COMMENT '实际支付金额',
  3217. `rebate_cnt` double(12, 2) NOT NULL DEFAULT 0.00 COMMENT '返利数量 默认为0',
  3218. `discount` float(5, 4) NULL DEFAULT 1.0000 COMMENT '折扣',
  3219. `gm_cnt` double(12, 2) NULL DEFAULT 0.00 COMMENT '游戏币数量',
  3220. `payway` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '充值方式',
  3221. `ip` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '未知IP' COMMENT '用户充值时使用的网络终端IP',
  3222. `status` tinyint(4) NOT NULL DEFAULT 1 COMMENT '状态 1 待支付 2 支付完成 3 支付失败',
  3223. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间 ',
  3224. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间 ',
  3225. `remark` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '备注',
  3226. PRIMARY KEY (`id`) USING BTREE,
  3227. UNIQUE INDEX `po_order_unique`(`order_id`) USING BTREE,
  3228. INDEX `po_mem_index`(`mem_id`) USING BTREE
  3229. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '玩家平台币消费表' ROW_FORMAT = DYNAMIC;
  3230. -- ----------------------------
  3231. -- Records of h_gm_order
  3232. -- ----------------------------
  3233. -- ----------------------------
  3234. -- Table structure for h_goods
  3235. -- ----------------------------
  3236. DROP TABLE IF EXISTS `h_goods`;
  3237. CREATE TABLE `h_goods` (
  3238. `id` mediumint(8) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '商品id',
  3239. `admin_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加人ID',
  3240. `goods_name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '商品名称',
  3241. `object_type` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '对应code gift',
  3242. `object_id` smallint(5) UNSIGNED NOT NULL DEFAULT 0 COMMENT '商品类型',
  3243. `store_cnt` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '总数量',
  3244. `remain_cnt` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '剩余数量',
  3245. `market_price` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '市场价',
  3246. `gain_integral` decimal(10, 2) NULL DEFAULT 0.00 COMMENT '本商品增加的积分',
  3247. `integral` decimal(10, 2) NULL DEFAULT 0.00 COMMENT '所需积分',
  3248. `mem_times` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '兑换次数/人 0表示不限次数 ',
  3249. `goods_intro` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '商品简单描述',
  3250. `goods_content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '商品详细描述',
  3251. `initial` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '商品首字母',
  3252. `original_img` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '商品上传原始图',
  3253. `flag` tinyint(2) NULL DEFAULT 3 COMMENT ' 5 抽奖 ',
  3254. `is_real` tinyint(3) UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否为实物 2 实物 1 虚拟物品',
  3255. `is_on_sale` tinyint(1) UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否上架 2 上架 1 未上架',
  3256. `list_order` float NOT NULL DEFAULT 0 COMMENT '排序',
  3257. `on_time` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '商品上架时间',
  3258. `create_time` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '创建时间',
  3259. `update_time` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '最后更新时间',
  3260. `is_delete` tinyint(2) NULL DEFAULT 2 COMMENT '2 正常 1 删除',
  3261. `delete_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '删除时间',
  3262. PRIMARY KEY (`id`) USING BTREE,
  3263. INDEX `goods_remain_index`(`remain_cnt`) USING BTREE,
  3264. INDEX `goods_list_index`(`list_order`) USING BTREE,
  3265. INDEX `goods_itg_index`(`integral`) USING BTREE
  3266. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '积分商城商品表' ROW_FORMAT = DYNAMIC;
  3267. -- ----------------------------
  3268. -- Records of h_goods
  3269. -- ----------------------------
  3270. -- ----------------------------
  3271. -- Table structure for h_hook
  3272. -- ----------------------------
  3273. DROP TABLE IF EXISTS `h_hook`;
  3274. CREATE TABLE `h_hook` (
  3275. `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  3276. `type` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT '钩子类型(1:系统钩子;2:应用钩子;3:模板钩子)',
  3277. `once` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否只允许一个插件运行(0:多个;1:一个)',
  3278. `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '钩子名称',
  3279. `hook` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '钩子',
  3280. `app` varchar(15) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '应用名(只有应用钩子才用)',
  3281. `description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '描述',
  3282. PRIMARY KEY (`id`) USING BTREE
  3283. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '系统钩子表' ROW_FORMAT = DYNAMIC;
  3284. -- ----------------------------
  3285. -- Records of h_hook
  3286. -- ----------------------------
  3287. -- ----------------------------
  3288. -- Table structure for h_hook_plugin
  3289. -- ----------------------------
  3290. DROP TABLE IF EXISTS `h_hook_plugin`;
  3291. CREATE TABLE `h_hook_plugin` (
  3292. `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  3293. `list_order` float NOT NULL DEFAULT 10000 COMMENT '排序',
  3294. `status` tinyint(4) NOT NULL DEFAULT 1 COMMENT '状态(0:禁用,1:启用)',
  3295. `hook` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '钩子名',
  3296. `plugin` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '插件',
  3297. PRIMARY KEY (`id`) USING BTREE
  3298. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '系统钩子插件表' ROW_FORMAT = DYNAMIC;
  3299. -- ----------------------------
  3300. -- Records of h_hook_plugin
  3301. -- ----------------------------
  3302. -- ----------------------------
  3303. -- Table structure for h_identify_agent
  3304. -- ----------------------------
  3305. DROP TABLE IF EXISTS `h_identify_agent`;
  3306. CREATE TABLE `h_identify_agent` (
  3307. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'id',
  3308. `agent_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '渠道id',
  3309. `real_name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '真实姓名',
  3310. `identify_type` tinyint(4) UNSIGNED NOT NULL DEFAULT 1 COMMENT '身份证类型',
  3311. `id_card` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '身份证号',
  3312. `identify_from` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '支付宝 alipay 微信 weixin',
  3313. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  3314. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间',
  3315. PRIMARY KEY (`id`) USING BTREE,
  3316. UNIQUE INDEX `im_agent_card_index`(`agent_id`, `id_card`) USING BTREE
  3317. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '渠道实名认证信息表' ROW_FORMAT = Dynamic;
  3318. -- ----------------------------
  3319. -- Records of h_identify_agent
  3320. -- ----------------------------
  3321. -- ----------------------------
  3322. -- Table structure for h_identify_day_dot
  3323. -- ----------------------------
  3324. DROP TABLE IF EXISTS `h_identify_day_dot`;
  3325. CREATE TABLE `h_identify_day_dot` (
  3326. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'id',
  3327. `date` date NOT NULL COMMENT '日期',
  3328. `mem_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '玩家ID',
  3329. `device_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '设备ID android 为imei ios 为idfa h5 为 永久cookie标识 huoh5开头标识',
  3330. `online_duration` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '在线时长',
  3331. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  3332. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间',
  3333. PRIMARY KEY (`id`) USING BTREE,
  3334. UNIQUE INDEX `idd_dmd_unique`(`date`, `mem_id`, `device_id`) USING BTREE,
  3335. INDEX `idd_device_index`(`device_id`) USING BTREE
  3336. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '玩家设备每日在线时长统计 dot:device_online_time' ROW_FORMAT = Dynamic;
  3337. -- ----------------------------
  3338. -- Records of h_identify_day_dot
  3339. -- ----------------------------
  3340. -- ----------------------------
  3341. -- Table structure for h_identify_day_dot_202111
  3342. -- ----------------------------
  3343. DROP TABLE IF EXISTS `h_identify_day_dot_202111`;
  3344. CREATE TABLE `h_identify_day_dot_202111` (
  3345. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'id',
  3346. `date` date NOT NULL DEFAULT '2021-11-01' COMMENT '日期',
  3347. `mem_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '玩家ID',
  3348. `device_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '设备ID android 为imei ios 为idfa h5 为 永久cookie标识 huoh5开头标识',
  3349. `online_duration` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '在线时长',
  3350. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  3351. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间',
  3352. PRIMARY KEY (`id`) USING BTREE,
  3353. UNIQUE INDEX `idd_dmd_unique`(`date`, `mem_id`, `device_id`) USING BTREE,
  3354. INDEX `idd_device_index`(`device_id`) USING BTREE
  3355. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '玩家设备每日在线时长统计 dot:device_online_time' ROW_FORMAT = Dynamic;
  3356. -- ----------------------------
  3357. -- Records of h_identify_day_dot_202111
  3358. -- ----------------------------
  3359. -- ----------------------------
  3360. -- Table structure for h_identify_day_idot
  3361. -- ----------------------------
  3362. DROP TABLE IF EXISTS `h_identify_day_idot`;
  3363. CREATE TABLE `h_identify_day_idot` (
  3364. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'id',
  3365. `date` date NOT NULL COMMENT '日期',
  3366. `mem_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '玩家ID',
  3367. `id_card` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '证件号identify_card',
  3368. `online_duration` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '在线时长',
  3369. `sum_money` decimal(12, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '消费金额',
  3370. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  3371. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间',
  3372. PRIMARY KEY (`id`) USING BTREE,
  3373. UNIQUE INDEX `idi_dmi_unique`(`date`, `mem_id`, `id_card`) USING BTREE,
  3374. INDEX `idi_card_index`(`id_card`) USING BTREE
  3375. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '玩家实名每日在线时长统计 idot:id_card_online_time' ROW_FORMAT = Dynamic;
  3376. -- ----------------------------
  3377. -- Records of h_identify_day_idot
  3378. -- ----------------------------
  3379. -- ----------------------------
  3380. -- Table structure for h_identify_day_idot_202111
  3381. -- ----------------------------
  3382. DROP TABLE IF EXISTS `h_identify_day_idot_202111`;
  3383. CREATE TABLE `h_identify_day_idot_202111` (
  3384. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'id',
  3385. `date` date NOT NULL DEFAULT '2021-11-01' COMMENT '日期',
  3386. `mem_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '玩家ID',
  3387. `id_card` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '证件号identify_card',
  3388. `online_duration` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '在线时长',
  3389. `sum_money` decimal(12, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '消费金额',
  3390. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  3391. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间',
  3392. PRIMARY KEY (`id`) USING BTREE,
  3393. UNIQUE INDEX `idi_dmi_unique`(`date`, `mem_id`, `id_card`) USING BTREE,
  3394. INDEX `idi_card_index`(`id_card`) USING BTREE
  3395. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '玩家实名每日在线时长统计 idot:id_card_online_time' ROW_FORMAT = Dynamic;
  3396. -- ----------------------------
  3397. -- Records of h_identify_day_idot_202111
  3398. -- ----------------------------
  3399. -- ----------------------------
  3400. -- Table structure for h_identify_day_mot
  3401. -- ----------------------------
  3402. DROP TABLE IF EXISTS `h_identify_day_mot`;
  3403. CREATE TABLE `h_identify_day_mot` (
  3404. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'id',
  3405. `date` date NOT NULL COMMENT '日期',
  3406. `mem_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '玩家ID',
  3407. `online_duration` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '在线时长',
  3408. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  3409. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间',
  3410. PRIMARY KEY (`id`) USING BTREE,
  3411. UNIQUE INDEX `idm_dm_unique`(`date`, `mem_id`) USING BTREE
  3412. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '玩家每日在线时长统计 mot:mem_online_time' ROW_FORMAT = Dynamic;
  3413. -- ----------------------------
  3414. -- Records of h_identify_day_mot
  3415. -- ----------------------------
  3416. -- ----------------------------
  3417. -- Table structure for h_identify_day_mot_202111
  3418. -- ----------------------------
  3419. DROP TABLE IF EXISTS `h_identify_day_mot_202111`;
  3420. CREATE TABLE `h_identify_day_mot_202111` (
  3421. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'id',
  3422. `date` date NOT NULL DEFAULT '2021-11-01' COMMENT '日期',
  3423. `mem_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '玩家ID',
  3424. `online_duration` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '在线时长',
  3425. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  3426. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间',
  3427. PRIMARY KEY (`id`) USING BTREE,
  3428. UNIQUE INDEX `idm_dm_unique`(`date`, `mem_id`) USING BTREE
  3429. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '玩家每日在线时长统计 mot:mem_online_time' ROW_FORMAT = Dynamic;
  3430. -- ----------------------------
  3431. -- Records of h_identify_day_mot_202111
  3432. -- ----------------------------
  3433. -- ----------------------------
  3434. -- Table structure for h_identify_dot
  3435. -- ----------------------------
  3436. DROP TABLE IF EXISTS `h_identify_dot`;
  3437. CREATE TABLE `h_identify_dot` (
  3438. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'id',
  3439. `device_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '设备ID android 为imei ios 为idfa h5 为 永久cookie标识 huoh5开头标识',
  3440. `online_duration` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '在线时长s,下次允许访问时重置',
  3441. `next_allow_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '下次允许访问时间',
  3442. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  3443. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间',
  3444. PRIMARY KEY (`id`) USING BTREE,
  3445. UNIQUE INDEX `id_device_index`(`device_id`) USING BTREE
  3446. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '设备在线时长统计 dot:device_online_time' ROW_FORMAT = Dynamic;
  3447. -- ----------------------------
  3448. -- Records of h_identify_dot
  3449. -- ----------------------------
  3450. -- ----------------------------
  3451. -- Table structure for h_identify_game
  3452. -- ----------------------------
  3453. DROP TABLE IF EXISTS `h_identify_game`;
  3454. CREATE TABLE `h_identify_game` (
  3455. `id` int(10) UNSIGNED NOT NULL COMMENT 'ID',
  3456. `app_id` int(10) UNSIGNED NOT NULL COMMENT '对应与game表中id',
  3457. `app_key` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'appid',
  3458. `driver_key` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '驱动key',
  3459. `app_secret` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'secret',
  3460. `biz_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '游戏备案识别码',
  3461. `ext_info` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '扩展信息',
  3462. `pre_check` tinyint(3) UNSIGNED NOT NULL COMMENT '实名认证前置校验 1 正则校验 2阿里/腾讯云',
  3463. `create_time` bigint(20) UNSIGNED NOT NULL COMMENT '创建时间',
  3464. `update_time` bigint(20) UNSIGNED NOT NULL COMMENT '更新时间',
  3465. PRIMARY KEY (`id`) USING BTREE,
  3466. INDEX `ig_app_index`(`app_id`) USING BTREE
  3467. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '游戏实名认证配置表' ROW_FORMAT = Dynamic;
  3468. -- ----------------------------
  3469. -- Records of h_identify_game
  3470. -- ----------------------------
  3471. -- ----------------------------
  3472. -- Table structure for h_identify_holiday_set
  3473. -- ----------------------------
  3474. DROP TABLE IF EXISTS `h_identify_holiday_set`;
  3475. CREATE TABLE `h_identify_holiday_set` (
  3476. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'id',
  3477. `year` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '年份',
  3478. `holiday` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '节假日非周六日日期数组',
  3479. `workday` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '周六日调班的日期数组',
  3480. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  3481. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间',
  3482. PRIMARY KEY (`id`) USING BTREE,
  3483. INDEX `hs_year_index`(`year`) USING BTREE
  3484. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '节假日配置' ROW_FORMAT = DYNAMIC;
  3485. -- ----------------------------
  3486. -- Records of h_identify_holiday_set
  3487. -- ----------------------------
  3488. -- ----------------------------
  3489. -- Table structure for h_identify_idot
  3490. -- ----------------------------
  3491. DROP TABLE IF EXISTS `h_identify_idot`;
  3492. CREATE TABLE `h_identify_idot` (
  3493. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'id',
  3494. `id_card` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '证件号identify_card',
  3495. `day_online_duration` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '今日在线时长s,每日重置',
  3496. `week_online_duration` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '本周在线时长s,每周一重置',
  3497. `month_online_duration` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '本月在线时长s,每月一日重置',
  3498. `online_duration` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '总在线时长s,不重置',
  3499. `day_money` decimal(12, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '今日消费金额,每日重置',
  3500. `week_money` decimal(12, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '本周消费金额,每周一重置',
  3501. `month_money` decimal(12, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '本月消费金额,每月一日重置',
  3502. `sum_money` decimal(12, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '总消费金额,不重置',
  3503. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  3504. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间',
  3505. PRIMARY KEY (`id`) USING BTREE,
  3506. UNIQUE INDEX `ii_card_index`(`id_card`) USING BTREE
  3507. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '实名信息在线时长统计 idot:id_card_online_time' ROW_FORMAT = Dynamic;
  3508. -- ----------------------------
  3509. -- Records of h_identify_idot
  3510. -- ----------------------------
  3511. -- ----------------------------
  3512. -- Table structure for h_identify_in_queue
  3513. -- ----------------------------
  3514. DROP TABLE IF EXISTS `h_identify_in_queue`;
  3515. CREATE TABLE `h_identify_in_queue` (
  3516. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID',
  3517. `app_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '游戏ID',
  3518. `uid` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '渠道唯一用户id',
  3519. `channel_code` int(11) NOT NULL DEFAULT 0 COMMENT '渠道编码',
  3520. `real_name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '真实姓名',
  3521. `id_card` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '身份证号',
  3522. `identify_pi` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '验证平台的用户唯一标识',
  3523. `create_time` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '创建时间',
  3524. `update_time` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
  3525. PRIMARY KEY (`id`) USING BTREE,
  3526. UNIQUE INDEX `iiq_uid_channel_card_unique`(`uid`, `channel_code`, `id_card`) USING BTREE
  3527. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '实名认证队列中信息' ROW_FORMAT = Dynamic;
  3528. -- ----------------------------
  3529. -- Records of h_identify_in_queue
  3530. -- ----------------------------
  3531. -- ----------------------------
  3532. -- Table structure for h_identify_mem
  3533. -- ----------------------------
  3534. DROP TABLE IF EXISTS `h_identify_mem`;
  3535. CREATE TABLE `h_identify_mem` (
  3536. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'id',
  3537. `mem_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '玩家id',
  3538. `real_name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '真实姓名',
  3539. `identify_type` tinyint(4) UNSIGNED NOT NULL DEFAULT 1 COMMENT '身份证类型',
  3540. `id_card` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '身份证号',
  3541. `identify_from` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '支付宝 alipay 微信 weixin',
  3542. `identify_pi` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '验证平台的用户唯一标识',
  3543. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  3544. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间',
  3545. PRIMARY KEY (`id`) USING BTREE,
  3546. UNIQUE INDEX `im_mem_card_index`(`mem_id`, `id_card`) USING BTREE
  3547. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '玩家实名认证信息表' ROW_FORMAT = Dynamic;
  3548. -- ----------------------------
  3549. -- Records of h_identify_mem
  3550. -- ----------------------------
  3551. -- ----------------------------
  3552. -- Table structure for h_identify_mot
  3553. -- ----------------------------
  3554. DROP TABLE IF EXISTS `h_identify_mot`;
  3555. CREATE TABLE `h_identify_mot` (
  3556. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'id',
  3557. `mem_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '玩家ID',
  3558. `online_duration` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '在线时长s,下次允许访问时重置',
  3559. `next_allow_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '下次允许访问时间',
  3560. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  3561. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间',
  3562. PRIMARY KEY (`id`) USING BTREE,
  3563. UNIQUE INDEX `im_mem_index`(`mem_id`) USING BTREE
  3564. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '玩家在线时长统计 mot:mem_online_time' ROW_FORMAT = Dynamic;
  3565. -- ----------------------------
  3566. -- Records of h_identify_mot
  3567. -- ----------------------------
  3568. -- ----------------------------
  3569. -- Table structure for h_identify_order
  3570. -- ----------------------------
  3571. DROP TABLE IF EXISTS `h_identify_order`;
  3572. CREATE TABLE `h_identify_order` (
  3573. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID',
  3574. `ai` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '实名认证查询标识',
  3575. `mem_id` int(11) NOT NULL DEFAULT 0 COMMENT '玩家id',
  3576. `biz_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '游戏备案识别码',
  3577. `real_name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '真实姓名',
  3578. `id_card` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '身份证号',
  3579. `status` tinyint(4) UNSIGNED NOT NULL DEFAULT 1 COMMENT '接口返回认证状态 0 认证成功 1认证中 2认证失败',
  3580. `create_time` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '创建时间',
  3581. `update_time` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
  3582. PRIMARY KEY (`id`) USING BTREE,
  3583. UNIQUE INDEX `io_ai_unique`(`ai`) USING BTREE,
  3584. INDEX `io_mem_biz_unique_index`(`mem_id`, `biz_id`) USING BTREE
  3585. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '玩家实名认证记录' ROW_FORMAT = Dynamic;
  3586. -- ----------------------------
  3587. -- Records of h_identify_order
  3588. -- ----------------------------
  3589. -- ----------------------------
  3590. -- Table structure for h_identify_pi
  3591. -- ----------------------------
  3592. DROP TABLE IF EXISTS `h_identify_pi`;
  3593. CREATE TABLE `h_identify_pi` (
  3594. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'id',
  3595. `id_card` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '身份证号',
  3596. `real_name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '真实姓名',
  3597. `identify_pi` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '验证平台的用户唯一标识',
  3598. `identify_from` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '支付宝 alipay 微信 weixin',
  3599. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  3600. PRIMARY KEY (`id`) USING BTREE,
  3601. UNIQUE INDEX `im_card_unique`(`id_card`) USING BTREE,
  3602. INDEX `im_pi_unique`(`identify_pi`(191)) USING BTREE
  3603. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '实名认证pi表' ROW_FORMAT = Dynamic;
  3604. -- ----------------------------
  3605. -- Records of h_identify_pi
  3606. -- ----------------------------
  3607. -- ----------------------------
  3608. -- Table structure for h_identify_platform_log
  3609. -- ----------------------------
  3610. DROP TABLE IF EXISTS `h_identify_platform_log`;
  3611. CREATE TABLE `h_identify_platform_log` (
  3612. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID',
  3613. `mem_id` int(11) NOT NULL DEFAULT 0 COMMENT '玩家id',
  3614. `mg_mem_id` int(11) NOT NULL DEFAULT 0 COMMENT '玩家小号id',
  3615. `app_id` int(11) NOT NULL DEFAULT 0 COMMENT '游戏id',
  3616. `identify_from` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '认证来源 益玩yiwan',
  3617. `real_name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '真实姓名',
  3618. `id_card` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '身份证号',
  3619. `identify_pi` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '验证平台的用户唯一标识',
  3620. `status` tinyint(4) UNSIGNED NOT NULL DEFAULT 1 COMMENT '接口返回认证状态 1 认证成功 2认证中 3认证失败',
  3621. `create_time` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '创建时间',
  3622. `update_time` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
  3623. PRIMARY KEY (`id`) USING BTREE,
  3624. UNIQUE INDEX `ipl_mg_if_unique`(`mg_mem_id`, `identify_from`) USING BTREE
  3625. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '玩家实名认证平台记录' ROW_FORMAT = Dynamic;
  3626. -- ----------------------------
  3627. -- Records of h_identify_platform_log
  3628. -- ----------------------------
  3629. -- ----------------------------
  3630. -- Table structure for h_ip_ban
  3631. -- ----------------------------
  3632. DROP TABLE IF EXISTS `h_ip_ban`;
  3633. CREATE TABLE `h_ip_ban` (
  3634. `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'id',
  3635. `ip` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'IP地址',
  3636. `reg_ban` tinyint(2) NOT NULL DEFAULT 2 COMMENT '禁止注册 1禁止 2不禁止',
  3637. `login_ban` tinyint(2) NOT NULL DEFAULT 2 COMMENT '禁止登陆 1禁止 2不禁止',
  3638. `access_ban` tinyint(2) NOT NULL DEFAULT 2 COMMENT '禁止访问 1禁止 2不禁止',
  3639. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  3640. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更改时间',
  3641. PRIMARY KEY (`id`) USING BTREE,
  3642. UNIQUE INDEX `ip`(`ip`) USING BTREE
  3643. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = 'IP封禁表' ROW_FORMAT = DYNAMIC;
  3644. -- ----------------------------
  3645. -- Records of h_ip_ban
  3646. -- ----------------------------
  3647. -- ----------------------------
  3648. -- Table structure for h_itg_act
  3649. -- ----------------------------
  3650. DROP TABLE IF EXISTS `h_itg_act`;
  3651. CREATE TABLE `h_itg_act` (
  3652. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '积分任务ID',
  3653. `ia_code` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '活动代号',
  3654. `ia_name` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '活动名称',
  3655. `ia_desc` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '活动描述',
  3656. `integral` int(11) NOT NULL DEFAULT 0 COMMENT '可获得积分',
  3657. `icon` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '图标',
  3658. `link_table` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '关联的表',
  3659. `start_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '活动开始时间',
  3660. `end_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '活动结束时间',
  3661. `is_delete` tinyint(2) NOT NULL DEFAULT 2 COMMENT '是否删除 2正常,1删除',
  3662. `delete_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '删除时间',
  3663. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  3664. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间',
  3665. `limit_agent` tinyint(2) NOT NULL DEFAULT 1 COMMENT '活动限制渠道 2 不限制 1 限制',
  3666. `limit_cnt` int(11) NOT NULL DEFAULT 1 COMMENT '限制次数',
  3667. `list_order` int(11) NOT NULL DEFAULT 0 COMMENT '默认排序',
  3668. `type` tinyint(4) NOT NULL DEFAULT 2 COMMENT '1 一次性任务 2 日常任务 3 长期',
  3669. PRIMARY KEY (`id`) USING BTREE,
  3670. UNIQUE INDEX `ia_code_unique`(`ia_code`) USING BTREE,
  3671. INDEX `ia_delete_index`(`is_delete`) USING BTREE,
  3672. INDEX `ia_agent_agent_index`(`limit_agent`) USING BTREE
  3673. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '积分活动列表' ROW_FORMAT = DYNAMIC;
  3674. -- ----------------------------
  3675. -- Records of h_itg_act
  3676. -- ----------------------------
  3677. -- ----------------------------
  3678. -- Table structure for h_itg_invited_log
  3679. -- ----------------------------
  3680. DROP TABLE IF EXISTS `h_itg_invited_log`;
  3681. CREATE TABLE `h_itg_invited_log` (
  3682. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '分成记录表',
  3683. `parent_mem_id` int(11) NULL DEFAULT 0 COMMENT '邀请人ID',
  3684. `mem_id` int(11) NULL DEFAULT 0 COMMENT '被邀请人id',
  3685. `app_id` int(11) NULL DEFAULT 0 COMMENT '邀请的游戏',
  3686. `integral` decimal(10, 2) NULL DEFAULT 0.00 COMMENT '获得的积分',
  3687. `create_time` bigint(20) NULL DEFAULT 0 COMMENT '积分记录生成时间',
  3688. PRIMARY KEY (`id`) USING BTREE,
  3689. INDEX `parent_mem_idindex`(`parent_mem_id`) USING BTREE,
  3690. INDEX `mem_idindex`(`mem_id`) USING BTREE
  3691. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '邀请送积分记录表' ROW_FORMAT = DYNAMIC;
  3692. -- ----------------------------
  3693. -- Records of h_itg_invited_log
  3694. -- ----------------------------
  3695. -- ----------------------------
  3696. -- Table structure for h_itg_order
  3697. -- ----------------------------
  3698. DROP TABLE IF EXISTS `h_itg_order`;
  3699. CREATE TABLE `h_itg_order` (
  3700. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '订单id',
  3701. `order_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '订单编号',
  3702. `mem_id` int(11) NOT NULL DEFAULT 0 COMMENT '用户ID',
  3703. `flag` tinyint(2) NULL DEFAULT 3 COMMENT '1 购买代金卷 2 购买礼包 3 购买礼品卡 4 购买实物 5 抽奖 ',
  3704. `act_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '活动Id',
  3705. `goods_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '商品id',
  3706. `integral` double(20, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '使用积分',
  3707. `status` tinyint(2) NULL DEFAULT NULL COMMENT '状态 1 待支付 2 支付完成 3 支付失败',
  3708. `shipping_status` tinyint(2) UNSIGNED NOT NULL DEFAULT 1 COMMENT '4 待领取 1 未发货 2 已发货 3 发货失败',
  3709. `consignee` varchar(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '收货人',
  3710. `country` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '国家',
  3711. `province` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '省份',
  3712. `city` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '城市',
  3713. `district` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '县区',
  3714. `town` int(11) NULL DEFAULT 0 COMMENT '乡镇',
  3715. `address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '地址',
  3716. `zipcode` varchar(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '邮政编码',
  3717. `mobile` varchar(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '手机',
  3718. `email` varchar(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '邮件',
  3719. `shipping_code` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '0' COMMENT '物流code',
  3720. `shipping_name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '物流名称',
  3721. `shipping_price` decimal(20, 2) NOT NULL DEFAULT 0.00 COMMENT '邮费',
  3722. `invoice_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '物流单号',
  3723. `user_note` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '用户备注',
  3724. `admin_note` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '管理员备注',
  3725. `create_time` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '创建时间 ',
  3726. `update_time` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '最后更新时间',
  3727. `shipping_time` bigint(20) NULL DEFAULT 0 COMMENT '最后新发货时间',
  3728. `confirm_time` bigint(20) NULL DEFAULT 0 COMMENT '收货确认时间',
  3729. PRIMARY KEY (`id`) USING BTREE,
  3730. UNIQUE INDEX `io_order_id`(`order_id`) USING BTREE,
  3731. INDEX `io_mem_id`(`mem_id`) USING BTREE,
  3732. INDEX `io_status`(`status`) USING BTREE,
  3733. INDEX `io_shipping_status`(`shipping_status`) USING BTREE
  3734. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '积分兑换订单表' ROW_FORMAT = DYNAMIC;
  3735. -- ----------------------------
  3736. -- Records of h_itg_order
  3737. -- ----------------------------
  3738. -- ----------------------------
  3739. -- Table structure for h_ldm_switch_temp
  3740. -- ----------------------------
  3741. DROP TABLE IF EXISTS `h_ldm_switch_temp`;
  3742. CREATE TABLE `h_ldm_switch_temp` (
  3743. `id` int(11) NOT NULL AUTO_INCREMENT,
  3744. `date` date NOT NULL COMMENT '日期',
  3745. `mem_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '玩家ID',
  3746. `agent_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '归属渠道',
  3747. `app_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '游戏ID',
  3748. `reg_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '玩家注册时间',
  3749. `reg_days` int(11) NOT NULL DEFAULT 0 COMMENT '注册天数',
  3750. `role_days` int(11) NOT NULL DEFAULT 0 COMMENT '创角天数',
  3751. `device_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '手机设备码',
  3752. `device_cnt` int(11) NOT NULL DEFAULT 1 COMMENT '登陆的设备个数',
  3753. `login_cnt` int(11) NOT NULL DEFAULT 1 COMMENT '登陆次数',
  3754. `sum_money` double(12, 2) NOT NULL DEFAULT 0.00 COMMENT '累计充值',
  3755. `sum_real_money` double(12, 2) NOT NULL DEFAULT 0.00 COMMENT '自然流水金额',
  3756. `first_pay_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '第一笔充值时间',
  3757. `last_pay_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '最近充值时间',
  3758. `last_money` double(12, 2) NOT NULL DEFAULT 0.00 COMMENT '最近充值金额',
  3759. `order_cnt` int(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '订单数量',
  3760. `order_suc_cnt` int(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '支付成功订单数量',
  3761. `last_login_ip` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '玩家最近登陆ip',
  3762. `auth_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '授权登陆次数',
  3763. PRIMARY KEY (`id`) USING BTREE,
  3764. UNIQUE INDEX `ldmt_date_mem_app_unique`(`date`, `mem_id`, `app_id`) USING BTREE,
  3765. INDEX `ldmt_ip_index`(`last_login_ip`) USING BTREE,
  3766. INDEX `ldmt_agent_index`(`agent_id`) USING BTREE,
  3767. INDEX `ldmt_app_index`(`app_id`) USING BTREE
  3768. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '玩家每日临时' ROW_FORMAT = Dynamic;
  3769. -- ----------------------------
  3770. -- Records of h_ldm_switch_temp
  3771. -- ----------------------------
  3772. -- ----------------------------
  3773. -- Table structure for h_link
  3774. -- ----------------------------
  3775. DROP TABLE IF EXISTS `h_link`;
  3776. CREATE TABLE `h_link` (
  3777. `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
  3778. `status` tinyint(3) UNSIGNED NOT NULL DEFAULT 1 COMMENT '状态;1:显示;0:不显示',
  3779. `rating` int(11) NOT NULL DEFAULT 0 COMMENT '友情链接评级',
  3780. `list_order` float NOT NULL DEFAULT 10000 COMMENT '排序',
  3781. `description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '友情链接描述',
  3782. `url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '友情链接地址',
  3783. `name` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '友情链接名称',
  3784. `image` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '友情链接图标',
  3785. `target` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '友情链接打开方式',
  3786. `rel` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '链接与网站的关系',
  3787. PRIMARY KEY (`id`) USING BTREE,
  3788. INDEX `link_visible_index`(`status`) USING BTREE
  3789. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '友情链接表' ROW_FORMAT = DYNAMIC;
  3790. -- ----------------------------
  3791. -- Records of h_link
  3792. -- ----------------------------
  3793. -- ----------------------------
  3794. -- Table structure for h_log_day_mem_temp
  3795. -- ----------------------------
  3796. DROP TABLE IF EXISTS `h_log_day_mem_temp`;
  3797. CREATE TABLE `h_log_day_mem_temp` (
  3798. `id` int(11) NOT NULL AUTO_INCREMENT,
  3799. `date` date NOT NULL COMMENT '日期',
  3800. `mem_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '玩家ID',
  3801. `agent_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '归属渠道',
  3802. `app_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '游戏ID',
  3803. `reg_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '玩家注册时间',
  3804. `reg_days` int(11) NOT NULL DEFAULT 0 COMMENT '注册天数',
  3805. `role_days` int(11) NOT NULL DEFAULT 0 COMMENT '创角天数',
  3806. `device_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '手机设备码',
  3807. `device_cnt` int(11) NOT NULL DEFAULT 1 COMMENT '登陆的设备个数',
  3808. `login_cnt` int(11) NOT NULL DEFAULT 1 COMMENT '登陆次数',
  3809. `sum_money` double(12, 2) NOT NULL DEFAULT 0.00 COMMENT '累计充值',
  3810. `sum_real_money` double(12, 2) NOT NULL DEFAULT 0.00 COMMENT '自然流水金额',
  3811. `first_pay_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '第一笔充值时间',
  3812. `last_pay_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '最近充值时间',
  3813. `last_money` double(12, 2) NOT NULL DEFAULT 0.00 COMMENT '最近充值金额',
  3814. `order_cnt` int(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '订单数量',
  3815. `order_suc_cnt` int(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '支付成功订单数量',
  3816. `last_login_ip` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '玩家最近登陆ip',
  3817. `auth_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '授权登陆次数',
  3818. PRIMARY KEY (`id`) USING BTREE,
  3819. UNIQUE INDEX `ldmt_date_mem_app_unique`(`date`, `mem_id`, `app_id`) USING BTREE,
  3820. INDEX `ldmt_ip_index`(`last_login_ip`) USING BTREE,
  3821. INDEX `ldmt_agent_index`(`agent_id`) USING BTREE,
  3822. INDEX `ldmt_app_index`(`app_id`) USING BTREE
  3823. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '玩家每日临时' ROW_FORMAT = Dynamic;
  3824. -- ----------------------------
  3825. -- Records of h_log_day_mem_temp
  3826. -- ----------------------------
  3827. -- ----------------------------
  3828. -- Table structure for h_log_day_pay_switch_temp
  3829. -- ----------------------------
  3830. DROP TABLE IF EXISTS `h_log_day_pay_switch_temp`;
  3831. CREATE TABLE `h_log_day_pay_switch_temp` (
  3832. `id` int(11) NOT NULL AUTO_INCREMENT,
  3833. `date` date NOT NULL COMMENT '日期',
  3834. `mem_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '玩家ID',
  3835. `agent_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '归属渠道',
  3836. `app_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '游戏ID',
  3837. `reg_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '玩家注册时间',
  3838. `reg_days` int(11) NOT NULL DEFAULT 0 COMMENT '注册天数',
  3839. `user_pay` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '支付金额',
  3840. PRIMARY KEY (`id`) USING BTREE,
  3841. UNIQUE INDEX `ldmt_date_mem_app_unique`(`date`, `mem_id`, `app_id`) USING BTREE,
  3842. INDEX `ldmt_agent_index`(`agent_id`) USING BTREE,
  3843. INDEX `ldmt_app_index`(`app_id`) USING BTREE
  3844. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '每日支付切换临时' ROW_FORMAT = Dynamic;
  3845. -- ----------------------------
  3846. -- Records of h_log_day_pay_switch_temp
  3847. -- ----------------------------
  3848. -- ----------------------------
  3849. -- Table structure for h_log_day_pay_temp
  3850. -- ----------------------------
  3851. DROP TABLE IF EXISTS `h_log_day_pay_temp`;
  3852. CREATE TABLE `h_log_day_pay_temp` (
  3853. `id` int(11) NOT NULL AUTO_INCREMENT,
  3854. `date` date NOT NULL COMMENT '日期',
  3855. `mem_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '玩家ID',
  3856. `agent_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '归属渠道',
  3857. `app_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '游戏ID',
  3858. `reg_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '玩家注册时间',
  3859. `reg_days` int(11) NOT NULL DEFAULT 0 COMMENT '注册天数',
  3860. `user_pay` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '支付金额',
  3861. PRIMARY KEY (`id`) USING BTREE,
  3862. UNIQUE INDEX `ldmt_date_mem_app_unique`(`date`, `mem_id`, `app_id`) USING BTREE,
  3863. INDEX `ldmt_agent_index`(`agent_id`) USING BTREE,
  3864. INDEX `ldmt_app_index`(`app_id`) USING BTREE
  3865. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '每日支付临时' ROW_FORMAT = Dynamic;
  3866. -- ----------------------------
  3867. -- Records of h_log_day_pay_temp
  3868. -- ----------------------------
  3869. -- ----------------------------
  3870. -- Table structure for h_log_mem_login_202111
  3871. -- ----------------------------
  3872. DROP TABLE IF EXISTS `h_log_mem_login_202111`;
  3873. CREATE TABLE `h_log_mem_login_202111` (
  3874. `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'id',
  3875. `date` date NOT NULL DEFAULT '2020-01-01' COMMENT '日期',
  3876. `mem_id` int(11) NOT NULL DEFAULT 0 COMMENT '玩家ID',
  3877. `mg_mem_id` int(11) NOT NULL DEFAULT 0 COMMENT '登陆游戏唯一标识ID 与mem_game的mg_mem_id对应',
  3878. `agent_id` int(11) NOT NULL DEFAULT 0 COMMENT '玩家归属的ch_id',
  3879. `agent_game` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '子渠道编号',
  3880. `app_id` int(11) NOT NULL DEFAULT 0 COMMENT '游戏id',
  3881. `device_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '手机设备码',
  3882. `idfv` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'IOS idfv',
  3883. `mac` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '设备的mac',
  3884. `ip` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '设备网络IP地址',
  3885. `brand` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '设备品牌',
  3886. `model` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '机型',
  3887. `os` varchar(8) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '操作系统',
  3888. `os_version` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '操作系统版本',
  3889. `screen` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '分辨率',
  3890. `net` varchar(8) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '3G,4G,WIFI',
  3891. `imsi` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '设备的imsi',
  3892. `longitude` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '经度',
  3893. `latitude` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '纬度',
  3894. `userua` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '用户使用的移动终端的UA信息',
  3895. `from` smallint(4) NOT NULL DEFAULT 0 COMMENT '3 ANDROID、4 IOS、5 H5、 401 IOS切换',
  3896. `reg_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '注册时间',
  3897. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '登录时间',
  3898. `open_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '打开此应用次数',
  3899. `reg_app_id` int(11) NOT NULL DEFAULT 0 COMMENT '注册游戏ID',
  3900. PRIMARY KEY (`id`) USING BTREE,
  3901. INDEX `lml_time_index`(`create_time`) USING BTREE,
  3902. INDEX `lml_mem_index`(`mem_id`) USING BTREE,
  3903. INDEX `lml_date_index`(`date`) USING BTREE
  3904. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '玩家登陆LOG' ROW_FORMAT = Dynamic;
  3905. -- ----------------------------
  3906. -- Records of h_log_mem_login_202111
  3907. -- ----------------------------
  3908. -- ----------------------------
  3909. -- Table structure for h_log_mem_login_202112
  3910. -- ----------------------------
  3911. DROP TABLE IF EXISTS `h_log_mem_login_202112`;
  3912. CREATE TABLE `h_log_mem_login_202112` (
  3913. `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'id',
  3914. `date` date NOT NULL DEFAULT '2020-01-01' COMMENT '日期',
  3915. `mem_id` int(11) NOT NULL DEFAULT 0 COMMENT '玩家ID',
  3916. `mg_mem_id` int(11) NOT NULL DEFAULT 0 COMMENT '登陆游戏唯一标识ID 与mem_game的mg_mem_id对应',
  3917. `agent_id` int(11) NOT NULL DEFAULT 0 COMMENT '玩家归属的ch_id',
  3918. `agent_game` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '子渠道编号',
  3919. `app_id` int(11) NOT NULL DEFAULT 0 COMMENT '游戏id',
  3920. `device_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '手机设备码',
  3921. `idfv` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'IOS idfv',
  3922. `mac` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '设备的mac',
  3923. `ip` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '设备网络IP地址',
  3924. `brand` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '设备品牌',
  3925. `model` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '机型',
  3926. `os` varchar(8) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '操作系统',
  3927. `os_version` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '操作系统版本',
  3928. `screen` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '分辨率',
  3929. `net` varchar(8) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '3G,4G,WIFI',
  3930. `imsi` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '设备的imsi',
  3931. `longitude` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '经度',
  3932. `latitude` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '纬度',
  3933. `userua` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '用户使用的移动终端的UA信息',
  3934. `from` smallint(4) NOT NULL DEFAULT 0 COMMENT '3 ANDROID、4 IOS、5 H5、 401 IOS切换',
  3935. `reg_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '注册时间',
  3936. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '登录时间',
  3937. `open_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '打开此应用次数',
  3938. `reg_app_id` int(11) NOT NULL DEFAULT 0 COMMENT '注册游戏ID',
  3939. PRIMARY KEY (`id`) USING BTREE,
  3940. INDEX `lml_time_index`(`create_time`) USING BTREE,
  3941. INDEX `lml_mem_index`(`mem_id`) USING BTREE,
  3942. INDEX `lml_date_index`(`date`) USING BTREE
  3943. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '玩家登陆LOG' ROW_FORMAT = Dynamic;
  3944. -- ----------------------------
  3945. -- Records of h_log_mem_login_202112
  3946. -- ----------------------------
  3947. -- ----------------------------
  3948. -- Table structure for h_log_mem_role_202111
  3949. -- ----------------------------
  3950. DROP TABLE IF EXISTS `h_log_mem_role_202111`;
  3951. CREATE TABLE `h_log_mem_role_202111` (
  3952. `id` int(11) NOT NULL AUTO_INCREMENT,
  3953. `date` date NOT NULL DEFAULT '0000-00-00' COMMENT '日期',
  3954. `mg_mem_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '玩家游戏ID',
  3955. `app_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '游戏ID',
  3956. `server_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '0' COMMENT '游戏服务器id,默认为0',
  3957. `server_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '所在服务器名称',
  3958. `role_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '0' COMMENT '角色ID',
  3959. `role_name` blob NOT NULL COMMENT '角色名称',
  3960. `role_level` int(11) NOT NULL DEFAULT 0 COMMENT '等级',
  3961. `money` double(12, 2) NOT NULL DEFAULT 0.00 COMMENT '金钱',
  3962. `role_vip` int(11) NOT NULL DEFAULT 0 COMMENT 'vip等级',
  3963. `combat_num` bigint(20) NOT NULL DEFAULT 0 COMMENT '玩家角色战力',
  3964. `online_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '在线时长 单位s',
  3965. `scene` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '登出场景',
  3966. `axis` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '登出时所在场景坐标, 应该是 (x,y,z)的形式',
  3967. `last_operation` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '登出前角色最后一次操作或者完成的玩法',
  3968. `party_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '工会、帮派名称',
  3969. `role_balance` double(12, 2) NOT NULL DEFAULT 0.00 COMMENT '用户游戏币余额',
  3970. `experience` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '经验',
  3971. `attach` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '扩展信息',
  3972. `type` int(11) NOT NULL DEFAULT 1 COMMENT '数据类型,1为进入游戏,2为创建角色,3为角色升级,4为退出 5 充值',
  3973. `rolelevel_ctime` bigint(20) NOT NULL DEFAULT 0 COMMENT '角色创建时间',
  3974. `rolelevel_mtime` bigint(20) NOT NULL DEFAULT 0 COMMENT '角色升级时间',
  3975. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  3976. PRIMARY KEY (`id`) USING BTREE,
  3977. INDEX `mg_mem_id`(`mg_mem_id`) USING BTREE,
  3978. INDEX `app_id`(`app_id`) USING BTREE
  3979. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '玩家角色记录表' ROW_FORMAT = Dynamic;
  3980. -- ----------------------------
  3981. -- Records of h_log_mem_role_202111
  3982. -- ----------------------------
  3983. -- ----------------------------
  3984. -- Table structure for h_log_online_202111
  3985. -- ----------------------------
  3986. DROP TABLE IF EXISTS `h_log_online_202111`;
  3987. CREATE TABLE `h_log_online_202111` (
  3988. `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'id',
  3989. `date` date NOT NULL DEFAULT '0000-00-00' COMMENT '日期',
  3990. `mem_id` int(11) NOT NULL DEFAULT 0 COMMENT '玩家ID',
  3991. `agent_id` int(11) NOT NULL DEFAULT 0 COMMENT '玩家归属的ch_id',
  3992. `agent_game` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '子渠道编号',
  3993. `app_id` int(11) NOT NULL DEFAULT 0 COMMENT '游戏id',
  3994. `device_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '手机设备码',
  3995. `idfv` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'IOS idfv',
  3996. `mac` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '设备的mac',
  3997. `ip` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '设备网络IP地址',
  3998. `brand` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '设备品牌',
  3999. `model` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '机型',
  4000. `os` varchar(8) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '操作系统',
  4001. `os_version` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '操作系统版本',
  4002. `screen` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '分辨率',
  4003. `net` varchar(8) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '3G,4G,WIFI',
  4004. `imsi` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '设备的imsi',
  4005. `longitude` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '经度',
  4006. `latitude` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '纬度',
  4007. `userua` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '用户使用的移动终端的UA信息',
  4008. `from` smallint(4) NOT NULL DEFAULT 0 COMMENT '3 ANDROID、4 IOS、5 H5',
  4009. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '登录时间',
  4010. `open_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '打开此应用次数',
  4011. PRIMARY KEY (`id`) USING BTREE,
  4012. INDEX `lol_time_index`(`create_time`) USING BTREE,
  4013. INDEX `lol_date_index`(`date`) USING BTREE
  4014. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '在线LOG' ROW_FORMAT = Dynamic;
  4015. -- ----------------------------
  4016. -- Records of h_log_online_202111
  4017. -- ----------------------------
  4018. -- ----------------------------
  4019. -- Table structure for h_log_pay_cp_202111
  4020. -- ----------------------------
  4021. DROP TABLE IF EXISTS `h_log_pay_cp_202111`;
  4022. CREATE TABLE `h_log_pay_cp_202111` (
  4023. `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增ID',
  4024. `pay_id` int(11) UNSIGNED NOT NULL COMMENT '对应pay表中的id',
  4025. `order_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '订单号',
  4026. `cp_order_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'CP订单号',
  4027. `status` tinyint(2) NOT NULL DEFAULT 1 COMMENT '充值成功标志,1为待处理,2为成功,3为失败',
  4028. `cp_status` tinyint(2) NOT NULL DEFAULT 1 COMMENT '充值回调标志,1为待处理,2为成功,3为失败',
  4029. `cp_payback_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'CP回调地址',
  4030. `params` varchar(1023) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'CP回调参数',
  4031. `ext` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'CP附加参数',
  4032. `notify_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '通知次数',
  4033. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '充值时间',
  4034. PRIMARY KEY (`id`) USING BTREE,
  4035. INDEX `lpc_order_unique`(`order_id`) USING BTREE
  4036. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '通知CP记录表' ROW_FORMAT = Dynamic;
  4037. -- ----------------------------
  4038. -- Records of h_log_pay_cp_202111
  4039. -- ----------------------------
  4040. -- ----------------------------
  4041. -- Table structure for h_ltv_game_agent
  4042. -- ----------------------------
  4043. DROP TABLE IF EXISTS `h_ltv_game_agent`;
  4044. CREATE TABLE `h_ltv_game_agent` (
  4045. `id` int(11) NOT NULL AUTO_INCREMENT,
  4046. `date` date NOT NULL COMMENT '日期',
  4047. `app_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '游戏ID',
  4048. `agent_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '代理ID',
  4049. `ads_id` smallint(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT '1 CPA 2 CPS 3 CPC',
  4050. `costs` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '花费',
  4051. `reg_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '注册玩家数',
  4052. `reg_device_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '新增设备数',
  4053. `sum_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '充值金额',
  4054. `day1` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '1日充值金额',
  4055. `day2` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '2日充值金额',
  4056. `day3` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '3日充值金额',
  4057. `day4` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '4日充值金额',
  4058. `day5` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '5日充值金额',
  4059. `day6` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '6日充值金额',
  4060. `day7` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '7日充值金额',
  4061. `day8` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '8日充值金额',
  4062. `day9` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '9日充值金额',
  4063. `day10` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '10日充值金额',
  4064. `day11` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '11日充值金额',
  4065. `day12` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '12日充值金额',
  4066. `day13` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '13日充值金额',
  4067. `day14` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '14日充值金额',
  4068. `day15` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '15日充值金额',
  4069. `day16` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '16日充值金额',
  4070. `day17` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '17日充值金额',
  4071. `day18` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '18日充值金额',
  4072. `day19` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '19日充值金额',
  4073. `day20` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '20日充值金额',
  4074. `day21` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '21日充值金额',
  4075. `day22` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '22日充值金额',
  4076. `day23` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '23日充值金额',
  4077. `day24` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '24日充值金额',
  4078. `day25` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '25日充值金额',
  4079. `day26` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '26日充值金额',
  4080. `day27` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '27日充值金额',
  4081. `day28` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '28日充值金额',
  4082. `day29` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '29日充值金额',
  4083. `day30` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '30日充值金额',
  4084. `day31` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '31日充值金额',
  4085. `day32` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '32日充值金额',
  4086. `day33` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '33日充值金额',
  4087. `day34` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '34日充值金额',
  4088. `day35` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '35日充值金额',
  4089. `day36` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '36日充值金额',
  4090. `day37` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '37日充值金额',
  4091. `day38` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '38日充值金额',
  4092. `day39` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '39日充值金额',
  4093. `day40` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '40日充值金额',
  4094. `day41` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '41日充值金额',
  4095. `day42` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '42日充值金额',
  4096. `day43` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '43日充值金额',
  4097. `day44` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '44日充值金额',
  4098. `day45` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '45日充值金额',
  4099. `day46` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '46日充值金额',
  4100. `day47` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '47日充值金额',
  4101. `day48` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '48日充值金额',
  4102. `day49` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '49日充值金额',
  4103. `day50` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '50日充值金额',
  4104. `day51` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '51日充值金额',
  4105. `day52` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '52日充值金额',
  4106. `day53` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '53日充值金额',
  4107. `day54` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '54日充值金额',
  4108. `day55` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '55日充值金额',
  4109. `day56` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '56日充值金额',
  4110. `day57` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '57日充值金额',
  4111. `day58` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '58日充值金额',
  4112. `day59` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '59日充值金额',
  4113. `day60` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '60日充值金额',
  4114. `day90` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '90日充值金额',
  4115. `day120` double(20, 0) NOT NULL DEFAULT 0 COMMENT '120日充值金额',
  4116. `day180` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '180日充值金额',
  4117. `day270` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '270日充值金额',
  4118. `day360` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '360日充值金额',
  4119. PRIMARY KEY (`id`) USING BTREE,
  4120. UNIQUE INDEX `lga_dategameagent_unique`(`date`, `app_id`, `agent_id`) USING BTREE,
  4121. INDEX `lga_game_index`(`app_id`) USING BTREE,
  4122. INDEX `lga_agent_index`(`agent_id`) USING BTREE
  4123. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '每日渠道游戏LTV统计表' ROW_FORMAT = DYNAMIC;
  4124. -- ----------------------------
  4125. -- Records of h_ltv_game_agent
  4126. -- ----------------------------
  4127. -- ----------------------------
  4128. -- Table structure for h_mem_act
  4129. -- ----------------------------
  4130. DROP TABLE IF EXISTS `h_mem_act`;
  4131. CREATE TABLE `h_mem_act` (
  4132. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '表id',
  4133. `mem_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '用户id',
  4134. `act_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '活动Id',
  4135. `total_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '总次数',
  4136. `today_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '今日次数',
  4137. `free_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '免费次数',
  4138. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  4139. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间',
  4140. PRIMARY KEY (`id`) USING BTREE,
  4141. UNIQUE INDEX `ma_mem_act_index`(`mem_id`, `act_id`) USING BTREE,
  4142. INDEX `ma_act_index`(`act_id`) USING BTREE
  4143. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '玩家活动表' ROW_FORMAT = DYNAMIC;
  4144. -- ----------------------------
  4145. -- Records of h_mem_act
  4146. -- ----------------------------
  4147. -- ----------------------------
  4148. -- Table structure for h_mem_address
  4149. -- ----------------------------
  4150. DROP TABLE IF EXISTS `h_mem_address`;
  4151. CREATE TABLE `h_mem_address` (
  4152. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '表id',
  4153. `mem_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '用户id',
  4154. `consignee` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '收货人',
  4155. `email` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '邮箱地址',
  4156. `mobile` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '手机',
  4157. `country` int(11) NOT NULL DEFAULT 0 COMMENT '国家',
  4158. `province` int(11) NOT NULL DEFAULT 0 COMMENT '省份',
  4159. `city` int(11) NOT NULL DEFAULT 0 COMMENT '城市',
  4160. `district` int(11) NOT NULL DEFAULT 0 COMMENT '地区',
  4161. `town` int(11) NULL DEFAULT 0 COMMENT '乡镇',
  4162. `address` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '地址',
  4163. `zipcode` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '邮政编码',
  4164. `is_default` tinyint(2) NULL DEFAULT 2 COMMENT '默认收货地址 2 默认 1 正常',
  4165. `is_delete` tinyint(2) NULL DEFAULT 2 COMMENT '是否删除 2 正常 1 伪删除',
  4166. PRIMARY KEY (`id`) USING BTREE,
  4167. INDEX `mem_id`(`mem_id`) USING BTREE
  4168. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '玩家地址' ROW_FORMAT = DYNAMIC;
  4169. -- ----------------------------
  4170. -- Records of h_mem_address
  4171. -- ----------------------------
  4172. -- ----------------------------
  4173. -- Table structure for h_mem_base
  4174. -- ----------------------------
  4175. DROP TABLE IF EXISTS `h_mem_base`;
  4176. CREATE TABLE `h_mem_base` (
  4177. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'id',
  4178. `base` int(11) NULL DEFAULT 0 COMMENT '账号规则t_ base*100000+id',
  4179. PRIMARY KEY (`id`) USING BTREE,
  4180. INDEX `base`(`base`) USING BTREE
  4181. ) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '玩家账号生成表' ROW_FORMAT = COMPACT;
  4182. -- ----------------------------
  4183. -- Records of h_mem_base
  4184. -- ----------------------------
  4185. INSERT INTO `h_mem_base` VALUES (1, 800);
  4186. -- ----------------------------
  4187. -- Table structure for h_mem_ext
  4188. -- ----------------------------
  4189. DROP TABLE IF EXISTS `h_mem_ext`;
  4190. CREATE TABLE `h_mem_ext` (
  4191. `mem_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '玩家ID',
  4192. `last_login_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '最近登陆时间',
  4193. `last_login_ip` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '未知IP' COMMENT '玩家最近登陆ip',
  4194. `game_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '所玩游戏数量',
  4195. `gift_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '礼包数量',
  4196. `last_pay_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '最近充值时间',
  4197. `last_money` decimal(20, 2) NOT NULL DEFAULT 0.00 COMMENT '最近充值金额',
  4198. `day_money` decimal(20, 2) NOT NULL DEFAULT 0.00 COMMENT '本日充值金额',
  4199. `week_money` decimal(20, 2) NOT NULL DEFAULT 0.00 COMMENT '本周充值金额',
  4200. `month_money` decimal(20, 2) NOT NULL DEFAULT 0.00 COMMENT '本月充值金额',
  4201. `sum_money` decimal(20, 2) NOT NULL DEFAULT 0.00 COMMENT '累计充值',
  4202. `order_cnt` int(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '订单数量',
  4203. `order_suc_cnt` int(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '支付成功订单数量',
  4204. `login_cnt` int(11) NOT NULL DEFAULT 1 COMMENT '登陆次数',
  4205. `sign_days` int(11) NOT NULL DEFAULT 0 COMMENT '签到天数',
  4206. `last_sign_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '最近签到日期',
  4207. `integral_total` int(11) NOT NULL DEFAULT 0 COMMENT '获得的总积分',
  4208. `my_integral` int(11) NOT NULL DEFAULT 0 COMMENT '剩余积分',
  4209. `ptb_total` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '获得的总平台币',
  4210. `ptb_cnt` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '剩余平台币',
  4211. PRIMARY KEY (`mem_id`) USING BTREE,
  4212. INDEX `me_itg_index`(`integral_total`) USING BTREE,
  4213. INDEX `me_summoney_index`(`sum_money`) USING BTREE,
  4214. INDEX `me_logintime_index`(`last_login_time`) USING BTREE,
  4215. INDEX `last_pay_time_inx`(`last_pay_time`) USING BTREE
  4216. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '玩家扩展表' ROW_FORMAT = DYNAMIC;
  4217. -- ----------------------------
  4218. -- Records of h_mem_ext
  4219. -- ----------------------------
  4220. -- ----------------------------
  4221. -- Table structure for h_mem_game
  4222. -- ----------------------------
  4223. DROP TABLE IF EXISTS `h_mem_game`;
  4224. CREATE TABLE `h_mem_game` (
  4225. `id` int(11) NOT NULL AUTO_INCREMENT,
  4226. `mem_id` int(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '用户 id',
  4227. `guided_agent_id` int(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '导量的渠道ID',
  4228. `app_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '游戏ID',
  4229. `nickname` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '昵称',
  4230. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '开始玩时间',
  4231. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '最后玩时间',
  4232. `is_default` tinyint(2) NOT NULL DEFAULT 2 COMMENT '最近默认 2 默认 1 不默认',
  4233. `like` tinyint(2) NOT NULL DEFAULT 2 COMMENT '1 点赞 2 无操作 3 踩',
  4234. `star_cnt` double(10, 2) NOT NULL DEFAULT 10.00 COMMENT '应用评分 0表示未评分 最低评分1 最高10分',
  4235. `status` tinyint(2) NOT NULL DEFAULT 2 COMMENT '状态 2正常 1锁定',
  4236. `sum_money` decimal(12, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '累计充值',
  4237. PRIMARY KEY (`id`) USING BTREE,
  4238. INDEX `mg_mem_game_index`(`mem_id`, `app_id`) USING BTREE,
  4239. INDEX `mg_game_index`(`app_id`) USING BTREE,
  4240. INDEX `mg_createtime_index`(`create_time`) USING BTREE,
  4241. INDEX `mg_guidedagent_index`(`guided_agent_id`) USING BTREE,
  4242. INDEX `mg_summoney_index`(`sum_money`) USING BTREE
  4243. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '玩家游戏表' ROW_FORMAT = DYNAMIC;
  4244. -- ----------------------------
  4245. -- Records of h_mem_game
  4246. -- ----------------------------
  4247. -- ----------------------------
  4248. -- Table structure for h_mem_game_map
  4249. -- ----------------------------
  4250. DROP TABLE IF EXISTS `h_mem_game_map`;
  4251. CREATE TABLE `h_mem_game_map` (
  4252. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  4253. `mem_id` int(11) UNSIGNED NOT NULL COMMENT '玩家ID',
  4254. `app_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '游戏ID',
  4255. `old_mem_id` int(11) UNSIGNED NOT NULL COMMENT '映射玩家ID',
  4256. `old_app_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '映射游戏ID',
  4257. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  4258. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间',
  4259. PRIMARY KEY (`id`) USING BTREE,
  4260. UNIQUE INDEX `gm_mem_game_unique`(`mem_id`, `app_id`) USING BTREE,
  4261. INDEX `gm_mem_index`(`mem_id`) USING BTREE
  4262. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '玩家游戏映射表' ROW_FORMAT = DYNAMIC;
  4263. -- ----------------------------
  4264. -- Records of h_mem_game_map
  4265. -- ----------------------------
  4266. -- ----------------------------
  4267. -- Table structure for h_mem_ia_itg
  4268. -- ----------------------------
  4269. DROP TABLE IF EXISTS `h_mem_ia_itg`;
  4270. CREATE TABLE `h_mem_ia_itg` (
  4271. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '表id',
  4272. `mem_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '用户id',
  4273. `ia_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '获得类型 与integral_activity关联',
  4274. `integral_total` int(11) NOT NULL DEFAULT 0 COMMENT '此活动获得总积分',
  4275. `integral` int(11) NOT NULL DEFAULT 0 COMMENT '今日积分',
  4276. `last_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '最近获取积分时间',
  4277. `total_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '总次数',
  4278. `today_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '今日次数',
  4279. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '获得积分时间',
  4280. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间',
  4281. PRIMARY KEY (`id`) USING BTREE,
  4282. UNIQUE INDEX `mii_mem_ia_index`(`mem_id`, `ia_id`) USING BTREE,
  4283. INDEX `mii_ia_index`(`ia_id`) USING BTREE
  4284. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '玩家积分活动表' ROW_FORMAT = DYNAMIC;
  4285. -- ----------------------------
  4286. -- Records of h_mem_ia_itg
  4287. -- ----------------------------
  4288. -- ----------------------------
  4289. -- Table structure for h_mem_itg_log
  4290. -- ----------------------------
  4291. DROP TABLE IF EXISTS `h_mem_itg_log`;
  4292. CREATE TABLE `h_mem_itg_log` (
  4293. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '表id',
  4294. `mem_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '用户id',
  4295. `itg_type` tinyint(2) NULL DEFAULT 0 COMMENT '1 获得 2 消费 3 锁定 4后台发放 5后台扣除',
  4296. `integral_total` int(11) NOT NULL DEFAULT 0 COMMENT '获得的总积分',
  4297. `my_integral` int(11) NOT NULL DEFAULT 0 COMMENT '目前积分',
  4298. `integral` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '变化的积分',
  4299. `ia_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '积分活动ID与integral_activity关联',
  4300. `sub_ia_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '子活动ID',
  4301. `ia_name` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '活动名称',
  4302. `link_table` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '关联表名',
  4303. `link_id` int(11) NOT NULL DEFAULT 0 COMMENT '关联的记录ID',
  4304. `is_delete` tinyint(2) NOT NULL DEFAULT 2 COMMENT '1 伪删除 2 正常',
  4305. `delete_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '删除时间',
  4306. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '获得积分时间',
  4307. PRIMARY KEY (`id`) USING BTREE,
  4308. INDEX `iaindex`(`ia_id`) USING BTREE,
  4309. INDEX `timeindex`(`create_time`) USING BTREE,
  4310. INDEX `mil_mem_ia_sub_index`(`mem_id`, `ia_id`, `sub_ia_id`) USING BTREE,
  4311. INDEX `mil_link_index`(`link_table`, `link_id`) USING BTREE,
  4312. INDEX `mil_delete_index`(`is_delete`) USING BTREE
  4313. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '玩家积分记录表' ROW_FORMAT = DYNAMIC;
  4314. -- ----------------------------
  4315. -- Records of h_mem_itg_log
  4316. -- ----------------------------
  4317. -- ----------------------------
  4318. -- Table structure for h_mem_like
  4319. -- ----------------------------
  4320. DROP TABLE IF EXISTS `h_mem_like`;
  4321. CREATE TABLE `h_mem_like` (
  4322. `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
  4323. `mem_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '用户 id',
  4324. `title` varchar(1023) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '收藏内容的标题',
  4325. `url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '收藏内容的原文地址,不带域名',
  4326. `description` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '收藏内容的描述',
  4327. `table_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '收藏实体以前所在表,不带前缀',
  4328. `object_id` int(11) UNSIGNED NULL DEFAULT 0 COMMENT '收藏内容原来的主键id',
  4329. `create_time` bigint(20) UNSIGNED NULL DEFAULT 0 COMMENT '收藏时间',
  4330. PRIMARY KEY (`id`) USING BTREE,
  4331. INDEX `ml_mem_index`(`mem_id`) USING BTREE
  4332. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户收藏表' ROW_FORMAT = DYNAMIC;
  4333. -- ----------------------------
  4334. -- Records of h_mem_like
  4335. -- ----------------------------
  4336. -- ----------------------------
  4337. -- Table structure for h_mem_login_attempt
  4338. -- ----------------------------
  4339. DROP TABLE IF EXISTS `h_mem_login_attempt`;
  4340. CREATE TABLE `h_mem_login_attempt` (
  4341. `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
  4342. `login_attempts` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '尝试次数',
  4343. `attempt_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '尝试登录时间',
  4344. `locked_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '锁定时间',
  4345. `ip` varchar(15) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '用户 ip',
  4346. `device_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '设备ID android 为imei ios 为idfa',
  4347. `account` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '用户账号,手机号,邮箱或用户名',
  4348. PRIMARY KEY (`id`) USING BTREE
  4349. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户登录尝试表' ROW_FORMAT = DYNAMIC;
  4350. -- ----------------------------
  4351. -- Records of h_mem_login_attempt
  4352. -- ----------------------------
  4353. -- ----------------------------
  4354. -- Table structure for h_mem_message
  4355. -- ----------------------------
  4356. DROP TABLE IF EXISTS `h_mem_message`;
  4357. CREATE TABLE `h_mem_message` (
  4358. `id` int(11) NOT NULL AUTO_INCREMENT,
  4359. `mem_id` mediumint(8) UNSIGNED NOT NULL DEFAULT 0 COMMENT '用户id',
  4360. `message_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '消息id',
  4361. `type` tinyint(2) UNSIGNED NOT NULL DEFAULT 1 COMMENT '1活动消息,2 系统消息, 3 卡卷消息 4优惠活动',
  4362. `status` tinyint(2) UNSIGNED NOT NULL DEFAULT 1 COMMENT '查看状态:1未查看,2已查看',
  4363. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  4364. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '查看时间',
  4365. `is_delete` tinyint(2) NULL DEFAULT 2 COMMENT '2 正常 1 删除',
  4366. `delete_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '删除时间',
  4367. PRIMARY KEY (`id`) USING BTREE,
  4368. UNIQUE INDEX `mm_mm_unique`(`mem_id`, `message_id`) USING BTREE,
  4369. INDEX `mm_msg_index`(`message_id`) USING BTREE,
  4370. INDEX `mm_ctime_index`(`create_time`) USING BTREE
  4371. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '玩家信息' ROW_FORMAT = DYNAMIC;
  4372. -- ----------------------------
  4373. -- Records of h_mem_message
  4374. -- ----------------------------
  4375. -- ----------------------------
  4376. -- Table structure for h_mem_oauth
  4377. -- ----------------------------
  4378. DROP TABLE IF EXISTS `h_mem_oauth`;
  4379. CREATE TABLE `h_mem_oauth` (
  4380. `id` int(20) NOT NULL AUTO_INCREMENT,
  4381. `from` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '用户来源',
  4382. `conf_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '配置ID',
  4383. `openid` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '第三方用户id',
  4384. `access_token` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '第三方秘钥',
  4385. `unionid` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '第三方用户id',
  4386. `nickname` blob NOT NULL COMMENT '第三方昵称',
  4387. `country` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '国家',
  4388. `province` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '省份',
  4389. `city` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '城市',
  4390. `gender` tinyint(2) NOT NULL DEFAULT 3 COMMENT '1 男 2 女 3 未知',
  4391. `avatar` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '头像',
  4392. `mem_id` int(20) NOT NULL DEFAULT 0 COMMENT '关联的本站用户id',
  4393. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '绑定时间',
  4394. `last_login_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '最后登录时间',
  4395. `last_login_ip` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '最后登录ip',
  4396. `status` tinyint(2) NOT NULL DEFAULT 0 COMMENT '第三方状态',
  4397. `expires_in` bigint(20) NOT NULL DEFAULT 0 COMMENT 'access_token过期时间',
  4398. `more` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '扩展信息',
  4399. PRIMARY KEY (`id`) USING BTREE,
  4400. UNIQUE INDEX `mo_from_openid_unique`(`from`, `openid`) USING BTREE,
  4401. INDEX `mo_unionid_index`(`unionid`) USING BTREE,
  4402. INDEX `mo_mem_index`(`mem_id`) USING BTREE
  4403. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '第三方用户表' ROW_FORMAT = DYNAMIC;
  4404. -- ----------------------------
  4405. -- Records of h_mem_oauth
  4406. -- ----------------------------
  4407. -- ----------------------------
  4408. -- Table structure for h_mem_problem
  4409. -- ----------------------------
  4410. DROP TABLE IF EXISTS `h_mem_problem`;
  4411. CREATE TABLE `h_mem_problem` (
  4412. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'id',
  4413. `mem_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'userid',
  4414. `app_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '游戏ID ID为0 表示其他问题',
  4415. `flag` int(11) NULL DEFAULT 2 COMMENT '1 游戏问题 2 非游戏问题',
  4416. `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '问题标题',
  4417. `details` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '详细内容',
  4418. `contact` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '联系方式',
  4419. `image` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '问题截图',
  4420. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '提问时间',
  4421. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '审核时间',
  4422. `status` tinyint(2) NULL DEFAULT 1 COMMENT '状态,1 待解决,2 已解决',
  4423. PRIMARY KEY (`id`) USING BTREE,
  4424. INDEX `mem_idindex`(`mem_id`) USING BTREE
  4425. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '玩家问题反馈表' ROW_FORMAT = DYNAMIC;
  4426. -- ----------------------------
  4427. -- Records of h_mem_problem
  4428. -- ----------------------------
  4429. -- ----------------------------
  4430. -- Table structure for h_mem_sign
  4431. -- ----------------------------
  4432. DROP TABLE IF EXISTS `h_mem_sign`;
  4433. CREATE TABLE `h_mem_sign` (
  4434. `id` int(8) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '表id',
  4435. `date` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '日期',
  4436. `mem_id` int(8) UNSIGNED NOT NULL DEFAULT 0 COMMENT '玩家ID',
  4437. `sign_days` int(11) NOT NULL DEFAULT 0 COMMENT '本月签到次数',
  4438. `integral` int(4) NOT NULL DEFAULT 0 COMMENT '获得赠送积分',
  4439. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '签到时间',
  4440. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间',
  4441. PRIMARY KEY (`id`) USING BTREE,
  4442. UNIQUE INDEX `ms_date_mem_unique`(`date`, `mem_id`) USING BTREE,
  4443. INDEX `mem_id`(`mem_id`) USING BTREE
  4444. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '玩家签到表' ROW_FORMAT = DYNAMIC;
  4445. -- ----------------------------
  4446. -- Records of h_mem_sign
  4447. -- ----------------------------
  4448. -- ----------------------------
  4449. -- Table structure for h_mem_token
  4450. -- ----------------------------
  4451. DROP TABLE IF EXISTS `h_mem_token`;
  4452. CREATE TABLE `h_mem_token` (
  4453. `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'id',
  4454. `mem_id` bigint(20) NOT NULL DEFAULT 0 COMMENT '玩家id',
  4455. `expire_time` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '过期时间',
  4456. `create_time` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '创建时间',
  4457. `update_time` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
  4458. `token` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'token',
  4459. `device_type` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '设备类型;mobile,android,iphone,ipad,web,pc,mac,wxapp',
  4460. PRIMARY KEY (`id`) USING BTREE,
  4461. UNIQUE INDEX `mt_mem_dt_unique`(`mem_id`, `device_type`) USING BTREE,
  4462. UNIQUE INDEX `mt_token_dt_unique`(`token`, `device_type`) USING BTREE,
  4463. INDEX `mt_dt_index`(`device_type`) USING BTREE
  4464. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '玩家客户端登录token表' ROW_FORMAT = DYNAMIC;
  4465. -- ----------------------------
  4466. -- Records of h_mem_token
  4467. -- ----------------------------
  4468. -- ----------------------------
  4469. -- Table structure for h_member
  4470. -- ----------------------------
  4471. DROP TABLE IF EXISTS `h_member`;
  4472. CREATE TABLE `h_member` (
  4473. `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'id',
  4474. `username` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '用户名',
  4475. `nickname` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '昵称',
  4476. `mobile_prefix` int(11) NOT NULL DEFAULT 86 COMMENT '电话区号对应国家ID 默认中国',
  4477. `reg_mobile` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '注册手机号',
  4478. `reg_email` varchar(511) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '注册邮箱',
  4479. `password` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '密码',
  4480. `pay_pwd` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '支付密码',
  4481. `email` varchar(511) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '绑定邮箱',
  4482. `mobile` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '绑定手机号码',
  4483. `from_device` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '设备来源 mobile,android,iphone,ipad,web,pc,mac,wxapp',
  4484. `device_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '设备ID android 为imei ios 为idfa',
  4485. `app_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '游戏ID',
  4486. `op_id` int(11) NOT NULL DEFAULT 0 COMMENT '运营商ID',
  4487. `agent_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '所属渠道ID',
  4488. `agent_game` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'default' COMMENT '渠道ID',
  4489. `status` tinyint(2) NOT NULL DEFAULT 2 COMMENT '1 为试玩状态 2为正常状态,3为冻结状态',
  4490. `reg_ip` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '注册IP',
  4491. `avatar` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '头像',
  4492. `parent_mem_id` int(11) NOT NULL DEFAULT 0 COMMENT '父Id',
  4493. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '注册时间',
  4494. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更改时间',
  4495. `real_name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '真实姓名',
  4496. `identify_type` tinyint(3) NOT NULL DEFAULT 1 COMMENT '身份证类型',
  4497. `id_card` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '身份证',
  4498. `is_switch` tinyint(2) UNSIGNED NULL DEFAULT 2 COMMENT '是否切换 1 切换 2不切换',
  4499. `switch_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '切量时间 指定切量时间后的订单都会被切量',
  4500. `switch_money` bigint(20) NOT NULL DEFAULT 0 COMMENT '切量金额 大于指定切量金额的订单都才被切量',
  4501. `alipay_account` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '绑定支付宝账号',
  4502. `vb_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '马甲包id',
  4503. PRIMARY KEY (`id`) USING BTREE,
  4504. UNIQUE INDEX `username`(`username`) USING BTREE,
  4505. INDEX `mem_agent_index`(`agent_id`) USING BTREE,
  4506. INDEX `mem_device_index`(`device_id`) USING BTREE,
  4507. INDEX `mem_time_index`(`create_time`) USING BTREE,
  4508. INDEX `mem_vb_index`(`vb_id`) USING BTREE,
  4509. INDEX `mobile_inx`(`mobile`) USING BTREE,
  4510. INDEX `status_inx`(`status`) USING BTREE,
  4511. INDEX `is_switch_inx`(`is_switch`) USING BTREE,
  4512. INDEX `idx_id_regip_deviceid_createtime`(`id`, `reg_ip`, `device_id`, `create_time`) USING BTREE,
  4513. INDEX `idx_agentid_isswitch`(`agent_id`, `is_switch`) USING BTREE,
  4514. INDEX `INDEX_REG_MOBILE`(`reg_mobile`) USING BTREE
  4515. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '玩家表' ROW_FORMAT = DYNAMIC;
  4516. -- ----------------------------
  4517. -- Records of h_member
  4518. -- ----------------------------
  4519. -- ----------------------------
  4520. -- Table structure for h_message
  4521. -- ----------------------------
  4522. DROP TABLE IF EXISTS `h_message`;
  4523. CREATE TABLE `h_message` (
  4524. `id` int(11) NOT NULL AUTO_INCREMENT,
  4525. `admin_id` smallint(5) UNSIGNED NOT NULL DEFAULT 0 COMMENT '管理者id',
  4526. `mem_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '0 表示 全体消息 不为0 表示个人消息',
  4527. `app_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '游戏ID ',
  4528. `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '站内信内容',
  4529. `content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '站内信内容',
  4530. `type` tinyint(3) UNSIGNED NOT NULL DEFAULT 2 COMMENT '1活动消息, 2 系统消息, 3 卡卷消息 4优惠活动 ',
  4531. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '发送时间',
  4532. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间',
  4533. `is_delete` tinyint(2) NOT NULL DEFAULT 2 COMMENT '2 正常 1 删除',
  4534. `delete_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '删除时间',
  4535. PRIMARY KEY (`id`) USING BTREE,
  4536. INDEX `msg_mem_index`(`mem_id`) USING BTREE
  4537. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '信息' ROW_FORMAT = DYNAMIC;
  4538. -- ----------------------------
  4539. -- Records of h_message
  4540. -- ----------------------------
  4541. -- ----------------------------
  4542. -- Table structure for h_mg_role
  4543. -- ----------------------------
  4544. DROP TABLE IF EXISTS `h_mg_role`;
  4545. CREATE TABLE `h_mg_role` (
  4546. `id` int(11) NOT NULL AUTO_INCREMENT,
  4547. `mg_mem_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '充值用户',
  4548. `app_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '游戏ID',
  4549. `server_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '0' COMMENT '游戏服务器id,默认为0',
  4550. `server_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '所在服务器名称',
  4551. `role_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '0' COMMENT '角色id',
  4552. `role_name` blob NOT NULL COMMENT '角色名称',
  4553. `role_level` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '角色等级',
  4554. `role_vip` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '角色VIP',
  4555. `money` double(12, 2) NOT NULL DEFAULT 0.00 COMMENT '金钱',
  4556. `combat_num` bigint(20) NOT NULL DEFAULT 0 COMMENT '玩家角色战力',
  4557. `ext` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '扩展信息',
  4558. `os` varchar(8) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '操作系统',
  4559. `create_time` bigint(20) NULL DEFAULT 0 COMMENT '创建时间',
  4560. `update_time` bigint(20) NULL DEFAULT 0 COMMENT '更新时间',
  4561. PRIMARY KEY (`id`) USING BTREE,
  4562. UNIQUE INDEX `mgr_mem_app_server_role_unique`(`mg_mem_id`, `app_id`, `server_id`, `role_id`) USING BTREE,
  4563. INDEX `mgr_app_index`(`app_id`) USING BTREE,
  4564. INDEX `mgr_server_index`(`server_id`) USING BTREE,
  4565. INDEX `mgr_role_index`(`role_id`) USING BTREE,
  4566. INDEX `mgr_createtime_index`(`create_time`) USING BTREE,
  4567. INDEX `mg_mem_id_inx`(`mg_mem_id`) USING BTREE
  4568. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '玩家游戏角色表' ROW_FORMAT = DYNAMIC;
  4569. -- ----------------------------
  4570. -- Records of h_mg_role
  4571. -- ----------------------------
  4572. -- ----------------------------
  4573. -- Table structure for h_mpad_report_log
  4574. -- ----------------------------
  4575. DROP TABLE IF EXISTS `h_mpad_report_log`;
  4576. CREATE TABLE `h_mpad_report_log` (
  4577. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  4578. `agent_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '渠道ID',
  4579. `mem_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '玩家ID',
  4580. `app_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '游戏ID',
  4581. `mg_mem_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '玩家游戏ID',
  4582. `server_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '区服ID',
  4583. `role_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '角色ID',
  4584. `advertiser_app_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '广告账号APPID',
  4585. `source_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '数据源ID',
  4586. `url` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '转化行为发生页面的URL',
  4587. `action_type` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '预定义的行为类型',
  4588. `action_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '行为发生时,客户端的时间点',
  4589. `wechat_app_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '转化应用APPID',
  4590. `wechat_openid` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '转化应用openid',
  4591. `action_param_value` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '转化参数值',
  4592. `action_param_source` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '转化数据发生的渠道: 1)Biz,代表公众号内各种服务或网页 2)Web,代表非公众号的其他渠道',
  4593. `action_param_claim_type` tinyint(4) NOT NULL DEFAULT 0 COMMENT '归因方式 0:按点击行为归因 1:按关注行为归因',
  4594. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  4595. PRIMARY KEY (`id`) USING BTREE,
  4596. INDEX `mrl_memid_index`(`mem_id`) USING BTREE,
  4597. INDEX `mrl_appid_index`(`app_id`) USING BTREE,
  4598. INDEX `mrl_mgmemid_index`(`mg_mem_id`) USING BTREE,
  4599. INDEX `mrl_advertiserappid_index`(`advertiser_app_id`) USING BTREE,
  4600. INDEX `mrl_sourceid_index`(`source_id`) USING BTREE,
  4601. INDEX `mrl_actiontype_index`(`action_type`) USING BTREE
  4602. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '回传记录表' ROW_FORMAT = Dynamic;
  4603. -- ----------------------------
  4604. -- Records of h_mpad_report_log
  4605. -- ----------------------------
  4606. -- ----------------------------
  4607. -- Table structure for h_oa_agent
  4608. -- ----------------------------
  4609. DROP TABLE IF EXISTS `h_oa_agent`;
  4610. CREATE TABLE `h_oa_agent` (
  4611. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  4612. `date` date NOT NULL COMMENT '日期',
  4613. `agent_id` int(11) NOT NULL DEFAULT 0 COMMENT '推广员id',
  4614. `app_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '游戏id',
  4615. `reg_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '注册玩家数',
  4616. `reg_ip_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '注册ip数',
  4617. `standard_mem_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '等级达标数',
  4618. `order_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '充值次数',
  4619. `pay_mem_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '充值人数',
  4620. `sum_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '充值总额',
  4621. `is_standard` tinyint(2) NOT NULL DEFAULT 1 COMMENT '是否合格 2合格 1不合格',
  4622. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '添加时间',
  4623. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间',
  4624. PRIMARY KEY (`id`) USING BTREE,
  4625. UNIQUE INDEX `oa_date_agent_app`(`date`, `agent_id`, `app_id`) USING BTREE,
  4626. INDEX `oa_app`(`app_id`) USING BTREE,
  4627. INDEX `oa_agent`(`agent_id`) USING BTREE
  4628. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '推广员oa业绩总览表' ROW_FORMAT = DYNAMIC;
  4629. -- ----------------------------
  4630. -- Records of h_oa_agent
  4631. -- ----------------------------
  4632. -- ----------------------------
  4633. -- Table structure for h_oa_game
  4634. -- ----------------------------
  4635. DROP TABLE IF EXISTS `h_oa_game`;
  4636. CREATE TABLE `h_oa_game` (
  4637. `app_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '对应与game表中appid',
  4638. `standard_mem_cnt` smallint(5) UNSIGNED NOT NULL DEFAULT 0 COMMENT '达标数',
  4639. `standard_level` smallint(5) UNSIGNED NOT NULL DEFAULT 0 COMMENT '达标等级',
  4640. PRIMARY KEY (`app_id`) USING BTREE
  4641. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '游戏oa扩展表' ROW_FORMAT = DYNAMIC;
  4642. -- ----------------------------
  4643. -- Records of h_oa_game
  4644. -- ----------------------------
  4645. -- ----------------------------
  4646. -- Table structure for h_oa_gm_log
  4647. -- ----------------------------
  4648. DROP TABLE IF EXISTS `h_oa_gm_log`;
  4649. CREATE TABLE `h_oa_gm_log` (
  4650. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID',
  4651. `oa_gm_id` int(11) UNSIGNED NOT NULL COMMENT 'oa的记录ID',
  4652. `node_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '角色 OA ID',
  4653. `node_name` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '申请人',
  4654. `agent_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'agent_id ID',
  4655. `username` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '玩家账号',
  4656. `oa_mem_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'oa玩家id',
  4657. `mem_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '玩家id',
  4658. `plat_id` int(11) NOT NULL DEFAULT 0 COMMENT '平台ID',
  4659. `type_id` int(11) NOT NULL DEFAULT 0 COMMENT '操作类型 1首充 2扶植',
  4660. `oa_app_id` int(11) NOT NULL DEFAULT 0 COMMENT '申请游戏',
  4661. `oa_server_id` int(11) NOT NULL DEFAULT 0 COMMENT 'oa游戏区服',
  4662. `ser_code` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '游戏区服标识',
  4663. `role_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '游戏角色',
  4664. `game_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '申请游戏',
  4665. `money` double(12, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '申请金额',
  4666. `check_status` tinyint(2) NOT NULL DEFAULT 1 COMMENT '审核状态,1为待审核,2审核成功 3 审核失败',
  4667. `status` tinyint(2) NOT NULL DEFAULT 1 COMMENT '发放状态 1 待发放 2 已发放 3 发放失败',
  4668. `content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '内容',
  4669. `check_reason` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '审核原因',
  4670. `fail_reason` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '失败原因',
  4671. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  4672. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间',
  4673. PRIMARY KEY (`id`) USING BTREE
  4674. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = 'oa首充扶植记录表' ROW_FORMAT = DYNAMIC;
  4675. -- ----------------------------
  4676. -- Records of h_oa_gm_log
  4677. -- ----------------------------
  4678. -- ----------------------------
  4679. -- Table structure for h_option
  4680. -- ----------------------------
  4681. DROP TABLE IF EXISTS `h_option`;
  4682. CREATE TABLE `h_option` (
  4683. `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
  4684. `autoload` tinyint(3) UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否自动加载;1:自动加载;0:不自动加载',
  4685. `option_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '配置名',
  4686. `option_value` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL COMMENT '配置值',
  4687. PRIMARY KEY (`id`) USING BTREE,
  4688. UNIQUE INDEX `option_name`(`option_name`) USING BTREE
  4689. ) ENGINE = InnoDB AUTO_INCREMENT = 1039 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '全站配置表' ROW_FORMAT = DYNAMIC;
  4690. -- ----------------------------
  4691. -- Records of h_option
  4692. -- ----------------------------
  4693. INSERT INTO `h_option` VALUES (7, 1, 'site_info', '{\"site_name\":\"huosdk\",\"site_seo_title\":\"huosdk\",\"site_seo_keywords\":\"huosdk \\u6e38\\u620f\",\"site_seo_description\":\"\\u706b\\u901fSDK \\u6e38\\u620f\",\"site_icp\":\"\",\"site_admin_email\":\"\",\"site_analytics\":\"\",\"urlmode\":\"1\",\"html_suffix\":\"\"}');
  4694. INSERT INTO `h_option` VALUES (8, 1, 'set_period', '{\"grace_period\":\"30\",\"vip_try_period\":\"7\"}');
  4695. INSERT INTO `h_option` VALUES (9, 1, 'admin_dashboard_widgets', '[{\"name\":\"Contributors\",\"is_system\":1},{\"name\":\"CmfHub\",\"is_system\":1},{\"name\":\"MainContributors\",\"is_system\":1},{\"name\":\"Custom4\",\"is_system\":1},{\"name\":\"Custom2\",\"is_system\":1},{\"name\":\"Custom3\",\"is_system\":1},{\"name\":\"Custom1\",\"is_system\":1},{\"name\":\"Custom5\",\"is_system\":1}]');
  4696. INSERT INTO `h_option` VALUES (10, 1, 'cmf_settings', '{\"open_registration\":\"0\",\"banned_usernames\":\"\"}');
  4697. INSERT INTO `h_option` VALUES (11, 1, 'cdn_settings', '{\"cdn_static_root\":\"\"}');
  4698. INSERT INTO `h_option` VALUES (12, 1, 'admin_settings', '{\"admin_password\":\"\",\"admin_style\":\"shangadmin\"}');
  4699. INSERT INTO `h_option` VALUES (14, 1, 'web_basic', '{\"company_name\":\"\\u51b0\\u679c\\u6e38\\u620f\",\"company_address\":\"\\u5e7f\\u5dde\\u5927\\u9053\\u897f275\\u53f7\",\"title\":\"\\u65b0\\u7248\\u8fd0\\u8425\\u5b98\\u7f51\",\"culture_management\":\"Copyright \\u00a9 2003-2017 Huosdk. All Rights Reserved \",\"record_number\":\"\\u7ca4ICP\\u590716045437\\u53f7\",\"prevent_addiction_title\":\"\\u62b5\\u5236\\u4e0d\\u826f\\u6e38\\u620f\\uff0c\\u62d2\\u7edd\\u76d7\\u7248\\u6e38\\u620f\\u3002\\u6ce8\\u610f\\u81ea\\u6211\\u4fdd\\u62a4\\uff0c\\u8c28\\u9632\\u4e0a\\u5f53\\u53d7\\u9a97\\u3002\\u9002\\u5ea6\\u6e38\\u620f\\u76ca\\u8111\\uff0c\\u6c89\\u8ff7\\u6e38\\u620f\\u4f24\\u8eab\\u3002\\u5408\\u7406\\u5b89\\u6392\\u65f6\\u95f4\\uff0c\\u4eab\\u53d7\\u5065\\u5eb7\\u751f\\u6d3b\\u3002\",\"copyright\":\"Copyright \\u00a9 2003-2017 Huosdk. All Rights Reserved 123\"}');
  4700. INSERT INTO `h_option` VALUES (15, 1, 'web_icon', '{\"web_logo\":\"admin\\/20180719\\/32c75fcd1450fbcfff0c42139f96fe00.png\",\"web_qr\":\"admin\\/20180724\\/178dda3d2f864b9bef008de9b956f11d.png\",\"web_ico\":\"admin\\/20180725\\/faf059b8f0fe6a5360ed18645d5d0537.ico\"}');
  4701. INSERT INTO `h_option` VALUES (17, 1, 'web_assistant', '{\"assistant_update_time\":\"2017-10-01\",\"assistant_title\":\"APP\",\"assistant_subtitle\":\"\\u51b0\\u679c\\u6e38\\u620f\",\"assistant_size\":\"10M\",\"assistant_version\":\"1.1.1\"}');
  4702. INSERT INTO `h_option` VALUES (18, 1, 'web_member', '{\"real_name_reg\":\"2\",\"reg_is_allowed\":\"2\"}');
  4703. INSERT INTO `h_option` VALUES (19, 1, 'web_index_seo', '{\"setting_name\":\"web_index_seo\",\"title\":\"%webname%\\u8fd0\\u8425\\u5b98\\u7f51\",\"keyword\":\"%webname%\\u8fd0\\u8425\\u5b98\\u7f51,\\u6e38\\u620f\",\"description\":\"%webname%\\u8fd0\\u8425\\u5b98\\u7f51,\\u6e38\\u620f\\u706b\\u6811sdk\\u65b0\\u8fd0\\u8425\\u5b98\\u7f51,\\u6e38\\u620f\"}');
  4704. INSERT INTO `h_option` VALUES (20, 1, 'web_gamelist_seo', '{\"setting_name\":\"web_gamelist_seo\",\"title\":\"%webname%\\u6e38\\u620f\\u5217\\u8868\",\"keyword\":\"%webname%\\u6e38\\u620f\\u5217\\u8868\",\"description\":\"%webname%\\u6e38\\u620f\\u5217\\u8868\"}');
  4705. INSERT INTO `h_option` VALUES (21, 1, 'web_gamedetails_seo', '{\"setting_name\":\"web_gamedetails_seo\",\"title\":\"%webname%_%newsname%_%gamename% %gametype%_\\u6e38\\u620f\\u8be6\\u60c5\",\"keyword\":\"%gamename%,\\u706b\\u6811\",\"description\":\"%gamename%,\\u706b\\u6811\\u6e38\\u620f\"}');
  4706. INSERT INTO `h_option` VALUES (22, 1, 'web_giftindex_seo', '{\"setting_name\":\"web_giftindex_seo\",\"title\":\"%webname%_\\u793c\\u5305\\u5217\\u8868\",\"keyword\":\"%webname%_\\u793c\\u5305\\u5217\\u8868\",\"description\":\"%webname%_\\u793c\\u5305\\u5217\\u8868\"}');
  4707. INSERT INTO `h_option` VALUES (23, 1, 'web_giftlist_seo', '{\"setting_name\":\"web_giftlist_seo\",\"title\":\"%webname%_\\u793c\\u5305\\u5217\\u8868\",\"keyword\":\"%webname%_\\u793c\\u5305\\u5217\\u8868\",\"description\":\"%webname%_\\u793c\\u5305\\u5217\\u8868\"}');
  4708. INSERT INTO `h_option` VALUES (24, 1, 'web_giftdetails_seo', '{\"setting_name\":\"web_giftdetails_seo\",\"title\":\"%giftname%_\\u793c\\u5305\\u8be6\\u60c5\",\"keyword\":\"%giftname%_\\u793c\\u5305\\u8be6\\u60c5\",\"description\":\"%giftname%_\\u793c\\u5305\\u8be6\\u60c5\"}');
  4709. INSERT INTO `h_option` VALUES (25, 1, 'web_newslist_seo', '{\"setting_name\":\"web_newslist_seo\",\"title\":\"%webname%_\\u8d44\\u8baf\\u5217\\u8868\",\"keyword\":\"%webname%_\\u8d44\\u8baf\\u5217\\u8868\",\"description\":\"%webname%_\\u8d44\\u8baf\\u5217\\u8868\"}');
  4710. INSERT INTO `h_option` VALUES (26, 1, 'web_newsdetails_seo', '{\"setting_name\":\"web_newsdetails_seo\",\"title\":\"%newsname%\",\"keyword\":\"%newsname%\",\"description\":\"%newsname%\"}');
  4711. INSERT INTO `h_option` VALUES (27, 1, 'web_pay_seo', '{\"setting_name\":\"web_pay_seo\",\"title\":\"%webname%_\\u5145\\u503c\",\"keyword\":\"%webname%_\\u5145\\u503c\",\"description\":\"%webname%_\\u5145\\u503c\"}');
  4712. INSERT INTO `h_option` VALUES (28, 1, 'web_service_seo', '{\"setting_name\":\"web_service_seo\",\"title\":\"%webname%_\\u5e2e\\u52a9\\u4e2d\\u5fc3\",\"keyword\":\"%webname%_\\u5e2e\\u52a9\\u4e2d\\u5fc3\",\"description\":\"%webname%_\\u5e2e\\u52a9\\u4e2d\\u5fc3\"}');
  4713. INSERT INTO `h_option` VALUES (29, 1, 'web_search', '{\"search_default_word\":\"demo\",\"gift_search_default_word\":\"demo\"}');
  4714. INSERT INTO `h_option` VALUES (30, 1, 'web_content', '{\"service_telephone\":\"13531503657\",\"service_qq\":\"123123\",\"service_email\":\"123213@qq.com\",\"service_time\":\"123-123\",\"complaint_email\":\"123321\"}');
  4715. INSERT INTO `h_option` VALUES (31, 1, 'web_server_seo', '{\"setting_name\":\"web_server_seo\",\"title\":\"%webname%_\\u5f00\\u670d\\u5217\\u8868\",\"keyword\":\"\\u5f00\\u670d\\u5217\\u8868\",\"description\":\"%webname%_\\u5f00\\u670d\\u5217\\u8868\"}');
  4716. INSERT INTO `h_option` VALUES (32, 1, 'ptb_setting', '1');
  4717. INSERT INTO `h_option` VALUES (34, 1, 'h5_wap_setting', '1');
  4718. INSERT INTO `h_option` VALUES (36, 1, 'h5_wap_index_seo', '{\"setting_name\":\"h5_wap_index_seo\",\"title\":\" %webname%\\u6e38\\u620f\\u4e2d\\u5fc3\",\"keyword\":\" %webname%\\u6e38\\u620f\\u4e2d\\u5fc3\",\"description\":\" %webname%\\u6e38\\u620f\\u4e2d\\u5fc3\"}');
  4719. INSERT INTO `h_option` VALUES (38, 1, 'h5_wap_content', '{\"service_telephone\":\"\",\"service_qq\":\"\",\"service_email\":\"\",\"service_time\":\"\",\"complaint_email\":\"\"}');
  4720. INSERT INTO `h_option` VALUES (39, 1, 'h5_wap_assistant', '{\"assistant_update_time\":\"31231231\",\"assistant_title\":\"31231\",\"assistant_subtitle\":\"312321\",\"assistant_size\":\"312321\",\"assistant_version\":\"12321\",\"assistant_title_right_icon\":\"\"}');
  4721. INSERT INTO `h_option` VALUES (40, 1, 'h5_wap_member', '{\"real_name_reg\":\"1\",\"reg_is_allowed\":\"1\"}');
  4722. INSERT INTO `h_option` VALUES (41, 1, 'h5_wap_search', '{\"search_default_word\":\"1\",\"gift_search_default_word\":\"1\"}');
  4723. INSERT INTO `h_option` VALUES (42, 1, 'h5_wap_gamelist_seo', '{\"title\":\"\",\"keyword\":\"\",\"description\":\"\"}');
  4724. INSERT INTO `h_option` VALUES (43, 1, 'h5_wap_gamedetails_seo', '{\"setting_name\":\"h5_wap_gamedetails_seo\",\"title\":\"\",\"keyword\":\"\",\"description\":\"\"}');
  4725. INSERT INTO `h_option` VALUES (44, 1, 'h5_wap_server_seo', '{\"title\":\"\",\"keyword\":\"\",\"description\":\"\"}');
  4726. INSERT INTO `h_option` VALUES (45, 1, 'h5_wap_giftlist_seo', '{\"title\":\"\",\"keyword\":\"\",\"description\":\"\"}');
  4727. INSERT INTO `h_option` VALUES (46, 1, 'h5_wap_giftindex_seo', '{\"setting_name\":\"h5_wap_giftindex_seo\",\"title\":\"%webname%-\\u793c\\u5305\\u4e2d\\u5fc3\",\"keyword\":\"%webname%-\\u793c\\u5305\\u4e2d\\u5fc3\",\"description\":\"%webname%-\\u793c\\u5305\\u4e2d\\u5fc3\"}');
  4728. INSERT INTO `h_option` VALUES (47, 1, 'h5_wap_giftdetails_seo', '{\"setting_name\":\"h5_wap_giftdetails_seo\",\"title\":\"%giftname%\",\"keyword\":\"%giftname%\",\"description\":\"%giftname%\"}');
  4729. INSERT INTO `h_option` VALUES (48, 1, 'h5_wap_newslist_seo', '{\"title\":\"\",\"keyword\":\"\",\"description\":\"\"}');
  4730. INSERT INTO `h_option` VALUES (49, 1, 'h5_wap_newsdetails_seo', '{\"setting_name\":\"h5_wap_newsdetails_seo\",\"title\":\"%newsname%\",\"keyword\":\"%newsname%\",\"description\":\"%newsname%\"}');
  4731. INSERT INTO `h_option` VALUES (50, 1, 'h5_wap_service_seo', '{\"title\":\"\",\"keyword\":\"\",\"description\":\"\"}');
  4732. INSERT INTO `h_option` VALUES (51, 1, 'h5_wap_pay_seo', '{\"title\":\"\",\"keyword\":\"\",\"description\":\"\"}');
  4733. INSERT INTO `h_option` VALUES (52, 1, 'agent_basic', '{\"company_name\":\"\\u65b0\\u7586\\u51b0\\u679c\\u4fe1\\u606f\\u79d1\\u6280\\u6709\\u9650\\u516c\\u53f8\",\"company_address\":\"\\u65b0\\u7586\\u4f0a\\u7281\\u970d\\u5c14\\u679c\\u65af\\u53cb\\u8c0a\\u8def24\\u53f7\\u4e9a\\u6b27\\u56fd\\u96453\\u53f7\\u697c401-14\",\"title\":\"\\u65b0\\u7586\\u51b0\\u679c\\u4fe1\\u606f\\u79d1\\u6280\\u6709\\u9650\\u516c\\u53f8\",\"culture_management\":\"\\u7533\\u8bf7\\u4e2d\",\"record_number\":\"\\u65b0ICP\\u590718000741\\u53f7-1\",\"describe\":\"\\u51b0\\u679c\\u6e38\\u620f\",\"copyright\":\"\\u51b0\\u679c\\u6e38\\u620f\"}');
  4734. INSERT INTO `h_option` VALUES (53, 1, 'agent_index_seo', '{\"setting_name\":\"agent_index_seo\",\"title\":\"\\u51b0\\u679c\\u6e38\\u620f\\u63a8\\u5e7f\\u540e\\u53f0\",\"keyword\":\"\\u63a8\\u5e7f\\u63a8\\u5e7f\\uff0cv81\",\"description\":\"descriptiondescriptiondescriptiondescription\"}');
  4735. INSERT INTO `h_option` VALUES (54, 1, 'agent_icon', '{\"agent_logo\":\"admin\\/20180719\\/32c75fcd1450fbcfff0c42139f96fe00.png\",\"agent_ico\":\"admin\\/20180706\\/e33079f16732f5bc01852ae836d5de32.png\"}');
  4736. INSERT INTO `h_option` VALUES (55, 1, 'agent_content', '{\"service_qq\":\"564456220\"}');
  4737. INSERT INTO `h_option` VALUES (56, 1, 'h5_wap_basic', '{\"site_name\":\"\\u7d2b\\u9b45\\u6e38\\u620f\",\"certificate_number\":\"\",\"record_number\":\"\",\"copyright\":\"\",\"wx_follow_graphic_url\":\"\",\"wap_app_down_url\":\"\"}');
  4738. INSERT INTO `h_option` VALUES (57, 1, 'h5_wap_icon', '{\"h5_wap_logo\":\"\",\"h5_wap_qr\":\"\",\"h5_wap_ico\":\"\",\"h5_wap_sdk_float\":\"\"}');
  4739. INSERT INTO `h_option` VALUES (58, 1, 'app_basic', '{\"app_qq_group\":\"1234567890\",\"app_gm_name\":\"\\u6e38\\u620f\\u5e01\",\"app_ptb_name\":\"\\u5e73\\u53f0\\u5e01\",\"app_down_url\":\"http:\\/\\/www.baidu.com\"}');
  4740. INSERT INTO `h_option` VALUES (1000, 1, 'rebate_min_set', '1');
  4741. INSERT INTO `h_option` VALUES (1001, 1, 'set_share_rule', '{\"set_share_rule_text\":\"\\u60a8\\u6bcf\\u9080\\u8bf7\\u7684\\u4e00\\u4f4d\\u597d\\u53cb\\u5728\\u706b\\u6e38\\u620fAPP\\u5185\\u5145\\u503c\\uff0c\\u60a8\\u5373\\u53ef\\u5f97\\u5230\\u5145\\u503c\\u91d1\\u989d\\u768420%\\u7684\\u91d1\\u5e01\\u5956\\u52b1\\uff0c\\u4e0a\\u4e0d\\u5c01\\u9876\\uff0c\\u662f\\u4e0d\\u662f\\u5f88\\u5fc3\\u52a8\\uff1f\\u8fd8\\u5728\\u7b49\\u4ec0\\u4e48\\uff0c\\u5feb\\u53bb\\u9080\\u8bf7\\u597d\\u53cb\\u5427\\u3002\"}');
  4742. INSERT INTO `h_option` VALUES (1002, 1, 'mp_text_make_money', '{\"title\":\"\\u5e2e\\u52a9\\u6307\\u5357\",\"text\":\"1\\u3001\\u53ef\\u4ee5\\u9080\\u8bf7\\u60a8\\u7684\\u5bb6\\u4eba\\u3001\\u670b\\u53cb\\u3001\\u540c\\u5b66\\u3001\\u540c\\u4e8b\\r\\n2\\u3001\\u53ef\\u4ee5\\u5206\\u4eab\\u5230\\u5fae\\u4fe1\\u7fa4\\uff0c\\u5206\\u4eab\\u591a\\u9080\\u8bf7\\u6210\\u529f\\u7684\\u673a\\u7387\\u8d8a\\u5927\\u3002\\r\\n3\\u3001\\u5206\\u4eab\\u6d77\\u62a5\\u5230\\u670b\\u53cb\\u5708\\u53ef\\u4ee5\\u63d0\\u9ad8\\u9080\\u8bf7\\u6210\\u529f\\u51e0\\u7387\\u3002\\r\\n4\\u3001\\u544a\\u8bc9\\u60a8\\u7684\\u670b\\u53cb\\uff1a\\r\\n\"}');
  4743. INSERT INTO `h_option` VALUES (1003, 1, 'mp_text_make_money_skill', '{\"title\":\"\\u8d5a\\u94b1\\u5c0f\\u6280\\u5de7\",\"text\":\"\\u73a9\\u6e38\\u620f\\u8d5a\\u5956\\u52b1\\u91d1\\uff0c\\u6210\\u529f\\u6253\\u5f00\\u5e26\\u6709\\u5956\\u52b1\\u91d1\\u989d\\u7684\\u5c0f\\u6e38\\u620f\\uff0c\\u53ef\\u83b7\\u53d6\\u663e\\u793a\\u91d1\\u989d\\u3002\\r\\n\\u9080\\u8bf7\\u597d\\u53cb\\u52a0\\u5165\\u56e2\\u961f\\uff0c\\u597d\\u53cb\\u6388\\u6743\\u6210\\u529f\\uff0c\\u60a8\\u53ef\\u83b7\\u5f970.1\\u5143\\u5956\\u52b1\\u91d1\\u3002\\r\\n\\u6218\\u961f\\u6210\\u5458\\u6210\\u529f\\u6253\\u5f00\\u5e26\\u6709\\u91d1\\u989d\\u7684\\u5c0f\\u6e38\\u620f\\uff0c\\u60a8\\u4e5f\\u53ef\\u4ee5\\u83b7\\u5f97\\u4e00\\u5b9a\\u5956\\u91d1\\u3002\\r\\n\\u6e38\\u620f\\u5956\\u52b1\\u91d1\\u4e0d\\u65ad\\u66f4\\u65b0\\uff0c\\u6301\\u7eed\\u5173\\u6ce8\\u53ef\\u83b7\\u5f97\\u66f4\\u591a\\u6536\\u76ca\\u3002\"}');
  4744. INSERT INTO `h_option` VALUES (1004, 1, 'mp_text_reward', '{\"agent_reward\":\"1\",\"mem_agent_reward\":\"0.2\",\"mem_reward\":\"0.2\",\"favorite\":\"0.1\"}');
  4745. INSERT INTO `h_option` VALUES (1005, 1, 'settle_set', '{\"wechat\":{\"2\":\"2\",\"5\":\"5\",\"10\":\"10\",\"20\":\"20\",\"50\":\"50\",\"100\":\"100\"}}');
  4746. INSERT INTO `h_option` VALUES (1006, 1, 'settle_tip', '{\"title\":\"\\u6ce8\\u610f\\u4e8b\\u9879\",\"text\":\"1\\u3001\\u9996\\u6b21\\u63d0\\u73b0\\u53ef\\u5168\\u989d\\u63d0\\u73b0(\\u6700\\u4f4e0.3\\u5143)\\uff0c\\u540e\\u7eed\\u63d0\\u73b0\\u6309\\u7167\\u56fa\\u5b9a\\u91d1\\u989d\\u63d0\\u73b0\\u3002\\r\\n2\\u3001\\u63d0\\u73b0\\u7533\\u8bf7\\u9700\\u89811-3\\u4e2a\\u5de5\\u4f5c\\u65e5\\u5ba1\\u6279\\u5230\\u8d26\\u3002\"}');
  4747. INSERT INTO `h_option` VALUES (1007, 1, 'settle_pay_note', '{\"show_name\":\"\\u6e38\\u620f\\u63d0\\u73b0\",\"remark\":\"\\u6e38\\u620f\\u63d0\\u73b0%.2f\\u5143\\u3002\\u60a8\\u7684\\u63d0\\u73b0\\u5df2\\u5230\\u8d26\\uff0c\\u611f\\u8c22\\u652f\\u6301\\uff01\"}');
  4748. INSERT INTO `h_option` VALUES (1008, 1, 'share_img', '{\"share_title\":\"\\u53d1[\\u5fae\\u4fe1]\\u7ea2\\u5305\\u5566\\uff01\\uff01\\uff01\",\"share_img_mp\":[\"admin\\/20181016\\/b018482edc09d13ac8722e8272c2e4b8.jpg\"]}');
  4749. INSERT INTO `h_option` VALUES (1009, 1, 'setting_auth_switch', '{\"0.6.1\":{\"red\":2,\"share\":2,\"favorite\":2,\"guide\":2,\"gain\":2,\"active\":2,\"memcenter\":2},\"0.6.2\":{\"red\":2,\"share\":2,\"favorite\":2,\"guide\":2,\"gain\":2,\"active\":2,\"memcenter\":2},\"0.6.3\":{\"red\":2,\"share\":2,\"favorite\":2,\"guide\":2,\"gain\":2,\"active\":2,\"memcenter\":2},\"0.6.5\":{\"red\":2,\"share\":2,\"favorite\":2,\"guide\":2,\"gain\":2,\"active\":2,\"memcenter\":2},\"0.6.7\":{\"red\":2,\"share\":2,\"favorite\":2,\"guide\":2,\"gain\":2,\"active\":2,\"memcenter\":2},\"0.6.9\":{\"red\":2,\"share\":2,\"favorite\":2,\"guide\":2,\"gain\":2,\"active\":2,\"memcenter\":2},\"0.6.4\":{\"red\":2,\"share\":2,\"favorite\":2,\"guide\":2,\"gain\":2,\"active\":2,\"memcenter\":2},\"0.7.2\":{\"red\":2,\"share\":2,\"favorite\":2,\"guide\":2,\"gain\":2,\"active\":2,\"memcenter\":2},\"0.7.1\":{\"red\":2,\"share\":2,\"favorite\":2,\"guide\":2,\"gain\":2,\"active\":2,\"memcenter\":2},\"0.7.5\":{\"red\":2,\"share\":2,\"favorite\":2,\"guide\":2,\"gain\":2,\"active\":2,\"memcenter\":2},\"0.1.1\":{\"red\":1,\"share\":1,\"favorite\":1,\"guide\":1,\"gain\":1,\"active\":1,\"memcenter\":1}}');
  4750. INSERT INTO `h_option` VALUES (1010, 1, 'subscribe_return_msg', '');
  4751. INSERT INTO `h_option` VALUES (1013, 1, 'hunter_share_cfg', '{\"wx_app_id\":\"wx87c3c2e358a04f21\",\"android\":{\"title\":\"\\u5b89\\u5353\\u8bd5\\u73a9--\\u65e5\\u8d5a\\u4e94\\u767e\",\"desc\":\"\\u5b89\\u5353\\u8bd5\\u73a9--\\u65e5\\u8d5a\\u4e94\\u767e\\uff0c\\u5feb\\u6765\\u73a9\\u554a\",\"image\":\"admin\\/20180929\\/95722649aa72e330382d2db98eefcf6f.png\"},\"ios\":{\"title\":\"\\u82f9\\u679c\\u8bd5\\u73a9--\\u65e5\\u8d5a\\u4e94\\u767e\",\"desc\":\"\\u82f9\\u679c\\u8bd5\\u73a9--\\u65e5\\u8d5a\\u4e94\\u767e\\uff0c\\u5feb\\u6765\\u73a9\\u554a\",\"image\":\"admin\\/20180929\\/95722649aa72e330382d2db98eefcf6f.png\"}}');
  4752. INSERT INTO `h_option` VALUES (1016, 1, 'wxtpl_msg_', '');
  4753. INSERT INTO `h_option` VALUES (1017, 1, 'settle_limit', '{\"first_limit\":\"0.5\",\"again_limit\":\"0\"}');
  4754. INSERT INTO `h_option` VALUES (1018, 1, 'settle_verified', '{\"is_verified\":\"2\",\"first_verified\":\"2\",\"mobile_must\":\"1\"}');
  4755. INSERT INTO `h_option` VALUES (1022, 1, 'settle_mem_player', '{\"faker_cnt\":\"16\",\"avatar_cnt\":\"3\"}');
  4756. INSERT INTO `h_option` VALUES (1023, 1, 'home_rp_type', '{\"show_type\":1}');
  4757. INSERT INTO `h_option` VALUES (1024, 1, 'set_open_game', '{\"duration\":\"0\",\"msg\":\"\"}');
  4758. INSERT INTO `h_option` VALUES (1025, 1, 'same_name_cnt', '{\"same_cnt\":\"0\"}');
  4759. INSERT INTO `h_option` VALUES (1036, 1, 'identify_conf_option', '{\"unnamed\":{\"limit_time\":3600,\"id_card_bind_cnt\":\"2\",\"expired_day\":\"15\",\"is_allow_charge\":\"1\",\"other_api_check\":\"1\"},\"underage\":{\"limit_today_time\":\"20\",\"limit_next_day_time\":\"20\",\"day_limit_time\":0,\"allow_start_time\":\"20\",\"allow_start_time_minute\":\"59\",\"allow_end_time\":\"21\",\"allow_end_time_minute\":\"00\",\"holiday_limit_time\":0,\"charge_limit\":[{\"min_age\":\"1\",\"max_age\":0,\"week_money\":0,\"month_money\":0},{\"min_age\":\"0\",\"max_age\":\"16\",\"week_money\":\"5\",\"month_money\":\"5\"},{\"min_age\":\"17\",\"max_age\":\"18\",\"week_money\":\"10\",\"month_money\":\"10\"}]}}');
  4760. INSERT INTO `h_option` VALUES (1037, 1, 'mem_edit_setting', '{\"mem_can_edit_pay_amount\":\"100\"}');
  4761. INSERT INTO `h_option` VALUES (1038, 1, 'subscribe_return_msg_84', '{\"text\":\"\"}');
  4762. -- ----------------------------
  4763. -- Table structure for h_pay
  4764. -- ----------------------------
  4765. DROP TABLE IF EXISTS `h_pay`;
  4766. CREATE TABLE `h_pay` (
  4767. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增ID',
  4768. `order_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '订单号',
  4769. `cp_order_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'CP订单号',
  4770. `mem_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '充值用户',
  4771. `mg_mem_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '游戏玩家ID',
  4772. `agent_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '代理商ID',
  4773. `app_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '游戏ID',
  4774. `currency` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'CNY' COMMENT '交易币种',
  4775. `amount` decimal(12, 2) NOT NULL DEFAULT 0.00 COMMENT '货物总价',
  4776. `real_amount` decimal(12, 2) NOT NULL DEFAULT 0.00 COMMENT '实际支付金额',
  4777. `product_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '0' COMMENT '产品ID',
  4778. `product_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '产品数量',
  4779. `product_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '0' COMMENT '游戏订单ID',
  4780. `coupon_amount` decimal(12, 2) NULL DEFAULT 0.00 COMMENT '优惠券抵扣',
  4781. `ptb_amount` decimal(12, 2) NOT NULL DEFAULT 0.00 COMMENT '平台币使用金额',
  4782. `gm_amount` decimal(12, 2) NOT NULL DEFAULT 0.00 COMMENT '游戏币使用余额',
  4783. `integral` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '使用积分',
  4784. `integral_money` decimal(12, 2) NOT NULL DEFAULT 0.00 COMMENT '使用积分抵多少钱',
  4785. `rebate_amount` decimal(12, 2) NOT NULL DEFAULT 0.00 COMMENT '返利数量 默认为0',
  4786. `rate` decimal(5, 4) NOT NULL DEFAULT 1.0000 COMMENT '折扣',
  4787. `status` tinyint(2) NOT NULL DEFAULT 1 COMMENT '支付状态,1为待处理,2为成功,3为失败',
  4788. `cp_status` tinyint(2) NOT NULL DEFAULT 1 COMMENT 'CP通知状态,1为待处理,2为成功,3为失败',
  4789. `payway` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '支付方式名称',
  4790. `mobile_prefix` int(11) NOT NULL DEFAULT 86 COMMENT '电话区号对应国家ID 默认中国',
  4791. `is_handle` tinyint(2) NOT NULL DEFAULT 2 COMMENT '客服处理: 2正常; 1纠纷',
  4792. `pay_time` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '支付时间',
  4793. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '充值时间',
  4794. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间',
  4795. `is_distribute` tinyint(1) NOT NULL DEFAULT 1 COMMENT '是否已分成 1未分成 2 已分成',
  4796. `notify_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '通知次数',
  4797. `last_notify_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '最近通知时间',
  4798. `ext` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'CP附加参数',
  4799. `mem_note` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '用户备注',
  4800. `admin_note` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '管理员备注',
  4801. `remark` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '订单成功备注信息, 支付通道订单号',
  4802. `is_switch` tinyint(2) UNSIGNED NULL DEFAULT 2 COMMENT '是否切换 1切换 2 不切换',
  4803. `vb_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '马甲包id',
  4804. PRIMARY KEY (`id`) USING BTREE,
  4805. UNIQUE INDEX `pay_orderid_UNIQUE`(`order_id`) USING BTREE,
  4806. INDEX `pay_creat_index`(`create_time`) USING BTREE,
  4807. INDEX `pay_agent_index`(`agent_id`) USING BTREE,
  4808. INDEX `pay_mem_index`(`mem_id`) USING BTREE,
  4809. INDEX `pay_app_index`(`app_id`) USING BTREE,
  4810. INDEX `pay_vb_index`(`vb_id`) USING BTREE,
  4811. INDEX `APPID_STATUS_CREATETIME_INDEX`(`app_id`, `status`, `create_time`) USING BTREE
  4812. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '支付表' ROW_FORMAT = DYNAMIC;
  4813. -- ----------------------------
  4814. -- Records of h_pay
  4815. -- ----------------------------
  4816. -- ----------------------------
  4817. -- Table structure for h_pay_apple
  4818. -- ----------------------------
  4819. DROP TABLE IF EXISTS `h_pay_apple`;
  4820. CREATE TABLE `h_pay_apple` (
  4821. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增ID',
  4822. `order_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '订单号',
  4823. `trans_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '苹果订单号',
  4824. `idfv` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '订单应用设备IDFV',
  4825. `idfa` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '订单应用设备IDFA',
  4826. `mem_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '充值用户',
  4827. `mg_mem_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '游戏玩家ID',
  4828. `apple_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '苹果应用ID',
  4829. `currency` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'CNY' COMMENT '交易币种',
  4830. `product_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '产品ID',
  4831. `status` tinyint(2) NOT NULL DEFAULT 1 COMMENT '支付状态,1为待处理,2为成功,3为失败',
  4832. `payway` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '支付方式名称',
  4833. `pay_time` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '支付时间',
  4834. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '充值时间',
  4835. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间',
  4836. `check_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '向苹果服务器校验次数',
  4837. `last_check_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '最近校验时间',
  4838. `receipt_data` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '苹果校验参数',
  4839. PRIMARY KEY (`id`) USING BTREE,
  4840. UNIQUE INDEX `pa_orderid_UNIQUE`(`order_id`) USING BTREE,
  4841. INDEX `pa_creat_index`(`create_time`) USING BTREE,
  4842. INDEX `pa_trans_index`(`trans_id`) USING BTREE,
  4843. INDEX `pa_mem_index`(`mem_id`) USING BTREE,
  4844. INDEX `pa_idfv_index`(`idfv`) USING BTREE
  4845. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '苹果支付表' ROW_FORMAT = DYNAMIC;
  4846. -- ----------------------------
  4847. -- Records of h_pay_apple
  4848. -- ----------------------------
  4849. -- ----------------------------
  4850. -- Table structure for h_pay_apple_error
  4851. -- ----------------------------
  4852. DROP TABLE IF EXISTS `h_pay_apple_error`;
  4853. CREATE TABLE `h_pay_apple_error` (
  4854. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增ID',
  4855. `trans_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '苹果订单号',
  4856. `idfv` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '订单应用设备IDFV',
  4857. `idfa` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '订单应用设备IDFA',
  4858. `apple_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '苹果应用ID',
  4859. `product_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '产品ID',
  4860. `status` tinyint(2) NOT NULL DEFAULT 1 COMMENT '支付状态,1为待处理,2为成功,3为失败',
  4861. `payway` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '支付方式名称',
  4862. `pay_time` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '支付时间',
  4863. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '充值时间',
  4864. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间',
  4865. `check_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '向苹果服务器校验次数',
  4866. `last_check_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '最近校验时间',
  4867. `receipt_data` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '苹果校验参数',
  4868. `receipt_field` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '苹果返回结果',
  4869. PRIMARY KEY (`id`) USING BTREE,
  4870. INDEX `pa_trans_index`(`trans_id`) USING BTREE,
  4871. INDEX `pa_idfv_index`(`idfv`) USING BTREE
  4872. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '苹果订单异常表' ROW_FORMAT = DYNAMIC;
  4873. -- ----------------------------
  4874. -- Records of h_pay_apple_error
  4875. -- ----------------------------
  4876. -- ----------------------------
  4877. -- Table structure for h_pay_ext
  4878. -- ----------------------------
  4879. DROP TABLE IF EXISTS `h_pay_ext`;
  4880. CREATE TABLE `h_pay_ext` (
  4881. `pay_id` int(11) UNSIGNED NOT NULL COMMENT '支付ID',
  4882. `product_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '0' COMMENT '产品ID',
  4883. `product_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '充值商品名称',
  4884. `product_desc` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '充值商品描述',
  4885. `product_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '产品数量',
  4886. `device_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '手机设备码',
  4887. `mac` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '设备的mac',
  4888. `ip` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '设备网络IP地址',
  4889. `brand` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '设备品牌',
  4890. `model` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '机型',
  4891. `os` varchar(8) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '操作系统',
  4892. `os_version` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '操作系统版本',
  4893. `screen` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '分辨率',
  4894. `net` varchar(8) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '3G,4G,WIFI',
  4895. `imsi` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '设备的imsi',
  4896. `longitude` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '经度',
  4897. `latitude` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '纬度',
  4898. `userua` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '用户使用的移动终端的UA信息',
  4899. `server_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '0' COMMENT '游戏服务器id,默认为0',
  4900. `server_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '所在服务器名称',
  4901. `role_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '0' COMMENT '角色ID',
  4902. `role_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '0' COMMENT '角色',
  4903. `role_level` int(11) NOT NULL DEFAULT 0 COMMENT '等级',
  4904. `money` double(12, 2) NOT NULL DEFAULT 0.00 COMMENT '金钱',
  4905. `role_vip` int(11) NOT NULL DEFAULT 0 COMMENT 'vip等级',
  4906. `online_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '在线时长 单位s',
  4907. `scene` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '登出场景',
  4908. `axis` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '登出时所在场景坐标, 应该是 (x,y,z)的形式',
  4909. `last_operation` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '登出前角色最后一次操作或者完成的玩法',
  4910. `party_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '工会、帮派名称',
  4911. `role_balance` double(12, 2) NOT NULL DEFAULT 0.00 COMMENT '用户游戏币余额',
  4912. `experience` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '经验',
  4913. `attach` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '扩展信息',
  4914. `type` int(11) NOT NULL DEFAULT 1 COMMENT '数据类型,1为进入游戏,2为创建角色,3为角色升级,4为退出 5 充值',
  4915. `rolelevel_ctime` bigint(20) NOT NULL DEFAULT 0 COMMENT '角色创建时间',
  4916. `rolelevel_mtime` bigint(20) NOT NULL DEFAULT 0 COMMENT '角色升级时间',
  4917. PRIMARY KEY (`pay_id`) USING BTREE,
  4918. INDEX `pay_id`(`pay_id`) USING BTREE
  4919. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '支付扩展表' ROW_FORMAT = DYNAMIC;
  4920. -- ----------------------------
  4921. -- Records of h_pay_ext
  4922. -- ----------------------------
  4923. -- ----------------------------
  4924. -- Table structure for h_payway
  4925. -- ----------------------------
  4926. DROP TABLE IF EXISTS `h_payway`;
  4927. CREATE TABLE `h_payway` (
  4928. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '支付方式',
  4929. `code` varchar(8) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '支付通道',
  4930. `payname` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '支付名称',
  4931. `desc` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '描述',
  4932. `rate` double(7, 4) UNSIGNED NOT NULL DEFAULT 0.0100 COMMENT '通道费率',
  4933. `realname` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '实际名称',
  4934. `status` tinyint(4) UNSIGNED NOT NULL DEFAULT 2 COMMENT '状态 1 禁用 2 可用 ',
  4935. `parent_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '父ID',
  4936. `is_config` tinyint(4) UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否后台配置 1 否 2是',
  4937. `config` varchar(1023) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '支付配置',
  4938. PRIMARY KEY (`id`) USING BTREE,
  4939. UNIQUE INDEX `payway_payname_UNIQUE`(`payname`) USING BTREE
  4940. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '支付方式' ROW_FORMAT = Dynamic;
  4941. -- ----------------------------
  4942. -- Records of h_payway
  4943. -- ----------------------------
  4944. -- ----------------------------
  4945. -- Table structure for h_platform
  4946. -- ----------------------------
  4947. DROP TABLE IF EXISTS `h_platform`;
  4948. CREATE TABLE `h_platform` (
  4949. `id` int(11) NOT NULL AUTO_INCREMENT,
  4950. `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '平台名',
  4951. `route` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '检测地址路由',
  4952. `ios_params` varchar(511) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'ios检测地址中参数',
  4953. `and_params` varchar(511) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '安卓检测地址中参数',
  4954. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  4955. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间',
  4956. `is_delete` tinyint(2) NOT NULL DEFAULT 2 COMMENT '是否删除,1为是,2为否',
  4957. `delete_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '删除时间',
  4958. PRIMARY KEY (`id`) USING BTREE
  4959. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '投放平台表' ROW_FORMAT = DYNAMIC;
  4960. -- ----------------------------
  4961. -- Records of h_platform
  4962. -- ----------------------------
  4963. -- ----------------------------
  4964. -- Table structure for h_plugin
  4965. -- ----------------------------
  4966. DROP TABLE IF EXISTS `h_plugin`;
  4967. CREATE TABLE `h_plugin` (
  4968. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
  4969. `type` tinyint(3) UNSIGNED NOT NULL DEFAULT 1 COMMENT '插件类型;1:网站;8:微信',
  4970. `has_admin` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否有后台管理,0:没有;1:有',
  4971. `status` tinyint(3) UNSIGNED NOT NULL DEFAULT 1 COMMENT '状态;1:开启;0:禁用',
  4972. `create_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '插件安装时间',
  4973. `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '插件标识名,英文字母(惟一)',
  4974. `title` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '插件名称',
  4975. `demo_url` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '演示地址,带协议',
  4976. `hooks` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '实现的钩子;以“,”分隔',
  4977. `author` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '插件作者',
  4978. `author_url` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '作者网站链接',
  4979. `version` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '插件版本号',
  4980. `description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '插件描述',
  4981. `config` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '插件配置',
  4982. PRIMARY KEY (`id`) USING BTREE
  4983. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '插件表' ROW_FORMAT = DYNAMIC;
  4984. -- ----------------------------
  4985. -- Records of h_plugin
  4986. -- ----------------------------
  4987. -- ----------------------------
  4988. -- Table structure for h_posts
  4989. -- ----------------------------
  4990. DROP TABLE IF EXISTS `h_posts`;
  4991. CREATE TABLE `h_posts` (
  4992. `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
  4993. `app_id` int(11) NOT NULL DEFAULT 0,
  4994. `parent_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '父级id',
  4995. `post_type` tinyint(3) UNSIGNED NOT NULL DEFAULT 1 COMMENT '类型,0-所有 1-新闻 2-活动 3-攻略 4-公告 5-有奖 6-渠道通知,7-其他',
  4996. `cost_integral` decimal(10, 2) NULL DEFAULT 0.00 COMMENT '此次活动花费积分',
  4997. `post_format` tinyint(3) UNSIGNED NOT NULL DEFAULT 1 COMMENT '内容格式;1:html;2:md',
  4998. `user_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '发表者用户id',
  4999. `post_status` tinyint(3) UNSIGNED NOT NULL DEFAULT 2 COMMENT '状态;2:已发布;1:未发布;',
  5000. `comment_status` tinyint(3) UNSIGNED NOT NULL DEFAULT 2 COMMENT '评论状态;2:允许;1:不允许',
  5001. `is_top` tinyint(3) UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否置顶;2:置顶;1:不置顶',
  5002. `recommended` tinyint(3) UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否推荐;2:推荐;1:不推荐',
  5003. `post_hits` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '查看数',
  5004. `post_like` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '点赞数',
  5005. `comment_count` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '评论数',
  5006. `create_time` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '创建时间',
  5007. `update_time` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
  5008. `start_time` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '开始时间',
  5009. `end_time` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '结束时间',
  5010. `published_time` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '发布时间',
  5011. `delete_time` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '删除时间',
  5012. `url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '跳转的URl',
  5013. `post_title` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT 'post标题',
  5014. `post_keywords` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'seo keywords',
  5015. `post_excerpt` varchar(511) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'post摘要',
  5016. `post_source` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '转载文章的来源',
  5017. `post_content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '文章内容',
  5018. `post_content_filtered` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '处理过的文章内容',
  5019. `more` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '扩展属性,如缩略图;格式为json',
  5020. PRIMARY KEY (`id`) USING BTREE,
  5021. INDEX `post_status_date`(`post_type`, `post_status`, `create_time`, `id`) USING BTREE,
  5022. INDEX `post_parent`(`parent_id`) USING BTREE,
  5023. INDEX `post_author`(`user_id`) USING BTREE,
  5024. INDEX `post_date`(`create_time`) USING BTREE,
  5025. INDEX `post_appid_index`(`app_id`) USING BTREE
  5026. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '资讯表' ROW_FORMAT = Dynamic;
  5027. -- ----------------------------
  5028. -- Records of h_posts
  5029. -- ----------------------------
  5030. -- ----------------------------
  5031. -- Table structure for h_promotion_baidu_log
  5032. -- ----------------------------
  5033. DROP TABLE IF EXISTS `h_promotion_baidu_log`;
  5034. CREATE TABLE `h_promotion_baidu_log` (
  5035. `id` int(11) NOT NULL AUTO_INCREMENT,
  5036. `app_id` int(11) NOT NULL DEFAULT 0 COMMENT '游戏id',
  5037. `agent_id` int(11) NOT NULL DEFAULT 0 COMMENT '子渠道id',
  5038. `imei_md5` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '用户终端的IMEI码md5后的值',
  5039. `idfa` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'iOS 手机广告唯一标识',
  5040. `os` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '客户端操作系统的类型,0–Android;1–iOS;2–WP;3-Others',
  5041. `ip` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '百度信息流返回玩家ip',
  5042. `ua` varchar(511) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'userua信息',
  5043. `android_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '用户终端的AndroidID',
  5044. `ts` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '百度信息流返回时间戳',
  5045. `userid` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '账户ID',
  5046. `pid` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '计划ID',
  5047. `uid` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '单元ID',
  5048. `aid` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '创意ID',
  5049. `click_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '点击唯一标识',
  5050. `callback_url` varchar(1023) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '回调地址',
  5051. `sign` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '验证sign',
  5052. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间戳',
  5053. PRIMARY KEY (`id`) USING BTREE
  5054. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '百度点击数据记录' ROW_FORMAT = DYNAMIC;
  5055. -- ----------------------------
  5056. -- Records of h_promotion_baidu_log
  5057. -- ----------------------------
  5058. -- ----------------------------
  5059. -- Table structure for h_promotion_baidu_user
  5060. -- ----------------------------
  5061. DROP TABLE IF EXISTS `h_promotion_baidu_user`;
  5062. CREATE TABLE `h_promotion_baidu_user` (
  5063. `id` int(11) NOT NULL AUTO_INCREMENT,
  5064. `app_id` int(11) NOT NULL DEFAULT 0 COMMENT '游戏id',
  5065. `agent_id` int(11) NOT NULL DEFAULT 0 COMMENT '子渠道id',
  5066. `imei_md5` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '用户终端的IMEI码md5后的值',
  5067. `idfa` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'iOS 手机广告唯一标识',
  5068. `os` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '客户端操作系统的类型,1–iOS;2–Android',
  5069. `callback_url` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '回调地址',
  5070. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间戳',
  5071. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间戳',
  5072. `status` tinyint(2) NOT NULL DEFAULT 1 COMMENT '状态,1为待激活,2为已激活',
  5073. `is_test` tinyint(2) NOT NULL DEFAULT 2 COMMENT '是否测试数据,1是,2不是',
  5074. PRIMARY KEY (`id`) USING BTREE
  5075. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '百度点击用户' ROW_FORMAT = DYNAMIC;
  5076. -- ----------------------------
  5077. -- Records of h_promotion_baidu_user
  5078. -- ----------------------------
  5079. -- ----------------------------
  5080. -- Table structure for h_promotion_day
  5081. -- ----------------------------
  5082. DROP TABLE IF EXISTS `h_promotion_day`;
  5083. CREATE TABLE `h_promotion_day` (
  5084. `id` int(11) NOT NULL AUTO_INCREMENT,
  5085. `date` date NOT NULL DEFAULT '2000-01-01' COMMENT '日期',
  5086. `agent_id` int(11) NOT NULL DEFAULT 0 COMMENT '推广员ID',
  5087. `app_id` int(11) NOT NULL DEFAULT 0 COMMENT '游戏ID',
  5088. `visit_cnt` bigint(20) NOT NULL DEFAULT 0 COMMENT '访问次数',
  5089. `down_cnt` bigint(20) NOT NULL DEFAULT 0 COMMENT '下载次数',
  5090. `distinct_visit_cnt` bigint(20) NOT NULL DEFAULT 0 COMMENT '去重每日访问统计',
  5091. `distinct_down_cnt` bigint(20) NOT NULL DEFAULT 0 COMMENT '每日下载统计',
  5092. PRIMARY KEY (`id`) USING BTREE,
  5093. INDEX `pd_game_index`(`app_id`) USING BTREE,
  5094. INDEX `pd_agent_index`(`agent_id`) USING BTREE
  5095. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '投放每日记录' ROW_FORMAT = DYNAMIC;
  5096. -- ----------------------------
  5097. -- Records of h_promotion_day
  5098. -- ----------------------------
  5099. -- ----------------------------
  5100. -- Table structure for h_promotion_day_log
  5101. -- ----------------------------
  5102. DROP TABLE IF EXISTS `h_promotion_day_log`;
  5103. CREATE TABLE `h_promotion_day_log` (
  5104. `id` int(11) NOT NULL AUTO_INCREMENT,
  5105. `date` date NOT NULL DEFAULT '2000-01-01' COMMENT '日期',
  5106. `agent_id` int(11) NOT NULL DEFAULT 0 COMMENT '推广员ID',
  5107. `app_id` int(11) NOT NULL DEFAULT 0 COMMENT '游戏ID',
  5108. `visit_cnt` bigint(20) NOT NULL DEFAULT 0 COMMENT '访问次数',
  5109. `down_cnt` bigint(20) NOT NULL DEFAULT 0 COMMENT '下载次数',
  5110. `distinct_visit_cnt` bigint(20) NOT NULL DEFAULT 0 COMMENT '去重每日访问统计',
  5111. `distinct_down_cnt` bigint(20) NOT NULL DEFAULT 0 COMMENT '每日下载统计',
  5112. PRIMARY KEY (`id`) USING BTREE,
  5113. INDEX `pdl_game_index`(`app_id`) USING BTREE,
  5114. INDEX `pdl_agent_index`(`agent_id`) USING BTREE
  5115. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '落地页浏览跟下载每日记录' ROW_FORMAT = DYNAMIC;
  5116. -- ----------------------------
  5117. -- Records of h_promotion_day_log
  5118. -- ----------------------------
  5119. -- ----------------------------
  5120. -- Table structure for h_promotion_detail
  5121. -- ----------------------------
  5122. DROP TABLE IF EXISTS `h_promotion_detail`;
  5123. CREATE TABLE `h_promotion_detail` (
  5124. `id` int(11) NOT NULL AUTO_INCREMENT,
  5125. `app_id` int(11) NOT NULL DEFAULT 0 COMMENT '游戏id',
  5126. `agent_id` int(11) NOT NULL DEFAULT 0 COMMENT '对应user表中id,没选择一个落地页创建个agent',
  5127. `promotion_plan_id` int(11) NOT NULL DEFAULT 0 COMMENT '投放计划id',
  5128. `landing_page_id` int(11) NOT NULL DEFAULT 0 COMMENT '落地页id',
  5129. `budget` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '预算',
  5130. `start_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '开始时间',
  5131. `end_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '结束时间',
  5132. `is_delete` tinyint(2) NOT NULL DEFAULT 2 COMMENT '是否删除,1为是,2为否',
  5133. `delete_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '删除时间',
  5134. `status` tinyint(2) NOT NULL DEFAULT 1 COMMENT '投放状态,1为未开始,2为投放中,3为暂停,4为结束',
  5135. `access_url` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '访问路径',
  5136. `toutiao_key` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '今日头条key',
  5137. `domain_id` int(11) NOT NULL DEFAULT 0 COMMENT '使用域名id',
  5138. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  5139. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间',
  5140. PRIMARY KEY (`id`) USING BTREE,
  5141. INDEX `pd_app_index`(`app_id`) USING BTREE,
  5142. INDEX `pd_agent_index`(`agent_id`) USING BTREE,
  5143. INDEX `pd_plan_index`(`promotion_plan_id`) USING BTREE,
  5144. INDEX `pd_page_index`(`landing_page_id`) USING BTREE,
  5145. INDEX `pd_domain_index`(`domain_id`) USING BTREE
  5146. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '具体推广' ROW_FORMAT = DYNAMIC;
  5147. -- ----------------------------
  5148. -- Records of h_promotion_detail
  5149. -- ----------------------------
  5150. -- ----------------------------
  5151. -- Table structure for h_promotion_domain
  5152. -- ----------------------------
  5153. DROP TABLE IF EXISTS `h_promotion_domain`;
  5154. CREATE TABLE `h_promotion_domain` (
  5155. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键id',
  5156. `domain` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '域名',
  5157. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  5158. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间',
  5159. `is_delete` tinyint(2) NOT NULL DEFAULT 2 COMMENT '是否删除,1为删除,2为未删除',
  5160. `delete_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '删除时间',
  5161. PRIMARY KEY (`id`) USING BTREE
  5162. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '域名表' ROW_FORMAT = DYNAMIC;
  5163. -- ----------------------------
  5164. -- Records of h_promotion_domain
  5165. -- ----------------------------
  5166. -- ----------------------------
  5167. -- Table structure for h_promotion_down_log
  5168. -- ----------------------------
  5169. DROP TABLE IF EXISTS `h_promotion_down_log`;
  5170. CREATE TABLE `h_promotion_down_log` (
  5171. `id` int(11) NOT NULL AUTO_INCREMENT,
  5172. `agent_id` int(11) NOT NULL DEFAULT 0 COMMENT '对应user表中id,没选择一个落地页创建个agent',
  5173. `app_id` int(11) NOT NULL DEFAULT 0 COMMENT '游戏id',
  5174. `ip` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '访问玩家ip',
  5175. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '下载时间',
  5176. PRIMARY KEY (`id`) USING BTREE,
  5177. INDEX `pdl_app_index`(`app_id`) USING BTREE,
  5178. INDEX `pdl_agent_index`(`agent_id`) USING BTREE
  5179. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '推广落地页游戏下载记录' ROW_FORMAT = DYNAMIC;
  5180. -- ----------------------------
  5181. -- Records of h_promotion_down_log
  5182. -- ----------------------------
  5183. -- ----------------------------
  5184. -- Table structure for h_promotion_plan
  5185. -- ----------------------------
  5186. DROP TABLE IF EXISTS `h_promotion_plan`;
  5187. CREATE TABLE `h_promotion_plan` (
  5188. `id` int(11) NOT NULL AUTO_INCREMENT,
  5189. `owner_id` int(11) NOT NULL DEFAULT 0 COMMENT '推广专员id',
  5190. `platform_id` int(11) NOT NULL DEFAULT 0 COMMENT '投放平台id',
  5191. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  5192. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间',
  5193. `is_delete` tinyint(2) NOT NULL DEFAULT 2 COMMENT '是否删除,1为是,2为否',
  5194. `delete_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '删除时间',
  5195. PRIMARY KEY (`id`) USING BTREE,
  5196. INDEX `pp_user_index`(`owner_id`) USING BTREE,
  5197. INDEX `pp_platform_index`(`platform_id`) USING BTREE
  5198. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '买量计划表' ROW_FORMAT = DYNAMIC;
  5199. -- ----------------------------
  5200. -- Records of h_promotion_plan
  5201. -- ----------------------------
  5202. -- ----------------------------
  5203. -- Table structure for h_promotion_toutiao_log
  5204. -- ----------------------------
  5205. DROP TABLE IF EXISTS `h_promotion_toutiao_log`;
  5206. CREATE TABLE `h_promotion_toutiao_log` (
  5207. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键id',
  5208. `app_id` int(11) NOT NULL DEFAULT 0 COMMENT '游戏id',
  5209. `agent_id` int(11) NOT NULL DEFAULT 0 COMMENT '对应user表中id,没选择一个落地页创建个agent',
  5210. `adid` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '0' COMMENT '广告计划id',
  5211. `cid` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '广告创意id',
  5212. `idfa` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'iOS 手机广告唯一标识',
  5213. `imei` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '用户终端的IMEI,15 位数字',
  5214. `mac` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'mac地址',
  5215. `androidid` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '2' COMMENT '用户终端的AndroidID',
  5216. `os` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '客户端操作系统的类型,0–Android;1–iOS;2– WP;3-Others',
  5217. `timestamp` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '传输过来时间戳',
  5218. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  5219. `callback_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '回调地址',
  5220. PRIMARY KEY (`id`) USING BTREE
  5221. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '今日头条点击数据记录' ROW_FORMAT = DYNAMIC;
  5222. -- ----------------------------
  5223. -- Records of h_promotion_toutiao_log
  5224. -- ----------------------------
  5225. -- ----------------------------
  5226. -- Table structure for h_promotion_toutiao_user
  5227. -- ----------------------------
  5228. DROP TABLE IF EXISTS `h_promotion_toutiao_user`;
  5229. CREATE TABLE `h_promotion_toutiao_user` (
  5230. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键id',
  5231. `app_id` int(11) NOT NULL DEFAULT 0 COMMENT '游戏id',
  5232. `agent_id` int(11) NOT NULL DEFAULT 0 COMMENT '子渠道id',
  5233. `adid` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '0' COMMENT '广告计划id',
  5234. `cid` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '广告创意id',
  5235. `idfa` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'iOS 手机广告唯一标识',
  5236. `imei` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '用户终端的IMEI,15 位数字',
  5237. `os` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '客户端操作系统的类型,0–Android;1–iOS;2–WP;3-Others',
  5238. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  5239. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间',
  5240. `status` tinyint(2) NOT NULL DEFAULT 1 COMMENT '状态,1为待激活,2为已激活',
  5241. `callback_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '回调地址',
  5242. `is_test` tinyint(2) NOT NULL DEFAULT 2 COMMENT '是否测试数据,2为不是,1为是',
  5243. PRIMARY KEY (`id`) USING BTREE
  5244. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '今日头条用户' ROW_FORMAT = DYNAMIC;
  5245. -- ----------------------------
  5246. -- Records of h_promotion_toutiao_user
  5247. -- ----------------------------
  5248. -- ----------------------------
  5249. -- Table structure for h_promotion_visit_log
  5250. -- ----------------------------
  5251. DROP TABLE IF EXISTS `h_promotion_visit_log`;
  5252. CREATE TABLE `h_promotion_visit_log` (
  5253. `id` int(11) NOT NULL AUTO_INCREMENT,
  5254. `agent_id` int(11) NOT NULL DEFAULT 0 COMMENT '对应user表中id,没选择一个落地页创建个agent',
  5255. `app_id` int(11) NOT NULL DEFAULT 0 COMMENT '游戏id',
  5256. `ip` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '访问玩家ip',
  5257. `create_time` bigint(20) NULL DEFAULT 0 COMMENT '访问时间',
  5258. PRIMARY KEY (`id`) USING BTREE,
  5259. INDEX `pvl_app_index`(`app_id`) USING BTREE,
  5260. INDEX `pvl_agent_index`(`agent_id`) USING BTREE
  5261. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '推广落地页浏览记录' ROW_FORMAT = DYNAMIC;
  5262. -- ----------------------------
  5263. -- Records of h_promotion_visit_log
  5264. -- ----------------------------
  5265. -- ----------------------------
  5266. -- Table structure for h_promotion_whitelist
  5267. -- ----------------------------
  5268. DROP TABLE IF EXISTS `h_promotion_whitelist`;
  5269. CREATE TABLE `h_promotion_whitelist` (
  5270. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键id',
  5271. `platform_id` int(11) NOT NULL DEFAULT 0 COMMENT '投放平台id',
  5272. `device_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '设备信息,安卓为imei码md5后的值,ios为idfa',
  5273. `status` tinyint(2) NOT NULL DEFAULT 1 COMMENT '状态,2为正在联调,1为未联调',
  5274. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  5275. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间',
  5276. `is_delete` tinyint(2) NOT NULL DEFAULT 2 COMMENT '是否删除,1为是,2为否',
  5277. `delete_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '删除时间',
  5278. PRIMARY KEY (`id`) USING BTREE,
  5279. INDEX `pw_platform_index`(`platform_id`) USING BTREE,
  5280. INDEX `pw_device_index`(`device_id`) USING BTREE
  5281. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '投放联调白名单' ROW_FORMAT = DYNAMIC;
  5282. -- ----------------------------
  5283. -- Records of h_promotion_whitelist
  5284. -- ----------------------------
  5285. -- ----------------------------
  5286. -- Table structure for h_ps_mem_white
  5287. -- ----------------------------
  5288. DROP TABLE IF EXISTS `h_ps_mem_white`;
  5289. CREATE TABLE `h_ps_mem_white` (
  5290. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID',
  5291. `app_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '游戏ID',
  5292. `mem_id` bigint(20) UNSIGNED NULL DEFAULT 0 COMMENT '玩家id',
  5293. `username` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '用户名',
  5294. `nickname` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '昵称',
  5295. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  5296. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间',
  5297. PRIMARY KEY (`id`) USING BTREE,
  5298. UNIQUE INDEX `pmw_app_mem_unique`(`app_id`, `mem_id`) USING BTREE
  5299. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '支付切换玩家白名单' ROW_FORMAT = DYNAMIC;
  5300. -- ----------------------------
  5301. -- Records of h_ps_mem_white
  5302. -- ----------------------------
  5303. -- ----------------------------
  5304. -- Table structure for h_ptb_agent_charge
  5305. -- ----------------------------
  5306. DROP TABLE IF EXISTS `h_ptb_agent_charge`;
  5307. CREATE TABLE `h_ptb_agent_charge` (
  5308. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  5309. `order_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '订单号',
  5310. `agent_id` int(11) NOT NULL DEFAULT 0 COMMENT '渠道ID',
  5311. `from_id` int(11) NOT NULL DEFAULT 0 COMMENT '发放ID',
  5312. `type` tinyint(11) NOT NULL DEFAULT 1 COMMENT '1 充值 2 返利 3 后台发放 4 兑换',
  5313. `amount` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '人民币数额',
  5314. `real_amount` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '实际支付金额',
  5315. `ptb_cnt` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '平台币数量',
  5316. `rebate_cnt` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '返利数量 默认为0',
  5317. `discount` float(5, 4) NOT NULL DEFAULT 1.0000 COMMENT '折扣',
  5318. `payway` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '充值方式',
  5319. `ip` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '用户充值时使用的网络终端IP',
  5320. `status` tinyint(4) NOT NULL DEFAULT 1 COMMENT '状态 1 待支付 2 支付完成 3 支付失败',
  5321. `back_status` tinyint(4) NOT NULL DEFAULT 1 COMMENT '状态 1 未被扣回 2 扣回所有 3 扣回部分',
  5322. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间 ',
  5323. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间 ',
  5324. `remark` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '备注',
  5325. PRIMARY KEY (`id`) USING BTREE,
  5326. UNIQUE INDEX `pac_order_unique`(`order_id`) USING BTREE,
  5327. INDEX `pac_agent_index`(`agent_id`) USING BTREE,
  5328. INDEX `pac_from_index`(`from_id`) USING BTREE
  5329. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '渠道平台币收入记录表' ROW_FORMAT = DYNAMIC;
  5330. -- ----------------------------
  5331. -- Records of h_ptb_agent_charge
  5332. -- ----------------------------
  5333. -- ----------------------------
  5334. -- Table structure for h_ptb_agent_order
  5335. -- ----------------------------
  5336. DROP TABLE IF EXISTS `h_ptb_agent_order`;
  5337. CREATE TABLE `h_ptb_agent_order` (
  5338. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  5339. `order_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '订单号',
  5340. `agent_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '代理ID',
  5341. `to_mem_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '玩家ID',
  5342. `to_agent_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '代理ID',
  5343. `app_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '游戏ID',
  5344. `amount` double(12, 2) NULL DEFAULT 0.00 COMMENT '人民币数额',
  5345. `real_amount` double(12, 2) NOT NULL DEFAULT 0.00 COMMENT '实际支付金额',
  5346. `rebate_cnt` double(12, 2) NOT NULL DEFAULT 0.00 COMMENT '返利数量 默认为0',
  5347. `discount` float(5, 4) NULL DEFAULT 1.0000 COMMENT '折扣',
  5348. `cost_ptb_cnt` double(12, 2) NULL DEFAULT 0.00 COMMENT '消耗的平台币数量',
  5349. `ptb_cnt` double(12, 2) NULL DEFAULT 0.00 COMMENT '平台币数量',
  5350. `gm_cnt` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '游戏币数量',
  5351. `payway` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '充值方式',
  5352. `ip` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '用户充值时使用的网络终端IP',
  5353. `status` tinyint(4) NOT NULL DEFAULT 1 COMMENT '状态 1 待支付 2 支付完成 3 支付失败',
  5354. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间 ',
  5355. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间 ',
  5356. `remark` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '备注',
  5357. PRIMARY KEY (`id`) USING BTREE,
  5358. UNIQUE INDEX `pao_order_unique`(`order_id`) USING BTREE,
  5359. INDEX `pao_agent_index`(`agent_id`) USING BTREE,
  5360. INDEX `pao_mem_index`(`to_mem_id`) USING BTREE,
  5361. INDEX `pao_toagent_index`(`to_agent_id`) USING BTREE
  5362. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '渠道平台币消费表' ROW_FORMAT = DYNAMIC;
  5363. -- ----------------------------
  5364. -- Records of h_ptb_agent_order
  5365. -- ----------------------------
  5366. -- ----------------------------
  5367. -- Table structure for h_ptb_back
  5368. -- ----------------------------
  5369. DROP TABLE IF EXISTS `h_ptb_back`;
  5370. CREATE TABLE `h_ptb_back` (
  5371. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  5372. `app_id` int(11) NOT NULL DEFAULT 0 COMMENT '关联游戏',
  5373. `back_order_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '0' COMMENT '扣回订单号',
  5374. `user_type` tinyint(11) NOT NULL DEFAULT 2 COMMENT '1 代理 2 玩家',
  5375. `agent_id` int(11) NOT NULL DEFAULT 0 COMMENT '代理商ID',
  5376. `mem_id` int(11) NOT NULL DEFAULT 0 COMMENT '用户ID',
  5377. `ptb_cnt` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '订单平台币数量',
  5378. `back_ptb_cnt` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '扣回订单平台币数量',
  5379. `status` tinyint(4) NOT NULL DEFAULT 1 COMMENT '状态 1 待审核 2 扣回成功 3 扣回失败',
  5380. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  5381. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间',
  5382. `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '备注',
  5383. PRIMARY KEY (`id`) USING BTREE,
  5384. INDEX `pb_agent_index`(`agent_id`) USING BTREE,
  5385. INDEX `pb_mem_index`(`mem_id`) USING BTREE,
  5386. INDEX `pb_order_index`(`back_order_id`) USING BTREE
  5387. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '平台币扣回表' ROW_FORMAT = DYNAMIC;
  5388. -- ----------------------------
  5389. -- Records of h_ptb_back
  5390. -- ----------------------------
  5391. -- ----------------------------
  5392. -- Table structure for h_ptb_charge
  5393. -- ----------------------------
  5394. DROP TABLE IF EXISTS `h_ptb_charge`;
  5395. CREATE TABLE `h_ptb_charge` (
  5396. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  5397. `order_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '订单号',
  5398. `mem_id` int(11) NOT NULL DEFAULT 0 COMMENT '玩家ID',
  5399. `from_id` int(11) NOT NULL DEFAULT 0 COMMENT '发放ID',
  5400. `type` tinyint(11) NOT NULL DEFAULT 1 COMMENT '1 充值 2 返利 3 后台发放 4 兑换',
  5401. `amount` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '人民币数额',
  5402. `real_amount` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '实际支付金额',
  5403. `ptb_cnt` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '平台币数量',
  5404. `rebate_cnt` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '返利数量 默认为0',
  5405. `discount` float(5, 4) NOT NULL DEFAULT 1.0000 COMMENT '折扣',
  5406. `payway` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '充值方式',
  5407. `ip` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '用户充值时使用的网络终端IP',
  5408. `status` tinyint(4) NOT NULL DEFAULT 1 COMMENT '状态 1 待支付 2 支付完成 3 支付失败',
  5409. `back_status` tinyint(4) NOT NULL DEFAULT 1 COMMENT '状态 1 未被扣回 2 扣回所有 3 扣回部分',
  5410. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间 ',
  5411. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间 ',
  5412. `remark` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '备注',
  5413. PRIMARY KEY (`id`) USING BTREE,
  5414. UNIQUE INDEX `pc_order_unique`(`order_id`) USING BTREE,
  5415. INDEX `pc_mem_index`(`mem_id`) USING BTREE,
  5416. INDEX `pc_from_index`(`from_id`) USING BTREE
  5417. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '玩家平台币收入记录表' ROW_FORMAT = DYNAMIC;
  5418. -- ----------------------------
  5419. -- Records of h_ptb_charge
  5420. -- ----------------------------
  5421. -- ----------------------------
  5422. -- Table structure for h_ptb_order
  5423. -- ----------------------------
  5424. DROP TABLE IF EXISTS `h_ptb_order`;
  5425. CREATE TABLE `h_ptb_order` (
  5426. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  5427. `order_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '订单号',
  5428. `type` tinyint(11) NOT NULL DEFAULT 1 COMMENT '1 SDK消费 ',
  5429. `app_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '游戏ID',
  5430. `mem_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '用户ID',
  5431. `amount` double(12, 2) NULL DEFAULT 0.00 COMMENT '人民币数额',
  5432. `real_amount` double(12, 2) NOT NULL DEFAULT 0.00 COMMENT '实际支付金额',
  5433. `rebate_cnt` double(12, 2) NOT NULL DEFAULT 0.00 COMMENT '返利数量 默认为0',
  5434. `discount` float(5, 4) NULL DEFAULT 1.0000 COMMENT '折扣',
  5435. `ptb_cnt` double(12, 2) NULL DEFAULT 0.00 COMMENT '游戏币数量',
  5436. `payway` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '充值方式',
  5437. `ip` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '未知IP' COMMENT '用户充值时使用的网络终端IP',
  5438. `status` tinyint(4) NOT NULL DEFAULT 1 COMMENT '状态 1 待支付 2 支付完成 3 支付失败',
  5439. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间 ',
  5440. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间 ',
  5441. `remark` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '备注',
  5442. PRIMARY KEY (`id`) USING BTREE,
  5443. UNIQUE INDEX `po_order_unique`(`order_id`) USING BTREE,
  5444. INDEX `po_mem_index`(`mem_id`) USING BTREE
  5445. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '玩家平台币消费表' ROW_FORMAT = DYNAMIC;
  5446. -- ----------------------------
  5447. -- Records of h_ptb_order
  5448. -- ----------------------------
  5449. -- ----------------------------
  5450. -- Table structure for h_ptb_rate
  5451. -- ----------------------------
  5452. DROP TABLE IF EXISTS `h_ptb_rate`;
  5453. CREATE TABLE `h_ptb_rate` (
  5454. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
  5455. `start_money` int(11) NULL DEFAULT 0 COMMENT '金额开始区间,大于等于此金额,使用目前费率',
  5456. `given_money` int(11) NULL DEFAULT 0 COMMENT '赠送平台币',
  5457. `rate` float NULL DEFAULT 0 COMMENT '返利比例',
  5458. `status` int(11) NULL DEFAULT 2 COMMENT '状态 1 不可用 2 可用',
  5459. `start_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '开始时间',
  5460. `end_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '结束时间',
  5461. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  5462. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间',
  5463. PRIMARY KEY (`id`) USING BTREE
  5464. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '平台币返利比例表' ROW_FORMAT = DYNAMIC;
  5465. -- ----------------------------
  5466. -- Records of h_ptb_rate
  5467. -- ----------------------------
  5468. -- ----------------------------
  5469. -- Table structure for h_qq_conf
  5470. -- ----------------------------
  5471. DROP TABLE IF EXISTS `h_qq_conf`;
  5472. CREATE TABLE `h_qq_conf` (
  5473. `id` int(20) NOT NULL AUTO_INCREMENT,
  5474. `type` tinyint(2) NOT NULL DEFAULT 2 COMMENT '1 qq 2 qq群',
  5475. `qq` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '群号',
  5476. `idkey` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT ' 网页idkey',
  5477. `ios_key` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT ' IOSKEY',
  5478. `and_key` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT ' 安卓秘钥',
  5479. `is_delete` tinyint(2) NOT NULL DEFAULT 1 COMMENT '1 伪删除 2 正常',
  5480. `delete_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '删除时间',
  5481. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  5482. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间',
  5483. PRIMARY KEY (`id`) USING BTREE,
  5484. UNIQUE INDEX `qc_qq_unique`(`type`, `qq`) USING BTREE
  5485. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = 'QQ群配置' ROW_FORMAT = DYNAMIC;
  5486. -- ----------------------------
  5487. -- Records of h_qq_conf
  5488. -- ----------------------------
  5489. -- ----------------------------
  5490. -- Table structure for h_rebate_order
  5491. -- ----------------------------
  5492. DROP TABLE IF EXISTS `h_rebate_order`;
  5493. CREATE TABLE `h_rebate_order` (
  5494. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增ID',
  5495. `order_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '订单号',
  5496. `mem_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '返利用户',
  5497. `mobile` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '手机号',
  5498. `mg_mem_id` int(11) NOT NULL DEFAULT 0 COMMENT '小号ID',
  5499. `agent_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '代理商ID',
  5500. `app_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '游戏ID',
  5501. `amount` double(20, 2) NOT NULL COMMENT '返利金额,必须大于零',
  5502. `status` tinyint(2) NOT NULL DEFAULT 1 COMMENT '返利成功标志,1为待处理,2为成功,3为失败',
  5503. `server_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '0' COMMENT '服务器ID',
  5504. `server_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '所在服务器名称',
  5505. `role_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '0' COMMENT '角色ID',
  5506. `role_name` blob NOT NULL COMMENT '角色',
  5507. `start_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  5508. `end_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间',
  5509. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  5510. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间',
  5511. `remark` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '备注信息',
  5512. `admin_remark` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '后台审核内容',
  5513. PRIMARY KEY (`id`) USING BTREE,
  5514. UNIQUE INDEX `ro_order_unique`(`order_id`) USING BTREE,
  5515. INDEX `ro_time_index`(`create_time`) USING BTREE,
  5516. INDEX `ro_mem_index`(`mem_id`) USING BTREE,
  5517. INDEX `ro_app_index`(`app_id`) USING BTREE
  5518. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '返利订单表' ROW_FORMAT = DYNAMIC;
  5519. -- ----------------------------
  5520. -- Records of h_rebate_order
  5521. -- ----------------------------
  5522. -- ----------------------------
  5523. -- Table structure for h_rebate_order_pay
  5524. -- ----------------------------
  5525. DROP TABLE IF EXISTS `h_rebate_order_pay`;
  5526. CREATE TABLE `h_rebate_order_pay` (
  5527. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增ID',
  5528. `ro_id` int(11) UNSIGNED NOT NULL COMMENT 'rebate_order中 id',
  5529. `mem_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '返利用户',
  5530. `app_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '游戏ID',
  5531. `order_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'pay表中订单order_id',
  5532. `status` tinyint(2) NOT NULL DEFAULT 1 COMMENT '返利成功标志,1为待处理,2为成功,3为失败',
  5533. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  5534. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间',
  5535. PRIMARY KEY (`id`) USING BTREE,
  5536. INDEX `rop_order_index`(`order_id`) USING BTREE,
  5537. INDEX `rop_time_index`(`create_time`) USING BTREE
  5538. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '返利与购买订单对应表' ROW_FORMAT = DYNAMIC;
  5539. -- ----------------------------
  5540. -- Records of h_rebate_order_pay
  5541. -- ----------------------------
  5542. -- ----------------------------
  5543. -- Table structure for h_recycle_bin
  5544. -- ----------------------------
  5545. DROP TABLE IF EXISTS `h_recycle_bin`;
  5546. CREATE TABLE `h_recycle_bin` (
  5547. `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
  5548. `object_id` int(11) NULL DEFAULT 0 COMMENT '删除内容 id',
  5549. `create_time` bigint(20) UNSIGNED NULL DEFAULT 0 COMMENT '创建时间',
  5550. `table_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '删除内容所在表名',
  5551. `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '删除内容名称',
  5552. PRIMARY KEY (`id`) USING BTREE
  5553. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '回收站' ROW_FORMAT = DYNAMIC;
  5554. -- ----------------------------
  5555. -- Records of h_recycle_bin
  5556. -- ----------------------------
  5557. -- ----------------------------
  5558. -- Table structure for h_region
  5559. -- ----------------------------
  5560. DROP TABLE IF EXISTS `h_region`;
  5561. CREATE TABLE `h_region` (
  5562. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '表id',
  5563. `name` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '地区名称',
  5564. `level` tinyint(4) NULL DEFAULT 0 COMMENT '地区等级 分省市县区',
  5565. `parent_id` int(10) NULL DEFAULT 0 COMMENT '父id',
  5566. PRIMARY KEY (`id`) USING BTREE
  5567. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '地址区域表' ROW_FORMAT = Dynamic;
  5568. -- ----------------------------
  5569. -- Records of h_region
  5570. -- ----------------------------
  5571. -- ----------------------------
  5572. -- Table structure for h_role
  5573. -- ----------------------------
  5574. DROP TABLE IF EXISTS `h_role`;
  5575. CREATE TABLE `h_role` (
  5576. `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  5577. `role_type` int(3) NOT NULL DEFAULT 4 COMMENT '角色类型,1 超级管理员 2 管理员 3 渠道市场 4 渠道 5 玩家',
  5578. `parent_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '父角色ID',
  5579. `status` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT '状态;1:禁用;2:正常',
  5580. `create_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '创建时间',
  5581. `update_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
  5582. `list_order` float NOT NULL DEFAULT 0 COMMENT '排序',
  5583. `name` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '角色名称',
  5584. `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '备注',
  5585. PRIMARY KEY (`id`) USING BTREE,
  5586. INDEX `parentId`(`parent_id`) USING BTREE,
  5587. INDEX `status`(`status`) USING BTREE
  5588. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '角色表' ROW_FORMAT = DYNAMIC;
  5589. -- ----------------------------
  5590. -- Records of h_role
  5591. -- ----------------------------
  5592. -- ----------------------------
  5593. -- Table structure for h_role_user
  5594. -- ----------------------------
  5595. DROP TABLE IF EXISTS `h_role_user`;
  5596. CREATE TABLE `h_role_user` (
  5597. `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
  5598. `role_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '角色 id',
  5599. `user_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '用户id',
  5600. PRIMARY KEY (`id`) USING BTREE,
  5601. INDEX `group_id`(`role_id`) USING BTREE,
  5602. INDEX `user_id`(`user_id`) USING BTREE
  5603. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户角色对应表' ROW_FORMAT = DYNAMIC;
  5604. -- ----------------------------
  5605. -- Records of h_role_user
  5606. -- ----------------------------
  5607. -- ----------------------------
  5608. -- Table structure for h_route
  5609. -- ----------------------------
  5610. DROP TABLE IF EXISTS `h_route`;
  5611. CREATE TABLE `h_route` (
  5612. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '路由id',
  5613. `list_order` float NOT NULL DEFAULT 10000 COMMENT '排序',
  5614. `status` tinyint(2) NOT NULL DEFAULT 1 COMMENT '状态;1:启用,0:不启用',
  5615. `type` tinyint(4) NOT NULL DEFAULT 1 COMMENT 'URL规则类型;1:用户自定义;2:别名添加',
  5616. `full_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '完整url',
  5617. `url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '实际显示的url',
  5618. PRIMARY KEY (`id`) USING BTREE
  5619. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = 'url路由表' ROW_FORMAT = DYNAMIC;
  5620. -- ----------------------------
  5621. -- Records of h_route
  5622. -- ----------------------------
  5623. -- ----------------------------
  5624. -- Table structure for h_sdk_plugin_conf
  5625. -- ----------------------------
  5626. DROP TABLE IF EXISTS `h_sdk_plugin_conf`;
  5627. CREATE TABLE `h_sdk_plugin_conf` (
  5628. `id` int(20) NOT NULL AUTO_INCREMENT,
  5629. `client_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '对应game_version中的id',
  5630. `code` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '插件代号',
  5631. `url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '下载地址',
  5632. `version` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '插件版本',
  5633. `update_desc` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '更新描述',
  5634. `sign` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'apk签名信息',
  5635. `md5` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '文件md5值',
  5636. `type` smallint(4) NOT NULL DEFAULT 0 COMMENT '10以下为环境插件,按大小排序加载',
  5637. `has_so` tinyint(2) NOT NULL DEFAULT 1 COMMENT '是否有.so类型 2为有,1为没有',
  5638. `is_default` tinyint(2) NOT NULL DEFAULT 1 COMMENT '1 非默认 2 默认',
  5639. `create_time` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '创建时间',
  5640. `update_time` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
  5641. PRIMARY KEY (`id`) USING BTREE,
  5642. INDEX `spc_client_index`(`client_id`) USING BTREE
  5643. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = 'SDK更新插件表' ROW_FORMAT = DYNAMIC;
  5644. -- ----------------------------
  5645. -- Records of h_sdk_plugin_conf
  5646. -- ----------------------------
  5647. -- ----------------------------
  5648. -- Table structure for h_settle
  5649. -- ----------------------------
  5650. DROP TABLE IF EXISTS `h_settle`;
  5651. CREATE TABLE `h_settle` (
  5652. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自动增长ID',
  5653. `agent_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '渠道ID',
  5654. `amount` float(20, 2) NOT NULL DEFAULT 0.00 COMMENT '结算金额',
  5655. `type` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'bank' COMMENT 'bank alipay wxpay',
  5656. `bankname` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '银行名称',
  5657. `branchname` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '分行名称',
  5658. `cardholder` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '持卡人',
  5659. `banknum` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '卡号',
  5660. `status` smallint(6) NOT NULL DEFAULT 1 COMMENT '状态 1 待审核 2待财务审核 3已结算 4 运营审核不通过 5 财务审核不通过',
  5661. `pay_status` smallint(6) NOT NULL DEFAULT 1 COMMENT '付款状态 1 待打款 2 打款成功 3 打款失败',
  5662. `is_return` smallint(6) NOT NULL DEFAULT 0 COMMENT '是否返还金额 0 未失败 1 未返还 2 返还',
  5663. `failreason` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '失败原因',
  5664. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  5665. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间',
  5666. `check_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '审核时间',
  5667. `settle_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '结算时间',
  5668. PRIMARY KEY (`id`) USING BTREE,
  5669. INDEX `s_agent_index`(`agent_id`) USING BTREE,
  5670. INDEX `s_bank_index`(`banknum`) USING BTREE,
  5671. INDEX `s_status_index`(`status`) USING BTREE
  5672. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '财务结算表' ROW_FORMAT = DYNAMIC;
  5673. -- ----------------------------
  5674. -- Records of h_settle
  5675. -- ----------------------------
  5676. -- ----------------------------
  5677. -- Table structure for h_settle_history
  5678. -- ----------------------------
  5679. DROP TABLE IF EXISTS `h_settle_history`;
  5680. CREATE TABLE `h_settle_history` (
  5681. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自动增长ID',
  5682. `s_id` int(11) NOT NULL DEFAULT 0 COMMENT '结算ID',
  5683. `u_id` int(11) NOT NULL DEFAULT 0 COMMENT '处理人ID',
  5684. `content` varchar(511) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '处理内容',
  5685. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  5686. PRIMARY KEY (`id`) USING BTREE
  5687. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '财务操作记录表' ROW_FORMAT = DYNAMIC;
  5688. -- ----------------------------
  5689. -- Records of h_settle_history
  5690. -- ----------------------------
  5691. -- ----------------------------
  5692. -- Table structure for h_share_log
  5693. -- ----------------------------
  5694. DROP TABLE IF EXISTS `h_share_log`;
  5695. CREATE TABLE `h_share_log` (
  5696. `id` bigint(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'id',
  5697. `mem_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '分享用户id',
  5698. `table_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '收藏实体以前所在表,不带前缀',
  5699. `object_id` int(11) UNSIGNED NULL DEFAULT 0 COMMENT '收藏内容原来的主键id',
  5700. `to_target` varchar(8) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'weibo wx wxp qq',
  5701. `device_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '手机设备码',
  5702. `mac` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '设备的mac',
  5703. `ip` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '设备网络IP地址',
  5704. `brand` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '设备品牌',
  5705. `model` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '机型',
  5706. `os` varchar(8) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '操作系统',
  5707. `os_version` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '操作系统版本',
  5708. `screen` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '分辨率',
  5709. `net` varchar(8) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '3G,4G,WIFI',
  5710. `imsi` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '设备的imsi',
  5711. `longitude` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '经度',
  5712. `latitude` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '纬度',
  5713. `userua` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '用户使用的移动终端的UA信息',
  5714. `from` tinyint(2) NOT NULL DEFAULT 0 COMMENT '3 ANDROID、4 IOS、5 H5',
  5715. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '分享时间',
  5716. `title` char(140) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '分享标题',
  5717. `content` char(140) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '分享内容',
  5718. `url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '分享URL',
  5719. `more` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '分享的更多信息',
  5720. PRIMARY KEY (`id`) USING BTREE,
  5721. INDEX `sl_object_index`(`object_id`) USING BTREE,
  5722. INDEX `sl_time_index`(`create_time`) USING BTREE,
  5723. INDEX `sh_mem_index`(`mem_id`) USING BTREE
  5724. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '玩家分享表' ROW_FORMAT = DYNAMIC;
  5725. -- ----------------------------
  5726. -- Records of h_share_log
  5727. -- ----------------------------
  5728. -- ----------------------------
  5729. -- Table structure for h_sign_reward_week
  5730. -- ----------------------------
  5731. DROP TABLE IF EXISTS `h_sign_reward_week`;
  5732. CREATE TABLE `h_sign_reward_week` (
  5733. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '表id',
  5734. `type` tinyint(4) NOT NULL COMMENT '签到类型',
  5735. `sign_days` tinyint(4) NOT NULL COMMENT '签到天数',
  5736. `integral` int(11) NOT NULL DEFAULT 0 COMMENT '获得赠送积分',
  5737. `icon` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '签到图标',
  5738. `name` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '签到名称',
  5739. `desc` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '签到描述',
  5740. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  5741. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间',
  5742. PRIMARY KEY (`id`) USING BTREE
  5743. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '签到奖励' ROW_FORMAT = Dynamic;
  5744. -- ----------------------------
  5745. -- Records of h_sign_reward_week
  5746. -- ----------------------------
  5747. -- ----------------------------
  5748. -- Table structure for h_slide
  5749. -- ----------------------------
  5750. DROP TABLE IF EXISTS `h_slide`;
  5751. CREATE TABLE `h_slide` (
  5752. `id` int(11) NOT NULL AUTO_INCREMENT,
  5753. `status` tinyint(3) UNSIGNED NOT NULL DEFAULT 1 COMMENT '状态,2:显示,1不显示',
  5754. `delete_time` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '删除时间',
  5755. `code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '幻灯片代号',
  5756. `name` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '幻灯片分类',
  5757. `remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '分类备注',
  5758. `type_id` tinyint(2) NOT NULL DEFAULT 5 COMMENT '1 轮播图 2 轮播文字 3 单张广告图 4 单张文字 5其他',
  5759. `device` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '设备来源 mobile,android,iphone,ipad,web,pc,mac,wxapp',
  5760. PRIMARY KEY (`id`) USING BTREE
  5761. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '幻灯片表' ROW_FORMAT = DYNAMIC;
  5762. -- ----------------------------
  5763. -- Records of h_slide
  5764. -- ----------------------------
  5765. -- ----------------------------
  5766. -- Table structure for h_slide_item
  5767. -- ----------------------------
  5768. DROP TABLE IF EXISTS `h_slide_item`;
  5769. CREATE TABLE `h_slide_item` (
  5770. `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  5771. `slide_id` int(11) NOT NULL DEFAULT 0 COMMENT '幻灯片id',
  5772. `table_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '记录所在表 不带表前缀',
  5773. `target_id` int(11) NOT NULL DEFAULT 0 COMMENT '幻灯片id',
  5774. `status` tinyint(3) UNSIGNED NOT NULL DEFAULT 2 COMMENT '状态,2显示,1不显示',
  5775. `list_order` float NOT NULL DEFAULT 10000 COMMENT '排序',
  5776. `title` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '幻灯片名称',
  5777. `image` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '幻灯片图片',
  5778. `url` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '幻灯片链接',
  5779. `target` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '_blank' COMMENT '友情链接打开方式',
  5780. `description` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '幻灯片描述',
  5781. `content` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  5782. PRIMARY KEY (`id`) USING BTREE,
  5783. INDEX `slide_cid`(`slide_id`) USING BTREE
  5784. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '幻灯片子项表' ROW_FORMAT = DYNAMIC;
  5785. -- ----------------------------
  5786. -- Records of h_slide_item
  5787. -- ----------------------------
  5788. -- ----------------------------
  5789. -- Table structure for h_spc_code
  5790. -- ----------------------------
  5791. DROP TABLE IF EXISTS `h_spc_code`;
  5792. CREATE TABLE `h_spc_code` (
  5793. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '编号,自增',
  5794. `code` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '插件代号',
  5795. `name` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '插件名称',
  5796. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  5797. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间',
  5798. PRIMARY KEY (`id`) USING BTREE,
  5799. UNIQUE INDEX `spcc_code_unique`(`code`) USING BTREE
  5800. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = 'SDK更新插件code表' ROW_FORMAT = DYNAMIC;
  5801. -- ----------------------------
  5802. -- Records of h_spc_code
  5803. -- ----------------------------
  5804. -- ----------------------------
  5805. -- Table structure for h_tc_game
  5806. -- ----------------------------
  5807. DROP TABLE IF EXISTS `h_tc_game`;
  5808. CREATE TABLE `h_tc_game` (
  5809. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID',
  5810. `app_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '对应与game表中id',
  5811. `tc_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'third_conf中ID',
  5812. `tc_type` tinyint(4) UNSIGNED NOT NULL DEFAULT 0 COMMENT '3 移动应用 5 网站应用 6 小程序 7 公众号 8 支付 9 开发平台 10 第三方平台',
  5813. `pre_check` tinyint(4) UNSIGNED NOT NULL DEFAULT 1 COMMENT '实名认证前置校验 1 正则校验 2阿里/腾讯云',
  5814. `is_default` tinyint(4) NOT NULL DEFAULT 2 COMMENT '是否默认 1 非默认 2默认',
  5815. `create_time` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '创建时间',
  5816. `update_time` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
  5817. PRIMARY KEY (`id`) USING BTREE,
  5818. UNIQUE INDEX `tcg_appkey_unique`(`app_id`, `tc_id`) USING BTREE,
  5819. INDEX `tcg_tc_index`(`tc_id`) USING BTREE
  5820. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '第三方配置游戏关联表' ROW_FORMAT = Dynamic;
  5821. -- ----------------------------
  5822. -- Records of h_tc_game
  5823. -- ----------------------------
  5824. -- ----------------------------
  5825. -- Table structure for h_theme
  5826. -- ----------------------------
  5827. DROP TABLE IF EXISTS `h_theme`;
  5828. CREATE TABLE `h_theme` (
  5829. `id` int(11) NOT NULL AUTO_INCREMENT,
  5830. `create_time` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '安装时间',
  5831. `update_time` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '最后升级时间',
  5832. `status` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT '模板状态,1:正在使用;0:未使用',
  5833. `is_compiled` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否为已编译模板',
  5834. `theme` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '主题目录名,用于主题的维一标识',
  5835. `name` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '主题名称',
  5836. `version` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '主题版本号',
  5837. `demo_url` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '演示地址,带协议',
  5838. `thumbnail` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '缩略图',
  5839. `author` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '主题作者',
  5840. `author_url` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '作者网站链接',
  5841. `lang` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '支持语言',
  5842. `keywords` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '主题关键字',
  5843. `description` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '主题描述',
  5844. PRIMARY KEY (`id`) USING BTREE
  5845. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '模板表' ROW_FORMAT = DYNAMIC;
  5846. -- ----------------------------
  5847. -- Records of h_theme
  5848. -- ----------------------------
  5849. -- ----------------------------
  5850. -- Table structure for h_theme_file
  5851. -- ----------------------------
  5852. DROP TABLE IF EXISTS `h_theme_file`;
  5853. CREATE TABLE `h_theme_file` (
  5854. `id` int(11) NOT NULL AUTO_INCREMENT,
  5855. `is_public` tinyint(4) NOT NULL DEFAULT 0 COMMENT '是否公共的模板文件',
  5856. `list_order` float NOT NULL DEFAULT 10000 COMMENT '排序',
  5857. `theme` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '模板名称',
  5858. `name` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '模板文件名',
  5859. `action` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '操作',
  5860. `file` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '模板文件,相对于模板根目录,如Portal/index.html',
  5861. `description` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '模板文件描述',
  5862. `more` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '模板更多配置,用户自己后台设置的',
  5863. `config_more` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '模板更多配置,来源模板的配置文件',
  5864. `draft_more` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '模板更多配置,用户临时保存的配置',
  5865. PRIMARY KEY (`id`) USING BTREE
  5866. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;
  5867. -- ----------------------------
  5868. -- Records of h_theme_file
  5869. -- ----------------------------
  5870. -- ----------------------------
  5871. -- Table structure for h_user
  5872. -- ----------------------------
  5873. DROP TABLE IF EXISTS `h_user`;
  5874. CREATE TABLE `h_user` (
  5875. `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
  5876. `user_login` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '用户名',
  5877. `user_pass` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '登录密码',
  5878. `pay_pwd` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '用户支付密码',
  5879. `user_nicename` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '用户美名',
  5880. `user_email` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '登录邮箱',
  5881. `site_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '网站名称',
  5882. `user_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '用户个人网站',
  5883. `logo` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '网站LOGO',
  5884. `avatar` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '用户头像,相对于upload/avatar目录',
  5885. `sex` smallint(1) NOT NULL DEFAULT 0 COMMENT '性别;0:保密,1:男;2:女',
  5886. `birthday` bigint(20) NOT NULL DEFAULT 0 COMMENT '生日',
  5887. `signature` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '个性签名',
  5888. `last_login_ip` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '最后登录ip',
  5889. `last_login_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '最后登录时间',
  5890. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '注册时间',
  5891. `user_activation_key` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '激活码',
  5892. `user_status` int(11) NOT NULL DEFAULT 2 COMMENT '用户状态1:未验证; 2:正常 ;3:禁用',
  5893. `score` int(11) NOT NULL DEFAULT 0 COMMENT '用户积分',
  5894. `role_id` smallint(1) NOT NULL DEFAULT 1 COMMENT '角色ID',
  5895. `coin` int(11) NOT NULL DEFAULT 0 COMMENT '金币',
  5896. `mobile` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '手机号',
  5897. `qq` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT 'qq号码',
  5898. `linkman` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '联系人',
  5899. `parent_id` int(11) NULL DEFAULT 1 COMMENT '所有者id',
  5900. `mem_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '玩家即渠道 关联的玩家ID',
  5901. `cp_id` int(11) NOT NULL DEFAULT 0 COMMENT '归属的CP',
  5902. `wx_qr` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '微信二维码',
  5903. `float_icon` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '浮点图标',
  5904. `is_switch` tinyint(2) UNSIGNED NULL DEFAULT 2 COMMENT '是否切换 1 切换 2不切换',
  5905. `switch_rate` tinyint(3) UNSIGNED NULL DEFAULT 0 COMMENT '切换百分比',
  5906. `ext_info` varchar(1023) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '扩展字段信息',
  5907. `account_id` int(11) UNSIGNED NULL DEFAULT 0 COMMENT '腾讯广告账号ID',
  5908. `parent_account_id` int(11) UNSIGNED NULL DEFAULT 0 COMMENT '腾讯广告代理商账号ID',
  5909. PRIMARY KEY (`id`) USING BTREE,
  5910. UNIQUE INDEX `user_login_UNIQUE`(`user_login`) USING BTREE,
  5911. INDEX `user_nicename`(`user_nicename`) USING BTREE,
  5912. INDEX `u_role_index`(`role_id`) USING BTREE,
  5913. INDEX `mem_id_inx`(`mem_id`) USING BTREE,
  5914. INDEX `account_id_index`(`account_id`) USING BTREE,
  5915. INDEX `p_account_id_index`(`parent_account_id`) USING BTREE
  5916. ) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户表' ROW_FORMAT = DYNAMIC;
  5917. -- ----------------------------
  5918. -- Records of h_user
  5919. -- ----------------------------
  5920. INSERT INTO `h_user` VALUES (1, 'admin', '###bf4b00628d80886421726fdee2b7fddd', '###bf4b00628d80886421726fdee2b7fddd', '超级管理员', '', '', '', '', '', 0, 0, '', '115.193.186.7', 1640001093, 0, '', 2, 0, 1, 0, '', '', '', 0, 0, 0, '', '', 2, 0, '', 0, 0);
  5921. -- ----------------------------
  5922. -- Table structure for h_user_token
  5923. -- ----------------------------
  5924. DROP TABLE IF EXISTS `h_user_token`;
  5925. CREATE TABLE `h_user_token` (
  5926. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  5927. `user_id` bigint(20) NOT NULL DEFAULT 0 COMMENT '用户id',
  5928. `mem_id` bigint(20) NOT NULL DEFAULT 0 COMMENT '玩家id',
  5929. `expire_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT ' 过期时间',
  5930. `create_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '创建时间',
  5931. `token` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'token',
  5932. `device_type` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '设备类型;mobile,android,iphone,ipad,web,pc,mac,wxapp',
  5933. PRIMARY KEY (`id`) USING BTREE
  5934. ) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户客户端登录 token 表' ROW_FORMAT = DYNAMIC;
  5935. -- ----------------------------
  5936. -- Records of h_user_token
  5937. -- ----------------------------
  5938. INSERT INTO `h_user_token` VALUES (1, 1, 0, 1655553093, 1640001093, '3ba1c37072b7af66066dae3c4f14e6536e92ba685cf04f63838c764aa9b9a4ff', 'web');
  5939. -- ----------------------------
  5940. -- Table structure for h_verification_code
  5941. -- ----------------------------
  5942. DROP TABLE IF EXISTS `h_verification_code`;
  5943. CREATE TABLE `h_verification_code` (
  5944. `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '表id',
  5945. `count` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '当天已经发送成功的次数',
  5946. `send_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '最后发送成功时间',
  5947. `expire_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '验证码过期时间',
  5948. `code` varchar(8) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '最后发送成功的验证码',
  5949. `account` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '手机号或者邮箱',
  5950. PRIMARY KEY (`id`) USING BTREE
  5951. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '手机邮箱数字验证码表' ROW_FORMAT = DYNAMIC;
  5952. -- ----------------------------
  5953. -- Records of h_verification_code
  5954. -- ----------------------------
  5955. -- ----------------------------
  5956. -- Table structure for h_web_links
  5957. -- ----------------------------
  5958. DROP TABLE IF EXISTS `h_web_links`;
  5959. CREATE TABLE `h_web_links` (
  5960. `link_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
  5961. `link_url` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '友情链接地址',
  5962. `link_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '友情链接名称',
  5963. `link_image` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '友情链接图标',
  5964. `link_target` varchar(16) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '_blank' COMMENT '友情链接打开方式',
  5965. `link_description` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '友情链接描述',
  5966. `link_status` int(2) NOT NULL DEFAULT 2 COMMENT '状态,1隐藏 2显示',
  5967. `link_rating` int(11) NOT NULL DEFAULT 0 COMMENT '友情链接评级',
  5968. `link_rel` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '链接与网站的关系',
  5969. `listorder` int(10) NOT NULL DEFAULT 0 COMMENT '排序',
  5970. PRIMARY KEY (`link_id`) USING BTREE,
  5971. INDEX `link_visible`(`link_status`) USING BTREE
  5972. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '友情链接表' ROW_FORMAT = DYNAMIC;
  5973. -- ----------------------------
  5974. -- Records of h_web_links
  5975. -- ----------------------------
  5976. -- ----------------------------
  5977. -- Table structure for h_web_page
  5978. -- ----------------------------
  5979. DROP TABLE IF EXISTS `h_web_page`;
  5980. CREATE TABLE `h_web_page` (
  5981. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
  5982. `code` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '',
  5983. `status` int(2) NOT NULL DEFAULT 2,
  5984. `title` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '标题',
  5985. `content` longtext CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '内容',
  5986. PRIMARY KEY (`id`) USING BTREE
  5987. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = 'PC官网页面' ROW_FORMAT = DYNAMIC;
  5988. -- ----------------------------
  5989. -- Records of h_web_page
  5990. -- ----------------------------
  5991. -- ----------------------------
  5992. -- Table structure for log_ads_quhulian
  5993. -- ----------------------------
  5994. DROP TABLE IF EXISTS `log_ads_quhulian`;
  5995. CREATE TABLE `log_ads_quhulian` (
  5996. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  5997. `mp_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '小程序appid',
  5998. `openid` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '小程序用户openid',
  5999. `openid_m` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'Url传入的openid_m',
  6000. `device_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'Url传入的device_id',
  6001. `mem_id` bigint(20) NOT NULL DEFAULT 0 COMMENT '关联的本站用户id',
  6002. `status` tinyint(2) NOT NULL DEFAULT 1 COMMENT '1 本站已有用户 2 cpa新增用户',
  6003. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  6004. PRIMARY KEY (`id`) USING BTREE,
  6005. INDEX `qd_openid_index`(`openid`) USING BTREE,
  6006. INDEX `qd_mem_index`(`mem_id`) USING BTREE
  6007. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '趣互联小程序广告LOG' ROW_FORMAT = DYNAMIC;
  6008. -- ----------------------------
  6009. -- Records of log_ads_quhulian
  6010. -- ----------------------------
  6011. -- ----------------------------
  6012. -- Table structure for log_day_mem_temp
  6013. -- ----------------------------
  6014. DROP TABLE IF EXISTS `log_day_mem_temp`;
  6015. CREATE TABLE `log_day_mem_temp` (
  6016. `id` int(11) NOT NULL AUTO_INCREMENT,
  6017. `date` date NOT NULL DEFAULT '0000-00-00' COMMENT '日期',
  6018. `mem_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '玩家ID',
  6019. `mobile_prefix` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '国家手机区号',
  6020. `task_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '任务ID',
  6021. `agent_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '归属渠道',
  6022. `app_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '游戏ID',
  6023. `reg_time` bigint(11) NOT NULL DEFAULT 0 COMMENT '玩家注册时间',
  6024. `reg_days` int(11) NOT NULL DEFAULT 0 COMMENT '注册天数',
  6025. `device_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '手机设备码',
  6026. `new_device` tinyint(2) NOT NULL DEFAULT 1 COMMENT '2 新设备 1 非新',
  6027. `device_cnt` int(11) NOT NULL DEFAULT 1 COMMENT '登陆的设备个数',
  6028. `login_cnt` int(11) NOT NULL DEFAULT 1 COMMENT '登陆次数',
  6029. `sum_money` double(12, 2) NOT NULL DEFAULT 0.00 COMMENT '累计充值',
  6030. `sum_real_money` double(12, 2) NOT NULL DEFAULT 0.00 COMMENT '自然流水金额',
  6031. `first_pay_time` bigint(11) NOT NULL DEFAULT 0 COMMENT '第一笔充值时间',
  6032. `last_pay_time` bigint(11) NOT NULL DEFAULT 0 COMMENT '最近充值时间',
  6033. `last_money` double(12, 2) NOT NULL DEFAULT 0.00 COMMENT '最近充值金额',
  6034. `order_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '订单数量',
  6035. `order_suc_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '支付成功订单数量',
  6036. `last_login_ip` bigint(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '玩家最近登陆ip',
  6037. `auth_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '授权登陆次数',
  6038. `is_cpa` tinyint(4) UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否计算cpa 1 否 2是',
  6039. `is_auth` tinyint(4) UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否第三方注册 1否 2是',
  6040. `reg_app_id` int(11) NOT NULL DEFAULT 0 COMMENT '注册游戏ID',
  6041. PRIMARY KEY (`id`) USING BTREE,
  6042. UNIQUE INDEX `ldmt_date_mem_app_unique`(`date`, `mem_id`, `app_id`) USING BTREE,
  6043. INDEX `ldmt_ip_index`(`last_login_ip`) USING BTREE,
  6044. INDEX `ldmt_agent_index`(`agent_id`) USING BTREE,
  6045. INDEX `ldmt_app_index`(`app_id`) USING BTREE
  6046. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '玩家每日临时' ROW_FORMAT = Dynamic;
  6047. -- ----------------------------
  6048. -- Records of log_day_mem_temp
  6049. -- ----------------------------
  6050. -- ----------------------------
  6051. -- Table structure for log_dgac_temp
  6052. -- ----------------------------
  6053. DROP TABLE IF EXISTS `log_dgac_temp`;
  6054. CREATE TABLE `log_dgac_temp` (
  6055. `id` int(11) NOT NULL AUTO_INCREMENT,
  6056. `date` date NOT NULL DEFAULT '0000-00-00' COMMENT '日期',
  6057. `mobile_prefix` int(11) UNSIGNED NOT NULL DEFAULT 156 COMMENT '国家手机区号',
  6058. `app_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '游戏ID',
  6059. `app_name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '游戏名称',
  6060. `agent_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '渠道ID',
  6061. `agent_name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '渠道名称',
  6062. `share_agent_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '分享人数',
  6063. `share_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '分享次数',
  6064. `click_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '点击数',
  6065. `click_user_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '点击人数',
  6066. `page_down_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '落地页点击数',
  6067. `active_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '游戏激活数',
  6068. `down_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '下载数',
  6069. `down_user_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '下载人数',
  6070. `real_down_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '真实下载数',
  6071. `user_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '活跃玩家数量',
  6072. `history_user_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '累计玩家数量',
  6073. `wau` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '最近7天活跃人数',
  6074. `mau` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '最近30天活跃人数',
  6075. `ip_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'IP数量',
  6076. `device_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '设备数量',
  6077. `history_device_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '累计设备数量',
  6078. `dwau` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '最近7天活跃设备数',
  6079. `dmau` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '最近30天活跃设备数',
  6080. `reg_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '注册玩家数',
  6081. `reg_device_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '注册设备数',
  6082. `reg_ip_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '注册IP数',
  6083. `pay_user_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '付费玩家数',
  6084. `order_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '成功订单数',
  6085. `fail_order_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '失败订单数',
  6086. `un_order_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '待支付订单数',
  6087. `reg_order_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '注册订单数',
  6088. `reg_pay_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '注册即付费人数',
  6089. `sum_money` decimal(20, 2) NOT NULL DEFAULT 0.00 COMMENT '充值金额',
  6090. `sum_real_money` decimal(20, 2) NOT NULL DEFAULT 0.00 COMMENT '自然流水金额',
  6091. `first_pay_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '首次付费人数',
  6092. `first_pay_money` decimal(20, 2) NOT NULL DEFAULT 0.00 COMMENT '首付总额',
  6093. `reg_sum_money` decimal(20, 2) NOT NULL DEFAULT 0.00 COMMENT '注册即付总额',
  6094. `reg_real_sum_money` decimal(20, 2) NOT NULL DEFAULT 0.00 COMMENT '注册即付自然流水总额',
  6095. `cpa_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '计算cpa玩家数量',
  6096. `openid_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '第三方注册玩家数量',
  6097. `day2` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '二日留存量',
  6098. `day3` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '三日留存量',
  6099. `day4` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '四日留存量',
  6100. `day5` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '五日留存量',
  6101. `day6` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '六日留存量',
  6102. `day7` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '七日留存量',
  6103. `day8` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '八日留存量',
  6104. `day9` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '九日留存量',
  6105. `day10` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '十日留存量',
  6106. `day11` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '11日留存量',
  6107. `day12` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '12日留存量',
  6108. `day13` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '13日留存量',
  6109. `day14` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '14日留存量',
  6110. `day15` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '15日留存量',
  6111. `day21` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '21日留存量',
  6112. `day30` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '30日留存量',
  6113. `day60` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '60日留存量',
  6114. `device_day2` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '二日留存量',
  6115. `device_day3` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '三日留存量',
  6116. `device_day4` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '四日留存量',
  6117. `device_day5` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '五日留存量',
  6118. `device_day6` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '六日留存量',
  6119. `device_day7` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '七日留存量',
  6120. `device_day8` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '八日留存量',
  6121. `device_day9` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '九日留存量',
  6122. `device_day10` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '十日留存量',
  6123. `device_day11` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '11日留存量',
  6124. `device_day12` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '12日留存量',
  6125. `device_day13` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '13日留存量',
  6126. `device_day14` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '14日留存量',
  6127. `device_day15` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '15日留存量',
  6128. `device_day21` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '21日留存量',
  6129. `device_day30` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '30日留存量',
  6130. `device_day60` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '60日留存量',
  6131. PRIMARY KEY (`id`) USING BTREE,
  6132. UNIQUE INDEX `dga_dga_unique`(`date`, `app_id`, `agent_id`) USING BTREE,
  6133. INDEX `dga_game_index`(`app_id`) USING BTREE,
  6134. INDEX `dga_agent_index`(`agent_id`) USING BTREE
  6135. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '每日游戏推广员统计表' ROW_FORMAT = COMPACT;
  6136. -- ----------------------------
  6137. -- Records of log_dgac_temp
  6138. -- ----------------------------
  6139. -- ----------------------------
  6140. -- Table structure for mp_ad_agent
  6141. -- ----------------------------
  6142. DROP TABLE IF EXISTS `mp_ad_agent`;
  6143. CREATE TABLE `mp_ad_agent` (
  6144. `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  6145. `agent_id` int(10) UNSIGNED NULL DEFAULT NULL COMMENT '投手渠道ID',
  6146. `app_id` int(10) UNSIGNED NULL DEFAULT NULL COMMENT '游戏ID',
  6147. `game_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '游戏名称',
  6148. `mp_id` char(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '公众号/小程序ID',
  6149. `wx_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '公众号/小程序名称',
  6150. `account_id` int(10) UNSIGNED NULL DEFAULT NULL COMMENT '腾讯广点通ID',
  6151. `parent_account_id` int(10) UNSIGNED NULL DEFAULT 0 COMMENT '腾讯广点通代理商ID',
  6152. `status` tinyint(3) UNSIGNED NULL DEFAULT 2 COMMENT '状态 1:禁用 2:启用',
  6153. `create_time` int(11) NULL DEFAULT 0 COMMENT '创建时间',
  6154. `start_time` int(11) NULL DEFAULT NULL COMMENT '使用开始时间',
  6155. `end_time` int(11) NULL DEFAULT NULL COMMENT '使用结束时间',
  6156. PRIMARY KEY (`id`) USING BTREE,
  6157. INDEX `agent_id_inx`(`agent_id`) USING BTREE,
  6158. INDEX `app_id_inx`(`app_id`) USING BTREE,
  6159. INDEX `mp_id_inx`(`mp_id`) USING BTREE,
  6160. INDEX `account_id_inx`(`account_id`) USING BTREE,
  6161. INDEX `p_account_id_inx`(`parent_account_id`) USING BTREE,
  6162. INDEX `status`(`status`) USING BTREE
  6163. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '腾讯广告渠道公众号对应表' ROW_FORMAT = Dynamic;
  6164. -- ----------------------------
  6165. -- Records of mp_ad_agent
  6166. -- ----------------------------
  6167. -- ----------------------------
  6168. -- Table structure for mp_ad_source
  6169. -- ----------------------------
  6170. DROP TABLE IF EXISTS `mp_ad_source`;
  6171. CREATE TABLE `mp_ad_source` (
  6172. `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
  6173. `conf_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '配置ID',
  6174. `app_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '游戏ID',
  6175. `agent_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '渠道ID',
  6176. `type` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '行为源类型',
  6177. `name` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '行为源名称',
  6178. `description` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '描述',
  6179. `advertiser_conf_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '关联广告主配置ID',
  6180. `source_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '数据源ID',
  6181. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  6182. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '修改时间',
  6183. PRIMARY KEY (`id`) USING BTREE,
  6184. INDEX `mas_conf_type_conf_index`(`conf_id`, `agent_id`, `type`, `advertiser_conf_id`) USING BTREE
  6185. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = 'MP买量广告账号数据源' ROW_FORMAT = Dynamic;
  6186. -- ----------------------------
  6187. -- Records of mp_ad_source
  6188. -- ----------------------------
  6189. -- ----------------------------
  6190. -- Table structure for mp_conf_agent
  6191. -- ----------------------------
  6192. DROP TABLE IF EXISTS `mp_conf_agent`;
  6193. CREATE TABLE `mp_conf_agent` (
  6194. `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
  6195. `conf_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '配置ID',
  6196. `app_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '游戏ID',
  6197. `agent_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '渠道ID',
  6198. `advertiser_conf_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '关联广告主配置ID',
  6199. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  6200. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '修改时间',
  6201. PRIMARY KEY (`id`) USING BTREE,
  6202. INDEX `mce_confid_index`(`conf_id`) USING BTREE,
  6203. INDEX `mce_app_index`(`app_id`) USING BTREE,
  6204. INDEX `mce_agent_index`(`agent_id`) USING BTREE
  6205. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '账号渠道表' ROW_FORMAT = Dynamic;
  6206. -- ----------------------------
  6207. -- Records of mp_conf_agent
  6208. -- ----------------------------
  6209. -- ----------------------------
  6210. -- Table structure for mp_conf_ext
  6211. -- ----------------------------
  6212. DROP TABLE IF EXISTS `mp_conf_ext`;
  6213. CREATE TABLE `mp_conf_ext` (
  6214. `conf_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '配置ID',
  6215. `is_advertiser` tinyint(2) UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否广告主 1否 2是',
  6216. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  6217. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '修改时间',
  6218. INDEX `mce_confid_index`(`conf_id`) USING BTREE,
  6219. INDEX `mce_advertiser_index`(`is_advertiser`) USING BTREE
  6220. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '账号扩展表' ROW_FORMAT = Dynamic;
  6221. -- ----------------------------
  6222. -- Records of mp_conf_ext
  6223. -- ----------------------------
  6224. -- ----------------------------
  6225. -- Table structure for mp_homepage
  6226. -- ----------------------------
  6227. DROP TABLE IF EXISTS `mp_homepage`;
  6228. CREATE TABLE `mp_homepage` (
  6229. `mem_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '玩家id',
  6230. `title` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '标题',
  6231. `intro` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '简介',
  6232. `banner` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'banner图',
  6233. `url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '跳转的URL',
  6234. `hits` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '查看数',
  6235. `like` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '点赞数',
  6236. `comment_count` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '评论数',
  6237. `create_time` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '创建时间',
  6238. `update_time` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
  6239. PRIMARY KEY (`mem_id`) USING BTREE
  6240. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户主页表' ROW_FORMAT = DYNAMIC;
  6241. -- ----------------------------
  6242. -- Records of mp_homepage
  6243. -- ----------------------------
  6244. -- ----------------------------
  6245. -- Table structure for mp_hp_visitor
  6246. -- ----------------------------
  6247. DROP TABLE IF EXISTS `mp_hp_visitor`;
  6248. CREATE TABLE `mp_hp_visitor` (
  6249. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID',
  6250. `parent_mem_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '上级玩家ID',
  6251. `mem_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '玩家ID',
  6252. `create_time` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '创建时间',
  6253. `update_time` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
  6254. PRIMARY KEY (`id`) USING BTREE,
  6255. UNIQUE INDEX `mpv_parent_mem_unique`(`parent_mem_id`, `mem_id`) USING BTREE,
  6256. INDEX `mpv_time_index`(`update_time`) USING BTREE
  6257. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '访客表' ROW_FORMAT = DYNAMIC;
  6258. -- ----------------------------
  6259. -- Records of mp_hp_visitor
  6260. -- ----------------------------
  6261. -- ----------------------------
  6262. -- Table structure for mp_hunter_rank
  6263. -- ----------------------------
  6264. DROP TABLE IF EXISTS `mp_hunter_rank`;
  6265. CREATE TABLE `mp_hunter_rank` (
  6266. `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID',
  6267. `mem_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '关联的玩家ID',
  6268. `day_money` decimal(20, 2) NOT NULL DEFAULT 0.00 COMMENT '本日金额',
  6269. `month_money` decimal(20, 2) NOT NULL DEFAULT 0.00 COMMENT '本月金额',
  6270. `total_money` decimal(20, 2) NOT NULL DEFAULT 0.00 COMMENT '总金额',
  6271. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  6272. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间',
  6273. PRIMARY KEY (`id`) USING BTREE,
  6274. UNIQUE INDEX `mhr_memid_UNIQUE`(`mem_id`) USING BTREE
  6275. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '猎人平台虚拟收益排行表' ROW_FORMAT = DYNAMIC;
  6276. -- ----------------------------
  6277. -- Records of mp_hunter_rank
  6278. -- ----------------------------
  6279. -- ----------------------------
  6280. -- Table structure for mp_log_mgm_202111
  6281. -- ----------------------------
  6282. DROP TABLE IF EXISTS `mp_log_mgm_202111`;
  6283. CREATE TABLE `mp_log_mgm_202111` (
  6284. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  6285. `date` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '日期',
  6286. `mem_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '玩家ID',
  6287. `app_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '游戏id',
  6288. `order_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '订单号',
  6289. `m_balance` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '游戏币个数(包含赠送)',
  6290. `m_gen_balance` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '赠送游戏币数量',
  6291. `m_save_amt` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '累计充值金额的游戏币数量',
  6292. `m_save_sum` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '历史总游戏币金额',
  6293. `m_cost_sum` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '历史总消费游戏币金额',
  6294. `m_present_sum` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '历史累计收到赠送金额',
  6295. `m_used_gen_balance` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '本次扣的赠送币的余额',
  6296. `server_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '区服id',
  6297. `type` tinyint(1) NOT NULL DEFAULT 0 COMMENT '1 查询 2 扣费 3 赠送 4 取消支付',
  6298. `more` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '更多信息',
  6299. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  6300. PRIMARY KEY (`id`) USING BTREE,
  6301. INDEX `lmgm_mem_index`(`mem_id`) USING BTREE,
  6302. INDEX `lmgm_game_index`(`app_id`) USING BTREE
  6303. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '米大师游戏币余额变化表' ROW_FORMAT = Dynamic;
  6304. -- ----------------------------
  6305. -- Records of mp_log_mgm_202111
  6306. -- ----------------------------
  6307. -- ----------------------------
  6308. -- Table structure for mp_mem_faker
  6309. -- ----------------------------
  6310. DROP TABLE IF EXISTS `mp_mem_faker`;
  6311. CREATE TABLE `mp_mem_faker` (
  6312. `id` int(11) NOT NULL AUTO_INCREMENT,
  6313. `nickname` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '昵称',
  6314. `avatar` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '头像',
  6315. `sub_mem_cnt` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '邀请人数',
  6316. `sub_mem_min` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '每日增加邀请人数最小值',
  6317. `sub_mem_max` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '每日增加邀请人数最大值',
  6318. `sub_amount` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '总收益',
  6319. `sub_amount_min` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '每日增加邀请收益数最小值',
  6320. `sub_amount_max` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '每日增加邀请收益数最大值',
  6321. `is_delete` tinyint(2) NOT NULL DEFAULT 2 COMMENT '1伪删除 2正常',
  6322. `delete_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '删除时间',
  6323. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  6324. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '修改时间',
  6325. PRIMARY KEY (`id`) USING BTREE,
  6326. INDEX `delete_index`(`is_delete`) USING BTREE
  6327. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '玩家假数据' ROW_FORMAT = DYNAMIC;
  6328. -- ----------------------------
  6329. -- Records of mp_mem_faker
  6330. -- ----------------------------
  6331. -- ----------------------------
  6332. -- Table structure for mp_mem_invited_log
  6333. -- ----------------------------
  6334. DROP TABLE IF EXISTS `mp_mem_invited_log`;
  6335. CREATE TABLE `mp_mem_invited_log` (
  6336. `id` int(11) NOT NULL AUTO_INCREMENT,
  6337. `parent_mem_id` int(11) NULL DEFAULT 0 COMMENT '邀请人ID',
  6338. `mem_id` int(11) NULL DEFAULT 0 COMMENT '被邀请人id',
  6339. `amount` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '奖励',
  6340. `create_time` bigint(20) NULL DEFAULT 0 COMMENT '创建时间',
  6341. `update_time` bigint(20) NULL DEFAULT 0 COMMENT '修改时间',
  6342. PRIMARY KEY (`id`) USING BTREE,
  6343. INDEX `mem_idindex`(`mem_id`) USING BTREE,
  6344. INDEX `parent_mem_idindex`(`parent_mem_id`) USING BTREE
  6345. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '邀请记录表' ROW_FORMAT = DYNAMIC;
  6346. -- ----------------------------
  6347. -- Records of mp_mem_invited_log
  6348. -- ----------------------------
  6349. -- ----------------------------
  6350. -- Table structure for mp_mem_risk
  6351. -- ----------------------------
  6352. DROP TABLE IF EXISTS `mp_mem_risk`;
  6353. CREATE TABLE `mp_mem_risk` (
  6354. `mem_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '玩家ID',
  6355. `share_total` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '总收益',
  6356. `settle_total` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '总提现金额',
  6357. `sub_cnt` int(11) NOT NULL DEFAULT 0 COMMENT '徒弟数量',
  6358. `sub_share_total` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '徒弟总收益',
  6359. `sub_settle_total` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '徒弟总提现',
  6360. `withdraw_default` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '提现比参考值',
  6361. `withdraw` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '提现比',
  6362. `expand_default` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '拓展比参考值',
  6363. `expand` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '拓展比',
  6364. `wechat_default` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '微信比参考值',
  6365. `wechat` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '微信比',
  6366. `warrant_default` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '授权比参考值',
  6367. `warrant` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '授权比',
  6368. `same_ip_default` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '同IP比参考值',
  6369. `same_ip` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '同IP比',
  6370. `realname_default` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '实名比参考值',
  6371. `realname` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '实名比',
  6372. `risk_level` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT '风控等级',
  6373. PRIMARY KEY (`mem_id`) USING BTREE,
  6374. INDEX `mr_mem_index`(`mem_id`) USING BTREE
  6375. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '玩家风险数据-临时表' ROW_FORMAT = DYNAMIC;
  6376. -- ----------------------------
  6377. -- Records of mp_mem_risk
  6378. -- ----------------------------
  6379. -- ----------------------------
  6380. -- Table structure for mp_midas_gm_mem
  6381. -- ----------------------------
  6382. DROP TABLE IF EXISTS `mp_midas_gm_mem`;
  6383. CREATE TABLE `mp_midas_gm_mem` (
  6384. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  6385. `mem_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '玩家ID',
  6386. `app_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '游戏id',
  6387. `sum_money` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '充值总金额',
  6388. `total` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '游戏币数量',
  6389. `remain` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '游戏币余额',
  6390. `m_balance` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '游戏币个数(包含赠送)',
  6391. `m_gen_balance` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '赠送游戏币数量',
  6392. `m_save_amt` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '累计充值金额的游戏币数量',
  6393. `m_save_sum` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '历史总游戏币金额',
  6394. `m_cost_sum` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '历史总消费游戏币金额',
  6395. `m_present_sum` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '历史累计收到赠送金额',
  6396. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  6397. `update_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间',
  6398. `server_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '1' COMMENT '区服id',
  6399. PRIMARY KEY (`id`) USING BTREE,
  6400. INDEX `mgm_mem_index`(`mem_id`) USING BTREE,
  6401. INDEX `mgm_game_index`(`app_id`) USING BTREE
  6402. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '米大师游戏币余额表' ROW_FORMAT = DYNAMIC;
  6403. -- ----------------------------
  6404. -- Records of mp_midas_gm_mem
  6405. -- ----------------------------
  6406. -- ----------------------------
  6407. -- Table structure for mp_mp_conf
  6408. -- ----------------------------
  6409. DROP TABLE IF EXISTS `mp_mp_conf`;
  6410. CREATE TABLE `mp_mp_conf` (
  6411. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID',
  6412. `app_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '对应与game表中id',
  6413. `mp_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '小程序、公众号appid 支付商户号',
  6414. `app_secret` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '小程序key 公众号--appsecret 支付api密钥',
  6415. `sand_key` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '沙盒环境key',
  6416. `type` tinyint(2) UNSIGNED NOT NULL DEFAULT 0 COMMENT '3 移动应用 5 网站应用 6 小程序 7 公众号 8 支付 9 开发平台 10 第三方平台',
  6417. `email` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '登录邮箱',
  6418. `password` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '登陆密码',
  6419. `master` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '负责人',
  6420. `company` varchar(12) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '主体名称',
  6421. `mobile` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '联系人手机号',
  6422. `wx_name` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '公众帐号/小程序名称',
  6423. `wx_intro` varchar(511) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '公众帐号/小程序介绍',
  6424. `wx_logo` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '公众帐号/小程序头像',
  6425. `source_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '原始ID',
  6426. `wx_account` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '微信号',
  6427. `qr_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '二维码',
  6428. `ext_info` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '扩展信息',
  6429. `parent_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '开放平台ID',
  6430. `is_delete` tinyint(2) NOT NULL DEFAULT 2 COMMENT '是否删除 1 伪删除 2正常',
  6431. `delete_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '删除时间',
  6432. `create_time` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '创建时间',
  6433. `update_time` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
  6434. PRIMARY KEY (`id`) USING BTREE,
  6435. UNIQUE INDEX `mc_mp_unique`(`mp_id`) USING BTREE,
  6436. INDEX `mc_app_index`(`app_id`) USING BTREE,
  6437. INDEX `mc_parent_index`(`parent_id`) USING BTREE
  6438. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '广告主账号表' ROW_FORMAT = Dynamic;
  6439. -- ----------------------------
  6440. -- Records of mp_mp_conf
  6441. -- ----------------------------
  6442. -- ----------------------------
  6443. -- Table structure for mp_mp_menu
  6444. -- ----------------------------
  6445. DROP TABLE IF EXISTS `mp_mp_menu`;
  6446. CREATE TABLE `mp_mp_menu` (
  6447. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '菜单ID',
  6448. `conf_id` int(11) NOT NULL DEFAULT 0 COMMENT '配置ID',
  6449. `oa_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '公众号账号',
  6450. `name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '菜单标题',
  6451. `type` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '动作类型 view网页,click点击',
  6452. `key` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '菜单KEY值',
  6453. `url` varchar(1023) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '网页链接',
  6454. `media_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '永久素材media_id',
  6455. `mini_app_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '小程序ID',
  6456. `pagepath` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '小程序的页面路径',
  6457. `return_msg` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '回复内容',
  6458. `list_order` float NOT NULL DEFAULT 0 COMMENT '排序',
  6459. `is_menu` tinyint(2) UNSIGNED NOT NULL DEFAULT 2 COMMENT '是否菜单 1否 2是',
  6460. `parent_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '父ID',
  6461. `create_time` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '创建时间',
  6462. `update_time` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
  6463. PRIMARY KEY (`id`) USING BTREE,
  6464. INDEX `mm_conf_index`(`conf_id`) USING BTREE,
  6465. INDEX `mm_oa_index`(`oa_id`) USING BTREE,
  6466. INDEX `mm_order_index`(`list_order`) USING BTREE,
  6467. INDEX `mm_parent_index`(`parent_id`) USING BTREE
  6468. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '微信菜单表' ROW_FORMAT = DYNAMIC;
  6469. -- ----------------------------
  6470. -- Records of mp_mp_menu
  6471. -- ----------------------------
  6472. -- ----------------------------
  6473. -- Table structure for mp_oa_mch
  6474. -- ----------------------------
  6475. DROP TABLE IF EXISTS `mp_oa_mch`;
  6476. CREATE TABLE `mp_oa_mch` (
  6477. `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID',
  6478. `oa_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '公众号appid',
  6479. `mch_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '支付商户ID',
  6480. `is_default` tinyint(2) NOT NULL DEFAULT 2 COMMENT '最近默认 2 默认 1 不默认',
  6481. PRIMARY KEY (`id`) USING BTREE,
  6482. UNIQUE INDEX `mom_oa_mch_unique`(`oa_id`, `mch_id`) USING BTREE,
  6483. INDEX `mw_mch_index`(`mch_id`) USING BTREE
  6484. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '公众号与支付关联表' ROW_FORMAT = DYNAMIC;
  6485. -- ----------------------------
  6486. -- Records of mp_oa_mch
  6487. -- ----------------------------
  6488. -- ----------------------------
  6489. -- Table structure for mp_oa_mp
  6490. -- ----------------------------
  6491. DROP TABLE IF EXISTS `mp_oa_mp`;
  6492. CREATE TABLE `mp_oa_mp` (
  6493. `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID',
  6494. `oa_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '公众号appid',
  6495. `app_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '对应与game表中id',
  6496. `is_default` tinyint(2) NOT NULL DEFAULT 2 COMMENT '最近默认 2 默认 1 不默认',
  6497. PRIMARY KEY (`id`) USING BTREE,
  6498. UNIQUE INDEX `mom_oa_app_unique`(`oa_id`, `app_id`) USING BTREE,
  6499. INDEX `mw_app_index`(`app_id`) USING BTREE
  6500. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '公众号与小程序关联表' ROW_FORMAT = DYNAMIC;
  6501. -- ----------------------------
  6502. -- Records of mp_oa_mp
  6503. -- ----------------------------
  6504. -- ----------------------------
  6505. -- Table structure for mp_settle_log
  6506. -- ----------------------------
  6507. DROP TABLE IF EXISTS `mp_settle_log`;
  6508. CREATE TABLE `mp_settle_log` (
  6509. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'id',
  6510. `mem_id` int(11) NULL DEFAULT 0 COMMENT '玩家id',
  6511. `agent_id` int(11) NULL DEFAULT 0 COMMENT '渠道id',
  6512. `order_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '订单号',
  6513. `amount` double(20, 2) NOT NULL DEFAULT 0.00 COMMENT '提现金额',
  6514. `type` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'mp' COMMENT 'bank alipay wxpay mobile mp',
  6515. `cardholder` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '持卡人',
  6516. `banknum` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '打款帐号',
  6517. `code` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '返回状态码',
  6518. `msg` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '错误原因',
  6519. `result` varchar(1023) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '支付返回结果json',
  6520. `query_result` varchar(1023) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '查单结果json',
  6521. `create_time` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建时间',
  6522. PRIMARY KEY (`id`) USING BTREE,
  6523. INDEX `order_id`(`order_id`) USING BTREE
  6524. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '提现打款记录表' ROW_FORMAT = DYNAMIC;
  6525. -- ----------------------------
  6526. -- Records of mp_settle_log
  6527. -- ----------------------------
  6528. -- ----------------------------
  6529. -- Procedure structure for dataexec
  6530. -- ----------------------------
  6531. DROP PROCEDURE IF EXISTS `dataexec`;
  6532. delimiter ;;
  6533. CREATE PROCEDURE `dataexec`()
  6534. BEGIN
  6535. declare start_day DATE;
  6536. declare end_day DATE;
  6537. set start_day='2020-02-01';
  6538. set end_day = '2020-06-08';
  6539. while(to_days(start_day)<=to_days(end_day)) do
  6540. call rundaily(start_day);
  6541. set start_day = (start_day+interval 1 day);
  6542. end while;
  6543. END
  6544. ;;
  6545. delimiter ;
  6546. -- ----------------------------
  6547. -- Procedure structure for remain_pay_by_day
  6548. -- ----------------------------
  6549. DROP PROCEDURE IF EXISTS `remain_pay_by_day`;
  6550. delimiter ;;
  6551. CREATE PROCEDURE `remain_pay_by_day`()
  6552. BEGIN
  6553. DECLARE Tflag INT DEFAULT 0;
  6554. DECLARE Tappid INT;
  6555. DECLARE Tdate DATE;
  6556. DECLARE Tregtime BIGINT;
  6557. DECLARE Tregday INT;
  6558. DECLARE Tagentid INT;
  6559. DECLARE Tuserpay DOUBLE(20,2);
  6560. DECLARE Tsetdate DATE DEFAULT CURDATE()-INTERVAL 1 DAY;
  6561. DECLARE Tstarttime INT;
  6562. DECLARE Tendtime INT;
  6563. DECLARE TdayFlag varchar(20);
  6564. DECLARE Tgameagent_cursor CURSOR FOR SELECT reg_time,app_id,agent_id,reg_days,SUM(user_pay) FROM `h_log_day_pay_temp` WHERE reg_days in (1,2,3,4,5,6,7,8,9,10,11,12,13,14,20,29,59) GROUP BY app_id,agent_id,reg_days;
  6565. DECLARE Tagent_cursor CURSOR FOR SELECT reg_time,agent_id,reg_days,SUM(user_pay) FROM `h_log_day_pay_temp` WHERE reg_days in (1,2,3,4,5,6,7,8,9,10,11,12,13,14,20,29,59) GROUP BY agent_id,reg_days;
  6566. DECLARE CONTINUE HANDLER FOR SQLSTATE '02000' SET Tflag = 1;
  6567. SET Tstarttime=unix_timestamp(Tsetdate);
  6568. SET Tendtime=Tstarttime+86400;
  6569. CREATE TABLE IF NOT EXISTS `h_log_day_pay_temp` (
  6570. `id` int(11) NOT NULL AUTO_INCREMENT,
  6571. `date` date NOT NULL COMMENT '日期',
  6572. `mem_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '玩家ID',
  6573. `agent_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '归属渠道',
  6574. `app_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '游戏ID',
  6575. `reg_time` bigint(20) NOT NULL DEFAULT '0' COMMENT '玩家注册时间',
  6576. `reg_days` int(11) NOT NULL DEFAULT '0' COMMENT '注册天数',
  6577. `user_pay` DOUBLE(20,2) NOT NULL DEFAULT '0.00' COMMENT '支付金额',
  6578. PRIMARY KEY (`id`),
  6579. UNIQUE KEY `ldmt_date_mem_app_unique` (`date`,`mem_id`,`app_id`),
  6580. KEY `ldmt_agent_index` (`agent_id`),
  6581. KEY `ldmt_app_index` (`app_id`)
  6582. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='每日支付临时';
  6583. TRUNCATE `h_log_day_pay_temp`;
  6584. ALTER TABLE `h_log_day_pay_temp` DISABLE KEYS;
  6585. SET @ldmt_sql := "REPLACE INTO `h_log_day_pay_temp` ( `date`, `mem_id`, `agent_id`, `app_id`, `reg_time`, `reg_days`, user_pay )
  6586. SELECT
  6587. FROM_UNIXTIME( p.create_time, '%Y-%m-%d' ) AS date,
  6588. p.mem_id AS mem_id,
  6589. p.agent_id AS agent_id,
  6590. p.app_id AS app_id,
  6591. m.create_time AS reg_time,
  6592. ( DATEDIFF(FROM_UNIXTIME( p.create_time, '%Y-%m-%d %H:%i:%S' ), FROM_UNIXTIME( m.create_time, '%Y-%m-%d %H:%i:%S' ))) AS reg_days,
  6593. SUM( p.real_amount ) AS user_pay
  6594. FROM
  6595. h_pay AS p
  6596. LEFT JOIN h_member AS m ON p.mem_id = m.id
  6597. WHERE
  6598. p.`status` = '2' AND
  6599. p.`is_switch` = '2'
  6600. AND ";
  6601. SET @ldmt_sql := concat(@ldmt_sql, ' p.create_time > ', Tstarttime, ' AND p.create_time < ', Tendtime, ' AND m.create_time < ', Tstarttime);
  6602. SET @ldmt_sql := concat(@ldmt_sql, ' GROUP BY p.mem_id');
  6603. PREPARE ldmt_sql_ex FROM @ldmt_sql;
  6604. EXECUTE ldmt_sql_ex;
  6605. ALTER TABLE h_log_day_pay_temp ENABLE KEYS;
  6606. OPEN Tgameagent_cursor;
  6607. FETCH Tgameagent_cursor INTO Tregtime,Tappid,Tagentid,Tregday,Tuserpay;
  6608. WHILE Tflag<>1 DO
  6609. IF Tuserpay>0 THEN
  6610. CASE Tregday
  6611. WHEN 1 THEN
  6612. SET TdayFlag = 'pay_amount_day2';
  6613. WHEN 2 THEN
  6614. SET TdayFlag = 'pay_amount_day3';
  6615. WHEN 3 THEN
  6616. SET TdayFlag = 'pay_amount_day4';
  6617. WHEN 4 THEN
  6618. SET TdayFlag = 'pay_amount_day5';
  6619. WHEN 5 THEN
  6620. SET TdayFlag = 'pay_amount_day6';
  6621. WHEN 6 THEN
  6622. SET TdayFlag = 'pay_amount_day7';
  6623. WHEN 7 THEN
  6624. SET TdayFlag = 'pay_amount_day8';
  6625. WHEN 8 THEN
  6626. SET TdayFlag = 'pay_amount_day9';
  6627. WHEN 9 THEN
  6628. SET TdayFlag = 'pay_amount_day10';
  6629. WHEN 10 THEN
  6630. SET TdayFlag = 'pay_amount_day11';
  6631. WHEN 11 THEN
  6632. SET TdayFlag = 'pay_amount_day12';
  6633. WHEN 12 THEN
  6634. SET TdayFlag = 'pay_amount_day13';
  6635. WHEN 13 THEN
  6636. SET TdayFlag = 'pay_amount_day14';
  6637. WHEN 14 THEN
  6638. SET TdayFlag = 'pay_amount_day15';
  6639. WHEN 20 THEN
  6640. SET TdayFlag = 'pay_amount_day21';
  6641. WHEN 29 THEN
  6642. SET TdayFlag = 'pay_amount_day30';
  6643. WHEN 59 THEN
  6644. SET TdayFlag = 'pay_amount_day60';
  6645. END CASE;
  6646. SET Tdate = FROM_UNIXTIME(Tregtime,'%Y-%m-%d');
  6647. SET @sqlstr=CONCAT('update h_day_game_agent SET ',TdayFlag,'=',Tuserpay,' WHERE date=',CONCAT('\'',Tdate,'\''), ' AND agent_id=',Tagentid,' AND app_id=',Tappid);
  6648. PREPARE stmt FROM @sqlstr;
  6649. EXECUTE stmt;
  6650. SET @sqlstr=CONCAT('update h_day_game SET ',TdayFlag,'=',TdayFlag,'+',Tuserpay,' WHERE date=',CONCAT('\'',Tdate,'\''), ' AND app_id=',Tappid);
  6651. PREPARE stmt FROM @sqlstr;
  6652. EXECUTE stmt;
  6653. DEALLOCATE PREPARE stmt;
  6654. END IF;
  6655. FETCH Tgameagent_cursor INTO Tregtime,Tappid,Tagentid,Tregday,Tuserpay;
  6656. END WHILE;
  6657. CLOSE Tgameagent_cursor;
  6658. SET Tflag = 0;
  6659. OPEN Tagent_cursor;
  6660. FETCH Tagent_cursor INTO Tregtime,Tagentid,Tregday,Tuserpay;
  6661. WHILE Tflag<>1 DO
  6662. IF Tuserpay>0 THEN
  6663. CASE Tregday
  6664. WHEN 1 THEN
  6665. SET TdayFlag = 'pay_amount_day2';
  6666. WHEN 2 THEN
  6667. SET TdayFlag = 'pay_amount_day3';
  6668. WHEN 3 THEN
  6669. SET TdayFlag = 'pay_amount_day4';
  6670. WHEN 4 THEN
  6671. SET TdayFlag = 'pay_amount_day5';
  6672. WHEN 5 THEN
  6673. SET TdayFlag = 'pay_amount_day6';
  6674. WHEN 6 THEN
  6675. SET TdayFlag = 'pay_amount_day7';
  6676. WHEN 7 THEN
  6677. SET TdayFlag = 'pay_amount_day8';
  6678. WHEN 8 THEN
  6679. SET TdayFlag = 'pay_amount_day9';
  6680. WHEN 9 THEN
  6681. SET TdayFlag = 'pay_amount_day10';
  6682. WHEN 10 THEN
  6683. SET TdayFlag = 'pay_amount_day11';
  6684. WHEN 11 THEN
  6685. SET TdayFlag = 'pay_amount_day12';
  6686. WHEN 12 THEN
  6687. SET TdayFlag = 'pay_amount_day13';
  6688. WHEN 13 THEN
  6689. SET TdayFlag = 'pay_amount_day14';
  6690. WHEN 14 THEN
  6691. SET TdayFlag = 'pay_amount_day15';
  6692. WHEN 20 THEN
  6693. SET TdayFlag = 'pay_amount_day21';
  6694. WHEN 29 THEN
  6695. SET TdayFlag = 'pay_amount_day30';
  6696. WHEN 59 THEN
  6697. SET TdayFlag = 'pay_amount_day60';
  6698. END CASE;
  6699. SET Tdate = FROM_UNIXTIME(Tregtime,'%Y-%m-%d');
  6700. SET @sqlstr=CONCAT('update h_day_agent SET ',TdayFlag,'=',Tuserpay,' WHERE date=',CONCAT('\'',Tdate,'\''), ' AND agent_id=',Tagentid);
  6701. PREPARE stmt FROM @sqlstr;
  6702. EXECUTE stmt;
  6703. SET @sqlstr=CONCAT('update h_day SET ',TdayFlag,'=',TdayFlag,'+',Tuserpay,' WHERE date=',CONCAT('\'',Tdate,'\''));
  6704. PREPARE stmt FROM @sqlstr;
  6705. EXECUTE stmt;
  6706. DEALLOCATE PREPARE stmt;
  6707. END IF;
  6708. FETCH Tagent_cursor INTO Tregtime,Tagentid,Tregday,Tuserpay;
  6709. END WHILE;
  6710. CLOSE Tagent_cursor;
  6711. SET Tflag = 0;
  6712. END
  6713. ;;
  6714. delimiter ;
  6715. -- ----------------------------
  6716. -- Procedure structure for remain_pay_by_day_switch
  6717. -- ----------------------------
  6718. DROP PROCEDURE IF EXISTS `remain_pay_by_day_switch`;
  6719. delimiter ;;
  6720. CREATE PROCEDURE `remain_pay_by_day_switch`()
  6721. BEGIN
  6722. DECLARE Tflag INT DEFAULT 0;
  6723. DECLARE Tappid INT;
  6724. DECLARE Tdate DATE;
  6725. DECLARE Tregtime BIGINT;
  6726. DECLARE Tregday INT;
  6727. DECLARE Tagentid INT;
  6728. DECLARE Tuserpay DOUBLE(20,2);
  6729. DECLARE Tsetdate DATE DEFAULT CURDATE()-INTERVAL 1 DAY;
  6730. DECLARE Tstarttime INT;
  6731. DECLARE Tendtime INT;
  6732. DECLARE TdayFlag varchar(20);
  6733. DECLARE Tgameagent_cursor CURSOR FOR SELECT reg_time,app_id,agent_id,reg_days,SUM(user_pay) FROM `h_log_day_pay_switch_temp` WHERE reg_days in (1,2,3,4,5,6,7,8,9,10,11,12,13,14,20,29,59) GROUP BY app_id,agent_id,reg_days;
  6734. DECLARE Tagent_cursor CURSOR FOR SELECT reg_time,agent_id,reg_days,SUM(user_pay) FROM `h_log_day_pay_switch_temp` WHERE reg_days in (1,2,3,4,5,6,7,8,9,10,11,12,13,14,20,29,59) GROUP BY agent_id,reg_days;
  6735. DECLARE CONTINUE HANDLER FOR SQLSTATE '02000' SET Tflag = 1;
  6736. SET Tstarttime=unix_timestamp(Tsetdate);
  6737. SET Tendtime=Tstarttime+86400;
  6738. CREATE TABLE IF NOT EXISTS `h_log_day_pay_switch_temp` (
  6739. `id` int(11) NOT NULL AUTO_INCREMENT,
  6740. `date` date NOT NULL COMMENT '日期',
  6741. `mem_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '玩家ID',
  6742. `agent_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '归属渠道',
  6743. `app_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '游戏ID',
  6744. `reg_time` bigint(20) NOT NULL DEFAULT '0' COMMENT '玩家注册时间',
  6745. `reg_days` int(11) NOT NULL DEFAULT '0' COMMENT '注册天数',
  6746. `user_pay` DOUBLE(20,2) NOT NULL DEFAULT '0.00' COMMENT '支付金额',
  6747. PRIMARY KEY (`id`),
  6748. UNIQUE KEY `ldmt_date_mem_app_unique` (`date`,`mem_id`,`app_id`),
  6749. KEY `ldmt_agent_index` (`agent_id`),
  6750. KEY `ldmt_app_index` (`app_id`)
  6751. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='每日支付切换临时';
  6752. TRUNCATE `h_log_day_pay_switch_temp`;
  6753. ALTER TABLE `h_log_day_pay_switch_temp` DISABLE KEYS;
  6754. SET @ldmt_sql := "REPLACE INTO `h_log_day_pay_switch_temp` ( `date`, `mem_id`, `agent_id`, `app_id`, `reg_time`, `reg_days`, user_pay )
  6755. SELECT
  6756. FROM_UNIXTIME( p.create_time, '%Y-%m-%d' ) AS date,
  6757. p.mem_id AS mem_id,
  6758. p.agent_id AS agent_id,
  6759. p.app_id AS app_id,
  6760. m.create_time AS reg_time,
  6761. ( DATEDIFF(FROM_UNIXTIME( p.create_time, '%Y-%m-%d %H:%i:%S' ), FROM_UNIXTIME( m.create_time, '%Y-%m-%d %H:%i:%S' ))) AS reg_days,
  6762. SUM( p.real_amount ) AS user_pay
  6763. FROM
  6764. h_pay AS p
  6765. LEFT JOIN h_member AS m ON p.mem_id = m.id
  6766. WHERE
  6767. p.`status` = '2' AND
  6768. p.`is_switch` = '1'
  6769. AND ";
  6770. SET @ldmt_sql := concat(@ldmt_sql, ' p.create_time > ', Tstarttime, ' AND p.create_time < ', Tendtime, ' AND m.create_time < ', Tstarttime);
  6771. SET @ldmt_sql := concat(@ldmt_sql, ' GROUP BY p.mem_id');
  6772. PREPARE ldmt_sql_ex FROM @ldmt_sql;
  6773. EXECUTE ldmt_sql_ex;
  6774. ALTER TABLE h_log_day_pay_switch_temp ENABLE KEYS;
  6775. OPEN Tgameagent_cursor;
  6776. FETCH Tgameagent_cursor INTO Tregtime,Tappid,Tagentid,Tregday,Tuserpay;
  6777. WHILE Tflag<>1 DO
  6778. IF Tuserpay>0 THEN
  6779. CASE Tregday
  6780. WHEN 1 THEN
  6781. SET TdayFlag = 'pay_amount_day2';
  6782. WHEN 2 THEN
  6783. SET TdayFlag = 'pay_amount_day3';
  6784. WHEN 3 THEN
  6785. SET TdayFlag = 'pay_amount_day4';
  6786. WHEN 4 THEN
  6787. SET TdayFlag = 'pay_amount_day5';
  6788. WHEN 5 THEN
  6789. SET TdayFlag = 'pay_amount_day6';
  6790. WHEN 6 THEN
  6791. SET TdayFlag = 'pay_amount_day7';
  6792. WHEN 7 THEN
  6793. SET TdayFlag = 'pay_amount_day8';
  6794. WHEN 8 THEN
  6795. SET TdayFlag = 'pay_amount_day9';
  6796. WHEN 9 THEN
  6797. SET TdayFlag = 'pay_amount_day10';
  6798. WHEN 10 THEN
  6799. SET TdayFlag = 'pay_amount_day11';
  6800. WHEN 11 THEN
  6801. SET TdayFlag = 'pay_amount_day12';
  6802. WHEN 12 THEN
  6803. SET TdayFlag = 'pay_amount_day13';
  6804. WHEN 13 THEN
  6805. SET TdayFlag = 'pay_amount_day14';
  6806. WHEN 14 THEN
  6807. SET TdayFlag = 'pay_amount_day15';
  6808. WHEN 20 THEN
  6809. SET TdayFlag = 'pay_amount_day21';
  6810. WHEN 29 THEN
  6811. SET TdayFlag = 'pay_amount_day30';
  6812. WHEN 59 THEN
  6813. SET TdayFlag = 'pay_amount_day60';
  6814. END CASE;
  6815. SET Tdate = FROM_UNIXTIME(Tregtime,'%Y-%m-%d');
  6816. SET @sqlstr=CONCAT('update h_dga_switch SET ',TdayFlag,'=',Tuserpay,' WHERE date=',CONCAT('\'',Tdate,'\''), ' AND agent_id=',Tagentid,' AND app_id=',Tappid);
  6817. PREPARE stmt FROM @sqlstr;
  6818. EXECUTE stmt;
  6819. SET @sqlstr=CONCAT('update h_day_game_switch SET ',TdayFlag,'=',TdayFlag,'+',Tuserpay,' WHERE date=',CONCAT('\'',Tdate,'\''), ' AND app_id=',Tappid);
  6820. PREPARE stmt FROM @sqlstr;
  6821. EXECUTE stmt;
  6822. DEALLOCATE PREPARE stmt;
  6823. END IF;
  6824. FETCH Tgameagent_cursor INTO Tregtime,Tappid,Tagentid,Tregday,Tuserpay;
  6825. END WHILE;
  6826. CLOSE Tgameagent_cursor;
  6827. SET Tflag = 0;
  6828. OPEN Tagent_cursor;
  6829. FETCH Tagent_cursor INTO Tregtime,Tagentid,Tregday,Tuserpay;
  6830. WHILE Tflag<>1 DO
  6831. IF Tuserpay>0 THEN
  6832. CASE Tregday
  6833. WHEN 1 THEN
  6834. SET TdayFlag = 'pay_amount_day2';
  6835. WHEN 2 THEN
  6836. SET TdayFlag = 'pay_amount_day3';
  6837. WHEN 3 THEN
  6838. SET TdayFlag = 'pay_amount_day4';
  6839. WHEN 4 THEN
  6840. SET TdayFlag = 'pay_amount_day5';
  6841. WHEN 5 THEN
  6842. SET TdayFlag = 'pay_amount_day6';
  6843. WHEN 6 THEN
  6844. SET TdayFlag = 'pay_amount_day7';
  6845. WHEN 7 THEN
  6846. SET TdayFlag = 'pay_amount_day8';
  6847. WHEN 8 THEN
  6848. SET TdayFlag = 'pay_amount_day9';
  6849. WHEN 9 THEN
  6850. SET TdayFlag = 'pay_amount_day10';
  6851. WHEN 10 THEN
  6852. SET TdayFlag = 'pay_amount_day11';
  6853. WHEN 11 THEN
  6854. SET TdayFlag = 'pay_amount_day12';
  6855. WHEN 12 THEN
  6856. SET TdayFlag = 'pay_amount_day13';
  6857. WHEN 13 THEN
  6858. SET TdayFlag = 'pay_amount_day14';
  6859. WHEN 14 THEN
  6860. SET TdayFlag = 'pay_amount_day15';
  6861. WHEN 20 THEN
  6862. SET TdayFlag = 'pay_amount_day21';
  6863. WHEN 29 THEN
  6864. SET TdayFlag = 'pay_amount_day30';
  6865. WHEN 59 THEN
  6866. SET TdayFlag = 'pay_amount_day60';
  6867. END CASE;
  6868. SET Tdate = FROM_UNIXTIME(Tregtime,'%Y-%m-%d');
  6869. SET @sqlstr=CONCAT('update h_day_agent_switch SET ',TdayFlag,'=',Tuserpay,' WHERE date=',CONCAT('\'',Tdate,'\''), ' AND agent_id=',Tagentid);
  6870. PREPARE stmt FROM @sqlstr;
  6871. EXECUTE stmt;
  6872. SET @sqlstr=CONCAT('update h_day_switch SET ',TdayFlag,'=',TdayFlag,'+',Tuserpay,' WHERE date=',CONCAT('\'',Tdate,'\''));
  6873. PREPARE stmt FROM @sqlstr;
  6874. EXECUTE stmt;
  6875. DEALLOCATE PREPARE stmt;
  6876. END IF;
  6877. FETCH Tagent_cursor INTO Tregtime,Tagentid,Tregday,Tuserpay;
  6878. END WHILE;
  6879. CLOSE Tagent_cursor;
  6880. SET Tflag = 0;
  6881. END
  6882. ;;
  6883. delimiter ;
  6884. -- ----------------------------
  6885. -- Procedure structure for remain_user_by_day
  6886. -- ----------------------------
  6887. DROP PROCEDURE IF EXISTS `remain_user_by_day`;
  6888. delimiter ;;
  6889. CREATE PROCEDURE `remain_user_by_day`()
  6890. BEGIN
  6891. DECLARE Tflag INT DEFAULT 0;
  6892. DECLARE Tappid INT;
  6893. DECLARE Tdate DATE;
  6894. DECLARE Tregday INT;
  6895. DECLARE Tagentid INT;
  6896. DECLARE Tregcnt INT;
  6897. DECLARE Tregpaycnt INT;
  6898. DECLARE Tordercnt INT;
  6899. DECLARE Tcnt INT;
  6900. DECLARE Tregtime BIGINT;
  6901. DECLARE Tsummoney DOUBLE(20,2);
  6902. DECLARE Tsharemoney DOUBLE(20,2);
  6903. DECLARE Tratetype INT;
  6904. DECLARE Tmoney1 DOUBLE(20,2);
  6905. DECLARE Tmoney2 DOUBLE(20,2);
  6906. DECLARE Tmoney3 DOUBLE(20,2);
  6907. DECLARE Tmoney4 DOUBLE(20,2);
  6908. DECLARE Tmoney5 DOUBLE(20,2);
  6909. DECLARE Tmoney6 DOUBLE(20,2);
  6910. DECLARE Tmoney7 DOUBLE(20,2);
  6911. DECLARE Tmoney8 DOUBLE(20,2);
  6912. DECLARE Tagentrate DOUBLE(5,4);
  6913. DECLARE Trate1 DOUBLE(5,4);
  6914. DECLARE Trate2 DOUBLE(5,4);
  6915. DECLARE Trate3 DOUBLE(5,4);
  6916. DECLARE Trate4 DOUBLE(5,4);
  6917. DECLARE Trate5 DOUBLE(5,4);
  6918. DECLARE Trate6 DOUBLE(5,4);
  6919. DECLARE Trate7 DOUBLE(5,4);
  6920. DECLARE Trate8 DOUBLE(5,4);
  6921. DECLARE Tusercnt INT;
  6922. DECLARE Tsetdate DATE DEFAULT CURDATE()-INTERVAL 1 DAY;
  6923. DECLARE Tstarttime INT;
  6924. DECLARE Tendtime INT;
  6925. DECLARE TdayFlag varchar(20);
  6926. DECLARE Tagcursor CURSOR FOR SELECT reg_time,app_id,agent_id,reg_days,COUNT(DISTINCT(CASE WHEN `auth_cnt`>0 THEN `mem_id` END)) AS `user_cnt` FROM `h_log_day_mem_temp` WHERE reg_days in (1,2,3,4,5,6,7,8,9,10,11,12,13,14,20,29,59) GROUP BY app_id,agent_id,reg_days;
  6927. DECLARE Tacursor CURSOR FOR SELECT reg_time,agent_id,reg_days,COUNT(CASE WHEN `auth_cnt`>0 THEN `mem_id` END) AS `user_cnt` FROM `h_log_day_mem_temp` WHERE reg_days in (1,2,3,4,5,6,7,8,9,10,11,12,13,14,20,29,59) GROUP BY agent_id,reg_days;
  6928. DECLARE CONTINUE HANDLER FOR SQLSTATE '02000' SET Tflag = 1;
  6929. SET Tstarttime=unix_timestamp(Tsetdate);
  6930. SET Tendtime=Tstarttime+86400;
  6931. SET @Ttable = CONCAT('h_log_day_mem_',date_format(Tsetdate,'%Y%m') );
  6932. CREATE TABLE IF NOT EXISTS `h_log_day_mem_temp` (
  6933. `id` int(11) NOT NULL AUTO_INCREMENT,
  6934. `date` date NOT NULL COMMENT '日期',
  6935. `mem_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '玩家ID',
  6936. `agent_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '归属渠道',
  6937. `app_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '游戏ID',
  6938. `reg_time` bigint(20) NOT NULL DEFAULT '0' COMMENT '玩家注册时间',
  6939. `reg_days` int(11) NOT NULL DEFAULT '0' COMMENT '注册天数',
  6940. `role_days` int(11) NOT NULL DEFAULT '0' COMMENT '创角天数',
  6941. `device_id` varchar(64) NOT NULL DEFAULT '' COMMENT '手机设备码',
  6942. `device_cnt` int(11) NOT NULL DEFAULT '1' COMMENT '登陆的设备个数',
  6943. `login_cnt` int(11) NOT NULL DEFAULT '1' COMMENT '登陆次数',
  6944. `sum_money` double(12,2) NOT NULL DEFAULT '0.00' COMMENT '累计充值',
  6945. `sum_real_money` double(12,2) NOT NULL DEFAULT '0.00' COMMENT '自然流水金额',
  6946. `first_pay_time` bigint(20) NOT NULL DEFAULT '0' COMMENT '第一笔充值时间',
  6947. `last_pay_time` bigint(20) NOT NULL DEFAULT '0' COMMENT '最近充值时间',
  6948. `last_money` double(12,2) NOT NULL DEFAULT '0.00' COMMENT '最近充值金额',
  6949. `order_cnt` int(20) unsigned NOT NULL DEFAULT '0' COMMENT '订单数量',
  6950. `order_suc_cnt` int(20) unsigned NOT NULL DEFAULT '0' COMMENT '支付成功订单数量',
  6951. `last_login_ip` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '玩家最近登陆ip',
  6952. `auth_cnt` int(11) NOT NULL DEFAULT '0' COMMENT '授权登陆次数',
  6953. PRIMARY KEY (`id`),
  6954. UNIQUE KEY `ldmt_date_mem_app_unique` (`date`,`mem_id`,`app_id`),
  6955. KEY `ldmt_ip_index` (`last_login_ip`),
  6956. KEY `ldmt_agent_index` (`agent_id`),
  6957. KEY `ldmt_app_index` (`app_id`)
  6958. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='玩家每日临时';
  6959. TRUNCATE `h_log_day_mem_temp`;
  6960. ALTER TABLE `h_log_day_mem_temp` DISABLE KEYS;
  6961. SET @ldmt_sql = "REPLACE INTO `h_log_day_mem_temp` (`date`,`mem_id`,`agent_id`,`app_id`,`reg_time`,`reg_days`,`role_days`,`device_id`,`device_cnt`,`login_cnt`,`sum_money`,`sum_real_money`,`first_pay_time`,`last_pay_time`,`last_money`,`order_cnt`,`order_suc_cnt`,`last_login_ip`,`auth_cnt`)SELECT`date`,`mem_id`,`agent_id`,`app_id`,`reg_time`,`reg_days`,`role_days`,`device_id`,`device_cnt`,`login_cnt`,`sum_money`,`sum_real_money`,`first_pay_time`,`last_pay_time`,`last_money`,`order_cnt`,`order_suc_cnt`,`last_login_ip`,`auth_cnt`";
  6962. SET @ldmt_sql = concat(@ldmt_sql, ' FROM ',@Ttable,' where `date`=\'',Tsetdate,'\'');
  6963. PREPARE ldmt_sql_ex FROM @ldmt_sql;
  6964. EXECUTE ldmt_sql_ex;
  6965. ALTER TABLE h_log_day_mem_temp ENABLE KEYS;
  6966. ALTER TABLE h_day_game_agent DISABLE KEYS;
  6967. REPLACE INTO `h_day_game_agent`
  6968. (
  6969. `date`,
  6970. `app_id`,
  6971. `agent_id`,
  6972. `history_user_cnt`,
  6973. `active_cnt`,
  6974. `today_cnt`,
  6975. `click_cnt`,
  6976. `page_down_cnt`,
  6977. `down_cnt`,
  6978. `real_down_cnt`,
  6979. `user_cnt`,
  6980. `ip_cnt`,
  6981. `reg_cnt`,
  6982. `reg_device_cnt`,
  6983. `reg_ip_cnt`,
  6984. `pay_user_cnt`,
  6985. `first_pay_user_cnt`,
  6986. `order_cnt`,
  6987. `fail_order_cnt`,
  6988. `un_order_cnt`,
  6989. `reg_order_cnt`,
  6990. `reg_pay_cnt`,
  6991. `sum_money`,
  6992. `sum_real_money`,
  6993. `share_money`,
  6994. `first_pay_money`,
  6995. `first_pay_sum_money`,
  6996. `reg_sum_money`,
  6997. `reg_real_sum_money`
  6998. )
  6999. SELECT
  7000. `date`,
  7001. `app_id`,
  7002. `agent_id`,
  7003. 0,
  7004. COUNT(DISTINCT `mem_id`) AS `active_cnt`,
  7005. COUNT(DISTINCT(CASE WHEN `reg_days`=0 THEN `mem_id` END)) AS `today_cnt`,
  7006. SUM(`login_cnt`),
  7007. 0,
  7008. 0,
  7009. 0,
  7010. COUNT(DISTINCT(CASE WHEN `auth_cnt`>0 THEN `mem_id` END)) AS `user_cnt`,
  7011. COUNT(DISTINCT `last_login_ip`) AS `ip_cnt`,
  7012. COUNT(DISTINCT(CASE WHEN (`reg_days`=0 AND `auth_cnt`>0) OR (`reg_days`>0 AND `auth_cnt`>0 AND `role_days` = 0) THEN `mem_id` END)) AS `reg_cnt` ,
  7013. COUNT(DISTINCT(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `device_id` END)) AS `reg_device_cnt` ,
  7014. COUNT(DISTINCT(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `last_login_ip` END)) AS `reg_ip_cnt` ,
  7015. COUNT(DISTINCT(CASE WHEN `sum_money`>0 THEN `mem_id` END)) AS `pay_user_cnt`,
  7016. COUNT(DISTINCT(CASE WHEN `first_pay_time`>0 THEN `mem_id` END)) AS `first_pay_user_cnt`,
  7017. SUM(`order_suc_cnt`),
  7018. 0,
  7019. SUM(`order_cnt`-`order_suc_cnt`),
  7020. SUM(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `order_suc_cnt` ELSE 0 END) AS `reg_order_cnt`,
  7021. COUNT(DISTINCT(CASE WHEN `reg_days`=0 AND `sum_money`>0 THEN `mem_id` END)) AS `reg_pay_cnt`,
  7022. SUM(`sum_money`),
  7023. SUM(`sum_real_money`),
  7024. 0,
  7025. 0,
  7026. 0,
  7027. SUM(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `sum_money` ELSE 0.00 END) AS `reg_sum_money` ,
  7028. SUM(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `sum_real_money` ELSE 0.00 END) AS `reg_real_sum_money`
  7029. FROM h_log_day_mem_temp
  7030. GROUP BY agent_id, app_id;
  7031. ALTER TABLE h_day_game_agent ENABLE KEYS;
  7032. ALTER TABLE h_day_agent DISABLE KEYS;
  7033. REPLACE INTO `h_day_agent`
  7034. (
  7035. `date`,
  7036. `agent_id`,
  7037. `history_user_cnt`,
  7038. `active_cnt`,
  7039. `today_cnt`,
  7040. `click_cnt`,
  7041. `page_down_cnt`,
  7042. `down_cnt`,
  7043. `real_down_cnt`,
  7044. `user_cnt`,
  7045. `ip_cnt`,
  7046. `reg_cnt`,
  7047. `reg_device_cnt`,
  7048. `reg_ip_cnt`,
  7049. `pay_user_cnt`,
  7050. `first_pay_user_cnt`,
  7051. `order_cnt`,
  7052. `fail_order_cnt`,
  7053. `un_order_cnt`,
  7054. `reg_order_cnt`,
  7055. `reg_pay_cnt`,
  7056. `sum_money`,
  7057. `sum_real_money`,
  7058. `share_money`,
  7059. `first_pay_money`,
  7060. `first_pay_sum_money`,
  7061. `reg_sum_money`,
  7062. `reg_real_sum_money`
  7063. )
  7064. SELECT
  7065. `date`,
  7066. `agent_id`,
  7067. 0,
  7068. COUNT(DISTINCT `mem_id`) AS `active_cnt`,
  7069. COUNT(DISTINCT(CASE WHEN `reg_days`=0 THEN `mem_id` END)) AS `today_cnt`,
  7070. SUM(`login_cnt`),
  7071. 0,
  7072. 0,
  7073. 0,
  7074. COUNT(DISTINCT(CASE WHEN `auth_cnt`>0 THEN `mem_id` END)) AS `user_cnt`,
  7075. COUNT(DISTINCT `last_login_ip`) AS `ip_cnt`,
  7076. COUNT(DISTINCT(CASE WHEN (`reg_days`=0 AND `auth_cnt`>0) OR (`reg_days`>0 AND `auth_cnt`>0 AND `role_days` = 0) THEN `mem_id` END)) AS `reg_cnt` ,
  7077. COUNT(DISTINCT(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `device_id` END)) AS `reg_device_cnt` ,
  7078. COUNT(DISTINCT(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `last_login_ip` END)) AS `reg_ip_cnt` ,
  7079. COUNT(DISTINCT(CASE WHEN `sum_money`>0 THEN `mem_id` END)) AS `pay_user_cnt`,
  7080. COUNT(DISTINCT(CASE WHEN `first_pay_time`>0 THEN `mem_id` END)) AS `first_pay_user_cnt`,
  7081. SUM(`order_suc_cnt`),
  7082. 0,
  7083. SUM(`order_cnt`-`order_suc_cnt`),
  7084. SUM(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `order_suc_cnt` ELSE 0 END) AS `reg_order_cnt`,
  7085. COUNT(DISTINCT(CASE WHEN `reg_days`=0 AND `sum_money`>0 THEN `mem_id` END)) AS `reg_pay_cnt`,
  7086. SUM(`sum_money`),
  7087. SUM(`sum_real_money`),
  7088. 0,
  7089. 0,
  7090. 0,
  7091. SUM(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `sum_money` ELSE 0.00 END) AS `reg_sum_money` ,
  7092. SUM(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `sum_real_money` ELSE 0.00 END) AS `reg_real_sum_money`
  7093. FROM h_log_day_mem_temp
  7094. GROUP BY agent_id;
  7095. ALTER TABLE h_day_agent ENABLE KEYS;
  7096. ALTER TABLE h_day_game DISABLE KEYS;
  7097. REPLACE INTO `h_day_game`
  7098. (
  7099. `date`,
  7100. `app_id`,
  7101. `history_user_cnt`,
  7102. `active_cnt`,
  7103. `today_cnt`,
  7104. `click_cnt`,
  7105. `page_down_cnt`,
  7106. `down_cnt`,
  7107. `real_down_cnt`,
  7108. `user_cnt`,
  7109. `ip_cnt`,
  7110. `reg_cnt`,
  7111. `reg_device_cnt`,
  7112. `reg_ip_cnt`,
  7113. `pay_user_cnt`,
  7114. `first_pay_user_cnt`,
  7115. `order_cnt`,
  7116. `fail_order_cnt`,
  7117. `un_order_cnt`,
  7118. `reg_order_cnt`,
  7119. `reg_pay_cnt`,
  7120. `sum_money`,
  7121. `sum_real_money`,
  7122. `share_money`,
  7123. `first_pay_money`,
  7124. `first_pay_sum_money`,
  7125. `reg_sum_money`,
  7126. `reg_real_sum_money`
  7127. )
  7128. SELECT
  7129. `date`,
  7130. `app_id`,
  7131. 0,
  7132. COUNT(DISTINCT `mem_id`) AS `active_cnt`,
  7133. COUNT(DISTINCT(CASE WHEN `reg_days`=0 THEN `mem_id` END)) AS `today_cnt`,
  7134. SUM(`login_cnt`),
  7135. 0,
  7136. 0,
  7137. 0,
  7138. COUNT(DISTINCT(CASE WHEN `auth_cnt`>0 THEN `mem_id` END)) AS `user_cnt`,
  7139. COUNT(DISTINCT `last_login_ip`) AS `ip_cnt`,
  7140. COUNT(DISTINCT(CASE WHEN (`reg_days`=0 AND `auth_cnt`>0) OR (`reg_days`>0 AND `auth_cnt`>0 AND `role_days` = 0) THEN `mem_id` END)) AS `reg_cnt` ,
  7141. COUNT(DISTINCT(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `device_id` END)) AS `reg_device_cnt` ,
  7142. COUNT(DISTINCT(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `last_login_ip` END)) AS `reg_ip_cnt` ,
  7143. COUNT(DISTINCT(CASE WHEN `sum_money`>0 THEN `mem_id` END)) AS `pay_user_cnt`,
  7144. COUNT(DISTINCT(CASE WHEN `first_pay_time`>0 THEN `mem_id` END)) AS `first_pay_user_cnt`,
  7145. SUM(`order_suc_cnt`),
  7146. 0,
  7147. SUM(`order_cnt`-`order_suc_cnt`),
  7148. SUM(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `order_suc_cnt` ELSE 0 END) AS `reg_order_cnt`,
  7149. COUNT(DISTINCT(CASE WHEN `reg_days`=0 AND `sum_money`>0 THEN `mem_id` END)) AS `reg_pay_cnt`,
  7150. SUM(`sum_money`),
  7151. SUM(`sum_real_money`),
  7152. 0,
  7153. 0,
  7154. 0,
  7155. SUM(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `sum_money` ELSE 0.00 END) AS `reg_sum_money` ,
  7156. SUM(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `sum_real_money` ELSE 0.00 END) AS `reg_real_sum_money`
  7157. FROM h_log_day_mem_temp
  7158. GROUP BY app_id;
  7159. ALTER TABLE h_day_game ENABLE KEYS;
  7160. ALTER TABLE h_day DISABLE KEYS;
  7161. REPLACE INTO `h_day`
  7162. (
  7163. `date`,
  7164. `history_user_cnt`,
  7165. `active_cnt`,
  7166. `today_cnt`,
  7167. `click_cnt`,
  7168. `page_down_cnt`,
  7169. `down_cnt`,
  7170. `real_down_cnt`,
  7171. `user_cnt`,
  7172. `ip_cnt`,
  7173. `reg_cnt`,
  7174. `reg_device_cnt`,
  7175. `reg_ip_cnt`,
  7176. `pay_user_cnt`,
  7177. `first_pay_user_cnt`,
  7178. `order_cnt`,
  7179. `fail_order_cnt`,
  7180. `un_order_cnt`,
  7181. `reg_order_cnt`,
  7182. `reg_pay_cnt`,
  7183. `sum_money`,
  7184. `sum_real_money`,
  7185. `share_money`,
  7186. `first_pay_money`,
  7187. `first_pay_sum_money`,
  7188. `reg_sum_money`,
  7189. `reg_real_sum_money`
  7190. )
  7191. SELECT
  7192. `date`,
  7193. 0,
  7194. COUNT(DISTINCT `mem_id`) AS `active_cnt`,
  7195. COUNT(DISTINCT(CASE WHEN `reg_days`=0 THEN `mem_id` END)) AS `today_cnt`,
  7196. SUM(`login_cnt`),
  7197. 0,
  7198. 0,
  7199. 0,
  7200. COUNT(DISTINCT(CASE WHEN `auth_cnt`>0 THEN `mem_id` END)) AS `user_cnt`,
  7201. COUNT(DISTINCT `last_login_ip`) AS `ip_cnt`,
  7202. COUNT(DISTINCT(CASE WHEN (`reg_days`=0 AND `auth_cnt`>0) OR (`reg_days`>0 AND `auth_cnt`>0 AND `role_days` = 0) THEN `mem_id` END)) AS `reg_cnt` ,
  7203. COUNT(DISTINCT(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `device_id` END)) AS `reg_device_cnt` ,
  7204. COUNT(DISTINCT(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `last_login_ip` END)) AS `reg_ip_cnt` ,
  7205. COUNT(DISTINCT(CASE WHEN `sum_money`>0 THEN `mem_id` END)) AS `pay_user_cnt`,
  7206. COUNT(DISTINCT(CASE WHEN `first_pay_time`>0 THEN `mem_id` END)) AS `first_pay_user_cnt`,
  7207. SUM(`order_suc_cnt`),
  7208. 0,
  7209. SUM(`order_cnt`-`order_suc_cnt`),
  7210. SUM(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `order_suc_cnt` ELSE 0 END) AS `reg_order_cnt`,
  7211. COUNT(DISTINCT(CASE WHEN `reg_days`=0 AND `sum_money`>0 THEN `mem_id` END)) AS `reg_pay_cnt`,
  7212. SUM(`sum_money`),
  7213. SUM(`sum_real_money`),
  7214. 0,
  7215. 0,
  7216. 0,
  7217. SUM(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `sum_money` ELSE 0.00 END) AS `reg_sum_money` ,
  7218. SUM(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `sum_real_money` ELSE 0.00 END) AS `reg_real_sum_money`
  7219. FROM h_log_day_mem_temp;
  7220. ALTER TABLE h_day ENABLE KEYS;
  7221. OPEN Tagcursor;
  7222. FETCH Tagcursor INTO Tregtime,Tappid,Tagentid,Tregday,Tusercnt;
  7223. WHILE Tflag<>1 DO
  7224. IF Tusercnt>0 THEN
  7225. CASE Tregday
  7226. WHEN 1 THEN
  7227. SET TdayFlag = 'day2';
  7228. WHEN 2 THEN
  7229. SET TdayFlag = 'day3';
  7230. WHEN 3 THEN
  7231. SET TdayFlag = 'day4';
  7232. WHEN 4 THEN
  7233. SET TdayFlag = 'day5';
  7234. WHEN 5 THEN
  7235. SET TdayFlag = 'day6';
  7236. WHEN 6 THEN
  7237. SET TdayFlag = 'day7';
  7238. WHEN 7 THEN
  7239. SET TdayFlag = 'day8';
  7240. WHEN 8 THEN
  7241. SET TdayFlag = 'day9';
  7242. WHEN 9 THEN
  7243. SET TdayFlag = 'day10';
  7244. WHEN 10 THEN
  7245. SET TdayFlag = 'day11';
  7246. WHEN 11 THEN
  7247. SET TdayFlag = 'day12';
  7248. WHEN 12 THEN
  7249. SET TdayFlag = 'day13';
  7250. WHEN 13 THEN
  7251. SET TdayFlag = 'day14';
  7252. WHEN 14 THEN
  7253. SET TdayFlag = 'day15';
  7254. WHEN 20 THEN
  7255. SET TdayFlag = 'day21';
  7256. WHEN 29 THEN
  7257. SET TdayFlag = 'day30';
  7258. WHEN 59 THEN
  7259. SET TdayFlag = 'day60';
  7260. END CASE;
  7261. SET Tdate = FROM_UNIXTIME(Tregtime,'%Y-%m-%d');
  7262. SET @sqlstr=CONCAT('update h_day_game_agent SET ',TdayFlag,'=',Tusercnt,' WHERE date=',CONCAT('\'',Tdate,'\''), ' AND agent_id=',Tagentid,' AND app_id=',Tappid);
  7263. PREPARE stmt FROM @sqlstr;
  7264. EXECUTE stmt;
  7265. SET @sqlstr=CONCAT('update h_day_game SET ',TdayFlag,'=',TdayFlag,'+',Tusercnt,' WHERE date=',CONCAT('\'',Tdate,'\''), ' AND app_id=',Tappid);
  7266. PREPARE stmt FROM @sqlstr;
  7267. EXECUTE stmt;
  7268. DEALLOCATE PREPARE stmt;
  7269. END IF;
  7270. FETCH Tagcursor INTO Tregtime,Tappid,Tagentid,Tregday,Tusercnt;
  7271. END WHILE;
  7272. CLOSE Tagcursor;
  7273. SET Tflag = 0;
  7274. OPEN Tacursor;
  7275. FETCH Tacursor INTO Tregtime,Tagentid,Tregday,Tusercnt;
  7276. WHILE Tflag<>1 DO
  7277. IF Tusercnt>0 THEN
  7278. CASE Tregday
  7279. WHEN 1 THEN
  7280. SET TdayFlag = 'day2';
  7281. WHEN 2 THEN
  7282. SET TdayFlag = 'day3';
  7283. WHEN 3 THEN
  7284. SET TdayFlag = 'day4';
  7285. WHEN 4 THEN
  7286. SET TdayFlag = 'day5';
  7287. WHEN 5 THEN
  7288. SET TdayFlag = 'day6';
  7289. WHEN 6 THEN
  7290. SET TdayFlag = 'day7';
  7291. WHEN 7 THEN
  7292. SET TdayFlag = 'day8';
  7293. WHEN 8 THEN
  7294. SET TdayFlag = 'day9';
  7295. WHEN 9 THEN
  7296. SET TdayFlag = 'day10';
  7297. WHEN 10 THEN
  7298. SET TdayFlag = 'day11';
  7299. WHEN 11 THEN
  7300. SET TdayFlag = 'day12';
  7301. WHEN 12 THEN
  7302. SET TdayFlag = 'day13';
  7303. WHEN 13 THEN
  7304. SET TdayFlag = 'day14';
  7305. WHEN 14 THEN
  7306. SET TdayFlag = 'day15';
  7307. WHEN 20 THEN
  7308. SET TdayFlag = 'day21';
  7309. WHEN 29 THEN
  7310. SET TdayFlag = 'day30';
  7311. WHEN 59 THEN
  7312. SET TdayFlag = 'day60';
  7313. END CASE;
  7314. SET Tdate = FROM_UNIXTIME(Tregtime,'%Y-%m-%d');
  7315. SET @sqlstr=CONCAT('update h_day_agent SET ',TdayFlag,'=',Tusercnt,' WHERE date=',CONCAT('\'',Tdate,'\''), ' AND agent_id=',Tagentid);
  7316. PREPARE stmt FROM @sqlstr;
  7317. EXECUTE stmt;
  7318. SET @sqlstr=CONCAT('update h_day SET ',TdayFlag,'=',TdayFlag,'+',Tusercnt,' WHERE date=',CONCAT('\'',Tdate,'\''));
  7319. PREPARE stmt FROM @sqlstr;
  7320. EXECUTE stmt;
  7321. DEALLOCATE PREPARE stmt;
  7322. END IF;
  7323. FETCH Tacursor INTO Tregtime,Tagentid,Tregday,Tusercnt;
  7324. END WHILE;
  7325. CLOSE Tacursor;
  7326. SET Tflag = 0;
  7327. END
  7328. ;;
  7329. delimiter ;
  7330. -- ----------------------------
  7331. -- Procedure structure for remain_user_by_day_switch
  7332. -- ----------------------------
  7333. DROP PROCEDURE IF EXISTS `remain_user_by_day_switch`;
  7334. delimiter ;;
  7335. CREATE PROCEDURE `remain_user_by_day_switch`()
  7336. BEGIN
  7337. DECLARE Tflag INT DEFAULT 0;
  7338. DECLARE Tappid INT;
  7339. DECLARE Tdate DATE;
  7340. DECLARE Tregday INT;
  7341. DECLARE Tagentid INT;
  7342. DECLARE Tregcnt INT;
  7343. DECLARE Tregpaycnt INT;
  7344. DECLARE Tordercnt INT;
  7345. DECLARE Tcnt INT;
  7346. DECLARE Tregtime BIGINT;
  7347. DECLARE Tsummoney DOUBLE(20,2);
  7348. DECLARE Tsharemoney DOUBLE(20,2);
  7349. DECLARE Tratetype INT;
  7350. DECLARE Tmoney1 DOUBLE(20,2);
  7351. DECLARE Tmoney2 DOUBLE(20,2);
  7352. DECLARE Tmoney3 DOUBLE(20,2);
  7353. DECLARE Tmoney4 DOUBLE(20,2);
  7354. DECLARE Tmoney5 DOUBLE(20,2);
  7355. DECLARE Tmoney6 DOUBLE(20,2);
  7356. DECLARE Tmoney7 DOUBLE(20,2);
  7357. DECLARE Tmoney8 DOUBLE(20,2);
  7358. DECLARE Tagentrate DOUBLE(5,4);
  7359. DECLARE Trate1 DOUBLE(5,4);
  7360. DECLARE Trate2 DOUBLE(5,4);
  7361. DECLARE Trate3 DOUBLE(5,4);
  7362. DECLARE Trate4 DOUBLE(5,4);
  7363. DECLARE Trate5 DOUBLE(5,4);
  7364. DECLARE Trate6 DOUBLE(5,4);
  7365. DECLARE Trate7 DOUBLE(5,4);
  7366. DECLARE Trate8 DOUBLE(5,4);
  7367. DECLARE Tusercnt INT;
  7368. DECLARE Tsetdate DATE DEFAULT CURDATE()-INTERVAL 1 DAY;
  7369. DECLARE Tstarttime INT;
  7370. DECLARE Tendtime INT;
  7371. DECLARE TdayFlag varchar(20);
  7372. DECLARE Tagcursor CURSOR FOR SELECT reg_time,app_id,agent_id,reg_days,COUNT(DISTINCT(CASE WHEN `auth_cnt`>0 THEN `mem_id` END)) AS `user_cnt` FROM `h_ldm_switch_temp` WHERE reg_days in (1,2,3,4,5,6,7,8,9,10,11,12,13,14,20,29,59) GROUP BY app_id,agent_id,reg_days;
  7373. DECLARE Tacursor CURSOR FOR SELECT reg_time,agent_id,reg_days,COUNT(CASE WHEN `auth_cnt`>0 THEN `mem_id` END) AS `user_cnt` FROM `h_ldm_switch_temp` WHERE reg_days in (1,2,3,4,5,6,7,8,9,10,11,12,13,14,20,29,59) GROUP BY agent_id,reg_days;
  7374. DECLARE CONTINUE HANDLER FOR SQLSTATE '02000' SET Tflag = 1;
  7375. SET Tstarttime=unix_timestamp(Tsetdate);
  7376. SET Tendtime=Tstarttime+86400;
  7377. SET @Ttable = CONCAT('h_ldm_switch_',date_format(Tsetdate,'%Y%m') );
  7378. CREATE TABLE IF NOT EXISTS `h_ldm_switch_temp` (
  7379. `id` int(11) NOT NULL AUTO_INCREMENT,
  7380. `date` date NOT NULL COMMENT '日期',
  7381. `mem_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '玩家ID',
  7382. `agent_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '归属渠道',
  7383. `app_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '游戏ID',
  7384. `reg_time` bigint(20) NOT NULL DEFAULT '0' COMMENT '玩家注册时间',
  7385. `reg_days` int(11) NOT NULL DEFAULT '0' COMMENT '注册天数',
  7386. `role_days` int(11) NOT NULL DEFAULT '0' COMMENT '创角天数',
  7387. `device_id` varchar(64) NOT NULL DEFAULT '' COMMENT '手机设备码',
  7388. `device_cnt` int(11) NOT NULL DEFAULT '1' COMMENT '登陆的设备个数',
  7389. `login_cnt` int(11) NOT NULL DEFAULT '1' COMMENT '登陆次数',
  7390. `sum_money` double(12,2) NOT NULL DEFAULT '0.00' COMMENT '累计充值',
  7391. `sum_real_money` double(12,2) NOT NULL DEFAULT '0.00' COMMENT '自然流水金额',
  7392. `first_pay_time` bigint(20) NOT NULL DEFAULT '0' COMMENT '第一笔充值时间',
  7393. `last_pay_time` bigint(20) NOT NULL DEFAULT '0' COMMENT '最近充值时间',
  7394. `last_money` double(12,2) NOT NULL DEFAULT '0.00' COMMENT '最近充值金额',
  7395. `order_cnt` int(20) unsigned NOT NULL DEFAULT '0' COMMENT '订单数量',
  7396. `order_suc_cnt` int(20) unsigned NOT NULL DEFAULT '0' COMMENT '支付成功订单数量',
  7397. `last_login_ip` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '玩家最近登陆ip',
  7398. `auth_cnt` int(11) NOT NULL DEFAULT '0' COMMENT '授权登陆次数',
  7399. PRIMARY KEY (`id`),
  7400. UNIQUE KEY `ldmt_date_mem_app_unique` (`date`,`mem_id`,`app_id`),
  7401. KEY `ldmt_ip_index` (`last_login_ip`),
  7402. KEY `ldmt_agent_index` (`agent_id`),
  7403. KEY `ldmt_app_index` (`app_id`)
  7404. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='玩家每日临时';
  7405. TRUNCATE `h_ldm_switch_temp`;
  7406. ALTER TABLE `h_ldm_switch_temp` DISABLE KEYS;
  7407. SET @ldmt_sql = "REPLACE INTO `h_ldm_switch_temp` (`date`,`mem_id`,`agent_id`,`app_id`,`reg_time`,`reg_days`,`role_days`,`device_id`,`device_cnt`,`login_cnt`,`sum_money`,`sum_real_money`,`first_pay_time`,`last_pay_time`,`last_money`,`order_cnt`,`order_suc_cnt`,`last_login_ip`,`auth_cnt`)SELECT`date`,`mem_id`,`agent_id`,`app_id`,`reg_time`,`reg_days`,`role_days`,`device_id`,`device_cnt`,`login_cnt`,`sum_money`,`sum_real_money`,`first_pay_time`,`last_pay_time`,`last_money`,`order_cnt`,`order_suc_cnt`,`last_login_ip`,`auth_cnt`";
  7408. SET @ldmt_sql = concat(@ldmt_sql, ' FROM ',@Ttable,' where `date`=\'',Tsetdate,'\'');
  7409. PREPARE ldmt_sql_ex FROM @ldmt_sql;
  7410. EXECUTE ldmt_sql_ex;
  7411. ALTER TABLE h_ldm_switch_temp ENABLE KEYS;
  7412. ALTER TABLE h_dga_switch DISABLE KEYS;
  7413. REPLACE INTO `h_dga_switch`
  7414. (
  7415. `date`,
  7416. `app_id`,
  7417. `agent_id`,
  7418. `history_user_cnt`,
  7419. `active_cnt`,
  7420. `today_cnt`,
  7421. `click_cnt`,
  7422. `page_down_cnt`,
  7423. `down_cnt`,
  7424. `real_down_cnt`,
  7425. `user_cnt`,
  7426. `ip_cnt`,
  7427. `reg_cnt`,
  7428. `reg_device_cnt`,
  7429. `reg_ip_cnt`,
  7430. `pay_user_cnt`,
  7431. `first_pay_user_cnt`,
  7432. `order_cnt`,
  7433. `fail_order_cnt`,
  7434. `un_order_cnt`,
  7435. `reg_order_cnt`,
  7436. `reg_pay_cnt`,
  7437. `sum_money`,
  7438. `sum_real_money`,
  7439. `share_money`,
  7440. `first_pay_money`,
  7441. `first_pay_sum_money`,
  7442. `reg_sum_money`,
  7443. `reg_real_sum_money`
  7444. )
  7445. SELECT
  7446. `date`,
  7447. `app_id`,
  7448. `agent_id`,
  7449. 0,
  7450. COUNT(DISTINCT `mem_id`) AS `active_cnt`,
  7451. COUNT(DISTINCT(CASE WHEN `reg_days`=0 THEN `mem_id` END)) AS `today_cnt`,
  7452. SUM(`login_cnt`),
  7453. 0,
  7454. 0,
  7455. 0,
  7456. COUNT(DISTINCT(CASE WHEN `auth_cnt`>0 THEN `mem_id` END)) AS `user_cnt`,
  7457. COUNT(DISTINCT `last_login_ip`) AS `ip_cnt`,
  7458. COUNT(DISTINCT(CASE WHEN (`reg_days`=0 AND `auth_cnt`>0) OR (`reg_days`>0 AND `auth_cnt`>0 AND `role_days` = 0) THEN `mem_id` END)) AS `reg_cnt` ,
  7459. COUNT(DISTINCT(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `device_id` END)) AS `reg_device_cnt` ,
  7460. COUNT(DISTINCT(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `last_login_ip` END)) AS `reg_ip_cnt` ,
  7461. COUNT(DISTINCT(CASE WHEN `sum_money`>0 THEN `mem_id` END)) AS `pay_user_cnt`,
  7462. COUNT(DISTINCT(CASE WHEN `first_pay_time`>0 THEN `mem_id` END)) AS `first_pay_user_cnt`,
  7463. SUM(`order_suc_cnt`),
  7464. 0,
  7465. SUM(`order_cnt`-`order_suc_cnt`),
  7466. SUM(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `order_suc_cnt` ELSE 0 END) AS `reg_order_cnt`,
  7467. COUNT(DISTINCT(CASE WHEN `reg_days`=0 AND `sum_money`>0 THEN `mem_id` END)) AS `reg_pay_cnt`,
  7468. SUM(`sum_money`),
  7469. SUM(`sum_real_money`),
  7470. 0,
  7471. 0,
  7472. 0,
  7473. SUM(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `sum_money` ELSE 0.00 END) AS `reg_sum_money` ,
  7474. SUM(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `sum_real_money` ELSE 0.00 END) AS `reg_real_sum_money`
  7475. FROM h_ldm_switch_temp
  7476. GROUP BY agent_id, app_id;
  7477. ALTER TABLE h_dga_switch ENABLE KEYS;
  7478. ALTER TABLE h_day_agent_switch DISABLE KEYS;
  7479. REPLACE INTO `h_day_agent_switch`
  7480. (
  7481. `date`,
  7482. `agent_id`,
  7483. `history_user_cnt`,
  7484. `active_cnt`,
  7485. `today_cnt`,
  7486. `click_cnt`,
  7487. `page_down_cnt`,
  7488. `down_cnt`,
  7489. `real_down_cnt`,
  7490. `user_cnt`,
  7491. `ip_cnt`,
  7492. `reg_cnt`,
  7493. `reg_device_cnt`,
  7494. `reg_ip_cnt`,
  7495. `pay_user_cnt`,
  7496. `first_pay_user_cnt`,
  7497. `order_cnt`,
  7498. `fail_order_cnt`,
  7499. `un_order_cnt`,
  7500. `reg_order_cnt`,
  7501. `reg_pay_cnt`,
  7502. `sum_money`,
  7503. `sum_real_money`,
  7504. `share_money`,
  7505. `first_pay_money`,
  7506. `first_pay_sum_money`,
  7507. `reg_sum_money`,
  7508. `reg_real_sum_money`
  7509. )
  7510. SELECT
  7511. `date`,
  7512. `agent_id`,
  7513. 0,
  7514. COUNT(DISTINCT `mem_id`) AS `active_cnt`,
  7515. COUNT(DISTINCT(CASE WHEN `reg_days`=0 THEN `mem_id` END)) AS `today_cnt`,
  7516. SUM(`login_cnt`),
  7517. 0,
  7518. 0,
  7519. 0,
  7520. COUNT(DISTINCT(CASE WHEN `auth_cnt`>0 THEN `mem_id` END)) AS `user_cnt`,
  7521. COUNT(DISTINCT `last_login_ip`) AS `ip_cnt`,
  7522. COUNT(DISTINCT(CASE WHEN (`reg_days`=0 AND `auth_cnt`>0) OR (`reg_days`>0 AND `auth_cnt`>0 AND `role_days` = 0) THEN `mem_id` END)) AS `reg_cnt` ,
  7523. COUNT(DISTINCT(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `device_id` END)) AS `reg_device_cnt` ,
  7524. COUNT(DISTINCT(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `last_login_ip` END)) AS `reg_ip_cnt` ,
  7525. COUNT(DISTINCT(CASE WHEN `sum_money`>0 THEN `mem_id` END)) AS `pay_user_cnt`,
  7526. COUNT(DISTINCT(CASE WHEN `first_pay_time`>0 THEN `mem_id` END)) AS `first_pay_user_cnt`,
  7527. SUM(`order_suc_cnt`),
  7528. 0,
  7529. SUM(`order_cnt`-`order_suc_cnt`),
  7530. SUM(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `order_suc_cnt` ELSE 0 END) AS `reg_order_cnt`,
  7531. COUNT(DISTINCT(CASE WHEN `reg_days`=0 AND `sum_money`>0 THEN `mem_id` END)) AS `reg_pay_cnt`,
  7532. SUM(`sum_money`),
  7533. SUM(`sum_real_money`),
  7534. 0,
  7535. 0,
  7536. 0,
  7537. SUM(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `sum_money` ELSE 0.00 END) AS `reg_sum_money` ,
  7538. SUM(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `sum_real_money` ELSE 0.00 END) AS `reg_real_sum_money`
  7539. FROM h_ldm_switch_temp
  7540. GROUP BY agent_id;
  7541. ALTER TABLE h_day_agent_switch ENABLE KEYS;
  7542. ALTER TABLE h_day_game_switch DISABLE KEYS;
  7543. REPLACE INTO `h_day_game_switch`
  7544. (
  7545. `date`,
  7546. `app_id`,
  7547. `history_user_cnt`,
  7548. `active_cnt`,
  7549. `today_cnt`,
  7550. `click_cnt`,
  7551. `page_down_cnt`,
  7552. `down_cnt`,
  7553. `real_down_cnt`,
  7554. `user_cnt`,
  7555. `ip_cnt`,
  7556. `reg_cnt`,
  7557. `reg_device_cnt`,
  7558. `reg_ip_cnt`,
  7559. `pay_user_cnt`,
  7560. `first_pay_user_cnt`,
  7561. `order_cnt`,
  7562. `fail_order_cnt`,
  7563. `un_order_cnt`,
  7564. `reg_order_cnt`,
  7565. `reg_pay_cnt`,
  7566. `sum_money`,
  7567. `sum_real_money`,
  7568. `share_money`,
  7569. `first_pay_money`,
  7570. `first_pay_sum_money`,
  7571. `reg_sum_money`,
  7572. `reg_real_sum_money`
  7573. )
  7574. SELECT
  7575. `date`,
  7576. `app_id`,
  7577. 0,
  7578. COUNT(DISTINCT `mem_id`) AS `active_cnt`,
  7579. COUNT(DISTINCT(CASE WHEN `reg_days`=0 THEN `mem_id` END)) AS `today_cnt`,
  7580. SUM(`login_cnt`),
  7581. 0,
  7582. 0,
  7583. 0,
  7584. COUNT(DISTINCT(CASE WHEN `auth_cnt`>0 THEN `mem_id` END)) AS `user_cnt`,
  7585. COUNT(DISTINCT `last_login_ip`) AS `ip_cnt`,
  7586. COUNT(DISTINCT(CASE WHEN (`reg_days`=0 AND `auth_cnt`>0) OR (`reg_days`>0 AND `auth_cnt`>0 AND `role_days` = 0) THEN `mem_id` END)) AS `reg_cnt` ,
  7587. COUNT(DISTINCT(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `device_id` END)) AS `reg_device_cnt` ,
  7588. COUNT(DISTINCT(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `last_login_ip` END)) AS `reg_ip_cnt` ,
  7589. COUNT(DISTINCT(CASE WHEN `sum_money`>0 THEN `mem_id` END)) AS `pay_user_cnt`,
  7590. COUNT(DISTINCT(CASE WHEN `first_pay_time`>0 THEN `mem_id` END)) AS `first_pay_user_cnt`,
  7591. SUM(`order_suc_cnt`),
  7592. 0,
  7593. SUM(`order_cnt`-`order_suc_cnt`),
  7594. SUM(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `order_suc_cnt` ELSE 0 END) AS `reg_order_cnt`,
  7595. COUNT(DISTINCT(CASE WHEN `reg_days`=0 AND `sum_money`>0 THEN `mem_id` END)) AS `reg_pay_cnt`,
  7596. SUM(`sum_money`),
  7597. SUM(`sum_real_money`),
  7598. 0,
  7599. 0,
  7600. 0,
  7601. SUM(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `sum_money` ELSE 0.00 END) AS `reg_sum_money` ,
  7602. SUM(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `sum_real_money` ELSE 0.00 END) AS `reg_real_sum_money`
  7603. FROM h_ldm_switch_temp
  7604. GROUP BY app_id;
  7605. ALTER TABLE h_day_game_switch ENABLE KEYS;
  7606. ALTER TABLE h_day_switch DISABLE KEYS;
  7607. REPLACE INTO `h_day_switch`
  7608. (
  7609. `date`,
  7610. `history_user_cnt`,
  7611. `active_cnt`,
  7612. `today_cnt`,
  7613. `click_cnt`,
  7614. `page_down_cnt`,
  7615. `down_cnt`,
  7616. `real_down_cnt`,
  7617. `user_cnt`,
  7618. `ip_cnt`,
  7619. `reg_cnt`,
  7620. `reg_device_cnt`,
  7621. `reg_ip_cnt`,
  7622. `pay_user_cnt`,
  7623. `first_pay_user_cnt`,
  7624. `order_cnt`,
  7625. `fail_order_cnt`,
  7626. `un_order_cnt`,
  7627. `reg_order_cnt`,
  7628. `reg_pay_cnt`,
  7629. `sum_money`,
  7630. `sum_real_money`,
  7631. `share_money`,
  7632. `first_pay_money`,
  7633. `first_pay_sum_money`,
  7634. `reg_sum_money`,
  7635. `reg_real_sum_money`
  7636. )
  7637. SELECT
  7638. `date`,
  7639. 0,
  7640. COUNT(DISTINCT `mem_id`) AS `active_cnt`,
  7641. COUNT(DISTINCT(CASE WHEN `reg_days`=0 THEN `mem_id` END)) AS `today_cnt`,
  7642. SUM(`login_cnt`),
  7643. 0,
  7644. 0,
  7645. 0,
  7646. COUNT(DISTINCT(CASE WHEN `auth_cnt`>0 THEN `mem_id` END)) AS `user_cnt`,
  7647. COUNT(DISTINCT `last_login_ip`) AS `ip_cnt`,
  7648. COUNT(DISTINCT(CASE WHEN (`reg_days`=0 AND `auth_cnt`>0) OR (`reg_days`>0 AND `auth_cnt`>0 AND `role_days` = 0) THEN `mem_id` END)) AS `reg_cnt` ,
  7649. COUNT(DISTINCT(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `device_id` END)) AS `reg_device_cnt` ,
  7650. COUNT(DISTINCT(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `last_login_ip` END)) AS `reg_ip_cnt` ,
  7651. COUNT(DISTINCT(CASE WHEN `sum_money`>0 THEN `mem_id` END)) AS `pay_user_cnt`,
  7652. COUNT(DISTINCT(CASE WHEN `first_pay_time`>0 THEN `mem_id` END)) AS `first_pay_user_cnt`,
  7653. SUM(`order_suc_cnt`),
  7654. 0,
  7655. SUM(`order_cnt`-`order_suc_cnt`),
  7656. SUM(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `order_suc_cnt` ELSE 0 END) AS `reg_order_cnt`,
  7657. COUNT(DISTINCT(CASE WHEN `reg_days`=0 AND `sum_money`>0 THEN `mem_id` END)) AS `reg_pay_cnt`,
  7658. SUM(`sum_money`),
  7659. SUM(`sum_real_money`),
  7660. 0,
  7661. 0,
  7662. 0,
  7663. SUM(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `sum_money` ELSE 0.00 END) AS `reg_sum_money` ,
  7664. SUM(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `sum_real_money` ELSE 0.00 END) AS `reg_real_sum_money`
  7665. FROM h_ldm_switch_temp;
  7666. ALTER TABLE h_day_switch ENABLE KEYS;
  7667. OPEN Tagcursor;
  7668. FETCH Tagcursor INTO Tregtime,Tappid,Tagentid,Tregday,Tusercnt;
  7669. WHILE Tflag<>1 DO
  7670. IF Tusercnt>0 THEN
  7671. CASE Tregday
  7672. WHEN 1 THEN
  7673. SET TdayFlag = 'day2';
  7674. WHEN 2 THEN
  7675. SET TdayFlag = 'day3';
  7676. WHEN 3 THEN
  7677. SET TdayFlag = 'day4';
  7678. WHEN 4 THEN
  7679. SET TdayFlag = 'day5';
  7680. WHEN 5 THEN
  7681. SET TdayFlag = 'day6';
  7682. WHEN 6 THEN
  7683. SET TdayFlag = 'day7';
  7684. WHEN 7 THEN
  7685. SET TdayFlag = 'day8';
  7686. WHEN 8 THEN
  7687. SET TdayFlag = 'day9';
  7688. WHEN 9 THEN
  7689. SET TdayFlag = 'day10';
  7690. WHEN 10 THEN
  7691. SET TdayFlag = 'day11';
  7692. WHEN 11 THEN
  7693. SET TdayFlag = 'day12';
  7694. WHEN 12 THEN
  7695. SET TdayFlag = 'day13';
  7696. WHEN 13 THEN
  7697. SET TdayFlag = 'day14';
  7698. WHEN 14 THEN
  7699. SET TdayFlag = 'day15';
  7700. WHEN 20 THEN
  7701. SET TdayFlag = 'day21';
  7702. WHEN 29 THEN
  7703. SET TdayFlag = 'day30';
  7704. WHEN 59 THEN
  7705. SET TdayFlag = 'day60';
  7706. END CASE;
  7707. SET Tdate = FROM_UNIXTIME(Tregtime,'%Y-%m-%d');
  7708. SET @sqlstr=CONCAT('update h_dga_switch SET ',TdayFlag,'=',Tusercnt,' WHERE date=',CONCAT('\'',Tdate,'\''), ' AND agent_id=',Tagentid,' AND app_id=',Tappid);
  7709. PREPARE stmt FROM @sqlstr;
  7710. EXECUTE stmt;
  7711. SET @sqlstr=CONCAT('update h_day_game_switch SET ',TdayFlag,'=',TdayFlag,'+',Tusercnt,' WHERE date=',CONCAT('\'',Tdate,'\''), ' AND app_id=',Tappid);
  7712. PREPARE stmt FROM @sqlstr;
  7713. EXECUTE stmt;
  7714. DEALLOCATE PREPARE stmt;
  7715. END IF;
  7716. FETCH Tagcursor INTO Tregtime,Tappid,Tagentid,Tregday,Tusercnt;
  7717. END WHILE;
  7718. CLOSE Tagcursor;
  7719. SET Tflag = 0;
  7720. OPEN Tacursor;
  7721. FETCH Tacursor INTO Tregtime,Tagentid,Tregday,Tusercnt;
  7722. WHILE Tflag<>1 DO
  7723. IF Tusercnt>0 THEN
  7724. CASE Tregday
  7725. WHEN 1 THEN
  7726. SET TdayFlag = 'day2';
  7727. WHEN 2 THEN
  7728. SET TdayFlag = 'day3';
  7729. WHEN 3 THEN
  7730. SET TdayFlag = 'day4';
  7731. WHEN 4 THEN
  7732. SET TdayFlag = 'day5';
  7733. WHEN 5 THEN
  7734. SET TdayFlag = 'day6';
  7735. WHEN 6 THEN
  7736. SET TdayFlag = 'day7';
  7737. WHEN 7 THEN
  7738. SET TdayFlag = 'day8';
  7739. WHEN 8 THEN
  7740. SET TdayFlag = 'day9';
  7741. WHEN 9 THEN
  7742. SET TdayFlag = 'day10';
  7743. WHEN 10 THEN
  7744. SET TdayFlag = 'day11';
  7745. WHEN 11 THEN
  7746. SET TdayFlag = 'day12';
  7747. WHEN 12 THEN
  7748. SET TdayFlag = 'day13';
  7749. WHEN 13 THEN
  7750. SET TdayFlag = 'day14';
  7751. WHEN 14 THEN
  7752. SET TdayFlag = 'day15';
  7753. WHEN 20 THEN
  7754. SET TdayFlag = 'day21';
  7755. WHEN 29 THEN
  7756. SET TdayFlag = 'day30';
  7757. WHEN 59 THEN
  7758. SET TdayFlag = 'day60';
  7759. END CASE;
  7760. SET Tdate = FROM_UNIXTIME(Tregtime,'%Y-%m-%d');
  7761. SET @sqlstr=CONCAT('update h_day_agent_switch SET ',TdayFlag,'=',Tusercnt,' WHERE date=',CONCAT('\'',Tdate,'\''), ' AND agent_id=',Tagentid);
  7762. PREPARE stmt FROM @sqlstr;
  7763. EXECUTE stmt;
  7764. SET @sqlstr=CONCAT('update h_day_switch SET ',TdayFlag,'=',TdayFlag,'+',Tusercnt,' WHERE date=',CONCAT('\'',Tdate,'\''));
  7765. PREPARE stmt FROM @sqlstr;
  7766. EXECUTE stmt;
  7767. DEALLOCATE PREPARE stmt;
  7768. END IF;
  7769. FETCH Tacursor INTO Tregtime,Tagentid,Tregday,Tusercnt;
  7770. END WHILE;
  7771. CLOSE Tacursor;
  7772. SET Tflag = 0;
  7773. END
  7774. ;;
  7775. delimiter ;
  7776. -- ----------------------------
  7777. -- Procedure structure for repair_remain_user_by_day
  7778. -- ----------------------------
  7779. DROP PROCEDURE IF EXISTS `repair_remain_user_by_day`;
  7780. delimiter ;;
  7781. CREATE PROCEDURE `repair_remain_user_by_day`(iday date)
  7782. BEGIN
  7783. DECLARE Tflag INT DEFAULT 0;
  7784. DECLARE Tappid INT;
  7785. DECLARE Tdate DATE;
  7786. DECLARE Tregday INT;
  7787. DECLARE Tagentid INT;
  7788. DECLARE Tregcnt INT;
  7789. DECLARE Tregpaycnt INT;
  7790. DECLARE Tordercnt INT;
  7791. DECLARE Tcnt INT;
  7792. DECLARE Tregtime BIGINT;
  7793. DECLARE Tsummoney DOUBLE(20,2);
  7794. DECLARE Tsharemoney DOUBLE(20,2);
  7795. DECLARE Tratetype INT;
  7796. DECLARE Tmoney1 DOUBLE(20,2);
  7797. DECLARE Tmoney2 DOUBLE(20,2);
  7798. DECLARE Tmoney3 DOUBLE(20,2);
  7799. DECLARE Tmoney4 DOUBLE(20,2);
  7800. DECLARE Tmoney5 DOUBLE(20,2);
  7801. DECLARE Tmoney6 DOUBLE(20,2);
  7802. DECLARE Tmoney7 DOUBLE(20,2);
  7803. DECLARE Tmoney8 DOUBLE(20,2);
  7804. DECLARE Tagentrate DOUBLE(5,4);
  7805. DECLARE Trate1 DOUBLE(5,4);
  7806. DECLARE Trate2 DOUBLE(5,4);
  7807. DECLARE Trate3 DOUBLE(5,4);
  7808. DECLARE Trate4 DOUBLE(5,4);
  7809. DECLARE Trate5 DOUBLE(5,4);
  7810. DECLARE Trate6 DOUBLE(5,4);
  7811. DECLARE Trate7 DOUBLE(5,4);
  7812. DECLARE Trate8 DOUBLE(5,4);
  7813. DECLARE Tusercnt INT;
  7814. DECLARE Tsetdate DATE DEFAULT iday;
  7815. DECLARE Tstarttime INT;
  7816. DECLARE Tendtime INT;
  7817. DECLARE TdayFlag varchar(20);
  7818. DECLARE Tagcursor CURSOR FOR SELECT reg_time,app_id,agent_id,reg_days,COUNT(DISTINCT(CASE WHEN `auth_cnt`>0 THEN `mem_id` END)) AS `user_cnt` FROM `h_log_day_mem_temp` WHERE reg_days in (1,2,3,4,5,6,7,8,9,10,11,12,13,14,20,29,59) GROUP BY app_id,agent_id,reg_days;
  7819. DECLARE Tacursor CURSOR FOR SELECT reg_time,agent_id,reg_days,COUNT(CASE WHEN `auth_cnt`>0 THEN `mem_id` END) AS `user_cnt` FROM `h_log_day_mem_temp` WHERE reg_days in (1,2,3,4,5,6,7,8,9,10,11,12,13,14,20,29,59) GROUP BY agent_id,reg_days;
  7820. DECLARE CONTINUE HANDLER FOR SQLSTATE '02000' SET Tflag = 1;
  7821. SET Tstarttime=unix_timestamp(Tsetdate);
  7822. SET Tendtime=Tstarttime+86400;
  7823. SET @Ttable = CONCAT('h_log_day_mem_',date_format(Tsetdate,'%Y%m') );
  7824. CREATE TABLE IF NOT EXISTS `h_log_day_mem_temp` (
  7825. `id` int(11) NOT NULL AUTO_INCREMENT,
  7826. `date` date NOT NULL COMMENT '日期',
  7827. `mem_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '玩家ID',
  7828. `agent_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '归属渠道',
  7829. `app_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '游戏ID',
  7830. `reg_time` bigint(20) NOT NULL DEFAULT '0' COMMENT '玩家注册时间',
  7831. `reg_days` int(11) NOT NULL DEFAULT '0' COMMENT '注册天数',
  7832. `role_days` int(11) NOT NULL DEFAULT '0' COMMENT '创角天数',
  7833. `device_id` varchar(64) NOT NULL DEFAULT '' COMMENT '手机设备码',
  7834. `device_cnt` int(11) NOT NULL DEFAULT '1' COMMENT '登陆的设备个数',
  7835. `login_cnt` int(11) NOT NULL DEFAULT '1' COMMENT '登陆次数',
  7836. `sum_money` double(12,2) NOT NULL DEFAULT '0.00' COMMENT '累计充值',
  7837. `sum_real_money` double(12,2) NOT NULL DEFAULT '0.00' COMMENT '自然流水金额',
  7838. `first_pay_time` bigint(20) NOT NULL DEFAULT '0' COMMENT '第一笔充值时间',
  7839. `last_pay_time` bigint(20) NOT NULL DEFAULT '0' COMMENT '最近充值时间',
  7840. `last_money` double(12,2) NOT NULL DEFAULT '0.00' COMMENT '最近充值金额',
  7841. `order_cnt` int(20) unsigned NOT NULL DEFAULT '0' COMMENT '订单数量',
  7842. `order_suc_cnt` int(20) unsigned NOT NULL DEFAULT '0' COMMENT '支付成功订单数量',
  7843. `last_login_ip` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '玩家最近登陆ip',
  7844. `auth_cnt` int(11) NOT NULL DEFAULT '0' COMMENT '授权登陆次数',
  7845. PRIMARY KEY (`id`),
  7846. UNIQUE KEY `ldmt_date_mem_app_unique` (`date`,`mem_id`,`app_id`),
  7847. KEY `ldmt_ip_index` (`last_login_ip`),
  7848. KEY `ldmt_agent_index` (`agent_id`),
  7849. KEY `ldmt_app_index` (`app_id`)
  7850. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='玩家每日临时';
  7851. TRUNCATE `h_log_day_mem_temp`;
  7852. ALTER TABLE `h_log_day_mem_temp` DISABLE KEYS;
  7853. SET @ldmt_sql = "REPLACE INTO `h_log_day_mem_temp` (`date`,`mem_id`,`agent_id`,`app_id`,`reg_time`,`reg_days`,`role_days`,`device_id`,`device_cnt`,`login_cnt`,`sum_money`,`sum_real_money`,`first_pay_time`,`last_pay_time`,`last_money`,`order_cnt`,`order_suc_cnt`,`last_login_ip`,`auth_cnt`)SELECT`date`,`mem_id`,`agent_id`,`app_id`,`reg_time`,`reg_days`,`role_days`,`device_id`,`device_cnt`,`login_cnt`,`sum_money`,`sum_real_money`,`first_pay_time`,`last_pay_time`,`last_money`,`order_cnt`,`order_suc_cnt`,`last_login_ip`,`auth_cnt`";
  7854. SET @ldmt_sql = concat(@ldmt_sql, ' FROM ',@Ttable,' where `date`=\'',Tsetdate,'\'');
  7855. PREPARE ldmt_sql_ex FROM @ldmt_sql;
  7856. EXECUTE ldmt_sql_ex;
  7857. ALTER TABLE h_log_day_mem_temp ENABLE KEYS;
  7858. ALTER TABLE h_day_game_agent DISABLE KEYS;
  7859. REPLACE INTO `h_day_game_agent`
  7860. (
  7861. `date`,
  7862. `app_id`,
  7863. `agent_id`,
  7864. `history_user_cnt`,
  7865. `active_cnt`,
  7866. `today_cnt`,
  7867. `click_cnt`,
  7868. `page_down_cnt`,
  7869. `down_cnt`,
  7870. `real_down_cnt`,
  7871. `user_cnt`,
  7872. `ip_cnt`,
  7873. `reg_cnt`,
  7874. `reg_device_cnt`,
  7875. `reg_ip_cnt`,
  7876. `pay_user_cnt`,
  7877. `first_pay_user_cnt`,
  7878. `order_cnt`,
  7879. `fail_order_cnt`,
  7880. `un_order_cnt`,
  7881. `reg_order_cnt`,
  7882. `reg_pay_cnt`,
  7883. `sum_money`,
  7884. `sum_real_money`,
  7885. `share_money`,
  7886. `first_pay_money`,
  7887. `first_pay_sum_money`,
  7888. `reg_sum_money`,
  7889. `reg_real_sum_money`
  7890. )
  7891. SELECT
  7892. `date`,
  7893. `app_id`,
  7894. `agent_id`,
  7895. 0,
  7896. COUNT(DISTINCT `mem_id`) AS `active_cnt`,
  7897. COUNT(DISTINCT(CASE WHEN `reg_days`=0 THEN `mem_id` END)) AS `today_cnt`,
  7898. SUM(`login_cnt`),
  7899. 0,
  7900. 0,
  7901. 0,
  7902. COUNT(DISTINCT(CASE WHEN `auth_cnt`>0 THEN `mem_id` END)) AS `user_cnt`,
  7903. COUNT(DISTINCT `last_login_ip`) AS `ip_cnt`,
  7904. COUNT(DISTINCT(CASE WHEN (`reg_days`=0 AND `auth_cnt`>0) OR (`reg_days`>0 AND `auth_cnt`>0 AND `role_days` = 0) THEN `mem_id` END)) AS `reg_cnt` ,
  7905. COUNT(DISTINCT(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `device_id` END)) AS `reg_device_cnt` ,
  7906. COUNT(DISTINCT(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `last_login_ip` END)) AS `reg_ip_cnt` ,
  7907. COUNT(DISTINCT(CASE WHEN `sum_money`>0 THEN `mem_id` END)) AS `pay_user_cnt`,
  7908. COUNT(DISTINCT(CASE WHEN `first_pay_time`>0 THEN `mem_id` END)) AS `first_pay_user_cnt`,
  7909. SUM(`order_suc_cnt`),
  7910. 0,
  7911. SUM(`order_cnt`-`order_suc_cnt`),
  7912. SUM(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `order_suc_cnt` ELSE 0 END) AS `reg_order_cnt`,
  7913. COUNT(DISTINCT(CASE WHEN `reg_days`=0 AND `sum_money`>0 THEN `mem_id` END)) AS `reg_pay_cnt`,
  7914. SUM(`sum_money`),
  7915. SUM(`sum_real_money`),
  7916. 0,
  7917. 0,
  7918. 0,
  7919. SUM(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `sum_money` ELSE 0.00 END) AS `reg_sum_money` ,
  7920. SUM(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `sum_real_money` ELSE 0.00 END) AS `reg_real_sum_money`
  7921. FROM h_log_day_mem_temp
  7922. GROUP BY agent_id, app_id;
  7923. ALTER TABLE h_day_game_agent ENABLE KEYS;
  7924. ALTER TABLE h_day_agent DISABLE KEYS;
  7925. REPLACE INTO `h_day_agent`
  7926. (
  7927. `date`,
  7928. `agent_id`,
  7929. `history_user_cnt`,
  7930. `active_cnt`,
  7931. `today_cnt`,
  7932. `click_cnt`,
  7933. `page_down_cnt`,
  7934. `down_cnt`,
  7935. `real_down_cnt`,
  7936. `user_cnt`,
  7937. `ip_cnt`,
  7938. `reg_cnt`,
  7939. `reg_device_cnt`,
  7940. `reg_ip_cnt`,
  7941. `pay_user_cnt`,
  7942. `first_pay_user_cnt`,
  7943. `order_cnt`,
  7944. `fail_order_cnt`,
  7945. `un_order_cnt`,
  7946. `reg_order_cnt`,
  7947. `reg_pay_cnt`,
  7948. `sum_money`,
  7949. `sum_real_money`,
  7950. `share_money`,
  7951. `first_pay_money`,
  7952. `first_pay_sum_money`,
  7953. `reg_sum_money`,
  7954. `reg_real_sum_money`
  7955. )
  7956. SELECT
  7957. `date`,
  7958. `agent_id`,
  7959. 0,
  7960. COUNT(DISTINCT `mem_id`) AS `active_cnt`,
  7961. COUNT(DISTINCT(CASE WHEN `reg_days`=0 THEN `mem_id` END)) AS `today_cnt`,
  7962. SUM(`login_cnt`),
  7963. 0,
  7964. 0,
  7965. 0,
  7966. COUNT(DISTINCT(CASE WHEN `auth_cnt`>0 THEN `mem_id` END)) AS `user_cnt`,
  7967. COUNT(DISTINCT `last_login_ip`) AS `ip_cnt`,
  7968. COUNT(DISTINCT(CASE WHEN (`reg_days`=0 AND `auth_cnt`>0) OR (`reg_days`>0 AND `auth_cnt`>0 AND `role_days` = 0) THEN `mem_id` END)) AS `reg_cnt` ,
  7969. COUNT(DISTINCT(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `device_id` END)) AS `reg_device_cnt` ,
  7970. COUNT(DISTINCT(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `last_login_ip` END)) AS `reg_ip_cnt` ,
  7971. COUNT(DISTINCT(CASE WHEN `sum_money`>0 THEN `mem_id` END)) AS `pay_user_cnt`,
  7972. COUNT(DISTINCT(CASE WHEN `first_pay_time`>0 THEN `mem_id` END)) AS `first_pay_user_cnt`,
  7973. SUM(`order_suc_cnt`),
  7974. 0,
  7975. SUM(`order_cnt`-`order_suc_cnt`),
  7976. SUM(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `order_suc_cnt` ELSE 0 END) AS `reg_order_cnt`,
  7977. COUNT(DISTINCT(CASE WHEN `reg_days`=0 AND `sum_money`>0 THEN `mem_id` END)) AS `reg_pay_cnt`,
  7978. SUM(`sum_money`),
  7979. SUM(`sum_real_money`),
  7980. 0,
  7981. 0,
  7982. 0,
  7983. SUM(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `sum_money` ELSE 0.00 END) AS `reg_sum_money` ,
  7984. SUM(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `sum_real_money` ELSE 0.00 END) AS `reg_real_sum_money`
  7985. FROM h_log_day_mem_temp
  7986. GROUP BY agent_id;
  7987. ALTER TABLE h_day_agent ENABLE KEYS;
  7988. ALTER TABLE h_day_game DISABLE KEYS;
  7989. REPLACE INTO `h_day_game`
  7990. (
  7991. `date`,
  7992. `app_id`,
  7993. `history_user_cnt`,
  7994. `active_cnt`,
  7995. `today_cnt`,
  7996. `click_cnt`,
  7997. `page_down_cnt`,
  7998. `down_cnt`,
  7999. `real_down_cnt`,
  8000. `user_cnt`,
  8001. `ip_cnt`,
  8002. `reg_cnt`,
  8003. `reg_device_cnt`,
  8004. `reg_ip_cnt`,
  8005. `pay_user_cnt`,
  8006. `first_pay_user_cnt`,
  8007. `order_cnt`,
  8008. `fail_order_cnt`,
  8009. `un_order_cnt`,
  8010. `reg_order_cnt`,
  8011. `reg_pay_cnt`,
  8012. `sum_money`,
  8013. `sum_real_money`,
  8014. `share_money`,
  8015. `first_pay_money`,
  8016. `first_pay_sum_money`,
  8017. `reg_sum_money`,
  8018. `reg_real_sum_money`
  8019. )
  8020. SELECT
  8021. `date`,
  8022. `app_id`,
  8023. 0,
  8024. COUNT(DISTINCT `mem_id`) AS `active_cnt`,
  8025. COUNT(DISTINCT(CASE WHEN `reg_days`=0 THEN `mem_id` END)) AS `today_cnt`,
  8026. SUM(`login_cnt`),
  8027. 0,
  8028. 0,
  8029. 0,
  8030. COUNT(DISTINCT(CASE WHEN `auth_cnt`>0 THEN `mem_id` END)) AS `user_cnt`,
  8031. COUNT(DISTINCT `last_login_ip`) AS `ip_cnt`,
  8032. COUNT(DISTINCT(CASE WHEN (`reg_days`=0 AND `auth_cnt`>0) OR (`reg_days`>0 AND `auth_cnt`>0 AND `role_days` = 0) THEN `mem_id` END)) AS `reg_cnt` ,
  8033. COUNT(DISTINCT(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `device_id` END)) AS `reg_device_cnt` ,
  8034. COUNT(DISTINCT(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `last_login_ip` END)) AS `reg_ip_cnt` ,
  8035. COUNT(DISTINCT(CASE WHEN `sum_money`>0 THEN `mem_id` END)) AS `pay_user_cnt`,
  8036. COUNT(DISTINCT(CASE WHEN `first_pay_time`>0 THEN `mem_id` END)) AS `first_pay_user_cnt`,
  8037. SUM(`order_suc_cnt`),
  8038. 0,
  8039. SUM(`order_cnt`-`order_suc_cnt`),
  8040. SUM(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `order_suc_cnt` ELSE 0 END) AS `reg_order_cnt`,
  8041. COUNT(DISTINCT(CASE WHEN `reg_days`=0 AND `sum_money`>0 THEN `mem_id` END)) AS `reg_pay_cnt`,
  8042. SUM(`sum_money`),
  8043. SUM(`sum_real_money`),
  8044. 0,
  8045. 0,
  8046. 0,
  8047. SUM(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `sum_money` ELSE 0.00 END) AS `reg_sum_money` ,
  8048. SUM(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `sum_real_money` ELSE 0.00 END) AS `reg_real_sum_money`
  8049. FROM h_log_day_mem_temp
  8050. GROUP BY app_id;
  8051. ALTER TABLE h_day_game ENABLE KEYS;
  8052. ALTER TABLE h_day DISABLE KEYS;
  8053. REPLACE INTO `h_day`
  8054. (
  8055. `date`,
  8056. `history_user_cnt`,
  8057. `active_cnt`,
  8058. `today_cnt`,
  8059. `click_cnt`,
  8060. `page_down_cnt`,
  8061. `down_cnt`,
  8062. `real_down_cnt`,
  8063. `user_cnt`,
  8064. `ip_cnt`,
  8065. `reg_cnt`,
  8066. `reg_device_cnt`,
  8067. `reg_ip_cnt`,
  8068. `pay_user_cnt`,
  8069. `first_pay_user_cnt`,
  8070. `order_cnt`,
  8071. `fail_order_cnt`,
  8072. `un_order_cnt`,
  8073. `reg_order_cnt`,
  8074. `reg_pay_cnt`,
  8075. `sum_money`,
  8076. `sum_real_money`,
  8077. `share_money`,
  8078. `first_pay_money`,
  8079. `first_pay_sum_money`,
  8080. `reg_sum_money`,
  8081. `reg_real_sum_money`
  8082. )
  8083. SELECT
  8084. `date`,
  8085. 0,
  8086. COUNT(DISTINCT `mem_id`) AS `active_cnt`,
  8087. COUNT(DISTINCT(CASE WHEN `reg_days`=0 THEN `mem_id` END)) AS `today_cnt`,
  8088. SUM(`login_cnt`),
  8089. 0,
  8090. 0,
  8091. 0,
  8092. COUNT(DISTINCT(CASE WHEN `auth_cnt`>0 THEN `mem_id` END)) AS `user_cnt`,
  8093. COUNT(DISTINCT `last_login_ip`) AS `ip_cnt`,
  8094. COUNT(DISTINCT(CASE WHEN (`reg_days`=0 AND `auth_cnt`>0) OR (`reg_days`>0 AND `auth_cnt`>0 AND `role_days` = 0) THEN `mem_id` END)) AS `reg_cnt` ,
  8095. COUNT(DISTINCT(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `device_id` END)) AS `reg_device_cnt` ,
  8096. COUNT(DISTINCT(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `last_login_ip` END)) AS `reg_ip_cnt` ,
  8097. COUNT(DISTINCT(CASE WHEN `sum_money`>0 THEN `mem_id` END)) AS `pay_user_cnt`,
  8098. COUNT(DISTINCT(CASE WHEN `first_pay_time`>0 THEN `mem_id` END)) AS `first_pay_user_cnt`,
  8099. SUM(`order_suc_cnt`),
  8100. 0,
  8101. SUM(`order_cnt`-`order_suc_cnt`),
  8102. SUM(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `order_suc_cnt` ELSE 0 END) AS `reg_order_cnt`,
  8103. COUNT(DISTINCT(CASE WHEN `reg_days`=0 AND `sum_money`>0 THEN `mem_id` END)) AS `reg_pay_cnt`,
  8104. SUM(`sum_money`),
  8105. SUM(`sum_real_money`),
  8106. 0,
  8107. 0,
  8108. 0,
  8109. SUM(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `sum_money` ELSE 0.00 END) AS `reg_sum_money` ,
  8110. SUM(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `sum_real_money` ELSE 0.00 END) AS `reg_real_sum_money`
  8111. FROM h_log_day_mem_temp;
  8112. ALTER TABLE h_day ENABLE KEYS;
  8113. OPEN Tagcursor;
  8114. FETCH Tagcursor INTO Tregtime,Tappid,Tagentid,Tregday,Tusercnt;
  8115. WHILE Tflag<>1 DO
  8116. IF Tusercnt>0 THEN
  8117. CASE Tregday
  8118. WHEN 1 THEN
  8119. SET TdayFlag = 'day2';
  8120. WHEN 2 THEN
  8121. SET TdayFlag = 'day3';
  8122. WHEN 3 THEN
  8123. SET TdayFlag = 'day4';
  8124. WHEN 4 THEN
  8125. SET TdayFlag = 'day5';
  8126. WHEN 5 THEN
  8127. SET TdayFlag = 'day6';
  8128. WHEN 6 THEN
  8129. SET TdayFlag = 'day7';
  8130. WHEN 7 THEN
  8131. SET TdayFlag = 'day8';
  8132. WHEN 8 THEN
  8133. SET TdayFlag = 'day9';
  8134. WHEN 9 THEN
  8135. SET TdayFlag = 'day10';
  8136. WHEN 10 THEN
  8137. SET TdayFlag = 'day11';
  8138. WHEN 11 THEN
  8139. SET TdayFlag = 'day12';
  8140. WHEN 12 THEN
  8141. SET TdayFlag = 'day13';
  8142. WHEN 13 THEN
  8143. SET TdayFlag = 'day14';
  8144. WHEN 14 THEN
  8145. SET TdayFlag = 'day15';
  8146. WHEN 20 THEN
  8147. SET TdayFlag = 'day21';
  8148. WHEN 29 THEN
  8149. SET TdayFlag = 'day30';
  8150. WHEN 59 THEN
  8151. SET TdayFlag = 'day60';
  8152. END CASE;
  8153. SET Tdate = FROM_UNIXTIME(Tregtime,'%Y-%m-%d');
  8154. SET @sqlstr=CONCAT('update h_day_game_agent SET ',TdayFlag,'=',Tusercnt,' WHERE date=',CONCAT('\'',Tdate,'\''), ' AND agent_id=',Tagentid,' AND app_id=',Tappid);
  8155. PREPARE stmt FROM @sqlstr;
  8156. EXECUTE stmt;
  8157. SET @sqlstr=CONCAT('update h_day_game SET ',TdayFlag,'=',TdayFlag,'+',Tusercnt,' WHERE date=',CONCAT('\'',Tdate,'\''), ' AND app_id=',Tappid);
  8158. PREPARE stmt FROM @sqlstr;
  8159. EXECUTE stmt;
  8160. DEALLOCATE PREPARE stmt;
  8161. END IF;
  8162. FETCH Tagcursor INTO Tregtime,Tappid,Tagentid,Tregday,Tusercnt;
  8163. END WHILE;
  8164. CLOSE Tagcursor;
  8165. SET Tflag = 0;
  8166. OPEN Tacursor;
  8167. FETCH Tacursor INTO Tregtime,Tagentid,Tregday,Tusercnt;
  8168. WHILE Tflag<>1 DO
  8169. IF Tusercnt>0 THEN
  8170. CASE Tregday
  8171. WHEN 1 THEN
  8172. SET TdayFlag = 'day2';
  8173. WHEN 2 THEN
  8174. SET TdayFlag = 'day3';
  8175. WHEN 3 THEN
  8176. SET TdayFlag = 'day4';
  8177. WHEN 4 THEN
  8178. SET TdayFlag = 'day5';
  8179. WHEN 5 THEN
  8180. SET TdayFlag = 'day6';
  8181. WHEN 6 THEN
  8182. SET TdayFlag = 'day7';
  8183. WHEN 7 THEN
  8184. SET TdayFlag = 'day8';
  8185. WHEN 8 THEN
  8186. SET TdayFlag = 'day9';
  8187. WHEN 9 THEN
  8188. SET TdayFlag = 'day10';
  8189. WHEN 10 THEN
  8190. SET TdayFlag = 'day11';
  8191. WHEN 11 THEN
  8192. SET TdayFlag = 'day12';
  8193. WHEN 12 THEN
  8194. SET TdayFlag = 'day13';
  8195. WHEN 13 THEN
  8196. SET TdayFlag = 'day14';
  8197. WHEN 14 THEN
  8198. SET TdayFlag = 'day15';
  8199. WHEN 20 THEN
  8200. SET TdayFlag = 'day21';
  8201. WHEN 29 THEN
  8202. SET TdayFlag = 'day30';
  8203. WHEN 59 THEN
  8204. SET TdayFlag = 'day60';
  8205. END CASE;
  8206. SET Tdate = FROM_UNIXTIME(Tregtime,'%Y-%m-%d');
  8207. SET @sqlstr=CONCAT('update h_day_agent SET ',TdayFlag,'=',Tusercnt,' WHERE date=',CONCAT('\'',Tdate,'\''), ' AND agent_id=',Tagentid);
  8208. PREPARE stmt FROM @sqlstr;
  8209. EXECUTE stmt;
  8210. SET @sqlstr=CONCAT('update h_day SET ',TdayFlag,'=',TdayFlag,'+',Tusercnt,' WHERE date=',CONCAT('\'',Tdate,'\''));
  8211. PREPARE stmt FROM @sqlstr;
  8212. EXECUTE stmt;
  8213. DEALLOCATE PREPARE stmt;
  8214. END IF;
  8215. FETCH Tacursor INTO Tregtime,Tagentid,Tregday,Tusercnt;
  8216. END WHILE;
  8217. CLOSE Tacursor;
  8218. SET Tflag = 0;
  8219. END
  8220. ;;
  8221. delimiter ;
  8222. -- ----------------------------
  8223. -- Procedure structure for repair_remain_user_by_day_switch
  8224. -- ----------------------------
  8225. DROP PROCEDURE IF EXISTS `repair_remain_user_by_day_switch`;
  8226. delimiter ;;
  8227. CREATE PROCEDURE `repair_remain_user_by_day_switch`(iday date)
  8228. BEGIN
  8229. DECLARE Tflag INT DEFAULT 0;
  8230. DECLARE Tappid INT;
  8231. DECLARE Tdate DATE;
  8232. DECLARE Tregday INT;
  8233. DECLARE Tagentid INT;
  8234. DECLARE Tregcnt INT;
  8235. DECLARE Tregpaycnt INT;
  8236. DECLARE Tordercnt INT;
  8237. DECLARE Tcnt INT;
  8238. DECLARE Tregtime BIGINT;
  8239. DECLARE Tsummoney DOUBLE(20,2);
  8240. DECLARE Tsharemoney DOUBLE(20,2);
  8241. DECLARE Tratetype INT;
  8242. DECLARE Tmoney1 DOUBLE(20,2);
  8243. DECLARE Tmoney2 DOUBLE(20,2);
  8244. DECLARE Tmoney3 DOUBLE(20,2);
  8245. DECLARE Tmoney4 DOUBLE(20,2);
  8246. DECLARE Tmoney5 DOUBLE(20,2);
  8247. DECLARE Tmoney6 DOUBLE(20,2);
  8248. DECLARE Tmoney7 DOUBLE(20,2);
  8249. DECLARE Tmoney8 DOUBLE(20,2);
  8250. DECLARE Tagentrate DOUBLE(5,4);
  8251. DECLARE Trate1 DOUBLE(5,4);
  8252. DECLARE Trate2 DOUBLE(5,4);
  8253. DECLARE Trate3 DOUBLE(5,4);
  8254. DECLARE Trate4 DOUBLE(5,4);
  8255. DECLARE Trate5 DOUBLE(5,4);
  8256. DECLARE Trate6 DOUBLE(5,4);
  8257. DECLARE Trate7 DOUBLE(5,4);
  8258. DECLARE Trate8 DOUBLE(5,4);
  8259. DECLARE Tusercnt INT;
  8260. DECLARE Tsetdate DATE DEFAULT iday;
  8261. DECLARE Tstarttime INT;
  8262. DECLARE Tendtime INT;
  8263. DECLARE TdayFlag varchar(20);
  8264. DECLARE Tagcursor CURSOR FOR SELECT reg_time,app_id,agent_id,reg_days,COUNT(DISTINCT(CASE WHEN `auth_cnt`>0 THEN `mem_id` END)) AS `user_cnt` FROM `h_ldm_switch_temp` WHERE reg_days in (1,2,3,4,5,6,7,8,9,10,11,12,13,14,20,29,59) GROUP BY app_id,agent_id,reg_days;
  8265. DECLARE Tacursor CURSOR FOR SELECT reg_time,agent_id,reg_days,COUNT(CASE WHEN `auth_cnt`>0 THEN `mem_id` END) AS `user_cnt` FROM `h_ldm_switch_temp` WHERE reg_days in (1,2,3,4,5,6,7,8,9,10,11,12,13,14,20,29,59) GROUP BY agent_id,reg_days;
  8266. DECLARE CONTINUE HANDLER FOR SQLSTATE '02000' SET Tflag = 1;
  8267. SET Tstarttime=unix_timestamp(Tsetdate);
  8268. SET Tendtime=Tstarttime+86400;
  8269. SET @Ttable = CONCAT('h_ldm_switch_',date_format(Tsetdate,'%Y%m') );
  8270. CREATE TABLE IF NOT EXISTS `h_ldm_switch_temp` (
  8271. `id` int(11) NOT NULL AUTO_INCREMENT,
  8272. `date` date NOT NULL COMMENT '日期',
  8273. `mem_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '玩家ID',
  8274. `agent_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '归属渠道',
  8275. `app_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '游戏ID',
  8276. `reg_time` bigint(20) NOT NULL DEFAULT '0' COMMENT '玩家注册时间',
  8277. `reg_days` int(11) NOT NULL DEFAULT '0' COMMENT '注册天数',
  8278. `role_days` int(11) NOT NULL DEFAULT '0' COMMENT '创角天数',
  8279. `device_id` varchar(64) NOT NULL DEFAULT '' COMMENT '手机设备码',
  8280. `device_cnt` int(11) NOT NULL DEFAULT '1' COMMENT '登陆的设备个数',
  8281. `login_cnt` int(11) NOT NULL DEFAULT '1' COMMENT '登陆次数',
  8282. `sum_money` double(12,2) NOT NULL DEFAULT '0.00' COMMENT '累计充值',
  8283. `sum_real_money` double(12,2) NOT NULL DEFAULT '0.00' COMMENT '自然流水金额',
  8284. `first_pay_time` bigint(20) NOT NULL DEFAULT '0' COMMENT '第一笔充值时间',
  8285. `last_pay_time` bigint(20) NOT NULL DEFAULT '0' COMMENT '最近充值时间',
  8286. `last_money` double(12,2) NOT NULL DEFAULT '0.00' COMMENT '最近充值金额',
  8287. `order_cnt` int(20) unsigned NOT NULL DEFAULT '0' COMMENT '订单数量',
  8288. `order_suc_cnt` int(20) unsigned NOT NULL DEFAULT '0' COMMENT '支付成功订单数量',
  8289. `last_login_ip` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '玩家最近登陆ip',
  8290. `auth_cnt` int(11) NOT NULL DEFAULT '0' COMMENT '授权登陆次数',
  8291. PRIMARY KEY (`id`),
  8292. UNIQUE KEY `ldmt_date_mem_app_unique` (`date`,`mem_id`,`app_id`),
  8293. KEY `ldmt_ip_index` (`last_login_ip`),
  8294. KEY `ldmt_agent_index` (`agent_id`),
  8295. KEY `ldmt_app_index` (`app_id`)
  8296. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='玩家每日临时';
  8297. TRUNCATE `h_ldm_switch_temp`;
  8298. ALTER TABLE `h_ldm_switch_temp` DISABLE KEYS;
  8299. SET @ldmt_sql = "REPLACE INTO `h_ldm_switch_temp` (`date`,`mem_id`,`agent_id`,`app_id`,`reg_time`,`reg_days`,`role_days`,`device_id`,`device_cnt`,`login_cnt`,`sum_money`,`sum_real_money`,`first_pay_time`,`last_pay_time`,`last_money`,`order_cnt`,`order_suc_cnt`,`last_login_ip`,`auth_cnt`)SELECT`date`,`mem_id`,`agent_id`,`app_id`,`reg_time`,`reg_days`,`role_days`,`device_id`,`device_cnt`,`login_cnt`,`sum_money`,`sum_real_money`,`first_pay_time`,`last_pay_time`,`last_money`,`order_cnt`,`order_suc_cnt`,`last_login_ip`,`auth_cnt`";
  8300. SET @ldmt_sql = concat(@ldmt_sql, ' FROM ',@Ttable,' where `date`=\'',Tsetdate,'\'');
  8301. PREPARE ldmt_sql_ex FROM @ldmt_sql;
  8302. EXECUTE ldmt_sql_ex;
  8303. ALTER TABLE h_ldm_switch_temp ENABLE KEYS;
  8304. ALTER TABLE h_dga_switch DISABLE KEYS;
  8305. REPLACE INTO `h_dga_switch`
  8306. (
  8307. `date`,
  8308. `app_id`,
  8309. `agent_id`,
  8310. `history_user_cnt`,
  8311. `active_cnt`,
  8312. `today_cnt`,
  8313. `click_cnt`,
  8314. `page_down_cnt`,
  8315. `down_cnt`,
  8316. `real_down_cnt`,
  8317. `user_cnt`,
  8318. `ip_cnt`,
  8319. `reg_cnt`,
  8320. `reg_device_cnt`,
  8321. `reg_ip_cnt`,
  8322. `pay_user_cnt`,
  8323. `first_pay_user_cnt`,
  8324. `order_cnt`,
  8325. `fail_order_cnt`,
  8326. `un_order_cnt`,
  8327. `reg_order_cnt`,
  8328. `reg_pay_cnt`,
  8329. `sum_money`,
  8330. `sum_real_money`,
  8331. `share_money`,
  8332. `first_pay_money`,
  8333. `first_pay_sum_money`,
  8334. `reg_sum_money`,
  8335. `reg_real_sum_money`
  8336. )
  8337. SELECT
  8338. `date`,
  8339. `app_id`,
  8340. `agent_id`,
  8341. 0,
  8342. COUNT(DISTINCT `mem_id`) AS `active_cnt`,
  8343. COUNT(DISTINCT(CASE WHEN `reg_days`=0 THEN `mem_id` END)) AS `today_cnt`,
  8344. SUM(`login_cnt`),
  8345. 0,
  8346. 0,
  8347. 0,
  8348. COUNT(DISTINCT(CASE WHEN `auth_cnt`>0 THEN `mem_id` END)) AS `user_cnt`,
  8349. COUNT(DISTINCT `last_login_ip`) AS `ip_cnt`,
  8350. COUNT(DISTINCT(CASE WHEN (`reg_days`=0 AND `auth_cnt`>0) OR (`reg_days`>0 AND `auth_cnt`>0 AND `role_days` = 0) THEN `mem_id` END)) AS `reg_cnt` ,
  8351. COUNT(DISTINCT(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `device_id` END)) AS `reg_device_cnt` ,
  8352. COUNT(DISTINCT(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `last_login_ip` END)) AS `reg_ip_cnt` ,
  8353. COUNT(DISTINCT(CASE WHEN `sum_money`>0 THEN `mem_id` END)) AS `pay_user_cnt`,
  8354. COUNT(DISTINCT(CASE WHEN `first_pay_time`>0 THEN `mem_id` END)) AS `first_pay_user_cnt`,
  8355. SUM(`order_suc_cnt`),
  8356. 0,
  8357. SUM(`order_cnt`-`order_suc_cnt`),
  8358. SUM(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `order_suc_cnt` ELSE 0 END) AS `reg_order_cnt`,
  8359. COUNT(DISTINCT(CASE WHEN `reg_days`=0 AND `sum_money`>0 THEN `mem_id` END)) AS `reg_pay_cnt`,
  8360. SUM(`sum_money`),
  8361. SUM(`sum_real_money`),
  8362. 0,
  8363. 0,
  8364. 0,
  8365. SUM(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `sum_money` ELSE 0.00 END) AS `reg_sum_money` ,
  8366. SUM(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `sum_real_money` ELSE 0.00 END) AS `reg_real_sum_money`
  8367. FROM h_ldm_switch_temp
  8368. GROUP BY agent_id, app_id;
  8369. ALTER TABLE h_dga_switch ENABLE KEYS;
  8370. ALTER TABLE h_day_agent_switch DISABLE KEYS;
  8371. REPLACE INTO `h_day_agent_switch`
  8372. (
  8373. `date`,
  8374. `agent_id`,
  8375. `history_user_cnt`,
  8376. `active_cnt`,
  8377. `today_cnt`,
  8378. `click_cnt`,
  8379. `page_down_cnt`,
  8380. `down_cnt`,
  8381. `real_down_cnt`,
  8382. `user_cnt`,
  8383. `ip_cnt`,
  8384. `reg_cnt`,
  8385. `reg_device_cnt`,
  8386. `reg_ip_cnt`,
  8387. `pay_user_cnt`,
  8388. `first_pay_user_cnt`,
  8389. `order_cnt`,
  8390. `fail_order_cnt`,
  8391. `un_order_cnt`,
  8392. `reg_order_cnt`,
  8393. `reg_pay_cnt`,
  8394. `sum_money`,
  8395. `sum_real_money`,
  8396. `share_money`,
  8397. `first_pay_money`,
  8398. `first_pay_sum_money`,
  8399. `reg_sum_money`,
  8400. `reg_real_sum_money`
  8401. )
  8402. SELECT
  8403. `date`,
  8404. `agent_id`,
  8405. 0,
  8406. COUNT(DISTINCT `mem_id`) AS `active_cnt`,
  8407. COUNT(DISTINCT(CASE WHEN `reg_days`=0 THEN `mem_id` END)) AS `today_cnt`,
  8408. SUM(`login_cnt`),
  8409. 0,
  8410. 0,
  8411. 0,
  8412. COUNT(DISTINCT(CASE WHEN `auth_cnt`>0 THEN `mem_id` END)) AS `user_cnt`,
  8413. COUNT(DISTINCT `last_login_ip`) AS `ip_cnt`,
  8414. COUNT(DISTINCT(CASE WHEN (`reg_days`=0 AND `auth_cnt`>0) OR (`reg_days`>0 AND `auth_cnt`>0 AND `role_days` = 0) THEN `mem_id` END)) AS `reg_cnt` ,
  8415. COUNT(DISTINCT(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `device_id` END)) AS `reg_device_cnt` ,
  8416. COUNT(DISTINCT(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `last_login_ip` END)) AS `reg_ip_cnt` ,
  8417. COUNT(DISTINCT(CASE WHEN `sum_money`>0 THEN `mem_id` END)) AS `pay_user_cnt`,
  8418. COUNT(DISTINCT(CASE WHEN `first_pay_time`>0 THEN `mem_id` END)) AS `first_pay_user_cnt`,
  8419. SUM(`order_suc_cnt`),
  8420. 0,
  8421. SUM(`order_cnt`-`order_suc_cnt`),
  8422. SUM(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `order_suc_cnt` ELSE 0 END) AS `reg_order_cnt`,
  8423. COUNT(DISTINCT(CASE WHEN `reg_days`=0 AND `sum_money`>0 THEN `mem_id` END)) AS `reg_pay_cnt`,
  8424. SUM(`sum_money`),
  8425. SUM(`sum_real_money`),
  8426. 0,
  8427. 0,
  8428. 0,
  8429. SUM(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `sum_money` ELSE 0.00 END) AS `reg_sum_money` ,
  8430. SUM(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `sum_real_money` ELSE 0.00 END) AS `reg_real_sum_money`
  8431. FROM h_ldm_switch_temp
  8432. GROUP BY agent_id;
  8433. ALTER TABLE h_day_agent_switch ENABLE KEYS;
  8434. ALTER TABLE h_day_game_switch DISABLE KEYS;
  8435. REPLACE INTO `h_day_game_switch`
  8436. (
  8437. `date`,
  8438. `app_id`,
  8439. `history_user_cnt`,
  8440. `active_cnt`,
  8441. `today_cnt`,
  8442. `click_cnt`,
  8443. `page_down_cnt`,
  8444. `down_cnt`,
  8445. `real_down_cnt`,
  8446. `user_cnt`,
  8447. `ip_cnt`,
  8448. `reg_cnt`,
  8449. `reg_device_cnt`,
  8450. `reg_ip_cnt`,
  8451. `pay_user_cnt`,
  8452. `first_pay_user_cnt`,
  8453. `order_cnt`,
  8454. `fail_order_cnt`,
  8455. `un_order_cnt`,
  8456. `reg_order_cnt`,
  8457. `reg_pay_cnt`,
  8458. `sum_money`,
  8459. `sum_real_money`,
  8460. `share_money`,
  8461. `first_pay_money`,
  8462. `first_pay_sum_money`,
  8463. `reg_sum_money`,
  8464. `reg_real_sum_money`
  8465. )
  8466. SELECT
  8467. `date`,
  8468. `app_id`,
  8469. 0,
  8470. COUNT(DISTINCT `mem_id`) AS `active_cnt`,
  8471. COUNT(DISTINCT(CASE WHEN `reg_days`=0 THEN `mem_id` END)) AS `today_cnt`,
  8472. SUM(`login_cnt`),
  8473. 0,
  8474. 0,
  8475. 0,
  8476. COUNT(DISTINCT(CASE WHEN `auth_cnt`>0 THEN `mem_id` END)) AS `user_cnt`,
  8477. COUNT(DISTINCT `last_login_ip`) AS `ip_cnt`,
  8478. COUNT(DISTINCT(CASE WHEN (`reg_days`=0 AND `auth_cnt`>0) OR (`reg_days`>0 AND `auth_cnt`>0 AND `role_days` = 0) THEN `mem_id` END)) AS `reg_cnt` ,
  8479. COUNT(DISTINCT(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `device_id` END)) AS `reg_device_cnt` ,
  8480. COUNT(DISTINCT(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `last_login_ip` END)) AS `reg_ip_cnt` ,
  8481. COUNT(DISTINCT(CASE WHEN `sum_money`>0 THEN `mem_id` END)) AS `pay_user_cnt`,
  8482. COUNT(DISTINCT(CASE WHEN `first_pay_time`>0 THEN `mem_id` END)) AS `first_pay_user_cnt`,
  8483. SUM(`order_suc_cnt`),
  8484. 0,
  8485. SUM(`order_cnt`-`order_suc_cnt`),
  8486. SUM(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `order_suc_cnt` ELSE 0 END) AS `reg_order_cnt`,
  8487. COUNT(DISTINCT(CASE WHEN `reg_days`=0 AND `sum_money`>0 THEN `mem_id` END)) AS `reg_pay_cnt`,
  8488. SUM(`sum_money`),
  8489. SUM(`sum_real_money`),
  8490. 0,
  8491. 0,
  8492. 0,
  8493. SUM(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `sum_money` ELSE 0.00 END) AS `reg_sum_money` ,
  8494. SUM(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `sum_real_money` ELSE 0.00 END) AS `reg_real_sum_money`
  8495. FROM h_ldm_switch_temp
  8496. GROUP BY app_id;
  8497. ALTER TABLE h_day_game_switch ENABLE KEYS;
  8498. ALTER TABLE h_day_switch DISABLE KEYS;
  8499. REPLACE INTO `h_day_switch`
  8500. (
  8501. `date`,
  8502. `history_user_cnt`,
  8503. `active_cnt`,
  8504. `today_cnt`,
  8505. `click_cnt`,
  8506. `page_down_cnt`,
  8507. `down_cnt`,
  8508. `real_down_cnt`,
  8509. `user_cnt`,
  8510. `ip_cnt`,
  8511. `reg_cnt`,
  8512. `reg_device_cnt`,
  8513. `reg_ip_cnt`,
  8514. `pay_user_cnt`,
  8515. `first_pay_user_cnt`,
  8516. `order_cnt`,
  8517. `fail_order_cnt`,
  8518. `un_order_cnt`,
  8519. `reg_order_cnt`,
  8520. `reg_pay_cnt`,
  8521. `sum_money`,
  8522. `sum_real_money`,
  8523. `share_money`,
  8524. `first_pay_money`,
  8525. `first_pay_sum_money`,
  8526. `reg_sum_money`,
  8527. `reg_real_sum_money`
  8528. )
  8529. SELECT
  8530. `date`,
  8531. 0,
  8532. COUNT(DISTINCT `mem_id`) AS `active_cnt`,
  8533. COUNT(DISTINCT(CASE WHEN `reg_days`=0 THEN `mem_id` END)) AS `today_cnt`,
  8534. SUM(`login_cnt`),
  8535. 0,
  8536. 0,
  8537. 0,
  8538. COUNT(DISTINCT(CASE WHEN `auth_cnt`>0 THEN `mem_id` END)) AS `user_cnt`,
  8539. COUNT(DISTINCT `last_login_ip`) AS `ip_cnt`,
  8540. COUNT(DISTINCT(CASE WHEN (`reg_days`=0 AND `auth_cnt`>0) OR (`reg_days`>0 AND `auth_cnt`>0 AND `role_days` = 0) THEN `mem_id` END)) AS `reg_cnt` ,
  8541. COUNT(DISTINCT(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `device_id` END)) AS `reg_device_cnt` ,
  8542. COUNT(DISTINCT(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `last_login_ip` END)) AS `reg_ip_cnt` ,
  8543. COUNT(DISTINCT(CASE WHEN `sum_money`>0 THEN `mem_id` END)) AS `pay_user_cnt`,
  8544. COUNT(DISTINCT(CASE WHEN `first_pay_time`>0 THEN `mem_id` END)) AS `first_pay_user_cnt`,
  8545. SUM(`order_suc_cnt`),
  8546. 0,
  8547. SUM(`order_cnt`-`order_suc_cnt`),
  8548. SUM(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `order_suc_cnt` ELSE 0 END) AS `reg_order_cnt`,
  8549. COUNT(DISTINCT(CASE WHEN `reg_days`=0 AND `sum_money`>0 THEN `mem_id` END)) AS `reg_pay_cnt`,
  8550. SUM(`sum_money`),
  8551. SUM(`sum_real_money`),
  8552. 0,
  8553. 0,
  8554. 0,
  8555. SUM(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `sum_money` ELSE 0.00 END) AS `reg_sum_money` ,
  8556. SUM(CASE WHEN `reg_days`=0 AND `auth_cnt`>0 THEN `sum_real_money` ELSE 0.00 END) AS `reg_real_sum_money`
  8557. FROM h_ldm_switch_temp;
  8558. ALTER TABLE h_day_switch ENABLE KEYS;
  8559. OPEN Tagcursor;
  8560. FETCH Tagcursor INTO Tregtime,Tappid,Tagentid,Tregday,Tusercnt;
  8561. WHILE Tflag<>1 DO
  8562. IF Tusercnt>0 THEN
  8563. CASE Tregday
  8564. WHEN 1 THEN
  8565. SET TdayFlag = 'day2';
  8566. WHEN 2 THEN
  8567. SET TdayFlag = 'day3';
  8568. WHEN 3 THEN
  8569. SET TdayFlag = 'day4';
  8570. WHEN 4 THEN
  8571. SET TdayFlag = 'day5';
  8572. WHEN 5 THEN
  8573. SET TdayFlag = 'day6';
  8574. WHEN 6 THEN
  8575. SET TdayFlag = 'day7';
  8576. WHEN 7 THEN
  8577. SET TdayFlag = 'day8';
  8578. WHEN 8 THEN
  8579. SET TdayFlag = 'day9';
  8580. WHEN 9 THEN
  8581. SET TdayFlag = 'day10';
  8582. WHEN 10 THEN
  8583. SET TdayFlag = 'day11';
  8584. WHEN 11 THEN
  8585. SET TdayFlag = 'day12';
  8586. WHEN 12 THEN
  8587. SET TdayFlag = 'day13';
  8588. WHEN 13 THEN
  8589. SET TdayFlag = 'day14';
  8590. WHEN 14 THEN
  8591. SET TdayFlag = 'day15';
  8592. WHEN 20 THEN
  8593. SET TdayFlag = 'day21';
  8594. WHEN 29 THEN
  8595. SET TdayFlag = 'day30';
  8596. WHEN 59 THEN
  8597. SET TdayFlag = 'day60';
  8598. END CASE;
  8599. SET Tdate = FROM_UNIXTIME(Tregtime,'%Y-%m-%d');
  8600. SET @sqlstr=CONCAT('update h_dga_switch SET ',TdayFlag,'=',Tusercnt,' WHERE date=',CONCAT('\'',Tdate,'\''), ' AND agent_id=',Tagentid,' AND app_id=',Tappid);
  8601. PREPARE stmt FROM @sqlstr;
  8602. EXECUTE stmt;
  8603. SET @sqlstr=CONCAT('update h_day_game_switch SET ',TdayFlag,'=',TdayFlag,'+',Tusercnt,' WHERE date=',CONCAT('\'',Tdate,'\''), ' AND app_id=',Tappid);
  8604. PREPARE stmt FROM @sqlstr;
  8605. EXECUTE stmt;
  8606. DEALLOCATE PREPARE stmt;
  8607. END IF;
  8608. FETCH Tagcursor INTO Tregtime,Tappid,Tagentid,Tregday,Tusercnt;
  8609. END WHILE;
  8610. CLOSE Tagcursor;
  8611. SET Tflag = 0;
  8612. OPEN Tacursor;
  8613. FETCH Tacursor INTO Tregtime,Tagentid,Tregday,Tusercnt;
  8614. WHILE Tflag<>1 DO
  8615. IF Tusercnt>0 THEN
  8616. CASE Tregday
  8617. WHEN 1 THEN
  8618. SET TdayFlag = 'day2';
  8619. WHEN 2 THEN
  8620. SET TdayFlag = 'day3';
  8621. WHEN 3 THEN
  8622. SET TdayFlag = 'day4';
  8623. WHEN 4 THEN
  8624. SET TdayFlag = 'day5';
  8625. WHEN 5 THEN
  8626. SET TdayFlag = 'day6';
  8627. WHEN 6 THEN
  8628. SET TdayFlag = 'day7';
  8629. WHEN 7 THEN
  8630. SET TdayFlag = 'day8';
  8631. WHEN 8 THEN
  8632. SET TdayFlag = 'day9';
  8633. WHEN 9 THEN
  8634. SET TdayFlag = 'day10';
  8635. WHEN 10 THEN
  8636. SET TdayFlag = 'day11';
  8637. WHEN 11 THEN
  8638. SET TdayFlag = 'day12';
  8639. WHEN 12 THEN
  8640. SET TdayFlag = 'day13';
  8641. WHEN 13 THEN
  8642. SET TdayFlag = 'day14';
  8643. WHEN 14 THEN
  8644. SET TdayFlag = 'day15';
  8645. WHEN 20 THEN
  8646. SET TdayFlag = 'day21';
  8647. WHEN 29 THEN
  8648. SET TdayFlag = 'day30';
  8649. WHEN 59 THEN
  8650. SET TdayFlag = 'day60';
  8651. END CASE;
  8652. SET Tdate = FROM_UNIXTIME(Tregtime,'%Y-%m-%d');
  8653. SET @sqlstr=CONCAT('update h_day_agent_switch SET ',TdayFlag,'=',Tusercnt,' WHERE date=',CONCAT('\'',Tdate,'\''), ' AND agent_id=',Tagentid);
  8654. PREPARE stmt FROM @sqlstr;
  8655. EXECUTE stmt;
  8656. SET @sqlstr=CONCAT('update h_day_switch SET ',TdayFlag,'=',TdayFlag,'+',Tusercnt,' WHERE date=',CONCAT('\'',Tdate,'\''));
  8657. PREPARE stmt FROM @sqlstr;
  8658. EXECUTE stmt;
  8659. DEALLOCATE PREPARE stmt;
  8660. END IF;
  8661. FETCH Tacursor INTO Tregtime,Tagentid,Tregday,Tusercnt;
  8662. END WHILE;
  8663. CLOSE Tacursor;
  8664. SET Tflag = 0;
  8665. END
  8666. ;;
  8667. delimiter ;
  8668. -- ----------------------------
  8669. -- Procedure structure for rundaily
  8670. -- ----------------------------
  8671. DROP PROCEDURE IF EXISTS `rundaily`;
  8672. delimiter ;;
  8673. CREATE PROCEDURE `rundaily`(IN `iday` date)
  8674. BEGIN
  8675. DECLARE Tflag INT DEFAULT 0;
  8676. DECLARE Tappid INT;
  8677. DECLARE Tdate DATE;
  8678. DECLARE Tregday INT;
  8679. DECLARE Tagentid INT;
  8680. DECLARE Tmobile_prefix INT DEFAULT 156;
  8681. DECLARE Tregcnt INT;
  8682. DECLARE Tregpaycnt INT;
  8683. DECLARE Tagent_cnt INT;
  8684. DECLARE Tordercnt INT;
  8685. DECLARE Tcnt INT;
  8686. DECLARE Tregtime BIGINT;
  8687. DECLARE T30starttime BIGINT;
  8688. DECLARE T7starttime BIGINT;
  8689. DECLARE Tsummoney DOUBLE(20,2);
  8690. DECLARE Tsharemoney DOUBLE(20,2);
  8691. DECLARE Tratetype INT;
  8692. DECLARE Tmoney1 DOUBLE(20,2);
  8693. DECLARE Tmoney2 DOUBLE(20,2);
  8694. DECLARE Tmoney3 DOUBLE(20,2);
  8695. DECLARE Tmoney4 DOUBLE(20,2);
  8696. DECLARE Tmoney5 DOUBLE(20,2);
  8697. DECLARE Tmoney6 DOUBLE(20,2);
  8698. DECLARE Tmoney7 DOUBLE(20,2);
  8699. DECLARE Tmoney8 DOUBLE(20,2);
  8700. DECLARE Tagentrate DOUBLE(5,4);
  8701. DECLARE Trate1 DOUBLE(5,4);
  8702. DECLARE Trate2 DOUBLE(5,4);
  8703. DECLARE Trate3 DOUBLE(5,4);
  8704. DECLARE Trate4 DOUBLE(5,4);
  8705. DECLARE Trate5 DOUBLE(5,4);
  8706. DECLARE Trate6 DOUBLE(5,4);
  8707. DECLARE Trate7 DOUBLE(5,4);
  8708. DECLARE Trate8 DOUBLE(5,4);
  8709. DECLARE Tusercnt INT;
  8710. DECLARE Tdevice_cnt INT;
  8711. DECLARE Tsetdate DATE DEFAULT iday;
  8712. DECLARE Tstarttime INT;
  8713. DECLARE Tendtime INT;
  8714. DECLARE TdayFlag varchar(20);
  8715. DECLARE TdevicedayFlag varchar(20);
  8716. DECLARE Tregdate DATE;
  8717. DECLARE TformatDate DATE DEFAULT date_format(Tsetdate,'%Y-%m-%d');
  8718. DECLARE Tagcursor CURSOR FOR SELECT reg_time,app_id,agent_id,mobile_prefix,reg_days,COUNT(DISTINCT(`mem_id`)) AS `user_cnt`,COUNT(DISTINCT(`device_id`)) AS `device_cnt` FROM `log_day_mem_temp` WHERE reg_days in (1,2,3,4,5,6,7,8,9,10,11,12,13,14,20,29,59) AND login_cnt > 0 GROUP BY app_id,agent_id,mobile_prefix,reg_days;
  8719. DECLARE Tacursor CURSOR FOR SELECT reg_time,agent_id,mobile_prefix,reg_days,COUNT(DISTINCT(`mem_id`)) AS `user_cnt`,COUNT(DISTINCT(`device_id`)) AS `device_cnt` FROM `log_day_mem_temp` WHERE reg_days in (1,2,3,4,5,6,7,8,9,10,11,12,13,14,20,29,59) AND login_cnt > 0 GROUP BY agent_id,mobile_prefix,reg_days;
  8720. DECLARE Tgcursor CURSOR FOR SELECT reg_time,app_id,mobile_prefix,reg_days,COUNT(DISTINCT(`mem_id`)) AS `user_cnt`,COUNT(DISTINCT(`device_id`)) AS `device_cnt` FROM `log_day_mem_temp` WHERE reg_days in (1,2,3,4,5,6,7,8,9,10,11,12,13,14,20,29,59) AND login_cnt > 0 GROUP BY app_id,mobile_prefix,reg_days;
  8721. DECLARE Tcursor CURSOR FOR SELECT reg_time,mobile_prefix,reg_days,COUNT(DISTINCT(`mem_id`)) AS `user_cnt`,COUNT(DISTINCT(`device_id`)) AS `device_cnt` FROM `log_day_mem_temp` WHERE reg_days in (1,2,3,4,5,6,7,8,9,10,11,12,13,14,20,29,59) AND login_cnt > 0 GROUP BY mobile_prefix,reg_days;
  8722. DECLARE Tagltvcursor CURSOR FOR SELECT reg_time,app_id,agent_id,mobile_prefix,reg_days,SUM(`sum_real_money`) AS `sum_money` FROM `log_day_mem_temp` WHERE reg_days in (0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,29,59,89,179) AND login_cnt > 0 GROUP BY app_id,agent_id,mobile_prefix,reg_days;
  8723. DECLARE CONTINUE HANDLER FOR SQLSTATE '02000' SET Tflag = 1;
  8724. SET Tstarttime=unix_timestamp(Tsetdate);
  8725. SET T30starttime=Tstarttime-86400*29;
  8726. SET T7starttime=Tstarttime-86400*6;
  8727. SET Tendtime=Tstarttime+86400;
  8728. SET @Ttable = CONCAT('h_log_day_mem_',date_format(Tsetdate,'%Y%m') );
  8729. CREATE TABLE IF NOT EXISTS `log_day_mem_temp` (
  8730. `id` int(11) NOT NULL AUTO_INCREMENT,
  8731. `date` date NOT NULL DEFAULT '0000-00-00' COMMENT '日期',
  8732. `mem_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '玩家ID',
  8733. `mobile_prefix` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '国家手机区号',
  8734. `task_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '任务ID',
  8735. `agent_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '归属渠道',
  8736. `app_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '游戏ID',
  8737. `reg_time` bigint(11) NOT NULL DEFAULT '0' COMMENT '玩家注册时间',
  8738. `reg_days` int(11) NOT NULL DEFAULT '0' COMMENT '注册天数',
  8739. `device_id` varchar(64) NOT NULL DEFAULT '' COMMENT '手机设备码',
  8740. `new_device` tinyint(2) NOT NULL DEFAULT '1' COMMENT '2 新设备 1 非新',
  8741. `device_cnt` int(11) NOT NULL DEFAULT '1' COMMENT '登陆的设备个数',
  8742. `login_cnt` int(11) NOT NULL DEFAULT '1' COMMENT '登陆次数',
  8743. `sum_money` double(12,2) NOT NULL DEFAULT '0.00' COMMENT '累计充值',
  8744. `sum_real_money` double(12,2) NOT NULL DEFAULT '0.00' COMMENT '自然流水金额',
  8745. `first_pay_time` bigint(11) NOT NULL DEFAULT '0' COMMENT '第一笔充值时间',
  8746. `last_pay_time` bigint(11) NOT NULL DEFAULT '0' COMMENT '最近充值时间',
  8747. `last_money` double(12,2) NOT NULL DEFAULT '0.00' COMMENT '最近充值金额',
  8748. `order_cnt` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '订单数量',
  8749. `order_suc_cnt` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '支付成功订单数量',
  8750. `last_login_ip` bigint(11) unsigned NOT NULL DEFAULT '0' COMMENT '玩家最近登陆ip',
  8751. `auth_cnt` int(11) NOT NULL DEFAULT '0' COMMENT '授权登陆次数',
  8752. `is_cpa` tinyint(4) unsigned NOT NULL DEFAULT '1' COMMENT '是否计算cpa 1 否 2是',
  8753. `is_auth` tinyint(4) unsigned NOT NULL DEFAULT '1' COMMENT '是否第三方注册 1否 2是',
  8754. `reg_app_id` int(11) NOT NULL DEFAULT '0' COMMENT '注册游戏ID',
  8755. PRIMARY KEY (`id`),
  8756. UNIQUE KEY `ldmt_date_mem_app_unique` (`date`,`mem_id`,`app_id`),
  8757. KEY `ldmt_ip_index` (`last_login_ip`),
  8758. KEY `ldmt_agent_index` (`agent_id`),
  8759. KEY `ldmt_app_index` (`app_id`)
  8760. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='玩家每日临时';
  8761. TRUNCATE `log_day_mem_temp`;
  8762. ALTER TABLE `log_day_mem_temp` DISABLE KEYS;
  8763. SET @ldmt_sql = "REPLACE INTO `log_day_mem_temp` (`date`,`mem_id`,`mobile_prefix`,`agent_id`,`app_id`,`reg_time`,`reg_days`,`device_id`,`new_device`,`device_cnt`,`login_cnt`,`sum_money`,`sum_real_money`,`first_pay_time`,`last_pay_time`,`last_money`,`order_cnt`,`order_suc_cnt`,`last_login_ip`,`auth_cnt`,`is_cpa`,`is_auth`,`reg_app_id`) SELECT `date`,`mem_id`,156,`agent_id`,`app_id`,`reg_time`,`reg_days`,`device_id`,1,`device_cnt`,`login_cnt`,`sum_money`,`sum_real_money`,`first_pay_time`,`last_pay_time`,`last_money`,`order_cnt`,`order_suc_cnt`,`last_login_ip`,0,is_cpa,is_auth,reg_app_id";
  8764. SET @ldmt_sql = concat(@ldmt_sql, ' FROM ',@Ttable,' where `date`=\'',Tsetdate,'\'');
  8765. PREPARE ldmt_sql_ex FROM @ldmt_sql;
  8766. EXECUTE ldmt_sql_ex;
  8767. ALTER TABLE log_day_mem_temp ENABLE KEYS;
  8768. DROP TABLE IF EXISTS log_dgac_temp;
  8769. CREATE TABLE IF NOT EXISTS `log_dgac_temp` (
  8770. `id` int(11) NOT NULL AUTO_INCREMENT,
  8771. `date` date NOT NULL DEFAULT '0000-00-00' COMMENT '日期',
  8772. `mobile_prefix` int(11) unsigned NOT NULL DEFAULT '156' COMMENT '国家手机区号',
  8773. `app_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '游戏ID',
  8774. `app_name` varchar(128) NOT NULL DEFAULT '' COMMENT '游戏名称',
  8775. `agent_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '渠道ID',
  8776. `agent_name` varchar(128) NOT NULL DEFAULT '' COMMENT '渠道名称',
  8777. `share_agent_cnt` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '分享人数',
  8778. `share_cnt` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '分享次数',
  8779. `click_cnt` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '点击数',
  8780. `click_user_cnt` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '点击人数',
  8781. `page_down_cnt` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '落地页点击数',
  8782. `active_cnt` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '游戏激活数',
  8783. `down_cnt` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '下载数',
  8784. `down_user_cnt` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '下载人数',
  8785. `real_down_cnt` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '真实下载数',
  8786. `user_cnt` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '活跃玩家数量',
  8787. `history_user_cnt` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '累计玩家数量',
  8788. `wau` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '最近7天活跃人数',
  8789. `mau` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '最近30天活跃人数',
  8790. `ip_cnt` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'IP数量',
  8791. `device_cnt` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '设备数量',
  8792. `history_device_cnt` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '累计设备数量',
  8793. `dwau` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '最近7天活跃设备数',
  8794. `dmau` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '最近30天活跃设备数',
  8795. `reg_cnt` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '注册玩家数',
  8796. `reg_device_cnt` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '注册设备数',
  8797. `reg_ip_cnt` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '注册IP数',
  8798. `pay_user_cnt` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '付费玩家数',
  8799. `order_cnt` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '成功订单数',
  8800. `fail_order_cnt` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '失败订单数',
  8801. `un_order_cnt` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '待支付订单数',
  8802. `reg_order_cnt` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '注册订单数',
  8803. `reg_pay_cnt` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '注册即付费人数',
  8804. `sum_money` decimal(20,2) NOT NULL DEFAULT '0.00' COMMENT '充值金额',
  8805. `sum_real_money` decimal(20,2) NOT NULL DEFAULT '0.00' COMMENT '自然流水金额',
  8806. `first_pay_cnt` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '首次付费人数',
  8807. `first_pay_money` decimal(20,2) NOT NULL DEFAULT '0.00' COMMENT '首付总额',
  8808. `reg_sum_money` decimal(20,2) NOT NULL DEFAULT '0.00' COMMENT '注册即付总额',
  8809. `reg_real_sum_money` decimal(20,2) NOT NULL DEFAULT '0.00' COMMENT '注册即付自然流水总额',
  8810. `cpa_cnt` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '计算cpa玩家数量',
  8811. `openid_cnt` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '第三方注册玩家数量',
  8812. `day2` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '二日留存量',
  8813. `day3` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '三日留存量',
  8814. `day4` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '四日留存量',
  8815. `day5` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '五日留存量',
  8816. `day6` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '六日留存量',
  8817. `day7` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '七日留存量',
  8818. `day8` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '八日留存量',
  8819. `day9` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '九日留存量',
  8820. `day10` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '十日留存量',
  8821. `day11` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '11日留存量',
  8822. `day12` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '12日留存量',
  8823. `day13` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '13日留存量',
  8824. `day14` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '14日留存量',
  8825. `day15` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '15日留存量',
  8826. `day21` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '21日留存量',
  8827. `day30` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '30日留存量',
  8828. `day60` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '60日留存量',
  8829. `device_day2` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '二日留存量',
  8830. `device_day3` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '三日留存量',
  8831. `device_day4` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '四日留存量',
  8832. `device_day5` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '五日留存量',
  8833. `device_day6` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '六日留存量',
  8834. `device_day7` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '七日留存量',
  8835. `device_day8` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '八日留存量',
  8836. `device_day9` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '九日留存量',
  8837. `device_day10` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '十日留存量',
  8838. `device_day11` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '11日留存量',
  8839. `device_day12` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '12日留存量',
  8840. `device_day13` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '13日留存量',
  8841. `device_day14` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '14日留存量',
  8842. `device_day15` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '15日留存量',
  8843. `device_day21` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '21日留存量',
  8844. `device_day30` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '30日留存量',
  8845. `device_day60` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '60日留存量',
  8846. PRIMARY KEY (`id`) USING BTREE,
  8847. UNIQUE KEY `dga_dga_unique` (`date`,`app_id`,`agent_id`) USING BTREE,
  8848. KEY `dga_game_index` (`app_id`) USING BTREE,
  8849. KEY `dga_agent_index` (`agent_id`) USING BTREE
  8850. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT COMMENT='每日游戏推广员统计表';
  8851. TRUNCATE `log_dgac_temp`;
  8852. ALTER TABLE log_dgac_temp DISABLE KEYS;
  8853. REPLACE INTO `log_dgac_temp`
  8854. (
  8855. `date`,
  8856. `app_id`,
  8857. `agent_id`,
  8858. `mobile_prefix`,
  8859. `active_cnt`,
  8860. `user_cnt`,
  8861. `history_user_cnt`,
  8862. `ip_cnt`,
  8863. `device_cnt`,
  8864. `history_device_cnt`,
  8865. `reg_cnt`,
  8866. `reg_device_cnt`,
  8867. `reg_ip_cnt`,
  8868. `pay_user_cnt`,
  8869. `order_cnt`,
  8870. `fail_order_cnt`,
  8871. `un_order_cnt`,
  8872. `reg_order_cnt`,
  8873. `reg_pay_cnt`,
  8874. `sum_money`,
  8875. `sum_real_money`,
  8876. `first_pay_cnt`,
  8877. `first_pay_money`,
  8878. `reg_sum_money`,
  8879. `reg_real_sum_money`,
  8880. `cpa_cnt`,
  8881. `openid_cnt`
  8882. )
  8883. SELECT
  8884. IFNULL(ldmt.`date`,TformatDate) AS `date`,
  8885. IFNULL(ldmt.`app_id`,0) AS `app_id`,
  8886. IFNULL(ldmt.`agent_id`,0) AS `agent_id`,
  8887. IFNULL(ldmt.mobile_prefix,Tmobile_prefix) AS `mobile_prefix`,
  8888. COUNT(DISTINCT(ldmt.`mem_id`)) AS `active_cnt`,
  8889. COUNT(DISTINCT(CASE WHEN ldmt.`mem_id` > 0 THEN `mem_id` END)) AS `user_cnt`,
  8890. 0 AS `history_user_cnt`,
  8891. COUNT(DISTINCT(ldmt.`last_login_ip`)) AS `ip_cnt`,
  8892. COUNT(DISTINCT(ldmt.`device_id`)) AS `device_cnt` ,
  8893. 0 AS `history_device_cnt` ,
  8894. COUNT(DISTINCT(CASE WHEN ldmt.`reg_days`=0 AND ldmt.`mem_id` > 0 AND ldmt.`app_id` = ldmt.`reg_app_id` THEN `mem_id` END)) AS `reg_cnt` ,
  8895. COUNT(DISTINCT(CASE WHEN ldmt.`reg_days`=0 AND ldmt.`device_id` <> '' AND ldmt.`app_id` = ldmt.`reg_app_id` THEN `device_id` END)) AS `reg_device_cnt`,
  8896. COUNT(DISTINCT(CASE WHEN ldmt.`reg_days`=0 AND ldmt.`app_id` = ldmt.`reg_app_id` THEN `last_login_ip` END)) AS `reg_ip_cnt`,
  8897. COUNT(DISTINCT(CASE WHEN ldmt.`sum_money`>0 THEN `mem_id` END)) AS `pay_user_cnt`,
  8898. IFNULL(SUM(ldmt.`order_suc_cnt`),0) AS `order_cnt`,
  8899. 0 AS `fail_order_cnt` ,
  8900. 0 AS `un_order_cnt` ,
  8901. IFNULL(SUM(CASE WHEN ldmt.`reg_days`=0 AND ldmt.`app_id` = ldmt.`reg_app_id` THEN ldmt.`order_suc_cnt` ELSE 0 END),0) AS `reg_order_cnt`,
  8902. COUNT(DISTINCT(CASE WHEN ldmt.`reg_days`=0 AND ldmt.`sum_money`>0 AND ldmt.`app_id` = ldmt.`reg_app_id` THEN ldmt.`mem_id` END)) AS `reg_pay_cnt`,
  8903. IFNULL(SUM(ldmt.`sum_money`),0) AS `sum_money` ,
  8904. SUM(ldmt.`sum_real_money`) AS `sum_real_money` ,
  8905. COUNT(DISTINCT(CASE WHEN ldmt.`first_pay_time`>0 THEN ldmt.`mem_id` END)) AS `first_pay_cnt`,
  8906. IFNULL(SUM(CASE WHEN ldmt.`first_pay_time`>0 THEN ldmt.`sum_money` ELSE 0.00 END),0.00) AS `first_pay_money` ,
  8907. IFNULL(SUM(CASE WHEN ldmt.`reg_days`=0 AND ldmt.`app_id` = ldmt.`reg_app_id` THEN ldmt.`sum_money` ELSE 0.00 END),0.00) AS `reg_sum_money` ,
  8908. IFNULL(SUM(CASE WHEN ldmt.`reg_days`=0 AND ldmt.`app_id` = ldmt.`reg_app_id` THEN ldmt.`sum_real_money` ELSE 0.00 END),0.00) AS `reg_real_sum_money`,
  8909. COUNT(DISTINCT(CASE WHEN ldmt.`reg_days`=0 AND ldmt.`mem_id` > 0 AND ldmt.is_cpa = 2 AND ldmt.`app_id` = ldmt.`reg_app_id` THEN `mem_id` END)) AS `cpa_cnt` ,
  8910. COUNT(DISTINCT(CASE WHEN ldmt.`reg_days`=0 AND ldmt.`mem_id` > 0 AND ldmt.is_auth = 2 AND ldmt.`app_id` = ldmt.`reg_app_id` THEN `mem_id` END)) AS `openid_cnt`
  8911. FROM log_day_mem_temp ldmt
  8912. GROUP BY agent_id, app_id;
  8913. ALTER TABLE log_dgac_temp ENABLE KEYS;
  8914. ALTER TABLE dw_day_game_agent DISABLE KEYS;
  8915. REPLACE INTO `dw_day_game_agent`
  8916. (
  8917. `date`,
  8918. `app_id`,
  8919. `app_name`,
  8920. `agent_id`,
  8921. `agent_name`,
  8922. `mobile_prefix`,
  8923. `share_cnt`,
  8924. `click_cnt`,
  8925. `click_user_cnt`,
  8926. `page_down_cnt`,
  8927. `active_cnt`,
  8928. `down_cnt`,
  8929. `down_user_cnt`,
  8930. `real_down_cnt`,
  8931. `user_cnt`,
  8932. `history_user_cnt`,
  8933. `wau`,
  8934. `mau`,
  8935. `ip_cnt`,
  8936. `device_cnt`,
  8937. `history_device_cnt`,
  8938. `dwau`,
  8939. `dmau`,
  8940. `reg_cnt`,
  8941. `reg_device_cnt`,
  8942. `reg_ip_cnt`,
  8943. `pay_user_cnt`,
  8944. `order_cnt`,
  8945. `fail_order_cnt`,
  8946. `un_order_cnt`,
  8947. `reg_order_cnt`,
  8948. `reg_pay_cnt`,
  8949. `sum_money`,
  8950. `sum_real_money`,
  8951. `first_pay_cnt`,
  8952. `first_pay_money`,
  8953. `reg_sum_money`,
  8954. `reg_real_sum_money`,
  8955. `cpa_cnt`,
  8956. `openid_cnt`
  8957. )
  8958. SELECT
  8959. IFNULL(`date`,TformatDate) AS `date`,
  8960. IFNULL(`app_id`,0) AS `app_id`,
  8961. IFNULL(`app_name`,'') AS `app_name`,
  8962. IFNULL(`agent_id`,0) AS `agent_id`,
  8963. IFNULL(`agent_name`,'') AS `agent_name`,
  8964. IFNULL(mobile_prefix,Tmobile_prefix) AS `mobile_prefix`,
  8965. IFNULL(`share_cnt`,0) AS `share_cnt`,
  8966. IFNULL(`click_cnt`,0) AS `click_cnt`,
  8967. IFNULL(`click_user_cnt`,0) AS `click_user_cnt`,
  8968. IFNULL(`page_down_cnt`,0) AS `page_down_cnt`,
  8969. IFNULL(`active_cnt`,0) AS `active_cnt`,
  8970. IFNULL(`down_cnt`,0) AS `down_cnt`,
  8971. IFNULL(`down_user_cnt`,0) AS `down_user_cnt`,
  8972. IFNULL(`real_down_cnt`,0) AS `real_down_cnt`,
  8973. IFNULL(`user_cnt`,0) AS `user_cnt`,
  8974. IFNULL(`history_user_cnt`,0) AS `history_user_cnt`,
  8975. IFNULL(`wau`,0) AS `wau`,
  8976. IFNULL(`mau`,0) AS `mau`,
  8977. IFNULL(`ip_cnt`,0) AS `ip_cnt`,
  8978. IFNULL(`device_cnt`,0) AS `device_cnt`,
  8979. IFNULL(`history_device_cnt`,0) AS `history_device_cnt`,
  8980. IFNULL(`dwau`,0) AS `dwau`,
  8981. IFNULL(`dmau`,0) AS `dmau`,
  8982. IFNULL(`reg_cnt`,0) AS `reg_cnt`,
  8983. IFNULL(`reg_device_cnt`,0) AS `reg_device_cnt`,
  8984. IFNULL(`reg_ip_cnt`,0) AS `reg_ip_cnt`,
  8985. IFNULL(`pay_user_cnt`,0) AS `pay_user_cnt`,
  8986. IFNULL(`order_cnt`,0) AS `order_cnt`,
  8987. IFNULL(`fail_order_cnt`,0) AS `fail_order_cnt`,
  8988. IFNULL(`un_order_cnt`,0) AS `un_order_cnt`,
  8989. IFNULL(`reg_order_cnt`,0) AS `reg_order_cnt`,
  8990. IFNULL(`reg_pay_cnt`,0) AS `reg_pay_cnt`,
  8991. IFNULL(`sum_money`,0.00) AS `sum_money`,
  8992. IFNULL(`sum_real_money`,0.00) AS `sum_real_money`,
  8993. IFNULL(`first_pay_cnt`,0) AS `first_pay_cnt`,
  8994. IFNULL(`first_pay_money`,0.00) AS `first_pay_money`,
  8995. IFNULL(`reg_sum_money`,0.00) AS `reg_sum_money`,
  8996. IFNULL(`reg_real_sum_money`,0.00) AS `reg_real_sum_money`,
  8997. IFNULL(`cpa_cnt`,0) AS `cpa_cnt`,
  8998. IFNULL(`openid_cnt`,0) AS `openid_cnt`
  8999. FROM log_dgac_temp;
  9000. ALTER TABLE dw_day_game_agent ENABLE KEYS;
  9001. ALTER TABLE dw_day_agent DISABLE KEYS;
  9002. REPLACE INTO `dw_day_agent`
  9003. (
  9004. `date`,
  9005. `agent_id`,
  9006. `mobile_prefix`,
  9007. `app_cnt`,
  9008. `active_cnt`,
  9009. `user_cnt`,
  9010. `history_user_cnt`,
  9011. `ip_cnt`,
  9012. `device_cnt`,
  9013. `history_device_cnt`,
  9014. `reg_cnt`,
  9015. `reg_device_cnt`,
  9016. `reg_ip_cnt`,
  9017. `pay_user_cnt`,
  9018. `order_cnt`,
  9019. `fail_order_cnt`,
  9020. `un_order_cnt`,
  9021. `reg_order_cnt`,
  9022. `reg_pay_cnt`,
  9023. `sum_money`,
  9024. `sum_real_money`,
  9025. `first_pay_cnt`,
  9026. `first_pay_money`,
  9027. `reg_sum_money`,
  9028. `reg_real_sum_money`,
  9029. `cpa_cnt`,
  9030. `openid_cnt`
  9031. )
  9032. SELECT
  9033. IFNULL(ldmt.`date`,TformatDate) AS `date`,
  9034. ldmt.`agent_id` AS `agent_id`,
  9035. IFNULL(ldmt.mobile_prefix,Tmobile_prefix) AS `mobile_prefix`,
  9036. COUNT(DISTINCT(ldmt.app_id)) AS `app_cnt`,
  9037. COUNT(DISTINCT(ldmt.`mem_id`)) AS `active_cnt`,
  9038. COUNT(DISTINCT(CASE WHEN ldmt.`mem_id` > 0 THEN `mem_id` END)) AS `user_cnt`,
  9039. 0 AS `history_user_cnt`,
  9040. COUNT(DISTINCT(ldmt.`last_login_ip`)) AS `ip_cnt`,
  9041. COUNT(DISTINCT(ldmt.`device_id`)) AS `device_cnt` ,
  9042. 0 AS `history_device_cnt` ,
  9043. COUNT(DISTINCT(CASE WHEN ldmt.`reg_days`=0 AND ldmt.`mem_id` > 0 AND ldmt.`app_id` = ldmt.`reg_app_id` THEN `mem_id` END)) AS `reg_cnt` ,
  9044. COUNT(DISTINCT(CASE WHEN ldmt.`reg_days`=0 AND ldmt.`device_id` <> '' AND ldmt.`app_id` = ldmt.`reg_app_id` THEN `device_id` END)) AS `reg_device_cnt`,
  9045. COUNT(DISTINCT(CASE WHEN ldmt.`reg_days`=0 AND ldmt.`app_id` = ldmt.`reg_app_id` THEN `last_login_ip` END)) AS `reg_ip_cnt`,
  9046. COUNT(DISTINCT(CASE WHEN ldmt.`sum_money`>0 THEN `mem_id` END)) AS `pay_user_cnt`,
  9047. IFNULL(SUM(ldmt.`order_suc_cnt`),0) AS `order_cnt`,
  9048. 0 AS `fail_order_cnt` ,
  9049. 0 AS `un_order_cnt` ,
  9050. IFNULL(SUM(CASE WHEN ldmt.`reg_days`=0 THEN ldmt.`order_suc_cnt` ELSE 0 END),0) AS `reg_order_cnt`,
  9051. COUNT(DISTINCT(CASE WHEN ldmt.`reg_days`=0 AND ldmt.`sum_money`>0 THEN ldmt.`mem_id` END)) AS `reg_pay_cnt`,
  9052. IFNULL(SUM(ldmt.`sum_money`),0.00) AS `sum_money` ,
  9053. IFNULL(SUM(ldmt.`sum_real_money`),0.00) AS `sum_real_money` ,
  9054. COUNT(DISTINCT(CASE WHEN ldmt.`first_pay_time`>0 THEN ldmt.`mem_id` END)) AS `first_pay_cnt`,
  9055. IFNULL(SUM(CASE WHEN ldmt.`first_pay_time`>0 THEN ldmt.`sum_money` ELSE 0.00 END),0.00) AS `first_pay_money` ,
  9056. IFNULL(SUM(CASE WHEN ldmt.`reg_days`=0 AND ldmt.`app_id` = ldmt.`reg_app_id` THEN ldmt.`sum_money` ELSE 0.00 END),0.00) AS `reg_sum_money` ,
  9057. IFNULL(SUM(CASE WHEN ldmt.`reg_days`=0 AND ldmt.`app_id` = ldmt.`reg_app_id` THEN ldmt.`sum_real_money` ELSE 0.00 END),0.00) AS `reg_real_sum_money`,
  9058. COUNT(DISTINCT(CASE WHEN ldmt.`reg_days`=0 AND ldmt.`mem_id` > 0 AND ldmt.is_cpa = 2 AND ldmt.`app_id` = ldmt.`reg_app_id` THEN `mem_id` END)) AS `cpa_cnt` ,
  9059. COUNT(DISTINCT(CASE WHEN ldmt.`reg_days`=0 AND ldmt.`mem_id` > 0 AND ldmt.is_auth = 2 AND ldmt.`app_id` = ldmt.`reg_app_id` THEN `mem_id` END)) AS `openid_cnt`
  9060. FROM log_day_mem_temp ldmt
  9061. GROUP BY agent_id;
  9062. ALTER TABLE dw_day_agent ENABLE KEYS;
  9063. ALTER TABLE dw_day_game DISABLE KEYS;
  9064. REPLACE INTO `dw_day_game`
  9065. (
  9066. `date`,
  9067. `app_id`,
  9068. `app_name`,
  9069. `agent_cnt`,
  9070. `mobile_prefix`,
  9071. `share_agent_cnt`,
  9072. `share_cnt`,
  9073. `click_cnt`,
  9074. `click_user_cnt`,
  9075. `page_down_cnt`,
  9076. `active_cnt`,
  9077. `down_cnt`,
  9078. `down_user_cnt`,
  9079. `real_down_cnt`,
  9080. `user_cnt`,
  9081. `history_user_cnt`,
  9082. `wau`,
  9083. `mau`,
  9084. `ip_cnt`,
  9085. `device_cnt`,
  9086. `history_device_cnt`,
  9087. `dwau`,
  9088. `dmau`,
  9089. `reg_cnt`,
  9090. `reg_device_cnt`,
  9091. `reg_ip_cnt`,
  9092. `pay_user_cnt`,
  9093. `order_cnt`,
  9094. `fail_order_cnt`,
  9095. `un_order_cnt`,
  9096. `reg_order_cnt`,
  9097. `reg_pay_cnt`,
  9098. `sum_money`,
  9099. `sum_real_money`,
  9100. `first_pay_cnt`,
  9101. `first_pay_money`,
  9102. `reg_sum_money`,
  9103. `reg_real_sum_money`,
  9104. `cpa_cnt`,
  9105. `openid_cnt`
  9106. )
  9107. SELECT
  9108. IFNULL(`date`,TformatDate) AS `date`,
  9109. IFNULL(`app_id`,0) AS `app_id`,
  9110. IFNULL(`app_name`,'') AS `app_name`,
  9111. COUNT(DISTINCT(agent_id)) AS `agent_cnt`,
  9112. IFNULL(`mobile_prefix`,Tmobile_prefix) AS `mobile_prefix`,
  9113. COUNT(DISTINCT(CASE WHEN share_cnt>0 THEN `agent_id` END)) AS `share_agent_cnt`,
  9114. SUM(`share_cnt`) AS `share_cnt`,
  9115. SUM(`click_cnt`) AS `click_cnt`,
  9116. SUM(`click_user_cnt`) AS `click_user_cnt`,
  9117. SUM(`page_down_cnt`) AS `page_down_cnt`,
  9118. SUM(`active_cnt`) AS `active_cnt`,
  9119. SUM(`down_cnt`) AS `down_cnt`,
  9120. SUM(`down_user_cnt`) AS `down_user_cnt`,
  9121. SUM(`real_down_cnt`) AS `real_down_cnt`,
  9122. SUM(`user_cnt`) AS `user_cnt`,
  9123. SUM(`history_user_cnt`) AS `history_user_cnt`,
  9124. SUM(`wau`) AS `wau`,
  9125. SUM(`mau`) AS `mau`,
  9126. SUM(`ip_cnt`) AS `ip_cnt`,
  9127. SUM(`device_cnt`) AS `device_cnt`,
  9128. SUM(`history_device_cnt`) AS `history_device_cnt`,
  9129. SUM(`dwau`) AS `dwau`,
  9130. SUM(`dmau`) AS `dmau`,
  9131. SUM(`reg_cnt`) AS `reg_cnt`,
  9132. SUM(`reg_device_cnt`) AS `reg_device_cnt`,
  9133. SUM(`reg_ip_cnt`) AS `reg_ip_cnt`,
  9134. SUM(`pay_user_cnt`) AS `pay_user_cnt`,
  9135. IFNULL(SUM(`order_cnt`),0) AS `order_cnt`,
  9136. SUM(`fail_order_cnt`) AS `fail_order_cnt`,
  9137. SUM(`un_order_cnt`) AS `un_order_cnt`,
  9138. IFNULL(SUM(`reg_order_cnt`),0) AS `reg_order_cnt`,
  9139. SUM(`reg_pay_cnt`) AS `reg_pay_cnt`,
  9140. IFNULL(SUM(`sum_money`),0.00) AS `sum_money`,
  9141. IFNULL(SUM(`sum_real_money`),0.00) AS `sum_real_money`,
  9142. SUM(`first_pay_cnt`) AS `first_pay_cnt`,
  9143. IFNULL(SUM(`first_pay_money`),0.00) AS `first_pay_money`,
  9144. IFNULL(SUM(`reg_sum_money`),0.00) AS `reg_sum_money`,
  9145. IFNULL(SUM(`reg_real_sum_money`),0.00) AS `reg_real_sum_money`,
  9146. IFNULL(SUM(`cpa_cnt`),0) AS `cpa_cnt`,
  9147. IFNULL(SUM(`openid_cnt`),0) AS `openid_cnt`
  9148. FROM log_dgac_temp
  9149. GROUP BY app_id,mobile_prefix;
  9150. ALTER TABLE dw_day_game ENABLE KEYS;
  9151. ALTER TABLE dw_day DISABLE KEYS;
  9152. REPLACE INTO `dw_day`
  9153. (
  9154. `date`,
  9155. `mobile_prefix`,
  9156. `agent_cnt`,
  9157. `app_cnt`,
  9158. `active_cnt`,
  9159. `user_cnt`,
  9160. `history_user_cnt`,
  9161. `ip_cnt`,
  9162. `device_cnt`,
  9163. `history_device_cnt`,
  9164. `reg_cnt`,
  9165. `reg_device_cnt`,
  9166. `reg_ip_cnt`,
  9167. `pay_user_cnt`,
  9168. `order_cnt`,
  9169. `fail_order_cnt`,
  9170. `un_order_cnt`,
  9171. `reg_order_cnt`,
  9172. `reg_pay_cnt`,
  9173. `sum_money`,
  9174. `sum_real_money`,
  9175. `first_pay_cnt`,
  9176. `first_pay_money`,
  9177. `reg_sum_money`,
  9178. `reg_real_sum_money`,
  9179. `cpa_cnt`,
  9180. `openid_cnt`
  9181. )
  9182. SELECT
  9183. IFNULL(ldmt.`date`,TformatDate) AS `date`,
  9184. IFNULL(ldmt.mobile_prefix,Tmobile_prefix) AS `mobile_prefix`,
  9185. COUNT(DISTINCT(ldmt.agent_id)) AS `agent_cnt`,
  9186. COUNT(DISTINCT(ldmt.app_id)) AS `app_cnt`,
  9187. COUNT(DISTINCT(ldmt.`mem_id`)) AS `active_cnt`,
  9188. COUNT(DISTINCT(CASE WHEN ldmt.`mem_id` > 0 THEN `mem_id` END)) AS `user_cnt`,
  9189. 0 AS `history_user_cnt`,
  9190. COUNT(DISTINCT(ldmt.`last_login_ip`)) AS `ip_cnt`,
  9191. COUNT(DISTINCT(ldmt.`device_id`)) AS `device_cnt` ,
  9192. 0 AS `history_device_cnt` ,
  9193. COUNT(DISTINCT(CASE WHEN ldmt.`reg_days`=0 AND ldmt.`mem_id` > 0 THEN `mem_id` END)) AS `reg_cnt` ,
  9194. COUNT(DISTINCT(CASE WHEN ldmt.`reg_days`=0 AND ldmt.`device_id` <> '' THEN `device_id` END)) AS `reg_device_cnt`,
  9195. COUNT(DISTINCT(CASE WHEN ldmt.`reg_days`=0 THEN `last_login_ip` END)) AS `reg_ip_cnt`,
  9196. COUNT(DISTINCT(CASE WHEN ldmt.`sum_money`>0 THEN `mem_id` END)) AS `pay_user_cnt`,
  9197. IFNULL(SUM(ldmt.`order_suc_cnt`),0) AS `order_cnt`,
  9198. 0 AS `fail_order_cnt` ,
  9199. 0 AS `un_order_cnt` ,
  9200. IFNULL(SUM(CASE WHEN ldmt.`reg_days`=0 THEN ldmt.`order_suc_cnt` ELSE 0 END),0) AS `reg_order_cnt`,
  9201. COUNT(DISTINCT(CASE WHEN ldmt.`reg_days`=0 AND ldmt.`sum_money`>0 THEN ldmt.`mem_id` END)) AS `reg_pay_cnt`,
  9202. IFNULL(SUM(ldmt.`sum_money`),0.00) AS `sum_money` ,
  9203. IFNULL(SUM(ldmt.`sum_real_money`),0.00) AS `sum_real_money` ,
  9204. COUNT(DISTINCT(CASE WHEN ldmt.`first_pay_time`>0 THEN ldmt.`mem_id` END)) AS `first_pay_cnt`,
  9205. IFNULL(SUM(CASE WHEN ldmt.`first_pay_time`>0 THEN ldmt.`sum_money` ELSE 0.00 END),0.00) AS `first_pay_money` ,
  9206. IFNULL(SUM(CASE WHEN ldmt.`reg_days`=0 THEN ldmt.`sum_money` ELSE 0.00 END),0.00) AS `reg_sum_money` ,
  9207. IFNULL(SUM(CASE WHEN ldmt.`reg_days`=0 THEN ldmt.`sum_real_money` ELSE 0.00 END),0.00) AS `reg_real_sum_money`,
  9208. COUNT(DISTINCT(CASE WHEN ldmt.`reg_days`=0 AND ldmt.`mem_id` > 0 AND is_cpa=2 THEN `mem_id` END)) AS `cpa_cnt`,
  9209. COUNT(DISTINCT(CASE WHEN ldmt.`reg_days`=0 AND ldmt.`mem_id` > 0 AND is_auth=2 THEN `mem_id` END)) AS `openid_cnt`
  9210. FROM log_day_mem_temp ldmt;
  9211. ALTER TABLE dw_day_agent ENABLE KEYS;
  9212. SET Tflag=0;
  9213. OPEN Tagcursor;
  9214. FETCH Tagcursor INTO Tregtime,Tappid,Tagentid,Tmobile_prefix,Tregday,Tusercnt,Tdevice_cnt;
  9215. WHILE Tflag<>1 DO
  9216. IF Tusercnt>0 OR Tdevice_cnt>0 THEN
  9217. CASE Tregday
  9218. WHEN 1 THEN
  9219. SET TdayFlag = 'day2';
  9220. SET TdevicedayFlag = 'device_day2';
  9221. SET Tdate = date_sub(Tsetdate,interval 1 day);
  9222. WHEN 2 THEN
  9223. SET TdayFlag = 'day3';
  9224. SET TdevicedayFlag = 'device_day3';
  9225. SET Tdate = date_sub(Tsetdate,interval 2 day);
  9226. WHEN 3 THEN
  9227. SET TdayFlag = 'day4';
  9228. SET TdevicedayFlag = 'device_day4';
  9229. SET Tdate = date_sub(Tsetdate,interval 3 day);
  9230. WHEN 4 THEN
  9231. SET TdayFlag = 'day5';
  9232. SET TdevicedayFlag = 'device_day5';
  9233. SET Tdate = date_sub(Tsetdate,interval 4 day);
  9234. WHEN 5 THEN
  9235. SET TdayFlag = 'day6';
  9236. SET TdevicedayFlag = 'device_day6';
  9237. SET Tdate = date_sub(Tsetdate,interval 5 day);
  9238. WHEN 6 THEN
  9239. SET TdayFlag = 'day7';
  9240. SET TdevicedayFlag = 'device_day7';
  9241. SET Tdate = date_sub(Tsetdate,interval 6 day);
  9242. WHEN 7 THEN
  9243. SET TdayFlag = 'day8';
  9244. SET TdevicedayFlag = 'device_day8';
  9245. SET Tdate = date_sub(Tsetdate,interval 7 day);
  9246. WHEN 8 THEN
  9247. SET TdayFlag = 'day9';
  9248. SET TdevicedayFlag = 'device_day9';
  9249. SET Tdate = date_sub(Tsetdate,interval 8 day);
  9250. WHEN 9 THEN
  9251. SET TdayFlag = 'day10';
  9252. SET TdevicedayFlag = 'device_day10';
  9253. SET Tdate = date_sub(Tsetdate,interval 9 day);
  9254. WHEN 10 THEN
  9255. SET TdayFlag = 'day11';
  9256. SET TdevicedayFlag = 'device_day11';
  9257. SET Tdate = date_sub(Tsetdate,interval 10 day);
  9258. WHEN 11 THEN
  9259. SET TdayFlag = 'day12';
  9260. SET TdevicedayFlag = 'device_day12';
  9261. SET Tdate = date_sub(Tsetdate,interval 11 day);
  9262. WHEN 12 THEN
  9263. SET TdayFlag = 'day13';
  9264. SET TdevicedayFlag = 'device_day13';
  9265. SET Tdate = date_sub(Tsetdate,interval 12 day);
  9266. WHEN 13 THEN
  9267. SET TdayFlag = 'day14';
  9268. SET TdevicedayFlag = 'device_day14';
  9269. SET Tdate = date_sub(Tsetdate,interval 13 day);
  9270. WHEN 14 THEN
  9271. SET TdayFlag = 'day15';
  9272. SET TdevicedayFlag = 'device_day15';
  9273. SET Tdate = date_sub(Tsetdate,interval 14 day);
  9274. WHEN 20 THEN
  9275. SET TdayFlag = 'day21';
  9276. SET TdevicedayFlag = 'device_day21';
  9277. SET Tdate = date_sub(Tsetdate,interval 20 day);
  9278. WHEN 29 THEN
  9279. SET TdayFlag = 'day30';
  9280. SET TdevicedayFlag = 'device_day30';
  9281. SET Tdate = date_sub(Tsetdate,interval 29 day);
  9282. WHEN 59 THEN
  9283. SET TdayFlag = 'day60';
  9284. SET TdevicedayFlag = 'device_day60';
  9285. SET Tdate = date_sub(Tsetdate,interval 59 day);
  9286. END CASE;
  9287. SET @sqlstr=CONCAT('update dw_day_game_agent SET ',TdayFlag,'=',Tusercnt,',',TdevicedayFlag,'=',Tdevice_cnt,' WHERE date=',CONCAT('\'',Tdate,'\''), ' AND agent_id=',Tagentid,' AND app_id=',Tappid, ' AND mobile_prefix=',Tmobile_prefix);
  9288. PREPARE stmt FROM @sqlstr;
  9289. EXECUTE stmt;
  9290. DEALLOCATE PREPARE stmt;
  9291. END IF;
  9292. FETCH Tagcursor INTO Tregtime,Tappid,Tagentid,Tmobile_prefix,Tregday,Tusercnt,Tdevice_cnt;
  9293. END WHILE;
  9294. CLOSE Tagcursor;
  9295. SET Tflag=0;
  9296. OPEN Tacursor;
  9297. FETCH Tacursor INTO Tregtime,Tagentid,Tmobile_prefix,Tregday,Tusercnt,Tdevice_cnt;
  9298. WHILE Tflag<>1 DO
  9299. IF Tusercnt>0 OR Tdevice_cnt>0 THEN
  9300. CASE Tregday
  9301. WHEN 1 THEN
  9302. SET TdayFlag = 'day2';
  9303. SET TdevicedayFlag = 'device_day2';
  9304. SET Tdate = date_sub(Tsetdate,interval 1 day);
  9305. WHEN 2 THEN
  9306. SET TdayFlag = 'day3';
  9307. SET TdevicedayFlag = 'device_day3';
  9308. SET Tdate = date_sub(Tsetdate,interval 2 day);
  9309. WHEN 3 THEN
  9310. SET TdayFlag = 'day4';
  9311. SET TdevicedayFlag = 'device_day4';
  9312. SET Tdate = date_sub(Tsetdate,interval 3 day);
  9313. WHEN 4 THEN
  9314. SET TdayFlag = 'day5';
  9315. SET TdevicedayFlag = 'device_day5';
  9316. SET Tdate = date_sub(Tsetdate,interval 4 day);
  9317. WHEN 5 THEN
  9318. SET TdayFlag = 'day6';
  9319. SET TdevicedayFlag = 'device_day6';
  9320. SET Tdate = date_sub(Tsetdate,interval 5 day);
  9321. WHEN 6 THEN
  9322. SET TdayFlag = 'day7';
  9323. SET TdevicedayFlag = 'device_day7';
  9324. SET Tdate = date_sub(Tsetdate,interval 6 day);
  9325. WHEN 7 THEN
  9326. SET TdayFlag = 'day8';
  9327. SET TdevicedayFlag = 'device_day8';
  9328. SET Tdate = date_sub(Tsetdate,interval 7 day);
  9329. WHEN 8 THEN
  9330. SET TdayFlag = 'day9';
  9331. SET TdevicedayFlag = 'device_day9';
  9332. SET Tdate = date_sub(Tsetdate,interval 8 day);
  9333. WHEN 9 THEN
  9334. SET TdayFlag = 'day10';
  9335. SET TdevicedayFlag = 'device_day10';
  9336. SET Tdate = date_sub(Tsetdate,interval 9 day);
  9337. WHEN 10 THEN
  9338. SET TdayFlag = 'day11';
  9339. SET TdevicedayFlag = 'device_day11';
  9340. SET Tdate = date_sub(Tsetdate,interval 10 day);
  9341. WHEN 11 THEN
  9342. SET TdayFlag = 'day12';
  9343. SET TdevicedayFlag = 'device_day12';
  9344. SET Tdate = date_sub(Tsetdate,interval 11 day);
  9345. WHEN 12 THEN
  9346. SET TdayFlag = 'day13';
  9347. SET TdevicedayFlag = 'device_day13';
  9348. SET Tdate = date_sub(Tsetdate,interval 12 day);
  9349. WHEN 13 THEN
  9350. SET TdayFlag = 'day14';
  9351. SET TdevicedayFlag = 'device_day14';
  9352. SET Tdate = date_sub(Tsetdate,interval 13 day);
  9353. WHEN 14 THEN
  9354. SET TdayFlag = 'day15';
  9355. SET TdevicedayFlag = 'device_day15';
  9356. SET Tdate = date_sub(Tsetdate,interval 14 day);
  9357. WHEN 20 THEN
  9358. SET TdayFlag = 'day21';
  9359. SET TdevicedayFlag = 'device_day21';
  9360. SET Tdate = date_sub(Tsetdate,interval 20 day);
  9361. WHEN 29 THEN
  9362. SET TdayFlag = 'day30';
  9363. SET TdevicedayFlag = 'device_day30';
  9364. SET Tdate = date_sub(Tsetdate,interval 29 day);
  9365. WHEN 59 THEN
  9366. SET TdayFlag = 'day60';
  9367. SET TdevicedayFlag = 'device_day60';
  9368. SET Tdate = date_sub(Tsetdate,interval 59 day);
  9369. END CASE;
  9370. SET @sqlstr=CONCAT('update dw_day_agent SET ',TdayFlag,'=',Tusercnt,',',TdevicedayFlag,'=',Tdevice_cnt,' WHERE date=',CONCAT('\'',Tdate,'\''), ' AND agent_id=',Tagentid);
  9371. PREPARE stmt FROM @sqlstr;
  9372. EXECUTE stmt;
  9373. DEALLOCATE PREPARE stmt;
  9374. END IF;
  9375. FETCH Tacursor INTO Tregtime,Tagentid,Tmobile_prefix,Tregday,Tusercnt,Tdevice_cnt;
  9376. END WHILE;
  9377. CLOSE Tacursor;
  9378. SET Tflag=0;
  9379. OPEN Tgcursor;
  9380. FETCH Tgcursor INTO Tregtime,Tappid,Tmobile_prefix,Tregday,Tusercnt,Tdevice_cnt;
  9381. WHILE Tflag<>1 DO
  9382. IF Tusercnt>0 OR Tdevice_cnt>0 THEN
  9383. CASE Tregday
  9384. WHEN 1 THEN
  9385. SET TdayFlag = 'day2';
  9386. SET TdevicedayFlag = 'device_day2';
  9387. SET Tdate = date_sub(Tsetdate,interval 1 day);
  9388. WHEN 2 THEN
  9389. SET TdayFlag = 'day3';
  9390. SET TdevicedayFlag = 'device_day3';
  9391. SET Tdate = date_sub(Tsetdate,interval 2 day);
  9392. WHEN 3 THEN
  9393. SET TdayFlag = 'day4';
  9394. SET TdevicedayFlag = 'device_day4';
  9395. SET Tdate = date_sub(Tsetdate,interval 3 day);
  9396. WHEN 4 THEN
  9397. SET TdayFlag = 'day5';
  9398. SET TdevicedayFlag = 'device_day5';
  9399. SET Tdate = date_sub(Tsetdate,interval 4 day);
  9400. WHEN 5 THEN
  9401. SET TdayFlag = 'day6';
  9402. SET TdevicedayFlag = 'device_day6';
  9403. SET Tdate = date_sub(Tsetdate,interval 5 day);
  9404. WHEN 6 THEN
  9405. SET TdayFlag = 'day7';
  9406. SET TdevicedayFlag = 'device_day7';
  9407. SET Tdate = date_sub(Tsetdate,interval 6 day);
  9408. WHEN 7 THEN
  9409. SET TdayFlag = 'day8';
  9410. SET TdevicedayFlag = 'device_day8';
  9411. SET Tdate = date_sub(Tsetdate,interval 7 day);
  9412. WHEN 8 THEN
  9413. SET TdayFlag = 'day9';
  9414. SET TdevicedayFlag = 'device_day9';
  9415. SET Tdate = date_sub(Tsetdate,interval 8 day);
  9416. WHEN 9 THEN
  9417. SET TdayFlag = 'day10';
  9418. SET TdevicedayFlag = 'device_day10';
  9419. SET Tdate = date_sub(Tsetdate,interval 9 day);
  9420. WHEN 10 THEN
  9421. SET TdayFlag = 'day11';
  9422. SET TdevicedayFlag = 'device_day11';
  9423. SET Tdate = date_sub(Tsetdate,interval 10 day);
  9424. WHEN 11 THEN
  9425. SET TdayFlag = 'day12';
  9426. SET TdevicedayFlag = 'device_day12';
  9427. SET Tdate = date_sub(Tsetdate,interval 11 day);
  9428. WHEN 12 THEN
  9429. SET TdayFlag = 'day13';
  9430. SET TdevicedayFlag = 'device_day13';
  9431. SET Tdate = date_sub(Tsetdate,interval 12 day);
  9432. WHEN 13 THEN
  9433. SET TdayFlag = 'day14';
  9434. SET TdevicedayFlag = 'device_day14';
  9435. SET Tdate = date_sub(Tsetdate,interval 13 day);
  9436. WHEN 14 THEN
  9437. SET TdayFlag = 'day15';
  9438. SET TdevicedayFlag = 'device_day15';
  9439. SET Tdate = date_sub(Tsetdate,interval 14 day);
  9440. WHEN 20 THEN
  9441. SET TdayFlag = 'day21';
  9442. SET TdevicedayFlag = 'device_day21';
  9443. SET Tdate = date_sub(Tsetdate,interval 20 day);
  9444. WHEN 29 THEN
  9445. SET TdayFlag = 'day30';
  9446. SET TdevicedayFlag = 'device_day30';
  9447. SET Tdate = date_sub(Tsetdate,interval 29 day);
  9448. WHEN 59 THEN
  9449. SET TdayFlag = 'day60';
  9450. SET TdevicedayFlag = 'device_day60';
  9451. SET Tdate = date_sub(Tsetdate,interval 59 day);
  9452. END CASE;
  9453. SET @sqlstr=CONCAT('update dw_day_game SET ',TdayFlag,'=',Tusercnt,',',TdevicedayFlag,'=',Tdevice_cnt,' WHERE date=',CONCAT('\'',Tdate,'\''), ' AND app_id=',Tappid);
  9454. PREPARE stmt FROM @sqlstr;
  9455. EXECUTE stmt;
  9456. DEALLOCATE PREPARE stmt;
  9457. END IF;
  9458. FETCH Tgcursor INTO Tregtime,Tappid,Tmobile_prefix,Tregday,Tusercnt,Tdevice_cnt;
  9459. END WHILE;
  9460. CLOSE Tgcursor;
  9461. SET Tflag=0;
  9462. OPEN Tcursor;
  9463. FETCH Tcursor INTO Tregtime,Tmobile_prefix,Tregday,Tusercnt,Tdevice_cnt;
  9464. WHILE Tflag<>1 DO
  9465. IF Tusercnt>0 OR Tdevice_cnt>0 THEN
  9466. CASE Tregday
  9467. WHEN 1 THEN
  9468. SET TdayFlag = 'day2';
  9469. SET TdevicedayFlag = 'device_day2';
  9470. SET Tdate = date_sub(Tsetdate,interval 1 day);
  9471. WHEN 2 THEN
  9472. SET TdayFlag = 'day3';
  9473. SET TdevicedayFlag = 'device_day3';
  9474. SET Tdate = date_sub(Tsetdate,interval 2 day);
  9475. WHEN 3 THEN
  9476. SET TdayFlag = 'day4';
  9477. SET TdevicedayFlag = 'device_day4';
  9478. SET Tdate = date_sub(Tsetdate,interval 3 day);
  9479. WHEN 4 THEN
  9480. SET TdayFlag = 'day5';
  9481. SET TdevicedayFlag = 'device_day5';
  9482. SET Tdate = date_sub(Tsetdate,interval 4 day);
  9483. WHEN 5 THEN
  9484. SET TdayFlag = 'day6';
  9485. SET TdevicedayFlag = 'device_day6';
  9486. SET Tdate = date_sub(Tsetdate,interval 5 day);
  9487. WHEN 6 THEN
  9488. SET TdayFlag = 'day7';
  9489. SET TdevicedayFlag = 'device_day7';
  9490. SET Tdate = date_sub(Tsetdate,interval 6 day);
  9491. WHEN 7 THEN
  9492. SET TdayFlag = 'day8';
  9493. SET TdevicedayFlag = 'device_day8';
  9494. SET Tdate = date_sub(Tsetdate,interval 7 day);
  9495. WHEN 8 THEN
  9496. SET TdayFlag = 'day9';
  9497. SET TdevicedayFlag = 'device_day9';
  9498. SET Tdate = date_sub(Tsetdate,interval 8 day);
  9499. WHEN 9 THEN
  9500. SET TdayFlag = 'day10';
  9501. SET TdevicedayFlag = 'device_day10';
  9502. SET Tdate = date_sub(Tsetdate,interval 9 day);
  9503. WHEN 10 THEN
  9504. SET TdayFlag = 'day11';
  9505. SET TdevicedayFlag = 'device_day11';
  9506. SET Tdate = date_sub(Tsetdate,interval 10 day);
  9507. WHEN 11 THEN
  9508. SET TdayFlag = 'day12';
  9509. SET TdevicedayFlag = 'device_day12';
  9510. SET Tdate = date_sub(Tsetdate,interval 11 day);
  9511. WHEN 12 THEN
  9512. SET TdayFlag = 'day13';
  9513. SET TdevicedayFlag = 'device_day13';
  9514. SET Tdate = date_sub(Tsetdate,interval 12 day);
  9515. WHEN 13 THEN
  9516. SET TdayFlag = 'day14';
  9517. SET TdevicedayFlag = 'device_day14';
  9518. SET Tdate = date_sub(Tsetdate,interval 13 day);
  9519. WHEN 14 THEN
  9520. SET TdayFlag = 'day15';
  9521. SET TdevicedayFlag = 'device_day15';
  9522. SET Tdate = date_sub(Tsetdate,interval 14 day);
  9523. WHEN 20 THEN
  9524. SET TdayFlag = 'day21';
  9525. SET TdevicedayFlag = 'device_day21';
  9526. SET Tdate = date_sub(Tsetdate,interval 20 day);
  9527. WHEN 29 THEN
  9528. SET TdayFlag = 'day30';
  9529. SET TdevicedayFlag = 'device_day30';
  9530. SET Tdate = date_sub(Tsetdate,interval 29 day);
  9531. WHEN 59 THEN
  9532. SET TdayFlag = 'day60';
  9533. SET TdevicedayFlag = 'device_day60';
  9534. SET Tdate = date_sub(Tsetdate,interval 59 day);
  9535. END CASE;
  9536. SET @sqlstr=CONCAT('update dw_day SET ',TdayFlag,'=',Tusercnt,',',TdevicedayFlag,'=',Tdevice_cnt,' WHERE date=',CONCAT('\'',Tdate,'\''));
  9537. PREPARE stmt FROM @sqlstr;
  9538. EXECUTE stmt;
  9539. DEALLOCATE PREPARE stmt;
  9540. END IF;
  9541. FETCH Tcursor INTO Tregtime,Tmobile_prefix,Tregday,Tusercnt,Tdevice_cnt;
  9542. END WHILE;
  9543. CLOSE Tcursor;
  9544. END
  9545. ;;
  9546. delimiter ;
  9547. -- ----------------------------
  9548. -- Procedure structure for rundailyexec
  9549. -- ----------------------------
  9550. DROP PROCEDURE IF EXISTS `rundailyexec`;
  9551. delimiter ;;
  9552. CREATE PROCEDURE `rundailyexec`()
  9553. BEGIN
  9554. declare idaysdfdsaf DATE;
  9555. declare endiday DATE;
  9556. set idaysdfdsaf='2020-02-14';
  9557. set endiday='2020-02-14';
  9558. while(to_days(idaysdfdsaf)<=to_days(endiday)) do
  9559. call rundaily(idaysdfdsaf);
  9560. set idaysdfdsaf = (idaysdfdsaf+interval 1 day);
  9561. end while;
  9562. END
  9563. ;;
  9564. delimiter ;
  9565. SET FOREIGN_KEY_CHECKS = 1;