<?php
namespace App\Models;

use Illuminate\Foundation\Auth\User as Authenticatable;
use Tymon\JWTAuth\Contracts\JWTSubject;

class AshaUser extends Authenticatable implements JWTSubject
{
    protected $connection = 'pg_temp'; // temporary PostgreSQL connection
    protected $table = 'users';

    protected $fillable = ['email', 'username', 'password', 'role_id'];

    public function getJWTIdentifier()
    {
        return $this->getKey();
    }

    public function getJWTCustomClaims()
    {
        return [];
    }
}
 