<?php

namespace Database\Seeders;

use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;

class FotoSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        DB::table('fotos')->updateOrInsert(
            ['ruta' => 'images/avatar_default.png'],
            [
                'extension'     => 'png',
                'tamanio_bytes' => 136788,
                'nombre'        => 'avatar_default',
                'mime_type'     => 'image/png',
                'created_at'    => now(),
                'updated_at'    => now(),
            ]
        );
    }
}
