Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: peaklabs-dev <122374094+peaklabs-dev@users.noreply.github.com>
Co-authored-by: Aditya Tripathi <aditya@climactic.co>
This commit is contained in:
Andras Bacsai
2026-11-06 14:25:02 +01:00
committed by GitHub
co-authored by Claude Opus 5.5 peaklabs-dev Aditya Tripathi
parent b7dc2e435b
commit 033f0c84da
581 changed files with 58626 additions and 2456 deletions
+29
View File
@@ -0,0 +1,29 @@
<?php
namespace Database\Factories;
use App\Enums\ImageScanStatus;
use App\Models\Application;
use App\Models\ImageScan;
use App\Models\Server;
use Illuminate\Database\Eloquent\Factories\Factory;
/**
* @extends Factory<ImageScan>
*/
class ImageScanFactory extends Factory
{
public function definition(): array
{
return [
'server_id' => Server::factory(),
'image_id' => 'sha256:'.fake()->sha256(),
'resource_type' => (new Application)->getMorphClass(),
'resource_id' => fake()->unique()->numberBetween(1, 1_000_000),
'image_ref' => 'nginx:1.27',
'status' => ImageScanStatus::Completed,
'builds_image' => false,
'scanned_at' => now(),
];
}
}