1.用户表 user(usernumber, password, tel, root)

  • usernumber: 用户编号,主键
  • password: 用户密码
  • tel: 用户电话
  • root: 用户权限,0表示普通用户,1表示管理员

2.商品表 goods(ID, goodsname, price, typeID, usernumber)

  • ID: 商品编号,主键
  • goodsname: 商品名称
  • price: 商品价格
  • typeID: 商品类型编号,外键关联类型表
  • usernumber: 用户编号,外键关联用户表

3.订单表 orderf(orderfID, ID, usernumber, tel, price, buyerID)

  • orderfID: 订单编号,主键
  • ID: 商品编号,外键关联商品表
  • usernumber: 用户编号,外键关联用户表,表示卖家
  • tel: 买家电话
  • price: 订单价格
  • buyerID: 买家编号,外键关联用户表

4.类型表 type(typeID, typename)

  • typeID: 类型编号,主键
  • typename: 类型名称

5.公告表 announce(content)

  • content: 公告内容,主
1用户userusernumber password telroot2商品goodsID goodsnamepricetypeIDusernumber3订单orderforderfID ID usernumber tel price buyerID4类型typetypeID typename5公告announcecontent规范化分析

原文地址: http://www.cveoy.top/t/topic/g1k7 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录