text: module.exports = (sequelize, DataTypes) => {
    const User = sequelize.define(
      'user',
      {
        firstName: {
          type: DataTypes.STRING,
          allowNull: false
        },
        lastName: {
          type: DataTypes.STRING,
          allowNull: false
        },
        username: {
          type: DataTypes.STRING,
          allowNull: false
        },
        email: {
          type: DataTypes.STRING,
          allowNull: false
        },
        password: {
          type: DataTypes.STRING,
          allowNull: false
        }
      },
      {
        paranoid: true,
        underscored: true
      }
    );
  
    User.createModel = user => User.create(user);
  
    User.getOne = user => User.findOne({ where: user });
  
    User.getByUsername = username => User.getOne({ username });
  
    User.prototype.updateModel = props => this.update(props);
  
    return User;
  };
  