<?php

namespace App\Models;

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

class TallaUniforme extends Model
{
    use HasFactory;

    protected $table = 'talla_uniformes';

    public $timestamps = false;

    protected $fillable = [
        'cedula_usuario',
        'tallaCamisa',
        'tallaChaqueta',
        'tallaPantalon',
        'tallaBotas',
        'tallaZapatos',
        'cedulaEditor',
        'fechaCreacion',
        'fechaActualizacion',
    ];

    public function usuario(): BelongsTo
    {
        return $this->belongsTo(Usuario::class, 'cedula_usuario', 'cedula');
    }
}
