# Generated by Django 5.0 on 2025-12-21 11:47

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('ai_features', '0004_alter_aiconfiguration_admin_notification_email_and_more'),
    ]

    operations = [
        migrations.CreateModel(
            name='CommunicationTemplate',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(help_text='Internal name for the template', max_length=200)),
                ('type', models.CharField(choices=[('email', 'Email'), ('sms', 'SMS'), ('whatsapp', 'WhatsApp')], default='email', max_length=20)),
                ('category', models.CharField(choices=[('promotional', 'Promotional'), ('transactional', 'Transactional'), ('newsletter', 'Newsletter'), ('notification', 'Notification'), ('other', 'Other')], default='other', max_length=20)),
                ('subject', models.CharField(blank=True, help_text='Subject line (for Email only)', max_length=255)),
                ('content', models.TextField(help_text='Message content. You can use {{ user.first_name }}, {{ user.last_name }} as placeholders.')),
                ('is_active', models.BooleanField(default=True)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
            ],
            options={
                'verbose_name': 'Communication Template',
                'verbose_name_plural': 'Communication Templates',
                'ordering': ['name'],
            },
        ),
    ]
