<reponame>mwhawkins/django-simple-mfa<filename>simplemfa/migrations/0001_initial.py
# Generated by Django 3.0.8 on 2020-07-16 20:45

from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
import simplemfa.models


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='AuthCode',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('created', models.DateTimeField(default=django.utils.timezone.now)),
                ('expires', models.DateTimeField(default=simplemfa.models.get_expiration)),
                ('code', models.CharField(default=simplemfa.models.generate_code, max_length=255)),
                ('sent_via', models.CharField(choices=[('TEXT', 'Text Message'), ('PHONE', 'Phone Call'), ('EMAIL', 'Email')], default='EMAIL', max_length=15)),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
        ),
    ]

# Generated by Django 3.0.8 on 2020-07-16 20:45

from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
import simplemfa.models


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='AuthCode',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('created', models.DateTimeField(default=django.utils.timezone.now)),
                ('expires', models.DateTimeField(default=simplemfa.models.get_expiration)),
                ('code', models.CharField(default=simplemfa.models.generate_code, max_length=255)),
                ('sent_via', models.CharField(choices=[('TEXT', 'Text Message'), ('PHONE', 'Phone Call'), ('EMAIL', 'Email')], default='EMAIL', max_length=15)),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
        ),
    ]
# Generated by Django 3.0.8 on 2020-07-16 20:45