Files
laraundfelix/app/Domain/Catalog/CompatibilityAttestation.php
T
LarsandClaude Sonnet 5.5 d1f97a351a
CI Feature / test (push) Successful in 3m32s
Führe Übungen als Fassungen mit Varianten, Verwendung und Mitgliederausgabe ein
Neuer kind 'exercise', Varianten je Fassung, Verwendung (erforderlich/ergänzend) und Variantenauswahl am einbindenden
Mitglied; der Stand schreibt nur gewählte Varianten fest. Änderungsnachweis über structure_hash. Formatierte Anleitung
im Mitgliederbereich und PDF (Fußzeile, Metadaten, Ausgabenachweis, keine gespeicherten Kopien); Sperre trifft nur das
Medium.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 16:52:01 +01:00

39 lines
784 B
PHP

<?php
namespace App\Domain\Catalog;
use App\Models\User;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class CompatibilityAttestation extends Model
{
public $timestamps = false;
protected $fillable = [
'composition_version_id',
'resolved_hash',
'structure_hash',
'confirmed_by',
'confirmed_at',
'note',
];
protected function casts(): array
{
return [
'confirmed_at' => 'datetime',
];
}
public function compositionVersion(): BelongsTo
{
return $this->belongsTo(CompositionVersion::class);
}
public function confirmer(): BelongsTo
{
return $this->belongsTo(User::class, 'confirmed_by');
}
}