sloanelybutsurely.com/lib/schema/user.ex
2025-03-24 07:39:09 -04:00

15 lines
422 B
Elixir

defmodule Schema.User do
@moduledoc false
use Ecto.Schema
@primary_key {:id, :binary_id, autogenerate: true}
@foreign_key_type :binary_id
schema "users" do
field :username, :string
field :password, :string, virtual: true, redact: true
field :hashed_password, :string, redact: true
field :current_password, :string, virtual: true, redact: true
timestamps(type: :utc_datetime_usec)
end
end