title: How to set default boolean value in sequelize
body: <p>How to set default boolean value in sequelize?</p>
  
  <pre class="lang-js prettyprint-override"><code>var Foo = sequelize.define('foo', {
    name: Sequelize.STRING,
    flag: { type: Sequelize.BOOLEAN, allowNull: false, defaultValue: true}
  })
  Foo.sync().then(() =&gt; {
    Foo.create({name: "name"})
  })
  </code></pre>
  
  <p>nodejs output:</p>
  
  <pre><code>Unhandled rejection SequelizeDatabaseError: Incorrect integer value: 'true' for column 'flag' at row 1
  </code></pre>
  
  <p>mysql log:</p>
  
  <pre><code>INSERT INTO `foos` (`id`,`name`,`flag`,`createdAt`,`updatedAt`) VALUES (DEFAULT,'name','true','2019-06-27 22:41:25','2019-06-27 22:41:25')
  </code></pre>
  
  <p>Boolean <code>true</code> was converted to string '<code>true</code>' automatically by sequelize</p>
  
  <p>Environment:</p>
  
  <ol>
  <li>mysql version: 5.7.9</li>
  <li>Sequelize version: 5.8.11</li>
  <li>Node Version: v8.9.1 </li>
  <li>OS: win10</li>
  </ol>