GameServer.Chat.ReadCursor (GameServer v1.0.637)

Copy Markdown

Ecto schema for the chat_read_cursors table.

Tracks the last message a user has read in a given chat conversation. The unique constraint on [user_id, chat_type, chat_ref_id] ensures one cursor per user per conversation.

Summary

Functions

Changeset for creating/updating a read cursor.

Types

t()

@type t() :: %GameServer.Chat.ReadCursor{
  __meta__: term(),
  chat_ref_id: term(),
  chat_type: term(),
  id: term(),
  inserted_at: term(),
  last_read_message: term(),
  last_read_message_id: term(),
  updated_at: term(),
  user: term(),
  user_id: term()
}

Functions

changeset(cursor, attrs)

Changeset for creating/updating a read cursor.