程序员小袁的个人博客系统开工啦!!!!
需求分析
功能需求 写博客 管理博客 发表个人动态 博客分类 登录(游客状态) 博客分类展示
技术选型:springBoot+mysql+Mybatis-plus+vue+elementui+swagger
借鉴el-admin之中的一些组件
写博客最好用到像csdn上的那样的编辑工具
数据库设计
-
数据库表设计
-
用户表
表名 user 属性/字段: id int 采取自增策略 username nvarchar(20) 主键 password nvarchar(50) not null
SQL语句:
create table user( id int primary key auto_increment, username nvarchar(20) not null comment '用户名', password nvarchar(50) not null comment '密码' )
-
博客表
表名: blog 字段/属性 id int 自增 博客id title nvarchar(20) 博客标题 autor nvarchar(20) 博客作者 content text 博客内容 publish_time datetime 发布时间 delete_time datetime 删除时间
SQL语句
create table blog( id int primary key auto_increment comment '博客id', type int not null comment '类型', title nvarchar(20) not null comment '博客标题', author nvarchar(20) not null comment '博客作者', content text not null comment '博客内容', publish_time datetime default null comment '发布时间', delete_time datetime default null comment '删除时间' )
-
分类表
表名:category 字段/属性 id int 自增 category_name nvarchar(20)
SQL语句
create table category( id int primary key auto_increment, category_name nvarchar(20) not null )
-
评论表
表名:comment 字段/属性 id int 自增 主键 context text 评论内容 author 评论者 time 评论时间
SQL语句
create table comment( id int primary key auto_increment, context text not null comment '评论内容', author nvarchar(20) not null comment '评论者', time datetime not null comment '评论时间' )
具体请移步gitee仓库地址
-
-
-
-