<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Factories\HasFactory;
class CredencialCliente extends Model
{
    use HasFactory;
    
    protected $table = 'credencialesclientes';

    protected $fillable = [
        'contra',
        'correo',
        'token',
        'fecha_hora',
        'reset_token',
        'reset_expira_en',
    ];

    //tiene un

    public function cliente() 
    {
        return $this->hasOne(Cliente::class, 'credencialcliente_id', 'id');
    }
}
