<?php

namespace App\Models;

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

class SwmsTaskDetail extends BaseModel
{
    use HasFactory;
    protected $fillable = [
        'swms_id',
        'responsible_preson_id',
        'job_task',
        'image',
        'hazard',
        'risk',
        'initial_risk_rating',
        'controle_risk_ratting',
        'control_measure',
        'final_risk_ratting',
        'del',
    ];

    public function swms()
    {
        return $this->belongsTo(Swms::class, 'swms_id');
    }

}
