# Generated by Django 6.0.3 on 2026-03-17 10:47

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


class Migration(migrations.Migration):

    dependencies = [
        ('deposits', '0001_initial'),
        ('referrals', '0001_initial'),
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.AddField(
            model_name='referralearning',
            name='deposit',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='referral_earnings', to='deposits.deposit'),
        ),
        migrations.AddField(
            model_name='referralearning',
            name='earning_type',
            field=models.CharField(choices=[('REFERRER_BONUS', 'Referrer Bonus'), ('REFERRED_USER_BONUS', 'Referred User Bonus'), ('TEAM_BONUS', 'Team Bonus')], default='REFERRER_BONUS', max_length=30),
        ),
        migrations.AddField(
            model_name='referralearning',
            name='level_achieved',
            field=models.PositiveIntegerField(blank=True, null=True),
        ),
        migrations.AddField(
            model_name='referralearning',
            name='percentage_applied',
            field=models.DecimalField(blank=True, decimal_places=2, max_digits=5, null=True),
        ),
        migrations.AlterField(
            model_name='referralearning',
            name='referred_user',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='referred_user_earnings', to=settings.AUTH_USER_MODEL),
        ),
    ]
