<?php

namespace Database\Seeders;

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

class RoleSeeder extends Seeder
{
    public function run(): void
    {
        $roles = [
            [
                'name' => 'Administrator',
                'slug' => Role::ADMIN_SLUG,
                'description' => 'Full system access with all permissions'
            ],
            [
                'name' => 'Operation',
                'slug' => Role::OPERATION_SLUG,
                'description' => 'Can manage customer requests and operations'
            ],
            [
                'name' => 'Customer',
                'slug' => Role::CUSTOMER_SLUG,
                'description' => 'Regular customer with limited access'
            ]
        ];

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