import uuid

from django.db import migrations, models


class Migration(migrations.Migration):
    dependencies = [("payment_mollie", "0001_molliewebhookevent")]

    operations = [
        migrations.CreateModel(
            name="MolliePaymentAttempt",
            fields=[
                ("id", models.BigAutoField(primary_key=True, serialize=False)),
                ("order_number", models.CharField(max_length=128)),
                ("method", models.CharField(max_length=64)),
                (
                    "idempotency_key",
                    models.UUIDField(default=uuid.uuid4, editable=False, unique=True),
                ),
                ("provider_reference", models.CharField(blank=True, max_length=64)),
                ("created_at", models.DateTimeField(auto_now_add=True)),
            ],
            options={"ordering": ("-created_at",)},
        )
    ]
