<?php
// database/seeders/CompanyConfigSeeder.php

namespace Database\Seeders;

use App\Models\Company;
use App\Services\FitConfigService;
use Illuminate\Database\Seeder;

class CompanyConfigSeeder extends Seeder
{
    public function run(): void
    {
        $companies = Company::all();
        $configService = app(FitConfigService::class);
        
        foreach ($companies as $company) {
            $configService->initializeDefaults($company->id);
            $this->command->info("Configuraciones inicializadas para empresa: {$company->name}");
        }
    }
}