<?php

namespace App\Models;

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

class Host extends Model
{
    use HasFactory;

    protected $fillable = [
            "admin_id",
            "vin_number",
            "name",
            "designation",
            "mobile",
            "email",
            "department",
            "company_location_id",
            "organization_id",
            "user_address",
            "organization",
            "location_address",
            "notes"
    ];

    public function company()
    {
        return $this->hasOne(Company::class,'id','organization_id');
    }
}
