餐饮管理系统数据库设计

上传人:碎****木 文档编号:229367666 上传时间:2021-12-25 格式:DOCX 页数:4 大小:13.17KB
返回 下载 相关 举报
餐饮管理系统数据库设计_第1页
第1页 / 共4页
餐饮管理系统数据库设计_第2页
第2页 / 共4页
餐饮管理系统数据库设计_第3页
第3页 / 共4页
亲,该文档总共4页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述

《餐饮管理系统数据库设计》由会员分享,可在线阅读,更多相关《餐饮管理系统数据库设计(4页珍藏版)》请在金锄头文库上搜索。

1、餐饮治理系统数据库设计1. Tb_employee 员工表Roleid 角色idintEmployeenum 工号intUsername 用户名varchar(20)Password 密码varchar(50)Sex 性别char(2)Tel varchar(20)Address 地址varchar(50)Stature 身高intWeight 体重float Employeestate 员工状态varchar(20) Deptid 部门 idint Supermanagerid 上级工号 int2. Tb_role 角色表Roleid 角色idintRolename 角色名称varchar(

2、20)Rolewage 角色工资float3. Tb_popedom 权限表Popedomid 权限idintRoleid 角色idint Popedomarea 权限范围varchar(50)4. Tb_dept 部门表Deptid 部门 idintDeptname 部门名称varchar(50) employeenum 部门经理工号varchar(20)5. tb_depot 仓库表depotid 仓库idint depotname 仓库名称varchar(20) employeenum 仓库治理员工号 int6. tb_cargo 货物表cargoid 货物批号int cargoname

3、 货物名称varchar(50) cargobrand 货物品牌varchar(50)not null, primary key, not null,not null, not null, not null, not null, not null, not null,not null(在职/离职),not null, not nullprimary key, not null,not nullprimary key, not null,not nullprimary key, not null,not nullprimary key, not null, not nullnot null, n

4、ot null, not null,cargoamount 货物数量int depotid 仓库idint employeeid 清点货物人工号 int supplyid 供货商 idintcargostate 货物状态varchar(20) cargoprice 货物进价单价float cargosaleprice 货物出售单价 float cargotypeid 货物类别idint cargotime 进货时间datetimesaletime 售出时间datetimelimittime 保质期int producetime 生产日期datetime7. tb_supply 供货商表supp

5、lyid 供货商 idint supplyname 供货商名称varchar(50) supplytel 供货商 varchar(20) supplyaddress 供货商地址 varchar(50) supplymanager 供货商负责人 varchar(20)8. tb_cargotype 货物类别cargotypeid 货物类别idint cargotypename 货物类别名称varchar(20)9. tb_worksummarize 工作总结表Employeenum 员工工号int starttime 起始时间datetimeendtime 终止时间datetimestriked

6、ay 休息天数int overstrikeday 剩余休息天数intworkstatus 工作状况varchar(1000) wagechange 工资变动float wageoriginal 原本工资float wagefact 实际工资float10. tb_reject 货物报废表rejectid 报废 idintcargoname 货物名称 varchar(50) cargobrand 货物品牌 varchar(50) cargorejectamount 货物数量intnot null, not null, not null, not null, not null , not null

7、, not null, not null, not null, not null,not null(以“月”为单位), not nullprimary key, not null,not null, not null, not nullprimary key, not null,not null, not null, not null, not null, not null, not null, not null not null, not nullprimary key, not null,not null not null,rejectreason 报废缘由varchar(500) emp

8、loyeenum 报废者工号 int rejecttime 报废记录时间datetime11. tb_cargolose 货物遗失表cargoloseid 货物遗失idint cargoname 货物名称varchar(50) cargobrand 货物品牌varchar(50) cargoalosemount 货物遗失数量 int employeenum 负责人工号 int cargoprice 赔偿单价floatcargotime 记录时间datetime12. tb_table 餐桌表tableid 桌号intemployeenum 负责人工号 int tablepersonmount

9、座次 int hallid 所属厅idinttablestate 餐桌状态varchar(20) tablestarttime 餐桌开头使用时间 datetime tableendtime 餐桌完毕使用时间 datetime13. tb_hall 大厅表hallid 大厅 idinthallname 大厅名称varchar(20) employeenum 大厅负责人工号 int hallstate 大厅状态varchar(20) hallstarttime 大厅开头使用时间 datetime hallendtime 大厅完毕使用时间 datetime14. tb_car 车辆表Carnum车辆

10、牌号varchar(20)Carname 车辆名称varchar(20)Employee 司机工号intCaruser 用车人工号intCarstate 车辆状态varchar(20) Carstarttime 车辆开头使用时间 datetime Carendtime 车辆完毕使用时间 datetimenot null, not null, not nullprimary key, not null,not null, not null, not null, not null, not nullprimary key, not null,not null, not null,not null(

11、预定/占用/空闲),not null, not nullprimary key, not null,not null,not null预定/占满/正常营业 null,nullprimary key, not null,not null, not null, not null, not null, not null15. Tb_compacttype 合同类别表Compacttypeid 合同类别id int Compacttypename 合同类别varchar(50)16. Tb_compact 合同表Compactid 合同 idint Compacttypeid 合同类别id intCo

12、mpacttitle 合同标题varchar(50) Compactcontent 合同内容 varchar(5000) Employeeid 合同乙方员工int Compactb 合同乙方(名称)varchar(20) Compactstarttime 合同生效日期 datetime Compactendtime 合同失效日期 datetime Compacttime 合同签订日期datetime Compactmoney 签约金floatprimary key, not nullprimary key, not null,not null, not null, null,not null, not null, not null, not null, not null

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 行业资料 > 教育/培训

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号