class User

Included Modules

Defined in:

models/user.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(rs : DB::ResultSet) #

[View source]

Class Method Detail

def self.create_superuser(email : String, password : String) #

[View source]
def self.create_user(email : String, password : String) #

[View source]
def self.find_by_email(email : String) : User | Nil #

[View source]
def self.from_rs(rs : DB::ResultSet) #

[View source]

Instance Method Detail

def created_at : Time #

[View source]
def email : String #

[View source]
def email=(email : String) #

[View source]
def id : Int32 #

[View source]
def id=(id : Int32) #

[View source]
def is_admin : Bool #

[View source]
def password_hash : String #

[View source]
def updated_at : Time #

[View source]
def updated_at=(updated_at : Time) #

[View source]