From 1067e090502fe47dc09306f9916b40909a22dc3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Sat, 13 Jan 2024 09:57:22 +0200 Subject: [PATCH] add a forgotten migration --- app/signup/migrations/0001_initial.py | 29 +++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 app/signup/migrations/0001_initial.py diff --git a/app/signup/migrations/0001_initial.py b/app/signup/migrations/0001_initial.py new file mode 100644 index 0000000..6d66ebf --- /dev/null +++ b/app/signup/migrations/0001_initial.py @@ -0,0 +1,29 @@ +# Generated by Django 5.0.1 on 2024-01-12 10:04 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ] + + operations = [ + migrations.CreateModel( + name='Signup', + fields=[ + ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('email', models.EmailField(max_length=254)), + ('created_at', models.DateTimeField(auto_now_add=True)), + ('anonymized_ip', models.GenericIPAddressField()), + ('user_agent', models.CharField(max_length=255)), + ('geoip', models.JSONField(blank=True, null=True)), + ], + ), + migrations.AddConstraint( + model_name='signup', + constraint=models.UniqueConstraint(fields=('email',), name='unique_email'), + ), + ]