<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

/**
 * @property int $id
 * @property integer $product_id
 * @property string $type
 * @property string $path
 * @property Product $product
 */
class ProductImage extends Model
{
    /**
     * @var array
     */
    protected $fillable = ['product_id', 'type', 'path'];
    public $timestamps =false;

    /**
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
     */
    public function product()
    {
        return $this->belongsTo('App\Product');
    }
}
