# Generated by Django 6.1 on 2026-08-15 09:00

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


class Migration(migrations.Migration):

    dependencies = [
        ('courses', '0004_alter_headline_options_alter_order_options_and_more'),
    ]

    operations = [
        migrations.AlterField(
            model_name='video',
            name='headline',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='videos', to='courses.headline', verbose_name='سرفصل'),
        ),
        migrations.AddConstraint(
            model_name='video',
            constraint=models.UniqueConstraint(fields=('headline', 'order'), name='unique_video_number_per_headline'),
        ),
    ]
