'date', 'end_date' => 'date', 'target' => 'integer', ]; } public function assignedAgents(): BelongsToMany { return $this->belongsToMany(User::class) ->wherePivot('role', 'agent') ->withPivot('role'); } public function assignedSupervisors(): BelongsToMany { return $this->belongsToMany(User::class) ->wherePivot('role', 'supervisor') ->withPivot('role'); } public function leads(): HasMany { return $this->hasMany(Lead::class); } }