Among the tables we have are Users, Categories, and Users_Categories.
Suppose we already have one user with user_id = 1 and one category with category_id = 1. Now, I am looking to establish a connection between them using the Users_Categories join table. How can this be achieved using Sequelize (v6)?
The association between the tables is set up as follows:
User.belongsToMany(Category, {through: User_Category});
Category.belongsToMany(User, {through: User_Category});