<?php

namespace Database\Seeders\Tenant;

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

class CapIdLocalLookupSettingSeeder 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 Database Lookup',
                'name' => 'Enabled',
                'config_key' => 'cap-id-lookup-local-enabled',
                'type' => 'boolean',
                'value' => false,
                'min_tier' => 'lite',
                'feature' => 'cap-database',
                'description' => 'Use imported database to lookup CAP ID for imported vehicles.',
            ],
        ];
    }
}
