<?php

namespace App\Models;

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

class ResourceDocument extends Model
{
    use HasFactory;
    use SoftDeletes;

    protected $fillable = [
        'resource_id',
        'document_type',
        'name',
        'description',
        'file',
        'enabled',
    ];

    public function resource()
    {
        return $this->belongsTo(\App\Models\Resource::class);
    }
}
