<?php

namespace Database\Factories;

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

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