<?php

namespace App\Modules\User\Models;

use Illuminate\Foundation\Auth\User as Authenticatable;
use Laravel\Sanctum\HasApiTokens;
use Illuminate\Database\Eloquent\SoftDeletes;
use Spatie\Permission\Traits\HasRoles;

class User extends Authenticatable
{
    use HasApiTokens, SoftDeletes, HasRoles;
    protected $guard_name = 'api';
    
    protected $fillable = [
        'name',
        'email',
        'password',
        'phone_number',
        'email_otp',
        'otp_expires_at',
        'email_verified_at',
        'avatar_url',
        'is_traveler',
    ];

    protected $hidden = [
        'password',
        'remember_token'
    ];
}
