# Generated by Django 6.0.7 on 2026-07-14 18:46 import django.db.models.deletion from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("accounts", "0001_initial"), ] operations = [ migrations.CreateModel( name="PushSubscription", fields=[ ( "id", models.BigAutoField( auto_created=True, primary_key=True, serialize=False, verbose_name="ID", ), ), ("endpoint", models.URLField(max_length=500, unique=True)), ("p256dh", models.CharField(max_length=200)), ("auth", models.CharField(max_length=100)), ("user_agent", models.CharField(blank=True, max_length=300)), ("created_at", models.DateTimeField(auto_now_add=True)), ("last_success_at", models.DateTimeField(blank=True, null=True)), ( "user", models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name="push_subscriptions", to=settings.AUTH_USER_MODEL, ), ), ], options={ "ordering": ["-created_at"], }, ), ]