from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('pricemon', '0003_delete_pricemonsettings'),
    ]

    operations = [
        migrations.RenameField(
            model_name='pricewatcher',
            old_name='alert_threshold_pct',
            new_name='alert_price_threshold',
        ),
        migrations.AlterField(
            model_name='pricewatcher',
            name='alert_price_threshold',
            field=models.DecimalField(
                blank=True, decimal_places=2, max_digits=12, null=True,
                help_text='Send an alert when the detected price is at or below this value. Leave blank to disable alerts.',
            ),
        ),
        migrations.AddField(
            model_name='pricewatcher',
            name='recurring_notification',
            field=models.BooleanField(
                default=True,
                help_text='Keep notifying on every check while the price meets the threshold. Disable to notify only once (until you dismiss the alert).',
            ),
        ),
        migrations.AlterField(
            model_name='pricealert',
            name='old_price',
            field=models.DecimalField(blank=True, decimal_places=2, max_digits=12, null=True),
        ),
        migrations.AlterField(
            model_name='pricealert',
            name='drop_pct',
            field=models.DecimalField(decimal_places=2, default=0, max_digits=5),
        ),
    ]
