# src/chitai/services/book_progress.py

from advanced_alchemy.service import SQLAlchemyAsyncRepositoryService
from advanced_alchemy.repository import SQLAlchemyAsyncRepository

from chitai.database import models as m


class BookProgressService(SQLAlchemyAsyncRepositoryService[m.BookProgress]):
    """Book progress service for managing progress operations."""

    class Repo(SQLAlchemyAsyncRepository[m.BookProgress]):
        """Book progress repository."""

        model_type = m.BookProgress

    repository_type = Repo
