<?php

namespace App;

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

class AuctionPhoto extends Model
{
    public $timestamps = false;

    protected $fillable = ['image', 'auction_id'];


    /**
     * Return product for product image
     * @return BelongsTo
     */
    public function auction() :BelongsTo
    {
        return $this->belongsTo(Auction::class);
    }
}
