<?php

namespace Database\Seeders\Tenant;

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

class AutoCreateDealershipsRemoveFeatureFlagSeeder extends Seeder
{
    /**
     * Remove the feature flag from the auto-create dealerships setting.
     * The setting is now gated by tenant type (listing) instead.
     *
     * @return void
     */
    public function run()
    {
        Setting::query()
            ->where('config_key', 'stock-motors-auto-create-dealerships')
            ->update(['feature' => null]);
    }
}
