<?php

namespace App;

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

class ProductPhoto extends Model
{
    public $timestamps = false;

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


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