<?php

namespace App\Models;

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

class QrcodesAssociatedEquipment extends Model
{
    protected $fillable = ['equipment_id', 'component_tag'];

    public $timestamps = false;


    protected $table = 'qrcodes_associated_equipment';

    protected $primaryKey = 'id';

    use HasFactory;

    public function equipment()
    {
        return $this->belongsTo(Equipment::class, 'equipment_id', 'equipment_id');
    }

}
