28 lines
644 B
PHP
28 lines
644 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Foundation\Auth\User as Authenticatable;
|
|
use Illuminate\Support\Carbon;
|
|
|
|
/** @property int $id
|
|
* @property int $tenant_id
|
|
* @property string $email
|
|
* @property string $password
|
|
* @property Carbon|null $email_verified_at
|
|
* @property int $session_version
|
|
*/
|
|
class CandidateAccount extends Authenticatable
|
|
{
|
|
protected $guarded = ['id'];
|
|
|
|
protected $attributes = ['session_version' => 1];
|
|
|
|
protected $hidden = ['password'];
|
|
|
|
protected function casts(): array
|
|
{
|
|
return ['password' => 'hashed', 'email_verified_at' => 'datetime', 'session_version' => 'integer'];
|
|
}
|
|
}
|