title: Sequelize - How do I fix "DataTypes is not defined"?
body: <p>I'm trying to have a model in sequelize generate a unique ID using <code>DataTypes.UUID</code>. This throws an error when I serve up my application</p>
  
  <p><code>ReferenceError: DataTypes is not defined</code></p>
  
  <p><strong>Here's my code</strong></p>
  
  <pre><code>var Sequelize = require('sequelize');
  var sequelize = new Sequelize('uppersphere', '****', '***', {
    logging: false
  });
  ...
  var Peak = sequelize.define('peak', {
    id: {
      type: DataTypes.UUID,
      defaultValue: DataTypes.UUIDV1,
      primaryKey: true
    },
  </code></pre>
  
  <p><strong>Here's the documentation</strong></p>
  
  <pre><code>sequelize.define('model', {
      uuid: {
        type: DataTypes.UUID,
        defaultValue: DataTypes.UUIDV1,
        primaryKey: true
      }
    })
  </code></pre>
  
  <p>The obvious answer is that it's not my code, but there's some <code>require()</code> that I need. However, I don't see any documentation on what to require to get DataTypes.</p>