<?php

namespace Database\Seeders\Tenant;

use Illuminate\Database\Seeder;
use Mtc\MercuryDataModels\Setting;

class VehicleLegacyFilterSettingRemoval extends Seeder
{
    public function run()
    {
        collect([
            'automotive-vehicle-filters-price',
            'automotive-vehicle-filters-age',
            'automotive-vehicle-filters-door_count',
            'automotive-vehicle-filters-seats',
            'automotive-vehicle-filters-mileage',
            'automotive-vehicle-filters-engine_size',
        ])
            ->each(fn($setting) => Setting::query()->where('config_key', $setting)->delete());
    }
}
