<?php

namespace App\Models;

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

class EmpPersonalDetails extends BaseModel
{
    use HasFactory;

    protected $fillable = [
        'emp_id',
        'first_name',
        'middle_name',
        'last_name',
        'mobile',
        'streat_address',
        'suburb',
        'state',
        'postcode',
        'date_of_birth',
        'blood_group',
        'bank_name',
        'account_holder_name',
        'ibn_number',
        'account_number',
        'image',
        'created_by',
    ];


    public function companyDetails()
    {
        return $this->belongsTo(EmpCompanyDetails::class, 'emp_id', 'id');
    }
}
