title: How does autoIncrement work in NodeJs's Sequelize?
body: <p>Sequelize's document doesn't say a whole lot about <code>autoIncrement</code>.  It only includes the following example:</p>
  
  <pre><code>// autoIncrement can be used to create auto_incrementing integer columns
  incrementMe: { type: Sequelize.INTEGER, autoIncrement: true }
  </code></pre>
  
  <p>Based off of this example I have the following code:</p>
  
  <pre><code>db.define('Entries', {
      id: {
          type: Seq.INTEGER,
          autoIncrement: true,
          primaryKey: true
      },
      title: {
          type: Seq.STRING,
          allowNull: false
      },
      entry: {
          type: Seq.TEXT,
          allowNull: false
      }
  }
  </code></pre>
  
  <p>Now when I want to create an entry I want to do something like this:</p>
  
  <pre><code>models.Entry.create({title:'first entry', entry:'yada yada yada'})
  </code></pre>
  
  <p>However, when I execute that code I get a database error:  </p>
  
  <blockquote>
    <p>Null value in column "id" violates not null constraint</p>
  </blockquote>
  
  <p>I would assume Sequelize would put the integer in for me or define the database table to do that itself.  Apparently not?  What am I missing here to ensure that the id is automatically incremented and filled?</p>
  
  <p>Thanks much.</p>