<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class OrderProducts extends Model
{
    use HasFactory,SoftDeletes;

    protected $table = 'order_products';
    protected $primaryKey = 'id';



    public function order()
    {
        return $this->belongsTo(Orders::class, 'product_id');
    }


}
 