SSM项目开发中的实体定义以及MySQL表格设计
话不多说,下面表格是项目开发中用到的实体集以及表格Name
实体创建 表格创建
Area 区域
| Area | |||||
|---|---|---|---|---|---|
| 实体 | areaId | areaName | priority | createTime | lastEditTime |
| 表格 | area_id | area_name | priority | create_time | last_edit_time |
HeadLine 头条 (用做首页滚动
| HeadLine | |||||
|---|---|---|---|---|---|
| 实体 | lineId | lineName | lineLink | lineImg | priority |
| 表格 | line_id | line_name | line_link | line_img | priority |
| 实体 | enableStatus | createTime | lastEditTime | ||
| 表格 | enable_status | create_time | last_edit_time |
PersonInfo 个人信息
| PersonInfo | |||||
|---|---|---|---|---|---|
| 实体 | userId | name | profileImg | gender | |
| 表格 | user_id | name | profile_img | gender | |
| 实体 | enableStatus | userType | createTime | lastEditTime | |
| 表格 | enable_status | user_type | create_time | last_edit_time |
LocalAuth 本地用户
| LocalAuth | ||||
|---|---|---|---|---|
| 实体 | localAuthId | personInfo | username | password |
| 表格 | local_auth_id | user_id | username | password |
| 实体 | createTime | lastEditTime | ||
| 表格 | create_time | last_edit_time |
WechatAuth 微信用户
| WechatAuth | ||||
|---|---|---|---|---|
| 实体 | wechatAuthId | personInfo | openId | createTime |
| 表格 | wechat_auth_id | user_id | open_id | create_time |
ShopCategory 店铺类别
| ShopCategory | |||
|---|---|---|---|
| 实体 | shopCategoryId | shopCategoryName | shopCategoryDesc |
| 表格 | shop_category_id | shop_category_name | shop_category_desc |
| 实体 | shopCategoryImg | priority | parent |
| 表格 | shop_category_img | priority | parent_id |
| 实体 | createTime | lastEditTime | |
| 表格 | create_time | last_edit_time |
Shop 商铺
| Shop | |||||
|---|---|---|---|---|---|
| 实体 | shopId | shopName | shopDesc | area | enableStatus |
| 表格 | shop_id | shop_name | shop_desc | area_id | enable_status |
| 实体 | shopAddr | phone | shopImg | priority | shopCategory_id |
| 表格 | shop_addr | phone | shop_img | priority | shop_category_id |
| 实体 | createTime | lastEditTime | advice | owner | |
| 表格 | create_time | last_edit_time | advice | owner_id |
ProductCategory 商品种类
| 商品种类 | |||
|---|---|---|---|
| 实体 | shopId | productCategoryId | productCategoryName |
| 表格 | shop_id | product_category_id | product_category_name |
| 实体 | priority | createTime | |
| 表格 | priority | create_time |
Product 商品
| 商品 | ||||
|---|---|---|---|---|
| 实体 | productId | shop | productName | productDesc |
| 表格 | product_id | shop_id | product_name | product_desc |
| 实体 | imgAddr | normalPrice | promotionPrice | productCategory |
| 表格 | img_addr | normal_price | promotion_price | product_category_id |
| 实体 | priority | createTime | lastEditTime | enableStatus |
| 表格 | priority | create_time | last_edit_time | enable_status |
| 实体 | productImgList | |||
| 表格 | 一对多 |
ProductImg 商品图片
| 商品 | ||||
|---|---|---|---|---|
| 实体 | productImgId | productId | imgAddr | imgDesc |
| 表格 | product_img_id | product_id | img_addr | img_desc |
| 实体 | priority | createTime | ||
| 表格 | priority | create_time |
SSM项目开发中的实体定义以及MySQL表格设计的更多相关文章
- 项目开发中的一些注意事项以及技巧总结 基于Repository模式设计项目架构—你可以参考的项目架构设计 Asp.Net Core中使用RSA加密 EF Core中的多对多映射如何实现? asp.net core下的如何给网站做安全设置 获取服务端https证书 Js异常捕获
项目开发中的一些注意事项以及技巧总结 1.jquery采用ajax向后端请求时,MVC框架并不能返回View的数据,也就是一般我们使用View().PartialView()等,只能返回json以 ...
- Java项目开发中实现分页的三种方式一篇包会
前言 Java项目开发中经常要用到分页功能,现在普遍使用SpringBoot进行快速开发,而数据层主要整合SpringDataJPA和MyBatis两种框架,这两种框架都提供了相应的分页工具,使用 ...
- Angular 项目开发中父子组件传参
在项目开发中经常会遇到 组件之间传参的问题.今天总结下在使用angular的项目中父子组件传参的问题: 1.父组件向子组件传参: 然后在父组件中 然后在父组件的html中 然后就可以在子组件中使用了 ...
- 团队项目开发中,常见的版本控制有svn,git
团队项目开发中,常见的版本控制有svn,git
- SSM项目问题中遇到 ArrayList添加元素的问题
记录项目开发中 一次有趣的debug经历 本来是在做单元测试的,但是发现如下代码 有问题.. ProductCategory p = new ProductCategory(); for (int i ...
- 003android初级篇之【转】Android开发中颜色的定义方法
正好用到颜色的定义,但脑子里没有记住具体,转载一篇加强印象 1.使用Color类的常量,如: int color = Color.BLUE; // 创建一个蓝色 是使用Android提供的颜色 int ...
- 《Maven在Java项目开发中的应用》论文笔记(十七)
标题:Maven在Java项目开发中的应用 一.基本信息 时间:2019 来源:山西农业大学 关键词:Maven:Java Web:仓库:开发人员:极限编程; 二.研究内容 1.Maven 基本原理概 ...
- 炼金术(1): 识别项目开发中的ProtoType、Demo、MVP
软件开发是很分裂的,只有不断使用原则和规律,才能带来质量. 只要不是玩具性质的项目,项目应该可以大概划分为0-1,1-10,10-100,100-1000四个种重要阶段.其中,0-1是原型验证性的:1 ...
- 项目开发中的git简单使用
原文地址: https://www.zhuyilong.fun/tech/the-blog-git.html 示例远程仓库地址: https://github.com/zhu-longge/gitWo ...
随机推荐
- v1版本
<?php use yii\helpers\Html; use yii\helpers\Url; use yii\widgets\DetailView; use yii\grid\GridVie ...
- maven工程的common模块jar上传至仓库并被其它模块依赖
.parent pom和common pom 都需要添加 <distributionManagement> <repository> <id>nexus</i ...
- Linux 操作系统镜像下载
http://mirror.centos.orghttp://mirrors.163.comhttp://mirrors.suhu.com 例如:下载centos http://mirrors.163 ...
- NGINX的几个应用场景
NGINX的几个应用场景 两个参考地址: NGINX的百度百科:https://baike.baidu.com/item/nginx/3817705?fr=aladdin NGINX的中文网站:htt ...
- python中从键盘输入内容的方法raw_input()和input()的区别
raw_input()输出结果都是字符串 Input()输入什么内容,输出就是什么内容
- 微信小程序制作家庭记账本之三
第三天,学习别人的代码,了解到wxml跟JAVAWEB中的JSP差不太多,可以形成整个页面的轮廓.wxss对每个文本框按钮进行大小颜色修饰.json的作用很是迷惑,也不清楚各种文件是怎样相互作用的.
- Linux基础命令---tail显示文本
tail 显示文本文件尾部的部分内容,默认显示最后10行. 此命令的适用范围:RedHat.RHEL.Ubuntu.CentOS.SUSE.openSUSE.Fedora. 1.语法 ...
- 转:判断Caps Lock键是否打开,如果打开则关闭
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; usin ...
- vue:vue-resource
vue-resource是一个非常轻量的用于处理HTTP请求的插件,它提供了两种方式来处理HTTP请求: 使用Vue.http或this.$http: 使用Vue.resource或this.$res ...
- Android4.0 主线程不能访问网络异常解决办法
从两个方面说下这个问题: 1. 不让访问网络的原因 2. 解决该问题的办法 不让访问网络的原因: 由于对于网络状况的不可预见性,很有可能在网络访问的时候造成阻塞,那么这样一来我们的主线程UI线程 就会 ...