GameServer.Chat.Message
(GameServer v1.0.637)
Copy Markdown
Ecto schema for the chat_messages table.
Represents a single chat message in a lobby, group, or friend conversation.
Fields
content— message textmetadata— arbitrary JSON metadata (e.g. message type, attachments)sender_id— user who sent the messagechat_type— "lobby", "group", or "friend"chat_ref_id— reference ID (lobby_id, group_id, or the other user's id for DMs)
Summary
Functions
Changeset for creating/updating a chat message.
Changeset for editing an existing message (content and metadata only).