<?php

namespace Database\Seeders;

use Illuminate\Database\Seeder;
use App\Models\{Event, EventType};

class DemoEventSeeder extends Seeder
{
    public function run(): void
    {
        $type = EventType::where('slug','wedding')->first();
        if(!$type){ return; }
        Event::updateOrCreate(['slug'=>'demo-wedding-2025'], [
            'name' => ['de'=>'Demo Hochzeit 2025','en'=>'Demo Wedding 2025'],
            'description' => ['de'=>'Demo-Event','en'=>'Demo event'],
            'date' => now()->addMonths(3)->toDateString(),
            'event_type_id' => $type->id,
            'is_active' => true,
            'settings' => [],
            'default_locale' => 'de',
        ]);
    }
}
