title: database error on simple select with sequelize
body: <p>I have a simple query to my postgres database, is a simple select to a user by email. Im using node.js with express.js and sequelize.</p>
  
  <p>i dont know why is throwing me an error, and the message is very bad, this is the error:</p>
  
  <pre><code>"message": {
              "name": "SequelizeDatabaseError",
              "parent": {
                  "name": "error",
                  "length": 104,
                  "severity": "ERROR",
                  "code": "42P01",
                  "position": "97",
                  "file": "parse_relation.c",
                  "line": "1180",
                  "routine": "parserOpenTable",
                  "sql": "SELECT \"id\", \"email\", \"password\", 
  \"created_at\" AS \"createdAt\", \"updated_at\" AS \"updatedAt\" FROM 
  \"users\" AS \"user\" WHERE \"user\".\"email\" = 'kmilo93sd@gmail.com' 
  LIMIT 1;"
              },
  </code></pre>
  
  <p>this is my user model:</p>
  
  <pre><code>const User = database.define('user',{
    id: {
      type: sequelize.STRING,
      primaryKey: true
    },
    email: sequelize.STRING,
    password: sequelize.STRING
  });
  
  module.exports = User;
  </code></pre>
  
  <p>this is my sequelize config:</p>
  
  <pre><code>module.exports = new Sequelize(
    process.env.database_name,
    process.env.database_user,
    process.env.database_password,
    {
      host: process.env.database_host,
      dialect: process.env.database_dialect,
      define: {
        underscored: true
      },
      pool: {
        max: 5,
        min: 0,
        idle: 10000
      }
    }
  );
  </code></pre>
  
  <p>and this is my sql:</p>
  
  <pre class="lang-sql prettyprint-override"><code>CREATE TABLE "users" (
      "id" varchar(36) NOT NULL,
      "email" varchar(30) NOT NULL UNIQUE,
      "password" varchar(200) NOT NULL,
      "created_at" TIMESTAMP NOT NULL,
      "updated_at" TIMESTAMP NOT NULL,
      CONSTRAINT users_pk PRIMARY KEY ("id")
  ) WITH (
    OIDS=FALSE
  );
  </code></pre>
  
  <p>how can i fix this, and what is this error?</p>