# Generated by Django 5.2.12 on 2026-04-13 12:05

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('webhooks', '0002_delete_webhookevent'),
    ]

    operations = [
        migrations.CreateModel(
            name='ShopifyRefundEvent',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('topic', models.CharField(db_index=True, default='refunds/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)),
                ('refund_amount', models.DecimalField(blank=True, decimal_places=2, max_digits=12, null=True)),
                ('refund_type', models.CharField(blank=True, max_length=16)),
                ('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'],
            },
        ),
    ]
