# Generated by Django 5.2.4 on 2025-10-01 03:31

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


class Migration(migrations.Migration):

    dependencies = [
        ("nodes", "0013_node_role_badge_colors"),
    ]

    operations = [
        migrations.AddField(
            model_name="netmessage",
            name="filter_current_relation",
            field=models.CharField(
                blank=True,
                choices=[
                    ("UPSTREAM", "Upstream"),
                    ("DOWNSTREAM", "Downstream"),
                    ("PEER", "Peer"),
                    ("SELF", "Self"),
                ],
                max_length=10,
                verbose_name="Current relation",
            ),
        ),
        migrations.AddField(
            model_name="netmessage",
            name="filter_installed_revision",
            field=models.CharField(
                blank=True, max_length=40, verbose_name="Installed revision"
            ),
        ),
        migrations.AddField(
            model_name="netmessage",
            name="filter_installed_version",
            field=models.CharField(
                blank=True, max_length=20, verbose_name="Installed version"
            ),
        ),
        migrations.AddField(
            model_name="netmessage",
            name="filter_node",
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.SET_NULL,
                related_name="filtered_net_messages",
                to="nodes.node",
                verbose_name="Node",
            ),
        ),
        migrations.AddField(
            model_name="netmessage",
            name="filter_node_feature",
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.SET_NULL,
                to="nodes.nodefeature",
                verbose_name="Node feature",
            ),
        ),
        migrations.AddField(
            model_name="netmessage",
            name="filter_node_role",
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.SET_NULL,
                related_name="filtered_net_messages",
                to="nodes.noderole",
                verbose_name="Node role",
            ),
        ),
    ]
