Objectives:
-Add users to the seed file.
-Add selected movies to the seed file (for various users)?
Questions to consider:
Will created_at and updated_at properties for a user be automatically added or modified?
Test this in mongo.
Is it possible to include passwords in the seed.js file in a way that they would be encrypted? Yes-- you just have to .save user for password to be encrypted.
save dates in date format? (In Postman they are wrapped in " ".) If they need to be stringified, at what point should this happen?)
Considerations:
Note: All collaborators will need to run $ node seed.js after pulling in order to seed their databases.
For testing purposes, I only added .save actions for properties associated with MGustave--once we've confirmed these are working, will add save actions for Agatha and Zero. (Update: Agatha and Zero added 11/22)
Note: movie key/value pairs in watched_lists and to_watch_lists are based on the movie model Luis created 11/21 (in luis branch).
Objectives: -Add users to the seed file. -Add selected movies to the seed file (for various users)?
Questions to consider:
.save
user for password to be encrypted.Considerations:
.save
actions for properties associated with MGustave--once we've confirmed these are working, will addsave
actions for Agatha and Zero. (Update: Agatha and Zero added 11/22)