Answered step by step
Verified Expert Solution
Question
1 Approved Answer
i want a description just like the pic i giveDescription: Suppose that after the requirements collection and analysis phase, the database designers provide the following
i want a description just like the pic i giveDescription:
Suppose that after the requirements collection and analysis phase, the database
designers provide the following description of the miniworld the part of the company
that will be represented in the database:
The company is organized into departments. Each department has a unique
name, a unique number, and a particular employee who manages the
department. We keep track of the start date when that employee began
managing the department. A department may have several locations.
A department controls a number of projects, each of which has a unique
name, a unique number, and a single location.
We store each employee's name, Social Security number, address, salary, sex
gender and birth date. An employee is assigned to one department, but
may work on several projects, which are not necessarily controlled by the
same department. We keep track of the current number of hours per week
that an employee works on each project. We also keep track of the direct
supervisor of each employee who is another employee
We want to keep track of the dependents of each employee for insurance
purposes. We keep each dependent's first name, sex, birth date, and
relationship to the employee.
Admin: Stores information about the restaurant manager. Jawan
AdminID Primary key
Name
Username
Password
Email
Phone Number
Staff: Stores information about the restaurant staff. Nada
StaffID primary key
Name
Position
ContactNumber
Email
Customer: Stores information about the customers. Reham
CustID primary key
Name
ContactNum
Email
MenuItems: Stores information about individual items in the menu. Salwa
ItemID primary key
Name
Description
Price
Dish: Stores information about the dishes offered by the restaurants. Khadijah
DishID primary key
Name
Description
Price
Chefid foreign key referencing Staff.staffid
Beverage: Stores information about the beverages offered by the restaurant. Donya
Beverageid primary key
Name
Description
Price
Sweet: Stores information about the sweets or desserts offered by the restaurant. Taif
SweetID primary key
Name
Description
Price
Reservation: Stores information about the customer reservations. Ghala
ReservationID primary key
CustID foreign key referencing Customer.customerid
TableID foreign key referencing Table.tableid
ReservationDate
Reservationtime
GuestsNum
Table: Stores information about the tables available in the restaurant. Wasan
TableID primary key
Capacity
Order: Stores information about customer orders. Haneen
OrderID primary key
CustID foreign key referencing Customer.customerid
TableID foreign key referencing Table.tableid
OrderDate
OrderTime
Quantity
Payment: Stores information about the customer payments for their orders. Layan
PaymentID primary key
OrderID foreign key referencing Order.orderid
Amount
PaymentDate
PaymentTime
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started