<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Carbon;

/**
 * @property int $id
 * @property string $imageable_type
 * @property int $imageable_id
 * @property string $name
 * @property string $ext
 * @property bool $active
 * @property Carbon|null $created_at
 * @property Carbon|null $updated_at
 */
class Image extends Model
{
    use HasFactory;

    protected $fillable = [
        'imageable_id',
        'imageable_type',
        'name',
        'ext',
        'key',
        'active',
        'enriched_text'
    ];

    protected $cast = [
        'active',
    ];
}
