# Generated by Django 6.0.4 on 2026-06-06 05:56

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


class Migration(migrations.Migration):

    dependencies = [
        ('finance', '0001_initial'),
    ]

    operations = [
        migrations.AddField(
            model_name='budgetitem',
            name='parent',
            field=models.ForeignKey(blank=True, help_text='Optional parent item — nests this line under another (code becomes <parent>.<n>).', null=True, on_delete=django.db.models.deletion.CASCADE, related_name='children', to='finance.budgetitem'),
        ),
        migrations.AddIndex(
            model_name='budgetitem',
            index=models.Index(fields=['parent'], name='budget_item_parent__999685_idx'),
        ),
    ]
