Skip to content

House

tibiawikisql.models.house

Classes:

Name Description
House

Represents a house or guildhall.

House pydantic-model

Bases: WikiEntry, WithVersion, WithStatus, RowModel

Represents a house or guildhall.

Show JSON schema:
{
  "description": "Represents a house or guildhall.",
  "properties": {
    "status": {
      "title": "Status",
      "type": "string"
    },
    "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"
    },
    "house_id": {
      "title": "House Id",
      "type": "integer"
    },
    "name": {
      "title": "Name",
      "type": "string"
    },
    "is_guildhall": {
      "title": "Is Guildhall",
      "type": "boolean"
    },
    "city": {
      "title": "City",
      "type": "string"
    },
    "street": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Street"
    },
    "location": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Location"
    },
    "beds": {
      "title": "Beds",
      "type": "integer"
    },
    "rent": {
      "title": "Rent",
      "type": "integer"
    },
    "size": {
      "title": "Size",
      "type": "integer"
    },
    "rooms": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Rooms"
    },
    "floors": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Floors"
    },
    "x": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "X"
    },
    "y": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Y"
    },
    "z": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Z"
    }
  },
  "required": [
    "status",
    "version",
    "article_id",
    "title",
    "timestamp",
    "house_id",
    "name",
    "is_guildhall",
    "city",
    "street",
    "location",
    "beds",
    "rent",
    "size",
    "rooms",
    "floors",
    "x",
    "y",
    "z"
  ],
  "title": "House",
  "type": "object"
}

Fields:

house_id pydantic-field
house_id: int

The house's id on tibia.com.

name pydantic-field
name: str

The name of the house.

is_guildhall pydantic-field
is_guildhall: bool

Whether the house is a guildhall or not.

city pydantic-field
city: str

The city where the house is located.

street pydantic-field
street: str | None

The name of the street where the house is located.

location pydantic-field
location: str | None

A brief description of where the house is.

beds pydantic-field
beds: int

The maximum number of beds the house can have.

rent pydantic-field
rent: int

The monthly rent of the house.

size pydantic-field
size: int

The number of tiles (SQM) of the house.

rooms pydantic-field
rooms: int | None

The number of rooms the house has.

floors pydantic-field
floors: int | None

The number of floors the house has.

x pydantic-field
x: int | None

The x coordinate of the house.

y pydantic-field
y: int | None

The y coordinate of the house.

z pydantic-field
z: int | None

The z coordinate of the house.