<?php

namespace Database\Seeders;

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

class PakasirSettingsSeeder extends Seeder
{
    public function run(): void
    {
        // Only create if no settings exist
        if (!PakasirSettings::exists()) {
            PakasirSettings::create([
                'slug' => '',
                'api_key' => '',
                'production_mode' => false,
                'return_url' => null,
                'notify_url' => null,
                'cancel_url' => null,
                'gold_rate' => 1000,
                'min_amount' => 10000,
                'max_amount' => 10000000,
                'is_active' => false,
                'broadcast_enabled' => true,
                'broadcast_message' => null,
                'broadcast_channel' => 9,
            ]);
        }
    }
}
