<?php

namespace Database\Seeders;

use App\Http\Enums\RoleType;
use Illuminate\Database\Seeder;
use Spatie\Permission\Models\Role;

class RolesSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        Role::insert([
            ['name' => RoleType::SuperAdmin->value, 'guard_name' => 'web'],
            ['name' => RoleType::Admin->value, 'guard_name' => 'web'],
            ['name' => RoleType::Customer->value, 'guard_name' => 'web'],
            ['name' => RoleType::Technician->value, 'guard_name' => 'web'],
        ]);
    }
}
