[django] adding model

This commit is contained in:
Nico Schottelius 2018-10-26 21:59:35 +02:00
parent 13c7cdd294
commit 4227b1b73c
3 changed files with 32 additions and 0 deletions

View file

@ -1,3 +1,9 @@
from django.contrib import admin
# Register your models here.
from django.contrib import admin
from .models import OTPSeed
admin.site.register(OTPSeed)

View file

@ -0,0 +1,25 @@
# Generated by Django 2.1.2 on 2018-10-26 19:55
from django.db import migrations, models
import uuid
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
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)),
('seed', models.CharField(max_length=128)),
('trusted', models.BooleanField(default=False)),
],
),
]

View file

@ -1,4 +1,5 @@
from django.db import models
import uuid
# Create your models here.
class OTPSeed(models.Model):