belongsTo(User::class, 'owner_id'); } public function contacts(): HasMany { return $this->hasMany(Contact::class); } public function leads(): HasMany { return $this->hasMany(Lead::class); } public function deals(): HasMany { return $this->hasMany(Deal::class); } public function notes(): MorphMany { return $this->morphMany(Note::class, 'notable'); } public function attachments(): MorphMany { return $this->morphMany(Attachment::class, 'attachable'); } public function tasks(): MorphMany { return $this->morphMany(Task::class, 'taskable'); } public function customFieldValues(): MorphMany { return $this->morphMany(CustomFieldValue::class, 'fieldable'); } }