PowAssent v0.1.0-alpha.1 PowAssent.Ecto.UserIdentities.Schema behaviour View Source
Handles the Ecto schema for user identity.
Usage
Configure lib/my_project/user_identities/user_identity.ex
the following way:
defmodule MyApp.UserIdentities.UserIdentity do
use Ecto.Schema
use PowAssent.Ecto.UserIdentities.Schema,
user: MyApp.Users.User
schema "user_identities" do
pow_user_identity_schema()
timestamps(updated_at: false)
end
def changeset(user_identity_or_changeset, attrs) do
pow_assent_changeset(user_identity_or_changeset, attrs)
end
end
Link to this section Summary
Link to this section Functions
Link to this macro
pow_user_identity_schema()
View Source
(macro)
pow_user_identity_schema() :: Macro.t()
Link to this section Callbacks
Link to this callback
changeset(arg0, map)
View Source
changeset(Ecto.Schema.t() | Ecto.Changeset.t(), map()) :: Ecto.Changeset.t()