<?php

use Illuminate\Support\Facades\Schedule;
use Illuminate\Foundation\Inspiring;
use Illuminate\Support\Facades\Artisan;

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

// E-commerce scheduled backups
Schedule::command('backup:clean')->daily()->at('01:00');
// Daily database backup (lightweight and secure)
Schedule::command('backup:run --only-db')->daily()->at('02:00');
// Weekly full backup (database + storefront media assets)
Schedule::command('backup:run')->weeklyOn(0, '03:00');

// Badhonsworld reseller stock synchronization
Schedule::command('badhonsworld:sync-stock')->hourly();

// Badhonsworld reseller new product auto-import (runs daily at 04:00)
Schedule::command('badhonsworld:auto-import')->dailyAt('04:00');
