from pydantic import BaseModel


class PaginationParams(BaseModel):
    """Pagination parameters."""

    page: int = 1
    limit: int = 20


class PaginatedResponse[T](BaseModel):
    """Generic paginated response."""

    items: list[T]
    total: int
    page: int
    limit: int
    pages: int
