Question: Assume that you are going to use a relational database management system (RDBMS) to manage and store the application objects. Based on the diagram attached,
Assume that you are going to use a relational database management system (RDBMS) to manage and store the application objects. Based on the diagram attached, create a relational schema for the restaurant system. Use arrows to show referential integrity constraints. Use a computer-based graphics tool to draw your relational schema (i.e., Gliffy.com, Creatly.com, VISIO, etc.)
1..1 Staff staffNo - firstName 1..1 lastName address -phone -gender dateOfBirth -job Title - salary -joinedDate 4 Manager -annualCarAllowance -monthlyBonus NextOfKin - firstName - lastName 0..1-address -phone - relationshipToStaff Credit Card credit Card No -type -firstName - lastName - expiryDate - verificationCode 10... 0..1 Customer -customerld -firstName -lastName -address -phone 1..1 -email 0..* 1..1 -reservationid date - time partySize 1..1 reserves - tableld submits 1.1 Reservation 0..* capacity - isReserved + reserve Table(date, time, partySize) + changeReservation(reservationid) + cancelReservation(reservationid) Dining Table 0.. -orderld SalesOrder - date 1..-time +compute Total 1..1 0.." 0.." 1..1 1..1 1.. 0..1 billNo date - - time - amount -receiptNo date -time Bill 1..1 - quantity + computeAmount() + printBill() paymentType -totalAmount OrderLine +computeSub Total() 0..1 CashReceipt + compute TotalAmount(tip) + printReceipt() 1..1 -itemid -name Meal id - mealName description price - total calories 1..1 Recipe 0..1 -recipeld -cookingMethod -preparation Time + compute TotalCalories() Supplies - description - onhand + findVendor() 1..1 1.. Menu -menuld -menuName -start Time - endTime -season RecipeLine - quantity + computeCalories() 1., 1..1 Ingredient - unitOfMeasure - caloriesPerUnit
Step by Step Solution
3.48 Rating (141 Votes )
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
