<?php

namespace App\Console\Commands;

use App\Services\AppDataResetService;
use Illuminate\Console\Command;

class ResetAppStatsCommand extends Command
{
    protected $signature = 'app:reset-stats';

    protected $description = 'Clear all clients, visits, and dashboard stats';

    public function handle(AppDataResetService $resetService): int
    {
        $resetService->reset();
        $this->info('Clients, visits, and stats have been reset.');

        return self::SUCCESS;
    }
}
