<?php

namespace Database\Seeders;

use App\Models\Report;
use Illuminate\Database\Seeder;

class ReportsAnalyticsSeeder extends Seeder
{
    public function run(): void
    {
        $count = max(0, (int) config('database.seeders.report_count', 0));

        if ($count > 0 && Report::query()->doesntExist()) {
            Report::factory()->count($count)->create();
        }
    }
}
