Tournament struct from GameServer.
This is a stub module for SDK type definitions. The actual struct is provided by GameServer at runtime.
Fields
id- Tournament ID (UUIDv7 string)slug- Identifier shared by every occurrence of a recurring tournamenttitle- Display title (string)description- Description (string)state-"scheduled","registration","running","finished"or"cancelled"registration_opens_at- When registration opens (nil = open immediately)starts_at- When the bracket is drawn (nil = started manually)ends_at- Optional hard stoprecur- Cron expression spawning the next occurrence (nil = one-shot)max_entries- Optional cap on registrationsteam_size- Advisory; enforced by game hooks, not by the serverbracket_size- Slots per bracket (power of two); extra entries fill more bracketsround_window_sec- Play window per rounddeadline_policy- Fallback when a match is unresolved at its deadlinemetadata- Arbitrary metadata (map)inserted_at- Creation timestampupdated_at- Last update timestamp
Summary
Types
@type state() :: String.t()
@type t() :: %GameServer.Tournaments.Tournament{ bracket_size: integer(), deadline_policy: String.t(), description: String.t(), ends_at: DateTime.t() | nil, id: String.t(), inserted_at: DateTime.t(), max_entries: integer() | nil, metadata: map(), recur: String.t() | nil, registration_opens_at: DateTime.t() | nil, round_window_sec: integer(), slug: String.t(), starts_at: DateTime.t() | nil, state: state(), team_size: integer(), title: String.t(), updated_at: DateTime.t() }