<?php

use App\Domains\Analytics\Jobs\PruneRawClicksJob;
use App\Domains\Analytics\Jobs\RollupDailyJob;
use App\Domains\Analytics\Jobs\RollupHourlyJob;
use Illuminate\Foundation\Inspiring;
use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Facades\Schedule;

Artisan::command('inspire', function () {
    $this->comment(Inspiring::quote());
})->purpose('Display an inspiring quote');

Schedule::job(new RollupHourlyJob)->everyFifteenMinutes();
Schedule::job(new RollupDailyJob)->dailyAt('02:00');
Schedule::job(new PruneRawClicksJob)->dailyAt('03:00');
Schedule::command('backup:run')->dailyAt('04:00');
