v0.17.2
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user