36 lines
1.3 KiB
Python
36 lines
1.3 KiB
Python
from django.conf import settings
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
dependencies = [
|
|
("accounts", "0007_externalidentity"),
|
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name="NativeAccountSecurity",
|
|
fields=[
|
|
("id", models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name="ID")),
|
|
("email_verified", models.BooleanField(db_index=True, default=False)),
|
|
("email_verified_at", models.DateTimeField(blank=True, null=True)),
|
|
("verification_email_sent_at", models.DateTimeField(blank=True, null=True)),
|
|
("updated_at", models.DateTimeField(auto_now=True)),
|
|
(
|
|
"user",
|
|
models.OneToOneField(
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="native_account_security",
|
|
to=settings.AUTH_USER_MODEL,
|
|
),
|
|
),
|
|
],
|
|
options={
|
|
"verbose_name": "Native account security",
|
|
"verbose_name_plural": "Native account security",
|
|
},
|
|
),
|
|
]
|