<?php

declare(strict_types=1);

namespace Database\Factories;

use App\Enums\TransferStatus;
use App\Models\Branch;
use App\Models\Member;
use App\Models\MemberTransfer;
use App\Models\User;
use Illuminate\Database\Eloquent\Factories\Factory;

/**
 * @extends Factory<MemberTransfer>
 */
class MemberTransferFactory extends Factory
{
    public function definition(): array
    {
        return [
            'member_id' => Member::factory(),
            'from_branch_id' => Branch::factory(),
            'to_branch_id' => Branch::factory(),
            'status' => TransferStatus::Pending,
            'reason' => fake()->optional(0.5)->sentence(),
            'requested_by' => User::factory(),
            'decided_by' => null,
            'decided_at' => null,
        ];
    }
}
