# Generated by Django 4.1.8 on 2023-05-18 20:20

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


class Migration(migrations.Migration):
    dependencies = [
        ('dcim', '0174_rack_starting_unit'),
    ]

    operations = [
        migrations.RemoveField(
            model_name='inventoryitem',
            name='level',
        ),
        migrations.RemoveField(
            model_name='inventoryitem',
            name='lft',
        ),
        migrations.RemoveField(
            model_name='inventoryitem',
            name='rght',
        ),
        migrations.RemoveField(
            model_name='inventoryitem',
            name='tree_id',
        ),
        migrations.RemoveField(
            model_name='inventoryitemtemplate',
            name='level',
        ),
        migrations.RemoveField(
            model_name='inventoryitemtemplate',
            name='lft',
        ),
        migrations.RemoveField(
            model_name='inventoryitemtemplate',
            name='rght',
        ),
        migrations.RemoveField(
            model_name='inventoryitemtemplate',
            name='tree_id',
        ),
        migrations.RemoveField(
            model_name='location',
            name='level',
        ),
        migrations.RemoveField(
            model_name='location',
            name='lft',
        ),
        migrations.RemoveField(
            model_name='location',
            name='rght',
        ),
        migrations.RemoveField(
            model_name='location',
            name='tree_id',
        ),
        migrations.RemoveField(
            model_name='region',
            name='level',
        ),
        migrations.RemoveField(
            model_name='region',
            name='lft',
        ),
        migrations.RemoveField(
            model_name='region',
            name='rght',
        ),
        migrations.RemoveField(
            model_name='region',
            name='tree_id',
        ),
        migrations.RemoveField(
            model_name='sitegroup',
            name='level',
        ),
        migrations.RemoveField(
            model_name='sitegroup',
            name='lft',
        ),
        migrations.RemoveField(
            model_name='sitegroup',
            name='rght',
        ),
        migrations.RemoveField(
            model_name='sitegroup',
            name='tree_id',
        ),
        migrations.AlterField(
            model_name='inventoryitem',
            name='parent',
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                related_name='children',
                to='dcim.inventoryitem',
            ),
        ),
        migrations.AlterField(
            model_name='inventoryitemtemplate',
            name='parent',
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                related_name='children',
                to='dcim.inventoryitemtemplate',
            ),
        ),
        migrations.AlterField(
            model_name='location',
            name='parent',
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                related_name='children',
                to='dcim.location',
            ),
        ),
        migrations.AlterField(
            model_name='region',
            name='parent',
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                related_name='children',
                to='dcim.region',
            ),
        ),
        migrations.AlterModelOptions(
            name='region',
            options={'ordering': ('name',)},
        ),
        migrations.AlterField(
            model_name='sitegroup',
            name='parent',
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                related_name='children',
                to='dcim.sitegroup',
            ),
        ),
        migrations.AlterModelOptions(
            name='inventoryitem',
            options={'ordering': ('_name',)},
        ),
        migrations.AlterModelOptions(
            name='inventoryitemtemplate',
            options={'ordering': ('_name',)},
        ),
        migrations.AlterModelOptions(
            name='location',
            options={'ordering': ('name',)},
        ),
    ]
