# frozen_string_literal: true

class User < ApplicationRecord
  ROLES = { user: 0, project: 10, data: 20, admin: 100 }.freeze
  enum role: ROLES

  validates :email, presence: true
  validates :first_name, presence: true
  validates :last_name, presence: true
  validates :role, presence: true, inclusion: { in: ROLES }
end
