How to implement sequelizeJs mysql Association query

SELECT * FROM user_control uc
LEFT JOIN user_role ur ON ur.id = uc.role

ordinary sql statements can add identities without adding primary foreign keys to the database to associate
how to associate two or more tables with sequelizeJs


now that you have chosen the orm framework, you should use the data model to bind the association. The
sequelize model supports 1-to-1, 1-to-many, many-to-many associations.
if you just want to use SQL statements, you should give up sequelize,. After all, the feature of orm is model

.
Menu