<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use App\Models\employee_position;

class employees extends Model
{
    use HasFactory;

    protected $table = 'employees';

    protected $fillable = [
        'employeePosition',
        'employeeName',
        'employeeNIC',
        'employeeAddress',
        'employeeTelephone',
        'employeeMobile',
    ];

    // Define the relationship with employee_position
    public function employee_position()
    {
        return $this->belongsTo(employee_position::class, 'employeePosition', 'id');
    }
}
