<?php

namespace App\Models;

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

class Outofstockproduct extends Model
{
    use HasFactory;
    protected $table = 'out_of_stock';
    protected $fillable = [
        'id',
        'product_id',
        'product_name',
        'status'
    ];

    public function productData(){
        $this->hasOne(Product::class, 'id', 'product_id');
    }
}
