π₯Users & Authentication
Users
defmodule PetalPro.Accounts.User do
...
schema "users" do
field :name, :string
field :email, :string
field :password, :string, virtual: true, redact: true
field :hashed_password, :string, redact: true
field :confirmed_at, :naive_datetime
field :is_admin, :boolean, default: false
field :avatar, :string
field :last_signed_in_ip, :string
field :last_signed_in_datetime, :utc_datetime
field :is_subscribed_to_marketing_notifications, :boolean, default: true
field :is_suspended, :boolean, default: false
field :is_deleted, :boolean, default: false
field :is_onboarded, :boolean, default: false
timestamps()
end
...
endField
Type
Description
Authentication
Setting and accessing the current user
Controller actions
Live views
Last updated
Was this helpful?
