title: Sequelize expecting Integer despite of making the type for the field as Float
body: <p>I have a model as below:</p>
  
  <pre><code>const Sequelize = require("sequelize");
  const sequelize = new Sequelize({
    database: process.env.PGDATABASE,
    username: process.env.PGUSER,
    password: process.env.PGPASS,
    host: process.env.PGHOST,
    port: process.env.PGPORT,
    dialect: "postgres"
  });
  
  var MessageRating = sequelize.define(
    "MessageRating",
    {
      chatId: {
        type: Sequelize.STRING,
        primaryKey: true,
        allowNull: false
      },
      ratingType: {
        type: Sequelize.ENUM,
        values: ["NEGATIVE", "POSITIVE", "NEUTRAL", "MIXED"],
        allowNull: false
      },
      rating: {
        type: Sequelize.FLOAT,
        allowNull: false
      }
    },
    {
      indexes: [
        {
          unique: false,
          fields: ["ratingType"]
        }
      ]
    }
  );
  
  module.exports = MessageRating;
  </code></pre>
  
  <p>I'm trying to create a table using this model using the following code :</p>
  
  <pre><code> var messageRatingStored = sequelize
            .sync()
            .then(() =&gt;
              MessageRating.create({
                chatId: chatId,
                ratingType: amazonComprehendResult.ResultList[0].Sentiment,
                rating: roundOffRating
              })
            )
            .then(messageRating =&gt; {
              console.log("MessageRating json", messageRating.toJSON());
            });
  </code></pre>
  
  <p>Whenever I run the code it throws error: "Unhandled rejection SequelizeDatabaseError: invalid input syntax for integer: "0.82""</p>
  
  <p><a href="https://gist.github.com/BikalNepal/51fd28f877b422fcc16825d61cd95847" rel="nofollow noreferrer">https://gist.github.com/BikalNepal/51fd28f877b422fcc16825d61cd95847</a></p>
  
  <p>I tried using a static integer value (82, 10 etc) instead of "roundOffRating" (which gives decimal) and it stores perfectly without errors. Since I'm not using Integer for the type of rating in the model, why is it still expecting integer?</p>