Files
laraundfelix/app/Domain/Catalog/CompositionVersionDisplayEvent.php
T
LarsandCursor 5ed01b9d04
Deploy Test / test (push) Failing after 8s
Deploy Test / deploy (push) Skipped
Paket 3: Strukturleser und Anzeigefreigabe (G1, G2)
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-16 06:58:15 +01:00

39 lines
814 B
PHP

<?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');
}
}