# Generated by GitHub Copilot on 2026-01-23

# Django
from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ("indy_hub", "0071_squashed_job_notification_custom_hours"),
    ]

    operations = [
        migrations.CreateModel(
            name="NotificationWebhook",
            fields=[
                (
                    "id",
                    models.BigAutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                ("name", models.CharField(blank=True, max_length=120)),
                (
                    "webhook_type",
                    models.CharField(
                        choices=[
                            ("material_exchange", "Material Exchange"),
                            ("blueprint_sharing", "Blueprint sharing"),
                        ],
                        max_length=32,
                    ),
                ),
                ("corporation_ids", models.JSONField(blank=True, default=list)),
                ("corporation_names", models.JSONField(blank=True, default=list)),
                ("webhook_url", models.URLField(max_length=500)),
                ("is_active", models.BooleanField(default=True)),
                ("created_at", models.DateTimeField(auto_now_add=True)),
                ("updated_at", models.DateTimeField(auto_now=True)),
            ],
            options={
                "verbose_name": "Notification Webhook",
                "verbose_name_plural": "Notification Webhooks",
                "default_permissions": (),
            },
        ),
    ]
