# Generated by Django 6.0.6 on 2026-06-17 14:18

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('main', '0017_alter_transaction_kind'),
    ]

    operations = [
        migrations.CreateModel(
            name='FeaturedVideo',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(default='Now Playing', max_length=255)),
                ('youtube_url', models.URLField(blank=True, help_text='Paste a YouTube link (watch, share, or embed). Leave blank if uploading a file.')),
                ('video_file', models.FileField(blank=True, help_text='Optional: upload a video (e.g. MP4) to play instead of a YouTube link.', null=True, upload_to='featured_videos/')),
                ('poster', models.FileField(blank=True, help_text='Optional poster image shown before the video plays.', null=True, upload_to='featured_posters/')),
                ('is_active', models.BooleanField(default=True)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
            ],
            options={
                'ordering': ['-updated_at'],
            },
        ),
    ]
