<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * Class File
 * @package App\Models
 *
 * @property int $document_id
 * @property object $file
 * @property int $file_type_id
 */
class File extends AbstractModel
{
    use SoftDeletes;

    protected $table = 'files';

    protected $fillable = ['file'];

    /**
     * Get the attributes that should be cast.
     *
     * @return array<string, string>
     */
    protected function casts(): array
    {
        return [
            'file'       => 'object',
            'deleted_at' => 'datetime',
        ];
    }
}
