Chat Entity

The chat entity stores the chat messages sent in the game, including the private messages between players.

Managing chat messages in the admin panel

Chat messages are in the Chat section of the admin sidebar, under Chat (/reldens-admin/chat). The rows are saved by the game when the players send messages, see Chat System.

Key Properties

  • player_id: The player that sent the message
  • room_id: The room where the message was sent
  • message: The message text (up to 140 characters)
  • private_player_id: The receiver of a private message
  • message_type: The message type
  • message_time: When the message was sent

Database Relations

  • players: Sender and private receiver (set to empty when the player is deleted)
  • rooms: Room of the message (set to empty when the room is deleted)
  • chat_message_types: Type of the message
Go Up