Skip to content

Charm

tibiawikisql.models.charm

Classes:

Name Description
Charm

Represents a charm.

Charm pydantic-model

Bases: WikiEntry, WithStatus, WithVersion, WithImage, RowModel

Represents a charm.

Show JSON schema:
{
  "description": "Represents a charm.",
  "properties": {
    "image": {
      "anyOf": [
        {
          "format": "binary",
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Image"
    },
    "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"
    },
    "type": {
      "title": "Type",
      "type": "string"
    },
    "effect": {
      "title": "Effect",
      "type": "string"
    },
    "cost": {
      "title": "Cost",
      "type": "integer"
    }
  },
  "required": [
    "version",
    "status",
    "article_id",
    "title",
    "timestamp",
    "name",
    "type",
    "effect",
    "cost"
  ],
  "title": "Charm",
  "type": "object"
}

Fields:

name pydantic-field
name: str

The name of the charm.

type pydantic-field
type: str

The type of the charm.

effect pydantic-field
effect: str

The charm's description.

cost pydantic-field
cost: int

The number of charm points needed to unlock.