hasOne(MsHealthcareService::class, 'foreign_key', 'local_key'); } public function refVisitType(): HasOne { return $this->hasOne(RefVisitType::class, 'foreign_key', 'other_key'); } }