# Generated by Django 5.1.9 on 2025-06-11 08:24

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


class Migration(migrations.Migration):

    dependencies = [
        ("access", "0016_remove_tenant_slug_alter_tenant_manager_and_more"),
        ("itam", "0016_alter_devicemodel_manufacturer"),
    ]

    operations = [
        migrations.RemoveField(
            model_name="deviceoperatingsystem",
            name="is_global",
        ),
        migrations.RemoveField(
            model_name="deviceoperatingsystem",
            name="model_notes",
        ),
        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",
            ),
        ),
    ]
