Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
53 views2 pages

Entities

The document outlines the structure and processes of an Online Food Delivery System, detailing user registration, restaurant management, payment processing, and order fulfillment. It describes key entities such as Customer, Restaurant, Menu, Order, Order_Item, Payment, and Delivery, along with their attributes and relationships. The relationships include how customers place orders, orders containing menu items, and the connection between orders, payments, and deliveries.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
53 views2 pages

Entities

The document outlines the structure and processes of an Online Food Delivery System, detailing user registration, restaurant management, payment processing, and order fulfillment. It describes key entities such as Customer, Restaurant, Menu, Order, Order_Item, Payment, and Delivery, along with their attributes and relationships. The relationships include how customers place orders, orders containing menu items, and the connection between orders, payments, and deliveries.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Order Placement: Customers place orders for food items from selected restaurants.

Introduction to ER Diagram for Online Food Delivery System:

An Online Food Delivery System allows customers to order food from various restaurants through
an app or website, which is then delivered to their desired location. The system needs to handle
various processes, such as:

User Registration and Authentication: Users (customers, delivery personnel, and restaurant
owners) must be able to register and log in to the system.

Restaurant Management: Each restaurant must have its own profile, menu items, and pricing.

Payment Processing: The system handles payments for the orders, including payment methods like
credit cards, online wallets, etc.

Order Fulfillment and Delivery: The restaurant processes the order, and delivery personnel are
assigned to deliver the food.Entities:

1. Customer

o Attributes: Customer_ID, Name, Email, Phone, Address

2. Restaurant

o Attributes: Restaurant_ID, Name, Location, Phone, Email

3. Menu

o Attributes: Menu_ID, Name, Price, Description, Category (e.g., Appetizer, Main


Course, Dessert)

4. Order

o Attributes: Order_ID, Date, Status, Total_Amount, Customer_ID (FK), Restaurant_ID


(FK)

5. Order_Item

o Attributes: Order_Item_ID, Quantity, Menu_ID (FK), Order_ID (FK)

6. Payment

o Attributes: Payment_ID, Payment_Type, Amount, Order_ID (FK), Payment_Date

7. Delivery
o Attributes: Delivery_ID, Delivery_Date, Delivery_Status, Order_ID (FK),
Delivery_Address

Relationships:

1. Customer places Order

o One customer can place multiple orders, but each order is linked to only one
customer.

2. Order contains Menu items through Order_Item

o One order can contain multiple menu items, and each menu item can appear in
many orders.

3. Restaurant has multiple Menu items

o One restaurant can have many menu items, but each menu item belongs to only one
restaurant.

4. Payment is made for Order

o One payment is linked to one order, but an order can have only one payment.

5. Order is delivered via Delivery

o One order can be associated with one delivery.

Relationships in ER diagram:

 Customer → Order (1:M)

 Order → Menu through Order_Item (M:N)

 Restaurant → Menu (1:M)

 Order → Payment (1:1)

 Order → Delivery (1:1)

You might also like