class GithubAppUser(models.Model):
    installation = models.ForeignKey(GithubAppInstallation, on_delete=models.CASCADE)
    github_user = models.ForeignKey(GithubUser, on_delete=models.CASCADE)
    created_at = models.DateTimeField(auto_now_add=True)
    class Meta:
        unique_together = ("installation", "github_user")
    def __str__(self) -> str:
        return f"{self.github_user.account_name}[{self.installation.installation_id}]"
        return super().__str__()
class GithubAppUser(models.Model):
    installation = models.ForeignKey(GithubAppInstallation, on_delete=models.CASCADE)
    github_user = models.ForeignKey(GithubUser, on_delete=models.CASCADE)
    created_at = models.DateTimeField(auto_now_add=True)
    class Meta:
        unique_together = ("installation", "github_user")
    def __str__(self) -> str:
        return f"{self.github_user.account_name}[{self.installation.installation_id}]"
        return super().__str__()