数据库9个表分别为:category、order、orderitem、product、productimage、property、propertyvalue、review、user。
category:用来存分区名称,字段:id、name
order:用来存订单信息,字段:id、ordercode、address、post(邮政编码)、receiver(收件人)、mobile(电话)、userMessage(留言)、createDate(创建时间)、payDate(支付时间)、deliveryDate(发货日期)、comfirmDate(确认收货日期)、uid(用户id)、status(订单状态)
orderitem:用来表示订单的产品,表示某个(pid)产品属于某个(oid)订单、属于某个(uid)user,数量多少(number)
product:用来存产品信息,字段:id、name、subTitle(名称下面红色的子标题)、originalPrice(原价)、promotePrice(促销价)、stock(库存)、cid(所属分区)、Creadate(创建日期)
productimage:用来存产品的图片信息,字段:id、pid(所属产品的id)、type(产品ban图还是产品detail图)
property:用来存分区的属性,字段:id、cid(所属分区)、name(属性名)
propertyvalue:用来存每个产品的具体属性值,表示某产品(pid)的某属性(ptid)的值(value)
review:用来存用户对某个产品的评价,表示某用户(uid)对某产品(pid)在某时间(createDate)做出的评价(content)
user:用来存用户名和密码,字段:id、name、password