<?php

namespace App;

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

class ProductsCategory extends Model
{
//    use HasFactory;

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

    public function products()
    {
        return $this->hasMany(Products::class, 'category_id');
    }
}