<?php

namespace App\Models;

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

class FolderDocument extends Model
{
    use HasFactory;

    protected $table = 'folder_documents';

    protected $fillable = [
        'folder_id',
        'document_name',
        'file_path',
        'file_name',
        'description',
        'uploaded_by',
    ];

    public function folder()
    {
        return $this->belongsTo(Folder::class);
    }
}