# Generated by Django 4.2.7 on 2026-01-11 19:22

from django.db import migrations, models


class Migration(migrations.Migration):
    dependencies = [
        ("subscriptions", "0010_remove_subscriptionplan_available_durations"),
    ]

    operations = [
        migrations.AddField(
            model_name="subscriptionplan",
            name="target_role",
            field=models.CharField(
                choices=[
                    ("all", "Для всех"),
                    ("mentor", "Для менторов"),
                    ("client", "Для студентов"),
                    ("parent", "Для родителей"),
                ],
                default="all",
                help_text="Роль пользователя, для которой предназначена эта подписка",
                max_length=20,
                verbose_name="Для кого предназначена подписка",
            ),
        ),
        migrations.AddIndex(
            model_name="subscription",
            index=models.Index(
                fields=["user", "end_date"], name="subscriptio_user_id_2616a7_idx"
            ),
        ),
        migrations.AddIndex(
            model_name="subscription",
            index=models.Index(
                fields=["plan", "status"], name="subscriptio_plan_id_fdd48e_idx"
            ),
        ),
        migrations.AddIndex(
            model_name="subscription",
            index=models.Index(
                fields=["start_date", "end_date"], name="subscriptio_start_d_41feea_idx"
            ),
        ),
        migrations.AddIndex(
            model_name="subscriptionplan",
            index=models.Index(
                fields=["is_active", "sort_order"],
                name="subscriptio_is_acti_07abd2_idx",
            ),
        ),
        migrations.AddIndex(
            model_name="subscriptionplan",
            index=models.Index(fields=["slug"], name="subscriptio_slug_c8f940_idx"),
        ),
        migrations.AddIndex(
            model_name="subscriptionplan",
            index=models.Index(
                fields=["subscription_type", "is_active"],
                name="subscriptio_subscri_cdaf9b_idx",
            ),
        ),
    ]
