Browse Source

Add initial migration for dal

merge-requests/1/head
PCoder 3 years ago
parent
commit
ccf600b620
  1. 37
      dal/migrations/0001_initial.py
  2. 0
      dal/migrations/__init__.py

37
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)),
],
),
]

0
dal/migrations/__init__.py

Loading…
Cancel
Save