<?php

namespace App;

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

class ProductsCategory extends Model
{
//    use HasFactory;

    protected $table = 'products_category';
    protected $primaryKey = 'id_products_category';
    protected $fillable = [
        'products_category_name',
        'products_category_name_urdu',
        'products_category_status',
        'created_by',
    ];

    public function subCategories()
    {
        return $this->hasMany(ProductsSubCategory::class, 'products_category_id', 'id_products_category');
    }
}
