首页 > IT职业 > IT生活 > 营销模块数据库表解析(三)
SpringBoot实战电商项目mall(20k+star)地址:https://github.com/macrozheng/mall
本文主要对首页内容推荐功能相关表进行解析,采用数据库表与功能对照的形式。
用于管理首页显示的品牌制造商直供信息。
create table sms_home_brand
(
id bigint not null auto_increment, brand_id bigint comment '商品品牌id',
brand_name varchar(64) comment '商品品牌名称',
recommend_status int(1) comment '推荐状态:0->不推荐;1->推荐',
sort int comment '排序',
primary key (id)
);
用于管理首页显示的新鲜好物信息。
create table sms_home_new_product
(
id bigint not null auto_increment, product_id bigint comment '商品id',
product_name varchar(64) comment '商品名称',
recommend_status int(1) comment '推荐状态:0->不推荐;1->推荐',
sort int(1) comment '排序',
primary key (id)
);
用于管理首页显示的人气推荐信息。
create table sms_home_recommend_product
(
id bigint not null auto_increment, product_id bigint, product_name varchar(64),
recommend_status int(1),
sort int(1),
primary key (id)
);
用于管理首页显示的专题精选信息。
create table sms_home_recommend_subject
(
id bigint not null auto_increment, subject_id bigint comment '专题id',
subject_name varchar(64) comment '专题名称',
recommend_status int(1) comment '推荐状态:0->不推荐;1->推荐',
sort int comment '排序',
primary key (id)
);
用于管理首页显示的轮播广告信息。
create table sms_home_advertise
(
id bigint not null auto_increment, name varchar(100) comment '名称',
type int(1) comment '轮播位置:0->PC首页轮播;1->app首页轮播',
pic varchar(500) comment '图片地址',
start_time datetime comment '开始时间',
end_time datetime comment '结束时间',
status int(1) comment '上下线状态:0->下线;1->上线',
click_count int comment '点击数',
order_count int comment '下单数',
url varchar(500) comment '链接地址',
note varchar(500) comment '备注',
sort int default 0 comment '排序',
primary key (id)
);















macrozheng 【id:macrozheng】
专注Java技术分享,mall项目全套学习教程连载中,作者Github项目mall(20k+star)
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/4759/viewspace-2823716/ ,如需转载,请注明出处,否则将追究法律责任。