# Generated by Django 4.2 on 2026-04-12 17:16

from django.db import migrations, models


class Migration(migrations.Migration):
    dependencies = [
        ("admin_panel", "0003_chat_is_read"),
    ]

    operations = [
        migrations.CreateModel(
            name="ModalSetting",
            fields=[
                (
                    "id",
                    models.BigAutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                ("is_enabled", models.BooleanField(default=False)),
                (
                    "strategy",
                    models.CharField(
                        choices=[
                            ("WELCOME", "Welcome Modal"),
                            ("EXIT", "Exit Intent Modal"),
                            ("PUSH", "Push Notification Modal"),
                            ("WHATSAPP", "WhatsApp Modal"),
                        ],
                        default="WELCOME",
                        max_length=20,
                    ),
                ),
                (
                    "trigger_type",
                    models.CharField(
                        choices=[
                            ("page_load", "On Page Load"),
                            ("exit_intent", "On Exit Intent"),
                            ("delay", "After Delay"),
                        ],
                        default="page_load",
                        max_length=20,
                    ),
                ),
                (
                    "delay_seconds",
                    models.PositiveIntegerField(
                        default=5, help_text='Only used if trigger_type is "delay"'
                    ),
                ),
                ("show_once_per_session", models.BooleanField(default=True)),
                ("updated_at", models.DateTimeField(auto_now=True)),
            ],
        ),
    ]
