<?php

namespace App\Models;

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

class EnquiryCategory extends Model
{
    use HasFactory;

    protected $fillable = [
        'company_id',
        'category_name',
        'priority',
        'status',
        'default'
    ];

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