24 lines
446 B
Python
24 lines
446 B
Python
|
|
from app.schemas.base import CamelModel
|
||
|
|
|
||
|
|
|
||
|
|
class PokemonResponse(CamelModel):
|
||
|
|
id: int
|
||
|
|
national_dex: int
|
||
|
|
name: str
|
||
|
|
types: list[str]
|
||
|
|
sprite_url: str | None
|
||
|
|
|
||
|
|
|
||
|
|
class RouteEncounterResponse(CamelModel):
|
||
|
|
id: int
|
||
|
|
route_id: int
|
||
|
|
pokemon_id: int
|
||
|
|
encounter_method: str
|
||
|
|
encounter_rate: int
|
||
|
|
min_level: int
|
||
|
|
max_level: int
|
||
|
|
|
||
|
|
|
||
|
|
class RouteEncounterDetailResponse(RouteEncounterResponse):
|
||
|
|
pokemon: PokemonResponse
|