Add HL3D branding, Etsy Live/Draft paging and Projects lifecycle
Deploy HickLab3D Dashboard / Deploy to production (push) Failing after 23s
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.
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Database\Factories\ProjectReleaseFactory;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
|
||||
class ProjectRelease extends Model
|
||||
{
|
||||
/** @use HasFactory<ProjectReleaseFactory> */
|
||||
use HasFactory;
|
||||
|
||||
public const ACTION_RELEASE = 'release';
|
||||
|
||||
public const ACTION_REVERT = 'revert';
|
||||
|
||||
protected $fillable = [
|
||||
'project_id', 'revision_id', 'cost_snapshot_id', 'action', 'released_by', 'released_at', 'notes',
|
||||
];
|
||||
|
||||
protected function casts(): array
|
||||
{
|
||||
return [
|
||||
'released_at' => 'datetime',
|
||||
];
|
||||
}
|
||||
|
||||
public function project(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Project::class);
|
||||
}
|
||||
|
||||
public function revision(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(ProjectRevision::class, 'revision_id');
|
||||
}
|
||||
|
||||
public function costSnapshot(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(ProjectCostSnapshot::class, 'cost_snapshot_id');
|
||||
}
|
||||
|
||||
public function releasedBy(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(User::class, 'released_by');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user