<?php

namespace App\Models;

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

class PlanProductMapping extends Model
{
    use HasFactory;

    protected $fillable = [
        'plan_id',
        'product_id',
        'priority',
        'status'
    ];

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