<?php

namespace Database\Seeders;

use Illuminate\Database\Seeder;
use App\Models\Role;

class RoleSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        // Roles básicos
        $roles = [
            [
                'name' => 'admin',
                'display_name' => 'Administrador',
                'description' => 'Acceso total al sistema'
            ],
            [
                'name' => 'doctor',
                'display_name' => 'Doctor',
                'description' => 'Médico del centro'
            ],
            [
                'name' => 'receptionist',
                'display_name' => 'Recepcionista',
                'description' => 'Gestión de citas y pacientes'
            ],
            [
                'name' => 'root',
                'display_name' => 'Super Administrador',
                'description' => 'Control total sobre la configuración'
            ]
        ];

        foreach ($roles as $role) {
            Role::create($role);
        }
    }
} 