trentpalmerdotorg/accounts/migrations/0001_initial.py

31 lines
904 B
Python
Raw Normal View History

2021-02-24 20:13:54 -08:00
# Generated by Django 3.1.6 on 2021-02-21 22:18
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.CreateModel(
name='Account',
fields=[
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
('totp_key', models.CharField(max_length=16, null=True)),
('use_totp', models.BooleanField(default=False)),
('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
],
options={
'abstract': False,
},
),
]