hatchways / team-penguin

World Chat Messenger allows users from completely different language backgrounds to converse with each other in their own language taking globalization to the next level.
2 stars 0 forks source link

add model for invitation #26

Closed cch5ng closed 4 years ago

cch5ng commented 4 years ago

@rjtbansal: do I need to write something additional to establish relationships between collections (like to_user and from_user are referencing id's from the user collection I assume)? I think I found one example for this

rjtbansal commented 4 years ago

like to_user and from_user are referencing id's from the user collection I assume

Yes @cch5ng I would interpret it the same way. Using their ids should be good enough to be able to establish relationships.

cch5ng commented 4 years ago

this ticket can be reviewed. I included my changes from #15 along with this ticket so I would be able to test the BE request. I am unsure about the route, usually I use the convention like //user/:id so I just kept to that idea. do you want me to create a user router and is that separate from the routes used in authentication?