Zoonk.Accounts.UserProfile (Zoonk v0.1.0-dev)

View Source

Defines the UserProfile schema and related changesets.

A user can have one profile, which contains information that can become public if they set is_public to true.

We keep profiles separate from Zoonk.Accounts.User to prevent other people from accessing the user's sensitive information.

Fields

Field NameTypeDescription
is_publicBooleanIndicates if the profile is public.
bioStringA short biography of the user.
display_nameStringThe name displayed to other users.
picture_urlStringURL of the user's profile picture.
usernameStringUsername used to view a user's profile.
user_idIntegerThe ID from Zoonk.Accounts.User.
inserted_atDateTimeTimestamp when the profile was created.
updated_atDateTimeTimestamp when the profile was updated.

Summary

Functions

A user profile changeset for adding or updating a user's profile.

Functions

changeset(profile, attrs)

A user profile changeset for adding or updating a user's profile.