<?php

namespace App\Models;

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

class DepositInput extends Model
{
    use HasFactory;

    protected $table = 'deposit_inputs';

    protected $fillable = [
        'id_deposit',
        'cantidad',
        'stock_minimo',
        'stock_maximo',
        'id_input',
    ];

    public function input()
    {
        return $this->belongsTo(Input::class, 'id_input');
    }
}
