Paket 3: Strukturleser und Anzeigefreigabe (G1, G2)
Deploy Test / test (push) Failing after 8s
Deploy Test / deploy (push) Skipped

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
LarsandCursor committed 2026-11-16 06:58:15 +01:00
1 parent 1a2b1298b5
commit 5ed01b9d04
7 files changed
+372

No files matched your search

@@ -0,0 +1,39 @@
<?php
namespace App\Domain\Catalog;
use App\Models\User;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class CompositionVersionDisplayEvent extends Model
{
public const RELEASED = 'freigegeben';
public const REVOKED = 'zurueckgenommen';
protected $fillable = [
'composition_version_id',
'event',
'actor_id',
'occurred_at',
'note',
];
protected function casts(): array
{
return [
'occurred_at' => 'datetime',
];
}
public function version(): BelongsTo
{
return $this->belongsTo(CompositionVersion::class, 'composition_version_id');
}
public function actor(): BelongsTo
{
return $this->belongsTo(User::class, 'actor_id');
}
}