# Generated by Django 5.1.13 on 2025-10-26 08:20

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


class Migration(migrations.Migration):

    dependencies = [
        ("access", "0017_alter_entity_organization_alter_role_organization"),
        ("itam", "0018_alter_devicemodel_manufacturer_old_and_more"),
    ]

    operations = [
        migrations.AlterModelOptions(
            name="devicemodel",
            options={
                "ordering": ["manufacturer", "name"],
                "verbose_name": "Device Model",
                "verbose_name_plural": "Device Models",
            },
        ),
        migrations.AlterModelOptions(
            name="software",
            options={
                "ordering": ["name", "publisher__name"],
                "verbose_name": "Software",
                "verbose_name_plural": "Softwares",
            },
        ),
        migrations.AddField(
            model_name="devicemodel",
            name="manufacturer",
            field=models.ForeignKey(
                blank=True,
                help_text="Manufacturer this model is from",
                null=True,
                on_delete=django.db.models.deletion.PROTECT,
                related_name="device_models",
                to="access.company",
                verbose_name="Manufacturer",
            ),
        ),
        migrations.AddField(
            model_name="operatingsystem",
            name="publisher",
            field=models.ForeignKey(
                blank=True,
                help_text="Who publishes this Operating System",
                null=True,
                on_delete=django.db.models.deletion.PROTECT,
                related_name="operating_system",
                to="access.company",
                verbose_name="Publisher",
            ),
        ),
        migrations.AddField(
            model_name="software",
            name="publisher",
            field=models.ForeignKey(
                blank=True,
                help_text="Who publishes this software",
                null=True,
                on_delete=django.db.models.deletion.PROTECT,
                related_name="software",
                to="access.company",
                verbose_name="Publisher",
            ),
        ),
    ]
