from django.apps import AppConfig


class CompanyConfig(AppConfig):
    default_auto_field = 'django.db.models.BigAutoField'
    name = 'Company'

    def ready(self):
        # ADDITIVE: start the daily attendance auto-marking
        # scheduler (see Company/scheduler.py). Imported here,
        # not at module load time, so Django's app registry is
        # fully ready before any models are touched.
        from . import scheduler
        scheduler.start_scheduler()
