<?php

declare(strict_types=1);

namespace App\Modules\Notifications\Support;

class CronSchedule
{
    /**
     * @return array<int, array<string, string>>
     */
    public function definitions(): array
    {
        return [
            [
                'job' => 'imports:run',
                'expression' => '*/10 * * * *',
                'purpose' => 'Verarbeitet geplante CSV-Importe in kurzen Intervallen.',
            ],
            [
                'job' => 'exports:run',
                'expression' => '*/15 * * * *',
                'purpose' => 'Erstellt Exporte ohne dauerhafte Worker.',
            ],
            [
                'job' => 'notifications:dispatch',
                'expression' => '*/5 * * * *',
                'purpose' => 'Versendet geplante Benachrichtigungen ueber Cron.',
            ],
        ];
    }
}
