from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('accounts', '0015_document_expiry_reminder_days_before'),
    ]

    operations = [
        migrations.RemoveConstraint(
            model_name='documentexpiryreminderlog',
            name='uniq_document_expiry_reminder',
        ),
        migrations.AddField(
            model_name='documentexpiryreminderlog',
            name='reminder_hour',
            field=models.SmallIntegerField(
                default=-1,
                help_text='Local hour (0-23) for expiry-day hourly reminders; -1 for day-window reminders.',
            ),
        ),
        migrations.AddConstraint(
            model_name='documentexpiryreminderlog',
            constraint=models.UniqueConstraint(
                fields=('kind', 'document_id', 'expiry_date', 'days_before', 'reminder_hour'),
                name='uniq_document_expiry_reminder',
            ),
        ),
    ]
