微信点餐

点餐系统软件表结构(点餐系统表总体设计)

点餐系统

点餐系统软件表结构

菜肴表(dish_table)

字段 基本数据类型 管束 备注名称

id int 外键约束 菜号

name varchar(255) 非空 菜式

price float 非空 价钱

订单表(order_table)

字段 基本数据类型 管束 备注名称

id int 外键约束 订单编号

user_name varchar(255) 非空 用户姓名

create_time datetime 非空 下单时间

详细信息表 (detail_table) 协同外键约束关系dish_table和order_table ` ` `

字段 基本数据类型 管束 备注名称 orderid Int 外锑,foreign key(orderid references orderTable.ID) dishid Int 外锑,foreign key (dishId references dishTable.ID ) numberOfDishesintsInt Not null 单菜的总数

点餐系统表总体设计

1. 客户信息表

user_id:外键约束、自增种类

username:登录名// varchar(50) not null unique

password:登陆密码 //varchar(20) not null

telphone: 手机号码 //bigint not null unique

2. 菜单栏情况表

menu_id :外键约束、自增种类

name :菜式 //varchar (30) not null unitprice :价钱 //double default 0 picture :图片地址//text NOT NULL descreption :叙述 // text NOT NULL category_list_id : 归类外键约束关系归类ID

3. 加入购物车情况表 cart_info

cartId:外键约束、自增种类 userId:客户ID外键约束关系用户表里的userId goodName: 商品名字 quantity :总数 price :价钱 discountPrice ;特惠额度 totalPrice ;总价格

4. 分类表category-list ID:外键约束、自increment name:归类名称

点餐系统表框架图
电话咨询 立即申请