<?php

namespace Database\Factories;

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

/**
 * @extends Factory<SubClassification>
 */
class SubClassificationFactory extends Factory
{
    /**
     * Define the model's default state.
     *
     * @return array<string, mixed>
     */
    public function definition(): array
    {
        return [
            'classification_id' => Classification::factory(),
            'name' => fake()->unique()->word(),
            'description' => fake()->sentence(),
            'is_active' => IsActive::ACTIVE,
        ];
    }
}
