Skip to content

Commit

Permalink
Add migration for AppUser is_active and EmailVerification changes
Browse files Browse the repository at this point in the history
  • Loading branch information
UserMarekDrag committed Oct 15, 2023
1 parent cb126f9 commit 8098ffd
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions user_api/migrations/0003_appuser_is_active_emailverification.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Generated by Django 4.2 on 2023-10-07 22:14

from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import uuid


class Migration(migrations.Migration):

dependencies = [
('user_api', '0002_appuser_is_staff'),
]

operations = [
migrations.AddField(
model_name='appuser',
name='is_active',
field=models.BooleanField(default=False),
),
migrations.CreateModel(
name='EmailVerification',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('token', models.UUIDField(default=uuid.uuid4, editable=False, unique=True)),
('expiry_date', models.DateTimeField()),
('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
],
),
]

0 comments on commit 8098ffd

Please sign in to comment.