# Generated by Django 4.2.23 on 2025-09-15 16:37


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


class Migration(migrations.Migration):

    dependencies = [
        ('autosrp', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='IgnoredModule',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('eve_type_id', models.BigIntegerField(unique=True)),
                ('name', models.CharField(db_index=True, max_length=255)),
                ('added_at', models.DateTimeField(default=django.utils.timezone.now)),
                ('added_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL,
                                               to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'verbose_name': 'Ignored Module',
                'verbose_name_plural': 'Ignored Modules',
            },
        ),
        migrations.AlterModelOptions(
            name='appsetting',
            options={'verbose_name': 'App Setting', 'verbose_name_plural': 'App Settings'},
        ),
        migrations.AlterModelOptions(
            name='discordnotificationsetting',
            options={'verbose_name': 'User Setting', 'verbose_name_plural': 'User Settings'},
        ),
        migrations.AlterModelOptions(
            name='doctrinereward',
            options={'verbose_name': 'Base Reward', 'verbose_name_plural': 'Base Rewards'},
        ),
        migrations.AlterModelOptions(
            name='fitcheck',
            options={'verbose_name': 'Fit Check', 'verbose_name_plural': 'Fit Checks'},
        ),
        migrations.AlterModelOptions(
            name='itemprices',
            options={'ordering': ['-updated'], 'verbose_name': 'Item Price', 'verbose_name_plural': 'Item Prices'},
        ),
        migrations.AlterModelOptions(
            name='killrecord',
            options={'verbose_name': 'Kill Record', 'verbose_name_plural': 'Kill Records'},
        ),
        migrations.AlterModelOptions(
            name='orgfilter',
            options={'ordering': ['name'], 'verbose_name': 'Organization Filter', 'verbose_name_plural': 'Organization Filters'},
        ),
        migrations.AlterModelOptions(
            name='payoutrecord',
            options={'verbose_name': 'Payout Record', 'verbose_name_plural': 'Payout Records'},
        ),
        migrations.AlterModelOptions(
            name='payoutsuggestion',
            options={'verbose_name': 'Payout Suggestion', 'verbose_name_plural': 'Payout Suggestions'},
        ),
        migrations.AlterModelOptions(
            name='penaltyscheme',
            options={'verbose_name': 'Penalty Scheme', 'verbose_name_plural': 'Penalty Schemes'},
        ),
        migrations.AlterModelOptions(
            name='submission',
            options={'ordering': ['-created'], 'permissions': [('manage', 'Can manage Auto SRP settings'), ('submit', 'Can submit Auto SRP requests'), ('review', 'Can review Auto SRP batches')], 'verbose_name': 'Battle Report', 'verbose_name_plural': 'Battle Reports'},
        ),
        migrations.SeparateDatabaseAndState(
            state_operations=[
                migrations.AlterUniqueTogether(
                    name='doctrinereward',
                    unique_together=set(),
                ),
            ],
            database_operations=[],
        ),
        migrations.AddField(
            model_name='appsetting',
            name='discord_mute_all',
            field=models.BooleanField(default=False, help_text='If enabled, all users will be not receive notifications in Discord.'),
        ),
        migrations.AddField(
            model_name='doctrinereward',
            name='doctrine_fit_id',
            field=models.PositiveIntegerField(db_index=True, default=1),
        ),
        migrations.AlterField(
            model_name='appsetting',
            name='default_duration_minutes',
            field=models.PositiveIntegerField(default=120, help_text='Default duration in minutes for new battle reports.'),
        ),
        migrations.AddConstraint(
            model_name='doctrinereward',
            constraint=models.UniqueConstraint(fields=('doctrine_fit_id',), name='unique_reward_per_doctrine_fit'),
        ),
    ]
