# Generated by Django 5.2 on 2025-06-18 06:26

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


class Migration(migrations.Migration):

    dependencies = [
        ("ipam", "0081_remove_service_device_virtual_machine_add_parent_gfk_index"),
        (
            "netbox_security",
            "0008_alter_address_options_rename_value_address_address_and_more",
        ),
    ]

    operations = [
        migrations.AlterModelOptions(
            name="address",
            options={"ordering": ("name", "address", "dns_name", "ip_range")},
        ),
        migrations.AlterUniqueTogether(
            name="address",
            unique_together=set(),
        ),
        migrations.AddField(
            model_name="address",
            name="ip_range",
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.SET_NULL,
                related_name="+",
                to="ipam.iprange",
            ),
        ),
        migrations.AlterUniqueTogether(
            name="address",
            unique_together={("name", "address", "dns_name", "ip_range")},
        ),
    ]
