1.数据库设计

create table `product_info`(`product_id` varchar(32) not null,`product_name` varchar(64) not null comment '商品名称',`product_price` decimal(8,2) not null comment '单价',`product_stock` int not null comment '库存',`product_description` varchar(64) COMMENT '描述',`product_icon` varchar(512) comment '小图',`category_type` int not null comment '类目编号',`create_time` TIMESTAMP NOT NULL default CURRENT_TIMESTAMP COMMENT '创建时间',`update_time` TIMESTAMP NOT NULL default CURRENT_TIMESTAMP on UPDATE CURRENT_TIMESTAMPCOMMENT '修改时间',primary key(`product_id`)
) comment '商品表';

CREATE table `product_category` (`category_id` int not NULL auto_increment,`category_name` VARCHAR(64) not null COMMENT '类目名字',`category_type` int not null comment '类目编号',`create_time` timestamp not null default current_timestamp comment '创建时间',`update_time` timestamp not null default current_timestamp on update CURRENT_TIMESTAMPcomment '修改时间',PRIMARY KEY (`category_id`),unique key `uqe_category_type` (`category_type`)) COMMENT '类目表';

create table `order_master` (`order_id` varchar(32) not null,`buyer_name` VARCHAR(32) not null comment '买家名字',`buyer_phone` varchar(32) not null comment '买家电话',`buyer_address` varchar(128) not null comment '买家地址',`buyer_openid` varchar(64) not null comment '买家微信openid',`order_amount` decimal(8,2) not null comment '订单总金额',`order_status` tinyint(3) not null default '0' comment '订单状态,默认0新下单',`pay_status` tinyint(3) not null default '0' comment '支付状态,默认0未支付',`create_time` timestamp not null default current_timestamp comment '创建时间',`update_time` timestamp not null default current_timestamp on update CURRENT_TIMESTAMPcomment '修改时间',primary key (`order_id`),key `idx_buyer_openid` (`buyer_openid`)
) comment '订单表';

create table `order_detail` (`detail_id` varchar(32) not null,`order_id` varchar(32) not null,`product_id` varchar(32) not null,`product_name` varchar(64) not null comment '商品名称',`product_price` decimal(8,2) not null comment '商品价格',`product_quantity` int not null comment '商品数量',`product_icon` varchar(512) comment '商品小图',`create_time` timestamp not null default current_timestamp
comment '创建时间',`update_time` timestamp not null default current_timestamp on update current_timestamp
comment '修改时间',primary key (`detail_id`),key `idx_order_id` (`order_id`)) comment '订单详情表';

欢迎进群交流258897306或关注公众号“IT群英汇

SpringBoot微信点餐系统—1、数据库设计相关推荐

  1. 1、微信点餐系统之数据库设计

    1.微信点餐系统之数据库设计 ---- ----商品表格 ---- CREATE TABLE `product_info` (`product_id` VARCHAR(32) NOT NULL COM ...

  2. 第二课 SpringBoot微信点餐系统买家类目设计

    第二课 SpringBoot微信点餐系统买家类目设计 tags: Java 慕课网 categories: DAO层开发 service层开发 文章目录 第二课 SpringBoot微信点餐系统买家类 ...

  3. 学习笔记 | SpringBoot微信点餐系统实战课程笔记(一)、数据库设计与创建

    本系列是用于记录学习慕课网廖师兄的<新版微服务时代Spring Boot企业微信点餐系统>实战课程的实战中的遇到的问题.疑惑.重点笔记等.文章可能不成条理,请见谅.欢迎多多交流学习~ 0. ...

  4. (附源码)springboot微信点餐系统的设计与实现 毕业设计221541

    springboot点餐微信小程序 摘 要 点餐微信小程序采用B/S模式.采用JAVA语言.springboot框架.mysql数据库.小程序框架uniapp等开工具.促进了点餐微信小程序的业务发展. ...

  5. (附源码)springboot微信点餐系统的设计与实现 毕业设计221541

    springboot点餐微信小程序 摘 要 点餐微信小程序采用B/S模式.采用JAVA语言.springboot框架.mysql数据库.小程序框架uniapp等开工具.促进了点餐微信小程序的业务发展. ...

  6. springboot微信点餐系统的设计与实现 毕业设计- 附源码221541

    springboot点餐微信小程序 摘  要 点餐微信小程序采用B/S模式.采用JAVA语言.springboot框架.mysql数据库.小程序框架uniapp等开工具.促进了点餐微信小程序的业务发展 ...

  7. 基于Springboot微信点餐系统的开发与实现

    微信点餐数据库注意事项 商品表: 1:在企业级中,由于数据量是比较大的,所以id一般采用的是varchar,不采用int 2:凡是涉及到价格的统一采用decimal,例如本项目中单价如下: produ ...

  8. SpringBoot微信点餐系统

    架构 前后端分离: 部署架构: Nginx与Tomcat的关系在这篇文章,几分钟可以快速了解: https://www.jianshu.com/p/22dcb7ef9172 补充: setting.x ...

  9. 腾讯内部技术——SpringBoot微信点餐系统

    架构 前后端分离: 部署架构: 补充: setting.xml 文件的作用:settings.xml是maven的全局配置文件.而pom.xml文件是所在项目的局部配置.Settings.xml中包含 ...

  10. 实战 | SpringBoot微信点餐系统(附源码)

    点击上方"java进阶架构师",选择右上角"置顶公众号" 20大进阶架构专题每日送达 架构 前后端分离: 补充: setting.xml 文件的作用:setti ...

最新文章

  1. 使用coding、daocloud和docker打造markdown纯静态博客
  2. OpenCascade Primitives BRep-Cylinder
  3. 【深度学习】9 大主题卷积神经网络(CNN)的 PyTorch 实现
  4. 如何集成Spring和Struts(实例说明)
  5. Python数据类型(元组、列表、字符串、字典)
  6. 吴恩达机器学习 7.神经网络参数的反向传播算法
  7. exchange 管理员只有创建新用户无删除的权限设定方法
  8. .net 怎么在控制器action中返回一个试图_ASP.NET Core MVC/WebAPI中另辟蹊径的全局统一异常处理方式...
  9. 嵌入式-----产品手册----塔吊黑匣子电气安装培训
  10. wav转mp3怎么转?
  11. 浅谈CMMI3认证从评估前准备到正式评估的全部过程
  12. DeFi 2.0的LaaS协议Elephant,重振DeFi赛道发展的关键
  13. elementui下载到本地
  14. Windows取证——CHNTPW工具使用(可更改 Windows 密码)
  15. 名片制作:25款现代名片设计实例及模板
  16. 教你巧用后视镜判断车距
  17. 2015070306 - EffactiveJava笔记 - 第55条 谨慎地进行优化(2)
  18. (附源码)计算机毕业设计SSM智慧校园防疫管理平台
  19. 最新BYR-Navi-master个性的网站技术导航源码
  20. Day437438439.秒杀服务 -谷粒商城

热门文章

  1. CenterOS 上 安装 Docker
  2. 华为的人力资源体系的变革
  3. 博士毕业最高201万!华为顶级薪酬招“天才少年”
  4. 冰点下载器手机版apk_冰点下载器手机版apk
  5. linux中安装程序的命令是,Linux安装软件命令是什么
  6. 使用tftp服务把路由器的配置上传到服务器
  7. PyCharm怎么来更新pip
  8. keil5写c语言的步骤,keil5使用C51的详细操作步骤
  9. 165. 小猫爬山(状压dp)
  10. avaya CM查看VDN指向的技能组