<?php

namespace Database\Factories;

use App\Models\Role;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;

/** @extends Factory<Role> */
class RoleFactory extends Factory
{
    protected $model = Role::class;

    public function definition(): array
    {
        $name = fake()->unique()->words(2, true);

        return [
            'uuid' => (string) Str::uuid(),
            'name' => Str::slug($name),
            'slug' => Str::slug($name),
            'display_name' => Str::title($name),
            'description' => fake()->sentence(),
            'is_system' => false,
            'status' => 'active',
        ];
    }
}
