1
e11sync/app/signup/migrations/0001_initial.py

32 lines
965 B
Python
Raw Normal View History

2024-01-13 09:57:22 +02:00
# 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=[
2024-01-28 23:46:49 +02:00
('id', models.BigAutoField(auto_created=True,
primary_key=True, serialize=False, verbose_name='ID')),
2024-01-13 09:57:22 +02:00
('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',
2024-01-28 23:46:49 +02:00
constraint=models.UniqueConstraint(
fields=('email',), name='unique_email'),
2024-01-13 09:57:22 +02:00
),
]