<?php

namespace Database\Factories;

use Illuminate\Database\Eloquent\Factories\Factory;

/**
 * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\BulkOperationRun>
 */
class BulkOperationRunFactory extends Factory
{
    /**
     * Define the model's default state.
     *
     * @return array<string, mixed>
     */
    public function definition(): array
    {
        return [
            'tenant_id' => \App\Models\Tenant::factory(),
            'user_id' => \App\Models\User::factory(),
            'resource' => 'policy',
            'action' => 'delete',
            'status' => 'pending',
            'total_items' => 10,
            'processed_items' => 0,
            'succeeded' => 0,
            'failed' => 0,
            'skipped' => 0,
            'item_ids' => range(1, 10),
            'failures' => [],
        ];
    }
}
