# Generated by Django 5.2.9 on 2025-12-17 18:58

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ("video", "0001_initial"),
    ]

    operations = [
        migrations.CreateModel(
            name="YoutubeChannel",
            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)),
                ("title", models.CharField(max_length=255)),
                (
                    "channel_id",
                    models.CharField(
                        help_text="YouTube channel identifier (for example UC1234abcd).",
                        max_length=64,
                        unique=True,
                    ),
                ),
                (
                    "handle",
                    models.CharField(
                        blank=True,
                        help_text="Optional YouTube handle (for example @arthexis).",
                        max_length=64,
                    ),
                ),
                ("description", models.TextField(blank=True)),
            ],
            options={
                "verbose_name": "YouTube Channel",
                "verbose_name_plural": "YouTube Channels",
                "ordering": ["title"],
                "constraints": [
                    models.UniqueConstraint(
                        condition=models.Q(("handle", ""), _negated=True),
                        fields=("handle",),
                        name="youtubechannel_handle_unique",
                    )
                ],
            },
        ),
    ]
