13 lines
333 B
Elixir
13 lines
333 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
|
|
|
|
timestamps(type: :utc_datetime_usec)
|
|
end
|
|
end
|