<?php

namespace App\Models;

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

class SubCategory extends Model
{
    use HasFactory;
    protected $table = 'sub_category';
    
    public function category()
    {
        return $this->hasOne("App\Models\Category", "id", "category_id");
    }
    
}
