import uuid
from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('notifications', '0006_notificationcampaign_banner_image'),
    ]

    operations = [
        migrations.CreateModel(
            name='EmailConfig',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('created_at', models.DateTimeField(auto_now_add=True, db_index=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
                ('is_active', models.BooleanField(db_index=True, default=True)),
                ('name', models.CharField(max_length=120)),
                ('provider', models.CharField(choices=[('smtp', 'SMTP')], default='smtp', max_length=30)),
                ('host', models.CharField(max_length=255)),
                ('port', models.PositiveIntegerField(default=587)),
                ('username', models.CharField(blank=True, max_length=255)),
                ('password', models.CharField(blank=True, max_length=255)),
                ('from_email', models.EmailField(max_length=254)),
                ('use_tls', models.BooleanField(default=True)),
                ('use_ssl', models.BooleanField(default=False)),
                ('is_primary', models.BooleanField(db_index=True, default=False)),
                ('is_enabled', models.BooleanField(db_index=True, default=True)),
                ('allow_notifications', models.BooleanField(default=True)),
                ('allow_otps', models.BooleanField(default=True)),
            ],
            options={
                'indexes': [
                    models.Index(fields=['is_primary', 'is_enabled'], name='notificatio_is_prim_7dd464_idx'),
                    models.Index(fields=['provider'], name='notificatio_provide_364dfd_idx'),
                ],
            },
        ),
    ]
