# Generated by Django 4.2.27 on 2026-01-11 11:27

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('authentication', '__first__'),
        ('eveuniverse', '__first__'),
    ]

    operations = [
        migrations.CreateModel(
            name='CapAlertCooldown',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('character_id', models.BigIntegerField(db_index=True)),
                ('last_alert', models.DateTimeField(default=django.utils.timezone.now)),
            ],
            options={
                'verbose_name': 'CapTrack alert cooldown',
                'verbose_name_plural': 'CapTrack alert cooldowns',
            },
        ),
        migrations.CreateModel(
            name='CapWatchlist',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('first_detected', models.DateTimeField(auto_now_add=True, help_text='When this character was first detected with a capital in a blacklisted region.')),
                ('last_seen', models.DateTimeField(auto_now=True, help_text='When this character was last confirmed with a capital in a blacklisted region.')),
                ('character', models.OneToOneField(help_text='Character currently being monitored for capital movement.', on_delete=django.db.models.deletion.CASCADE, related_name='captrack_watch', to='authentication.characterownership')),
            ],
            options={
                'verbose_name': 'CapTrack watchlist entry',
                'verbose_name_plural': 'CapTrack watchlist',
            },
        ),
        migrations.CreateModel(
            name='CapTrackSettings',
            fields=[
                ('id', models.BigAutoField(primary_key=True, serialize=False)),
                ('webhook_url', models.URLField(blank=True, help_text='Discord webhook URL for cap notifications.', null=True)),
                ('blacklisted_regions', models.ManyToManyField(blank=True, help_text='Select regions to blacklist for capital tracking.', to='eveuniverse.everegion')),
            ],
            options={
                'verbose_name': 'CapTrack settings',
                'verbose_name_plural': 'CapTrack settings',
            },
        ),
    ]
