<?php

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::command('horizon:snapshot')->everyFiveMinutes();
Schedule::command('sanctum:prune-expired --hours=24')
    ->daily()
    ->withoutOverlapping()
    ->onOneServer();
Schedule::command('auth:clear-resets')
    ->daily()
    ->withoutOverlapping()
    ->onOneServer();
Schedule::command('device-tokens:prune-stale --days=180')
    ->daily()
    ->withoutOverlapping()
    ->onOneServer();
Schedule::command('meal-posts:generate-ai')
    ->daily()
    ->withoutOverlapping(55)
    ->onOneServer();
Schedule::command('notifications:send-engagement-reminders')
    ->dailyAt('13:02')
    ->withoutOverlapping(30)
    ->onOneServer();
