# Generated by Django 5.0.9 on 2024-11-24 05:32

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


class Migration(migrations.Migration):

    dependencies = [
        ('links', '0023_remove_iptvchannel_user'),
    ]

    operations = [
        migrations.CreateModel(
            name='IPTVCollection',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=200)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
            ],
            options={
                'ordering': ['-created_at'],
            },
        ),
        migrations.AlterModelOptions(
            name='iptvchannel',
            options={'ordering': ['title']},
        ),
        migrations.RemoveField(
            model_name='iptvchannel',
            name='description',
        ),
        migrations.AlterField(
            model_name='iptvchannel',
            name='url',
            field=models.URLField(),
        ),
        migrations.AddField(
            model_name='iptvchannel',
            name='collection',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='channels', to='links.iptvcollection'),
        ),
    ]
