<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;

class TicketAttachment extends Model
{
    protected $fillable = ['ticket_id','filename','original_name','mime_type','file_size','path','uploaded_by'];

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