<?php

namespace App\Models;

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

class DisciplinaryAction extends Model
{
    use HasFactory;

    protected $guarded = [];



    public function manager()
    {
        return $this->belongsTo(User::class, "initiated_by");
    }
    public function user()
    {
        return $this->belongsTo(User::class, "employee_id");
    }

    public function organisation()
    {
        return $this->belongsTo(Organisation::class, "organisation_id");
    }
}
