<?php

namespace App\Models;

class DefectImage extends BaseModel
{
    protected $fillable = [
        'defect_id',
        'uploaded_by',
        'image',
        'type',
        'customer_id',
        'workspace_id',
        'del',
    ];

    protected $hidden = [
        'customer_id',
        'workspace_id',
    ];

    public function defect()
    {
        return $this->belongsTo(Defect::class, 'defect_id');
    }
}

