Question: You have been tasked with building a simple e - commerce database using MongoDB. The database should have the following requirements: A ER diagram must

You have been tasked with building a simple e-commerce database using MongoDB. The database should have the following requirements:
A ER diagram must be made for it
The database should store information about products, customers, and orders.
Each product should have a name, price, and description.
Each customer should have a name, email, and shipping address.
Each order should have a customer, a list of products, and a total price.
Your task is to design and implement the database schema, as well as write queries to retrieve and manipulate data.
Part 1: Database Schema
Design a database schema that satisfies the above requirements. You should consider the following:
What collections will you need?
What fields will each collection have?
What relationships exist between collections?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!