# Generated by Django 5.2.4 on 2025-09-28 08:22

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('recharge', '0015_alter_rechargetransaction_paid_via_gateway'),
    ]

    operations = [
        migrations.AlterField(
            model_name='rechargetransaction',
            name='paid_via_gateway',
            field=models.DecimalField(decimal_places=2, default=0, max_digits=10),
        ),
        migrations.CreateModel(
            name='PlanCache',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('provider_source', models.CharField(db_index=True, max_length=50)),
                ('operator_code', models.CharField(db_index=True, max_length=20)),
                ('circle_code', models.CharField(db_index=True, max_length=20)),
                ('status', models.CharField(blank=True, max_length=20, null=True)),
                ('plans', models.JSONField(blank=True, default=list)),
                ('raw_payload', models.JSONField(blank=True, default=dict)),
                ('fetched_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
            ],
            options={
                'indexes': [models.Index(fields=['provider_source', 'operator_code', 'circle_code'], name='recharge_pl_provide_401add_idx')],
                'unique_together': {('provider_source', 'operator_code', 'circle_code')},
            },
        ),
    ]
