# Generated by Django 5.0.13 on 2025-03-20 19:54

import django.db.models.deletion
from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ("authentik_events", "0008_event_authentik_e_expires_8c73a8_idx_and_more"),
    ]

    operations = [
        migrations.RenameField(
            model_name="notificationtransport",
            old_name="webhook_mapping",
            new_name="webhook_mapping_body",
        ),
        migrations.AlterField(
            model_name="notificationtransport",
            name="webhook_mapping_body",
            field=models.ForeignKey(
                default=None,
                help_text="Customize the body of the request. Mapping should return data that is JSON-serializable.",
                null=True,
                on_delete=django.db.models.deletion.SET_DEFAULT,
                related_name="+",
                to="authentik_events.notificationwebhookmapping",
            ),
        ),
        migrations.AddField(
            model_name="notificationtransport",
            name="webhook_mapping_headers",
            field=models.ForeignKey(
                default=None,
                help_text="Configure additional headers to be sent. Mapping should return a dictionary of key-value pairs",
                null=True,
                on_delete=django.db.models.deletion.SET_DEFAULT,
                related_name="+",
                to="authentik_events.notificationwebhookmapping",
            ),
        ),
    ]
