ungleich-otp/ungleichotp/otpauth/models.py
2018-11-17 09:42:34 +01:00

19 lines
622 B
Python

from django.db import models
# Create your models here.
class OTPSeed(models.Model):
name = models.CharField(max_length=128)
realm = models.CharField(max_length=128)
seed = models.CharField(max_length=128)
class Meta:
unique_together = (('name', 'realm'),)
# V1
# class OTPSeed(models.Model):
# appuuid = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
# appname = models.CharField(max_length=128)
# username = models.CharField(max_length=128)
# seed = models.CharField(max_length=128)
# trusted = models.BooleanField(default=False)