<?php

namespace App\Models;

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

class EnquiryType extends Model
{
    use HasFactory;

    protected $fillable = [
        'enquiry_type_name',
        'enquiry_type_priority',
        'enquiry_type_details',
        'status',
        'company_id',
        'additional3',
        'default'
    ];

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