mirror of
https://github.com/coollabsio/coolify.git
synced 2026-11-06 13:10:37 -04:00
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>
26 lines
553 B
PHP
26 lines
553 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\ImageSbom;
|
|
use App\Models\Server;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
/**
|
|
* @extends Factory<ImageSbom>
|
|
*/
|
|
class ImageSbomFactory extends Factory
|
|
{
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'server_id' => Server::factory(),
|
|
'image_id' => 'sha256:'.fake()->sha256(),
|
|
'platform' => 'linux/amd64',
|
|
'packages' => [],
|
|
'packages_truncated' => false,
|
|
'last_used_at' => now(),
|
|
];
|
|
}
|
|
}
|