<?php

namespace App\Models;

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

class OrdenEstadoLog extends Model
{
    protected $table = 'orden_estado_log';

    protected $fillable = [
        'orden_lavanderia_id',
        'step_anterior',
        'step_nuevo',
        'user_id',
    ];

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

    public function user(): BelongsTo
    {
        return $this->belongsTo(User::class);
    }
}
