Closed Raesquiv13 closed 4 years ago
Implement the userName will help you to have a reference about the owner of the product, it will be important to request for data about the owner.
New model: { userEmail: { type: String, unique: true, lowercase: true }, name: String, picture: String, price: { type: Number, default: 0 }, category: { type: String, default: 'No hay categoria' }, description: String }
As the product owner, I want to:
Add the userEmail as part of the attributes of the product model.