<?php

namespace App\Models;

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

class EmployeeDeduction extends Model
{
    use HasFactory;

    protected $guarded = ['id'];

    /**A Deduction belongs to a specific Deductions Type Table**/
    public function deductionType(){
        return $this->belongsTo(EmployeeDeductionType::class, 'deduction_id');
    }
}
