1. 关于此项目

此项目是一个自营性质电商类型的项目。

当前目标是设计后台管理相关功能。

2. 关于项目的开发流程

开发项目的标准流程应该有:需求分析、可行性分析、总体设计、详细设计等。

建议课后学习《软件工程》。

在具体开发时,应该先创建数据库、数据表,然后创建项目进行开发。

3. 创建数据库与数据表

创建mall_pms数据库:

CREATE DATABASE mall_pms;

在此数据库中创建数据表:

-- 数据库:mall_pms-- 相册表:创建数据表
drop table if exists pms_album;
create table pms_album
(id           bigint unsigned auto_increment comment '记录id',name         varchar(50)      default null comment '相册名称',description  varchar(255)     default null comment '相册简介',sort         tinyint unsigned default 0 comment '自定义排序序号',gmt_create   datetime         default null comment '数据创建时间',gmt_modified datetime         default null comment '数据最后修改时间',primary key (id)
) comment '相册' charset utf8mb4;-- 相册表:为相册名称字段添加索引
create index idx_album_name on pms_album (name);-- 图片表:创建数据表
drop table if exists pms_picture;
create table pms_picture
(id           bigint unsigned auto_increment comment '记录id',album_id     bigint unsigned   default null comment '相册id',url          varchar(255)      default null comment '图片url',description  varchar(255)      default null comment '图片简介',width        smallint unsigned default null comment '图片宽度,单位:px',height       smallint unsigned default null comment '图片高度,单位:px',is_cover     tinyint unsigned  default 0 comment '是否为封面图片,1=是,0=否',sort         tinyint unsigned  default 0 comment '自定义排序序号',gmt_create   datetime          default null comment '数据创建时间',gmt_modified datetime          default null comment '数据最后修改时间',primary key (id)
) comment '图片' charset utf8mb4;-- 品牌表:创建数据表
drop table if exists pms_brand;
create table pms_brand
(id                     bigint unsigned auto_increment comment '记录id',name                   varchar(50)      default null comment '品牌名称',pinyin                 varchar(50)      default null comment '品牌名称的拼音',logo                   varchar(255)     default null comment '品牌logo的URL',description            varchar(255)     default null comment '品牌简介',keywords               varchar(255)     default null comment '关键词列表,各关键词使用英文的逗号分隔',sort                   tinyint unsigned default 0 comment '自定义排序序号',sales                  int unsigned     default 0 comment '销量(冗余)',product_count          int unsigned     default 0 comment '商品种类数量总和(冗余)',comment_count          int unsigned     default 0 comment '买家评论数量总和(冗余)',positive_comment_count int unsigned     default 0 comment '买家好评数量总和(冗余)',enable                 tinyint unsigned default 0 comment '是否启用,1=启用,0=未启用',gmt_create             datetime         default null comment '数据创建时间',gmt_modified           datetime         default null comment '数据最后修改时间',primary key (id)
) comment '品牌' charset utf8mb4;-- 品牌表:为品牌名称字段添加索引
create index idx_brand_name on pms_brand (name);-- 类别表:创建数据表
drop table if exists pms_category;
create table pms_category
(id           bigint unsigned auto_increment comment '记录id',name         varchar(50)      default null comment '类别名称',parent_id    bigint unsigned  default 0 comment '父级类别id,如果无父级,则为0',depth        tinyint unsigned default 1 comment '深度,最顶级类别的深度为1,次级为2,以此类推',keywords     varchar(255)     default null comment '关键词列表,各关键词使用英文的逗号分隔',sort         tinyint unsigned default 0 comment '自定义排序序号',icon         varchar(255)     default null comment '图标图片的URL',enable       tinyint unsigned default 0 comment '是否启用,1=启用,0=未启用',is_parent    tinyint unsigned default 0 comment '是否为父级(是否包含子级),1=是父级,0=不是父级',is_display   tinyint unsigned default 0 comment '是否显示在导航栏中,1=启用,0=未启用',gmt_create   datetime         default null comment '数据创建时间',gmt_modified datetime         default null comment '数据最后修改时间',primary key (id)
) comment '类别' charset utf8mb4;-- 类别表:为类别名称字段添加索引
create index idx_category_name on pms_category (name);-- 品牌类别关联表:创建数据表
drop table if exists pms_brand_category;
create table pms_brand_category
(id           bigint unsigned auto_increment comment '记录id',brand_id     bigint unsigned default null comment '品牌id',category_id  bigint unsigned default null comment '类别id',gmt_create   datetime        default null comment '数据创建时间',gmt_modified datetime        default null comment '数据最后修改时间',primary key (id)
) comment '品牌与类别关联' charset utf8mb4;-- 属性表:创建数据表
drop table if exists pms_attribute;
create table pms_attribute
(id                 bigint unsigned auto_increment comment '记录id',template_id        bigint unsigned  default null comment '所属属性模版id',name               varchar(50)      default null comment '属性名称',description        varchar(255)     default null comment '简介(某些属性名称可能相同,通过简介补充描述)',type               tinyint unsigned default 0 comment '属性类型,1=销售属性,0=非销售属性',input_type         tinyint unsigned default 0 comment '输入类型,0=手动录入,1=单选,2=多选,3=单选(下拉列表),4=多选(下拉列表)',value_list         varchar(255)     default null comment '备选值列表',unit               varchar(50)      default null comment '计量单位',sort               tinyint unsigned default 0 comment '自定义排序序号',is_allow_customize tinyint unsigned default 0 comment '是否允许自定义,1=允许,0=禁止',gmt_create         datetime         default null comment '数据创建时间',gmt_modified       datetime         default null comment '数据最后修改时间',primary key (id)
) comment '属性' charset utf8mb4;-- 属性模版表:创建数据表
drop table if exists pms_attribute_template;
create table pms_attribute_template
(id           bigint unsigned auto_increment comment '记录id',name         varchar(50)      default null comment '属性模版名称',pinyin       varchar(50)      default null comment '属性模版名称的拼音',keywords     varchar(255)     default null comment '关键词列表,各关键词使用英文的逗号分隔',sort         tinyint unsigned default 0 comment '自定义排序序号',gmt_create   datetime         default null comment '数据创建时间',gmt_modified datetime         default null comment '数据最后修改时间',primary key (id)
) comment '属性模版' charset utf8mb4;-- 属性模版表:为属性模版名称字段添加索引
create index idx_attribute_template_name on pms_attribute_template (name);-- 类别与属性模版关联表:创建数据表
drop table if exists pms_category_attribute_template;
create table pms_category_attribute_template
(id                    bigint unsigned auto_increment comment '记录id',category_id           bigint unsigned default null comment '类别id',attribute_template_id bigint unsigned default null comment '属性模版id',gmt_create            datetime        default null comment '数据创建时间',gmt_modified          datetime        default null comment '数据最后修改时间',primary key (id)
) comment '类别与属性模版关联' charset utf8mb4;-- SPU(Standard Product Unit)表:创建数据表
drop table if exists pms_spu;
create table pms_spu
(id                     bigint unsigned not null comment '记录id',name                   varchar(50)      default null comment 'SPU名称',type_number            varchar(50)      default null comment 'SPU编号',title                  varchar(255)     default null comment '标题',description            varchar(255)     default null comment '简介',list_price             decimal(10, 2)   default null comment '价格&

spring boot 01 项目相关推荐

  1. 简单介绍基于Spring Boot的项目骨架使用

    前言 从大学开始接触 java 后台开发,到后来了解了更多的编程语言的开发.发现 java 的开发可以说是相较而言很复杂的了,光是 Spring MVC 的配置要是没有经历系统的学习,可能就能劝退一波 ...

  2. spring boot maven项目返回值乱码的解决方法

    spring boot maven项目返回值乱码的解决方法 1.先看乱码效果: spring boot maven项目,返回值乱码,如下图: 控制台打印log乱码,如下图: 有swagger的话,sw ...

  3. spring boot 开源项目汇总

    spring boot 开源项目汇集 一.spring-boot-examples 项目 项目主页 https://github.com/ityouknow/spring-boot-examples ...

  4. spring boot 常用项目文件结构

    spring boot 常用项目文件结构 文件结构 文件结构 src/main/java 开发代码以及主程序入口 Application.java作为程序主入口,建议放在根目录下,主要用于一些框架配置 ...

  5. Spring boot Gradle项目搭建

    Spring boot Gradle项目搭建 使用IDEA创建Gradle工程     操作大致为:File->new->Project->Gradle(在左侧选项栏中)     创 ...

  6. 最新Spring Boot实战项目(权限后台管理系统)详解

    Spring Boot实战项目 - 权限后台管理系统 简介 这是一套基于spring boot 2.16.shiro.jwt.redis.swagger2.mybatis .thymeleaf.lay ...

  7. 15 个优秀开源的 Spring Boot 学习项目,一网打尽!

    Spring Boot 算是目前 Java 领域最火的技术栈了,松哥年初出版的 <Spring Boot + Vue 全栈开发实战>迄今为止已经加印了 8 次,Spring Boot 的受 ...

  8. Spring Boot 9 :详细描述Spring Boot + Vue项目部署过程:Centos为例(重点)

    如何部署Spring Boot + Vue项目:Centos为例 一:项目上线:Centos版 1.ACterminal端: 1.1ssh登录服务器 1.2创建acs新用户(第一次创建) 1.3给用户 ...

  9. 几个超好的Spring boot实战项目 (还不赶紧收藏起来)

    Spring boot实战项目 (还不赶紧收藏起来) 学了Spring boot有一段时间了,但是实战的经验还是比较缺乏.所以自己也是在GItHub和Gitee上找了一些超好的Spring boot项 ...

  10. Spring boot开源项目之个人博客(12)—分类(标签)管理

    Spring boot开源项目之个人博客(12)-分类(标签)管理 分类.标签管理功能高度重合,就只记录分类管理.分类管理主要涉及到了增删查改和前端分页展示的功能,还有一些零碎的非空验证.重复验证等. ...

最新文章

  1. jQuery的ajax使用场景讨论(c#)
  2. 辗转相除法求最大公约数,非goto
  3. matplotlib之Rectangle
  4. SSH连接不成功的处理过程
  5. python基本语法:元组
  6. 人生的意义,呵!我找到了
  7. mysql链接出错_请配置/amysql/config.php文件_MySQL数据库之PHP连接mysql时mysql_connect()函数不可用...
  8. NetofficeSystem协同办公系统今日发布
  9. 江苏大学考研计算机录取率,报考数据分析—江苏大学
  10. 【Android重量级】高仿大众点评源码
  11. 算法 排序 python 实现--堆排序
  12. 找回FLASH的序列号SN(转)
  13. 投稿英文国际会议论文经验总结
  14. 南大和中科大计算机哪个好,南京大学和中国科技大学哪个更好?
  15. 什么是SDK什么是CDN
  16. SSD: Single Shot MultiBox Detector 之再阅读
  17. html的弯曲的虚线设置,Photoshop如何画出弯曲的虚线?
  18. java集合源码分析
  19. C#设计模式(4)-Simple Factory Pattern
  20. html 表单 日历,带表单功能的日历,可插入内容的日历

热门文章

  1. JAVA单位职工房产管理计算机毕业设计Mybatis+系统+数据库+调试部署
  2. 【20调剂】上海海洋大学2020年硕士研究生拟调剂公告
  3. LeetCode刷题07-简单 整数翻转
  4. GBDT算法和XGBoost算法原理
  5. 什么是财务数字化?财务数字化怎么做?
  6. 深度梳理这10个国家的人工智能发展战略
  7. 【Git】什么破玩意,pull不下来东西,不想用了
  8. 虚继承是什么意思_C++的虚函数和RTTI
  9. 众和策略可靠吗?除息日要等多久?
  10. 我是如何自学前端的,应该如何入门