Files
SkinbaseNova/app/Models/ArtworkFeature.php
2026-02-07 08:23:18 +01:00

28 lines
509 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class ArtworkFeature extends Model
{
protected $table = 'artwork_features';
public $timestamps = false;
protected $fillable = [
'artwork_id',
'type',
'featured_at',
];
protected $casts = [
'featured_at' => 'datetime',
];
public function artwork(): BelongsTo
{
return $this->belongsTo(Artwork::class);
}
}