db.orders.belongsTo(db.pairs, {foreignKey: 'currency', otherKey: 'currency'});
db.orders.belongsTo(db.pairs, {foreignKey: 'c_currency', otherKey: 'c_currency'});
Orders.findAll({
include: [{ model: Pairs, where: {currency: Pairs.curency , c_currency: Pairs.c_currency }, attributes: ['tradingPairs'] }],
})
чтото не так кажись у меня , пустйо массив вышел