<?php

namespace App\Models;

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

class DealerVisitPlan extends Model
{
    use SoftDeletes;

    protected $fillable = [
        'employee_master_id',
        'name',
        'company',
        'visit_plan_date',
        'organizer',
        'mobile_number',
        'number_of_person',
        'purpose_of_visit',
        'mode_of_travel',
        'status',
        'created_by',
        'updated_by',
    ];

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

}
