1 Star 0 Fork 20

mallkiller/mall-dubbo

forked from 商城/mall-dubbo 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
mall.sql 179.82 KB
一键复制 编辑 原始数据 按行查看 历史
shenzhuan 提交于 2019-03-08 11:56 . 项目搭建
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667
/*
Navicat MySQL Data Transfer
Source Server : local
Source Server Type : MySQL
Source Server Version : 50721
Source Host : localhost
Source Database : mall
Target Server Type : MySQL
Target Server Version : 50721
File Encoding : utf-8
Date: 02/25/2019 16:10:02 PM
*/
SET NAMES utf8;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for `cms_help`
-- ----------------------------
DROP TABLE IF EXISTS `cms_help`;
CREATE TABLE `cms_help` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`category_id` bigint(20) DEFAULT NULL,
`icon` varchar(500) DEFAULT NULL,
`title` varchar(100) DEFAULT NULL,
`show_status` int(1) DEFAULT NULL,
`create_time` datetime DEFAULT NULL,
`read_count` int(1) DEFAULT NULL,
`content` text,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='帮助表';
-- ----------------------------
-- Table structure for `cms_help_category`
-- ----------------------------
DROP TABLE IF EXISTS `cms_help_category`;
CREATE TABLE `cms_help_category` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`name` varchar(100) DEFAULT NULL,
`icon` varchar(500) DEFAULT NULL COMMENT '分类图标',
`help_count` int(11) DEFAULT NULL COMMENT '专题数量',
`show_status` int(2) DEFAULT NULL,
`sort` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='帮助分类表';
-- ----------------------------
-- Table structure for `cms_member_report`
-- ----------------------------
DROP TABLE IF EXISTS `cms_member_report`;
CREATE TABLE `cms_member_report` (
`id` bigint(20) DEFAULT NULL,
`report_type` int(1) DEFAULT NULL COMMENT '举报类型:0->商品评价;1->话题内容;2->用户评论',
`report_member_name` varchar(100) DEFAULT NULL COMMENT '举报人',
`create_time` datetime DEFAULT NULL,
`report_object` varchar(100) DEFAULT NULL,
`report_status` int(1) DEFAULT NULL COMMENT '举报状态:0->未处理;1->已处理',
`handle_status` int(1) DEFAULT NULL COMMENT '处理结果:0->无效;1->有效;2->恶意',
`note` varchar(200) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户举报表';
-- ----------------------------
-- Table structure for `cms_prefrence_area`
-- ----------------------------
DROP TABLE IF EXISTS `cms_prefrence_area`;
CREATE TABLE `cms_prefrence_area` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
`sub_title` varchar(255) DEFAULT NULL,
`pic` varbinary(500) DEFAULT NULL COMMENT '展示图片',
`sort` int(11) DEFAULT NULL,
`show_status` int(1) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COMMENT='优选专区';
-- ----------------------------
-- Records of `cms_prefrence_area`
-- ----------------------------
BEGIN;
INSERT INTO `cms_prefrence_area` VALUES ('1', '让音质更出众', '音质不打折 完美现场感', null, null, '1'), ('2', '让音质更出众22', '让音质更出众22', null, null, null), ('3', '让音质更出众33', null, null, null, null), ('4', '让音质更出众44', null, null, null, null);
COMMIT;
-- ----------------------------
-- Table structure for `cms_prefrence_area_product_relation`
-- ----------------------------
DROP TABLE IF EXISTS `cms_prefrence_area_product_relation`;
CREATE TABLE `cms_prefrence_area_product_relation` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`prefrence_area_id` bigint(20) DEFAULT NULL,
`product_id` bigint(20) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=29 DEFAULT CHARSET=utf8 COMMENT='优选专区和产品关系表';
-- ----------------------------
-- Records of `cms_prefrence_area_product_relation`
-- ----------------------------
BEGIN;
INSERT INTO `cms_prefrence_area_product_relation` VALUES ('1', '1', '12'), ('2', '1', '13'), ('3', '1', '14'), ('4', '1', '18'), ('5', '1', '7'), ('6', '2', '7'), ('7', '1', '22'), ('24', '1', '23'), ('28', '1', '37');
COMMIT;
-- ----------------------------
-- Table structure for `cms_subject`
-- ----------------------------
DROP TABLE IF EXISTS `cms_subject`;
CREATE TABLE `cms_subject` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`category_id` bigint(20) DEFAULT NULL,
`title` varchar(100) DEFAULT NULL,
`pic` varchar(500) DEFAULT NULL COMMENT '专题主图',
`product_count` int(11) DEFAULT NULL COMMENT '关联产品数量',
`recommend_status` int(1) DEFAULT NULL,
`create_time` datetime DEFAULT NULL,
`collect_count` int(11) DEFAULT NULL,
`read_count` int(11) DEFAULT NULL,
`comment_count` int(11) DEFAULT NULL,
`album_pics` varchar(1000) DEFAULT NULL COMMENT '画册图片用逗号分割',
`description` varchar(1000) DEFAULT NULL,
`show_status` int(1) DEFAULT NULL COMMENT '显示状态:0->不显示;1->显示',
`content` text,
`forward_count` int(11) DEFAULT NULL COMMENT '转发数',
`category_name` varchar(200) DEFAULT NULL COMMENT '专题分类名称',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8 COMMENT='专题表';
-- ----------------------------
-- Records of `cms_subject`
-- ----------------------------
BEGIN;
INSERT INTO `cms_subject` VALUES ('1', '1', '轮廓分明,双摄手机映现细腻美照', 'https://img10.360buyimg.com/mobilecms/s1500x600_jfs/t26434/217/1381240043/254214/290f9d5b/5bc6c11cN54567a27.jpg!q70.jpg', null, '1', '2018-11-11 13:26:55', '100', '1000', '100', null, '手机对于拍照党来说,已经不仅仅是通讯工具那么简单了。因为有时TA还充当着“单反”的角色,来不断地带给那些喜欢拍照的人惊喜。所以,在这里准备一波高颜值的双摄手机来给大家。让TA们灵敏捕捉影像的能力,为你展现出轮廓更加分明、且画质更加细腻的美照。', '1', null, null, '精选专题'), ('2', '1', '交通拥挤有妙招,电动车小巧穿行无障碍', 'https://img11.360buyimg.com/mobilecms/s1500x600_jfs/t14224/229/529700229/74868/a1cc7364/5a314f85N5bfd22c7.jpg!q70.jpg', null, '1', '2018-11-12 13:27:00', '100', '1000', '100', null, '随着人们消费水平的提高,公路上的小车是越来越多了,导致每到上下班高峰期的时候,大路的车辆堵了一环又一环,而且你根本不知道它到底会塞多久,所以我们需要变通一下,不妨骑上电动车来个绿色出行,它够小巧玲珑,即使交通再怎么拥挤,也总有它可以通过的地方。', '1', null, null, '精选专题'), ('3', '1', '无酒不成席,甘香白酒开怀助兴', 'https://img12.360buyimg.com/mobilecms/s1500x600_jfs/t1/881/4/12265/114011/5bd1446fEc71114bf/68925bfb4a2adc44.jpg!q70.jpg', null, '1', '2018-11-13 13:27:05', '100', '1000', '100', null, '白酒是由各种优质的高粱,小麦,大米等谷物为原料,经过传统工艺的长时间酿造,酒液在这样的环境中慢慢发酵,最终变成清香浓郁的白酒,被摆上人们的餐桌,供人畅饮,是一种受到大众喜爱的绝佳饮品。', '1', null, null, '精选专题'), ('4', '2', '真规划不盲扫,全域清洁净无尘', 'https://img10.360buyimg.com/mobilecms/s1500x600_jfs/t15205/35/2539924281/429185/72fa7857/5aab2c4bN6a32a6c5.png', null, '1', '2018-11-01 13:27:09', '100', '1000', '100', null, '科技时代,聪明女人会选择用智慧来减负,和繁琐的家务挥手再见,才能腾出更多休闲时间。规划式扫地机器人设计个性化,它能够跟据房间布置呈现清扫路线,实现规划式覆盖性清洁,少遗漏不盲扫,从而大幅度降低损耗,侦测技术遇到家具及时避让,杜绝猛烈撞击,任它灵巧穿梭于低矮空间,坐享居家净无尘。', '1', null, null, '家电专题'), ('5', '2', '抑菌更纯净,直饮净水保家人健康', 'https://img11.360buyimg.com/mobilecms/s1500x600_jfs/t11428/340/1504074828/20474/1e8cab1e/5a0305d3Nb1e7a762.jpg!q70.jpg', null, '1', '2018-11-06 13:27:18', '100', '1000', '100', null, '在城里居住,首先要担心的是饮水问题。桶装水太贵不够经济,还不一定是干净的。自己去干净的水源地取水也不切实际。此时只有选择在家里安装一台净水器才实在。装上一台直饮式的净水器,方便安全,关键是水质过滤得比较纯净,很大限度地处理了大部分的废弃物,留下健康的矿物质水。好生活,从一口干净的纯净水开始。', '1', null, null, '家电专题'), ('6', '2', '储鲜冷冻灵活变,多门无霜更贴心', 'https://img12.360buyimg.com/mobilecms/s1500x600_jfs/t13015/356/2397552584/605232/46c88e6e/5a5321bcN6a8866f0.png', null, '1', '2018-11-07 13:27:21', '100', '1000', '100', null, '春节临近,每个家庭都要储备不少食材,但各种食材的保鲜方式与温度不尽相同,而多门风冷冰箱能轻松满足您。它们容积大占地小,拥有多个可以独立调节温度的温区,满足对不同类食材的存放需求,同时省去除霜烦恼,还可以通过温度调节满足您对大冷藏及大冷冻的需求变化,从而带来更好的保鲜冷冻体验,为新年宴请保驾护航。', '1', null, null, '家电专题'), ('7', '2', '想喝健康水,就用304不锈钢热水壶', 'https://img13.360buyimg.com/mobilecms/s1500x600_jfs/t12541/90/443985343/33603/65d6e884/5a0bb77aNff08550a.jpg!q70.jpg', null, '1', '2019-01-29 11:21:55', '100', '1000', '100', null, '大冬天的喝一口热水,不仅能够暧身还可以给身体补充足够的水份,但是对于热水壶的购买却是需要慎之又慎,材质不好的热水壶在烧水的过程当中极容易产生对身体不利的有害物,极大影响人们的身体健康。304不锈钢热水壶选用食品级不不锈钢,确保水质安全,烧水健康好水,为您的饮水健康保驾护航。', '1', null, null, '家电专题'), ('8', '2', '你尽情赖床!早餐“煲”在它身上', 'https://img14.360buyimg.com/mobilecms/s1500x600_jfs/t15949/363/1450937723/89513/7d8c1219/5a531d28N2aaec2a6.jpg!q70.jpg', null, '1', '2019-01-29 13:07:13', '100', '1000', '100', null, '赖床不想起,饿了的时候想吃饭又要现做等待简直饥肠辘辘让人心烦,所以一款带有预约功能的电饭煲简直不要太贴心,你睡懒觉的时候它已经给你做好了香滑软糯的粥,起床就能享美味是不是很贴心呐。', '1', null, null, '家电专题'), ('9', '2', '小白变大厨,微波炉为实力加持', 'https://img10.360buyimg.com/mobilecms/s1500x600_jfs/t1/8774/21/11460/38908/5c2cbfcfEdab1ef03/d5800f0f7cf05b38.jpg!q70.jpg', null, '1', '2019-01-29 13:08:18', '100', '1000', '100', null, '对于厨艺小白而言,没有什么能比掌握好火候更来得困难的了!毕竟烹饪出食物的味道好坏,很大程度上还是对火候的掌控,想要轻松掌握火候,当然少不了一款微波炉的撑场,内设多功能,满足不同的烹饪需求,简单方便易操作,让厨艺小白秒变大师!', '1', null, null, '家电专题'), ('10', '2', '十秒鲜榨,冬日把爱浓缩成杯果汁', 'https://img11.360buyimg.com/mobilecms/s1500x600_jfs/t13708/126/308291722/542847/26ee6edd/5a07dc72N3252a9e0.png', null, '1', '2019-01-29 13:10:02', '100', '1000', '100', null, '寒瑟冬日女友不喜欢吃水果,用便携迷你果汁机,撩妹又养胃。一按一转,碾压切割,简单快速制作,压榨出纯原味果汁。一键启动,十秒出汁,保留食物营养,轻轻松松粉碎食物,营养在手,说走就走。', '1', null, null, '家电专题'), ('11', '3', '饭点未到肚已空?美味饼干先充饥', 'https://img10.360buyimg.com/mobilecms/s1500x600_jfs/t13240/79/443357432/38567/94792c4c/5a0ba054N89388654.jpg!q70.jpg', null, '1', '2019-01-29 13:10:45', '100', '1000', '100', null, '一上午都把精力集中在工作中,刚闲下来就发现自己已是饥肠辘辘了,可饭点却还没到,怎么办呢?不妨让这些美味饼干先帮你充充饥吧!酥香松脆有营养,每一口都让人回味无穷,既能满足你挑剔的味蕾又能起到果腹效果,快快为自己备上吧!', '1', null, null, '美食专题'), ('12', '3', '赖床无罪,香酥面包营养又便捷', 'https://img11.360buyimg.com/mobilecms/s1500x600_jfs/t9775/33/1197239610/38547/34899011/59ddbd01N0bd693bb.jpg!q70.jpg', null, '1', '2019-01-29 13:11:41', '100', '1000', '100', null, '赖床是很多年轻人的通病,特别是秋冬季节,都会恋恋不舍温暖的被窝。对于苦逼的上班族来说,就算再多睡几分钟,还是要起床的,甚至来不及吃早餐。面包营养丰富,能快速饱腹,且携带方便,再搭配一盒牛奶,一顿简单而不失营养的早餐能提供一天的能量,让赖床族多睡几分钟也无妨。', '1', null, null, '美食专题'), ('13', '3', '夹心饼干,予多重滋味交织舌尖', 'https://img12.360buyimg.com/mobilecms/s1500x600_jfs/t18877/139/652452758/27262/36e6ed6e/5a9d5b6dN327150e8.jpg!q70.jpg', null, '1', '2019-01-29 13:12:38', '100', '1000', '100', null, '饼干味道香脆可口,深受不少人的青睐。饼干的种类多样,而夹心饼干就是其中一种,相比普通饼干而言,夹心饼干有着更丰富的口感,当肚子空空如也的时候,来一些美味的夹心饼干,既能解馋,又能扛饿。下面就为大家推荐一组好吃的夹心饼干,作为办公室小零食非常不错。', '1', null, null, '美食专题'), ('14', '4', '户外Party,便携音箱烘气氛', 'https://img10.360buyimg.com/mobilecms/s1500x600_jfs/t17125/265/644948348/42066/6f2dc610/5a9c9da1N9a95ee2c.jpg!q70.jpg', null, '1', '2019-01-29 13:13:53', '100', '1000', '100', null, '初春的季节,除了户外的各种踏青旅行,在户外开异常Party也是很惬意。户外派对,气氛的烘托肯定不能离开音箱的衬托,选择一款户外的便携音箱,无线蓝牙连接,免去有线的束缚,携带使用更方便。', '1', null, null, '数码专题'), ('15', '5', '今冬潮包look,凹出绚丽女王范', 'https://img10.360buyimg.com/mobilecms/s1500x600_jfs/t8365/191/1901440450/575969/c71560c9/59c3144dNe6d8dd2f.png', null, '1', '2019-01-29 13:15:12', '100', '1000', '100', null, '潮流时尚的美包,搭配潮服,会让你魅力一直在线。因为潮包一直是女性出游扮美的秘籍,它不仅能够帮你收纳日常小物件,还能让你解放双手,这里推荐的时尚美包,随意搭配一件服饰,都可以让你潮范十足,凹出绚丽女王范。', '1', null, null, '服饰专题');
COMMIT;
-- ----------------------------
-- Table structure for `cms_subject_category`
-- ----------------------------
DROP TABLE IF EXISTS `cms_subject_category`;
CREATE TABLE `cms_subject_category` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`name` varchar(100) DEFAULT NULL,
`icon` varchar(500) DEFAULT NULL COMMENT '分类图标',
`subject_count` int(11) DEFAULT NULL COMMENT '专题数量',
`show_status` int(2) DEFAULT NULL,
`sort` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COMMENT='专题分类表';
-- ----------------------------
-- Records of `cms_subject_category`
-- ----------------------------
BEGIN;
INSERT INTO `cms_subject_category` VALUES ('1', '精选专题', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20190129/subject_cate_jingxuan.png', '3', '1', '100'), ('2', '家电专题', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20190129/subject_cate_jiadian.png', '7', '1', '0'), ('3', '美食专题', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20190129/subject_cate_meishi.png', '3', '1', '0'), ('4', '数码专题', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20190129/product_cate_shouji.png', '1', '1', '0'), ('5', '服饰专题', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20190129/product_cate_waitao.png', '1', '1', '0');
COMMIT;
-- ----------------------------
-- Table structure for `cms_subject_comment`
-- ----------------------------
DROP TABLE IF EXISTS `cms_subject_comment`;
CREATE TABLE `cms_subject_comment` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`subject_id` bigint(20) DEFAULT NULL,
`member_nick_name` varchar(255) DEFAULT NULL,
`member_icon` varchar(255) DEFAULT NULL,
`content` varchar(1000) DEFAULT NULL,
`create_time` datetime DEFAULT NULL,
`show_status` int(1) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='专题评论表';
-- ----------------------------
-- Table structure for `cms_subject_product_relation`
-- ----------------------------
DROP TABLE IF EXISTS `cms_subject_product_relation`;
CREATE TABLE `cms_subject_product_relation` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`subject_id` bigint(20) DEFAULT NULL,
`product_id` bigint(20) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=55 DEFAULT CHARSET=utf8 COMMENT='专题商品关系表';
-- ----------------------------
-- Records of `cms_subject_product_relation`
-- ----------------------------
BEGIN;
INSERT INTO `cms_subject_product_relation` VALUES ('2', '1', '27'), ('3', '1', '28'), ('4', '1', '29'), ('5', '2', '30'), ('6', '2', '31'), ('7', '2', '35'), ('29', '2', '36'), ('30', '2', '32'), ('31', '3', '33'), ('38', '3', '34'), ('50', '1', '37'), ('51', '2', '37'), ('54', '1', '26');
COMMIT;
-- ----------------------------
-- Table structure for `cms_topic`
-- ----------------------------
DROP TABLE IF EXISTS `cms_topic`;
CREATE TABLE `cms_topic` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`category_id` bigint(20) DEFAULT NULL,
`name` varchar(255) DEFAULT NULL,
`create_time` datetime DEFAULT NULL,
`start_time` datetime DEFAULT NULL,
`end_time` datetime DEFAULT NULL,
`attend_count` int(11) DEFAULT NULL COMMENT '参与人数',
`attention_count` int(11) DEFAULT NULL COMMENT '关注人数',
`read_count` int(11) DEFAULT NULL,
`award_name` varchar(100) DEFAULT NULL COMMENT '奖品名称',
`attend_type` varchar(100) DEFAULT NULL COMMENT '参与方式',
`content` text COMMENT '话题内容',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='话题表';
-- ----------------------------
-- Table structure for `cms_topic_category`
-- ----------------------------
DROP TABLE IF EXISTS `cms_topic_category`;
CREATE TABLE `cms_topic_category` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`name` varchar(100) DEFAULT NULL,
`icon` varchar(500) DEFAULT NULL COMMENT '分类图标',
`subject_count` int(11) DEFAULT NULL COMMENT '专题数量',
`show_status` int(2) DEFAULT NULL,
`sort` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='话题分类表';
-- ----------------------------
-- Table structure for `cms_topic_comment`
-- ----------------------------
DROP TABLE IF EXISTS `cms_topic_comment`;
CREATE TABLE `cms_topic_comment` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`member_nick_name` varchar(255) DEFAULT NULL,
`topic_id` bigint(20) DEFAULT NULL,
`member_icon` varchar(255) DEFAULT NULL,
`content` varchar(1000) DEFAULT NULL,
`create_time` datetime DEFAULT NULL,
`show_status` int(1) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='专题评论表';
-- ----------------------------
-- Table structure for `oms_cart_item`
-- ----------------------------
DROP TABLE IF EXISTS `oms_cart_item`;
CREATE TABLE `oms_cart_item` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`product_id` bigint(20) DEFAULT NULL,
`product_sku_id` bigint(20) DEFAULT NULL,
`member_id` bigint(20) DEFAULT NULL,
`quantity` int(11) DEFAULT NULL COMMENT '购买数量',
`price` decimal(10,2) DEFAULT NULL COMMENT '添加到购物车的价格',
`sp1` varchar(200) DEFAULT NULL COMMENT '销售属性1',
`sp2` varchar(200) DEFAULT NULL COMMENT '销售属性2',
`sp3` varchar(200) DEFAULT NULL COMMENT '销售属性3',
`product_pic` varchar(1000) DEFAULT NULL COMMENT '商品主图',
`product_name` varchar(500) DEFAULT NULL COMMENT '商品名称',
`product_sub_title` varchar(500) DEFAULT NULL COMMENT '商品副标题(卖点)',
`product_sku_code` varchar(200) DEFAULT NULL COMMENT '商品sku条码',
`member_nickname` varchar(500) DEFAULT NULL COMMENT '会员昵称',
`create_date` datetime DEFAULT NULL COMMENT '创建时间',
`modify_date` datetime DEFAULT NULL COMMENT '修改时间',
`delete_status` int(1) DEFAULT '0' COMMENT '是否删除',
`product_category_id` bigint(20) DEFAULT NULL COMMENT '商品分类',
`product_brand` varchar(200) DEFAULT NULL,
`product_sn` varchar(200) DEFAULT NULL,
`product_attr` varchar(500) DEFAULT NULL COMMENT '商品销售属性:[{"key":"颜色","value":"颜色"},{"key":"容量","value":"4G"}]',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=75 DEFAULT CHARSET=utf8 COMMENT='购物车表';
-- ----------------------------
-- Records of `oms_cart_item`
-- ----------------------------
BEGIN;
INSERT INTO `oms_cart_item` VALUES ('12', '26', '90', '1', '1', '3788.00', '金色', '16G', null, null, '华为 HUAWEI P20', 'AI智慧全面屏 6GB +64GB 亮黑色 全网通版 移动联通电信4G手机 双卡双待手机 双卡双待', '201806070026001', 'windir', '2018-08-27 16:53:44', null, '0', '19', null, null, null), ('13', '27', '98', '1', '3', '2699.00', '黑色', '32G', null, null, '小米8', '骁龙845处理器,红外人脸解锁,AI变焦双摄,AI语音助手小米6X低至1299,点击抢购', '201808270027001', 'windir', '2018-08-27 17:11:53', null, '0', '19', null, null, null), ('14', '28', '102', '1', '1', '649.00', '金色', '16G', null, null, '红米5A', '8天超长待机,137g轻巧机身,高通骁龙处理器小米6X低至1299,点击抢购', '201808270028001', 'windir', '2018-08-27 17:18:02', null, '0', '19', null, null, null), ('15', '28', '103', '1', '1', '699.00', '金色', '32G', null, null, '红米5A', '8天超长待机,137g轻巧机身,高通骁龙处理器小米6X低至1299,点击抢购', '201808270028001', 'windir', '2018-08-28 10:22:45', null, '0', '19', null, null, null), ('16', '29', '106', '1', '1', '5499.00', '金色', '32G', null, null, 'Apple iPhone 8 Plus', '【限时限量抢购】Apple产品年中狂欢节,好物尽享,美在智慧!速来 >> 勾选[保障服务][原厂保2年],获得AppleCare+全方位服务计划,原厂延保售后无忧。', '201808270029001', 'windir', '2018-08-28 10:50:50', null, '0', '19', null, null, null), ('18', '29', '109', '10', '3', '6299.00', '银色', '64G', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5acc5248N6a5f81cd.jpg', 'Apple iPhone 8 Plus 64GB 红色特别版 移动联通电信4G手机', '【限时限量抢购】Apple产品年中狂欢节,好物尽享,美在智慧!速来 >> 勾选[保障服务][原厂保2年],获得AppleCare+全方位服务计划,原厂延保售后无忧。', '201808270029004', '沈专', '2019-02-16 17:56:55', null, '0', '19', '苹果', '7437799', null), ('19', '26', '139', '10', '6', '33.00', '银色', '128G', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/5ac1bf58Ndefaac16.jpg', '华为 HUAWEI P20 ', 'AI智慧全面屏 6GB +64GB 亮黑色 全网通版 移动联通电信4G手机 双卡双待手机 双卡双待', '201902140026006', '沈专', '2019-02-16 20:11:04', null, '1', '19', '华为', '6946605', null), ('20', '26', '138', '10', '5', '33.00', '银色', '32G', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/5ac1bf58Ndefaac16.jpg', '华为 HUAWEI P20 ', 'AI智慧全面屏 6GB +64GB 亮黑色 全网通版 移动联通电信4G手机 双卡双待手机 双卡双待', '201902140026005', '沈专', '2019-02-16 20:14:34', null, '1', '19', '华为', '6946605', null), ('21', '26', '135', '10', '1', '33.00', '金色', '32G', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/5ac1bf58Ndefaac16.jpg', '华为 HUAWEI P20 ', 'AI智慧全面屏 6GB +64GB 亮黑色 全网通版 移动联通电信4G手机 双卡双待手机 双卡双待', '201902140026002', '沈专', '2019-02-16 20:21:24', null, '0', '19', '华为', '6946605', null), ('22', '27', '101', '10', '8', '2999.00', '蓝色', '64G', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/xiaomi.jpg', '小米8 全面屏游戏智能手机 6GB+64GB 黑色 全网通4G 双卡双待', '骁龙845处理器,红外人脸解锁,AI变焦双摄,AI语音助手小米6X低至1299,点击抢购', '201808270027004', '沈专', '2019-02-16 20:25:29', null, '0', '19', '小米', '7437788', null), ('23', '27', '99', '10', '1', '2999.00', '黑色', '64G', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/xiaomi.jpg', '小米8 全面屏游戏智能手机 6GB+64GB 黑色 全网通4G 双卡双待', '骁龙845处理器,红外人脸解锁,AI变焦双摄,AI语音助手小米6X低至1299,点击抢购', '201808270027002', '沈专', '2019-02-16 20:26:15', null, '0', '19', '小米', '7437788', null), ('24', '27', '100', '10', '2', '2699.00', '蓝色', '32G', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/xiaomi.jpg', '小米8 全面屏游戏智能手机 6GB+64GB 黑色 全网通4G 双卡双待', '骁龙845处理器,红外人脸解锁,AI变焦双摄,AI语音助手小米6X低至1299,点击抢购', '201808270027003', '沈专', '2019-02-16 20:34:51', null, '1', '19', '小米', '7437788', null), ('25', '28', '105', '10', '3', '699.00', '银色', '32G', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5a9d248cN071f4959.jpg', '小米 红米5A 全网通版 3GB+32GB 香槟金 移动联通电信4G手机 双卡双待', '8天超长待机,137g轻巧机身,高通骁龙处理器小米6X低至1299,点击抢购', '201808270028004', '沈专', '2019-02-16 20:39:38', null, '0', '19', '小米', '7437789', null), ('26', '29', '108', '10', '2', '5499.00', '银色', '32G', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5acc5248N6a5f81cd.jpg', 'Apple iPhone 8 Plus 64GB 红色特别版 移动联通电信4G手机', '【限时限量抢购】Apple产品年中狂欢节,好物尽享,美在智慧!速来 >> 勾选[保障服务][原厂保2年],获得AppleCare+全方位服务计划,原厂延保售后无忧。', '201808270029003', '沈专', '2019-02-16 21:03:59', null, '0', '19', '苹果', '7437799', null), ('27', '26', '137', '10', '1', '33.00', '银色', '16G', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/5ac1bf58Ndefaac16.jpg', '华为 HUAWEI P20 ', 'AI智慧全面屏 6GB +64GB 亮黑色 全网通版 移动联通电信4G手机 双卡双待手机 双卡双待', '201902140026004', '沈专', '2019-02-16 21:40:39', null, '0', '19', '华为', '6946605', null), ('28', '26', '136', '10', '1', '33.00', '金色', '128G', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/5ac1bf58Ndefaac16.jpg', '华为 HUAWEI P20 ', 'AI智慧全面屏 6GB +64GB 亮黑色 全网通版 移动联通电信4G手机 双卡双待手机 双卡双待', '201902140026003', '沈专', '2019-02-16 21:43:41', null, '0', '19', '华为', '6946605', null), ('29', '28', '104', '10', '1', '649.00', '银色', '16G', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5a9d248cN071f4959.jpg', '小米 红米5A 全网通版 3GB+32GB 香槟金 移动联通电信4G手机 双卡双待', '8天超长待机,137g轻巧机身,高通骁龙处理器小米6X低至1299,点击抢购', '201808270028003', '沈专', '2019-02-16 21:48:03', null, '0', '19', '小米', '7437789', null), ('30', '29', '106', '10', '1', '5499.00', '金色', '32G', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5acc5248N6a5f81cd.jpg', 'Apple iPhone 8 Plus 64GB 红色特别版 移动联通电信4G手机', '【限时限量抢购】Apple产品年中狂欢节,好物尽享,美在智慧!速来 >> 勾选[保障服务][原厂保2年],获得AppleCare+全方位服务计划,原厂延保售后无忧。', '201808270029001', '沈专', '2019-02-17 00:17:19', null, '1', '19', '苹果', '7437799', null), ('31', '27', '98', '10', '1', '2699.00', '黑色', '32G', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/xiaomi.jpg', '小米8 全面屏游戏智能手机 6GB+64GB 黑色 全网通4G 双卡双待', '骁龙845处理器,红外人脸解锁,AI变焦双摄,AI语音助手小米6X低至1299,点击抢购', '201808270027001', '沈专', '2019-02-17 00:19:04', null, '1', '19', '小米', '7437788', null), ('32', '26', '146', '17', '1', '22.00', '金色', '16G', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/5ac1bf58Ndefaac16.jpg', '华为 HUAWEI P20 ', 'AI智慧全面屏 6GB +64GB 亮黑色 全网通版 移动联通电信4G手机 双卡双待手机 双卡双待', '222', '沈专', '2019-02-17 11:17:44', null, '1', '19', '华为', '6946605', null), ('33', '27', '99', '17', '1', '2999.00', '黑色', '64G', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/xiaomi.jpg', '小米8 全面屏游戏智能手机 6GB+64GB 黑色 全网通4G 双卡双待', '骁龙845处理器,红外人脸解锁,AI变焦双摄,AI语音助手小米6X低至1299,点击抢购', '201808270027002', '沈专', '2019-02-17 11:18:05', null, '1', '19', '小米', '7437788', null), ('34', '28', '103', '17', '2', '699.00', '金色', '32G', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5a9d248cN071f4959.jpg', '小米 红米5A 全网通版 3GB+32GB 香槟金 移动联通电信4G手机 双卡双待', '8天超长待机,137g轻巧机身,高通骁龙处理器小米6X低至1299,点击抢购', '201808270028002', '沈专', '2019-02-17 11:19:39', null, '1', '19', '小米', '7437789', null), ('35', '28', '104', '17', '1', '649.00', '银色', '16G', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5a9d248cN071f4959.jpg', '小米 红米5A 全网通版 3GB+32GB 香槟金 移动联通电信4G手机 双卡双待', '8天超长待机,137g轻巧机身,高通骁龙处理器小米6X低至1299,点击抢购', '201808270028003', '沈专', '2019-02-17 11:19:56', null, '1', '19', '小米', '7437789', null), ('44', '27', '101', '5', '4', '2999.00', '蓝色', '64G', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/xiaomi.jpg', '小米8 全面屏游戏智能手机 6GB+64GB 黑色 全网通4G 双卡双待', '骁龙845处理器,红外人脸解锁,AI变焦双摄,AI语音助手小米6X低至1299,点击抢购', '201808270027004', 'lisi', '2019-02-22 18:25:40', null, '1', '19', '小米', '7437788', null), ('45', '26', '150', '5', '2', '33.00', '银色', '32G', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/5ac1bf58Ndefaac16.jpg', '华为 HUAWEI P20 ', 'AI智慧全面屏 6GB +64GB 亮黑色 全网通版 移动联通电信4G手机 双卡双待手机 双卡双待', '201902140026005', 'lisi', '2019-02-22 18:52:32', null, '0', '19', '华为', '6946605', null), ('46', '29', '106', '5', '1', '5499.00', '金色', '32G', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5acc5248N6a5f81cd.jpg', 'Apple iPhone 8 Plus 64GB 红色特别版 移动联通电信4G手机', '【限时限量抢购】Apple产品年中狂欢节,好物尽享,美在智慧!速来 >> 勾选[保障服务][原厂保2年],获得AppleCare+全方位服务计划,原厂延保售后无忧。', '201808270029001', 'lisi', '2019-02-22 19:03:37', null, '0', '19', '苹果', '7437799', null), ('47', '29', '109', '5', '5', '6299.00', '银色', '64G', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5acc5248N6a5f81cd.jpg', 'Apple iPhone 8 Plus 64GB 红色特别版 移动联通电信4G手机', '【限时限量抢购】Apple产品年中狂欢节,好物尽享,美在智慧!速来 >> 勾选[保障服务][原厂保2年],获得AppleCare+全方位服务计划,原厂延保售后无忧。', '201808270029004', 'lisi', '2019-02-22 19:03:50', null, '0', '19', '苹果', '7437799', null), ('48', '27', '101', '5', '1', '2999.00', '蓝色', '64G', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/xiaomi.jpg', '小米8 全面屏游戏智能手机 6GB+64GB 黑色 全网通4G 双卡双待', '骁龙845处理器,红外人脸解锁,AI变焦双摄,AI语音助手小米6X低至1299,点击抢购', '201808270027004', 'lisi', '2019-02-23 08:16:56', null, '1', '19', '小米', '7437788', null), ('49', '7', '1', '5', '1', '100.00', 'string', 'string', 'string', 'string', '女式超柔软拉毛运动开衫', '匠心剪裁,垂感质地', 'string', 'lisi', '2019-02-23 08:27:42', null, '0', '7', '万和', 'No86577', null), ('50', '27', '101', '5', '1', '2999.00', '蓝色', '64G', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/xiaomi.jpg', '小米8 全面屏游戏智能手机 6GB+64GB 黑色 全网通4G 双卡双待', '骁龙845处理器,红外人脸解锁,AI变焦双摄,AI语音助手小米6X低至1299,点击抢购', '201808270027004', 'lisi', '2019-02-23 08:29:05', null, '1', '19', '小米', '7437788', null), ('51', '26', '146', '5', '1', '22.00', '金色', '16G', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/5ac1bf58Ndefaac16.jpg', '华为 HUAWEI P20 ', 'AI智慧全面屏 6GB +64GB 亮黑色 全网通版 移动联通电信4G手机 双卡双待手机 双卡双待', '222', 'lisi', '2019-02-23 08:29:38', null, '1', '19', '华为', '6946605', null), ('52', '26', '146', '5', '1', '22.00', '金色', '16G', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/5ac1bf58Ndefaac16.jpg', '华为 HUAWEI P20 ', 'AI智慧全面屏 6GB +64GB 亮黑色 全网通版 移动联通电信4G手机 双卡双待手机 双卡双待', '222', 'lisi', '2019-02-23 08:41:57', null, '1', '19', '华为', '6946605', null), ('53', '26', '146', '5', '1', '22.00', '金色', '16G', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/5ac1bf58Ndefaac16.jpg', '华为 HUAWEI P20 ', 'AI智慧全面屏 6GB +64GB 亮黑色 全网通版 移动联通电信4G手机 双卡双待手机 双卡双待', '222', 'lisi', '2019-02-23 08:44:47', null, '1', '19', '华为', '6946605', null), ('54', '26', '151', '5', '1', '33.00', '银色', '128G', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/5ac1bf58Ndefaac16.jpg', '华为 HUAWEI P20 ', 'AI智慧全面屏 6GB +64GB 亮黑色 全网通版 移动联通电信4G手机 双卡双待手机 双卡双待', '201902140026006', 'lisi', '2019-02-23 08:46:43', null, '1', '19', '华为', '6946605', null), ('55', '27', '101', '5', '1', '2999.00', '蓝色', '64G', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/xiaomi.jpg', '小米8 全面屏游戏智能手机 6GB+64GB 黑色 全网通4G 双卡双待', '骁龙845处理器,红外人脸解锁,AI变焦双摄,AI语音助手小米6X低至1299,点击抢购', '201808270027004', 'lisi', '2019-02-23 08:47:52', null, '1', '19', '小米', '7437788', null), ('56', '28', '102', '17', '1', '649.00', '金色', '16G', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5a9d248cN071f4959.jpg', '小米 红米5A 全网通版 3GB+32GB 香槟金 移动联通电信4G手机 双卡双待', '8天超长待机,137g轻巧机身,高通骁龙处理器小米6X低至1299,点击抢购', '201808270028001', '沈专', '2019-02-23 11:01:11', null, '1', '19', '小米', '7437789', null), ('57', '26', '150', '17', '2', '33.00', '银色', '32G', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/5ac1bf58Ndefaac16.jpg', '华为 HUAWEI P20 ', 'AI智慧全面屏 6GB +64GB 亮黑色 全网通版 移动联通电信4G手机 双卡双待手机 双卡双待', '201902140026005', '沈专', '2019-02-23 11:08:26', null, '1', '19', '华为', '6946605', null), ('58', '26', '150', '17', '1', '33.00', '银色', '32G', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/5ac1bf58Ndefaac16.jpg', '华为 HUAWEI P20 ', 'AI智慧全面屏 6GB +64GB 亮黑色 全网通版 移动联通电信4G手机 双卡双待手机 双卡双待', '201902140026005', '沈专', '2019-02-23 11:13:20', null, '1', '19', '华为', '6946605', null), ('59', '28', '105', '17', '3', '699.00', '银色', '32G', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5a9d248cN071f4959.jpg', '小米 红米5A 全网通版 3GB+32GB 香槟金 移动联通电信4G手机 双卡双待', '8天超长待机,137g轻巧机身,高通骁龙处理器小米6X低至1299,点击抢购', '201808270028004', '沈专', '2019-02-23 11:27:18', null, '1', '19', '小米', '7437789', null), ('60', '27', '101', '17', '2', '2999.00', '蓝色', '64G', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/xiaomi.jpg', '小米8 全面屏游戏智能手机 6GB+64GB 黑色 全网通4G 双卡双待', '骁龙845处理器,红外人脸解锁,AI变焦双摄,AI语音助手小米6X低至1299,点击抢购', '201808270027004', '沈专', '2019-02-23 13:52:08', null, '1', '19', '小米', '7437788', null), ('61', '26', '150', '17', '1', '33.00', '银色', '32G', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/5ac1bf58Ndefaac16.jpg', '华为 HUAWEI P20 ', 'AI智慧全面屏 6GB +64GB 亮黑色 全网通版 移动联通电信4G手机 双卡双待手机 双卡双待', '201902140026005', '沈专', '2019-02-23 13:52:49', null, '1', '19', '华为', '6946605', '价格:33.00元,库存:33,规格:银色,32G'), ('62', '26', '148', '17', '1', '33.00', '金色', '128G', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/5ac1bf58Ndefaac16.jpg', '华为 HUAWEI P20 ', 'AI智慧全面屏 6GB +64GB 亮黑色 全网通版 移动联通电信4G手机 双卡双待手机 双卡双待', '201902140026003', '沈专', '2019-02-23 13:57:38', null, '1', '19', '华为', '6946605', '规格:金色,128G'), ('63', '27', '99', '17', '1', '2999.00', '黑色', '64G', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/xiaomi.jpg', '小米8 全面屏游戏智能手机 6GB+64GB 黑色 全网通4G 双卡双待', '骁龙845处理器,红外人脸解锁,AI变焦双摄,AI语音助手小米6X低至1299,点击抢购', '201808270027002', '沈专', '2019-02-23 13:57:57', null, '1', '19', '小米', '7437788', '规格:黑色,64G'), ('64', '27', '101', '17', '1', '2999.00', '蓝色', '64G', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/xiaomi.jpg', '小米8 全面屏游戏智能手机 6GB+64GB 黑色 全网通4G 双卡双待', '骁龙845处理器,红外人脸解锁,AI变焦双摄,AI语音助手小米6X低至1299,点击抢购', '201808270027004', '沈专', '2019-02-23 14:04:44', null, '1', '19', '小米', '7437788', '规格:蓝色,64G'), ('65', '26', '151', '5', '1', '33.00', '银色', '128G', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/5ac1bf58Ndefaac16.jpg', '华为 HUAWEI P20 ', 'AI智慧全面屏 6GB +64GB 亮黑色 全网通版 移动联通电信4G手机 双卡双待手机 双卡双待', '201902140026006', 'lisi', '2019-02-23 16:19:54', null, '0', '19', '华为', '6946605', '规格:银色,128G'), ('66', '27', '101', '5', '1', '2999.00', '蓝色', '64G', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/xiaomi.jpg', '小米8 全面屏游戏智能手机 6GB+64GB 黑色 全网通4G 双卡双待', '骁龙845处理器,红外人脸解锁,AI变焦双摄,AI语音助手小米6X低至1299,点击抢购', '201808270027004', 'lisi', '2019-02-23 16:35:07', null, '0', '19', '小米', '7437788', '规格:蓝色,64G'), ('67', '27', '100', '5', '1', '2699.00', '蓝色', '32G', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/xiaomi.jpg', '小米8 全面屏游戏智能手机 6GB+64GB 黑色 全网通4G 双卡双待', '骁龙845处理器,红外人脸解锁,AI变焦双摄,AI语音助手小米6X低至1299,点击抢购', '201808270027003', 'lisi', '2019-02-23 16:39:10', null, '1', '19', '小米', '7437788', '规格:蓝色,32G'), ('68', '7', '1', '17', '1', '100.00', 'string', 'string', 'string', 'string', '女式超柔软拉毛运动开衫', '匠心剪裁,垂感质地', 'string', '沈专', '2019-02-24 10:26:22', null, '0', '7', '万和', 'No86577', '规格:string,string,string'), ('69', '7', '11', '17', '1', '0.00', 'string', 'string', 'sp33', 'string', '女式超柔软拉毛运动开衫', '匠心剪裁,垂感质地', 'string', '沈专', '2019-02-24 10:31:50', null, '0', '7', '万和', 'No86577', '规格:string,string,sp33'), ('70', '26', '149', '17', '1', '33.00', '银色', '16G', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/5ac1bf58Ndefaac16.jpg', '华为 HUAWEI P20 ', 'AI智慧全面屏 6GB +64GB 亮黑色 全网通版 移动联通电信4G手机 双卡双待手机 双卡双待', '201902140026004', '沈专', '2019-02-24 10:32:02', null, '1', '19', '华为', '6946605', '规格:银色,16G'), ('71', '7', '10', '17', '1', '0.00', 'string', 'string', 'sp3', 'string', '女式超柔软拉毛运动开衫', '匠心剪裁,垂感质地', 'string', '沈专', '2019-02-25 16:07:46', null, '0', '7', '万和', 'No86577', '规格:string,string,sp3'), ('72', '26', '149', '17', '1', '33.00', '银色', '16G', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/5ac1bf58Ndefaac16.jpg', '华为 HUAWEI P20 ', 'AI智慧全面屏 6GB +64GB 亮黑色 全网通版 移动联通电信4G手机 双卡双待手机 双卡双待', '201902140026004', '沈专', '2019-02-25 16:07:54', null, '0', '19', '华为', '6946605', '规格:银色,16G'), ('73', '28', '105', '17', '1', '699.00', '银色', '32G', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5a9d248cN071f4959.jpg', '小米 红米5A 全网通版 3GB+32GB 香槟金 移动联通电信4G手机 双卡双待', '8天超长待机,137g轻巧机身,高通骁龙处理器小米6X低至1299,点击抢购', '201808270028004', '沈专', '2019-02-25 16:08:14', null, '0', '19', '小米', '7437789', '规格:银色,32G'), ('74', '28', '102', '17', '1', '649.00', '金色', '16G', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5a9d248cN071f4959.jpg', '小米 红米5A 全网通版 3GB+32GB 香槟金 移动联通电信4G手机 双卡双待', '8天超长待机,137g轻巧机身,高通骁龙处理器小米6X低至1299,点击抢购', '201808270028001', '沈专', '2019-02-25 16:08:22', null, '0', '19', '小米', '7437789', '规格:金色,16G');
COMMIT;
-- ----------------------------
-- Table structure for `oms_company_address`
-- ----------------------------
DROP TABLE IF EXISTS `oms_company_address`;
CREATE TABLE `oms_company_address` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`address_name` varchar(200) DEFAULT NULL COMMENT '地址名称',
`send_status` int(1) DEFAULT NULL COMMENT '默认发货地址:0->否;1->是',
`receive_status` int(1) DEFAULT NULL COMMENT '是否默认收货地址:0->否;1->是',
`name` varchar(64) DEFAULT NULL COMMENT '收发货人姓名',
`phone` varchar(64) DEFAULT NULL COMMENT '收货人电话',
`province` varchar(64) DEFAULT NULL COMMENT '省/直辖市',
`city` varchar(64) DEFAULT NULL COMMENT '市',
`region` varchar(64) DEFAULT NULL COMMENT '区',
`detail_address` varchar(200) DEFAULT NULL COMMENT '详细地址',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COMMENT='公司收发货地址表';
-- ----------------------------
-- Records of `oms_company_address`
-- ----------------------------
BEGIN;
INSERT INTO `oms_company_address` VALUES ('1', '深圳发货点', '1', '1', '大梨', '18000000000', '广东省', '深圳市', '南山区', '科兴科学园'), ('2', '北京发货点', '0', '0', '大梨', '18000000000', '北京市', null, '南山区', '科兴科学园'), ('3', '南京发货点', '0', '0', '大梨', '18000000000', '江苏省', '南京市', '南山区', '科兴科学园');
COMMIT;
-- ----------------------------
-- Table structure for `oms_order`
-- ----------------------------
DROP TABLE IF EXISTS `oms_order`;
CREATE TABLE `oms_order` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '订单id',
`member_id` bigint(20) NOT NULL,
`coupon_id` bigint(20) DEFAULT NULL,
`order_sn` varchar(64) DEFAULT NULL COMMENT '订单编号',
`create_time` datetime DEFAULT NULL COMMENT '提交时间',
`member_username` varchar(64) DEFAULT NULL COMMENT '用户帐号',
`total_amount` decimal(10,2) DEFAULT NULL COMMENT '订单总金额',
`pay_amount` decimal(10,2) DEFAULT NULL COMMENT '应付金额(实际支付金额)',
`freight_amount` decimal(10,2) DEFAULT NULL COMMENT '运费金额',
`promotion_amount` decimal(10,2) DEFAULT NULL COMMENT '促销优化金额(促销价、满减、阶梯价)',
`integration_amount` decimal(10,2) DEFAULT NULL COMMENT '积分抵扣金额',
`coupon_amount` decimal(10,2) DEFAULT NULL COMMENT '优惠券抵扣金额',
`discount_amount` decimal(10,2) DEFAULT NULL COMMENT '管理员后台调整订单使用的折扣金额',
`pay_type` int(1) DEFAULT NULL COMMENT '支付方式:0->未支付;1->支付宝;2->微信',
`source_type` int(1) DEFAULT NULL COMMENT '订单来源:0->PC订单;1->app订单',
`status` int(1) DEFAULT NULL COMMENT '订单状态:0->待付款;1->待发货;2->已发货;3->已完成;4->已关闭;5->无效订单',
`order_type` int(1) DEFAULT NULL COMMENT '订单类型:0->正常订单;1->秒杀订单',
`delivery_company` varchar(64) DEFAULT NULL COMMENT '物流公司(配送方式)',
`delivery_sn` varchar(64) DEFAULT NULL COMMENT '物流单号',
`auto_confirm_day` int(11) DEFAULT NULL COMMENT '自动确认时间(天)',
`integration` int(11) DEFAULT NULL COMMENT '可以获得的积分',
`growth` int(11) DEFAULT NULL COMMENT '可以活动的成长值',
`promotion_info` varchar(100) DEFAULT NULL COMMENT '活动信息',
`bill_type` int(1) DEFAULT NULL COMMENT '发票类型:0->不开发票;1->电子发票;2->纸质发票',
`bill_header` varchar(200) DEFAULT NULL COMMENT '发票抬头',
`bill_content` varchar(200) DEFAULT NULL COMMENT '发票内容',
`bill_receiver_phone` varchar(32) DEFAULT NULL COMMENT '收票人电话',
`bill_receiver_email` varchar(64) DEFAULT NULL COMMENT '收票人邮箱',
`receiver_name` varchar(100) NOT NULL COMMENT '收货人姓名',
`receiver_phone` varchar(32) NOT NULL COMMENT '收货人电话',
`receiver_post_code` varchar(32) DEFAULT NULL COMMENT '收货人邮编',
`receiver_province` varchar(32) DEFAULT NULL COMMENT '省份/直辖市',
`receiver_city` varchar(32) DEFAULT NULL COMMENT '城市',
`receiver_region` varchar(32) DEFAULT NULL COMMENT '区',
`receiver_detail_address` varchar(200) DEFAULT NULL COMMENT '详细地址',
`note` varchar(500) DEFAULT NULL COMMENT '订单备注',
`confirm_status` int(1) DEFAULT NULL COMMENT '确认收货状态:0->未确认;1->已确认',
`delete_status` int(1) NOT NULL DEFAULT '0' COMMENT '删除状态:0->未删除;1->已删除',
`use_integration` int(11) DEFAULT NULL COMMENT '下单时使用的积分',
`payment_time` datetime DEFAULT NULL COMMENT '支付时间',
`delivery_time` datetime DEFAULT NULL COMMENT '发货时间',
`receive_time` datetime DEFAULT NULL COMMENT '确认收货时间',
`comment_time` datetime DEFAULT NULL COMMENT '评价时间',
`modify_time` datetime DEFAULT NULL COMMENT '修改时间',
`prepay_id` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=61 DEFAULT CHARSET=utf8 COMMENT='订单表';
-- ----------------------------
-- Records of `oms_order`
-- ----------------------------
BEGIN;
INSERT INTO `oms_order` VALUES ('60', '17', null, '201902240102000001', '2019-02-24 10:32:04', 'wxapplettmcyus5qz354', '33.00', '0.00', '0.00', '33.00', '0.00', '0.00', '0.00', '2', '1', '4', '0', null, null, null, '3788', '3788', '单品促销', null, null, null, null, null, '张三', '020-81167888', '510000', null, null, null, '新港中路397号', null, '0', '0', null, null, null, null, null, null, null);
COMMIT;
-- ----------------------------
-- Table structure for `oms_order_item`
-- ----------------------------
DROP TABLE IF EXISTS `oms_order_item`;
CREATE TABLE `oms_order_item` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`order_id` bigint(20) DEFAULT NULL COMMENT '订单id',
`order_sn` varchar(64) DEFAULT NULL COMMENT '订单编号',
`product_id` bigint(20) DEFAULT NULL,
`product_pic` varchar(500) DEFAULT NULL,
`product_name` varchar(200) DEFAULT NULL,
`product_brand` varchar(200) DEFAULT NULL,
`product_sn` varchar(64) DEFAULT NULL,
`product_price` decimal(10,2) DEFAULT NULL COMMENT '销售价格',
`product_quantity` int(11) DEFAULT NULL COMMENT '购买数量',
`product_sku_id` bigint(20) DEFAULT NULL COMMENT '商品sku编号',
`product_sku_code` varchar(50) DEFAULT NULL COMMENT '商品sku条码',
`product_category_id` bigint(20) DEFAULT NULL COMMENT '商品分类id',
`sp1` varchar(100) DEFAULT NULL COMMENT '商品的销售属性',
`sp2` varchar(100) DEFAULT NULL,
`sp3` varchar(100) DEFAULT NULL,
`promotion_name` varchar(200) DEFAULT NULL COMMENT '商品促销名称',
`promotion_amount` decimal(10,2) DEFAULT NULL COMMENT '商品促销分解金额',
`coupon_amount` decimal(10,2) DEFAULT NULL COMMENT '优惠券优惠分解金额',
`integration_amount` decimal(10,2) DEFAULT NULL COMMENT '积分优惠分解金额',
`real_amount` decimal(10,2) DEFAULT NULL COMMENT '该商品经过优惠后的分解金额',
`gift_integration` int(11) DEFAULT '0',
`gift_growth` int(11) DEFAULT '0',
`product_attr` varchar(500) DEFAULT NULL COMMENT '商品销售属性:[{"key":"颜色","value":"颜色"},{"key":"容量","value":"4G"}]',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=75 DEFAULT CHARSET=utf8 COMMENT='订单中所包含的商品';
-- ----------------------------
-- Records of `oms_order_item`
-- ----------------------------
BEGIN;
INSERT INTO `oms_order_item` VALUES ('74', '60', '201902240102000001', '26', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/5ac1bf58Ndefaac16.jpg', '华为 HUAWEI P20 ', '华为', '6946605', '33.00', '1', '149', '201902140026004', '19', null, null, null, '单品促销', '33.00', '0.00', '0.00', '0.00', '0', '0', '规格:银色,16G');
COMMIT;
-- ----------------------------
-- Table structure for `oms_order_operate_history`
-- ----------------------------
DROP TABLE IF EXISTS `oms_order_operate_history`;
CREATE TABLE `oms_order_operate_history` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`order_id` bigint(20) DEFAULT NULL COMMENT '订单id',
`operate_man` varchar(100) DEFAULT NULL COMMENT '操作人:用户;系统;后台管理员',
`create_time` datetime DEFAULT NULL COMMENT '操作时间',
`order_status` int(1) DEFAULT NULL COMMENT '订单状态:0->待付款;1->待发货;2->已发货;3->已完成;4->已关闭;5->无效订单',
`note` varchar(500) DEFAULT NULL COMMENT '备注',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=utf8 COMMENT='订单操作历史记录';
-- ----------------------------
-- Records of `oms_order_operate_history`
-- ----------------------------
BEGIN;
INSERT INTO `oms_order_operate_history` VALUES ('5', '12', '后台管理员', '2018-10-12 14:01:29', '2', '完成发货'), ('6', '13', '后台管理员', '2018-10-12 14:01:29', '2', '完成发货'), ('7', '12', '后台管理员', '2018-10-12 14:13:10', '4', '订单关闭:买家退货'), ('8', '13', '后台管理员', '2018-10-12 14:13:10', '4', '订单关闭:买家退货'), ('9', '22', '后台管理员', '2018-10-15 16:31:48', '4', '订单关闭:xxx'), ('10', '22', '后台管理员', '2018-10-15 16:35:08', '4', '订单关闭:xxx'), ('11', '22', '后台管理员', '2018-10-15 16:35:59', '4', '订单关闭:xxx'), ('12', '17', '后台管理员', '2018-10-15 16:43:40', '4', '订单关闭:xxx'), ('13', '25', '后台管理员', '2018-10-15 16:52:14', '4', '订单关闭:xxx'), ('14', '26', '后台管理员', '2018-10-15 16:52:14', '4', '订单关闭:xxx'), ('15', '23', '后台管理员', '2018-10-16 14:41:28', '2', '完成发货'), ('16', '13', '后台管理员', '2018-10-16 14:42:17', '2', '完成发货'), ('17', '18', '后台管理员', '2018-10-16 14:42:17', '2', '完成发货'), ('18', '26', '后台管理员', '2018-10-30 14:37:44', '4', '订单关闭:关闭订单'), ('19', '25', '后台管理员', '2018-10-30 15:07:01', '0', '修改收货人信息'), ('20', '25', '后台管理员', '2018-10-30 15:08:13', '0', '修改费用信息'), ('21', '25', '后台管理员', '2018-10-30 15:08:31', '0', '修改备注信息:xxx'), ('22', '25', '后台管理员', '2018-10-30 15:08:39', '4', '订单关闭:2222');
COMMIT;
-- ----------------------------
-- Table structure for `oms_order_return_apply`
-- ----------------------------
DROP TABLE IF EXISTS `oms_order_return_apply`;
CREATE TABLE `oms_order_return_apply` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`order_id` bigint(20) DEFAULT NULL COMMENT '订单id',
`company_address_id` bigint(20) DEFAULT NULL COMMENT '收货地址表id',
`product_id` bigint(20) DEFAULT NULL COMMENT '退货商品id',
`order_sn` varchar(64) DEFAULT NULL COMMENT '订单编号',
`create_time` datetime DEFAULT NULL COMMENT '申请时间',
`member_username` varchar(64) DEFAULT NULL COMMENT '会员用户名',
`return_amount` decimal(10,2) DEFAULT NULL COMMENT '退款金额',
`return_name` varchar(100) DEFAULT NULL COMMENT '退货人姓名',
`return_phone` varchar(100) DEFAULT NULL COMMENT '退货人电话',
`status` int(1) DEFAULT NULL COMMENT '申请状态:0->待处理;1->退货中;2->已完成;3->已拒绝',
`handle_time` datetime DEFAULT NULL COMMENT '处理时间',
`product_pic` varchar(500) DEFAULT NULL COMMENT '商品图片',
`product_name` varchar(200) DEFAULT NULL COMMENT '商品名称',
`product_brand` varchar(200) DEFAULT NULL COMMENT '商品品牌',
`product_attr` varchar(500) DEFAULT NULL COMMENT '商品销售属性:颜色:红色;尺码:xl;',
`product_count` int(11) DEFAULT NULL COMMENT '退货数量',
`product_price` decimal(10,2) DEFAULT NULL COMMENT '商品单价',
`product_real_price` decimal(10,2) DEFAULT NULL COMMENT '商品实际支付单价',
`reason` varchar(200) DEFAULT NULL COMMENT '原因',
`description` varchar(500) DEFAULT NULL COMMENT '描述',
`proof_pics` varchar(1000) DEFAULT NULL COMMENT '凭证图片,以逗号隔开',
`handle_note` varchar(500) DEFAULT NULL COMMENT '处理备注',
`handle_man` varchar(100) DEFAULT NULL COMMENT '处理人员',
`receive_man` varchar(100) DEFAULT NULL COMMENT '收货人',
`receive_time` datetime DEFAULT NULL COMMENT '收货时间',
`receive_note` varchar(500) DEFAULT NULL COMMENT '收货备注',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=27 DEFAULT CHARSET=utf8 COMMENT='订单退货申请';
-- ----------------------------
-- Records of `oms_order_return_apply`
-- ----------------------------
BEGIN;
INSERT INTO `oms_order_return_apply` VALUES ('3', '12', null, '26', '201809150101000001', '2018-10-17 14:34:57', 'test', null, '大梨', '18000000000', '0', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/5ac1bf58Ndefaac16.jpg', '华为 HUAWEI P20', '华为', '颜色:金色;内存:16G', '1', '3788.00', '3585.98', '质量问题', '老是卡', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/5ac1bf58Ndefaac16.jpg,http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/xiaomi.jpg', null, null, null, null, null), ('4', '12', '2', '27', '201809150101000001', '2018-10-17 14:40:21', 'test', '3585.98', '大梨', '18000000000', '1', '2018-10-18 13:54:10', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/xiaomi.jpg', '小米8', '小米', '颜色:黑色;内存:32G', '1', '2699.00', '2022.81', '质量问题', '不够高端', '', '已经处理了', 'admin', null, null, null), ('5', '12', '3', '28', '201809150101000001', '2018-10-17 14:44:18', 'test', '3585.98', '大梨', '18000000000', '2', '2018-10-18 13:55:28', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5a9d248cN071f4959.jpg', '红米5A', '小米', '颜色:金色;内存:16G', '1', '649.00', '591.05', '质量问题', '颜色太土', '', '已经处理了', 'admin', 'admin', '2018-10-18 13:55:58', '已经处理了'), ('8', '13', null, '28', '201809150102000002', '2018-10-17 14:44:18', 'test', null, '大梨', '18000000000', '3', '2018-10-18 13:57:12', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5a9d248cN071f4959.jpg', '红米5A', '小米', '颜色:金色;内存:16G', '1', '649.00', '591.05', '质量问题', '颜色太土', '', '理由不够充分', 'admin', null, null, null), ('9', '14', '2', '26', '201809130101000001', '2018-10-17 14:34:57', 'test', '3500.00', '大梨', '18000000000', '2', '2018-10-24 15:44:56', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/5ac1bf58Ndefaac16.jpg', '华为 HUAWEI P20', '华为', '颜色:金色;内存:16G', '1', '3788.00', '3585.98', '质量问题', '老是卡', '', '呵呵', 'admin', 'admin', '2018-10-24 15:46:35', '收货了'), ('10', '14', null, '27', '201809130101000001', '2018-10-17 14:40:21', 'test', null, '大梨', '18000000000', '3', '2018-10-24 15:46:57', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/xiaomi.jpg', '小米8', '小米', '颜色:黑色;内存:32G', '1', '2699.00', '2022.81', '质量问题', '不够高端', '', '就是不退', 'admin', null, null, null), ('11', '14', '2', '28', '201809130101000001', '2018-10-17 14:44:18', 'test', '591.05', '大梨', '18000000000', '1', '2018-10-24 17:09:04', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5a9d248cN071f4959.jpg', '红米5A', '小米', '颜色:金色;内存:16G', '1', '649.00', '591.05', '质量问题', '颜色太土', '', '可以退款', 'admin', null, null, null), ('12', '15', '3', '26', '201809130102000002', '2018-10-17 14:34:57', 'test', '3500.00', '大梨', '18000000000', '2', '2018-10-24 17:22:54', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/5ac1bf58Ndefaac16.jpg', '华为 HUAWEI P20', '华为', '颜色:金色;内存:16G', '1', '3788.00', '3585.98', '质量问题', '老是卡', '', '退货了', 'admin', 'admin', '2018-10-24 17:23:06', '收货了'), ('13', '15', null, '27', '201809130102000002', '2018-10-17 14:40:21', 'test', null, '大梨', '18000000000', '3', '2018-10-24 17:23:30', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/xiaomi.jpg', '小米8', '小米', '颜色:黑色;内存:32G', '1', '2699.00', '2022.81', '质量问题', '不够高端', '', '无法退货', 'admin', null, null, null), ('15', '16', null, '26', '201809140101000001', '2018-10-17 14:34:57', 'test', null, '大梨', '18000000000', '0', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/5ac1bf58Ndefaac16.jpg', '华为 HUAWEI P20', '华为', '颜色:金色;内存:16G', '1', '3788.00', '3585.98', '质量问题', '老是卡', '', null, null, null, null, null), ('16', '16', null, '27', '201809140101000001', '2018-10-17 14:40:21', 'test', null, '大梨', '18000000000', '0', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/xiaomi.jpg', '小米8', '小米', '颜色:黑色;内存:32G', '1', '2699.00', '2022.81', '质量问题', '不够高端', '', null, null, null, null, null), ('17', '16', null, '28', '201809140101000001', '2018-10-17 14:44:18', 'test', null, '大梨', '18000000000', '0', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5a9d248cN071f4959.jpg', '红米5A', '小米', '颜色:金色;内存:16G', '1', '649.00', '591.05', '质量问题', '颜色太土', '', null, null, null, null, null), ('18', '17', null, '26', '201809150101000003', '2018-10-17 14:34:57', 'test', null, '大梨', '18000000000', '0', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/5ac1bf58Ndefaac16.jpg', '华为 HUAWEI P20', '华为', '颜色:金色;内存:16G', '1', '3788.00', '3585.98', '质量问题', '老是卡', '', null, null, null, null, null), ('19', '17', null, '27', '201809150101000003', '2018-10-17 14:40:21', 'test', null, '大梨', '18000000000', '0', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/xiaomi.jpg', '小米8', '小米', '颜色:黑色;内存:32G', '1', '2699.00', '2022.81', '质量问题', '不够高端', '', null, null, null, null, null), ('20', '17', null, '28', '201809150101000003', '2018-10-17 14:44:18', 'test', null, '大梨', '18000000000', '0', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5a9d248cN071f4959.jpg', '红米5A', '小米', '颜色:金色;内存:16G', '1', '649.00', '591.05', '质量问题', '颜色太土', '', null, null, null, null, null), ('21', '18', null, '26', '201809150102000004', '2018-10-17 14:34:57', 'test', null, '大梨', '18000000000', '0', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/5ac1bf58Ndefaac16.jpg', '华为 HUAWEI P20', '华为', '颜色:金色;内存:16G', '1', '3788.00', '3585.98', '质量问题', '老是卡', '', null, null, null, null, null), ('22', '18', null, '27', '201809150102000004', '2018-10-17 14:40:21', 'test', null, '大梨', '18000000000', '0', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/xiaomi.jpg', '小米8', '小米', '颜色:黑色;内存:32G', '1', '2699.00', '2022.81', '质量问题', '不够高端', '', null, null, null, null, null), ('23', '18', null, '28', '201809150102000004', '2018-10-17 14:44:18', 'test', null, '大梨', '18000000000', '0', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5a9d248cN071f4959.jpg', '红米5A', '小米', '颜色:金色;内存:16G', '1', '649.00', '591.05', '质量问题', '颜色太土', '', null, null, null, null, null), ('24', '19', null, '26', '201809130101000003', '2018-10-17 14:34:57', 'test', null, '大梨', '18000000000', '0', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/5ac1bf58Ndefaac16.jpg', '华为 HUAWEI P20', '华为', '颜色:金色;内存:16G', '1', '3788.00', '3585.98', '质量问题', '老是卡', '', null, null, null, null, null), ('25', '19', null, '27', '201809130101000003', '2018-10-17 14:40:21', 'test', null, '大梨', '18000000000', '0', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/xiaomi.jpg', '小米8', '小米', '颜色:黑色;内存:32G', '1', '2699.00', '2022.81', '质量问题', '不够高端', '', null, null, null, null, null), ('26', '19', null, '28', '201809130101000003', '2018-10-17 14:44:18', 'test', null, '大梨', '18000000000', '0', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5a9d248cN071f4959.jpg', '红米5A', '小米', '颜色:金色;内存:16G', '1', '649.00', '591.05', '质量问题', '颜色太土', '', null, null, null, null, null);
COMMIT;
-- ----------------------------
-- Table structure for `oms_order_return_reason`
-- ----------------------------
DROP TABLE IF EXISTS `oms_order_return_reason`;
CREATE TABLE `oms_order_return_reason` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`name` varchar(100) DEFAULT NULL COMMENT '退货类型',
`sort` int(11) DEFAULT NULL,
`status` int(1) DEFAULT NULL COMMENT '状态:0->不启用;1->启用',
`create_time` datetime DEFAULT NULL COMMENT '添加时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8 COMMENT='退货原因表';
-- ----------------------------
-- Records of `oms_order_return_reason`
-- ----------------------------
BEGIN;
INSERT INTO `oms_order_return_reason` VALUES ('1', '质量问题', '1', '0', '2018-10-17 10:00:45'), ('2', '尺码太大', '1', '1', '2018-10-17 10:01:03'), ('3', '颜色不喜欢', '1', '1', '2018-10-17 10:01:13'), ('4', '7天无理由退货', '1', '1', '2018-10-17 10:01:47'), ('5', '价格问题', '1', '0', '2018-10-17 10:01:57'), ('12', '发票问题', '0', '1', '2018-10-19 16:28:36'), ('13', '其他问题', '0', '1', '2018-10-19 16:28:51'), ('14', '物流问题', '0', '1', '2018-10-19 16:29:01'), ('15', '售后问题', '0', '1', '2018-10-19 16:29:11');
COMMIT;
-- ----------------------------
-- Table structure for `oms_order_setting`
-- ----------------------------
DROP TABLE IF EXISTS `oms_order_setting`;
CREATE TABLE `oms_order_setting` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`flash_order_overtime` int(11) DEFAULT NULL COMMENT '秒杀订单超时关闭时间(分)',
`normal_order_overtime` int(11) DEFAULT NULL COMMENT '正常订单超时时间(分)',
`confirm_overtime` int(11) DEFAULT NULL COMMENT '发货后自动确认收货时间(天)',
`finish_overtime` int(11) DEFAULT NULL COMMENT '自动完成交易时间,不能申请售后(天)',
`comment_overtime` int(11) DEFAULT NULL COMMENT '订单完成后自动好评时间(天)',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='订单设置表';
-- ----------------------------
-- Records of `oms_order_setting`
-- ----------------------------
BEGIN;
INSERT INTO `oms_order_setting` VALUES ('1', '60', '120', '15', '7', '7');
COMMIT;
-- ----------------------------
-- Table structure for `pms_album`
-- ----------------------------
DROP TABLE IF EXISTS `pms_album`;
CREATE TABLE `pms_album` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`name` varchar(64) DEFAULT NULL,
`cover_pic` varchar(1000) DEFAULT NULL,
`pic_count` int(11) DEFAULT NULL,
`sort` int(11) DEFAULT NULL,
`description` varchar(1000) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='相册表';
-- ----------------------------
-- Table structure for `pms_album_pic`
-- ----------------------------
DROP TABLE IF EXISTS `pms_album_pic`;
CREATE TABLE `pms_album_pic` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`album_id` bigint(20) DEFAULT NULL,
`pic` varchar(1000) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='画册图片表';
-- ----------------------------
-- Table structure for `pms_brand`
-- ----------------------------
DROP TABLE IF EXISTS `pms_brand`;
CREATE TABLE `pms_brand` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`name` varchar(64) DEFAULT NULL,
`first_letter` varchar(8) DEFAULT NULL COMMENT '首字母',
`sort` int(11) DEFAULT NULL,
`factory_status` int(1) DEFAULT NULL COMMENT '是否为品牌制造商:0->不是;1->是',
`show_status` int(1) DEFAULT NULL,
`product_count` int(11) DEFAULT NULL COMMENT '产品数量',
`product_comment_count` int(11) DEFAULT NULL COMMENT '产品评论数量',
`logo` varchar(255) DEFAULT NULL COMMENT '品牌logo',
`big_pic` varchar(255) DEFAULT NULL COMMENT '专区大图',
`brand_story` text COMMENT '品牌故事',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=59 DEFAULT CHARSET=utf8 COMMENT='品牌表';
-- ----------------------------
-- Records of `pms_brand`
-- ----------------------------
BEGIN;
INSERT INTO `pms_brand` VALUES ('1', '万和', 'W', '0', '1', '1', '100', '100', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/timg(5).jpg', '', 'Victoria\'s Secret的故事'), ('2', '三星', 'S', '100', '1', '1', '100', '100', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/timg (1).jpg', null, '三星的故事'), ('3', '华为', 'H', '100', '1', '1', '100', '100', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20190129/17f2dd9756d9d333bee8e60ce8c03e4c_222_222.jpg', null, 'Victoria\'s Secret的故事'), ('4', '格力', 'G', '30', '1', '1', '100', '100', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20190129/dc794e7e74121272bbe3ce9bc41ec8c3_222_222.jpg', null, 'Victoria\'s Secret的故事'), ('5', '方太', 'F', '20', '1', '1', '100', '100', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/timg (4).jpg', null, 'Victoria\'s Secret的故事'), ('6', '小米', 'M', '500', '1', '1', '100', '100', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20190129/1e34aef2a409119018a4c6258e39ecfb_222_222.png', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180518/5afd7778Nf7800b75.jpg', '小米手机的故事'), ('21', 'OPPO', 'O', '0', '1', '1', '88', '500', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/timg(6).jpg', '', 'string'), ('49', '七匹狼', 'S', '200', '1', '1', '77', '400', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20190129/18d8bc3eb13533fab466d702a0d3fd1f40345bcd.jpg', null, 'BOOB的故事'), ('50', '海澜之家', 'H', '200', '1', '1', '66', '300', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20190129/99d3279f1029d32b929343b09d3c72de_222_222.jpg', '', '海澜之家的故事'), ('51', '苹果', 'A', '200', '1', '1', '55', '200', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/timg.jpg', null, '苹果的故事'), ('58', 'NIKE', 'N', '0', '1', '1', '33', '100', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/timg (51).jpg', '', 'NIKE的故事');
COMMIT;
-- ----------------------------
-- Table structure for `pms_comment`
-- ----------------------------
DROP TABLE IF EXISTS `pms_comment`;
CREATE TABLE `pms_comment` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`product_id` bigint(20) DEFAULT NULL,
`member_nick_name` varchar(255) DEFAULT NULL,
`product_name` varchar(255) DEFAULT NULL,
`star` int(3) DEFAULT NULL COMMENT '评价星数:0->5',
`member_ip` varchar(64) DEFAULT NULL COMMENT '评价的ip',
`create_time` datetime DEFAULT NULL,
`show_status` int(1) DEFAULT NULL,
`product_attribute` varchar(255) DEFAULT NULL COMMENT '购买时的商品属性',
`collect_couont` int(11) DEFAULT NULL,
`read_count` int(11) DEFAULT NULL,
`content` text,
`pics` varchar(1000) DEFAULT NULL COMMENT '上传图片地址,以逗号隔开',
`member_icon` varchar(255) DEFAULT NULL COMMENT '评论用户头像',
`replay_count` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='商品评价表';
-- ----------------------------
-- Table structure for `pms_comment_replay`
-- ----------------------------
DROP TABLE IF EXISTS `pms_comment_replay`;
CREATE TABLE `pms_comment_replay` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`comment_id` bigint(20) DEFAULT NULL,
`member_nick_name` varchar(255) DEFAULT NULL,
`member_icon` varchar(255) DEFAULT NULL,
`content` varchar(1000) DEFAULT NULL,
`create_time` datetime DEFAULT NULL,
`type` int(1) DEFAULT NULL COMMENT '评论人员类型;0->会员;1->管理员',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='产品评价回复表';
-- ----------------------------
-- Table structure for `pms_feight_template`
-- ----------------------------
DROP TABLE IF EXISTS `pms_feight_template`;
CREATE TABLE `pms_feight_template` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`name` varchar(64) DEFAULT NULL,
`charge_type` int(1) DEFAULT NULL COMMENT '计费类型:0->按重量;1->按件数',
`first_weight` decimal(10,2) DEFAULT NULL COMMENT '首重kg',
`first_fee` decimal(10,2) DEFAULT NULL COMMENT '首费(元)',
`continue_weight` decimal(10,2) DEFAULT NULL,
`continme_fee` decimal(10,2) DEFAULT NULL,
`dest` varchar(255) DEFAULT NULL COMMENT '目的地(省、市)',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='运费模版';
-- ----------------------------
-- Table structure for `pms_member_price`
-- ----------------------------
DROP TABLE IF EXISTS `pms_member_price`;
CREATE TABLE `pms_member_price` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`product_id` bigint(20) DEFAULT NULL,
`member_level_id` bigint(20) DEFAULT NULL,
`member_price` decimal(10,2) DEFAULT NULL COMMENT '会员价格',
`member_level_name` varchar(100) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=231 DEFAULT CHARSET=utf8 COMMENT='商品会员价格表';
-- ----------------------------
-- Records of `pms_member_price`
-- ----------------------------
BEGIN;
INSERT INTO `pms_member_price` VALUES ('26', '7', '1', '500.00', null), ('27', '8', '1', '500.00', null), ('28', '9', '1', '500.00', null), ('29', '10', '1', '500.00', null), ('30', '11', '1', '500.00', null), ('31', '12', '1', '500.00', null), ('32', '13', '1', '500.00', null), ('33', '14', '1', '500.00', null), ('37', '18', '1', '500.00', null), ('44', '7', '2', '480.00', null), ('45', '7', '3', '450.00', null), ('52', '22', '1', null, null), ('53', '22', '2', null, null), ('54', '22', '3', null, null), ('58', '24', '1', null, null), ('59', '24', '2', null, null), ('60', '24', '3', null, null), ('112', '23', '1', '88.00', '黄金会员'), ('113', '23', '2', '88.00', '白金会员'), ('114', '23', '3', '66.00', '钻石会员'), ('142', '31', '1', null, '黄金会员'), ('143', '31', '2', null, '白金会员'), ('144', '31', '3', null, '钻石会员'), ('148', '32', '1', null, '黄金会员'), ('149', '32', '2', null, '白金会员'), ('150', '32', '3', null, '钻石会员'), ('154', '33', '1', null, '黄金会员'), ('155', '33', '2', null, '白金会员'), ('156', '33', '3', null, '钻石会员'), ('169', '36', '1', null, '黄金会员'), ('170', '36', '2', null, '白金会员'), ('171', '36', '3', null, '钻石会员'), ('172', '35', '1', null, '黄金会员'), ('173', '35', '2', null, '白金会员'), ('174', '35', '3', null, '钻石会员'), ('175', '34', '1', null, '黄金会员'), ('176', '34', '2', null, '白金会员'), ('177', '34', '3', null, '钻石会员'), ('178', '30', '1', null, '黄金会员'), ('179', '30', '2', null, '白金会员'), ('180', '30', '3', null, '钻石会员'), ('192', '27', '1', null, '黄金会员'), ('193', '27', '2', null, '白金会员'), ('194', '27', '3', null, '钻石会员'), ('195', '28', '1', null, '黄金会员'), ('196', '28', '2', null, '白金会员'), ('197', '28', '3', null, '钻石会员'), ('198', '29', '1', null, '黄金会员'), ('199', '29', '2', null, '白金会员'), ('200', '29', '3', null, '钻石会员'), ('219', '37', '1', null, '黄金会员'), ('220', '37', '2', null, '白金会员'), ('221', '37', '3', null, '钻石会员'), ('228', '26', '1', null, '黄金会员'), ('229', '26', '2', null, '白金会员'), ('230', '26', '3', null, '钻石会员');
COMMIT;
-- ----------------------------
-- Table structure for `pms_product`
-- ----------------------------
DROP TABLE IF EXISTS `pms_product`;
CREATE TABLE `pms_product` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`brand_id` bigint(20) DEFAULT NULL,
`product_category_id` bigint(20) DEFAULT NULL,
`feight_template_id` bigint(20) DEFAULT NULL,
`product_attribute_category_id` bigint(20) DEFAULT NULL,
`name` varchar(64) NOT NULL,
`pic` varchar(255) DEFAULT NULL,
`product_sn` varchar(64) NOT NULL COMMENT '货号',
`delete_status` int(1) DEFAULT NULL COMMENT '删除状态:0->未删除;1->已删除',
`publish_status` int(1) DEFAULT NULL COMMENT '上架状态:0->下架;1->上架',
`new_status` int(1) DEFAULT NULL COMMENT '新品状态:0->不是新品;1->新品',
`recommand_status` int(1) DEFAULT NULL COMMENT '推荐状态;0->不推荐;1->推荐',
`verify_status` int(1) DEFAULT NULL COMMENT '审核状态:0->未审核;1->审核通过',
`sort` int(11) DEFAULT NULL COMMENT '排序',
`sale` int(11) DEFAULT NULL COMMENT '销量',
`price` decimal(10,2) DEFAULT NULL,
`promotion_price` decimal(10,2) DEFAULT NULL COMMENT '促销价格',
`gift_growth` int(11) DEFAULT '0' COMMENT '赠送的成长值',
`gift_point` int(11) DEFAULT '0' COMMENT '赠送的积分',
`use_point_limit` int(11) DEFAULT NULL COMMENT '限制使用的积分数',
`sub_title` varchar(255) DEFAULT NULL COMMENT '副标题',
`description` text COMMENT '商品描述',
`original_price` decimal(10,2) DEFAULT NULL COMMENT '市场价',
`stock` int(11) DEFAULT NULL COMMENT '库存',
`low_stock` int(11) DEFAULT NULL COMMENT '库存预警值',
`unit` varchar(16) DEFAULT NULL COMMENT '单位',
`weight` decimal(10,2) DEFAULT NULL COMMENT '商品重量,默认为克',
`preview_status` int(1) DEFAULT NULL COMMENT '是否为预告商品:0->不是;1->是',
`service_ids` varchar(64) DEFAULT NULL COMMENT '以逗号分割的产品服务:1->无忧退货;2->快速退款;3->免费包邮',
`keywords` varchar(255) DEFAULT NULL,
`note` varchar(255) DEFAULT NULL,
`album_pics` varchar(255) DEFAULT NULL COMMENT '画册图片,连产品图片限制为5张,以逗号分割',
`detail_title` varchar(255) DEFAULT NULL,
`detail_desc` text,
`detail_html` text COMMENT '产品详情网页内容',
`detail_mobile_html` text COMMENT '移动端网页详情',
`promotion_start_time` datetime DEFAULT NULL COMMENT '促销开始时间',
`promotion_end_time` datetime DEFAULT NULL COMMENT '促销结束时间',
`promotion_per_limit` int(11) DEFAULT NULL COMMENT '活动限购数量',
`promotion_type` int(1) DEFAULT NULL COMMENT '促销类型:0->没有促销使用原价;1->使用促销价;2->使用会员价;3->使用阶梯价格;4->使用满减价格;5->限时购',
`brand_name` varchar(255) DEFAULT NULL COMMENT '品牌名称',
`product_category_name` varchar(255) DEFAULT NULL COMMENT '商品分类名称',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=41 DEFAULT CHARSET=utf8 COMMENT='商品信息';
-- ----------------------------
-- Records of `pms_product`
-- ----------------------------
BEGIN;
INSERT INTO `pms_product` VALUES ('1', '49', '7', '0', '0', '银色星芒刺绣网纱底裤', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180522/web.png', 'No86577', '1', '1', '1', '1', '1', '100', '0', '100.00', null, '0', '100', null, '111', '111', '120.00', '100', '20', '件', '1000.00', '0', null, '银色星芒刺绣网纱底裤', '银色星芒刺绣网纱底裤', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180522/web.png', '银色星芒刺绣网纱底裤', '银色星芒刺绣网纱底裤', '银色星芒刺绣网纱底裤', '银色星芒刺绣网纱底裤', null, null, null, '0', '七匹狼', '外套'), ('2', '49', '7', '0', '0', '银色星芒刺绣网纱底裤2', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180522/web.png', 'No86578', '1', '1', '1', '1', '1', '1', '0', '100.00', null, '0', '100', null, '111', '111', '120.00', '100', '20', '件', '1000.00', '0', null, '银色星芒刺绣网纱底裤2', '银色星芒刺绣网纱底裤', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180522/web.png', '银色星芒刺绣网纱底裤', '银色星芒刺绣网纱底裤', '<p>银色星芒刺绣网纱底裤</p>', '<p>银色星芒刺绣网纱底裤</p>', null, null, null, '0', '七匹狼', '外套'), ('3', '1', '7', '0', '0', '银色星芒刺绣网纱底裤3', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180522/web.png', 'No86579', '1', '1', '1', '1', '1', '1', '0', '100.00', null, '0', '100', null, '111', '111', '120.00', '100', '20', '件', '1000.00', '0', null, '银色星芒刺绣网纱底裤3', '银色星芒刺绣网纱底裤', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180522/web.png', '银色星芒刺绣网纱底裤', '银色星芒刺绣网纱底裤', '银色星芒刺绣网纱底裤', '银色星芒刺绣网纱底裤', null, null, null, '0', '万和', '外套'), ('4', '1', '7', '0', '0', '银色星芒刺绣网纱底裤4', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180522/web.png', 'No86580', '1', '1', '1', '1', '1', '1', '0', '100.00', null, '0', '100', null, '111', '111', '120.00', '100', '20', '件', '1000.00', '0', null, '银色星芒刺绣网纱底裤4', '银色星芒刺绣网纱底裤', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180522/web.png', '银色星芒刺绣网纱底裤', '银色星芒刺绣网纱底裤', '银色星芒刺绣网纱底裤', '银色星芒刺绣网纱底裤', null, null, null, '0', '万和', '外套'), ('5', '1', '7', '0', '0', '银色星芒刺绣网纱底裤5', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180522/web.png', 'No86581', '1', '0', '1', '1', '1', '1', '0', '100.00', null, '0', '100', null, '111', '111', '120.00', '100', '20', '件', '1000.00', '0', null, '银色星芒刺绣网纱底裤5', '银色星芒刺绣网纱底裤', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180522/web.png', '银色星芒刺绣网纱底裤', '银色星芒刺绣网纱底裤', '银色星芒刺绣网纱底裤', '银色星芒刺绣网纱底裤', null, null, null, '0', '万和', '外套'), ('6', '1', '7', '0', '0', '银色星芒刺绣网纱底裤6', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180522/web.png', 'No86582', '1', '1', '1', '1', '1', '1', '0', '100.00', null, '0', '100', null, '111', '111', '120.00', '100', '20', '件', '1000.00', '0', null, '银色星芒刺绣网纱底裤6', '银色星芒刺绣网纱底裤', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180522/web.png', '银色星芒刺绣网纱底裤', '银色星芒刺绣网纱底裤', '银色星芒刺绣网纱底裤', '银色星芒刺绣网纱底裤', null, null, null, '0', '万和', '外套'), ('7', '1', '7', '0', '1', '女式超柔软拉毛运动开衫', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180522/web.png', 'No86577', '0', '0', '0', '0', '0', '0', '0', '249.00', '0.00', '0', '100', '0', '匠心剪裁,垂感质地', '匠心剪裁,垂感质地', '299.00', '100', '0', '件', '0.00', '0', 'string', '女式超柔软拉毛运动开衫', 'string', 'string', 'string', 'string', 'string', 'string', '2018-04-26 10:41:03', '2018-04-26 10:41:03', '0', '0', '万和', '外套'), ('8', '1', '7', '0', '1', '女式超柔软拉毛运动开衫1', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180522/web.png', 'No86577', '1', '0', '0', '0', '0', '0', '0', '249.00', '0.00', '0', '100', '0', '匠心剪裁,垂感质地', '匠心剪裁,垂感质地', '299.00', '100', '0', '件', '0.00', '0', 'string', '女式超柔软拉毛运动开衫', 'string', 'string', 'string', 'string', 'string', 'string', '2018-04-26 10:41:03', '2018-04-26 10:41:03', '0', '0', '万和', '外套'), ('9', '1', '7', '0', '1', '女式超柔软拉毛运动开衫1', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180522/web.png', 'No86577', '0', '0', '0', '0', '0', '0', '0', '249.00', '0.00', '0', '100', '0', '匠心剪裁,垂感质地', '匠心剪裁,垂感质地', '299.00', '100', '0', '件', '0.00', '0', 'string', '女式超柔软拉毛运动开衫', 'string', 'string', 'string', 'string', 'string', 'string', '2018-04-26 10:41:03', '2018-04-26 10:41:03', '0', '0', '万和', '外套'), ('10', '1', '7', '0', '1', '女式超柔软拉毛运动开衫1', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180522/web.png', 'No86577', '1', '0', '0', '0', '0', '0', '0', '249.00', '0.00', '0', '100', '0', '匠心剪裁,垂感质地', '匠心剪裁,垂感质地', '299.00', '100', '0', '件', '0.00', '0', 'string', '女式超柔软拉毛运动开衫', 'string', 'string', 'string', 'string', 'string', 'string', '2018-04-26 10:41:03', '2018-04-26 10:41:03', '0', '0', '万和', '外套'), ('11', '1', '7', '0', '1', '女式超柔软拉毛运动开衫1', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180522/web.png', 'No86577', '1', '1', '0', '1', '0', '0', '0', '249.00', '0.00', '0', '100', '0', '匠心剪裁,垂感质地', '匠心剪裁,垂感质地', '299.00', '100', '0', '件', '0.00', '0', 'string', '女式超柔软拉毛运动开衫', 'string', 'string', 'string', 'string', 'string', 'string', '2018-04-26 10:41:03', '2018-04-26 10:41:03', '0', '0', '万和', '外套'), ('12', '1', '7', '0', '1', '女式超柔软拉毛运动开衫2', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180522/web.png', 'No86577', '0', '1', '0', '1', '0', '0', '0', '249.00', '0.00', '0', '100', '0', '匠心剪裁,垂感质地', '匠心剪裁,垂感质地', '299.00', '100', '0', '件', '0.00', '0', 'string', '女式超柔软拉毛运动开衫', 'string', 'string', 'string', 'string', 'string', 'string', '2018-04-26 10:41:03', '2018-04-26 10:41:03', '0', '0', '万和', '外套'), ('13', '1', '7', '0', '1', '女式超柔软拉毛运动开衫3', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180522/web.png', 'No86577', '1', '1', '0', '1', '0', '0', '0', '249.00', '0.00', '0', '100', '0', '匠心剪裁,垂感质地', '匠心剪裁,垂感质地', '299.00', '100', '0', '件', '0.00', '0', 'string', '女式超柔软拉毛运动开衫', 'string', 'string', 'string', 'string', 'string', 'string', '2018-04-26 10:41:03', '2018-04-26 10:41:03', '0', '0', '万和', '外套'), ('14', '1', '7', '0', '1', '女式超柔软拉毛运动开衫3', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180522/web.png', 'No86577', '0', '0', '0', '1', '0', '0', '0', '249.00', '0.00', '0', '100', '0', '匠心剪裁,垂感质地', '匠心剪裁,垂感质地', '299.00', '100', '0', '件', '0.00', '0', 'string', '女式超柔软拉毛运动开衫', 'string', 'string', 'string', 'string', 'string', 'string', '2018-04-26 10:41:03', '2018-04-26 10:41:03', '0', '0', '万和', '外套'), ('18', '1', '7', '0', '1', '女式超柔软拉毛运动开衫3', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180522/web.png', 'No86577', '1', '0', '0', '1', '0', '0', '0', '249.00', '0.00', '0', '100', '0', '匠心剪裁,垂感质地', '匠心剪裁,垂感质地', '299.00', '100', '0', '件', '0.00', '0', 'string', '女式超柔软拉毛运动开衫', 'string', 'string', 'string', 'string', 'string', 'string', '2018-04-26 10:41:03', '2018-04-26 10:41:03', '0', '0', '万和', '外套'), ('22', '6', '7', '0', '1', 'test', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180604/1522738681.jpg', '', '1', '1', '0', '0', '0', '0', '0', '0.00', null, '0', '0', '0', 'test', '', '0.00', '100', '0', '', '0.00', '1', '1,2', '', '', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180604/1522738681.jpg', '', '', '', '', null, null, '0', '0', '小米', '外套'), ('23', '6', '19', '0', '1', '毛衫测试', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180604/1522738681.jpg', 'NO.1098', '0', '1', '1', '1', '0', '0', '0', '99.00', null, '99', '99', '1000', '毛衫测试11', 'xxx', '109.00', '100', '0', '件', '1000.00', '1', '1,2,3', '毛衫测试', '毛衫测试', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180604/1522738681.jpg,http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180604/1522738681.jpg', '毛衫测试', '毛衫测试', '<p><img class=\"wscnph\" src=\"http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180604/155x54.bmp\" /><img class=\"wscnph\" src=\"http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180604/APP登录bg1080.jpg\" width=\"500\" height=\"500\" /><img class=\"wscnph\" src=\"http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180604/APP登录界面.jpg\" width=\"500\" height=\"500\" /></p>', '', null, null, '0', '2', '小米', '手机通讯'), ('24', '6', '7', '0', null, 'xxx', '', '', '1', '0', '0', '0', '0', '0', '0', '0.00', null, '0', '0', '0', 'xxx', '', '0.00', '100', '0', '', '0.00', '0', '', '', '', '', '', '', '', '', null, null, '0', '0', '小米', '外套'), ('26', '3', '19', '0', '3', '华为 HUAWEI P20 ', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/5ac1bf58Ndefaac16.jpg', '6946605', '0', '1', '1', '1', '0', '100', '0', '3788.00', null, '3788', '3788', '0', 'AI智慧全面屏 6GB +64GB 亮黑色 全网通版 移动联通电信4G手机 双卡双待手机 双卡双待', '', '4288.00', '1000', '0', '件', '0.00', '1', '2,3,1', '', '', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/5ab46a3cN616bdc41.jpg,http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/5ac1bf5fN2522b9dc.jpg', '', '', '<p><img class=\"wscnph\" src=\"http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/5ad44f1cNf51f3bb0.jpg\" /><img class=\"wscnph\" src=\"http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/5ad44fa8Nfcf71c10.jpg\" /><img class=\"wscnph\" src=\"http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/5ad44fa9N40e78ee0.jpg\" /><img class=\"wscnph\" src=\"http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/5ad457f4N1c94bdda.jpg\" /><img class=\"wscnph\" src=\"http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/5ad457f5Nd30de41d.jpg\" /><img class=\"wscnph\" src=\"http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/5b10fb0eN0eb053fb.jpg\" /></p>', '', null, null, '0', '1', '华为', '手机通讯'), ('27', '6', '19', '0', '3', '小米8 全面屏游戏智能手机 6GB+64GB 黑色 全网通4G 双卡双待', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/xiaomi.jpg', '7437788', '0', '1', '1', '1', '0', '0', '0', '2699.00', null, '2699', '2699', '0', '骁龙845处理器,红外人脸解锁,AI变焦双摄,AI语音助手小米6X低至1299,点击抢购', '小米8 全面屏游戏智能手机 6GB+64GB 黑色 全网通4G 双卡双待', '2699.00', '100', '0', '', '0.00', '0', '', '', '', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/xiaomi.jpg', '', '', '<p><img class=\"wscnph\" src=\"http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5b2254e8N414e6d3a.jpg\" width=\"500\" /></p>', '', null, null, '0', '3', '小米', '手机通讯'), ('28', '6', '19', '0', '3', '小米 红米5A 全网通版 3GB+32GB 香槟金 移动联通电信4G手机 双卡双待', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5a9d248cN071f4959.jpg', '7437789', '0', '1', '1', '1', '0', '0', '0', '649.00', null, '649', '649', '0', '8天超长待机,137g轻巧机身,高通骁龙处理器小米6X低至1299,点击抢购', '', '649.00', '100', '0', '', '0.00', '0', '', '', '', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5a9d248cN071f4959.jpg', '', '', '', '', null, null, '0', '4', '小米', '手机通讯'), ('29', '51', '19', '0', '3', 'Apple iPhone 8 Plus 64GB 红色特别版 移动联通电信4G手机', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5acc5248N6a5f81cd.jpg', '7437799', '0', '1', '1', '0', '0', '0', '0', '5499.00', null, '5499', '5499', '0', '【限时限量抢购】Apple产品年中狂欢节,好物尽享,美在智慧!速来 >> 勾选[保障服务][原厂保2年],获得AppleCare+全方位服务计划,原厂延保售后无忧。', '', '5499.00', '100', '0', '', '0.00', '0', '', '', '', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5acc5248N6a5f81cd.jpg', '', '', '', '', null, null, '0', '0', '苹果', '手机通讯'), ('30', '50', '8', '0', '1', 'HLA海澜之家简约动物印花短袖T恤', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5ad83a4fN6ff67ecd.jpg!cc_350x449.jpg', 'HNTBJ2E042A', '0', '1', '1', '1', '0', '0', '0', '98.00', null, '0', '0', '0', '2018夏季新品微弹舒适新款短T男生 6月6日-6月20日,满300减30,参与互动赢百元礼券,立即分享赢大奖', '', '98.00', '100', '0', '', '0.00', '0', '', '', '', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5ad83a4fN6ff67ecd.jpg!cc_350x449.jpg', '', '', '', '', null, null, '0', '0', '海澜之家', 'T恤'), ('31', '50', '8', '0', '1', 'HLA海澜之家蓝灰花纹圆领针织布短袖T恤', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5ac98b64N70acd82f.jpg!cc_350x449.jpg', 'HNTBJ2E080A', '0', '1', '0', '0', '0', '0', '0', '98.00', null, '0', '0', '0', '2018夏季新品短袖T恤男HNTBJ2E080A 蓝灰花纹80 175/92A/L80A 蓝灰花纹80 175/92A/L', '', '98.00', '100', '0', '', '0.00', '0', '', '', '', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5ac98b64N70acd82f.jpg!cc_350x449.jpg', '', '', '', '', null, null, '0', '0', '海澜之家', 'T恤'), ('32', '50', '8', '0', null, 'HLA海澜之家短袖T恤男基础款', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5a51eb88Na4797877.jpg', 'HNTBJ2E153A', '0', '1', '0', '0', '0', '0', '0', '68.00', null, '0', '0', '0', 'HLA海澜之家短袖T恤男基础款简约圆领HNTBJ2E153A藏青(F3)175/92A(50)', '', '68.00', '100', '0', '', '0.00', '0', '', '', '', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5a51eb88Na4797877.jpg', '', '', '', '', null, null, '0', '0', '海澜之家', 'T恤'), ('33', '6', '35', '0', null, '小米(MI)小米电视4A ', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5b02804dN66004d73.jpg', '4609652', '0', '1', '0', '0', '0', '0', '0', '2499.00', null, '0', '0', '0', '小米(MI)小米电视4A 55英寸 L55M5-AZ/L55M5-AD 2GB+8GB HDR 4K超高清 人工智能网络液晶平板电视', '', '2499.00', '100', '0', '', '0.00', '0', '', '', '', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5b02804dN66004d73.jpg', '', '', '', '', null, null, '0', '0', '小米', '手机数码'), ('34', '6', '35', '0', null, '小米(MI)小米电视4A 65英寸', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5b028530N51eee7d4.jpg', '4609660', '0', '1', '0', '0', '0', '0', '0', '3999.00', null, '0', '0', '0', ' L65M5-AZ/L65M5-AD 2GB+8GB HDR 4K超高清 人工智能网络液晶平板电视', '', '3999.00', '100', '0', '', '0.00', '0', '', '', '', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5b028530N51eee7d4.jpg', '', '', '', '', null, null, '0', '0', '小米', '手机数码'), ('35', '58', '29', '0', null, '耐克NIKE 男子 休闲鞋 ROSHE RUN 运动鞋 511881-010黑色41码', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5b235bb9Nf606460b.jpg', '6799342', '0', '1', '0', '0', '0', '0', '0', '369.00', null, '0', '0', '0', '耐克NIKE 男子 休闲鞋 ROSHE RUN 运动鞋 511881-010黑色41码', '', '369.00', '100', '0', '', '0.00', '0', '', '', '', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5b235bb9Nf606460b.jpg', '', '', '', '', null, null, '0', '0', 'NIKE', '男鞋'), ('36', '58', '29', '0', null, '耐克NIKE 男子 气垫 休闲鞋 AIR MAX 90 ESSENTIAL 运动鞋 AJ1285-101白色41码', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5b19403eN9f0b3cb8.jpg', '6799345', '0', '1', '1', '1', '0', '0', '0', '499.00', null, '0', '0', '0', '耐克NIKE 男子 气垫 休闲鞋 AIR MAX 90 ESSENTIAL 运动鞋 AJ1285-101白色41码', '', '499.00', '100', '0', '', '0.00', '0', '', '', '', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5b19403eN9f0b3cb8.jpg', '', '', '', '', null, null, '0', '0', 'NIKE', '男鞋'), ('37', '5', '7', '0', '1', '测试衣服', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5b235bb9Nf606460b.jpg', '1234', '0', '1', '1', '1', '0', '1', '0', '11.00', '44.00', '2', '2', '22', '测试衣服', '测试衣服', '12.00', '222', '0', '剑', '12.00', '0', '3', '缺钱', '缺钱', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5b235bb9Nf606460b.jpg', '测试商品详细', '缺钱', '<p>11111</p>', '', '2019-02-15 00:00:00', '2019-02-28 00:00:00', '0', '1', '方太', '外套'), ('38', '3', '19', '0', '3', '华为notneed0 ', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/5ac1bf58Ndefaac16.jpg', '6946605', '0', '1', '1', '1', '0', '100', '0', '3788.00', null, '3788', '3788', '0', 'AI智慧全面屏 6GB +64GB 亮黑色 全网通版 移动联通电信4G手机 双卡双待手机 双卡双待', '', '4288.00', '1000', '0', '件', '0.00', '1', '2,3,1', '', '', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/5ab46a3cN616bdc41.jpg,http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/5ac1bf5fN2522b9dc.jpg', '', '', '<p><img class=\"wscnph\" src=\"http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/5ad44f1cNf51f3bb0.jpg\" /><img class=\"wscnph\" src=\"http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/5ad44fa8Nfcf71c10.jpg\" /><img class=\"wscnph\" src=\"http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/5ad44fa9N40e78ee0.jpg\" /><img class=\"wscnph\" src=\"http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/5ad457f4N1c94bdda.jpg\" /><img class=\"wscnph\" src=\"http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/5ad457f5Nd30de41d.jpg\" /><img class=\"wscnph\" src=\"http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/5b10fb0eN0eb053fb.jpg\" /></p>', '', null, null, '0', '1', '华为', '手机通讯'), ('39', '6', '19', '0', '3', '小米8 全面notneed0 ', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/xiaomi.jpg', '7437788', '0', '1', '1', '1', '0', '0', '0', '2699.00', null, '2699', '2699', '0', '骁龙845处理器,红外人脸解锁,AI变焦双摄,AI语音助手小米6X低至1299,点击抢购', '小米8notneed', '2699.00', '100', '0', '', '0.00', '0', '', '', '', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/xiaomi.jpg', '', '', '<p><img class=\"wscnph\" src=\"http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5b2254e8N414e6d3a.jpg\" width=\"500\" /></p>', '', null, null, '0', '3', '小米', '手机通讯'), ('40', '6', '19', '0', '3', '小米 notneed', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5a9d248cN071f4959.jpg', '7437789', '0', '1', '1', '1', '0', '0', '0', '649.00', null, '649', '649', '0', '8天超长待机,137g轻巧机身,高通骁龙处理器小米6X低至1299,点击抢购', '', '649.00', '100', '0', '', '0.00', '0', '', '', '', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5a9d248cN071f4959.jpg', '', '', '', '', null, null, '0', '4', '小米', '手机通讯');
COMMIT;
-- ----------------------------
-- Table structure for `pms_product_attribute`
-- ----------------------------
DROP TABLE IF EXISTS `pms_product_attribute`;
CREATE TABLE `pms_product_attribute` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`product_attribute_category_id` bigint(20) DEFAULT NULL,
`name` varchar(64) DEFAULT NULL,
`select_type` int(1) DEFAULT NULL COMMENT '属性选择类型:0->唯一;1->单选;2->多选',
`input_type` int(1) DEFAULT NULL COMMENT '属性录入方式:0->手工录入;1->从列表中选取',
`input_list` varchar(255) DEFAULT NULL COMMENT '可选值列表,以逗号隔开',
`sort` int(11) DEFAULT NULL COMMENT '排序字段:最高的可以单独上传图片',
`filter_type` int(1) DEFAULT NULL COMMENT '分类筛选样式:1->普通;1->颜色',
`search_type` int(1) DEFAULT NULL COMMENT '检索类型;0->不需要进行检索;1->关键字检索;2->范围检索',
`related_status` int(1) DEFAULT NULL COMMENT '相同属性产品是否关联;0->不关联;1->关联',
`hand_add_status` int(1) DEFAULT NULL COMMENT '是否支持手动新增;0->不支持;1->支持',
`type` int(1) DEFAULT NULL COMMENT '属性的类型;0->规格;1->参数',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=49 DEFAULT CHARSET=utf8 COMMENT='商品属性参数表';
-- ----------------------------
-- Records of `pms_product_attribute`
-- ----------------------------
BEGIN;
INSERT INTO `pms_product_attribute` VALUES ('1', '1', '尺寸', '2', '1', 'M,X,XL,2XL,3XL,4XL', '0', '0', '0', '0', '0', '0'), ('7', '1', '颜色', '2', '1', '黑色,红色,白色,粉色', '100', '0', '0', '0', '1', '0'), ('13', '0', '上市年份', '1', '1', '2013年,2014年,2015年,2016年,2017年', '0', '0', '0', '0', '0', '1'), ('14', '0', '上市年份1', '1', '1', '2013年,2014年,2015年,2016年,2017年', '0', '0', '0', '0', '0', '1'), ('15', '0', '上市年份2', '1', '1', '2013年,2014年,2015年,2016年,2017年', '0', '0', '0', '0', '0', '1'), ('16', '0', '上市年份3', '1', '1', '2013年,2014年,2015年,2016年,2017年', '0', '0', '0', '0', '0', '1'), ('17', '0', '上市年份4', '1', '1', '2013年,2014年,2015年,2016年,2017年', '0', '0', '0', '0', '0', '1'), ('18', '0', '上市年份5', '1', '1', '2013年,2014年,2015年,2016年,2017年', '0', '0', '0', '0', '0', '1'), ('19', '0', '适用对象', '1', '1', '青年女性,中年女性', '0', '0', '0', '0', '0', '1'), ('20', '0', '适用对象1', '2', '1', '青年女性,中年女性', '0', '0', '0', '0', '0', '1'), ('21', '0', '适用对象3', '2', '1', '青年女性,中年女性', '0', '0', '0', '0', '0', '1'), ('24', '1', '商品编号', '1', '0', '', '0', '0', '0', '0', '0', '1'), ('25', '1', '适用季节', '1', '1', '春季,夏季,秋季,冬季', '0', '0', '0', '0', '0', '1'), ('32', '2', '适用人群', '0', '1', '老年,青年,中年', '0', '0', '0', '0', '0', '1'), ('33', '2', '风格', '0', '1', '嘻哈风格,基础大众,商务正装', '0', '0', '0', '0', '0', '1'), ('35', '2', '颜色', '0', '0', '', '100', '0', '0', '0', '1', '0'), ('37', '1', '适用人群', '1', '1', '儿童,青年,中年,老年', '0', '0', '0', '0', '0', '1'), ('38', '1', '上市时间', '1', '1', '2017年秋,2017年冬,2018年春,2018年夏', '0', '0', '0', '0', '0', '1'), ('39', '1', '袖长', '1', '1', '短袖,长袖,中袖', '0', '0', '0', '0', '0', '1'), ('40', '2', '尺码', '0', '1', '29,30,31,32,33,34', '0', '0', '0', '0', '0', '0'), ('41', '2', '适用场景', '0', '1', '居家,运动,正装', '0', '0', '0', '0', '0', '1'), ('42', '2', '上市时间', '0', '1', '2018年春,2018年夏', '0', '0', '0', '0', '0', '1'), ('43', '3', '颜色', '0', '0', '', '100', '0', '0', '0', '1', '0'), ('44', '3', '容量', '0', '1', '16G,32G,64G,128G', '0', '0', '0', '0', '0', '0'), ('45', '3', '屏幕尺寸', '0', '0', '', '0', '0', '0', '0', '0', '1'), ('46', '3', '网络', '0', '1', '3G,4G', '0', '0', '0', '0', '0', '1'), ('47', '3', '系统', '0', '1', 'Android,IOS', '0', '0', '0', '0', '0', '1'), ('48', '3', '电池容量', '0', '0', '', '0', '0', '0', '0', '0', '1');
COMMIT;
-- ----------------------------
-- Table structure for `pms_product_attribute_category`
-- ----------------------------
DROP TABLE IF EXISTS `pms_product_attribute_category`;
CREATE TABLE `pms_product_attribute_category` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`name` varchar(64) DEFAULT NULL,
`attribute_count` int(11) DEFAULT '0' COMMENT '属性数量',
`param_count` int(11) DEFAULT '0' COMMENT '参数数量',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8 COMMENT='产品属性分类表';
-- ----------------------------
-- Records of `pms_product_attribute_category`
-- ----------------------------
BEGIN;
INSERT INTO `pms_product_attribute_category` VALUES ('1', '服装-T恤', '2', '5'), ('2', '服装-裤装', '2', '4'), ('3', '手机数码-手机通讯', '2', '4'), ('4', '配件', '0', '0'), ('5', '居家', '0', '0'), ('6', '洗护', '0', '0'), ('10', '测试分类', '0', '0');
COMMIT;
-- ----------------------------
-- Table structure for `pms_product_attribute_value`
-- ----------------------------
DROP TABLE IF EXISTS `pms_product_attribute_value`;
CREATE TABLE `pms_product_attribute_value` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`product_id` bigint(20) DEFAULT NULL,
`product_attribute_id` bigint(20) DEFAULT NULL,
`value` varchar(64) DEFAULT NULL COMMENT '手动添加规格或参数的值,参数单值,规格有多个时以逗号隔开',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=282 DEFAULT CHARSET=utf8 COMMENT='存储产品参数信息的表';
-- ----------------------------
-- Records of `pms_product_attribute_value`
-- ----------------------------
BEGIN;
INSERT INTO `pms_product_attribute_value` VALUES ('1', '9', '1', 'X'), ('2', '10', '1', 'X'), ('3', '11', '1', 'X'), ('4', '12', '1', 'X'), ('5', '13', '1', 'X'), ('6', '14', '1', 'X'), ('7', '18', '1', 'X'), ('8', '7', '1', 'X'), ('9', '7', '1', 'XL'), ('10', '7', '1', 'XXL'), ('11', '22', '7', 'x,xx'), ('12', '22', '24', 'no110'), ('13', '22', '25', '春季'), ('14', '22', '37', '青年'), ('15', '22', '38', '2018年春'), ('16', '22', '39', '长袖'), ('124', '23', '7', '米白色,浅黄色'), ('125', '23', '24', 'no1098'), ('126', '23', '25', '春季'), ('127', '23', '37', '青年'), ('128', '23', '38', '2018年春'), ('129', '23', '39', '长袖'), ('130', '1', '13', null), ('131', '1', '14', null), ('132', '1', '15', null), ('133', '1', '16', null), ('134', '1', '17', null), ('135', '1', '18', null), ('136', '1', '19', null), ('137', '1', '20', null), ('138', '1', '21', null), ('139', '2', '13', null), ('140', '2', '14', null), ('141', '2', '15', null), ('142', '2', '16', null), ('143', '2', '17', null), ('144', '2', '18', null), ('145', '2', '19', null), ('146', '2', '20', null), ('147', '2', '21', null), ('183', '31', '24', null), ('184', '31', '25', '夏季'), ('185', '31', '37', '青年'), ('186', '31', '38', '2018年夏'), ('187', '31', '39', '短袖'), ('198', '30', '24', null), ('199', '30', '25', '夏季'), ('200', '30', '37', '青年'), ('201', '30', '38', '2018年夏'), ('202', '30', '39', '短袖'), ('213', '27', '43', '黑色,蓝色'), ('214', '27', '45', '5.8'), ('215', '27', '46', '4G'), ('216', '27', '47', 'Android'), ('217', '27', '48', '3000ml'), ('218', '28', '43', '金色,银色'), ('219', '28', '45', '5.0'), ('220', '28', '46', '4G'), ('221', '28', '47', 'Android'), ('222', '28', '48', '2800ml'), ('223', '29', '43', '金色,银色'), ('224', '29', '45', '4.7'), ('225', '29', '46', '4G'), ('226', '29', '47', 'IOS'), ('227', '29', '48', '1960ml'), ('261', '37', '7', '红色,蓝色'), ('262', '37', '24', '123'), ('263', '37', '25', '春季'), ('264', '37', '37', '儿童'), ('265', '37', '38', '2017年秋'), ('266', '37', '39', '短袖'), ('277', '26', '43', '金色,银色'), ('278', '26', '45', '5.0'), ('279', '26', '46', '4G'), ('280', '26', '47', 'Android'), ('281', '26', '48', '3000');
COMMIT;
-- ----------------------------
-- Table structure for `pms_product_category`
-- ----------------------------
DROP TABLE IF EXISTS `pms_product_category`;
CREATE TABLE `pms_product_category` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`parent_id` bigint(20) DEFAULT NULL COMMENT '上机分类的编号:0表示一级分类',
`name` varchar(64) DEFAULT NULL,
`level` int(1) DEFAULT NULL COMMENT '分类级别:0->1级;1->2级',
`product_count` int(11) DEFAULT NULL,
`product_unit` varchar(64) DEFAULT NULL,
`nav_status` int(1) DEFAULT NULL COMMENT '是否显示在导航栏:0->不显示;1->显示',
`show_status` int(1) DEFAULT NULL COMMENT '显示状态:0->不显示;1->显示',
`sort` int(11) DEFAULT NULL,
`icon` varchar(255) DEFAULT NULL COMMENT '图标',
`keywords` varchar(255) DEFAULT NULL,
`description` text COMMENT '描述',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=53 DEFAULT CHARSET=utf8 COMMENT='产品分类';
-- ----------------------------
-- Records of `pms_product_category`
-- ----------------------------
BEGIN;
INSERT INTO `pms_product_category` VALUES ('1', '0', '服装', '0', '100', '件', '1', '1', '1', null, '服装', '服装分类'), ('2', '0', '手机数码', '0', '100', '件', '1', '1', '1', null, '手机数码', '手机数码'), ('3', '0', '家用电器', '0', '100', '件', '1', '1', '1', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20190129/subject_cate_jiadian.png', '家用电器', '家用电器'), ('4', '0', '家具家装', '0', '100', '件', '1', '1', '1', null, '家具家装', '家具家装'), ('5', '0', '汽车用品', '0', '100', '件', '1', '1', '1', null, '汽车用品', '汽车用品'), ('7', '1', '外套', '1', '100', '件', '1', '1', '0', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20190129/product_cate_waitao.png', '外套', '外套'), ('8', '1', 'T恤', '1', '100', '件', '1', '1', '0', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20190129/product_cate_tshirt.png', 'T恤', 'T恤'), ('9', '1', '休闲裤', '1', '100', '件', '1', '1', '0', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20190129/product_cate_xiuxianku.png', '休闲裤', '休闲裤'), ('10', '1', '牛仔裤', '1', '100', '件', '1', '1', '0', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20190129/product_cate_niuzaiku.png', '牛仔裤', '牛仔裤'), ('11', '1', '衬衫', '1', '100', '件', '1', '1', '0', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20190129/product_cate_chenshan.png', '衬衫', '衬衫分类'), ('13', '12', '家电子分类1', '1', '1', 'string', '0', '1', '0', 'string', 'string', 'string'), ('14', '12', '家电子分类2', '1', '1', 'string', '0', '1', '0', 'string', 'string', 'string'), ('19', '2', '手机通讯', '1', '0', '件', '1', '1', '0', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20190129/product_cate_shouji.png', '手机通讯', '手机通讯'), ('29', '1', '男鞋', '1', '0', '', '0', '0', '0', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20190129/product_cate_xie.png', '', ''), ('30', '2', '手机配件', '1', '0', '', '1', '1', '0', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20190129/product_cate_peijian.png', '手机配件', '手机配件'), ('31', '2', '摄影摄像', '1', '0', '', '1', '1', '0', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20190129/product_cate_sheying.png', '', ''), ('32', '2', '影音娱乐', '1', '0', '', '1', '1', '0', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20190129/product_cate_yule.png', '', ''), ('33', '2', '数码配件', '1', '0', '', '1', '1', '0', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20190129/product_cate_yule.png', '', ''), ('34', '2', '智能设备', '1', '0', '', '1', '1', '0', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20190129/product_cate_zhineng.png', '', ''), ('35', '3', '电视', '1', '0', '', '1', '1', '0', '', '', ''), ('36', '3', '空调', '1', '0', '', '1', '1', '0', '', '', ''), ('37', '3', '洗衣机', '1', '0', '', '1', '1', '0', '', '', ''), ('38', '3', '冰箱', '1', '0', '', '1', '1', '0', '', '', ''), ('39', '3', '厨卫大电', '1', '0', '', '1', '1', '0', '', '', ''), ('40', '3', '厨房小电', '1', '0', '', '0', '0', '0', '', '', ''), ('41', '3', '生活电器', '1', '0', '', '0', '0', '0', '', '', ''), ('42', '3', '个护健康', '1', '0', '', '0', '0', '0', '', '', ''), ('43', '4', '厨房卫浴', '1', '0', '', '1', '1', '0', '', '', ''), ('44', '4', '灯饰照明', '1', '0', '', '1', '1', '0', '', '', ''), ('45', '4', '五金工具', '1', '0', '', '1', '1', '0', '', '', ''), ('46', '4', '卧室家具', '1', '0', '', '1', '1', '0', '', '', ''), ('47', '4', '客厅家具', '1', '0', '', '1', '1', '0', '', '', ''), ('48', '5', '全新整车', '1', '0', '', '1', '1', '0', '', '', ''), ('49', '5', '车载电器', '1', '0', '', '1', '1', '0', '', '', ''), ('50', '5', '维修保养', '1', '0', '', '1', '1', '0', '', '', ''), ('51', '5', '汽车装饰', '1', '0', '', '1', '1', '0', '', '', ''), ('52', '0', '测试分类', '0', '0', '11', '0', '1', '0', '', '', '');
COMMIT;
-- ----------------------------
-- Table structure for `pms_product_category_attribute_relation`
-- ----------------------------
DROP TABLE IF EXISTS `pms_product_category_attribute_relation`;
CREATE TABLE `pms_product_category_attribute_relation` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`product_category_id` bigint(20) DEFAULT NULL,
`product_attribute_id` bigint(20) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8 COMMENT='产品的分类和属性的关系表,用于设置分类筛选条件(只支持一级分类)';
-- ----------------------------
-- Records of `pms_product_category_attribute_relation`
-- ----------------------------
BEGIN;
INSERT INTO `pms_product_category_attribute_relation` VALUES ('1', '24', '24'), ('5', '26', '24'), ('7', '28', '24'), ('9', '25', '24'), ('10', '25', '25'), ('11', '52', '24');
COMMIT;
-- ----------------------------
-- Table structure for `pms_product_consult`
-- ----------------------------
DROP TABLE IF EXISTS `pms_product_consult`;
CREATE TABLE `pms_product_consult` (
`id` bigint(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '咨询编号',
`goods_id` bigint(11) unsigned DEFAULT '0' COMMENT '商品编号',
`goods_name` varchar(100) NOT NULL COMMENT '商品名称',
`member_id` bigint(11) NOT NULL DEFAULT '0' COMMENT '咨询发布者会员编号(0:游客)',
`member_name` varchar(100) DEFAULT NULL COMMENT '会员名称',
`store_id` bigint(11) unsigned DEFAULT '0' COMMENT '店铺编号',
`email` varchar(255) DEFAULT NULL COMMENT '咨询发布者邮箱',
`consult_content` varchar(255) DEFAULT NULL COMMENT '咨询内容',
`consult_addtime` datetime DEFAULT NULL COMMENT '咨询添加时间',
`consult_reply` varchar(255) DEFAULT NULL COMMENT '咨询回复内容',
`consult_reply_time` datetime DEFAULT NULL COMMENT '咨询回复时间',
`isanonymous` tinyint(1) DEFAULT '0' COMMENT '0表示不匿名 1表示匿名',
`is_del` tinyint(1) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `goods_id` (`goods_id`) USING BTREE,
KEY `seller_id` (`store_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8 COMMENT='产品咨询表';
-- ----------------------------
-- Records of `pms_product_consult`
-- ----------------------------
BEGIN;
INSERT INTO `pms_product_consult` VALUES ('1', '26', '11', '1', '11', '1', null, '1111', '2019-02-23 13:00:10', '2222', '2019-02-23 13:00:14', '0', '0'), ('2', '26', '22', '2', '22', '2', null, '22', '2019-02-23 13:00:33', '333', '2019-02-23 13:00:38', '0', '0');
COMMIT;
-- ----------------------------
-- Table structure for `pms_product_full_reduction`
-- ----------------------------
DROP TABLE IF EXISTS `pms_product_full_reduction`;
CREATE TABLE `pms_product_full_reduction` (
`id` bigint(11) NOT NULL AUTO_INCREMENT,
`product_id` bigint(20) DEFAULT NULL,
`full_price` decimal(10,2) DEFAULT NULL,
`reduce_price` decimal(10,2) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=73 DEFAULT CHARSET=utf8 COMMENT='产品满减表(只针对同商品)';
-- ----------------------------
-- Records of `pms_product_full_reduction`
-- ----------------------------
BEGIN;
INSERT INTO `pms_product_full_reduction` VALUES ('1', '7', '100.00', '20.00'), ('2', '8', '100.00', '20.00'), ('3', '9', '100.00', '20.00'), ('4', '10', '100.00', '20.00'), ('5', '11', '100.00', '20.00'), ('6', '12', '100.00', '20.00'), ('7', '13', '100.00', '20.00'), ('8', '14', '100.00', '20.00'), ('9', '18', '100.00', '20.00'), ('10', '7', '200.00', '50.00'), ('11', '7', '300.00', '100.00'), ('14', '22', '0.00', '0.00'), ('16', '24', '0.00', '0.00'), ('34', '23', '0.00', '0.00'), ('44', '31', '0.00', '0.00'), ('46', '32', '0.00', '0.00'), ('48', '33', '0.00', '0.00'), ('53', '36', '0.00', '0.00'), ('54', '35', '0.00', '0.00'), ('55', '34', '0.00', '0.00'), ('56', '30', '0.00', '0.00'), ('59', '27', '0.00', '0.00'), ('60', '28', '500.00', '50.00'), ('61', '28', '1000.00', '120.00'), ('62', '29', '0.00', '0.00'), ('69', '37', '0.00', '0.00'), ('72', '26', '0.00', '0.00');
COMMIT;
-- ----------------------------
-- Table structure for `pms_product_ladder`
-- ----------------------------
DROP TABLE IF EXISTS `pms_product_ladder`;
CREATE TABLE `pms_product_ladder` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`product_id` bigint(20) DEFAULT NULL,
`count` int(11) DEFAULT NULL COMMENT '满足的商品数量',
`discount` decimal(10,2) DEFAULT NULL COMMENT '折扣',
`price` decimal(10,2) DEFAULT NULL COMMENT '折后价格',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=78 DEFAULT CHARSET=utf8 COMMENT='产品阶梯价格表(只针对同商品)';
-- ----------------------------
-- Records of `pms_product_ladder`
-- ----------------------------
BEGIN;
INSERT INTO `pms_product_ladder` VALUES ('1', '7', '3', '0.70', '0.00'), ('2', '8', '3', '0.70', '0.00'), ('3', '9', '3', '0.70', '0.00'), ('4', '10', '3', '0.70', '0.00'), ('5', '11', '3', '0.70', '0.00'), ('6', '12', '3', '0.70', '0.00'), ('7', '13', '3', '0.70', '0.00'), ('8', '14', '3', '0.70', '0.00'), ('12', '18', '3', '0.70', '0.00'), ('14', '7', '4', '0.60', '0.00'), ('15', '7', '5', '0.50', '0.00'), ('18', '22', '0', '0.00', '0.00'), ('20', '24', '0', '0.00', '0.00'), ('38', '23', '0', '0.00', '0.00'), ('48', '31', '0', '0.00', '0.00'), ('50', '32', '0', '0.00', '0.00'), ('52', '33', '0', '0.00', '0.00'), ('57', '36', '0', '0.00', '0.00'), ('58', '35', '0', '0.00', '0.00'), ('59', '34', '0', '0.00', '0.00'), ('60', '30', '0', '0.00', '0.00'), ('64', '27', '2', '0.80', '0.00'), ('65', '27', '3', '0.75', '0.00'), ('66', '28', '0', '0.00', '0.00'), ('67', '29', '0', '0.00', '0.00'), ('74', '37', '0', '0.00', '0.00'), ('77', '26', '0', '0.00', '0.00');
COMMIT;
-- ----------------------------
-- Table structure for `pms_product_operate_log`
-- ----------------------------
DROP TABLE IF EXISTS `pms_product_operate_log`;
CREATE TABLE `pms_product_operate_log` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`product_id` bigint(20) DEFAULT NULL,
`price_old` decimal(10,2) DEFAULT NULL,
`price_new` decimal(10,2) DEFAULT NULL,
`sale_price_old` decimal(10,2) DEFAULT NULL,
`sale_price_new` decimal(10,2) DEFAULT NULL,
`gift_point_old` int(11) DEFAULT NULL COMMENT '赠送的积分',
`gift_point_new` int(11) DEFAULT NULL,
`use_point_limit_old` int(11) DEFAULT NULL,
`use_point_limit_new` int(11) DEFAULT NULL,
`operate_man` varchar(64) DEFAULT NULL COMMENT '操作人',
`create_time` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for `pms_product_vertify_record`
-- ----------------------------
DROP TABLE IF EXISTS `pms_product_vertify_record`;
CREATE TABLE `pms_product_vertify_record` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`product_id` bigint(20) DEFAULT NULL,
`create_time` datetime DEFAULT NULL,
`vertify_man` varchar(64) DEFAULT NULL COMMENT '审核人',
`status` int(1) DEFAULT NULL,
`detail` varchar(255) DEFAULT NULL COMMENT '反馈详情',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='商品审核记录';
-- ----------------------------
-- Records of `pms_product_vertify_record`
-- ----------------------------
BEGIN;
INSERT INTO `pms_product_vertify_record` VALUES ('1', '1', '2018-04-27 16:36:41', 'test', '1', '验证通过'), ('2', '2', '2018-04-27 16:36:41', 'test', '1', '验证通过');
COMMIT;
-- ----------------------------
-- Table structure for `pms_sku_stock`
-- ----------------------------
DROP TABLE IF EXISTS `pms_sku_stock`;
CREATE TABLE `pms_sku_stock` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`product_id` bigint(20) DEFAULT NULL,
`sku_code` varchar(64) NOT NULL COMMENT 'sku编码',
`price` decimal(10,2) DEFAULT NULL,
`stock` int(11) DEFAULT '0' COMMENT '库存',
`low_stock` int(11) DEFAULT NULL COMMENT '预警库存',
`sp1` varchar(64) DEFAULT NULL COMMENT '销售属性1',
`sp2` varchar(64) DEFAULT NULL,
`sp3` varchar(64) DEFAULT NULL,
`pic` varchar(255) DEFAULT NULL COMMENT '展示图片',
`sale` int(11) DEFAULT NULL COMMENT '销量',
`promotion_price` decimal(10,2) DEFAULT NULL COMMENT '单品促销价格',
`lock_stock` int(11) DEFAULT '0' COMMENT '锁定库存',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=152 DEFAULT CHARSET=utf8 COMMENT='sku的库存';
-- ----------------------------
-- Records of `pms_sku_stock`
-- ----------------------------
BEGIN;
INSERT INTO `pms_sku_stock` VALUES ('1', '7', 'string', '100.00', '0', '5', 'string', 'string', 'string', 'string', '0', null, '0'), ('2', '8', 'string', '100.00', '0', '5', 'string', 'string', 'string', 'string', '0', null, '0'), ('3', '9', 'string', '100.00', '0', '5', 'string', 'string', 'string', 'string', '0', null, '0'), ('4', '10', 'string', '100.00', '0', '5', 'string', 'string', 'string', 'string', '0', null, '0'), ('5', '11', 'string', '100.00', '0', '5', 'string', 'string', 'string', 'string', '0', null, '0'), ('6', '12', 'string', '100.00', '0', '5', 'string', 'string', 'string', 'string', '0', null, '0'), ('7', '13', 'string', '100.00', '0', '5', 'string', 'string', 'string', 'string', '0', null, '0'), ('8', '14', 'string', '100.00', '0', '5', 'string', 'string', 'string', 'string', '0', null, '0'), ('9', '18', 'string', '100.00', '0', '5', 'string', 'string', 'string', 'string', '0', null, '0'), ('10', '7', 'string', '0.00', '0', '0', 'string', 'string', 'sp3', 'string', '0', null, '0'), ('11', '7', 'string', '0.00', '0', '0', 'string', 'string', 'sp33', 'string', '0', null, '0'), ('12', '22', '111', '99.00', '0', null, 'x', 'M', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180604/1522738681.jpg', null, null, '0'), ('13', '22', '112', '99.00', '0', null, 'xx', 'M', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180604/2018032614134591_20180326141345650 (4).png', null, null, '0'), ('78', '23', '201806070023001', '99.00', '0', null, '米白色', 'M', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180604/1522738681.jpg', null, null, '0'), ('79', '23', '201806070023002', '99.00', '0', null, '米白色', 'X', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180604/1522738681.jpg', null, null, '0'), ('80', '23', '201806070023003', '99.00', '0', null, '浅黄色', 'M', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180604/2017091716493787_20170917164937650 (1).png', null, null, '0'), ('81', '23', '201806070023004', '99.00', '0', null, '浅黄色', 'X', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180604/2017091716493787_20170917164937650 (1).png', null, null, '0'), ('98', '27', '201808270027001', '2699.00', '97', null, '黑色', '32G', null, null, null, '0.00', '-24'), ('99', '27', '201808270027002', '2999.00', '100', null, '黑色', '64G', null, null, null, '0.00', '0'), ('100', '27', '201808270027003', '2699.00', '99', null, '蓝色', '32G', null, null, null, '0.00', '0'), ('101', '27', '201808270027004', '2999.00', '88', null, '蓝色', '64G', null, null, null, '0.00', '-7'), ('102', '28', '201808270028001', '649.00', '99', null, '金色', '16G', null, null, null, '0.00', '-8'), ('103', '28', '201808270028002', '699.00', '99', null, '金色', '32G', null, null, null, '0.00', '-8'), ('104', '28', '201808270028003', '649.00', '100', null, '银色', '16G', null, null, null, '0.00', '0'), ('105', '28', '201808270028004', '699.00', '100', null, '银色', '32G', null, null, null, '0.00', '0'), ('106', '29', '201808270029001', '5499.00', '99', null, '金色', '32G', null, null, null, '0.00', '-8'), ('107', '29', '201808270029002', '6299.00', '100', null, '金色', '64G', null, null, null, null, '0'), ('108', '29', '201808270029003', '5499.00', '100', null, '银色', '32G', null, null, null, null, '0'), ('109', '29', '201808270029004', '6299.00', '100', null, '银色', '64G', null, null, null, null, '0'), ('130', '37', 'rm', '22.00', '44', '33', '红色', 'M', null, null, null, null, '0'), ('131', '37', 'rx', '23.00', '44', '33', '红色', 'X', null, null, null, null, '0'), ('132', '37', 'bm', '24.00', '44', '33', '蓝色', 'M', null, null, null, null, '0'), ('133', '37', 'bx', '25.00', '44', '33', '蓝色', 'X', null, null, null, null, '0'), ('146', '26', '222', '22.00', '22', '22', '金色', '16G', null, null, null, '0.00', '0'), ('147', '26', '201902140026002', '33.00', '33', null, '金色', '32G', null, null, null, null, '0'), ('148', '26', '201902140026003', '33.00', '33', null, '金色', '128G', null, null, null, '0.00', '0'), ('149', '26', '201902140026004', '33.00', '33', null, '银色', '16G', null, null, null, '0.00', '0'), ('150', '26', '201902140026005', '33.00', '33', null, '银色', '32G', null, null, null, '0.00', '1'), ('151', '26', '201902140026006', '33.00', '33', null, '银色', '128G', null, null, null, '0.00', '0');
COMMIT;
-- ----------------------------
-- Table structure for `sms_coupon`
-- ----------------------------
DROP TABLE IF EXISTS `sms_coupon`;
CREATE TABLE `sms_coupon` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`type` int(1) DEFAULT NULL COMMENT '优惠卷类型;0->全场赠券;1->会员赠券;2->购物赠券;3->注册赠券',
`name` varchar(100) DEFAULT NULL,
`platform` int(1) DEFAULT NULL COMMENT '使用平台:0->全部;1->移动;2->PC',
`count` int(11) DEFAULT NULL COMMENT '数量',
`amount` decimal(10,2) DEFAULT NULL COMMENT '金额',
`per_limit` int(11) DEFAULT NULL COMMENT '每人限领张数',
`min_point` decimal(10,2) DEFAULT NULL COMMENT '使用门槛;0表示无门槛',
`start_time` datetime DEFAULT NULL,
`end_time` datetime DEFAULT NULL,
`use_type` int(1) DEFAULT NULL COMMENT '使用类型:0->全场通用;1->指定分类;2->指定商品',
`note` varchar(200) DEFAULT NULL COMMENT '备注',
`publish_count` int(11) DEFAULT NULL COMMENT '发行数量',
`use_count` int(11) DEFAULT NULL COMMENT '已使用数量',
`receive_count` int(11) DEFAULT NULL COMMENT '领取数量',
`enable_time` datetime DEFAULT NULL COMMENT '可以领取的日期',
`code` varchar(64) DEFAULT NULL COMMENT '优惠码',
`member_level` int(1) DEFAULT NULL COMMENT '可领取的会员类型:0->无限时',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=22 DEFAULT CHARSET=utf8 COMMENT='优惠卷表';
-- ----------------------------
-- Records of `sms_coupon`
-- ----------------------------
BEGIN;
INSERT INTO `sms_coupon` VALUES ('2', '0', '全品类通用券', '0', '92', '10.00', '1', '100.00', '2018-08-27 16:40:47', '2018-11-23 16:40:47', '0', '满100减10', '100', '0', '8', '2018-08-27 16:40:47', null, null), ('3', '0', '小米手机专用券', '0', '92', '50.00', '1', '1000.00', '2018-08-27 16:40:47', '2018-11-16 16:40:47', '2', '小米手机专用优惠券', '100', '0', '8', '2018-08-27 16:40:47', null, null), ('4', '0', '手机品类专用券', '0', '92', '300.00', '1', '2000.00', '2018-08-27 16:40:47', '2018-09-15 16:40:47', '1', '手机分类专用优惠券', '100', '0', '8', '2018-08-27 16:40:47', null, null), ('7', '0', 'T恤分类专用优惠券', '0', '93', '50.00', '1', '500.00', '2018-08-27 16:40:47', '2018-08-15 16:40:47', '1', '满500减50', '100', '0', '7', '2018-08-27 16:40:47', null, null), ('8', '0', '新优惠券', '0', '100', '100.00', '1', '1000.00', '2018-11-08 00:00:00', '2018-11-27 00:00:00', '0', '测试', '100', '0', '1', null, null, null), ('9', '0', '全品类通用券', '0', '100', '5.00', '1', '100.00', '2018-11-08 00:00:00', '2018-11-10 00:00:00', '0', null, '100', '0', '1', null, null, null), ('10', '0', '全品类通用券', '0', '100', '15.00', '1', '200.00', '2018-11-08 00:00:00', '2018-11-10 00:00:00', '0', null, '100', '0', '1', null, null, null), ('11', '0', '全品类通用券', '0', '1000', '50.00', '1', '1000.00', '2018-11-08 00:00:00', '2018-11-10 00:00:00', '0', null, '1000', '0', '0', null, null, null), ('12', '0', '移动端全品类通用券', '1', '1', '10.00', '1', '100.00', '2018-11-08 00:00:00', '2018-11-10 00:00:00', '0', null, '100', '0', '0', null, null, null), ('19', '0', '手机分类专用', '0', '100', '100.00', '1', '1000.00', '2018-11-09 00:00:00', '2018-11-17 00:00:00', '1', '手机分类专用', '100', '0', '0', null, null, null), ('20', '0', '小米手机专用', '0', '100', '200.00', '1', '1000.00', '2018-11-09 00:00:00', '2018-11-24 00:00:00', '2', '小米手机专用', '100', '0', '0', null, null, null), ('21', '0', 'xxx', '0', '100', '10.00', '1', '100.00', '2018-11-09 00:00:00', '2018-11-30 00:00:00', '2', null, '100', '0', '0', null, null, null);
COMMIT;
-- ----------------------------
-- Table structure for `sms_coupon_history`
-- ----------------------------
DROP TABLE IF EXISTS `sms_coupon_history`;
CREATE TABLE `sms_coupon_history` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`coupon_id` bigint(20) DEFAULT NULL,
`member_id` bigint(20) DEFAULT NULL,
`coupon_code` varchar(64) DEFAULT NULL,
`member_nickname` varchar(64) DEFAULT NULL COMMENT '领取人昵称',
`get_type` int(1) DEFAULT NULL COMMENT '获取类型:0->后台赠送;1->主动获取',
`create_time` datetime DEFAULT NULL,
`use_status` int(1) DEFAULT NULL COMMENT '使用状态:0->未使用;1->已使用;2->已过期',
`use_time` datetime DEFAULT NULL COMMENT '使用时间',
`order_id` bigint(20) DEFAULT NULL COMMENT '订单编号',
`order_sn` varchar(100) DEFAULT NULL COMMENT '订单号码',
PRIMARY KEY (`id`),
KEY `idx_member_id` (`member_id`) USING BTREE,
KEY `idx_coupon_id` (`coupon_id`)
) ENGINE=InnoDB AUTO_INCREMENT=33 DEFAULT CHARSET=utf8 COMMENT='优惠券使用、领取历史表';
-- ----------------------------
-- Records of `sms_coupon_history`
-- ----------------------------
BEGIN;
INSERT INTO `sms_coupon_history` VALUES ('2', '2', '1', '4931048380330002', 'windir', '1', '2018-08-29 14:04:12', '1', '2018-11-12 14:38:47', '12', '201809150101000001'), ('3', '3', '1', '4931048380330003', 'windir', '1', '2018-08-29 14:04:29', '0', null, null, null), ('4', '4', '1', '4931048380330004', 'windir', '1', '2018-08-29 14:04:32', '0', null, null, null), ('11', '7', '1', '4931048380330001', 'windir', '1', '2018-09-04 16:21:50', '0', null, null, null), ('12', '2', '4', '0340981248320004', 'zhensan', '1', '2018-11-12 14:16:50', '0', null, null, null), ('13', '3', '4', '0342977234360004', 'zhensan', '1', '2018-11-12 14:17:10', '0', null, null, null), ('14', '4', '4', '0343342928830004', 'zhensan', '1', '2018-11-12 14:17:13', '0', null, null, null), ('15', '2', '5', '0351883832180005', 'lisi', '1', '2018-11-12 14:18:39', '0', null, null, null), ('16', '3', '5', '0352201672680005', 'lisi', '1', '2018-11-12 14:18:42', '0', null, null, null), ('17', '4', '5', '0352505810180005', 'lisi', '1', '2018-11-12 14:18:45', '0', null, null, null), ('18', '2', '6', '0356114588380006', 'wangwu', '1', '2018-11-12 14:19:21', '0', null, null, null), ('19', '3', '6', '0356382856920006', 'wangwu', '1', '2018-11-12 14:19:24', '0', null, null, null), ('20', '4', '6', '0356656798470006', 'wangwu', '1', '2018-11-12 14:19:27', '0', null, null, null), ('21', '2', '3', '0363644984620003', 'windy', '1', '2018-11-12 14:20:36', '0', null, null, null), ('22', '3', '3', '0363932820300003', 'windy', '1', '2018-11-12 14:20:39', '0', null, null, null), ('23', '4', '3', '0364238275840003', 'windy', '1', '2018-11-12 14:20:42', '0', null, null, null), ('24', '2', '7', '0385034833070007', 'lion', '1', '2018-11-12 14:24:10', '0', null, null, null), ('25', '3', '7', '0385350208650007', 'lion', '1', '2018-11-12 14:24:13', '0', null, null, null), ('26', '4', '7', '0385632733900007', 'lion', '1', '2018-11-12 14:24:16', '0', null, null, null), ('27', '2', '8', '0388779132990008', 'shari', '1', '2018-11-12 14:24:48', '0', null, null, null), ('28', '3', '8', '0388943658810008', 'shari', '1', '2018-11-12 14:24:49', '0', null, null, null), ('29', '4', '8', '0389069398320008', 'shari', '1', '2018-11-12 14:24:51', '0', null, null, null), ('30', '2', '9', '0390753935250009', 'aewen', '1', '2018-11-12 14:25:08', '0', null, null, null), ('31', '3', '9', '0390882954470009', 'aewen', '1', '2018-11-12 14:25:09', '0', null, null, null), ('32', '4', '9', '0391025542810009', 'aewen', '1', '2018-11-12 14:25:10', '0', null, null, null);
COMMIT;
-- ----------------------------
-- Table structure for `sms_coupon_product_category_relation`
-- ----------------------------
DROP TABLE IF EXISTS `sms_coupon_product_category_relation`;
CREATE TABLE `sms_coupon_product_category_relation` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`coupon_id` bigint(20) DEFAULT NULL,
`product_category_id` bigint(20) DEFAULT NULL,
`product_category_name` varchar(200) DEFAULT NULL COMMENT '产品分类名称',
`parent_category_name` varchar(200) DEFAULT NULL COMMENT '父分类名称',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COMMENT='优惠券和产品分类关系表';
-- ----------------------------
-- Records of `sms_coupon_product_category_relation`
-- ----------------------------
BEGIN;
INSERT INTO `sms_coupon_product_category_relation` VALUES ('4', '19', '30', '手机配件', '手机数码');
COMMIT;
-- ----------------------------
-- Table structure for `sms_coupon_product_relation`
-- ----------------------------
DROP TABLE IF EXISTS `sms_coupon_product_relation`;
CREATE TABLE `sms_coupon_product_relation` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`coupon_id` bigint(20) DEFAULT NULL,
`product_id` bigint(20) DEFAULT NULL,
`product_name` varchar(500) DEFAULT NULL COMMENT '商品名称',
`product_sn` varchar(200) DEFAULT NULL COMMENT '商品编码',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8 COMMENT='优惠券和产品的关系表';
-- ----------------------------
-- Records of `sms_coupon_product_relation`
-- ----------------------------
BEGIN;
INSERT INTO `sms_coupon_product_relation` VALUES ('9', '21', '33', '小米(MI)小米电视4A ', '4609652');
COMMIT;
-- ----------------------------
-- Table structure for `sms_flash_promotion`
-- ----------------------------
DROP TABLE IF EXISTS `sms_flash_promotion`;
CREATE TABLE `sms_flash_promotion` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`title` varchar(200) DEFAULT NULL,
`start_date` date DEFAULT NULL COMMENT '开始日期',
`end_date` date DEFAULT NULL COMMENT '结束日期',
`status` int(1) DEFAULT NULL COMMENT '上下线状态',
`create_time` datetime DEFAULT NULL COMMENT '秒杀时间段名称',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8 COMMENT='限时购表';
-- ----------------------------
-- Records of `sms_flash_promotion`
-- ----------------------------
BEGIN;
INSERT INTO `sms_flash_promotion` VALUES ('2', '春季家电家具疯狂秒杀1', '2019-01-28', '2019-01-15', '0', '2018-11-16 11:12:13'), ('3', '前端测试专用活动', '2018-11-03', '2019-02-28', '1', '2018-11-16 11:11:31'), ('4', '春季家电家具疯狂秒杀3', '2018-11-24', '2018-11-25', '0', '2018-11-16 11:12:19'), ('5', '春季家电家具疯狂秒杀4', '2018-11-16', '2018-11-16', '0', '2018-11-16 11:12:24'), ('6', '春季家电家具疯狂秒杀5', '2018-11-16', '2018-11-16', '0', '2018-11-16 11:12:31'), ('7', '春季家电家具疯狂秒杀6', '2018-11-16', '2018-11-16', '0', '2018-11-16 11:12:35'), ('8', '春季家电家具疯狂秒杀7', '2018-11-16', '2018-11-16', '0', '2018-11-16 11:12:39'), ('9', '春季家电家具疯狂秒杀8', '2018-11-16', '2018-11-16', '0', '2018-11-16 11:12:42'), ('13', '测试', '2018-11-01', '2018-11-30', '0', '2018-11-19 10:34:24');
COMMIT;
-- ----------------------------
-- Table structure for `sms_flash_promotion_log`
-- ----------------------------
DROP TABLE IF EXISTS `sms_flash_promotion_log`;
CREATE TABLE `sms_flash_promotion_log` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`member_id` int(11) DEFAULT NULL,
`product_id` bigint(20) DEFAULT NULL,
`member_phone` varchar(64) DEFAULT NULL,
`product_name` varchar(100) DEFAULT NULL,
`subscribe_time` datetime DEFAULT NULL COMMENT '会员订阅时间',
`send_time` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='限时购通知记录';
-- ----------------------------
-- Table structure for `sms_flash_promotion_product_relation`
-- ----------------------------
DROP TABLE IF EXISTS `sms_flash_promotion_product_relation`;
CREATE TABLE `sms_flash_promotion_product_relation` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '编号',
`flash_promotion_id` bigint(20) DEFAULT NULL,
`flash_promotion_session_id` bigint(20) DEFAULT NULL COMMENT '编号',
`product_id` bigint(20) DEFAULT NULL,
`flash_promotion_price` decimal(10,2) DEFAULT NULL COMMENT '限时购价格',
`flash_promotion_count` int(11) DEFAULT NULL COMMENT '限时购数量',
`flash_promotion_limit` int(11) DEFAULT NULL COMMENT '每人限购数量',
`sort` int(11) DEFAULT NULL COMMENT '排序',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=45 DEFAULT CHARSET=utf8 COMMENT='商品限时购与商品关系表';
-- ----------------------------
-- Records of `sms_flash_promotion_product_relation`
-- ----------------------------
BEGIN;
INSERT INTO `sms_flash_promotion_product_relation` VALUES ('1', '2', '1', '26', '3000.00', '10', '1', '0'), ('2', '2', '1', '27', '2000.00', '10', '1', '20'), ('3', '2', '1', '28', '599.00', '19', '1', '0'), ('4', '2', '1', '29', '4999.00', '10', '1', '100'), ('9', '2', '2', '26', '2999.00', '100', '1', '0'), ('10', '2', '2', '27', null, null, null, null), ('11', '2', '2', '28', null, null, null, null), ('12', '2', '2', '29', null, null, null, null), ('13', '2', '2', '30', null, null, null, null), ('14', '2', '3', '31', null, null, null, null), ('15', '2', '3', '32', null, null, null, null), ('16', '2', '4', '33', null, null, null, null), ('17', '2', '4', '34', null, null, null, null), ('18', '2', '5', '36', null, null, null, null), ('19', '2', '6', '33', null, null, null, null), ('20', '2', '6', '34', null, null, null, null), ('21', '3', '1', '26', '3000.00', '100', '1', null), ('22', '3', '1', '27', '1999.00', '10', '1', null), ('23', '3', '1', '28', '599.00', '10', '1', null), ('24', '3', '1', '29', '4999.00', '10', '1', null), ('25', '3', '2', '31', '90.00', '10', '1', null), ('26', '3', '2', '32', '60.00', '10', '1', null), ('27', '3', '2', '33', '2299.00', '10', '1', null), ('28', '3', '2', '34', '3888.00', '10', '1', null), ('29', '3', '3', '36', null, null, null, null), ('30', '3', '3', '35', null, null, null, null), ('31', '3', '3', '31', null, null, null, null), ('32', '3', '3', '32', null, null, null, null), ('33', '3', '4', '26', null, null, null, null), ('34', '3', '4', '27', null, null, null, null), ('35', '3', '4', '28', null, null, null, null), ('36', '3', '4', '29', null, null, null, null), ('37', '3', '5', '26', '3688.00', '100', '1', null), ('38', '3', '5', '27', '2599.00', '10', '1', null), ('39', '3', '5', '28', '599.00', '10', '1', null), ('40', '3', '5', '29', '4999.00', '10', '1', null), ('41', '3', '6', '26', null, null, null, null), ('42', '3', '6', '27', null, null, null, null), ('43', '3', '6', '28', null, null, null, null), ('44', '3', '6', '29', null, null, null, null);
COMMIT;
-- ----------------------------
-- Table structure for `sms_flash_promotion_session`
-- ----------------------------
DROP TABLE IF EXISTS `sms_flash_promotion_session`;
CREATE TABLE `sms_flash_promotion_session` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '编号',
`name` varchar(200) DEFAULT NULL COMMENT '场次名称',
`start_time` time DEFAULT NULL COMMENT '每日开始时间',
`end_time` time DEFAULT NULL COMMENT '每日结束时间',
`status` int(1) DEFAULT NULL COMMENT '启用状态:0->不启用;1->启用',
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8 COMMENT='限时购场次表';
-- ----------------------------
-- Records of `sms_flash_promotion_session`
-- ----------------------------
BEGIN;
INSERT INTO `sms_flash_promotion_session` VALUES ('1', '8:00', '08:00:00', '10:00:33', '1', '2018-11-16 13:22:17'), ('2', '10:00', '10:00:00', '12:00:00', '1', '2018-11-16 13:22:34'), ('3', '12:00', '12:00:00', '14:00:00', '1', '2018-11-16 13:22:37'), ('4', '14:00', '14:00:00', '16:00:00', '1', '2018-11-16 13:22:41'), ('5', '16:00', '16:00:00', '18:00:00', '1', '2018-11-16 13:22:45'), ('6', '18:00', '18:00:00', '20:00:00', '1', '2018-11-16 13:21:34'), ('7', '20:00', '20:00:33', '21:00:33', '0', '2018-11-16 13:22:55');
COMMIT;
-- ----------------------------
-- Table structure for `sms_home_advertise`
-- ----------------------------
DROP TABLE IF EXISTS `sms_home_advertise`;
CREATE TABLE `sms_home_advertise` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`name` varchar(100) DEFAULT NULL,
`type` int(1) DEFAULT NULL COMMENT '轮播位置:0->PC首页轮播;1->app首页轮播',
`pic` varchar(500) DEFAULT NULL,
`start_time` datetime DEFAULT NULL,
`end_time` datetime DEFAULT NULL,
`status` int(1) DEFAULT NULL COMMENT '上下线状态:0->下线;1->上线',
`click_count` int(11) DEFAULT NULL COMMENT '点击数',
`order_count` int(11) DEFAULT NULL COMMENT '下单数',
`url` varchar(500) DEFAULT NULL COMMENT '链接地址',
`note` varchar(500) DEFAULT NULL COMMENT '备注',
`sort` int(11) DEFAULT '0' COMMENT '排序',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8 COMMENT='首页轮播广告表';
-- ----------------------------
-- Records of `sms_home_advertise`
-- ----------------------------
BEGIN;
INSERT INTO `sms_home_advertise` VALUES ('2', '夏季大热促销', '0', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/xiaomi.jpg', '2018-11-01 14:01:37', '2018-11-15 14:01:37', '0', '0', '0', null, '夏季大热促销', '0'), ('3', '夏季大热促销1', '0', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/5ac1bf58Ndefaac16.jpg', '2018-11-13 14:01:37', '2018-11-13 14:01:37', '0', '0', '0', null, '夏季大热促销1', '0'), ('4', '夏季大热促销2', '0', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5a9d248cN071f4959.jpg', '2018-11-13 14:01:37', '2018-11-13 14:01:37', '1', '0', '0', null, '夏季大热促销2', '0'), ('9', '电影推荐广告', '1', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20181113/movie_ad.jpg', '2018-11-01 00:00:00', '2018-11-24 00:00:00', '1', '0', '0', 'www.baidu.com', '电影推荐广告', '100'), ('10', '汽车促销广告', '1', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20181113/car_ad.jpg', '2018-11-13 00:00:00', '2018-11-24 00:00:00', '1', '0', '0', 'xxx', null, '99'), ('11', '汽车推荐广告', '1', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20181113/car_ad2.jpg', '2018-11-13 00:00:00', '2018-11-30 00:00:00', '1', '0', '0', 'xxx', null, '98'), ('12', '电影推荐广告', '2', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20181113/movie_ad.jpg', '2018-11-01 00:00:00', '2018-11-24 00:00:00', '1', '0', '0', 'www.baidu.com', '电影推荐广告', '100'), ('13', '汽车促销广告', '2', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20181113/car_ad.jpg', '2018-11-13 00:00:00', '2018-11-24 00:00:00', '1', '0', '0', 'xxx', null, '99'), ('14', '汽车推荐广告', '2', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20181113/car_ad2.jpg', '2018-11-13 00:00:00', '2018-11-30 00:00:00', '1', '0', '0', 'xxx', null, '98');
COMMIT;
-- ----------------------------
-- Table structure for `sms_home_brand`
-- ----------------------------
DROP TABLE IF EXISTS `sms_home_brand`;
CREATE TABLE `sms_home_brand` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`brand_id` bigint(20) DEFAULT NULL,
`brand_name` varchar(64) DEFAULT NULL,
`recommend_status` int(1) DEFAULT NULL,
`sort` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=40 DEFAULT CHARSET=utf8 COMMENT='首页推荐品牌表';
-- ----------------------------
-- Records of `sms_home_brand`
-- ----------------------------
BEGIN;
INSERT INTO `sms_home_brand` VALUES ('1', '1', '万和', '1', '200'), ('2', '2', '三星', '1', '0'), ('6', '6', '小米', '1', '300'), ('8', '5', '方太', '1', '100'), ('32', '50', '海澜之家', '1', '0'), ('33', '51', '苹果', '1', '0'), ('35', '3', '华为', '1', '0'), ('36', '4', '格力', '1', '0'), ('37', '5', '方太', '1', '0'), ('38', '1', '万和', '1', '0'), ('39', '21', 'OPPO', '1', '0');
COMMIT;
-- ----------------------------
-- Table structure for `sms_home_new_product`
-- ----------------------------
DROP TABLE IF EXISTS `sms_home_new_product`;
CREATE TABLE `sms_home_new_product` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`product_id` bigint(20) DEFAULT NULL,
`product_name` varchar(64) DEFAULT NULL,
`recommend_status` int(1) DEFAULT NULL,
`sort` int(1) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8 COMMENT='新鲜好物表';
-- ----------------------------
-- Records of `sms_home_new_product`
-- ----------------------------
BEGIN;
INSERT INTO `sms_home_new_product` VALUES ('2', '27', '小米8 全面屏游戏智能手机 6GB+64GB 黑色 全网通4G 双卡双待', '1', '200'), ('8', '26', '华为 HUAWEI P20 ', '1', '0'), ('9', '27', '小米8 全面屏游戏智能手机 6GB+64GB 黑色 全网通4G 双卡双待', '1', '0'), ('10', '28', '小米 红米5A 全网通版 3GB+32GB 香槟金 移动联通电信4G手机 双卡双待', '1', '0'), ('11', '29', 'Apple iPhone 8 Plus 64GB 红色特别版 移动联通电信4G手机', '1', '0'), ('12', '30', 'HLA海澜之家简约动物印花短袖T恤', '1', '0');
COMMIT;
-- ----------------------------
-- Table structure for `sms_home_recommend_product`
-- ----------------------------
DROP TABLE IF EXISTS `sms_home_recommend_product`;
CREATE TABLE `sms_home_recommend_product` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`product_id` bigint(20) DEFAULT NULL,
`product_name` varchar(64) DEFAULT NULL,
`recommend_status` int(1) DEFAULT NULL,
`sort` int(1) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8 COMMENT='人气推荐商品表';
-- ----------------------------
-- Records of `sms_home_recommend_product`
-- ----------------------------
BEGIN;
INSERT INTO `sms_home_recommend_product` VALUES ('3', '26', '华为 HUAWEI P20 ', '1', '0'), ('4', '27', '小米8 全面屏游戏智能手机 6GB+64GB 黑色 全网通4G 双卡双待', '1', '0'), ('5', '28', '小米 红米5A 全网通版 3GB+32GB 香槟金 移动联通电信4G手机 双卡双待', '1', '0'), ('6', '29', 'Apple iPhone 8 Plus 64GB 红色特别版 移动联通电信4G手机', '1', '0'), ('7', '30', 'HLA海澜之家简约动物印花短袖T恤', '1', '100');
COMMIT;
-- ----------------------------
-- Table structure for `sms_home_recommend_subject`
-- ----------------------------
DROP TABLE IF EXISTS `sms_home_recommend_subject`;
CREATE TABLE `sms_home_recommend_subject` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`subject_id` bigint(20) DEFAULT NULL,
`subject_name` varchar(64) DEFAULT NULL,
`recommend_status` int(1) DEFAULT NULL,
`sort` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8 COMMENT='首页推荐专题表';
-- ----------------------------
-- Records of `sms_home_recommend_subject`
-- ----------------------------
BEGIN;
INSERT INTO `sms_home_recommend_subject` VALUES ('14', '1', 'polo衬衫的也时尚', '1', '0'), ('15', '2', '大牌手机低价秒', '1', '0'), ('16', '3', '晓龙845新品上市', '1', '0'), ('17', '4', '夏天应该穿什么', '1', '0'), ('18', '5', '夏季精选', '1', '100'), ('19', '6', '品牌手机降价', '1', '0'), ('20', '1', '轮廓分明,双摄手机映现细腻美照', '1', '0');
COMMIT;
-- ----------------------------
-- Table structure for `tb_panel`
-- ----------------------------
DROP TABLE IF EXISTS `tb_panel`;
CREATE TABLE `tb_panel` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '类目ID',
`name` varchar(50) DEFAULT NULL COMMENT '板块名称',
`type` int(1) DEFAULT NULL COMMENT '类型 0轮播图 1板块种类一 2板块种类二 3板块种类三 ',
`sort_order` int(4) DEFAULT NULL COMMENT '排列序号',
`position` int(1) DEFAULT NULL COMMENT '所属位置 0首页 1商品推荐 2我要捐赠',
`limit_num` int(4) DEFAULT NULL COMMENT '板块限制商品数量',
`status` int(1) DEFAULT '1' COMMENT '状态',
`remark` varchar(255) DEFAULT NULL COMMENT '备注',
`created` datetime DEFAULT NULL COMMENT '创建时间',
`updated` datetime DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`id`),
KEY `parent_id` (`status`) USING BTREE,
KEY `sort_order` (`sort_order`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8 COMMENT='内容分类';
-- ----------------------------
-- Records of `tb_panel`
-- ----------------------------
BEGIN;
INSERT INTO `tb_panel` VALUES ('1', '热门商品', '2', '2', '0', '3', '1', '', '2018-04-18 23:49:13', '2018-04-15 19:05:16'), ('2', '官方精选', '3', '3', '0', '8', '1', '', null, '2018-04-19 11:20:59'), ('3', '品牌精选', '3', '5', '0', '7', '1', '', '2018-04-18 23:49:19', '2018-04-17 18:54:15'), ('4', '我要捐赠', '2', '3', '2', '2', '1', '', '2017-09-23 15:20:31', '2017-11-06 13:17:04'), ('6', '为您推荐', '2', '6', '1', '2', '1', '', '2017-11-06 13:17:41', '2017-11-06 13:17:41'), ('7', '轮播图', '0', '0', '0', '5', '1', '', '2018-04-15 12:33:07', '2018-04-15 12:33:07'), ('8', '活动版块', '1', '1', '0', '4', '1', '', '2018-04-15 19:05:00', '2018-04-15 19:05:00'), ('9', '活动版块2', '1', '7', '0', '4', '1', '', null, '2018-04-19 11:57:47'), ('10', '品牌周边', '3', '4', '0', '7', '1', null, '2018-04-18 23:50:32', '2018-04-18 23:50:35');
COMMIT;
-- ----------------------------
-- Table structure for `tb_panel_content`
-- ----------------------------
DROP TABLE IF EXISTS `tb_panel_content`;
CREATE TABLE `tb_panel_content` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`panel_id` int(11) NOT NULL COMMENT '所属板块id',
`type` int(1) DEFAULT NULL COMMENT '类型 0关联商品 1其他链接',
`product_id` bigint(20) DEFAULT NULL COMMENT '关联商品id',
`sort_order` int(4) DEFAULT NULL,
`full_url` varchar(500) DEFAULT NULL COMMENT '其他链接',
`pic_url` varchar(500) DEFAULT NULL,
`pic_url2` varchar(500) DEFAULT NULL COMMENT '3d轮播图备用',
`pic_url3` varchar(500) DEFAULT NULL COMMENT '3d轮播图备用',
`created` datetime DEFAULT NULL,
`updated` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `category_id` (`panel_id`),
KEY `updated` (`updated`)
) ENGINE=InnoDB AUTO_INCREMENT=64 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of `tb_panel_content`
-- ----------------------------
BEGIN;
INSERT INTO `tb_panel_content` VALUES ('2', '3', '0', '150642571432851', '1', '', 'https://resource.smartisan.com/resource/7ac3af5a92ad791c2b38bfe1e38ee334.jpg', null, null, '2017-09-23 00:03:02', '2018-04-20 00:23:40'), ('7', '3', '0', '816448', '2', '', 'https://resource.smartisan.com/resource/41cb562a47d4831e199ed7e2057f3b61.jpg', null, null, '2017-09-23 22:58:11', '2018-04-20 00:14:29'), ('8', '2', '0', '150642571432837', '1', '', 'https://resource.smartisan.com/resource/3a7522290397a9444d7355298248f197.jpg', null, null, '2017-09-25 17:03:48', '2018-04-19 23:23:26'), ('9', '2', '0', '150642571432838', '2', '', 'https://resource.smartisan.com/resource/63ea40e5c64db1c6b1d480c48fe01272.jpg', null, null, '2017-09-25 17:04:35', '2018-04-20 10:48:17'), ('14', '2', '0', '150642571432839', '3', '', 'https://resource.smartisan.com/resource/5e4b1feddb13639550849f12f6b2e202.jpg', null, null, '2017-10-22 22:14:01', '2018-04-20 10:48:29'), ('15', '2', '0', '150642571432840', '4', '', 'https://resource.smartisan.com/resource/10525c4b21f039fc8ccb42cd1586f5cd.jpg', null, null, '2017-10-22 22:14:52', '2018-04-20 10:48:43'), ('16', '2', '0', '150642571432841', '5', '', 'https://resource.smartisan.com/resource/b899d9b82c4bc2710492a26af021d484.jpg', null, null, '2017-10-22 22:15:51', '2018-04-20 10:49:02'), ('17', '2', '0', '150642571432842', '6', '', 'https://resource.smartisan.com/resource/abb6986430536cd9365352b434f3c568.jpg', null, null, '2017-10-22 22:17:01', '2018-04-20 10:49:17'), ('18', '3', '0', '847276', '3', null, 'https://resource.smartisan.com/resource/99c548bfc9848a8c95f4e4f7f2bc1095.png', null, null, '2017-10-22 22:22:52', '2017-10-22 22:22:52'), ('19', '3', '0', '150642571432844', '4', '', 'https://resource.smartisan.com/resource/71432ad30288fb860a4389881069b874.png', null, null, '2017-10-22 22:23:35', '2018-04-20 11:25:38'), ('20', '3', '0', '847276', '5', '', 'https://resource.smartisan.com/resource/804b82e4c05516e822667a23ee311f7c.jpg', null, null, '2017-10-22 22:24:54', '2018-04-20 00:15:03'), ('21', '3', '0', '150642571432852', '6', '', 'https://resource.smartisan.com/resource/367d93db1d58f9f3505bc0ec18efaa44.jpg', null, null, '2017-10-22 22:25:28', '2018-04-20 00:24:11'), ('22', '1', '0', '150635087972564', '1', null, 'http://ow2h3ee9w.bkt.clouddn.com/FjvP4gBFeYGQoEtEX7dL3kbwJTDW', null, null, '2017-10-22 22:26:31', '2017-10-22 22:26:31'), ('23', '1', '0', '150642571432835', '2', '', 'http://ow2h3ee9w.bkt.clouddn.com/FgwHSk1Rnd-8FKqNJhFSSdcq2QVB', null, null, '2017-10-22 22:26:40', '2018-04-17 20:59:35'), ('25', '8', '0', '150642571432835', '1', 'https://www.smartisan.com/jianguo3-accessories', 'https://resource.smartisan.com/resource/6/610400xinpinpeijian.jpg', null, null, '2018-04-15 19:07:43', '2018-04-19 23:20:34'), ('26', '8', '0', '150635087972564', '2', 'https://www.smartisan.com/service/#/tradein', 'https://resource.smartisan.com/resource/6/610400yijiuhuanxin.jpg', null, null, '2018-04-15 19:08:00', '2018-04-19 23:20:48'), ('27', '8', '0', '150642571432835', '3', 'https://www.smartisan.com/category?id=69', 'https://resource.smartisan.com/resource/4/489673079577637073.png', null, null, '2018-04-15 19:08:24', '2018-04-19 23:21:01'), ('28', '8', '0', '150635087972564', '4', 'https://www.smartisan.com/', 'https://resource.smartisan.com/resource/fe6ab43348a43152b4001b4454d206ac.jpg', null, null, '2018-04-15 19:08:58', '2018-04-19 23:21:13'), ('29', '2', '2', '150642571432843', '0', '', 'https://resource.smartisan.com/resource/1/1220858shoujilouceng.jpg', null, null, '2018-04-15 20:14:35', '2018-04-20 11:41:27'), ('30', '3', '2', '150642571432850', '0', '', 'https://resource.smartisan.com/resource/a/acillouceng1220856.jpg', null, null, '2018-04-15 20:15:18', '2018-04-20 11:18:03'), ('32', '7', '0', '150635087972564', '1', '', 'http://static.smartisanos.cn/index/img/store/home/banner-3d-item-1-box-1_61bdc2f4f9.png', 'http://static.smartisanos.cn/index/img/store/home/banner-3d-item-1-box-3_8fa7866d59.png', 'http://ow2h3ee9w.bkt.clouddn.com/banner-3d-item-1-box-33.png', '2018-04-17 20:41:02', '2018-04-17 20:58:41'), ('33', '7', '0', '150642571432835', '2', '', 'http://oweupqzdv.bkt.clouddn.com/bg_left.png', 'http://ow2h3ee9w.bkt.clouddn.com/phone_left2.png', 'http://oweupqzdv.bkt.clouddn.com/erji_left.png', '2018-04-17 21:08:22', '2018-04-20 10:47:19'), ('34', '7', '0', '150635087972564', '3', null, 'https://s1.ax1x.com/2018/05/19/Ccdiid.png', '', '', '2018-04-17 21:08:30', '2018-04-17 21:08:32'), ('35', '7', '0', '150642571432843', '4', '', 'http://ow2h3ee9w.bkt.clouddn.com/24401108web1.png', null, null, '2018-04-18 23:44:48', '2018-04-20 11:41:46'), ('36', '9', '0', '150635087972564', '1', 'https://www.smartisan.com/pr/#/video/conference-jianguopro2', 'https://resource.smartisan.com/resource/88684d7ed5eee77e34f044fa32a9121b.png', null, null, '2018-04-18 23:51:45', '2018-04-20 12:03:05'), ('37', '9', '0', '150642571432835', '2', 'https://www.smartisan.com/os/#/4-x', 'https://resource.smartisan.com/resource/6/610400dibu.jpg', null, null, '2018-04-18 23:51:51', '2018-04-20 12:03:19'), ('38', '9', '0', '150635087972564', '3', 'https://www.smartisan.com/pr/#/video/changhuxi-jinghuaqi', 'https://resource.smartisan.com/resource/c245ada282824a4a15e68bec80502ad4.jpg', null, null, '2018-04-18 23:51:58', '2018-04-20 12:03:31'), ('39', '9', '0', '150642571432835', '4', 'https://www.smartisan.com/pr/#/video/onestep-introduction', 'https://resource.smartisan.com/resource/m/minibanner_03.jpg', null, null, '2018-04-18 23:52:02', '2018-04-20 12:03:41'), ('40', '10', '3', null, '0', 'http://xmall.exrick.cn/#/goods?cid=1184', 'https://resource.smartisan.com/resource/z/zhoubianshangpin1220858web.jpg', null, null, '2018-04-19 00:02:53', '2018-04-20 11:15:59'), ('41', '10', '0', '150642571432845', '1', '', 'https://resource.smartisan.com/resource/2f9a0f5f3dedf0ed813622003f1b287b.jpg', null, null, '2018-04-19 00:02:56', '2018-04-20 00:24:36'), ('42', '10', '0', '150642571432836', '2', '', 'https://resource.smartisan.com/resource/2b05dbca9f5a4d0c1270123f42fb834c.jpg', null, null, '2018-04-19 00:03:00', '2018-04-20 00:25:01'), ('43', '10', '0', '150642571432846', '3', '', 'https://resource.smartisan.com/resource/804edf579887b3e1fae4e20a379be5b5.png', null, null, '2018-04-19 00:03:04', '2018-04-20 00:25:17'), ('44', '10', '0', '150642571432848', '4', '', 'https://resource.smartisan.com/resource/a1c53b5f12dd7ef790cadec0eaeaf466.jpg', null, null, '2018-04-19 00:03:10', '2018-04-20 10:55:52'), ('45', '10', '0', '150642571432847', '5', '', 'https://resource.smartisan.com/resource/daa975651d6d700c0f886718c520ee19.jpg', null, null, '2018-04-19 00:03:15', '2018-04-20 10:54:56'), ('46', '10', '0', '150642571432849', '6', '', 'https://resource.smartisan.com/resource/3973d009d182d8023bea6250b9a3959e.jpg', null, null, '2018-04-19 00:03:20', '2018-04-20 10:55:03'), ('47', '6', '0', '150635087972564', '1', '', 'http://ow2h3ee9w.bkt.clouddn.com/FjvP4gBFeYGQoEtEX7dL3kbwJTDW', null, null, '2018-04-19 11:15:35', '2018-04-19 11:15:35'), ('48', '6', '0', '150642571432835', '2', null, 'http://ow2h3ee9w.bkt.clouddn.com/FgwHSk1Rnd-8FKqNJhFSSdcq2QVB', null, null, '2018-04-19 11:18:16', '2018-04-19 11:18:18'), ('49', '4', '0', '150635087972564', '1', null, 'http://ow2h3ee9w.bkt.clouddn.com/FjvP4gBFeYGQoEtEX7dL3kbwJTDW', null, null, '2018-04-19 11:20:15', '2018-04-19 11:20:17'), ('50', '4', '0', '150642571432835', '2', null, 'http://ow2h3ee9w.bkt.clouddn.com/FgwHSk1Rnd-8FKqNJhFSSdcq2QVB', null, null, '2018-04-19 11:20:19', '2018-04-19 11:20:21'), ('51', '7', '0', '150635087972564', '5', '', 'http://ow2h3ee9w.bkt.clouddn.com/417pcchunrihaolishouji.png', null, null, '2018-04-19 15:09:40', '2018-04-19 21:16:04'), ('55', '0', '1', null, '1', 'http://xmall.exrick.cn/#/goods?cid=1184', '品牌周边', null, null, '2018-07-27 20:48:21', '2018-07-27 22:32:51'), ('58', '0', '1', null, '2', 'http://xmall.exrick.cn/#/thanks', '捐赠名单', null, null, '2018-07-27 20:50:07', '2018-07-27 22:25:18'), ('59', '0', '0', null, '3', 'http://xmadmin.exrick.cn', '后台管理系统', null, null, '2018-07-27 22:25:44', '2018-07-27 22:26:54'), ('60', '0', '0', null, '4', 'http://xpay.exrick.cn', 'XPay支付系统', null, null, '2018-07-27 22:26:03', '2018-07-27 22:26:50'), ('61', '0', '0', null, '5', 'https://github.com/Exrick/x-boot', 'XBoot框架', null, null, '2018-07-27 22:26:21', '2018-07-27 22:26:47'), ('62', '0', '0', null, '6', 'https://www.bilibili.com/video/av23121122/', '宣传视频', null, null, '2018-07-27 22:26:44', '2018-07-27 22:26:44'), ('63', '0', '0', null, '7', 'https://github.com/Exrick/xmall', 'Github', null, null, '2018-07-27 22:27:22', '2018-07-27 22:27:26');
COMMIT;
-- ----------------------------
-- Table structure for `ums_admin`
-- ----------------------------
DROP TABLE IF EXISTS `ums_admin`;
CREATE TABLE `ums_admin` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`username` varchar(64) DEFAULT NULL,
`password` varchar(64) DEFAULT NULL,
`icon` varchar(500) DEFAULT NULL COMMENT '头像',
`email` varchar(100) DEFAULT NULL COMMENT '邮箱',
`nick_name` varchar(200) DEFAULT NULL COMMENT '昵称',
`note` varchar(500) DEFAULT NULL COMMENT '备注信息',
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
`login_time` datetime DEFAULT NULL COMMENT '最后登录时间',
`status` int(1) DEFAULT '1' COMMENT '帐号启用状态:0->禁用;1->启用',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COMMENT='后台用户表';
-- ----------------------------
-- Records of `ums_admin`
-- ----------------------------
BEGIN;
INSERT INTO `ums_admin` VALUES ('1', 'test', '202cb962ac59075b964b07152d234b70', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/timg.jpg', null, '测试账号', null, '2018-09-29 13:55:30', '2018-09-29 13:55:39', '1'), ('3', 'admin', 'e10adc3949ba59abbe56e057f20f883e', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20190129/170157_yIl3_1767531.jpg', 'admin@163.com', '系统管理员', '系统管理员', '2018-10-08 13:32:47', '2019-02-17 10:49:56', '1');
COMMIT;
-- ----------------------------
-- Table structure for `ums_admin_login_log`
-- ----------------------------
DROP TABLE IF EXISTS `ums_admin_login_log`;
CREATE TABLE `ums_admin_login_log` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`admin_id` bigint(20) DEFAULT NULL,
`create_time` datetime DEFAULT NULL,
`ip` varchar(64) DEFAULT NULL,
`address` varchar(100) DEFAULT NULL,
`user_agent` varchar(100) DEFAULT NULL COMMENT '浏览器登录类型',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=25 DEFAULT CHARSET=utf8 COMMENT='后台用户登录日志表';
-- ----------------------------
-- Records of `ums_admin_login_log`
-- ----------------------------
BEGIN;
INSERT INTO `ums_admin_login_log` VALUES ('5', '3', '2018-12-06 13:59:12', '0:0:0:0:0:0:0:1', null, null), ('6', '3', '2018-12-17 13:23:20', '0:0:0:0:0:0:0:1', null, null), ('7', '3', '2018-12-18 13:51:42', '0:0:0:0:0:0:0:1', null, null), ('8', '3', '2018-12-18 13:51:51', '0:0:0:0:0:0:0:1', null, null), ('9', '3', '2019-01-28 16:20:41', '0:0:0:0:0:0:0:1', null, null), ('10', '3', '2019-01-29 09:16:25', '0:0:0:0:0:0:0:1', null, null), ('11', '3', '2019-01-29 10:10:51', '0:0:0:0:0:0:0:1', null, null), ('12', '3', '2019-02-13 17:11:56', '0:0:0:0:0:0:0:1', null, null), ('13', '3', '2019-02-14 11:12:32', '0:0:0:0:0:0:0:1', null, null), ('14', '3', '2019-02-14 21:01:05', '0:0:0:0:0:0:0:1', null, null), ('15', '3', '2019-02-14 21:01:25', '0:0:0:0:0:0:0:1', null, null), ('16', '3', '2019-02-14 21:01:54', '0:0:0:0:0:0:0:1', null, null), ('17', '3', '2019-02-14 21:03:04', '0:0:0:0:0:0:0:1', null, null), ('18', '3', '2019-02-14 21:04:02', '0:0:0:0:0:0:0:1', null, null), ('19', '3', '2019-02-14 21:07:31', '0:0:0:0:0:0:0:1', null, null), ('20', '3', '2019-02-15 14:15:04', '0:0:0:0:0:0:0:1', null, null), ('21', '3', '2019-02-16 12:20:07', '0:0:0:0:0:0:0:1', null, null), ('22', '3', '2019-02-16 13:36:13', '0:0:0:0:0:0:0:1', null, null), ('23', '3', '2019-02-17 10:42:36', '0:0:0:0:0:0:0:1', null, null), ('24', '3', '2019-02-17 10:49:56', '0:0:0:0:0:0:0:1', null, null);
COMMIT;
-- ----------------------------
-- Table structure for `ums_admin_permission_relation`
-- ----------------------------
DROP TABLE IF EXISTS `ums_admin_permission_relation`;
CREATE TABLE `ums_admin_permission_relation` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`admin_id` bigint(20) DEFAULT NULL,
`permission_id` bigint(20) DEFAULT NULL,
`type` int(1) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='后台用户和权限关系表(除角色中定义的权限以外的加减权限)';
-- ----------------------------
-- Table structure for `ums_admin_role_relation`
-- ----------------------------
DROP TABLE IF EXISTS `ums_admin_role_relation`;
CREATE TABLE `ums_admin_role_relation` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`admin_id` bigint(20) DEFAULT NULL,
`role_id` bigint(20) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8 COMMENT='后台用户和角色关系表';
-- ----------------------------
-- Records of `ums_admin_role_relation`
-- ----------------------------
BEGIN;
INSERT INTO `ums_admin_role_relation` VALUES ('13', '3', '1'), ('15', '3', '2'), ('16', '3', '4');
COMMIT;
-- ----------------------------
-- Table structure for `ums_growth_change_history`
-- ----------------------------
DROP TABLE IF EXISTS `ums_growth_change_history`;
CREATE TABLE `ums_growth_change_history` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`member_id` bigint(20) DEFAULT NULL,
`create_time` datetime DEFAULT NULL,
`change_type` int(1) DEFAULT NULL COMMENT '改变类型:0->增加;1->减少',
`change_count` int(11) DEFAULT NULL COMMENT '积分改变数量',
`operate_man` varchar(100) DEFAULT NULL COMMENT '操作人员',
`operate_note` varchar(200) DEFAULT NULL COMMENT '操作备注',
`source_type` int(1) DEFAULT NULL COMMENT '积分来源:0->购物;1->管理员修改',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='成长值变化历史记录表';
-- ----------------------------
-- Records of `ums_growth_change_history`
-- ----------------------------
BEGIN;
INSERT INTO `ums_growth_change_history` VALUES ('1', '1', '2018-08-29 17:16:35', '0', '1000', 'test', '测试使用', '1');
COMMIT;
-- ----------------------------
-- Table structure for `ums_integration_change_history`
-- ----------------------------
DROP TABLE IF EXISTS `ums_integration_change_history`;
CREATE TABLE `ums_integration_change_history` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`member_id` bigint(20) DEFAULT NULL,
`create_time` datetime DEFAULT NULL,
`change_type` int(1) DEFAULT NULL COMMENT '改变类型:0->增加;1->减少',
`change_count` int(11) DEFAULT NULL COMMENT '积分改变数量',
`operate_man` varchar(100) DEFAULT NULL COMMENT '操作人员',
`operate_note` varchar(200) DEFAULT NULL COMMENT '操作备注',
`source_type` int(1) DEFAULT NULL COMMENT '积分来源:0->购物;1->管理员修改',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='积分变化历史记录表';
-- ----------------------------
-- Table structure for `ums_integration_consume_setting`
-- ----------------------------
DROP TABLE IF EXISTS `ums_integration_consume_setting`;
CREATE TABLE `ums_integration_consume_setting` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`deduction_per_amount` int(11) DEFAULT NULL COMMENT '每一元需要抵扣的积分数量',
`max_percent_per_order` int(11) DEFAULT NULL COMMENT '每笔订单最高抵用百分比',
`use_unit` int(11) DEFAULT NULL COMMENT '每次使用积分最小单位100',
`coupon_status` int(1) DEFAULT NULL COMMENT '是否可以和优惠券同用;0->不可以;1->可以',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='积分消费设置';
-- ----------------------------
-- Records of `ums_integration_consume_setting`
-- ----------------------------
BEGIN;
INSERT INTO `ums_integration_consume_setting` VALUES ('1', '100', '50', '100', '1');
COMMIT;
-- ----------------------------
-- Table structure for `ums_member`
-- ----------------------------
DROP TABLE IF EXISTS `ums_member`;
CREATE TABLE `ums_member` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`member_level_id` bigint(20) DEFAULT NULL,
`username` varchar(64) DEFAULT NULL COMMENT '用户名',
`password` varchar(64) DEFAULT NULL COMMENT '密码',
`nickname` varchar(64) DEFAULT NULL COMMENT '昵称',
`phone` varchar(64) DEFAULT NULL COMMENT '手机号码',
`status` int(1) DEFAULT NULL COMMENT '帐号启用状态:0->禁用;1->启用',
`create_time` datetime DEFAULT NULL COMMENT '注册时间',
`icon` varchar(500) DEFAULT NULL COMMENT '头像',
`gender` int(1) DEFAULT NULL COMMENT '性别:0->未知;1->男;2->女',
`birthday` date DEFAULT NULL COMMENT '生日',
`city` varchar(64) DEFAULT NULL COMMENT '所做城市',
`job` varchar(100) DEFAULT NULL COMMENT '职业',
`personalized_signature` varchar(200) DEFAULT NULL COMMENT '个性签名',
`source_type` int(1) DEFAULT NULL COMMENT '用户来源 1 小程序 2 公众号 3 页面',
`integration` int(11) DEFAULT NULL COMMENT '积分',
`growth` int(11) DEFAULT NULL COMMENT '成长值',
`luckey_count` int(11) DEFAULT NULL COMMENT '剩余抽奖次数',
`history_integration` int(11) DEFAULT NULL COMMENT '历史积分数量',
`avatar` varchar(255) DEFAULT NULL,
`weixin_openid` varchar(50) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `idx_username` (`username`),
UNIQUE KEY `idx_phone` (`phone`)
) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8 COMMENT='会员表';
-- ----------------------------
-- Records of `ums_member`
-- ----------------------------
BEGIN;
INSERT INTO `ums_member` VALUES ('1', '4', 'test', '202cb962ac59075b964b07152d234b70', 'windir', '18061581849', '1', '2018-08-02 10:35:44', null, '1', '2009-06-01', '上海', '学生', 'test', null, '5000', null, null, null, null, null), ('3', '4', 'windy', 'e10adc3949ba59abbe56e057f20f883e', 'windy', '18061581848', '1', '2018-08-03 16:46:38', null, null, null, null, null, null, null, null, null, null, null, null, null), ('4', '4', 'zhengsan', 'e10adc3949ba59abbe56e057f20f883e', 'zhengsan', '18061581847', '1', '2018-11-12 14:12:04', null, null, null, null, null, null, null, null, null, null, null, null, null), ('5', '4', 'lisi', 'e10adc3949ba59abbe56e057f20f883e', 'lisi', '18061581841', '1', '2018-11-12 14:12:38', null, null, null, null, null, null, null, null, null, null, null, null, null), ('6', '4', 'wangwu', 'e10adc3949ba59abbe56e057f20f883e', 'wangwu', '18061581842', '1', '2018-11-12 14:13:09', null, null, null, null, null, null, null, null, null, null, null, null, null), ('7', '4', 'lion', 'e10adc3949ba59abbe56e057f20f883e', 'lion', '18061581845', '1', '2018-11-12 14:21:39', null, null, null, null, null, null, null, null, null, null, null, null, null), ('8', '4', 'shari', 'e10adc3949ba59abbe56e057f20f883e', 'shari', '18061581844', '1', '2018-11-12 14:22:00', null, null, null, null, null, null, null, null, null, null, null, null, null), ('9', '4', 'aewen', 'e10adc3949ba59abbe56e057f20f883e', 'aewen', '18061581843', '1', '2018-11-12 14:22:55', null, null, null, null, null, null, null, null, null, null, null, null, null), ('17', '4', 'wxapplettmcyus5qz354', 'e10adc3949ba59abbe56e057f20f883e', '沈专', null, '1', '2019-02-17 11:16:58', 'https://wx.qlogo.cn/mmopen/vi_32/iaGr8vffqgqiaE3ibNzh9NN8ASiasYCxl4yA2dU7iaMdVjXJREBKCDR5Pr2IdN4lB9PvFlfLasib5rVxLxzHlhbAytDw/132', null, null, null, null, null, '1', null, null, null, null, null, 'oDIzz0M1TJ77dw46jXsawJqId84g');
COMMIT;
-- ----------------------------
-- Table structure for `ums_member_level`
-- ----------------------------
DROP TABLE IF EXISTS `ums_member_level`;
CREATE TABLE `ums_member_level` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`name` varchar(100) DEFAULT NULL,
`growth_point` int(11) DEFAULT NULL,
`default_status` int(1) DEFAULT NULL COMMENT '是否为默认等级:0->不是;1->是',
`free_freight_point` decimal(10,2) DEFAULT NULL COMMENT '免运费标准',
`comment_growth_point` int(11) DEFAULT NULL COMMENT '每次评价获取的成长值',
`priviledge_free_freight` int(1) DEFAULT NULL COMMENT '是否有免邮特权',
`priviledge_sign_in` int(1) DEFAULT NULL COMMENT '是否有签到特权',
`priviledge_comment` int(1) DEFAULT NULL COMMENT '是否有评论获奖励特权',
`priviledge_promotion` int(1) DEFAULT NULL COMMENT '是否有专享活动特权',
`priviledge_member_price` int(1) DEFAULT NULL COMMENT '是否有会员价格特权',
`priviledge_birthday` int(1) DEFAULT NULL COMMENT '是否有生日特权',
`note` varchar(200) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COMMENT='会员等级表';
-- ----------------------------
-- Records of `ums_member_level`
-- ----------------------------
BEGIN;
INSERT INTO `ums_member_level` VALUES ('1', '黄金会员', '1000', '0', '199.00', '5', '1', '1', '1', '1', '1', '1', null), ('2', '白金会员', '5000', '0', '99.00', '10', '1', '1', '1', '1', '1', '1', null), ('3', '钻石会员', '15000', '0', '69.00', '15', '1', '1', '1', '1', '1', '1', null), ('4', '普通会员', '1', '1', '199.00', '20', '1', '1', '1', '1', '0', '0', null);
COMMIT;
-- ----------------------------
-- Table structure for `ums_member_login_log`
-- ----------------------------
DROP TABLE IF EXISTS `ums_member_login_log`;
CREATE TABLE `ums_member_login_log` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`member_id` bigint(20) DEFAULT NULL,
`create_time` datetime DEFAULT NULL,
`ip` varchar(64) DEFAULT NULL,
`city` varchar(64) DEFAULT NULL,
`login_type` int(1) DEFAULT NULL COMMENT '登录类型:0->PC;1->android;2->ios;3->小程序',
`province` varchar(64) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='会员登录记录';
-- ----------------------------
-- Table structure for `ums_member_member_tag_relation`
-- ----------------------------
DROP TABLE IF EXISTS `ums_member_member_tag_relation`;
CREATE TABLE `ums_member_member_tag_relation` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`member_id` bigint(20) DEFAULT NULL,
`tag_id` bigint(20) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户和标签关系表';
-- ----------------------------
-- Table structure for `ums_member_product_category_relation`
-- ----------------------------
DROP TABLE IF EXISTS `ums_member_product_category_relation`;
CREATE TABLE `ums_member_product_category_relation` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`member_id` bigint(20) DEFAULT NULL,
`product_category_id` bigint(20) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='会员与产品分类关系表(用户喜欢的分类)';
-- ----------------------------
-- Table structure for `ums_member_receive_address`
-- ----------------------------
DROP TABLE IF EXISTS `ums_member_receive_address`;
CREATE TABLE `ums_member_receive_address` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`member_id` bigint(20) DEFAULT NULL,
`name` varchar(100) DEFAULT NULL COMMENT '收货人名称',
`phone_number` varchar(64) DEFAULT NULL,
`default_status` int(1) DEFAULT NULL COMMENT '是否为默认',
`post_code` varchar(100) DEFAULT NULL COMMENT '邮政编码',
`province` varchar(100) DEFAULT NULL COMMENT '省份/直辖市',
`city` varchar(100) DEFAULT NULL COMMENT '城市',
`region` varchar(100) DEFAULT NULL COMMENT '区',
`detail_address` varchar(128) DEFAULT NULL COMMENT '详细地址(街道)',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8 COMMENT='会员收货地址表';
-- ----------------------------
-- Records of `ums_member_receive_address`
-- ----------------------------
BEGIN;
INSERT INTO `ums_member_receive_address` VALUES ('1', '1', '大梨', '18033441849', '0', '518000', '广东省', '深圳市', '南山区', '科兴科学园'), ('3', '1', '大梨', '18033441849', '0', '518000', '广东省', '深圳市', '福田区', '清水河街道'), ('4', '5', '大梨', '18033441849', '1', '518000', '广东省', '深圳市', '福田区', '东晓街道'), ('6', '5', '123', '13146587766', '1', null, '', '', '', '3333'), ('7', '5', '张三', '020-81167888', '0', '510000', null, null, null, '新港中路397号'), ('8', '17', '张三', '020-81167888', '1', '510000', null, null, null, '新港中路397号');
COMMIT;
-- ----------------------------
-- Table structure for `ums_member_rule_setting`
-- ----------------------------
DROP TABLE IF EXISTS `ums_member_rule_setting`;
CREATE TABLE `ums_member_rule_setting` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`continue_sign_day` int(11) DEFAULT NULL COMMENT '连续签到天数',
`continue_sign_point` int(11) DEFAULT NULL COMMENT '连续签到赠送数量',
`consume_per_point` decimal(10,2) DEFAULT NULL COMMENT '每消费多少元获取1个点',
`low_order_amount` decimal(10,2) DEFAULT NULL COMMENT '最低获取点数的订单金额',
`max_point_per_order` int(11) DEFAULT NULL COMMENT '每笔订单最高获取点数',
`type` int(1) DEFAULT NULL COMMENT '类型:0->积分规则;1->成长值规则',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='会员积分成长规则表';
-- ----------------------------
-- Table structure for `ums_member_statistics_info`
-- ----------------------------
DROP TABLE IF EXISTS `ums_member_statistics_info`;
CREATE TABLE `ums_member_statistics_info` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`member_id` bigint(20) DEFAULT NULL,
`consume_amount` decimal(10,2) DEFAULT NULL COMMENT '累计消费金额',
`order_count` int(11) DEFAULT NULL COMMENT '订单数量',
`coupon_count` int(11) DEFAULT NULL COMMENT '优惠券数量',
`comment_count` int(11) DEFAULT NULL COMMENT '评价数',
`return_order_count` int(11) DEFAULT NULL COMMENT '退货数量',
`login_count` int(11) DEFAULT NULL COMMENT '登录次数',
`attend_count` int(11) DEFAULT NULL COMMENT '关注数量',
`fans_count` int(11) DEFAULT NULL COMMENT '粉丝数量',
`collect_product_count` int(11) DEFAULT NULL,
`collect_subject_count` int(11) DEFAULT NULL,
`collect_topic_count` int(11) DEFAULT NULL,
`collect_comment_count` int(11) DEFAULT NULL,
`invite_friend_count` int(11) DEFAULT NULL,
`recent_order_time` datetime DEFAULT NULL COMMENT '最后一次下订单时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='会员统计信息';
-- ----------------------------
-- Table structure for `ums_member_tag`
-- ----------------------------
DROP TABLE IF EXISTS `ums_member_tag`;
CREATE TABLE `ums_member_tag` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`name` varchar(100) DEFAULT NULL,
`finish_order_count` int(11) DEFAULT NULL COMMENT '自动打标签完成订单数量',
`finish_order_amount` decimal(10,2) DEFAULT NULL COMMENT '自动打标签完成订单金额',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户标签表';
-- ----------------------------
-- Table structure for `ums_member_task`
-- ----------------------------
DROP TABLE IF EXISTS `ums_member_task`;
CREATE TABLE `ums_member_task` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`name` varchar(100) DEFAULT NULL,
`growth` int(11) DEFAULT NULL COMMENT '赠送成长值',
`intergration` int(11) DEFAULT NULL COMMENT '赠送积分',
`type` int(1) DEFAULT NULL COMMENT '任务类型:0->新手任务;1->日常任务',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='会员任务表';
-- ----------------------------
-- Table structure for `ums_permission`
-- ----------------------------
DROP TABLE IF EXISTS `ums_permission`;
CREATE TABLE `ums_permission` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`pid` bigint(20) DEFAULT NULL COMMENT '父级权限id',
`name` varchar(100) DEFAULT NULL COMMENT '名称',
`value` varchar(200) DEFAULT NULL COMMENT '权限值',
`icon` varchar(500) DEFAULT NULL COMMENT '图标',
`type` int(1) DEFAULT NULL COMMENT '权限类型:0->目录;1->菜单;2->按钮(接口绑定权限)',
`uri` varchar(200) DEFAULT NULL COMMENT '前端资源路径',
`status` int(1) DEFAULT NULL COMMENT '启用状态;0->禁用;1->启用',
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
`sort` int(11) DEFAULT NULL COMMENT '排序',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8 COMMENT='后台用户权限表';
-- ----------------------------
-- Records of `ums_permission`
-- ----------------------------
BEGIN;
INSERT INTO `ums_permission` VALUES ('1', '0', '商品', null, null, '0', null, '1', '2018-09-29 16:15:14', '0'), ('2', '1', '商品列表', 'pms:product:read', null, '1', '/pms/product/index', '1', '2018-09-29 16:17:01', '0'), ('3', '1', '添加商品', 'pms:product:create', null, '1', '/pms/product/add', '1', '2018-09-29 16:18:51', '0'), ('4', '1', '商品分类', 'pms:productCategory:read', null, '1', '/pms/productCate/index', '1', '2018-09-29 16:23:07', '0'), ('5', '1', '商品类型', 'pms:productAttribute:read', null, '1', '/pms/productAttr/index', '1', '2018-09-29 16:24:43', '0'), ('6', '1', '品牌管理', 'pms:brand:read', null, '1', '/pms/brand/index', '1', '2018-09-29 16:25:45', '0'), ('7', '2', '编辑商品', 'pms:product:update', null, '2', '/pms/product/updateProduct', '1', '2018-09-29 16:34:23', '0'), ('8', '2', '删除商品', 'pms:product:delete', null, '2', '/pms/product/delete', '1', '2018-09-29 16:38:33', '0'), ('9', '4', '添加商品分类', 'pms:productCategory:create', null, '2', '/pms/productCate/create', '1', '2018-09-29 16:43:23', '0'), ('10', '4', '修改商品分类', 'pms:productCategory:update', null, '2', '/pms/productCate/update', '1', '2018-09-29 16:43:55', '0'), ('11', '4', '删除商品分类', 'pms:productCategory:delete', null, '2', '/pms/productAttr/delete', '1', '2018-09-29 16:44:38', '0'), ('12', '5', '添加商品类型', 'pms:productAttribute:create', null, '2', '/pms/productAttr/create', '1', '2018-09-29 16:45:25', '0'), ('13', '5', '修改商品类型', 'pms:productAttribute:update', null, '2', '/pms/productAttr/update', '1', '2018-09-29 16:48:08', '0'), ('14', '5', '删除商品类型', 'pms:productAttribute:delete', null, '2', '/pms/productAttr/delete', '1', '2018-09-29 16:48:44', '0'), ('15', '6', '添加品牌', 'pms:brand:create', null, '2', '/pms/brand/add', '1', '2018-09-29 16:49:34', '0'), ('16', '6', '修改品牌', 'pms:brand:update', null, '2', '/pms/brand/update', '1', '2018-09-29 16:50:55', '0'), ('17', '6', '删除品牌', 'pms:brand:delete', null, '2', '/pms/brand/delete', '1', '2018-09-29 16:50:59', '0'), ('18', '0', '首页', null, null, '0', null, '1', '2018-09-29 16:51:57', '0');
COMMIT;
-- ----------------------------
-- Table structure for `ums_role`
-- ----------------------------
DROP TABLE IF EXISTS `ums_role`;
CREATE TABLE `ums_role` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`name` varchar(100) DEFAULT NULL COMMENT '名称',
`description` varchar(500) DEFAULT NULL COMMENT '描述',
`admin_count` int(11) DEFAULT NULL COMMENT '后台用户数量',
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
`status` int(1) DEFAULT '1' COMMENT '启用状态:0->禁用;1->启用',
`sort` int(11) DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COMMENT='后台用户角色表';
-- ----------------------------
-- Records of `ums_role`
-- ----------------------------
BEGIN;
INSERT INTO `ums_role` VALUES ('1', '商品管理员', '商品管理员', '0', '2018-09-30 15:46:11', '1', '0'), ('2', '商品分类管理员', '商品分类管理员', '0', '2018-09-30 15:53:45', '1', '0'), ('3', '商品类型管理员', '商品类型管理员', '0', '2018-09-30 15:53:56', '1', '0'), ('4', '品牌管理员', '品牌管理员', '0', '2018-09-30 15:54:12', '1', '0');
COMMIT;
-- ----------------------------
-- Table structure for `ums_role_permission_relation`
-- ----------------------------
DROP TABLE IF EXISTS `ums_role_permission_relation`;
CREATE TABLE `ums_role_permission_relation` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`role_id` bigint(20) DEFAULT NULL,
`permission_id` bigint(20) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8 COMMENT='后台用户角色和权限关系表';
-- ----------------------------
-- Records of `ums_role_permission_relation`
-- ----------------------------
BEGIN;
INSERT INTO `ums_role_permission_relation` VALUES ('1', '1', '1'), ('2', '1', '2'), ('3', '1', '3'), ('4', '1', '7'), ('5', '1', '8'), ('6', '2', '4'), ('7', '2', '9'), ('8', '2', '10'), ('9', '2', '11'), ('10', '3', '5'), ('11', '3', '12'), ('12', '3', '13'), ('13', '3', '14'), ('14', '4', '6'), ('15', '4', '15'), ('16', '4', '16'), ('17', '4', '17');
COMMIT;
SET FOREIGN_KEY_CHECKS = 1;
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/wocadi/mall-dubbo.git
git@gitee.com:wocadi/mall-dubbo.git
wocadi
mall-dubbo
mall-dubbo
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385