<?php

namespace App\Models;

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

class Preapproval extends Model
{
    use HasFactory;

    protected $fillable = [
            "usher_id",
            "vin_number",
            "name",
            "designation",
            "department",
            "organization",
            "mobile",
            "location",
            "country_id",
            "state_id",
            "city",
            "gate_no",
            "delivery_order",
            "pass_number",
            "pre_approval_date",
            "check_out"
    ];

    public function country_name()
    {
        return $this->hasOne(Country::class,'id','country_id');
    }
    public function state_name()
    {
        return $this->hasOne(Country::class,'id','state_id');
    }
}
