'datetime', 'password' => 'hashed', ]; // ── Helper role ─────────────────────────────────────────────── public function isAdmin(): bool { return $this->role === 'admin'; } public function isUser(): bool { return $this->role === 'user'; } // ── Relasi ─────────────────────────────────────────────────── public function notifications() { return $this->hasMany(Notification::class); } public function diagnoses() { return $this->hasMany(Diagnosis::class); } }