<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\SoftDeletes;

class VisitorEntry extends Model
{
    use SoftDeletes;

    protected $fillable = [
        'mobile_number',
        'name',
        'company',
        'purpose_of_visit',
        'type',
        'in_time',
        'out_time',
        'photo',
        'employee_master_id',
        'number_of_person'
    ];

    public function employeeMaster(): BelongsTo
    {
        return $this->belongsTo(EmployeeMaster::class);
    }
}
