PR-Pilot-AI / pr-pilot

An AI agent for your development workflow that can search and manipulate the code base, browse the internet and interact with Github issues and pull requests
https://www.pr-pilot.ai
GNU General Public License v3.0
149 stars 16 forks source link

🔗 Add ServiceIntegration Model for User Credentials #136

Closed pr-pilot-ai[bot] closed 3 months ago

pr-pilot-ai[bot] commented 3 months ago

The sub-task to define integration credentials has been completed. A new Django model ServiceIntegration has been added and connected to the PilotUser model in accounts/models.py.

Here is the new ServiceIntegration model:

class ServiceIntegration(models.Model):
    service_name = models.CharField(max_length=100)
    api_key = models.TextField()
    api_secret = models.TextField()
    user = models.ForeignKey('PilotUser', on_delete=models.CASCADE, related_name='service_integrations')

This model is linked to the PilotUser model via a ForeignKey relationship.