<?php
declare(strict_types=1);

namespace Tests\Factories;

final class BranchFactory extends Factory
{
    private static int $sequence = 0;

    protected function table(): string
    {
        return 'branches';
    }

    protected function defaults(): array
    {
        self::$sequence++;
        return [
            'branch_code' => 'TEST-' . self::$sequence . '-' . uniqid(),
            'name_ar' => 'فرع اختبار ' . self::$sequence,
            'name_en' => 'Test Branch ' . self::$sequence,
            'is_active' => 1,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s'),
        ];
    }
}
