<?php

declare(strict_types=1);

namespace Database\Factories;

use App\Models\Branch;
use App\Models\Region;
use Illuminate\Database\Eloquent\Factories\Factory;

/**
 * @extends Factory<Branch>
 */
class BranchFactory extends Factory
{
    public function definition(): array
    {
        return [
            'region_id' => Region::factory(),
            'parent_branch_id' => null,
            'name' => fake()->city().' Branch',
            'code' => strtoupper(fake()->unique()->bothify('??-###')),
            'address_line1' => fake()->streetAddress(),
            'address_line2' => null,
            'city' => fake()->city(),
            'phone' => fake()->numerify('##########'),
            'email' => fake()->unique()->companyEmail(),
            'pastor_name' => fake()->name(),
            'is_active' => true,
        ];
    }
}
