feat: add Immich integration module with API endpoints and admin interface
This commit is contained in:
12
backend/server/integrations/models.py
Normal file
12
backend/server/integrations/models.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from django.db import models
|
||||
from django.contrib.auth import get_user_model
|
||||
|
||||
User = get_user_model()
|
||||
|
||||
class ImmichIntegration(models.Model):
|
||||
server_url = models.CharField(max_length=255)
|
||||
api_key = models.CharField(max_length=255)
|
||||
user = models.ForeignKey(User, on_delete=models.CASCADE)
|
||||
|
||||
def __str__(self):
|
||||
return self.user.username + ' - ' + self.server_url
|
||||
Reference in New Issue
Block a user