Files
LarsandCursor fd6860efda
Deploy Test / test (push) Successful in 12s
Deploy Test / deploy (push) Successful in 21s
Öffne Katalog, Bibliothek und Testkauf für den MVP.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-15 09:04:08 +01:00

35 lines
738 B
PHP

<?php
namespace App\Domain\Commerce;
use App\Domain\Catalog\LicenseArticle;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class OrderScopeItem extends Model
{
protected $fillable = [
'order_line_id',
'license_article_id',
'rights_profile_version_id',
'rights_snapshot',
];
protected function casts(): array
{
return [
'rights_snapshot' => 'array',
];
}
public function line(): BelongsTo
{
return $this->belongsTo(OrderLine::class, 'order_line_id');
}
public function article(): BelongsTo
{
return $this->belongsTo(LicenseArticle::class, 'license_article_id');
}
}