<?php

namespace Database\Seeders;

use App\Models\User;
// use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;

class DatabaseSeeder extends Seeder
{
    /**
     * Seed the application's database.
     */
    public function run(): void
    {
        // User::factory(10)->create();

        User::factory()->create([
            'name' => 'Test User',
            'email' => 'test@example.com',
        ]);

        \DB::table('kategoriak')->insert([
            ['nev' => 'Ház'],
            ['nev' => 'Lakás'],
            ['nev' => 'Építési telek'],
            ['nev' => 'Garázs'],
            ['nev' => 'Mezőgazdasági terület'],
            ['nev' => 'Ipari ingatlan']
        ]);

        \DB::table('ingatlanok')->insert(
            [
                [
                    'kategoria' => 1,
                    'leiras' => 'Családi ház omladozó',
                    'hirdetesDatuma' => '2025-01-15',
                    'tehermentes' => true,
                    'ar' => 4500000,
                    'kepUrl' => 'https://ingatlanok.hu/65874.jpg'
                ],
                [
                    'kategoria' => 2,
                    'leiras' => '4. emeleti lakás',
                    'hirdetesDatuma' => '2025-01-20',
                    'tehermentes' => false,
                    'ar' => 18000000,
                    'kepUrl' => 'https://ingatlanok.hu/65875.jpg'
                ]
            ]
        );
    }
}
