Professional Documents
Culture Documents
Unit number and title Unit 04: Database Design & Development
Student declaration
I certify that the assignment submission is entirely my own work and I fully understand the consequences of plagiarism. I understand
that making a false declaration is a form of malpractice.
Student’s signature Km
Grading grid
P1 M1 D1
❒ Summative Feedback: ❒ Resubmission Feedback:
Table of Tables
Table 1: Data types of ‘Customer’ Table. ............................................................................................................................................ 13
Table 2: Data types of ‘Bill’ Table........................................................................................................................................................ 14
Table 3: Data types of ‘Order’ Table. .................................................................................................................................................. 14
Table 4: Data types of ‘Food’ Table. ................................................................................................................................................... 14
Table 5: Data types of ‘Chef’ Table. .................................................................................................................................................... 15
I. STATEMENTS OF USER AND SYSTEM REQUIREMENTS (P1).
1. Overview about the problem.
Today, there is an increasing number of students, with universities receiving more students, and there is a growing
demand for on-campus restaurants for breaks and meals. Because of the increased speed, the restaurant's
management system often has errors and difficulties in management. For that reason, this project aims to make
restaurant management easier, more convenient and more efficient than before. In addition, this project also helps the
restaurant to manage more things needed in the restaurant, so that the restaurant can develop in the future on the
campus of university.
2. Requirements of the application.
The restaurant has a management system consisting of 3 positions as well as the user's role as Chef, staff at
the restaurant and customers.
o As a staff in Restaurant:
I want to save the information of the dishes on the dining tables and display the customer's
previous table orders.
I want to correct the information about the dish if I have a problem with the wrong order.
I want to check the total number of dishes on the dining table with the table number and
information of the customers sitting there
I want to check the information with the matched system and change it if there is an error.
o As a customer in Restaurant:
I want to check the dishes and the total number of dishes on the table and check if my bill and
payment information match or not.
o As a Chef:
I want to keep track of ingredients to make dishes.
I want to change the price of the food when I have economic problems.
I want to be able to see other chefs with their dishes.
I want to monitor whether the dishes are on the right table or not.
o ‘Bill’ Table: Bill table consists of primary key is Id and foreign key is CustomerId. Besides, it also includes information
about Date, TableNumber and Total to provide the necessary information on the Bill.
o ‘Order’ Table: Order table includes Id as primary key and 2 foreign keys FoodId and BillingId. Also includes
OrderTime, Quantity and OPrice to provide information while ordering.
Figure 4: Example for Order Table.
o ‘Food’ Table: The Food table includes Id as the primary key of the table and ChefId as a foreign key, in addition, it
includes the Name, Category and unit price of the dish to provide information on the Order table.
Data types:
o ‘Customer’ Table:
Column Name Data Type
CustomerId Int
FullName Nvarchar(50)
Gender Nvarchar(10)
Phone Varchar(10)
Table 1: Data types of ‘Customer’ Table.
o ‘Bill’ Table:
Column Name Data Type
BillId Int
CustomerId Int
Date DATETIME
TableNumber Int
Total Int
Table 2: Data types of ‘Bill’ Table.
o ‘Order’ Table:
Column Name Data Type
OrderId Int
BillId Int
FoodId Int
OrderTime DATETIME
Quanity Int
OPrice int
Table 3: Data types of ‘Order’ Table.
o ‘Food’ Table:
Column Name Data Type
FoodId Int
Name Nvarchar(50)
Category Nvarchar(20)
UnitPrice Int
Table 4: Data types of ‘Food’ Table.
o ‘Chef’ Table:
Column Name Data Type
ChefId Int
FullName Nvarchar(50)
Gender Nvarchar(10)
Address Nvarchar(100)
Table 5: Data types of ‘Chef’ Table.
Database Diagram: Tables, characteristics, and relationships are common features of both ERD and database diagrams,
as shown in the image of the database diagram above ERD, on the other hand, clearly illustrates the primary and foreign
keys so that the reader can understand the system.