'datetime', 'password' => 'hashed', 'is_active' => 'boolean', ]; } public function isAdmin(): bool { return $this->role === 'admin'; } public function isBK(): bool { return $this->role === 'bk'; } public function isWaliKelas(): bool { return $this->role === 'wali_kelas'; } public function recordedViolations() { return $this->hasMany(Violation::class, 'recorded_by'); } public function appNotifications() { return $this->hasMany(AppNotification::class, 'user_id'); } public function handlingParticipants() { return $this->hasMany(HandlingParticipant::class); } public function createdHandlings() { return $this->hasMany(ViolationHandling::class, 'created_by'); } }