Learning Journal Unit 2
Learning Journal Unit 2
Introduction
orders and customers, I will designing a data model for this database.
Data modeling is a process that helps us to understand the structure, form and relationships of
1. We will begin by building a logical data Model and then define the entities, their
PRODUCT
Name
Description
Price
Category
Customer
Customer_id(Primary_key)
First_name
Last_name
Phone
Address
Order
3
Entity-Relationship (E-R) Modelling
Order_id(primary Key)
Order_date
Total_amount
Status
Inventroy
Inventory_id(Primary Key)
Product_id(foreign key)
Quantity
Las_updated.
Here is how I will define the relationships between entities and attributes;
Customer to order: one-to-many(1:N) ie. One customer can place many orders
Order to product: Many – to -Many (M:N) ie. One order can contain multiple
Customer Table
4
Entity-Relationship (E-R) Modelling
Customer_id First_name Last_name Address Email phone
(PK)
st. om
Product Table
Order Table
Inventory Table
4. Here are two key differences between conceptual and Physical Design in this contest;
only identifies the relationship between the products, customers, orders and
the inventory and their attributes. This is the abstract level of the database
design
6
Entity-Relationship (E-R) Modelling
Whiles, the physical design deals with the actual implementation details like
the data types, indexing, storage considerations. This is the aspect that
structure. Whiles the physical database implements the visualized design into
constraints.
REFERENCE:
logical. https://www.couchbase.com/blog/conceptual-physical-logical-data-
models/