<?php

namespace App\Models;

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

class OrdenLavanderiaBolsa extends Model
{
    protected $table = 'orden_lavanderia_bolsas';

    protected $fillable = [
        'orden_lavanderia_id',
        'indice',
        'codigo',
    ];

    protected $casts = [
        'indice' => 'integer',
    ];

    public function ordenLavanderia(): BelongsTo
    {
        return $this->belongsTo(OrdenLavanderia::class, 'orden_lavanderia_id');
    }
}
