from __future__ import annotations

from django.apps import AppConfig
from django.utils.module_loading import autodiscover_modules


class SchemaConfig(AppConfig):
    default_auto_field = "django.db.models.BigAutoField"
    name = "simorgh.apps.schema"
    label = "platform_schema"
    verbose_name = "Schema engine"

    def ready(self) -> None:
        # Each app may expose a `schemas.py` that registers its entities.
        autodiscover_modules("schemas")
