Deploy HickLab3D Dashboard / Deploy to production (push) Failing after 23s
Replace the old touchmark/PNG identity with the supplied lockup and monogram, segmented role-aware navigation, Live/Draft listing filters with generation-based cache invalidation, and admin Projects covering immutable file revisions, listing live pointers, and exact-decimal filament/packaging/shipping costing. Additive schema only; no Etsy publication. Isolated clone tests: 301 tests, 1162 assertions.
33 lines
839 B
PHP
33 lines
839 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\ProjectFile;
|
|
use App\Models\ProjectRevision;
|
|
use App\Models\User;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
/**
|
|
* @extends Factory<ProjectFile>
|
|
*/
|
|
class ProjectFileFactory extends Factory
|
|
{
|
|
/**
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'revision_id' => ProjectRevision::factory(),
|
|
'role' => 'body',
|
|
'original_filename' => 'body.stl',
|
|
'storage_key' => fake()->unique()->uuid().'.stl',
|
|
'extension' => 'stl',
|
|
'media_type' => 'model/stl',
|
|
'byte_size' => 1024,
|
|
'sha256' => hash('sha256', fake()->unique()->uuid()),
|
|
'uploaded_by' => User::factory()->create(['role' => 'admin'])->id,
|
|
];
|
|
}
|
|
}
|