# Generated by Django 5.2.9 on 2025-12-13 20:31

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('billing', '0015_planlimitusage'),
    ]

    operations = [
        migrations.RemoveIndex(
            model_name='payment',
            name='payment_account_status_created_idx',
        ),
        migrations.RemoveField(
            model_name='invoice',
            name='billing_email',
        ),
        migrations.RemoveField(
            model_name='invoice',
            name='billing_period_end',
        ),
        migrations.RemoveField(
            model_name='invoice',
            name='billing_period_start',
        ),
        migrations.RemoveField(
            model_name='payment',
            name='transaction_reference',
        ),
        migrations.AlterField(
            model_name='accountpaymentmethod',
            name='type',
            field=models.CharField(choices=[('stripe', 'Stripe (Credit/Debit Card)'), ('paypal', 'PayPal'), ('bank_transfer', 'Bank Transfer (Manual)'), ('local_wallet', 'Local Wallet (Manual)'), ('manual', 'Manual Payment')], db_index=True, max_length=50),
        ),
        migrations.AlterField(
            model_name='credittransaction',
            name='reference_id',
            field=models.CharField(blank=True, help_text='DEPRECATED: Use payment FK. Legacy reference (e.g., payment id, invoice id)', max_length=255),
        ),
        migrations.AlterField(
            model_name='paymentmethodconfig',
            name='payment_method',
            field=models.CharField(choices=[('stripe', 'Stripe (Credit/Debit Card)'), ('paypal', 'PayPal'), ('bank_transfer', 'Bank Transfer (Manual)'), ('local_wallet', 'Local Wallet (Manual)'), ('manual', 'Manual Payment')], max_length=50),
        ),
        migrations.AlterField(
            model_name='paymentmethodconfig',
            name='webhook_url',
            field=models.URLField(blank=True, help_text='Webhook URL for payment gateway callbacks'),
        ),
    ]
