<?php

namespace Database\Factories;

use App\Domain\Organization\Models\Company;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;

class DepartmentFactory extends Factory
{
    public function definition(): array
    {
        return [
            'company_id' => Company::factory(),
            'code' => Str::upper($this->faker->unique()->lexify('???')),
            'name' => $this->faker->word(),
            'is_active' => true,
        ];
    }
}
