<?php

namespace App\Modules\HR\Core\Models;

use Illuminate\Database\Eloquent\Model;

class EmployeeRejoin extends Model
{
    protected $fillable = [
        'employee_id',
        'rejoin_date',
        'remarks',
        'payroll',
        'attendance',
        'currently_working',
    ];

    protected $casts = [
        'payroll' => 'boolean',
        'attendance' => 'boolean',
        'currently_working' => 'boolean',
    ];

    public function employee()
    {
        return $this->belongsTo(Employee::class);
    }
}
