# Generated by Django 5.2.12 on 2026-04-16 05:26

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('routermon', '0002_change_enabled_default'),
    ]

    operations = [
        migrations.CreateModel(
            name='WanEvent',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('timestamp', models.DateTimeField(db_index=True)),
                ('src_ip', models.GenericIPAddressField(db_index=True)),
                ('dst_port', models.IntegerField(blank=True, db_index=True, null=True)),
                ('protocol', models.CharField(max_length=10)),
                ('src_port', models.IntegerField(blank=True, null=True)),
                ('country', models.CharField(blank=True, max_length=100)),
                ('country_code', models.CharField(blank=True, max_length=10)),
                ('city', models.CharField(blank=True, max_length=100)),
                ('isp', models.CharField(blank=True, max_length=200)),
            ],
            options={
                'ordering': ['-timestamp'],
                'indexes': [models.Index(fields=['src_ip', 'timestamp'], name='routermon_w_src_ip_69d0c6_idx'), models.Index(fields=['dst_port', 'timestamp'], name='routermon_w_dst_por_75939a_idx'), models.Index(fields=['timestamp', 'protocol'], name='routermon_w_timesta_143a69_idx')],
            },
        ),
    ]
