<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Upload extends Model
{
    protected $fillable = [
        'original_name', 'stored_name', 'path',
        'mime_type', 'size', 'uploaded_by', 'version', 'notes',
    ];

    public function uploader() { return $this->belongsTo(User::class, 'uploaded_by'); }
}
