EpochtalkServer.Models.Profile (epochtalk_server v0.1.0)

Profile model, for performing actions relating a user's profile

Link to this section Summary

Functions

Creates a generic changeset for Profile model

Link to this section Types

@type t() :: %EpochtalkServer.Models.Profile{
  __meta__: term(),
  avatar: String.t() | nil,
  fields: map() | nil,
  id: non_neg_integer() | nil,
  last_active: NaiveDateTime.t() | nil,
  position: String.t() | nil,
  post_count: non_neg_integer() | nil,
  raw_signature: String.t() | nil,
  signature: String.t() | nil,
  user: term(),
  user_id: non_neg_integer() | nil
}

Link to this section Functions

Link to this function

changeset(profile, attrs \\ %{})

@spec changeset(profile :: t(), attrs :: map() | nil) :: Ecto.Changeset.t()

Creates a generic changeset for Profile model