Class: AdminUser

Inherits:
ApplicationRecord show all
Defined in:
app/models/admin_user.rb

Overview

## Schema Information

Table name: `admin_users`

### Columns

Name | Type | Attributes —————————– | —————— | ————————— **`id`** | `bigint` | `not null, primary key` **`current_sign_in_at`** | `datetime` | **`current_sign_in_ip`** | `inet` | **`email`** | `string` | `default(“”), not null` **`encrypted_password`** | `string` | `default(“”), not null` **`failed_attempts`** | `integer` | `default(0), not null` **`last_sign_in_at`** | `datetime` | **`last_sign_in_ip`** | `inet` | **`locked_at`** | `datetime` | **`reset_password_sent_at`** | `datetime` | **`reset_password_token`** | `string` | **`sign_in_count`** | `integer` | `default(0), not null` **`created_at`** | `datetime` | `not null` **`updated_at`** | `datetime` | `not null`

### Indexes

  • `index_admin_users_on_email` (unique):

    * **`email`**
    
  • `index_admin_users_on_reset_password_token` (unique):

    * **`reset_password_token`**