<?php
namespace Database\Seeders;
use App\Models\Role;
use Illuminate\Database\Seeder;
class RoleSeeder extends Seeder
{
    public function run(): void
    {
        foreach ([
            ['name' => 'Administrador', 'slug' => 'admin'],
            ['name' => 'Analista', 'slug' => 'analyst'],
            ['name' => 'Investigador', 'slug' => 'investigator'],
            ['name' => 'Auditor', 'slug' => 'auditor'],
        ] as $role) {
            Role::updateOrCreate(['slug' => $role['slug']], $role);
        }
    }
}
