# Generated by Django 5.2.7 on 2026-07-03 19:35

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('core', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='WebhookEvent',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('provider', models.CharField(default='generic', max_length=60)),
                ('event_type', models.CharField(blank=True, max_length=120)),
                ('external_id', models.CharField(blank=True, max_length=160)),
                ('delivery_id', models.CharField(blank=True, max_length=160)),
                ('source_ip', models.GenericIPAddressField(blank=True, null=True)),
                ('content_type', models.CharField(blank=True, max_length=180)),
                ('headers', models.JSONField(blank=True, default=dict)),
                ('query_params', models.JSONField(blank=True, default=dict)),
                ('payload', models.JSONField(blank=True, default=dict)),
                ('raw_body', models.TextField(blank=True)),
                ('processed', models.BooleanField(default=False)),
                ('notes', models.TextField(blank=True)),
                ('received_at', models.DateTimeField(auto_now_add=True)),
            ],
            options={
                'verbose_name': 'webhook event',
                'verbose_name_plural': 'webhook events',
                'ordering': ['-received_at'],
                'indexes': [models.Index(fields=['provider', 'event_type'], name='core_webhoo_provide_870e6a_idx'), models.Index(fields=['received_at'], name='core_webhoo_receive_97109f_idx')],
            },
        ),
    ]
