<?php

namespace Database\Seeders;

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

class UserTypeSeeder extends Seeder
{
    public function run(): void
    {
        $types = [
            ['name' => 'Platform User', 'slug' => 'platform_user', 'category' => 'platform', 'description' => 'SaaS platform administrator or staff'],
            ['name' => 'Tenant User', 'slug' => 'tenant_user', 'category' => 'tenant', 'description' => 'Typing center tenant manager or employee'],
            ['name' => 'External User', 'slug' => 'external_user', 'category' => 'external', 'description' => 'External customer or corporate client'],
        ];

        foreach ($types as $type) {
            UserType::updateOrCreate(['slug' => $type['slug']], $type);
        }
    }
}
