This commit is contained in:
les
2019-11-09 15:16:07 +01:00
parent e23d3a13ad
commit 2d2e539928
2 changed files with 3 additions and 2 deletions

View File

@@ -8,7 +8,8 @@ module.exports = (sequelize, DataTypes) => {
}, {})
fed_users.associate = function (models) {
fed_users.belongsTo(models.instances)
// associations can be defined here
fed_users.belongsToMany(models.user, { through: 'user_followers', as: 'followers' })
}
return fed_users
}