ungleich-user/dal/migrations/0001_initial.py

38 lines
1.4 KiB
Python
Raw Normal View History

2019-02-24 17:37:40 +00:00
# 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)),
],
),
]