<?php

namespace Database\Seeders\Tenant;

use App\Facades\Settings;
use Illuminate\Database\Seeder;

class CapIdLocalCacheSettingSeeder extends Seeder
{
    public function run(): void
    {
        collect($this->data())
            ->each(fn($setting) => Settings::make($setting));
    }

    private function data(): array
    {
        return [
            [
                'tab' => 'Automotive',
                'section' => 'Specification / Feature Synchronization',
                'group' => 'CAP ID Local Cache',
                'name' => 'Enabled',
                'config_key' => 'cap-id-lookup-local-cache-enabled',
                'type' => 'boolean',
                'value' => false,
                'min_tier' => 'lite',
                'description' => 'Reduces API costs by reusing CAP IDs from existing vehicles with identical make, model, and derivative instead of making a new API call.',
            ],
        ];
    }
}
