Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wwwanlingxiao
mall
Commits
ea516e85
Commit
ea516e85
authored
Jun 07, 2018
by
zhh
Browse files
添加测试sql文件
parent
1d7e490d
Changes
1
Hide whitespace changes
Inline
Side-by-side
document/sql/mall.sql
0 → 100644
View file @
ea516e85
/*
Navicat MySQL Data Transfer
Source Server : localhost
Source Server Version : 50719
Source Host : localhost:3306
Source Database : mall
Target Server Type : MYSQL
Target Server Version : 50719
File Encoding : 65001
Date: 2018-06-07 17:20:57
*/
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
=
'帮助表'
;
-- ----------------------------
-- Records of cms_help
-- ----------------------------
-- ----------------------------
-- 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
=
'帮助分类表'
;
-- ----------------------------
-- Records of cms_help_category
-- ----------------------------
-- ----------------------------
-- 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
=
'用户举报表'
;
-- ----------------------------
-- Records of cms_member_report
-- ----------------------------
-- ----------------------------
-- 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
-- ----------------------------
INSERT
INTO
`cms_prefrence_area`
VALUES
(
'1'
,
'让音质更出众'
,
'音质不打折 完美现场感'
,
null
,
null
,
'1'
);
INSERT
INTO
`cms_prefrence_area`
VALUES
(
'2'
,
'让音质更出众22'
,
'让音质更出众22'
,
null
,
null
,
null
);
INSERT
INTO
`cms_prefrence_area`
VALUES
(
'3'
,
'让音质更出众33'
,
null
,
null
,
null
,
null
);
INSERT
INTO
`cms_prefrence_area`
VALUES
(
'4'
,
'让音质更出众44'
,
null
,
null
,
null
,
null
);
-- ----------------------------
-- 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
=
25
DEFAULT
CHARSET
=
utf8
COMMENT
=
'优选专区和产品关系表'
;
-- ----------------------------
-- Records of cms_prefrence_area_product_relation
-- ----------------------------
INSERT
INTO
`cms_prefrence_area_product_relation`
VALUES
(
'1'
,
'1'
,
'12'
);
INSERT
INTO
`cms_prefrence_area_product_relation`
VALUES
(
'2'
,
'1'
,
'13'
);
INSERT
INTO
`cms_prefrence_area_product_relation`
VALUES
(
'3'
,
'1'
,
'14'
);
INSERT
INTO
`cms_prefrence_area_product_relation`
VALUES
(
'4'
,
'1'
,
'18'
);
INSERT
INTO
`cms_prefrence_area_product_relation`
VALUES
(
'5'
,
'1'
,
'7'
);
INSERT
INTO
`cms_prefrence_area_product_relation`
VALUES
(
'6'
,
'2'
,
'7'
);
INSERT
INTO
`cms_prefrence_area_product_relation`
VALUES
(
'7'
,
'1'
,
'22'
);
INSERT
INTO
`cms_prefrence_area_product_relation`
VALUES
(
'24'
,
'1'
,
'23'
);
-- ----------------------------
-- 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
'转发数'
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
11
DEFAULT
CHARSET
=
utf8
COMMENT
=
'专题表'
;
-- ----------------------------
-- Records of cms_subject
-- ----------------------------
INSERT
INTO
`cms_subject`
VALUES
(
'1'
,
'1'
,
'polo衬衫的也时尚'
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
);
INSERT
INTO
`cms_subject`
VALUES
(
'2'
,
'2'
,
'大牌手机低价秒'
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
);
INSERT
INTO
`cms_subject`
VALUES
(
'3'
,
'2'
,
'晓龙845新品上市'
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
);
INSERT
INTO
`cms_subject`
VALUES
(
'4'
,
'1'
,
'夏天应该穿什么'
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
);
INSERT
INTO
`cms_subject`
VALUES
(
'5'
,
'1'
,
'夏季精选'
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
);
INSERT
INTO
`cms_subject`
VALUES
(
'6'
,
'2'
,
'品牌手机降价'
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
);
-- ----------------------------
-- 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
=
3
DEFAULT
CHARSET
=
utf8
COMMENT
=
'专题分类表'
;
-- ----------------------------
-- Records of cms_subject_category
-- ----------------------------
INSERT
INTO
`cms_subject_category`
VALUES
(
'1'
,
'服装专题'
,
null
,
null
,
null
,
null
);
INSERT
INTO
`cms_subject_category`
VALUES
(
'2'
,
'手机专题'
,
null
,
null
,
null
,
null
);
-- ----------------------------
-- 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
=
'专题评论表'
;
-- ----------------------------
-- Records of cms_subject_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
=
32
DEFAULT
CHARSET
=
utf8
COMMENT
=
'专题商品关系表'
;
-- ----------------------------
-- Records of cms_subject_product_relation
-- ----------------------------
INSERT
INTO
`cms_subject_product_relation`
VALUES
(
'1'
,
'1'
,
'12'
);
INSERT
INTO
`cms_subject_product_relation`
VALUES
(
'2'
,
'1'
,
'13'
);
INSERT
INTO
`cms_subject_product_relation`
VALUES
(
'3'
,
'1'
,
'14'
);
INSERT
INTO
`cms_subject_product_relation`
VALUES
(
'4'
,
'1'
,
'18'
);
INSERT
INTO
`cms_subject_product_relation`
VALUES
(
'5'
,
'1'
,
'7'
);
INSERT
INTO
`cms_subject_product_relation`
VALUES
(
'6'
,
'2'
,
'7'
);
INSERT
INTO
`cms_subject_product_relation`
VALUES
(
'7'
,
'1'
,
'22'
);
INSERT
INTO
`cms_subject_product_relation`
VALUES
(
'23'
,
'2'
,
'26'
);
INSERT
INTO
`cms_subject_product_relation`
VALUES
(
'24'
,
'3'
,
'26'
);
INSERT
INTO
`cms_subject_product_relation`
VALUES
(
'25'
,
'6'
,
'26'
);
INSERT
INTO
`cms_subject_product_relation`
VALUES
(
'29'
,
'1'
,
'23'
);
INSERT
INTO
`cms_subject_product_relation`
VALUES
(
'30'
,
'4'
,
'23'
);
INSERT
INTO
`cms_subject_product_relation`
VALUES
(
'31'
,
'5'
,
'23'
);
-- ----------------------------
-- 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
=
'话题表'
;
-- ----------------------------
-- Records of cms_topic
-- ----------------------------
-- ----------------------------
-- 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
=
'话题分类表'
;
-- ----------------------------
-- Records of cms_topic_category
-- ----------------------------
-- ----------------------------
-- 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
=
'专题评论表'
;
-- ----------------------------
-- Records of cms_topic_comment
-- ----------------------------
-- ----------------------------
-- 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
,
`city`
varchar
(
64
)
DEFAULT
NULL
,
`region`
varchar
(
64
)
DEFAULT
NULL
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
COMMENT
=
'公司收发货地址表'
;
-- ----------------------------
-- Records of oms_company_address
-- ----------------------------
-- ----------------------------
-- 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
)
DEFAULT
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
'订单总金额'
,
`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
)
DEFAULT
NULL
COMMENT
'收货人姓名'
,
`receiver_phone`
varchar
(
32
)
DEFAULT
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->已确认'
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
COMMENT
=
'订单表'
;
-- ----------------------------
-- Records of oms_order
-- ----------------------------
-- ----------------------------
-- 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
,
`proudct_pic`
varchar
(
500
)
DEFAULT
NULL
,
`product_name`
varchar
(
200
)
DEFAULT
NULL
,
`product_brand`
varchar
(
200
)
DEFAULT
NULL
,
`product_sn`
varchar
(
64
)
DEFAULT
NULL
,
`product_amount`
decimal
(
10
,
2
)
DEFAULT
NULL
,
`product_count`
int
(
11
)
DEFAULT
NULL
COMMENT
'购买数量'
,
`product_real_amount`
decimal
(
10
,
2
)
DEFAULT
NULL
COMMENT
'该商品经过优惠后的分解金额'
,
`sp1`
varchar
(
100
)
DEFAULT
NULL
COMMENT
'商品的销售属性'
,
`sp2`
varchar
(
100
)
DEFAULT
NULL
,
`sp3`
varchar
(
100
)
DEFAULT
NULL
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
COMMENT
=
'订单中所包含的商品'
;
-- ----------------------------
-- Records of oms_order_item
-- ----------------------------
-- ----------------------------
-- 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
DEFAULT
CHARSET
=
utf8
COMMENT
=
'订单操作历史记录'
;
-- ----------------------------
-- Records of oms_order_operate_history
-- ----------------------------
-- ----------------------------
-- 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
,
`order_sn`
varchar
(
64
)
DEFAULT
NULL
COMMENT
'订单编号'
,
`create_time`
datetime
DEFAULT
NULL
,
`member_username`
varchar
(
64
)
DEFAULT
NULL
,
`return_amount`
decimal
(
10
,
2
)
DEFAULT
NULL
COMMENT
'退款金额'
,
`return_name`
varchar
(
100
)
DEFAULT
NULL
,
`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
,
`product_name`
varchar
(
200
)
DEFAULT
NULL
,
`brand_name`
varchar
(
200
)
DEFAULT
NULL
,
`product_attr`
varchar
(
500
)
DEFAULT
NULL
COMMENT
'商品销售属性:颜色:红色;尺码:xl;'
,
`product_count`
int
(
11
)
DEFAULT
NULL
COMMENT
'退货数量'
,
`reason`
varchar
(
200
)
DEFAULT
NULL
COMMENT
'原因'
,
`description`
varchar
(
500
)
DEFAULT
NULL
COMMENT
'描述'
,
`proof_pics`
varchar
(
1000
)
DEFAULT
NULL
COMMENT
'凭证图片,以逗号隔开'
,
`return_post_amount`
decimal
(
10
,
2
)
DEFAULT
NULL
COMMENT
'要退的邮费'
,
`return_post_status`
int
(
1
)
DEFAULT
NULL
COMMENT
'是否退邮费:0->不退;1->退'
,
`confirm_return_amount`
decimal
(
10
,
2
)
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
,
`receive_note`
varchar
(
500
)
DEFAULT
NULL
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
COMMENT
=
'订单退货申请'
;
-- ----------------------------
-- Records of oms_order_return_apply
-- ----------------------------
-- ----------------------------
-- 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->启用'
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
COMMENT
=
'退货原因表'
;
-- ----------------------------
-- Records of oms_order_return_reason
-- ----------------------------
-- ----------------------------
-- 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
DEFAULT
CHARSET
=
utf8
COMMENT
=
'订单设置表'
;
-- ----------------------------
-- Records of oms_order_setting
-- ----------------------------
-- ----------------------------
-- 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
=
'相册表'
;
-- ----------------------------
-- Records of pms_album
-- ----------------------------
-- ----------------------------
-- 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
=
'画册图片表'
;
-- ----------------------------
-- Records of pms_album_pic
-- ----------------------------
-- ----------------------------
-- 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
=
58
DEFAULT
CHARSET
=
utf8
COMMENT
=
'品牌表'
;
-- ----------------------------
-- Records of pms_brand
-- ----------------------------
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的故事'
);
INSERT
INTO
`pms_brand`
VALUES
(
'2'
,
'三星'
,
'S'
,
'100'
,
'1'
,
'1'
,
'100'
,
'100'
,
'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/timg (1).jpg'
,
null
,
'三星的故事'
);
INSERT
INTO
`pms_brand`
VALUES
(
'3'
,
'华为'
,
'H'
,
'100'
,
'1'
,
'0'
,
'100'
,
'100'
,
'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/timg (2).jpg'
,
null
,
'Victoria
\'
s Secret的故事'
);
INSERT
INTO
`pms_brand`
VALUES
(
'4'
,
'格力'
,
'G'
,
'30'
,
'1'
,
'0'
,
'100'
,
'100'
,
'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/timg (3).jpg'
,
null
,
'Victoria
\'
s Secret的故事'
);
INSERT
INTO
`pms_brand`
VALUES
(
'5'
,
'方太'
,
'F'
,
'20'
,
'1'
,
'0'
,
'100'
,
'100'
,
'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/timg (4).jpg'
,
null
,
'Victoria
\'
s Secret的故事'
);
INSERT
INTO
`pms_brand`
VALUES
(
'6'
,
'小米手机'
,
'M'
,
'500'
,
'1'
,
'1'
,
'100'
,
'100'
,
'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180518/5a912944N474afb7a.png'
,
'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180518/5afd7778Nf7800b75.jpg'
,
'小米手机的故事'
);
INSERT
INTO
`pms_brand`
VALUES
(
'21'
,
'OPPO'
,
'O'
,
'0'
,
'1'
,
'1'
,
null
,
null
,
'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/timg(6).jpg'
,
''
,
'string'
);
INSERT
INTO
`pms_brand`
VALUES
(
'49'
,
'七匹狼'
,
'S'
,
'200'
,
'1'
,
'0'
,
null
,
null
,
'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180518/1522738681.jpg'
,
null
,
'BOOB的故事'
);
INSERT
INTO
`pms_brand`
VALUES
(
'50'
,
'海澜之家'
,
'H'
,
'200'
,
'1'
,
'1'
,
null
,
null
,
'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/LOGO1024.png'
,
''
,
'海澜之家的故事'
);
INSERT
INTO
`pms_brand`
VALUES
(
'51'
,
'苹果'
,
'A'
,
'200'
,
'1'
,
'1'
,
null
,
null
,
'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/timg.jpg'
,
null
,
'苹果的故事'
);
-- ----------------------------
-- 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
=
'商品评价表'
;
-- ----------------------------
-- Records of pms_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
=
'产品评价回复表'
;
-- ----------------------------
-- Records of pms_comment_replay
-- ----------------------------
-- ----------------------------
-- 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
=
'运费模版'
;
-- ----------------------------
-- Records of pms_feight_template
-- ----------------------------
-- ----------------------------
-- 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
=
115
DEFAULT
CHARSET
=
utf8
COMMENT
=
'商品会员价格表'
;
-- ----------------------------
-- Records of pms_member_price
-- ----------------------------
INSERT
INTO
`pms_member_price`
VALUES
(
'26'
,
'7'
,
'1'
,
'500.00'
,
null
);
INSERT
INTO
`pms_member_price`
VALUES
(
'27'
,
'8'
,
'1'
,
'500.00'
,
null
);
INSERT
INTO
`pms_member_price`
VALUES
(
'28'
,
'9'
,
'1'
,
'500.00'
,
null
);
INSERT
INTO
`pms_member_price`
VALUES
(
'29'
,
'10'
,
'1'
,
'500.00'
,
null
);
INSERT
INTO
`pms_member_price`
VALUES
(
'30'
,
'11'
,
'1'
,
'500.00'
,
null
);
INSERT
INTO
`pms_member_price`
VALUES
(
'31'
,
'12'
,
'1'
,
'500.00'
,
null
);
INSERT
INTO
`pms_member_price`
VALUES
(
'32'
,
'13'
,
'1'
,
'500.00'
,
null
);
INSERT
INTO
`pms_member_price`
VALUES
(
'33'
,
'14'
,
'1'
,
'500.00'
,
null
);
INSERT
INTO
`pms_member_price`
VALUES
(
'37'
,
'18'
,
'1'
,
'500.00'
,
null
);
INSERT
INTO
`pms_member_price`
VALUES
(
'44'
,
'7'
,
'2'
,
'480.00'
,
null
);
INSERT
INTO
`pms_member_price`
VALUES
(
'45'
,
'7'
,
'3'
,
'450.00'
,
null
);
INSERT
INTO
`pms_member_price`
VALUES
(
'52'
,
'22'
,
'1'
,
null
,
null
);
INSERT
INTO
`pms_member_price`
VALUES
(
'53'
,
'22'
,
'2'
,
null
,
null
);
INSERT
INTO
`pms_member_price`
VALUES
(
'54'
,
'22'
,
'3'
,
null
,
null
);
INSERT
INTO
`pms_member_price`
VALUES
(
'58'
,
'24'
,
'1'
,
null
,
null
);
INSERT
INTO
`pms_member_price`
VALUES
(
'59'
,
'24'
,
'2'
,
null
,
null
);
INSERT
INTO
`pms_member_price`
VALUES
(
'60'
,
'24'
,
'3'
,
null
,
null
);
INSERT
INTO
`pms_member_price`
VALUES
(
'106'
,
'26'
,
'1'
,
null
,
'黄金会员'
);
INSERT
INTO
`pms_member_price`
VALUES
(
'107'
,
'26'
,
'2'
,
null
,
'白金会员'
);
INSERT
INTO
`pms_member_price`
VALUES
(
'108'
,
'26'
,
'3'
,
null
,
'钻石会员'
);
INSERT
INTO
`pms_member_price`
VALUES
(
'112'
,
'23'
,
'1'
,
'88.00'
,
'黄金会员'
);
INSERT
INTO
`pms_member_price`
VALUES
(
'113'
,
'23'
,
'2'
,
'88.00'
,
'白金会员'
);
INSERT
INTO
`pms_member_price`
VALUES
(
'114'
,
'23'
,
'3'
,
'66.00'
,
'钻石会员'
);
-- ----------------------------
-- 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
,
`flash_promotion_id`
int
(
11
)
DEFAULT
NULL
COMMENT
'限时购id'
,
`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
NULL
COMMENT
'赠送的成长值'
,
`gift_point`
int
(
11
)
DEFAULT
NULL
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
'移动端网页详情'
,
`flash_promotion_price`
decimal
(
10
,
2
)
DEFAULT
NULL
COMMENT
'限时购价格'
,
`flash_promotion_count`
int
(
11
)
DEFAULT
NULL
COMMENT
'限时购数量'
,
`flash_promotion_sort`
int
(
11
)
DEFAULT
NULL
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->使用满减价格'
,
`brand_name`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'品牌名称'
,
`product_category_name`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'商品分类名称'
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
27
DEFAULT
CHARSET
=
utf8
COMMENT
=
'商品信息'
;
-- ----------------------------
-- Records of pms_product
-- ----------------------------
INSERT
INTO
`pms_product`
VALUES
(
'1'
,
'1'
,
'7'
,
'0'
,
'0'
,
'0'
,
'银色星芒刺绣网纱底裤'
,
'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180522/web.png'
,
'No86577'
,
'0'
,
'1'
,
'1'
,
'1'
,
'1'
,
'100'
,
'0'
,
'100.00'
,
null
,
null
,
'100'
,
null
,
'111'
,
'111'
,
'120.00'
,
'100'
,
'20'
,
'件'
,
'1000.00'
,
'0'
,
null
,
'银色星芒刺绣网纱底裤'
,
'银色星芒刺绣网纱底裤'
,
null
,
'银色星芒刺绣网纱底裤'
,
'银色星芒刺绣网纱底裤'
,
'银色星芒刺绣网纱底裤'
,
'银色星芒刺绣网纱底裤'
,
null
,
null
,
null
,
null
,
null
,
null
,
'0'
,
'万和'
,
'外套'
);
INSERT
INTO
`pms_product`
VALUES
(
'2'
,
'1'
,
'7'
,
'0'
,
'0'
,
'0'
,
'银色星芒刺绣网纱底裤2'
,
'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180522/web.png'
,
'No86578'
,
'0'
,
'1'
,
'1'
,
'1'
,
'1'
,
'1'
,
'0'
,
'100.00'
,
null
,
null
,
'100'
,
null
,
'111'
,
'111'
,
'120.00'
,
'100'
,
'20'
,
'件'
,
'1000.00'
,
'0'
,
null
,
'银色星芒刺绣网纱底裤2'
,
'银色星芒刺绣网纱底裤'
,
null
,
'银色星芒刺绣网纱底裤'
,
'银色星芒刺绣网纱底裤'
,
'银色星芒刺绣网纱底裤'
,
'银色星芒刺绣网纱底裤'
,
null
,
null
,
null
,
null
,
null
,
null
,
'0'
,
'万和'
,
'外套'
);
INSERT
INTO
`pms_product`
VALUES
(
'3'
,
'1'
,
'7'
,
'0'
,
'0'
,
'0'
,
'银色星芒刺绣网纱底裤3'
,
'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180522/web.png'
,
'No86579'
,
'0'
,
'1'
,
'1'
,
'1'
,
'1'
,
'1'
,
'0'
,
'100.00'
,
null
,
null
,
'100'
,
null
,
'111'
,
'111'
,
'120.00'
,
'100'
,
'20'
,
'件'
,
'1000.00'
,
'0'
,
null
,
'银色星芒刺绣网纱底裤3'
,
'银色星芒刺绣网纱底裤'
,
null
,
'银色星芒刺绣网纱底裤'
,
'银色星芒刺绣网纱底裤'
,
'银色星芒刺绣网纱底裤'
,
'银色星芒刺绣网纱底裤'
,
null
,
null
,
null
,
null
,
null
,
null
,
'0'
,
'万和'
,
'外套'
);
INSERT
INTO
`pms_product`
VALUES
(
'4'
,
'1'
,
'1'
,
'0'
,
'0'
,
'0'
,
'银色星芒刺绣网纱底裤4'
,
'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180522/web.png'
,
'No86580'
,
'0'
,
'1'
,
'1'
,
'1'
,
'1'
,
'1'
,
'0'
,
'100.00'
,
null
,
null
,
'100'
,
null
,
'111'
,
'111'
,
'120.00'
,
'100'
,
'20'
,
'件'
,
'1000.00'
,
'0'
,
null
,
'银色星芒刺绣网纱底裤4'
,
'银色星芒刺绣网纱底裤'
,
null
,
'银色星芒刺绣网纱底裤'
,
'银色星芒刺绣网纱底裤'
,
'银色星芒刺绣网纱底裤'
,
'银色星芒刺绣网纱底裤'
,
null
,
null
,
null
,
null
,
null
,
null
,
'0'
,
'万和'
,
'服装'
);
INSERT
INTO
`pms_product`
VALUES
(
'5'
,
'1'
,
'1'
,
'0'
,
'0'
,
'0'
,
'银色星芒刺绣网纱底裤5'
,
'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180522/web.png'
,
'No86581'
,
'0'
,
'0'
,
'1'
,
'1'
,
'1'
,
'1'
,
'0'
,
'100.00'
,
null
,
null
,
'100'
,
null
,
'111'
,
'111'
,
'120.00'
,
'100'
,
'20'
,
'件'
,
'1000.00'
,
'0'
,
null
,
'银色星芒刺绣网纱底裤5'
,
'银色星芒刺绣网纱底裤'
,
null
,
'银色星芒刺绣网纱底裤'
,
'银色星芒刺绣网纱底裤'
,
'银色星芒刺绣网纱底裤'
,
'银色星芒刺绣网纱底裤'
,
null
,
null
,
null
,
null
,
null
,
null
,
'0'
,
'万和'
,
'服装'
);
INSERT
INTO
`pms_product`
VALUES
(
'6'
,
'1'
,
'1'
,
'0'
,
'0'
,
'0'
,
'银色星芒刺绣网纱底裤6'
,
'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180522/web.png'
,
'No86582'
,
'0'
,
'1'
,
'1'
,
'1'
,
'1'
,
'1'
,
'0'
,
'100.00'
,
null
,
null
,
'100'
,
null
,
'111'
,
'111'
,
'120.00'
,
'100'
,
'20'
,
'件'
,
'1000.00'
,
'0'
,
null
,
'银色星芒刺绣网纱底裤6'
,
'银色星芒刺绣网纱底裤'
,
null
,
'银色星芒刺绣网纱底裤'
,
'银色星芒刺绣网纱底裤'
,
'银色星芒刺绣网纱底裤'
,
'银色星芒刺绣网纱底裤'
,
null
,
null
,
null
,
null
,
null
,
null
,
'0'
,
'万和'
,
'服装'
);
INSERT
INTO
`pms_product`
VALUES
(
'7'
,
'1'
,
'1'
,
'0'
,
'1'
,
'0'
,
'女式超柔软拉毛运动开衫'
,
'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'
,
null
,
'100'
,
'0'
,
'匠心剪裁,垂感质地'
,
'匠心剪裁,垂感质地'
,
'299.00'
,
'100'
,
'0'
,
'件'
,
'0.00'
,
'0'
,
'string'
,
'女式超柔软拉毛运动开衫'
,
'string'
,
'string'
,
'string'
,
'string'
,
'string'
,
'string'
,
'0.00'
,
'0'
,
'0'
,
'2018-04-26 10:41:03'
,
'2018-04-26 10:41:03'
,
'0'
,
'0'
,
'万和'
,
'服装'
);
INSERT
INTO
`pms_product`
VALUES
(
'8'
,
'1'
,
'1'
,
'0'
,
'1'
,
'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'
,
null
,
'100'
,
'0'
,
'匠心剪裁,垂感质地'
,
'匠心剪裁,垂感质地'
,
'299.00'
,
'100'
,
'0'
,
'件'
,
'0.00'
,
'0'
,
'string'
,
'女式超柔软拉毛运动开衫'
,
'string'
,
'string'
,
'string'
,
'string'
,
'string'
,
'string'
,
'0.00'
,
'0'
,
'0'
,
'2018-04-26 10:41:03'
,
'2018-04-26 10:41:03'
,
'0'
,
'0'
,
'万和'
,
'服装'
);
INSERT
INTO
`pms_product`
VALUES
(
'9'
,
'1'
,
'1'
,
'0'
,
'1'
,
'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'
,
null
,
'100'
,
'0'
,
'匠心剪裁,垂感质地'
,
'匠心剪裁,垂感质地'
,
'299.00'
,
'100'
,
'0'
,
'件'
,
'0.00'
,
'0'
,
'string'
,
'女式超柔软拉毛运动开衫'
,
'string'
,
'string'
,
'string'
,
'string'
,
'string'
,
'string'
,
'0.00'
,
'0'
,
'0'
,
'2018-04-26 10:41:03'
,
'2018-04-26 10:41:03'
,
'0'
,
'0'
,
'万和'
,
'服装'
);
INSERT
INTO
`pms_product`
VALUES
(
'10'
,
'1'
,
'1'
,
'0'
,
'1'
,
'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'
,
null
,
'100'
,
'0'
,
'匠心剪裁,垂感质地'
,
'匠心剪裁,垂感质地'
,
'299.00'
,
'100'
,
'0'
,
'件'
,
'0.00'
,
'0'
,
'string'
,
'女式超柔软拉毛运动开衫'
,
'string'
,
'string'
,
'string'
,
'string'
,
'string'
,
'string'
,
'0.00'
,
'0'
,
'0'
,
'2018-04-26 10:41:03'
,
'2018-04-26 10:41:03'
,
'0'
,
'0'
,
'万和'
,
'服装'
);
INSERT
INTO
`pms_product`
VALUES
(
'11'
,
'1'
,
'1'
,
'0'
,
'1'
,
'0'
,
'女式超柔软拉毛运动开衫1'
,
'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'
,
null
,
'100'
,
'0'
,
'匠心剪裁,垂感质地'
,
'匠心剪裁,垂感质地'
,
'299.00'
,
'100'
,
'0'
,
'件'
,
'0.00'
,
'0'
,
'string'
,
'女式超柔软拉毛运动开衫'
,
'string'
,
'string'
,
'string'
,
'string'
,
'string'
,
'string'
,
'0.00'
,
'0'
,
'0'
,
'2018-04-26 10:41:03'
,
'2018-04-26 10:41:03'
,
'0'
,
'0'
,
'万和'
,
'服装'
);
INSERT
INTO
`pms_product`
VALUES
(
'12'
,
'1'
,
'1'
,
'0'
,
'1'
,
'0'
,
'女式超柔软拉毛运动开衫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'
,
null
,
'100'
,
'0'
,
'匠心剪裁,垂感质地'
,
'匠心剪裁,垂感质地'
,
'299.00'
,
'100'
,
'0'
,
'件'
,
'0.00'
,
'0'
,
'string'
,
'女式超柔软拉毛运动开衫'
,
'string'
,
'string'
,
'string'
,
'string'
,
'string'
,
'string'
,
'0.00'
,
'0'
,
'0'
,
'2018-04-26 10:41:03'
,
'2018-04-26 10:41:03'
,
'0'
,
'0'
,
'万和'
,
'服装'
);
INSERT
INTO
`pms_product`
VALUES
(
'13'
,
'1'
,
'1'
,
'0'
,
'1'
,
'0'
,
'女式超柔软拉毛运动开衫3'
,
'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'
,
null
,
'100'
,
'0'
,
'匠心剪裁,垂感质地'
,
'匠心剪裁,垂感质地'
,
'299.00'
,
'100'
,
'0'
,
'件'
,
'0.00'
,
'0'
,
'string'
,
'女式超柔软拉毛运动开衫'
,
'string'
,
'string'
,
'string'
,
'string'
,
'string'
,
'string'
,
'0.00'
,
'0'
,
'0'
,
'2018-04-26 10:41:03'
,
'2018-04-26 10:41:03'
,
'0'
,
'0'
,
'万和'
,
'服装'
);
INSERT
INTO
`pms_product`
VALUES
(
'14'
,
'1'
,
'1'
,
'0'
,
'1'
,
'0'
,
'女式超柔软拉毛运动开衫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'
,
null
,
'100'
,
'0'
,
'匠心剪裁,垂感质地'
,
'匠心剪裁,垂感质地'
,
'299.00'
,
'100'
,
'0'
,
'件'
,
'0.00'
,
'0'
,
'string'
,
'女式超柔软拉毛运动开衫'
,
'string'
,
'string'
,
'string'
,
'string'
,
'string'
,
'string'
,
'0.00'
,
'0'
,
'0'
,
'2018-04-26 10:41:03'
,
'2018-04-26 10:41:03'
,
'0'
,
'0'
,
'万和'
,
'服装'
);
INSERT
INTO
`pms_product`
VALUES
(
'18'
,
'1'
,
'1'
,
'0'
,
'1'
,
'0'
,
'女式超柔软拉毛运动开衫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'
,
null
,
'100'
,
'0'
,
'匠心剪裁,垂感质地'
,
'匠心剪裁,垂感质地'
,
'299.00'
,
'100'
,
'0'
,
'件'
,
'0.00'
,
'0'
,
'string'
,
'女式超柔软拉毛运动开衫'
,
'string'
,
'string'
,
'string'
,
'string'
,
'string'
,
'string'
,
'0.00'
,
'0'
,
'0'
,
'2018-04-26 10:41:03'
,
'2018-04-26 10:41:03'
,
'0'
,
'0'
,
'万和'
,
'服装'
);
INSERT
INTO
`pms_product`
VALUES
(
'22'
,
'6'
,
'7'
,
'0'
,
'1'
,
'0'
,
'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'
,
'0'
,
'0'
,
''
,
'0.00'
,
'1'
,
'1,2'
,
''
,
''
,
''
,
''
,
''
,
''
,
''
,
'0.00'
,
'0'
,
'0'
,
null
,
null
,
'0'
,
'0'
,
''
,
'外套'
);
INSERT
INTO
`pms_product`
VALUES
(
'23'
,
'6'
,
'19'
,
'0'
,
'1'
,
'0'
,
'毛衫测试'
,
'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>'
,
''
,
'0.00'
,
'0'
,
'0'
,
null
,
null
,
'0'
,
'2'
,
'小米手机'
,
'外套'
);
INSERT
INTO
`pms_product`
VALUES
(
'24'
,
'6'
,
'7'
,
'0'
,
null
,
'0'
,
'xxx'
,
''
,
''
,
'1'
,
'0'
,
'0'
,
'0'
,
'0'
,
'0'
,
'0'
,
'0.00'
,
null
,
'0'
,
'0'
,
'0'
,
'xxx'
,
''
,
'0.00'
,
'0'
,
'0'
,
''
,
'0.00'
,
'0'
,
''
,
''
,
''
,
''
,
''
,
''
,
''
,
''
,
'0.00'
,
'0'
,
'0'
,
null
,
null
,
'0'
,
'0'
,
'小米手机'
,
'外套'
);
INSERT
INTO
`pms_product`
VALUES
(
'26'
,
'3'
,
'19'
,
'0'
,
'3'
,
'0'
,
'华为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'
,
'华为 HUAWEI P20 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>'
,
''
,
'0.00'
,
'0'
,
'0'
,
null
,
null
,
'0'
,
'0'
,
'华为'
,
'外套'
);
-- ----------------------------
-- 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
-- ----------------------------
INSERT
INTO
`pms_product_attribute`
VALUES
(
'1'
,
'1'
,
'尺寸'
,
'2'
,
'1'
,
'M,X,XL,2XL,3XL,4XL'
,
'0'
,
'0'
,
'0'
,
'0'
,
'0'
,
'0'
);
INSERT
INTO
`pms_product_attribute`
VALUES
(
'7'
,
'1'
,
'颜色'
,
'2'
,
'1'
,
'黑色,红色,白色,粉色'
,
'100'
,
'0'
,
'0'
,
'0'
,
'1'
,
'0'
);
INSERT
INTO
`pms_product_attribute`
VALUES
(
'13'
,
'0'
,
'上市年份'
,
'1'
,
'1'
,
'2013年,2014年,2015年,2016年,2017年'
,
'0'
,
'0'
,
'0'
,
'0'
,
'0'
,
'1'
);
INSERT
INTO
`pms_product_attribute`
VALUES
(
'14'
,
'0'
,
'上市年份1'
,
'1'
,
'1'
,
'2013年,2014年,2015年,2016年,2017年'
,
'0'
,
'0'
,
'0'
,
'0'
,
'0'
,
'1'
);
INSERT
INTO
`pms_product_attribute`
VALUES
(
'15'
,
'0'
,
'上市年份2'
,
'1'
,
'1'
,
'2013年,2014年,2015年,2016年,2017年'
,
'0'
,
'0'
,
'0'
,
'0'
,
'0'
,
'1'
);
INSERT
INTO
`pms_product_attribute`
VALUES
(
'16'
,
'0'
,
'上市年份3'
,
'1'
,
'1'
,
'2013年,2014年,2015年,2016年,2017年'
,
'0'
,
'0'
,
'0'
,
'0'
,
'0'
,
'1'
);
INSERT
INTO
`pms_product_attribute`
VALUES
(
'17'
,
'0'
,
'上市年份4'
,
'1'
,
'1'
,
'2013年,2014年,2015年,2016年,2017年'
,
'0'
,
'0'
,
'0'
,
'0'
,
'0'
,
'1'
);
INSERT
INTO
`pms_product_attribute`
VALUES
(
'18'
,
'0'
,
'上市年份5'
,
'1'
,
'1'
,
'2013年,2014年,2015年,2016年,2017年'
,
'0'
,
'0'
,
'0'
,
'0'
,
'0'
,
'1'
);
INSERT
INTO
`pms_product_attribute`
VALUES
(
'19'
,
'0'
,
'适用对象'
,
'1'
,
'1'
,
'青年女性,中年女性'
,
'0'
,
'0'
,
'0'
,
'0'
,
'0'
,
'1'
);
INSERT
INTO
`pms_product_attribute`
VALUES
(
'20'
,
'0'
,
'适用对象1'
,
'2'
,
'1'
,
'青年女性,中年女性'
,
'0'
,
'0'
,
'0'
,
'0'
,
'0'
,
'1'
);
INSERT
INTO
`pms_product_attribute`
VALUES
(
'21'
,
'0'
,
'适用对象3'
,
'2'
,
'1'
,
'青年女性,中年女性'
,
'0'
,
'0'
,
'0'
,
'0'
,
'0'
,
'1'
);
INSERT
INTO
`pms_product_attribute`
VALUES
(
'24'
,
'1'
,
'商品编号'
,
'1'
,
'0'
,
''
,
'0'
,
'0'
,
'0'
,
'0'
,
'0'
,
'1'
);
INSERT
INTO
`pms_product_attribute`
VALUES
(
'25'
,
'1'
,
'适用季节'
,
'1'
,
'1'
,
'春季,夏季,秋季,冬季'
,
'0'
,
'0'
,
'0'
,
'0'
,
'0'
,
'1'
);
INSERT
INTO
`pms_product_attribute`
VALUES
(
'32'
,
'2'
,
'适用人群'
,
'0'
,
'1'
,
'老年,青年,中年'
,
'0'
,
'0'
,
'0'
,
'0'
,
'0'
,
'1'
);
INSERT
INTO
`pms_product_attribute`
VALUES
(
'33'
,
'2'
,
'风格'
,
'0'
,
'1'
,
'嘻哈风格,基础大众,商务正装'
,
'0'
,
'0'
,
'0'
,
'0'
,
'0'
,
'1'
);
INSERT
INTO
`pms_product_attribute`
VALUES
(
'35'
,
'2'
,
'颜色'
,
'0'
,
'0'
,
''
,
'100'
,
'0'
,
'0'
,
'0'
,
'1'
,
'0'
);
INSERT
INTO
`pms_product_attribute`
VALUES
(
'37'
,
'1'
,
'适用人群'
,
'1'
,
'1'
,
'儿童,青年,中年,老年'
,
'0'
,
'0'
,
'0'
,
'0'
,
'0'
,
'1'
);
INSERT
INTO
`pms_product_attribute`
VALUES
(
'38'
,
'1'
,
'上市时间'
,
'1'
,
'1'
,
'2017年秋,2017年冬,2018年春,2018年夏'
,
'0'
,
'0'
,
'0'
,
'0'
,
'0'
,
'1'
);
INSERT
INTO
`pms_product_attribute`
VALUES
(
'39'
,
'1'
,
'袖长'
,
'1'
,
'1'
,
'短袖,长袖,中袖'
,
'0'
,
'0'
,
'0'
,
'0'
,
'0'
,
'1'
);
INSERT
INTO
`pms_product_attribute`
VALUES
(
'40'
,
'2'
,
'尺码'
,
'0'
,
'1'
,
'29,30,31,32,33,34'
,
'0'
,
'0'
,
'0'
,
'0'
,
'0'
,
'0'
);
INSERT
INTO
`pms_product_attribute`
VALUES
(
'41'
,
'2'
,
'适用场景'
,
'0'
,
'1'
,
'居家,运动,正装'
,
'0'
,
'0'
,
'0'
,
'0'
,
'0'
,
'1'
);
INSERT
INTO
`pms_product_attribute`
VALUES
(
'42'
,
'2'
,
'上市时间'
,
'0'
,
'1'
,
'2018年春,2018年夏'
,
'0'
,
'0'
,
'0'
,
'0'
,
'0'
,
'1'
);
INSERT
INTO
`pms_product_attribute`
VALUES
(
'43'
,
'3'
,
'颜色'
,
'0'
,
'0'
,
''
,
'100'
,
'0'
,
'0'
,
'0'
,
'1'
,
'0'
);
INSERT
INTO
`pms_product_attribute`
VALUES
(
'44'
,
'3'
,
'容量'
,
'0'
,
'1'
,
'16G,32G,64G,128G'
,
'0'
,
'0'
,
'0'
,
'0'
,
'0'
,
'0'
);
INSERT
INTO
`pms_product_attribute`
VALUES
(
'45'
,
'3'
,
'屏幕尺寸'
,
'0'
,
'0'
,
''
,
'0'
,
'0'
,
'0'
,
'0'
,
'0'
,
'1'
);
INSERT
INTO
`pms_product_attribute`
VALUES
(
'46'
,
'3'
,
'网络'
,
'0'
,
'1'
,
'3G,4G'
,
'0'
,
'0'
,
'0'
,
'0'
,
'0'
,
'1'
);
INSERT
INTO
`pms_product_attribute`
VALUES
(
'47'
,
'3'
,
'系统'
,
'0'
,
'1'
,
'Android,IOS'
,
'0'
,
'0'
,
'0'
,
'0'
,
'0'
,
'1'
);
INSERT
INTO
`pms_product_attribute`
VALUES
(
'48'
,
'3'
,
'电池容量'
,
'0'
,
'0'
,
''
,
'0'
,
'0'
,
'0'
,
'0'
,
'0'
,
'1'
);
-- ----------------------------
-- 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
=
16
DEFAULT
CHARSET
=
utf8
COMMENT
=
'产品属性分类表'
;
-- ----------------------------
-- Records of pms_product_attribute_category
-- ----------------------------
INSERT
INTO
`pms_product_attribute_category`
VALUES
(
'1'
,
'服装-T恤'
,
'2'
,
'5'
);
INSERT
INTO
`pms_product_attribute_category`
VALUES
(
'2'
,
'服装-裤装'
,
'2'
,
'4'
);
INSERT
INTO
`pms_product_attribute_category`
VALUES
(
'3'
,
'手机数码-手机通讯'
,
'2'
,
'4'
);
INSERT
INTO
`pms_product_attribute_category`
VALUES
(
'4'
,
'配件'
,
'0'
,
'0'
);
INSERT
INTO
`pms_product_attribute_category`
VALUES
(
'5'
,
'居家'
,
'0'
,
'0'
);
INSERT
INTO
`pms_product_attribute_category`
VALUES
(
'6'
,
'洗护'
,
'0'
,
'0'
);
INSERT
INTO
`pms_product_attribute_category`
VALUES
(
'10'
,
'测试分类'
,
'0'
,
'0'
);
-- ----------------------------
-- 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
=
130
DEFAULT
CHARSET
=
utf8
COMMENT
=
'存储产品参数信息的表'
;
-- ----------------------------
-- Records of pms_product_attribute_value
-- ----------------------------
INSERT
INTO
`pms_product_attribute_value`
VALUES
(
'1'
,
'9'
,
'1'
,
'X'
);
INSERT
INTO
`pms_product_attribute_value`
VALUES
(
'2'
,
'10'
,
'1'
,
'X'
);
INSERT
INTO
`pms_product_attribute_value`
VALUES
(
'3'
,
'11'
,
'1'
,
'X'
);
INSERT
INTO
`pms_product_attribute_value`
VALUES
(
'4'
,
'12'
,
'1'
,
'X'
);
INSERT
INTO
`pms_product_attribute_value`
VALUES
(
'5'
,
'13'
,
'1'
,
'X'
);
INSERT
INTO
`pms_product_attribute_value`
VALUES
(
'6'
,
'14'
,
'1'
,
'X'
);
INSERT
INTO
`pms_product_attribute_value`
VALUES
(
'7'
,
'18'
,
'1'
,
'X'
);
INSERT
INTO
`pms_product_attribute_value`
VALUES
(
'8'
,
'7'
,
'1'
,
'X'
);
INSERT
INTO
`pms_product_attribute_value`
VALUES
(
'9'
,
'7'
,
'1'
,
'XL'
);
INSERT
INTO
`pms_product_attribute_value`
VALUES
(
'10'
,
'7'
,
'1'
,
'XXL'
);
INSERT
INTO
`pms_product_attribute_value`
VALUES
(
'11'
,
'22'
,
'7'
,
'x,xx'
);
INSERT
INTO
`pms_product_attribute_value`
VALUES
(
'12'
,
'22'
,
'24'
,
'no110'
);
INSERT
INTO
`pms_product_attribute_value`
VALUES
(
'13'
,
'22'
,
'25'
,
'春季'
);
INSERT
INTO
`pms_product_attribute_value`
VALUES
(
'14'
,
'22'
,
'37'
,
'青年'
);
INSERT
INTO
`pms_product_attribute_value`
VALUES
(
'15'
,
'22'
,
'38'
,
'2018年春'
);
INSERT
INTO
`pms_product_attribute_value`
VALUES
(
'16'
,
'22'
,
'39'
,
'长袖'
);
INSERT
INTO
`pms_product_attribute_value`
VALUES
(
'83'
,
'1'
,
'13'
,
null
);
INSERT
INTO
`pms_product_attribute_value`
VALUES
(
'84'
,
'1'
,
'14'
,
null
);
INSERT
INTO
`pms_product_attribute_value`
VALUES
(
'85'
,
'1'
,
'15'
,
null
);
INSERT
INTO
`pms_product_attribute_value`
VALUES
(
'86'
,
'1'
,
'16'
,
null
);
INSERT
INTO
`pms_product_attribute_value`
VALUES
(
'87'
,
'1'
,
'17'
,
null
);
INSERT
INTO
`pms_product_attribute_value`
VALUES
(
'88'
,
'1'
,
'18'
,
null
);
INSERT
INTO
`pms_product_attribute_value`
VALUES
(
'89'
,
'1'
,
'19'
,
null
);
INSERT
INTO
`pms_product_attribute_value`
VALUES
(
'90'
,
'1'
,
'20'
,
null
);
INSERT
INTO
`pms_product_attribute_value`
VALUES
(
'91'
,
'1'
,
'21'
,
null
);
INSERT
INTO
`pms_product_attribute_value`
VALUES
(
'113'
,
'26'
,
'43'
,
'金色,银色'
);
INSERT
INTO
`pms_product_attribute_value`
VALUES
(
'114'
,
'26'
,
'45'
,
'5.0'
);
INSERT
INTO
`pms_product_attribute_value`
VALUES
(
'115'
,
'26'
,
'46'
,
'4G'
);
INSERT
INTO
`pms_product_attribute_value`
VALUES
(
'116'
,
'26'
,
'47'
,
'Android'
);
INSERT
INTO
`pms_product_attribute_value`
VALUES
(
'117'
,
'26'
,
'48'
,
'3000'
);
INSERT
INTO
`pms_product_attribute_value`
VALUES
(
'124'
,
'23'
,
'7'
,
'米白色,浅黄色'
);
INSERT
INTO
`pms_product_attribute_value`
VALUES
(
'125'
,
'23'
,
'24'
,
'no1098'
);
INSERT
INTO
`pms_product_attribute_value`
VALUES
(
'126'
,
'23'
,
'25'
,
'春季'
);
INSERT
INTO
`pms_product_attribute_value`
VALUES
(
'127'
,
'23'
,
'37'
,
'青年'
);
INSERT
INTO
`pms_product_attribute_value`
VALUES
(
'128'
,
'23'
,
'38'
,
'2018年春'
);
INSERT
INTO
`pms_product_attribute_value`
VALUES
(
'129'
,
'23'
,
'39'
,
'长袖'
);
-- ----------------------------
-- 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
=
52
DEFAULT
CHARSET
=
utf8
COMMENT
=
'产品分类'
;
-- ----------------------------
-- Records of pms_product_category
-- ----------------------------
INSERT
INTO
`pms_product_category`
VALUES
(
'1'
,
'0'
,
'服装'
,
'0'
,
'100'
,
'件'
,
'1'
,
'1'
,
'1'
,
null
,
'服装'
,
'服装分类'
);
INSERT
INTO
`pms_product_category`
VALUES
(
'2'
,
'0'
,
'手机数码'
,
'0'
,
'100'
,
'件'
,
'1'
,
'1'
,
'1'
,
null
,
'手机数码'
,
'手机数码'
);
INSERT
INTO
`pms_product_category`
VALUES
(
'3'
,
'0'
,
'家用电器'
,
'0'
,
'100'
,
'件'
,
'1'
,
'1'
,
'1'
,
null
,
'家用电器'
,
'家用电器'
);
INSERT
INTO
`pms_product_category`
VALUES
(
'4'
,
'0'
,
'家具家装'
,
'0'
,
'100'
,
'件'
,
'1'
,
'1'
,
'1'
,
null
,
'家具家装'
,
'家具家装'
);
INSERT
INTO
`pms_product_category`
VALUES
(
'5'
,
'0'
,
'汽车用品'
,
'0'
,
'100'
,
'件'
,
'1'
,
'1'
,
'1'
,
null
,
'汽车用品'
,
'汽车用品'
);
INSERT
INTO
`pms_product_category`
VALUES
(
'7'
,
'1'
,
'外套'
,
'1'
,
'100'
,
'件'
,
'1'
,
'1'
,
'0'
,
''
,
'外套'
,
'外套'
);
INSERT
INTO
`pms_product_category`
VALUES
(
'8'
,
'1'
,
'T恤'
,
'1'
,
'100'
,
'件'
,
'1'
,
'1'
,
'0'
,
'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180522/web.png'
,
'T恤'
,
'T恤'
);
INSERT
INTO
`pms_product_category`
VALUES
(
'9'
,
'1'
,
'休闲裤'
,
'1'
,
'100'
,
'件'
,
'1'
,
'1'
,
'0'
,
null
,
'休闲裤'
,
'休闲裤'
);
INSERT
INTO
`pms_product_category`
VALUES
(
'10'
,
'1'
,
'牛仔裤'
,
'1'
,
'100'
,
'件'
,
'1'
,
'1'
,
'0'
,
null
,
'牛仔裤'
,
'牛仔裤'
);
INSERT
INTO
`pms_product_category`
VALUES
(
'11'
,
'1'
,
'衬衫'
,
'1'
,
'100'
,
'件'
,
'1'
,
'1'
,
'0'
,
null
,
'衬衫'
,
'衬衫分类'
);
INSERT
INTO
`pms_product_category`
VALUES
(
'13'
,
'12'
,
'家电子分类1'
,
'1'
,
'1'
,
'string'
,
'0'
,
'1'
,
'0'
,
'string'
,
'string'
,
'string'
);
INSERT
INTO
`pms_product_category`
VALUES
(
'14'
,
'12'
,
'家电子分类2'
,
'1'
,
'1'
,
'string'
,
'0'
,
'1'
,
'0'
,
'string'
,
'string'
,
'string'
);
INSERT
INTO
`pms_product_category`
VALUES
(
'19'
,
'2'
,
'手机通讯'
,
'1'
,
'0'
,
'件'
,
'0'
,
'0'
,
'0'
,
''
,
'手机通讯'
,
'手机通讯'
);
INSERT
INTO
`pms_product_category`
VALUES
(
'29'
,
'1'
,
'男鞋'
,
'1'
,
'0'
,
''
,
'0'
,
'0'
,
'0'
,
''
,
''
,
''
);
INSERT
INTO
`pms_product_category`
VALUES
(
'30'
,
'2'
,
'手机配件'
,
'1'
,
'0'
,
''
,
'0'
,
'0'
,
'0'
,
''
,
'手机配件'
,
'手机配件'
);
INSERT
INTO
`pms_product_category`
VALUES
(
'31'
,
'2'
,
'摄影摄像'
,
'1'
,
'0'
,
''
,
'0'
,
'0'
,
'0'
,
''
,
''
,
''
);
INSERT
INTO
`pms_product_category`
VALUES
(
'32'
,
'2'
,
'影音娱乐'
,
'1'
,
'0'
,
''
,
'0'
,
'0'
,
'0'
,
''
,
''
,
''
);
INSERT
INTO
`pms_product_category`
VALUES
(
'33'
,
'2'
,
'数码配件'
,
'1'
,
'0'
,
''
,
'0'
,
'0'
,
'0'
,
''
,
''
,
''
);
INSERT
INTO
`pms_product_category`
VALUES
(
'34'
,
'2'
,
'智能设备'
,
'1'
,
'0'
,
''
,
'0'
,
'0'
,
'0'
,
''
,
''
,
''
);
INSERT
INTO
`pms_product_category`
VALUES
(
'35'
,
'3'
,
'电视'
,
'1'
,
'0'
,
''
,
'0'
,
'0'
,
'0'
,
''
,
''
,
''
);
INSERT
INTO
`pms_product_category`
VALUES
(
'36'
,
'3'
,
'空调'
,
'1'
,
'0'
,
''
,
'0'
,
'0'
,
'0'
,
''
,
''
,
''
);
INSERT
INTO
`pms_product_category`
VALUES
(
'37'
,
'3'
,
'洗衣机'
,
'1'
,
'0'
,
''
,
'0'
,
'0'
,
'0'
,
''
,
''
,
''
);
INSERT
INTO
`pms_product_category`
VALUES
(
'38'
,
'3'
,
'冰箱'
,
'1'
,
'0'
,
''
,
'0'
,
'0'
,
'0'
,
''
,
''
,
''
);
INSERT
INTO
`pms_product_category`
VALUES
(
'39'
,
'3'
,
'厨卫大电'
,
'1'
,
'0'
,
''
,
'0'
,
'0'
,
'0'
,
''
,
''
,
''
);
INSERT
INTO
`pms_product_category`
VALUES
(
'40'
,
'3'
,
'厨房小电'
,
'1'
,
'0'
,
''
,
'0'
,
'0'
,
'0'
,
''
,
''
,
''
);
INSERT
INTO
`pms_product_category`
VALUES
(
'41'
,
'3'
,
'生活电器'
,
'1'
,
'0'
,
''
,
'0'
,
'0'
,
'0'
,
''
,
''
,
''
);
INSERT
INTO
`pms_product_category`
VALUES
(
'42'
,
'3'
,
'个护健康'
,
'1'
,
'0'
,
''
,
'0'
,
'0'
,
'0'
,
''
,
''
,
''
);
INSERT
INTO
`pms_product_category`
VALUES
(
'43'
,
'4'
,
'厨房卫浴'
,
'1'
,
'0'
,
''
,
'0'
,
'0'
,
'0'
,
''
,
''
,
''
);
INSERT
INTO
`pms_product_category`
VALUES
(
'44'
,
'4'
,
'灯饰照明'
,
'1'
,
'0'
,
''
,
'0'
,
'0'
,
'0'
,
''
,
''
,
''
);
INSERT
INTO
`pms_product_category`
VALUES
(
'45'
,
'4'
,
'五金工具'
,
'1'
,
'0'
,
''
,
'0'
,
'0'
,
'0'
,
''
,
''
,
''
);
INSERT
INTO
`pms_product_category`
VALUES
(
'46'
,
'4'
,
'卧室家具'
,
'1'
,
'0'
,
''
,
'0'
,
'0'
,
'0'
,
''
,
''
,
''
);
INSERT
INTO
`pms_product_category`
VALUES
(
'47'
,
'4'
,
'客厅家具'
,
'1'
,
'0'
,
''
,
'0'
,
'0'
,
'0'
,
''
,
''
,
''
);
INSERT
INTO
`pms_product_category`
VALUES
(
'48'
,
'5'
,
'全新整车'
,
'1'
,
'0'
,
''
,
'0'
,
'0'
,
'0'
,
''
,
''
,
''
);
INSERT
INTO
`pms_product_category`
VALUES
(
'49'
,
'5'
,
'车载电器'
,
'1'
,
'0'
,
''
,
'0'
,
'0'
,
'0'
,
''
,
''
,
''
);
INSERT
INTO
`pms_product_category`
VALUES
(
'50'
,
'5'
,
'维修保养'
,
'1'
,
'0'
,
''
,
'0'
,
'0'
,
'0'
,
''
,
''
,
''
);
INSERT
INTO
`pms_product_category`
VALUES
(
'51'
,
'5'
,
'汽车装饰'
,
'1'
,
'0'
,
''
,
'0'
,
'0'
,
'0'
,
''
,
''
,
''
);
-- ----------------------------
-- 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
=
11
DEFAULT
CHARSET
=
utf8
COMMENT
=
'产品的分类和属性的关系表,用于设置分类筛选条件(只支持一级分类)'
;
-- ----------------------------
-- Records of pms_product_category_attribute_relation
-- ----------------------------
INSERT
INTO
`pms_product_category_attribute_relation`
VALUES
(
'1'
,
'24'
,
'24'
);
INSERT
INTO
`pms_product_category_attribute_relation`
VALUES
(
'5'
,
'26'
,
'24'
);
INSERT
INTO
`pms_product_category_attribute_relation`
VALUES
(
'7'
,
'28'
,
'24'
);
INSERT
INTO
`pms_product_category_attribute_relation`
VALUES
(
'9'
,
'25'
,
'24'
);
INSERT
INTO
`pms_product_category_attribute_relation`
VALUES
(
'10'
,
'25'
,
'25'
);
-- ----------------------------
-- 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
=
35
DEFAULT
CHARSET
=
utf8
COMMENT
=
'产品满减表(只针对同商品)'
;
-- ----------------------------
-- Records of pms_product_full_reduction
-- ----------------------------
INSERT
INTO
`pms_product_full_reduction`
VALUES
(
'1'
,
'7'
,
'100.00'
,
'20.00'
);
INSERT
INTO
`pms_product_full_reduction`
VALUES
(
'2'
,
'8'
,
'100.00'
,
'20.00'
);
INSERT
INTO
`pms_product_full_reduction`
VALUES
(
'3'
,
'9'
,
'100.00'
,
'20.00'
);
INSERT
INTO
`pms_product_full_reduction`
VALUES
(
'4'
,
'10'
,
'100.00'
,
'20.00'
);
INSERT
INTO
`pms_product_full_reduction`
VALUES
(
'5'
,
'11'
,
'100.00'
,
'20.00'
);
INSERT
INTO
`pms_product_full_reduction`
VALUES
(
'6'
,
'12'
,
'100.00'
,
'20.00'
);
INSERT
INTO
`pms_product_full_reduction`
VALUES
(
'7'
,
'13'
,
'100.00'
,
'20.00'
);
INSERT
INTO
`pms_product_full_reduction`
VALUES
(
'8'
,
'14'
,
'100.00'
,
'20.00'
);
INSERT
INTO
`pms_product_full_reduction`
VALUES
(
'9'
,
'18'
,
'100.00'
,
'20.00'
);
INSERT
INTO
`pms_product_full_reduction`
VALUES
(
'10'
,
'7'
,
'200.00'
,
'50.00'
);
INSERT
INTO
`pms_product_full_reduction`
VALUES
(
'11'
,
'7'
,
'300.00'
,
'100.00'
);
INSERT
INTO
`pms_product_full_reduction`
VALUES
(
'14'
,
'22'
,
'0.00'
,
'0.00'
);
INSERT
INTO
`pms_product_full_reduction`
VALUES
(
'16'
,
'24'
,
'0.00'
,
'0.00'
);
INSERT
INTO
`pms_product_full_reduction`
VALUES
(
'32'
,
'26'
,
'0.00'
,
'0.00'
);
INSERT
INTO
`pms_product_full_reduction`
VALUES
(
'34'
,
'23'
,
'0.00'
,
'0.00'
);
-- ----------------------------
-- 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
=
39
DEFAULT
CHARSET
=
utf8
COMMENT
=
'产品阶梯价格表(只针对同商品)'
;
-- ----------------------------
-- Records of pms_product_ladder
-- ----------------------------
INSERT
INTO
`pms_product_ladder`
VALUES
(
'1'
,
'7'
,
'3'
,
'0.70'
,
'0.00'
);
INSERT
INTO
`pms_product_ladder`
VALUES
(
'2'
,
'8'
,
'3'
,
'0.70'
,
'0.00'
);
INSERT
INTO
`pms_product_ladder`
VALUES
(
'3'
,
'9'
,
'3'
,
'0.70'
,
'0.00'
);
INSERT
INTO
`pms_product_ladder`
VALUES
(
'4'
,
'10'
,
'3'
,
'0.70'
,
'0.00'
);
INSERT
INTO
`pms_product_ladder`
VALUES
(
'5'
,
'11'
,
'3'
,
'0.70'
,
'0.00'
);
INSERT
INTO
`pms_product_ladder`
VALUES
(
'6'
,
'12'
,
'3'
,
'0.70'
,
'0.00'
);
INSERT
INTO
`pms_product_ladder`
VALUES
(
'7'
,
'13'
,
'3'
,
'0.70'
,
'0.00'
);
INSERT
INTO
`pms_product_ladder`
VALUES
(
'8'
,
'14'
,
'3'
,
'0.70'
,
'0.00'
);
INSERT
INTO
`pms_product_ladder`
VALUES
(
'12'
,
'18'
,
'3'
,
'0.70'
,
'0.00'
);
INSERT
INTO
`pms_product_ladder`
VALUES
(
'14'
,
'7'
,
'4'
,
'0.60'
,
'0.00'
);
INSERT
INTO
`pms_product_ladder`
VALUES
(
'15'
,
'7'
,
'5'
,
'0.50'
,
'0.00'
);
INSERT
INTO
`pms_product_ladder`
VALUES
(
'18'
,
'22'
,
'0'
,
'0.00'
,
'0.00'
);
INSERT
INTO
`pms_product_ladder`
VALUES
(
'20'
,
'24'
,
'0'
,
'0.00'
,
'0.00'
);
INSERT
INTO
`pms_product_ladder`
VALUES
(
'36'
,
'26'
,
'0'
,
'0.00'
,
'0.00'
);
INSERT
INTO
`pms_product_ladder`
VALUES
(
'38'
,
'23'
,
'0'
,
'0.00'
,
'0.00'
);
-- ----------------------------
-- 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
;
-- ----------------------------
-- Records of pms_product_operate_log
-- ----------------------------
-- ----------------------------
-- 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
-- ----------------------------
INSERT
INTO
`pms_product_vertify_record`
VALUES
(
'1'
,
'1'
,
'2018-04-27 16:36:41'
,
'test'
,
'1'
,
'验证通过'
);
INSERT
INTO
`pms_product_vertify_record`
VALUES
(
'2'
,
'2'
,
'2018-04-27 16:36:41'
,
'test'
,
'1'
,
'验证通过'
);
-- ----------------------------
-- 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
NULL
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
'销量'
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
82
DEFAULT
CHARSET
=
utf8
COMMENT
=
'sku的库存'
;
-- ----------------------------
-- Records of pms_sku_stock
-- ----------------------------
INSERT
INTO
`pms_sku_stock`
VALUES
(
'1'
,
'7'
,
'string'
,
'100.00'
,
'0'
,
'5'
,
'string'
,
'string'
,
'string'
,
'string'
,
'0'
);
INSERT
INTO
`pms_sku_stock`
VALUES
(
'2'
,
'8'
,
'string'
,
'100.00'
,
'0'
,
'5'
,
'string'
,
'string'
,
'string'
,
'string'
,
'0'
);
INSERT
INTO
`pms_sku_stock`
VALUES
(
'3'
,
'9'
,
'string'
,
'100.00'
,
'0'
,
'5'
,
'string'
,
'string'
,
'string'
,
'string'
,
'0'
);
INSERT
INTO
`pms_sku_stock`
VALUES
(
'4'
,
'10'
,
'string'
,
'100.00'
,
'0'
,
'5'
,
'string'
,
'string'
,
'string'
,
'string'
,
'0'
);
INSERT
INTO
`pms_sku_stock`
VALUES
(
'5'
,
'11'
,
'string'
,
'100.00'
,
'0'
,
'5'
,
'string'
,
'string'
,
'string'
,
'string'
,
'0'
);
INSERT
INTO
`pms_sku_stock`
VALUES
(
'6'
,
'12'
,
'string'
,
'100.00'
,
'0'
,
'5'
,
'string'
,
'string'
,
'string'
,
'string'
,
'0'
);
INSERT
INTO
`pms_sku_stock`
VALUES
(
'7'
,
'13'
,
'string'
,
'100.00'
,
'0'
,
'5'
,
'string'
,
'string'
,
'string'
,
'string'
,
'0'
);
INSERT
INTO
`pms_sku_stock`
VALUES
(
'8'
,
'14'
,
'string'
,
'100.00'
,
'0'
,
'5'
,
'string'
,
'string'
,
'string'
,
'string'
,
'0'
);
INSERT
INTO
`pms_sku_stock`
VALUES
(
'9'
,
'18'
,
'string'
,
'100.00'
,
'0'
,
'5'
,
'string'
,
'string'
,
'string'
,
'string'
,
'0'
);
INSERT
INTO
`pms_sku_stock`
VALUES
(
'10'
,
'7'
,
'string'
,
'0.00'
,
'0'
,
'0'
,
'string'
,
'string'
,
'sp3'
,
'string'
,
'0'
);
INSERT
INTO
`pms_sku_stock`
VALUES
(
'11'
,
'7'
,
'string'
,
'0.00'
,
'0'
,
'0'
,
'string'
,
'string'
,
'sp33'
,
'string'
,
'0'
);
INSERT
INTO
`pms_sku_stock`
VALUES
(
'12'
,
'22'
,
'111'
,
'99.00'
,
null
,
null
,
'x'
,
'M'
,
null
,
'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180604/1522738681.jpg'
,
null
);
INSERT
INTO
`pms_sku_stock`
VALUES
(
'13'
,
'22'
,
'112'
,
'99.00'
,
null
,
null
,
'xx'
,
'M'
,
null
,
'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180604/2018032614134591_20180326141345650 (4).png'
,
null
);
INSERT
INTO
`pms_sku_stock`
VALUES
(
'70'
,
'26'
,
'201806070026001'
,
'3788.00'
,
null
,
null
,
'金色'
,
'16G'
,
null
,
null
,
null
);
INSERT
INTO
`pms_sku_stock`
VALUES
(
'71'
,
'26'
,
'201806070026002'
,
'3788.00'
,
null
,
null
,
'金色'
,
'32G'
,
null
,
null
,
null
);
INSERT
INTO
`pms_sku_stock`
VALUES
(
'72'
,
'26'
,
'201806070026003'
,
'3788.00'
,
null
,
null
,
'银色'
,
'16G'
,
null
,
null
,
null
);
INSERT
INTO
`pms_sku_stock`
VALUES
(
'73'
,
'26'
,
'201806070026004'
,
'3788.00'
,
null
,
null
,
'银色'
,
'32G'
,
null
,
null
,
null
);
INSERT
INTO
`pms_sku_stock`
VALUES
(
'78'
,
'23'
,
'201806070023001'
,
'99.00'
,
null
,
null
,
'米白色'
,
'M'
,
null
,
'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180604/1522738681.jpg'
,
null
);
INSERT
INTO
`pms_sku_stock`
VALUES
(
'79'
,
'23'
,
'201806070023002'
,
'99.00'
,
null
,
null
,
'米白色'
,
'X'
,
null
,
'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180604/1522738681.jpg'
,
null
);
INSERT
INTO
`pms_sku_stock`
VALUES
(
'80'
,
'23'
,
'201806070023003'
,
'99.00'
,
null
,
null
,
'浅黄色'
,
'M'
,
null
,
'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180604/2017091716493787_20170917164937650 (1).png'
,
null
);
INSERT
INTO
`pms_sku_stock`
VALUES
(
'81'
,
'23'
,
'201806070023004'
,
'99.00'
,
null
,
null
,
'浅黄色'
,
'X'
,
null
,
'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180604/2017091716493787_20170917164937650 (1).png'
,
null
);
-- ----------------------------
-- 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`
varchar
(
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
'已使用数量'
,
`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
DEFAULT
CHARSET
=
utf8
COMMENT
=
'优惠卷表'
;
-- ----------------------------
-- Records of sms_coupon
-- ----------------------------
-- ----------------------------
-- Table structure for sms_coupon_history
-- ----------------------------
DROP
TABLE
IF
EXISTS
`sms_coupon_history`
;
CREATE
TABLE
`sms_coupon_history`
(
`id`
bigint
(
20
)
NOT
NULL
,
`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`
char
(
10
)
DEFAULT
NULL
COMMENT
'订单编号'
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
COMMENT
=
'优惠券使用、领取历史表'
;
-- ----------------------------
-- Records of sms_coupon_history
-- ----------------------------
-- ----------------------------
-- 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
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
COMMENT
=
'优惠券和产品分类关系表'
;
-- ----------------------------
-- Records of sms_coupon_product_category_relation
-- ----------------------------
-- ----------------------------
-- 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`
int
(
11
)
DEFAULT
NULL
,
`product_id`
bigint
(
20
)
DEFAULT
NULL
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
COMMENT
=
'优惠券和产品的关系表'
;
-- ----------------------------
-- Records of sms_coupon_product_relation
-- ----------------------------
-- ----------------------------
-- Table structure for sms_flash_promotion
-- ----------------------------
DROP
TABLE
IF
EXISTS
`sms_flash_promotion`
;
CREATE
TABLE
`sms_flash_promotion`
(
`id`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`title`
varchar
(
200
)
DEFAULT
NULL
,
`start_time`
datetime
DEFAULT
NULL
COMMENT
'开始时间'
,
`end_time`
datetime
DEFAULT
NULL
COMMENT
'结束时间'
,
`status`
int
(
1
)
DEFAULT
NULL
COMMENT
'上下线状态'
,
`time_name`
varchar
(
100
)
DEFAULT
NULL
COMMENT
'秒杀时间段名称'
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
COMMENT
=
'限时购表'
;
-- ----------------------------
-- Records of sms_flash_promotion
-- ----------------------------
-- ----------------------------
-- 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
=
'限时购通知记录'
;
-- ----------------------------
-- Records of sms_flash_promotion_log
-- ----------------------------
-- ----------------------------
-- 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
'备注'
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
COMMENT
=
'首页轮播广告表'
;
-- ----------------------------
-- Records of sms_home_advertise
-- ----------------------------
-- ----------------------------
-- 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
DEFAULT
CHARSET
=
utf8
COMMENT
=
'首页推荐品牌表'
;
-- ----------------------------
-- Records of sms_home_brand
-- ----------------------------
-- ----------------------------
-- 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
DEFAULT
CHARSET
=
utf8
COMMENT
=
'新鲜好物表'
;
-- ----------------------------
-- Records of sms_home_new_product
-- ----------------------------
-- ----------------------------
-- 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
DEFAULT
CHARSET
=
utf8
COMMENT
=
'人气推荐商品表'
;
-- ----------------------------
-- Records of sms_home_recommend_product
-- ----------------------------
-- ----------------------------
-- 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
DEFAULT
CHARSET
=
utf8
COMMENT
=
'首页推荐专题表'
;
-- ----------------------------
-- Records of sms_home_recommend_subject
-- ----------------------------
-- ----------------------------
-- 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
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
2
DEFAULT
CHARSET
=
utf8
COMMENT
=
'后台用户表'
;
-- ----------------------------
-- Records of ums_admin
-- ----------------------------
INSERT
INTO
`ums_admin`
VALUES
(
'1'
,
'test'
,
'202cb962ac59075b964b07152d234b70'
,
'http://img3.imgtn.bdimg.com/it/u=1760172527,1473711532&fm=27&gp=0.jpg'
,
null
);
-- ----------------------------
-- 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
DEFAULT
CHARSET
=
utf8
COMMENT
=
'后台用户登录日志表'
;
-- ----------------------------
-- Records of ums_admin_login_log
-- ----------------------------
-- ----------------------------
-- 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
DEFAULT
CHARSET
=
utf8
COMMENT
=
'成长值变化历史记录表'
;
-- ----------------------------
-- Records of ums_growth_change_history
-- ----------------------------
-- ----------------------------
-- 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
=
'积分变化历史记录表'
;
-- ----------------------------
-- Records of ums_integration_change_history
-- ----------------------------
-- ----------------------------
-- Table structure for ums_intergration_consume_setting
-- ----------------------------
DROP
TABLE
IF
EXISTS
`ums_intergration_consume_setting`
;
CREATE
TABLE
`ums_intergration_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
DEFAULT
CHARSET
=
utf8
COMMENT
=
'积分消费设置'
;
-- ----------------------------
-- Records of ums_intergration_consume_setting
-- ----------------------------
-- ----------------------------
-- 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
'用户来源'
,
`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
'历史积分数量'
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
COMMENT
=
'会员表'
;
-- ----------------------------
-- Records of ums_member
-- ----------------------------
-- ----------------------------
-- 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
-- ----------------------------
INSERT
INTO
`ums_member_level`
VALUES
(
'1'
,
'黄金会员'
,
'1000'
,
'0'
,
'199.00'
,
'5'
,
'1'
,
'1'
,
'1'
,
'1'
,
'1'
,
'1'
,
null
);
INSERT
INTO
`ums_member_level`
VALUES
(
'2'
,
'白金会员'
,
'5000'
,
'0'
,
'99.00'
,
'10'
,
'1'
,
'1'
,
'1'
,
'1'
,
'1'
,
'1'
,
null
);
INSERT
INTO
`ums_member_level`
VALUES
(
'3'
,
'钻石会员'
,
'15000'
,
'0'
,
'69.00'
,
'15'
,
'1'
,
'1'
,
'1'
,
'1'
,
'1'
,
'1'
,
null
);
INSERT
INTO
`ums_member_level`
VALUES
(
'4'
,
'普通会员'
,
'1'
,
'1'
,
'199.00'
,
'20'
,
'1'
,
'1'
,
'1'
,
'1'
,
'0'
,
'0'
,
null
);
-- ----------------------------
-- 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
=
'会员登录记录'
;
-- ----------------------------
-- Records of ums_member_login_log
-- ----------------------------
-- ----------------------------
-- 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
=
'用户和标签关系表'
;
-- ----------------------------
-- Records of ums_member_member_tag_relation
-- ----------------------------
-- ----------------------------
-- 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
=
'会员与产品分类关系表(用户喜欢的分类)'
;
-- ----------------------------
-- Records of ums_member_product_category_relation
-- ----------------------------
-- ----------------------------
-- 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
,
`address`
varchar
(
128
)
DEFAULT
NULL
COMMENT
'收货地址'
,
`post_code`
varchar
(
100
)
DEFAULT
NULL
COMMENT
'邮政编码'
,
`default_status`
int
(
1
)
DEFAULT
NULL
COMMENT
'是否为默认'
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
COMMENT
=
'会员收货地址表'
;
-- ----------------------------
-- Records of ums_member_receive_address
-- ----------------------------
-- ----------------------------
-- 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
=
'会员积分成长规则表'
;
-- ----------------------------
-- Records of ums_member_rule_setting
-- ----------------------------
-- ----------------------------
-- 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
=
'会员统计信息'
;
-- ----------------------------
-- Records of ums_member_statistics_info
-- ----------------------------
-- ----------------------------
-- 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
=
'用户标签表'
;
-- ----------------------------
-- Records of ums_member_tag
-- ----------------------------
-- ----------------------------
-- 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
=
'会员任务表'
;
-- ----------------------------
-- Records of ums_member_task
-- ----------------------------
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment