31 lines
779 B
PHP
31 lines
779 B
PHP
|
|
<?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(),
|
||
|
|
];
|
||
|
|
}
|
||
|
|
}
|