Add initial migration for dal
This commit is contained in:
parent
6e0788097f
commit
ccf600b620
2 changed files with 37 additions and 0 deletions
37
dal/migrations/0001_initial.py
Normal file
37
dal/migrations/0001_initial.py
Normal file
|
@ -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)),
|
||||
],
|
||||
),
|
||||
]
|
0
dal/migrations/__init__.py
Normal file
0
dal/migrations/__init__.py
Normal file
Loading…
Reference in a new issue