sloanelybutsurely.com/lib/schema/user.ex
2025-04-29 12:55:14 -04:00

15 lines
388 B
Elixir

defmodule Schema.User do
@moduledoc false
use Schema
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
has_one :mastodon_account, Schema.MastodonAccount
timestamps(type: :utc_datetime_usec)
end
end