Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 ecommerce 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 : 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started