GameServer.Groups.GroupInvite (game_server_core v1.0.941)

Copy Markdown

Ecto schema for the group_invites table.

Stores pending, accepted, declined, and cancelled invitations for hidden groups. Unlike the previous approach (which stored invites as notifications), invite records are independent of the notification system — deleting notifications does not affect pending invites.

Statuses

  • "pending" – waiting for the recipient to decide
  • "accepted" – recipient joined the group
  • "declined" – recipient declined the invite
  • "cancelled" – sender cancelled the invite

Summary

Types

t()

@type t() :: %GameServer.Groups.GroupInvite{
  __meta__: term(),
  group: term(),
  group_id: term(),
  id: term(),
  inserted_at: term(),
  recipient: term(),
  recipient_id: term(),
  sender: term(),
  sender_id: term(),
  status: term(),
  updated_at: term()
}

Functions

changeset(invite, attrs)