The main content of the order will be the list of products ordered along with details, such as quantity of each. We will record this list in a field called products in the Order schema. The structure of each product will be defined separately in CartItemSchema.
mern-marketplace/server/models/order.model.js:
products: [CartItemSchema],