# Generated by Django 5.2.4 on 2025-08-01 00:56

import django.core.validators
from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('loans', '0002_initial'),
    ]

    operations = [
        migrations.AddField(
            model_name='loanproduct',
            name='available_repayment_methods',
            field=models.JSONField(default=list, help_text='Available repayment methods for this product'),
        ),
        migrations.AddField(
            model_name='loanproduct',
            name='duration_months',
            field=models.PositiveIntegerField(default=1, help_text='Duration in months'),
        ),
        migrations.AlterField(
            model_name='loanproduct',
            name='interest_rate',
            field=models.DecimalField(decimal_places=2, help_text='Monthly interest rate in percentage', max_digits=5, validators=[django.core.validators.MinValueValidator(0), django.core.validators.MaxValueValidator(100)]),
        ),
        migrations.AlterField(
            model_name='loanproduct',
            name='product_type',
            field=models.CharField(choices=[('boost', 'Boost'), ('mwamba', 'Mwamba'), ('imara', 'Imara'), ('personal', 'Personal Loan'), ('business', 'Business Advance'), ('salary', 'Salary Loan'), ('emergency', 'Emergency Loan'), ('asset', 'Asset Finance')], max_length=20),
        ),
    ]
