<?php

namespace Database\Factories;

use App\Models\Import;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;

class ImportFactory extends Factory
{
    protected $model = Import::class;

    public function definition(): array
    {
        return [
            'uuid' => (string) Str::uuid(),
            'user_id' => null,
            'import_template_id' => null,
            'client_id' => null,
            'source_type' => 'csv',
            'file_name' => 'test.csv',
            'original_name' => 'test.csv',
            'disk' => 'local',
            'path' => 'imports/test.csv',
            'status' => 'uploaded',
            'meta' => [
                'has_header' => true,
                'forced_delimiter' => ',',
            ],
        ];
    }
}
