""" Common DTOs. """ from pydantic import BaseModel class Paging(BaseModel): """ Pagination model for API responses. """ pageSize: int pageIndex: int totalCount: int class SearchFilter(BaseModel): """ Search filter model for constructing database queries. Attributes: name (str): Field name to filter on value (str | int): Value to search for """ name: str value: str | int class IDName(BaseModel): """ ID and name model. """ id: str | None = None name: str