aboutsummaryrefslogtreecommitdiff
path: root/src/models/user.cr
blob: 39729bb269f2a740aa029067d4ec9c0616e5d46a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
class User < BaseModel
  include Carbon::Emailable
  include Authentic::PasswordAuthenticatable

  table do
    column email : String
    column encrypted_password : String
  end

  def emailable : Carbon::Address
    Carbon::Address.new(email)
  end
end