GroupMessage

Back-end application to experiment with database structure for group messaging based on this set up.

Changed the relationships between Conversation, User, and UserConversation to use .belongsToMany().

User.belongsToMany(Conversation, { through: UserConversation, foreignKey: 'user_id' })

Conversation.belongsToMany(User, { through: UserConversation, foreignKey: 'conversation_id' })

This simplifies the data and db calls.