'datetime', 'password' => 'hashed', ]; } // ── Role Helpers ───────────────────────────────────── public function isAdmin(): bool { return $this->role === 'admin'; } public function isOrganizer(): bool { return $this->role === 'organizer'; } public function isCustomer(): bool { return $this->role === 'customer'; } public function hasAdminAccess(): bool { return in_array($this->role, ['admin', 'organizer']); } // ── Relationships ──────────────────────────────────── public function events() { return $this->hasMany(Event::class, 'organizer_id'); } public function orders() { return $this->hasMany(Order::class); } }