From ccf600b6208ee1c1c18c2f2ab805dfdf5b3a090e Mon Sep 17 00:00:00 2001 From: PCoder Date: Sun, 24 Feb 2019 18:37:40 +0100 Subject: [PATCH] Add initial migration for dal --- dal/migrations/0001_initial.py | 37 ++++++++++++++++++++++++++++++++++ dal/migrations/__init__.py | 0 2 files changed, 37 insertions(+) create mode 100644 dal/migrations/0001_initial.py create mode 100644 dal/migrations/__init__.py diff --git a/dal/migrations/0001_initial.py b/dal/migrations/0001_initial.py new file mode 100644 index 0000000..936a832 --- /dev/null +++ b/dal/migrations/0001_initial.py @@ -0,0 +1,37 @@ +# Generated by Django 2.1.7 on 2019-02-24 17:35 + +import dal.models +from django.conf import settings +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + migrations.swappable_dependency(settings.AUTH_USER_MODEL), + ] + + operations = [ + migrations.CreateModel( + name='ResetToken', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('user', models.CharField(max_length=100)), + ('token', models.CharField(max_length=255)), + ('creation', models.BigIntegerField()), + ], + ), + migrations.CreateModel( + name='UserAccountValidationDetail', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('validated', models.IntegerField(choices=[(0, 'Not validated'), (1, 'Validated')], default=0)), + ('validation_slug', models.CharField(db_index=True, default=dal.models.get_validation_slug, max_length=50, unique=True)), + ('date_validation_started', models.DateTimeField(auto_now_add=True)), + ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), + ], + ), + ] diff --git a/dal/migrations/__init__.py b/dal/migrations/__init__.py new file mode 100644 index 0000000..e69de29