Schema for admin notes about users.
Admin notes allow administrators to record internal notes about users that are only visible to other administrators. This enables admin-to-admin communication about user accounts.
Fields
user_id- The user being noted aboutauthor_id- The admin who wrote the notecontent- The note contentinserted_at- When the note was createdupdated_at- When the note was last updated
Permissions
- Only admins can view, create, edit, and delete notes
- Any admin can edit or delete any note
- Notes show author information for accountability
Summary
Functions
Creates a changeset for a new admin note.
Creates a changeset for updating an existing admin note. Only the content can be updated.
Types
@type t() :: %PhoenixKit.Users.AdminNote{ __meta__: term(), author: term(), author_id: integer(), content: String.t(), id: integer() | nil, inserted_at: NaiveDateTime.t(), updated_at: NaiveDateTime.t(), user: term(), user_id: integer(), uuid: term() }