When using Sequelize.js, the following code doesn\'t add any foreign key on tables.
var MainDashboard = sequelize.define(\'main_dashboard\', { title: Sequ
You need to add foreignKeyConstraint: true
foreignKeyConstraint: true
Try:
MainClient.hasOne(MainDashboard, { foreignKey: 'idClient', foreignKeyConstraint: true })