title: TypeError: include.model.getTableName is not a function
body: <p>He thought there was a problem in the relationships between the tables. Each user can have at most one internship application.
  However, when I want to access users from these applications, I encounter the  <code>TypeError: include.model.getTableName is not a function  </code> problem, I still haven't solved it.
  I have to combine 2 models with each other.</p>
  <p><strong>User model</strong></p>
  <pre><code> const User = sequelize.define('user', {
  
      mail: {
        allowNull: false,
        type: DataTypes.STRING,
        unique: {
          args: true,
          msg: 'Bu mail adresi kullanılmaktadır !',
        },
        validate: {
          notEmpty: {
            args: true,
            msg: 'Bu alan boş bırakılamaz !',
          },
          isEmail: {
            args: true,
            msg: 'Kurallara uygun mail adresi giriniz !',
          },
        }
      },
  
      password: {
        allowNull: false,
        type: DataTypes.STRING(64),
        validate: {
          len: {
            args: [8, 64],
            msg: 'Şifre en az 8 karakterden oluşabilir.'
          },
        }
      }
  
  
    }, {
      tableName: &quot;users&quot;,
  
    });
  
  
    User.associate = (models) =&gt; {
  
      User.hasOne(models.userrole, {
        as: 'userroles',
        foreignKey: 'userID'
      });
     User.belongsTo(models.internship, {
        as: 'internships',
        foreignKey: 'id'
      });
    };
  </code></pre>
  <p><strong>Internship model</strong></p>
  <pre><code> const Internship = sequelize.define('internship', {
  
      userID: {
        type: DataTypes.INTEGER,
        allowNull: false,
      },
      userInfoID: {
        type: DataTypes.INTEGER,
        allowNull: false,
      },
      schoolInfoID: {
        type: DataTypes.INTEGER,
        allowNull: false,
      },
      privateInfoID: {
        type: DataTypes.INTEGER,
        allowNull: false,
      },
      statusID: {
        type: DataTypes.INTEGER,
        allowNull: false,
      
      },
    }, {
      tableName: &quot;internships&quot;
    });
  
    Internship.associate = (models) =&gt; {
  
      Internship.belongsTo(models.user, {
        as: 'users',
        foreignKey: 'userID'
      });
    };
  
  </code></pre>
  <p><strong>Controller</strong></p>
  <pre><code>     internship.findAll({ 
              include: [
              {
                  as:&quot;users&quot;,
                  model: user,
              
              },
              ]
          }).then(result=&gt;{
              res.status(200).json({
                  result })
          })
  </code></pre>