Skip to content

Achievement

tibiawikisql.models.achievement

Classes:

Name Description
Achievement

Represents an Achievement.

Achievement pydantic-model

Bases: WikiEntry, WithStatus, WithVersion, RowModel

Represents an Achievement.

Show JSON schema:
{
  "description": "Represents an Achievement.",
  "properties": {
    "version": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Version"
    },
    "status": {
      "title": "Status",
      "type": "string"
    },
    "article_id": {
      "title": "Article Id",
      "type": "integer"
    },
    "title": {
      "title": "Title",
      "type": "string"
    },
    "timestamp": {
      "format": "date-time",
      "title": "Timestamp",
      "type": "string"
    },
    "name": {
      "title": "Name",
      "type": "string"
    },
    "grade": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Grade"
    },
    "points": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Points"
    },
    "description": {
      "title": "Description",
      "type": "string"
    },
    "spoiler": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Spoiler"
    },
    "is_secret": {
      "title": "Is Secret",
      "type": "boolean"
    },
    "is_premium": {
      "title": "Is Premium",
      "type": "boolean"
    },
    "achievement_id": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Achievement Id"
    }
  },
  "required": [
    "version",
    "status",
    "article_id",
    "title",
    "timestamp",
    "name",
    "grade",
    "points",
    "description",
    "spoiler",
    "is_secret",
    "is_premium",
    "achievement_id"
  ],
  "title": "Achievement",
  "type": "object"
}

Fields:

name pydantic-field
name: str

The achievement's name.

grade pydantic-field
grade: int | None

The achievement's grade, from 1 to 3. Also known as 'stars'.

points pydantic-field
points: int | None

The amount of points given by this achievement.

description pydantic-field
description: str

The official description shown for the achievement.

spoiler pydantic-field
spoiler: str | None

Instructions or information on how to obtain the achievement.

is_secret pydantic-field
is_secret: bool

Whether the achievement is secret or not.

is_premium pydantic-field
is_premium: bool

Whether a premium account is required to get this achievement.

achievement_id pydantic-field
achievement_id: int | None

The internal ID of the achievement.