Files
portal/app/database/factories/SupplierSyncLogFactory.php
T

31 lines
779 B
PHP
Raw Normal View History

<?php
declare(strict_types=1);
namespace Database\Factories;
use App\Models\SupplierSyncLog;
use Illuminate\Database\Eloquent\Factories\Factory;
/**
* @extends Factory<SupplierSyncLog>
*/
class SupplierSyncLogFactory extends Factory
{
protected $model = SupplierSyncLog::class;
public function definition(): array
{
return [
'supplier_project_id' => null,
'action' => fake()->randomElement(['create', 'update', 'delete', 'disable', 'session_refresh']),
'request_payload' => ['stub' => true],
'response_body' => null,
'http_status' => 200,
'error_message' => null,
'duration_ms' => fake()->numberBetween(50, 5000),
'created_at' => now(),
];
}
}