sequalize-auto relation issue using sequalize
<p>I'm using sequelize-auto to create the models from the database. But I'm not able to use include method for the relationship. I'm getting the below error </p>

<p>Error: student_details_tbl (studentDetails) is not associated to user_tbl!</p>

<p>Here are my models and database connections.</p>

<p>database Connection</p>

<pre><code>var config      =   require('./config'); 
var Sequelize   =   require('sequelize');

var db          =   new Sequelize(config.dbConn.database, config.dbConn.user, config.dbConn.password,{
    dialect     :   config.dbConn.dialect,
    host        :   config.dbConn.host,
    port        :   config.dbConn.port,
    pool        :   config.dbConn.pool,
    define      :   {
        timestamps: false
    }
});

db.sync();


db.Sequelize    =   Sequelize;

module.exports  =   db;
</code></pre>

<p>user_tbl : </p>

<pre><code>module.exports = function(sequelize, DataTypes) {
  return sequelize.define('user_tbl', {
    id: {
      type: DataTypes.INTEGER(11),
      allowNull: false,
      primaryKey: true,
      autoIncrement: true
    },
    firstName: {
      type: DataTypes.STRING,
      allowNull: true
    },
    lastName: {
      type: DataTypes.STRING,
      allowNull: true
    },
    loginId: {
      type: DataTypes.STRING,
      allowNull: true
    },
    password: {
      type: DataTypes.STRING,
      allowNull: true
    },
    created: {
      type: DataTypes.DATE,
      allowNull: true,
      defaultValue: sequelize.literal('CURRENT_TIMESTAMP')
    },
    modified: {
      type: DataTypes.DATE,
      allowNull: true,
      defaultValue: sequelize.literal('CURRENT_TIMESTAMP')
    }
  }, {
    tableName: 'user_tbl'
  });
};
</code></pre>

<p>student_details_tbl : </p>

<pre><code>module.exports = function(sequelize, DataTypes) {
  return sequelize.define('student_details_tbl', {
    id: {
      type: DataTypes.INTEGER(11),
      allowNull: false,
      primaryKey: true,
      autoIncrement: true
    },
    userId: {
      type: DataTypes.INTEGER(11),
      allowNull: true,
      references: {
        model: 'user_tbl',
        key: 'id'
      }
    },
    barcode: {
      type: DataTypes.INTEGER(13),
      allowNull: false
    },
    rollNumber: {
      type: DataTypes.STRING,
      allowNull: false,
      defaultValue: ''
    },
    created: {
      type: DataTypes.DATE,
      allowNull: true,
      defaultValue: sequelize.literal('CURRENT_TIMESTAMP')
    },
    modified: {
      type: DataTypes.DATE,
      allowNull: true,
      defaultValue: sequelize.literal('CURRENT_TIMESTAMP')
    }
  }, {
    tableName: 'student_details_tbl'
  });
};
</code></pre>