1 Star 0 Fork 1

alex/ebay-service

forked from xiaojinggai/ebay-service 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
datebase.php 308.12 KB
一键复制 编辑 原始数据 按行查看 历史
xiaojinggai 提交于 2022-11-09 14:34 . 1. 首次提交
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437
<?php
$installSql = <<<sql
DROP TABLE IF EXISTS `ddwx_access_token`;
CREATE TABLE `ddwx_access_token` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`appid` varchar(100) DEFAULT NULL,
`access_token` varchar(255) DEFAULT NULL,
`expires_time` int(11) DEFAULT NULL,
`jsapi_ticket` varchar(255) DEFAULT NULL,
`ticket_expires_time` int(11) DEFAULT NULL,
`card_ticket` varchar(255) DEFAULT NULL,
`card_ticket_expires_time` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `appid` (`appid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_admin`;
CREATE TABLE `ddwx_admin` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '账户ID',
`createtime` int(11) DEFAULT NULL COMMENT '创建时间',
`token` varchar(100) DEFAULT NULL COMMENT '十位随机字符串',
`chouchengset` tinyint(1) DEFAULT '0' COMMENT '是否设置微信支付抽成',
`chouchengrate` varchar(10) DEFAULT NULL COMMENT '抽成比例',
`chouchengmin` varchar(10) DEFAULT NULL COMMENT '抽成最小金额',
`chouchengmoney` varchar(10) DEFAULT NULL COMMENT '抽成金额',
`linkman` varchar(11) DEFAULT '0' COMMENT '联系人',
`tel` varchar(255) DEFAULT NULL COMMENT '联系电话',
`province` varchar(255) DEFAULT NULL COMMENT '省',
`city` varchar(255) DEFAULT NULL COMMENT '市',
`area` varchar(255) DEFAULT NULL COMMENT '区',
`address` varchar(255) DEFAULT NULL COMMENT '地址',
`platform` varchar(100) DEFAULT '0' COMMENT '支持的平台 mp公众号 wx小程序',
`status` tinyint(1) DEFAULT '1' COMMENT '状态 0未开启 1已开启',
`endtime` int(11) DEFAULT NULL COMMENT '到期时间',
`pid` int(11) DEFAULT '0',
`remote` text COMMENT '单独设置的附件存储信息',
`copyright` varchar(255) DEFAULT '' COMMENT '版权信息',
`domain` varchar(100) DEFAULT NULL COMMENT '单独设置的前端访问域名',
`remark` varchar(255) DEFAULT NULL COMMENT '备注',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_admin_loginlog`;
CREATE TABLE `ddwx_admin_loginlog` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`uid` int(11) DEFAULT NULL,
`logintime` int(11) DEFAULT NULL,
`loginip` varchar(255) DEFAULT NULL,
`logintype` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `uid` (`uid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_admin_notice`;
CREATE TABLE `ddwx_admin_notice` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`uid` int(11) DEFAULT NULL,
`title` varchar(255) DEFAULT NULL,
`content` longtext,
`createtime` int(11) DEFAULT NULL,
`isread` tinyint(1) DEFAULT '0',
`readtime` int(11) DEFAULT NULL,
`type` tinyint(1) DEFAULT '0' COMMENT '0系统发送 1总后台发送 2管理员发送',
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `uid` (`uid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_admin_set`;
CREATE TABLE `ddwx_admin_set` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`name` varchar(255) DEFAULT NULL,
`logo` varchar(255) DEFAULT NULL,
`mode` int(5) DEFAULT '0',
`desc` varchar(255) DEFAULT NULL,
`tel` varchar(255) DEFAULT NULL,
`province` varchar(100) NULL,
`city` varchar(100) NULL,
`district` varchar(100) NULL,
`address` varchar(255) DEFAULT NULL,
`longitude` varchar(255) DEFAULT NULL COMMENT '经度',
`latitude` varchar(255) DEFAULT NULL COMMENT '纬度',
`color1` varchar(100) DEFAULT '#FD4A46',
`color2` varchar(100) DEFAULT '#7E71F6',
`moneypay` tinyint(1) DEFAULT '1' COMMENT '余额支付',
`recharge` tinyint(1) DEFAULT '1' COMMENT '是否开启充值',
`money_transfer` tinyint(1) UNSIGNED NOT NULL DEFAULT '0' COMMENT '转账',
`withdraw_weixin` tinyint(1) DEFAULT '1',
`withdraw_aliaccount` tinyint(1) DEFAULT '1',
`withdraw_bankcard` tinyint(1) DEFAULT '1',
`withdraw` tinyint(1) DEFAULT NULL,
`withdraw_autotransfer` tinyint(1) DEFAULT '0',
`withdrawmin` decimal(11,2) DEFAULT '1.00',
`withdrawfee` decimal(11,2) DEFAULT '0.00',
`comwithdraw` tinyint(1) DEFAULT '1',
`comwithdrawmin` decimal(11,2) DEFAULT '1.00',
`comwithdrawfee` decimal(11,2) DEFAULT '0.00',
`comwithdrawbl` decimal(11,2) DEFAULT '100.00',
`commission2scorepercent` decimal(11,2) DEFAULT '0.00',
`commission2moneypercent1` decimal(11,2) DEFAULT '0.00',
`commission2moneypercent2` decimal(11,2) DEFAULT '0.00',
`banner_levelup` varchar(255) DEFAULT NULL,
`banner_usercenter` varchar(255) DEFAULT NULL,
`commission2money` tinyint(1) DEFAULT '0',
`subscribeurl` varchar(255) DEFAULT NULL,
`score2money` varchar(50) DEFAULT '0.01',
`scorein_money` decimal(11,2) DEFAULT '1.00',
`scorein_score` int(11) DEFAULT '1',
`scorecz_money` decimal(11,2) DEFAULT '1.00',
`scorecz_score` int(11) DEFAULT '1',
`scorebdkyf` tinyint(1) DEFAULT '0',
`score_transfer` tinyint(1) UNSIGNED NOT NULL DEFAULT '0',
`score_withdraw` tinyint(1) UNSIGNED NOT NULL DEFAULT '0',
`score_withdraw_percent_day` decimal(5, 2) UNSIGNED NOT NULL DEFAULT '0',
`score_to_money_percent` decimal(6, 3) UNSIGNED NOT NULL DEFAULT '0',
`kfurl` varchar(255) DEFAULT NULL,
`wxkf` tinyint(1) DEFAULT '0',
`wxkfurl` varchar(255) DEFAULT NULL,
`corpid` varchar(255) DEFAULT NULL,
`gzts` varchar(100) DEFAULT NULL,
`ddbb` varchar(100) DEFAULT NULL,
`scoredkmaxpercent` decimal(11,2) DEFAULT '100.00',
`miandanst` tinyint(1) DEFAULT '0',
`commissiontype` tinyint(1) DEFAULT '0',
`fxjiesuantype` tinyint(1) DEFAULT '0',
`fhjiesuantime_type` tinyint(1) UNSIGNED NOT NULL DEFAULT '0' COMMENT '分红结算时间类型 0收货后,1付款后',
`fxjiesuantime` tinyint(1) DEFAULT '0',
`fxjiesuantime_delaydays` float(10,2) DEFAULT '0',
`fhjiesuantype` tinyint(1) DEFAULT '0',
`fhjiesuantime` tinyint(1) DEFAULT '0',
`fhjiesuanhb` tinyint(1) DEFAULT '0',
`fhjiesuanbusiness` tinyint(1) DEFAULT '1',
`partner_jiaquan` tinyint(1) DEFAULT '0',
`partner_gongxian` tinyint(1) DEFAULT '0',
`teamyeji_show` tinyint(1) DEFAULT '0',
`teamnum_show` tinyint(1) DEFAULT '0',
`gongxianfenhong_show` tinyint(1) DEFAULT '0',
`gongxianfenhong_txt` varchar(255) DEFAULT NULL,
`maidanfenxiao` tinyint(1) DEFAULT '0',
`logintype_mp` varchar(255) DEFAULT '1,2,3',
`logintype_wx` varchar(255) DEFAULT '1,2,3',
`logintype_alipay` varchar(255) DEFAULT '1,2,3',
`logintype_baidu` varchar(255) DEFAULT '1,2,3',
`logintype_toutiao` varchar(255) DEFAULT '1,2,3',
`logintype_qq` varchar(255) DEFAULT '1,2,3',
`logintype_h5` varchar(255) DEFAULT '1,2',
`logintype_app` varchar(255) DEFAULT '1,2,3',
`login_bind` tinyint(1) UNSIGNED NOT NULL DEFAULT '0',
`login_mast` varchar(2550) DEFAULT NULL COMMENT '强制登录',
`reg_invite_code` tinyint(1) UNSIGNED NOT NULL DEFAULT 0 COMMENT '0关闭,1开启',
`reg_invite_code_type` tinyint(1) UNSIGNED NOT NULL DEFAULT 0 COMMENT '0手机号',
`textset` varchar(255) DEFAULT '{"余额":"余额","积分":"积分","佣金":"佣金","优惠券":"优惠券","会员":"会员"}',
`gettj` varchar(255) DEFAULT '-1' COMMENT '进入条件',
`gettjtip` varchar(255) DEFAULT '您没有权限进入',
`pay_transfer` tinyint(1) unsigned DEFAULT '0' COMMENT '转账汇款',
`pay_transfer_account_name` varchar(200) DEFAULT '',
`pay_transfer_account` varchar(200) DEFAULT '',
`pay_transfer_bank` varchar(200) DEFAULT '',
`pay_transfer_desc` varchar(255) DEFAULT '',
`invoice` tinyint(1) UNSIGNED NOT NULL DEFAULT '0' COMMENT '发票 0关 1开',
`invoice_type` varchar(20) NULL DEFAULT '1' COMMENT '发票类型 1普通 2专票',
`teamfenhong_differential` tinyint(1) DEFAULT '0',
`reg_check` tinyint(1) DEFAULT '0' COMMENT '注册审核',
PRIMARY KEY (`id`),
UNIQUE KEY `aid` (`aid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_admin_set_poster`;
CREATE TABLE `ddwx_admin_set_poster` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`type` varchar(100) DEFAULT 'index' COMMENT 'index,product,collage,collageteam,kanjia,kanjiajoin',
`platform` varchar(100) DEFAULT 'mp' COMMENT 'mp,wx,alipay,baidu,toutiao,qq,app',
`content` text,
`guize` text,
`createtime` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_admin_set_sms`;
CREATE TABLE `ddwx_admin_set_sms` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`status` tinyint(1) DEFAULT '0',
`smstype` tinyint(1) DEFAULT '1' COMMENT '1阿里云 2聚合',
`accesskey` varchar(255) DEFAULT NULL,
`accesssecret` varchar(255) DEFAULT NULL,
`sdkappid` varchar(100) DEFAULT NULL,
`sign_name` varchar(100) DEFAULT NULL,
`tmpl_smscode` varchar(255) DEFAULT NULL,
`tmpl_orderconfirm` varchar(255) DEFAULT NULL,
`tmpl_orderpay` varchar(255) DEFAULT NULL,
`tmpl_collagesuccess` varchar(255) DEFAULT NULL,
`tmpl_orderfahuo` varchar(255) DEFAULT NULL,
`tmpl_tuisuccess` varchar(255) DEFAULT NULL,
`tmpl_tuierror` varchar(255) DEFAULT NULL,
`tmpl_tixiansuccess` varchar(255) DEFAULT NULL,
`tmpl_tixianerror` varchar(255) DEFAULT NULL,
`tmpl_fenxiaosuccess` varchar(255) DEFAULT NULL,
`tmpl_smscode_st` tinyint(1) DEFAULT '1',
`tmpl_orderconfirm_st` tinyint(1) DEFAULT '0',
`tmpl_orderpay_st` tinyint(1) DEFAULT '1',
`tmpl_collagesuccess_st` tinyint(1) DEFAULT '1',
`tmpl_orderfahuo_st` tinyint(1) DEFAULT '1',
`tmpl_tuisuccess_st` tinyint(1) DEFAULT '1',
`tmpl_tuierror_st` tinyint(1) DEFAULT '1',
`tmpl_tixiansuccess_st` tinyint(1) DEFAULT '1',
`tmpl_tixianerror_st` tinyint(1) DEFAULT '1',
`tmpl_fenxiaosuccess_st` tinyint(1) DEFAULT '1',
`tmpl_restaurant_booking` varchar(255) DEFAULT NULL,
`tmpl_restaurant_booking_st` tinyint(1) DEFAULT '1',
`tmpl_restaurant_booking_fail` varchar(255) DEFAULT NULL,
`tmpl_restaurant_booking_fail_st` tinyint(1) DEFAULT '1',
`tmpl_checksuccess` varchar(255) DEFAULT NULL COMMENT '审核通过通知',
`tmpl_checkerror` varchar(255) DEFAULT NULL COMMENT '审核驳回通知',
`tmpl_checksuccess_st` tinyint(1) DEFAULT '1',
`tmpl_checkerror_st` tinyint(1) DEFAULT '1',
PRIMARY KEY (`id`),
UNIQUE KEY `aid` (`aid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_admin_set_xieyi`;
CREATE TABLE `ddwx_admin_set_xieyi` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`name` varchar(255) DEFAULT '《用户注册协议》',
`content` longtext,
`status` tinyint(1) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `aid` (`aid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_admin_setapp_alipay`;
CREATE TABLE `ddwx_admin_setapp_alipay` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`appid` varchar(255) DEFAULT NULL,
`appsecret` text,
`publickey` text,
`nickname` varchar(255) DEFAULT NULL,
`headimg` varchar(255) DEFAULT NULL,
`qrcode` varchar(255) DEFAULT NULL,
`alipay` tinyint(1) DEFAULT '1',
PRIMARY KEY (`id`),
UNIQUE KEY `aid` (`aid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_admin_setapp_app`;
CREATE TABLE `ddwx_admin_setapp_app` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`appid` varchar(255) DEFAULT NULL,
`appsecret` varchar(255) DEFAULT NULL,
`wxpay` tinyint(1) DEFAULT '0',
`wxpay_type` tinyint(1) DEFAULT '0',
`wxpay_sub_mchid` varchar(100) DEFAULT NULL,
`wxpay_mchid` varchar(100) DEFAULT NULL,
`wxpay_mchkey` varchar(100) DEFAULT NULL,
`wxpay_apiclient_cert` varchar(100) DEFAULT NULL,
`wxpay_apiclient_key` varchar(100) DEFAULT NULL,
`alipay` tinyint(1) DEFAULT '0',
`ali_appid` varchar(100) DEFAULT NULL,
`ali_privatekey` text,
`ali_publickey` text,
PRIMARY KEY (`id`),
UNIQUE KEY `aid` (`aid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_admin_setapp_baidu`;
CREATE TABLE `ddwx_admin_setapp_baidu` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`appid` varchar(255) DEFAULT NULL,
`appkey` varchar(255) DEFAULT NULL,
`appsecret` varchar(255) DEFAULT NULL,
`nickname` varchar(255) DEFAULT NULL,
`headimg` varchar(255) DEFAULT NULL,
`qrcode` varchar(255) DEFAULT NULL,
`access_token` varchar(255) DEFAULT NULL,
`expires_time` int(11) DEFAULT NULL,
`baidupay` tinyint(1) DEFAULT '1',
`pay_appid` varchar(100) DEFAULT NULL,
`pay_appkey` varchar(100) DEFAULT NULL,
`pay_dealId` varchar(100) DEFAULT NULL,
`pay_publickey` text,
`pay_privatekey` text,
PRIMARY KEY (`id`),
UNIQUE KEY `aid` (`aid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_admin_setapp_h5`;
CREATE TABLE `ddwx_admin_setapp_h5` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`appid` varchar(100) DEFAULT NULL,
`wxpay` tinyint(1) DEFAULT '0',
`wxpay_type` tinyint(1) DEFAULT '0',
`wxpay_sub_mchid` varchar(100) DEFAULT NULL,
`wxpay_mchid` varchar(100) DEFAULT NULL,
`wxpay_mchkey` varchar(100) DEFAULT NULL,
`wxpay_apiclient_cert` varchar(100) DEFAULT NULL,
`wxpay_apiclient_key` varchar(100) DEFAULT NULL,
`alipay` tinyint(1) DEFAULT '0',
`ali_appid` varchar(100) DEFAULT NULL,
`ali_privatekey` text,
`ali_publickey` text,
PRIMARY KEY (`id`),
UNIQUE KEY `aid` (`aid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_admin_setapp_mp`;
CREATE TABLE `ddwx_admin_setapp_mp` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`authtype` tinyint(1) DEFAULT '0' COMMENT '0普通接入 1授权接入',
`level` int(1) DEFAULT '4' COMMENT '1普通订阅号2普通服务号3认证订阅号4认证服务号',
`appid` varchar(255) DEFAULT NULL,
`appsecret` varchar(255) DEFAULT NULL,
`nickname` varchar(255) DEFAULT NULL,
`headimg` varchar(255) DEFAULT NULL,
`qrcode` varchar(255) DEFAULT NULL,
`token` varchar(255) DEFAULT NULL,
`key` varchar(255) DEFAULT NULL,
`refresh_token` varchar(255) DEFAULT NULL,
`open_appid` varchar(255) DEFAULT NULL,
`wxpay` tinyint(1) DEFAULT '0',
`wxpay_type` tinyint(1) DEFAULT '0',
`wxpay_sub_mchid` varchar(100) DEFAULT NULL,
`wxpay_mchid` varchar(100) DEFAULT NULL,
`wxpay_mchkey` varchar(100) DEFAULT NULL,
`wxpay_apiclient_cert` varchar(100) DEFAULT NULL,
`wxpay_apiclient_key` varchar(100) DEFAULT NULL,
`sxpay_mno` varchar(100) DEFAULT NULL,
`sxpay_mchkey` varchar(100) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `aid` (`aid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_admin_setapp_qq`;
CREATE TABLE `ddwx_admin_setapp_qq` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`appid` varchar(255) DEFAULT NULL,
`appsecret` varchar(255) DEFAULT NULL,
`apptoken` varchar(255) DEFAULT NULL,
`nickname` varchar(255) DEFAULT NULL,
`headimg` varchar(255) DEFAULT NULL,
`qrcode` varchar(255) DEFAULT NULL,
`access_token` varchar(255) DEFAULT NULL,
`expires_time` int(11) DEFAULT NULL,
`wxpay` tinyint(1) DEFAULT '0',
`wxpay_appid` varchar(100) DEFAULT NULL,
`wxpay_type` tinyint(1) DEFAULT '0',
`wxpay_sub_mchid` varchar(100) DEFAULT NULL,
`wxpay_mchid` varchar(100) DEFAULT NULL,
`wxpay_mchkey` varchar(100) DEFAULT NULL,
`wxpay_apiclient_cert` varchar(100) DEFAULT NULL,
`wxpay_apiclient_key` varchar(100) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `aid` (`aid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_admin_setapp_toutiao`;
CREATE TABLE `ddwx_admin_setapp_toutiao` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`appid` varchar(255) DEFAULT NULL,
`appsecret` varchar(255) DEFAULT NULL,
`nickname` varchar(255) DEFAULT NULL,
`headimg` varchar(255) DEFAULT NULL,
`qrcode` varchar(255) DEFAULT NULL,
`toutiaopay` tinyint(1) DEFAULT '1',
`pay_token` varchar(100) DEFAULT NULL,
`pay_mchid` varchar(100) DEFAULT NULL,
`pay_salt` varchar(100) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `aid` (`aid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_admin_setapp_wx`;
CREATE TABLE `ddwx_admin_setapp_wx` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`authtype` tinyint(1) DEFAULT '0' COMMENT '0普通接入 1授权接入',
`level` tinyint(1) DEFAULT '1' COMMENT '1已认证0未认证',
`appid` varchar(255) DEFAULT NULL,
`appsecret` varchar(255) DEFAULT NULL,
`nickname` varchar(255) DEFAULT NULL,
`headimg` varchar(255) DEFAULT NULL,
`qrcode` varchar(255) DEFAULT NULL,
`token` varchar(255) DEFAULT NULL,
`key` varchar(255) DEFAULT NULL,
`refresh_token` varchar(255) DEFAULT NULL,
`open_appid` varchar(255) DEFAULT NULL,
`wxpay` tinyint(1) DEFAULT '0',
`wxpay_type` tinyint(1) DEFAULT '0',
`wxpay_sub_mchid` varchar(100) DEFAULT NULL,
`wxpay_mchid` varchar(100) DEFAULT NULL,
`wxpay_mchkey` varchar(100) DEFAULT NULL,
`wxpay_apiclient_cert` varchar(100) DEFAULT NULL,
`wxpay_apiclient_key` varchar(100) DEFAULT NULL,
`createtype` tinyint(1) DEFAULT '0' COMMENT '0自己注册 1通过开放平台复用公众号资质快速注册 2通过开放平台快速创建',
`signature` varchar(255) DEFAULT NULL,
`sxpay_mno` varchar(100) DEFAULT NULL,
`sxpay_mchkey` varchar(100) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `aid` (`aid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_admin_upload`;
CREATE TABLE `ddwx_admin_upload` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`uid` int(11) DEFAULT NULL,
`name` varchar(255) DEFAULT NULL,
`dir` varchar(255) DEFAULT NULL,
`url` varchar(255) DEFAULT NULL,
`type` varchar(100) DEFAULT NULL,
`size` varchar(255) DEFAULT NULL,
`bsize` int(11) DEFAULT NULL,
`width` int(11) DEFAULT NULL,
`height` int(11) DEFAULT NULL,
`createtime` int(11) DEFAULT NULL,
`platform` varchar(11) DEFAULT 'ht',
`isdel` tinyint(1) DEFAULT '0',
`gid` int(11) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `uid` (`uid`) USING BTREE,
KEY `dir` (`dir`) USING BTREE,
KEY `platform` (`platform`) USING BTREE,
KEY `isdel` (`isdel`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_admin_upload_group`;
CREATE TABLE `ddwx_admin_upload_group` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`uid` int(11) DEFAULT NULL,
`name` varchar(255) DEFAULT NULL,
`createtime` int(11) DEFAULT NULL,
`sort` int(11) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `uid` (`uid`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_admin_user`;
CREATE TABLE `ddwx_admin_user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL COMMENT '账户ID',
`bid` int(11) DEFAULT '0' COMMENT '商户ID 平台是0',
`un` varchar(255) DEFAULT NULL COMMENT '登录账号',
`pwd` varchar(255) DEFAULT NULL COMMENT '登录密码MD5',
`ip` varchar(255) DEFAULT NULL COMMENT '最后登录IP',
`logintime` int(11) DEFAULT NULL COMMENT '最后登录时间',
`status` tinyint(1) DEFAULT '1' COMMENT '状态 1开启 0关闭',
`createtime` int(11) DEFAULT NULL COMMENT '创建时间',
`remark` varchar(255) DEFAULT NULL COMMENT '备注',
`auth_type` tinyint(1) DEFAULT '0' COMMENT '1 所有权限 0 选择权限',
`auth_data` text COMMENT '权限集 auth_type为0时才有效',
`wxauth_data` text COMMENT '手机端权限集 auth_type为0时才有效',
`notice_auth_data` text COMMENT '接收通知权限集',
`isadmin` tinyint(1) DEFAULT '0' COMMENT '是否是主账号 1主账号 0分账号',
`hexiao_auth_data` text COMMENT '核销权限集',
`mdid` int(11) DEFAULT '0' COMMENT '门店ID 全部是0',
`tmpl_orderconfirm` tinyint(1) DEFAULT '0' COMMENT '订单提交通知',
`tmpl_orderpay` tinyint(1) DEFAULT '1' COMMENT '订单支付通知',
`tmpl_ordershouhuo` tinyint(1) DEFAULT '1' COMMENT '订单收货通知',
`tmpl_ordertui` tinyint(1) DEFAULT '1' COMMENT '退款通知',
`tmpl_recharge` tinyint(1) DEFAULT '1' COMMENT '充值通知',
`tmpl_withdraw` tinyint(1) DEFAULT '1' COMMENT '提现通知',
`tmpl_formsub` tinyint(1) DEFAULT '1' COMMENT '表单提交通知',
`tmpl_kehuzixun` tinyint(1) DEFAULT '1' COMMENT '客户咨询通知',
`tmpl_uplv` tinyint(1) DEFAULT '1' COMMENT '会员升级通知',
`tmpl_restaurant_booking` tinyint(1) DEFAULT '1' COMMENT '餐厅预订通知',
`showtj` tinyint(1) DEFAULT '0' COMMENT '是否显示首页数据统计',
`mid` int(11) DEFAULT '0' COMMENT '绑定的会员ID',
`random_str` varchar(255) DEFAULT '' COMMENT '随机字符串16位',
`groupid` int(11) DEFAULT '0' COMMENT '权限组id',
`addid` int(11) DEFAULT '0' COMMENT '哪个管理员添加的',
`bids` varchar(255) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `un` (`un`) USING BTREE,
KEY `status` (`status`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_admin_user_group`;
CREATE TABLE `ddwx_admin_user_group` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`sort` int(11) DEFAULT '0',
`name` varchar(255) DEFAULT NULL,
`status` tinyint(1) DEFAULT '1',
`createtime` int(11) DEFAULT NULL,
`remark` varchar(255) DEFAULT NULL,
`auth_data` text,
`wxauth_data` text,
`notice_auth_data` text,
`hexiao_auth_data` text,
`mdid` int(11) DEFAULT '0',
`showtj` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_admin_wxalog`;
CREATE TABLE `ddwx_admin_wxalog` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`createtime` int(11) DEFAULT NULL,
`user_version` varchar(255) DEFAULT NULL,
`user_desc` varchar(255) DEFAULT NULL,
`status` int(11) DEFAULT '0' COMMENT '0未提交1审核中2待发布3已发布4已驳回',
`audit_time` int(11) DEFAULT NULL,
`audit_reason` text,
`category` varchar(255) DEFAULT NULL,
`auditid` varchar(255) DEFAULT NULL,
`autofb` tinyint(1) DEFAULT '0',
`version_desc` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_admin_wxreglog`;
CREATE TABLE `ddwx_admin_wxreglog` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`name` varchar(255) DEFAULT NULL,
`code` varchar(255) DEFAULT NULL,
`code_type` int(1) DEFAULT NULL,
`legal_persona_wechat` varchar(255) DEFAULT NULL,
`legal_persona_name` varchar(255) DEFAULT NULL,
`component_phone` varchar(255) DEFAULT NULL,
`status` tinyint(1) DEFAULT '0' COMMENT '0审核中 1通过 2不通过',
`reason` varchar(255) DEFAULT NULL COMMENT '失败原因',
`createtime` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_alipay_log`;
CREATE TABLE `ddwx_alipay_log` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`mid` int(11) DEFAULT NULL,
`openid` varchar(255) DEFAULT NULL,
`tablename` varchar(255) DEFAULT NULL,
`ordernum` varchar(255) DEFAULT NULL,
`mch_id` varchar(100) DEFAULT NULL,
`transaction_id` varchar(255) DEFAULT NULL,
`total_fee` decimal(11,2) DEFAULT '0.00',
`givescore` int(11) DEFAULT '0',
`createtime` int(11) DEFAULT NULL,
`fenzhangmoney` decimal(11,2) DEFAULT '0.00',
`isfenzhang` tinyint(1) DEFAULT '0',
`fz_ordernum` varchar(100) DEFAULT NULL,
`fz_errmsg` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE,
KEY `createtime` (`createtime`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_article`;
CREATE TABLE `ddwx_article` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`cid` int(11) DEFAULT NULL,
`name` varchar(255) DEFAULT NULL,
`subname` varchar(255) DEFAULT '',
`pic` varchar(255) DEFAULT NULL,
`author` varchar(255) DEFAULT NULL,
`content` longtext,
`readcount` int(11) DEFAULT '0',
`sort` int(11) DEFAULT '0',
`createtime` int(11) DEFAULT NULL,
`sendtime` varchar(100) DEFAULT NULL,
`status` int(11) DEFAULT '1',
`reason` varchar(255) DEFAULT NULL,
`showname` tinyint(1) DEFAULT '1',
`showsubname` tinyint(1) DEFAULT '1',
`showreadcount` tinyint(1) DEFAULT '1',
`showsendtime` tinyint(1) DEFAULT '1',
`showauthor` tinyint(1) DEFAULT '1',
`canpl` tinyint(1) DEFAULT '1' COMMENT '是否可评论',
`canplrp` tinyint(1) DEFAULT '1' COMMENT '评论是否可回复',
`pinglun_check` tinyint(1) DEFAULT '0',
`zan` int(11) DEFAULT '0',
`showtj` varchar(255) NULL DEFAULT '-1',
`pcid` int(11) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `cid` (`cid`) USING BTREE,
KEY `status` (`status`) USING BTREE,
KEY `showtj` (`showtj`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_article_category`;
CREATE TABLE `ddwx_article_category` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`pid` int(11) DEFAULT '0',
`name` varchar(255) DEFAULT NULL,
`pic` varchar(255) DEFAULT NULL,
`status` int(1) DEFAULT '1',
`sort` int(11) DEFAULT '1',
`createtime` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `pid` (`pid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_article_pinglun`;
CREATE TABLE `ddwx_article_pinglun` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`sid` int(11) DEFAULT NULL,
`mid` int(11) DEFAULT NULL,
`headimg` varchar(255) DEFAULT NULL,
`nickname` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL,
`content` varchar(255) DEFAULT NULL,
`createtime` int(11) DEFAULT NULL,
`status` tinyint(1) DEFAULT '0',
`zan` int(11) DEFAULT '0',
`score` int(11) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `sid` (`sid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_article_pinglun_reply`;
CREATE TABLE `ddwx_article_pinglun_reply` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`sid` int(11) DEFAULT NULL,
`pid` int(11) DEFAULT NULL,
`mid` int(11) DEFAULT NULL,
`headimg` varchar(255) DEFAULT NULL,
`nickname` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL,
`content` varchar(255) DEFAULT NULL,
`createtime` int(11) DEFAULT NULL,
`status` tinyint(1) DEFAULT '0',
`zan` int(11) DEFAULT '0',
`score` int(11) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `sid` (`sid`) USING BTREE,
KEY `pid` (`pid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_article_pzanlog`;
CREATE TABLE `ddwx_article_pzanlog` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`pid` int(11) DEFAULT NULL,
`mid` int(11) DEFAULT NULL,
`createtime` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `pid` (`pid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_article_readlog`;
CREATE TABLE `ddwx_article_readlog` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`artid` int(11) DEFAULT NULL,
`mid` int(11) DEFAULT NULL,
`createtime` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `artid` (`artid`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_article_zanlog`;
CREATE TABLE `ddwx_article_zanlog` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`sid` int(11) DEFAULT NULL,
`mid` int(11) DEFAULT NULL,
`createtime` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `stid` (`sid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_baidupay_log`;
CREATE TABLE `ddwx_baidupay_log` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`mid` int(11) DEFAULT NULL,
`openid` varchar(255) DEFAULT NULL,
`tablename` varchar(255) DEFAULT NULL,
`ordernum` varchar(255) DEFAULT NULL,
`mch_id` int(11) DEFAULT NULL,
`transaction_id` varchar(255) DEFAULT NULL,
`total_fee` decimal(11,2) DEFAULT '0.00',
`givescore` int(11) DEFAULT '0',
`createtime` int(11) DEFAULT NULL,
`fenzhangmoney` decimal(11,2) DEFAULT '0.00',
`isfenzhang` tinyint(1) DEFAULT '0',
`fz_ordernum` varchar(100) DEFAULT NULL,
`fz_errmsg` varchar(255) DEFAULT NULL,
`userId` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE,
KEY `createtime` (`createtime`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_business`;
CREATE TABLE `ddwx_business` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`mid` int(11) DEFAULT NULL,
`cid` varchar(255) DEFAULT '0',
`name` varchar(255) DEFAULT NULL,
`logo` varchar(255) DEFAULT NULL,
`desc` varchar(255) DEFAULT NULL,
`linkman` varchar(255) DEFAULT NULL,
`linktel` varchar(255) DEFAULT NULL,
`tel` varchar(255) DEFAULT NULL,
`pics` varchar(1000) DEFAULT NULL,
`content` longtext,
`province` varchar(100) NULL,
`city` varchar(100) NULL,
`district` varchar(100) NULL,
`address` varchar(255) DEFAULT NULL,
`zhengming` varchar(1000) DEFAULT NULL,
`longitude` varchar(255) DEFAULT NULL COMMENT '经度',
`latitude` varchar(255) DEFAULT NULL COMMENT '纬度',
`money` decimal(11,2) DEFAULT '0.00',
`weixin` varchar(255) DEFAULT NULL,
`aliaccount` varchar(255) DEFAULT NULL,
`bankname` varchar(255) DEFAULT NULL,
`bankcarduser` varchar(255) DEFAULT NULL,
`bankcardnum` varchar(255) DEFAULT NULL,
`sales` int(11) DEFAULT '0',
`feepercent` float(11,2) DEFAULT '0.00' COMMENT '费率',
`feepercent_freight` float(11,2) DEFAULT '0.00' COMMENT '配送费费率',
`sort` int(11) DEFAULT '0',
`createtime` int(11) DEFAULT NULL,
`status` tinyint(1) DEFAULT '1',
`reason` varchar(255) DEFAULT NULL,
`comment_score` decimal(2,1) DEFAULT '5.0',
`comment_num` int(11) DEFAULT '0',
`comment_haopercent` int(11) DEFAULT '100' COMMENT '好评率',
`start_hours` varchar(100) DEFAULT '00:00',
`end_hours` varchar(100) DEFAULT '00:00',
`invoice` tinyint(1) UNSIGNED NOT NULL DEFAULT '0' COMMENT '发票 0关 1开',
`invoice_type` varchar(20) NULL DEFAULT '1' COMMENT '发票类型 1普通 2专票',
`is_open` tinyint(1) DEFAULT '1',
`autocollecthour` int(11) DEFAULT '168',
`start_hours2` varchar(100) DEFAULT '00:00',
`end_hours2` varchar(100) DEFAULT '00:00',
`start_hours3` varchar(100) DEFAULT '00:00',
`end_hours3` varchar(100) DEFAULT '00:00',
`wxpayst` tinyint(1) DEFAULT '0',
`wxpay_submchid` varchar(100) DEFAULT NULL,
`express_wx_shop_no` varchar(60) NULL COMMENT '商家门店编号',
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE,
KEY `cid` (`cid`) USING BTREE,
KEY `status` (`status`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_business_category`;
CREATE TABLE `ddwx_business_category` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`name` varchar(255) DEFAULT NULL,
`pic` varchar(255) DEFAULT NULL,
`status` int(1) DEFAULT '1',
`sort` int(11) DEFAULT '1',
`createtime` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_business_comment`;
CREATE TABLE `ddwx_business_comment` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT NULL,
`mid` int(11) DEFAULT NULL,
`orderid` int(11) DEFAULT NULL,
`bname` varchar(255) DEFAULT NULL,
`ordernum` varchar(50) DEFAULT NULL,
`openid` varchar(255) DEFAULT NULL,
`nickname` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL,
`headimg` varchar(255) DEFAULT NULL,
`score` int(11) DEFAULT NULL,
`content` varchar(255) DEFAULT NULL,
`content_pic` varchar(255) DEFAULT NULL,
`reply_content` varchar(255) DEFAULT NULL,
`reply_content_pic` varchar(255) DEFAULT NULL,
`append_content` varchar(255) DEFAULT NULL,
`append_content_pic` varchar(255) DEFAULT NULL,
`append_reply_content` varchar(255) DEFAULT NULL,
`append_reply_content_pic` varchar(255) DEFAULT NULL,
`createtime` int(11) DEFAULT NULL,
`appendtime` int(11) DEFAULT NULL,
`status` int(1) DEFAULT '1',
`reply_time` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE,
KEY `orderid` (`orderid`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_business_moneylog`;
CREATE TABLE `ddwx_business_moneylog` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT NULL,
`money` decimal(11,2) DEFAULT '0.00',
`after` decimal(11,2) DEFAULT '0.00',
`createtime` int(11) DEFAULT NULL,
`remark` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_business_sysset`;
CREATE TABLE `ddwx_business_sysset` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`default_rate` decimal(11,2) DEFAULT '0.00',
`withdraw_weixin` tinyint(1) DEFAULT '1',
`withdraw_aliaccount` tinyint(1) DEFAULT '1',
`withdraw_bankcard` tinyint(1) DEFAULT '1',
`withdrawmin` decimal(11,2) DEFAULT '1.00',
`withdrawfee` decimal(11,2) DEFAULT '0.00',
`product_isshow` tinyint(1) DEFAULT '0',
`commission_canset` tinyint(1) DEFAULT '0',
`coupon_canset` tinyint(1) DEFAULT '0',
`commission_kouchu` tinyint(1) DEFAULT '0',
`product_showset` tinyint(1) DEFAULT '0',
`xieyi_show` tinyint(1) DEFAULT '0',
`xieyi` longtext,
`seckill_canset` tinyint(1) DEFAULT '0',
`collage_canset` tinyint(1) DEFAULT '0',
`diy_canset` tinyint(1) DEFAULT '0',
`product_check` tinyint(1) DEFAULT '0',
`article_check` tinyint(1) DEFAULT '0',
`shortvideo_check` tinyint(1) DEFAULT '0',
`status` tinyint(1) DEFAULT '0',
`commission_autotransfer` tinyint(1) DEFAULT '0',
`wxfw_status` tinyint(1) DEFAULT '0',
`wxfw_mchname` varchar(255) DEFAULT NULL,
`wxfw_appid` varchar(100) DEFAULT NULL,
`wxfw_mchid` varchar(100) DEFAULT NULL,
`wxfw_mchkey` varchar(100) DEFAULT NULL,
`wxfw_apiclient_cert` varchar(255) DEFAULT NULL,
`wxfw_apiclient_key` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `status` (`status`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_business_withdrawlog`;
CREATE TABLE `ddwx_business_withdrawlog` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT NULL,
`money` decimal(11,2) DEFAULT NULL,
`txmoney` decimal(11,2) DEFAULT NULL,
`weixin` varchar(255) DEFAULT NULL,
`aliaccount` varchar(255) DEFAULT NULL,
`ordernum` varchar(255) DEFAULT NULL,
`paytype` varchar(255) DEFAULT NULL,
`status` tinyint(1) DEFAULT '0',
`createtime` int(11) DEFAULT NULL,
`bankname` varchar(255) DEFAULT NULL,
`bankcarduser` varchar(255) DEFAULT NULL,
`bankcardnum` varchar(255) DEFAULT NULL,
`paytime` int(11) DEFAULT NULL,
`paynum` varchar(255) DEFAULT NULL,
`reason` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `status` (`status`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_choujiang`;
CREATE TABLE `ddwx_choujiang` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`aid` bigint(20) DEFAULT NULL,
`type` varchar(255) DEFAULT NULL,
`name` varchar(255) DEFAULT '幸运大转盘活动开始啦',
`banner` varchar(255) DEFAULT NULL,
`bgpic` varchar(255) DEFAULT NULL,
`starttime` int(11) DEFAULT NULL,
`endtime` int(11) DEFAULT NULL,
`guize` text COMMENT '活动规则',
`sharetitle` varchar(255) DEFAULT NULL,
`sharelink` varchar(255) DEFAULT NULL COMMENT '分享链接',
`sharepic` varchar(255) DEFAULT NULL,
`sharedesc` varchar(255) DEFAULT NULL,
`cjnum` int(11) DEFAULT '0',
`zjnum` int(11) DEFAULT '0',
`j0mc` varchar(255) NOT NULL DEFAULT '谢谢参与',
`j0pic` varchar(255) DEFAULT NULL,
`j0sl` int(11) NOT NULL DEFAULT '55',
`j0yj` int(11) DEFAULT '0',
`j1mc` varchar(255) DEFAULT '一等奖' COMMENT '奖项名称',
`j1pic` varchar(255) DEFAULT NULL,
`j1tp` tinyint(1) DEFAULT '1',
`j1sl` int(11) DEFAULT '5' COMMENT '奖品数量',
`j1yj` int(11) DEFAULT '0' COMMENT '已抽中数',
`j2mc` varchar(255) DEFAULT '二等奖' COMMENT '奖项名称',
`j2pic` varchar(255) DEFAULT NULL,
`j2tp` tinyint(1) DEFAULT '1',
`j2sl` int(11) DEFAULT '10' COMMENT '奖品数量',
`j2yj` int(11) DEFAULT '0' COMMENT '已抽中数',
`j3mc` varchar(255) DEFAULT '三等奖' COMMENT '奖项名称',
`j3pic` varchar(255) DEFAULT NULL,
`j3tp` tinyint(1) DEFAULT '1',
`j3sl` int(11) DEFAULT '30' COMMENT '奖品数量',
`j3yj` int(11) DEFAULT '0' COMMENT '已抽中数',
`j4mc` varchar(255) DEFAULT NULL COMMENT '奖项名称',
`j4pic` varchar(255) DEFAULT NULL,
`j4tp` tinyint(1) DEFAULT '1',
`j4sl` int(11) DEFAULT NULL COMMENT '奖品数量',
`j4yj` int(11) DEFAULT '0' COMMENT '已抽中数',
`j5mc` varchar(255) DEFAULT NULL COMMENT '奖项名称',
`j5pic` varchar(255) DEFAULT NULL,
`j5tp` tinyint(1) DEFAULT '1',
`j5sl` int(11) DEFAULT NULL COMMENT '奖品数量',
`j5yj` int(11) DEFAULT '0' COMMENT '已抽中数',
`j6mc` varchar(255) DEFAULT NULL COMMENT '奖项名称',
`j6pic` varchar(255) DEFAULT NULL,
`j6tp` tinyint(1) DEFAULT '1',
`j6sl` int(11) DEFAULT NULL COMMENT '奖品数量',
`j6yj` int(11) DEFAULT '0' COMMENT '已抽中数',
`j7mc` varchar(255) DEFAULT NULL COMMENT '奖项名称',
`j7pic` varchar(255) DEFAULT NULL,
`j7tp` tinyint(1) DEFAULT '1',
`j7sl` int(11) DEFAULT NULL COMMENT '奖品数量',
`j7yj` int(11) DEFAULT '0' COMMENT '已抽中数',
`j8mc` varchar(255) DEFAULT NULL COMMENT '奖项名称',
`j8pic` varchar(255) DEFAULT NULL,
`j8tp` tinyint(1) DEFAULT '1',
`j8sl` int(11) DEFAULT NULL COMMENT '奖品数量',
`j8yj` int(11) DEFAULT '0' COMMENT '已抽中数',
`j9mc` varchar(255) DEFAULT NULL COMMENT '奖项名称',
`j9pic` varchar(255) DEFAULT NULL,
`j9tp` tinyint(1) DEFAULT '1',
`j9sl` int(11) DEFAULT NULL COMMENT '奖品数量',
`j9yj` int(11) DEFAULT '0' COMMENT '已抽中数',
`j10mc` varchar(255) DEFAULT NULL,
`j10pic` varchar(255) DEFAULT NULL,
`j10tp` tinyint(1) DEFAULT '1',
`j10sl` int(11) DEFAULT NULL,
`j10yj` int(11) DEFAULT '0',
`j11mc` varchar(255) DEFAULT NULL,
`j11pic` varchar(255) DEFAULT NULL,
`j11tp` tinyint(1) DEFAULT '1',
`j11sl` int(11) DEFAULT NULL,
`j11yj` int(11) DEFAULT '0',
`j12mc` varchar(255) DEFAULT NULL,
`j12pic` varchar(255) DEFAULT NULL,
`j12tp` tinyint(1) DEFAULT '1',
`j12sl` int(11) DEFAULT NULL,
`j12yj` int(11) DEFAULT '0',
`pertotal` int(11) DEFAULT '3' COMMENT '每人参与总数',
`perday` int(11) DEFAULT '3' COMMENT '每天数量',
`shareaddnum` int(11) DEFAULT '0' COMMENT '分享增加抽奖次数',
`sharedaytimes` int(11) DEFAULT '0' COMMENT '每天最多分享次数',
`sharetimes` int(11) DEFAULT '0' COMMENT '最多分享总次数',
`qrhx` tinyint(1) DEFAULT '0' COMMENT '二维码核销',
`formcontent` text,
`createtime` varchar(50) DEFAULT NULL,
`updatetime` varchar(50) DEFAULT NULL,
`gettj` varchar(255) DEFAULT '-1',
`use_type` tinyint(1) DEFAULT '1' COMMENT '消耗类型 1:消耗积分 2:消耗余额',
`usescore` int(11) DEFAULT '0' COMMENT '消耗积分',
`usemoney` decimal(10, 2) DEFAULT 0 COMMENT '消耗余额',
`status` tinyint(1) DEFAULT '1',
`scene_id` varchar(100) DEFAULT NULL,
`fanwei` tinyint(1) DEFAULT '0',
`fanwei_lng` varchar(100) DEFAULT NULL,
`fanwei_lat` varchar(100) DEFAULT NULL,
`fanwei_range` varchar(100) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `status` (`status`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_choujiang_record`;
CREATE TABLE `ddwx_choujiang_record` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`hid` int(11) DEFAULT NULL COMMENT '大转盘id',
`name` varchar(255) DEFAULT NULL,
`mid` int(11) DEFAULT NULL,
`headimg` varchar(255) DEFAULT NULL,
`nickname` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL,
`linkman` varchar(255) DEFAULT NULL,
`tel` char(11) DEFAULT NULL COMMENT '手机号',
`jx` tinyint(4) DEFAULT NULL COMMENT '获得的奖项',
`jxtp` tinyint(1) DEFAULT '1' COMMENT '类型 1奖品 2红包',
`jxmc` varchar(255) DEFAULT NULL COMMENT '奖品名称',
`formdata` text,
`createtime` int(11) DEFAULT NULL COMMENT '抽奖时间',
`createdate` varchar(50) DEFAULT NULL,
`status` tinyint(1) DEFAULT '0' COMMENT '是否领奖',
`remark` varchar(1023) DEFAULT NULL,
`code` varchar(255) DEFAULT NULL,
`hexiaoqr` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `hid` (`hid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_choujiang_sharelog`;
CREATE TABLE `ddwx_choujiang_sharelog` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`hid` int(11) DEFAULT NULL,
`mid` int(11) DEFAULT NULL,
`sharedaytimes` int(11) DEFAULT '0' COMMENT '当天分享次数',
`sharecounttimes` int(11) DEFAULT '0' COMMENT '分享总次数',
`updatetime` varchar(50) DEFAULT NULL COMMENT '更新时间',
`addtimes` int(11) DEFAULT '0' COMMENT '增加的次数',
`adddaytimes` int(11) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `hid` (`hid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE,
KEY `updatetime` (`updatetime`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_collage_category`;
CREATE TABLE `ddwx_collage_category` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`pid` int(11) DEFAULT '0',
`name` varchar(255) DEFAULT NULL,
`pic` varchar(255) DEFAULT NULL,
`status` int(1) DEFAULT '1',
`sort` int(11) DEFAULT '1',
`createtime` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_collage_codelist`;
CREATE TABLE `ddwx_collage_codelist` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`proid` int(11) DEFAULT NULL,
`content` text,
`ordernum` varchar(100) DEFAULT NULL,
`orderid` int(11) DEFAULT NULL,
`headimg` varchar(255) DEFAULT NULL,
`nickname` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL,
`createtime` int(11) DEFAULT NULL,
`buytime` int(11) DEFAULT NULL,
`status` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `proid` (`proid`) USING BTREE,
KEY `status` (`status`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_collage_comment`;
CREATE TABLE `ddwx_collage_comment` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`mid` int(11) DEFAULT NULL,
`orderid` int(11) DEFAULT NULL,
`ogid` int(11) DEFAULT NULL,
`proid` int(11) DEFAULT NULL,
`proname` varchar(255) DEFAULT NULL,
`propic` varchar(255) DEFAULT NULL,
`ggid` int(11) DEFAULT NULL,
`ggname` varchar(255) DEFAULT NULL,
`ordernum` varchar(50) DEFAULT NULL,
`openid` varchar(255) DEFAULT NULL,
`nickname` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL,
`headimg` varchar(255) DEFAULT NULL,
`score` int(11) DEFAULT NULL,
`content` varchar(255) DEFAULT NULL,
`content_pic` varchar(255) DEFAULT NULL,
`reply_content` varchar(255) DEFAULT NULL,
`reply_content_pic` varchar(255) DEFAULT NULL,
`append_content` varchar(255) DEFAULT NULL,
`append_content_pic` varchar(255) DEFAULT NULL,
`append_reply_content` varchar(255) DEFAULT NULL,
`append_reply_content_pic` varchar(255) DEFAULT NULL,
`createtime` int(11) DEFAULT NULL,
`appendtime` int(11) DEFAULT NULL,
`status` int(1) DEFAULT '1',
`reply_time` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE,
KEY `orderid` (`orderid`) USING BTREE,
KEY `ogid` (`ogid`) USING BTREE,
KEY `proid` (`proid`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_collage_guige`;
CREATE TABLE `ddwx_collage_guige` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`proid` int(11) DEFAULT NULL,
`name` varchar(255) DEFAULT NULL,
`pic` varchar(255) DEFAULT NULL,
`market_price` decimal(11,2) DEFAULT '0.00',
`cost_price` decimal(11,2) DEFAULT '0.00',
`sell_price` decimal(11,2) DEFAULT '0.00',
`weight` int(11) DEFAULT NULL,
`stock` int(11) unsigned DEFAULT '0',
`procode` varchar(255) DEFAULT NULL,
`sales` int(11) unsigned DEFAULT '0',
`ks` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `proid` (`proid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_collage_order`;
CREATE TABLE `ddwx_collage_order` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`mid` int(11) DEFAULT NULL,
`ordernum` varchar(255) DEFAULT NULL,
`buytype` tinyint(1) DEFAULT '1' COMMENT '1单买 2发团 3参团',
`teamid` int(11) DEFAULT NULL,
`title` text,
`proid` int(11) DEFAULT NULL,
`proname` varchar(255) DEFAULT NULL,
`propic` varchar(255) DEFAULT NULL,
`ggid` int(11) DEFAULT NULL,
`ggname` varchar(255) DEFAULT NULL,
`num` int(11) DEFAULT '1',
`cost_price` decimal(10,2) DEFAULT NULL,
`sell_price` decimal(10,2) DEFAULT NULL,
`totalprice` float(11,2) DEFAULT NULL,
`business_total_money` decimal(11, 2) NULL DEFAULT NULL,
`product_price` float(11,2) DEFAULT '0.00',
`freight_price` float(11,2) DEFAULT NULL,
`scoredk_money` float(11,2) DEFAULT NULL,
`leveldk_money` float(11,2) DEFAULT '0.00' COMMENT '会员等级优惠金额',
`leader_money` decimal(11,2) DEFAULT '0.00',
`coupon_money` decimal(11,2) DEFAULT '0.00' COMMENT '优惠券金额',
`coupon_rid` int(11) DEFAULT NULL COMMENT '优惠券coupon_record的id',
`scoredkscore` int(11) DEFAULT '0',
`givescore` int(11) DEFAULT '0',
`createtime` int(11) DEFAULT NULL,
`status` int(11) DEFAULT '0' COMMENT '0未支付;1已支付;2已发货,3已收货',
`linkman` varchar(255) DEFAULT NULL,
`tel` varchar(50) DEFAULT NULL,
`area` varchar(255) DEFAULT NULL,
`area2` varchar(255) DEFAULT NULL,
`address` varchar(255) DEFAULT NULL,
`longitude` varchar(100) DEFAULT NULL,
`latitude` varchar(100) DEFAULT NULL,
`message` varchar(255) DEFAULT NULL,
`remark` varchar(255) DEFAULT NULL,
`express_com` varchar(255) DEFAULT NULL,
`express_no` varchar(255) DEFAULT NULL,
`refund_reason` varchar(255) DEFAULT NULL,
`refund_money` decimal(11,2) DEFAULT '0.00',
`refund_status` int(1) DEFAULT '0' COMMENT '1申请退款审核中 2已同意退款 3已驳回',
`refund_time` int(11) DEFAULT NULL,
`refund_checkremark` varchar(255) DEFAULT NULL,
`payorderid` int(11) DEFAULT NULL,
`paytypeid` int(11) DEFAULT NULL,
`paytype` varchar(50) DEFAULT NULL,
`paynum` varchar(255) DEFAULT NULL,
`paytime` int(11) DEFAULT NULL,
`delete` int(1) DEFAULT '0',
`freight_id` int(11) DEFAULT NULL,
`freight_text` varchar(255) DEFAULT NULL,
`freight_type` tinyint(1) DEFAULT '0',
`mdid` int(11) DEFAULT NULL,
`freight_time` varchar(255) DEFAULT NULL,
`freight_content` text,
`send_time` bigint(20) DEFAULT NULL COMMENT '发货时间',
`collect_time` int(11) DEFAULT NULL COMMENT '收货时间',
`hexiao_code` varchar(100) DEFAULT NULL,
`hexiao_qr` varchar(255) DEFAULT NULL,
`platform` varchar(255) DEFAULT 'wx',
`iscomment` tinyint(1) DEFAULT '0',
`parent1` int(11) DEFAULT NULL,
`parent2` int(11) DEFAULT NULL,
`parent3` int(11) DEFAULT NULL,
`parent1commission` decimal(11,2) DEFAULT '0.00',
`parent2commission` decimal(11,2) DEFAULT '0.00',
`parent3commission` decimal(11,2) DEFAULT '0.00',
`parent1score` int(11) DEFAULT '0',
`parent2score` int(11) DEFAULT '0',
`parent3score` int(11) DEFAULT '0',
`iscommission` tinyint(1) DEFAULT '0' COMMENT '佣金是否已发放',
`iszj` tinyint(2) DEFAULT '0' COMMENT '是否中奖 1 为中奖',
`money` decimal(11,2) DEFAULT '0.00' COMMENT '奖励得红包金额',
`isjiqiren` tinyint(2) DEFAULT '0' COMMENT '1 为机器人',
`givetz_money` float(11,2) DEFAULT '0.00' COMMENT '赠送余额',
`givetz_commission` float(11,2) DEFAULT '0.00' COMMENT '赠送团长佣金',
`sharemoney` float(11,2) DEFAULT '0.00' COMMENT '分享奖励余额',
`sharecommission` float(11,2) DEFAULT '0.00' COMMENT '分享奖励佣金',
`sharescore` float(11,2) DEFAULT '0.00' COMMENT '分享奖励积分',
`shareid` int(11) DEFAULT '0' COMMENT '分享者id',
`share_yhqids` varchar(255) DEFAULT NULL COMMENT '分享赠送优惠券',
PRIMARY KEY (`id`),
UNIQUE KEY `hexiao_code` (`hexiao_code`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE,
KEY `status` (`status`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_collage_order_team`;
CREATE TABLE `ddwx_collage_order_team` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`mid` varchar(100) DEFAULT NULL,
`proid` int(11) DEFAULT NULL,
`teamhour` int(11) DEFAULT NULL,
`teamnum` int(11) DEFAULT NULL,
`status` int(1) DEFAULT '0' COMMENT '0未支付 1进行中 2成功 3失败',
`num` int(11) DEFAULT '0',
`createtime` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE,
KEY `proid` (`proid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_collage_product`;
CREATE TABLE `ddwx_collage_product` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`cid` int(11) DEFAULT '0',
`name` varchar(255) DEFAULT NULL,
`procode` varchar(255) DEFAULT NULL,
`fuwupoint` varchar(255) DEFAULT NULL,
`sellpoint` varchar(255) DEFAULT NULL,
`pic` varchar(255) DEFAULT '',
`pics` varchar(5000) DEFAULT NULL,
`sales` int(11) unsigned DEFAULT '0',
`detail` longtext,
`market_price` float(11,2) DEFAULT NULL,
`sell_price` float(11,2) DEFAULT '0.00',
`cost_price` decimal(11,2) DEFAULT '0.00',
`weight` int(11) DEFAULT NULL,
`sort` int(11) DEFAULT '0',
`status` int(1) DEFAULT '1',
`stock` int(11) unsigned DEFAULT '100',
`createtime` int(11) DEFAULT NULL,
`commissionset` tinyint(1) DEFAULT '0',
`commission1` decimal(11,2) DEFAULT NULL,
`commission2` decimal(11,2) DEFAULT NULL,
`commission3` decimal(11,2) DEFAULT NULL,
`guigedata` text,
`comment_score` decimal(2,1) DEFAULT '5.0',
`comment_num` int(11) DEFAULT '0',
`comment_haopercent` int(11) DEFAULT '100',
`teamnum` int(11) DEFAULT '3',
`buymax` int(11) DEFAULT '0',
`teamhour` int(11) DEFAULT NULL,
`leadermoney` decimal(11,2) DEFAULT '0.00',
`leaderscore` int(11) DEFAULT '0',
`freighttype` tinyint(1) DEFAULT '1',
`freightdata` varchar(255) DEFAULT NULL,
`freightcontent` text,
`ischecked` tinyint(1) DEFAULT '1',
`check_reason` varchar(255) DEFAULT NULL,
`commissiondata1` text,
`commissiondata2` text,
`commissiondata3` text,
`feepercent` decimal(5,2) unsigned DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `cid` (`cid`) USING BTREE,
KEY `status` (`status`) USING BTREE,
KEY `ischecked` (`ischecked`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_collage_sysset`;
CREATE TABLE `ddwx_collage_sysset` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`pics` text,
`autoshdays` int(11) DEFAULT '7',
`comment` tinyint(1) DEFAULT '1',
`comment_check` tinyint(1) DEFAULT '1',
`showjd` tinyint(1) DEFAULT '1',
`timeset` varchar(255) DEFAULT NULL COMMENT '开团场次',
`duration` varchar(255) DEFAULT NULL COMMENT '开团时长',
PRIMARY KEY (`id`),
UNIQUE KEY `aid` (`aid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_coupon`;
CREATE TABLE `ddwx_coupon` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL COMMENT '账户ID',
`bid` int(11) DEFAULT '0' COMMENT '商家ID 0表示平台',
`type` tinyint(1) DEFAULT '1' COMMENT '1代金券2礼品券3计次券',
`name` varchar(255) DEFAULT NULL COMMENT '优惠券名称',
`starttime` varchar(100) DEFAULT NULL COMMENT '开始时间',
`endtime` varchar(100) DEFAULT NULL COMMENT '结束时间',
`yxqtype` tinyint(4) DEFAULT NULL COMMENT '有效期类型 1定时间范围 2领取后时长',
`yxqdate` int(11) DEFAULT NULL COMMENT '领取后多少天有效',
`yxqtime` varchar(255) DEFAULT NULL COMMENT '有效期时间范围',
`money` float(11,2) DEFAULT NULL COMMENT '抵扣金额',
`minprice` float(11,2) DEFAULT NULL COMMENT '最低消费金额',
`limit_count` int(11) DEFAULT '10' COMMENT '计次券类型时 可用次数',
`limit_perday` int(11) DEFAULT '0' COMMENT '计次券类型时 每天可用次数',
`stock` int(11) DEFAULT NULL COMMENT '库存',
`getnum` int(11) DEFAULT '0',
`perlimit` int(11) DEFAULT '1' COMMENT '每人可领数量',
`gettips` text,
`usetips` text COMMENT '使用说明',
`price` float(11,2) DEFAULT '0.00' COMMENT '所需金额',
`score` int(11) DEFAULT '0' COMMENT '所需积分',
`sort` int(11) DEFAULT '0' COMMENT '排序',
`createtime` int(11) DEFAULT NULL COMMENT '创建时间',
`tolist` tinyint(1) DEFAULT '1' COMMENT '是否可直接领取',
`isgive` tinyint(1) NULL DEFAULT '0' COMMENT '是否可赠送',
`paygive` tinyint(1) DEFAULT '0' COMMENT '支付后赠送',
`paygive_scene` varchar(255) DEFAULT NULL COMMENT '支付赠送场景',
`paygive_minprice` decimal(10,2) DEFAULT '0.00' COMMENT '支付赠送最小金额',
`gettj` varchar(255) DEFAULT '-1' COMMENT '领取条件 -1不限制',
`paygive_maxprice` decimal(10,2) DEFAULT '9999.00',
`fwtype` tinyint(1) DEFAULT '0' COMMENT '0全场通用,1指定类目,2指定商品,3指定菜品',
`categoryids` varchar(255) DEFAULT NULL COMMENT '指定类目ids',
`productids` varchar(255) DEFAULT NULL COMMENT '指定商品ids',
`restaurant_productids` varchar(255) DEFAULT NULL COMMENT '指定菜品ids',
`buyproids` varchar(255) DEFAULT NULL COMMENT '购买商品赠送 商品ID数据',
`buyprogive` tinyint(1) DEFAULT '0' COMMENT '是否开启购买商品赠送',
`buypro_give_num` varchar(255) DEFAULT '1',
`buy_restaurant_product_give` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否购买菜品赠送',
`buy_restaurant_product_ids` varchar(255) DEFAULT NULL COMMENT '菜品id,间隔',
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `type` (`type`) USING BTREE,
KEY `starttime` (`starttime`) USING BTREE,
KEY `endtime` (`endtime`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='优惠券';
DROP TABLE IF EXISTS `ddwx_coupon_order`;
CREATE TABLE `ddwx_coupon_order` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL COMMENT '账户ID',
`bid` int(11) DEFAULT '0' COMMENT '商户ID 0表示平台',
`cpid` int(11) DEFAULT NULL COMMENT '优惠券ID',
`mid` int(11) DEFAULT NULL COMMENT '会员ID',
`title` varchar(255) DEFAULT NULL COMMENT '标题',
`price` decimal(11,2) DEFAULT NULL COMMENT '金额',
`ordernum` varchar(100) DEFAULT NULL COMMENT '订单号',
`createtime` int(11) DEFAULT NULL COMMENT '创建时间',
`status` tinyint(1) DEFAULT '0' COMMENT '状态 0未支付1已支付',
`payorderid` int(11) DEFAULT NULL COMMENT '支付表id',
`paytype` varchar(255) DEFAULT NULL COMMENT '支付方式',
`paytypeid` int(11) DEFAULT NULL,
`paynum` varchar(255) DEFAULT NULL COMMENT '支付单号',
`paytime` int(11) DEFAULT NULL COMMENT '支付时间',
`msg` varchar(255) DEFAULT NULL,
`platform` varchar(100) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `cpid` (`cpid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='优惠券购买订单';
DROP TABLE IF EXISTS `ddwx_coupon_record`;
CREATE TABLE `ddwx_coupon_record` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL COMMENT '账户ID',
`bid` int(11) DEFAULT '0' COMMENT '商户ID 0表示平台',
`mid` int(11) DEFAULT NULL COMMENT '会员ID',
`couponid` int(11) DEFAULT NULL COMMENT '优惠券ID',
`couponname` varchar(255) DEFAULT NULL COMMENT '优惠券名称',
`money` float(11,2) DEFAULT '0.00' COMMENT '优惠金额',
`minprice` float(11,2) DEFAULT '0.00' COMMENT '最低消费金额',
`starttime` int(11) DEFAULT NULL COMMENT '开始时间',
`endtime` int(11) DEFAULT NULL COMMENT '到期时间',
`usetime` int(11) DEFAULT NULL COMMENT '使用时间',
`createtime` int(11) DEFAULT NULL COMMENT '领取时间',
`status` tinyint(1) DEFAULT '0' COMMENT '状态0未使用1已使用',
`type` tinyint(1) DEFAULT '1' COMMENT '1代金券2礼品券3计次券',
`limit_count` int(11) DEFAULT '10' COMMENT '计次券类型时 可用次数',
`limit_perday` int(11) DEFAULT '0' COMMENT '计次券类型时 每天可用次数',
`used_count` int(11) DEFAULT '0' COMMENT '计次券时使用次数',
`code` varchar(255) DEFAULT NULL COMMENT '核销码',
`hexiaoqr` varchar(255) DEFAULT NULL COMMENT '核销码图片url',
`remark` varchar(255) DEFAULT NULL,
`from_mid` int(11) NULL COMMENT '赠送人',
`receive_time` int(11) NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE,
KEY `couponid` (`couponid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='优惠券领取记录';
DROP TABLE IF EXISTS `ddwx_cuxiao`;
CREATE TABLE `ddwx_cuxiao` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`type` tinyint(1) DEFAULT '1' COMMENT '0仅显示 1满减 2满赠 3换购',
`tip` varchar(255) DEFAULT NULL,
`name` varchar(255) DEFAULT NULL,
`starttime` varchar(100) DEFAULT NULL,
`endtime` varchar(100) DEFAULT NULL,
`sort` int(11) DEFAULT '0',
`createtime` int(11) DEFAULT NULL,
`gettj` varchar(255) DEFAULT '-1',
`fwtype` tinyint(1) DEFAULT '0',
`categoryids` varchar(255) DEFAULT NULL,
`productids` varchar(255) DEFAULT NULL,
`minprice` decimal(10,2) DEFAULT '0.00',
`proid` int(11) DEFAULT '0' COMMENT '赠送或换购的商品id',
`ggid` int(11) DEFAULT '0' COMMENT '赠送或换购的商品规格id',
`money` float(11,2) DEFAULT '0.00' COMMENT '满减额度或加价金额',
`minnum` int(11) DEFAULT '1' COMMENT '最低购买件数',
`zhekou` float(11,2) DEFAULT NULL COMMENT '折扣0.01~9.99',
`prozk` varchar(255) DEFAULT '' COMMENT '单独设置的商品折扣',
`pronum` varchar(255) DEFAULT '' COMMENT '单独设置的商品最低购买数量',
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `type` (`type`) USING BTREE,
KEY `starttime` (`starttime`) USING BTREE,
KEY `endtime` (`endtime`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_designer_menu`;
CREATE TABLE `ddwx_designer_menu` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`indexurl` varchar(255) DEFAULT '/m/main/index',
`menucount` int(11) DEFAULT NULL,
`menudata` text,
`navigationBarBackgroundColor` varchar(255) DEFAULT NULL,
`navigationBarTextStyle` varchar(255) DEFAULT NULL,
`updatetime` int(11) DEFAULT NULL,
`platform` varchar(11) DEFAULT 'mp',
`tongbu` tinyint(1) DEFAULT '1',
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `platform` (`platform`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_designer_menu2`;
CREATE TABLE `ddwx_designer_menu2` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`indexurlname` varchar(255) DEFAULT NULL,
`indexurl` varchar(255) DEFAULT NULL,
`menudata` text,
`createtime` int(11) DEFAULT NULL,
`status` tinyint(1) DEFAULT '1',
`platform` varchar(100) DEFAULT NULL,
`backgroundColor` varchar(255) DEFAULT NULL,
`menucount` int(11) DEFAULT '4',
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `indexurl` (`indexurl`) USING BTREE,
KEY `platform` (`platform`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_designer_share`;
CREATE TABLE `ddwx_designer_share` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`indexurlname` varchar(255) DEFAULT NULL,
`indexurl` varchar(255) DEFAULT NULL,
`title` varchar(255) DEFAULT NULL,
`desc` varchar(255) DEFAULT NULL,
`pic` varchar(255) DEFAULT NULL,
`url` varchar(255) DEFAULT NULL,
`createtime` int(11) DEFAULT NULL,
`status` tinyint(1) DEFAULT '1',
`platform` varchar(100) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `status` (`status`) USING BTREE,
KEY `indexurl` (`indexurl`) USING BTREE,
KEY `platform` (`platform`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_designerpage`;
CREATE TABLE `ddwx_designerpage` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`name` varchar(255) DEFAULT NULL,
`ishome` int(11) DEFAULT '0' COMMENT '1首页 2会员中心',
`pageinfo` text,
`content` longtext,
`createtime` int(11) DEFAULT NULL,
`updatetime` int(11) DEFAULT NULL,
`sort` int(11) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `ishome` (`ishome`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_designerpage_order`;
CREATE TABLE `ddwx_designerpage_order` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`pageid` int(11) DEFAULT NULL,
`mid` int(11) DEFAULT NULL,
`title` varchar(255) DEFAULT NULL,
`price` decimal(11,2) DEFAULT NULL,
`ordernum` varchar(100) DEFAULT NULL,
`createtime` int(11) DEFAULT NULL,
`status` tinyint(1) DEFAULT '0',
`payorderid` int(11) DEFAULT NULL,
`paytypeid` int(11) DEFAULT NULL,
`paytype` varchar(255) DEFAULT NULL,
`paynum` varchar(255) DEFAULT NULL,
`paytime` int(11) DEFAULT NULL,
`platform` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `pageid` (`pageid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_fans`;
CREATE TABLE `ddwx_fans` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`subscribe` int(11) DEFAULT NULL,
`openid` varchar(100) DEFAULT NULL,
`unionid` varchar(100) DEFAULT NULL,
`nickname` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL,
`sex` varchar(50) DEFAULT NULL,
`city` varchar(255) DEFAULT NULL,
`country` varchar(255) DEFAULT NULL,
`province` varchar(255) DEFAULT NULL,
`language` varchar(50) DEFAULT NULL,
`headimgurl` varchar(255) DEFAULT NULL,
`subscribe_time` int(11) DEFAULT NULL,
`tag` varchar(255) DEFAULT NULL,
`messagetime` int(11) DEFAULT NULL,
`remark` varchar(255) DEFAULT NULL,
`subscribe_scene` varchar(255) DEFAULT NULL,
`qr_scene` varchar(255) DEFAULT NULL,
`qr_scene_str` varchar(255) DEFAULT NULL,
`doing` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `openid` (`openid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_fans_tag`;
CREATE TABLE `ddwx_fans_tag` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`name` varchar(255) DEFAULT NULL,
`tagid` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_form`;
CREATE TABLE `ddwx_form` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`name` varchar(255) DEFAULT NULL,
`starttime` varchar(255) DEFAULT NULL,
`endtime` varchar(255) DEFAULT NULL,
`content` longtext,
`payset` tinyint(1) DEFAULT '0',
`price` decimal(11,2) DEFAULT '0.00',
`priceedit` tinyint(1) DEFAULT '0',
`maxlimit` int(11) DEFAULT '0' COMMENT '总收集数量限制',
`perlimit` int(11) DEFAULT '1' COMMENT '每人提交次数限制',
`sort` int(11) DEFAULT '0',
`createtime` int(11) DEFAULT NULL,
`commissionset` tinyint(1) DEFAULT '-1',
`commission1` decimal(11,2) DEFAULT '0.00',
`commission2` decimal(11,2) DEFAULT '0.00',
`commission3` decimal(11,2) DEFAULT '0.00',
`commissiondata1` text,
`commissiondata2` text,
`fanwei` tinyint(1) DEFAULT '0',
`fanwei_lng` varchar(100) DEFAULT NULL,
`fanwei_lat` varchar(100) DEFAULT NULL,
`fanwei_range` varchar(100) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_form_order`;
CREATE TABLE `ddwx_form_order` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`formid` bigint(20) DEFAULT NULL,
`title` varchar(255) DEFAULT NULL,
`mid` int(11) DEFAULT NULL,
`form0` varchar(255) DEFAULT NULL,
`form1` varchar(255) DEFAULT NULL,
`form2` varchar(255) DEFAULT NULL,
`form3` varchar(255) DEFAULT NULL,
`form4` varchar(255) DEFAULT NULL,
`form5` varchar(255) DEFAULT NULL,
`form6` varchar(255) DEFAULT NULL,
`form7` varchar(255) DEFAULT NULL,
`form8` varchar(255) DEFAULT NULL,
`form9` varchar(255) DEFAULT NULL,
`form10` varchar(255) DEFAULT NULL,
`form11` varchar(255) DEFAULT NULL,
`form12` varchar(255) DEFAULT NULL,
`form13` varchar(255) DEFAULT NULL,
`form14` varchar(255) DEFAULT NULL,
`form15` varchar(255) DEFAULT NULL,
`form16` varchar(255) DEFAULT NULL,
`form17` varchar(255) DEFAULT NULL,
`form18` varchar(255) DEFAULT NULL,
`form19` varchar(255) DEFAULT NULL,
`form20` varchar(255) DEFAULT NULL,
`form21` varchar(255) DEFAULT NULL,
`form22` varchar(255) DEFAULT NULL,
`form23` varchar(255) DEFAULT NULL,
`form24` varchar(255) DEFAULT NULL,
`form25` varchar(255) DEFAULT NULL,
`form26` varchar(255) DEFAULT NULL,
`form27` varchar(255) DEFAULT NULL,
`form28` varchar(255) DEFAULT NULL,
`form29` varchar(255) DEFAULT NULL,
`form30` varchar(255) DEFAULT NULL,
`status` tinyint(1) DEFAULT '0' COMMENT '0 未处理 1确认 2驳回',
`createtime` int(11) DEFAULT NULL,
`isudel` tinyint(1) DEFAULT '0',
`paystatus` int(1) DEFAULT '0',
`paynum` varchar(255) DEFAULT NULL,
`money` float(11,2) DEFAULT '0.00',
`ordernum` varchar(255) DEFAULT NULL,
`payorderid` int(11) DEFAULT NULL,
`paytypeid` int(11) DEFAULT NULL,
`paytype` varchar(255) DEFAULT NULL,
`paytime` int(11) DEFAULT NULL,
`platform` varchar(100) DEFAULT NULL,
`reason` varchar(255) NULL COMMENT '驳回原因',
`isrefund` tinyint(1) DEFAULT '0',
`fromurl` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE,
KEY `formid` (`formid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_freight`;
CREATE TABLE `ddwx_freight` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`pstype` tinyint(1) DEFAULT '0' COMMENT '0快递 1自提 2同城配送',
`name` varchar(255) DEFAULT NULL,
`type` tinyint(1) DEFAULT '1' COMMENT '1按重量 2按件数',
`pricedata` longtext,
`storetype` tinyint(1) DEFAULT '0' COMMENT '自提门店 0全部 1选择',
`storeids` varchar(255) DEFAULT NULL,
`status` int(1) DEFAULT '0',
`sort` int(11) DEFAULT '0',
`free_price` decimal(11,2) DEFAULT '0.00',
`freeset` tinyint(1) DEFAULT '0',
`pstimeset` tinyint(1) DEFAULT '0' COMMENT '是否开启配送时间选择',
`pstimedata` text COMMENT '配送时间设置',
`psprehour` int(11) DEFAULT '4' COMMENT '选择配送时间y要大于当前时间多少小时',
`createtime` int(11) DEFAULT NULL,
`peisong_juli1` float(11,1) DEFAULT '5.0',
`peisong_fee1` float(11,2) DEFAULT '3.00',
`peisong_juli2` float(11,1) DEFAULT NULL,
`peisong_fee2` float(11,2) DEFAULT NULL,
`peisong_lng` varchar(255) DEFAULT NULL,
`peisong_lat` varchar(255) DEFAULT NULL,
`peisong_range` int(11) DEFAULT NULL,
`field_list` text,
`pscontenttype` tinyint(1) DEFAULT '0',
`pscontent` text,
`needlinkinfo` tinyint(1) DEFAULT '0',
`minpriceset` tinyint(1) DEFAULT '0',
`minprice` decimal(11,2) DEFAULT '0.00',
`fwprice` decimal(11,2) DEFAULT '0.00',
`peisong_rangetype` tinyint(1) DEFAULT '0',
`peisong_rangepath` text,
`formdata` text,
`peisong_lng2` varchar(255) DEFAULT NULL,
`peisong_lat2` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `pstype` (`pstype`) USING BTREE,
KEY `type` (`type`) USING BTREE,
KEY `status` (`status`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_freight_formdata`;
CREATE TABLE `ddwx_freight_formdata` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`type` varchar(255) DEFAULT NULL,
`orderid` int(11) DEFAULT NULL,
`form0` varchar(255) DEFAULT NULL,
`form1` varchar(255) DEFAULT NULL,
`form2` varchar(255) DEFAULT NULL,
`form3` varchar(255) DEFAULT NULL,
`form4` varchar(255) DEFAULT NULL,
`form5` varchar(255) DEFAULT NULL,
`form6` varchar(255) DEFAULT NULL,
`form7` varchar(255) DEFAULT NULL,
`form8` varchar(255) DEFAULT NULL,
`form9` varchar(255) DEFAULT NULL,
`form10` varchar(255) DEFAULT NULL,
`form11` varchar(255) DEFAULT NULL,
`form12` varchar(255) DEFAULT NULL,
`form13` varchar(255) DEFAULT NULL,
`form14` varchar(255) DEFAULT NULL,
`form15` varchar(255) DEFAULT NULL,
`form16` varchar(255) DEFAULT NULL,
`form17` varchar(255) DEFAULT NULL,
`form18` varchar(255) DEFAULT NULL,
`form19` varchar(255) DEFAULT NULL,
`form20` varchar(255) DEFAULT NULL,
`form21` varchar(255) DEFAULT NULL,
`form22` varchar(255) DEFAULT NULL,
`form23` varchar(255) DEFAULT NULL,
`form24` varchar(255) DEFAULT NULL,
`form25` varchar(255) DEFAULT NULL,
`form26` varchar(255) DEFAULT NULL,
`form27` varchar(255) DEFAULT NULL,
`form28` varchar(255) DEFAULT NULL,
`form29` varchar(255) DEFAULT NULL,
`form30` varchar(255) DEFAULT NULL,
`createtime` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `type` (`type`) USING BTREE,
KEY `orderid` (`orderid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_guanggao_showlog`;
CREATE TABLE `ddwx_guanggao_showlog` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`mid` int(11) DEFAULT NULL,
`pic` varchar(255) DEFAULT NULL,
`createtime` int(11) DEFAULT NULL,
`platform` varchar(255) DEFAULT '',
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_help`;
CREATE TABLE `ddwx_help` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`cid` int(11) DEFAULT NULL,
`name` varchar(255) DEFAULT NULL,
`subname` varchar(255) DEFAULT NULL,
`pic` varchar(255) DEFAULT NULL,
`author` varchar(255) DEFAULT NULL,
`content` longtext,
`readcount` int(11) DEFAULT '0',
`sort` int(11) DEFAULT '0',
`createtime` int(11) DEFAULT NULL,
`sendtime` varchar(100) DEFAULT NULL,
`status` int(11) DEFAULT '1',
`showname` tinyint(1) DEFAULT '1',
`showsubname` tinyint(1) DEFAULT '1',
`showreadcount` tinyint(1) DEFAULT '1',
`showsendtime` tinyint(1) DEFAULT '1',
`showauthor` tinyint(1) DEFAULT '1',
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `cid` (`cid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_hexiao_order`;
CREATE TABLE `ddwx_hexiao_order` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`uid` int(11) DEFAULT NULL,
`mid` varchar(100) DEFAULT NULL,
`orderid` int(11) DEFAULT NULL,
`ordernum` varchar(100) DEFAULT NULL,
`title` varchar(255) DEFAULT NULL,
`createtime` int(11) DEFAULT NULL,
`remark` varchar(255) DEFAULT NULL,
`type` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `uid` (`uid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_kanjia_codelist`;
CREATE TABLE `ddwx_kanjia_codelist` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`proid` int(11) DEFAULT NULL,
`content` text,
`ordernum` varchar(100) DEFAULT NULL,
`orderid` int(11) DEFAULT NULL,
`headimg` varchar(255) DEFAULT NULL,
`nickname` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL,
`createtime` int(11) DEFAULT NULL,
`buytime` int(11) DEFAULT NULL,
`status` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `status` (`status`) USING BTREE,
KEY `proid` (`proid`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_kanjia_help`;
CREATE TABLE `ddwx_kanjia_help` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`mid` int(11) DEFAULT NULL,
`proid` int(11) DEFAULT NULL,
`helpmid` int(11) DEFAULT NULL,
`joinid` int(11) DEFAULT NULL,
`cut_price` decimal(11,2) DEFAULT NULL,
`after_price` decimal(11,2) DEFAULT NULL,
`createtime` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE,
KEY `helpmid` (`helpmid`) USING BTREE,
KEY `joinid` (`joinid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_kanjia_join`;
CREATE TABLE `ddwx_kanjia_join` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`mid` int(11) DEFAULT NULL,
`proid` int(11) DEFAULT NULL,
`now_price` decimal(11,2) DEFAULT NULL,
`helpnum` int(11) DEFAULT '0',
`createtime` int(11) DEFAULT NULL,
`status` tinyint(1) DEFAULT '0' COMMENT '0进行中 1已完成 2已失败',
`endtime` int(11) DEFAULT NULL,
`isbuy` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE,
KEY `proid` (`proid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_kanjia_order`;
CREATE TABLE `ddwx_kanjia_order` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`mid` int(11) DEFAULT NULL,
`title` text,
`proid` int(11) DEFAULT NULL,
`proname` varchar(255) DEFAULT NULL,
`propic` varchar(255) DEFAULT NULL,
`num` int(11) DEFAULT '1',
`totalprice` float(11,2) DEFAULT NULL,
`business_total_money` decimal(11, 2) NULL DEFAULT NULL,
`product_price` float(11,2) DEFAULT '0.00',
`freight_price` float(11,2) DEFAULT NULL,
`sell_price` decimal(11,2) DEFAULT '0.00',
`cost_price` decimal(11,2) DEFAULT '0.00',
`scoredk_money` float(11,2) DEFAULT '0.00' COMMENT '积分抵扣金额',
`scoredkscore` int(11) DEFAULT '0' COMMENT '积分抵扣掉的积分',
`createtime` int(11) DEFAULT NULL,
`status` int(11) DEFAULT '0' COMMENT '0未支付;1已支付;2已发货,3已收货',
`ordernum` varchar(255) DEFAULT NULL,
`linkman` varchar(255) DEFAULT NULL,
`tel` varchar(50) DEFAULT NULL,
`area` varchar(255) DEFAULT NULL,
`area2` varchar(255) DEFAULT NULL,
`address` varchar(255) DEFAULT NULL,
`longitude` varchar(100) DEFAULT NULL,
`latitude` varchar(100) DEFAULT NULL,
`message` varchar(255) DEFAULT NULL,
`remark` varchar(255) DEFAULT NULL,
`express_com` varchar(255) DEFAULT NULL,
`express_no` varchar(255) DEFAULT NULL,
`refund_reason` varchar(255) DEFAULT NULL,
`refund_money` decimal(11,2) DEFAULT '0.00',
`refund_status` int(1) DEFAULT '0' COMMENT '1申请退款审核中 2已同意退款 3已驳回',
`refund_time` int(11) DEFAULT NULL,
`refund_checkremark` varchar(255) DEFAULT NULL,
`payorderid` int(11) DEFAULT NULL,
`paytypeid` int(11) DEFAULT NULL,
`paytype` varchar(50) DEFAULT NULL,
`paynum` varchar(255) DEFAULT NULL,
`paytime` int(11) DEFAULT NULL,
`delete` int(1) DEFAULT '0',
`freight_id` int(11) DEFAULT NULL,
`freight_text` varchar(255) DEFAULT NULL,
`freight_type` tinyint(1) DEFAULT '0',
`mdid` int(11) DEFAULT NULL,
`freight_time` varchar(255) DEFAULT NULL,
`freight_content` text,
`send_time` bigint(20) DEFAULT NULL COMMENT '发货时间',
`collect_time` int(11) DEFAULT NULL COMMENT '收货时间',
`platform` varchar(50) DEFAULT 'wx' COMMENT 'wx小程序 m公众号网页',
`hexiao_code` varchar(100) DEFAULT NULL,
`hexiao_qr` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`hexiao_code`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE,
KEY `proid` (`proid`) USING BTREE,
KEY `status` (`status`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_kanjia_product`;
CREATE TABLE `ddwx_kanjia_product` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`name` varchar(255) DEFAULT NULL,
`pic` varchar(255) DEFAULT '',
`pics` varchar(5000) DEFAULT NULL,
`sales` int(11) unsigned DEFAULT '0',
`saleing` int(11) DEFAULT '0',
`helpnum` int(11) DEFAULT '0',
`detail` longtext,
`sell_price` float(11,2) DEFAULT '0.00',
`cost_price` decimal(11,2) DEFAULT '0.00',
`min_price` decimal(11,2) DEFAULT '0.00',
`weight` int(11) DEFAULT NULL,
`sort` int(11) DEFAULT '0',
`status` int(1) DEFAULT '1',
`stock` int(11) unsigned DEFAULT '100',
`createtime` int(11) DEFAULT NULL,
`starttime` int(11) DEFAULT NULL,
`endtime` int(11) DEFAULT NULL,
`limitHour` int(11) DEFAULT '12',
`directbuy` tinyint(1) DEFAULT '0',
`kjdata` text,
`readcount` int(11) DEFAULT '0',
`partakecount` int(11) DEFAULT '0',
`helpcount` int(11) DEFAULT '0',
`freighttype` tinyint(1) DEFAULT '1',
`freightdata` varchar(255) DEFAULT NULL,
`freightcontent` text,
`ischecked` tinyint(1) DEFAULT '1',
`check_reason` varchar(255) DEFAULT NULL,
`feepercent` decimal(5, 2) UNSIGNED NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `status` (`status`) USING BTREE,
KEY `ischecked` (`ischecked`) USING BTREE,
KEY `starttime` (`starttime`) USING BTREE,
KEY `endtime` (`endtime`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_kanjia_sysset`;
CREATE TABLE `ddwx_kanjia_sysset` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`pic` varchar(255) DEFAULT '',
`autoshdays` int(11) DEFAULT '7',
`showjd` tinyint(1) DEFAULT '1',
PRIMARY KEY (`id`),
UNIQUE KEY `aid` (`aid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_kefu_message`;
CREATE TABLE `ddwx_kefu_message` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`mid` int(11) DEFAULT NULL,
`uid` int(11) DEFAULT '0',
`nickname` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL,
`headimg` varchar(255) DEFAULT NULL,
`unickname` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL,
`uheadimg` varchar(255) DEFAULT NULL,
`tel` varchar(255) DEFAULT NULL,
`msgtype` varchar(255) DEFAULT NULL,
`content` text,
`mediaid` varchar(255) DEFAULT NULL,
`createtime` int(11) DEFAULT NULL,
`isreply` tinyint(1) DEFAULT '0' COMMENT '0 客户发的 1 客服回复的',
`isread` tinyint(1) DEFAULT '0',
`platform` varchar(100) DEFAULT 'mp',
`iswx` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE,
KEY `uid` (`uid`) USING BTREE,
KEY `createtime` (`createtime`) USING BTREE,
KEY `isread` (`isread`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_lipin`;
CREATE TABLE `ddwx_lipin` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`name` varchar(255) DEFAULT NULL,
`type` tinyint(1) DEFAULT '0' COMMENT '0余额 1商品',
`starttime` varchar(100) DEFAULT NULL,
`endtime` varchar(100) DEFAULT NULL,
`money` float(11,2) DEFAULT '0.00',
`prodata` text,
`createtime` int(11) DEFAULT NULL,
`status` tinyint(1) DEFAULT '1',
`score` int(11) DEFAULT '0',
`coupon_ids` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `status` (`status`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_lipin_codelist`;
CREATE TABLE `ddwx_lipin_codelist` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`hid` int(11) DEFAULT NULL,
`code` varchar(100) DEFAULT NULL,
`status` tinyint(1) DEFAULT '0',
`createtime` int(11) DEFAULT NULL,
`usetime` int(11) DEFAULT NULL,
`mid` int(11) DEFAULT NULL,
`headimg` varchar(255) DEFAULT NULL,
`nickname` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL,
`remark` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `hid` (`hid`) USING BTREE,
KEY `code` (`code`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_live_room`;
CREATE TABLE `ddwx_live_room` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`roomId` int(11) DEFAULT NULL,
`name` varchar(255) DEFAULT NULL,
`coverImg` varchar(255) DEFAULT NULL,
`startTime` int(11) DEFAULT NULL,
`endTime` int(11) DEFAULT NULL,
`anchorName` varchar(255) DEFAULT NULL,
`anchorWechat` varchar(255) DEFAULT NULL,
`subAnchorWechat` varchar(255) DEFAULT NULL,
`createrWechat` varchar(255) DEFAULT NULL,
`shareImg` varchar(255) DEFAULT NULL,
`feedsImg` varchar(255) DEFAULT NULL,
`isFeedsPublic` tinyint(1) DEFAULT '1' COMMENT '是否开启官方收录,1 开启,0 关闭',
`type` tinyint(1) DEFAULT '0' COMMENT '直播类型,1 推流 0 手机直播',
`screenType` tinyint(1) DEFAULT '0' COMMENT '1:横屏 0:竖屏',
`closeLike` tinyint(1) DEFAULT '0' COMMENT '是否 关闭点赞 1 关闭',
`closeGoods` tinyint(1) DEFAULT '0' COMMENT '是否 关闭商品货架,1:关闭',
`closeComment` tinyint(1) DEFAULT '0' COMMENT '是否开启评论,1:关闭',
`closeReplay` tinyint(1) DEFAULT '0' COMMENT '是否关闭回放 1 关闭',
`closeShare` tinyint(1) DEFAULT '0' COMMENT '是否关闭分享 1 关闭',
`closeKf` tinyint(1) DEFAULT '0' COMMENT '是否关闭客服,1 关闭',
`qrcode_url` varchar(255) DEFAULT NULL COMMENT '小程序直播 小程序码',
`live_status` varchar(10) DEFAULT NULL,
`sort` int(11) DEFAULT '0',
`goods` text,
`status` tinyint(1) DEFAULT '1',
`createtime` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `roomId` (`roomId`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_luntan`;
CREATE TABLE `ddwx_luntan` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`cid` int(11) DEFAULT NULL,
`mid` int(11) DEFAULT NULL,
`nickname` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL,
`headimg` varchar(255) DEFAULT NULL,
`content` text,
`pics` text,
`video` varchar(255) DEFAULT NULL,
`readcount` int(11) DEFAULT '0',
`createtime` int(11) DEFAULT NULL,
`status` int(11) DEFAULT '1',
`zan` int(11) DEFAULT '0',
`is_top` tinyint(1) UNSIGNED NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `cid` (`cid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE,
KEY `status` (`status`) USING BTREE,
KEY `is_top` (`is_top`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_luntan_category`;
CREATE TABLE `ddwx_luntan_category` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`pid` int(11) DEFAULT '0',
`name` varchar(255) DEFAULT NULL,
`pic` varchar(255) DEFAULT NULL,
`status` int(1) DEFAULT '1',
`sort` int(11) DEFAULT '1',
`createtime` int(11) DEFAULT NULL,
`banner` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `pid` (`pid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_luntan_pinglun`;
CREATE TABLE `ddwx_luntan_pinglun` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`sid` int(11) DEFAULT NULL,
`mid` int(11) DEFAULT NULL,
`headimg` varchar(255) DEFAULT NULL,
`nickname` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL,
`content` varchar(255) DEFAULT NULL,
`createtime` int(11) DEFAULT NULL,
`status` tinyint(1) DEFAULT '0',
`zan` int(11) DEFAULT '0',
`score` int(11) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `sid` (`sid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_luntan_pinglun_reply`;
CREATE TABLE `ddwx_luntan_pinglun_reply` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`sid` int(11) DEFAULT NULL,
`pid` int(11) DEFAULT NULL,
`mid` int(11) DEFAULT NULL,
`headimg` varchar(255) DEFAULT NULL,
`nickname` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL,
`content` varchar(255) DEFAULT NULL,
`createtime` int(11) DEFAULT NULL,
`status` tinyint(1) DEFAULT '0',
`zan` int(11) DEFAULT '0',
`score` int(11) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `sid` (`sid`) USING BTREE,
KEY `pid` (`pid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_luntan_pzanlog`;
CREATE TABLE `ddwx_luntan_pzanlog` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`pid` int(11) DEFAULT NULL,
`mid` int(11) DEFAULT NULL,
`createtime` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `pid` (`pid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_luntan_sysset`;
CREATE TABLE `ddwx_luntan_sysset` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`title` varchar(255) DEFAULT NULL,
`pic` varchar(255) DEFAULT NULL,
`sendtj` varchar(255) DEFAULT '-1',
`sendcheck` tinyint(1) DEFAULT '0',
`pingluncheck` tinyint(1) DEFAULT '0',
`status` int(11) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `status` (`status`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_luntan_zanlog`;
CREATE TABLE `ddwx_luntan_zanlog` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`sid` int(11) DEFAULT NULL,
`mid` int(11) DEFAULT NULL,
`createtime` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `sid` (`sid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_maidan_order`;
CREATE TABLE `ddwx_maidan_order` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`mid` int(11) DEFAULT NULL,
`ordernum` varchar(100) DEFAULT NULL,
`title` varchar(255) DEFAULT NULL,
`money` float(11,2) DEFAULT NULL,
`paymoney` float(11,2) DEFAULT NULL,
`disprice` float(11,2) DEFAULT '0.00' COMMENT '会员折扣优惠',
`scoredk` float(11,2) DEFAULT '0.00',
`decscore` int(11) DEFAULT '0',
`decmoney` float(11,2) DEFAULT '0.00' COMMENT '付款码付款时 余额抵扣',
`couponrid` int(11) DEFAULT NULL,
`couponmoney` float(11,2) DEFAULT '0.00',
`createtime` int(11) DEFAULT NULL,
`platform` varchar(50) DEFAULT NULL,
`status` tinyint(1) DEFAULT '0',
`payorderid` int(11) DEFAULT NULL,
`paytypeid` int(11) DEFAULT NULL,
`paytype` varchar(255) DEFAULT NULL,
`paynum` varchar(255) DEFAULT NULL,
`paytime` int(11) DEFAULT NULL,
`mdid` int(11) DEFAULT '0' COMMENT '门店id',
`uid` int(11) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE,
KEY `mdid` (`mdid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_manjian_set`;
CREATE TABLE `ddwx_manjian_set` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`mjdata` text,
`status` tinyint(1) DEFAULT '0',
`createtime` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `aid` (`aid`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_member`;
CREATE TABLE `ddwx_member` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL COMMENT '账户ID',
`wxopenid` varchar(100) DEFAULT NULL COMMENT '小程序openid',
`mpopenid` varchar(100) DEFAULT NULL COMMENT '公众号openid',
`appopenid` varchar(100) DEFAULT NULL COMMENT 'APP的授权登录openid',
`unionid` varchar(100) DEFAULT NULL COMMENT '开放平台unionid',
`alipayopenid` varchar(100) DEFAULT NULL COMMENT '支付宝小程序openid',
`baiduopenid` varchar(100) DEFAULT NULL COMMENT '百度小程序openid',
`qqopenid` varchar(100) DEFAULT NULL COMMENT 'qq小程序openid',
`toutiaoopenid` varchar(100) DEFAULT NULL COMMENT '头条小城openid',
`iosopenid` varchar(100) DEFAULT NULL COMMENT 'ios登录openid',
`pid` int(11) DEFAULT '0' COMMENT '上级ID',
`path` text COMMENT '所有上级ID数据',
`levelid` int(11) DEFAULT '0' COMMENT '会员等级ID',
`money` decimal(11,2) DEFAULT '0.00' COMMENT '余额',
`totalcommission` decimal(11,2) DEFAULT '0.00' COMMENT '总计获得的佣金',
`commission` decimal(11,2) DEFAULT '0.00' COMMENT '佣金余额',
`total_fenhong` decimal(11, 2) NOT NULL DEFAULT '0' COMMENT '总分红',
`total_fenhong_team` decimal(11, 2) NOT NULL DEFAULT '0',
`total_fenhong_level_team` decimal(11, 2) NOT NULL DEFAULT '0',
`total_fenhong_partner` decimal(11, 2) NOT NULL DEFAULT '0' COMMENT '股东分红',
`total_fenhong_area` decimal(11, 2) NOT NULL DEFAULT '0',
`score` int(11) DEFAULT '0' COMMENT '积分',
`score_withdraw` int(11) NOT NULL DEFAULT '0',
`nickname` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '昵称',
`headimg` varchar(255) DEFAULT NULL COMMENT '头像',
`sex` varchar(255) DEFAULT NULL COMMENT '性别',
`realname` varchar(255) DEFAULT NULL COMMENT '姓名',
`tel` varchar(255) DEFAULT '' COMMENT '手机号',
`pwd` varchar(100) DEFAULT NULL COMMENT '登录密码md5',
`usercard` varchar(255) DEFAULT NULL COMMENT '身份证号',
`weixin` varchar(255) DEFAULT NULL COMMENT '微信号',
`aliaccount` varchar(255) DEFAULT NULL COMMENT '支付宝账号',
`aliaccountname` varchar(255) DEFAULT NULL COMMENT '支付宝姓名',
`country` varchar(255) DEFAULT NULL COMMENT '国家',
`province` varchar(255) DEFAULT NULL COMMENT '省份',
`city` varchar(255) DEFAULT NULL COMMENT '城市',
`area` varchar(255) DEFAULT NULL COMMENT '区域',
`address` varchar(255) DEFAULT NULL COMMENT '地址',
`birthday` varchar(255) DEFAULT NULL COMMENT '生日',
`bankcardnum` varchar(255) DEFAULT NULL COMMENT '银行卡号',
`bankname` varchar(255) DEFAULT NULL COMMENT '银行名称',
`bankaddress` varchar(255) DEFAULT NULL COMMENT '所属分支行',
`bankcarduser` varchar(255) DEFAULT NULL COMMENT '银行卡开户人',
`card_id` varchar(255) DEFAULT NULL COMMENT '会员卡ID',
`card_code` varchar(255) DEFAULT NULL COMMENT '会员卡号',
`activate_ticket` varchar(255) DEFAULT NULL,
`qrcode` varchar(255) DEFAULT NULL,
`sharepic` varchar(255) DEFAULT NULL,
`shareMediaId` varchar(255) DEFAULT NULL,
`createtime` int(11) DEFAULT NULL,
`signdate` varchar(30) DEFAULT NULL COMMENT '当日签到日期',
`signtime` int(11) DEFAULT NULL,
`signtimes` int(11) DEFAULT '0' COMMENT '签到次数',
`signtimeslx` int(11) DEFAULT '0' COMMENT '连续签到次数',
`session_id` varchar(255) DEFAULT NULL,
`session_key` varchar(255) DEFAULT NULL,
`paypwd` varchar(100) DEFAULT NULL COMMENT '支付密码',
`platform` varchar(255) DEFAULT NULL COMMENT '来源平台 mp公众号 wx小程序',
`subscribe` tinyint(1) DEFAULT '0' COMMENT '是否关注',
`subscribe_time` int(11) DEFAULT NULL COMMENT '关注时间',
`levelstarttime` int(11) DEFAULT '0',
`levelendtime` int(11) DEFAULT '0',
`remark` varchar(255) DEFAULT '' COMMENT '备注',
`random_str` varchar(255) DEFAULT '',
`bid` int(11) DEFAULT '0',
`laxin_time` int(11) DEFAULT '0' COMMENT '最后拉新时间',
`areafenhong_province` varchar(255) DEFAULT NULL,
`areafenhong_city` varchar(255) DEFAULT NULL,
`areafenhong_area` varchar(255) DEFAULT NULL,
`areafenhong` tinyint(1) DEFAULT '0' COMMENT '区域代理 0跟随会员等级设置 1省级 2市级 3区县 4非区域代理',
`areafenhongbl` decimal(10,2) DEFAULT '0',
`ktnum` tinyint(1) DEFAULT '0' COMMENT '开团次数限制',
`is_wanshan_score` tinyint(1) DEFAULT '0',
`yqcode` varchar(20) DEFAULT NULL COMMENT '邀请码',
`checkst` tinyint(1) DEFAULT '1' COMMENT '是否已审核',
`checkreason` varchar(255) DEFAULT NULL COMMENT '审核备注',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `mpopenid_tel` (`mpopenid`,`tel`,`aid`) USING BTREE,
UNIQUE KEY `wxopenid_tel` (`wxopenid`,`tel`,`aid`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `mpopenid` (`mpopenid`) USING BTREE,
KEY `pid` (`pid`) USING BTREE,
KEY `wxopenid` (`wxopenid`) USING BTREE,
KEY `unionid` (`unionid`) USING BTREE,
KEY `createtime` (`createtime`) USING BTREE,
KEY `session_id` (`session_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='会员表';
DROP TABLE IF EXISTS `ddwx_member_address`;
CREATE TABLE `ddwx_member_address` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`mid` varchar(255) DEFAULT NULL,
`name` varchar(255) DEFAULT NULL,
`company` varchar(255) DEFAULT NULL,
`tel` varchar(255) DEFAULT NULL,
`province` varchar(255) DEFAULT NULL,
`city` varchar(255) DEFAULT NULL,
`district` varchar(255) DEFAULT NULL,
`area` varchar(255) DEFAULT NULL,
`address` varchar(255) DEFAULT NULL,
`latitude` varchar(255) DEFAULT NULL,
`longitude` varchar(255) DEFAULT NULL,
`isdefault` int(1) DEFAULT '0',
`createtime` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE,
KEY `isdefault` (`isdefault`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_member_commission_record`;
CREATE TABLE `ddwx_member_commission_record` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`mid` int(11) DEFAULT NULL,
`frommid` int(11) DEFAULT NULL,
`orderid` int(11) DEFAULT NULL,
`ogid` int(11) DEFAULT NULL,
`type` varchar(100) DEFAULT 'shop' COMMENT 'shop 商城',
`commission` decimal(11,2) DEFAULT NULL,
`score` int(11) DEFAULT '0',
`remark` varchar(255) DEFAULT NULL,
`createtime` int(11) DEFAULT NULL,
`endtime` int(11) DEFAULT NULL,
`status` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_member_commission_withdrawlog`;
CREATE TABLE `ddwx_member_commission_withdrawlog` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`mid` int(11) DEFAULT NULL,
`money` decimal(11,2) DEFAULT NULL,
`txmoney` decimal(11,2) DEFAULT NULL,
`aliaccount` varchar(255) DEFAULT NULL,
`aliaccountname` varchar(255) DEFAULT NULL COMMENT '支付宝姓名',
`ordernum` varchar(255) DEFAULT NULL,
`paytype` varchar(255) DEFAULT NULL,
`status` tinyint(1) DEFAULT '0',
`createtime` int(11) DEFAULT NULL,
`bankname` varchar(255) DEFAULT NULL,
`bankcarduser` varchar(255) DEFAULT NULL,
`bankcardnum` varchar(255) DEFAULT NULL,
`paytime` int(11) DEFAULT NULL,
`paynum` varchar(255) DEFAULT NULL,
`platform` varchar(50) DEFAULT 'wx' COMMENT 'wx小程序 m公众号网页',
`reason` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE,
KEY `status` (`status`) USING BTREE,
KEY `createtime` (`createtime`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_member_commissionlog`;
CREATE TABLE `ddwx_member_commissionlog` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`mid` int(11) DEFAULT NULL,
`frommid` int(11) DEFAULT NULL,
`commission` decimal(11,2) DEFAULT NULL,
`after` decimal(11,2) DEFAULT '0.00',
`createtime` int(11) DEFAULT NULL,
`remark` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_member_favorite`;
CREATE TABLE `ddwx_member_favorite` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`mid` int(11) DEFAULT NULL,
`proid` int(11) DEFAULT NULL,
`createtime` int(11) DEFAULT NULL,
`type` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE,
KEY `proid` (`proid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_member_fenhonglog`;
CREATE TABLE `ddwx_member_fenhonglog` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`mid` int(11) DEFAULT NULL,
`commission` decimal(11,2) DEFAULT '0.00',
`createtime` int(11) DEFAULT NULL,
`remark` varchar(255) DEFAULT NULL,
`type` varchar(255) DEFAULT '',
`ogids` text,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_member_form_id`;
CREATE TABLE `ddwx_member_form_id` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`mid` int(11) DEFAULT NULL,
`openid` varchar(255) DEFAULT NULL,
`form_id` varchar(255) DEFAULT NULL,
`type` varchar(50) DEFAULT 'wx' COMMENT 'wx微信小程序 tt头条小程序',
`createtime` int(11) DEFAULT NULL,
`isused` int(11) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE,
KEY `openid` (`openid`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_member_history`;
CREATE TABLE `ddwx_member_history` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL COMMENT '账户ID',
`mid` int(11) DEFAULT NULL COMMENT '会员ID',
`proid` int(11) DEFAULT NULL COMMENT '商品ID',
`createtime` int(11) DEFAULT NULL COMMENT '创建时间',
`type` varchar(255) DEFAULT NULL COMMENT '类型 shop商城商品 scoreshop积分兑换商品 seckill秒杀商品 collage拼团商品 kanjia砍价商品',
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE,
KEY `proid` (`proid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_member_level_category`;
CREATE TABLE `ddwx_member_level_category` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`pid` int(11) DEFAULT '0',
`name` varchar(255) DEFAULT NULL,
`pic` varchar(255) DEFAULT NULL,
`status` int(1) DEFAULT '1',
`sort` int(11) DEFAULT '1',
`createtime` int(11) DEFAULT NULL,
`isdefault` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `pid` (`pid`) USING BTREE,
KEY `isdefault` (`isdefault`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_member_level`;
CREATE TABLE `ddwx_member_level` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`cid` int(11) NOT NULL DEFAULT '0',
`sort` int(11) NOT NULL DEFAULT '1',
`name` varchar(255) DEFAULT NULL,
`icon` varchar(255) DEFAULT NULL,
`discount` decimal(11,2) DEFAULT '10.00',
`can_up` tinyint(1) DEFAULT '0',
`up_condition_show` tinyint(1) UNSIGNED NOT NULL DEFAULT '1',
`up_ordermoney` decimal(11,2) DEFAULT NULL,
`up_rechargemoney` decimal(11,2) DEFAULT NULL,
`up_fxorder_condition` varchar(20) NOT NULL DEFAULT 'or' COMMENT 'or或,and且',
`up_fxordermoney` decimal(11,2) DEFAULT NULL,
`up_fxorderlevelnum` varchar(255) DEFAULT '0',
`up_fxorderlevelid` varchar(255) DEFAULT '0',
`up_fxordermoney_removemax` tinyint(1) DEFAULT '0',
`up_fxordermoney_xiao` decimal(11,2) DEFAULT NULL,
`up_fxorderlevelnum_xiao` varchar(255) DEFAULT '0',
`up_fxorderlevelid_xiao` varchar(255) DEFAULT '0',
`up_fxdowncount` int(11) DEFAULT '0',
`up_fxdownlevelnum` varchar(255) DEFAULT '0',
`up_fxdownlevelid` varchar(255) DEFAULT '0',
`up_fxdowncount2` int(11) DEFAULT '0',
`up_fxdownlevelnum2` varchar(255) DEFAULT '0',
`up_fxdownlevelid2` varchar(255) DEFAULT '0',
`up_fxdowncount3` int(11) DEFAULT '0',
`up_fxdownlevelnum3` varchar(255) DEFAULT '0',
`up_fxdownlevelid3` varchar(255) DEFAULT '0',
`up_fxdowncount_and` varchar(255) DEFAULT '0',
`up_fxdownlevelnum_and` varchar(255) DEFAULT '0',
`up_fxdownlevelid_and` varchar(255) DEFAULT '0',
`up_fxdowncount2_and` int(11) DEFAULT '0',
`up_fxdownlevelnum2_and` varchar(255) DEFAULT '0',
`up_fxdownlevelid2_and` varchar(255) DEFAULT '0',
`up_proid` varchar(255) DEFAULT '0',
`up_pronum` varchar(255) DEFAULT '1',
`can_apply` int(1) DEFAULT '1',
`apply_check` int(1) DEFAULT '0',
`apply_ordercount` int(11) DEFAULT NULL,
`apply_ordermoney` decimal(11,2) DEFAULT NULL,
`apply_rechargemoney` decimal(11,2) DEFAULT NULL,
`apply_paymoney` decimal(11,2) DEFAULT '0.00',
`can_agent` tinyint(1) DEFAULT '0',
`agent_rule` tinyint(1) DEFAULT '0',
`commission1` decimal(11,2) DEFAULT '0.00',
`commission2` decimal(11,2) DEFAULT '0.00',
`commission3` decimal(11,2) DEFAULT '0.00',
`commission4` decimal(11,2) DEFAULT '0.00',
`commission5` decimal(11,2) DEFAULT '0.00',
`commission6` decimal(11,2) DEFAULT '0.00',
`commission_parent` decimal(11, 2) NOT NULL DEFAULT '0' COMMENT '持续推荐奖励',
`score1` int(11) DEFAULT '0',
`score2` int(11) DEFAULT '0',
`score3` int(11) DEFAULT '0',
`explain` text,
`createtime` int(11) DEFAULT NULL,
`isdefault` int(1) DEFAULT '0',
`up_wxpaymoney` decimal(11,2) DEFAULT '0.00',
`yxqdate` int(11) DEFAULT '0',
`up_getmembercard` tinyint(1) DEFAULT '0',
`apply_formdata` text,
`fenhong` decimal(11,2) DEFAULT '0.00',
`fenhong_num` int(11) DEFAULT '0',
`fenhong_max_money` decimal(11, 2) NOT NULL DEFAULT '0',
`commission1own` tinyint(1) DEFAULT '0',
`teamfenhonglv` int(11) DEFAULT '0',
`teamfenhongbl` decimal(11,2) DEFAULT '0.00',
`teamfenhong_money` decimal(11, 2) NOT NULL DEFAULT '0' COMMENT '团队分红每单奖励',
`teamfenhongonly` tinyint(1) DEFAULT '0',
`teamfenhong_self` tinyint(1) NULL DEFAULT '0' COMMENT '分红包含自己',
`teamfenhong_pingji_lv` int(11) DEFAULT '1',
`teamfenhong_pingji_bl` decimal(11,2) DEFAULT NULL,
`teamfenhong_pingji_money` decimal(11,2) DEFAULT NULL,
`product_teamfenhong_ids` varchar(255) NOT NULL DEFAULT '0',
`product_teamfenhonglv` int(11) NULL,
`product_teamfenhong_money` decimal(11, 2) NOT NULL DEFAULT '0',
`product_teamfenhongonly` tinyint(1) NULL DEFAULT '0',
`product_teamfenhong_self` tinyint(1) NULL DEFAULT '0',
`level_teamfenhong_ids` varchar(255) NOT NULL DEFAULT '' ,
`level_teamfenhonglv` int(11) NULL ,
`level_teamfenhongbl` decimal(11, 2) NULL ,
`level_teamfenhong_money` decimal(11, 2) NOT NULL DEFAULT '0' ,
`level_teamfenhongonly` tinyint(1) NULL DEFAULT '0' ,
`areafenhong` tinyint(1) DEFAULT '0' COMMENT '区域代理 0不开启 1省级 2市级 3区县',
`areafenhongbl` decimal(10,2) DEFAULT '0',
`areafenhongmaxnum` int(11) DEFAULT '0',
`apply_paytxt` varchar(255) DEFAULT NULL,
`apply_payfenxiao` tinyint(1) DEFAULT '0',
`commissiontype` tinyint(1) DEFAULT '0',
`scoremax` int(11) DEFAULT '0' COMMENT '推荐最高奖励积分',
`can_buyselect` tinyint(1) DEFAULT '0',
`buyselect_commission` float(11,2) DEFAULT '0.00',
`show_business` tinyint(1) UNSIGNED NOT NULL DEFAULT '1' COMMENT '是否显示在商家',
`team_showtel` tinyint(1) DEFAULT '0' COMMENT '是否显示下级手机号',
`team_givemoney` tinyint(1) DEFAULT '0' COMMENT '是否可以给下级转余额',
`team_givescore` tinyint(1) DEFAULT '0' COMMENT '是否可以给下级转积分',
`team_levelup` tinyint(1) DEFAULT '0' COMMENT '是否可以给下级升级',
`team_levelup_num` int(11) DEFAULT NULL COMMENT '给下级升级数量',
`team_levelup_id` varchar(255) DEFAULT NULL COMMENT '给下级升级id',
`comwithdraw` tinyint(1) DEFAULT '1',
`up_give_score` int(11) NULL COMMENT '升级赠送积分',
`up_give_commission` decimal(11, 2) NOT NULL DEFAULT '0' COMMENT '升级赠送佣金',
`up_give_parent_money` decimal(11, 2) NOT NULL DEFAULT '0' COMMENT '升级给上级赠送余额',
`tongji_yeji` tinyint(1) NOT NULL DEFAULT '0',
`tongji_yeji_proids` varchar(255) NULL,
`fenhong_gongxian_minyeji` decimal(11,2) DEFAULT '0',
`fenhong_gongxian_percent` decimal(11,2) DEFAULT '0',
`kecheng_discount` decimal(11,2) DEFAULT '10.00',
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `cid` (`cid`) USING BTREE,
KEY `sort` (`sort`) USING BTREE,
KEY `can_up` (`can_up`) USING BTREE,
KEY `isdefault` (`isdefault`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_member_level_record`;
CREATE TABLE `ddwx_member_level_record` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`mid` int(11) DEFAULT '0',
`bid` int(11) DEFAULT '0',
`levelid` int(11) DEFAULT '0',
`cid` int(11) DEFAULT '0',
`qrcode` varchar(255) DEFAULT NULL,
`sharepic` varchar(255) DEFAULT NULL,
`createtime` int(11) DEFAULT NULL,
`levelstarttime` int(11) DEFAULT '0',
`levelendtime` int(11) DEFAULT '0',
`areafenhong_province` varchar(255) DEFAULT NULL,
`areafenhong_city` varchar(255) DEFAULT NULL,
`areafenhong_area` varchar(255) DEFAULT NULL,
`areafenhong` tinyint(1) DEFAULT '0',
`areafenhongbl` decimal(10,2) DEFAULT '0.00',
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `cid` (`cid`) USING BTREE,
KEY `levelid` (`levelid`) USING BTREE,
KEY `levelendtime` (`levelendtime`) USING BTREE,
KEY `createtime` (`createtime`) USING BTREE,
KEY `areafenhong_province` (`areafenhong_province`) USING BTREE,
KEY `areafenhong_city` (`areafenhong_city`) USING BTREE,
KEY `areafenhong_area` (`areafenhong_area`) USING BTREE,
KEY `areafenhong` (`areafenhong`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_member_levelup_order`;
CREATE TABLE `ddwx_member_levelup_order` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`mid` int(11) DEFAULT NULL,
`levelid` int(11) DEFAULT NULL,
`ordernum` varchar(100) DEFAULT NULL,
`totalprice` decimal(11,2) DEFAULT NULL,
`title` varchar(255) DEFAULT NULL,
`status` int(1) DEFAULT '0',
`createtime` int(11) DEFAULT NULL,
`levelup_time` int(11) DEFAULT NULL,
`payorderid` int(11) DEFAULT NULL,
`paytypeid` int(11) DEFAULT NULL,
`paynum` varchar(100) DEFAULT NULL,
`paytype` varchar(100) DEFAULT NULL,
`paytime` int(11) DEFAULT NULL,
`beforelevelid` int(11) DEFAULT NULL,
`areafenhong_province` varchar(255) DEFAULT NULL,
`areafenhong_city` varchar(255) DEFAULT NULL,
`areafenhong_area` varchar(255) DEFAULT NULL,
`from_mid` int(11) NULL DEFAULT NULL,
`form0` varchar(255) DEFAULT NULL,
`form1` varchar(255) DEFAULT NULL,
`form2` varchar(255) DEFAULT NULL,
`form3` varchar(255) DEFAULT NULL,
`form4` varchar(255) DEFAULT NULL,
`form5` varchar(255) DEFAULT NULL,
`form6` varchar(255) DEFAULT NULL,
`form7` varchar(255) DEFAULT NULL,
`form8` varchar(255) DEFAULT NULL,
`form9` varchar(255) DEFAULT NULL,
`form10` varchar(255) DEFAULT NULL,
`form11` varchar(255) DEFAULT NULL,
`form12` varchar(255) DEFAULT NULL,
`form13` varchar(255) DEFAULT NULL,
`form14` varchar(255) DEFAULT NULL,
`form15` varchar(255) DEFAULT NULL,
`form16` varchar(255) DEFAULT NULL,
`form17` varchar(255) DEFAULT NULL,
`form18` varchar(255) DEFAULT NULL,
`form19` varchar(255) DEFAULT NULL,
`form20` varchar(255) DEFAULT NULL,
`platform` varchar(100) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE,
KEY `levelid` (`levelid`) USING BTREE,
KEY `beforelevelid` (`beforelevelid`) USING BTREE,
KEY `levelup_time` (`levelup_time`) USING BTREE,
KEY `status` (`status`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_member_moneylog`;
CREATE TABLE `ddwx_member_moneylog` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`mid` int(11) DEFAULT NULL,
`money` decimal(11,2) DEFAULT '0.00',
`after` decimal(11,2) DEFAULT '0.00',
`createtime` int(11) DEFAULT NULL,
`remark` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_member_poster`;
CREATE TABLE `ddwx_member_poster` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`mid` int(11) DEFAULT NULL,
`scene` varchar(255) DEFAULT NULL,
`page` varchar(255) DEFAULT NULL,
`type` varchar(255) DEFAULT NULL,
`poster` varchar(255) DEFAULT NULL,
`createtime` int(11) DEFAULT NULL,
`posterid` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE,
KEY `type` (`type`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_member_scorelog`;
CREATE TABLE `ddwx_member_scorelog` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`mid` varchar(100) DEFAULT NULL,
`score` int(11) DEFAULT '0',
`after` int(11) DEFAULT NULL,
`createtime` int(11) DEFAULT NULL,
`remark` varchar(255) DEFAULT NULL,
`type` tinyint(3) NOT NULL DEFAULT '1' COMMENT '1普通,2允提',
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE,
KEY `type` (`type`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_member_tjscore`;
CREATE TABLE `ddwx_member_tjscore` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`mid` int(11) DEFAULT NULL,
`frommid` int(11) DEFAULT NULL,
`score` int(11) DEFAULT NULL,
`createtime` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_member_tmplnum`;
CREATE TABLE `ddwx_member_tmplnum` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`mid` int(11) DEFAULT NULL,
`tmplid` varchar(100) DEFAULT NULL,
`num` int(11) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_member_upload`;
CREATE TABLE `ddwx_member_upload` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`mid` int(11) DEFAULT NULL,
`name` varchar(255) DEFAULT NULL,
`dir` varchar(255) DEFAULT NULL,
`url` varchar(255) DEFAULT NULL,
`type` varchar(100) DEFAULT NULL,
`size` varchar(255) DEFAULT NULL,
`bsize` int(11) DEFAULT NULL,
`width` int(11) DEFAULT NULL,
`height` int(11) DEFAULT NULL,
`createtime` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_member_withdrawlog`;
CREATE TABLE `ddwx_member_withdrawlog` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`mid` int(11) DEFAULT NULL,
`money` decimal(11,2) DEFAULT NULL,
`txmoney` decimal(11,2) DEFAULT NULL,
`aliaccount` varchar(255) DEFAULT NULL,
`aliaccountname` varchar(255) DEFAULT NULL COMMENT '支付宝姓名',
`ordernum` varchar(255) DEFAULT NULL,
`paytype` varchar(255) DEFAULT NULL,
`status` tinyint(1) DEFAULT '0',
`createtime` int(11) DEFAULT NULL,
`bankname` varchar(255) DEFAULT NULL,
`bankcarduser` varchar(255) DEFAULT NULL,
`bankcardnum` varchar(255) DEFAULT NULL,
`paytime` int(11) DEFAULT NULL,
`paynum` varchar(255) DEFAULT NULL,
`platform` varchar(255) DEFAULT 'wx',
`reason` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE,
KEY `createtime` (`createtime`) USING BTREE,
KEY `status` (`status`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_membercard`;
CREATE TABLE `ddwx_membercard` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) NOT NULL,
`card_id` varchar(255) DEFAULT NULL COMMENT '会员卡编号',
`ret_url` varchar(255) DEFAULT NULL COMMENT '领卡地址',
`card_type` varchar(255) DEFAULT NULL COMMENT '卡的类型 默认是 MEMBER_CARD',
`logo_url` varchar(255) DEFAULT NULL COMMENT '会员卡logo',
`code_type` varchar(255) DEFAULT NULL COMMENT '展示类型 CODE_TYPE_TEXT 文本',
`brand_name` varchar(255) DEFAULT NULL COMMENT '商户名字',
`title` varchar(255) DEFAULT NULL COMMENT '卡券名',
`bg_type` varchar(255) DEFAULT NULL,
`color` varchar(255) DEFAULT NULL COMMENT '券颜色 Color010 默认',
`background_pic_url` varchar(255) DEFAULT NULL COMMENT '会员卡背景图',
`notice` varchar(255) DEFAULT NULL COMMENT '卡券使用提醒',
`description` text COMMENT '卡券使用说明',
`custom_field` varchar(255) DEFAULT NULL,
`bonus_rules` varchar(255) DEFAULT NULL,
`quantity` int(11) DEFAULT '99999999' COMMENT '卡券库存的数量 上限为100000000',
`date_info_type` varchar(255) DEFAULT 'DATE_TYPE_PERMANENT',
`date_info_begin_time` varchar(255) DEFAULT NULL,
`date_info_end_time` varchar(255) DEFAULT NULL,
`date_info_fixed_begin_term` int(11) DEFAULT NULL,
`date_info_fixed_term` int(11) DEFAULT NULL,
`service_phone` varchar(255) DEFAULT NULL COMMENT '客服电话',
`location_id_list` varchar(255) DEFAULT NULL COMMENT '门店位置ID',
`use_all_locations` tinyint(1) DEFAULT '0' COMMENT '会员卡是否支持全部门店',
`center_title` varchar(255) DEFAULT '快速买单' COMMENT '卡券中部居中的按钮',
`center_sub_title` varchar(255) DEFAULT '买单即享优惠' COMMENT '显示在入口下方的提示语',
`center_url` varchar(255) DEFAULT NULL COMMENT '顶部居中的url',
`custom_url_name` varchar(255) DEFAULT NULL,
`custom_url` varchar(255) DEFAULT NULL,
`custom_url_sub_title` varchar(255) DEFAULT NULL,
`promotion_url_name` varchar(255) DEFAULT NULL,
`promotion_url` varchar(255) DEFAULT NULL,
`promotion_url_sub_title` varchar(255) DEFAULT NULL,
`custom_cell1_name` varchar(255) DEFAULT NULL,
`custom_cell1_tips` varchar(255) DEFAULT NULL,
`custom_cell1_url` varchar(255) DEFAULT NULL,
`get_limit` int(11) DEFAULT '1',
`can_share` tinyint(1) DEFAULT '0',
`can_give_friend` tinyint(1) DEFAULT '0',
`prerogative` varchar(255) DEFAULT NULL COMMENT '特权说明',
`field_list` text,
`auto_activate` tinyint(1) DEFAULT '1',
`wx_activate` tinyint(1) DEFAULT '1',
`activate_url` varchar(255) DEFAULT NULL,
`activate_app_brand_user_name` varchar(255) DEFAULT NULL,
`activate_app_brand_pass` varchar(255) DEFAULT NULL,
`status` int(1) DEFAULT '0' COMMENT '0 删除 1正常',
`RefuseReason` varchar(255) DEFAULT NULL,
`createtime` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `card_id` (`card_id`) USING BTREE,
KEY `status` (`status`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_membercard_record`;
CREATE TABLE `ddwx_membercard_record` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`card_id` varchar(100) DEFAULT NULL,
`card_code` varchar(255) DEFAULT NULL,
`mid` int(11) DEFAULT NULL,
`openid` varchar(100) DEFAULT NULL,
`unionid` varchar(255) DEFAULT NULL,
`nickname` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL,
`headimg` varchar(255) DEFAULT NULL,
`name` varchar(255) DEFAULT NULL,
`mobile` varchar(255) DEFAULT NULL,
`idcard` varchar(255) DEFAULT NULL,
`sex` varchar(255) DEFAULT NULL,
`birthday` varchar(255) DEFAULT NULL,
`email` varchar(255) DEFAULT NULL,
`location` varchar(255) DEFAULT NULL,
`education` varchar(255) DEFAULT NULL,
`industry` varchar(255) DEFAULT NULL,
`income` varchar(255) DEFAULT NULL,
`habit` varchar(255) DEFAULT NULL,
`field1` varchar(255) DEFAULT NULL,
`field2` varchar(255) DEFAULT NULL,
`field3` varchar(255) DEFAULT NULL,
`field4` varchar(255) DEFAULT NULL,
`field5` varchar(255) DEFAULT NULL,
`status` tinyint(1) DEFAULT '1' COMMENT '1正常 2删除 3注销',
`createtime` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `card_id` (`card_id`) USING BTREE,
KEY `card_code` (`card_code`) USING BTREE,
KEY `mid` (`mid`) USING BTREE,
KEY `openid` (`openid`) USING BTREE,
KEY `unionid` (`unionid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_mendian`;
CREATE TABLE `ddwx_mendian` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`name` varchar(255) DEFAULT NULL,
`subname` varchar(255) DEFAULT NULL,
`pic` varchar(255) DEFAULT NULL,
`pics` varchar(1000) DEFAULT NULL,
`content` longtext,
`tel` varchar(20) NULL,
`area` varchar(255) DEFAULT NULL,
`address` varchar(255) DEFAULT NULL,
`longitude` varchar(255) DEFAULT NULL COMMENT '经度',
`latitude` varchar(255) DEFAULT NULL COMMENT '纬度',
`commission_money_type` tinyint(1) DEFAULT '0' COMMENT '分成类型:0比例 1固定',
`commission_money_percent` decimal(5, 2) NULL,
`commission_money` decimal(11, 2) NULL,
`commission_score_type` tinyint(1) DEFAULT '0' COMMENT '积分分成类型:0比例 1固定',
`commission_score_percent` decimal(5, 2) NULL,
`commission_score` int(11) NULL,
`createtime` int(11) DEFAULT NULL,
`status` tinyint(1) DEFAULT '1',
`sort` int(11) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_miandan_order`;
CREATE TABLE `ddwx_miandan_order` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`orderid` int(11) DEFAULT NULL,
`ordertype` varchar(255) DEFAULT NULL,
`mid` int(11) DEFAULT NULL,
`add_source` int(11) DEFAULT NULL,
`wx_appid` varchar(100) DEFAULT NULL,
`order_id` varchar(100) DEFAULT NULL,
`openid` varchar(255) DEFAULT NULL,
`biz_id` varchar(255) DEFAULT NULL,
`delivery_id` varchar(255) DEFAULT NULL,
`delivery_name` varchar(255) DEFAULT NULL,
`service_type` varchar(255) DEFAULT NULL,
`service_name` varchar(255) DEFAULT NULL,
`expect_time` varchar(255) DEFAULT NULL,
`custom_remark` varchar(255) DEFAULT NULL,
`receiver_name` varchar(255) DEFAULT NULL,
`receiver_mobile` varchar(255) DEFAULT NULL,
`receiver_province` varchar(255) DEFAULT NULL,
`receiver_city` varchar(255) DEFAULT NULL,
`receiver_area` varchar(255) DEFAULT NULL,
`receiver_address` varchar(255) DEFAULT NULL,
`receiver_tel` varchar(255) DEFAULT NULL,
`receiver_company` varchar(255) DEFAULT NULL,
`receiver_post_code` varchar(255) DEFAULT NULL,
`sender_name` varchar(255) DEFAULT NULL,
`sender_mobile` varchar(255) DEFAULT NULL,
`sender_province` varchar(255) DEFAULT NULL,
`sender_city` varchar(255) DEFAULT NULL,
`sender_area` varchar(255) DEFAULT NULL,
`sender_address` varchar(255) DEFAULT NULL,
`sender_tel` varchar(255) DEFAULT NULL,
`sender_company` varchar(255) DEFAULT NULL,
`sender_post_code` varchar(255) DEFAULT NULL,
`cargo_count` varchar(255) DEFAULT NULL,
`cargo_weight` double DEFAULT NULL,
`cargo_space_x` varchar(255) DEFAULT NULL,
`cargo_space_y` varchar(255) DEFAULT NULL,
`cargo_space_z` varchar(255) DEFAULT NULL,
`cargo_detail_list` text,
`shop_wxa_path` varchar(255) DEFAULT NULL,
`shop_img_url` varchar(255) DEFAULT NULL,
`shop_goods_name` varchar(255) DEFAULT NULL,
`shop_goods_count` int(11) DEFAULT NULL,
`use_insured` tinyint(1) DEFAULT NULL,
`insured_value` varchar(255) DEFAULT NULL,
`status` tinyint(1) DEFAULT '0',
`waybill_id` varchar(255) DEFAULT NULL,
`waybill_data` text,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `orderid` (`orderid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_mp_keyword`;
CREATE TABLE `ddwx_mp_keyword` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`keyword` varchar(255) DEFAULT NULL,
`ktype` int(1) DEFAULT '0' COMMENT '0完全匹配 1包含匹配 2关注回复',
`msgtype` varchar(255) DEFAULT NULL,
`content` text,
`sort` int(11) DEFAULT '0',
`createtime` int(11) DEFAULT NULL,
`status` int(1) DEFAULT '1',
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `status` (`status`) USING BTREE,
KEY `ktype` (`ktype`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_mp_kfmsg_sendlog`;
CREATE TABLE `ddwx_mp_kfmsg_sendlog` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`title` varchar(255) DEFAULT NULL,
`media_id` varchar(255) DEFAULT NULL,
`to_type` tinyint(1) DEFAULT '1',
`tagid` int(11) DEFAULT NULL,
`openids` longtext,
`createtime` int(11) DEFAULT NULL,
`endtime` int(11) DEFAULT NULL,
`sendcount` int(11) DEFAULT '0',
`successcount` int(11) DEFAULT '0',
`errorcount` int(11) DEFAULT '0',
`isdel` int(1) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `to_type` (`to_type`) USING BTREE,
KEY `isdel` (`isdel`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_mp_kfmsg_sendlog_errlog`;
CREATE TABLE `ddwx_mp_kfmsg_sendlog_errlog` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`logid` int(11) DEFAULT NULL,
`openid` varchar(255) DEFAULT NULL,
`errcode` varchar(255) DEFAULT NULL,
`errmsg` varchar(255) DEFAULT NULL,
`createtime` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `logid` (`logid`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_mp_material`;
CREATE TABLE `ddwx_mp_material` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`url` varchar(255) DEFAULT NULL,
`media_id` varchar(255) DEFAULT NULL,
`createtime` int(11) DEFAULT NULL,
`type` varchar(255) DEFAULT NULL,
`description` varchar(255) DEFAULT NULL,
`endtime` int(11) DEFAULT '2147483647',
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `media_id` (`media_id`) USING BTREE,
KEY `type` (`type`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_mp_menu`;
CREATE TABLE `ddwx_mp_menu` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`menudata` text,
`createtime` int(11) DEFAULT NULL,
`updatetime` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4;
DROP TABLE IF EXISTS `ddwx_mp_menukey`;
CREATE TABLE `ddwx_mp_menukey` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`key` varchar(255) DEFAULT NULL,
`val` varchar(1000) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `key` (`key`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_mp_preview_wxhistory`;
CREATE TABLE `ddwx_mp_preview_wxhistory` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`towxname` varchar(255) DEFAULT NULL,
`createtime` int(11) DEFAULT NULL,
`isdel` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_mp_tmpl_sendlog`;
CREATE TABLE `ddwx_mp_tmpl_sendlog` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`title` varchar(255) DEFAULT NULL,
`template_id` varchar(255) DEFAULT NULL,
`data` text,
`url` varchar(255) DEFAULT NULL,
`to_type` tinyint(1) DEFAULT '1',
`tagid` int(11) DEFAULT NULL,
`openids` longtext,
`createtime` int(11) DEFAULT NULL,
`endtime` int(11) DEFAULT NULL,
`sendcount` int(11) DEFAULT '0',
`successcount` int(11) DEFAULT '0',
`errorcount` int(11) DEFAULT '0',
`isdel` int(1) DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_mp_tmpl_sendlog_errlog`;
CREATE TABLE `ddwx_mp_tmpl_sendlog_errlog` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`logid` int(11) DEFAULT NULL,
`openid` varchar(255) DEFAULT NULL,
`errcode` varchar(255) DEFAULT NULL,
`errmsg` varchar(255) DEFAULT NULL,
`createtime` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_mp_tmplset`;
CREATE TABLE `ddwx_mp_tmplset` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`tmpl_orderconfirm` varchar(255) DEFAULT NULL,
`tmpl_orderpay` varchar(255) DEFAULT NULL,
`tmpl_orderfahuo` varchar(255) DEFAULT NULL,
`tmpl_ordershouhuo` varchar(255) DEFAULT NULL,
`tmpl_ordertui` varchar(255) DEFAULT NULL,
`tmpl_tuisuccess` varchar(255) DEFAULT NULL,
`tmpl_tuierror` varchar(255) DEFAULT NULL,
`tmpl_withdraw` varchar(255) DEFAULT NULL,
`tmpl_tixiansuccess` varchar(255) DEFAULT NULL,
`tmpl_tixianerror` varchar(255) DEFAULT NULL,
`tmpl_collagesuccess` varchar(255) DEFAULT NULL,
`tmpl_formsub` varchar(255) DEFAULT NULL,
`tmpl_kehuzixun` varchar(255) DEFAULT NULL,
`tmpl_fenxiaosuccess` varchar(255) DEFAULT NULL,
`tmpl_fuwudaoqi` varchar(255) DEFAULT NULL,
`tmpl_joinin` varchar(255) DEFAULT NULL,
`tmpl_peisongorder` varchar(255) DEFAULT NULL,
`tmpl_uplv` varchar(255) DEFAULT NULL COMMENT '会员升级通知',
`tmpl_moneychange` varchar(255) DEFAULT NULL COMMENT '余额变动提示',
`tmpl_restaurant_booking` varchar(255) NULL,
`tmpl_shenhe` varchar(255) NULL COMMENT '审核结果通知',
PRIMARY KEY (`id`),
UNIQUE KEY `aid` (`aid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_payorder`;
CREATE TABLE `ddwx_payorder` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT NULL,
`mid` int(11) DEFAULT NULL,
`orderid` int(11) DEFAULT NULL,
`ordernum` varchar(100) DEFAULT NULL,
`title` varchar(255) DEFAULT NULL,
`money` decimal(11,2) DEFAULT '0.00',
`score` int(11) DEFAULT NULL,
`type` varchar(100) DEFAULT NULL COMMENT 'shop collage scoreshop kanjia seckill recharge maidan designerpage form',
`createtime` int(11) DEFAULT NULL,
`status` tinyint(1) DEFAULT '0' COMMENT '0未支付 1已支付 2已取消',
`paynum` varchar(100) DEFAULT NULL,
`paytypeid` tinyint(1) DEFAULT '0' COMMENT '1余额支付 2微信支付 3支付宝支付 4货到付款 5转账汇款 11百度小程序 12头条小程序',
`paytype` varchar(255) DEFAULT NULL,
`paytime` int(11) DEFAULT NULL,
`paypics` text NULL,
`check_status` tinyint(1) DEFAULT NULL COMMENT '0待审核,1审核通过,2驳回',
`check_remark` varchar(255) NULL,
`platform` varchar(100) DEFAULT NULL,
`issettle` tinyint(1) DEFAULT '0',
`isbusinesspay` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `aid` (`aid`),
KEY `bid` (`bid`),
KEY `mid` (`mid`),
KEY `orderid` (`orderid`),
KEY `ordernum` (`ordernum`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_peisong_moneylog`;
CREATE TABLE `ddwx_peisong_moneylog` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`uid` int(11) DEFAULT NULL,
`money` decimal(11,2) DEFAULT '0.00',
`after` decimal(11,2) DEFAULT '0.00',
`createtime` int(11) DEFAULT NULL,
`remark` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `uid` (`uid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_peisong_order`;
CREATE TABLE `ddwx_peisong_order` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) unsigned DEFAULT '0',
`mid` int(11) DEFAULT NULL,
`psid` int(11) DEFAULT NULL COMMENT '配送员id',
`orderid` int(11) DEFAULT NULL,
`ordernum` varchar(100) DEFAULT NULL,
`createtime` int(11) DEFAULT NULL,
`starttime` int(11) DEFAULT NULL,
`daodiantime` int(11) DEFAULT NULL,
`quhuotime` int(11) DEFAULT NULL,
`endtime` int(11) DEFAULT NULL,
`status` tinyint(1) DEFAULT '0' COMMENT '0待接单 1已接单正在赶往商家 2已到店 3已取货配送中 4已送达',
`type` varchar(255) DEFAULT NULL,
`ticheng` decimal(11,2) DEFAULT '0.00',
`psfee` decimal(10,2) DEFAULT '0.00' COMMENT '配送费 需要扣除商家的钱',
`iscomment` tinyint(1) unsigned DEFAULT '0' COMMENT '是否评价',
`yujitime` int(11) DEFAULT NULL COMMENT '预计送达时间',
`juli` int(11) DEFAULT NULL COMMENT '商家到用户的距离 米',
`longitude` varchar(100) DEFAULT NULL COMMENT '商家坐标',
`latitude` varchar(100) DEFAULT NULL,
`longitude2` varchar(100) DEFAULT NULL COMMENT '用户坐标',
`latitude2` varchar(100) DEFAULT NULL,
`orderinfo` text COMMENT '订单信息',
`prolist` text COMMENT '商品信息',
`binfo` text COMMENT '商家信息',
`make_ordernum` varchar(100) DEFAULT NULL COMMENT '码科跑腿订单号',
`make_rider_name` varchar(255) DEFAULT NULL COMMENT '码科配送员姓名',
`make_rider_mobile` varchar(255) DEFAULT NULL COMMENT '码科配送员手机号',
PRIMARY KEY (`id`),
KEY `aid` (`aid`),
KEY `psid` (`psid`),
KEY `orderid` (`orderid`),
KEY `ordernum` (`ordernum`),
KEY `status` (`status`),
KEY `type` (`type`),
KEY `iscomment` (`iscomment`),
KEY `bid` (`bid`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_peisong_order_comment`;
CREATE TABLE `ddwx_peisong_order_comment` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT NULL,
`mid` int(11) DEFAULT NULL,
`psid` int(11) DEFAULT NULL,
`orderid` int(11) DEFAULT NULL,
`ordernum` varchar(50) DEFAULT NULL,
`openid` varchar(255) DEFAULT NULL,
`nickname` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL,
`headimg` varchar(255) DEFAULT NULL,
`score` int(11) DEFAULT NULL,
`content` varchar(255) DEFAULT NULL,
`content_pic` varchar(255) DEFAULT NULL,
`reply_content` varchar(255) DEFAULT NULL,
`reply_content_pic` varchar(255) DEFAULT NULL,
`status` int(1) DEFAULT '1',
`createtime` int(11) DEFAULT '0',
`reply_time` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `peisong_user_id` (`psid`) USING BTREE,
KEY `order_id` (`orderid`) USING BTREE,
KEY `order_no` (`ordernum`) USING BTREE,
KEY `status` (`status`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COMMENT='配送单评价';
DROP TABLE IF EXISTS `ddwx_peisong_set`;
CREATE TABLE `ddwx_peisong_set` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`status` tinyint(1) DEFAULT '0',
`paidantype` tinyint(1) DEFAULT '0',
`yuji_sendminute` int(11) DEFAULT '10',
`yuji_psjuli1` int(11) DEFAULT '5',
`yuji_psminute1` int(11) DEFAULT '20',
`yuji_psjuli2` int(11) DEFAULT '1',
`yuji_psminute2` int(11) DEFAULT '2',
`jiesuantype` tinyint(1) DEFAULT '0',
`tcmoney` decimal(11,2) DEFAULT '0.00',
`peisong_juli1` varchar(100) DEFAULT '5',
`peisong_tcmoney1` decimal(11,2) DEFAULT '5.00',
`peisong_juli2` varchar(100) DEFAULT '1',
`peisong_tcmoney2` decimal(11,2) DEFAULT '2.00',
`peisong_tcmoneymax` decimal(11,2) DEFAULT '20.00' COMMENT '封顶提成金额',
`withdraw_weixin` tinyint(1) DEFAULT '1',
`withdraw_aliaccount` tinyint(1) DEFAULT '1',
`withdraw_bankcard` tinyint(1) DEFAULT '1',
`withdrawmin` varchar(255) DEFAULT '10',
`withdrawfee` varchar(255) DEFAULT '0',
`businessst` tinyint(1) DEFAULT '0',
`businessfee` decimal(11,2) DEFAULT '0.00',
`make_status` tinyint(1) DEFAULT '0',
`make_domain` varchar(100) DEFAULT NULL,
`make_appid` varchar(100) DEFAULT NULL,
`make_token` varchar(255) DEFAULT NULL,
`make_shopkoufei` tinyint(1) DEFAULT '0',
`make_access_token` varchar(255) DEFAULT NULL,
`make_expire_time` int(11) DEFAULT NULL,
`express_wx_status` tinyint(1) UNSIGNED NULL DEFAULT '0',
`express_wx_shopkoufei` tinyint(1) UNSIGNED NULL DEFAULT '0',
`express_wx_paidan` tinyint(1) UNSIGNED NULL DEFAULT '0',
`express_wx_shop_no` varchar(60) NULL COMMENT '商家门店编号',
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_peisong_user`;
CREATE TABLE `ddwx_peisong_user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`mid` int(11) DEFAULT NULL,
`realname` varchar(255) DEFAULT NULL,
`tel` varchar(255) DEFAULT NULL,
`status` tinyint(11) DEFAULT '1',
`createtime` int(11) DEFAULT NULL,
`sort` int(11) DEFAULT '0',
`comment_score` decimal(2,1) DEFAULT '5.0',
`comment_num` int(11) DEFAULT '0',
`comment_haopercent` int(11) DEFAULT '100' COMMENT '好评率',
`money` decimal(11,2) DEFAULT '0.00',
`totalmoney` decimal(11,2) DEFAULT '0.00',
`totalnum` int(11) DEFAULT '0',
`weixin` varchar(255) DEFAULT NULL,
`aliaccount` varchar(255) DEFAULT NULL,
`bankname` varchar(255) DEFAULT NULL,
`bankcarduser` varchar(255) DEFAULT NULL,
`bankcardnum` varchar(100) DEFAULT NULL,
`longitude` varchar(100) DEFAULT NULL,
`latitude` varchar(100) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_peisong_withdrawlog`;
CREATE TABLE `ddwx_peisong_withdrawlog` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`uid` int(11) DEFAULT NULL,
`money` decimal(11,2) DEFAULT NULL,
`txmoney` decimal(11,2) DEFAULT NULL,
`weixin` varchar(255) DEFAULT NULL,
`aliaccount` varchar(255) DEFAULT NULL,
`ordernum` varchar(255) DEFAULT NULL,
`paytype` varchar(255) DEFAULT NULL,
`status` tinyint(1) DEFAULT '0',
`createtime` int(11) DEFAULT NULL,
`bankname` varchar(255) DEFAULT NULL,
`bankcarduser` varchar(255) DEFAULT NULL,
`bankcardnum` varchar(255) DEFAULT NULL,
`paytime` int(11) DEFAULT NULL,
`paynum` varchar(255) DEFAULT NULL,
`platform` varchar(255) DEFAULT 'wx',
`reason` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `uid` (`uid`) USING BTREE,
KEY `createtime` (`createtime`) USING BTREE,
KEY `status` (`status`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_pictolocal`;
CREATE TABLE `ddwx_pictolocal` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`pic` varchar(255) DEFAULT NULL,
`url` varchar(255) DEFAULT NULL,
`createtime` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `pic` (`pic`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_plog`;
CREATE TABLE `ddwx_plog` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`uid` int(11) DEFAULT NULL,
`remark` text,
`createtime` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `uid` (`uid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_recharge_giveset`;
CREATE TABLE `ddwx_recharge_giveset` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`givedata` text,
`status` tinyint(1) DEFAULT '0',
`createtime` int(11) DEFAULT NULL,
`shuoming` longtext,
`caninput` tinyint(1) DEFAULT '1',
PRIMARY KEY (`id`),
UNIQUE KEY `aid` (`aid`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_recharge_order`;
CREATE TABLE `ddwx_recharge_order` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`mid` int(11) DEFAULT NULL,
`money` decimal(11,2) DEFAULT '0.00',
`ordernum` varchar(100) DEFAULT NULL,
`createtime` int(11) DEFAULT NULL,
`status` tinyint(1) DEFAULT '0',
`payorderid` int(11) DEFAULT NULL,
`paytypeid` int(11) DEFAULT NULL,
`paytype` varchar(100) DEFAULT NULL,
`paynum` varchar(255) DEFAULT NULL,
`paytime` int(11) DEFAULT NULL,
`platform` varchar(100) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_scoreshop_cart`;
CREATE TABLE `ddwx_scoreshop_cart` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`mid` int(11) DEFAULT NULL,
`proid` int(11) DEFAULT NULL,
`num` int(11) DEFAULT NULL,
`createtime` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE,
KEY `proid` (`proid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_scoreshop_category`;
CREATE TABLE `ddwx_scoreshop_category` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`pid` int(11) DEFAULT '0',
`name` varchar(255) DEFAULT NULL,
`pic` varchar(255) DEFAULT NULL,
`status` int(1) DEFAULT '1',
`sort` int(11) DEFAULT '1',
`createtime` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `pid` (`pid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_scoreshop_codelist`;
CREATE TABLE `ddwx_scoreshop_codelist` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`proid` int(11) DEFAULT NULL,
`content` text,
`ordernum` varchar(100) DEFAULT NULL,
`orderid` int(11) DEFAULT NULL,
`headimg` varchar(255) DEFAULT NULL,
`nickname` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL,
`createtime` int(11) DEFAULT NULL,
`buytime` int(11) DEFAULT NULL,
`status` tinyint(1) DEFAULT '0',
`bid` int(11) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `proid` (`proid`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_scoreshop_order`;
CREATE TABLE `ddwx_scoreshop_order` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`mid` int(11) DEFAULT NULL,
`title` text,
`totalscore` int(11) DEFAULT '0',
`totalmoney` decimal(11,2) DEFAULT '0.00',
`totalprice` decimal(10,2) DEFAULT NULL,
`totalnum` int(11) DEFAULT '1',
`freight_price` float(11,2) DEFAULT NULL,
`createtime` int(11) DEFAULT NULL,
`status` int(11) DEFAULT '0' COMMENT '0未支付;1已支付;2已发货,3已收货',
`ordernum` varchar(255) DEFAULT NULL,
`linkman` varchar(255) DEFAULT NULL,
`tel` varchar(50) DEFAULT NULL,
`area` varchar(255) DEFAULT NULL,
`area2` varchar(255) DEFAULT NULL,
`address` varchar(255) DEFAULT NULL,
`longitude` varchar(100) DEFAULT NULL,
`latitude` varchar(100) DEFAULT NULL,
`message` varchar(255) DEFAULT NULL,
`remark` varchar(255) DEFAULT NULL,
`express_com` varchar(255) DEFAULT NULL,
`express_no` varchar(255) DEFAULT NULL,
`refund_reason` varchar(255) DEFAULT NULL,
`refund_money` decimal(11,2) DEFAULT '0.00',
`refund_status` int(1) DEFAULT '0' COMMENT '1申请退款审核中 2已同意退款 3已驳回',
`refund_time` int(11) DEFAULT NULL,
`refund_checkremark` varchar(255) DEFAULT NULL,
`payorderid` int(11) DEFAULT NULL,
`paytypeid` int(11) DEFAULT NULL,
`paytype` varchar(50) DEFAULT NULL,
`paynum` varchar(255) DEFAULT NULL,
`paytime` int(11) DEFAULT NULL,
`delete` int(1) DEFAULT '0',
`freight_id` int(11) DEFAULT NULL,
`freight_text` varchar(255) DEFAULT NULL,
`freight_type` tinyint(1) DEFAULT '0',
`mdid` int(11) DEFAULT NULL,
`freight_time` varchar(255) DEFAULT NULL,
`freight_content` text,
`send_time` bigint(20) DEFAULT NULL COMMENT '发货时间',
`collect_time` int(11) DEFAULT NULL COMMENT '收货时间',
`platform` varchar(50) DEFAULT 'wx' COMMENT 'wx小程序 m公众号网页',
`hexiao_code` varchar(100) DEFAULT NULL,
`hexiao_qr` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`hexiao_code`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE,
KEY `status` (`status`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_scoreshop_order_goods`;
CREATE TABLE `ddwx_scoreshop_order_goods` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`mid` int(11) DEFAULT NULL,
`orderid` int(11) DEFAULT NULL,
`ordernum` varchar(50) DEFAULT NULL,
`proid` int(11) DEFAULT NULL,
`name` varchar(255) DEFAULT NULL,
`pic` varchar(255) DEFAULT NULL,
`procode` varchar(255) DEFAULT NULL,
`num` int(11) DEFAULT NULL,
`sell_price` decimal(11,2) DEFAULT NULL,
`cost_price` decimal(11,2) DEFAULT '0.00',
`score_price` int(11) DEFAULT NULL,
`money_price` decimal(10,2) DEFAULT NULL,
`totalscore` int(11) DEFAULT '0',
`totalmoney` decimal(10,2) DEFAULT '0.00',
`status` int(1) DEFAULT '0' COMMENT '0未付款1已付款2已发货3已收货4申请退款5已退款',
`createtime` int(11) DEFAULT NULL,
`endtime` int(11) DEFAULT NULL,
`iscomment` tinyint(1) DEFAULT '0',
`parent1` int(11) DEFAULT NULL,
`parent2` int(11) DEFAULT NULL,
`parent3` int(11) DEFAULT NULL,
`parent1commission` decimal(11,2) DEFAULT '0.00',
`parent2commission` decimal(11,2) DEFAULT '0.00',
`parent3commission` decimal(11,2) DEFAULT '0.00',
`parent1score` int(11) DEFAULT '0',
`parent2score` int(11) DEFAULT '0',
`parent3score` int(11) DEFAULT '0',
`iscommission` tinyint(1) DEFAULT '0' COMMENT '佣金是否已发放',
`mendian_commission` decimal(11, 2) NULL DEFAULT '0.00' COMMENT '门店分成',
`mendian_score` int(11) NULL DEFAULT '0' COMMENT '门店分成积分',
`mendian_iscommission` tinyint(1) UNSIGNED NOT NULL DEFAULT '0' COMMENT '门店佣金是否已发放',
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE,
KEY `orderid` (`orderid`) USING BTREE,
KEY `proid` (`proid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_scoreshop_product`;
CREATE TABLE `ddwx_scoreshop_product` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`cid` int(11) DEFAULT '0',
`name` varchar(255) DEFAULT NULL,
`procode` varchar(255) DEFAULT NULL,
`fuwupoint` varchar(255) DEFAULT NULL,
`sellpoint` varchar(255) DEFAULT NULL,
`pic` varchar(255) DEFAULT '',
`pics` varchar(5000) DEFAULT NULL,
`sales` int(11) unsigned DEFAULT '0',
`saleing` int(11) DEFAULT '0',
`helpnum` int(11) DEFAULT '0',
`detail` longtext,
`sell_price` float(11,2) DEFAULT '0.00',
`cost_price` decimal(11,2) DEFAULT '0.00',
`score_price` int(11) DEFAULT '0',
`money_price` float(11,2) DEFAULT '0.00',
`weight` int(11) DEFAULT NULL,
`sort` int(11) DEFAULT '0',
`status` int(1) DEFAULT '1',
`stock` int(11) unsigned DEFAULT '100',
`createtime` int(11) DEFAULT NULL,
`buymax` int(11) DEFAULT '0',
`freighttype` tinyint(1) DEFAULT '1',
`freightdata` varchar(255) DEFAULT NULL,
`freightcontent` text,
`lvprice` tinyint(1) UNSIGNED NOT NULL DEFAULT '0' COMMENT '是否开启会员价 不同会员等级设置不同价格',
`lvprice_data` text NULL,
`commissionset` int(2) DEFAULT '0' COMMENT '0按会员等级 1价格比例 2固定金额 3送积分 4极差 5比例和积分 -1不参与分销',
`commissiondata1` text,
`commissiondata2` text,
`commissiondata3` text,
`commissiondata5` text,
`commission1` decimal(11,2) DEFAULT NULL,
`commission2` decimal(11,2) DEFAULT NULL,
`commission3` decimal(11,2) DEFAULT NULL,
`commission_money_type` tinyint(1) DEFAULT '0' COMMENT '分成类型:0比例 1固定',
`commission_money_percent` decimal(5, 2) NULL,
`commission_money` decimal(11, 2) NULL,
`commission_score_type` tinyint(1) DEFAULT '0' COMMENT '积分分成类型:0比例 1固定',
`commission_score_percent` decimal(5, 2) NULL,
`commission_score` int(11) NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `status` (`status`) USING BTREE,
KEY `stock` (`stock`) USING BTREE,
KEY `cid` (`cid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_scoreshop_sysset`;
CREATE TABLE `ddwx_scoreshop_sysset` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`autoshdays` int(11) DEFAULT '7',
`showjd` tinyint(1) DEFAULT '1',
`autoclose` int(11) DEFAULT '60' COMMENT '多少分钟不支付自动关闭订单',
`comment` tinyint(1) DEFAULT '1',
`comment_check` tinyint(1) DEFAULT '1',
`gettj` varchar(255) DEFAULT '-1' COMMENT '进入条件',
`gettjtip` varchar(255) DEFAULT '您没有权限进入',
`gettjurl` varchar(255) DEFAULT '',
`showcommission` tinyint(1) UNSIGNED NOT NULL DEFAULT '1',
PRIMARY KEY (`id`),
UNIQUE KEY `aid` (`aid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_seckill_codelist`;
CREATE TABLE `ddwx_seckill_codelist` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`proid` int(11) DEFAULT NULL,
`content` text,
`ordernum` varchar(100) DEFAULT NULL,
`orderid` int(11) DEFAULT NULL,
`headimg` varchar(255) DEFAULT NULL,
`nickname` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL,
`createtime` int(11) DEFAULT NULL,
`buytime` int(11) DEFAULT NULL,
`status` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `proid` (`proid`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_seckill_comment`;
CREATE TABLE `ddwx_seckill_comment` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`mid` int(11) DEFAULT NULL,
`orderid` int(11) DEFAULT NULL,
`ogid` int(11) DEFAULT NULL,
`proid` int(11) DEFAULT NULL,
`proname` varchar(255) DEFAULT NULL,
`propic` varchar(255) DEFAULT NULL,
`ggid` int(11) DEFAULT NULL,
`ggname` varchar(255) DEFAULT NULL,
`ordernum` varchar(50) DEFAULT NULL,
`openid` varchar(255) DEFAULT NULL,
`nickname` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL,
`headimg` varchar(255) DEFAULT NULL,
`score` int(11) DEFAULT NULL,
`content` varchar(255) DEFAULT NULL,
`content_pic` varchar(255) DEFAULT NULL,
`reply_content` varchar(255) DEFAULT NULL,
`reply_content_pic` varchar(255) DEFAULT NULL,
`append_content` varchar(255) DEFAULT NULL,
`append_content_pic` varchar(255) DEFAULT NULL,
`append_reply_content` varchar(255) DEFAULT NULL,
`append_reply_content_pic` varchar(255) DEFAULT NULL,
`createtime` int(11) DEFAULT NULL,
`appendtime` int(11) DEFAULT NULL,
`status` int(1) DEFAULT '1',
`reply_time` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_seckill_guige`;
CREATE TABLE `ddwx_seckill_guige` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`proid` int(11) DEFAULT NULL,
`name` varchar(255) DEFAULT NULL,
`pic` varchar(255) DEFAULT NULL,
`market_price` decimal(11,2) DEFAULT '0.00',
`cost_price` decimal(11,2) DEFAULT '0.00',
`sell_price` decimal(11,2) DEFAULT '0.00',
`weight` int(11) DEFAULT NULL,
`stock` int(11) unsigned DEFAULT '0',
`procode` varchar(255) DEFAULT NULL,
`sales` int(11) DEFAULT '0',
`ks` varchar(255) DEFAULT NULL,
`lvprice_data` text,
`givescore` int(11) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `proid` (`proid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_seckill_order`;
CREATE TABLE `ddwx_seckill_order` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`mid` int(11) DEFAULT NULL,
`ordernum` varchar(255) DEFAULT NULL,
`title` text,
`proid` int(11) DEFAULT NULL,
`proname` varchar(255) DEFAULT NULL,
`propic` varchar(255) DEFAULT NULL,
`ggid` int(11) DEFAULT NULL,
`ggname` varchar(255) DEFAULT NULL,
`num` int(11) DEFAULT '1',
`cost_price` decimal(10,2) DEFAULT NULL,
`sell_price` decimal(10,2) DEFAULT NULL,
`totalprice` float(11,2) DEFAULT NULL,
`business_total_money` decimal(11, 2) NULL DEFAULT NULL,
`product_price` float(11,2) DEFAULT '0.00',
`freight_price` float(11,2) DEFAULT NULL,
`scoredk_money` float(11,2) DEFAULT NULL,
`leveldk_money` float(11,2) DEFAULT '0.00' COMMENT '会员等级优惠金额',
`leader_money` decimal(11,2) DEFAULT '0.00',
`coupon_money` decimal(11,2) DEFAULT '0.00' COMMENT '优惠券金额',
`coupon_rid` int(11) DEFAULT NULL COMMENT '优惠券coupon_record的id',
`scoredkscore` int(11) DEFAULT '0',
`givescore` int(11) DEFAULT '0',
`createtime` int(11) DEFAULT NULL,
`status` int(11) DEFAULT '0' COMMENT '0未支付;1已支付;2已发货,3已收货',
`linkman` varchar(255) DEFAULT NULL,
`tel` varchar(50) DEFAULT NULL,
`area` varchar(255) DEFAULT NULL,
`area2` varchar(255) DEFAULT NULL,
`address` varchar(255) DEFAULT NULL,
`longitude` varchar(100) DEFAULT NULL,
`latitude` varchar(100) DEFAULT NULL,
`message` varchar(255) DEFAULT NULL,
`remark` varchar(255) DEFAULT NULL,
`express_com` varchar(255) DEFAULT NULL,
`express_no` varchar(255) DEFAULT NULL,
`refund_reason` varchar(255) DEFAULT NULL,
`refund_money` decimal(11,2) DEFAULT '0.00',
`refund_status` int(1) DEFAULT '0' COMMENT '1申请退款审核中 2已同意退款 3已驳回',
`refund_time` int(11) DEFAULT NULL,
`refund_checkremark` varchar(255) DEFAULT NULL,
`payorderid` int(11) DEFAULT NULL,
`paytypeid` int(11) DEFAULT NULL,
`paytype` varchar(50) DEFAULT NULL,
`paynum` varchar(255) DEFAULT NULL,
`paytime` int(11) DEFAULT NULL,
`delete` int(1) DEFAULT '0',
`freight_id` int(11) DEFAULT NULL,
`freight_text` varchar(255) DEFAULT NULL,
`freight_type` tinyint(1) DEFAULT '0',
`mdid` int(11) DEFAULT NULL,
`freight_time` varchar(255) DEFAULT NULL,
`freight_content` text,
`send_time` bigint(20) DEFAULT NULL COMMENT '发货时间',
`collect_time` int(11) DEFAULT NULL COMMENT '收货时间',
`hexiao_code` varchar(100) DEFAULT NULL,
`hexiao_qr` varchar(255) DEFAULT NULL,
`platform` varchar(255) DEFAULT 'wx',
`parent1` int(11) DEFAULT NULL,
`parent2` int(11) DEFAULT NULL,
`parent3` int(11) DEFAULT NULL,
`parent1commission` decimal(10,2) DEFAULT '0.00',
`parent2commission` decimal(10,2) DEFAULT '0.00',
`parent3commission` decimal(10,2) DEFAULT '0.00',
`parent1score` int(11) DEFAULT '0',
`parent2score` int(11) DEFAULT '0',
`parent3score` int(11) DEFAULT '0',
`iscomment` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `hexiao_code` (`hexiao_code`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE,
KEY `bid` (`bid`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_seckill_product`;
CREATE TABLE `ddwx_seckill_product` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`name` varchar(255) DEFAULT NULL,
`procode` varchar(255) DEFAULT NULL,
`fuwupoint` varchar(255) DEFAULT NULL,
`sellpoint` varchar(255) DEFAULT NULL,
`pic` varchar(255) DEFAULT '',
`pics` varchar(5000) DEFAULT NULL,
`sales` int(11) DEFAULT '0',
`detail` longtext,
`market_price` float(11,2) DEFAULT NULL,
`sell_price` float(11,2) DEFAULT '0.00',
`cost_price` decimal(11,2) DEFAULT '0.00',
`givescore` int(11) DEFAULT '0',
`weight` int(11) DEFAULT NULL,
`sort` int(11) DEFAULT '0',
`status` int(1) DEFAULT '1',
`stock` int(11) unsigned DEFAULT '100',
`createtime` int(11) DEFAULT NULL,
`commissionset` int(2) DEFAULT '0' COMMENT '0按会员等级 1价格比例 2固定金额 -1不参与分销',
`commissiondata1` text,
`commissiondata2` text,
`commissiondata3` text,
`commission1` decimal(11,2) DEFAULT NULL,
`commission2` decimal(11,2) DEFAULT NULL,
`commission3` decimal(11,2) DEFAULT NULL,
`guigedata` text,
`comment_score` decimal(2,1) DEFAULT '5.0',
`comment_num` int(11) DEFAULT '0',
`comment_haopercent` int(11) DEFAULT '100',
`freighttype` tinyint(1) DEFAULT '1',
`freightdata` varchar(255) DEFAULT NULL,
`freightcontent` text,
`lvprice` tinyint(1) DEFAULT '0' COMMENT '是否开启会员价 不同会员等级设置不同价格',
`lvprice_data` text,
`video` varchar(255) DEFAULT NULL,
`video_duration` int(11) DEFAULT '0',
`perlimit` int(11) DEFAULT '0',
`detail_text` text,
`detail_pics` text,
`gettj` varchar(255) DEFAULT '-1',
`gettjurl` varchar(255) DEFAULT NULL,
`gettjtip` varchar(255) DEFAULT NULL,
`scoredkmaxset` tinyint(1) DEFAULT '0',
`scoredkmaxval` decimal(11,2) DEFAULT '0.00',
`seckill_date` varchar(11) DEFAULT NULL,
`seckill_time` int(11) DEFAULT NULL,
`starttime` int(11) DEFAULT NULL,
`ischecked` tinyint(1) DEFAULT '1',
`check_reason` varchar(255) DEFAULT NULL,
`feepercent` decimal(5, 2) UNSIGNED NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `status` (`status`) USING BTREE,
KEY `stock` (`stock`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_seckill_sysset`;
CREATE TABLE `ddwx_seckill_sysset` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`timeset` varchar(255) DEFAULT '0,8,12,20',
`duration` int(11) DEFAULT '12',
`status` int(1) DEFAULT '1',
`autoshdays` int(11) DEFAULT '7',
`autoclose` int(11) DEFAULT '60' COMMENT '多少分钟不支付自动关闭订单',
`comment` tinyint(1) DEFAULT '1',
`comment_check` tinyint(1) DEFAULT '1',
`showjd` tinyint(1) DEFAULT '1',
`showcommission` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_sendredpack_log`;
CREATE TABLE `ddwx_sendredpack_log` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`openid` varchar(100) DEFAULT NULL,
`money` decimal(11,2) DEFAULT NULL,
`appid` varchar(100) DEFAULT NULL,
`mchid` varchar(100) DEFAULT NULL,
`ordernum` varchar(100) DEFAULT NULL,
`createtime` varchar(100) DEFAULT NULL,
`status` tinyint(1) DEFAULT '0',
`remark` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `openid` (`openid`) USING BTREE,
KEY `status` (`status`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_shop_cart`;
CREATE TABLE `ddwx_shop_cart` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL COMMENT '账户ID',
`bid` int(11) DEFAULT '0' COMMENT '商户ID 0代表平台的',
`mid` int(11) DEFAULT NULL COMMENT '会员ID',
`proid` int(11) DEFAULT NULL COMMENT '商品ID',
`ggid` int(11) DEFAULT NULL COMMENT '商品规格ID',
`num` int(11) DEFAULT NULL COMMENT '数量',
`createtime` int(11) DEFAULT NULL COMMENT '创建时间',
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE,
KEY `proid` (`proid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='购物车';
DROP TABLE IF EXISTS `ddwx_shop_category`;
CREATE TABLE `ddwx_shop_category` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL COMMENT '账户ID',
`pid` int(11) DEFAULT '0' COMMENT '上级分类ID',
`name` varchar(255) DEFAULT NULL COMMENT '分类名称',
`pic` varchar(255) DEFAULT NULL COMMENT '分类图片',
`status` int(1) DEFAULT '1' COMMENT '状态0关闭1开启',
`sort` int(11) DEFAULT '1' COMMENT '排序 越大越靠前',
`showtj` varchar(255) NULL DEFAULT '-1',
`createtime` int(11) DEFAULT NULL COMMENT '创建时间',
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `pid` (`pid`) USING BTREE,
KEY `showtj` (`showtj`) USING BTREE,
KEY `status` (`status`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='商品分类';
DROP TABLE IF EXISTS `ddwx_shop_codelist`;
CREATE TABLE `ddwx_shop_codelist` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL COMMENT '账户ID',
`bid` int(11) DEFAULT '0' COMMENT '商户ID 0代表平台的',
`proid` int(11) DEFAULT NULL COMMENT '商品ID',
`content` text COMMENT '卡密内容',
`ordernum` varchar(100) DEFAULT NULL COMMENT '订单号',
`orderid` int(11) DEFAULT NULL COMMENT '订单ID',
`headimg` varchar(255) DEFAULT NULL COMMENT '用户头像',
`nickname` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '用户昵称',
`createtime` int(11) DEFAULT NULL COMMENT '创建时间',
`buytime` int(11) DEFAULT NULL COMMENT '购买时间',
`status` tinyint(1) DEFAULT '0' COMMENT '状态0未售出1已售出',
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `proid` (`proid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='卡密商品的卡密';
DROP TABLE IF EXISTS `ddwx_shop_comment`;
CREATE TABLE `ddwx_shop_comment` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL COMMENT '账户ID',
`bid` int(11) DEFAULT '0' COMMENT '商户ID 0代表平台的',
`mid` int(11) DEFAULT NULL COMMENT '用户ID',
`orderid` int(11) DEFAULT NULL COMMENT '订单ID',
`ogid` int(11) DEFAULT NULL COMMENT '订单商品ID',
`proid` int(11) DEFAULT NULL COMMENT '商品ID',
`proname` varchar(255) DEFAULT NULL COMMENT '商品名称',
`propic` varchar(255) DEFAULT NULL COMMENT '商品图片',
`ggid` int(11) DEFAULT NULL COMMENT '商品规格ID',
`ggname` varchar(255) DEFAULT NULL COMMENT '商品规格名称',
`ordernum` varchar(50) DEFAULT NULL COMMENT '订单号',
`openid` varchar(255) DEFAULT NULL COMMENT '用户openid',
`nickname` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '用户昵称',
`headimg` varchar(255) DEFAULT NULL COMMENT '用户头像',
`score` int(11) DEFAULT NULL COMMENT '评价积分',
`content` varchar(255) DEFAULT NULL COMMENT '评价内容',
`content_pic` varchar(255) DEFAULT NULL COMMENT '评价图片',
`reply_content` varchar(255) DEFAULT NULL COMMENT '商家回复内容',
`reply_content_pic` varchar(255) DEFAULT NULL COMMENT '商家回复图片',
`append_content` varchar(255) DEFAULT NULL,
`append_content_pic` varchar(255) DEFAULT NULL,
`append_reply_content` varchar(255) DEFAULT NULL,
`append_reply_content_pic` varchar(255) DEFAULT NULL,
`createtime` int(11) DEFAULT NULL,
`appendtime` int(11) DEFAULT NULL,
`status` int(1) DEFAULT '1' COMMENT '状态0待审核1已通过2已驳回',
`reply_time` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE,
KEY `proid` (`proid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='商品评价';
DROP TABLE IF EXISTS `ddwx_shop_fastcart`;
CREATE TABLE `ddwx_shop_fastcart` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`mid` int(11) DEFAULT NULL,
`proid` int(11) DEFAULT NULL,
`ggid` int(11) DEFAULT NULL,
`num` int(11) DEFAULT NULL,
`createtime` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE,
KEY `proid` (`proid`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_shop_group`;
CREATE TABLE `ddwx_shop_group` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL COMMENT '账户ID',
`name` varchar(255) DEFAULT NULL COMMENT '分组名称',
`pic` varchar(255) DEFAULT NULL COMMENT '分组图片',
`status` int(1) DEFAULT '1' COMMENT '状态0关闭1开启',
`sort` int(11) DEFAULT '1' COMMENT '排序 越大越靠前',
`createtime` int(11) DEFAULT NULL COMMENT '创建时间',
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='商品分组';
DROP TABLE IF EXISTS `ddwx_shop_guige`;
CREATE TABLE `ddwx_shop_guige` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL COMMENT '账户ID',
`proid` int(11) DEFAULT NULL COMMENT '商品ID',
`name` varchar(255) DEFAULT NULL COMMENT '规格名称',
`pic` varchar(255) DEFAULT NULL COMMENT '规格图片',
`market_price` decimal(11,2) DEFAULT '0.00' COMMENT '市场价',
`cost_price` decimal(11,2) DEFAULT '0.00' COMMENT '成本价',
`sell_price` decimal(11,2) DEFAULT '0.00' COMMENT '销售价',
`weight` int(11) DEFAULT NULL COMMENT '重量',
`stock` int(11) unsigned DEFAULT '0' COMMENT '库存',
`procode` varchar(255) DEFAULT NULL COMMENT '编码',
`sales` int(11) DEFAULT '0' COMMENT '已售数量',
`ks` varchar(255) DEFAULT NULL COMMENT '规格结构',
`lvprice_data` text COMMENT '开启会员价时各个会员等级的价格数据',
`givescore` int(11) DEFAULT '0' COMMENT '购买给多少积分',
`limit_start` int(11) UNSIGNED NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `proid` (`proid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='商品规格';
DROP TABLE IF EXISTS `ddwx_shop_order`;
CREATE TABLE `ddwx_shop_order` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL COMMENT '账户ID',
`bid` int(11) DEFAULT '0' COMMENT '商户ID',
`mid` int(11) DEFAULT NULL COMMENT '会员ID',
`ordernum` varchar(255) DEFAULT NULL COMMENT '订单号',
`title` text COMMENT '订单名称',
`totalprice` float(11,2) DEFAULT NULL COMMENT '总金额',
`product_price` float(11,2) DEFAULT '0.00' COMMENT '商品金额',
`freight_price` float(11,2) DEFAULT NULL COMMENT '运费金额',
`scoredk_money` float(11,2) DEFAULT NULL COMMENT '积分抵扣金额',
`leveldk_money` float(11,2) DEFAULT '0.00' COMMENT '会员等级优惠金额',
`manjian_money` decimal(11,2) DEFAULT '0.00' COMMENT '满减优惠金额',
`coupon_money` decimal(11,2) DEFAULT '0.00' COMMENT '优惠券金额',
`coupon_rid` int(11) DEFAULT NULL COMMENT '优惠券coupon_record的id',
`scoredkscore` int(11) DEFAULT '0' COMMENT '积分抵扣用掉的积分',
`givescore` int(11) DEFAULT '0' COMMENT '赠送积分',
`createtime` int(11) DEFAULT NULL COMMENT '创建时间',
`status` int(11) DEFAULT '0' COMMENT '0未支付;1已支付;2已发货,3已收货,4关闭',
`linkman` varchar(255) DEFAULT NULL COMMENT '姓名',
`company` varchar(255) DEFAULT NULL COMMENT '单位',
`tel` varchar(50) DEFAULT NULL COMMENT '手机号',
`area` varchar(255) DEFAULT NULL COMMENT '省市区',
`area2` varchar(255) DEFAULT NULL COMMENT '省市区逗号分割',
`address` varchar(255) DEFAULT NULL COMMENT '地址',
`longitude` varchar(100) DEFAULT NULL COMMENT '经度',
`latitude` varchar(100) DEFAULT NULL COMMENT '维度',
`message` varchar(255) DEFAULT NULL COMMENT '留言',
`remark` varchar(255) DEFAULT NULL COMMENT '后台备注',
`payorderid` int(11) DEFAULT NULL COMMENT '订单支付表id',
`paytypeid` int(11) DEFAULT NULL COMMENT '支付方式 1余额支付 2微信支付 3支付宝支付 4货到付款 5转账汇款 11百度小程序 12头条小程序',
`paytype` varchar(50) DEFAULT NULL COMMENT '支付方式文本',
`paynum` varchar(255) DEFAULT NULL COMMENT '支付单号',
`paytime` int(11) DEFAULT NULL COMMENT '支付时间',
`express_com` varchar(255) DEFAULT NULL COMMENT '快递公司',
`express_no` varchar(255) DEFAULT NULL COMMENT '快递单号',
`express_type` varchar(255) NULL COMMENT '物流类型',
`express_content` text COMMENT '多个快递单号时的快递单号数据',
`refund_reason` varchar(255) DEFAULT NULL COMMENT '退款原因',
`refund_money` decimal(11,2) DEFAULT '0.00',
`refund_status` int(1) DEFAULT '0' COMMENT '1申请退款审核中 2已同意退款 3已驳回',
`refund_time` int(11) DEFAULT NULL COMMENT '退款时间',
`refund_checkremark` varchar(255) DEFAULT NULL COMMENT '退款审核备注',
`send_time` bigint(20) DEFAULT NULL COMMENT '发货时间',
`collect_time` int(11) DEFAULT NULL COMMENT '收货时间',
`freight_id` int(11) DEFAULT NULL COMMENT '配送方式ID',
`freight_text` varchar(255) DEFAULT NULL COMMENT '配送方式',
`freight_type` tinyint(1) DEFAULT '0' COMMENT '配送方式类型 0普通快递 1到店自提 2同城配送 3自动发货 4在线卡密',
`mdid` int(11) DEFAULT NULL COMMENT '到店自提时门店ID',
`freight_time` varchar(255) DEFAULT NULL COMMENT '取货时间',
`freight_content` text COMMENT '自动发货信息 卡密',
`hexiao_code` varchar(100) DEFAULT NULL COMMENT '唯一码 核销码',
`hexiao_qr` varchar(255) DEFAULT NULL COMMENT '核销码图片',
`platform` varchar(255) DEFAULT 'wx' COMMENT '来源平台 mp公众号 wx微信小程序',
`iscomment` tinyint(1) DEFAULT '0' COMMENT '是否已评价',
`delete` tinyint(1) DEFAULT '0' COMMENT '用户删除 0未删除 1已删除',
`isfenhong` tinyint(1) DEFAULT '0' COMMENT '是否已经分红',
`checkmemid` int(11) DEFAULT NULL,
`balance_price` float(11,2) DEFAULT '0.00',
`balance_pay_status` tinyint(1) DEFAULT '0',
`balance_pay_orderid` int(11) DEFAULT NULL,
`fromwxvideo` tinyint(1) DEFAULT '0' COMMENT '是否是视频号过来的订单',
`scene` int(11) DEFAULT '0' COMMENT '小程序场景',
`wxvideo_order_id` varchar(100) DEFAULT NULL,
`sysOrderNo` varchar(255) DEFAULT NULL COMMENT '定制同步app端',
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`hexiao_code`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE,
KEY `status` (`status`) USING BTREE,
KEY `createtime` (`createtime`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='商城订单表';
DROP TABLE IF EXISTS `ddwx_shop_order_goods`;
CREATE TABLE `ddwx_shop_order_goods` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL COMMENT '账户ID',
`bid` int(11) DEFAULT '0' COMMENT '商户ID 0表示平台',
`mid` int(11) DEFAULT NULL COMMENT '会员ID',
`orderid` int(11) DEFAULT NULL COMMENT '订单ID',
`ordernum` varchar(50) DEFAULT NULL COMMENT '订单号',
`proid` int(11) DEFAULT NULL COMMENT '商品ID',
`name` varchar(255) DEFAULT NULL COMMENT '商品名称',
`pic` varchar(255) DEFAULT NULL COMMENT '商品图片',
`procode` varchar(255) DEFAULT NULL COMMENT '商品编码',
`barcode` varchar(255) DEFAULT NULL,
`ggid` int(11) DEFAULT NULL COMMENT '规格ID',
`ggname` varchar(255) DEFAULT NULL COMMENT '规格名称',
`cid` varchar(255) NULL DEFAULT '0' COMMENT '分类ID',
`num` int(11) DEFAULT '0' COMMENT '购买数量',
`refund_num` int(11) UNSIGNED NOT NULL DEFAULT '0' COMMENT '退款数量',
`cost_price` decimal(11,2) DEFAULT NULL COMMENT '成本价',
`sell_price` decimal(11,2) DEFAULT NULL COMMENT '销售价',
`totalprice` decimal(11,2) DEFAULT NULL COMMENT '总价',
`total_weight` decimal(11, 2) UNSIGNED NULL DEFAULT '0',
`scoredk_money` decimal(11, 2) NULL DEFAULT '0' ,
`leveldk_money` decimal(11, 2) NULL DEFAULT '0' ,
`manjian_money` decimal(11, 2) NULL DEFAULT '0' ,
`coupon_money` decimal(11, 2) NULL DEFAULT '0' ,
`real_totalprice` decimal(10,2) DEFAULT '0.00' COMMENT '实际商品销售金额 减去了优惠券抵扣会员折扣满减积分抵扣的金额',
`business_total_money` decimal(11, 2) NULL DEFAULT NULL,
`status` int(1) DEFAULT '0' COMMENT '0未付款1已付款2已发货3已收货4申请退款5已退款',
`createtime` int(11) DEFAULT NULL COMMENT '创建时间',
`endtime` int(11) DEFAULT NULL COMMENT '完成时间 收货时间',
`iscomment` tinyint(1) DEFAULT '0' COMMENT '是否已评价',
`parent1` int(11) DEFAULT NULL COMMENT '直接推荐人',
`parent2` int(11) DEFAULT NULL COMMENT '二级推荐人',
`parent3` int(11) DEFAULT NULL COMMENT '三级推荐人',
`parent4` int(11) DEFAULT NULL,
`parent1commission` decimal(11,2) DEFAULT '0.00' COMMENT '一级提成',
`parent2commission` decimal(11,2) DEFAULT '0.00' COMMENT '二级提成',
`parent3commission` decimal(11,2) DEFAULT '0.00' COMMENT '三级提成',
`parent4commission` decimal(11,2) DEFAULT '0.00',
`parent1score` int(11) DEFAULT '0' COMMENT '一级提成积分',
`parent2score` int(11) DEFAULT '0' COMMENT '二级提成积分',
`parent3score` int(11) DEFAULT '0' COMMENT '三级提成积分',
`iscommission` tinyint(1) DEFAULT '0' COMMENT '佣金是否已发放',
`isfenhong` tinyint(1) DEFAULT '0' COMMENT '分红是否已结算',
`isfg` tinyint(1) DEFAULT '0' COMMENT '是否复购',
`isteamfenhong` tinyint(1) DEFAULT '0' COMMENT '团队分红是否已结算',
`isdan` int(11) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE,
KEY `orderid` (`orderid`) USING BTREE,
KEY `proid` (`proid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='订单商品明细表';
DROP TABLE IF EXISTS `ddwx_shop_product`;
CREATE TABLE `ddwx_shop_product` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`cid` varchar(200) DEFAULT '0' COMMENT '分类id,可存储多分类用,间隔',
`cid2` varchar(200) DEFAULT '0' COMMENT '商家的商品分类',
`gid` varchar(255) DEFAULT NULL COMMENT '分组ID多个用逗号分割',
`name` varchar(255) DEFAULT NULL COMMENT '商品名称',
`procode` varchar(255) DEFAULT NULL COMMENT '商品编码',
`barcode` varchar(60) DEFAULT NULL,
`fwid` varchar(255) DEFAULT NULL COMMENT '商品服务ID多个用逗号分割',
`fuwupoint` varchar(255) DEFAULT NULL,
`sellpoint` varchar(255) DEFAULT NULL COMMENT '卖点',
`pic` varchar(255) DEFAULT '' COMMENT '商品主图',
`pics` varchar(5000) DEFAULT NULL COMMENT '商品图片',
`sales` int(11) DEFAULT '0' COMMENT '已售数量',
`detail` longtext COMMENT '商品详情',
`market_price` float(11,2) DEFAULT NULL COMMENT '市场价',
`sell_price` float(11,2) DEFAULT '0.00' COMMENT '销售价',
`cost_price` decimal(11,2) DEFAULT '0.00' COMMENT '成本价',
`price_type` tinyint(1) UNSIGNED NULL DEFAULT '0' COMMENT '价格模式:0默认,1询价',
`givescore` int(11) DEFAULT '0' COMMENT '购买赠送积分',
`weight` int(11) DEFAULT NULL COMMENT '重量',
`sort` int(11) DEFAULT '0' COMMENT '排序 越大越靠前',
`status` int(1) DEFAULT '1' COMMENT '状态0未上架1已上架',
`stock` int(11) unsigned DEFAULT '100' COMMENT '库存',
`createtime` int(11) DEFAULT NULL COMMENT '创建时间',
`commissionset` int(2) DEFAULT '0' COMMENT '分销设置 0按会员等级 1价格比例 2固定金额 3分销送积分 -1不参与分销',
`commissiondata1` text COMMENT '按比例分销时的数据',
`commissiondata2` text COMMENT '按固定金额时的数据',
`commissiondata3` text COMMENT '按分销送积分的数据',
`commission1` decimal(11,2) DEFAULT NULL,
`commission2` decimal(11,2) DEFAULT NULL,
`commission3` decimal(11,2) DEFAULT NULL,
`commissionset4` tinyint(1) DEFAULT '0' COMMENT '是否开启极差分销',
`fenhongset` int(11) DEFAULT '1' COMMENT '分红设置',
`guigedata` text COMMENT '规格数据',
`comment_score` decimal(2,1) DEFAULT '5.0',
`comment_haopercent` int(11) DEFAULT '100' COMMENT '好评率',
`comment_num` int(11) DEFAULT '0' COMMENT '评价数量',
`freighttype` tinyint(1) DEFAULT '1' COMMENT '配送方式 1全部模板 0指定模板 3自动发货 4在线卡密',
`freightdata` varchar(255) DEFAULT NULL COMMENT '指定模板时的配送模板ID 多个逗号分割',
`freightcontent` text COMMENT '自动发货时的发货内容',
`fastbuy` tinyint(1) DEFAULT '1',
`lvprice` tinyint(1) DEFAULT '0' COMMENT '是否开启会员价 不同会员等级设置不同价格',
`lvprice_data` text COMMENT '开启会员价时的各个等级价格数据',
`isfuwu` tinyint(1) DEFAULT '0',
`fuwuday` int(11) DEFAULT NULL,
`video` varchar(255) DEFAULT NULL COMMENT '视频url',
`video_duration` int(11) DEFAULT '0' COMMENT '视频时长',
`bcid` int(11) DEFAULT '0' COMMENT '商户的商品时 商户的商品分类',
`perlimit` int(11) DEFAULT '0' COMMENT '每人限购多少件',
`perlimitdan` int(11) DEFAULT '0' COMMENT '每单限购多少件',
`limit_start` int(11) DEFAULT '0' COMMENT '起售数量',
`showtj` varchar(255) DEFAULT '-1' COMMENT '显示条件 -1表示不限制',
`gettj` varchar(255) DEFAULT '-1' COMMENT '购买条件 -1表示不限制',
`gettjurl` varchar(255) DEFAULT NULL,
`gettjtip` varchar(255) DEFAULT NULL,
`scoredkmaxset` tinyint(1) DEFAULT '0' COMMENT '积分抵扣设置 0按照系统设置抵扣 1单独设置抵扣比例 2单独设置抵扣金额 -1不可用积分抵扣',
`scoredkmaxval` decimal(11,2) DEFAULT '0.00' COMMENT '积分抵扣时最多抵扣多少',
`ischecked` tinyint(1) DEFAULT '1' COMMENT '是否已审核 1已通过 0待审核 2已驳回',
`check_reason` varchar(255) DEFAULT NULL COMMENT '驳回原因',
`start_hours` varchar(100) DEFAULT NULL,
`end_hours` varchar(100) DEFAULT NULL,
`start_time` varchar(100) DEFAULT NULL,
`end_time` varchar(100) DEFAULT NULL,
`balance` float(11,2) DEFAULT '0.00',
`wxvideo_edit_status` int(11) DEFAULT '0' COMMENT '视频号商品草稿状态 0未同步 1未审核 2审核中 3审核失败 4审核成功',
`wxvideo_status` int(11) DEFAULT '0' COMMENT '视频号商品线上状态 0初始值 5已上架 11已下架 13违规/风控',
`wxvideo_third_cat_id` varchar(100) DEFAULT '' COMMENT '视频号类目id',
`wxvideo_brand_id` varchar(100) DEFAULT '' COMMENT '视频号品牌id',
`wxvideo_product_id` varchar(100) DEFAULT '' COMMENT '视频号商品id',
`wxvideo_qualification_pics` varchar(255) DEFAULT '0' COMMENT '视频号商品资质',
`wxvideo_reject_reason` text COMMENT '视频号商品驳回原因',
`linkid` int(11) DEFAULT '0',
`payaftertourl` varchar(255) DEFAULT NULL,
`payafterbtntext` varchar(255) DEFAULT NULL,
`sharetitle` varchar(255) DEFAULT NULL,
`sharepic` varchar(255) DEFAULT NULL,
`sharedesc` varchar(255) DEFAULT NULL,
`sharelink` varchar(255) DEFAULT NULL,
`no_discount` tinyint(1) DEFAULT '0',
`douyin_product_id` varchar(255) DEFAULT '',
`douyin_check_status` tinyint(2) DEFAULT NULL,
`douyin_status` tinyint(1) DEFAULT NULL,
`feepercent` decimal(5, 2) UNSIGNED NULL DEFAULT NULL,
`fengdanjiangli` varchar(255) DEFAULT '',
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `cid` (`cid`) USING BTREE,
KEY `gid` (`gid`) USING BTREE,
KEY `status` (`status`) USING BTREE,
KEY `stock` (`stock`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_shop_sysset`;
CREATE TABLE `ddwx_shop_sysset` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`autoshdays` int(11) DEFAULT '7',
`autoclose` int(11) DEFAULT '60' COMMENT '多少分钟不支付自动关闭订单',
`comment` tinyint(1) DEFAULT '1',
`comment_check` tinyint(1) DEFAULT '1',
`showjd` tinyint(1) DEFAULT '1',
`cancod` tinyint(1) DEFAULT '0',
`gwctj` tinyint(1) DEFAULT '1',
`showcommission` tinyint(1) DEFAULT '0',
`needzb` tinyint(1) DEFAULT '0',
`codtxt` varchar(100) DEFAULT '货到付款',
`hide_sales` tinyint(1) DEFAULT '0' COMMENT '是否隐藏销量',
`canrefund` tinyint(1) DEFAULT '1',
`show_lvupsavemoney` tinyint(1) DEFAULT '0' COMMENT '是否显示升级优惠',
`receiving_address_name` varchar(255) DEFAULT NULL,
`receiving_address_tel` varchar(255) DEFAULT NULL,
`receiving_address_province` varchar(255) DEFAULT NULL,
`receiving_address_city` varchar(255) DEFAULT NULL,
`receiving_address_area` varchar(255) DEFAULT NULL,
`receiving_address_address` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `aid` (`aid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_sign_record`;
CREATE TABLE `ddwx_sign_record` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`mid` int(11) DEFAULT NULL,
`nickname` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL,
`headimg` varchar(255) DEFAULT NULL,
`signdate` varchar(255) DEFAULT NULL,
`signtimes` int(11) DEFAULT NULL,
`signtimeslx` int(11) DEFAULT NULL,
`score` int(11) DEFAULT NULL,
`remark` varchar(255) DEFAULT NULL,
`createtime` int(11) DEFAULT NULL,
`lxqd_coupon_id` int(10) DEFAULT '0' COMMENT '优惠券id',
`lxzs_coupon_id` int(10) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_signset`;
CREATE TABLE `ddwx_signset` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`score` int(11) DEFAULT NULL,
`lxqdset` text,
`lxzsset` text,
`sharescore` varchar(11) DEFAULT NULL,
`sharetimes` varchar(11) DEFAULT NULL,
`name` varchar(255) DEFAULT NULL,
`status` tinyint(1) DEFAULT '0',
`display` tinyint(1) DEFAULT '0',
`guize` longtext,
PRIMARY KEY (`id`),
UNIQUE KEY `aid` (`aid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_smslog`;
CREATE TABLE `ddwx_smslog` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`PhoneNumbers` text,
`num` int(11) DEFAULT '1',
`SignName` varchar(255) DEFAULT NULL,
`TemplateCode` varchar(100) DEFAULT NULL,
`TemplateContent` varchar(255) DEFAULT NULL,
`TemplateParam` text,
`ip` varchar(255) DEFAULT NULL,
`createtime` int(11) DEFAULT NULL,
`createdate` varchar(100) DEFAULT NULL,
`biz_id` varchar(255) DEFAULT NULL,
`status` tinyint(1) DEFAULT '0' COMMENT '0发送中 1成功 2失败',
`err_msg` varchar(255) DEFAULT NULL,
`successnum` int(11) DEFAULT '0',
`errnum` int(11) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `status` (`status`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_sysset`;
CREATE TABLE `ddwx_sysset` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
`value` longtext,
PRIMARY KEY (`id`),
KEY `name` (`name`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_webmessage`;
CREATE TABLE `ddwx_webmessage` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`realname` varchar(255) DEFAULT NULL,
`tel` varchar(255) DEFAULT NULL,
`content` text,
`ip` varchar(255) DEFAULT NULL,
`createtime` int(11) DEFAULT NULL,
`status` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_wifiprint_set`;
CREATE TABLE `ddwx_wifiprint_set` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`name` varchar(255) DEFAULT NULL COMMENT '打印机名称',
`title` varchar(255) DEFAULT NULL COMMENT '小票标题',
`client_id` varchar(255) DEFAULT NULL,
`client_secret` varchar(255) DEFAULT NULL,
`access_token` varchar(255) DEFAULT NULL,
`machine_code` varchar(255) DEFAULT NULL,
`msign` varchar(255) DEFAULT NULL,
`status` tinyint(1) DEFAULT '1',
`print_ps` tinyint(1) DEFAULT '1' COMMENT '打印配送订单',
`print_zt_type` tinyint(1) DEFAULT '1' COMMENT '打印自提订单 0不打印 1全部门店 2选择门店打印',
`print_zt_mdid` varchar(255) DEFAULT NULL,
`voice` tinyint(1) DEFAULT '2' COMMENT '0不播报 1低音 2中音 3高音',
`createtime` int(11) DEFAULT NULL,
`type` tinyint(1) DEFAULT '0',
`autoprint` tinyint(1) DEFAULT '1',
`machine_type` tinyint(1) DEFAULT '0',
`tmpltype` tinyint(1) DEFAULT '0',
`tmplcontent` text,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_wx_keyword`;
CREATE TABLE `ddwx_wx_keyword` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`keyword` varchar(255) DEFAULT NULL,
`ktype` int(1) DEFAULT '0' COMMENT '0完全匹配 1包含匹配 2关注回复',
`msgtype` varchar(255) DEFAULT NULL,
`content` text,
`sort` int(11) DEFAULT '0',
`createtime` int(11) DEFAULT NULL,
`status` int(1) DEFAULT '1',
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `status` (`status`) USING BTREE,
KEY `ktype` (`ktype`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_wx_tmplset`;
CREATE TABLE `ddwx_wx_tmplset` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`tmpl_orderfahuo` varchar(255) DEFAULT NULL,
`tmpl_tuisuccess` varchar(255) DEFAULT NULL,
`tmpl_tuierror` varchar(255) DEFAULT NULL,
`tmpl_tixiansuccess` varchar(255) DEFAULT NULL,
`tmpl_tixianerror` varchar(255) DEFAULT NULL,
`tmpl_collagesuccess` varchar(255) DEFAULT NULL,
`tmpl_fuwudaoqi` varchar(255) DEFAULT NULL,
`tmpl_shenhe` varchar(255) DEFAULT NULL,
`tmpl_orderfahuo_new` varchar(255) DEFAULT NULL,
`tmpl_tuisuccess_new` varchar(255) DEFAULT NULL,
`tmpl_tuierror_new` varchar(255) DEFAULT NULL,
`tmpl_tixiansuccess_new` varchar(255) DEFAULT NULL,
`tmpl_tixianerror_new` varchar(255) DEFAULT NULL,
`tmpl_collagesuccess_new` varchar(255) DEFAULT NULL,
`tmpl_shenhe_new` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `aid` (`aid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_wxpay_log`;
CREATE TABLE `ddwx_wxpay_log` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`mid` int(11) DEFAULT NULL,
`openid` varchar(255) DEFAULT NULL,
`tablename` varchar(255) DEFAULT NULL,
`ordernum` varchar(255) DEFAULT NULL,
`mch_id` varchar(100) DEFAULT NULL,
`transaction_id` varchar(255) DEFAULT NULL,
`total_fee` decimal(11,2) DEFAULT '0.00',
`givescore` int(11) DEFAULT '0',
`createtime` int(11) DEFAULT NULL,
`fenzhangmoney` decimal(11,2) DEFAULT '0.00',
`isfenzhang` tinyint(1) DEFAULT '0',
`fz_ordernum` varchar(100) DEFAULT NULL,
`fz_errmsg` varchar(255) DEFAULT NULL,
`sub_mchid` varchar(100) DEFAULT NULL,
`platform` varchar(100) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`refund_money` decimal(11,2) DEFAULT '0.00',
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE,
KEY `createtime` (`createtime`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_wxrefund_log`;
CREATE TABLE `ddwx_wxrefund_log` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`mch_id` varchar(100) DEFAULT NULL,
`ordernum` varchar(255) DEFAULT NULL,
`out_refund_no` varchar(255) DEFAULT NULL,
`totalprice` decimal(11,2) DEFAULT NULL,
`refundmoney` decimal(11,2) DEFAULT NULL,
`createtime` varchar(255) DEFAULT NULL,
`status` tinyint(1) DEFAULT '0',
`remark` varchar(255) DEFAULT NULL,
`errmsg` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_iconsvg_history`;
CREATE TABLE `ddwx_iconsvg_history` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`uid` int(11) DEFAULT NULL,
`iconid` int(11) DEFAULT NULL,
`name` varchar(255) DEFAULT NULL,
`show_svg` text NOT NULL,
`pngurl` varchar(255) DEFAULT NULL,
`createtime` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `uid` (`uid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_shop_refund_order`;
CREATE TABLE `ddwx_shop_refund_order` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`mdid` int(11) DEFAULT NULL,
`mid` int(11) DEFAULT NULL,
`refund_ordernum` varchar(255) DEFAULT NULL,
`orderid` int(11) DEFAULT '0',
`ordernum` varchar(255) DEFAULT NULL,
`title` text,
`product_price` float(11,2) DEFAULT '0.00',
`createtime` int(11) DEFAULT NULL,
`status` int(11) DEFAULT '0' COMMENT '0未支付;1已支付;2已发货,3已收货',
`message` varchar(255) DEFAULT NULL,
`remark` varchar(255) DEFAULT NULL,
`payorderid` int(11) DEFAULT NULL,
`paytypeid` int(11) DEFAULT NULL,
`paytype` varchar(50) DEFAULT NULL,
`paynum` varchar(255) DEFAULT NULL,
`paytime` int(11) DEFAULT NULL,
`express_com` varchar(255) DEFAULT NULL COMMENT '快递公司',
`express_no` varchar(255) DEFAULT NULL COMMENT '快递单号',
`refund_type` varchar(20) DEFAULT NULL COMMENT 'refund退款,return退货退款',
`refund_reason` varchar(255) DEFAULT NULL,
`refund_money` decimal(11,2) DEFAULT '0.00',
`refund_status` int(1) DEFAULT '1' COMMENT '0取消 1申请退款审核中 2已同意退款 4同意待退货 3已驳回',
`refund_time` int(11) DEFAULT NULL,
`refund_checkremark` varchar(255) DEFAULT NULL,
`refund_pics` text,
`freight_time` varchar(255) DEFAULT NULL,
`freight_content` text COMMENT '自动发货信息 卡密',
`platform` varchar(255) DEFAULT 'wx',
`delete` tinyint(1) DEFAULT '0',
`aftersale_id` varchar(100) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE,
KEY `status` (`status`) USING BTREE,
KEY `createtime` (`createtime`) USING BTREE,
KEY `refund_type` (`refund_type`) USING BTREE,
KEY `orderid` (`orderid`) USING BTREE,
KEY `refund_ordernum` (`refund_ordernum`) USING BTREE,
KEY `ordernum` (`ordernum`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_shop_refund_order_goods`;
CREATE TABLE `ddwx_shop_refund_order_goods` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`mid` int(11) DEFAULT NULL,
`refund_orderid` int(11) DEFAULT NULL,
`refund_ordernum` varchar(50) DEFAULT NULL,
`refund_num` int(11) unsigned NOT NULL DEFAULT '0',
`refund_money` decimal(11,2) unsigned NOT NULL DEFAULT '0.00',
`orderid` int(11) DEFAULT NULL,
`ordernum` varchar(50) DEFAULT NULL,
`ogid` int(11) NOT NULL,
`proid` int(11) DEFAULT NULL,
`name` varchar(255) DEFAULT NULL,
`pic` varchar(255) DEFAULT NULL,
`procode` varchar(255) DEFAULT NULL,
`ggid` int(11) DEFAULT NULL,
`ggname` varchar(255) DEFAULT NULL,
`cid` int(11) DEFAULT '0',
`cost_price` decimal(11,2) DEFAULT NULL,
`sell_price` decimal(11,2) DEFAULT NULL,
`createtime` int(11) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE,
KEY `refund_orderid` (`refund_orderid`) USING BTREE,
KEY `refund_ordernum` (`refund_ordernum`) USING BTREE,
KEY `orderid` (`orderid`) USING BTREE,
KEY `ordernum` (`ordernum`) USING BTREE,
KEY `proid` (`proid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_invoice`;
CREATE TABLE `ddwx_invoice` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(10) unsigned NOT NULL DEFAULT '0',
`bid` int(10) unsigned DEFAULT '0',
`order_type` varchar(100) NOT NULL DEFAULT 'shop' COMMENT '订单类型',
`orderid` int(11) NOT NULL DEFAULT '0',
`ordernum` varchar(100) DEFAULT NULL,
`type` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '类型 1普票 2专票',
`invoice_name` varchar(200) NOT NULL COMMENT '抬头',
`name_type` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '抬头类型 1个人 2公司',
`tax_no` varchar(100) DEFAULT NULL COMMENT '税号',
`address` varchar(255) DEFAULT NULL,
`tel` varchar(30) DEFAULT NULL,
`bank_name` varchar(200) DEFAULT NULL,
`bank_account` varchar(100) DEFAULT NULL,
`status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '状态 0待审核 1通过 2驳回',
`check_remark` varchar(255) DEFAULT NULL COMMENT '审核备注',
`create_time` int(11) DEFAULT NULL,
`check_time` int(11) DEFAULT NULL,
`mobile` varchar(20) DEFAULT NULL,
`email` varchar(100) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `status` (`status`),
KEY `type` (`type`),
KEY `name_type` (`name_type`),
KEY `invoice_name` (`invoice_name`),
KEY `tax_no` (`tax_no`),
KEY `orderid` (`orderid`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_wxvideo_brand_apply`;
CREATE TABLE `ddwx_wxvideo_brand_apply` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`license` varchar(255) DEFAULT NULL,
`brand_audit_type` varchar(255) DEFAULT NULL,
`trademark_type` varchar(255) DEFAULT NULL,
`brand_management_type` varchar(255) DEFAULT NULL,
`commodity_origin_type` varchar(255) DEFAULT NULL,
`brand_wording` varchar(255) DEFAULT NULL,
`sale_authorization` varchar(255) DEFAULT NULL,
`trademark_registration_certificate` varchar(255) DEFAULT NULL,
`trademark_change_certificate` varchar(11) DEFAULT NULL,
`trademark_registrant` varchar(255) DEFAULT NULL,
`trademark_registrant_nu` varchar(255) DEFAULT NULL,
`trademark_authorization_period` varchar(255) DEFAULT NULL,
`trademark_registration_application` varchar(255) DEFAULT NULL,
`trademark_applicant` varchar(255) DEFAULT NULL,
`trademark_application_time` datetime DEFAULT NULL,
`imported_goods_form` varchar(255) DEFAULT NULL,
`createtime` int(11) DEFAULT NULL,
`audit_id` varchar(255) DEFAULT NULL,
`status` tinyint(1) DEFAULT '0' COMMENT '0审核中 1已通过 2驳回',
`reject_reason` varchar(255) DEFAULT NULL COMMENT '驳回原因',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_wxvideo_category_apply`;
CREATE TABLE IF NOT EXISTS `ddwx_wxvideo_category_apply` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`license` varchar(255) DEFAULT NULL,
`first_cat_id` varchar(255) DEFAULT NULL,
`first_cat_name` varchar(255) DEFAULT NULL,
`second_cat_id` varchar(255) DEFAULT NULL,
`second_cat_name` varchar(255) DEFAULT NULL,
`third_cat_id` varchar(255) DEFAULT NULL,
`third_cat_name` varchar(255) DEFAULT NULL,
`certificate` varchar(255) DEFAULT NULL,
`createtime` int(11) DEFAULT NULL,
`audit_id` varchar(255) DEFAULT NULL,
`status` tinyint(1) DEFAULT '0' COMMENT '0审核中 1已通过 2驳回',
`reject_reason` varchar(255) DEFAULT NULL COMMENT '驳回原因',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_wxvideo_catelist`;
CREATE TABLE `ddwx_wxvideo_catelist` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`third_cat_id` int(11) DEFAULT NULL,
`third_cat_name` varchar(255) DEFAULT NULL,
`qualification` text,
`qualification_type` tinyint(1) DEFAULT '0' COMMENT '类目资质类型,0:不需要,1:必填,2:选填',
`product_qualification` text,
`product_qualification_type` tinyint(1) DEFAULT '0' COMMENT '商品资质类型,0:不需要,1:必填,2:选填',
`second_cat_id` int(11) DEFAULT NULL,
`second_cat_name` varchar(255) DEFAULT NULL,
`first_cat_id` int(11) DEFAULT NULL,
`first_cat_name` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_designer_menu_business`;
CREATE TABLE `ddwx_designer_menu_business` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`indexurl` varchar(255) DEFAULT '/pages/business/index',
`menucount` int(11) DEFAULT NULL,
`menudata` text,
`updatetime` int(11) DEFAULT NULL,
`platform` varchar(11) DEFAULT 'mp',
`tongbu` tinyint(1) DEFAULT '1',
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `platform` (`platform`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_shop_fuwu`;
CREATE TABLE `ddwx_shop_fuwu` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`name` varchar(255) DEFAULT NULL,
`desc` text,
`status` int(1) DEFAULT '1',
`sort` int(11) DEFAULT '1',
`createtime` int(11) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_shortvideo`;
CREATE TABLE `ddwx_shortvideo` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT NULL COMMENT '店铺ID',
`mid` int(11) DEFAULT '0',
`cid` int(11) DEFAULT NULL COMMENT '视频分类ID',
`name` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '短视频名称',
`url` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '视频地址',
`video_duration` decimal(10,2) DEFAULT NULL COMMENT '视频长度',
`coverimg` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '封面图片',
`description` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '视频文案',
`productids` text COMMENT '商品ID',
`linkurl` varchar(255) DEFAULT NULL,
`linkname` varchar(255) DEFAULT NULL,
`comment` tinyint(1) DEFAULT '1' COMMENT '是否开启评论,1是,0否',
`comment_check` tinyint(1) DEFAULT '0',
`view_num` int(11) DEFAULT '0' COMMENT '播放量',
`zan_num` int(11) DEFAULT '0' COMMENT '点赞数量',
`share_num` int(11) DEFAULT '0' COMMENT '分享次数',
`sort` int(11) DEFAULT '0' COMMENT '排序',
`createtime` int(11) DEFAULT NULL COMMENT '添加时间',
`status` tinyint(1) DEFAULT '1' COMMENT '1显示,0隐藏',
`reason` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`aid`) USING BTREE,
KEY `cid` (`aid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='短视频表';
DROP TABLE IF EXISTS `ddwx_shortvideo_category`;
CREATE TABLE `ddwx_shortvideo_category` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT NULL,
`name` varchar(255) DEFAULT NULL COMMENT '分类名称',
`status` tinyint(1) DEFAULT NULL COMMENT '状态,1正常,0禁用',
`createtime` int(11) DEFAULT NULL COMMENT '创建时间',
`sort` int(11) DEFAULT '0' COMMENT '序号',
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`aid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='短视频类型表';
DROP TABLE IF EXISTS `ddwx_shortvideo_comment`;
CREATE TABLE `ddwx_shortvideo_comment` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`vid` int(11) DEFAULT NULL,
`mid` int(11) DEFAULT NULL,
`headimg` varchar(255) DEFAULT NULL,
`nickname` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL,
`content` varchar(255) DEFAULT NULL,
`createtime` int(11) DEFAULT NULL,
`status` tinyint(1) DEFAULT '0',
`zan` int(11) DEFAULT '0',
`score` int(11) DEFAULT '0',
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `sid` (`vid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_shortvideo_comment_reply`;
CREATE TABLE `ddwx_shortvideo_comment_reply` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`vid` int(11) DEFAULT NULL,
`pid` int(11) DEFAULT NULL,
`mid` int(11) DEFAULT NULL,
`headimg` varchar(255) DEFAULT NULL,
`nickname` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL,
`content` varchar(255) DEFAULT NULL,
`createtime` int(11) DEFAULT NULL,
`status` tinyint(1) DEFAULT '0',
`zan` int(11) DEFAULT '0',
`score` int(11) DEFAULT '0',
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `sid` (`vid`) USING BTREE,
KEY `pid` (`pid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_shortvideo_comment_zanlog`;
CREATE TABLE `ddwx_shortvideo_comment_zanlog` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`pid` int(11) DEFAULT NULL,
`mid` int(11) DEFAULT NULL,
`createtime` int(11) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `pid` (`pid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_shortvideo_zanlog`;
CREATE TABLE `ddwx_shortvideo_zanlog` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`vid` int(11) DEFAULT NULL,
`mid` int(11) DEFAULT NULL,
`createtime` int(11) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `stid` (`vid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_shortvideo_sysset`;
CREATE TABLE `ddwx_shortvideo_sysset` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`list_type` tinyint(1) DEFAULT '0',
`can_upload` tinyint(1) DEFAULT '0',
`upload_maxsize` int(11) DEFAULT '0',
`upload_maxduration` int(11) DEFAULT '0',
`upload_check` int(11) DEFAULT '1',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `aid` (`aid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_jobs`;
CREATE TABLE `ddwx_jobs` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增主键',
`queue` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '队列名称',
`payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '有效负载',
`attempts` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '重试次数',
`reserved` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '订阅次数',
`reserve_time` int(10) unsigned DEFAULT '0' COMMENT '订阅时间',
`available_time` int(10) unsigned DEFAULT '0' COMMENT '有效时间',
`create_time` int(10) unsigned DEFAULT '0' COMMENT '创建时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息队列';
DROP TABLE IF EXISTS `ddwx_yuyue_category`;
CREATE TABLE `ddwx_yuyue_category` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`pid` int(11) DEFAULT '0',
`name` varchar(255) DEFAULT NULL,
`pic` varchar(255) DEFAULT NULL,
`status` int(1) DEFAULT '1',
`sort` int(11) DEFAULT '1',
`createtime` int(11) DEFAULT NULL,
`appid` int(11) DEFAULT '1',
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `pid` (`pid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_yuyue_comment`;
CREATE TABLE `ddwx_yuyue_comment` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`mid` int(11) DEFAULT NULL,
`orderid` int(11) DEFAULT NULL,
`proid` int(11) DEFAULT NULL,
`proname` varchar(255) DEFAULT NULL,
`propic` varchar(255) DEFAULT NULL,
`ggid` int(11) DEFAULT NULL,
`ggname` varchar(255) DEFAULT NULL,
`ordernum` varchar(50) DEFAULT NULL,
`openid` varchar(255) DEFAULT NULL,
`nickname` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL,
`headimg` varchar(255) DEFAULT NULL,
`score` int(11) DEFAULT NULL,
`content` varchar(255) DEFAULT NULL,
`content_pic` varchar(255) DEFAULT NULL,
`reply_content` varchar(255) DEFAULT NULL,
`reply_content_pic` varchar(255) DEFAULT NULL,
`append_content` varchar(255) DEFAULT NULL,
`append_content_pic` varchar(255) DEFAULT NULL,
`append_reply_content` varchar(255) DEFAULT NULL,
`append_reply_content_pic` varchar(255) DEFAULT NULL,
`createtime` int(11) DEFAULT NULL,
`appendtime` int(11) DEFAULT NULL,
`status` int(1) DEFAULT '1',
`reply_time` int(11) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE,
KEY `proid` (`proid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_yuyue_guige`;
CREATE TABLE `ddwx_yuyue_guige` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`proid` int(11) DEFAULT NULL,
`name` varchar(255) DEFAULT NULL,
`pic` varchar(255) DEFAULT NULL,
`sell_price` decimal(11,2) DEFAULT '0.00',
`danwei` varchar(11) DEFAULT NULL,
`stock` int(11) unsigned DEFAULT '0',
`procode` varchar(255) DEFAULT NULL,
`sales` int(11) DEFAULT '0',
`ks` varchar(255) DEFAULT NULL,
`lvprice_data` text,
`bid` int(11) DEFAULT '0',
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `proid` (`proid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_yuyue_order`;
CREATE TABLE `ddwx_yuyue_order` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`mid` int(11) DEFAULT NULL,
`mdid` int(11) DEFAULT '0',
`ordernum` varchar(255) DEFAULT NULL,
`title` text,
`totalprice` float(11,2) DEFAULT NULL,
`product_price` float(11,2) DEFAULT '0.00',
`coupon_rid` int(11) DEFAULT NULL COMMENT '优惠券coupon_record的id',
`createtime` int(11) DEFAULT NULL,
`status` int(11) DEFAULT '0' COMMENT '0未支付;1已支付;2已发货;3已收货;4关闭;',
`linkman` varchar(255) DEFAULT NULL,
`tel` varchar(50) DEFAULT NULL,
`area` varchar(255) DEFAULT NULL,
`area2` varchar(255) DEFAULT NULL,
`address` varchar(255) DEFAULT NULL,
`longitude` varchar(100) DEFAULT NULL,
`latitude` varchar(100) DEFAULT NULL,
`message` varchar(255) DEFAULT NULL,
`remark` varchar(255) DEFAULT NULL,
`payorderid` int(11) DEFAULT NULL,
`paytypeid` int(11) DEFAULT NULL,
`paytype` varchar(50) DEFAULT NULL,
`paynum` varchar(255) DEFAULT NULL,
`paytime` int(11) DEFAULT NULL,
`send_time` bigint(20) DEFAULT NULL COMMENT '发货时间',
`collect_time` int(11) DEFAULT NULL COMMENT '收货时间',
`yy_time` varchar(255) DEFAULT NULL,
`hexiao_code` varchar(100) DEFAULT NULL COMMENT '唯一码 核销码',
`hexiao_qr` varchar(255) DEFAULT NULL,
`platform` varchar(255) DEFAULT 'wx',
`iscomment` tinyint(1) DEFAULT '0',
`field1` varchar(255) DEFAULT NULL,
`field2` varchar(255) DEFAULT NULL,
`field3` varchar(255) DEFAULT NULL,
`field4` varchar(255) DEFAULT NULL,
`field5` varchar(255) DEFAULT NULL,
`delete` tinyint(1) DEFAULT '0',
`checkmemid` int(11) DEFAULT NULL COMMENT '指定返佣用户ID',
`fromwxvideo` tinyint(1) DEFAULT '0' COMMENT '是否是视频号过来的订单',
`scene` int(11) DEFAULT '0' COMMENT '小程序场景',
`coupon_money` float(11,2) DEFAULT '0.00',
`propic` varchar(255) DEFAULT NULL,
`proname` varchar(255) DEFAULT NULL,
`paidan_money` float(11,0) DEFAULT '0',
`paidan_type` tinyint(255) DEFAULT '0' COMMENT '派单方式',
`worker_orderid` int(11) DEFAULT '0' COMMENT '派单后的订单id',
`balance_price` decimal(10,2) DEFAULT '0' COMMENT '尾款金额',
`num` int(11) DEFAULT NULL,
`ggname` varchar(255) DEFAULT NULL,
`balance_pay_orderid` int(11) DEFAULT '0' COMMENT '尾款支付订单ID',
`balance_pay_status` tinyint(11) DEFAULT '0' COMMENT '尾款支付状态 1已支付 0 未支付',
`proid` int(11) DEFAULT '0',
`ggid` int(11) DEFAULT '0',
`sm_time` int(11) DEFAULT NULL COMMENT '上门时间',
`worker_id` int(11) DEFAULT '0' COMMENT '服务人员id',
`fwtype` int(11) DEFAULT '1' COMMENT '1 为到店服务,2 为上门服务',
`begintime` int(11) DEFAULT '0',
`endtime` int(11) unsigned zerofill DEFAULT '00000000000',
`refund_status` tinyint(11) DEFAULT '0',
`refund_time` int(11) DEFAULT NULL,
`refund_reason` varchar(255) DEFAULT NULL,
`refund_money` decimal(11,2) DEFAULT NULL,
`refund_checkremark` varchar(255) DEFAULT NULL,
`sysOrderNo` varchar(255) DEFAULT '' COMMENT '定制返回的订单号',
`commission` float(11,0) DEFAULT '0' COMMENT '佣金',
`masterName` varchar(255) DEFAULT NULL COMMENT '师傅姓名',
`errandDistance` float(11,2) DEFAULT '0.00' COMMENT '距离',
`platformIncome` float(11,2) DEFAULT '0.00' COMMENT '平台收入',
`firstCategory` int(11) DEFAULT '0',
`secondCategory` int(11) DEFAULT '0',
`unit` varchar(255) DEFAULT NULL COMMENT '单位',
`leveldk_money` float(11,2) DEFAULT '0.00' DEFAULT NULL COMMENT '会员抵扣金额',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `code` (`hexiao_code`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE,
KEY `status` (`status`) USING BTREE,
KEY `createtime` (`createtime`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_yuyue_product`;
CREATE TABLE `ddwx_yuyue_product` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`name` varchar(255) DEFAULT NULL,
`procode` varchar(255) DEFAULT NULL,
`fuwupoint` varchar(255) DEFAULT NULL,
`sellpoint` varchar(255) DEFAULT NULL,
`fwid` varchar(255) DEFAULT NULL COMMENT '商品服务ID多个用逗号分割',
`pic` varchar(255) DEFAULT '',
`pics` varchar(5000) DEFAULT NULL,
`sales` int(11) DEFAULT '0',
`detail` longtext,
`sell_price` float(11,2) DEFAULT '0.00',
`sort` int(11) DEFAULT '0',
`status` int(1) DEFAULT '1',
`stock` int(11) unsigned DEFAULT '100',
`createtime` int(11) DEFAULT NULL,
`guigedata` text,
`comment_score` decimal(2,1) DEFAULT '5.0',
`comment_num` int(11) DEFAULT '0',
`comment_haopercent` int(11) DEFAULT '100',
`perlimit` int(11) DEFAULT '0',
`detail_text` text,
`detail_pics` text,
`gettj` varchar(255) DEFAULT '-1',
`gettjurl` varchar(255) DEFAULT NULL,
`gettjtip` varchar(255) DEFAULT NULL,
`starttime` int(11) DEFAULT NULL,
`ischecked` tinyint(1) DEFAULT '1',
`check_reason` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL,
`balance` decimal(11,2) DEFAULT '0.00',
`danwei` varchar(10) DEFAULT NULL,
`cid` varchar(11) DEFAULT '0' COMMENT '分类id',
`zaohour` int(255) DEFAULT '8' COMMENT '预约早几点',
`wanhour` int(255) DEFAULT '21' COMMENT '预约晚几点',
`fwtype` varchar(11) DEFAULT '1' COMMENT '服务方式 1 到店服务',
`fwpeople` int(11) DEFAULT '0' COMMENT '0 为后台分配,1为用户选择',
`yynum` int(11) DEFAULT '1' COMMENT '同一时间段预约人数限制',
`fwpeoid` varchar(255) DEFAULT NULL,
`fwlong` int(11) DEFAULT '30' COMMENT '服务时长',
`timejg` int(11) DEFAULT '30' COMMENT '时间间隔 ',
`jiesuantype` int(11) DEFAULT '0' COMMENT '结算方式 1,按单 , 2按比例',
`tcmoney` float(11,2) DEFAULT '0.00',
`tc_bfb` float(11,2) DEFAULT '0.00',
`pdprehour` int(11) DEFAULT '1',
`formdata` text,
`yyzhouqi` varchar(255) DEFAULT NULL COMMENT '预约周期,周一-周日',
`datetype` int(11) DEFAULT '1' COMMENT '1 时间段,2为时间点',
`timepoint` varchar(255) DEFAULT NULL COMMENT '自定义设置时间点',
`start_time` varchar(100) DEFAULT NULL COMMENT '上架开始时间',
`end_time` varchar(100) DEFAULT NULL COMMENT '结束时间',
`yybegintime` varchar(100) DEFAULT NULL COMMENT '可预约时间设置开始时间',
`yyendtime` varchar(100) DEFAULT NULL COMMENT '可预约时间设置结束时间',
`rqtype` int(11) DEFAULT '1' COMMENT '1 周期,2自己选择时间',
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `status` (`status`) USING BTREE,
KEY `stock` (`stock`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='预约商品表';
DROP TABLE IF EXISTS `ddwx_yuyue_set`;
CREATE TABLE `ddwx_yuyue_set` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`status` tinyint(1) DEFAULT '0',
`paidantype` tinyint(1) DEFAULT '0',
`withdraw_weixin` tinyint(1) DEFAULT '1',
`withdraw_aliaccount` tinyint(1) DEFAULT '1',
`withdraw_bankcard` tinyint(1) DEFAULT '1',
`withdrawmin` varchar(255) DEFAULT '10',
`withdrawfee` varchar(255) DEFAULT '0',
`businessst` tinyint(1) DEFAULT '0',
`businessfee` decimal(11,2) DEFAULT '0.00',
`make_status` tinyint(1) DEFAULT '0',
`make_domain` varchar(100) DEFAULT NULL,
`make_appid` varchar(100) DEFAULT NULL,
`make_token` varchar(255) DEFAULT NULL,
`make_shopkoufei` tinyint(1) DEFAULT '0',
`make_access_token` varchar(255) DEFAULT NULL,
`make_expire_time` int(11) DEFAULT NULL,
`diyname` varchar(255) DEFAULT NULL COMMENT '自定义人员名称',
`autoshdays` int(11) DEFAULT '7',
`autoclose` int(255) DEFAULT '600',
`isapi` int(1) DEFAULT '0' COMMENT '是否接入跑腿,红蚂蚁定制',
`minminute` int(11) DEFAULT '3',
`pic` varchar(255) DEFAULT NULL,
`desc` varchar(255) DEFAULT NULL,
`datetype` tinyint(3) DEFAULT '0' COMMENT '开启接入api后选择',
`zaohour` int(11) DEFAULT '8' COMMENT '预约早几点',
`wanhour` int(11) DEFAULT '21' COMMENT '预约晚几点',
`timejg` int(11) DEFAULT '30' COMMENT '时间间隔 默认30分钟',
`timepoint` varchar(255) DEFAULT NULL,
`rqtype` int(11) DEFAULT '1' COMMENT '预约周期',
`yybegintime` varchar(255) DEFAULT NULL,
`yyendtime` varchar(255) DEFAULT NULL,
`yyzhouqi` varchar(255) DEFAULT NULL COMMENT '周几-周几',
`pdprehour` int(11) DEFAULT '1',
`detailpic` varchar(255) DEFAULT NULL,
`discount` int(11) DEFAULT '0',
`iscoupon` int(11) DEFAULT '0',
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_yuyue_worker`;
CREATE TABLE `ddwx_yuyue_worker` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`mid` int(11) DEFAULT NULL,
`un` varchar(255) DEFAULT NULL,
`pwd` varchar(255) DEFAULT NULL,
`realname` varchar(255) DEFAULT NULL,
`tel` varchar(255) DEFAULT NULL,
`status` tinyint(11) DEFAULT '1',
`createtime` int(11) DEFAULT NULL,
`sort` int(11) DEFAULT '0',
`comment_score` decimal(2,1) DEFAULT '5.0',
`comment_num` int(11) DEFAULT '0',
`comment_haopercent` int(11) DEFAULT '100' COMMENT '好评率',
`money` decimal(11,2) DEFAULT '0.00',
`totalmoney` decimal(11,2) DEFAULT '0.00',
`totalnum` int(11) DEFAULT '0',
`weixin` varchar(255) DEFAULT NULL,
`aliaccount` varchar(255) DEFAULT NULL,
`bankname` varchar(255) DEFAULT NULL,
`bankcarduser` varchar(255) DEFAULT NULL,
`bankcardnum` varchar(100) DEFAULT NULL,
`longitude` varchar(100) DEFAULT NULL,
`latitude` varchar(100) DEFAULT NULL,
`headimg` varchar(255) DEFAULT 'https://v2d.diandashop.com/static/img/touxiang.png',
`jineng` varchar(255) DEFAULT NULL,
`cid` int(11) DEFAULT '0',
`desc` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_yuyue_worker_category`;
CREATE TABLE `ddwx_yuyue_worker_category` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`pid` int(11) DEFAULT '0',
`name` varchar(255) DEFAULT NULL,
`pic` varchar(255) DEFAULT NULL,
`status` int(1) DEFAULT '1',
`sort` int(11) DEFAULT '1',
`createtime` int(11) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `pid` (`pid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_yuyue_worker_comment`;
CREATE TABLE `ddwx_yuyue_worker_comment` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT NULL,
`mid` int(11) DEFAULT NULL,
`worker_id` int(11) DEFAULT NULL,
`orderid` int(11) DEFAULT NULL,
`ordernum` varchar(50) DEFAULT NULL,
`openid` varchar(255) DEFAULT NULL,
`nickname` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL,
`headimg` varchar(255) DEFAULT NULL,
`score` int(11) DEFAULT NULL,
`content` varchar(255) DEFAULT NULL,
`content_pic` varchar(255) DEFAULT NULL,
`reply_content` varchar(255) DEFAULT NULL,
`reply_content_pic` varchar(255) DEFAULT NULL,
`status` int(1) DEFAULT '1',
`createtime` int(11) DEFAULT '0',
`reply_time` int(11) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `peisong_user_id` (`worker_id`) USING BTREE,
KEY `order_id` (`orderid`) USING BTREE,
KEY `order_no` (`ordernum`) USING BTREE,
KEY `status` (`status`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COMMENT='配送单评价';
DROP TABLE IF EXISTS `ddwx_yuyue_worker_moneylog`;
CREATE TABLE `ddwx_yuyue_worker_moneylog` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`uid` int(11) DEFAULT NULL,
`money` decimal(11,2) DEFAULT '0.00',
`after` decimal(11,2) DEFAULT '0.00',
`createtime` int(11) DEFAULT NULL,
`remark` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `uid` (`uid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_yuyue_worker_order`;
CREATE TABLE `ddwx_yuyue_worker_order` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) unsigned DEFAULT '0',
`mid` int(11) DEFAULT NULL,
`worker_id` int(11) DEFAULT NULL COMMENT '配送员id',
`orderid` int(11) DEFAULT NULL,
`ordernum` varchar(100) DEFAULT NULL,
`createtime` int(11) DEFAULT NULL,
`starttime` int(11) DEFAULT NULL,
`daodiantime` int(11) DEFAULT NULL,
`quhuotime` int(11) DEFAULT NULL,
`endtime` int(11) DEFAULT NULL,
`status` tinyint(1) DEFAULT '0' COMMENT '0待接单 1已接单正在赶往商家 2已到店 3已取货配送中 4已送达',
`ticheng` decimal(11,2) DEFAULT '0.00',
`psfee` decimal(10,2) DEFAULT '0.00' COMMENT '配送费 需要扣除商家的钱',
`iscomment` tinyint(1) unsigned DEFAULT '0' COMMENT '是否评价',
`yujitime` int(11) DEFAULT NULL COMMENT '预计送达时间',
`juli` int(11) DEFAULT NULL COMMENT '商家到用户的距离 米',
`longitude` varchar(100) DEFAULT NULL COMMENT '商家坐标',
`latitude` varchar(100) DEFAULT NULL,
`longitude2` varchar(100) DEFAULT NULL COMMENT '用户坐标',
`latitude2` varchar(100) DEFAULT NULL,
`orderinfo` text COMMENT '订单信息',
`prolist` text COMMENT '商品信息',
`binfo` text COMMENT '商家信息',
`make_ordernum` varchar(100) DEFAULT NULL COMMENT '码科跑腿订单号',
`make_rider_name` varchar(255) DEFAULT NULL COMMENT '码科配送员姓名',
`make_rider_mobile` varchar(255) DEFAULT NULL COMMENT '码科配送员手机号',
`comment_num` int(255) DEFAULT '0',
`comment_score` varchar(255) DEFAULT NULL,
`comment_haopercent` varchar(255) DEFAULT NULL,
`fwtype` int(11) DEFAULT '0' COMMENT '1 为到店服务,2 为上门服务',
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `psid` (`worker_id`) USING BTREE,
KEY `orderid` (`orderid`) USING BTREE,
KEY `ordernum` (`ordernum`) USING BTREE,
KEY `status` (`status`) USING BTREE,
KEY `iscomment` (`iscomment`) USING BTREE,
KEY `bid` (`bid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_yuyue_worker_withdrawlog`;
CREATE TABLE `ddwx_yuyue_worker_withdrawlog` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`uid` int(11) DEFAULT NULL,
`money` decimal(11,2) DEFAULT NULL,
`txmoney` decimal(11,2) DEFAULT NULL,
`weixin` varchar(255) DEFAULT NULL,
`aliaccount` varchar(255) DEFAULT NULL,
`ordernum` varchar(255) DEFAULT NULL,
`paytype` varchar(255) DEFAULT NULL,
`status` tinyint(1) DEFAULT '0',
`createtime` int(11) DEFAULT NULL,
`bankname` varchar(255) DEFAULT NULL,
`bankcarduser` varchar(255) DEFAULT NULL,
`bankcardnum` varchar(255) DEFAULT NULL,
`paytime` int(11) DEFAULT NULL,
`paynum` varchar(255) DEFAULT NULL,
`platform` varchar(255) DEFAULT 'wx',
`reason` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `uid` (`uid`) USING BTREE,
KEY `createtime` (`createtime`) USING BTREE,
KEY `status` (`status`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_register_giveset`;
CREATE TABLE `ddwx_register_giveset` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`money` float(11,2) DEFAULT NULL,
`score` int(11) DEFAULT '0',
`wanshan_score` int(11) DEFAULT '0',
`give_coupon` tinyint(1) DEFAULT '0',
`coupon_ids` varchar(255) DEFAULT NULL,
`starttime` datetime DEFAULT NULL,
`endtime` datetime DEFAULT NULL,
`status` tinyint(1) DEFAULT '0',
`createtime` int(11) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `aid` (`aid`) USING BTREE,
KEY `status` (`status`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_kecheng_category`;
CREATE TABLE `ddwx_kecheng_category` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT NULL,
`pid` int(11) DEFAULT '0',
`name` varchar(255) DEFAULT NULL,
`pic` varchar(255) DEFAULT NULL,
`status` int(1) DEFAULT '1',
`sort` int(11) DEFAULT '1',
`createtime` int(11) DEFAULT NULL,
`pcid` varchar(11) DEFAULT '0' COMMENT '商户的课程分类 所属平台的分类id',
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `pid` (`pid`) USING BTREE,
KEY `bid` (`bid`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='课程分类';
DROP TABLE IF EXISTS `ddwx_kecheng_chapter`;
CREATE TABLE `ddwx_kecheng_chapter` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`name` varchar(255) DEFAULT NULL,
`pic` varchar(255) DEFAULT '',
`detail` longtext,
`voice_url` varchar(255) DEFAULT '0.00',
`sort` int(11) DEFAULT '0',
`status` int(1) DEFAULT '1',
`createtime` int(11) DEFAULT NULL,
`video_url` text,
`kcid` int(11) DEFAULT '0' COMMENT '课程id',
`ismianfei` int(11) DEFAULT '2',
`video_duration` varchar(255) DEFAULT NULL,
`kctype` int(255) DEFAULT NULL COMMENT '1图文 2 音频 3 视频',
`readnum` int(11) DEFAULT '0',
`isjinzhi` tinyint(255) DEFAULT '0' COMMENT '是否禁止快进 1为禁止 ',
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `status` (`status`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='课程章节';
DROP TABLE IF EXISTS `ddwx_kecheng_list`;
CREATE TABLE `ddwx_kecheng_list` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`name` varchar(255) DEFAULT NULL,
`pic` varchar(255) DEFAULT '',
`pics` varchar(5000) DEFAULT NULL,
`detail` longtext,
`price` float(11,2) DEFAULT '0.00',
`sort` int(11) DEFAULT '0',
`status` int(1) DEFAULT '1',
`createtime` int(11) DEFAULT NULL,
`detail_text` text,
`detail_pics` text,
`gettj` varchar(255) DEFAULT '-1',
`gettjurl` varchar(255) DEFAULT NULL,
`gettjtip` varchar(255) DEFAULT NULL,
`cid` varchar(11) DEFAULT '0' COMMENT '分类id',
`readnum` int(11) DEFAULT '0',
`sxdate` int(11) DEFAULT '0' COMMENT '答题所需时间',
`isdt` tinyint(2) DEFAULT '1' COMMENT '是否开启答题',
`dtnum` int(11) DEFAULT '5' COMMENT '每次随机出题数量',
`hgscore` int(11) DEFAULT '60' COMMENT '多少分合格',
`join_num` int(11) DEFAULT '0' COMMENT '已有多少人加入学习',
`commissiondata1` text,
`commissiondata2` text,
`commissiondata3` text,
`commissionset` tinyint(1) DEFAULT '0',
`pcid` varchar(11) DEFAULT '0' COMMENT '商户的课程 所属平台的分类id',
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `status` (`status`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='课程列表';
DROP TABLE IF EXISTS `ddwx_kecheng_order`;
CREATE TABLE `ddwx_kecheng_order` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`mid` int(11) DEFAULT NULL,
`ordernum` varchar(255) DEFAULT NULL,
`title` text,
`totalprice` float(11,2) DEFAULT NULL,
`price` float(11,2) DEFAULT '0.00',
`createtime` int(11) DEFAULT NULL,
`status` int(11) DEFAULT '0' COMMENT '0未支付;1已支付;2已发货;3已收货;4关闭;',
`payorderid` int(11) DEFAULT NULL,
`paytypeid` int(11) DEFAULT NULL,
`paytype` varchar(50) DEFAULT NULL,
`paynum` varchar(255) DEFAULT NULL,
`paytime` int(11) DEFAULT NULL,
`platform` varchar(255) DEFAULT 'wx',
`iscomment` tinyint(1) DEFAULT '0',
`kcid` int(11) DEFAULT '0',
`pic` varchar(255) DEFAULT NULL,
`study_status` float(11,2) DEFAULT '0.00' COMMENT '0未学习 1 已学习',
`parent1` int(11) DEFAULT NULL,
`parent2` int(11) DEFAULT NULL,
`parent3` int(11) DEFAULT NULL,
`parent1commission` decimal(11,2) DEFAULT '0.00',
`parent2commission` decimal(11,2) DEFAULT '0.00',
`parent3commission` decimal(11,2) DEFAULT '0.00',
`parent1score` int(11) DEFAULT '0',
`parent2score` int(11) DEFAULT '0',
`parent3score` int(11) DEFAULT '0',
`iscommission` tinyint(1) DEFAULT '0' COMMENT '佣金是否已发放',
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE,
KEY `status` (`status`) USING BTREE,
KEY `createtime` (`createtime`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='课程订单';
DROP TABLE IF EXISTS `ddwx_kecheng_record`;
CREATE TABLE `ddwx_kecheng_record` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`mid` int(11) DEFAULT NULL,
`status` int(1) DEFAULT '0' COMMENT '0 未答完 1已答完',
`time` int(11) DEFAULT NULL,
`kcid` int(11) DEFAULT NULL COMMENT '所属课程',
`timu` varchar(255) DEFAULT NULL,
`ishg` tinyint(2) DEFAULT '0' COMMENT '是否合格',
`endtime` int(11) DEFAULT NULL COMMENT '交卷时间',
`score` int(11) DEFAULT '0' COMMENT '分数',
`isend` int(255) DEFAULT '0' COMMENT '1 为时间 结束',
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `status` (`status`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='课程考试表';
DROP TABLE IF EXISTS `ddwx_kecheng_recordlog`;
CREATE TABLE `ddwx_kecheng_recordlog` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`mid` int(11) DEFAULT NULL,
`status` int(1) DEFAULT '0' COMMENT '0 未答 1答对了 2 答错了',
`time` int(11) DEFAULT NULL,
`kcid` int(11) DEFAULT NULL COMMENT '所属课程',
`tmid` int(11) DEFAULT '0' COMMENT '题目id',
`answer` varchar(255) DEFAULT NULL,
`score` int(11) DEFAULT '0',
`recordid` int(11) DEFAULT '0' COMMENT 'record id',
`sort` int(11) DEFAULT '0' COMMENT '题目序号',
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `status` (`status`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='课程答题详情表';
DROP TABLE IF EXISTS `ddwx_kecheng_studylog`;
CREATE TABLE `ddwx_kecheng_studylog` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`mid` int(11) DEFAULT NULL,
`mlid` int(11) DEFAULT NULL,
`title` text,
`createtime` int(11) DEFAULT NULL,
`status` int(11) DEFAULT '0' COMMENT '0未支付;1已支付;2已发货;3已收货;4关闭;',
`kcid` int(11) DEFAULT '0',
`pic` varchar(255) DEFAULT NULL,
`currentTime` float(11,2) DEFAULT '0.00' COMMENT '当前播放时间',
`platform` varchar(255) DEFAULT NULL,
`jindu` varchar(255) DEFAULT NULL COMMENT '学习进度',
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE,
KEY `status` (`status`) USING BTREE,
KEY `createtime` (`createtime`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='学习log';
DROP TABLE IF EXISTS `ddwx_kecheng_tiku`;
CREATE TABLE `ddwx_kecheng_tiku` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`title` varchar(255) DEFAULT NULL,
`sort` int(11) DEFAULT '0',
`status` int(1) DEFAULT '1',
`createtime` int(11) DEFAULT NULL,
`score` float(11,2) DEFAULT '0.00' COMMENT '题目分值',
`type` int(255) DEFAULT NULL COMMENT '1选择题 2填空题',
`right_option` varchar(255) DEFAULT NULL COMMENT '答案',
`option_group` text,
`kcid` int(11) DEFAULT NULL COMMENT '所属课程',
`jiexi` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `status` (`status`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='课程题库';
DROP TABLE IF EXISTS `ddwx_shop_category2`;
CREATE TABLE `ddwx_shop_category2` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT NULL,
`pid` int(11) DEFAULT '0',
`name` varchar(255) DEFAULT NULL,
`pic` varchar(255) DEFAULT NULL,
`status` int(1) DEFAULT '1',
`sort` int(11) DEFAULT '1',
`createtime` int(11) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`aid`) USING BTREE,
KEY `pid` (`pid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_tuangou_category`;
CREATE TABLE `ddwx_tuangou_category` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`pid` int(11) DEFAULT '0',
`name` varchar(255) DEFAULT NULL,
`pic` varchar(255) DEFAULT NULL,
`status` int(1) DEFAULT '1',
`sort` int(11) DEFAULT '1',
`createtime` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_tuangou_codelist`;
CREATE TABLE `ddwx_tuangou_codelist` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`proid` int(11) DEFAULT NULL,
`content` text,
`ordernum` varchar(100) DEFAULT NULL,
`orderid` int(11) DEFAULT NULL,
`headimg` varchar(255) DEFAULT NULL,
`nickname` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL,
`createtime` int(11) DEFAULT NULL,
`buytime` int(11) DEFAULT NULL,
`status` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `proid` (`proid`) USING BTREE,
KEY `status` (`status`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_tuangou_comment`;
CREATE TABLE `ddwx_tuangou_comment` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`mid` int(11) DEFAULT NULL,
`orderid` int(11) DEFAULT NULL,
`ogid` int(11) DEFAULT NULL,
`proid` int(11) DEFAULT NULL,
`proname` varchar(255) DEFAULT NULL,
`propic` varchar(255) DEFAULT NULL,
`ggid` int(11) DEFAULT NULL,
`ggname` varchar(255) DEFAULT NULL,
`ordernum` varchar(50) DEFAULT NULL,
`openid` varchar(255) DEFAULT NULL,
`nickname` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL,
`headimg` varchar(255) DEFAULT NULL,
`score` int(11) DEFAULT NULL,
`content` varchar(255) DEFAULT NULL,
`content_pic` varchar(255) DEFAULT NULL,
`reply_content` varchar(255) DEFAULT NULL,
`reply_content_pic` varchar(255) DEFAULT NULL,
`append_content` varchar(255) DEFAULT NULL,
`append_content_pic` varchar(255) DEFAULT NULL,
`append_reply_content` varchar(255) DEFAULT NULL,
`append_reply_content_pic` varchar(255) DEFAULT NULL,
`createtime` int(11) DEFAULT NULL,
`appendtime` int(11) DEFAULT NULL,
`status` int(1) DEFAULT '1',
`reply_time` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE,
KEY `orderid` (`orderid`) USING BTREE,
KEY `ogid` (`ogid`) USING BTREE,
KEY `proid` (`proid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_tuangou_order`;
CREATE TABLE `ddwx_tuangou_order` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`mid` int(11) DEFAULT NULL,
`ordernum` varchar(255) DEFAULT NULL,
`buytype` tinyint(1) DEFAULT '1' COMMENT '1单买 2发团 3参团',
`teamid` int(11) DEFAULT NULL,
`title` text,
`proid` int(11) DEFAULT NULL,
`proname` varchar(255) DEFAULT NULL,
`propic` varchar(255) DEFAULT NULL,
`ggid` int(11) DEFAULT NULL,
`ggname` varchar(255) DEFAULT NULL,
`num` int(11) DEFAULT '1',
`cost_price` decimal(10,2) DEFAULT NULL,
`sell_price` decimal(10,2) DEFAULT NULL,
`totalprice` float(11,2) DEFAULT NULL,
`product_price` float(11,2) DEFAULT '0.00',
`freight_price` float(11,2) DEFAULT NULL,
`scoredk_money` float(11,2) DEFAULT NULL,
`leveldk_money` float(11,2) DEFAULT '0.00' COMMENT '会员等级优惠金额',
`leader_money` decimal(11,2) DEFAULT '0.00',
`coupon_money` decimal(11,2) DEFAULT '0.00' COMMENT '优惠券金额',
`coupon_rid` int(11) DEFAULT NULL COMMENT '优惠券coupon_record的id',
`scoredkscore` int(11) DEFAULT '0',
`givescore` int(11) DEFAULT '0',
`createtime` int(11) DEFAULT NULL,
`status` int(11) DEFAULT '0' COMMENT '0未支付;1已支付;2已发货,3已收货',
`linkman` varchar(255) DEFAULT NULL,
`tel` varchar(50) DEFAULT NULL,
`area` varchar(255) DEFAULT NULL,
`area2` varchar(255) DEFAULT NULL,
`address` varchar(255) DEFAULT NULL,
`longitude` varchar(100) DEFAULT NULL,
`latitude` varchar(100) DEFAULT NULL,
`message` varchar(255) DEFAULT NULL,
`remark` varchar(255) DEFAULT NULL,
`express_com` varchar(255) DEFAULT NULL,
`express_no` varchar(255) DEFAULT NULL,
`refund_reason` varchar(255) DEFAULT NULL,
`refund_money` decimal(11,2) DEFAULT '0.00',
`refund_status` int(1) DEFAULT '0' COMMENT '1申请退款审核中 2已同意退款 3已驳回',
`refund_time` int(11) DEFAULT NULL,
`refund_checkremark` varchar(255) DEFAULT NULL,
`payorderid` int(11) DEFAULT NULL,
`paytypeid` int(11) DEFAULT NULL,
`paytype` varchar(50) DEFAULT NULL,
`paynum` varchar(255) DEFAULT NULL,
`paytime` int(11) DEFAULT NULL,
`delete` int(1) DEFAULT '0',
`freight_id` int(11) DEFAULT NULL,
`freight_text` varchar(255) DEFAULT NULL,
`freight_type` tinyint(1) DEFAULT '0',
`mdid` int(11) DEFAULT NULL,
`freight_time` varchar(255) DEFAULT NULL,
`freight_content` text,
`send_time` bigint(20) DEFAULT NULL COMMENT '发货时间',
`collect_time` int(11) DEFAULT NULL COMMENT '收货时间',
`hexiao_code` varchar(100) DEFAULT NULL,
`hexiao_qr` varchar(255) DEFAULT NULL,
`platform` varchar(255) DEFAULT 'wx',
`iscomment` tinyint(1) DEFAULT '0',
`tuimoney` decimal(11,2) DEFAULT '0.00',
`zongbu_fahuo` tinyint(1) DEFAULT '0',
`parent1` int(11) DEFAULT NULL,
`parent2` int(11) DEFAULT NULL,
`parent3` int(11) DEFAULT NULL,
`parent1commission` decimal(11,2) DEFAULT '0.00',
`parent2commission` decimal(11,2) DEFAULT '0.00',
`parent3commission` decimal(11,2) DEFAULT '0.00',
`parent1score` int(11) DEFAULT '0',
`parent2score` int(11) DEFAULT '0',
`parent3score` int(11) DEFAULT '0',
`iscommission` tinyint(1) DEFAULT '0' COMMENT '佣金是否已发放',
PRIMARY KEY (`id`),
UNIQUE KEY `hexiao_code` (`hexiao_code`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE,
KEY `status` (`status`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_tuangou_product`;
CREATE TABLE `ddwx_tuangou_product` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`cid` int(11) DEFAULT '0',
`name` varchar(255) DEFAULT NULL,
`procode` varchar(255) DEFAULT NULL,
`fuwupoint` varchar(255) DEFAULT NULL,
`sellpoint` varchar(255) DEFAULT NULL,
`pic` varchar(255) DEFAULT '',
`pics` varchar(5000) DEFAULT NULL,
`sales` int(11) unsigned DEFAULT '0',
`detail` longtext,
`market_price` float(11,2) DEFAULT NULL,
`sell_price` float(11,2) DEFAULT '0.00',
`cost_price` decimal(11,2) DEFAULT '0.00',
`weight` int(11) DEFAULT NULL,
`sort` int(11) DEFAULT '0',
`status` int(1) DEFAULT '1',
`stock` int(11) unsigned DEFAULT '100',
`createtime` int(11) DEFAULT NULL,
`commissionset` tinyint(1) DEFAULT '0',
`commission1` decimal(11,2) DEFAULT NULL,
`commission2` decimal(11,2) DEFAULT NULL,
`commission3` decimal(11,2) DEFAULT NULL,
`guigedata` text,
`comment_score` decimal(2,1) DEFAULT '5.0',
`comment_num` int(11) DEFAULT '0',
`comment_haopercent` int(11) DEFAULT '100',
`perlimit` int(11) DEFAULT '0',
`freighttype` tinyint(1) DEFAULT '1',
`freightdata` varchar(255) DEFAULT NULL,
`freightcontent` text,
`ischecked` tinyint(1) DEFAULT '1',
`check_reason` varchar(255) DEFAULT NULL,
`pricedata` text,
`starttime` int(11) DEFAULT NULL,
`endtime` int(11) DEFAULT NULL,
`showtj` varchar(255) DEFAULT NULL,
`gettj` varchar(255) DEFAULT NULL,
`commissiondata1` text,
`commissiondata2` text,
`commissiondata3` text,
`scoredkmaxset` tinyint(1) DEFAULT '0',
`scoredkmaxval` decimal(11,2) DEFAULT '0.00',
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `cid` (`cid`) USING BTREE,
KEY `status` (`status`) USING BTREE,
KEY `ischecked` (`ischecked`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_tuangou_sysset`;
CREATE TABLE `ddwx_tuangou_sysset` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`pics` text,
`autoshdays` int(11) DEFAULT '7',
`comment` tinyint(1) DEFAULT '1',
`comment_check` tinyint(1) DEFAULT '1',
`showjd` tinyint(1) DEFAULT '1',
PRIMARY KEY (`id`),
UNIQUE KEY `aid` (`aid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_lucky_collage_category`;
CREATE TABLE `ddwx_lucky_collage_category` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`pid` int(11) DEFAULT '0',
`name` varchar(255) DEFAULT NULL,
`pic` varchar(255) DEFAULT NULL,
`status` int(1) DEFAULT '1',
`sort` int(11) DEFAULT '1',
`createtime` int(11) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_lucky_collage_comment`;
CREATE TABLE `ddwx_lucky_collage_comment` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`mid` int(11) DEFAULT NULL,
`orderid` int(11) DEFAULT NULL,
`ogid` int(11) DEFAULT NULL,
`proid` int(11) DEFAULT NULL,
`proname` varchar(255) DEFAULT NULL,
`propic` varchar(255) DEFAULT NULL,
`ggid` int(11) DEFAULT NULL,
`ggname` varchar(255) DEFAULT NULL,
`ordernum` varchar(50) DEFAULT NULL,
`openid` varchar(255) DEFAULT NULL,
`nickname` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL,
`headimg` varchar(255) DEFAULT NULL,
`score` int(11) DEFAULT NULL,
`content` varchar(255) DEFAULT NULL,
`content_pic` varchar(255) DEFAULT NULL,
`reply_content` varchar(255) DEFAULT NULL,
`reply_content_pic` varchar(255) DEFAULT NULL,
`append_content` varchar(255) DEFAULT NULL,
`append_content_pic` varchar(255) DEFAULT NULL,
`append_reply_content` varchar(255) DEFAULT NULL,
`append_reply_content_pic` varchar(255) DEFAULT NULL,
`createtime` int(11) DEFAULT NULL,
`appendtime` int(11) DEFAULT NULL,
`status` int(1) DEFAULT '1',
`reply_time` int(11) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE,
KEY `orderid` (`orderid`) USING BTREE,
KEY `ogid` (`ogid`) USING BTREE,
KEY `proid` (`proid`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_lucky_collage_guige`;
CREATE TABLE `ddwx_lucky_collage_guige` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`proid` int(11) DEFAULT NULL,
`name` varchar(255) DEFAULT NULL,
`pic` varchar(255) DEFAULT NULL,
`market_price` decimal(11,2) DEFAULT '0.00',
`cost_price` decimal(11,2) DEFAULT '0.00',
`sell_price` decimal(11,2) DEFAULT '0.00',
`weight` int(11) DEFAULT NULL,
`stock` int(11) unsigned DEFAULT '0',
`procode` varchar(255) DEFAULT NULL,
`sales` int(11) unsigned DEFAULT '0',
`ks` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `proid` (`proid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_lucky_collage_jiqilist`;
CREATE TABLE `ddwx_lucky_collage_jiqilist` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`nickname` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL,
`headimg` varchar(255) DEFAULT NULL,
`status` int(1) DEFAULT '1',
`sort` int(11) DEFAULT '1',
`createtime` int(11) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_lucky_collage_order`;
CREATE TABLE `ddwx_lucky_collage_order` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`mid` int(11) DEFAULT NULL,
`ordernum` varchar(255) DEFAULT NULL,
`buytype` tinyint(1) DEFAULT '1' COMMENT '1单买 2发团 3参团',
`teamid` int(11) DEFAULT NULL,
`title` text,
`proid` int(11) DEFAULT NULL,
`proname` varchar(255) DEFAULT NULL,
`propic` varchar(255) DEFAULT NULL,
`ggid` int(11) DEFAULT NULL,
`ggname` varchar(255) DEFAULT NULL,
`num` int(11) DEFAULT '1',
`cost_price` decimal(10,2) DEFAULT NULL,
`sell_price` decimal(10,2) DEFAULT NULL,
`totalprice` float(11,2) DEFAULT NULL,
`product_price` float(11,2) DEFAULT '0.00',
`freight_price` float(11,2) DEFAULT NULL,
`scoredk_money` float(11,2) DEFAULT NULL,
`leveldk_money` float(11,2) DEFAULT '0.00' COMMENT '会员等级优惠金额',
`leader_money` decimal(11,2) DEFAULT '0.00',
`coupon_money` decimal(11,2) DEFAULT '0.00' COMMENT '优惠券金额',
`coupon_rid` int(11) DEFAULT NULL COMMENT '优惠券coupon_record的id',
`scoredkscore` int(11) DEFAULT '0',
`givescore` int(11) DEFAULT '0',
`createtime` int(11) DEFAULT NULL,
`status` int(11) DEFAULT '0' COMMENT '0未支付;1已支付;2已发货,3已收货',
`linkman` varchar(255) DEFAULT NULL,
`tel` varchar(50) DEFAULT NULL,
`area` varchar(255) DEFAULT NULL,
`area2` varchar(255) DEFAULT NULL,
`address` varchar(255) DEFAULT NULL,
`longitude` varchar(100) DEFAULT NULL,
`latitude` varchar(100) DEFAULT NULL,
`message` varchar(255) DEFAULT NULL,
`remark` varchar(255) DEFAULT NULL,
`express_com` varchar(255) DEFAULT NULL,
`express_no` varchar(255) DEFAULT NULL,
`refund_reason` varchar(255) DEFAULT NULL,
`refund_money` decimal(11,2) DEFAULT '0.00',
`refund_status` int(1) DEFAULT '0' COMMENT '1申请退款审核中 2已同意退款 3已驳回',
`refund_time` int(11) DEFAULT NULL,
`refund_checkremark` varchar(255) DEFAULT NULL,
`payorderid` int(11) DEFAULT NULL,
`paytypeid` int(11) DEFAULT NULL,
`paytype` varchar(50) DEFAULT NULL,
`paynum` varchar(255) DEFAULT NULL,
`paytime` int(11) DEFAULT NULL,
`delete` int(1) DEFAULT '0',
`freight_id` int(11) DEFAULT NULL,
`freight_text` varchar(255) DEFAULT NULL,
`freight_type` tinyint(1) DEFAULT '0',
`mdid` int(11) DEFAULT NULL,
`freight_time` varchar(255) DEFAULT NULL,
`freight_content` text,
`send_time` bigint(20) DEFAULT NULL COMMENT '发货时间',
`collect_time` int(11) DEFAULT NULL COMMENT '收货时间',
`hexiao_code` varchar(100) DEFAULT NULL,
`hexiao_qr` varchar(255) DEFAULT NULL,
`platform` varchar(255) DEFAULT 'wx',
`field1` varchar(255) DEFAULT NULL,
`field2` varchar(255) DEFAULT NULL,
`field3` varchar(255) DEFAULT NULL,
`field4` varchar(255) DEFAULT NULL,
`field5` varchar(255) DEFAULT NULL,
`iscomment` tinyint(1) DEFAULT '0',
`parent1` int(11) DEFAULT NULL,
`parent2` int(11) DEFAULT NULL,
`parent3` int(11) DEFAULT NULL,
`parent1commission` decimal(11,2) DEFAULT '0.00',
`parent2commission` decimal(11,2) DEFAULT '0.00',
`parent3commission` decimal(11,2) DEFAULT '0.00',
`parent1score` int(11) DEFAULT '0',
`parent2score` int(11) DEFAULT '0',
`parent3score` int(11) DEFAULT '0',
`iscommission` tinyint(1) DEFAULT '0' COMMENT '佣金是否已发放',
`iszj` tinyint(2) DEFAULT '0' COMMENT '是否中奖 1 为中奖',
`money` decimal(11,2) DEFAULT '0.00' COMMENT '奖励得红包金额',
`isjiqiren` tinyint(2) DEFAULT '0' COMMENT '1 为机器人',
`isfenhong` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `hexiao_code` (`hexiao_code`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE,
KEY `status` (`status`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_lucky_collage_order_team`;
CREATE TABLE `ddwx_lucky_collage_order_team` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`mid` varchar(100) DEFAULT NULL,
`proid` int(11) DEFAULT NULL,
`teamhour` int(11) DEFAULT NULL,
`teamnum` int(11) DEFAULT NULL,
`status` int(1) DEFAULT '0' COMMENT '0未支付 1进行中 2成功 3失败',
`num` int(11) DEFAULT '0',
`createtime` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE,
KEY `proid` (`proid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_lucky_collage_product`;
CREATE TABLE `ddwx_lucky_collage_product` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`cid` int(11) DEFAULT '0',
`name` varchar(255) DEFAULT NULL,
`procode` varchar(255) DEFAULT NULL,
`fuwupoint` varchar(255) DEFAULT NULL,
`sellpoint` varchar(255) DEFAULT NULL,
`pic` varchar(255) DEFAULT '',
`pics` varchar(5000) DEFAULT NULL,
`sales` int(11) unsigned DEFAULT '0',
`detail` longtext,
`market_price` float(11,2) DEFAULT NULL,
`sell_price` float(11,2) DEFAULT '0.00',
`cost_price` decimal(11,2) DEFAULT '0.00',
`weight` int(11) DEFAULT NULL,
`sort` int(11) DEFAULT '0',
`status` int(1) DEFAULT '1',
`stock` int(11) unsigned DEFAULT '100',
`createtime` int(11) DEFAULT NULL,
`commissionset` tinyint(1) DEFAULT '0',
`commission1` decimal(11,2) DEFAULT NULL,
`commission2` decimal(11,2) DEFAULT NULL,
`commission3` decimal(11,2) DEFAULT NULL,
`guigedata` text,
`comment_score` decimal(2,1) DEFAULT '5.0',
`comment_num` int(11) DEFAULT '0',
`comment_haopercent` int(11) DEFAULT '100',
`teamnum` int(11) DEFAULT '3',
`buymax` int(11) DEFAULT '0',
`teamhour` int(11) DEFAULT NULL,
`leadermoney` decimal(11,2) DEFAULT '0.00',
`leaderscore` int(11) DEFAULT '0',
`freighttype` tinyint(1) DEFAULT '1',
`freightdata` varchar(255) DEFAULT NULL,
`freightcontent` text,
`ischecked` tinyint(1) DEFAULT '1',
`check_reason` varchar(255) DEFAULT NULL,
`commissiondata1` text,
`commissiondata2` text,
`commissiondata3` text,
`fy_type` tinyint(1) DEFAULT '1' COMMENT '1 按比例 2 红包',
`fy_money` decimal(11,2) DEFAULT '0.00' COMMENT '红包比例',
`fy_money_val` decimal(11,2) DEFAULT '0.00' COMMENT '红包金额',
`gua_num` int(11) DEFAULT '1' COMMENT '不中奖人数',
`red_give_mode` tinyint(11) DEFAULT '1' COMMENT '1 返到余额, 2 放到零钱',
`tklx` int(2) DEFAULT '1' COMMENT '退款路线默认原路退回',
`member_money` decimal(11,2) DEFAULT '0.00' COMMENT '团长奖励余额',
`zstzcommission` decimal(11,2) DEFAULT '0.00' COMMENT '团长奖励佣金',
`sharescore` int(11) DEFAULT '0' COMMENT '分享奖励积分',
`sharecommission` decimal(11,2) DEFAULT '0.00' COMMENT '分享奖励佣金',
`zj_money` decimal(11,2) DEFAULT '0.00' COMMENT '中奖人奖励金额',
`zjscore` decimal(11,2) DEFAULT '0.00' COMMENT '中奖奖励积分',
`zjcommission` decimal(11,2) DEFAULT '0.00' COMMENT '中奖奖励佣金',
`ktxianzhi` text COMMENT '根据会员等级设置开团限制',
`bzids` varchar(255) DEFAULT NULL,
`zjids` varchar(255) DEFAULT NULL,
`tzjl_type` int(2) DEFAULT '1' COMMENT '1奖励余额 2 奖励积分 3 奖励佣金 4 奖励优惠券',
`tz_yhqids` varchar(255) DEFAULT NULL COMMENT '团长赠送优惠券id',
`sharejltype` int(2) DEFAULT '1' COMMENT '分享拼团奖励 1奖励余额 2 奖励积分 3 奖励佣金 4 奖励优惠券',
`zjjl_type` int(2) DEFAULT '1' COMMENT '中奖奖励 1奖励余额 2 奖励积分 3 奖励佣金 4 奖励优惠券',
`sharemoney` float(11,2) DEFAULT '0.00' COMMENT '分享奖励余额1',
`kaituan_time` varchar(255) DEFAULT NULL,
`kaituan_date` varchar(255) DEFAULT NULL,
`starttime` varchar(255) DEFAULT NULL,
`tsktnum` int(11) DEFAULT '0' COMMENT '同时开团数量限制',
`zstz_yhqids` varchar(255) DEFAULT NULL COMMENT '赠送团长优惠券ids',
`share_yhqids` varchar(255) DEFAULT NULL COMMENT '分享奖励优惠券',
`zj_yhqids` varchar(255) DEFAULT NULL COMMENT '中奖奖励优惠券ids',
`bzjl_type` tinyint(11) DEFAULT '1' COMMENT '不中奖励类型',
`bzj_score` int(255) DEFAULT '0',
`bzj_commission` varchar(255) DEFAULT NULL COMMENT '不中奖佣金',
`bzj_yhqids` varchar(255) DEFAULT NULL COMMENT '不中奖优惠券ids',
`isktdate` tinyint(1) DEFAULT '0' COMMENT '默认0 不开启时间 1 为开启时间',
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `cid` (`cid`) USING BTREE,
KEY `status` (`status`) USING BTREE,
KEY `ischecked` (`ischecked`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_lucky_collage_sysset`;
CREATE TABLE `ddwx_lucky_collage_sysset` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`pics` text,
`autoshdays` int(11) DEFAULT '7',
`comment` tinyint(1) DEFAULT '1',
`comment_check` tinyint(1) DEFAULT '1',
`showjd` tinyint(1) DEFAULT '1',
`timeset` varchar(255) DEFAULT NULL COMMENT '赠送余额',
`duration` varchar(255) DEFAULT NULL COMMENT '赠送团长佣金',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `aid` (`aid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_lucky_collage_codelist`;
CREATE TABLE `ddwx_lucky_collage_codelist` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`proid` int(11) DEFAULT NULL,
`content` text,
`ordernum` varchar(100) DEFAULT NULL,
`orderid` int(11) DEFAULT NULL,
`headimg` varchar(255) DEFAULT NULL,
`nickname` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL,
`createtime` int(11) DEFAULT NULL,
`buytime` int(11) DEFAULT NULL,
`status` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `proid` (`proid`) USING BTREE,
KEY `status` (`status`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_express_address`;
CREATE TABLE `ddwx_express_address` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`mid` varchar(255) DEFAULT NULL,
`name` varchar(255) DEFAULT NULL,
`company` varchar(255) DEFAULT NULL,
`tel` varchar(255) DEFAULT NULL,
`province` varchar(255) DEFAULT NULL,
`city` varchar(255) DEFAULT NULL,
`district` varchar(255) DEFAULT NULL,
`area` varchar(255) DEFAULT NULL,
`address` varchar(255) DEFAULT NULL,
`latitude` varchar(255) DEFAULT NULL,
`longitude` varchar(255) DEFAULT NULL,
`isdefault` int(1) DEFAULT '0',
`createtime` int(11) DEFAULT NULL,
`mailtype` tinyint(2) DEFAULT '1' COMMENT '1 为寄件 2 为收件',
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE,
KEY `isdefault` (`isdefault`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_express_cxlog`;
CREATE TABLE `ddwx_express_cxlog` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`mid` varchar(255) DEFAULT NULL,
`company` varchar(255) DEFAULT NULL,
`text` varchar(255) DEFAULT NULL COMMENT '收件人信息',
`createtime` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`num` varchar(255) DEFAULT NULL,
`state` int(11) DEFAULT '0',
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_express_order`;
CREATE TABLE `ddwx_express_order` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`mid` varchar(255) DEFAULT NULL,
`cargo` varchar(255) DEFAULT NULL,
`company` varchar(255) DEFAULT NULL,
`sm_time` varchar(255) DEFAULT NULL,
`recManName` varchar(255) DEFAULT NULL COMMENT '收件人信息',
`recManMobile` varchar(255) DEFAULT NULL,
`recManPrintAddr` varchar(255) DEFAULT NULL,
`sendManName` varchar(255) DEFAULT NULL,
`sendManMobile` varchar(255) DEFAULT NULL,
`sendManPrintAddr` varchar(255) DEFAULT NULL,
`weight` varchar(255) DEFAULT NULL,
`remark` int(1) DEFAULT '0',
`createtime` int(11) DEFAULT NULL,
`ordernum` varchar(255) DEFAULT NULL,
`recManPrintPro` varchar(255) DEFAULT NULL COMMENT '身份',
`recManPrintCity` varchar(255) DEFAULT NULL,
`sendManPrintPro` varchar(255) DEFAULT NULL,
`sendManPrintCity` varchar(255) DEFAULT NULL,
`orderId` varchar(255) DEFAULT '0' COMMENT '快递100返回给',
`platform` varchar(255) DEFAULT NULL,
`taskId` varchar(255) DEFAULT NULL,
`yundannum` varchar(255) DEFAULT NULL,
`status` int(11) DEFAULT '0',
`salt` varchar(255) DEFAULT NULL,
`courierName` varchar(255) DEFAULT NULL,
`courierMobile` varchar(255) DEFAULT NULL,
`kuaidinum` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE,
KEY `isdefault` (`remark`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_express_sysset`;
CREATE TABLE `ddwx_express_sysset` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`pstimedata` text,
`psprehour` int(11) DEFAULT '7',
`bid` int(11) DEFAULT '0',
`key` varchar(255) DEFAULT NULL COMMENT '企业 key',
`customer` varchar(255) DEFAULT NULL COMMENT '企业customer',
`secret_key` varchar(255) DEFAULT NULL,
`secret_secret` varchar(255) DEFAULT NULL,
`secret_code` varchar(255) DEFAULT NULL,
`secret` varchar(255) DEFAULT NULL,
`secret_codep` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_douyin_sysset`;
CREATE TABLE `ddwx_douyin_sysset` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`app_id` varchar(255) DEFAULT NULL,
`app_secret` varchar(255) DEFAULT NULL,
`shop_id` varchar(255) DEFAULT NULL,
`mobile` varchar(255) DEFAULT NULL,
`status` tinyint(1) DEFAULT '0',
`access_token` varchar(255) DEFAULT NULL,
`expires_time` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `aid` (`aid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_restaurant_admin_set`;
CREATE TABLE `ddwx_restaurant_admin_set` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`qrcode` varchar(200) DEFAULT NULL,
`ddbb` varchar(200) DEFAULT NULL,
`wxpay` tinyint(1) DEFAULT '1',
`moneypay` tinyint(1) DEFAULT '1' COMMENT '余额支付',
`recharge` tinyint(1) DEFAULT '1' COMMENT '是否开启充值',
`withdraw` tinyint(1) DEFAULT NULL,
`alipay` tinyint(1) DEFAULT '0',
`booking_enable` tinyint(1) DEFAULT '0' COMMENT '预定开关,1开启,0关闭',
`booking_before_days` int(3) DEFAULT '0' COMMENT '提前N天预定',
`booking_pay` tinyint(1) DEFAULT '0' COMMENT '付费预定开关,1开启,0关闭',
`screen_title` varchar(100) DEFAULT NULL COMMENT '扫码引导文字',
`screen_pic` varchar(200) DEFAULT NULL COMMENT '屏幕背景图片',
`screen_desc` varchar(200) DEFAULT NULL COMMENT '屏幕底部文字',
`takeaway_autoclose` int(11) DEFAULT '60' COMMENT '多少分钟不支付自动关闭订单',
`takeaway_comment` tinyint(1) DEFAULT '1',
`takeaway_comment_check` tinyint(1) DEFAULT '1',
`takeaway_showcommission` tinyint(1) DEFAULT '0',
`shop_comment` tinyint(1) DEFAULT '1',
`shop_comment_check` tinyint(1) DEFAULT '1',
`shop_showcommission` tinyint(1) DEFAULT '0',
`queue_appid` varchar(100) DEFAULT NULL,
`queue_secretid` varchar(100) DEFAULT NULL,
`queue_secretkey` varchar(100) DEFAULT NULL,
`queue_voicetype` int(11) DEFAULT '0',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `aid` (`aid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4;
DROP TABLE IF EXISTS `ddwx_restaurant_area`;
CREATE TABLE `ddwx_restaurant_area` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`name` varchar(255) DEFAULT NULL COMMENT '餐厅区域名称',
`status` tinyint(1) DEFAULT '1',
`createtime` int(11) DEFAULT NULL,
`print_template_type` tinyint(1) unsigned DEFAULT '0' COMMENT '0普通打印,1一菜一单',
`print_ids` varchar(255) DEFAULT NULL COMMENT '关联打印机',
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_restaurant_booking_order`;
CREATE TABLE `ddwx_restaurant_booking_order` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`mid` int(11) DEFAULT NULL,
`ordernum` varchar(60) NOT NULL,
`tableid` int(11) DEFAULT '0',
`table_cid` int(11) DEFAULT '0',
`seat` tinyint(3) unsigned DEFAULT '0' COMMENT '座位数',
`booking_time` varchar(200) DEFAULT NULL COMMENT '预定时间',
`booking_fee` decimal(10,2) DEFAULT '0.00' COMMENT '预定费',
`totalprice` decimal(11,2) DEFAULT NULL,
`product_price` decimal(11,2) DEFAULT '0.00',
`freight_price` decimal(11,2) DEFAULT NULL,
`scoredk_money` decimal(11,2) DEFAULT NULL COMMENT '积分抵扣金额',
`leveldk_money` decimal(11,2) DEFAULT '0.00' COMMENT '会员等级优惠金额',
`manjian_money` decimal(11,2) DEFAULT '0.00' COMMENT '满减优惠金额',
`coupon_money` decimal(11,2) DEFAULT '0.00' COMMENT '优惠券金额',
`coupon_rid` int(11) DEFAULT NULL COMMENT '优惠券coupon_record的id',
`scoredkscore` int(11) DEFAULT '0' COMMENT '积分抵扣用掉的积分',
`givescore` int(11) DEFAULT '0' COMMENT '赠送积分',
`createtime` int(11) DEFAULT NULL,
`status` int(11) DEFAULT '0' COMMENT '0未支付;1已支付;2已发货,3已收货,4关闭',
`check_status` tinyint(1) DEFAULT NULL COMMENT '0待审核,1审核通过,-1审核不通过',
`linkman` varchar(255) DEFAULT NULL,
`tel` varchar(20) DEFAULT NULL,
`message` varchar(255) DEFAULT NULL COMMENT '客户备注',
`remark` varchar(255) DEFAULT NULL,
`payorderid` int(11) DEFAULT NULL,
`paytypeid` int(11) DEFAULT NULL,
`paytype` varchar(50) DEFAULT NULL,
`paynum` varchar(255) DEFAULT NULL,
`paytime` int(11) DEFAULT NULL,
`refund_reason` varchar(255) DEFAULT NULL,
`refund_money` decimal(11,2) DEFAULT '0.00',
`refund_status` int(1) DEFAULT '0' COMMENT '1申请退款审核中 2已同意退款 3已驳回',
`refund_time` int(11) DEFAULT NULL,
`refund_checkremark` varchar(255) DEFAULT NULL,
`collect_time` int(11) DEFAULT NULL,
`platform` varchar(60) DEFAULT 'wx',
`iscomment` tinyint(1) DEFAULT '0',
`waiter_id` int(11) DEFAULT '0' COMMENT '服务员',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `order_no` (`ordernum`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE,
KEY `table_id` (`tableid`) USING BTREE,
KEY `status` (`status`) USING BTREE,
KEY `create_time` (`createtime`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=60 DEFAULT CHARSET=utf8mb4 COMMENT='预定订单表';
DROP TABLE IF EXISTS `ddwx_restaurant_booking_order_goods`;
CREATE TABLE `ddwx_restaurant_booking_order_goods` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`mid` int(11) DEFAULT NULL,
`orderid` int(11) NOT NULL,
`ordernum` varchar(60) NOT NULL,
`proid` int(11) NOT NULL,
`name` varchar(255) DEFAULT NULL,
`pic` varchar(255) DEFAULT NULL,
`procode` varchar(255) DEFAULT NULL COMMENT '货号',
`ggid` int(11) DEFAULT NULL COMMENT '规格id',
`ggname` varchar(255) DEFAULT NULL COMMENT '规格name',
`cid` int(11) DEFAULT '0',
`num` int(11) DEFAULT '1',
`cost_price` decimal(11,2) DEFAULT '0.00',
`sell_price` decimal(11,2) DEFAULT '0.00',
`totalprice` decimal(11,2) DEFAULT '0.00',
`status` int(1) DEFAULT '0' COMMENT '0未付款1已付款2已发货3已收货4申请退款5已退款',
`create_time` int(11) DEFAULT NULL,
`endtime` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE,
KEY `order_id` (`orderid`) USING BTREE,
KEY `order_no` (`ordernum`) USING BTREE,
KEY `product_id` (`proid`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='预定订单菜品表';
DROP TABLE IF EXISTS `ddwx_restaurant_booking_sysset`;
CREATE TABLE `ddwx_restaurant_booking_sysset` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`timedata` text COMMENT '预定时间设置',
`prehour` int(11) unsigned NOT NULL DEFAULT '2' COMMENT '选择时间要大于当前时间多少小时',
`pay` tinyint(1) DEFAULT '0' COMMENT '是否付费',
`pay_money` decimal(6,2) DEFAULT '0.00',
`status` tinyint(1) DEFAULT '1',
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_restaurant_business_set`;
CREATE TABLE `ddwx_restaurant_business_set` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`wxpay` tinyint(1) DEFAULT '1',
`moneypay` tinyint(1) DEFAULT '1' COMMENT '余额支付',
`recharge` tinyint(1) DEFAULT '1' COMMENT '是否开启充值',
`withdraw` tinyint(1) DEFAULT NULL,
`alipay` tinyint(1) DEFAULT '0',
`pay_after` tinyint(1) DEFAULT '1' COMMENT '餐后付款,1开启,0关闭',
`comment` tinyint(1) DEFAULT '1' COMMENT '评价,1开启,0关闭',
`comment_check` tinyint(1) DEFAULT '0' COMMENT '评价审核,1开启,0关闭',
`show_commission` tinyint(1) DEFAULT '0' COMMENT '佣金,1开启,0关闭',
`booking_enable` tinyint(1) DEFAULT '0' COMMENT '预定开关,1开启,0关闭',
`booking_before_days` int(3) DEFAULT '0' COMMENT '提前N天预定',
`booking_pay` tinyint(1) DEFAULT '0' COMMENT '付费预定开关,1开启,0关闭',
`tea_fee_enable` tinyint(1) DEFAULT '0' COMMENT '茶位费开关,1开启,0关闭',
`tea_fee` int(4) DEFAULT '0' COMMENT '茶位费',
`textset` text,
`breakfast_time` varchar(100) DEFAULT NULL COMMENT '早市时间 json格式,开始结束分钟数',
`lunch_time` varchar(100) DEFAULT NULL COMMENT '午市时间 json格式,开始结束分钟数',
`dinner_time` varchar(100) DEFAULT NULL COMMENT '晚市时间 json格式,开始结束分钟数',
`supper_time` varchar(100) DEFAULT NULL COMMENT '夜市时间 json格式,开始结束分钟数',
`takeaway_enable` tinyint(1) DEFAULT '0' COMMENT '外卖接单开关,1开启,0关闭',
`takeaway_confirm_auto` tinyint(1) DEFAULT '1' COMMENT '自动接单,1自动,0手动',
`takeaway_before_days` tinyint(1) DEFAULT '0' COMMENT '提前N天预定',
`takeaway_min_price` int(4) DEFAULT '0' COMMENT '起送金额',
`takeaway_time` varchar(100) DEFAULT '8:00 - 21:00' COMMENT '外卖接单时间',
`takeaway_time_start` int(10) DEFAULT '28800' COMMENT '外卖接单时间秒数',
`takeaway_time_end` int(10) DEFAULT '75600' COMMENT '外卖接单时间秒数',
`screen_title` varchar(100) DEFAULT NULL COMMENT '扫码引导文字',
`screen_pic` varchar(200) DEFAULT NULL COMMENT '屏幕背景图片',
`screen_desc` varchar(200) DEFAULT NULL COMMENT '屏幕底部文字',
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
DROP TABLE IF EXISTS `ddwx_restaurant_cuxiao`;
CREATE TABLE `ddwx_restaurant_cuxiao` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`type` tinyint(1) DEFAULT '1' COMMENT '0仅显示 1满减 2满赠 3换购',
`tip` varchar(255) DEFAULT NULL,
`name` varchar(255) DEFAULT NULL,
`starttime` varchar(100) DEFAULT NULL,
`endtime` varchar(100) DEFAULT NULL,
`sort` int(11) DEFAULT '0',
`createtime` int(11) DEFAULT NULL,
`gettj` varchar(255) DEFAULT '-1',
`fwtype` tinyint(1) DEFAULT '0',
`categoryids` varchar(255) DEFAULT NULL,
`productids` varchar(255) DEFAULT NULL,
`minprice` decimal(10,2) DEFAULT '0.00',
`proid` int(11) DEFAULT '0' COMMENT '赠送或换购的商品id',
`ggid` int(11) DEFAULT '0' COMMENT '赠送或换购的商品规格id',
`money` float(11,2) DEFAULT '0.00' COMMENT '满减额度或加价金额',
`minnum` int(11) DEFAULT '1' COMMENT '最低购买件数',
`zhekou` float(11,2) DEFAULT NULL COMMENT '折扣0.01~9.99',
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `type` (`type`) USING BTREE,
KEY `starttime` (`starttime`) USING BTREE,
KEY `endtime` (`endtime`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_restaurant_deposit_order`;
CREATE TABLE `ddwx_restaurant_deposit_order` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`mid` int(11) DEFAULT NULL,
`name` varchar(255) DEFAULT NULL,
`num` varchar(255) DEFAULT NULL,
`linkman` varchar(255) DEFAULT NULL,
`tel` varchar(20) DEFAULT NULL,
`pic` varchar(255) DEFAULT NULL,
`message` varchar(255) DEFAULT NULL COMMENT '客户备注',
`createtime` int(11) DEFAULT NULL,
`takeout_time` int(11) DEFAULT NULL,
`status` int(11) DEFAULT '0' COMMENT '0审核中;1寄存中;2全部取出;3未通过',
`remark` varchar(255) DEFAULT NULL,
`platform` varchar(60) DEFAULT 'wx',
`waiter_id` int(11) DEFAULT '0' COMMENT '服务员',
PRIMARY KEY (`id`) USING BTREE,
KEY `name` (`name`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE,
KEY `status` (`status`) USING BTREE,
KEY `create_time` (`createtime`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COMMENT='寄存订单表';
DROP TABLE IF EXISTS `ddwx_restaurant_deposit_order_log`;
CREATE TABLE `ddwx_restaurant_deposit_order_log` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`order_id` int(11) DEFAULT NULL,
`mid` int(11) DEFAULT NULL,
`num` varchar(255) DEFAULT NULL,
`message` varchar(255) DEFAULT NULL COMMENT '客户备注',
`createtime` int(11) DEFAULT NULL,
`type` int(11) DEFAULT '0' COMMENT '0存入,1取出',
`status` int(3) DEFAULT '1' COMMENT '',
`remark` varchar(255) DEFAULT NULL,
`platform` varchar(60) DEFAULT 'wx',
`waiter_id` int(11) DEFAULT '0' COMMENT '服务员',
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `order_id` (`order_id`) USING BTREE,
KEY `mid` (`mid`) USING BTREE,
KEY `type` (`type`) USING BTREE,
KEY `status` (`status`) USING BTREE,
KEY `create_time` (`createtime`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='寄存订单记录表';
DROP TABLE IF EXISTS `ddwx_restaurant_product`;
CREATE TABLE `ddwx_restaurant_product` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`cid` varchar(200) DEFAULT '0' COMMENT '分类id,可存储多分类用,间隔',
`area_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '出餐区域id',
`gid` varchar(255) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`bcid` int(11) DEFAULT '0',
`name` varchar(255) DEFAULT NULL,
`procode` varchar(255) DEFAULT NULL COMMENT '货号',
`sellpoint` varchar(255) DEFAULT NULL COMMENT '商品卖点文字描述',
`pic` varchar(255) DEFAULT '',
`pics` varchar(5000) DEFAULT NULL,
`qrcode` varchar(255) DEFAULT NULL COMMENT '二维码',
`sales` int(11) DEFAULT '0' COMMENT '显示销量',
`real_sales` int(11) DEFAULT '0' COMMENT '实际销量',
`detail` longtext,
`market_price` decimal(11,2) DEFAULT '0.00',
`sell_price` decimal(11,2) DEFAULT '0.00',
`cost_price` decimal(11,2) DEFAULT '0.00',
`pack_fee` decimal(10,2) DEFAULT '0.00' COMMENT '打包费',
`givescore` int(11) unsigned DEFAULT '0' COMMENT '赠送积分',
`sort` int(11) DEFAULT '0',
`status` int(1) DEFAULT '1',
`status_week` varchar(20) DEFAULT '1,2,3,4,5,6,7' COMMENT '周几上架销售',
`stock` int(11) unsigned DEFAULT '100',
`stock_daily` int(6) unsigned DEFAULT '100' COMMENT '每日库存',
`sales_daily` int(11) DEFAULT '0',
`create_time` int(11) DEFAULT NULL,
`update_time` int(11) DEFAULT NULL,
`commissionset` int(2) DEFAULT '0' COMMENT '0按会员等级,1价格比例,2固定金额,3送积分,-1不参与分销',
`commissiondata1` text,
`commissiondata2` text,
`commissiondata3` text,
`guigedata` text COMMENT '规格',
`comment_score` decimal(2,1) DEFAULT '5.0',
`comment_num` int(11) DEFAULT '0',
`comment_haopercent` int(11) DEFAULT '100',
`freighttype` tinyint(1) DEFAULT '1' COMMENT '配送模板:0跟随系统,1指定',
`freightdata` varchar(255) DEFAULT NULL COMMENT '配送模板id,逗号间隔',
`lvprice` tinyint(1) DEFAULT '0' COMMENT '是否开启会员价 不同会员等级设置不同价格',
`lvprice_data` text,
`limit_per` int(11) DEFAULT '0' COMMENT '每桌限购',
`limit_start` int(11) DEFAULT '0' COMMENT '起售数量',
`scored_set` tinyint(1) DEFAULT '0' COMMENT '积分抵扣类型:0按系统设置抵扣,1单独设置抵扣比例,2单独设置抵扣金额,3不可用积分抵扣',
`scored_val` decimal(11,2) DEFAULT '0.00' COMMENT '积分抵扣值',
`start_hours` varchar(100) CHARACTER SET utf8 DEFAULT NULL,
`end_hours` varchar(100) CHARACTER SET utf8 DEFAULT NULL,
`start_time` varchar(100) CHARACTER SET utf8 DEFAULT NULL,
`end_time` varchar(100) CHARACTER SET utf8 DEFAULT NULL,
`ischecked` tinyint(1) DEFAULT '1',
`linkid` int(11) NULL DEFAULT '0',
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `cid` (`cid`) USING BTREE,
KEY `gid` (`gid`) USING BTREE,
KEY `status` (`status`) USING BTREE,
KEY `stock` (`stock`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COMMENT='菜品表';
DROP TABLE IF EXISTS `ddwx_restaurant_product_category`;
CREATE TABLE `ddwx_restaurant_product_category` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`pid` int(11) DEFAULT '0',
`name` varchar(255) DEFAULT NULL,
`pic` varchar(255) DEFAULT NULL,
`is_shop` tinyint(1) unsigned DEFAULT '1' COMMENT '支持店内,1支持,0不支持',
`is_takeaway` tinyint(1) unsigned DEFAULT '1' COMMENT '支持外卖,1支持,0不支持',
`is_booking` tinyint(1) unsigned DEFAULT '1' COMMENT '支持预定,1支持,0不支持',
`status` int(1) DEFAULT '1' COMMENT '1显示,0隐藏',
`sort` int(11) DEFAULT '1',
`create_time` int(11) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `pid` (`pid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COMMENT='菜品分类表';
DROP TABLE IF EXISTS `ddwx_restaurant_product_guige`;
CREATE TABLE `ddwx_restaurant_product_guige` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`product_id` int(11) DEFAULT NULL,
`name` varchar(255) DEFAULT NULL,
`pic` varchar(255) DEFAULT NULL,
`market_price` decimal(11,2) DEFAULT '0.00',
`cost_price` decimal(11,2) DEFAULT '0.00',
`sell_price` decimal(11,2) DEFAULT '0.00',
`stock` int(11) unsigned DEFAULT '0',
`stock_daily` int(6) unsigned DEFAULT '0' COMMENT '每日库存',
`procode` varchar(255) DEFAULT NULL,
`sales` int(11) DEFAULT '0',
`sales_daily` int(11) DEFAULT '0',
`ks` varchar(255) DEFAULT NULL,
`lvprice_data` text,
`givescore` int(11) DEFAULT '0',
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `product_id` (`product_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_restaurant_queue`;
CREATE TABLE `ddwx_restaurant_queue` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`cid` int(11) DEFAULT NULL,
`mid` int(11) DEFAULT NULL,
`date` date NOT NULL COMMENT '日期',
`queue_no` varchar(60) NOT NULL,
`create_time` int(11) DEFAULT NULL,
`call_time` int(11) DEFAULT NULL,
`expiry_time` int(11) DEFAULT NULL COMMENT '过号时间',
`status` int(11) DEFAULT '0' COMMENT '0排队中;1已入座;2过号;3已取消',
`linkman` varchar(255) DEFAULT NULL,
`tel` varchar(20) DEFAULT NULL,
`call_text` varchar(255) DEFAULT NULL COMMENT '叫号语音文字',
`remark` varchar(255) DEFAULT NULL,
`platform` varchar(60) DEFAULT 'wx',
`renshu` varchar(10) DEFAULT NULL,
`call_voice_url` varchar(255) DEFAULT NULL,
`need_play` tinyint(1) DEFAULT '0' COMMENT '需要播放音频',
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE,
KEY `date` (`date`) USING BTREE,
KEY `queue_no` (`queue_no`) USING BTREE,
KEY `status` (`status`) USING BTREE,
KEY `create_time` (`create_time`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COMMENT='排队队列表';
DROP TABLE IF EXISTS `ddwx_restaurant_queue_category`;
CREATE TABLE `ddwx_restaurant_queue_category` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`name` varchar(255) DEFAULT NULL,
`code` varchar(255) DEFAULT NULL COMMENT '前缀',
`seat_min` tinyint(3) DEFAULT '0' COMMENT '座位',
`seat_max` tinyint(3) DEFAULT '0' COMMENT '座位',
`per_minute` int(11) DEFAULT '1' COMMENT '每个号大概需要多少分钟',
`call_text` varchar(255) DEFAULT NULL COMMENT '叫号语音文字',
`status` int(1) DEFAULT '0' COMMENT '状态:0禁用,1启用',
`sort` int(11) DEFAULT '1',
`create_time` int(11) DEFAULT NULL,
`update_time` int(11) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `seat_min` (`seat_min`) USING BTREE,
KEY `seat_max` (`seat_max`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COMMENT='队列分类表';
DROP TABLE IF EXISTS `ddwx_restaurant_queue_sysset`;
CREATE TABLE `ddwx_restaurant_queue_sysset` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`screen_title` varchar(100) DEFAULT NULL COMMENT '扫码引导文字',
`screen_pic` varchar(200) DEFAULT NULL COMMENT '屏幕背景图片',
`screen_desc` varchar(200) DEFAULT NULL COMMENT '屏幕底部文字',
`status` tinyint(1) DEFAULT '1',
`start_hours` varchar(100) DEFAULT '00:00',
`end_hours` varchar(100) DEFAULT '00:00',
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_restaurant_set`;
CREATE TABLE `ddwx_restaurant_set` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
`value` longtext,
PRIMARY KEY (`id`) USING BTREE,
KEY `name` (`name`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='餐饮配置表';
DROP TABLE IF EXISTS `ddwx_restaurant_shop_cart`;
CREATE TABLE `ddwx_restaurant_shop_cart` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`mid` int(11) DEFAULT NULL,
`proid` int(11) DEFAULT NULL,
`ggid` int(11) DEFAULT NULL,
`num` int(11) DEFAULT NULL,
`createtime` int(11) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE,
KEY `proid` (`proid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_restaurant_shop_comment`;
CREATE TABLE `ddwx_restaurant_shop_comment` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`mid` int(11) DEFAULT NULL,
`orderid` int(11) DEFAULT NULL,
`ogid` int(11) DEFAULT NULL,
`proid` int(11) DEFAULT NULL,
`proname` varchar(255) DEFAULT NULL,
`propic` varchar(255) DEFAULT NULL,
`ggid` int(11) DEFAULT NULL,
`ggname` varchar(255) DEFAULT NULL,
`ordernum` varchar(50) DEFAULT NULL,
`openid` varchar(255) DEFAULT NULL,
`nickname` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL,
`headimg` varchar(255) DEFAULT NULL,
`score` int(11) DEFAULT NULL,
`content` varchar(255) DEFAULT NULL,
`content_pic` varchar(255) DEFAULT NULL,
`reply_content` varchar(255) DEFAULT NULL,
`reply_content_pic` varchar(255) DEFAULT NULL,
`append_content` varchar(255) DEFAULT NULL,
`append_content_pic` varchar(255) DEFAULT NULL,
`append_reply_content` varchar(255) DEFAULT NULL,
`append_reply_content_pic` varchar(255) DEFAULT NULL,
`createtime` int(11) DEFAULT NULL,
`appendtime` int(11) DEFAULT NULL,
`status` int(1) DEFAULT '1',
`reply_time` int(11) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE,
KEY `proid` (`proid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_restaurant_shop_order`;
CREATE TABLE `ddwx_restaurant_shop_order` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`mid` int(11) DEFAULT NULL,
`tableid` int(11) DEFAULT '0',
`ordernum` varchar(255) DEFAULT NULL,
`title` text,
`renshu` int(11) DEFAULT '0',
`totalprice` float(11,2) DEFAULT NULL,
`product_price` float(11,2) DEFAULT '0.00',
`tea_fee` float(11,2) DEFAULT '0.00',
`freight_price` float(11,2) DEFAULT NULL,
`scoredk_money` float(11,2) DEFAULT NULL COMMENT '积分抵扣金额',
`leveldk_money` float(11,2) DEFAULT '0.00' COMMENT '会员等级优惠金额',
`manjian_money` decimal(11,2) DEFAULT '0.00' COMMENT '满减优惠金额',
`coupon_money` decimal(11,2) DEFAULT '0.00' COMMENT '优惠券金额',
`coupon_rid` int(11) DEFAULT NULL COMMENT '优惠券coupon_record的id',
`scoredkscore` int(11) DEFAULT '0' COMMENT '积分抵扣用掉的积分',
`givescore` int(11) DEFAULT '0' COMMENT '赠送积分',
`discount_money` decimal(11,0) DEFAULT '0',
`createtime` int(11) DEFAULT NULL,
`status` int(11) DEFAULT '0' COMMENT '0未支付;1已支付;2已发货,3已收货',
`linkman` varchar(255) DEFAULT NULL,
`tel` varchar(50) DEFAULT NULL,
`area` varchar(255) DEFAULT NULL,
`area2` varchar(255) DEFAULT NULL,
`address` varchar(255) DEFAULT NULL,
`longitude` varchar(100) DEFAULT NULL,
`latitude` varchar(100) DEFAULT NULL,
`message` varchar(255) DEFAULT NULL,
`remark` varchar(255) DEFAULT NULL,
`payorderid` int(11) DEFAULT NULL,
`paytypeid` int(11) DEFAULT NULL,
`paytype` varchar(50) DEFAULT NULL,
`paynum` varchar(255) DEFAULT NULL,
`paytime` int(11) DEFAULT NULL,
`express_com` varchar(255) DEFAULT NULL COMMENT '快递公司',
`express_no` varchar(255) DEFAULT NULL COMMENT '快递单号',
`refund_reason` varchar(255) DEFAULT NULL,
`refund_money` decimal(11,2) DEFAULT '0.00',
`refund_status` int(1) DEFAULT '0' COMMENT '1申请退款审核中 2已同意退款 3已驳回',
`refund_time` int(11) DEFAULT NULL,
`refund_checkremark` varchar(255) DEFAULT NULL,
`send_time` bigint(20) DEFAULT NULL COMMENT '发货时间',
`collect_time` int(11) DEFAULT NULL COMMENT '收货时间',
`freight_id` int(11) DEFAULT NULL,
`freight_text` varchar(255) DEFAULT NULL,
`freight_type` tinyint(1) DEFAULT '0',
`mdid` int(11) DEFAULT NULL,
`freight_time` varchar(255) DEFAULT NULL,
`freight_content` text COMMENT '自动发货信息 卡密',
`hexiao_code` varchar(100) DEFAULT NULL COMMENT '唯一码 核销码',
`hexiao_qr` varchar(255) DEFAULT NULL,
`platform` varchar(255) DEFAULT 'wx',
`iscomment` tinyint(1) DEFAULT '0',
`field1` varchar(255) DEFAULT NULL,
`field2` varchar(255) DEFAULT NULL,
`field3` varchar(255) DEFAULT NULL,
`field4` varchar(255) DEFAULT NULL,
`field5` varchar(255) DEFAULT NULL,
`delete` tinyint(1) DEFAULT '0',
`isfenhong` tinyint(1) DEFAULT '0' COMMENT '是否已经分红',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `code` (`hexiao_code`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE,
KEY `status` (`status`) USING BTREE,
KEY `createtime` (`createtime`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_restaurant_shop_order_goods`;
CREATE TABLE `ddwx_restaurant_shop_order_goods` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`mid` int(11) DEFAULT NULL,
`orderid` int(11) DEFAULT NULL,
`ordernum` varchar(50) DEFAULT NULL,
`proid` int(11) DEFAULT NULL,
`name` varchar(255) DEFAULT NULL,
`pic` varchar(255) DEFAULT NULL,
`procode` varchar(255) DEFAULT NULL,
`ggid` int(11) DEFAULT NULL,
`ggname` varchar(255) DEFAULT NULL,
`cid` int(11) DEFAULT '0',
`num` int(11) DEFAULT NULL,
`cost_price` decimal(11,2) DEFAULT NULL,
`sell_price` decimal(11,2) DEFAULT NULL,
`totalprice` decimal(11,2) DEFAULT NULL,
`real_totalprice` decimal(10,2) DEFAULT '0.00' COMMENT '实际商品销售金额 减去了优惠券抵扣会员折扣满减积分抵扣的金额',
`status` int(1) DEFAULT '0' COMMENT '0未付款1已付款2已发货3已收货4申请退款5已退款',
`createtime` int(11) DEFAULT NULL,
`endtime` int(11) DEFAULT NULL,
`iscomment` tinyint(1) DEFAULT '0',
`parent1` int(11) DEFAULT NULL,
`parent2` int(11) DEFAULT NULL,
`parent3` int(11) DEFAULT NULL,
`parent1commission` decimal(11,2) DEFAULT '0.00',
`parent2commission` decimal(11,2) DEFAULT '0.00',
`parent3commission` decimal(11,2) DEFAULT '0.00',
`parent1score` int(11) DEFAULT '0',
`parent2score` int(11) DEFAULT '0',
`parent3score` int(11) DEFAULT '0',
`iscommission` tinyint(1) DEFAULT '0' COMMENT '佣金是否已发放',
`isfenhong` tinyint(1) DEFAULT '0' COMMENT '分红是否已结算',
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE,
KEY `orderid` (`orderid`) USING BTREE,
KEY `proid` (`proid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_restaurant_shop_sysset`;
CREATE TABLE `ddwx_restaurant_shop_sysset` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`banner` varchar(255) DEFAULT NULL,
`tea_fee_status` tinyint(1) DEFAULT '0',
`tea_fee_text` varchar(255) DEFAULT '茶位费',
`tea_fee` decimal(10,2) DEFAULT '0.00',
`start_hours` varchar(100) DEFAULT '00:00',
`end_hours` varchar(100) DEFAULT '00:00',
`paytype` varchar(255) DEFAULT 'weixin,alipay,money,cash',
`pay_after` tinyint(1) DEFAULT '1',
`status` tinyint(1) DEFAULT '1',
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_restaurant_table`;
CREATE TABLE `ddwx_restaurant_table` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`cid` int(11) DEFAULT '0',
`name` varchar(255) DEFAULT NULL,
`pic` varchar(255) DEFAULT NULL,
`seat` tinyint(3) DEFAULT '0' COMMENT '座位',
`canbook` tinyint(1) unsigned DEFAULT '1' COMMENT '可否预定',
`status` int(1) DEFAULT '0' COMMENT '状态:0空,1预定,2入座,3清台',
`qrcode` varchar(255) DEFAULT NULL COMMENT '二维码',
`sort` int(11) DEFAULT '0',
`create_time` int(11) DEFAULT NULL,
`update_time` int(11) DEFAULT NULL,
`orderid` int(11) unsigned DEFAULT '0' COMMENT '当前管理订单id',
`print_ids` varchar(255) NULL COMMENT '关联打印机',
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `cid` (`cid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `canbook` (`canbook`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COMMENT='餐桌表';
DROP TABLE IF EXISTS `ddwx_restaurant_table_category`;
CREATE TABLE `ddwx_restaurant_table_category` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) unsigned NOT NULL DEFAULT '0',
`pid` int(11) DEFAULT '0',
`name` varchar(255) DEFAULT NULL,
`pic` varchar(255) DEFAULT NULL,
`service_fee` decimal(10,2) DEFAULT '0.00' COMMENT '服务费',
`limit_fee` decimal(10,2) DEFAULT '0.00' COMMENT '最低消费',
`booking_fee` decimal(10,2) DEFAULT '0.00' COMMENT '预定费',
`seat` tinyint(3) DEFAULT '0' COMMENT '座位',
`status` int(1) DEFAULT '1',
`sort` int(11) DEFAULT '1',
`create_time` int(11) DEFAULT NULL,
`update_time` int(11) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `pid` (`pid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8mb4 COMMENT='餐桌分类表';
DROP TABLE IF EXISTS `ddwx_restaurant_takeaway_cart`;
CREATE TABLE `ddwx_restaurant_takeaway_cart` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`mid` int(11) DEFAULT NULL,
`proid` int(11) DEFAULT NULL,
`ggid` int(11) DEFAULT NULL,
`num` int(11) DEFAULT NULL,
`createtime` int(11) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE,
KEY `proid` (`proid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_restaurant_takeaway_comment`;
CREATE TABLE `ddwx_restaurant_takeaway_comment` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`mid` int(11) DEFAULT NULL,
`orderid` int(11) DEFAULT NULL,
`ogid` int(11) DEFAULT NULL,
`proid` int(11) DEFAULT NULL,
`proname` varchar(255) DEFAULT NULL,
`propic` varchar(255) DEFAULT NULL,
`ggid` int(11) DEFAULT NULL,
`ggname` varchar(255) DEFAULT NULL,
`ordernum` varchar(50) DEFAULT NULL,
`openid` varchar(255) DEFAULT NULL,
`nickname` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL,
`headimg` varchar(255) DEFAULT NULL,
`score` int(11) DEFAULT NULL,
`content` varchar(255) DEFAULT NULL,
`content_pic` varchar(255) DEFAULT NULL,
`reply_content` varchar(255) DEFAULT NULL,
`reply_content_pic` varchar(255) DEFAULT NULL,
`append_content` varchar(255) DEFAULT NULL,
`append_content_pic` varchar(255) DEFAULT NULL,
`append_reply_content` varchar(255) DEFAULT NULL,
`append_reply_content_pic` varchar(255) DEFAULT NULL,
`createtime` int(11) DEFAULT NULL,
`appendtime` int(11) DEFAULT NULL,
`status` int(1) DEFAULT '1',
`reply_time` int(11) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE,
KEY `proid` (`proid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_restaurant_takeaway_freight`;
CREATE TABLE `ddwx_restaurant_takeaway_freight` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`pstype` tinyint(1) DEFAULT '0' COMMENT '0快递 1自提 2同城配送',
`name` varchar(255) DEFAULT NULL,
`type` tinyint(1) DEFAULT '1' COMMENT '1按重量 2按件数',
`pricedata` longtext,
`storetype` tinyint(1) DEFAULT '0' COMMENT '自提门店 0全部 1选择',
`storeids` varchar(255) DEFAULT NULL,
`status` int(1) DEFAULT '0',
`sort` int(11) DEFAULT '0',
`free_price` decimal(11,2) DEFAULT '0.00',
`freeset` tinyint(1) DEFAULT '0',
`pstimeset` tinyint(1) DEFAULT '0' COMMENT '是否开启配送时间选择',
`pstimedata` text COMMENT '配送时间设置',
`psprehour` int(11) DEFAULT '4' COMMENT '选择配送时间y要大于当前时间多少小时',
`createtime` int(11) DEFAULT NULL,
`peisong_juli1` float(11,1) DEFAULT '5.0',
`peisong_fee1` float(11,2) DEFAULT '3.00',
`peisong_juli2` float(11,1) DEFAULT NULL,
`peisong_fee2` float(11,2) DEFAULT NULL,
`peisong_lng` varchar(255) DEFAULT NULL,
`peisong_lat` varchar(255) DEFAULT NULL,
`peisong_range` int(11) DEFAULT NULL,
`field_list` text,
`pscontenttype` tinyint(1) DEFAULT '0',
`pscontent` text,
`needlinkinfo` tinyint(1) DEFAULT '0',
`minpriceset` tinyint(1) DEFAULT '0',
`minprice` decimal(11,2) DEFAULT '0.00',
`fwprice` decimal(11,2) DEFAULT '0.00',
`peisong_rangetype` tinyint(1) DEFAULT '0',
`peisong_rangepath` text,
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `pstype` (`pstype`) USING BTREE,
KEY `type` (`type`) USING BTREE,
KEY `status` (`status`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_restaurant_takeaway_order`;
CREATE TABLE `ddwx_restaurant_takeaway_order` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`mid` int(11) DEFAULT NULL,
`ordernum` varchar(255) DEFAULT NULL,
`title` text,
`totalprice` float(11,2) DEFAULT NULL,
`product_price` float(11,2) DEFAULT '0.00',
`pack_fee` float(11,2) DEFAULT '0.00',
`freight_price` float(11,2) DEFAULT NULL,
`scoredk_money` float(11,2) DEFAULT NULL COMMENT '积分抵扣金额',
`leveldk_money` float(11,2) DEFAULT '0.00' COMMENT '会员等级优惠金额',
`manjian_money` decimal(11,2) DEFAULT '0.00' COMMENT '满减优惠金额',
`coupon_money` decimal(11,2) DEFAULT '0.00' COMMENT '优惠券金额',
`coupon_rid` int(11) DEFAULT NULL COMMENT '优惠券coupon_record的id',
`scoredkscore` int(11) DEFAULT '0' COMMENT '积分抵扣用掉的积分',
`givescore` int(11) DEFAULT '0' COMMENT '赠送积分',
`createtime` int(11) DEFAULT NULL,
`status` int(11) DEFAULT '0' COMMENT '0未支付;1已支付;2已发货,3已收货,12接单',
`linkman` varchar(255) DEFAULT NULL,
`tel` varchar(50) DEFAULT NULL,
`area` varchar(255) DEFAULT NULL,
`area2` varchar(255) DEFAULT NULL,
`address` varchar(255) DEFAULT NULL,
`longitude` varchar(100) DEFAULT NULL,
`latitude` varchar(100) DEFAULT NULL,
`message` varchar(255) DEFAULT NULL,
`remark` varchar(255) DEFAULT NULL,
`payorderid` int(11) DEFAULT NULL,
`paytypeid` int(11) DEFAULT NULL,
`paytype` varchar(50) DEFAULT NULL,
`paynum` varchar(255) DEFAULT NULL,
`paytime` int(11) DEFAULT NULL,
`express_com` varchar(255) DEFAULT NULL COMMENT '快递公司',
`express_no` varchar(255) DEFAULT NULL COMMENT '快递单号',
`express_type` varchar(255) NULL COMMENT '物流类型',
`refund_reason` varchar(255) DEFAULT NULL,
`refund_money` decimal(11,2) DEFAULT '0.00',
`refund_status` int(1) DEFAULT '0' COMMENT '1申请退款审核中 2已同意退款 3已驳回',
`refund_time` int(11) DEFAULT NULL,
`refund_checkremark` varchar(255) DEFAULT NULL,
`send_time` bigint(20) DEFAULT NULL COMMENT '发货时间',
`collect_time` int(11) DEFAULT NULL COMMENT '收货时间',
`freight_id` int(11) DEFAULT NULL,
`freight_text` varchar(255) DEFAULT NULL,
`freight_type` tinyint(1) DEFAULT '0',
`mdid` int(11) DEFAULT NULL,
`freight_time` varchar(255) DEFAULT NULL,
`freight_content` text COMMENT '自动发货信息 卡密',
`hexiao_code` varchar(100) DEFAULT NULL COMMENT '唯一码 核销码',
`hexiao_qr` varchar(255) DEFAULT NULL,
`platform` varchar(255) DEFAULT 'wx',
`iscomment` tinyint(1) DEFAULT '0',
`field1` varchar(255) DEFAULT NULL,
`field2` varchar(255) DEFAULT NULL,
`field3` varchar(255) DEFAULT NULL,
`field4` varchar(255) DEFAULT NULL,
`field5` varchar(255) DEFAULT NULL,
`delete` tinyint(1) DEFAULT '0',
`isfenhong` tinyint(1) DEFAULT '0' COMMENT '是否已经分红',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `code` (`hexiao_code`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE,
KEY `status` (`status`) USING BTREE,
KEY `createtime` (`createtime`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_restaurant_takeaway_order_goods`;
CREATE TABLE `ddwx_restaurant_takeaway_order_goods` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`mid` int(11) DEFAULT NULL,
`orderid` int(11) DEFAULT NULL,
`ordernum` varchar(50) DEFAULT NULL,
`proid` int(11) DEFAULT NULL,
`name` varchar(255) DEFAULT NULL,
`pic` varchar(255) DEFAULT NULL,
`procode` varchar(255) DEFAULT NULL,
`ggid` int(11) DEFAULT NULL,
`ggname` varchar(255) DEFAULT NULL,
`cid` int(11) DEFAULT '0',
`num` int(11) DEFAULT NULL,
`cost_price` decimal(11,2) DEFAULT NULL,
`sell_price` decimal(11,2) DEFAULT NULL,
`totalprice` decimal(11,2) DEFAULT NULL,
`real_totalprice` decimal(10,2) DEFAULT '0.00' COMMENT '实际商品销售金额 减去了优惠券抵扣会员折扣满减积分抵扣的金额',
`status` int(1) DEFAULT '0' COMMENT '0未付款1已付款2已发货3已收货4申请退款5已退款',
`createtime` int(11) DEFAULT NULL,
`endtime` int(11) DEFAULT NULL,
`iscomment` tinyint(1) DEFAULT '0',
`parent1` int(11) DEFAULT NULL,
`parent2` int(11) DEFAULT NULL,
`parent3` int(11) DEFAULT NULL,
`parent1commission` decimal(11,2) DEFAULT '0.00',
`parent2commission` decimal(11,2) DEFAULT '0.00',
`parent3commission` decimal(11,2) DEFAULT '0.00',
`parent1score` int(11) DEFAULT '0',
`parent2score` int(11) DEFAULT '0',
`parent3score` int(11) DEFAULT '0',
`iscommission` tinyint(1) DEFAULT '0' COMMENT '佣金是否已发放',
`isfenhong` tinyint(1) DEFAULT '0' COMMENT '分红是否已结算',
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `bid` (`bid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE,
KEY `orderid` (`orderid`) USING BTREE,
KEY `proid` (`proid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_restaurant_takeaway_sysset`;
CREATE TABLE `ddwx_restaurant_takeaway_sysset` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`banner` varchar(255) DEFAULT NULL,
`pack_fee` decimal(10,2) DEFAULT '0.00',
`min_price` decimal(10,2) DEFAULT '0.00',
`start_hours` varchar(100) DEFAULT '00:00',
`end_hours` varchar(100) DEFAULT '00:00',
`confirm_auto` tinyint(1) DEFAULT '1',
`status` tinyint(1) DEFAULT '1',
`autoshdays` int(5) NOT NULL DEFAULT '3',
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_toupiao`;
CREATE TABLE `ddwx_toupiao` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`name` varchar(255) DEFAULT NULL,
`banner` varchar(255) DEFAULT NULL,
`color1` varchar(255) DEFAULT NULL,
`color2` varchar(255) DEFAULT NULL,
`listtype` int(11) DEFAULT '0',
`helptext` varchar(255) DEFAULT NULL,
`starttime` int(11) DEFAULT NULL,
`endtime` int(11) DEFAULT NULL,
`canapply` tinyint(1) DEFAULT NULL,
`apply_check` tinyint(1) DEFAULT NULL,
`help_check` tinyint(1) DEFAULT NULL,
`sort` int(11) DEFAULT '0',
`guize` longtext,
`sharetitle` varchar(255) DEFAULT NULL,
`sharepic` varchar(255) DEFAULT NULL,
`sharedesc` varchar(255) DEFAULT NULL,
`sharelink` varchar(255) DEFAULT NULL,
`createtime` int(11) DEFAULT NULL,
`status` int(11) DEFAULT '1',
`readcount` int(11) DEFAULT '0',
`per_daycount` int(11) DEFAULT '1' COMMENT '每天可投票数',
`per_allcount` int(11) DEFAULT '0' COMMENT '每人最多总共可投票数',
PRIMARY KEY (`id`),
KEY `aid` (`aid`),
KEY `status` (`status`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_toupiao_help`;
CREATE TABLE `ddwx_toupiao_help` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`mid` int(11) DEFAULT NULL,
`headimg` varchar(255) DEFAULT NULL,
`nickname` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL,
`tel` varchar(255) DEFAULT NULL,
`hid` int(11) DEFAULT NULL,
`joinid` int(11) DEFAULT NULL,
`createtime` int(11) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE,
KEY `hid` (`hid`) USING BTREE,
KEY `joinid` (`joinid`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4;
DROP TABLE IF EXISTS `ddwx_toupiao_join`;
CREATE TABLE `ddwx_toupiao_join` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`mid` int(11) DEFAULT NULL,
`hid` int(11) DEFAULT NULL,
`name` varchar(255) DEFAULT NULL,
`weixin` varchar(255) DEFAULT NULL,
`pic` varchar(255) DEFAULT NULL,
`pics` text ,
`detail_txt` text,
`detail` longtext,
`helpnum` int(11) DEFAULT '0',
`readcount` int(11) DEFAULT '0',
`createtime` int(11) DEFAULT NULL,
`status` tinyint(1) DEFAULT '0' COMMENT '0进行中 1通过 2驳回',
`reason` varchar(255) DEFAULT NULL,
`number` varchar(255) DEFAULT NULL,
`sort` int(11) DEFAULT '0',
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE,
KEY `hid` (`hid`) USING BTREE,
KEY `status` (`status`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_session`;
CREATE TABLE IF NOT EXISTS `ddwx_session` (
`session_id` varchar(128) COLLATE utf8mb4_unicode_ci NOT NULL,
`session_key` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`aid` int(11) DEFAULT NULL,
`mid` int(11) DEFAULT NULL,
`user_agent` text COLLATE utf8mb4_unicode_ci COMMENT 'Http User Agent',
`login_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '登录时间',
`login_ip` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '登录IP地址',
`login_ip_location` varchar(80) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'IP地址转换成的地理位置',
`platform` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
KEY `session_id` (`session_id`),
KEY `aid` (`aid`),
KEY `mid` (`mid`),
KEY `login_time` (`login_time`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
DROP TABLE IF EXISTS `ddwx_toutiaopay_log`;
CREATE TABLE `ddwx_toutiaopay_log` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`mid` int(11) DEFAULT NULL,
`openid` varchar(255) DEFAULT NULL,
`tablename` varchar(255) DEFAULT NULL,
`ordernum` varchar(255) DEFAULT NULL,
`mch_id` int(11) DEFAULT NULL,
`transaction_id` varchar(255) DEFAULT NULL,
`total_fee` decimal(11,2) DEFAULT '0.00',
`givescore` int(11) DEFAULT '0',
`createtime` int(11) DEFAULT NULL,
`fenzhangmoney` decimal(11,2) DEFAULT '0.00',
`isfenzhang` tinyint(1) DEFAULT '0',
`fz_ordernum` varchar(100) DEFAULT NULL,
`fz_errmsg` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE,
KEY `mid` (`mid`) USING BTREE,
KEY `createtime` (`createtime`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_business_recharge_order`;
CREATE TABLE `ddwx_business_recharge_order` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT NULL,
`money` decimal(11,2) DEFAULT '0.00',
`ordernum` varchar(100) DEFAULT NULL,
`createtime` int(11) DEFAULT NULL,
`status` tinyint(1) DEFAULT '0',
`payorderid` int(11) DEFAULT NULL,
`paytypeid` int(11) DEFAULT NULL,
`paytype` varchar(100) DEFAULT NULL,
`paynum` varchar(255) DEFAULT NULL,
`paytime` int(11) DEFAULT NULL,
`platform` varchar(100) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `mid` (`bid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_yuyue_fuwu`;
CREATE TABLE `ddwx_yuyue_fuwu` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`name` varchar(255) DEFAULT NULL,
`desc` text,
`status` int(1) DEFAULT '1',
`sort` int(11) DEFAULT '1',
`createtime` int(11) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_article_set`;
CREATE TABLE `ddwx_article_set` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`listtype` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `aid` (`aid`),
KEY `bid` (`bid`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_restaurant_deposit_sysset`;
CREATE TABLE `ddwx_restaurant_deposit_sysset` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`bid` int(11) DEFAULT '0',
`time` varchar(100) DEFAULT '',
`status` tinyint(2) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
DROP TABLE IF EXISTS `ddwx_cashback`;
CREATE TABLE `ddwx_cashback` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) NULL DEFAULT 0,
`bid` int(11) NULL DEFAULT 0,
`name` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '名称',
`back_ratio` decimal(10, 2) NULL DEFAULT 0.00 COMMENT '返还比率',
`back_type` tinyint(1) NULL DEFAULT 0 COMMENT '返还类型 1、余额 2、佣金 3、积分',
`gettj` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '参与人群',
`fwtype` tinyint(1) NULL DEFAULT 0,
`categoryids` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`productids` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`minprice` decimal(10, 2) NULL DEFAULT 0.00,
`starttime` int(11) NULL DEFAULT NULL,
`endtime` int(11) NULL DEFAULT NULL,
`sort` int(11) NULL DEFAULT 0,
`status` int(1) NULL DEFAULT 1,
`createtime` int(11) NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
INDEX `aid`(`aid`) USING BTREE,
INDEX `bid`(`bid`) USING BTREE,
INDEX `status`(`status`) USING BTREE,
INDEX `starttime`(`starttime`) USING BTREE,
INDEX `endtime`(`endtime`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_wxpic_cache`;
CREATE TABLE `ddwx_wxpic_cache` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`pic` varchar(255) DEFAULT NULL,
`media_id` varchar(255) DEFAULT NULL,
`img_url` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_sxpay_income`;
CREATE TABLE `ddwx_sxpay_income` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`business_code` varchar(100) DEFAULT NULL,
`applicationId` varchar(100) DEFAULT NULL,
`applicationId_edit` varchar(255) DEFAULT NULL,
`subject_type` varchar(100) DEFAULT 'SUBJECT_TYPE_MICRO',
`merchant_shortname` varchar(100) DEFAULT NULL,
`service_phone` varchar(100) DEFAULT NULL,
`mccCd` varchar(255) DEFAULT NULL,
`store_name` varchar(100) DEFAULT NULL,
`store_province` varchar(100) DEFAULT NULL,
`store_city` varchar(100) DEFAULT NULL,
`store_area` varchar(100) DEFAULT NULL,
`store_street` varchar(100) DEFAULT NULL,
`store_entrance_pic` varchar(255) DEFAULT NULL,
`indoor_pic` varchar(255) DEFAULT NULL,
`store_other_pics` varchar(600) DEFAULT NULL,
`business_license_copy` varchar(255) DEFAULT NULL,
`business_license_number` varchar(100) DEFAULT NULL,
`business_merchant_name` varchar(100) DEFAULT NULL,
`business_company_address` varchar(100) DEFAULT NULL,
`business_legal_person` varchar(100) DEFAULT NULL,
`identity_id_card_copy` varchar(255) DEFAULT NULL,
`identity_id_card_national` varchar(255) DEFAULT NULL,
`identity_id_card_name` varchar(100) DEFAULT NULL,
`identity_id_card_number` varchar(100) DEFAULT NULL,
`identity_id_card_valid_time1` varchar(100) DEFAULT NULL,
`identity_id_card_valid_time2` varchar(100) DEFAULT NULL,
`identity_id_card_valid_time_cq` varchar(100) DEFAULT NULL,
`contact_mobile` varchar(100) DEFAULT NULL,
`contact_email` varchar(100) DEFAULT NULL,
`jiesuan_bank_account_type` varchar(255) DEFAULT NULL,
`jiesuan_account_name` varchar(255) DEFAULT NULL,
`jiesuan_account_bank` varchar(100) DEFAULT NULL,
`jiesuan_bank_name` varchar(100) DEFAULT NULL,
`jiesuan_bank_province` varchar(100) DEFAULT NULL,
`jiesuan_bank_city` varchar(100) DEFAULT NULL,
`jiesuan_bank_area` varchar(100) DEFAULT NULL,
`jiesuan_account_number` varchar(100) DEFAULT NULL,
`account_license_pic` varchar(255) DEFAULT NULL,
`bank_card_pic` varchar(255) DEFAULT NULL,
`business_addition_msg` varchar(255) DEFAULT NULL,
`business_addition_pics2` varchar(255) DEFAULT NULL,
`createtime` int(11) DEFAULT NULL,
`delete` tinyint(1) DEFAULT '0',
`taskStatus` varchar(10) DEFAULT '-1' COMMENT '-1 未提交 0审核中 1入驻通过 2入驻驳回 5商户修改通过 6 商户修改驳回',
`suggestion` varchar(255) DEFAULT NULL,
`taskStatus_edit` varchar(10) DEFAULT '-1',
`suggestion_edit` varchar(255) DEFAULT NULL,
`isEspecial` varchar(255) DEFAULT NULL,
`suggestion2` varchar(255) DEFAULT NULL,
`specialMerFlagEndTime` varchar(255) DEFAULT NULL,
`submchid` varchar(255) DEFAULT NULL,
`zfbmchid` varchar(255) DEFAULT NULL,
`shiming_status` tinyint(1) DEFAULT '0' COMMENT '0未实名 1审核中 2',
`shiming_qrurl` varchar(255) DEFAULT NULL,
`mchkey` varchar(100) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ddwx_designerpage_tab`;
CREATE TABLE `ddwx_designerpage_tab` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) DEFAULT NULL,
`tabid` varchar(100) DEFAULT '0',
`tabindexid` varchar(100) DEFAULT NULL,
`content` longtext,
`createtime` int(11) DEFAULT NULL,
`updatetime` int(11) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `aid` (`aid`) USING BTREE,
KEY `tabid` (`tabid`) USING BTREE,
KEY `tabindexid` (`tabindexid`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
sql;
?>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/alexQiu/ebay-service.git
[email protected]:alexQiu/ebay-service.git
alexQiu
ebay-service
ebay-service
master

搜索帮助