Uploaded by Yurii Herasymchuk

project-pizza

advertisement
Semester Project
PIZZA ORDERING SYSTEM
Logical & Conceptual Approach
BY SALMAN KHAN
Salm0nkhan@yahoo.com
2019
BY
S A L M A N K H A N 13
Group Member
COMPUTER
SCIENCE
4th open
S A N A U L L A H 12
ABDUL WALI KHAN UNIVERITY MARDAN
Page | 0
Database
PIZZA ORDERING SYSTEM
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
Semester Project
Database
PIZZA ORDERING SYSTEM
Submitted To
SIR SHEHZAD
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.
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.
Semester Project
Database
PIZZA ORDERING SYSTEM
Order Pizza
CUSTOMER
SUPPLIER
Pay Bill
Pizza
Confirmation
Bill Payment
Delivery
Product
PIZZA ORDERING
SYSTEM
Update Payment
Paid Bill
Confirmation
Store Details
Order Details
Bill Payment
Ready Pizza
MANAGER
Cooking Order
KITCHEN
Semester Project
Database
PIZZA ORDERING SYSTEM
8.0
UPDATE
RECORD
Update
Confirmation
Order
CUSTOMER
Payment
Update
Confirmation
1.0
PIZZA
ORDER
Order
MANAGER
Order Details
2.0
SAVE
DETAILS
ORDER
DETAILS
Pizza
Details
6.0
DELIVERY
Payment Update
Payment
7.0
PAYMENT
UPDATE TO
MANAGER
Payment Dispatches
SUPPLIER
KITCHEN
4.0
PACKING
ALL ITEMS
5.0
SUPPLIES
PACKING
3.0
Generating Order
Details & Bill
Ready Pizza
Final Product
Final Product
Order
Customer Details
Packed Product
Bill
Payment Bill
BILL STORAGE
Semester Project
Database
PIZZA ORDERING SYSTEM
1. CUSTOMER





Customer_Id
Customer_Name
Customer_Email
Customer_Phone
Customer_Address
Customer_Id
is taken as the
PRIMARY KEY Attribute
2. ORDER




Order_Id
Customer_Id
Order_Status
Order_Time
Order_Id
is taken as the
PRIMARY KEY Attribute
Customer_Id act as FOREIGN KEY here
3. PIZZA





Pizza_Id
Order_Id
Price
Pizza_Type
Pizza_Quantity
Pizza_Id
is taken as the
PRIMARY KEY Attribute
Order_Id act as FOREIGN KEY here
Semester Project
Database
PIZZA ORDERING SYSTEM
4. PAYMENT





Payment_Id
Customer_Id
Pizza_Id
Bill
Payment_Status
Payment_Id
is taken as the
PRIMARY KEY Attribute
Customer_Id & Pizza_Id
act as FOREIGN KEY here
5. SUPPLIER




Supplier_Id
Customer_Id
Order_Id
Customer_Address
Supplier_Id
is taken as the
PRIMARY KEY Attribute
Order_Id & Customer_Id
act as FOREIGN KEY here
Semester Project
Database
PIZZA ORDERING SYSTEM
Customer_Id
Order_Time
Order_Id
Customer_Address
Order_Status
Customer_Phone
Customer_Email
ORDER
PLACES
Customer_Name
CUSTOMER
HAS
Customer_Id
PAYS
Order_Id
Pizza_Id
Price
PIZZA
Pizza_Type
Pizza_Quant
DELIVERS
PIZZA TO
IS WITH
HAS
PAYMENT
Payment_Id
Customer_Id
Bill
Payment_Status
Pizza_Id
SUPPLIER
Supplier_Id
Customer_Address
Customer_Id
Order_id
Semester Project
Database
PIZZA ORDERING SYSTEM
Customer
Orders
Customer_Id
Order_Id
Customer_Name
Customer_Id
Customer_Email
Order_Status
Customer_Phone
Order_Time
Customer_Address
Payment
Pizza
Payment_Id
Pizza_Id
Pizza_Id
Order_Id
Customer_Id
Price
Payment_Status
Pizza_Type
Bill
Pizza_Quant
Supplier
Supplier_Id
Customer_Id
Order_Id
Customer_Address
Semester Project
Database
PIZZA ORDERING SYSTEM
create database Pizza_ordering_System;
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 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 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 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)
)
Semester Project
Database
PIZZA ORDERING SYSTEM
Customer Table
Order Table
Pizza Table
Supplier Table
Payment Table
Semester Project
2019
PIZZA ORDERING SYSTEM
Database
Semester Project
BY SALMAN KHAN
[PIZZA ORDERING SYSTEM]
Abdul Wali Khan UnIversIty Mardan
Semester Project
Download