15 lines
548 B
Python
15 lines
548 B
Python
from django.db import models
|
|
|
|
from django.contrib.auth.models import User
|
|
|
|
|
|
class GotifyUser(models.Model):
|
|
user = models.OneToOneField(User, on_delete=models.CASCADE, primary_key=True)
|
|
id = models.PositiveIntegerField(verbose_name="Gotify User ID")
|
|
|
|
|
|
class GotifyApplication(models.Model):
|
|
user = models.OneToOneField(GotifyUser, on_delete=models.CASCADE, primary_key=True)
|
|
id = models.PositiveIntegerField(verbose_name="Gotify Application ID")
|
|
token = models.CharField(max_length=256, verbose_name="Gotify Application Token")
|