# Generated by Django 5.2.7 on 2026-05-11 08:20

import django.utils.timezone
from django.conf import settings
from django.db import migrations, models


class Migration(migrations.Migration):
    dependencies = [
        ("noita", "0006_objectivpoint"),
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.RemoveField(
            model_name="objectiv",
            name="count",
        ),
        migrations.AddField(
            model_name="objectiv",
            name="first_seen_at",
            field=models.DateTimeField(default=django.utils.timezone.now),
        ),
        migrations.AddConstraint(
            model_name="objectiv",
            constraint=models.UniqueConstraint(
                fields=("objectiv_id", "user", "first_seen_at"),
                name="unique_objectiv_per_user_timestamp",
            ),
        ),
    ]
