<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class RestauranteImagem extends Model
{
    use HasFactory;

    protected $table = 'restaurante_imagens';

    protected $fillable = [
        'restaurante_id',
        'path',
        'url',
        'ordem',
    ];

    public function restaurante()
    {
        return $this->belongsTo(Restaurante::class);
    }
}
