mostly minor changes to models and routes #10
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In the game.js model, I changed the pluralization of things to singular since sequelize automatically does that for us. I also changed poster to datatype of TEXT which allows for more than 255 characters or whatever.
Question: What is "hypes" for a game?
For user.js model, I added stuff for the avatar, background image, and color accent. I also changed the pluralization again.
for both route files, I changed pluralization again.
In the package.json file, I added a bunch of dependencies that PassportJS is supposed to need, but I don't know.
In server.js, I added a bunch of code to set up passport, but it's not really in use yet because I'm still a bit confused by passportjs.
I created a seeds.sql to create a single user for our database. I didn't create one for games because I didn't see an associated userid for a game, and I wanted to ask if we should add one? In the spreadsheet Quincy sent us, there's one there, and would think we'd have to do that in order to have the games/users relationship set up.