<?php

namespace Database\Seeders;

use Illuminate\Database\Seeder;
use App\Models\Setting;

class MoqSettingSeeder extends Seeder
{
    public function run()
    {
        $settings = [
            [
                'key' => 'registration_moq_min',
                'value' => '10',
                'group' => 'general',
                'type' => 'text',
                'label' => 'Registration Min MOQ',
            ],
            [
                'key' => 'registration_moq_max',
                'value' => '150',
                'group' => 'general',
                'type' => 'text',
                'label' => 'Registration Max MOQ',
            ],
        ];

        foreach ($settings as $setting) {
            Setting::updateOrCreate(
                ['key' => $setting['key']],
                $setting
            );
        }
    }
}
