# Generated by Django 5.2.8 on 2025-05-08 00:00
from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ("nodes", "0002_initial"),
    ]

    operations = [
        migrations.CreateModel(
            name="Platform",
            fields=[
                (
                    "id",
                    models.BigAutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                ("is_seed_data", models.BooleanField(default=False, editable=False)),
                ("is_user_data", models.BooleanField(default=False, editable=False)),
                ("is_deleted", models.BooleanField(default=False, editable=False)),
                ("name", models.CharField(max_length=100, unique=True)),
                ("hardware", models.CharField(max_length=100)),
                ("architecture", models.CharField(blank=True, max_length=50)),
                ("os_name", models.CharField(max_length=100)),
                ("os_version", models.CharField(max_length=50)),
            ],
            options={
                "ordering": ["name"],
                "verbose_name": "Platform",
                "verbose_name_plural": "Platforms",
            },
        ),
        migrations.AddConstraint(
            model_name="platform",
            constraint=models.UniqueConstraint(
                fields=["hardware", "architecture", "os_name", "os_version"],
                name="nodes_platform_hardware_os_unique",
            ),
        ),
    ]
