"""Service for {{ model_name }}.

✅ YOUR CODE - Safe to modify, will not be overwritten.
This file was generated once by Prism and is yours to customize.
"""

from __future__ import annotations

from ._generated.{{ snake_name }}_base import {{ model_name }}ServiceBase


class {{ model_name }}Service({{ model_name }}ServiceBase):
    """Custom service logic for {{ model_name }}.

    Add your custom methods and override base methods here.
    """

    # Example: Override a lifecycle hook
    # async def before_create(self, data: {{ model_name }}Create) -> None:
    #     # Custom validation or transformation
    #     pass

    # Example: Add a custom method
    # async def find_by_email(self, email: str) -> {{ model_name }} | None:
    #     query = select(self.model).where(self.model.email == email)
    #     result = await self.db.execute(query)
    #     return result.scalar_one_or_none()

    pass


__all__ = ["{{ model_name }}Service"]
