# Generated by Django 4.2 on 2026-07-24 00:13

from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('core', '0002_application'),
    ]

    operations = [
        migrations.CreateModel(
            name='PaymentItem',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=200)),
                ('description', models.TextField(blank=True)),
                ('amount', models.DecimalField(decimal_places=2, default=0, max_digits=10)),
                ('active', models.BooleanField(default=True)),
                ('created_on', models.DateTimeField(auto_now_add=True)),
                ('updated_on', models.DateTimeField(auto_now=True)),
            ],
            options={
                'ordering': ['title'],
            },
        ),
        migrations.CreateModel(
            name='Payment',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('txn_ref', models.CharField(db_index=True, max_length=40, unique=True)),
                ('p_item', models.CharField(max_length=200)),
                ('p_description', models.CharField(blank=True, max_length=2000, null=True)),
                ('amount', models.DecimalField(decimal_places=2, default=0, max_digits=10)),
                ('college_amount', models.DecimalField(decimal_places=2, default=0, max_digits=10)),
                ('provider_amount', models.DecimalField(decimal_places=2, default=0, max_digits=10)),
                ('p_state', models.CharField(default='pending', max_length=40)),
                ('r_amount', models.DecimalField(decimal_places=2, default=0, max_digits=10)),
                ('r_code', models.CharField(blank=True, max_length=5, null=True)),
                ('r_card', models.CharField(blank=True, max_length=40, null=True)),
                ('r_desc', models.CharField(blank=True, max_length=60, null=True)),
                ('rrr', models.CharField(blank=True, db_index=True, max_length=60, null=True)),
                ('transaction_id', models.CharField(blank=True, max_length=60, null=True)),
                ('admin_approve', models.BooleanField(default=False)),
                ('paid_on', models.DateTimeField(blank=True, null=True)),
                ('created_on', models.DateTimeField(auto_now_add=True, db_index=True)),
                ('updated_on', models.DateTimeField(auto_now=True)),
                ('ccomment', models.TextField(blank=True, null=True)),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'ordering': ['-created_on'],
            },
        ),
    ]
