This document describes a pizza ordering system project for a university semester project. It includes a feasibility study, modules, context and level 0 diagrams, entity relationship diagrams, database tables, relationships, SQL queries, and screenshots. The system allows customers to place orders, managers to process orders, the kitchen to prepare pizzas, suppliers to deliver orders, and managers to update records. It consists of tables for customers, orders, pizzas, suppliers, and payments with attributes and relationships between them.
1. Page | 0A B D U L W A L I K H A N U N I V E R I T Y M A R D A N
COMPUTER
SCIENCE
4th open
BY
S A L M A N K H A N 13
Group Member
S A N A U L L A H 12
2019Salm0nkhan@yahoo.com
PIZZA ORDERING SYSTEM
Logical & Conceptual Approach
BY SALMAN KHAN
Semester Project
2. Semester Project
PIZZA ORDERING SYSTEM Database
TABLE OF CONTENTS
1 Feasibility Study
2 Modules
3 Context Diagram
4 Level 0 Diagram
5 Entities and its Attributes
6 ER Diagram
7 Tables & Relations
8 SQL Queries Used
9 Screenshots
4. Semester Project
PIZZA ORDERING SYSTEM Database
o Customer places an order.
o Manager check order details and send a confirmation to the customer.
o Customer gets a confirmation of the order.
o Manager stores the order details in the Order Details File.
o Managers send order to kitchen for cooking and generate a bill.
o Manager Stores the bill in the Bill Storage File.
o Ready pizza from kitchen, Bill from Bill Storage File and Customer details from
the Manager are then proceeds for Packing.
o Packed item from Packing is then supplies to the Supplier.
o Supplier delivers the product to the desired customer.
o Customer pays bill to the supplier.
o Supplier submits the paid bill to the manager.
o Manager updates the customer record and ticks the pizza as sold.
5. Semester Project
PIZZA ORDERING SYSTEM Database
1) Pizza Ordering
o Customer Orders Pizza
o Manager sends a confirmation.
o Customer gets a confirmation.
2) Order Processing
o Manager saves order details.
o Manager sends order to kitchen and generate bill.
o Ready pizza, Customer details & bill are packed.
3) Pizza Delivering
o Supplier delivers the final product.
o Customer pays bill.
4) Updating Record
o Supplier updates paid bill to the manager.
o Manager updates customer record and ticks pizza as sold.
6. Semester Project
PIZZA ORDERING SYSTEM Database
CUSTOMER
MANAGER
SUPPLIER
KITCHEN
PIZZA ORDERING
SYSTEM
Order Pizza
Pay Bill
Product
Pizza
Paid Bill
Bill Payment
Store Details
Order Details
Cooking Order
Ready Pizza
Bill Payment
Delivery
Confirmation
Confirmation
Update Payment
7. Semester Project
PIZZA ORDERING SYSTEM Database
1.0
PIZZA
ORDER
CUSTOMER
KITCHEN
MANAGER
6.0
DELIVERY
SUPPLIER
5.0
SUPPLIES
PACKING
Order
Confirmation
Order
Details
4.0
PACKING
ALL ITEMS
Payment Bill
Bill
Packed Product
Final Product
Ready Pizza
Final Product
Dispatches
PizzaPayment
ORDER
DETAILS
BILL STORAGE
Payment
Payment Update
7.0
PAYMENT
UPDATE TO
MANAGER
Payment
3.0
Generating Order
Details & Bill
Order
8.0
UPDATE
RECORD
Update Update
Order Details
Customer Details
Confirmation
2.0
SAVE
DETAILS
8. Semester Project
PIZZA ORDERING SYSTEM Database
1.CUSTOMER
Customer_Id
Customer_Name
Customer_Email
Customer_Phone
Customer_Address
2.ORDER
Order_Id
Customer_Id
Order_Status
Order_Time
3.PIZZA
Pizza_Id
Order_Id
Price
Pizza_Type
Pizza_Quantity
Customer_Id is taken as the
PRIMARY KEY Attribute
Order_Id is taken as the
PRIMARY KEY Attribute
Customer_Id act as FOREIGN KEY here
Pizza_Id is taken as the
PRIMARY KEY Attribute
Order_Id act as FOREIGN KEY here
9. Semester Project
PIZZA ORDERING SYSTEM Database
4.PAYMENT
Payment_Id
Customer_Id
Pizza_Id
Bill
Payment_Status
5.SUPPLIER
Supplier_Id
Customer_Id
Order_Id
Customer_Address
Payment_Id is taken as the
PRIMARY KEY Attribute
Customer_Id & Pizza_Id
act as FOREIGN KEY here
Supplier_Id is taken as the
PRIMARY KEY Attribute
Order_Id & Customer_Id
act as FOREIGN KEY here
10. Semester Project
PIZZA ORDERING SYSTEM Database
Customer_Phone
Customer_Name
Customer_Email
Customer_Id
Pizza_Quant
Order_Id
Order_Time
Pizza_Id
Bill
Order_id
PLACES
IS WITH
Payment_Id
Supplier_Id
PAYS
Customer_Address
Customer_Address
Customer_Id
DELIVERS
PIZZA TO
PAYMENT
SUPPLIER
CUSTOMER
ORDER
Customer_Id
Customer_Id
PIZZA
Pizza_Id
Pizza_TypePrice
HAS
HAS
Order_Id
Order_Status
Payment_Status
12. Semester Project
PIZZA ORDERING SYSTEM Database
create table Customer
(
Customer_Id int not null
identity(100,1),
Customer_Name varchar(50) not null,
Customer_Email varchar(50) not null,
Customer_Phone nchar(20) not null,
Customer_Address varchar(100) not null,
primary key(Customer_Id)
)
create table Orders
(
Order_Id int not null identity(200,1),
Customer_Id int not null,
Order_Status varchar(20) default'Hold',
Order_Time datetime,
primary key(Order_Id)
)
create table Pizza
(
Pizza_Id int not null identity(300,1),
Order_Id int not null,
Price int not null,
Pizza_Type varchar(30),
Pizza_Quant int,
primary key(Pizza_Id)
)
create table Supplier
(
Supplier_Id int not null
identity(400,1),
Customer_Id int not null,
Order_Id int not null,
Customer_Address varchar(100) not null,
primary key(Supplier_Id)
)
create table Payment
(
Payment_Id int not null identity(500,1),
Pizza_Id int not null,
Customer_Id int not null,
Payment_Status varchar(20) default'Not Piad',
Bill int not null,
primary key(Payment_Id)
)
create database Pizza_ordering_System;
14. Semester Project
PIZZA ORDERING SYSTEM Database2019
Semester Project
BY SALMAN KHAN
[PIZZA ORDERING SYSTEM]
A b d u l W a l i K h a n U n I v e r s I t y M a r d a n