# Generated by Django 5.2.4 on 2025-10-14 16:01

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('users', '0021_update_module_field_length'),
    ]

    operations = [
        # Remove index if it exists
        migrations.RunSQL(
            sql="DROP INDEX IF EXISTS role_permis_role_056d99_idx ON users_rolepermission;",
            reverse_sql=migrations.RunSQL.noop,
        ),
        # Remove field if it exists
        migrations.RunSQL(
            sql="ALTER TABLE users_rolepermission DROP COLUMN IF EXISTS is_default;",
            reverse_sql=migrations.RunSQL.noop,
        ),
        migrations.AlterField(
            model_name='defaultrolepermission',
            name='action',
            field=models.CharField(choices=[('access', 'Access/View'), ('create', 'Create/Add'), ('edit', 'Edit/Modify'), ('delete', 'Delete/Remove'), ('approve', 'Approve'), ('reject', 'Reject'), ('verify', 'Verify'), ('validate', 'Validate'), ('export', 'Export'), ('import', 'Import'), ('download', 'Download'), ('upload', 'Upload'), ('print', 'Print'), ('process', 'Process'), ('calculate', 'Calculate'), ('generate', 'Generate'), ('record', 'Record'), ('reconcile', 'Reconcile'), ('assign', 'Assign'), ('reassign', 'Reassign'), ('manage', 'Manage'), ('configure', 'Configure'), ('send', 'Send'), ('email', 'Email'), ('notify', 'Notify'), ('share', 'Share'), ('activate', 'Activate'), ('deactivate', 'Deactivate'), ('suspend', 'Suspend'), ('close', 'Close'), ('monitor', 'Monitor'), ('audit', 'Audit'), ('backup', 'Backup'), ('restore', 'Restore')], max_length=30),
        ),
        migrations.AlterField(
            model_name='rolepermission',
            name='action',
            field=models.CharField(choices=[('access', 'Access/View'), ('create', 'Create/Add'), ('edit', 'Edit/Modify'), ('delete', 'Delete/Remove'), ('approve', 'Approve'), ('reject', 'Reject'), ('verify', 'Verify'), ('validate', 'Validate'), ('export', 'Export'), ('import', 'Import'), ('download', 'Download'), ('upload', 'Upload'), ('print', 'Print'), ('process', 'Process'), ('calculate', 'Calculate'), ('generate', 'Generate'), ('record', 'Record'), ('reconcile', 'Reconcile'), ('assign', 'Assign'), ('reassign', 'Reassign'), ('manage', 'Manage'), ('configure', 'Configure'), ('send', 'Send'), ('email', 'Email'), ('notify', 'Notify'), ('share', 'Share'), ('activate', 'Activate'), ('deactivate', 'Deactivate'), ('suspend', 'Suspend'), ('close', 'Close'), ('monitor', 'Monitor'), ('audit', 'Audit'), ('backup', 'Backup'), ('restore', 'Restore')], max_length=30),
        ),
        migrations.AlterField(
            model_name='userpermission',
            name='action',
            field=models.CharField(choices=[('access', 'Access/View'), ('create', 'Create/Add'), ('edit', 'Edit/Modify'), ('delete', 'Delete/Remove'), ('approve', 'Approve'), ('reject', 'Reject'), ('verify', 'Verify'), ('validate', 'Validate'), ('export', 'Export'), ('import', 'Import'), ('download', 'Download'), ('upload', 'Upload'), ('print', 'Print'), ('process', 'Process'), ('calculate', 'Calculate'), ('generate', 'Generate'), ('record', 'Record'), ('reconcile', 'Reconcile'), ('assign', 'Assign'), ('reassign', 'Reassign'), ('manage', 'Manage'), ('configure', 'Configure'), ('send', 'Send'), ('email', 'Email'), ('notify', 'Notify'), ('share', 'Share'), ('activate', 'Activate'), ('deactivate', 'Deactivate'), ('suspend', 'Suspend'), ('close', 'Close'), ('monitor', 'Monitor'), ('audit', 'Audit'), ('backup', 'Backup'), ('restore', 'Restore')], max_length=30),
        ),
    ]
