'datetime', 'password' => 'hashed', ]; } public function organisations(): BelongsToMany { return $this->belongsToMany(Organisation::class, 'organisation_user') ->withPivot('role') ->withTimestamps(); } public function events(): BelongsToMany { return $this->belongsToMany(Event::class, 'event_user_roles') ->withPivot('role') ->withTimestamps(); } public function invitations(): HasMany { return $this->hasMany(UserInvitation::class, 'invited_by_user_id'); } }