# Generated by Django 5.1.10 on 2025-08-15 03:21

import access.models.tenancy_abstract
import django.db.models.deletion
import itam.models.device
from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ("access", "0011_remove_entitynotes_model_and_more"),
        ("core", "0024_centurionaudit_centurionmodelnote_and_more"),
        ("itam", "0011_itamassetbase_alter_device_organization_and_more"),
    ]

    operations = [
        migrations.RemoveField(
            model_name="device",
            name="is_global",
        ),
        migrations.RemoveField(
            model_name="device",
            name="slug",
        ),
        migrations.RemoveField(
            model_name="devicemodel",
            name="is_global",
        ),
        migrations.RemoveField(
            model_name="devicemodel",
            name="slug",
        ),
        migrations.RemoveField(
            model_name="deviceoperatingsystem",
            name="is_global",
        ),
        migrations.RemoveField(
            model_name="deviceoperatingsystem",
            name="model_notes",
        ),
        migrations.RemoveField(
            model_name="devicesoftware",
            name="is_global",
        ),
        migrations.RemoveField(
            model_name="devicetype",
            name="is_global",
        ),
        migrations.RemoveField(
            model_name="devicetype",
            name="slug",
        ),
        migrations.RemoveField(
            model_name="operatingsystem",
            name="is_global",
        ),
        migrations.RemoveField(
            model_name="operatingsystem",
            name="slug",
        ),
        migrations.RemoveField(
            model_name="operatingsystemversion",
            name="is_global",
        ),
        migrations.RemoveField(
            model_name="software",
            name="is_global",
        ),
        migrations.RemoveField(
            model_name="software",
            name="slug",
        ),
        migrations.RemoveField(
            model_name="softwarecategory",
            name="is_global",
        ),
        migrations.RemoveField(
            model_name="softwarecategory",
            name="slug",
        ),
        migrations.RemoveField(
            model_name="softwareversion",
            name="is_global",
        ),
        migrations.RemoveField(
            model_name="softwareversion",
            name="slug",
        ),
        migrations.AlterField(
            model_name="device",
            name="config",
            field=models.JSONField(
                blank=True,
                help_text="Configuration for this device",
                null=True,
                validators=[
                    itam.models.device.Device.validate_config_keys_not_reserved
                ],
                verbose_name="Host Configuration",
            ),
        ),
        migrations.AlterField(
            model_name="device",
            name="device_model",
            field=models.ForeignKey(
                blank=True,
                help_text="Model of the device.",
                null=True,
                on_delete=django.db.models.deletion.PROTECT,
                to="itam.devicemodel",
                verbose_name="Model",
            ),
        ),
        migrations.AlterField(
            model_name="device",
            name="device_type",
            field=models.ForeignKey(
                blank=True,
                help_text="Type of device.",
                null=True,
                on_delete=django.db.models.deletion.PROTECT,
                to="itam.devicetype",
                verbose_name="Type",
            ),
        ),
        migrations.AlterField(
            model_name="device",
            name="id",
            field=models.AutoField(
                help_text="ID of the item",
                primary_key=True,
                serialize=False,
                unique=True,
                verbose_name="ID",
            ),
        ),
        migrations.AlterField(
            model_name="device",
            name="model_notes",
            field=models.TextField(
                blank=True,
                help_text="Tid bits of information",
                null=True,
                verbose_name="Notes",
            ),
        ),
        migrations.AlterField(
            model_name="device",
            name="organization",
            field=models.ForeignKey(
                help_text="Tenant this belongs to",
                on_delete=django.db.models.deletion.CASCADE,
                related_name="+",
                to="access.tenant",
                validators=[
                    access.models.tenancy_abstract.TenancyAbstractModel.validatate_organization_exists
                ],
                verbose_name="Tenant",
            ),
        ),
        migrations.AlterField(
            model_name="device",
            name="serial_number",
            field=models.CharField(
                blank=True,
                help_text="Serial number of the device.",
                max_length=50,
                null=True,
                unique=True,
                verbose_name="Serial Number",
            ),
        ),
        migrations.AlterField(
            model_name="device",
            name="uuid",
            field=models.UUIDField(
                blank=True,
                help_text="System GUID/UUID.",
                null=True,
                unique=True,
                validators=[itam.models.device.Device.validate_uuid_format],
                verbose_name="UUID",
            ),
        ),
        migrations.AlterField(
            model_name="devicemodel",
            name="id",
            field=models.AutoField(
                help_text="ID of the item",
                primary_key=True,
                serialize=False,
                unique=True,
                verbose_name="ID",
            ),
        ),
        migrations.AlterField(
            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,
                to="core.manufacturer",
                verbose_name="Manufacturer",
            ),
        ),
        migrations.AlterField(
            model_name="devicemodel",
            name="model_notes",
            field=models.TextField(
                blank=True,
                help_text="Tid bits of information",
                null=True,
                verbose_name="Notes",
            ),
        ),
        migrations.AlterField(
            model_name="devicemodel",
            name="organization",
            field=models.ForeignKey(
                help_text="Tenant this belongs to",
                on_delete=django.db.models.deletion.CASCADE,
                related_name="+",
                to="access.tenant",
                validators=[
                    access.models.tenancy_abstract.TenancyAbstractModel.validatate_organization_exists
                ],
                verbose_name="Tenant",
            ),
        ),
        migrations.AlterField(
            model_name="deviceoperatingsystem",
            name="id",
            field=models.AutoField(
                help_text="ID of the item",
                primary_key=True,
                serialize=False,
                unique=True,
                verbose_name="ID",
            ),
        ),
        migrations.AlterField(
            model_name="deviceoperatingsystem",
            name="installdate",
            field=models.DateTimeField(
                blank=True,
                help_text="Date and time detected as installed",
                null=True,
                verbose_name="Install Date",
            ),
        ),
        migrations.AlterField(
            model_name="deviceoperatingsystem",
            name="operating_system_version",
            field=models.ForeignKey(
                help_text="Operating system version",
                on_delete=django.db.models.deletion.PROTECT,
                to="itam.operatingsystemversion",
                verbose_name="Operating System/Version",
            ),
        ),
        migrations.AlterField(
            model_name="deviceoperatingsystem",
            name="organization",
            field=models.ForeignKey(
                help_text="Tenant this belongs to",
                on_delete=django.db.models.deletion.CASCADE,
                related_name="+",
                to="access.tenant",
                validators=[
                    access.models.tenancy_abstract.TenancyAbstractModel.validatate_organization_exists
                ],
                verbose_name="Tenant",
            ),
        ),
        migrations.AlterField(
            model_name="devicesoftware",
            name="action",
            field=models.IntegerField(
                blank=True,
                choices=[(1, "Install"), (0, "Remove")],
                help_text="Action to perform",
                null=True,
                verbose_name="Action",
            ),
        ),
        migrations.AlterField(
            model_name="devicesoftware",
            name="id",
            field=models.AutoField(
                help_text="ID of the item",
                primary_key=True,
                serialize=False,
                unique=True,
                verbose_name="ID",
            ),
        ),
        migrations.AlterField(
            model_name="devicesoftware",
            name="installedversion",
            field=models.ForeignKey(
                blank=True,
                help_text="Version that is installed",
                null=True,
                on_delete=django.db.models.deletion.PROTECT,
                related_name="installedversion",
                to="itam.softwareversion",
                verbose_name="Installed Version",
            ),
        ),
        migrations.AlterField(
            model_name="devicesoftware",
            name="model_notes",
            field=models.TextField(
                blank=True,
                help_text="Tid bits of information",
                null=True,
                verbose_name="Notes",
            ),
        ),
        migrations.AlterField(
            model_name="devicesoftware",
            name="organization",
            field=models.ForeignKey(
                help_text="Tenant this belongs to",
                on_delete=django.db.models.deletion.CASCADE,
                related_name="+",
                to="access.tenant",
                validators=[
                    access.models.tenancy_abstract.TenancyAbstractModel.validatate_organization_exists
                ],
                verbose_name="Tenant",
            ),
        ),
        migrations.AlterField(
            model_name="devicesoftware",
            name="software",
            field=models.ForeignKey(
                help_text="Software Name",
                on_delete=django.db.models.deletion.PROTECT,
                to="itam.software",
                verbose_name="Software",
            ),
        ),
        migrations.AlterField(
            model_name="devicesoftware",
            name="version",
            field=models.ForeignKey(
                blank=True,
                help_text="Version to install",
                null=True,
                on_delete=django.db.models.deletion.PROTECT,
                to="itam.softwareversion",
                verbose_name="Desired Version",
            ),
        ),
        migrations.AlterField(
            model_name="devicetype",
            name="id",
            field=models.AutoField(
                help_text="ID of the item",
                primary_key=True,
                serialize=False,
                unique=True,
                verbose_name="ID",
            ),
        ),
        migrations.AlterField(
            model_name="devicetype",
            name="model_notes",
            field=models.TextField(
                blank=True,
                help_text="Tid bits of information",
                null=True,
                verbose_name="Notes",
            ),
        ),
        migrations.AlterField(
            model_name="devicetype",
            name="organization",
            field=models.ForeignKey(
                help_text="Tenant this belongs to",
                on_delete=django.db.models.deletion.CASCADE,
                related_name="+",
                to="access.tenant",
                validators=[
                    access.models.tenancy_abstract.TenancyAbstractModel.validatate_organization_exists
                ],
                verbose_name="Tenant",
            ),
        ),
        migrations.AlterField(
            model_name="operatingsystem",
            name="id",
            field=models.AutoField(
                help_text="ID of the item",
                primary_key=True,
                serialize=False,
                unique=True,
                verbose_name="ID",
            ),
        ),
        migrations.AlterField(
            model_name="operatingsystem",
            name="model_notes",
            field=models.TextField(
                blank=True,
                help_text="Tid bits of information",
                null=True,
                verbose_name="Notes",
            ),
        ),
        migrations.AlterField(
            model_name="operatingsystem",
            name="organization",
            field=models.ForeignKey(
                help_text="Tenant this belongs to",
                on_delete=django.db.models.deletion.CASCADE,
                related_name="+",
                to="access.tenant",
                validators=[
                    access.models.tenancy_abstract.TenancyAbstractModel.validatate_organization_exists
                ],
                verbose_name="Tenant",
            ),
        ),
        migrations.AlterField(
            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,
                to="core.manufacturer",
                verbose_name="Publisher",
            ),
        ),
        migrations.AlterField(
            model_name="operatingsystemversion",
            name="id",
            field=models.AutoField(
                help_text="ID of the item",
                primary_key=True,
                serialize=False,
                unique=True,
                verbose_name="ID",
            ),
        ),
        migrations.AlterField(
            model_name="operatingsystemversion",
            name="model_notes",
            field=models.TextField(
                blank=True,
                help_text="Tid bits of information",
                null=True,
                verbose_name="Notes",
            ),
        ),
        migrations.AlterField(
            model_name="operatingsystemversion",
            name="operating_system",
            field=models.ForeignKey(
                help_text="Operating system this version applies to",
                on_delete=django.db.models.deletion.PROTECT,
                to="itam.operatingsystem",
                verbose_name="Operating System",
            ),
        ),
        migrations.AlterField(
            model_name="operatingsystemversion",
            name="organization",
            field=models.ForeignKey(
                help_text="Tenant this belongs to",
                on_delete=django.db.models.deletion.CASCADE,
                related_name="+",
                to="access.tenant",
                validators=[
                    access.models.tenancy_abstract.TenancyAbstractModel.validatate_organization_exists
                ],
                verbose_name="Tenant",
            ),
        ),
        migrations.AlterField(
            model_name="software",
            name="category",
            field=models.ForeignKey(
                blank=True,
                help_text="Category of this Softwarae",
                null=True,
                on_delete=django.db.models.deletion.PROTECT,
                to="itam.softwarecategory",
                verbose_name="Category",
            ),
        ),
        migrations.AlterField(
            model_name="software",
            name="id",
            field=models.AutoField(
                help_text="ID of the item",
                primary_key=True,
                serialize=False,
                unique=True,
                verbose_name="ID",
            ),
        ),
        migrations.AlterField(
            model_name="software",
            name="model_notes",
            field=models.TextField(
                blank=True,
                help_text="Tid bits of information",
                null=True,
                verbose_name="Notes",
            ),
        ),
        migrations.AlterField(
            model_name="software",
            name="organization",
            field=models.ForeignKey(
                help_text="Tenant this belongs to",
                on_delete=django.db.models.deletion.CASCADE,
                related_name="software",
                to="access.tenant",
                validators=[
                    access.models.tenancy_abstract.TenancyAbstractModel.validatate_organization_exists
                ],
                verbose_name="Tenant",
            ),
        ),
        migrations.AlterField(
            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,
                to="core.manufacturer",
                verbose_name="Publisher",
            ),
        ),
        migrations.AlterField(
            model_name="softwarecategory",
            name="id",
            field=models.AutoField(
                help_text="ID of the item",
                primary_key=True,
                serialize=False,
                unique=True,
                verbose_name="ID",
            ),
        ),
        migrations.AlterField(
            model_name="softwarecategory",
            name="model_notes",
            field=models.TextField(
                blank=True,
                help_text="Tid bits of information",
                null=True,
                verbose_name="Notes",
            ),
        ),
        migrations.AlterField(
            model_name="softwarecategory",
            name="organization",
            field=models.ForeignKey(
                help_text="Tenant this belongs to",
                on_delete=django.db.models.deletion.CASCADE,
                related_name="+",
                to="access.tenant",
                validators=[
                    access.models.tenancy_abstract.TenancyAbstractModel.validatate_organization_exists
                ],
                verbose_name="Tenant",
            ),
        ),
        migrations.AlterField(
            model_name="softwareversion",
            name="id",
            field=models.AutoField(
                help_text="ID of the item",
                primary_key=True,
                serialize=False,
                unique=True,
                verbose_name="ID",
            ),
        ),
        migrations.AlterField(
            model_name="softwareversion",
            name="model_notes",
            field=models.TextField(
                blank=True,
                help_text="Tid bits of information",
                null=True,
                verbose_name="Notes",
            ),
        ),
        migrations.AlterField(
            model_name="softwareversion",
            name="organization",
            field=models.ForeignKey(
                help_text="Tenant this belongs to",
                on_delete=django.db.models.deletion.CASCADE,
                related_name="+",
                to="access.tenant",
                validators=[
                    access.models.tenancy_abstract.TenancyAbstractModel.validatate_organization_exists
                ],
                verbose_name="Tenant",
            ),
        ),
        migrations.CreateModel(
            name="DeviceAuditHistory",
            fields=[
                (
                    "centurionaudit_ptr",
                    models.OneToOneField(
                        auto_created=True,
                        on_delete=django.db.models.deletion.CASCADE,
                        parent_link=True,
                        primary_key=True,
                        serialize=False,
                        to="core.centurionaudit",
                    ),
                ),
                (
                    "model",
                    models.ForeignKey(
                        help_text="Model this history belongs to",
                        on_delete=django.db.models.deletion.CASCADE,
                        related_name="audit_history",
                        to="itam.device",
                        verbose_name="Model",
                    ),
                ),
            ],
            options={
                "verbose_name": "Device History",
                "verbose_name_plural": "Device Histories",
                "db_table": "itam_device_audithistory",
                "managed": True,
            },
            bases=("core.centurionaudit",),
        ),
        migrations.CreateModel(
            name="DeviceCenturionModelNote",
            fields=[
                (
                    "centurionmodelnote_ptr",
                    models.OneToOneField(
                        auto_created=True,
                        on_delete=django.db.models.deletion.CASCADE,
                        parent_link=True,
                        primary_key=True,
                        serialize=False,
                        to="core.centurionmodelnote",
                    ),
                ),
                (
                    "model",
                    models.ForeignKey(
                        help_text="Model this note belongs to",
                        on_delete=django.db.models.deletion.CASCADE,
                        related_name="+",
                        to="itam.device",
                        verbose_name="Model",
                    ),
                ),
            ],
            options={
                "verbose_name": "Device Note",
                "verbose_name_plural": "Device Notes",
                "db_table": "itam_device_centurionmodelnote",
                "managed": True,
            },
            bases=("core.centurionmodelnote",),
        ),
        migrations.CreateModel(
            name="DeviceModelAuditHistory",
            fields=[
                (
                    "centurionaudit_ptr",
                    models.OneToOneField(
                        auto_created=True,
                        on_delete=django.db.models.deletion.CASCADE,
                        parent_link=True,
                        primary_key=True,
                        serialize=False,
                        to="core.centurionaudit",
                    ),
                ),
                (
                    "model",
                    models.ForeignKey(
                        help_text="Model this history belongs to",
                        on_delete=django.db.models.deletion.CASCADE,
                        related_name="audit_history",
                        to="itam.devicemodel",
                        verbose_name="Model",
                    ),
                ),
            ],
            options={
                "verbose_name": "Device Model History",
                "verbose_name_plural": "Device Model Histories",
                "db_table": "itam_devicemodel_audithistory",
                "managed": True,
            },
            bases=("core.centurionaudit",),
        ),
        migrations.CreateModel(
            name="DeviceModelCenturionModelNote",
            fields=[
                (
                    "centurionmodelnote_ptr",
                    models.OneToOneField(
                        auto_created=True,
                        on_delete=django.db.models.deletion.CASCADE,
                        parent_link=True,
                        primary_key=True,
                        serialize=False,
                        to="core.centurionmodelnote",
                    ),
                ),
                (
                    "model",
                    models.ForeignKey(
                        help_text="Model this note belongs to",
                        on_delete=django.db.models.deletion.CASCADE,
                        related_name="+",
                        to="itam.devicemodel",
                        verbose_name="Model",
                    ),
                ),
            ],
            options={
                "verbose_name": "Device Model Note",
                "verbose_name_plural": "Device Model Notes",
                "db_table": "itam_devicemodel_centurionmodelnote",
                "managed": True,
            },
            bases=("core.centurionmodelnote",),
        ),
        migrations.CreateModel(
            name="DeviceTypeAuditHistory",
            fields=[
                (
                    "centurionaudit_ptr",
                    models.OneToOneField(
                        auto_created=True,
                        on_delete=django.db.models.deletion.CASCADE,
                        parent_link=True,
                        primary_key=True,
                        serialize=False,
                        to="core.centurionaudit",
                    ),
                ),
                (
                    "model",
                    models.ForeignKey(
                        help_text="Model this history belongs to",
                        on_delete=django.db.models.deletion.CASCADE,
                        related_name="audit_history",
                        to="itam.devicetype",
                        verbose_name="Model",
                    ),
                ),
            ],
            options={
                "verbose_name": "Device Type History",
                "verbose_name_plural": "Device Type Histories",
                "db_table": "itam_devicetype_audithistory",
                "managed": True,
            },
            bases=("core.centurionaudit",),
        ),
        migrations.CreateModel(
            name="DeviceTypeCenturionModelNote",
            fields=[
                (
                    "centurionmodelnote_ptr",
                    models.OneToOneField(
                        auto_created=True,
                        on_delete=django.db.models.deletion.CASCADE,
                        parent_link=True,
                        primary_key=True,
                        serialize=False,
                        to="core.centurionmodelnote",
                    ),
                ),
                (
                    "model",
                    models.ForeignKey(
                        help_text="Model this note belongs to",
                        on_delete=django.db.models.deletion.CASCADE,
                        related_name="+",
                        to="itam.devicetype",
                        verbose_name="Model",
                    ),
                ),
            ],
            options={
                "verbose_name": "Device Type Note",
                "verbose_name_plural": "Device Type Notes",
                "db_table": "itam_devicetype_centurionmodelnote",
                "managed": True,
            },
            bases=("core.centurionmodelnote",),
        ),
        migrations.CreateModel(
            name="ITAMAssetBaseAuditHistory",
            fields=[
                (
                    "centurionaudit_ptr",
                    models.OneToOneField(
                        auto_created=True,
                        on_delete=django.db.models.deletion.CASCADE,
                        parent_link=True,
                        primary_key=True,
                        serialize=False,
                        to="core.centurionaudit",
                    ),
                ),
                (
                    "model",
                    models.ForeignKey(
                        help_text="Model this history belongs to",
                        on_delete=django.db.models.deletion.CASCADE,
                        related_name="+",
                        to="itam.itamassetbase",
                        verbose_name="Model",
                    ),
                ),
            ],
            options={
                "verbose_name": "IT Asset History",
                "verbose_name_plural": "IT Asset Histories",
                "db_table": "itam_itamassetbase_audithistory",
                "managed": True,
            },
            bases=("core.centurionaudit",),
        ),
        migrations.CreateModel(
            name="ITAMAssetBaseCenturionModelNote",
            fields=[
                (
                    "centurionmodelnote_ptr",
                    models.OneToOneField(
                        auto_created=True,
                        on_delete=django.db.models.deletion.CASCADE,
                        parent_link=True,
                        primary_key=True,
                        serialize=False,
                        to="core.centurionmodelnote",
                    ),
                ),
                (
                    "model",
                    models.ForeignKey(
                        help_text="Model this note belongs to",
                        on_delete=django.db.models.deletion.CASCADE,
                        related_name="+",
                        to="itam.itamassetbase",
                        verbose_name="Model",
                    ),
                ),
            ],
            options={
                "verbose_name": "IT Asset Note",
                "verbose_name_plural": "IT Asset Notes",
                "db_table": "itam_itamassetbase_centurionmodelnote",
                "managed": True,
            },
            bases=("core.centurionmodelnote",),
        ),
        migrations.CreateModel(
            name="OperatingSystemAuditHistory",
            fields=[
                (
                    "centurionaudit_ptr",
                    models.OneToOneField(
                        auto_created=True,
                        on_delete=django.db.models.deletion.CASCADE,
                        parent_link=True,
                        primary_key=True,
                        serialize=False,
                        to="core.centurionaudit",
                    ),
                ),
                (
                    "model",
                    models.ForeignKey(
                        help_text="Model this history belongs to",
                        on_delete=django.db.models.deletion.CASCADE,
                        related_name="audit_history",
                        to="itam.operatingsystem",
                        verbose_name="Model",
                    ),
                ),
            ],
            options={
                "verbose_name": "Operating System History",
                "verbose_name_plural": "Operating System Histories",
                "db_table": "itam_operatingsystem_audithistory",
                "managed": True,
            },
            bases=("core.centurionaudit",),
        ),
        migrations.CreateModel(
            name="OperatingSystemCenturionModelNote",
            fields=[
                (
                    "centurionmodelnote_ptr",
                    models.OneToOneField(
                        auto_created=True,
                        on_delete=django.db.models.deletion.CASCADE,
                        parent_link=True,
                        primary_key=True,
                        serialize=False,
                        to="core.centurionmodelnote",
                    ),
                ),
                (
                    "model",
                    models.ForeignKey(
                        help_text="Model this note belongs to",
                        on_delete=django.db.models.deletion.CASCADE,
                        related_name="+",
                        to="itam.operatingsystem",
                        verbose_name="Model",
                    ),
                ),
            ],
            options={
                "verbose_name": "Operating System Note",
                "verbose_name_plural": "Operating System Notes",
                "db_table": "itam_operatingsystem_centurionmodelnote",
                "managed": True,
            },
            bases=("core.centurionmodelnote",),
        ),
        migrations.CreateModel(
            name="OperatingSystemVersionAuditHistory",
            fields=[
                (
                    "centurionaudit_ptr",
                    models.OneToOneField(
                        auto_created=True,
                        on_delete=django.db.models.deletion.CASCADE,
                        parent_link=True,
                        primary_key=True,
                        serialize=False,
                        to="core.centurionaudit",
                    ),
                ),
                (
                    "model",
                    models.ForeignKey(
                        help_text="Model this history belongs to",
                        on_delete=django.db.models.deletion.CASCADE,
                        related_name="audit_history",
                        to="itam.operatingsystemversion",
                        verbose_name="Model",
                    ),
                ),
            ],
            options={
                "verbose_name": "Operating System Version History",
                "verbose_name_plural": "Operating System Version Histories",
                "db_table": "itam_operatingsystemversion_audithistory",
                "managed": True,
            },
            bases=("core.centurionaudit",),
        ),
        migrations.CreateModel(
            name="OperatingSystemVersionCenturionModelNote",
            fields=[
                (
                    "centurionmodelnote_ptr",
                    models.OneToOneField(
                        auto_created=True,
                        on_delete=django.db.models.deletion.CASCADE,
                        parent_link=True,
                        primary_key=True,
                        serialize=False,
                        to="core.centurionmodelnote",
                    ),
                ),
                (
                    "model",
                    models.ForeignKey(
                        help_text="Model this note belongs to",
                        on_delete=django.db.models.deletion.CASCADE,
                        related_name="+",
                        to="itam.operatingsystemversion",
                        verbose_name="Model",
                    ),
                ),
            ],
            options={
                "verbose_name": "Operating System Version Note",
                "verbose_name_plural": "Operating System Version Notes",
                "db_table": "itam_operatingsystemversion_centurionmodelnote",
                "managed": True,
            },
            bases=("core.centurionmodelnote",),
        ),
        migrations.CreateModel(
            name="SoftwareAuditHistory",
            fields=[
                (
                    "centurionaudit_ptr",
                    models.OneToOneField(
                        auto_created=True,
                        on_delete=django.db.models.deletion.CASCADE,
                        parent_link=True,
                        primary_key=True,
                        serialize=False,
                        to="core.centurionaudit",
                    ),
                ),
                (
                    "model",
                    models.ForeignKey(
                        help_text="Model this history belongs to",
                        on_delete=django.db.models.deletion.CASCADE,
                        related_name="audit_history",
                        to="itam.software",
                        verbose_name="Model",
                    ),
                ),
            ],
            options={
                "verbose_name": "Software History",
                "verbose_name_plural": "Software Histories",
                "db_table": "itam_software_audithistory",
                "managed": True,
            },
            bases=("core.centurionaudit",),
        ),
        migrations.CreateModel(
            name="SoftwareCategoryAuditHistory",
            fields=[
                (
                    "centurionaudit_ptr",
                    models.OneToOneField(
                        auto_created=True,
                        on_delete=django.db.models.deletion.CASCADE,
                        parent_link=True,
                        primary_key=True,
                        serialize=False,
                        to="core.centurionaudit",
                    ),
                ),
                (
                    "model",
                    models.ForeignKey(
                        help_text="Model this history belongs to",
                        on_delete=django.db.models.deletion.CASCADE,
                        related_name="audit_history",
                        to="itam.softwarecategory",
                        verbose_name="Model",
                    ),
                ),
            ],
            options={
                "verbose_name": "Software Category History",
                "verbose_name_plural": "Software Category Histories",
                "db_table": "itam_softwarecategory_audithistory",
                "managed": True,
            },
            bases=("core.centurionaudit",),
        ),
        migrations.CreateModel(
            name="SoftwareCategoryCenturionModelNote",
            fields=[
                (
                    "centurionmodelnote_ptr",
                    models.OneToOneField(
                        auto_created=True,
                        on_delete=django.db.models.deletion.CASCADE,
                        parent_link=True,
                        primary_key=True,
                        serialize=False,
                        to="core.centurionmodelnote",
                    ),
                ),
                (
                    "model",
                    models.ForeignKey(
                        help_text="Model this note belongs to",
                        on_delete=django.db.models.deletion.CASCADE,
                        related_name="+",
                        to="itam.softwarecategory",
                        verbose_name="Model",
                    ),
                ),
            ],
            options={
                "verbose_name": "Software Category Note",
                "verbose_name_plural": "Software Category Notes",
                "db_table": "itam_softwarecategory_centurionmodelnote",
                "managed": True,
            },
            bases=("core.centurionmodelnote",),
        ),
        migrations.CreateModel(
            name="SoftwareCenturionModelNote",
            fields=[
                (
                    "centurionmodelnote_ptr",
                    models.OneToOneField(
                        auto_created=True,
                        on_delete=django.db.models.deletion.CASCADE,
                        parent_link=True,
                        primary_key=True,
                        serialize=False,
                        to="core.centurionmodelnote",
                    ),
                ),
                (
                    "model",
                    models.ForeignKey(
                        help_text="Model this note belongs to",
                        on_delete=django.db.models.deletion.CASCADE,
                        related_name="+",
                        to="itam.software",
                        verbose_name="Model",
                    ),
                ),
            ],
            options={
                "verbose_name": "Software Note",
                "verbose_name_plural": "Software Notes",
                "db_table": "itam_software_centurionmodelnote",
                "managed": True,
            },
            bases=("core.centurionmodelnote",),
        ),
        migrations.CreateModel(
            name="SoftwareVersionAuditHistory",
            fields=[
                (
                    "centurionaudit_ptr",
                    models.OneToOneField(
                        auto_created=True,
                        on_delete=django.db.models.deletion.CASCADE,
                        parent_link=True,
                        primary_key=True,
                        serialize=False,
                        to="core.centurionaudit",
                    ),
                ),
                (
                    "model",
                    models.ForeignKey(
                        help_text="Model this history belongs to",
                        on_delete=django.db.models.deletion.CASCADE,
                        related_name="audit_history",
                        to="itam.softwareversion",
                        verbose_name="Model",
                    ),
                ),
            ],
            options={
                "verbose_name": "Software Version History",
                "verbose_name_plural": "Software Version Histories",
                "db_table": "itam_softwareversion_audithistory",
                "managed": True,
            },
            bases=("core.centurionaudit",),
        ),
        migrations.CreateModel(
            name="SoftwareVersionCenturionModelNote",
            fields=[
                (
                    "centurionmodelnote_ptr",
                    models.OneToOneField(
                        auto_created=True,
                        on_delete=django.db.models.deletion.CASCADE,
                        parent_link=True,
                        primary_key=True,
                        serialize=False,
                        to="core.centurionmodelnote",
                    ),
                ),
                (
                    "model",
                    models.ForeignKey(
                        help_text="Model this note belongs to",
                        on_delete=django.db.models.deletion.CASCADE,
                        related_name="+",
                        to="itam.softwareversion",
                        verbose_name="Model",
                    ),
                ),
            ],
            options={
                "verbose_name": "Software Version Note",
                "verbose_name_plural": "Software Version Notes",
                "db_table": "itam_softwareversion_centurionmodelnote",
                "managed": True,
            },
            bases=("core.centurionmodelnote",),
        ),
    ]
