# Generated by Django 3.2.18 on 2023-05-16 13:13

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


class Migration(migrations.Migration):

    dependencies = [
        ('contribution', '0003_alter_premium_options'),
        ('payment', '0003_auto_20220401_1149'),
    ]

    operations = [
        migrations.RenameField(
            model_name='payment',
            old_name='SpReconcReqId',
            new_name='reconc_req_id',
        ),
        migrations.RenameField(
            model_name='payment',
            old_name='ReconciliationDate',
            new_name='reconciliation_date',
        ),
        migrations.AddField(
            model_name='paymentdetail',
            name='payment',
            field=models.ForeignKey(db_column='PaymentID', on_delete=django.db.models.deletion.DO_NOTHING, related_name='payment_details', to='payment.payment'),
        ),
        migrations.AddField(
            model_name='paymentdetail',
            name='premium',
            field=models.ForeignKey(blank=True, db_column='PremiumID', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='payment_details', to='contribution.premium'),
        ),
        migrations.AlterField(
            model_name='payment',
            name='reconc_req_id',
            field=models.CharField(blank=True, db_column='SpReconcReqId', max_length=30, null=True),
        ),
        migrations.AlterField(
            model_name='payment',
            name='reconciliation_date',
            field=models.DateTimeField(blank=True, db_column='ReconciliationDate', null=True),
        ),
        migrations.AlterField(
            model_name='payment',
            name='status',
            field=models.IntegerField(blank=True, db_column='PaymentStatus', null=True),
        ),
        migrations.AlterField(
            model_name='payment',
            name='type_of_payment',
            field=models.CharField(blank=True, db_column='TypeOfPayment', max_length=50, null=True),
        ),
    ]
