<?php

namespace App\Models;

use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;

class User extends Authenticatable
{
    use Notifiable;

    protected $primaryKey = 'user_id';
    protected $fillable = ['name', 'email', 'phone', 'password_hash', 'role'];
    protected $hidden = ['password_hash', 'remember_token'];

    // Override password field
    public function getAuthPassword()
    {
        return $this->password_hash;
    }
}
