123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337 |
- SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
- SET AUTOCOMMIT = 0;
- START TRANSACTION;
- SET time_zone = "+00:00";
- ;
- ;
- ;
- ;
- CREATE DATABASE IF NOT EXISTS `churen` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
- USE `churen`;
- DROP TABLE IF EXISTS `churen_act_info`;
- CREATE TABLE `churen_act_info` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `name` varchar(80) DEFAULT NULL COMMENT '标题-活动标题,同时也用于分享标题',
- `desc` varchar(500) DEFAULT NULL COMMENT '摘要-活动摘要,同时也用于分享内容',
- `cover` varchar(150) DEFAULT NULL COMMENT '封面图',
- `type` int(11) NOT NULL DEFAULT '1' COMMENT '活动类型',
- `content` text COMMENT '内容',
- `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序-数值越大越靠前,相当于置顶',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间',
- `color` varchar(10) NOT NULL COMMENT '按钮颜色-请填写颜色代码,选填项',
- `bgcolor` varchar(10) NOT NULL COMMENT '背景颜色-请填写颜色代码,选填项',
- `back` varchar(150) NOT NULL COMMENT '背景图'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_area_city`;
- CREATE TABLE `churen_area_city` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `name` varchar(150) DEFAULT NULL COMMENT '城市名称',
- `pinyin` varchar(300) DEFAULT NULL COMMENT '拼音',
- `pinyin_first` varchar(30) DEFAULT NULL COMMENT '拼音首字母',
- `province_id` int(11) NOT NULL DEFAULT '0' COMMENT '省份',
- `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_area_county`;
- CREATE TABLE `churen_area_county` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `name` varchar(150) DEFAULT NULL COMMENT '县区名称',
- `pinyin` varchar(300) DEFAULT NULL COMMENT '拼音',
- `pinyin_first` varchar(30) DEFAULT NULL COMMENT '拼音首字母',
- `city_id` int(11) NOT NULL DEFAULT '0' COMMENT '城市',
- `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_area_province`;
- CREATE TABLE `churen_area_province` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `name` varchar(150) DEFAULT NULL COMMENT '省份名称',
- `pinyin` varchar(300) DEFAULT NULL COMMENT '拼音',
- `pinyin_first` varchar(30) DEFAULT NULL COMMENT '拼音首字母',
- `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_area_town`;
- CREATE TABLE `churen_area_town` (
- `id` bigint(11) UNSIGNED NOT NULL COMMENT 'ID',
- `name` varchar(150) DEFAULT NULL COMMENT '街道名称',
- `pinyin` varchar(300) DEFAULT NULL COMMENT '拼音',
- `pinyin_first` varchar(30) DEFAULT NULL COMMENT '拼音首字母',
- `county_id` int(11) NOT NULL DEFAULT '0' COMMENT '县区',
- `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_area_village`;
- CREATE TABLE `churen_area_village` (
- `id` bigint(11) UNSIGNED NOT NULL COMMENT 'ID',
- `name` varchar(150) DEFAULT NULL COMMENT '社区名称',
- `pinyin` varchar(300) DEFAULT NULL COMMENT '拼音',
- `pinyin_first` varchar(30) DEFAULT NULL COMMENT '拼音首字母',
- `code` int(11) NOT NULL DEFAULT '0' COMMENT '城乡分类代码',
- `town_id` int(11) NOT NULL DEFAULT '0' COMMENT '街道',
- `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_attr_cate`;
- CREATE TABLE `churen_attr_cate` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `name` varchar(150) DEFAULT NULL COMMENT '类别名称',
- `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_attr_info`;
- CREATE TABLE `churen_attr_info` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `name` varchar(150) DEFAULT NULL COMMENT '名称',
- `cate_id` int(11) NOT NULL DEFAULT '1' COMMENT '属性类别',
- `is_must` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否必填',
- `is_sell` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否销售属性',
- `type` tinyint(11) NOT NULL DEFAULT '1' COMMENT '属性类型',
- `data_type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '数据类型-选择类型之后会自动验证数据有效性',
- `match` varchar(600) DEFAULT NULL COMMENT '正则匹配规则-直接输入正则表达式即可',
- `list_reorder` int(11) NOT NULL DEFAULT '1' COMMENT '列表页排序-设置该属性在列表页中的排序,数字越大越靠前,如果为负数或者0,则不加入到列表页中。',
- `search_reorder` int(11) NOT NULL DEFAULT '1' COMMENT '搜索条件排序-设置搜索条件中的排序,数字越大越靠前,如果为负数或者0,则不加入到搜索条件中。',
- `view_reorder` int(11) NOT NULL DEFAULT '1' COMMENT '详情页排序-设置该属性在详情页中的排序,数字越大越靠前,如果为负数或者0,则不加入到详情页中。',
- `unit` varchar(150) DEFAULT NULL COMMENT '单位-填写属性单位,选填项',
- `ename` varchar(150) DEFAULT NULL COMMENT '英文标识-该标识一般为前端样式名称,选填项',
- `icon` varchar(150) DEFAULT NULL COMMENT '图标',
- `color` varchar(10) DEFAULT NULL COMMENT '字体颜色-请填写颜色代码',
- `bgcolor` varchar(10) DEFAULT NULL COMMENT '背景颜色-请填写颜色代码',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间',
- `sell_type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '销售属性类型-组合类型将会生成不同的SKU组合价格,根据不同的SKU组合生成总价和库存;单选类型将生成单独的属性价格,将影响总价,可单独设置库存;输入类型一般为输入尺寸,需要单独设置影响总价的方式;具体价格都需要在商品中设置',
- `sell_compute` tinyint(1) NOT NULL DEFAULT '1' COMMENT '计算方式-如输入类型设置了宽度和高度,总价需要平米来计算,这里选择相乘即可',
- `sell_value` varchar(50) NOT NULL DEFAULT '0' COMMENT '价格起始值-同样是平米为例,这里输入10的话,就是大于10平米时开始加价,具体加价多少需要在商品中设置'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_attr_search`;
- CREATE TABLE `churen_attr_search` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `info_id` int(11) NOT NULL DEFAULT '1' COMMENT '属性ID',
- `name` varchar(1000) DEFAULT NULL COMMENT '搜索名称-如设置为100万以下',
- `value` varchar(1000) DEFAULT NULL COMMENT '搜索值-可以设置为{V}<=100,{V}为当前值,如果是区间输入框,则{S}为区间最小值,{E}为区间最大值',
- `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_attr_value`;
- CREATE TABLE `churen_attr_value` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `info_id` int(11) NOT NULL DEFAULT '1' COMMENT '属性ID',
- `name` varchar(1000) DEFAULT NULL COMMENT '属性值名称-如绿色',
- `value` varchar(1000) DEFAULT NULL COMMENT '属性值-如#000000,可以为空',
- `icon` varchar(150) DEFAULT NULL COMMENT '图标',
- `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_card_add`;
- CREATE TABLE `churen_card_add` (
- `id` int(11) UNSIGNED NOT NULL COMMENT '系统ID',
- `card_id` int(11) NOT NULL DEFAULT '0' COMMENT '礼品卡',
- `type` int(11) NOT NULL DEFAULT '1' COMMENT '生成方式',
- `num` varchar(32) DEFAULT NULL COMMENT '生成数量',
- `content` text COMMENT '填写卡号-多个换行隔开,如卡号重复将不会录入到库中',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_card_code`;
- CREATE TABLE `churen_card_code` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `card_id` int(11) NOT NULL DEFAULT '0' COMMENT '礼品卡',
- `card` varchar(32) DEFAULT NULL COMMENT '卡号',
- `status` int(11) NOT NULL DEFAULT '1' COMMENT '使用状态',
- `total_cash` float NOT NULL DEFAULT '0' COMMENT '总面值',
- `use_cash` float NOT NULL DEFAULT '0' COMMENT '已用面值',
- `uid` int(11) NOT NULL DEFAULT '0' COMMENT '下单用户',
- `dh_uid` int(11) NOT NULL DEFAULT '0' COMMENT '兑换用户',
- `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '下单门店',
- `order_id` int(11) NOT NULL DEFAULT '0' COMMENT '订单表ID',
- `order_card_id` int(11) NOT NULL DEFAULT '0' COMMENT '订单表ID',
- `bdate` int(11) NOT NULL DEFAULT '0' COMMENT '绑定时间',
- `ddate` int(11) NOT NULL DEFAULT '0' COMMENT '兑换时间',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '生成时间',
- `city` int(11) NOT NULL COMMENT '城市'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_card_info`;
- CREATE TABLE `churen_card_info` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `name` varchar(80) DEFAULT NULL COMMENT '礼品卡名称',
- `type_id` int(11) NOT NULL DEFAULT '1' COMMENT '礼品卡类型',
- `value` int(11) NOT NULL DEFAULT '100' COMMENT '面值',
- `price` varchar(80) DEFAULT NULL COMMENT '售价',
- `card_type` int(11) NOT NULL DEFAULT '3' COMMENT '卡号生成规则',
- `card_prefix` varchar(80) DEFAULT NULL COMMENT '卡号前缀-前缀不占用卡号长度的位数,如卡号长度填写14,卡号前缀为Q,则生成卡号前缀+14位随机数',
- `card_len` int(11) NOT NULL DEFAULT '14' COMMENT '卡号长度',
- `status` int(11) NOT NULL DEFAULT '1' COMMENT '状态',
- `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序-数值越大越靠前',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_card_order`;
- CREATE TABLE `churen_card_order` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `uid` int(11) NOT NULL DEFAULT '0' COMMENT '购买人名称',
- `mobile` varchar(300) DEFAULT NULL COMMENT '下单手机号',
- `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '兑换门店',
- `address_id` int(11) NOT NULL DEFAULT '0' COMMENT '送货地址',
- `order_num` varchar(100) DEFAULT NULL COMMENT '订单号',
- `oprice` varchar(50) DEFAULT NULL COMMENT '原价',
- `price` varchar(50) DEFAULT NULL COMMENT '支付金额',
- `num` int(11) NOT NULL DEFAULT '0' COMMENT '购买数量',
- `status` int(11) NOT NULL DEFAULT '1' COMMENT '状态',
- `fdate` int(11) NOT NULL DEFAULT '0' COMMENT '完成时间',
- `operdate` int(11) NOT NULL DEFAULT '0' COMMENT '操作时间',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '生成时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_card_order_card`;
- CREATE TABLE `churen_card_order_card` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `order_id` int(11) NOT NULL DEFAULT '0' COMMENT '订单表ID',
- `uid` int(11) NOT NULL DEFAULT '0' COMMENT '购买人名称',
- `card_id` int(11) NOT NULL DEFAULT '0' COMMENT '礼品卡名称',
- `city` int(11) NOT NULL DEFAULT '0' COMMENT '城市',
- `price` varchar(50) DEFAULT NULL COMMENT '单价',
- `num` int(11) NOT NULL DEFAULT '0' COMMENT '购买数量',
- `cards` varchar(2000) DEFAULT NULL COMMENT '卡号',
- `status` int(11) NOT NULL DEFAULT '1' COMMENT '状态',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_card_order_ps`;
- CREATE TABLE `churen_card_order_ps` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `order_id` int(11) NOT NULL DEFAULT '0' COMMENT '订单表ID',
- `service_id` int(11) NOT NULL DEFAULT '-1' COMMENT '配送服务商',
- `order_num` varchar(800) DEFAULT NULL COMMENT '快递单号-多个用换行隔开',
- `num` int(11) NOT NULL DEFAULT '0' COMMENT '包裹数量',
- `price` varchar(50) DEFAULT NULL COMMENT '快递费用',
- `status` int(11) NOT NULL DEFAULT '1' COMMENT '状态',
- `qu_date` int(11) NOT NULL DEFAULT '0' COMMENT '取件时间',
- `qs_date` int(11) NOT NULL DEFAULT '0' COMMENT '签收时间',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_card_type`;
- CREATE TABLE `churen_card_type` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `name` varchar(200) DEFAULT NULL COMMENT '类型名称',
- `desc` varchar(800) DEFAULT NULL COMMENT '类型描述',
- `type` int(11) NOT NULL DEFAULT '1' COMMENT '购买方式',
- `shop_type` varchar(200) DEFAULT NULL COMMENT '可用门店类型',
- `city_type` int(11) NOT NULL DEFAULT '1' COMMENT '可用范围',
- `city` varchar(2000) DEFAULT NULL COMMENT '选择城市',
- `cover` varchar(150) DEFAULT NULL COMMENT '封面图',
- `content` text COMMENT '购买使用须知',
- `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序-数值越大越靠前,相当于置顶',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
- `icon` varchar(150) NOT NULL COMMENT '图标',
- `bgpic` varchar(150) NOT NULL COMMENT '背景图'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_cash_factory`;
- CREATE TABLE `churen_cash_factory` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '对账单类型',
- `day` int(11) NOT NULL DEFAULT '0' COMMENT '对账单时间',
- `factory_id` int(11) NOT NULL DEFAULT '0' COMMENT '对账工厂',
- `start` int(11) NOT NULL DEFAULT '0' COMMENT '对账单开始时间',
- `end` int(11) NOT NULL DEFAULT '0' COMMENT '对账单结束时间',
- `cash` varchar(100) DEFAULT NULL COMMENT '对账金额',
- `num` varchar(100) DEFAULT NULL COMMENT '对账数量',
- `factory_status` int(11) NOT NULL DEFAULT '1' COMMENT '工厂对账状态',
- `status` int(11) NOT NULL DEFAULT '1' COMMENT '平台对账状态',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '生成时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_cash_order`;
- CREATE TABLE `churen_cash_order` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `order_num` varchar(100) DEFAULT NULL COMMENT '结算单号',
- `type` int(11) NOT NULL DEFAULT '0' COMMENT '采购人类型',
- `type_id` int(11) NOT NULL DEFAULT '0' COMMENT '结算门店',
- `source_type` int(11) NOT NULL DEFAULT '0' COMMENT '供货商类型',
- `source_id` int(11) NOT NULL DEFAULT '0' COMMENT '结算门店',
- `source_order_id` int(11) NOT NULL DEFAULT '0' COMMENT '订货单ID',
- `source_order_num` varchar(100) DEFAULT NULL COMMENT '订货单编号',
- `refund_id` int(11) NOT NULL DEFAULT '-1' COMMENT '退款ID',
- `num` int(11) NOT NULL DEFAULT '0' COMMENT '数量',
- `cash` varchar(50) DEFAULT NULL COMMENT '结算金额',
- `p_cash` varchar(50) DEFAULT NULL COMMENT '结算金额',
- `jstype` tinyint(1) NOT NULL DEFAULT '1' COMMENT '结算类型',
- `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '入账状态',
- `audit` tinyint(1) NOT NULL DEFAULT '1' COMMENT '审核状态',
- `audit_type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '审核类型',
- `fdate` int(11) NOT NULL DEFAULT '0' COMMENT '完成时间',
- `operdate` int(11) NOT NULL DEFAULT '0' COMMENT '结算时间',
- `desc` varchar(500) DEFAULT NULL COMMENT '未通过原因',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '生成时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_cash_shop`;
- CREATE TABLE `churen_cash_shop` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '对账单类型',
- `day` int(11) NOT NULL DEFAULT '0' COMMENT '对账单时间',
- `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '对账门店',
- `start` int(11) NOT NULL DEFAULT '0' COMMENT '对账单开始时间',
- `end` int(11) NOT NULL DEFAULT '0' COMMENT '对账单结束时间',
- `cash` varchar(100) DEFAULT NULL COMMENT '对账金额',
- `num` varchar(100) DEFAULT NULL COMMENT '对账数量',
- `shop_status` int(11) NOT NULL DEFAULT '1' COMMENT '门店对账状态',
- `status` int(11) NOT NULL DEFAULT '1' COMMENT '平台对账状态',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '生成时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_cash_store`;
- CREATE TABLE `churen_cash_store` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '对账单类型',
- `day` int(11) NOT NULL DEFAULT '0' COMMENT '对账单时间',
- `store_id` int(11) NOT NULL DEFAULT '0' COMMENT '对账仓库',
- `start` int(11) NOT NULL DEFAULT '0' COMMENT '对账单开始时间',
- `end` int(11) NOT NULL DEFAULT '0' COMMENT '对账单结束时间',
- `cash` varchar(100) DEFAULT NULL COMMENT '对账金额',
- `num` varchar(100) DEFAULT NULL COMMENT '对账数量',
- `store_status` int(11) NOT NULL DEFAULT '1' COMMENT '仓库对账状态',
- `status` int(11) NOT NULL DEFAULT '1' COMMENT '平台对账状态',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '生成时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_category_attr`;
- CREATE TABLE `churen_category_attr` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `category` varchar(500) DEFAULT NULL COMMENT '分类',
- `attr` varchar(800) DEFAULT NULL COMMENT '属性设置',
- `attr_input` text COMMENT '属性值设置',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_category_info`;
- CREATE TABLE `churen_category_info` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `name` varchar(150) DEFAULT NULL COMMENT '分类名称',
- `key` varchar(150) DEFAULT NULL COMMENT '分类标识-请输入英文,分类标识为唯一项,用来区分前端展示,选填项',
- `info` varchar(800) DEFAULT NULL COMMENT '上级分类',
- `project_id` int(11) NOT NULL DEFAULT '1' COMMENT '所属项目',
- `icon` varchar(150) DEFAULT NULL COMMENT '图标',
- `color` varchar(10) DEFAULT NULL COMMENT '字体颜色-请填写颜色代码',
- `bgcolor` varchar(10) DEFAULT NULL COMMENT '背景颜色-请填写颜色代码',
- `info_id` int(11) NOT NULL DEFAULT '-1' COMMENT '上级分类',
- `top_id` int(11) NOT NULL DEFAULT '-1' COMMENT '顶级分类',
- `level` int(11) NOT NULL DEFAULT '1' COMMENT '分类级别-1为顶级分类、2为2级分类,-1为最后一级分类',
- `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否启用',
- `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_category_project`;
- CREATE TABLE `churen_category_project` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `name` varchar(150) DEFAULT NULL COMMENT '项目名称',
- `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_content_feature`;
- CREATE TABLE `churen_content_feature` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `name` varchar(80) DEFAULT NULL COMMENT '标题-专题标题,同时也用于分享标题',
- `desc` varchar(500) DEFAULT NULL COMMENT '摘要-专题摘要,同时也用于分享内容',
- `cover` varchar(150) DEFAULT NULL COMMENT '封面图',
- `content` text COMMENT '内容',
- `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序-数值越大越靠前,相当于置顶',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_content_news`;
- CREATE TABLE `churen_content_news` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `name` varchar(80) DEFAULT NULL COMMENT '标题-文章标题,同时也用于分享标题',
- `desc` varchar(500) DEFAULT NULL COMMENT '摘要-文章摘要,同时也用于分享内容',
- `cover` varchar(150) DEFAULT NULL COMMENT '封面图',
- `content` text COMMENT '内容',
- `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序-数值越大越靠前,相当于置顶',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_factory_goods`;
- CREATE TABLE `churen_factory_goods` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `factory_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属工厂',
- `goods_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品名称',
- `category_id` int(11) NOT NULL DEFAULT '0' COMMENT '分类ID',
- `p_price` varchar(100) NOT NULL DEFAULT '0' COMMENT '出厂价',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
- `price_type` int(11) NOT NULL DEFAULT '0' COMMENT '价格类型',
- `sell_num` int(11) NOT NULL DEFAULT '0' COMMENT '销量',
- `status` tinyint(1) NOT NULL DEFAULT '2' COMMENT '状态'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_factory_goods_sku`;
- CREATE TABLE `churen_factory_goods_sku` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `factory_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属工厂',
- `goods_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品名称',
- `sku_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品SKU',
- `p_price` varchar(100) NOT NULL DEFAULT '0' COMMENT '出厂价',
- `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序-数值越大越靠前,相当于置顶',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '数据状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '发布时间',
- `sell_num` int(11) NOT NULL DEFAULT '0' COMMENT '销量'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_factory_info`;
- CREATE TABLE `churen_factory_info` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户名',
- `name` varchar(32) DEFAULT NULL COMMENT '工厂名称',
- `truename` varchar(100) DEFAULT NULL COMMENT '联系人姓名',
- `mobile` bigint(11) NOT NULL DEFAULT '0' COMMENT '联系人电话',
- `area` varchar(500) DEFAULT NULL COMMENT '所在城市',
- `province` int(11) NOT NULL DEFAULT '0' COMMENT '省份',
- `city` int(11) NOT NULL DEFAULT '0' COMMENT '城市',
- `map` varchar(300) DEFAULT NULL COMMENT '地理位置',
- `lng` varchar(100) DEFAULT NULL COMMENT '经度',
- `lat` varchar(100) DEFAULT NULL COMMENT '纬度',
- `address` varchar(1000) DEFAULT NULL COMMENT '工厂地址',
- `goods` text COMMENT '请先选择分类-选择分类,之后选择分类下的商品,点击商品名称可以设置出厂价',
- `license` varchar(150) DEFAULT NULL COMMENT '营业执照',
- `license_number` varchar(200) DEFAULT NULL COMMENT '营业执照号码',
- `company_name` varchar(200) DEFAULT NULL COMMENT '公司名称',
- `idcard_front` varchar(150) DEFAULT NULL COMMENT '身份证正面',
- `idcard_back` varchar(150) DEFAULT NULL COMMENT '身份证背面',
- `kh_license` varchar(150) DEFAULT NULL COMMENT '开户许可证',
- `status` int(11) NOT NULL DEFAULT '1' COMMENT '认证状态',
- `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间',
- `stat_type` int(11) NOT NULL DEFAULT '1' COMMENT '对账周期-可以选择按月还是按周生成对账单',
- `stat_day` int(11) NOT NULL DEFAULT '10' COMMENT '对账单生成日期-这里直接填写对账周期内的第几天即可,如按月对账,这里填写10,就是本月10号生成上一个月的对账单,如按周对账,这里填写2,就是本周二生成上一周的对账单'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_factory_member`;
- CREATE TABLE `churen_factory_member` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户名',
- `factory_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属工厂',
- `role_id` varchar(60) DEFAULT NULL COMMENT '角色',
- `name` varchar(32) DEFAULT NULL COMMENT '员工姓名',
- `mobile` bigint(11) NOT NULL DEFAULT '0' COMMENT '员工手机号',
- `avatar` varchar(150) DEFAULT NULL COMMENT '头像',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_factory_order`;
- CREATE TABLE `churen_factory_order` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `factory_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属工厂',
- `store_id` int(11) NOT NULL DEFAULT '-1' COMMENT '所属仓库',
- `store_order_id` int(11) NOT NULL DEFAULT '0' COMMENT '仓库订单ID',
- `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属门店',
- `shop_order_id` int(11) NOT NULL DEFAULT '0' COMMENT '门店订单ID',
- `name` varchar(80) DEFAULT NULL COMMENT '订单名称',
- `order_num` varchar(100) DEFAULT NULL COMMENT '订单编号',
- `price` varchar(50) DEFAULT NULL COMMENT '购买价格',
- `num` int(11) NOT NULL DEFAULT '0' COMMENT '购买数量',
- `pay_id` varchar(100) DEFAULT NULL COMMENT '支付订单ID',
- `pay_status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '支付状态',
- `pay_price` varchar(50) DEFAULT NULL COMMENT '付款金额',
- `info` varchar(300) DEFAULT NULL COMMENT '订单备注',
- `note` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否发送状态提醒-1未发送,2已发送',
- `notice` int(11) NOT NULL DEFAULT '0' COMMENT '模板消息提醒次数',
- `tk_pic` varchar(150) DEFAULT NULL COMMENT '退款截图',
- `tk_time` int(11) NOT NULL DEFAULT '0' COMMENT '退款时间',
- `tk_admin` int(11) NOT NULL DEFAULT '1' COMMENT '退款审核人',
- `tk_desc` varchar(300) DEFAULT NULL COMMENT '退款备注',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '下单时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_goods_add_card`;
- CREATE TABLE `churen_goods_add_card` (
- `id` int(11) UNSIGNED NOT NULL COMMENT '系统ID',
- `card_id` int(11) NOT NULL DEFAULT '0' COMMENT '礼品卡',
- `num` varchar(32) DEFAULT NULL COMMENT '兑换码数量',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_goods_card`;
- CREATE TABLE `churen_goods_card` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `name` varchar(80) DEFAULT NULL COMMENT '礼品卡名称',
- `type` int(11) NOT NULL DEFAULT '1' COMMENT '礼品卡类型',
- `day` int(11) NOT NULL DEFAULT '7' COMMENT '有效天数',
- `method` int(11) NOT NULL DEFAULT '3' COMMENT '领取方式',
- `goods` text COMMENT '商品配置',
- `status` int(11) NOT NULL DEFAULT '1' COMMENT '状态',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间',
- `card_type` int(11) NOT NULL DEFAULT '3' COMMENT '卡号生成规则',
- `card_prefix` varchar(80) NOT NULL COMMENT '卡号前缀-前缀不占用卡号长度的位数,如卡号长度填写14,卡号前缀为Q,则生成卡号前缀+14位随机数',
- `card_len` int(11) NOT NULL DEFAULT '14' COMMENT '卡号长度',
- `pwd_type` int(11) NOT NULL DEFAULT '3' COMMENT '密码生成规则',
- `pwd_prefix` varchar(80) NOT NULL COMMENT '密码前缀',
- `pwd_len` int(11) NOT NULL DEFAULT '8' COMMENT '密码长度'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_goods_card_code`;
- CREATE TABLE `churen_goods_card_code` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `card_id` int(11) NOT NULL DEFAULT '0' COMMENT '礼品卡',
- `card` varchar(32) DEFAULT NULL COMMENT '卡号',
- `pwd` varchar(32) DEFAULT NULL COMMENT '密码',
- `status` int(11) NOT NULL DEFAULT '1' COMMENT '使用状态',
- `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户信息',
- `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '兑换门店',
- `order_id` int(11) NOT NULL DEFAULT '0' COMMENT '订单表ID',
- `ddate` int(11) NOT NULL DEFAULT '0' COMMENT '兑换时间',
- `edate` int(11) NOT NULL DEFAULT '0' COMMENT '失效时间',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '生成时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_goods_column`;
- CREATE TABLE `churen_goods_column` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `name` varchar(150) DEFAULT NULL COMMENT '栏目名称',
- `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_goods_coupon`;
- CREATE TABLE `churen_goods_coupon` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `name` varchar(80) DEFAULT NULL COMMENT '优惠券名称',
- `type` int(11) NOT NULL DEFAULT '1' COMMENT '优惠券类型',
- `method` int(11) NOT NULL DEFAULT '1' COMMENT '优惠券属性',
- `total_cash` varchar(100) DEFAULT NULL COMMENT '满减金额-如满100减50,这里填写100',
- `cash` varchar(100) DEFAULT NULL COMMENT '抵扣金额',
- `status` int(11) NOT NULL DEFAULT '1' COMMENT '状态',
- `content` text COMMENT '使用规则',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_goods_info`;
- CREATE TABLE `churen_goods_info` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `name` varchar(800) DEFAULT NULL COMMENT '商品名称',
- `category` varchar(500) DEFAULT NULL COMMENT '分类',
- `top_category_id` int(11) NOT NULL DEFAULT '-1' COMMENT '顶级分类ID-顶级分类,用于分类查询',
- `second_category_id` int(11) NOT NULL DEFAULT '-1' COMMENT '二级分类ID-二级分类,用于分类查询',
- `category_id` int(11) NOT NULL DEFAULT '-1' COMMENT '子分类ID-最后一个级别的分类,用于分类查询',
- `area` int(11) NOT NULL DEFAULT '0' COMMENT '所在地区',
- `mode` int(11) NOT NULL DEFAULT '1' COMMENT '取货形式',
- `price_type` int(11) NOT NULL DEFAULT '1' COMMENT '价格类型',
- `price` varchar(100) NOT NULL DEFAULT '0' COMMENT '销售价',
- `s_price` varchar(100) NOT NULL DEFAULT '0' COMMENT '市场价',
- `f_price` varchar(100) NOT NULL DEFAULT '0' COMMENT '采购价',
- `cover` varchar(150) DEFAULT NULL COMMENT '封面图-图片尺寸300*300PX或等比尺寸,上传大小不能超过2M,支持JPG、PNG、GIF格式,建议上传JPG格式,用户上传图片之后会自动进行居中裁剪',
- `video` varchar(800) DEFAULT NULL COMMENT '视频-视频格式MP4,上传大小不能超过4G',
- `pic` text COMMENT '多张图片-图片尺寸750*422PX或等比尺寸,上传大小不能超过2M,支持JPG、PNG、GIF格式,建议上传JPG格式,用户上传图片之后会自动进行居中裁剪',
- `top` int(11) NOT NULL DEFAULT '2' COMMENT '是否人气推荐',
- `youhui` int(11) NOT NULL DEFAULT '2' COMMENT '是否每日优惠',
- `content` text COMMENT '内容介绍',
- `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序-数值越大越靠前,相当于置顶',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '数据状态',
- `udate` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '发布时间',
- `column_id` varchar(8000) NOT NULL COMMENT '栏目',
- `hot` int(11) NOT NULL DEFAULT '2' COMMENT '是否热门商品',
- `goods` text NOT NULL COMMENT '套餐商品配置-套餐商品只可以选择普通商品',
- `sku_id` int(11) NOT NULL DEFAULT '-1' COMMENT 'SKU_ID',
- `tag_id` varchar(800) NOT NULL COMMENT '标签',
- `sell_type` int(11) NOT NULL DEFAULT '1' COMMENT '售卖类型',
- `min` int(11) NOT NULL DEFAULT '1' COMMENT '起购数',
- `code` varchar(100) NOT NULL COMMENT '商品条码号'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_goods_info_category`;
- CREATE TABLE `churen_goods_info_category` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `info_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品ID',
- `category_id` int(11) NOT NULL DEFAULT '0' COMMENT '分类ID',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '数据状态'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_goods_info_column`;
- CREATE TABLE `churen_goods_info_column` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `info_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品ID',
- `column_id` int(11) NOT NULL DEFAULT '0' COMMENT '栏目ID',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '数据状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_goods_info_sku`;
- CREATE TABLE `churen_goods_info_sku` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `info_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品ID',
- `key` varchar(100) DEFAULT NULL COMMENT '属性标识',
- `attr` text COMMENT '属性组合规则',
- `price` varchar(100) NOT NULL DEFAULT '0' COMMENT '销售价',
- `s_price` varchar(100) NOT NULL DEFAULT '0' COMMENT '市场价',
- `f_price` varchar(100) NOT NULL DEFAULT '0' COMMENT '采购价',
- `num` int(11) NOT NULL DEFAULT '0' COMMENT '库存',
- `sell_num` int(11) NOT NULL DEFAULT '0' COMMENT '销量',
- `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序-数值越大越靠前,相当于置顶',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '数据状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '发布时间',
- `type` tinyint(1) NOT NULL DEFAULT '2' COMMENT '属性类型',
- `min` int(11) NOT NULL DEFAULT '1' COMMENT '起购数',
- `code` varchar(100) NOT NULL COMMENT '商品条码号'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_goods_info_tag`;
- CREATE TABLE `churen_goods_info_tag` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `info_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品ID',
- `tag_id` int(11) NOT NULL DEFAULT '0' COMMENT '标签ID',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '数据状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_goods_tag`;
- CREATE TABLE `churen_goods_tag` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `name` varchar(150) DEFAULT NULL COMMENT '标签名称',
- `color` varchar(10) DEFAULT NULL COMMENT '颜色-请填写颜色代码',
- `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_main_cate`;
- CREATE TABLE `churen_main_cate` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `name` varchar(32) DEFAULT NULL COMMENT '分类名称',
- `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_main_config`;
- CREATE TABLE `churen_main_config` (
- `id` int(11) UNSIGNED NOT NULL COMMENT '平台ID',
- `name` varchar(32) DEFAULT NULL COMMENT '网站名称',
- `logo` varchar(150) DEFAULT NULL COMMENT '网站LOGO',
- `seo_keyword` varchar(1000) DEFAULT NULL COMMENT 'SEO关键词',
- `seo_desc` varchar(1000) DEFAULT NULL COMMENT 'SEO描述',
- `phone` varchar(100) DEFAULT NULL COMMENT '客服电话',
- `worktime` varchar(100) DEFAULT NULL COMMENT '工作时间',
- `wechat` varchar(150) DEFAULT NULL COMMENT '公众号',
- `foot` text COMMENT '底部信息',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间',
- `site` varchar(200) NOT NULL COMMENT '网站地址',
- `citys` varchar(1000) NOT NULL COMMENT '开通城市-直接填写城市名称,多个用换行隔开',
- `video_name` varchar(32) NOT NULL COMMENT '视频名称',
- `video_desc` varchar(800) NOT NULL COMMENT '视频介绍',
- `video` varchar(800) NOT NULL COMMENT '上传视频-视频格式MP4,上传大小不能超过4G',
- `video_pic` varchar(150) NOT NULL COMMENT '封面图-封面图自动生成,也可以直接上传,上传大小不能超过2M,支持JPG、PNG、GIF格式,建议上传JPG格式',
- `news_name` varchar(100) NOT NULL COMMENT '企业动态标题',
- `news_desc` varchar(500) NOT NULL COMMENT '企业动态介绍',
- `news_pic` varchar(150) NOT NULL COMMENT '企业动态图片',
- `contact_desc` varchar(800) NOT NULL COMMENT '联系我们介绍',
- `contact` text NOT NULL COMMENT '联系我们配置',
- `contact_address` varchar(500) NOT NULL COMMENT '公司地址',
- `contact_address_map` varchar(800) NOT NULL COMMENT '地址地图链接',
- `douyin` varchar(150) NOT NULL COMMENT '抖音',
- `weibo` varchar(150) NOT NULL COMMENT '微博'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_main_factory_config`;
- CREATE TABLE `churen_main_factory_config` (
- `id` int(11) UNSIGNED NOT NULL COMMENT '平台ID',
- `name` varchar(32) DEFAULT NULL COMMENT '供应链名称',
- `info` varchar(1000) DEFAULT NULL COMMENT '供应链业务描述',
- `phone` varchar(100) DEFAULT NULL COMMENT '客服电话',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间',
- `kf_name` varchar(100) NOT NULL COMMENT '客服姓名',
- `foot` text NOT NULL COMMENT '底部信息',
- `dz_phone` varchar(100) NOT NULL COMMENT '对账专员电话'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_main_group`;
- CREATE TABLE `churen_main_group` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `name` varchar(32) DEFAULT NULL COMMENT '部门名称',
- `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_main_help`;
- CREATE TABLE `churen_main_help` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `name` varchar(80) DEFAULT NULL COMMENT '标题',
- `type` int(11) NOT NULL DEFAULT '1' COMMENT '帮助类型',
- `content` text COMMENT '内容',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间',
- `desc` varchar(500) NOT NULL COMMENT '描述'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_main_info`;
- CREATE TABLE `churen_main_info` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `name` varchar(80) DEFAULT NULL COMMENT '标题-文章标题,同时也用于分享标题',
- `desc` varchar(500) DEFAULT NULL COMMENT '摘要-文章摘要,同时也用于分享内容',
- `cate_id` int(11) NOT NULL DEFAULT '1' COMMENT '所属分类',
- `source_id` int(11) NOT NULL DEFAULT '1' COMMENT '来源',
- `pic_cover` text COMMENT '封面图-可以上传多张,也可以不传,不传则自动从内容中获取',
- `num_add_view` int(11) NOT NULL DEFAULT '0' COMMENT '浏览量基数',
- `num_view` int(11) NOT NULL DEFAULT '0' COMMENT '浏览量',
- `pdate` int(11) NOT NULL DEFAULT '0' COMMENT '发布时间',
- `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
- `udate` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间',
- `content` text COMMENT '内容',
- `status` int(11) NOT NULL DEFAULT '1' COMMENT '发布状态',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_main_manage_config`;
- CREATE TABLE `churen_main_manage_config` (
- `id` int(11) UNSIGNED NOT NULL COMMENT '平台ID',
- `name` varchar(32) DEFAULT NULL COMMENT '小程序名称',
- `info` varchar(1000) DEFAULT NULL COMMENT '小程序业务描述',
- `logo` varchar(150) DEFAULT NULL COMMENT '小程序LOGO',
- `applet` varchar(150) DEFAULT NULL COMMENT '小程序二维码',
- `phone` varchar(100) DEFAULT NULL COMMENT '客服电话',
- `km` varchar(32) DEFAULT NULL COMMENT '推荐门店公里数-单位是公里,如5公里,填写5即可',
- `video` varchar(800) DEFAULT NULL COMMENT '视频宣传片-视频格式MP4,上传大小不能超过4G',
- `file` varchar(150) DEFAULT NULL COMMENT '宣传文件',
- `rule` text COMMENT '门店合作规则',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间',
- `video_cover` varchar(150) NOT NULL COMMENT '视频封面图-封面图自动生成,也可以更改,上传大小不能超过2M,支持JPG、PNG、GIF格式,建议上传JPG格式',
- `dz_phone` varchar(100) NOT NULL COMMENT '对账专员电话'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_main_page`;
- CREATE TABLE `churen_main_page` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `name` varchar(80) DEFAULT NULL COMMENT '标题',
- `type` int(11) NOT NULL DEFAULT '1' COMMENT '类型',
- `key` varchar(80) DEFAULT NULL COMMENT '标识',
- `content` text COMMENT '内容',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_main_sell_config`;
- CREATE TABLE `churen_main_sell_config` (
- `id` int(11) UNSIGNED NOT NULL COMMENT '平台ID',
- `name` varchar(32) DEFAULT NULL COMMENT '小程序名称',
- `info` varchar(1000) DEFAULT NULL COMMENT '小程序业务描述',
- `logo` varchar(150) DEFAULT NULL COMMENT '小程序LOGO',
- `applet` varchar(150) DEFAULT NULL COMMENT '小程序二维码',
- `phone` varchar(100) DEFAULT NULL COMMENT '客服电话',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间',
- `dz_phone` varchar(100) NOT NULL COMMENT '对账专员电话',
- `card` varchar(150) NOT NULL COMMENT '礼品卡封面',
- `per` int(11) NOT NULL DEFAULT '1' COMMENT '平台佣金比例-输入1就是百分之1,分账时,平台自动从支付的金额里抽取1%的手续费',
- `card_name` varchar(150) NOT NULL DEFAULT '厨人E卡' COMMENT '礼品卡名称'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_main_source`;
- CREATE TABLE `churen_main_source` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `name` varchar(32) DEFAULT NULL COMMENT '来源名称-长度不能超过16个汉字',
- `link` varchar(500) DEFAULT NULL COMMENT '来源链接',
- `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_main_zhaopin`;
- CREATE TABLE `churen_main_zhaopin` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `name` varchar(80) DEFAULT NULL COMMENT '职位名称',
- `group_id` int(11) NOT NULL DEFAULT '1' COMMENT '所属部门',
- `type` int(11) NOT NULL DEFAULT '1' COMMENT '职位类型',
- `area` varchar(80) DEFAULT NULL COMMENT '所在地区',
- `desc` text COMMENT '岗位描述',
- `content` text COMMENT '任职要求',
- `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_manage_admin`;
- CREATE TABLE `churen_manage_admin` (
- `id` int(11) UNSIGNED NOT NULL COMMENT '管理员ID',
- `username` varchar(24) DEFAULT NULL COMMENT '管理员名',
- `email` varchar(150) DEFAULT NULL COMMENT '邮箱-可用于登录,请准确填写,不允许重复',
- `mobile` varchar(32) DEFAULT NULL COMMENT '手机号',
- `password` varchar(64) DEFAULT NULL COMMENT '管理员密码',
- `config` int(11) NOT NULL DEFAULT '1' COMMENT '后台配置',
- `role` varchar(100) DEFAULT NULL COMMENT '角色',
- `group` int(11) NOT NULL DEFAULT '1' COMMENT '分组',
- `top` text COMMENT '头部菜单-这里的头部菜单如果设置,则会覆盖角色中的头部菜单',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '数据状态',
- `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_manage_admin_role`;
- CREATE TABLE `churen_manage_admin_role` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `admin_id` int(11) NOT NULL DEFAULT '0' COMMENT '管理员ID',
- `role_id` int(11) NOT NULL DEFAULT '0' COMMENT '角色ID',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_manage_api`;
- CREATE TABLE `churen_manage_api` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `name` varchar(30) DEFAULT NULL COMMENT '接口名称',
- `type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '接口类型',
- `project` varchar(30) DEFAULT NULL COMMENT '所属项目',
- `site` varchar(500) DEFAULT NULL COMMENT '接口地址',
- `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '数据状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_manage_api_request`;
- CREATE TABLE `churen_manage_api_request` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `api_id` int(11) NOT NULL DEFAULT '0' COMMENT '接口ID',
- `parent_id` int(11) NOT NULL DEFAULT '-1' COMMENT '上级ID',
- `name` varchar(50) DEFAULT NULL COMMENT '字段',
- `type` varchar(50) DEFAULT NULL COMMENT '类型',
- `desc` text COMMENT '描述',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '数据状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '操作时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_manage_api_response`;
- CREATE TABLE `churen_manage_api_response` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `api_id` int(11) NOT NULL DEFAULT '0' COMMENT '接口ID',
- `parent_id` int(11) NOT NULL DEFAULT '-1' COMMENT '上级ID',
- `name` varchar(50) DEFAULT NULL COMMENT '字段',
- `type` varchar(50) DEFAULT NULL COMMENT '类型',
- `desc` text COMMENT '描述',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '数据状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '操作时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_manage_auth`;
- CREATE TABLE `churen_manage_auth` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `project` varchar(50) DEFAULT NULL COMMENT '项目KEY',
- `project_name` varchar(50) DEFAULT NULL COMMENT '项目名',
- `name` varchar(50) DEFAULT NULL COMMENT '权限名',
- `auth_id` int(11) NOT NULL DEFAULT '-1' COMMENT '上级权限',
- `key` varchar(100) DEFAULT NULL COMMENT '权限KEY',
- `value` varchar(30) DEFAULT NULL COMMENT '对应的值',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_manage_config`;
- CREATE TABLE `churen_manage_config` (
- `id` int(11) UNSIGNED NOT NULL COMMENT '配置ID',
- `name` varchar(32) DEFAULT NULL COMMENT '配置名',
- `template` int(1) NOT NULL DEFAULT '1' COMMENT '后台模板',
- `title` varchar(32) DEFAULT NULL COMMENT '后台TITLE',
- `info` varchar(40) DEFAULT NULL COMMENT '控制台欢迎标题',
- `content` text COMMENT '控制台欢迎内容',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间',
- `help_title` varchar(32) NOT NULL DEFAULT '帮助标题' COMMENT '帮助标题',
- `help_info` varchar(800) NOT NULL DEFAULT '默认帮助介绍' COMMENT '帮助介绍'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_manage_cron`;
- CREATE TABLE `churen_manage_cron` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `name` varchar(32) DEFAULT NULL COMMENT '任务名',
- `project` varchar(30) DEFAULT NULL COMMENT '项目',
- `interface` varchar(100) DEFAULT NULL COMMENT '接口(命令行)',
- `ldate` int(11) NOT NULL DEFAULT '0' COMMENT '执行时间',
- `time` int(11) NOT NULL DEFAULT '0' COMMENT '时间间隔(为0则执行一次)',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_manage_group`;
- CREATE TABLE `churen_manage_group` (
- `id` int(11) UNSIGNED NOT NULL COMMENT '组ID',
- `name` varchar(50) DEFAULT NULL COMMENT '组名称',
- `area` varchar(255) DEFAULT NULL COMMENT '区域',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_manage_help`;
- CREATE TABLE `churen_manage_help` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `name` varchar(32) DEFAULT NULL COMMENT '帮助标题',
- `config` int(11) NOT NULL DEFAULT '1' COMMENT '后台配置',
- `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
- `video` varchar(800) DEFAULT NULL COMMENT '帮助视频-视频格式MP4,上传大小不能超过4G',
- `content` text COMMENT '内容',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_manage_log`;
- CREATE TABLE `churen_manage_log` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `project` varchar(32) DEFAULT NULL COMMENT '项目名',
- `table` varchar(32) DEFAULT NULL COMMENT '项目下的表名',
- `info` longtext COMMENT '日志记录',
- `admin` int(11) NOT NULL DEFAULT '0' COMMENT '操作人',
- `tid` int(11) NOT NULL DEFAULT '0' COMMENT '来源表ID',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '操作时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_manage_menu`;
- CREATE TABLE `churen_manage_menu` (
- `id` int(11) UNSIGNED NOT NULL COMMENT '菜单ID',
- `name` varchar(50) DEFAULT NULL COMMENT '菜单名称',
- `group_id` int(11) NOT NULL DEFAULT '1' COMMENT '选择分组',
- `menu_id` int(11) NOT NULL DEFAULT '-1' COMMENT '上级菜单',
- `menu` varchar(800) DEFAULT NULL COMMENT '上级菜单',
- `key` varchar(100) DEFAULT NULL COMMENT '菜单标识-选填,可以为空,用来标识菜单的唯一性',
- `link` varchar(150) DEFAULT NULL COMMENT '链接(或路径)-选填,可以为空',
- `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序',
- `type` tinyint(1) NOT NULL DEFAULT '2' COMMENT '开启子菜单',
- `icon` varchar(100) DEFAULT NULL COMMENT '图标代码-请<A HREF="HTTPS://WWW.LAYUI.COM/DOC/ELEMENT/ICON.HTML" TARGET="_BLANK">点此</A>查看图标代码',
- `fast` tinyint(1) NOT NULL DEFAULT '2' COMMENT '是否快捷菜单',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_manage_menu_group`;
- CREATE TABLE `churen_manage_menu_group` (
- `id` int(11) UNSIGNED NOT NULL COMMENT '分组ID',
- `name` varchar(50) DEFAULT NULL COMMENT '分组名称',
- `icon` varchar(100) DEFAULT NULL COMMENT '图标代码-请<A HREF="HTTPS://WWW.LAYUI.COM/DOC/ELEMENT/ICON.HTML" TARGET="_BLANK">点此</A>查看图标代码',
- `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_manage_notice`;
- CREATE TABLE `churen_manage_notice` (
- `id` int(11) UNSIGNED NOT NULL COMMENT '公告ID',
- `name` varchar(32) DEFAULT NULL COMMENT '公告标题',
- `config` int(11) NOT NULL DEFAULT '1' COMMENT '后台配置',
- `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
- `content` text COMMENT '内容',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_manage_opt`;
- CREATE TABLE `churen_manage_opt` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `project` varchar(30) DEFAULT NULL COMMENT '项目',
- `table` varchar(30) DEFAULT NULL COMMENT '数据表-请输入表的英文名',
- `method` varchar(32) DEFAULT NULL COMMENT '所属方法名',
- `col` varchar(500) DEFAULT NULL COMMENT '使用的字段',
- `col_index` varchar(500) DEFAULT NULL COMMENT '建立索引的字段',
- `version` int(11) NOT NULL DEFAULT '0' COMMENT '版本号',
- `num` int(11) NOT NULL DEFAULT '0' COMMENT '执行次数',
- `time` varchar(30) DEFAULT NULL COMMENT '执行时间',
- `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否建立索引',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '数据是否存在',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_manage_role`;
- CREATE TABLE `churen_manage_role` (
- `id` int(11) UNSIGNED NOT NULL COMMENT '角色ID',
- `name` varchar(24) DEFAULT NULL COMMENT '角色名',
- `role_id` int(11) NOT NULL DEFAULT '-1' COMMENT '上级角色',
- `self` tinyint(1) NOT NULL DEFAULT '2' COMMENT '是否只能管理自己发布的内容-请在需要此项权限的表中增加[数据查询时影响的字段]',
- `col_select` varchar(30) DEFAULT NULL COMMENT '数据查询时影响的字段-该项影响数据查询,如果在表中增加该字段,则后台在查询数据时自动查询当前管理员的ID下的数据,多个用逗号隔开,与[是否只能管理自己发布的内容]相关',
- `col_insert` varchar(30) DEFAULT NULL COMMENT '数据插入时影响的字段-该项影响数据插入,如果在表中增加该字段,则后台操作时自动为该字段赋值为当前管理员的ID,多个用逗号隔开',
- `col_update` varchar(30) DEFAULT NULL COMMENT '数据更新时影响的字段-该项影响数据更新,如果在表中增加该字段,则后台操作时自动为该字段赋值为当前管理员的ID,多个用逗号隔开',
- `oper` varchar(24) DEFAULT NULL COMMENT '操作权限',
- `auth` text COMMENT '左侧菜单',
- `top` text COMMENT '头部菜单',
- `auth_data` text COMMENT '数据权限',
- `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序-数值越大越靠前',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_manage_top`;
- CREATE TABLE `churen_manage_top` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `name` varchar(50) DEFAULT NULL COMMENT '权限名',
- `top_id` int(11) NOT NULL DEFAULT '-1' COMMENT '上级权限',
- `key` varchar(100) DEFAULT NULL COMMENT '权限KEY',
- `value` varchar(30) DEFAULT NULL COMMENT '对应的值',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_message_inbox`;
- CREATE TABLE `churen_message_inbox` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `oid` int(11) NOT NULL DEFAULT '0' COMMENT '收件ID',
- `uid` int(11) NOT NULL DEFAULT '0' COMMENT '收件人',
- `from_uid` int(11) NOT NULL DEFAULT '0' COMMENT '发件人',
- `name` varchar(30) DEFAULT NULL COMMENT '发件标题',
- `content` text COMMENT '发件内容',
- `project_id` int(11) NOT NULL DEFAULT '1' COMMENT '所属项目',
- `type` int(11) NOT NULL DEFAULT '1' COMMENT '消息类型',
- `scope` tinyint(1) NOT NULL DEFAULT '1' COMMENT '消息范围',
- `param` varchar(800) DEFAULT NULL COMMENT '传入参数-一般为JSON格式数据',
- `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '已读状态',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间',
- `link` varchar(30) NOT NULL COMMENT '链接-选填,如有链接,则点击消息跳转至该链接'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_message_outbox`;
- CREATE TABLE `churen_message_outbox` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `uid` int(11) NOT NULL DEFAULT '-1' COMMENT '发件人',
- `name` varchar(30) DEFAULT NULL COMMENT '发件标题',
- `content` text COMMENT '发件内容',
- `project_id` int(11) NOT NULL DEFAULT '1' COMMENT '所属项目',
- `type` int(11) NOT NULL DEFAULT '1' COMMENT '消息类型',
- `scope` tinyint(1) NOT NULL DEFAULT '1' COMMENT '消息范围',
- `param` varchar(800) DEFAULT NULL COMMENT '传入参数-一般为JSON格式数据',
- `to_uid` text COMMENT '收件人-直接填写UID,多个用换行隔开,后期升级',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间',
- `link` varchar(30) NOT NULL COMMENT '链接-选填,如有链接,则点击消息跳转至该链接'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_message_project`;
- CREATE TABLE `churen_message_project` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `name` varchar(30) DEFAULT NULL COMMENT '项目名称',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_message_push`;
- CREATE TABLE `churen_message_push` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `name` varchar(30) DEFAULT NULL COMMENT '推送名称',
- `type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '推送类型',
- `android_appid` varchar(100) DEFAULT NULL COMMENT '安卓推送APPID',
- `android_appsecret` varchar(200) DEFAULT NULL COMMENT '安卓推送APPSECRET',
- `ios_appid` varchar(100) DEFAULT NULL COMMENT '苹果推送APPID',
- `ios_appsecret` varchar(200) DEFAULT NULL COMMENT '苹果推送APPSECRET',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_message_type`;
- CREATE TABLE `churen_message_type` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `name` varchar(30) DEFAULT NULL COMMENT '类型名称-类型ID值为10以下则为系统消息',
- `scope` tinyint(1) NOT NULL DEFAULT '1' COMMENT '消息范围',
- `type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '同步推送',
- `push` int(11) NOT NULL DEFAULT '1' COMMENT '推送方式',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_passport_address`;
- CREATE TABLE `churen_passport_address` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户名',
- `type` tinyint(1) NOT NULL DEFAULT '2' COMMENT '类型',
- `contact` varchar(100) DEFAULT NULL COMMENT '联系人',
- `sex` tinyint(1) NOT NULL DEFAULT '3' COMMENT '性别',
- `mobile` varchar(100) DEFAULT NULL COMMENT '联系电话',
- `country` varchar(100) DEFAULT NULL COMMENT '国家',
- `province` int(11) NOT NULL DEFAULT '0' COMMENT '省份',
- `city` int(11) NOT NULL DEFAULT '0' COMMENT '城市',
- `county` int(11) NOT NULL DEFAULT '0' COMMENT '县区',
- `area` varchar(800) DEFAULT NULL COMMENT '地区',
- `address` varchar(1000) DEFAULT NULL COMMENT '详细地址',
- `house_number` varchar(500) DEFAULT NULL COMMENT '门牌号',
- `tag` tinyint(1) NOT NULL DEFAULT '1' COMMENT '标签',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '操作时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_passport_avatar`;
- CREATE TABLE `churen_passport_avatar` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `sex` tinyint(1) NOT NULL DEFAULT '4' COMMENT '头像性别',
- `avatar` varchar(150) DEFAULT NULL COMMENT '头像',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '注册时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_passport_code`;
- CREATE TABLE `churen_passport_code` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `mobile` varchar(32) DEFAULT NULL COMMENT '手机号',
- `code` varchar(32) DEFAULT NULL COMMENT '验证码',
- `day` int(11) NOT NULL DEFAULT '0' COMMENT '申请时间',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '申请时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_passport_invoice`;
- CREATE TABLE `churen_passport_invoice` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户名',
- `type` tinyint(1) NOT NULL DEFAULT '2' COMMENT '类型',
- `title_type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '抬头类型',
- `title` varchar(100) DEFAULT NULL COMMENT '抬头名称',
- `email` varchar(100) DEFAULT NULL COMMENT '邮箱',
- `mobile` varchar(100) DEFAULT NULL COMMENT '手机号',
- `number` varchar(100) DEFAULT NULL COMMENT '公司税号',
- `phone` varchar(100) DEFAULT NULL COMMENT '公司电话',
- `address` varchar(1000) DEFAULT NULL COMMENT '注册地址',
- `bank` varchar(100) DEFAULT NULL COMMENT '开户银行',
- `bank_number` varchar(100) DEFAULT NULL COMMENT '银行账号',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '操作时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_passport_profession`;
- CREATE TABLE `churen_passport_profession` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `name` varchar(32) DEFAULT NULL COMMENT '职业名称',
- `system_id` int(11) NOT NULL DEFAULT '1' COMMENT '所属项目',
- `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_passport_stat`;
- CREATE TABLE `churen_passport_stat` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `day` int(11) NOT NULL DEFAULT '0' COMMENT '日期',
- `user` int(11) NOT NULL DEFAULT '0' COMMENT '新增用户量',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '生成时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_passport_system`;
- CREATE TABLE `churen_passport_system` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `name` varchar(32) DEFAULT NULL COMMENT '项目名称',
- `appid` varchar(150) DEFAULT NULL COMMENT '微信小程序APPID',
- `secret` varchar(150) DEFAULT NULL COMMENT '微信小程序SECRET',
- `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_passport_user`;
- CREATE TABLE `churen_passport_user` (
- `id` int(11) UNSIGNED NOT NULL COMMENT '用户ID',
- `username` varchar(50) DEFAULT NULL COMMENT '用户名',
- `truename` varchar(50) DEFAULT NULL COMMENT '姓名',
- `title` varchar(800) DEFAULT NULL COMMENT '头衔',
- `mobile` varchar(32) DEFAULT NULL COMMENT '手机号',
- `system_id` int(11) NOT NULL DEFAULT '1' COMMENT '所属项目',
- `profession` int(11) NOT NULL DEFAULT '1' COMMENT '职业',
- `wechat` varchar(100) DEFAULT NULL COMMENT '微信号',
- `source_type` varchar(100) DEFAULT NULL COMMENT '用户来源-废弃,用SYSTEM_SOURCE替代,暂时保留',
- `system_source` tinyint(1) NOT NULL DEFAULT '1' COMMENT '所属平台',
- `email` varchar(150) DEFAULT NULL COMMENT '邮箱',
- `password` varchar(50) DEFAULT NULL COMMENT '密码',
- `avatar_id` int(11) NOT NULL DEFAULT '1' COMMENT '默认头像',
- `avatar` varchar(150) DEFAULT NULL COMMENT '头像',
- `address_contact` varchar(100) DEFAULT NULL COMMENT '联系人',
- `address_mobile` varchar(100) DEFAULT NULL COMMENT '联系电话',
- `country` varchar(100) DEFAULT NULL COMMENT '国家-来自微信',
- `province` varchar(100) DEFAULT NULL COMMENT '省份-来自微信',
- `city` varchar(100) DEFAULT NULL COMMENT '城市-来自微信',
- `county` varchar(100) DEFAULT NULL COMMENT '区县-来自微信',
- `area` varchar(800) DEFAULT NULL COMMENT '地区-来自微信',
- `area_id` varchar(500) DEFAULT NULL COMMENT '地区-用户自己选择',
- `address` varchar(1000) DEFAULT NULL COMMENT '详细地址-不带省市区的地址',
- `info` varchar(255) DEFAULT NULL COMMENT '介绍-选填,如果想清空该介绍,请输入NULL。',
- `score` varchar(50) DEFAULT NULL COMMENT '积分',
- `sex` tinyint(1) NOT NULL DEFAULT '3' COMMENT '用户性别',
- `level` int(11) NOT NULL DEFAULT '1' COMMENT '用户等级',
- `temp` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否临时用户',
- `birthday` int(11) NOT NULL DEFAULT '0' COMMENT '生日',
- `login_date` int(11) NOT NULL DEFAULT '0' COMMENT '最近登录',
- `bind` tinyint(1) NOT NULL DEFAULT '2' COMMENT '是否绑定手机',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '注册时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_passport_user_system`;
- CREATE TABLE `churen_passport_user_system` (
- `id` int(11) UNSIGNED NOT NULL COMMENT '用户ID',
- `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户名',
- `system_id` int(11) NOT NULL DEFAULT '1' COMMENT '所属项目',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_passport_wechat`;
- CREATE TABLE `churen_passport_wechat` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `system_id` int(11) NOT NULL DEFAULT '1' COMMENT '所属项目',
- `account_id` int(11) NOT NULL DEFAULT '1' COMMENT '所属账户',
- `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户',
- `type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '类型-废弃,用SYSTEM_SOURCE替代,暂时保留',
- `system_source` tinyint(1) NOT NULL DEFAULT '1' COMMENT '所属平台',
- `openid` varchar(50) DEFAULT NULL COMMENT 'OPENID-微信的唯一用户ID',
- `unionid` varchar(50) DEFAULT NULL COMMENT 'UNIONID-微信的唯一用户ID',
- `session_key` varchar(50) DEFAULT NULL COMMENT 'SESSION_KEY',
- `access_token` varchar(200) DEFAULT NULL COMMENT 'ACCESS_TOKEN',
- `refresh_token` varchar(200) DEFAULT NULL COMMENT 'REFRESH_TOKEN',
- `expires_in` varchar(100) DEFAULT NULL COMMENT 'EXPIRES_IN',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_pay_account`;
- CREATE TABLE `churen_pay_account` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `name` varchar(60) DEFAULT NULL COMMENT '账户名称',
- `type` varchar(30) DEFAULT NULL COMMENT '支付类型',
- `box` int(11) NOT NULL DEFAULT '1' COMMENT '支付环境-沙箱模式为支付时第三方平台不实际收费,测试环境为不拉取第三方支付',
- `system_source` tinyint(1) NOT NULL DEFAULT '1' COMMENT '支付平台',
- `channel_id` int(11) NOT NULL DEFAULT '1' COMMENT '所属渠道',
- `mchid` varchar(150) DEFAULT NULL COMMENT '商户号',
- `key` varchar(150) DEFAULT NULL COMMENT '密匙KEY',
- `appid` varchar(150) DEFAULT NULL COMMENT 'APPID',
- `appsecret` varchar(300) DEFAULT NULL COMMENT 'APPSECRET',
- `account` varchar(150) DEFAULT NULL COMMENT '支付账号',
- `private_key` text COMMENT '商户私钥-HTTPS://DOC.OPEN.ALIPAY.COM/DOC2/DETAIL.HTM?SPM=A219A.7629140.0.0.NBDXFY&TREEID=58&ARTICLEID=103242&DOCTYPE=1',
- `m_public_key` varchar(1000) DEFAULT NULL COMMENT '商户公钥-HTTPS://B.ALIPAY.COM/ORDER/PIDANDKEY.HTM',
- `public_key` varchar(1000) DEFAULT NULL COMMENT '支付宝公钥-HTTPS://B.ALIPAY.COM/ORDER/PIDANDKEY.HTM',
- `appCertPath` varchar(150) DEFAULT NULL COMMENT '支付宝APPCERTPATH',
- `alipayCertPath` varchar(150) DEFAULT NULL COMMENT '支付宝ALIPAYCERTPATH',
- `rootCertPath` varchar(150) DEFAULT NULL COMMENT '支付宝ROOTCERTPATH',
- `file_cert` varchar(150) DEFAULT NULL COMMENT '证书CERT文件-微信支付需要退款时使用',
- `file_key` varchar(150) DEFAULT NULL COMMENT '证书KEY文件-微信支付需要退款时使用',
- `timeout` int(11) NOT NULL DEFAULT '600' COMMENT '支付有效期-秒',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '申请时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_pay_channel`;
- CREATE TABLE `churen_pay_channel` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `name` varchar(60) DEFAULT NULL COMMENT '渠道名称',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '申请时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_pay_order`;
- CREATE TABLE `churen_pay_order` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `uid` int(11) NOT NULL DEFAULT '1' COMMENT '用户',
- `username` varchar(200) DEFAULT NULL COMMENT '用户名称',
- `name` varchar(200) DEFAULT NULL COMMENT '订单名称',
- `order_id` varchar(200) DEFAULT NULL COMMENT '订单ID',
- `type` varchar(30) DEFAULT NULL COMMENT '支付类型',
- `product_id` varchar(800) DEFAULT NULL COMMENT '产品ID-可能为多个',
- `account_id` int(11) NOT NULL DEFAULT '1' COMMENT '支付账户',
- `project_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属项目',
- `cash` varchar(11) DEFAULT NULL COMMENT '金额',
- `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '支付状态',
- `status_desc` varchar(300) DEFAULT NULL COMMENT '支付状态说明',
- `tk_pic` varchar(150) DEFAULT NULL COMMENT '退款截图',
- `tk_time` int(11) NOT NULL DEFAULT '0' COMMENT '退款时间',
- `tk_admin` int(11) NOT NULL DEFAULT '1' COMMENT '退款审核人',
- `tk_desc` varchar(300) DEFAULT NULL COMMENT '退款备注',
- `param` text COMMENT '支付信息-用于二次支付',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `pay_time` int(11) NOT NULL DEFAULT '0' COMMENT '付款时间',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '申请时间',
- `refund_cash` varchar(11) NOT NULL COMMENT '退款金额'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_pay_project`;
- CREATE TABLE `churen_pay_project` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `name` varchar(60) DEFAULT NULL COMMENT '项目名称',
- `key` varchar(150) DEFAULT NULL COMMENT '密匙KEY',
- `notify` varchar(500) DEFAULT NULL COMMENT '支付完成回调接口',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '申请时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_poster_template`;
- CREATE TABLE `churen_poster_template` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `name` varchar(32) DEFAULT NULL COMMENT '模板名称',
- `key` varchar(32) DEFAULT NULL COMMENT '模板标识-调用模板时,使用该标识来获取模板信息,相同的模板标识,将随机抽取一条',
- `type` varchar(32) DEFAULT NULL COMMENT '使用的图形库',
- `update` tinyint(1) NOT NULL DEFAULT '2' COMMENT '生成规则',
- `create` int(11) NOT NULL DEFAULT '2' COMMENT '模板背景图',
- `width` varchar(11) DEFAULT NULL COMMENT '背景图宽度',
- `height` varchar(11) DEFAULT NULL COMMENT '背景图高度',
- `background` varchar(150) DEFAULT NULL COMMENT '模板背景图',
- `pic` varchar(150) DEFAULT NULL COMMENT '样例图',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_push_col`;
- CREATE TABLE `churen_push_col` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `name` varchar(32) DEFAULT NULL COMMENT '字段名称',
- `ename` varchar(32) DEFAULT NULL COMMENT '字段英文名称-用于前台使用',
- `desc` varchar(200) DEFAULT NULL COMMENT '字段描述',
- `type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '类型',
- `pic` varchar(20) DEFAULT NULL COMMENT '图片尺寸提醒-请直接输入尺寸,如100*100',
- `option` varchar(1000) DEFAULT NULL COMMENT '可选项-每行一个选项,多个直接换行',
- `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_push_data`;
- CREATE TABLE `churen_push_data` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `info_id` int(11) NOT NULL DEFAULT '1' COMMENT '所属推送位',
- `type` int(11) NOT NULL DEFAULT '-1' COMMENT '功能类型',
- `type_id` int(11) NOT NULL DEFAULT '0' COMMENT '关联数据',
- `data` text COMMENT '自定义数据项',
- `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_push_func`;
- CREATE TABLE `churen_push_func` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `name` varchar(32) DEFAULT NULL COMMENT '功能名称',
- `api` varchar(200) DEFAULT NULL COMMENT '功能接口-可以直接输入HTTP接口地址,也可以使用DEVER接口,如果接口返回一条数据,就为单条,如果是多条,就是列表',
- `col` text COMMENT '关联字段',
- `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间',
- `type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '功能类型'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_push_info`;
- CREATE TABLE `churen_push_info` (
- `id` int(11) UNSIGNED NOT NULL COMMENT '推送位ID',
- `name` varchar(60) DEFAULT NULL COMMENT '推送位标题',
- `key` varchar(60) DEFAULT NULL COMMENT '推送位标识',
- `num` int(11) NOT NULL DEFAULT '10' COMMENT '数据显示条数-为空或小于0则取默认值10,只对前台有效,当有分页时,则为每页显示的条数',
- `func` varchar(300) DEFAULT NULL COMMENT '功能类型',
- `col` varchar(300) DEFAULT NULL COMMENT '启用的字段',
- `col_pic` varchar(500) DEFAULT NULL COMMENT '图片尺寸提醒-请直接输入提醒的文字即可,如100*100,如果有多个图片字段,请用换行隔开',
- `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_score_action`;
- CREATE TABLE `churen_score_action` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `name` varchar(80) DEFAULT NULL COMMENT '行为名称',
- `key` varchar(80) DEFAULT NULL COMMENT '行为标识-用于程序中统计积分总数',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_score_action_log`;
- CREATE TABLE `churen_score_action_log` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户名',
- `parent_uid` int(11) NOT NULL DEFAULT '0' COMMENT '上级用户',
- `action_id` int(11) NOT NULL DEFAULT '1' COMMENT '所属行为',
- `type` varchar(32) DEFAULT NULL COMMENT '所属数据源',
- `type_id` int(11) NOT NULL DEFAULT '0' COMMENT '数据源ID',
- `score_type` int(11) NOT NULL DEFAULT '1' COMMENT '是否增加积分',
- `cron_type` int(11) NOT NULL DEFAULT '3' COMMENT '状态',
- `score` varchar(30) DEFAULT NULL COMMENT '增加积分数',
- `num` varchar(30) DEFAULT NULL COMMENT '增加的积分将乘以该数量',
- `mscore` varchar(30) DEFAULT NULL COMMENT '手动增加积分数',
- `callback` varchar(800) DEFAULT NULL COMMENT '行为回调方法',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_score_action_log_finish`;
- CREATE TABLE `churen_score_action_log_finish` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `log_id` int(11) NOT NULL DEFAULT '0' COMMENT 'ID',
- `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户名',
- `parent_uid` int(11) NOT NULL DEFAULT '0' COMMENT '上级用户',
- `action_id` int(11) NOT NULL DEFAULT '1' COMMENT '所属行为',
- `type` varchar(32) DEFAULT NULL COMMENT '所属数据源',
- `type_id` int(11) NOT NULL DEFAULT '0' COMMENT '数据源ID',
- `score_type` int(11) NOT NULL DEFAULT '1' COMMENT '是否增加积分',
- `cron_type` int(11) NOT NULL DEFAULT '3' COMMENT '状态',
- `score` varchar(30) DEFAULT NULL COMMENT '增加积分数',
- `num` varchar(30) DEFAULT NULL COMMENT '增加的积分将乘以该数量',
- `mscore` varchar(30) DEFAULT NULL COMMENT '手动增加积分数',
- `callback` varchar(800) DEFAULT NULL COMMENT '行为回调方法',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_score_config`;
- CREATE TABLE `churen_score_config` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `name` varchar(32) DEFAULT NULL COMMENT '积分名称',
- `type` int(11) NOT NULL DEFAULT '2' COMMENT '是否主积分-只能有一个主积分,主积分将作为用户主要积分显示在用户信息中',
- `callback_type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '回调类型',
- `callback_value` varchar(800) DEFAULT NULL COMMENT '回调地址-积分增减成功后,将自动调取回调,会把USER_LOG表的数据传过去,如果代码中设置了回调,该回调将失效',
- `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_score_level`;
- CREATE TABLE `churen_score_level` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `name` varchar(32) DEFAULT NULL COMMENT '等级名称',
- `level_type_id` int(11) NOT NULL DEFAULT '1' COMMENT '等级类别',
- `score` text COMMENT '积分设置',
- `level` int(11) NOT NULL DEFAULT '1' COMMENT '等级数字-请直接输入等级数字,每次升级按照该数字进行匹配,如果设置为1,则为LV1,不允许重复',
- `total_type` tinyint(1) NOT NULL DEFAULT '2' COMMENT '是否限制当前级别的总数-如果限制,请填写限制的总数,升级的用户数不能超过该数量',
- `total` int(11) NOT NULL DEFAULT '0' COMMENT '限制总数',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_score_level_type`;
- CREATE TABLE `churen_score_level_type` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `name` varchar(32) DEFAULT NULL COMMENT '类别名称',
- `type` int(11) NOT NULL DEFAULT '1' COMMENT '升级方式',
- `score` int(11) NOT NULL DEFAULT '1' COMMENT '是否清空积分-选择清空将清空等级里设置的积分',
- `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序-数值越大越靠前,排在前面的类别将优先显示,如设置了VIP等级和普通用户等级,VIP等级的排序比普通用户等级大,VIP等级将优先显示',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_score_rule`;
- CREATE TABLE `churen_score_rule` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `config_id` int(11) NOT NULL DEFAULT '1' COMMENT '积分名称',
- `action_id` int(11) NOT NULL DEFAULT '1' COMMENT '所属行为',
- `num` varchar(80) DEFAULT NULL COMMENT '增加积分数-如果为负数,则是减少积分',
- `upper` int(11) NOT NULL DEFAULT '1' COMMENT '是否有上限限制',
- `upper_type` int(11) NOT NULL DEFAULT '1' COMMENT '上限限制类型',
- `upper_time` int(11) NOT NULL DEFAULT '12' COMMENT '间隔小时数',
- `upper_limit` int(11) NOT NULL DEFAULT '2' COMMENT '上限限制次数-小于1则不限制',
- `rebate_type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '返利设置',
- `rebate_config_id` int(11) NOT NULL DEFAULT '-1' COMMENT '返利积分名称',
- `rebate_value` varchar(500) DEFAULT NULL COMMENT '返利积分数-如果是百分比类型,这里如果填的是10,那就是当前获得积分数的10%。直接填写数字就是当前用户的上级(1级)返利,支持多层层级设置,1:20,2:30 就是1级202级30,同时也支持0级',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_score_user`;
- CREATE TABLE `churen_score_user` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户名',
- `config_id` int(11) NOT NULL DEFAULT '1' COMMENT '积分名称',
- `score` varchar(80) DEFAULT NULL COMMENT '可用数量',
- `no_score` varchar(80) DEFAULT NULL COMMENT '冻结数量',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_shop_apply`;
- CREATE TABLE `churen_shop_apply` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `name` varchar(100) DEFAULT NULL COMMENT '申请人姓名',
- `mobile` bigint(11) NOT NULL DEFAULT '0' COMMENT '申请人电话',
- `area` varchar(500) DEFAULT NULL COMMENT '所在城市',
- `province` int(11) NOT NULL DEFAULT '0' COMMENT '省份',
- `city` int(11) NOT NULL DEFAULT '0' COMMENT '城市',
- `lng` varchar(100) DEFAULT NULL COMMENT '经度',
- `lat` varchar(100) DEFAULT NULL COMMENT '纬度',
- `status` int(11) NOT NULL DEFAULT '1' COMMENT '申请状态',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_shop_buy_order`;
- CREATE TABLE `churen_shop_buy_order` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `type` int(11) NOT NULL DEFAULT '0' COMMENT '采购人类型',
- `type_id` int(11) NOT NULL DEFAULT '0' COMMENT '采购人',
- `source_type` int(11) NOT NULL DEFAULT '0' COMMENT '供货商类型',
- `source_id` int(11) NOT NULL DEFAULT '0' COMMENT '供货商',
- `name` varchar(800) DEFAULT NULL COMMENT '订单名称',
- `parent_order_id` varchar(100) DEFAULT NULL COMMENT '原订单编号',
- `order_num` varchar(100) DEFAULT NULL COMMENT '订单编号',
- `price` varchar(50) DEFAULT NULL COMMENT '购买价格-销售价',
- `p_price` varchar(50) DEFAULT NULL COMMENT '购买价格-出厂价,给厂家看的',
- `num` int(11) NOT NULL DEFAULT '0' COMMENT '购买数量',
- `refund_cash` varchar(50) DEFAULT NULL COMMENT '退款合计金额-采购价格',
- `refund_p_cash` varchar(50) DEFAULT NULL COMMENT '退款合计金额-出厂价格',
- `refund_status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '申请退款类型',
- `info` varchar(300) DEFAULT NULL COMMENT '订单备注',
- `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `fdate` int(11) NOT NULL DEFAULT '0' COMMENT '完成时间',
- `operdate` int(11) NOT NULL DEFAULT '0' COMMENT '审核时间',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '下单时间',
- `audit` tinyint(1) NOT NULL DEFAULT '2' COMMENT '审核状态',
- `audit_desc` varchar(500) NOT NULL COMMENT '未通过原因'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_shop_buy_order_goods`;
- CREATE TABLE `churen_shop_buy_order_goods` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `order_id` int(11) NOT NULL DEFAULT '0' COMMENT '订单表ID',
- `goods_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品名称',
- `sku_id` int(11) NOT NULL DEFAULT '-1' COMMENT 'SKU_ID',
- `extend` text COMMENT '扩展信息',
- `price` varchar(50) DEFAULT NULL COMMENT '单价',
- `p_price` varchar(50) DEFAULT NULL COMMENT '单价',
- `num` int(11) NOT NULL DEFAULT '0' COMMENT '购买数量',
- `status` int(11) NOT NULL DEFAULT '1' COMMENT '状态',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_shop_buy_order_ps`;
- CREATE TABLE `churen_shop_buy_order_ps` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `order_id` int(11) NOT NULL DEFAULT '0' COMMENT '订单表ID',
- `service_id` int(11) NOT NULL DEFAULT '-1' COMMENT '配送服务商',
- `order_num` varchar(800) DEFAULT NULL COMMENT '快递单号-多个用换行隔开',
- `phy` varchar(200) DEFAULT NULL COMMENT '配货员',
- `dby` varchar(200) DEFAULT NULL COMMENT '打包员',
- `zl` varchar(200) DEFAULT NULL COMMENT '包裹重量-单位:克',
- `tj` varchar(200) DEFAULT NULL COMMENT '包裹体积-单位:立方厘米',
- `num` int(11) NOT NULL DEFAULT '0' COMMENT '包裹数量',
- `price` varchar(50) DEFAULT NULL COMMENT '快递费用',
- `status` int(11) NOT NULL DEFAULT '1' COMMENT '状态',
- `ydate` int(11) NOT NULL DEFAULT '0' COMMENT '签收时间',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '发货时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_shop_buy_order_refund`;
- CREATE TABLE `churen_shop_buy_order_refund` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `order_id` int(11) NOT NULL DEFAULT '0' COMMENT '订单表ID',
- `order_goods_id` varchar(100) NOT NULL DEFAULT '-1' COMMENT '订单商品表ID',
- `cash` varchar(300) DEFAULT NULL COMMENT '退款金额-采购价',
- `p_cash` varchar(300) DEFAULT NULL COMMENT '退款金额-出厂价',
- `num` int(11) NOT NULL DEFAULT '0' COMMENT '退款数量',
- `desc` varchar(300) DEFAULT NULL COMMENT '退款描述',
- `pic` varchar(8000) DEFAULT NULL COMMENT '退款图片',
- `type` int(11) NOT NULL DEFAULT '1' COMMENT '类型',
- `status` int(11) NOT NULL DEFAULT '1' COMMENT '状态',
- `process` int(11) NOT NULL DEFAULT '1' COMMENT '审核进度',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_shop_buy_stat`;
- CREATE TABLE `churen_shop_buy_stat` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `day` int(11) NOT NULL DEFAULT '0' COMMENT '日期',
- `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属门店',
- `area` varchar(500) DEFAULT NULL COMMENT '选择地区',
- `province` int(11) NOT NULL DEFAULT '0' COMMENT '省份',
- `city` int(11) NOT NULL DEFAULT '0' COMMENT '城市',
- `county` int(11) NOT NULL DEFAULT '0' COMMENT '县区',
- `town` int(11) NOT NULL DEFAULT '0' COMMENT '街道',
- `order` varchar(100) DEFAULT NULL COMMENT '订货单数',
- `goods` varchar(100) DEFAULT NULL COMMENT '商品数量',
- `cash` varchar(100) DEFAULT NULL COMMENT '采购金额',
- `p_cash` varchar(100) DEFAULT NULL COMMENT '出厂价',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '生成时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_shop_buy_stat_month`;
- CREATE TABLE `churen_shop_buy_stat_month` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属门店',
- `month` int(11) NOT NULL DEFAULT '0' COMMENT '账单时间',
- `order` varchar(100) DEFAULT NULL COMMENT '订单量',
- `goods` varchar(100) DEFAULT NULL COMMENT '商品数',
- `cash` varchar(100) DEFAULT NULL COMMENT '销售额',
- `type` int(11) NOT NULL DEFAULT '1' COMMENT '是否已对账',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '生成时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_shop_cart`;
- CREATE TABLE `churen_shop_cart` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户名',
- `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属门店',
- `goods_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品名称',
- `sku_id` int(11) NOT NULL DEFAULT '0' COMMENT 'SKU',
- `num` int(11) NOT NULL DEFAULT '0' COMMENT '购买数量',
- `status` int(11) NOT NULL DEFAULT '1' COMMENT '状态',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_shop_coupon`;
- CREATE TABLE `churen_shop_coupon` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属门店',
- `coupon` varchar(500) DEFAULT NULL COMMENT '优惠券',
- `method` int(11) NOT NULL DEFAULT '0' COMMENT '优惠券属性',
- `coupon_id` int(11) NOT NULL DEFAULT '0' COMMENT '优惠券',
- `city` int(11) NOT NULL DEFAULT '0' COMMENT '城市',
- `day` int(11) NOT NULL DEFAULT '7' COMMENT '有效期-请选择天数',
- `num` int(11) NOT NULL DEFAULT '10' COMMENT '发放数量-数量为0则不限量',
- `act_num` int(11) NOT NULL DEFAULT '0' COMMENT '已用数量',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_shop_coupon_act`;
- CREATE TABLE `churen_shop_coupon_act` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属门店',
- `act_id` int(11) NOT NULL DEFAULT '0' COMMENT '活动名称',
- `shop_coupon_id` varchar(500) DEFAULT NULL COMMENT '勾选参与活动可发放的优惠券',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_shop_coupon_act_1`;
- CREATE TABLE `churen_shop_coupon_act_1` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属门店',
- `shop_coupon_id` varchar(500) DEFAULT NULL COMMENT '勾选参与活动可发放的优惠券',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_shop_factory`;
- CREATE TABLE `churen_shop_factory` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属门店',
- `factory_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属工厂',
- `city` int(11) NOT NULL DEFAULT '0' COMMENT '城市',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_shop_factory_stat_month`;
- CREATE TABLE `churen_shop_factory_stat_month` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `factory_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属工厂',
- `month` int(11) NOT NULL DEFAULT '0' COMMENT '账单时间',
- `order` varchar(100) DEFAULT NULL COMMENT '订单量',
- `goods` varchar(100) DEFAULT NULL COMMENT '商品数',
- `cash` varchar(100) DEFAULT NULL COMMENT '销售额',
- `type` int(11) NOT NULL DEFAULT '1' COMMENT '是否已对账',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '生成时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_shop_feedback`;
- CREATE TABLE `churen_shop_feedback` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户名',
- `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属门店',
- `mobile` varchar(300) DEFAULT NULL COMMENT '下单手机号',
- `truename` varchar(300) DEFAULT NULL COMMENT '联系人姓名',
- `content` varchar(800) DEFAULT NULL COMMENT '反馈内容',
- `type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否回复',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_shop_focus`;
- CREATE TABLE `churen_shop_focus` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `name` varchar(32) DEFAULT NULL COMMENT '名称',
- `type` int(11) NOT NULL DEFAULT '1' COMMENT '类型',
- `link` varchar(400) DEFAULT NULL COMMENT '链接',
- `location` int(11) NOT NULL DEFAULT '1' COMMENT '显示位置',
- `pic` varchar(150) DEFAULT NULL COMMENT '图片',
- `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_shop_goods`;
- CREATE TABLE `churen_shop_goods` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属门店',
- `goods_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品名称',
- `category_id` int(11) NOT NULL DEFAULT '0' COMMENT '分类ID',
- `price_type` int(11) NOT NULL DEFAULT '1' COMMENT '价格类型',
- `add_num` int(11) NOT NULL DEFAULT '0' COMMENT '新增库存-输入小于0的数字,则为减少库存',
- `total_num` int(11) NOT NULL DEFAULT '0' COMMENT '总库存',
- `sell_num` int(11) NOT NULL DEFAULT '0' COMMENT '销量',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
- `status` tinyint(1) NOT NULL DEFAULT '2' COMMENT '状态'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_shop_goods_sku`;
- CREATE TABLE `churen_shop_goods_sku` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属门店',
- `goods_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品名称',
- `sku_id` int(11) NOT NULL DEFAULT '-1' COMMENT 'SKU_ID',
- `add_num` int(11) NOT NULL DEFAULT '0' COMMENT '新增库存-输入小于0的数字,则为减少库存',
- `total_num` int(11) NOT NULL DEFAULT '0' COMMENT '总库存',
- `sell_num` int(11) NOT NULL DEFAULT '0' COMMENT '销量',
- `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序-数值越大越靠前,相当于置顶',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '数据状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '发布时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_shop_info`;
- CREATE TABLE `churen_shop_info` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户名',
- `name` varchar(32) DEFAULT NULL COMMENT '门店名称',
- `desc` varchar(800) DEFAULT NULL COMMENT '门店介绍',
- `truename` varchar(100) DEFAULT NULL COMMENT '联系人姓名',
- `mobile` bigint(11) NOT NULL DEFAULT '0' COMMENT '联系人电话',
- `area` varchar(500) DEFAULT NULL COMMENT '所在城市',
- `province` int(11) NOT NULL DEFAULT '0' COMMENT '省份',
- `city` int(11) NOT NULL DEFAULT '0' COMMENT '城市',
- `map` varchar(300) DEFAULT NULL COMMENT '地理位置',
- `lng` varchar(100) DEFAULT NULL COMMENT '经度',
- `lat` varchar(100) DEFAULT NULL COMMENT '纬度',
- `address` varchar(1000) DEFAULT NULL COMMENT '门店地址',
- `goods` text COMMENT '请先选择分类-选择分类,之后选择分类下的商品,点击商品名称可以设置库存',
- `factory` text COMMENT '分配工厂-请先选择地区,再选择工厂',
- `store` text COMMENT '分配仓库-请先选择地区,再选择仓库',
- `open` int(11) NOT NULL DEFAULT '1' COMMENT '营业状态',
- `method` int(11) NOT NULL DEFAULT '3' COMMENT '门店能力',
- `worktime` varchar(100) DEFAULT NULL COMMENT '营业时间-如10:00~22:00,24小时制',
- `gotime` varchar(100) DEFAULT NULL COMMENT '外送时间-如10:00~22:00,24小时制',
- `license` varchar(150) DEFAULT NULL COMMENT '营业执照',
- `license_number` varchar(200) DEFAULT NULL COMMENT '营业执照号码',
- `company_name` varchar(200) DEFAULT NULL COMMENT '公司名称',
- `idcard_front` varchar(150) DEFAULT NULL COMMENT '身份证正面',
- `idcard_back` varchar(150) DEFAULT NULL COMMENT '身份证背面',
- `jy_license` varchar(150) DEFAULT NULL COMMENT '经营许可证',
- `food_license` varchar(150) DEFAULT NULL COMMENT '食品许可证',
- `type` int(11) NOT NULL DEFAULT '1' COMMENT '门店类型-自营为平台店,当没有找到加盟店时,将自动获取平台店',
- `status` int(11) NOT NULL DEFAULT '1' COMMENT '合作状态',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间',
- `county` int(11) NOT NULL COMMENT '县区',
- `town` int(11) NOT NULL COMMENT '街道',
- `coupon_city` int(11) NOT NULL DEFAULT '2' COMMENT '优惠券是否同城可用',
- `act` varchar(500) NOT NULL COMMENT '参与活动',
- `pdesc` text NOT NULL COMMENT '配送与自提说明',
- `coord_address` varchar(1000) NOT NULL COMMENT '门店坐标地址',
- `stat_type` int(11) NOT NULL DEFAULT '1' COMMENT '对账周期-可以选择按月还是按周生成对账单',
- `stat_day` int(11) NOT NULL DEFAULT '10' COMMENT '对账单生成日期-这里直接填写对账周期内的第几天即可,如按月对账,这里填写10,就是本月10号生成上一个月的对账单,如按周对账,这里填写2,就是本周二生成上一周的对账单',
- `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
- `ps_cash` varchar(50) NOT NULL DEFAULT '0' COMMENT '配送费',
- `invoice` int(11) NOT NULL DEFAULT '1' COMMENT '是否可以开发票',
- `sid` int(11) NOT NULL COMMENT '店铺编号-一般为5位数字,不能重复',
- `mid` varchar(50) NOT NULL COMMENT '分账商户号'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_shop_member`;
- CREATE TABLE `churen_shop_member` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户名',
- `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属门店',
- `role_id` varchar(60) DEFAULT NULL COMMENT '角色',
- `name` varchar(32) DEFAULT NULL COMMENT '员工姓名',
- `mobile` bigint(11) NOT NULL DEFAULT '0' COMMENT '员工手机号',
- `avatar` varchar(150) DEFAULT NULL COMMENT '头像',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_shop_out_order`;
- CREATE TABLE `churen_shop_out_order` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `type` int(11) NOT NULL DEFAULT '0' COMMENT '拥有人类型',
- `type_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属门店',
- `name` varchar(800) DEFAULT NULL COMMENT '订单名称',
- `order_num` varchar(100) DEFAULT NULL COMMENT '订单编号',
- `price` varchar(50) DEFAULT NULL COMMENT '价格',
- `num` int(11) NOT NULL DEFAULT '0' COMMENT '数量',
- `info` varchar(300) DEFAULT NULL COMMENT '订单备注',
- `member_id` int(11) NOT NULL DEFAULT '0' COMMENT '操作人',
- `out_type` int(11) NOT NULL DEFAULT '1' COMMENT '出库类型',
- `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '出库时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_shop_out_order_goods`;
- CREATE TABLE `churen_shop_out_order_goods` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `order_id` int(11) NOT NULL DEFAULT '0' COMMENT '订单表ID',
- `goods_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品名称',
- `sku_id` int(11) NOT NULL DEFAULT '-1' COMMENT 'SKU_ID',
- `price` varchar(50) DEFAULT NULL COMMENT '单价',
- `num` int(11) NOT NULL DEFAULT '0' COMMENT '购买数量',
- `status` int(11) NOT NULL DEFAULT '1' COMMENT '状态',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_shop_out_type`;
- CREATE TABLE `churen_shop_out_type` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `name` varchar(200) DEFAULT NULL COMMENT '出库类型名称',
- `type` int(11) NOT NULL DEFAULT '1' COMMENT '类型',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_shop_print`;
- CREATE TABLE `churen_shop_print` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属门店',
- `name` varchar(200) DEFAULT NULL COMMENT '设备名称',
- `number` varchar(100) DEFAULT NULL COMMENT '打印机编号',
- `status` int(11) NOT NULL DEFAULT '1' COMMENT '打印机状态',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '购买时间',
- `key` varchar(100) NOT NULL COMMENT '打印机识别码',
- `phonenum` varchar(100) NOT NULL COMMENT '流量卡号码'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_shop_sell_order`;
- CREATE TABLE `churen_shop_sell_order` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属门店',
- `uid` int(11) NOT NULL DEFAULT '0' COMMENT '购买人名称',
- `mobile` varchar(300) DEFAULT NULL COMMENT '下单手机号',
- `address_id` int(11) NOT NULL DEFAULT '0' COMMENT '送货地址',
- `invoice_id` int(11) NOT NULL DEFAULT '0' COMMENT '发票信息',
- `name` varchar(800) DEFAULT NULL COMMENT '订单名称',
- `order_num` varchar(100) DEFAULT NULL COMMENT '订单号',
- `price` varchar(50) DEFAULT NULL COMMENT '支付金额',
- `num` int(11) NOT NULL DEFAULT '0' COMMENT '购买数量',
- `refund_cash` varchar(50) DEFAULT NULL COMMENT '退款合计金额',
- `refund_status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '申请退款类型',
- `kou_cash` varchar(50) DEFAULT NULL COMMENT '抹零金额',
- `card_code_id` int(11) NOT NULL DEFAULT '0' COMMENT '礼品卡ID',
- `coupon_id` int(11) NOT NULL DEFAULT '0' COMMENT '门店的优惠券ID',
- `user_coupon_id` int(11) NOT NULL DEFAULT '0' COMMENT '用户的优惠券ID',
- `coupon_cash` varchar(300) DEFAULT NULL COMMENT '优惠金额',
- `method` int(11) NOT NULL DEFAULT '1' COMMENT '配送类型',
- `code` varchar(100) DEFAULT NULL COMMENT '自提码或者核销码',
- `pay_method` int(11) NOT NULL DEFAULT '1' COMMENT '支付类型',
- `pay_type` int(11) NOT NULL DEFAULT '1' COMMENT '支付方式',
- `info` varchar(300) DEFAULT NULL COMMENT '订单备注',
- `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `fdate` int(11) NOT NULL DEFAULT '0' COMMENT '完成时间',
- `operdate` int(11) NOT NULL DEFAULT '0' COMMENT '操作时间',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '下单时间',
- `ps_cash` varchar(50) NOT NULL DEFAULT '0' COMMENT '配送费',
- `notice` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否发送通知',
- `oprice` varchar(50) NOT NULL DEFAULT '0' COMMENT '原价',
- `withdraw` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否提现',
- `card_code_card` varchar(800) NOT NULL COMMENT '礼品卡卡号',
- `card_code_cash` varchar(50) NOT NULL DEFAULT '0' COMMENT '礼品卡抵扣金额',
- `wallet_cash` varchar(50) NOT NULL DEFAULT '0' COMMENT '钱包抵扣金额'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_shop_sell_order_goods`;
- CREATE TABLE `churen_shop_sell_order_goods` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `order_id` int(11) NOT NULL DEFAULT '0' COMMENT '订单表ID',
- `goods_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品名称',
- `sku_id` int(11) NOT NULL DEFAULT '-1' COMMENT 'SKU_ID',
- `price` varchar(50) DEFAULT NULL COMMENT '单价',
- `num` int(11) NOT NULL DEFAULT '0' COMMENT '购买数量',
- `coupon_id` int(11) NOT NULL DEFAULT '0' COMMENT '门店的优惠券ID',
- `user_coupon_id` int(11) NOT NULL DEFAULT '0' COMMENT '用户的优惠券ID',
- `coupon_cash` varchar(300) DEFAULT NULL COMMENT '优惠金额',
- `status` int(11) NOT NULL DEFAULT '1' COMMENT '状态',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_shop_sell_order_ps`;
- CREATE TABLE `churen_shop_sell_order_ps` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `order_id` int(11) NOT NULL DEFAULT '0' COMMENT '订单表ID',
- `service_id` int(11) NOT NULL DEFAULT '-1' COMMENT '配送服务商',
- `order_num` varchar(800) DEFAULT NULL COMMENT '快递单号-多个用换行隔开',
- `num` int(11) NOT NULL DEFAULT '0' COMMENT '包裹数量',
- `price` varchar(50) DEFAULT NULL COMMENT '快递费用',
- `status` int(11) NOT NULL DEFAULT '1' COMMENT '状态',
- `qu_date` int(11) NOT NULL DEFAULT '0' COMMENT '取件时间',
- `qs_date` int(11) NOT NULL DEFAULT '0' COMMENT '签收时间',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_shop_sell_order_refund`;
- CREATE TABLE `churen_shop_sell_order_refund` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `order_id` int(11) NOT NULL DEFAULT '0' COMMENT '订单表ID',
- `order_goods_id` varchar(300) DEFAULT NULL COMMENT '订单商品表ID',
- `cash` varchar(300) DEFAULT NULL COMMENT '退款金额',
- `num` int(11) NOT NULL DEFAULT '0' COMMENT '退款数量',
- `desc` varchar(300) DEFAULT NULL COMMENT '退款描述',
- `pic` varchar(8000) DEFAULT NULL COMMENT '退款图片',
- `type` int(11) NOT NULL DEFAULT '1' COMMENT '类型',
- `status` int(11) NOT NULL DEFAULT '1' COMMENT '状态',
- `process` int(11) NOT NULL DEFAULT '1' COMMENT '审核进度',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_shop_sell_stat`;
- CREATE TABLE `churen_shop_sell_stat` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `day` int(11) NOT NULL DEFAULT '0' COMMENT '日期',
- `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属门店',
- `area` varchar(500) DEFAULT NULL COMMENT '选择地区',
- `province` int(11) NOT NULL DEFAULT '0' COMMENT '省份',
- `city` int(11) NOT NULL DEFAULT '0' COMMENT '城市',
- `county` int(11) NOT NULL DEFAULT '0' COMMENT '县区',
- `town` int(11) NOT NULL DEFAULT '0' COMMENT '街道',
- `order` varchar(100) DEFAULT NULL COMMENT '订单量',
- `goods` varchar(100) DEFAULT NULL COMMENT '商品数量',
- `cash` varchar(100) DEFAULT NULL COMMENT '营业额',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '生成时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_shop_sell_stat_month`;
- CREATE TABLE `churen_shop_sell_stat_month` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属门店',
- `month` int(11) NOT NULL DEFAULT '0' COMMENT '账单时间',
- `order` varchar(100) DEFAULT NULL COMMENT '订单量',
- `goods` varchar(100) DEFAULT NULL COMMENT '商品数',
- `cash` varchar(100) DEFAULT NULL COMMENT '销售额',
- `type` int(11) NOT NULL DEFAULT '1' COMMENT '是否已对账',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '生成时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_shop_service`;
- CREATE TABLE `churen_shop_service` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `name` varchar(200) DEFAULT NULL COMMENT '配送服务商名称',
- `number` varchar(100) DEFAULT NULL COMMENT '服务商代号-用来根据接口获取物流信息',
- `type` int(11) NOT NULL DEFAULT '1' COMMENT '服务商类型',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_shop_shop_cart`;
- CREATE TABLE `churen_shop_shop_cart` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属门店',
- `goods_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品名称',
- `sku_id` int(11) NOT NULL DEFAULT '0' COMMENT 'SKU',
- `num` int(11) NOT NULL DEFAULT '0' COMMENT '购买数量',
- `status` int(11) NOT NULL DEFAULT '1' COMMENT '状态',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_shop_store`;
- CREATE TABLE `churen_shop_store` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属门店',
- `store_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属仓库',
- `city` int(11) NOT NULL DEFAULT '0' COMMENT '城市',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_shop_store_stat_month`;
- CREATE TABLE `churen_shop_store_stat_month` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `store_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属仓库',
- `month` int(11) NOT NULL DEFAULT '0' COMMENT '账单时间',
- `order` varchar(100) DEFAULT NULL COMMENT '订单量',
- `goods` varchar(100) DEFAULT NULL COMMENT '商品数',
- `cash` varchar(100) DEFAULT NULL COMMENT '销售额',
- `type` int(11) NOT NULL DEFAULT '1' COMMENT '是否已对账',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '生成时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_shop_user_coupon`;
- CREATE TABLE `churen_shop_user_coupon` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户名',
- `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属门店',
- `coupon_id` int(11) NOT NULL DEFAULT '0' COMMENT '优惠券ID',
- `shop_coupon_id` int(11) NOT NULL DEFAULT '0' COMMENT '优惠券ID',
- `city` int(11) NOT NULL DEFAULT '0' COMMENT '城市',
- `cash` varchar(100) DEFAULT NULL COMMENT '抵扣金额',
- `status` int(11) NOT NULL DEFAULT '1' COMMENT '可用状态',
- `edate` int(11) NOT NULL DEFAULT '0' COMMENT '失效时间',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '领取时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_shop_user_share`;
- CREATE TABLE `churen_shop_user_share` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户名',
- `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属门店',
- `act_id` int(11) NOT NULL DEFAULT '0' COMMENT '活动ID',
- `path` varchar(100) DEFAULT NULL COMMENT '分享路径',
- `status` int(11) NOT NULL DEFAULT '1' COMMENT '分享状态',
- `edate` int(11) NOT NULL DEFAULT '0' COMMENT '失效时间',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '领取时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_sms_code`;
- CREATE TABLE `churen_sms_code` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `mobile` varchar(32) DEFAULT NULL COMMENT '手机号',
- `code` varchar(32) DEFAULT NULL COMMENT '验证码',
- `day` int(11) NOT NULL DEFAULT '0' COMMENT '申请天',
- `result` text COMMENT '返回记录',
- `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '申请时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_sms_config`;
- CREATE TABLE `churen_sms_config` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `name` varchar(32) DEFAULT NULL COMMENT '配置名称',
- `key` varchar(32) DEFAULT NULL COMMENT '短信标识-发送短信时,使用该标识来读取短信基本配置',
- `sign` varchar(60) DEFAULT NULL COMMENT '短信签名',
- `sdk` varchar(32) DEFAULT NULL COMMENT '是否调取SDK',
- `appid` varchar(50) DEFAULT NULL COMMENT 'APPID',
- `appsecret` varchar(80) DEFAULT NULL COMMENT 'APPSECRET',
- `url` varchar(300) DEFAULT NULL COMMENT '接口地址',
- `method` varchar(32) DEFAULT NULL COMMENT '请求方式',
- `json` tinyint(1) NOT NULL DEFAULT '2' COMMENT '是否进行JSON编码',
- `header` varchar(500) DEFAULT NULL COMMENT 'HEADER信息-如AUTHORIZATION:APPCODE E7183E44BA8E4CCAA3D690510923D3FA',
- `body` varchar(500) DEFAULT NULL COMMENT 'BODY信息-如PARAM={CODE}&PHONE={MOBILE}&SIGN={SIGN}&SKIN={SKIN}',
- `code_timeout` int(11) NOT NULL DEFAULT '600' COMMENT '验证码有效期-以秒为单位',
- `code_length` int(11) NOT NULL DEFAULT '4' COMMENT '验证码长度',
- `code_type` int(11) NOT NULL DEFAULT '4' COMMENT '验证码类型',
- `code_total` int(11) NOT NULL DEFAULT '10' COMMENT '一天之内的最大发送次数',
- `code_time` int(11) NOT NULL DEFAULT '60' COMMENT '不允许多久之内重复发送-以秒为单位',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_sms_info`;
- CREATE TABLE `churen_sms_info` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `mobile` varchar(32) DEFAULT NULL COMMENT '手机号',
- `param` text COMMENT '请求记录',
- `result` text COMMENT '发送记录',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '申请时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_sms_skin`;
- CREATE TABLE `churen_sms_skin` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `config_id` int(11) NOT NULL DEFAULT '1' COMMENT '所属配置',
- `name` varchar(32) DEFAULT NULL COMMENT '模板名称',
- `key` varchar(32) DEFAULT NULL COMMENT '模板标识',
- `content` varchar(800) DEFAULT NULL COMMENT '模板内容-如果短信接口已提供模板,请在此输入模板ID',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_store_goods`;
- CREATE TABLE `churen_store_goods` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `store_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属仓库',
- `goods_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品名称',
- `category_id` int(11) NOT NULL DEFAULT '0' COMMENT '分类ID',
- `price_type` int(11) NOT NULL DEFAULT '1' COMMENT '价格类型',
- `add_num` int(11) NOT NULL DEFAULT '0' COMMENT '新增库存-输入小于0的数字,则为减少库存',
- `total_num` int(11) NOT NULL DEFAULT '0' COMMENT '总库存',
- `sell_num` int(11) NOT NULL DEFAULT '0' COMMENT '销量',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
- `status` tinyint(1) NOT NULL DEFAULT '2' COMMENT '状态'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_store_goods_sku`;
- CREATE TABLE `churen_store_goods_sku` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `store_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属仓库',
- `goods_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品名称',
- `sku_id` int(11) NOT NULL DEFAULT '-1' COMMENT 'SKU_ID',
- `add_num` int(11) NOT NULL DEFAULT '0' COMMENT '新增库存-输入小于0的数字,则为减少库存',
- `total_num` int(11) NOT NULL DEFAULT '0' COMMENT '总库存',
- `sell_num` int(11) NOT NULL DEFAULT '0' COMMENT '销量',
- `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序-数值越大越靠前,相当于置顶',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '数据状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '发布时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_store_info`;
- CREATE TABLE `churen_store_info` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户名',
- `name` varchar(32) DEFAULT NULL COMMENT '仓库名称',
- `truename` varchar(100) DEFAULT NULL COMMENT '联系人姓名',
- `mobile` bigint(11) NOT NULL DEFAULT '0' COMMENT '联系人电话',
- `area` varchar(500) DEFAULT NULL COMMENT '所在城市',
- `province` int(11) NOT NULL DEFAULT '0' COMMENT '省份',
- `city` int(11) NOT NULL DEFAULT '0' COMMENT '城市',
- `map` varchar(300) DEFAULT NULL COMMENT '地理位置',
- `lng` varchar(100) DEFAULT NULL COMMENT '经度',
- `lat` varchar(100) DEFAULT NULL COMMENT '纬度',
- `address` varchar(1000) DEFAULT NULL COMMENT '仓库地址',
- `goods` text COMMENT '请先选择分类-选择分类,之后选择分类下的商品,点击商品名称可以设置库存',
- `license` varchar(150) DEFAULT NULL COMMENT '营业执照',
- `license_number` varchar(200) DEFAULT NULL COMMENT '营业执照号码',
- `company_name` varchar(200) DEFAULT NULL COMMENT '公司名称',
- `idcard_front` varchar(150) DEFAULT NULL COMMENT '身份证正面',
- `idcard_back` varchar(150) DEFAULT NULL COMMENT '身份证背面',
- `kh_license` varchar(150) DEFAULT NULL COMMENT '开户许可证',
- `status` int(11) NOT NULL DEFAULT '1' COMMENT '认证状态',
- `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间',
- `stat_type` int(11) NOT NULL DEFAULT '1' COMMENT '对账周期-可以选择按月还是按周生成对账单',
- `stat_day` int(11) NOT NULL DEFAULT '10' COMMENT '对账单生成日期-这里直接填写对账周期内的第几天即可,如按月对账,这里填写10,就是本月10号生成上一个月的对账单,如按周对账,这里填写2,就是本周二生成上一周的对账单'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_store_member`;
- CREATE TABLE `churen_store_member` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户名',
- `store_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属仓库',
- `role_id` varchar(60) DEFAULT NULL COMMENT '角色',
- `name` varchar(32) DEFAULT NULL COMMENT '员工姓名',
- `mobile` bigint(11) NOT NULL DEFAULT '0' COMMENT '员工手机号',
- `avatar` varchar(150) DEFAULT NULL COMMENT '头像',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_store_order`;
- CREATE TABLE `churen_store_order` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `store_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属仓库',
- `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属门店',
- `shop_order_id` int(11) NOT NULL DEFAULT '0' COMMENT '门店订单ID',
- `name` varchar(80) DEFAULT NULL COMMENT '订单名称',
- `order_num` varchar(100) DEFAULT NULL COMMENT '订单编号',
- `price` varchar(50) DEFAULT NULL COMMENT '购买价格',
- `num` int(11) NOT NULL DEFAULT '0' COMMENT '购买数量',
- `pay_id` varchar(100) DEFAULT NULL COMMENT '支付订单ID',
- `pay_status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '支付状态',
- `pay_price` varchar(50) DEFAULT NULL COMMENT '付款金额',
- `info` varchar(300) DEFAULT NULL COMMENT '订单备注',
- `note` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否发送状态提醒-1未发送,2已发送',
- `notice` int(11) NOT NULL DEFAULT '0' COMMENT '模板消息提醒次数',
- `tk_pic` varchar(150) DEFAULT NULL COMMENT '退款截图',
- `tk_time` int(11) NOT NULL DEFAULT '0' COMMENT '退款时间',
- `tk_admin` int(11) NOT NULL DEFAULT '1' COMMENT '退款审核人',
- `tk_desc` varchar(300) DEFAULT NULL COMMENT '退款备注',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '下单时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_token_log`;
- CREATE TABLE `churen_token_log` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `name` varchar(100) DEFAULT NULL COMMENT '请求名称',
- `url` varchar(255) DEFAULT NULL COMMENT '请求地址',
- `param` text COMMENT '请求信息',
- `result` longtext COMMENT '微信返回信息',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_token_project`;
- CREATE TABLE `churen_token_project` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `name` varchar(60) DEFAULT NULL COMMENT '项目名称',
- `type` tinyint(11) NOT NULL DEFAULT '1' COMMENT '项目类型',
- `appid` varchar(150) DEFAULT NULL COMMENT 'APPID-一般为微信APPID、阿里的APPKEY',
- `secret` varchar(150) DEFAULT NULL COMMENT 'SECRET',
- `token` varchar(150) DEFAULT NULL COMMENT '通信TOKEN(注意不是ACCESS_TOKEN)',
- `key` varchar(150) DEFAULT NULL COMMENT '消息加解密密钥',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_token_token`;
- CREATE TABLE `churen_token_token` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `project_id` int(11) NOT NULL DEFAULT '0' COMMENT '项目',
- `value` varchar(255) DEFAULT NULL COMMENT 'TOKEN标识',
- `expires` int(11) NOT NULL DEFAULT '0' COMMENT '过期时间',
- `mdate` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_upload_cate`;
- CREATE TABLE `churen_upload_cate` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `name` varchar(300) DEFAULT NULL COMMENT '分类名称',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_upload_file`;
- CREATE TABLE `churen_upload_file` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `name` varchar(32) DEFAULT NULL COMMENT '文件名',
- `source_name` varchar(200) DEFAULT NULL COMMENT '原文件名',
- `upload` int(11) NOT NULL DEFAULT '1' COMMENT '所属资源配置',
- `cate` int(11) NOT NULL DEFAULT '1' COMMENT '所属分类',
- `key` varchar(32) DEFAULT NULL COMMENT 'KEY',
- `search` varchar(100) DEFAULT NULL COMMENT 'SEARCH',
- `value` varchar(800) DEFAULT NULL COMMENT '附加值',
- `ext` varchar(24) DEFAULT NULL COMMENT '后缀名',
- `file` varchar(150) DEFAULT NULL COMMENT '访问路径',
- `yunfile` varchar(150) DEFAULT NULL COMMENT '云端访问路径',
- `pic` varchar(150) DEFAULT NULL COMMENT '封面图-一般为视频截图',
- `pic_num` int(11) NOT NULL DEFAULT '0' COMMENT '视频截图的秒数',
- `width` int(11) NOT NULL DEFAULT '0' COMMENT '宽度',
- `height` int(11) NOT NULL DEFAULT '0' COMMENT '高度',
- `size` varchar(100) NOT NULL COMMENT '文件大小',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '上传时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_upload_pic_water`;
- CREATE TABLE `churen_upload_pic_water` (
- `id` int(11) UNSIGNED NOT NULL COMMENT '配置ID',
- `name` varchar(24) DEFAULT NULL COMMENT '配置名',
- `water` varchar(150) DEFAULT NULL COMMENT '水印图',
- `water_position` int(1) NOT NULL DEFAULT '1' COMMENT '水印图位置',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间',
- `type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '水印类型'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_upload_upload`;
- CREATE TABLE `churen_upload_upload` (
- `id` int(11) UNSIGNED NOT NULL COMMENT '配置ID',
- `name` varchar(24) DEFAULT NULL COMMENT '配置名',
- `width` int(11) NOT NULL DEFAULT '0' COMMENT '限制宽度-仅限图片类资源',
- `height` int(11) NOT NULL DEFAULT '0' COMMENT '限制高度-仅限图片类资源',
- `size` int(11) NOT NULL DEFAULT '2' COMMENT '限制大小(单位:M)',
- `type` varchar(800) DEFAULT NULL COMMENT '限制文件后缀类型-多个用逗号隔开',
- `alter` varchar(255) DEFAULT NULL COMMENT '默认的后续操作-T=1&C=1&W=1,其中T代表缩略图,1代表对应的ID,C代表裁剪图,W代表水印图,仅限图片类资源',
- `cover` int(1) NOT NULL DEFAULT '1' COMMENT '是否覆盖-将根据上传时的文件名进行文件覆盖操作',
- `save_type` int(1) NOT NULL DEFAULT '1' COMMENT '存储位置',
- `yun` int(1) NOT NULL DEFAULT '1' COMMENT '选择云端',
- `bucket` varchar(800) DEFAULT NULL COMMENT 'BUCKET名称',
- `vod_convert` int(1) NOT NULL DEFAULT '1' COMMENT '是否进行视频转码',
- `pipeline` varchar(800) DEFAULT NULL COMMENT '队列名称-多个用逗号隔开,将随机使用队列',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间',
- `setwh` int(1) NOT NULL DEFAULT '1' COMMENT '宽高限制-仅限图片类资源'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_upload_yun`;
- CREATE TABLE `churen_upload_yun` (
- `id` int(11) UNSIGNED NOT NULL COMMENT '配置ID',
- `name` varchar(24) DEFAULT NULL COMMENT '配置名',
- `type` int(1) NOT NULL DEFAULT '2' COMMENT '存储类别-OSS建议申请STS保证安全性,参考HTTPS://HELP.ALIYUN.COM/DOCUMENT_DETAIL/100624.HTML',
- `host` varchar(800) DEFAULT NULL COMMENT '域名',
- `appkey` varchar(100) DEFAULT NULL COMMENT 'APPKEY',
- `appsecret` varchar(200) DEFAULT NULL COMMENT 'APPSECRET',
- `region_id` varchar(200) DEFAULT NULL COMMENT '区域ID-OSS直接填REGIONID即可,如BEIJING,七牛可填写Z1',
- `role_arn` varchar(200) DEFAULT NULL COMMENT '权限策略ARN-OSS需要填写,如未填写,系统默认使用非STS形式上传至OSS,不能保证安全性',
- `token` varchar(800) DEFAULT NULL COMMENT 'TOKEN',
- `token_endtime` int(11) NOT NULL DEFAULT '0' COMMENT 'TOKEN失效时间',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_wechat_applet_msg`;
- CREATE TABLE `churen_wechat_applet_msg` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `project_id` int(11) NOT NULL DEFAULT '0' COMMENT '项目ID',
- `name` varchar(120) DEFAULT NULL COMMENT '模板标题',
- `key` varchar(20) DEFAULT NULL COMMENT '模板消息KEY-通过KEY值搜索数据',
- `template_id` varchar(120) DEFAULT NULL COMMENT '模板ID',
- `content` varchar(600) DEFAULT NULL COMMENT '模板内容',
- `example` varchar(600) DEFAULT NULL COMMENT '模板样例',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_wechat_applet_msg_log`;
- CREATE TABLE `churen_wechat_applet_msg_log` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `project_id` int(11) NOT NULL DEFAULT '0' COMMENT '项目',
- `msg_id` int(11) NOT NULL DEFAULT '0' COMMENT '消息ID',
- `touser` varchar(120) DEFAULT NULL COMMENT '接收者',
- `path` varchar(200) DEFAULT NULL COMMENT '跳转页面',
- `data` text COMMENT '模板内容',
- `form_id` varchar(300) DEFAULT NULL COMMENT '表单或者支付ID',
- `emphasis_keyword` varchar(200) DEFAULT NULL COMMENT '模板需要放大的关键词',
- `num` int(11) NOT NULL DEFAULT '0' COMMENT '发送次数',
- `result` text COMMENT '微信返回信息',
- `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_wechat_applet_msg_send`;
- CREATE TABLE `churen_wechat_applet_msg_send` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `project_id` varchar(300) DEFAULT NULL COMMENT '选择项目',
- `key` varchar(20) DEFAULT NULL COMMENT '模板消息KEY',
- `page` varchar(200) DEFAULT NULL COMMENT '页面路径',
- `content` text COMMENT '模板内容',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_wechat_applet_subscribe`;
- CREATE TABLE `churen_wechat_applet_subscribe` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `project_id` int(11) NOT NULL DEFAULT '0' COMMENT '项目ID',
- `name` varchar(120) DEFAULT NULL COMMENT '模板标题',
- `type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '订阅类型',
- `key` varchar(20) DEFAULT NULL COMMENT '模板消息KEY-通过KEY值搜索数据',
- `template_id` varchar(120) DEFAULT NULL COMMENT '模板ID',
- `content` varchar(600) DEFAULT NULL COMMENT '模板内容',
- `example` varchar(600) DEFAULT NULL COMMENT '模板样例',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_wechat_applet_subscribe_log`;
- CREATE TABLE `churen_wechat_applet_subscribe_log` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `project_id` int(11) NOT NULL DEFAULT '0' COMMENT '项目',
- `subscribe_id` int(11) NOT NULL DEFAULT '0' COMMENT '消息ID',
- `touser` varchar(120) DEFAULT NULL COMMENT '接收者',
- `path` varchar(200) DEFAULT NULL COMMENT '跳转页面',
- `data` text COMMENT '模板内容',
- `miniprogram_state` varchar(300) DEFAULT NULL COMMENT '跳转小程序类型',
- `num` int(11) NOT NULL DEFAULT '0' COMMENT '发送次数',
- `result` text COMMENT '微信返回信息',
- `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_wechat_applet_subscribe_send`;
- CREATE TABLE `churen_wechat_applet_subscribe_send` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `project_id` varchar(300) DEFAULT NULL COMMENT '选择项目',
- `key` varchar(20) DEFAULT NULL COMMENT '消息KEY',
- `page` varchar(200) DEFAULT NULL COMMENT '页面路径',
- `miniprogram_state` varchar(300) DEFAULT NULL COMMENT '跳转小程序类型',
- `content` text COMMENT '消息内容',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- DROP TABLE IF EXISTS `churen_wechat_applet_total_base`;
- CREATE TABLE `churen_wechat_applet_total_base` (
- `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
- `project_id` int(11) NOT NULL DEFAULT '0' COMMENT '项目',
- `day` varchar(60) DEFAULT NULL COMMENT '统计日期',
- `daynum` int(11) NOT NULL DEFAULT '0' COMMENT '统计日期',
- `session_cnt` int(11) NOT NULL DEFAULT '0' COMMENT '打开次数',
- `visit_pv` int(11) NOT NULL DEFAULT '0' COMMENT '访问次数',
- `visit_uv` int(11) NOT NULL DEFAULT '0' COMMENT '访问人数',
- `visit_uv_new` int(11) NOT NULL DEFAULT '0' COMMENT '新用户数',
- `stay_time_uv` varchar(30) DEFAULT NULL COMMENT '人均停留时长',
- `stay_time_session` varchar(30) DEFAULT NULL COMMENT '次均停留时长',
- `visit_depth` varchar(30) DEFAULT NULL COMMENT '平均访问深度',
- `visit_total` int(11) NOT NULL DEFAULT '0' COMMENT '累计用户数',
- `share_pv` int(11) NOT NULL DEFAULT '0' COMMENT '转发次数',
- `share_uv` int(11) NOT NULL DEFAULT '0' COMMENT '转发人数',
- `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
- `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- ALTER TABLE `churen_act_info`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_area_city`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_area_county`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_area_province`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_area_town`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_area_village`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_attr_cate`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_attr_info`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_attr_search`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_attr_value`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_card_add`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_card_code`
- ADD PRIMARY KEY (`id`),
- ADD KEY `card` (`card`),
- ADD KEY `uid` (`uid`),
- ADD KEY `dh_uid` (`dh_uid`);
- ALTER TABLE `churen_card_info`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_card_order`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_card_order_card`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_card_order_ps`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_card_type`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_cash_factory`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_cash_order`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_cash_shop`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_cash_store`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_category_attr`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_category_info`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_category_project`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_content_feature`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_content_news`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_factory_goods`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_factory_goods_sku`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_factory_info`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_factory_member`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_factory_order`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_goods_add_card`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_goods_card`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_goods_card_code`
- ADD PRIMARY KEY (`id`),
- ADD KEY `card` (`card`,`pwd`);
- ALTER TABLE `churen_goods_column`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_goods_coupon`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_goods_info`
- ADD PRIMARY KEY (`id`),
- ADD KEY `search` (`category`(191),`top_category_id`,`second_category_id`,`category_id`,`mode`,`area`);
- ALTER TABLE `churen_goods_info_category`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_goods_info_column`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_goods_info_sku`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_goods_info_tag`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_goods_tag`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_main_cate`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_main_config`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_main_factory_config`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_main_group`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_main_help`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_main_info`
- ADD PRIMARY KEY (`id`),
- ADD KEY `i1` (`cate_id`,`reorder`);
- ALTER TABLE `churen_main_manage_config`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_main_page`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_main_sell_config`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_main_source`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_main_zhaopin`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_manage_admin`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_manage_admin_role`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_manage_api`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_manage_api_request`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_manage_api_response`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_manage_auth`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_manage_config`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_manage_cron`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_manage_group`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_manage_help`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_manage_log`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_manage_menu`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_manage_menu_group`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_manage_notice`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_manage_opt`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_manage_role`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_manage_top`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_message_inbox`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_message_outbox`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_message_project`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_message_push`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_message_type`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_passport_address`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_passport_avatar`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_passport_code`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_passport_invoice`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_passport_profession`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_passport_stat`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_passport_system`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_passport_user`
- ADD PRIMARY KEY (`id`),
- ADD KEY `mobile` (`mobile`);
- ALTER TABLE `churen_passport_user_system`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_passport_wechat`
- ADD PRIMARY KEY (`id`),
- ADD KEY `openid` (`uid`,`openid`,`unionid`);
- ALTER TABLE `churen_pay_account`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_pay_channel`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_pay_order`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_pay_project`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_poster_template`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_push_col`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_push_data`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_push_func`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_push_info`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_score_action`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_score_action_log`
- ADD PRIMARY KEY (`id`),
- ADD KEY `search` (`uid`,`action_id`,`cron_type`);
- ALTER TABLE `churen_score_action_log_finish`
- ADD PRIMARY KEY (`id`),
- ADD KEY `search` (`uid`,`action_id`,`cron_type`);
- ALTER TABLE `churen_score_config`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_score_level`
- ADD PRIMARY KEY (`id`),
- ADD KEY `i1` (`level`);
- ALTER TABLE `churen_score_level_type`
- ADD PRIMARY KEY (`id`),
- ADD KEY `i1` (`reorder`);
- ALTER TABLE `churen_score_rule`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_score_user`
- ADD PRIMARY KEY (`id`),
- ADD KEY `search` (`uid`,`config_id`);
- ALTER TABLE `churen_shop_apply`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_shop_buy_order`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_shop_buy_order_goods`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_shop_buy_order_ps`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_shop_buy_order_refund`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_shop_buy_stat`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_shop_buy_stat_month`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_shop_cart`
- ADD PRIMARY KEY (`id`),
- ADD KEY `i1` (`uid`,`shop_id`,`goods_id`);
- ALTER TABLE `churen_shop_coupon`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_shop_coupon_act`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_shop_coupon_act_1`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_shop_factory`
- ADD PRIMARY KEY (`id`),
- ADD KEY `i1` (`shop_id`);
- ALTER TABLE `churen_shop_factory_stat_month`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_shop_feedback`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_shop_focus`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_shop_goods`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_shop_goods_sku`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_shop_info`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_shop_member`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_shop_out_order`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_shop_out_order_goods`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_shop_out_type`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_shop_print`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_shop_sell_order`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_shop_sell_order_goods`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_shop_sell_order_ps`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_shop_sell_order_refund`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_shop_sell_stat`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_shop_sell_stat_month`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_shop_service`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_shop_shop_cart`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_shop_store`
- ADD PRIMARY KEY (`id`),
- ADD KEY `i1` (`shop_id`);
- ALTER TABLE `churen_shop_store_stat_month`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_shop_user_coupon`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_shop_user_share`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_sms_code`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_sms_config`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_sms_info`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_sms_skin`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_store_goods`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_store_goods_sku`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_store_info`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_store_member`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_store_order`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_token_log`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_token_project`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_token_token`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_upload_cate`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_upload_file`
- ADD PRIMARY KEY (`id`),
- ADD KEY `search` (`key`,`cate`,`search`),
- ADD KEY `name` (`name`,`upload`);
- ALTER TABLE `churen_upload_pic_water`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_upload_upload`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_upload_yun`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_wechat_applet_msg`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_wechat_applet_msg_log`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_wechat_applet_msg_send`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_wechat_applet_subscribe`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_wechat_applet_subscribe_log`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_wechat_applet_subscribe_send`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_wechat_applet_total_base`
- ADD PRIMARY KEY (`id`);
- ALTER TABLE `churen_act_info`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_area_city`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_area_county`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_area_province`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_area_town`
- MODIFY `id` bigint(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_area_village`
- MODIFY `id` bigint(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_attr_cate`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_attr_info`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_attr_search`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_attr_value`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_card_add`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '系统ID';
- ALTER TABLE `churen_card_code`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_card_info`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_card_order`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_card_order_card`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_card_order_ps`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_card_type`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_cash_factory`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_cash_order`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_cash_shop`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_cash_store`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_category_attr`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_category_info`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_category_project`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_content_feature`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_content_news`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_factory_goods`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_factory_goods_sku`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_factory_info`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_factory_member`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_factory_order`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_goods_add_card`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '系统ID';
- ALTER TABLE `churen_goods_card`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_goods_card_code`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_goods_column`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_goods_coupon`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_goods_info`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_goods_info_category`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_goods_info_column`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_goods_info_sku`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_goods_info_tag`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_goods_tag`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_main_cate`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_main_config`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '平台ID';
- ALTER TABLE `churen_main_factory_config`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '平台ID';
- ALTER TABLE `churen_main_group`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_main_help`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_main_info`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_main_manage_config`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '平台ID';
- ALTER TABLE `churen_main_page`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_main_sell_config`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '平台ID';
- ALTER TABLE `churen_main_source`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_main_zhaopin`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_manage_admin`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '管理员ID';
- ALTER TABLE `churen_manage_admin_role`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_manage_api`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_manage_api_request`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_manage_api_response`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_manage_auth`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_manage_config`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '配置ID';
- ALTER TABLE `churen_manage_cron`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_manage_group`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '组ID';
- ALTER TABLE `churen_manage_help`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_manage_log`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_manage_menu`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '菜单ID';
- ALTER TABLE `churen_manage_menu_group`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '分组ID';
- ALTER TABLE `churen_manage_notice`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '公告ID';
- ALTER TABLE `churen_manage_opt`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_manage_role`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '角色ID';
- ALTER TABLE `churen_manage_top`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_message_inbox`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_message_outbox`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_message_project`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_message_push`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_message_type`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_passport_address`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_passport_avatar`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_passport_code`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_passport_invoice`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_passport_profession`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_passport_stat`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_passport_system`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_passport_user`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '用户ID';
- ALTER TABLE `churen_passport_user_system`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '用户ID';
- ALTER TABLE `churen_passport_wechat`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_pay_account`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_pay_channel`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_pay_order`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_pay_project`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_poster_template`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_push_col`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_push_data`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_push_func`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_push_info`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '推送位ID';
- ALTER TABLE `churen_score_action`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_score_action_log`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_score_action_log_finish`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_score_config`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_score_level`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_score_level_type`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_score_rule`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_score_user`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_shop_apply`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_shop_buy_order`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_shop_buy_order_goods`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_shop_buy_order_ps`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_shop_buy_order_refund`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_shop_buy_stat`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_shop_buy_stat_month`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_shop_cart`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_shop_coupon`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_shop_coupon_act`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_shop_coupon_act_1`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_shop_factory`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_shop_factory_stat_month`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_shop_feedback`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_shop_focus`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_shop_goods`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_shop_goods_sku`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_shop_info`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_shop_member`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_shop_out_order`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_shop_out_order_goods`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_shop_out_type`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_shop_print`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_shop_sell_order`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_shop_sell_order_goods`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_shop_sell_order_ps`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_shop_sell_order_refund`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_shop_sell_stat`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_shop_sell_stat_month`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_shop_service`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_shop_shop_cart`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_shop_store`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_shop_store_stat_month`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_shop_user_coupon`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_shop_user_share`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_sms_code`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_sms_config`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_sms_info`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_sms_skin`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_store_goods`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_store_goods_sku`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_store_info`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_store_member`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_store_order`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_token_log`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_token_project`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_token_token`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_upload_cate`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_upload_file`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_upload_pic_water`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '配置ID';
- ALTER TABLE `churen_upload_upload`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '配置ID';
- ALTER TABLE `churen_upload_yun`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '配置ID';
- ALTER TABLE `churen_wechat_applet_msg`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_wechat_applet_msg_log`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_wechat_applet_msg_send`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_wechat_applet_subscribe`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_wechat_applet_subscribe_log`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_wechat_applet_subscribe_send`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- ALTER TABLE `churen_wechat_applet_total_base`
- MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
- COMMIT;
- ;
- ;
- ;
|