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:
-
version(str | None) -
status(str) -
article_id(int) -
title(str) -
timestamp(datetime) -
name(str) -
grade(int | None) -
points(int | None) -
description(str) -
spoiler(str | None) -
is_secret(bool) -
is_premium(bool) -
achievement_id(int | None)
grade
pydantic-field
¶
grade: int | None
The achievement's grade, from 1 to 3. Also known as 'stars'.
spoiler
pydantic-field
¶
spoiler: str | None
Instructions or information on how to obtain the achievement.