title: How to fix "Unhandled rejection SequelizeDatabaseError: relation "ABC" does not exist"?
body: <p>I'm trying to fetch data from an existing postgres db which has a couple of tables in it. While the connection to the database is carried out successfully, I cannot seem to carry out any test queries for example </p>
  
  <pre><code>Model.findAll().then(table =&gt;{ console.log(table)}
  </code></pre>
  
  <p>I have tried appending the Schema Name to the model definition like</p>
  
  <pre><code>const Model = sequelize.define('Schema.ABC', { ....}}
  </code></pre>
  
  <p>which throws the same error as the title suggests</p>
  
  <p>I have also tried appending the Schema name to the query but it throws a syntax error and the code doesn't execute</p>
  
  <pre><code>Model.findAll().then('Schema.ABC' =&gt; { console.log(Schema.ABC)}
  </code></pre>
  
  <p>If the table does need to have Schema name appended to it, then I would also like to know how to achieve it.</p>
  
  <p>Below is a fragment of my code</p>
  
  <pre><code>const Model = sequelize.define('ABC',{
      CompanyName: Sequelize.STRING,
      createdAt: Sequelize.DATE,
      updatedAt: Sequelize.DATE
  },
  {
      // tableName: `"Schema"."ABC"`,
      freezeTableName: true
  });
  
  ...
  Model.removeAttribute('id');
  
  Model.findAll().then(ABC =&gt; {
      console.log(ABC)
  })
  </code></pre>