<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class BodegaMovimiento extends Model {

    protected $table = 'bodega_movimientos';
    protected $hidden = ['created_at', 'updated_at', 'deleted_at', 'pivot'];

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

    public function ingrediente() {
        return $this->belongsTo(Ingrediente::class);
    }
}
