'timestamp', 'created_at' => 'timestamp', ]; public function getEntityType() { return self::class; } public function company() { return $this->belongsTo(Company::class); } public function documents() { return $this->morphMany(Document::class, 'documentable'); } public function assigned_user() { return $this->belongsTo(User::class, 'assigned_user_id', 'id')->withTrashed(); } public function user() { return $this->belongsTo(User::class); } public function client() { return $this->belongsTo(Client::class); } }