title: Unhandled rejection SequelizeDatabaseError: relation "users" does not exist
body: <p>I am getting started with Sequelize.  I am following the documentation they are providing on their website :<a href="http://docs.sequelizejs.com/manual/installation/getting-started.html" rel="noreferrer">http://docs.sequelizejs.com/manual/installation/getting-started.html</a> </p>
  
  <pre><code>const Sequelize = require('sequelize');
  const sequelize = new Sequelize('haha', 'postgres', 'postgres', {
    host: 'localhost',
    dialect: 'postgres',
    operatorsAliases: false,
  
    pool: {
      max: 5,
      min: 0,
      acquire: 30000,
      idle: 10000
    },
  
    // SQLite only
    storage: 'path/to/database.sqlite'
  });
  
  
  sequelize
    .authenticate()
    .then(() =&gt; {
      console.log('Connection has been established successfully.');
    })
    .catch(err =&gt; {
      console.error('Unable to connect to the database:', err);
    });
  
  
    const User = sequelize.define('user', {
      firstName: {
        type: Sequelize.STRING
      },
      lastName: {
        type: Sequelize.STRING
      }
    });
  
    // force: true will drop the table if it already exists
    User.sync({force: true}).then(() =&gt; {
      // Table created
      return User.create({
        firstName: 'John',
        lastName: 'Hancock'
      });
    });
  </code></pre>
  
  <p>Up until here, everything works perfectly. And the table "user" is correctly built and populated. (Although I do not understand Sequelize appends an "s" automatically to "user", any explanation.)</p>
  
  <p><a href="https://i.stack.imgur.com/qIQWf.png" rel="noreferrer"><img src="https://i.stack.imgur.com/qIQWf.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/6ibeT.png" rel="noreferrer"><img src="https://i.stack.imgur.com/6ibeT.png" alt="enter image description here"></a></p>
  
  <p>However when I add the following portion of code:</p>
  
  <pre><code>User.findAll().then(users =&gt; {
    console.log(users)
  })
  </code></pre>
  
  <p>I get this error :  </p>
  
  <blockquote>
    <p>Unhandled rejection SequelizeDatabaseError: relation "users" does not
    exist</p>
  </blockquote>
  
  <p>So my questions are:  </p>
  
  <ol>
  <li>Why does Sequelize add an "s" to user. (I know it makes sense but shouldn't the developer decide that)  </li>
  <li>What is causing that error? I followed the documentation but it still didn't work?</li>
  </ol>