Update models / create migration
This commit is contained in:
parent
9f7e76f066
commit
420393a437
2 changed files with 9 additions and 6 deletions
|
@ -1,7 +1,6 @@
|
|||
# Generated by Django 2.1.2 on 2018-10-26 19:55
|
||||
# Generated by Django 2.1.3 on 2018-11-17 09:01
|
||||
|
||||
from django.db import migrations, models
|
||||
import uuid
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
@ -15,11 +14,14 @@ class Migration(migrations.Migration):
|
|||
migrations.CreateModel(
|
||||
name='OTPSeed',
|
||||
fields=[
|
||||
('appuuid', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
|
||||
('appname', models.CharField(max_length=128)),
|
||||
('username', models.CharField(max_length=128)),
|
||||
('id', models.AutoField(primary_key=True, serialize=False)),
|
||||
('name', models.CharField(max_length=128)),
|
||||
('realm', models.CharField(max_length=128)),
|
||||
('seed', models.CharField(max_length=128)),
|
||||
('trusted', models.BooleanField(default=False)),
|
||||
],
|
||||
),
|
||||
migrations.AlterUniqueTogether(
|
||||
name='otpseed',
|
||||
unique_together={('name', 'realm')},
|
||||
),
|
||||
]
|
||||
|
|
|
@ -2,6 +2,7 @@ from django.db import models
|
|||
|
||||
# Create your models here.
|
||||
class OTPSeed(models.Model):
|
||||
id = models.AutoField(primary_key=True)
|
||||
name = models.CharField(max_length=128)
|
||||
realm = models.CharField(max_length=128)
|
||||
seed = models.CharField(max_length=128)
|
||||
|
|
Loading…
Reference in a new issue