Class: User

Inherits:
ApplicationRecord
  • Object
show all
Includes:
PgSearch
Defined in:
api/app/models/user.rb

Overview

A company user

  • [String] first_name
  • [String] last_name
  • [Integer] company_id, null: false
  • [DateTime] created_at
  • [DateTime] updated_at
  • [String] profile_picture_file_name
  • [String] profile_picture_content_type
  • [Integer] profile_picture_file_size
  • [DateTime] profile_picture_updated_at
  • [String] phone
  • [Boolean] inactive, default: false, null: false
  • [Float] padding_ratio, default: 1.3
  • [String] preferred_language, default: en_US
  • [Integer] account_id
  • [String] user_id

Constant Summary collapse

EXPIRY =
60 * 60 * 24 * 3

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.format_user_session_channel(auth_token) ⇒ Object

Instance Method Details

#can?(permission) ⇒ Boolean

Returns:

  • (Boolean)

#can_overfill_sessions?Boolean

Returns:

  • (Boolean)

#clearance_levelsObject

#create_meta_recordObject

#full_nameObject Also known as: name

#is_pendingObject

#primary_locationObject Also known as: location

#unacked_global_alertsObject