| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048 |
- <?php
- if (config('app.framework') == 'platform') {
- $create_dir = [
- '/bootstrap/cache',
- '/storage/framework/views',
- '/storage/logs/error',
- '/storage/logs/debug'
- ];
- } else {
- $create_dir = [
- '../addons/yun_shop/bootstrap/cache',
- '../addons/yun_shop/storage/framework/views',
- '../addons/yun_shop/storage/logs/error',
- '../addons/yun_shop/storage/logs/debug'
- ];
- }
- foreach ($create_dir as $dir_path) {
- if (!is_dir($dir_path)) {
- @mkdir($dir_path, 0755, true);
- }
- }
- $sql = "
- CREATE TABLE IF NOT EXISTS ims_yz_account_open_config (
- `config_id` int(11) NOT NULL,
- `uniacid` int(11) NOT NULL DEFAULT '0',
- `app_key` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL,
- `app_secret` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL,
- `type` tinyint(1) NOT NULL DEFAULT '0',
- `created_at` int(10) unsigned NOT NULL DEFAULT '0',
- `updated_at` int(10) unsigned NOT NULL DEFAULT '0',
- `deleted_at` int(11) DEFAULT NULL,
- PRIMARY KEY (`config_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
- # Dump of table ims_yz_address
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_address (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `areaname` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
- `parentid` int(11) DEFAULT NULL,
- `level` int(11) DEFAULT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-
- # Dump of table ims_yz_balance
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_balance (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `uniacid` int(11) DEFAULT NULL,
- `member_id` int(11) DEFAULT NULL,
- `old_money` decimal(14,2) DEFAULT NULL,
- `change_money` decimal(14,2) NOT NULL,
- `new_money` decimal(14,2) NOT NULL,
- `type` tinyint(3) NOT NULL,
- `service_type` tinyint(11) NOT NULL,
- `serial_number` varchar(45) NOT NULL DEFAULT '',
- `operator` int(11) NOT NULL,
- `operator_id` varchar(45) NOT NULL DEFAULT '',
- `remark` varchar(200) NOT NULL DEFAULT '',
- `created_at` int(11) NOT NULL,
- `updated_at` int(11) NOT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
- # Dump of table ims_yz_balance_recharge
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_balance_recharge (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `uniacid` int(11) DEFAULT NULL,
- `member_id` int(11) DEFAULT NULL,
- `old_money` decimal(14,2) DEFAULT NULL,
- `money` decimal(14,2) DEFAULT NULL,
- `new_money` decimal(14,2) DEFAULT NULL,
- `type` int(11) DEFAULT NULL,
- `created_at` int(11) DEFAULT NULL,
- `updated_at` int(11) DEFAULT NULL,
- `ordersn` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
- `status` tinyint(1) DEFAULT '0',
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
- # Dump of table ims_yz_balance_transfer
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_balance_transfer (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `uniacid` int(11) DEFAULT NULL,
- `transferor` int(11) DEFAULT NULL,
- `recipient` int(11) DEFAULT NULL,
- `money` decimal(14,2) DEFAULT NULL,
- `created_at` int(11) DEFAULT NULL,
- `status` tinyint(1) DEFAULT NULL,
- `updated_at` int(11) NOT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
- # Dump of table ims_yz_brand
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_brand (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `uniacid` int(11) NOT NULL,
- `name` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT '',
- `alias` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT '',
- `logo` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT '',
- `desc` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT '',
- `created_at` int(11) DEFAULT NULL,
- `updated_at` int(11) DEFAULT NULL,
- `deleted_at` int(11) DEFAULT NULL,
- PRIMARY KEY (`id`),
- KEY `idx_name` (`name`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
- # Dump of table ims_yz_brand
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_mc_member_address (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `uniacid` int(10) unsigned NOT NULL,
- `uid` int(50) unsigned NOT NULL,
- `username` varchar(20) NOT NULL,
- `mobile` varchar(11) NOT NULL,
- `zipcode` varchar(6) NOT NULL,
- `province` varchar(32) NOT NULL,
- `city` varchar(32) NOT NULL,
- `district` varchar(32) NOT NULL,
- `address` varchar(512) NOT NULL,
- `isdefault` tinyint(1) unsigned NOT NULL,
- PRIMARY KEY (`id`),
- KEY `idx_uinacid` (`uniacid`),
- KEY `idx_uid` (`uid`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
- # Dump of table ims_mc_members
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_mc_members (
- `uid` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
- `uniacid` int(10) UNSIGNED NOT NULL,
- `mobile` varchar(18) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
- `email` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
- `password` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
- `salt` varchar(8) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
- `groupid` int(11) NOT NULL,
- `credit1` decimal(10, 2) UNSIGNED NOT NULL,
- `credit2` decimal(10, 2) UNSIGNED NOT NULL,
- `credit3` decimal(10, 2) UNSIGNED NOT NULL,
- `credit4` decimal(10, 2) UNSIGNED NOT NULL,
- `credit5` decimal(10, 2) UNSIGNED NOT NULL,
- `credit6` decimal(10, 2) NOT NULL,
- `createtime` int(10) UNSIGNED NOT NULL,
- `realname` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
- `nickname` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
- `avatar` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
- `qq` varchar(15) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
- `vip` tinyint(3) UNSIGNED NOT NULL,
- `gender` tinyint(1) NOT NULL,
- `birthyear` smallint(6) UNSIGNED NOT NULL,
- `birthmonth` tinyint(3) UNSIGNED NOT NULL,
- `birthday` tinyint(3) UNSIGNED NOT NULL,
- `constellation` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
- `zodiac` varchar(5) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
- `telephone` varchar(15) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
- `idcard` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
- `studentid` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
- `grade` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
- `address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
- `zipcode` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
- `nationality` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
- `resideprovince` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
- `residecity` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
- `residedist` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
- `graduateschool` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
- `company` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
- `education` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
- `occupation` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
- `position` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
- `revenue` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
- `affectivestatus` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
- `lookingfor` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
- `bloodtype` varchar(5) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
- `height` varchar(5) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
- `weight` varchar(5) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
- `alipay` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
- `msn` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
- `taobao` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
- `site` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
- `bio` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
- `interest` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
- `pay_password` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '0',
- PRIMARY KEY (`uid`) USING BTREE,
- INDEX `groupid`(`groupid`) USING BTREE,
- INDEX `uniacid`(`uniacid`) USING BTREE,
- INDEX `email`(`email`) USING BTREE,
- INDEX `mobile`(`mobile`) USING BTREE
- ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
- # Dump of table ims_mc_mapping_fans
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_mc_mapping_fans (
- `fanid` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
- `acid` int(10) UNSIGNED NOT NULL,
- `uniacid` int(10) UNSIGNED NOT NULL,
- `uid` int(10) UNSIGNED NOT NULL,
- `openid` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
- `nickname` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
- `groupid` varchar(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
- `salt` char(8) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
- `follow` tinyint(1) UNSIGNED NOT NULL,
- `followtime` int(10) UNSIGNED NOT NULL,
- `unfollowtime` int(10) UNSIGNED NOT NULL,
- `tag` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
- `updatetime` int(10) UNSIGNED NULL DEFAULT NULL,
- `unionid` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
- PRIMARY KEY (`fanid`) USING BTREE,
- UNIQUE INDEX `openid_2`(`openid`) USING BTREE,
- INDEX `acid`(`acid`) USING BTREE,
- INDEX `uniacid`(`uniacid`) USING BTREE,
- INDEX `nickname`(`nickname`) USING BTREE,
- INDEX `updatetime`(`updatetime`) USING BTREE,
- INDEX `uid`(`uid`) USING BTREE,
- INDEX `openid`(`openid`) USING BTREE
- ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
- # Dump of table ims_mc_fans_groups
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_mc_fans_groups (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `uniacid` int(10) unsigned NOT NULL,
- `acid` int(10) unsigned NOT NULL,
- `groups` varchar(10000) NOT NULL,
- PRIMARY KEY (`id`),
- KEY `uniacid` (`uniacid`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
- # Dump of table ims_mc_fans_tag_mapping
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_mc_fans_tag_mapping (
- `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
- `fanid` int(11) unsigned NOT NULL,
- `tagid` tinyint(3) unsigned NOT NULL,
- PRIMARY KEY (`id`),
- UNIQUE KEY `mapping` (`fanid`,`tagid`),
- KEY `fanid_index` (`fanid`),
- KEY `tagid_index` (`tagid`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
- # Dump of table ims_yz_mc_groups
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_mc_groups (
- `groupid` int(11) NOT NULL AUTO_INCREMENT,
- `uniacid` int(11) NOT NULL,
- `title` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
- `credit` int(10) UNSIGNED NOT NULL,
- `isdefault` tinyint(4) NOT NULL,
- PRIMARY KEY (`groupid`) USING BTREE,
- INDEX `uniacid`(`uniacid`) USING BTREE
- ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
- # Dump of table ims_yz_category
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_category (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `uniacid` int(11) DEFAULT '0',
- `name` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
- `thumb` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
- `parent_id` int(11) DEFAULT '0',
- `description` varchar(500) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
- `display_order` tinyint(1) DEFAULT '0',
- `enabled` tinyint(1) DEFAULT '1',
- `is_home` tinyint(1) DEFAULT '0',
- `adv_img` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT '',
- `adv_url` varchar(500) COLLATE utf8mb4_unicode_ci DEFAULT '',
- `level` tinyint(1) DEFAULT '0',
- `advimg_pc` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
- `advurl_pc` varchar(500) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
- `created_at` int(11) DEFAULT NULL,
- `updated_at` int(11) DEFAULT NULL,
- `deleted_at` int(11) DEFAULT NULL,
- PRIMARY KEY (`id`),
- KEY `idx_uniacid` (`uniacid`),
- KEY `idx_parentid` (`parent_id`),
- KEY `idx_displayorder` (`display_order`),
- KEY `idx_enabled` (`enabled`),
- KEY `idx_ishome` (`is_home`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='商品--分类表';
- # Dump of table ims_yz_comment
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_comment (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `uniacid` int(11) NOT NULL DEFAULT '0',
- `order_id` int(11) DEFAULT '0',
- `goods_id` int(11) NOT NULL DEFAULT '0',
- `uid` int(11) DEFAULT '0',
- `nick_name` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT '',
- `head_img_url` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT '',
- `content` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
- `level` tinyint(1) DEFAULT '0',
- `images` text COLLATE utf8mb4_unicode_ci,
- `comment_id` int(11) DEFAULT '0',
- `reply_id` int(11) DEFAULT '0',
- `reply_name` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
- `type` tinyint(3) DEFAULT '1',
- `created_at` int(11) NOT NULL DEFAULT '0',
- `updated_at` int(11) DEFAULT NULL,
- `deleted_at` int(11) DEFAULT NULL,
- PRIMARY KEY (`id`),
- KEY `idx_uniacid` (`uniacid`),
- KEY `idx_orderid` (`order_id`),
- KEY `idx_goodsid` (`goods_id`),
- KEY `idx_openid` (`uid`),
- KEY `idx_createtime` (`created_at`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='商品--评论表';
-
- # Dump of table ims_yz_coupon
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_coupon (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `uniacid` int(11) DEFAULT '0',
- `cat_id` int(11) DEFAULT '0',
- `name` varchar(255) DEFAULT '',
- `get_type` tinyint(3) DEFAULT '0',
- `level_limit` int(11) NOT NULL DEFAULT '0',
- `get_max` int(11) DEFAULT '0',
- `use_type` tinyint(3) unsigned DEFAULT '0',
- `return_type` tinyint(3) DEFAULT '0',
- `bgcolor` varchar(255) DEFAULT '',
- `enough` int(11) NOT NULL DEFAULT '0',
- `coupon_type` tinyint(3) DEFAULT '0',
- `time_limit` tinyint(3) DEFAULT '0',
- `time_days` int(11) DEFAULT '0',
- `time_start` int(11) DEFAULT '0',
- `time_end` int(11) DEFAULT '0',
- `coupon_method` tinyint(4) DEFAULT NULL,
- `discount` decimal(10,2) DEFAULT '0.00',
- `deduct` decimal(10,2) DEFAULT '0.00',
- `back_type` tinyint(3) DEFAULT '0',
- `back_money` varchar(50) DEFAULT '',
- `back_credit` varchar(50) DEFAULT '',
- `back_redpack` varchar(50) DEFAULT '',
- `back_when` tinyint(3) DEFAULT '0',
- `thumb` varchar(255) DEFAULT '',
- `desc` text,
- `total` int(11) DEFAULT '0',
- `status` tinyint(3) DEFAULT '0',
- `money` decimal(10,2) DEFAULT '0.00',
- `resp_desc` text,
- `resp_thumb` varchar(255) DEFAULT '',
- `resp_title` varchar(255) DEFAULT '',
- `resp_url` varchar(255) DEFAULT '',
- `credit` int(11) DEFAULT '0',
- `usecredit2` tinyint(3) DEFAULT '0',
- `remark` varchar(1000) DEFAULT '',
- `descnoset` tinyint(3) DEFAULT '0',
- `display_order` int(11) DEFAULT '0',
- `supplier_uid` int(11) DEFAULT '0',
- `getcashier` tinyint(1) NOT NULL DEFAULT '0',
- `cashiersids` text,
- `cashiersnames` text,
- `category_ids` text,
- `categorynames` text,
- `goods_names` text,
- `goods_ids` text,
- `storeids` text,
- `storenames` text,
- `getstore` tinyint(1) NOT NULL DEFAULT '0',
- `getsupplier` tinyint(1) DEFAULT '0',
- `supplierids` text,
- `suppliernames` text,
- `createtime` int(11) DEFAULT '0',
- `created_at` int(10) unsigned DEFAULT NULL,
- `updated_at` int(10) unsigned DEFAULT NULL,
- `deleted_at` int(10) unsigned DEFAULT NULL,
- PRIMARY KEY (`id`),
- KEY `idx_catid` (`cat_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='商品--优惠券主表';
- # Dump of table ims_yz_coupon_category
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_coupon_category (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `uniacid` int(11) DEFAULT '0',
- `name` varchar(255) DEFAULT '',
- `display_order` int(11) DEFAULT '0',
- `status` int(11) DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `idx_uniacid` (`uniacid`),
- KEY `idx_displayorder` (`display_order`),
- KEY `idx_status` (`status`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
- # Dump of table ims_yz_coupon_log
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_coupon_log (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `uniacid` int(11) DEFAULT '0',
- `logno` varchar(255) DEFAULT '',
- `member_id` varchar(255) DEFAULT '',
- `couponid` int(11) DEFAULT '0',
- `status` int(11) DEFAULT '0',
- `paystatus` tinyint(3) DEFAULT '0',
- `creditstatus` tinyint(3) DEFAULT '0',
- `createtime` int(11) DEFAULT '0',
- `paytype` tinyint(3) DEFAULT '0',
- `getfrom` tinyint(3) DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `idx_uniacid` (`uniacid`),
- KEY `idx_couponid` (`couponid`),
- KEY `idx_status` (`status`),
- KEY `idx_paystatus` (`paystatus`),
- KEY `idx_createtime` (`createtime`),
- KEY `idx_getfrom` (`getfrom`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-
- # Dump of table ims_yz_dispatch
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_dispatch (
- `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
- `uniacid` int(11) DEFAULT NULL,
- `dispatch_name` varchar(50) DEFAULT NULL COMMENT '配送模板名称',
- `display_order` int(11) DEFAULT NULL COMMENT '排序',
- `enabled` tinyint(3) DEFAULT NULL COMMENT '是否显示(1:是;0:否)',
- `is_default` tinyint(3) DEFAULT NULL COMMENT '是否默认模板(1:是;0:否)',
- `calculate_type` tinyint(3) DEFAULT NULL COMMENT '计费方式',
- `areas` text COMMENT '配送区域',
- `first_weight` int(11) DEFAULT NULL COMMENT '首重克数',
- `another_weight` int(11) DEFAULT NULL COMMENT '续重克数',
- `first_weight_price` decimal(14,2) DEFAULT NULL COMMENT '首重价格',
- `another_weight_price` decimal(14,2) DEFAULT NULL COMMENT '续重价格',
- `first_piece` int(11) DEFAULT NULL COMMENT '首件个数',
- `another_piece` int(11) DEFAULT NULL COMMENT '续件个数',
- `first_piece_price` int(11) DEFAULT NULL COMMENT '首件价格',
- `another_piece_price` int(11) DEFAULT NULL COMMENT '续件价格',
- `weight_data` longtext COMMENT '按重量计费数据',
- `piece_data` longtext COMMENT '按数量计费数据',
- `is_plugin` tinyint(3) DEFAULT '0',
- `created_at` int(11) DEFAULT NULL,
- `updated_at` int(11) DEFAULT NULL,
- `deleted_at` int(11) DEFAULT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
- # Dump of table ims_yz_dispatch_type
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_dispatch_type (
- `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
- `name` varchar(50) NOT NULL DEFAULT '',
- `plugin` int(11) NOT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
- # Dump of table ims_yz_goods
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_goods (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `uniacid` int(11) NOT NULL DEFAULT '0' COMMENT '公众号ID',
- `brand_id` int(11) NOT NULL COMMENT '品牌ID',
- `type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '类型1实体2虚拟',
- `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态1上架0下架',
- `display_order` int(11) DEFAULT '0' COMMENT '排序',
- `title` varchar(100) NOT NULL DEFAULT '' COMMENT '名称',
- `thumb` varchar(255) NOT NULL DEFAULT '' COMMENT '主图',
- `thumb_url` text COMMENT '轮播图',
- `sku` varchar(5) DEFAULT '' COMMENT '单位',
- `description` varchar(1000) DEFAULT '',
- `content` text COMMENT '描述',
- `goods_sn` varchar(50) DEFAULT '' COMMENT '编号',
- `product_sn` varchar(50) DEFAULT '' COMMENT '条码',
- `market_price` decimal(14,2) DEFAULT '0.00' COMMENT '原价',
- `price` decimal(14,2) NOT NULL DEFAULT '0.00' COMMENT '现价',
- `cost_price` decimal(14,2) DEFAULT '0.00' COMMENT '成本价',
- `stock` int(10) NOT NULL DEFAULT '0' COMMENT '库存',
- `reduce_stock_method` int(11) DEFAULT '0' COMMENT '扣库存方式0下单1付款2永不',
- `show_sales` int(11) DEFAULT '0' COMMENT '销量',
- `real_sales` int(11) DEFAULT '0' COMMENT '销量',
- `weight` decimal(10,2) DEFAULT '0.00' COMMENT '重量',
- `has_option` int(11) DEFAULT '0' COMMENT '是否拥有规格',
- `is_new` tinyint(1) DEFAULT '0' COMMENT '新上',
- `is_hot` tinyint(1) DEFAULT '0' COMMENT '热卖',
- `is_discount` tinyint(1) DEFAULT '0' COMMENT '促销',
- `is_recommand` tinyint(1) DEFAULT '0' COMMENT '推荐',
- `is_comment` tinyint(1) DEFAULT '0',
- `is_deleted` tinyint(3) NOT NULL DEFAULT '0',
- `created_at` int(11) DEFAULT NULL,
- `deleted_at` int(11) DEFAULT NULL,
- `updated_at` int(11) DEFAULT NULL,
- `comment_num` int(11) NOT NULL DEFAULT '0' COMMENT '评论数量',
- `is_plugin` int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`,`is_deleted`),
- KEY `idx_uniacid` (`uniacid`),
- KEY `idx_isnew` (`is_new`),
- KEY `idx_ishot` (`is_hot`),
- KEY `idx_isdiscount` (`is_discount`),
- KEY `idx_isrecommand` (`is_recommand`),
- KEY `idx_iscomment` (`is_comment`),
- KEY `idx_deleted` (`is_deleted`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='商品--商品主表';
- # Dump of table ims_yz_goods_area
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_goods_area (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `goods_id` int(11) NOT NULL,
- `area_id` int(11) NOT NULL,
- PRIMARY KEY (`id`),
- KEY `idx_goodid` (`goods_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='商品--商品区域插件关联表';
- # Dump of table ims_yz_goods_bonus
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_goods_bonus (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `goods_id` int(11) NOT NULL,
- `bonus_money` int(11) DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `idx_good_id` (`goods_id`) USING BTREE
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='商品--分红关联表';
- # Dump of table ims_yz_goods_category
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_goods_category (
- `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
- `goods_id` int(11) DEFAULT NULL,
- `category_id` int(11) DEFAULT NULL,
- `category_ids` varchar(255) DEFAULT NULL,
- `updated_at` int(11) DEFAULT NULL,
- `created_at` int(11) DEFAULT NULL,
- `deleted_at` int(11) DEFAULT NULL,
- PRIMARY KEY (`id`),
- KEY `idx_goodid` (`goods_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='商品--分类关联';
-
- # Dump of table ims_yz_goods_discount
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_goods_discount (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `goods_id` int(11) NOT NULL,
- `level_discount_type` tinyint(1) NOT NULL,
- `discount_method` tinyint(1) NOT NULL,
- `level_id` int(11) NOT NULL,
- `discount_value` decimal(14,2) NOT NULL,
- `created_at` int(11) NOT NULL,
- `updated_at` int(11) NOT NULL,
- `deleted_at` int(11) DEFAULT NULL,
- PRIMARY KEY (`id`),
- KEY `idx_goodid` (`goods_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
- # Dump of table ims_yz_goods_discount_detail
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_goods_discount_detail (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `discount_id` int(11) NOT NULL,
- `level_id` int(11) DEFAULT NULL,
- `discount` decimal(3,2) DEFAULT NULL,
- `amount` int(11) DEFAULT NULL,
- PRIMARY KEY (`id`),
- KEY `idx_discountid` (`discount_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='商品--折扣与商品折扣明细关联表';
- # Dump of table ims_yz_goods_dispatch
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_goods_dispatch (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `goods_id` int(11) NOT NULL,
- `dispatch_type` tinyint(1) NOT NULL DEFAULT '1',
- `dispatch_price` int(11) DEFAULT '0',
- `dispatch_id` int(11) DEFAULT NULL,
- `is_cod` tinyint(1) NOT NULL DEFAULT '1',
- `created_at` int(11) NOT NULL,
- `updated_at` int(11) NOT NULL,
- `deleted_at` int(11) DEFAULT NULL,
- PRIMARY KEY (`id`),
- KEY `idx_good_id` (`goods_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='商品--等级折扣挂件';
- # Dump of table ims_yz_goods_diyform
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_goods_diyform (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `good_id` int(11) NOT NULL,
- `diyform_id` int(11) DEFAULT NULL,
- `diyform_enable` tinyint(1) DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `idx_goodid` (`good_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='商品--自定义表单关联表';
- # Dump of table ims_yz_goods_level_returns
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_goods_level_returns (
- `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
- `good_return_id` int(11) NOT NULL,
- `level_type` tinyint(3) NOT NULL DEFAULT '1',
- `level_id` int(11) NOT NULL,
- `amount` int(11) NOT NULL,
- PRIMARY KEY (`id`),
- KEY `idx_good_return_id` (`good_return_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='商品--等级返现规则表';
- # Dump of table ims_yz_goods_notices
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_goods_notices (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `goods_id` int(11) NOT NULL,
- `uid` int(11) DEFAULT NULL,
- `type` tinyint(1) DEFAULT NULL,
- PRIMARY KEY (`id`),
- KEY `idx_good_id` (`goods_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='商品--消息通知挂件';
- # Dump of table ims_yz_goods_option
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_goods_option (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `uniacid` int(11) DEFAULT '0',
- `goods_id` int(10) DEFAULT '0',
- `title` varchar(255) DEFAULT NULL,
- `thumb` varchar(60) DEFAULT NULL,
- `product_price` decimal(10,2) DEFAULT '0.00',
- `market_price` decimal(10,2) DEFAULT '0.00',
- `cost_price` decimal(10,2) DEFAULT '0.00',
- `stock` int(11) DEFAULT '0',
- `weight` decimal(10,2) DEFAULT '0.00',
- `display_order` int(11) DEFAULT '0',
- `specs` text,
- `skuId` varchar(255) DEFAULT '',
- `goods_sn` varchar(255) DEFAULT '',
- `product_sn` varchar(255) DEFAULT '',
- `virtual` int(11) DEFAULT '0',
- `red_price` varchar(50) DEFAULT '',
- `created_at` int(11) DEFAULT NULL,
- `deleted_at` int(11) DEFAULT NULL,
- `updated_at` int(11) DEFAULT NULL,
- PRIMARY KEY (`id`),
- KEY `idx_uniacid` (`uniacid`),
- KEY `idx_goodsid` (`goods_id`),
- KEY `idx_displayorder` (`display_order`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='商品--商品规格';
- # Dump of table ims_yz_goods_param
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_goods_param (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `uniacid` int(11) DEFAULT '0',
- `goods_id` int(10) DEFAULT '0',
- `title` varchar(50) DEFAULT NULL,
- `value` text,
- `displayorder` int(11) DEFAULT '0',
- `updated_at` int(11) DEFAULT NULL,
- `created_at` int(11) DEFAULT NULL,
- `deleted_at` int(11) DEFAULT NULL,
- PRIMARY KEY (`id`),
- KEY `idx_uniacid` (`uniacid`),
- KEY `idx_goodsid` (`goods_id`),
- KEY `idx_displayorder` (`displayorder`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='商品--商品属性挂件';
- # Dump of table ims_yz_goods_privilege
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_goods_privilege (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `goods_id` int(11) NOT NULL,
- `show_levels` text COLLATE utf8mb4_unicode_ci,
- `show_groups` text COLLATE utf8mb4_unicode_ci,
- `buy_levels` text COLLATE utf8mb4_unicode_ci,
- `buy_groups` text COLLATE utf8mb4_unicode_ci,
- `once_buy_limit` int(11) DEFAULT '0',
- `total_buy_limit` int(11) DEFAULT '0',
- `day_buy_limit` int(11) DEFAULT '0',
- `week_buy_limit` int(11) DEFAULT '0',
- `month_buy_limit` int(11) DEFAULT '0',
- `time_begin_limit` int(11) DEFAULT NULL,
- `time_end_limit` int(11) DEFAULT NULL,
- `enable_time_limit` tinyint(1) NOT NULL,
- `created_at` int(11) NOT NULL,
- `updated_at` int(11) NOT NULL,
- `deleted_at` int(11) DEFAULT NULL,
- PRIMARY KEY (`id`),
- KEY `idx_goodid` (`goods_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='商品--权限挂件';
- # Dump of table ims_core_sessions
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_core_sessions (
- `sid` char(32) NOT NULL primary key,
- `uniacid` int(10) NOT NULL,
- `openid` varchar(50) NOT NULL,
- `data` varchar(5000) NOT NULL,
- `expiretime` int(10) NOT NULL
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
- # Dump of table ims_yz_goods_return
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_goods_return (
- `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
- `good_id` int(11) NOT NULL,
- `is_level_return` tinyint(3) NOT NULL DEFAULT '0',
- `level_return_type` tinyint(3) NOT NULL DEFAULT '1',
- `is_order_return` tinyint(3) NOT NULL DEFAULT '0',
- `is_queue_return` tinyint(3) NOT NULL DEFAULT '0',
- `add_pool_amount` int(11) DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `idx_good_id` (`good_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='商品--全返关联表';
- # Dump of table ims_yz_goods_sale
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_goods_sale (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `goods_id` int(11) NOT NULL,
- `max_point_deduct` int(11) DEFAULT '0',
- `max_balance_deduct` int(11) DEFAULT '0',
- `is_sendfree` int(11) DEFAULT '0',
- `ed_num` int(11) DEFAULT '0',
- `ed_money` int(11) DEFAULT '0',
- `ed_areas` text COLLATE utf8mb4_unicode_ci,
- `point` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT '0',
- `bonus` int(11) DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `idx_good_id` (`goods_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
- # Dump of table ims_yz_goods_share
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_goods_share (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `goods_id` int(11) NOT NULL,
- `need_follow` tinyint(1) DEFAULT NULL,
- `no_follow_message` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT '',
- `follow_message` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT '',
- `share_title` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT '',
- `share_thumb` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT '',
- `share_desc` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT '',
- `created_at` int(11) NOT NULL,
- `updated_at` int(11) NOT NULL,
- `deleted_at` int(11) DEFAULT NULL,
- PRIMARY KEY (`id`),
- KEY `idx_goodid` (`goods_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
- # Dump of table ims_mc_chats_record
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_mc_chats_record (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `uniacid` int(10) unsigned NOT NULL,
- `acid` int(10) unsigned NOT NULL,
- `flag` tinyint(3) unsigned NOT NULL,
- `openid` varchar(32) NOT NULL,
- `msgtype` varchar(15) NOT NULL,
- `content` varchar(10000) NOT NULL,
- `createtime` int(10) unsigned NOT NULL,
- PRIMARY KEY (`id`),
- KEY `uniacid` (`uniacid`,`acid`),
- KEY `openid` (`openid`),
- KEY `createtime` (`createtime`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
- # Dump of table ims_yz_goods_spec
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_goods_spec (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `uniacid` int(11) DEFAULT '0',
- `goods_id` int(11) DEFAULT '0',
- `title` varchar(50) DEFAULT NULL,
- `description` varchar(1000) DEFAULT NULL,
- `display_type` tinyint(3) DEFAULT '0',
- `content` text,
- `display_order` int(11) DEFAULT '0',
- `propId` varchar(255) DEFAULT NULL,
- `created_at` int(11) DEFAULT NULL,
- `deleted_at` int(11) DEFAULT NULL,
- `updated_at` int(11) DEFAULT NULL,
- PRIMARY KEY (`id`),
- KEY `idx_uniacid` (`uniacid`),
- KEY `idx_goodsid` (`goods_id`),
- KEY `idx_displayorder` (`display_order`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
- # Dump of table ims_yz_goods_spec_item
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_goods_spec_item (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `uniacid` int(11) DEFAULT '0',
- `specid` int(11) DEFAULT '0',
- `title` varchar(255) DEFAULT NULL,
- `thumb` varchar(255) DEFAULT NULL,
- `show` int(11) DEFAULT '0',
- `display_order` int(11) DEFAULT '0',
- `valueId` varchar(255) DEFAULT NULL,
- `virtual` int(11) DEFAULT '0',
- `created_at` int(11) DEFAULT NULL,
- `deleted_at` int(11) DEFAULT NULL,
- `updated_at` int(11) DEFAULT NULL,
- PRIMARY KEY (`id`),
- KEY `idx_uniacid` (`uniacid`),
- KEY `idx_specid` (`specid`),
- KEY `idx_show` (`show`),
- KEY `idx_displayorder` (`display_order`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
- # Dump of table ims_yz_member
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_member (
- `m_id` int(11) NOT NULL AUTO_INCREMENT,
- `member_id` int(11) NOT NULL,
- `uniacid` int(11) NOT NULL,
- `parent_id` int(11) NOT NULL DEFAULT '0',
- `group_id` int(11) NOT NULL DEFAULT '0',
- `level_id` int(11) NOT NULL DEFAULT '0',
- `inviter` int(11) DEFAULT '0',
- `is_black` tinyint(1) NOT NULL DEFAULT '0',
- `province_name` varchar(15) COLLATE utf8mb4_unicode_ci DEFAULT '',
- `city_name` varchar(15) COLLATE utf8mb4_unicode_ci DEFAULT '',
- `area_name` varchar(15) COLLATE utf8mb4_unicode_ci DEFAULT '',
- `province` int(11) DEFAULT '0',
- `city` int(11) DEFAULT '0',
- `area` int(11) DEFAULT '0',
- `address` text COLLATE utf8mb4_unicode_ci,
- `referralsn` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT '0',
- `is_agent` tinyint(1) DEFAULT '0',
- `alipayname` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
- `alipay` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
- `content` text COLLATE utf8mb4_unicode_ci,
- `status` int(11) DEFAULT '0',
- `child_time` int(11) DEFAULT '0',
- `agent_time` int(11) DEFAULT '0',
- `apply_time` int(11) DEFAULT '0',
- `relation` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT '',
- `created_at` int(11) NOT NULL,
- `updated_at` int(11) NOT NULL,
- `deleted_at` int(11) DEFAULT NULL,
- PRIMARY KEY (`m_id`),
- UNIQUE INDEX `un_member_id`(`member_id`),
- KEY `idx_uniacid` (`uniacid`),
- KEY `idx_parentid` (`parent_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
- # Dump of table ims_yz_member_app_wechat
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_member_app_wechat (
- `app_wechat_id` int(11) NOT NULL,
- `uniacid` int(11) NOT NULL,
- `member_id` int(11) NOT NULL,
- `openid` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
- `nickname` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL,
- `avatar` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
- `gender` tinyint(1) NOT NULL DEFAULT '0',
- `created_at` int(10) unsigned NOT NULL DEFAULT '0',
- `updated_at` int(10) unsigned NOT NULL DEFAULT '0',
- `deleted_at` int(11) DEFAULT NULL,
- PRIMARY KEY (`app_wechat_id`),
- UNIQUE INDEX `un_openid`(`openid`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
- # Dump of table ims_yz_member_cart
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_member_cart (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `member_id` int(11) NOT NULL,
- `uniacid` int(11) NOT NULL,
- `goods_id` int(11) NOT NULL,
- `total` int(11) NOT NULL,
- `option_id` int(11) NOT NULL,
- `created_at` int(11) NOT NULL,
- `updated_at` int(11) NOT NULL,
- `deleted_at` int(11) DEFAULT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
- # Dump of table ims_yz_member_coupon
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_member_coupon (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `uniacid` int(11) DEFAULT '0',
- `uid` varchar(255) DEFAULT '',
- `coupon_id` int(11) DEFAULT '0',
- `get_type` tinyint(3) DEFAULT '0',
- `used` int(11) DEFAULT '0',
- `use_time` int(11) DEFAULT '0',
- `get_time` int(11) DEFAULT '0',
- `send_uid` int(11) DEFAULT '0',
- `order_sn` varchar(255) DEFAULT '',
- `back` tinyint(3) DEFAULT '0',
- `back_time` int(11) DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `idx_couponid` (`coupon_id`),
- KEY `idx_gettype` (`get_type`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
- # Dump of table ims_yz_member_favorite
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_member_favorite (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `member_id` int(11) NOT NULL,
- `uniacid` int(11) NOT NULL,
- `goods_id` int(11) NOT NULL,
- `created_at` int(11) NOT NULL,
- `updated_at` int(11) NOT NULL,
- `deleted_at` int(11) DEFAULT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
- # Dump of table ims_yz_member_group
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_member_group (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `uniacid` int(11) NOT NULL,
- `group_name` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL,
- `created_at` int(11) NOT NULL,
- `updated_at` int(11) NOT NULL,
- `deleted_at` int(11) DEFAULT NULL,
- `is_default` int(11) DEFAULT '0',
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
- # Dump of table ims_yz_member_history
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_member_history (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `member_id` int(11) NOT NULL,
- `uniacid` int(11) NOT NULL,
- `goods_id` int(11) NOT NULL,
- `created_at` int(11) NOT NULL,
- `updated_at` int(11) NOT NULL,
- `deleted_at` int(11) DEFAULT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
- # Dump of table ims_yz_member_income
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_member_income (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `uniacid` int(11) NOT NULL,
- `member_id` int(11) NOT NULL,
- `incometable_type` varchar(60) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
- `incometable_id` int(11) DEFAULT NULL,
- `type_name` varchar(120) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
- `amount` decimal(14,2) NOT NULL DEFAULT '0.00',
- `status` tinyint(1) NOT NULL DEFAULT '0',
- `pay_status` tinyint(3) NOT NULL DEFAULT '0',
- `detail` text COLLATE utf8mb4_unicode_ci,
- `create_month` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT '',
- `created_at` int(11) DEFAULT NULL,
- `updated_at` int(11) DEFAULT NULL,
- `deleted_at` int(11) DEFAULT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
- # Dump of table ims_yz_member_level
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_member_level (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `uniacid` int(11) NOT NULL,
- `level` int(11) NOT NULL,
- `level_name` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL,
- `order_money` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
- `order_count` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
- `goods_id` int(11) DEFAULT NULL,
- `discount` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
- `created_at` int(11) NOT NULL,
- `updated_at` int(11) NOT NULL,
- `deleted_at` int(11) DEFAULT NULL,
- `is_default` int(11) DEFAULT '0',
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
- # Dump of table ims_yz_member_mini_app
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_member_mini_app (
- `mini_app_id` int(11) NOT NULL AUTO_INCREMENT,
- `uniacid` int(11) NOT NULL,
- `member_id` int(11) NOT NULL,
- `openid` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
- `nickname` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL,
- `avatar` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
- `gender` tinyint(1) NOT NULL,
- `created_at` int(10) unsigned NOT NULL DEFAULT '0',
- `updated_at` int(10) unsigned NOT NULL DEFAULT '0',
- `deleted_at` int(11) DEFAULT NULL,
- PRIMARY KEY (`mini_app_id`),
- UNIQUE INDEX `un_openid`(`openid`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
- # Dump of table ims_yz_member_qq
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_member_qq (
- `qq_id` int(11) NOT NULL AUTO_INCREMENT,
- `uniacid` int(11) NOT NULL,
- `member_id` int(11) NOT NULL,
- `nickname` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
- `figureurl` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
- `figureurl_1` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
- `figureurl_2` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
- `figureurl_qq_1` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
- `figureurl_qq_2` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
- `gender` tinyint(1) NOT NULL DEFAULT '0',
- `is_yellow_year_vip` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '0',
- `vip` int(11) NOT NULL DEFAULT '0',
- `yellow_vip_level` tinyint(1) NOT NULL DEFAULT '0',
- `level` tinyint(1) NOT NULL DEFAULT '0',
- `is_yellow_vip` tinyint(1) NOT NULL DEFAULT '0',
- `created_at` int(10) unsigned NOT NULL DEFAULT '0',
- `updated_at` int(10) unsigned NOT NULL DEFAULT '0',
- `deleted_at` int(11) DEFAULT NULL,
- PRIMARY KEY (`qq_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
- # Dump of table ims_yz_member_relation
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_member_relation (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `uniacid` int(11) DEFAULT NULL,
- `status` tinyint(1) NOT NULL DEFAULT '0',
- `become` tinyint(1) NOT NULL DEFAULT '0',
- `become_order` tinyint(1) NOT NULL DEFAULT '0',
- `become_child` tinyint(1) NOT NULL DEFAULT '0',
- `become_ordercount` int(11) DEFAULT '0',
- `become_moneycount` decimal(14,2) DEFAULT '0.00',
- `become_goods_id` int(11) DEFAULT '0',
- `become_info` tinyint(1) NOT NULL DEFAULT '1',
- `become_check` tinyint(1) NOT NULL DEFAULT '1',
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
- # Dump of table ims_yz_member_unique
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_member_unique (
- `unique_id` int(11) NOT NULL AUTO_INCREMENT,
- `uniacid` int(11) DEFAULT NULL,
- `unionid` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL,
- `member_id` int(11) NOT NULL,
- `type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
- `created_at` int(10) unsigned NOT NULL DEFAULT '0',
- `updated_at` int(10) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (`unique_id`),
- UNIQUE INDEX `un_unionid`(`unionid`),
- KEY `idx_uniacid` (`uniacid`),
- KEY `idx_member_id` (`member_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
- # Dump of table ims_yz_member_wechat
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_member_wechat (
- `wechat_id` int(11) NOT NULL AUTO_INCREMENT,
- `uniacid` int(11) NOT NULL,
- `member_id` int(11) NOT NULL,
- `openid` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
- `nickname` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL,
- `gender` tinyint(1) NOT NULL DEFAULT '0',
- `avatar` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
- `province` varchar(4) COLLATE utf8mb4_unicode_ci NOT NULL,
- `city` varchar(25) COLLATE utf8mb4_unicode_ci NOT NULL,
- `country` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL,
- `created_at` int(10) unsigned NOT NULL DEFAULT '0',
- `updated_at` int(10) unsigned NOT NULL DEFAULT '0',
- `deleted_at` int(11) DEFAULT NULL,
- PRIMARY KEY (`wechat_id`),
- KEY `idx_member_id` (`member_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
- # Dump of table ims_yz_menu
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_menu (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `name` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL,
- `item` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL,
- `url` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
- `url_params` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
- `permit` tinyint(1) NOT NULL DEFAULT '0',
- `menu` tinyint(1) NOT NULL DEFAULT '0',
- `icon` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
- `parent_id` int(11) NOT NULL DEFAULT '0',
- `sort` int(11) NOT NULL DEFAULT '0',
- `status` tinyint(1) NOT NULL DEFAULT '0',
- `created_at` int(11) NOT NULL DEFAULT '0',
- `updated_at` int(11) NOT NULL DEFAULT '0',
- `deleted_at` int(11) DEFAULT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
- # Dump of table ims_yz_options
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_options (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `option_name` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
- `option_value` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
- # Dump of table ims_yz_order
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_order (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `uniacid` int(11) NOT NULL DEFAULT '0' COMMENT '公众号ID',
- `uid` int(10) NOT NULL DEFAULT '0' COMMENT '会员ID',
- `order_sn` varchar(23) NOT NULL DEFAULT '' COMMENT '订单编号',
- `price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '实付金额',
- `goods_price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '商品现价和',
- `goods_total` int(11) NOT NULL DEFAULT '1' COMMENT '商品数量和',
- `status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '状态-1关闭0未支付1代发货2代收货3完成',
- `create_time` int(10) NOT NULL DEFAULT '0' COMMENT '创建时间',
- `is_deleted` tinyint(3) NOT NULL DEFAULT '0',
- `is_member_deleted` tinyint(3) NOT NULL DEFAULT '0' COMMENT '会员删除',
- `finish_time` int(11) NOT NULL DEFAULT '0' COMMENT '完成时间',
- `pay_time` int(11) NOT NULL DEFAULT '0' COMMENT '支付时间',
- `send_time` int(11) NOT NULL DEFAULT '0' COMMENT '发货时间',
- `cancel_time` int(11) NOT NULL DEFAULT '0' COMMENT '关闭时间',
- `created_at` int(11) NOT NULL DEFAULT '0',
- `updated_at` int(11) NOT NULL DEFAULT '0',
- `deleted_at` int(11) NOT NULL DEFAULT '0',
- `cancel_pay_time` int(11) NOT NULL DEFAULT '0' COMMENT '取消支付时间',
- `cancel_send_time` int(11) NOT NULL DEFAULT '0' COMMENT '取消发货时间',
- `dispatch_type_id` tinyint(3) NOT NULL DEFAULT '0' COMMENT '配送方式ID',
- `dispatch_price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '运费',
- `discount_price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '优惠金额',
- `pay_type_id` tinyint(3) NOT NULL DEFAULT '0' COMMENT '支付类型',
- `order_goods_price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '订单商品金额和',
- `deduction_price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '抵扣金额',
- `refund_id` int(11) NOT NULL DEFAULT '0' COMMENT '售后记录ID',
- `is_plugin` int(11) NOT NULL DEFAULT '0',
- `change_price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '改价金额',
- `change_dispatch_price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '改价运费金额',
- `comment_status` tinyint(2) NOT NULL DEFAULT '0',
- `order_pay_id` varchar(23) NOT NULL DEFAULT '' COMMENT '已支付记录id',
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='订单--订单主表';
- # Dump of table ims_yz_order_address
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_order_address (
- `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
- `order_id` int(11) NOT NULL,
- `address` varchar(255) NOT NULL DEFAULT '0' COMMENT '详细地址',
- `mobile` varchar(20) NOT NULL DEFAULT '' COMMENT '联系电话',
- `realname` varchar(50) NOT NULL DEFAULT '' COMMENT '收件人姓名',
- `updated_at` int(11) NOT NULL,
- `created_at` int(11) NOT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='订单--收货地址表';
- # Dump of table ims_yz_order_change_log
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_order_change_log (
- `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
- `order_id` int(11) DEFAULT NULL,
- `username` varchar(50) NOT NULL DEFAULT '',
- `old_price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '原金额',
- `new_price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '新金额',
- `change_price` decimal(10,2) NOT NULL COMMENT '改价金额',
- `created_at` int(11) DEFAULT NULL,
- `updated_at` int(11) DEFAULT NULL,
- `deleted_at` int(11) DEFAULT NULL,
- `change_dispatch_price` decimal(10,2) NOT NULL DEFAULT '0.00',
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='订单--改价记录';
- # Dump of table ims_yz_order_express
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_order_express (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `order_id` int(11) NOT NULL DEFAULT '0',
- `express_company_name` varchar(50) NOT NULL DEFAULT '0' COMMENT '快递名称',
- `express_sn` varchar(50) NOT NULL DEFAULT '0' COMMENT '快递编号',
- `express_code` varchar(20) NOT NULL DEFAULT '0' COMMENT '快递标识',
- `created_at` int(11) NOT NULL DEFAULT '0',
- `updated_at` int(11) NOT NULL DEFAULT '0',
- `deleted_at` int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `idx_order_id` (`order_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='订单--快递记录';
- # Dump of table ims_yz_order_goods
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_order_goods (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `uniacid` int(11) NOT NULL DEFAULT '0' COMMENT '公众号',
- `order_id` int(11) NOT NULL DEFAULT '0' COMMENT '订单ID',
- `goods_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品ID',
- `pay_sn` varchar(23) NOT NULL DEFAULT '',
- `total` int(11) NOT NULL DEFAULT '1' COMMENT '数量',
- `create_at` int(11) NOT NULL DEFAULT '0',
- `price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '初始金额',
- `goods_sn` varchar(50) NOT NULL DEFAULT '' COMMENT '商品编号',
- `uid` int(10) NOT NULL DEFAULT '0' COMMENT '会员ID',
- `thumb` varchar(255) NOT NULL DEFAULT '' COMMENT '主图',
- `title` varchar(255) NOT NULL DEFAULT '' COMMENT '商品名称',
- `goods_price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '商品现价',
- `goods_option_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品规格ID',
- `goods_option_title` varchar(255) NOT NULL DEFAULT '' COMMENT '商品规格名称',
- `product_sn` varchar(23) NOT NULL DEFAULT '' COMMENT '条码',
- `created_at` int(11) NOT NULL,
- `updated_at` int(11) NOT NULL,
- `discount_price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '优惠金额',
- `comment_status` tinyint(3) NOT NULL DEFAULT '0' COMMENT '评论状态',
- `change_price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '改价金额',
- `comment_id` int(11) NOT NULL DEFAULT '0' COMMENT '评论ID',
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='订单--商品记录表';
- # Dump of table ims_yz_order_goods_change_log
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_order_goods_change_log (
- `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
- `order_change_log_id` int(11) DEFAULT NULL,
- `order_goods_id` int(11) NOT NULL COMMENT '订单商品ID',
- `old_price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '原金额',
- `new_price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '新金额',
- `change_price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '改价金额',
- `created_at` int(11) DEFAULT NULL,
- `updated_at` int(11) DEFAULT NULL,
- `deleted_at` int(11) DEFAULT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='订单--订单商品改价表';
- # Dump of table ims_yz_order_mapping
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_order_mapping (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `old_order_id` int(11) NOT NULL,
- `new_order_id` int(11) NOT NULL,
- `old_openid` char(50) COLLATE utf8mb4_unicode_ci NOT NULL,
- `new_member_id` int(11) NOT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
- # Dump of table ims_yz_order_operation_log
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_order_operation_log (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `order_id` int(11) DEFAULT '0' COMMENT '订单ID',
- `before_operation_status` tinyint(1) DEFAULT '0' COMMENT '操作前状态',
- `after_operation_status` tinyint(1) DEFAULT '0' COMMENT '操作后状态',
- `operator` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT '' COMMENT '操作账号名',
- `operation_time` int(11) DEFAULT '0' COMMENT '操作时间',
- `created_at` int(11) DEFAULT '0',
- `updated_at` int(11) DEFAULT NULL,
- `type` varchar(10) COLLATE utf8mb4_unicode_ci DEFAULT '0',
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='订单--订单状态操作记录';
- # Dump of table ims_yz_order_pay
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_order_pay (
- `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
- `pay_sn` varchar(23) NOT NULL DEFAULT '' COMMENT '支付流水号',
- `status` tinyint(3) NOT NULL DEFAULT '0' COMMENT '状态',
- `pay_type_id` tinyint(3) NOT NULL DEFAULT '0' COMMENT '支付类型ID',
- `pay_time` int(11) NOT NULL DEFAULT '0' COMMENT '支付时间',
- `refund_time` int(11) NOT NULL DEFAULT '0',
- `order_ids` varchar(500) NOT NULL DEFAULT '' COMMENT '合并支付订单ID数组',
- `amount` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '支付金额',
- `uid` int(11) NOT NULL,
- `updated_at` int(11) DEFAULT NULL,
- `created_at` int(11) DEFAULT NULL,
- `deleted_at` int(11) DEFAULT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='订单--支付流水记录';
- # Dump of table ims_yz_order_refund
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_order_refund (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `uniacid` int(11) NOT NULL DEFAULT '0' COMMENT '公众号',
- `uid` int(11) NOT NULL COMMENT '会员ID',
- `order_id` int(11) NOT NULL DEFAULT '0' COMMENT '订单ID',
- `refund_sn` varchar(255) NOT NULL COMMENT '退款编号',
- `refund_type` tinyint(1) DEFAULT '0' COMMENT '退款类型:0退款1退货退款2换货',
- `status` tinyint(3) DEFAULT '0' COMMENT '状态',
- `price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '总金额',
- `reason` varchar(255) NOT NULL DEFAULT '' COMMENT '退款原因',
- `images` text NOT NULL COMMENT '图片',
- `content` text NOT NULL COMMENT '用户说明',
- `create_time` int(11) DEFAULT '0' COMMENT '申请时间',
- `reply` text,
- `reject_reason` text COMMENT '驳回原因',
- `refund_way_type` tinyint(3) DEFAULT '0' COMMENT '寄回方式',
- `apply_price` decimal(10,2) DEFAULT '0.00' COMMENT '申请金额',
- `freight_price` decimal(10,2) DEFAULT '0.00' COMMENT '运费金额',
- `refund_proof_imgs` text,
- `refund_time` int(11) DEFAULT '0',
- `refund_address` text COMMENT '退货寄回地址ID',
- `remark` text,
- `operate_time` int(11) DEFAULT '0',
- `send_time` int(11) DEFAULT '0',
- `return_time` int(11) DEFAULT '0',
- `end_time` int(11) DEFAULT '0',
- `alipay_batch_sn` varchar(255) DEFAULT '',
- `updated_at` int(11) DEFAULT NULL,
- `created_at` int(1) DEFAULT NULL,
- PRIMARY KEY (`id`),
- KEY `idx_create_time` (`create_time`),
- KEY `idx_shop_id` (`uniacid`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='订单--售后记录表';
- # Dump of table ims_yz_order_remark
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_order_remark (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `order_id` int(11) NOT NULL,
- `remark` char(255) NOT NULL,
- `updated_at` int(11) NOT NULL DEFAULT '0',
- `created_at` int(11) NOT NULL DEFAULT '0',
- `deleted_at` int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `idx_order_id` (`order_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='订单--商家注释';
- # Dump of table ims_yz_pay_access_log
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_pay_access_log (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `uniacid` int(11) NOT NULL,
- `member_id` int(11) NOT NULL,
- `url` text COLLATE utf8mb4_unicode_ci NOT NULL,
- `http_method` char(7) COLLATE utf8mb4_unicode_ci NOT NULL,
- `ip` varchar(135) COLLATE utf8mb4_unicode_ci NOT NULL,
- `created_at` int(11) NOT NULL DEFAULT '0',
- `updated_at` int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
- # Dump of table ims_yz_pay_log
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_pay_log (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `uniacid` int(11) NOT NULL,
- `member_id` int(11) NOT NULL,
- `type` tinyint(4) NOT NULL,
- `third_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
- `price` decimal(14,2) NOT NULL,
- `operation` text COLLATE utf8mb4_unicode_ci NOT NULL,
- `ip` varchar(135) COLLATE utf8mb4_unicode_ci NOT NULL,
- `created_at` int(13) NOT NULL DEFAULT '0',
- `updated_at` int(13) NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='系统--支付请求日志';
- # Dump of table ims_yz_pay_order
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_pay_order (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `uniacid` int(11) NOT NULL,
- `member_id` int(11) NOT NULL,
- `int_order_no` varchar(32) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
- `out_order_no` varchar(32) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '0',
- `trade_no` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT '0',
- `status` tinyint(1) NOT NULL DEFAULT '0',
- `price` decimal(14,2) NOT NULL,
- `type` tinyint(1) NOT NULL,
- `third_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
- `created_at` int(11) NOT NULL DEFAULT '0',
- `updated_at` int(11) NOT NULL DEFAULT '0',
- `deleted_at` int(11) DEFAULT NULL,
- PRIMARY KEY (`id`),
- KEY `idx_uniacid` (`uniacid`),
- KEY `idx_member_id` (`member_id`),
- KEY `idx_order_no` (`out_order_no`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='订单--支付流水记录';
- # Dump of table ims_yz_pay_refund_order
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_pay_refund_order (
- `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
- `uniacid` int(11) NOT NULL,
- `member_id` int(11) NOT NULL,
- `int_order_no` varchar(32) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
- `out_order_no` varchar(32) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
- `trade_no` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT '0',
- `price` decimal(14,2) NOT NULL,
- `type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
- `status` tinyint(1) NOT NULL,
- `created_at` int(11) NOT NULL DEFAULT '0',
- `updated_at` int(11) NOT NULL DEFAULT '0',
- `deleted_at` int(11) DEFAULT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='订单--支付退款记录';
- # Dump of table ims_yz_pay_request_data
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_pay_request_data (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `uniacid` int(11) NOT NULL,
- `out_order_no` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
- `type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
- `third_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
- `params` text COLLATE utf8mb4_unicode_ci NOT NULL,
- `created_at` int(11) NOT NULL DEFAULT '0',
- `updated_at` int(11) NOT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='系统--支付请求参数日志';
- # Dump of table ims_yz_pay_response_data
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_pay_response_data (
- `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
- `uniacid` int(11) NOT NULL,
- `out_order_no` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
- `third_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
- `params` text COLLATE utf8mb4_unicode_ci NOT NULL,
- `created_at` int(11) NOT NULL DEFAULT '0',
- `updated_at` int(11) NOT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='系统--支付回调参数日志';
- # Dump of table ims_yz_pay_type
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_pay_type (
- `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
- `name` varchar(50) NOT NULL DEFAULT '',
- `plugin_id` int(11) NOT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='系统--支付类型';
- # Dump of table ims_yz_pay_withdraw_order
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_pay_withdraw_order (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `uniacid` int(11) NOT NULL,
- `member_id` int(11) NOT NULL,
- `int_order_no` varchar(32) DEFAULT NULL,
- `out_order_no` varchar(32) NOT NULL DEFAULT '',
- `trade_no` varchar(255) DEFAULT NULL,
- `price` decimal(14,2) NOT NULL,
- `type` varchar(255) NOT NULL DEFAULT '',
- `status` int(11) NOT NULL,
- `created_at` int(13) NOT NULL DEFAULT '0',
- `updated_at` int(13) NOT NULL DEFAULT '0',
- `deleted_at` int(13) DEFAULT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='财务--支付提现单';
- # Dump of table ims_yz_permission
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_permission (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `type` tinyint(1) NOT NULL,
- `item_id` int(11) NOT NULL,
- `permission` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
- # Dump of table ims_yz_users_permission
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_users_permission (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `uniacid` int(10) unsigned NOT NULL,
- `uid` int(10) unsigned NOT NULL,
- `type` varchar(100) NOT NULL,
- `permission` varchar(10000) NOT NULL,
- `url` varchar(255) NOT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
- # Dump of table ims_yz_plugin_article
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_plugin_article (
- `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
- `uniacid` int(11) NOT NULL,
- `category_id` int(11) NOT NULL,
- `title` varchar(255) NOT NULL DEFAULT '',
- `desc` text,
- `thumb` text,
- `content` longtext NOT NULL,
- `virtual_created_at` int(11) DEFAULT NULL,
- `author` varchar(20) NOT NULL DEFAULT '',
- `virtual_read_num` int(11) DEFAULT NULL,
- `read_num` int(11) NOT NULL DEFAULT '0',
- `virtual_like_num` int(11) DEFAULT NULL,
- `like_num` int(11) NOT NULL DEFAULT '0',
- `link` varchar(255) DEFAULT NULL,
- `per_person_per_day` int(11) DEFAULT NULL,
- `total_per_person` int(11) DEFAULT NULL,
- `point` int(11) DEFAULT NULL,
- `credit` int(11) DEFAULT NULL,
- `bonus_total` int(11) DEFAULT NULL,
- `bonus_total_now` int(11) DEFAULT NULL,
- `no_copy_url` tinyint(1) DEFAULT NULL,
- `no_share` tinyint(1) DEFAULT NULL,
- `no_share_to_friend` tinyint(1) DEFAULT NULL,
- `keyword` varchar(255) NOT NULL DEFAULT '',
- `report_enabled` tinyint(1) DEFAULT NULL,
- `advs_type` tinyint(1) DEFAULT NULL,
- `advs_title` varchar(255) DEFAULT NULL,
- `advs_title_footer` varchar(255) DEFAULT NULL,
- `advs_link` varchar(255) DEFAULT NULL,
- `advs` text,
- `state` tinyint(1) DEFAULT NULL,
- `state_wechat` tinyint(1) DEFAULT NULL,
- `created_at` int(11) DEFAULT NULL,
- `updated_at` int(11) DEFAULT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
- # Dump of table ims_yz_plugin_article_category
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_plugin_article_category (
- `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
- `uniacid` int(11) DEFAULT NULL,
- `name` varchar(50) DEFAULT NULL,
- `member_level_limit` int(11) DEFAULT NULL,
- `commission_level_limit` int(11) DEFAULT NULL,
- `created_at` int(11) DEFAULT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
- # Dump of table ims_yz_plugin_article_log
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_plugin_article_log (
- `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
- `article_id` int(11) DEFAULT NULL,
- `read_num` int(11) DEFAULT NULL,
- `like_num` int(11) DEFAULT NULL,
- `uid` int(11) DEFAULT NULL,
- `uniacid` int(11) DEFAULT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
- # Dump of table ims_yz_plugin_article_report
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_plugin_article_report (
- `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
- `uniacid` int(11) DEFAULT NULL,
- `uid` int(11) DEFAULT NULL,
- `article_id` int(11) DEFAULT NULL,
- `type` varchar(255) DEFAULT NULL,
- `desc` varchar(255) DEFAULT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
- # Dump of table ims_yz_plugin_article_share
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_plugin_article_share (
- `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
- `uniacid` int(11) DEFAULT NULL,
- `article_id` int(11) DEFAULT NULL,
- `share_uid` int(11) DEFAULT NULL,
- `click_uid` int(11) DEFAULT NULL,
- `click_time` int(11) DEFAULT NULL,
- `point` int(11) DEFAULT NULL,
- `credit` text,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
- # Dump of table ims_yz_plugin_goods_assistant
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_plugin_goods_assistant (
- `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
- `goods_id` int(11) NOT NULL,
- `uniacid` int(11) NOT NULL,
- `itemid` varchar(255) DEFAULT NULL,
- `source` varchar(255) DEFAULT NULL,
- `url` varchar(255) DEFAULT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
- # Dump of table ims_yz_point_log
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_point_log (
- `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
- `uniacid` int(11) NOT NULL DEFAULT '0',
- `member_id` int(11) NOT NULL DEFAULT '0',
- `order_goods_id` int(11) NOT NULL DEFAULT '0',
- `point` decimal(10,2) NOT NULL DEFAULT '0.00',
- `point_income_type` tinyint(2) NOT NULL DEFAULT '0',
- `point_mode` tinyint(5) NOT NULL DEFAULT '0',
- `before_point` decimal(10,2) NOT NULL DEFAULT '0.00',
- `after_point` decimal(10,2) NOT NULL DEFAULT '0.00',
- `remark` varchar(255) NOT NULL DEFAULT '0',
- `order_id` int(11) NOT NULL DEFAULT '0',
- `created_at` int(11) NOT NULL DEFAULT '0',
- `deleted_at` int(11) NOT NULL DEFAULT '0',
- `updated_at` int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='财务--积分明细';
-
- # Dump of table ims_yz_qq_config
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_qq_config (
- `config_id` int(11) NOT NULL,
- `uniacid` int(11) NOT NULL DEFAULT '0',
- `app_key` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL,
- `app_secret` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL,
- `type` tinyint(1) NOT NULL DEFAULT '0',
- `created_at` int(10) unsigned NOT NULL DEFAULT '0',
- `updated_at` int(10) unsigned NOT NULL DEFAULT '0',
- `deleted_at` int(11) DEFAULT NULL,
- PRIMARY KEY (`config_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
- # Dump of table ims_yz_resend_express
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_resend_express (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `refund_id` int(11) NOT NULL DEFAULT '0',
- `express_company_name` varchar(50) NOT NULL DEFAULT '0',
- `express_sn` varchar(50) NOT NULL DEFAULT '0',
- `express_code` varchar(20) NOT NULL DEFAULT '0',
- `created_at` int(11) NOT NULL DEFAULT '0',
- `updated_at` int(11) NOT NULL DEFAULT '0',
- `deleted_at` int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `idx_order_id` (`refund_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='订单--售后换货发货快递';
- # Dump of table ims_yz_return_express
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_return_express (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `refund_id` int(11) NOT NULL DEFAULT '0',
- `express_company_name` varchar(50) NOT NULL DEFAULT '0',
- `express_sn` varchar(50) NOT NULL DEFAULT '0',
- `express_code` varchar(20) NOT NULL DEFAULT '0',
- `created_at` int(11) NOT NULL DEFAULT '0',
- `updated_at` int(11) NOT NULL DEFAULT '0',
- `deleted_at` int(11) DEFAULT NULL,
- PRIMARY KEY (`id`),
- KEY `idx_order_id` (`refund_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='订单--售后退换货寄回快递';
- # Dump of table ims_yz_role
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_role (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `uniacid` int(11) NOT NULL,
- `name` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL,
- `created_at` int(11) NOT NULL DEFAULT '0',
- `updated_at` int(11) NOT NULL DEFAULT '0',
- `deleted_at` int(11) DEFAULT NULL,
- `status` tinyint(1) NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
- # Dump of table ims_yz_setting
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_setting (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `uniacid` int(11) NOT NULL,
- `group` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'shop',
- `key` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
- `type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
- `value` text COLLATE utf8mb4_unicode_ci NOT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='系统--商城设置表';
- # Dump of table ims_yz_slide
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_slide (
- `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
- `uniacid` int(11) NOT NULL,
- `slide_name` varchar(100) DEFAULT NULL,
- `link` varchar(255) DEFAULT NULL,
- `thumb` varchar(255) DEFAULT NULL,
- `display_order` int(11) DEFAULT '0',
- `enabled` tinyint(3) DEFAULT NULL,
- `created_at` int(11) DEFAULT NULL,
- `updated_at` int(11) DEFAULT NULL,
- `deleted_at` int(11) DEFAULT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
- # Dump of table ims_yz_sms_send_limit
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_sms_send_limit (
- `sms_id` int(11) NOT NULL AUTO_INCREMENT,
- `uniacid` int(11) NOT NULL,
- `mobile` varchar(11) COLLATE utf8mb4_unicode_ci NOT NULL,
- `total` tinyint(1) NOT NULL,
- `created_at` int(11) NOT NULL DEFAULT '0',
- `updated_at` int(11) NOT NULL DEFAULT '0',
- `deleted_at` int(11) DEFAULT NULL,
- PRIMARY KEY (`sms_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
- # Dump of table ims_yz_street
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_street (
- `id` int(10) NOT NULL AUTO_INCREMENT,
- `areaname` varchar(255) DEFAULT NULL,
- `parentid` int(10) DEFAULT NULL,
- `level` int(10) DEFAULT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='系统--地址街道表';
-
- # Dump of table ims_yz_template_message
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_template_message (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `type` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT 'system',
- `item` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL,
- `parent_item` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
- `title` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL,
- `template_id_short` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL,
- `template_id` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL,
- `content` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
- `example` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
- `status` tinyint(1) NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
- # Dump of table ims_yz_template_message_record
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_template_message_record (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `uniacid` int(11) DEFAULT NULL,
- `member_id` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL,
- `openid` char(32) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
- `template_id` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL,
- `url` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
- `top_color` char(7) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
- `data` text COLLATE utf8mb4_unicode_ci NOT NULL,
- `created_at` int(11) NOT NULL DEFAULT '0',
- `updated_at` int(11) NOT NULL DEFAULT '0',
- `send_time` int(11) NOT NULL DEFAULT '0',
- `status` tinyint(1) NOT NULL DEFAULT '0',
- `msgid` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT '',
- `result` tinyint(1) NOT NULL DEFAULT '0',
- `wechat_send_at` int(11) NOT NULL DEFAULT '0',
- `sended_count` tinyint(1) NOT NULL DEFAULT '1',
- `extend_data` text COLLATE utf8mb4_unicode_ci,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
- # Dump of table ims_yz_user_role
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_user_role (
- `user_id` int(11) NOT NULL,
- `role_id` int(11) NOT NULL,
- PRIMARY KEY (`user_id`,`role_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
- # Dump of table ims_yz_withdraw
- # ------------------------------------------------------------
- CREATE TABLE IF NOT EXISTS ims_yz_withdraw (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `withdraw_sn` varchar(120) COLLATE utf8mb4_unicode_ci NOT NULL,
- `uniacid` int(11) DEFAULT NULL,
- `member_id` int(11) DEFAULT NULL,
- `type` varchar(60) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
- `type_id` varchar(60) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
- `type_name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
- `amounts` decimal(14,2) DEFAULT NULL,
- `poundage` decimal(14,2) DEFAULT NULL,
- `poundage_rate` int(11) DEFAULT NULL,
- `pay_way` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
- `status` tinyint(1) DEFAULT NULL,
- `created_at` int(11) DEFAULT NULL,
- `audit_at` int(11) DEFAULT NULL,
- `pay_at` int(11) DEFAULT NULL,
- `arrival_at` int(11) DEFAULT NULL,
- `updated_at` int(11) DEFAULT NULL,
- `deleted_at` int(11) DEFAULT NULL,
- `actual_amounts` decimal(14,2) NOT NULL,
- `actual_poundage` decimal(14,2) NOT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='财务--提现记录';
- ";
- config('app.framework') == 'platform' ? \Illuminate\Support\Facades\DB::unprepared($sql) : pdo_fetchall($sql) ;
|