<?php

declare(strict_types=1);

namespace Database\Seeders;

use App\Models\Role;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;

final class JonathanSeeder extends Seeder
{
    /**
     * Seed the application's database with admin user Jonathan.
     */
    public function run(): void
    {
        $adminRole = Role::where('name', 'admin')->first();

        DB::table('users')->insert([
            'name' => 'Jonathan',
            'email' => 'jonathan.van.rij@agerion.nl',
            'password' => bcrypt('secret'),
            'email_verified_at' => now(),
            'role_id' => $adminRole->id,
            'job_title' => 'Senior Developer',
            'company_name' => 'Baker Tilly',
            'created_at' => now(),
            'updated_at' => now(),
        ]);
    }
}
