<?php

namespace Database\Factories;

use App\Enums\IsActive;
use App\Models\Department;
use Illuminate\Database\Eloquent\Factories\Factory;

/**
 * @extends Factory<Department>
 */
class DepartmentFactory extends Factory
{
    /**
     * Define the model's default state.
     *
     * @return array<string, mixed>
     */
    public function definition(): array
    {
        return [
            'name' => fake()->unique()->words(2, true),
            'alias' => strtoupper(fake()->unique()->lexify('???')),
            'is_active' => IsActive::ACTIVE,
        ];
    }
}
