<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use Illuminate\Database\Eloquent\SoftDeletes;

class User extends Authenticatable
{
    use HasFactory, Notifiable, SoftDeletes;

    protected $table = 'user';
    protected $primaryKey = 'u_id';
    const CREATED_AT = 'u_created_at';
    const UPDATED_AT = 'u_updated_at';
    const DELETED_AT = 'u_deleted_at';

    protected $guarded = [
        'u_id'
    ];

    protected $hidden = [
        'u_password'
    ];

    public function getAuthPassword()
    {
        return $this->u_password;
    }
}
