blob: bfe59d5f171f30de3aa16fbfb921b39bc91b0b65 [file] [log] [blame]
# Generated by Django 3.0.4 on 2020-03-27 16:05
from django.db import migrations, models
import uuid
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='EmailTemplate',
fields=[
('template_type', models.IntegerField(choices=[(1, 'Verify Email Template'), (2, 'New User Email Template'), (3, 'Password Reset Email Template'), (4, 'User Added to Group Template')], primary_key=True, serialize=False)),
('subject', models.CharField(max_length=255)),
('body', models.TextField()),
('created_date', models.DateTimeField(auto_now_add=True)),
('updated_date', models.DateTimeField(auto_now=True)),
],
),
migrations.CreateModel(
name='EmailVerification',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('username', models.CharField(max_length=64)),
('verification_code', models.CharField(default=uuid.uuid4, max_length=36, unique=True)),
('created_date', models.DateTimeField(auto_now_add=True)),
('verified', models.BooleanField(default=False)),
('next', models.CharField(blank=True, max_length=255)),
],
),
migrations.CreateModel(
name='PasswordResetRequest',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('username', models.CharField(max_length=64)),
('reset_code', models.CharField(default=uuid.uuid4, max_length=36, unique=True)),
('created_date', models.DateTimeField(auto_now_add=True)),
],
),
]