thilina dilshanforthilinathilina.hashnode.net·Apr 16, 2021Sequelize AssociationsThere are is four type of associations. A.hasOne(B); // A is source and B is target A.belongsTo(B); A.hasMany(B); A.belongsToMany(B, { through: 'C' }); The A.hasOne(B) mean, foreign key defined in the target model (B). The A.belongsTo(B) foreig...10 likes·43 readsNode.jsAdd a thoughtful commentNo comments yetBe the first to start the conversation.