I\'ve read sequelize doc about Association Scopes. The example there is:
const Bar = sequelize.define(\'bar\', { status: DataTypes.STRING }); Foo.hasMany(Bar,