33 lines
1.1 KiB
Ruby
Raw Permalink Normal View History

2024-11-30 10:03:46 +00:00
# Copyright (C) 2024 Manuel Bustillo
2024-11-30 10:59:28 +01:00
# == Schema Information
#
# Table name: users
#
# id :uuid not null, primary key
2024-11-30 11:01:44 +01:00
# confirmation_sent_at :datetime
# confirmation_token :string
# confirmed_at :datetime
2024-11-30 10:59:28 +01:00
# email :string default(""), not null
# encrypted_password :string default(""), not null
2024-11-30 11:01:44 +01:00
# failed_attempts :integer default(0), not null
# locked_at :datetime
2024-11-30 10:59:28 +01:00
# reset_password_sent_at :datetime
# reset_password_token :string
2024-11-30 11:01:44 +01:00
# unconfirmed_email :string
# unlock_token :string
2024-11-30 10:59:28 +01:00
# created_at :datetime not null
# updated_at :datetime not null
#
# Indexes
#
2024-11-30 11:01:44 +01:00
# index_users_on_confirmation_token (confirmation_token) UNIQUE
2024-11-30 10:59:28 +01:00
# index_users_on_email (email) UNIQUE
# index_users_on_reset_password_token (reset_password_token) UNIQUE
2024-11-30 11:01:44 +01:00
# index_users_on_unlock_token (unlock_token) UNIQUE
2024-11-30 10:59:28 +01:00
#
class User < ApplicationRecord
devise :database_authenticatable, :registerable,
:recoverable, :validatable, :confirmable, :lockable
end