# Generated by Django 4.2.28 on 2026-03-03 13:40

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


class Migration(migrations.Migration):
    dependencies = [
        ("users", "0005_add_role_template_rollback_point"),
    ]

    operations = [
        migrations.RemoveIndex(
            model_name="rolepermission",
            name="role_permis_role_056d99_idx",
        ),
        migrations.RemoveField(
            model_name="rolepermission",
            name="is_default",
        ),
        migrations.AddField(
            model_name="customuser",
            name="approval_reason",
            field=models.TextField(
                blank=True, help_text="Reason for approval", null=True
            ),
        ),
        migrations.AddField(
            model_name="customuser",
            name="approved_at",
            field=models.DateTimeField(blank=True, null=True),
        ),
        migrations.AddField(
            model_name="customuser",
            name="approved_by",
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.SET_NULL,
                related_name="approved_clients",
                to=settings.AUTH_USER_MODEL,
            ),
        ),
        migrations.AddField(
            model_name="customuser",
            name="rejected_at",
            field=models.DateTimeField(blank=True, null=True),
        ),
        migrations.AddField(
            model_name="customuser",
            name="rejected_by",
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.SET_NULL,
                related_name="rejected_clients",
                to=settings.AUTH_USER_MODEL,
            ),
        ),
        migrations.AddField(
            model_name="customuser",
            name="rejection_reason",
            field=models.TextField(
                blank=True, help_text="Reason for rejection", null=True
            ),
        ),
    ]
