You are on page 1of 14

MIDTERM LAB ACTIVITY 3 – PHYSICAL DATABASE

DESIGNING
BS Information Technology

Prof. Ramiro Z. Dela Cruz

Byte Me! – Itp102


MARY KATHARINE CHARISMA AZORES CHRISTALIE JEAN
ASUNCION DIA

ROMAR LLEGUE ALLYSA SAMANTE EMANUEL


SALMORIN

Byte Me! – Itp102


TABLE RELATIONSHIP

The table above shows the relationship of entities in ER diagram. These are the
Customer, Order product, order details, menu product, and the payment entities. This shows the
process of food ordering system from the customer to payment method. The database design for
this online food ordering system was created with managing food ordering requirements in mind.
Information on users and customers can be encoded by the system. Only the administrator has
access to the status, details, and data handling for managing orders as well as customer
reservation records.
Monitoring of food order management, status, and client transactions were among the
elements shown in the system ER diagram. Moreover, reports that acted as a record of all the
system transactions also included these characteristics.
Customer Table:
This entity has the primary key of customer id. This includes the information of the customer
such as contact number, home address, email address, and password. This information will be
use for deliver method once the order was done in preparation.
Menu Table:
This entity has the primary key of menu id. This include the name of the food products, its price,
and the status if it is available or out of stock. This entity will let the customer know about the
menus in the food ordering system.

Byte Me! – Itp102


Order Product Table:
This entity has the primary key of order id and foreign key of menu id. This table is consisting of
the orders of the customer after seeing the menu. It also includes the quantity of the specific
order.
Order Details Table:
This entity has the primary key of details id and foreign keys of order id, menu id, and customer
id. This will be the order summary of the customer. It has the total price, order time, order status,
and delivery address of the customer. This will let the customer review their orders.
Payment Table:
This entity has the primary key of payment id and foreign key of customer id. This will include
the payment method of the customer and the total amount to pay for the whole order.

DATA DICTIONARY OF KATEAPS FOOD ORDERING SYSTEM


Table Name: tblCustomer
Field Name Data Type Field Length Constraint Description
customer_Id int 10 Primary Key Auto generated
unique identifier
of a customer
fullName varchar 50 Not null Full name of the
customer
email varchar 20 Not null Created email of
the customer
password varchar 20 Not null Password of the
account of the
customer
contactNumber varchar 20 Not null Contact number
address varchar 50 Not null Address of the
customer to
deliver foods

Byte Me! – Itp102


Table Name: tblMenu
Field Name Data Type Field Length Constraint Description
menuId int 10 Primary Key Auto generated
unique identifier
of menus
menuName varchar 20 Not null Name of the
menu
price int 10 Not null Price of the menu

menuStatus varchar 10 Not null Status of the


menu

Table name: tblOrderProduct


Field Name Data Type Field Length Constraint Description
orderId int 10 Primary Key Auto generated
unique identifier
of a specific
order
menuId int 10 Foreign key Menu Id
quantity int 10 Not null Quantity of food
ordered
price float Not null Price of the food

Table name: tblOrderDetails


Field Name Data Type Field Constraint Description
Length
detailsId int 10 Primary Key Auto generated unique identifier
of an order detail
orderId int 10 Foreign key Id of the specific order
menuId int 10 Foreign Key Id of the menu
customerId int 10 Foreign Key Customer’s id
quantity int 10 Not null Quantity of the food ordered

totalPrice float Not null Total price of order


orderTime Datetime 10 Not null Time of order
orderStatus Varchar 10 Not null Status of the order

Byte Me! – Itp102


deliveryAddress Type 20 Not null Address to deliver the food
Table name: tblPayment
Field Name Data Type Field Length Constraint Description
paymentId int 10 Primary Key Auto generated
unique identifier
of an order detail

customerId int 10 Foreign key Id of the


customer
paymentMethod varchar 20 Not null Payment method
of the customer
totalAmount float Not null Total price of
order

Database user (CRUD) matrix of KATEAPS online food ordering system


Role Create Read Update Delete
Customer Order creation order history personal order cancellation
viewing information
updating

Employee N/A View orders to N/A Delete if the order


prepare the foods was already
completed
Website of the can add menu View orders of Update menus Remove menu items
restaurant items customers
Delivery driver N/A View assigned orders Update order status N/A
(e.g. picked up,
delivered)
Administrator Add new View all orders and Update any Delete any
restaurants and customer information information in the information in the
menu items system system

Byte Me! – Itp102


Family Name, Given Name, MI Clear Picture Role/Participation in the Group
Project
1 Asuncion, Mary Katharine UI Designer - Designed the website
and mobile site for Kateapunero and
the function of the system /
Interface designing/ creating
documents/ proof reading

2 Azores, Charisma Mobile Developer - Helped in


designing the UI for mobile browser/
helps Interface designing/ creating
documents/ proof reading

3 Dia, Christalie Web Developer - Helped in designing


the UI for Web/ helps Interface
designing/ creating documents/
proof reading

4 Llegue, Romar Editor - Created the wireframe for UI


design / helps Interface designing/
creating documents/ proof reading

5 Samante, Allysa Mhay Project Manager - Proposed the idea


for the system, explained how it will
work & function. Helped in designing
the websites. / Helps Interface
designing/ creating documents/
proof reading

Byte Me! – Itp102


Salmorin, Emanuel Editor - Created the wireframe for UI
design / helps Interface designing/
creating documents/ proof reading

PROOF OF COMMUNICATION:

Byte Me! – Itp102


Byte Me! – Itp102
Byte Me! – Itp102
Byte Me! – Itp102
Byte Me! – Itp102
Byte Me! – Itp102
Byte Me! – Itp102

You might also like