Skip to content

Update

tibiawikisql.models.update

Classes:

Name Description
Update

Represents a game update.

Update pydantic-model

Bases: WikiEntry, WithVersion, RowModel

Represents a game update.

Show JSON schema:
{
  "description": "Represents a game update.",
  "properties": {
    "version": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Version"
    },
    "article_id": {
      "title": "Article Id",
      "type": "integer"
    },
    "title": {
      "title": "Title",
      "type": "string"
    },
    "timestamp": {
      "format": "date-time",
      "title": "Timestamp",
      "type": "string"
    },
    "name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Name"
    },
    "news_id": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "News Id"
    },
    "release_date": {
      "format": "date",
      "title": "Release Date",
      "type": "string"
    },
    "type_primary": {
      "title": "Type Primary",
      "type": "string"
    },
    "type_secondary": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Type Secondary"
    },
    "previous": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Previous"
    },
    "next": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Next"
    },
    "summary": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Summary"
    },
    "changes": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Changes"
    }
  },
  "required": [
    "version",
    "article_id",
    "title",
    "timestamp",
    "name",
    "news_id",
    "release_date",
    "type_primary",
    "type_secondary",
    "previous",
    "next",
    "summary",
    "changes"
  ],
  "title": "Update",
  "type": "object"
}

Fields:

name pydantic-field
name: str | None

The name of the update, if any.

news_id pydantic-field
news_id: int | None

The id of the news article that announced the release.

release_date pydantic-field
release_date: date

The date when the update was released.

type_primary pydantic-field
type_primary: str

The primary type of the update.

type_secondary pydantic-field
type_secondary: str | None

The secondary type of the update.

previous pydantic-field
previous: str | None

The version before this update.

next pydantic-field
next: str | None

The version after this update.

summary pydantic-field
summary: str | None

A brief summary of the update.

changes pydantic-field
changes: str | None

A brief list of the changes introduced.