<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class ProductRange extends Model
{
    use SoftDeletes;
    protected $dates = ['deleted_at'];
    protected $table = 'product_ranges';
    protected $primaryKey = 'product_range_id';
    protected $fillable = [
        'product_id',
        'range_start',
        'range_end',
        'quantity',
        'product_slug',
        'active_status',
    ];
    protected $hidden = [
        'created_at',
        'updated_at',
        'deleted_at'
    ];

    // public function categoryList() {
    //     return $this->hasMany('App\Models\Category', 'category_id', 'category_id');
    // }

    // public function subCategoryList() {
    //     return $this->hasMany('App\Models\SubCategory', 'sub_category_id', 'sub_category_id');
    // }

    // public function productsImages() {
    //     return $this->hasMany('App\Models\ProductsImage', 'product_id', 'product_id')->where('active_status',1);
    // }
}
