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)


The relationship between the Customers and Products tables is one-to-many because each customer can have many products in their purchase history, but each product can only belong to one customer. On the other hand, the relationship between the Products and Orders tables is many-to-many because each order can contain multiple products, and each product can be included in multiple orders.

Comments

Popular posts from this blog

Example of different types of E-commerce: including screenshots, description and links.

Research what Alt Tags and Title Tags are in HTML, and discuss how they improve SEO for your E-commerce website.

Documentation of progress in Website Development (Using Wix). Post should cover signification milestones in the development process.