module.exports = (sequelize, DataTypes) => (
  sequelize.define('users', {
    email: DataTypes.STRING,
    email_normalized: DataTypes.STRING,
    email_is_verified: DataTypes.BOOLEAN,
    last_attempt_verify_email: DataTypes.DATE,
    phone_number: DataTypes.STRING,
    phone_number_is_verified: DataTypes.BOOLEAN,
    phone_code_attempts: DataTypes.INTEGER,
    phone_code: DataTypes.STRING,
    last_attempt_verify_phone_number: DataTypes.DATE,
    ip: DataTypes.STRING,
    account_is_created: DataTypes.BOOLEAN,
    fingerprint: DataTypes.JSON,
    status: DataTypes.STRING,
    username: DataTypes.STRING,
    username_booked_at: DataTypes.DATE,
    metadata: DataTypes.JSON,
    creation_hash: DataTypes.STRING,
    tracking_id: DataTypes.STRING,
    review_note: DataTypes.STRING,
    gatekeeper_id: DataTypes.STRING,
  }, {
    freezeTableName: true,
    underscored: true,
  })
);
