<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;

class Inquiry extends Model
{
    protected $fillable = [
        'name',
        'email',
        'message',
        'product_id',
        'status',
    ];

    /**
     * Get the product associated with the inquiry.
     */
    public function product(): BelongsTo
    {
        return $this->belongsTo(Product::class);
    }
}
