title: Nodjs sequalize how to get last insert id
body: <p>I am using Sequalize with nodejs to insert a row in a table,now i want that last inserted id,i want some thing like "mysql_insert_id()", here is my code:</p>
  
  <pre><code>function registerAgent(agent_data,request_key,res,next)
  {
    models.agent.create({creator_id: agent_data.userid },  { fields: [ 'creator_id'] }).then(function(user) {
        console.log(user);
      }); 
  };
  </code></pre>