'timestamp', 'created_at' => 'timestamp', 'deleted_at' => 'timestamp', ]; public function getEntityType() { return self::class; } public function company() { return $this->belongsTo(Company::class); } public function user() { return $this->belongsTo(User::class)->withTrashed(); } public function account() { return $this->belongsTo(Account::class)->withTrashed(); } public function transactions() { return $this->hasMany(BankTransaction::class)->withTrashed(); } }