Open jealapera opened 3 months ago
Hi @jealapera cc @kimmayorga , in regards with this part of the task
Migration File Creation: Enhance the Users model schema by creating a migration file. This migration file should reflect the changes needed to accommodate the new requirements. Refer to the Knex.js Setup documentation for creating migration files.
Knex.js does not support Mongo DB or No SQL Databases. It only support relational databases.
So I will skip it for now.
@iamcubs Yeah, I just did some research and It supports databases like PostgreSQL, MySQL, SQLite3, and MSSQL, etc., but not Mongo DB
@iamcubs further research I think mongo DB has it's own Migration Tool, can you look to this Migrate-mongo
Thank you on this @kimmayorga. I will try to create a migration file using this migrate-mongoose.
@iamcubs let me know if I can help on anything.
@iamcubs Thank you for bringing this up, apologies for the oversight. Please skip the creation of migration files and proceed with directly updating the model schema via Mongoose within the code. I've also updated the task description accordingly for your reference.
CC: @kimmayorga
Noted on this @jealapera . Thank you.
Objective:
Requirements:
Implementation:
userModel.js
file located in the/models
folder using Mongoose, incorporating the mentioned requirements.Documentation: