# Generated by Django 5.2.4 on 2025-10-14 15:08

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('users', '0018_add_unassigned_date_field'),
    ]

    operations = [
        migrations.AlterField(
            model_name='customuser',
            name='role',
            field=models.CharField(choices=[('admin', 'Admin'), ('team_leader', 'Team Leader'), ('loan_officer', 'Loan Officer'), ('secretary', 'Secretary'), ('auditor', 'Auditor'), ('borrower', 'Borrower')], default='borrower', max_length=20),
        ),
        migrations.AlterField(
            model_name='defaultrolepermission',
            name='action',
            field=models.CharField(choices=[('view', 'View'), ('create', 'Create'), ('edit', 'Edit'), ('delete', 'Delete'), ('restore', 'Restore'), ('permanently_delete', 'Permanently Delete'), ('approve', 'Approve'), ('reject', 'Reject'), ('suspend', 'Suspend'), ('activate', 'Activate'), ('verify', 'Verify'), ('validate', 'Validate'), ('assign', 'Assign'), ('reassign', 'Reassign'), ('manage', 'Manage'), ('supervise', 'Supervise'), ('export', 'Export'), ('import', 'Import'), ('download', 'Download'), ('upload', 'Upload'), ('generate', 'Generate'), ('print', 'Print'), ('share', 'Share'), ('copy', 'Copy'), ('duplicate', 'Duplicate'), ('process_payment', 'Process Payment'), ('record_repayment', 'Record Repayment'), ('refund', 'Refund'), ('adjust', 'Adjust'), ('reconcile', 'Reconcile'), ('send_notification', 'Send Notification'), ('send_email', 'Send Email'), ('send_sms', 'Send SMS'), ('communicate', 'Communicate'), ('configure', 'Configure'), ('maintain', 'Maintain'), ('backup', 'Backup'), ('restore', 'Restore'), ('audit', 'Audit'), ('monitor', 'Monitor'), ('api_access', 'API Access'), ('webhook_manage', 'Manage Webhooks'), ('integration_manage', 'Manage Integrations')], max_length=30),
        ),
        migrations.AlterField(
            model_name='defaultrolepermission',
            name='module',
            field=models.CharField(choices=[('dashboard', 'Dashboard'), ('users', 'User Management'), ('clients', 'Client Management'), ('loans', 'Loan Management'), ('applications', 'Loan Applications'), ('repayments', 'Repayments'), ('rollovers', 'Rollover Management'), ('reports', 'Reports & Analytics'), ('reports_loans_due', 'Loans Due Reports'), ('reports_delinquent', 'Delinquent Loans Reports'), ('reports_arrears', 'Loans in Arrears Reports'), ('reports_processing_fees', 'Processing Fees Reports'), ('reports_interest_income', 'Interest Income Reports'), ('reports_registration_fees', 'Registration Fees Reports'), ('reports_customer_requests', 'Customer Requests Reports'), ('reports_portfolio', 'Portfolio Reports'), ('reports_analytics', 'Analytics Dashboard'), ('documents', 'Document Management'), ('receipts', 'Receipt Management'), ('statements', 'Statement Generation'), ('media', 'Media Management'), ('payments', 'Payment Management'), ('mpesa', 'M-Pesa Integration'), ('transactions', 'Transaction Management'), ('portfolio', 'Portfolio Management'), ('assignments', 'Client Assignments'), ('branches', 'Branch Management'), ('settings', 'System Settings'), ('notifications', 'Notifications'), ('audit', 'Audit Logs'), ('kyc', 'KYC Management'), ('communications', 'Communications'), ('backup', 'Backup & Restore'), ('system', 'System Administration'), ('maintenance', 'System Maintenance'), ('api', 'API Management'), ('integrations', 'External Integrations')], max_length=30),
        ),
        migrations.AlterField(
            model_name='rolepermission',
            name='action',
            field=models.CharField(choices=[('view', 'View'), ('create', 'Create'), ('edit', 'Edit'), ('delete', 'Delete'), ('restore', 'Restore'), ('permanently_delete', 'Permanently Delete'), ('approve', 'Approve'), ('reject', 'Reject'), ('suspend', 'Suspend'), ('activate', 'Activate'), ('verify', 'Verify'), ('validate', 'Validate'), ('assign', 'Assign'), ('reassign', 'Reassign'), ('manage', 'Manage'), ('supervise', 'Supervise'), ('export', 'Export'), ('import', 'Import'), ('download', 'Download'), ('upload', 'Upload'), ('generate', 'Generate'), ('print', 'Print'), ('share', 'Share'), ('copy', 'Copy'), ('duplicate', 'Duplicate'), ('process_payment', 'Process Payment'), ('record_repayment', 'Record Repayment'), ('refund', 'Refund'), ('adjust', 'Adjust'), ('reconcile', 'Reconcile'), ('send_notification', 'Send Notification'), ('send_email', 'Send Email'), ('send_sms', 'Send SMS'), ('communicate', 'Communicate'), ('configure', 'Configure'), ('maintain', 'Maintain'), ('backup', 'Backup'), ('restore', 'Restore'), ('audit', 'Audit'), ('monitor', 'Monitor'), ('api_access', 'API Access'), ('webhook_manage', 'Manage Webhooks'), ('integration_manage', 'Manage Integrations')], max_length=30),
        ),
        migrations.AlterField(
            model_name='rolepermission',
            name='module',
            field=models.CharField(choices=[('dashboard', 'Dashboard'), ('users', 'User Management'), ('clients', 'Client Management'), ('loans', 'Loan Management'), ('applications', 'Loan Applications'), ('repayments', 'Repayments'), ('rollovers', 'Rollover Management'), ('reports', 'Reports & Analytics'), ('reports_loans_due', 'Loans Due Reports'), ('reports_delinquent', 'Delinquent Loans Reports'), ('reports_arrears', 'Loans in Arrears Reports'), ('reports_processing_fees', 'Processing Fees Reports'), ('reports_interest_income', 'Interest Income Reports'), ('reports_registration_fees', 'Registration Fees Reports'), ('reports_customer_requests', 'Customer Requests Reports'), ('reports_portfolio', 'Portfolio Reports'), ('reports_analytics', 'Analytics Dashboard'), ('documents', 'Document Management'), ('receipts', 'Receipt Management'), ('statements', 'Statement Generation'), ('media', 'Media Management'), ('payments', 'Payment Management'), ('mpesa', 'M-Pesa Integration'), ('transactions', 'Transaction Management'), ('portfolio', 'Portfolio Management'), ('assignments', 'Client Assignments'), ('branches', 'Branch Management'), ('settings', 'System Settings'), ('notifications', 'Notifications'), ('audit', 'Audit Logs'), ('kyc', 'KYC Management'), ('communications', 'Communications'), ('backup', 'Backup & Restore'), ('system', 'System Administration'), ('maintenance', 'System Maintenance'), ('api', 'API Management'), ('integrations', 'External Integrations')], max_length=30),
        ),
        migrations.AlterField(
            model_name='userpermission',
            name='action',
            field=models.CharField(choices=[('view', 'View'), ('create', 'Create'), ('edit', 'Edit'), ('delete', 'Delete'), ('restore', 'Restore'), ('permanently_delete', 'Permanently Delete'), ('approve', 'Approve'), ('reject', 'Reject'), ('suspend', 'Suspend'), ('activate', 'Activate'), ('verify', 'Verify'), ('validate', 'Validate'), ('assign', 'Assign'), ('reassign', 'Reassign'), ('manage', 'Manage'), ('supervise', 'Supervise'), ('export', 'Export'), ('import', 'Import'), ('download', 'Download'), ('upload', 'Upload'), ('generate', 'Generate'), ('print', 'Print'), ('share', 'Share'), ('copy', 'Copy'), ('duplicate', 'Duplicate'), ('process_payment', 'Process Payment'), ('record_repayment', 'Record Repayment'), ('refund', 'Refund'), ('adjust', 'Adjust'), ('reconcile', 'Reconcile'), ('send_notification', 'Send Notification'), ('send_email', 'Send Email'), ('send_sms', 'Send SMS'), ('communicate', 'Communicate'), ('configure', 'Configure'), ('maintain', 'Maintain'), ('backup', 'Backup'), ('restore', 'Restore'), ('audit', 'Audit'), ('monitor', 'Monitor'), ('api_access', 'API Access'), ('webhook_manage', 'Manage Webhooks'), ('integration_manage', 'Manage Integrations')], max_length=30),
        ),
        migrations.AlterField(
            model_name='userpermission',
            name='module',
            field=models.CharField(choices=[('dashboard', 'Dashboard'), ('users', 'User Management'), ('clients', 'Client Management'), ('loans', 'Loan Management'), ('applications', 'Loan Applications'), ('repayments', 'Repayments'), ('rollovers', 'Rollover Management'), ('reports', 'Reports & Analytics'), ('reports_loans_due', 'Loans Due Reports'), ('reports_delinquent', 'Delinquent Loans Reports'), ('reports_arrears', 'Loans in Arrears Reports'), ('reports_processing_fees', 'Processing Fees Reports'), ('reports_interest_income', 'Interest Income Reports'), ('reports_registration_fees', 'Registration Fees Reports'), ('reports_customer_requests', 'Customer Requests Reports'), ('reports_portfolio', 'Portfolio Reports'), ('reports_analytics', 'Analytics Dashboard'), ('documents', 'Document Management'), ('receipts', 'Receipt Management'), ('statements', 'Statement Generation'), ('media', 'Media Management'), ('payments', 'Payment Management'), ('mpesa', 'M-Pesa Integration'), ('transactions', 'Transaction Management'), ('portfolio', 'Portfolio Management'), ('assignments', 'Client Assignments'), ('branches', 'Branch Management'), ('settings', 'System Settings'), ('notifications', 'Notifications'), ('audit', 'Audit Logs'), ('kyc', 'KYC Management'), ('communications', 'Communications'), ('backup', 'Backup & Restore'), ('system', 'System Administration'), ('maintenance', 'System Maintenance'), ('api', 'API Management'), ('integrations', 'External Integrations')], max_length=30),
        ),
        migrations.AddIndex(
            model_name='rolepermission',
            index=models.Index(fields=['role'], name='role_permis_role_83b50a_idx'),
        ),
    ]
