diff --git a/frontend/models.py b/frontend/models.py index 1d0a39c..5ecbb25 100644 --- a/frontend/models.py +++ b/frontend/models.py @@ -39,4 +39,18 @@ class CitaviProjectIdentity(models.Model): citavi_repr = person_mapper.get_representation_for_citavi_identity(self) if self.preferred == True: citavi_repr = citavi_repr + u" " - return citavi_repr \ No newline at end of file + return citavi_repr + +# TODO: Figure out how to realize this step by step. PROPERLY! + +class HSHIdentity(models.Model): + """ Model representing existing HSH identities. """ + global_identity = models.ForeignKey(PersonGlobalIdentity, blank=True, null=True, db_index=True) + preferred = models.BooleanField() + + +class VIVOIdentity(models.Model): + """ Model representing existing VIVO identities. """ + global_identity = models.ForeignKey(PersonGlobalIdentity, blank=True, null=True, db_index=True) + preferred = models.BooleanField() +