# Generated by Django 5.2.8 on 2025-11-20 23:27

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('billing', '0001_initial'),
        ('igny8_core_auth', '0001_initial'),
    ]

    operations = [
        migrations.AddField(
            model_name='credittransaction',
            name='account',
            field=models.ForeignKey(db_column='tenant_id', on_delete=django.db.models.deletion.CASCADE, related_name='%(class)s_set', to='igny8_core_auth.account'),
        ),
        migrations.AddField(
            model_name='creditusagelog',
            name='account',
            field=models.ForeignKey(db_column='tenant_id', on_delete=django.db.models.deletion.CASCADE, related_name='%(class)s_set', to='igny8_core_auth.account'),
        ),
        migrations.AddIndex(
            model_name='credittransaction',
            index=models.Index(fields=['account', 'transaction_type'], name='igny8_credi_tenant__c4281c_idx'),
        ),
        migrations.AddIndex(
            model_name='credittransaction',
            index=models.Index(fields=['account', 'created_at'], name='igny8_credi_tenant__69abd3_idx'),
        ),
        migrations.AddIndex(
            model_name='creditusagelog',
            index=models.Index(fields=['account', 'operation_type'], name='igny8_credi_tenant__3545ed_idx'),
        ),
        migrations.AddIndex(
            model_name='creditusagelog',
            index=models.Index(fields=['account', 'created_at'], name='igny8_credi_tenant__4aee99_idx'),
        ),
        migrations.AddIndex(
            model_name='creditusagelog',
            index=models.Index(fields=['account', 'operation_type', 'created_at'], name='igny8_credi_tenant__a00d57_idx'),
        ),
    ]
