# Generated by Django 4.2.6 on 2025-08-13 13:18

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


class Migration(migrations.Migration):

    dependencies = [
        ('wcd_2factor', '0002_auto_20220406_1436'),
    ]

    operations = [
        migrations.AddField(
            model_name='confirmationstate',
            name='confirmed_at',
            field=models.DateTimeField(blank=True, default=None, null=True, verbose_name='Confirmed at'),
        ),
        migrations.AddField(
            model_name='confirmationstate',
            name='used_at',
            field=models.DateTimeField(blank=True, default=None, null=True, verbose_name='Used at'),
        ),
        migrations.AlterField(
            model_name='confirmationstate',
            name='created_at',
            field=models.DateTimeField(default=django.utils.timezone.now, verbose_name='Created at'),
        ),
        migrations.AlterField(
            model_name='confirmationstate',
            name='meta',
            field=models.JSONField(blank=True, default=dict, verbose_name='Metadata'),
        ),
        migrations.RunSQL(
            'UPDATE "wcd_2factor_confirmationstate" SET "confirmed_at" = "updated_at" WHERE "is_confirmed" = true',
        ),
        migrations.RemoveField(
            model_name='confirmationstate',
            name='is_confirmed',
        ),
    ]
