<?php

namespace Database\Seeders;

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


class UserSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {

        // Assign roles to users
        $adminUser = User::query()->create([
            'name' => 'Jonathan Jimenez Rojas',
            'email' => 'jonathan.jimenez@swsperu.com',
            'email_verified_at' => now(),
            'password' => bcrypt('Shinji_29_31'),
            'photo' => 'default.png',
            'role' => 'super-admin',
            'entorno' => 'backend',
            'status' => 'active',
        ]);
        // $adminUser->assignRole($roleSuperAdmin);

        // Create a user with the role of 'user'
        $clienteUser = User::query()->create([
            'name' => 'Marilu Cubas Vasquez',
            'email' => 'mary.cubas@swsperu.com',
            'email_verified_at' => now(),
            'password' => bcrypt('Shinji_29_31'),
            'photo' => 'default.png',
            'role' => 'user',
            'entorno' => 'frontend',
            'status' => 'active',
        ]);
        // $clienteUser->assignRole($roleUser)
    }
}
