from functools import cached_property

from django.apps import AppConfig


class EconomyConfig(AppConfig):
    default_auto_field = "django.db.models.BigAutoField"
    name = "economy"
    verbose_name = "Economy"

    @cached_property
    def economic_overview_service(self):
        from .services import EconomicOverviewService

        return EconomicOverviewService()

    def get_economic_overview_service(self):
        return self.economic_overview_service
