<?php

namespace Database\Factories;

use App\Domain\Documents\Enums\DocumentStatus;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;

class DocumentFactory extends Factory
{
    public function definition(): array
    {
        return [
            'file_path' => 'documents/test/'.Str::uuid().'.pdf',
            'original_name' => 'scan.pdf',
            'mime_type' => 'application/pdf',
            'size_bytes' => 102400,
            'checksum' => hash('sha256', Str::random()),
            'verification_status' => DocumentStatus::Uploaded->value,
            'version' => 1,
            'is_current' => true,
        ];
    }
}
