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