Skip to content

Domain Models# Domain Models

domain

Classes:

  • Domain –

    Represents a domain and its potential rewards for a specific day.

  • DomainReward –

    Represents a potential reward from a domain.

  • Domains –

    Container for domains available on each day of the week.

Domain pydantic-model

Represents a domain and its potential rewards for a specific day.

Attributes:

  • id (int) –

    The unique ID of the domain.

  • name (str) –

    The name of the domain.

  • rewards (list[DomainReward]) –

    A list of potential rewards available from the domain.

  • city (City) –

    The city/region the domain is located in.

Fields:

Validators:

city pydantic-field

city: City

id pydantic-field

id: int

name pydantic-field

name: str

rewards pydantic-field

rewards: list[DomainReward]

DomainReward pydantic-model

Represents a potential reward from a domain.

Attributes:

  • id (int) –

    The ID of the reward item.

Fields:

icon property

icon: str

The icon URL for the reward item.

id pydantic-field

id: int

Domains pydantic-model

Container for domains available on each day of the week.

Attributes:

Fields:

Validators:

friday pydantic-field

friday: list[Domain]

monday pydantic-field

monday: list[Domain]

saturday pydantic-field

saturday: list[Domain]

sunday pydantic-field

sunday: list[Domain]

thursday pydantic-field

thursday: list[Domain]

tuesday pydantic-field

tuesday: list[Domain]

wednesday pydantic-field

wednesday: list[Domain]