# Generated by Django 5.2.9 on 2025-12-17 01:47

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ("release", "0002_initial"),
        ("repos", "0002_repositoryissue_repositorypullrequest"),
    ]

    operations = [
        migrations.CreateModel(
            name="PackageRepository",
            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=255, unique=True)),
                ("repository_url", models.URLField(blank=True, default="")),
                ("verify_availability", models.BooleanField(default=False)),
                ("extra_args", models.JSONField(blank=True, default=list)),
                ("token", models.CharField(blank=True, default="", max_length=255)),
                ("username", models.CharField(blank=True, default="", max_length=150)),
                ("password", models.CharField(blank=True, default="", max_length=150)),
                (
                    "packages",
                    models.ManyToManyField(
                        blank=True,
                        related_name="package_repositories",
                        to="release.package",
                    ),
                ),
            ],
            options={
                "verbose_name": "Package Repository",
                "verbose_name_plural": "Package Repositories",
                "ordering": ("name",),
            },
        ),
    ]
