Zoonk.Accounts.UserProfile (Zoonk v0.1.0-dev)
View SourceDefines 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 Name | Type | Description |
---|---|---|
is_public | Boolean | Indicates if the profile is public. |
bio | String | A short biography of the user. |
display_name | String | The name displayed to other users. |
picture_url | String | URL of the user's profile picture. |
username | String | Username used to view a user's profile. |
user_id | Integer | The ID from Zoonk.Accounts.User . |
inserted_at | DateTime | Timestamp when the profile was created. |
updated_at | DateTime | Timestamp when the profile was updated. |
Summary
Functions
A user profile changeset for adding or updating a user's profile.