<?php

namespace App\Models;

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

class Repair extends Model {
    use HasFactory;

    protected $fillable = [
        'asset_id', 'issue', 'vendor_name', 'cost', 'invoice_path', 
        'sent_date', 'return_date', 'status'
    ];

    public function asset() {
        return $this->belongsTo(Asset::class);
    }
}
