# Generated by Django 5.0.14 on 2025-11-02 15:04

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


class Migration(migrations.Migration):

    dependencies = [
        ("django_affiliate_system", "0005_make_affiliate_required"),
    ]

    operations = [
        migrations.RemoveIndex(
            model_name="referralaction",
            name="affiliates__tenant__cb1abf_idx",
        ),
        migrations.RemoveField(
            model_name="referralaction",
            name="tenant",
        ),
        migrations.AlterField(
            model_name="referralaction",
            name="referral_link",
            field=models.ForeignKey(
                blank=True,
                help_text="Optional: Specific campaign link used",
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                related_name="actions",
                to="django_affiliate_system.referrallink",
            ),
        ),
        migrations.AddIndex(
            model_name="referralaction",
            index=models.Index(
                fields=["affiliate", "action_type"], name="affiliates__affilia_9c7e35_idx"
            ),
        ),
        migrations.AddIndex(
            model_name="referralaction",
            index=models.Index(
                fields=["affiliate", "is_converted"], name="affiliates__affilia_8b8eb6_idx"
            ),
        ),
        migrations.AddIndex(
            model_name="referralaction",
            index=models.Index(fields=["is_converted"], name="affiliates__is_conv_71576e_idx"),
        ),
    ]
