# Generated by Django 5.1.5 on 2025-04-29 08:12

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('api', '0013_loanoriginationdocuments_passport_photo_and_more'),
    ]

    operations = [
        migrations.CreateModel(
            name='Document',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('file', models.FileField(upload_to='documents/')),
                ('uploaded_at', models.DateTimeField(auto_now_add=True)),
            ],
        ),
        migrations.RemoveField(
            model_name='loanoriginationdocuments',
            name='bank_statements',
        ),
        migrations.RemoveField(
            model_name='loanoriginationdocuments',
            name='cash_flow_analysis',
        ),
        migrations.RemoveField(
            model_name='loanoriginationdocuments',
            name='mpesa_statements',
        ),
        migrations.AddField(
            model_name='loanoriginationdocuments',
            name='bank_statements',
            field=models.ManyToManyField(blank=True, related_name='bank_statements', to='api.document'),
        ),
        migrations.AddField(
            model_name='loanoriginationdocuments',
            name='cash_flow_analysis',
            field=models.ManyToManyField(blank=True, related_name='cash_flow_analysis', to='api.document'),
        ),
        migrations.AddField(
            model_name='loanoriginationdocuments',
            name='mpesa_statements',
            field=models.ManyToManyField(blank=True, related_name='mpesa_statements', to='api.document'),
        ),
    ]
