Create an ERD for your website database. Identify the entities, attributes, relationships and cardinalities.
![]() |
| (Designed by fullvector, shorturl.at/FS259 ) |
In this post, I aim to introduce the Entity-Relationship
Diagram (ERD) that I have designed using the tool draw.io. An ERD is a
graphical representation of entities and their relationships to each other, and
it is an important tool in the development of any database-driven system, such
as my e-commerce project. The ERD I have created using draw.io accurately
depicts the relationships between entities in my e-commerce project, ensuring
its compatibility and functionality.
![]() |
| (www.draw.io) |
The presented ER diagram showcases a product database of my an e-commerce website, consisting of three entities - Customers, Products, and Orders. The Customers entity has attributes such as first name, last name, primary key, phone number, address, and email. It is then connected to the Products entity via a one-to-many relationship that I have named "purchase". The Products entity, on the other hand, has attributes like primary key, quantity in stock, product name, product image, product price, and product description. Furthermore, it is connected to the Orders entity via a many-to-many relationship, which I have named "products_orders". The Orders entity has attributes including product's foreign key, customer's foreign key, primary key, order date, total price, payment method, delivery address, order status, and quantity of ordered products.
![]() |
| (www.draw.io) |


.png)
Comments
Post a Comment