# Generated by Django 5.2.12 on 2026-09-08 10:54

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('webhooks', '0003_shopifyrefundevent'),
    ]

    operations = [
        migrations.CreateModel(
            name='ShopifyFulfillmentEvent',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('topic', models.CharField(db_index=True, default='fulfillments/create', max_length=64)),
                ('webhook_id', models.CharField(db_index=True, max_length=128, unique=True)),
                ('shopify_order_id', models.CharField(blank=True, db_index=True, max_length=64)),
                ('digistore_order_id', models.CharField(blank=True, db_index=True, max_length=64)),
                ('tracking_number', models.CharField(blank=True, max_length=128)),
                ('parcel_service', models.CharField(blank=True, max_length=64)),
                ('tracking_url', models.TextField(blank=True, default='')),
                ('notify_via_email', models.BooleanField(default=False)),
                ('payload', models.JSONField()),
                ('processed', models.BooleanField(default=False)),
                ('error', models.TextField(blank=True, default='')),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
            ],
            options={
                'ordering': ['-created_at'],
            },
        ),
    ]
