<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use App\Traits\GlobalModelEvents;

class VendorProduct extends Model
{
    use HasFactory, GlobalModelEvents;

    protected $fillable = [
        'vendor_id', 'name', 'slug', 'description', 'location', 'value', 'quantity', 'tracking_id', 'dropoff', 'courier', 'status', 'image1', 'image2', 'image3', 'category',
    ];

    public function vendor()
    {
        return $this->belongsTo(Vendor::class, 'vendor_id', 'id');
    }

}
