'datetime', 'password' => 'hashed', ]; public function isAdmin(): bool { return $this->role === 'admin'; } }