<?php

namespace App\Models;

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

class OrdenLavanderiaPago extends Model
{
    protected $table = 'orden_lavanderia_pagos';

    protected $fillable = [
        'orden_lavanderia_id',
        'metodo_pago',
        'monto',
    ];

    protected $casts = [
        'monto' => 'decimal:2',
    ];

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