Class: User
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- User
- 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
- #can?(permission) ⇒ Boolean
- #can_overfill_sessions? ⇒ Boolean
- #clearance_levels ⇒ Object
- #create_meta_record ⇒ Object
- #full_name ⇒ Object (also: #name)
- #is_pending ⇒ Object
- #primary_location ⇒ Object (also: #location)
- #unacked_global_alerts ⇒ Object