use data from foreign key table in where clause sequelize code example
Example: sequelize create record with foreign key constraint
Project.belongsTo(User, {foreignKey: 'user_id'})
Project.belongsTo(User, {foreignKey: 'user_id'})