26 lines
846 B
Python
26 lines
846 B
Python
|
# Generated by Django 4.2.17 on 2025-02-04 14:27
|
||
|
|
||
|
from django.db import migrations, models
|
||
|
import django.db.models.deletion
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
|
||
|
dependencies = [
|
||
|
('accounts', '0003_alter_user_username'),
|
||
|
]
|
||
|
|
||
|
operations = [
|
||
|
migrations.CreateModel(
|
||
|
name='UserToken',
|
||
|
fields=[
|
||
|
('id', models.AutoField(primary_key=True, serialize=False)),
|
||
|
('email', models.EmailField(max_length=254, unique=True)),
|
||
|
('token', models.CharField(max_length=64, unique=True)),
|
||
|
('created_at', models.DateTimeField(auto_now_add=True)),
|
||
|
('expires_at', models.DateTimeField()),
|
||
|
('username', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='accounts.user')),
|
||
|
],
|
||
|
),
|
||
|
]
|