aboutsummaryrefslogtreecommitdiff
path: root/users/migrations
diff options
context:
space:
mode:
authorBobby <[email protected]>2023-04-30 00:34:22 -0400
committerBobby <[email protected]>2023-04-30 00:34:22 -0400
commitb3439b867b81a2d7cfb363b62b203ee2e64c0613 (patch)
tree79f85dd89786d95228e82977d4e22df8ecb4cc7e /users/migrations
parent714953207a6c01d88c826206a41423a597a2ca2c (diff)
downloadthatcomputerscientist-b3439b867b81a2d7cfb363b62b203ee2e64c0613.tar.xz
thatcomputerscientist-b3439b867b81a2d7cfb363b62b203ee2e64c0613.zip
Email Verification Update w/ Token Expiration
Diffstat (limited to 'users/migrations')
-rw-r--r--users/migrations/0011_tokenstore.py42
1 files changed, 42 insertions, 0 deletions
diff --git a/users/migrations/0011_tokenstore.py b/users/migrations/0011_tokenstore.py
new file mode 100644
index 00000000..78a5478b
--- /dev/null
+++ b/users/migrations/0011_tokenstore.py
@@ -0,0 +1,42 @@
+# Generated by Django 4.1.4 on 2023-04-30 03:19
+
+from django.conf import settings
+from django.db import migrations, models
+import django.db.models.deletion
+
+
+class Migration(migrations.Migration):
+ dependencies = [
+ migrations.swappable_dependency(settings.AUTH_USER_MODEL),
+ ("users", "0010_userprofile_blinkie_url"),
+ ]
+
+ operations = [
+ migrations.CreateModel(
+ name="TokenStore",
+ fields=[
+ (
+ "id",
+ models.BigAutoField(
+ auto_created=True,
+ primary_key=True,
+ serialize=False,
+ verbose_name="ID",
+ ),
+ ),
+ ("uid", models.TextField(unique=True)),
+ ("token", models.TextField(unique=True)),
+ ("email", models.EmailField(blank=True, max_length=254)),
+ ("token_type", models.CharField(max_length=50)),
+ ("expires", models.DateTimeField(auto_now_add=True)),
+ ("verified", models.BooleanField(default=False)),
+ (
+ "user",
+ models.ForeignKey(
+ on_delete=django.db.models.deletion.CASCADE,
+ to=settings.AUTH_USER_MODEL,
+ ),
+ ),
+ ],
+ ),
+ ]