<?php

namespace App\Models;

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

class ForbiddenFood extends Model
{
    use HasFactory, SoftDeletes;

    protected $fillable = ['nutrition_plan_id', 'food_name', 'notes'];

    public function plan()
    {
        return $this->belongsTo(NutritionPlan::class, 'nutrition_plan_id');
    }
}
