title: Sequelize - TypeError: Cannot read property 'define' of undefined
body: <p><strong>EDIT: There was a line present in my code that was left out of my example, it has been added and labeled with a comment.</strong></p>
  
  <p>I'm setting up a server for a new project and attempting to use Sequelize for the first time since v5. Upon running my server, this error is thrown.</p>
  
  <pre><code>/Users/me/dev/projects/my-project/node_modules/sequelize/lib/model.js:730
      options = Utils.merge(_.cloneDeep(globalOptions.define), options);
                                                      ^
  
  TypeError: Cannot read property 'define' of undefined
      at Function.init (/Users/me/dev/projects/my-project/node_modules/sequelize/lib/model.js:730:53)
      at Object.&lt;anonymous&gt; (/Users/me/dev/projects/my-project/src/server/db/models/user.js:16:6)
      at Module._compile (internal/modules/cjs/loader.js:736:30)
      at Object.Module._extensions..js (internal/modules/cjs/loader.js:747:10)
      ...
  </code></pre>
  
  <p>The error occurs during the invocation of my model definition initialization:</p>
  
  <pre><code>const sequelize = require("../_db");
  
  ...
  
  console.log('this runs');
  
  class User extends Sequelize.Model {} // edit: this line was here
  User.init(
    {
      avatar: {
        default: {
          type: Sequelize.URL,
          value: defaultAvatar
        },
        type: Sequelize.STRING
      },
      email: {
        allowNull: false,
        type: Sequelize.STRING,
        unique: true
      },
      id: {
        defaultValue: Sequelize.UUIDV1,
        primaryKey: true,
        type: Sequelize.UUID
      },
      name: {
        type: Sequelize.STRING
      },
      password: {
        allowNull: false,
        get() {
          return () =&gt; this.getDataValue("password");
        },
        type: Sequelize.STRING
      },
      salt: {
        get() {
          return () =&gt; this.getDataValue("salt");
        },
        type: Sequelize.STRING
      }
    },
    { sequelize, modelName: "user" }
  );
  
  console.log('this doesn't);
  
  </code></pre>
  
  <p>This is pretty cryptic to me, I'm not quite sure what could have gone wrong.</p>